@twreporter/react-typescript-components 0.1.0-beta.6 → 0.1.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/lib/button/constants.d.mts +3 -0
- package/lib/button/constants.d.ts +3 -0
- package/lib/button/constants.js +5 -0
- package/lib/button/constants.mjs +3 -0
- package/lib/button/index.d.mts +130 -23
- package/lib/button/index.d.ts +130 -23
- package/lib/button/index.js +11 -161
- package/lib/button/index.mjs +7 -8
- package/lib/button-CO0UXA6C.js +552 -0
- package/lib/button-CO0UXA6C.js.map +1 -0
- package/lib/button-DL6w1ghn.mjs +519 -0
- package/lib/button-DL6w1ghn.mjs.map +1 -0
- package/lib/chunk-BxBTb9qk.js +39 -0
- package/lib/constants/external-links.d.mts +16 -0
- package/lib/constants/external-links.d.ts +16 -0
- package/lib/constants/external-links.js +3 -0
- package/lib/constants/external-links.mjs +3 -0
- package/lib/constants/internal-links.d.mts +51 -0
- package/lib/constants/internal-links.d.ts +51 -0
- package/lib/constants/internal-links.js +3 -0
- package/lib/constants/internal-links.mjs +3 -0
- package/lib/constants/release-branch.d.mts +3 -0
- package/lib/constants/release-branch.d.ts +3 -0
- package/lib/constants/release-branch.js +3 -0
- package/lib/constants/release-branch.mjs +3 -0
- package/lib/constants/request-origins.d.mts +68 -0
- package/lib/constants/request-origins.d.ts +68 -0
- package/lib/constants/request-origins.js +5 -0
- package/lib/constants/request-origins.mjs +4 -0
- package/lib/constants/theme.d.mts +3 -0
- package/lib/constants/theme.d.ts +3 -0
- package/lib/constants/theme.js +3 -0
- package/lib/constants/theme.mjs +3 -0
- package/lib/constants-BDoTzOZE.d.mts +17 -0
- package/lib/constants-BS3rPbaX.d.ts +17 -0
- package/lib/constants-BWFuBApI.mjs +14 -0
- package/lib/constants-BWFuBApI.mjs.map +1 -0
- package/lib/constants-B_NgWFML.d.ts +24 -0
- package/lib/constants-BmxSMOOn.js +36 -0
- package/lib/constants-BmxSMOOn.js.map +1 -0
- package/lib/constants-BuIUKM2c.js +15 -0
- package/lib/constants-BuIUKM2c.js.map +1 -0
- package/lib/constants-C2moxnps.js +38 -0
- package/lib/constants-C2moxnps.js.map +1 -0
- package/lib/constants-CCfG07Q4.d.mts +24 -0
- package/lib/constants-CMMcn0f-.d.ts +11 -0
- package/lib/constants-CayQNGtk.d.mts +11 -0
- package/lib/constants-CmCfyfPG.mjs +25 -0
- package/lib/constants-CmCfyfPG.mjs.map +1 -0
- package/lib/constants-Cnq4ruq6.d.mts +29 -0
- package/lib/constants-CuT1aTK4.js +43 -0
- package/lib/constants-CuT1aTK4.js.map +1 -0
- package/lib/constants-Cz7n-nLz.mjs +9 -0
- package/lib/constants-Cz7n-nLz.mjs.map +1 -0
- package/lib/constants-DQxcqnYL.d.ts +29 -0
- package/lib/constants-DRxdMM_X.mjs +20 -0
- package/lib/constants-DRxdMM_X.mjs.map +1 -0
- package/lib/constants-K2ObjToq.js +26 -0
- package/lib/constants-K2ObjToq.js.map +1 -0
- package/lib/constants-gCmka4Fp.d.ts +22 -0
- package/lib/constants-oTHAnh6r.mjs +18 -0
- package/lib/constants-oTHAnh6r.mjs.map +1 -0
- package/lib/constants-wDPBqTIv.d.mts +22 -0
- package/lib/customized-link/external-link.d.mts +3 -7
- package/lib/customized-link/external-link.d.ts +3 -7
- package/lib/customized-link/external-link.js +2 -17
- package/lib/customized-link/external-link.mjs +3 -3
- package/lib/customized-link/index.d.mts +10 -8
- package/lib/customized-link/index.d.ts +10 -8
- package/lib/customized-link/index.js +6 -40
- package/lib/customized-link/index.mjs +5 -5
- package/lib/customized-link/internal-link.d.mts +3 -7
- package/lib/customized-link/internal-link.d.ts +3 -7
- package/lib/customized-link/internal-link.js +3 -19
- package/lib/customized-link/internal-link.mjs +6 -3
- package/lib/customized-link/type.d.mts +2 -9
- package/lib/customized-link/type.d.ts +2 -9
- package/lib/customized-link/type.js +0 -4
- package/lib/customized-link/type.mjs +1 -3
- package/lib/customized-link-DNKmWI0u.mjs +12 -0
- package/lib/customized-link-DNKmWI0u.mjs.map +1 -0
- package/lib/customized-link-XNoMkeYw.js +17 -0
- package/lib/customized-link-XNoMkeYw.js.map +1 -0
- package/lib/divider/constants.d.mts +3 -0
- package/lib/divider/constants.d.ts +3 -0
- package/lib/divider/constants.js +3 -0
- package/lib/divider/constants.mjs +3 -0
- package/lib/divider/index.d.mts +15 -0
- package/lib/divider/index.d.ts +15 -0
- package/lib/divider/index.js +6 -0
- package/lib/divider/index.mjs +4 -0
- package/lib/divider-CEIxmAsH.mjs +15 -0
- package/lib/divider-CEIxmAsH.mjs.map +1 -0
- package/lib/divider-Db3AhImD.js +29 -0
- package/lib/divider-Db3AhImD.js.map +1 -0
- package/lib/dropdown-menu/index.d.mts +17 -0
- package/lib/dropdown-menu/index.d.ts +17 -0
- package/lib/dropdown-menu/index.js +13 -0
- package/lib/dropdown-menu/index.mjs +13 -0
- package/lib/dropdown-menu-BWuoUGuB.mjs +135 -0
- package/lib/dropdown-menu-BWuoUGuB.mjs.map +1 -0
- package/lib/dropdown-menu-CC0Yh31s.js +180 -0
- package/lib/dropdown-menu-CC0Yh31s.js.map +1 -0
- package/lib/external-link-2XoC1_oL.d.ts +9 -0
- package/lib/external-link-BMrkjNyi.js +23 -0
- package/lib/external-link-BMrkjNyi.js.map +1 -0
- package/lib/external-link-BykRRwmY.mjs +16 -0
- package/lib/external-link-BykRRwmY.mjs.map +1 -0
- package/lib/external-link-DTOcLL22.d.mts +9 -0
- package/lib/external-links-2b4M_rcA.mjs +17 -0
- package/lib/external-links-2b4M_rcA.mjs.map +1 -0
- package/lib/external-links-SfJjb48j.js +23 -0
- package/lib/external-links-SfJjb48j.js.map +1 -0
- package/lib/hamburger-menu/index.d.mts +7 -0
- package/lib/hamburger-menu/index.d.ts +6 -0
- package/lib/hamburger-menu/index.js +21 -0
- package/lib/hamburger-menu/index.mjs +21 -0
- package/lib/hamburger-menu-BsIaOOoy.js +486 -0
- package/lib/hamburger-menu-BsIaOOoy.js.map +1 -0
- package/lib/hamburger-menu-CI3TOV9q.mjs +471 -0
- package/lib/hamburger-menu-CI3TOV9q.mjs.map +1 -0
- package/lib/header/index.d.mts +26 -0
- package/lib/header/index.d.ts +25 -0
- package/lib/header/index.js +469 -0
- package/lib/header/index.js.map +1 -0
- package/lib/header/index.mjs +463 -0
- package/lib/header/index.mjs.map +1 -0
- package/lib/heading-B_pZSTvs.js +75 -0
- package/lib/heading-B_pZSTvs.js.map +1 -0
- package/lib/heading-DL8WhtCD.mjs +37 -0
- package/lib/heading-DL8WhtCD.mjs.map +1 -0
- package/lib/icons/constants.d.mts +3 -0
- package/lib/icons/constants.d.ts +3 -0
- package/lib/icons/constants.js +5 -0
- package/lib/icons/constants.mjs +3 -0
- package/lib/icons/index.d.mts +40 -0
- package/lib/icons/index.d.ts +40 -0
- package/lib/icons/index.js +12 -0
- package/lib/icons/index.mjs +5 -0
- package/lib/icons-Bs84WbEt.mjs +57 -0
- package/lib/icons-Bs84WbEt.mjs.map +1 -0
- package/lib/icons-bC_xV5mJ.js +107 -0
- package/lib/icons-bC_xV5mJ.js.map +1 -0
- package/lib/index-CgixcmUN.d.mts +5 -0
- package/lib/index-H3peA2d_.d.ts +5 -0
- package/lib/internal-link-BLXTBMRq.js +2278 -0
- package/lib/internal-link-BLXTBMRq.js.map +1 -0
- package/lib/internal-link-DCSEl1jM.d.ts +9 -0
- package/lib/internal-link-NQb751uB.mjs +2299 -0
- package/lib/internal-link-NQb751uB.mjs.map +1 -0
- package/lib/internal-link-R2--P52c.d.mts +9 -0
- package/lib/internal-links-BF-974mA.mjs +52 -0
- package/lib/internal-links-BF-974mA.mjs.map +1 -0
- package/lib/internal-links-CBkMU8cY.js +58 -0
- package/lib/internal-links-CBkMU8cY.js.map +1 -0
- package/lib/logo/constants.d.mts +3 -0
- package/lib/logo/constants.d.ts +3 -0
- package/lib/logo/constants.js +5 -0
- package/lib/logo/constants.mjs +3 -0
- package/lib/logo/index.d.mts +42 -0
- package/lib/logo/index.d.ts +42 -0
- package/lib/logo/index.js +8 -0
- package/lib/logo/index.mjs +5 -0
- package/lib/logo-B35TnPzd.mjs +64 -0
- package/lib/logo-B35TnPzd.mjs.map +1 -0
- package/lib/logo-D5plc5jE.js +83 -0
- package/lib/logo-D5plc5jE.js.map +1 -0
- package/lib/paragraph-BWXQNQtX.mjs +30 -0
- package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
- package/lib/paragraph-CJvb0_cM.js +56 -0
- package/lib/paragraph-CJvb0_cM.js.map +1 -0
- package/lib/release-branch-BLAOXJu1.d.mts +14 -0
- package/lib/release-branch-CRZV4Ivz.js +18 -0
- package/lib/release-branch-CRZV4Ivz.js.map +1 -0
- package/lib/release-branch-CsBbhuYE.d.ts +14 -0
- package/lib/release-branch-DNCD1uH_.mjs +12 -0
- package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
- package/lib/request-origins-BDXulkK9.js +57 -0
- package/lib/request-origins-BDXulkK9.js.map +1 -0
- package/lib/request-origins-CGkNWg8R.mjs +46 -0
- package/lib/request-origins-CGkNWg8R.mjs.map +1 -0
- package/lib/styles.css +989 -3
- package/lib/text/constants.d.mts +3 -0
- package/lib/text/constants.d.ts +3 -0
- package/lib/text/constants.js +4 -0
- package/lib/text/constants.mjs +3 -0
- package/lib/text/heading.d.mts +22 -20
- package/lib/text/heading.d.ts +22 -20
- package/lib/text/heading.js +9 -70
- package/lib/text/heading.mjs +4 -4
- package/lib/text/paragraph.d.mts +18 -16
- package/lib/text/paragraph.d.ts +18 -16
- package/lib/text/paragraph.js +6 -57
- package/lib/text/paragraph.mjs +4 -4
- package/lib/theme-8Q9pR2P5.d.mts +13 -0
- package/lib/theme-BDGfJ8n-.d.ts +13 -0
- package/lib/theme-BG6yZVj-.mjs +11 -0
- package/lib/theme-BG6yZVj-.mjs.map +1 -0
- package/lib/theme-DDBlIbeS.js +17 -0
- package/lib/theme-DDBlIbeS.js.map +1 -0
- package/lib/title-bar/index.d.mts +55 -23
- package/lib/title-bar/index.d.ts +55 -23
- package/lib/title-bar/index.js +132 -358
- package/lib/title-bar/index.js.map +1 -1
- package/lib/title-bar/index.mjs +140 -24
- package/lib/title-bar/index.mjs.map +1 -1
- package/lib/type-C4hJK9H9.d.ts +11 -0
- package/lib/type-nAFiNBfk.d.mts +11 -0
- package/lib/types/index.d.mts +2 -3
- package/lib/types/index.d.ts +2 -3
- package/lib/types/index.js +0 -4
- package/lib/types/index.mjs +1 -3
- package/package.json +11 -6
- package/lib/button/components/text-button/index.d.mts +0 -24
- package/lib/button/components/text-button/index.d.ts +0 -24
- package/lib/button/components/text-button/index.js +0 -156
- package/lib/button/components/text-button/index.js.map +0 -1
- package/lib/button/components/text-button/index.mjs +0 -7
- package/lib/button/components/text-button/index.mjs.map +0 -1
- package/lib/button/constant.d.mts +0 -11
- package/lib/button/constant.d.ts +0 -11
- package/lib/button/constant.js +0 -13
- package/lib/button/constant.js.map +0 -1
- package/lib/button/constant.mjs +0 -3
- package/lib/button/constant.mjs.map +0 -1
- package/lib/button/enum.d.mts +0 -11
- package/lib/button/enum.d.ts +0 -11
- package/lib/button/enum.js +0 -19
- package/lib/button/enum.js.map +0 -1
- package/lib/button/enum.mjs +0 -3
- package/lib/button/enum.mjs.map +0 -1
- package/lib/button/index.js.map +0 -1
- package/lib/button/index.mjs.map +0 -1
- package/lib/button/stories/text-button.stories.d.mts +0 -55
- package/lib/button/stories/text-button.stories.d.ts +0 -55
- package/lib/button/stories/text-button.stories.js +0 -206
- package/lib/button/stories/text-button.stories.js.map +0 -1
- package/lib/button/stories/text-button.stories.mjs +0 -34
- package/lib/button/stories/text-button.stories.mjs.map +0 -1
- package/lib/chunk-6DXA3EX7.mjs +0 -35
- package/lib/chunk-6DXA3EX7.mjs.map +0 -1
- package/lib/chunk-7DK5MO62.mjs +0 -8
- package/lib/chunk-7DK5MO62.mjs.map +0 -1
- package/lib/chunk-CZVB2Y6O.mjs +0 -27
- package/lib/chunk-CZVB2Y6O.mjs.map +0 -1
- package/lib/chunk-GQWO45DN.mjs +0 -32
- package/lib/chunk-GQWO45DN.mjs.map +0 -1
- package/lib/chunk-GRCEZABQ.mjs +0 -38
- package/lib/chunk-GRCEZABQ.mjs.map +0 -1
- package/lib/chunk-HQG6Q2EY.mjs +0 -42
- package/lib/chunk-HQG6Q2EY.mjs.map +0 -1
- package/lib/chunk-JB4TYHDE.mjs +0 -11
- package/lib/chunk-JB4TYHDE.mjs.map +0 -1
- package/lib/chunk-JFT6JILC.mjs +0 -12
- package/lib/chunk-JFT6JILC.mjs.map +0 -1
- package/lib/chunk-JHLT5GDV.mjs +0 -50
- package/lib/chunk-JHLT5GDV.mjs.map +0 -1
- package/lib/chunk-QE5LVT7A.mjs +0 -90
- package/lib/chunk-QE5LVT7A.mjs.map +0 -1
- package/lib/chunk-QOLETTSG.mjs +0 -28
- package/lib/chunk-QOLETTSG.mjs.map +0 -1
- package/lib/chunk-R4F4LGAY.mjs +0 -56
- package/lib/chunk-R4F4LGAY.mjs.map +0 -1
- package/lib/chunk-UM7RNC2Y.mjs +0 -14
- package/lib/chunk-UM7RNC2Y.mjs.map +0 -1
- package/lib/chunk-URJXIWFX.mjs +0 -16
- package/lib/chunk-URJXIWFX.mjs.map +0 -1
- package/lib/chunk-X2UWIBNH.mjs +0 -16
- package/lib/chunk-X2UWIBNH.mjs.map +0 -1
- package/lib/chunk-XO7SDD7W.mjs +0 -17
- package/lib/chunk-XO7SDD7W.mjs.map +0 -1
- package/lib/customized-link/external-link.js.map +0 -1
- package/lib/customized-link/external-link.mjs.map +0 -1
- package/lib/customized-link/index.js.map +0 -1
- package/lib/customized-link/index.mjs.map +0 -1
- package/lib/customized-link/internal-link.js.map +0 -1
- package/lib/customized-link/internal-link.mjs.map +0 -1
- package/lib/customized-link/type.js.map +0 -1
- package/lib/customized-link/type.mjs.map +0 -1
- package/lib/storybook/utils/get-enum-arg.d.mts +0 -19
- package/lib/storybook/utils/get-enum-arg.d.ts +0 -19
- package/lib/storybook/utils/get-enum-arg.js +0 -31
- package/lib/storybook/utils/get-enum-arg.js.map +0 -1
- package/lib/storybook/utils/get-enum-arg.mjs +0 -3
- package/lib/storybook/utils/get-enum-arg.mjs.map +0 -1
- package/lib/styles.css.map +0 -1
- package/lib/styles.d.mts +0 -2
- package/lib/styles.d.ts +0 -2
- package/lib/text/enum/index.d.mts +0 -15
- package/lib/text/enum/index.d.ts +0 -15
- package/lib/text/enum/index.js +0 -17
- package/lib/text/enum/index.js.map +0 -1
- package/lib/text/enum/index.mjs +0 -3
- package/lib/text/enum/index.mjs.map +0 -1
- package/lib/text/heading.js.map +0 -1
- package/lib/text/heading.mjs.map +0 -1
- package/lib/text/paragraph.js.map +0 -1
- package/lib/text/paragraph.mjs.map +0 -1
- package/lib/text/stories/heading.stories.d.mts +0 -35
- package/lib/text/stories/heading.stories.d.ts +0 -35
- package/lib/text/stories/heading.stories.js +0 -131
- package/lib/text/stories/heading.stories.js.map +0 -1
- package/lib/text/stories/heading.stories.mjs +0 -50
- package/lib/text/stories/heading.stories.mjs.map +0 -1
- package/lib/text/stories/paragraph.stories.d.mts +0 -33
- package/lib/text/stories/paragraph.stories.d.ts +0 -33
- package/lib/text/stories/paragraph.stories.js +0 -108
- package/lib/text/stories/paragraph.stories.js.map +0 -1
- package/lib/text/stories/paragraph.stories.mjs +0 -40
- package/lib/text/stories/paragraph.stories.mjs.map +0 -1
- package/lib/title-bar/components/title-tab/hook.d.mts +0 -5
- package/lib/title-bar/components/title-tab/hook.d.ts +0 -5
- package/lib/title-bar/components/title-tab/hook.js +0 -34
- package/lib/title-bar/components/title-tab/hook.js.map +0 -1
- package/lib/title-bar/components/title-tab/hook.mjs +0 -3
- package/lib/title-bar/components/title-tab/hook.mjs.map +0 -1
- package/lib/title-bar/components/title-tab/index.d.mts +0 -11
- package/lib/title-bar/components/title-tab/index.d.ts +0 -11
- package/lib/title-bar/components/title-tab/index.js +0 -321
- package/lib/title-bar/components/title-tab/index.js.map +0 -1
- package/lib/title-bar/components/title-tab/index.mjs +0 -15
- package/lib/title-bar/components/title-tab/index.mjs.map +0 -1
- package/lib/title-bar/components/title-tab/tab-item.d.mts +0 -10
- package/lib/title-bar/components/title-tab/tab-item.d.ts +0 -10
- package/lib/title-bar/components/title-tab/tab-item.js +0 -204
- package/lib/title-bar/components/title-tab/tab-item.js.map +0 -1
- package/lib/title-bar/components/title-tab/tab-item.mjs +0 -12
- package/lib/title-bar/components/title-tab/tab-item.mjs.map +0 -1
- package/lib/title-bar/components/title-tab/type.d.mts +0 -8
- package/lib/title-bar/components/title-tab/type.d.ts +0 -8
- package/lib/title-bar/components/title-tab/type.js +0 -4
- package/lib/title-bar/components/title-tab/type.js.map +0 -1
- package/lib/title-bar/components/title-tab/type.mjs +0 -3
- package/lib/title-bar/components/title-tab/type.mjs.map +0 -1
- package/lib/title-bar/components/title1.d.mts +0 -10
- package/lib/title-bar/components/title1.d.ts +0 -10
- package/lib/title-bar/components/title1.js +0 -123
- package/lib/title-bar/components/title1.js.map +0 -1
- package/lib/title-bar/components/title1.mjs +0 -6
- package/lib/title-bar/components/title1.mjs.map +0 -1
- package/lib/title-bar/components/title2.d.mts +0 -11
- package/lib/title-bar/components/title2.d.ts +0 -11
- package/lib/title-bar/components/title2.js +0 -131
- package/lib/title-bar/components/title2.js.map +0 -1
- package/lib/title-bar/components/title2.mjs +0 -6
- package/lib/title-bar/components/title2.mjs.map +0 -1
- package/lib/title-bar/stories/title-tab.stories.d.mts +0 -17
- package/lib/title-bar/stories/title-tab.stories.d.ts +0 -17
- package/lib/title-bar/stories/title-tab.stories.js +0 -345
- package/lib/title-bar/stories/title-tab.stories.js.map +0 -1
- package/lib/title-bar/stories/title-tab.stories.mjs +0 -38
- package/lib/title-bar/stories/title-tab.stories.mjs.map +0 -1
- package/lib/title-bar/stories/title1.stories.d.mts +0 -18
- package/lib/title-bar/stories/title1.stories.d.ts +0 -18
- package/lib/title-bar/stories/title1.stories.js +0 -155
- package/lib/title-bar/stories/title1.stories.js.map +0 -1
- package/lib/title-bar/stories/title1.stories.mjs +0 -35
- package/lib/title-bar/stories/title1.stories.mjs.map +0 -1
- package/lib/title-bar/stories/title2.stories.d.mts +0 -18
- package/lib/title-bar/stories/title2.stories.d.ts +0 -18
- package/lib/title-bar/stories/title2.stories.js +0 -258
- package/lib/title-bar/stories/title2.stories.js.map +0 -1
- package/lib/title-bar/stories/title2.stories.mjs +0 -37
- package/lib/title-bar/stories/title2.stories.mjs.map +0 -1
- package/lib/types/index.js.map +0 -1
- package/lib/types/index.mjs.map +0 -1
|
@@ -0,0 +1,2278 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-BxBTb9qk.js');
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
6
|
+
var require__interop_require_wildcard = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs": ((exports) => {
|
|
7
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
8
|
+
if (typeof WeakMap !== "function") return null;
|
|
9
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
11
|
+
return (_getRequireWildcardCache = function(nodeInterop$1) {
|
|
12
|
+
return nodeInterop$1 ? cacheNodeInterop : cacheBabelInterop;
|
|
13
|
+
})(nodeInterop);
|
|
14
|
+
}
|
|
15
|
+
function _interop_require_wildcard$1(obj, nodeInterop) {
|
|
16
|
+
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
17
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
|
|
18
|
+
var cache$1 = _getRequireWildcardCache(nodeInterop);
|
|
19
|
+
if (cache$1 && cache$1.has(obj)) return cache$1.get(obj);
|
|
20
|
+
var newObj = { __proto__: null };
|
|
21
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
22
|
+
for (var key in obj) if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
23
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
24
|
+
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
25
|
+
else newObj[key] = obj[key];
|
|
26
|
+
}
|
|
27
|
+
newObj.default = obj;
|
|
28
|
+
if (cache$1) cache$1.set(obj, newObj);
|
|
29
|
+
return newObj;
|
|
30
|
+
}
|
|
31
|
+
exports._ = _interop_require_wildcard$1;
|
|
32
|
+
}) });
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/querystring.js
|
|
36
|
+
var require_querystring = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/querystring.js": ((exports) => {
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
function _export$11(target, all) {
|
|
39
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: all[name]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
_export$11(exports, {
|
|
45
|
+
assign: function() {
|
|
46
|
+
return assign;
|
|
47
|
+
},
|
|
48
|
+
searchParamsToUrlQuery: function() {
|
|
49
|
+
return searchParamsToUrlQuery;
|
|
50
|
+
},
|
|
51
|
+
urlQueryToSearchParams: function() {
|
|
52
|
+
return urlQueryToSearchParams;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
function searchParamsToUrlQuery(searchParams) {
|
|
56
|
+
const query = {};
|
|
57
|
+
for (const [key, value] of searchParams.entries()) {
|
|
58
|
+
const existing = query[key];
|
|
59
|
+
if (typeof existing === "undefined") query[key] = value;
|
|
60
|
+
else if (Array.isArray(existing)) existing.push(value);
|
|
61
|
+
else query[key] = [existing, value];
|
|
62
|
+
}
|
|
63
|
+
return query;
|
|
64
|
+
}
|
|
65
|
+
function stringifyUrlQueryParam(param) {
|
|
66
|
+
if (typeof param === "string") return param;
|
|
67
|
+
if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") return String(param);
|
|
68
|
+
else return "";
|
|
69
|
+
}
|
|
70
|
+
function urlQueryToSearchParams(query) {
|
|
71
|
+
const searchParams = new URLSearchParams();
|
|
72
|
+
for (const [key, value] of Object.entries(query)) if (Array.isArray(value)) for (const item of value) searchParams.append(key, stringifyUrlQueryParam(item));
|
|
73
|
+
else searchParams.set(key, stringifyUrlQueryParam(value));
|
|
74
|
+
return searchParams;
|
|
75
|
+
}
|
|
76
|
+
function assign(target) {
|
|
77
|
+
for (var _len = arguments.length, searchParamsList = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) searchParamsList[_key - 1] = arguments[_key];
|
|
78
|
+
for (const searchParams of searchParamsList) {
|
|
79
|
+
for (const key of searchParams.keys()) target.delete(key);
|
|
80
|
+
for (const [key, value] of searchParams.entries()) target.append(key, value);
|
|
81
|
+
}
|
|
82
|
+
return target;
|
|
83
|
+
}
|
|
84
|
+
}) });
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/format-url.js
|
|
88
|
+
var require_format_url = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/format-url.js": ((exports) => {
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
function _export$10(target, all) {
|
|
91
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: all[name]
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
_export$10(exports, {
|
|
97
|
+
formatUrl: function() {
|
|
98
|
+
return formatUrl;
|
|
99
|
+
},
|
|
100
|
+
formatWithValidation: function() {
|
|
101
|
+
return formatWithValidation;
|
|
102
|
+
},
|
|
103
|
+
urlObjectKeys: function() {
|
|
104
|
+
return urlObjectKeys;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const _querystring$1 = /* @__PURE__ */ require__interop_require_wildcard()._(require_querystring());
|
|
108
|
+
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
109
|
+
function formatUrl(urlObj) {
|
|
110
|
+
let { auth, hostname } = urlObj;
|
|
111
|
+
let protocol = urlObj.protocol || "";
|
|
112
|
+
let pathname = urlObj.pathname || "";
|
|
113
|
+
let hash = urlObj.hash || "";
|
|
114
|
+
let query = urlObj.query || "";
|
|
115
|
+
let host = false;
|
|
116
|
+
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
|
|
117
|
+
if (urlObj.host) host = auth + urlObj.host;
|
|
118
|
+
else if (hostname) {
|
|
119
|
+
host = auth + (~hostname.indexOf(":") ? "[" + hostname + "]" : hostname);
|
|
120
|
+
if (urlObj.port) host += ":" + urlObj.port;
|
|
121
|
+
}
|
|
122
|
+
if (query && typeof query === "object") query = String(_querystring$1.urlQueryToSearchParams(query));
|
|
123
|
+
let search = urlObj.search || query && "?" + query || "";
|
|
124
|
+
if (protocol && !protocol.endsWith(":")) protocol += ":";
|
|
125
|
+
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
126
|
+
host = "//" + (host || "");
|
|
127
|
+
if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
|
|
128
|
+
} else if (!host) host = "";
|
|
129
|
+
if (hash && hash[0] !== "#") hash = "#" + hash;
|
|
130
|
+
if (search && search[0] !== "?") search = "?" + search;
|
|
131
|
+
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
132
|
+
search = search.replace("#", "%23");
|
|
133
|
+
return "" + protocol + host + pathname + search + hash;
|
|
134
|
+
}
|
|
135
|
+
const urlObjectKeys = [
|
|
136
|
+
"auth",
|
|
137
|
+
"hash",
|
|
138
|
+
"host",
|
|
139
|
+
"hostname",
|
|
140
|
+
"href",
|
|
141
|
+
"path",
|
|
142
|
+
"pathname",
|
|
143
|
+
"port",
|
|
144
|
+
"protocol",
|
|
145
|
+
"query",
|
|
146
|
+
"search",
|
|
147
|
+
"slashes"
|
|
148
|
+
];
|
|
149
|
+
function formatWithValidation(url) {
|
|
150
|
+
if (process.env.NODE_ENV === "development") {
|
|
151
|
+
if (url !== null && typeof url === "object") Object.keys(url).forEach((key) => {
|
|
152
|
+
if (!urlObjectKeys.includes(key)) console.warn("Unknown key passed via urlObject into url.format: " + key);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return formatUrl(url);
|
|
156
|
+
}
|
|
157
|
+
}) });
|
|
158
|
+
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/omit.js
|
|
161
|
+
var require_omit = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/omit.js": ((exports) => {
|
|
162
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
163
|
+
Object.defineProperty(exports, "omit", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function() {
|
|
166
|
+
return omit;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
function omit(object, keys) {
|
|
170
|
+
const omitted = {};
|
|
171
|
+
Object.keys(object).forEach((key) => {
|
|
172
|
+
if (!keys.includes(key)) omitted[key] = object[key];
|
|
173
|
+
});
|
|
174
|
+
return omitted;
|
|
175
|
+
}
|
|
176
|
+
}) });
|
|
177
|
+
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region ../../node_modules/next/dist/shared/lib/utils.js
|
|
180
|
+
var require_utils$1 = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/utils.js": ((exports) => {
|
|
181
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
182
|
+
function _export$9(target, all) {
|
|
183
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: all[name]
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
_export$9(exports, {
|
|
189
|
+
DecodeError: function() {
|
|
190
|
+
return DecodeError;
|
|
191
|
+
},
|
|
192
|
+
MiddlewareNotFoundError: function() {
|
|
193
|
+
return MiddlewareNotFoundError;
|
|
194
|
+
},
|
|
195
|
+
MissingStaticPage: function() {
|
|
196
|
+
return MissingStaticPage;
|
|
197
|
+
},
|
|
198
|
+
NormalizeError: function() {
|
|
199
|
+
return NormalizeError;
|
|
200
|
+
},
|
|
201
|
+
PageNotFoundError: function() {
|
|
202
|
+
return PageNotFoundError;
|
|
203
|
+
},
|
|
204
|
+
SP: function() {
|
|
205
|
+
return SP;
|
|
206
|
+
},
|
|
207
|
+
ST: function() {
|
|
208
|
+
return ST;
|
|
209
|
+
},
|
|
210
|
+
WEB_VITALS: function() {
|
|
211
|
+
return WEB_VITALS;
|
|
212
|
+
},
|
|
213
|
+
execOnce: function() {
|
|
214
|
+
return execOnce;
|
|
215
|
+
},
|
|
216
|
+
getDisplayName: function() {
|
|
217
|
+
return getDisplayName;
|
|
218
|
+
},
|
|
219
|
+
getLocationOrigin: function() {
|
|
220
|
+
return getLocationOrigin;
|
|
221
|
+
},
|
|
222
|
+
getURL: function() {
|
|
223
|
+
return getURL;
|
|
224
|
+
},
|
|
225
|
+
isAbsoluteUrl: function() {
|
|
226
|
+
return isAbsoluteUrl;
|
|
227
|
+
},
|
|
228
|
+
isResSent: function() {
|
|
229
|
+
return isResSent;
|
|
230
|
+
},
|
|
231
|
+
loadGetInitialProps: function() {
|
|
232
|
+
return loadGetInitialProps;
|
|
233
|
+
},
|
|
234
|
+
normalizeRepeatedSlashes: function() {
|
|
235
|
+
return normalizeRepeatedSlashes;
|
|
236
|
+
},
|
|
237
|
+
stringifyError: function() {
|
|
238
|
+
return stringifyError;
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
const WEB_VITALS = [
|
|
242
|
+
"CLS",
|
|
243
|
+
"FCP",
|
|
244
|
+
"FID",
|
|
245
|
+
"INP",
|
|
246
|
+
"LCP",
|
|
247
|
+
"TTFB"
|
|
248
|
+
];
|
|
249
|
+
function execOnce(fn) {
|
|
250
|
+
let used = false;
|
|
251
|
+
let result;
|
|
252
|
+
return function() {
|
|
253
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
254
|
+
if (!used) {
|
|
255
|
+
used = true;
|
|
256
|
+
result = fn(...args);
|
|
257
|
+
}
|
|
258
|
+
return result;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
262
|
+
const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
263
|
+
function getLocationOrigin() {
|
|
264
|
+
const { protocol, hostname, port } = window.location;
|
|
265
|
+
return protocol + "//" + hostname + (port ? ":" + port : "");
|
|
266
|
+
}
|
|
267
|
+
function getURL() {
|
|
268
|
+
const { href } = window.location;
|
|
269
|
+
const origin = getLocationOrigin();
|
|
270
|
+
return href.substring(origin.length);
|
|
271
|
+
}
|
|
272
|
+
function getDisplayName(Component) {
|
|
273
|
+
return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
|
|
274
|
+
}
|
|
275
|
+
function isResSent(res) {
|
|
276
|
+
return res.finished || res.headersSent;
|
|
277
|
+
}
|
|
278
|
+
function normalizeRepeatedSlashes(url) {
|
|
279
|
+
const urlParts = url.split("?");
|
|
280
|
+
return urlParts[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?" + urlParts.slice(1).join("?") : "");
|
|
281
|
+
}
|
|
282
|
+
async function loadGetInitialProps(App, ctx) {
|
|
283
|
+
if (process.env.NODE_ENV !== "production") {
|
|
284
|
+
var _App_prototype;
|
|
285
|
+
if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) {
|
|
286
|
+
const message = "\"" + getDisplayName(App) + ".getInitialProps()\" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.";
|
|
287
|
+
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
288
|
+
value: "E394",
|
|
289
|
+
enumerable: false,
|
|
290
|
+
configurable: true
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
|
295
|
+
if (!App.getInitialProps) {
|
|
296
|
+
if (ctx.ctx && ctx.Component) return { pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx) };
|
|
297
|
+
return {};
|
|
298
|
+
}
|
|
299
|
+
const props = await App.getInitialProps(ctx);
|
|
300
|
+
if (res && isResSent(res)) return props;
|
|
301
|
+
if (!props) {
|
|
302
|
+
const message = "\"" + getDisplayName(App) + ".getInitialProps()\" should resolve to an object. But found \"" + props + "\" instead.";
|
|
303
|
+
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
304
|
+
value: "E394",
|
|
305
|
+
enumerable: false,
|
|
306
|
+
configurable: true
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
if (process.env.NODE_ENV !== "production") {
|
|
310
|
+
if (Object.keys(props).length === 0 && !ctx.ctx) console.warn("" + getDisplayName(App) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps");
|
|
311
|
+
}
|
|
312
|
+
return props;
|
|
313
|
+
}
|
|
314
|
+
const SP = typeof performance !== "undefined";
|
|
315
|
+
const ST = SP && [
|
|
316
|
+
"mark",
|
|
317
|
+
"measure",
|
|
318
|
+
"getEntriesByName"
|
|
319
|
+
].every((method) => typeof performance[method] === "function");
|
|
320
|
+
var DecodeError = class extends Error {};
|
|
321
|
+
var NormalizeError = class extends Error {};
|
|
322
|
+
var PageNotFoundError = class extends Error {
|
|
323
|
+
constructor(page) {
|
|
324
|
+
super();
|
|
325
|
+
this.code = "ENOENT";
|
|
326
|
+
this.name = "PageNotFoundError";
|
|
327
|
+
this.message = "Cannot find module for page: " + page;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
var MissingStaticPage = class extends Error {
|
|
331
|
+
constructor(page, message) {
|
|
332
|
+
super();
|
|
333
|
+
this.message = "Failed to load static file for page: " + page + " " + message;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var MiddlewareNotFoundError = class extends Error {
|
|
337
|
+
constructor() {
|
|
338
|
+
super();
|
|
339
|
+
this.code = "ENOENT";
|
|
340
|
+
this.message = "Cannot find the middleware module";
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
function stringifyError(error) {
|
|
344
|
+
return JSON.stringify({
|
|
345
|
+
message: error.message,
|
|
346
|
+
stack: error.stack
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
}) });
|
|
350
|
+
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
353
|
+
var require_remove_trailing_slash = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js": ((exports) => {
|
|
354
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
355
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
get: function() {
|
|
358
|
+
return removeTrailingSlash;
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
function removeTrailingSlash(route) {
|
|
362
|
+
return route.replace(/\/$/, "") || "/";
|
|
363
|
+
}
|
|
364
|
+
}) });
|
|
365
|
+
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
368
|
+
var require_parse_path = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/parse-path.js": ((exports) => {
|
|
369
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
370
|
+
Object.defineProperty(exports, "parsePath", {
|
|
371
|
+
enumerable: true,
|
|
372
|
+
get: function() {
|
|
373
|
+
return parsePath;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
function parsePath(path) {
|
|
377
|
+
const hashIndex = path.indexOf("#");
|
|
378
|
+
const queryIndex = path.indexOf("?");
|
|
379
|
+
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
380
|
+
if (hasQuery || hashIndex > -1) return {
|
|
381
|
+
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
382
|
+
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
383
|
+
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
384
|
+
};
|
|
385
|
+
return {
|
|
386
|
+
pathname: path,
|
|
387
|
+
query: "",
|
|
388
|
+
hash: ""
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
}) });
|
|
392
|
+
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../../node_modules/next/dist/client/normalize-trailing-slash.js
|
|
395
|
+
var require_normalize_trailing_slash = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/normalize-trailing-slash.js": ((exports, module) => {
|
|
396
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
397
|
+
Object.defineProperty(exports, "normalizePathTrailingSlash", {
|
|
398
|
+
enumerable: true,
|
|
399
|
+
get: function() {
|
|
400
|
+
return normalizePathTrailingSlash;
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
const _removetrailingslash$1 = require_remove_trailing_slash();
|
|
404
|
+
const _parsepath$2 = require_parse_path();
|
|
405
|
+
const normalizePathTrailingSlash = (path) => {
|
|
406
|
+
if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) return path;
|
|
407
|
+
const { pathname, query, hash } = (0, _parsepath$2.parsePath)(path);
|
|
408
|
+
if (process.env.__NEXT_TRAILING_SLASH) if (/\.[^/]+\/?$/.test(pathname)) return "" + (0, _removetrailingslash$1.removeTrailingSlash)(pathname) + query + hash;
|
|
409
|
+
else if (pathname.endsWith("/")) return "" + pathname + query + hash;
|
|
410
|
+
else return pathname + "/" + query + hash;
|
|
411
|
+
return "" + (0, _removetrailingslash$1.removeTrailingSlash)(pathname) + query + hash;
|
|
412
|
+
};
|
|
413
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
414
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
415
|
+
Object.assign(exports.default, exports);
|
|
416
|
+
module.exports = exports.default;
|
|
417
|
+
}
|
|
418
|
+
}) });
|
|
419
|
+
|
|
420
|
+
//#endregion
|
|
421
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
422
|
+
var require_path_has_prefix = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js": ((exports) => {
|
|
423
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
424
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
425
|
+
enumerable: true,
|
|
426
|
+
get: function() {
|
|
427
|
+
return pathHasPrefix;
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
const _parsepath$1 = require_parse_path();
|
|
431
|
+
function pathHasPrefix(path, prefix) {
|
|
432
|
+
if (typeof path !== "string") return false;
|
|
433
|
+
const { pathname } = (0, _parsepath$1.parsePath)(path);
|
|
434
|
+
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
435
|
+
}
|
|
436
|
+
}) });
|
|
437
|
+
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region ../../node_modules/next/dist/client/has-base-path.js
|
|
440
|
+
var require_has_base_path = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/has-base-path.js": ((exports, module) => {
|
|
441
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
442
|
+
Object.defineProperty(exports, "hasBasePath", {
|
|
443
|
+
enumerable: true,
|
|
444
|
+
get: function() {
|
|
445
|
+
return hasBasePath;
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
const _pathhasprefix$1 = require_path_has_prefix();
|
|
449
|
+
const basePath$2 = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
450
|
+
function hasBasePath(path) {
|
|
451
|
+
return (0, _pathhasprefix$1.pathHasPrefix)(path, basePath$2);
|
|
452
|
+
}
|
|
453
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
454
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
455
|
+
Object.assign(exports.default, exports);
|
|
456
|
+
module.exports = exports.default;
|
|
457
|
+
}
|
|
458
|
+
}) });
|
|
459
|
+
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/is-local-url.js
|
|
462
|
+
var require_is_local_url = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/is-local-url.js": ((exports) => {
|
|
463
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
464
|
+
Object.defineProperty(exports, "isLocalURL", {
|
|
465
|
+
enumerable: true,
|
|
466
|
+
get: function() {
|
|
467
|
+
return isLocalURL;
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
const _utils$3 = require_utils$1();
|
|
471
|
+
const _hasbasepath = require_has_base_path();
|
|
472
|
+
function isLocalURL(url) {
|
|
473
|
+
if (!(0, _utils$3.isAbsoluteUrl)(url)) return true;
|
|
474
|
+
try {
|
|
475
|
+
const locationOrigin = (0, _utils$3.getLocationOrigin)();
|
|
476
|
+
const resolved = new URL(url, locationOrigin);
|
|
477
|
+
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
|
478
|
+
} catch (_) {
|
|
479
|
+
return false;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}) });
|
|
483
|
+
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
|
|
486
|
+
var require_sorted_routes = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js": ((exports) => {
|
|
487
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
488
|
+
function _export$8(target, all) {
|
|
489
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
get: all[name]
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
_export$8(exports, {
|
|
495
|
+
getSortedRouteObjects: function() {
|
|
496
|
+
return getSortedRouteObjects;
|
|
497
|
+
},
|
|
498
|
+
getSortedRoutes: function() {
|
|
499
|
+
return getSortedRoutes;
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
var UrlNode = class UrlNode {
|
|
503
|
+
insert(urlPath) {
|
|
504
|
+
this._insert(urlPath.split("/").filter(Boolean), [], false);
|
|
505
|
+
}
|
|
506
|
+
smoosh() {
|
|
507
|
+
return this._smoosh();
|
|
508
|
+
}
|
|
509
|
+
_smoosh(prefix) {
|
|
510
|
+
if (prefix === void 0) prefix = "/";
|
|
511
|
+
const childrenPaths = [...this.children.keys()].sort();
|
|
512
|
+
if (this.slugName !== null) childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
|
|
513
|
+
if (this.restSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
|
|
514
|
+
if (this.optionalRestSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
|
|
515
|
+
const routes = childrenPaths.map((c) => this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr) => [...prev, ...curr], []);
|
|
516
|
+
if (this.slugName !== null) routes.push(...this.children.get("[]")._smoosh(prefix + "[" + this.slugName + "]/"));
|
|
517
|
+
if (!this.placeholder) {
|
|
518
|
+
const r = prefix === "/" ? "/" : prefix.slice(0, -1);
|
|
519
|
+
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot define a route with the same specificity as a optional catch-all route (\"" + r + "\" and \"" + r + "[[..." + this.optionalRestSlugName + "]]\")."), "__NEXT_ERROR_CODE", {
|
|
520
|
+
value: "E458",
|
|
521
|
+
enumerable: false,
|
|
522
|
+
configurable: true
|
|
523
|
+
});
|
|
524
|
+
routes.unshift(r);
|
|
525
|
+
}
|
|
526
|
+
if (this.restSlugName !== null) routes.push(...this.children.get("[...]")._smoosh(prefix + "[..." + this.restSlugName + "]/"));
|
|
527
|
+
if (this.optionalRestSlugName !== null) routes.push(...this.children.get("[[...]]")._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
|
|
528
|
+
return routes;
|
|
529
|
+
}
|
|
530
|
+
_insert(urlPaths, slugNames, isCatchAll) {
|
|
531
|
+
if (urlPaths.length === 0) {
|
|
532
|
+
this.placeholder = false;
|
|
533
|
+
return;
|
|
534
|
+
}
|
|
535
|
+
if (isCatchAll) throw Object.defineProperty(/* @__PURE__ */ new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
|
|
536
|
+
value: "E392",
|
|
537
|
+
enumerable: false,
|
|
538
|
+
configurable: true
|
|
539
|
+
});
|
|
540
|
+
let nextSegment = urlPaths[0];
|
|
541
|
+
if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
|
|
542
|
+
let segmentName = nextSegment.slice(1, -1);
|
|
543
|
+
let isOptional = false;
|
|
544
|
+
if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
|
|
545
|
+
segmentName = segmentName.slice(1, -1);
|
|
546
|
+
isOptional = true;
|
|
547
|
+
}
|
|
548
|
+
if (segmentName.startsWith("…")) throw Object.defineProperty(/* @__PURE__ */ new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
|
|
549
|
+
value: "E147",
|
|
550
|
+
enumerable: false,
|
|
551
|
+
configurable: true
|
|
552
|
+
});
|
|
553
|
+
if (segmentName.startsWith("...")) {
|
|
554
|
+
segmentName = segmentName.substring(3);
|
|
555
|
+
isCatchAll = true;
|
|
556
|
+
}
|
|
557
|
+
if (segmentName.startsWith("[") || segmentName.endsWith("]")) throw Object.defineProperty(/* @__PURE__ */ new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
|
|
558
|
+
value: "E421",
|
|
559
|
+
enumerable: false,
|
|
560
|
+
configurable: true
|
|
561
|
+
});
|
|
562
|
+
if (segmentName.startsWith(".")) throw Object.defineProperty(/* @__PURE__ */ new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
|
|
563
|
+
value: "E288",
|
|
564
|
+
enumerable: false,
|
|
565
|
+
configurable: true
|
|
566
|
+
});
|
|
567
|
+
function handleSlug(previousSlug, nextSlug) {
|
|
568
|
+
if (previousSlug !== null) {
|
|
569
|
+
if (previousSlug !== nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
|
|
570
|
+
value: "E337",
|
|
571
|
+
enumerable: false,
|
|
572
|
+
configurable: true
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
slugNames.forEach((slug) => {
|
|
576
|
+
if (slug === nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot have the same slug name \"" + nextSlug + "\" repeat within a single dynamic path"), "__NEXT_ERROR_CODE", {
|
|
577
|
+
value: "E247",
|
|
578
|
+
enumerable: false,
|
|
579
|
+
configurable: true
|
|
580
|
+
});
|
|
581
|
+
if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot have the slug names \"" + slug + "\" and \"" + nextSlug + "\" differ only by non-word symbols within a single dynamic path"), "__NEXT_ERROR_CODE", {
|
|
582
|
+
value: "E499",
|
|
583
|
+
enumerable: false,
|
|
584
|
+
configurable: true
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
slugNames.push(nextSlug);
|
|
588
|
+
}
|
|
589
|
+
if (isCatchAll) if (isOptional) {
|
|
590
|
+
if (this.restSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot use both an required and optional catch-all route at the same level (\"[..." + this.restSlugName + "]\" and \"" + urlPaths[0] + "\" )."), "__NEXT_ERROR_CODE", {
|
|
591
|
+
value: "E299",
|
|
592
|
+
enumerable: false,
|
|
593
|
+
configurable: true
|
|
594
|
+
});
|
|
595
|
+
handleSlug(this.optionalRestSlugName, segmentName);
|
|
596
|
+
this.optionalRestSlugName = segmentName;
|
|
597
|
+
nextSegment = "[[...]]";
|
|
598
|
+
} else {
|
|
599
|
+
if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error("You cannot use both an optional and required catch-all route at the same level (\"[[..." + this.optionalRestSlugName + "]]\" and \"" + urlPaths[0] + "\")."), "__NEXT_ERROR_CODE", {
|
|
600
|
+
value: "E300",
|
|
601
|
+
enumerable: false,
|
|
602
|
+
configurable: true
|
|
603
|
+
});
|
|
604
|
+
handleSlug(this.restSlugName, segmentName);
|
|
605
|
+
this.restSlugName = segmentName;
|
|
606
|
+
nextSegment = "[...]";
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
if (isOptional) throw Object.defineProperty(/* @__PURE__ */ new Error("Optional route parameters are not yet supported (\"" + urlPaths[0] + "\")."), "__NEXT_ERROR_CODE", {
|
|
610
|
+
value: "E435",
|
|
611
|
+
enumerable: false,
|
|
612
|
+
configurable: true
|
|
613
|
+
});
|
|
614
|
+
handleSlug(this.slugName, segmentName);
|
|
615
|
+
this.slugName = segmentName;
|
|
616
|
+
nextSegment = "[]";
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
if (!this.children.has(nextSegment)) this.children.set(nextSegment, new UrlNode());
|
|
620
|
+
this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
|
|
621
|
+
}
|
|
622
|
+
constructor() {
|
|
623
|
+
this.placeholder = true;
|
|
624
|
+
this.children = /* @__PURE__ */ new Map();
|
|
625
|
+
this.slugName = null;
|
|
626
|
+
this.restSlugName = null;
|
|
627
|
+
this.optionalRestSlugName = null;
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
function getSortedRoutes(normalizedPages) {
|
|
631
|
+
const root = new UrlNode();
|
|
632
|
+
normalizedPages.forEach((pagePath) => root.insert(pagePath));
|
|
633
|
+
return root.smoosh();
|
|
634
|
+
}
|
|
635
|
+
function getSortedRouteObjects(objects, getter) {
|
|
636
|
+
const indexes = {};
|
|
637
|
+
const pathnames = [];
|
|
638
|
+
for (let i = 0; i < objects.length; i++) {
|
|
639
|
+
const pathname = getter(objects[i]);
|
|
640
|
+
indexes[pathname] = i;
|
|
641
|
+
pathnames[i] = pathname;
|
|
642
|
+
}
|
|
643
|
+
return getSortedRoutes(pathnames).map((pathname) => objects[indexes[pathname]]);
|
|
644
|
+
}
|
|
645
|
+
}) });
|
|
646
|
+
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region ../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
|
|
649
|
+
var require_ensure_leading_slash = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js": ((exports) => {
|
|
650
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
651
|
+
Object.defineProperty(exports, "ensureLeadingSlash", {
|
|
652
|
+
enumerable: true,
|
|
653
|
+
get: function() {
|
|
654
|
+
return ensureLeadingSlash;
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
function ensureLeadingSlash(path) {
|
|
658
|
+
return path.startsWith("/") ? path : "/" + path;
|
|
659
|
+
}
|
|
660
|
+
}) });
|
|
661
|
+
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region ../../node_modules/next/dist/shared/lib/segment.js
|
|
664
|
+
var require_segment = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/segment.js": ((exports) => {
|
|
665
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
666
|
+
function _export$7(target, all) {
|
|
667
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
668
|
+
enumerable: true,
|
|
669
|
+
get: all[name]
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
_export$7(exports, {
|
|
673
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
674
|
+
return DEFAULT_SEGMENT_KEY;
|
|
675
|
+
},
|
|
676
|
+
PAGE_SEGMENT_KEY: function() {
|
|
677
|
+
return PAGE_SEGMENT_KEY;
|
|
678
|
+
},
|
|
679
|
+
addSearchParamsIfPageSegment: function() {
|
|
680
|
+
return addSearchParamsIfPageSegment;
|
|
681
|
+
},
|
|
682
|
+
isGroupSegment: function() {
|
|
683
|
+
return isGroupSegment;
|
|
684
|
+
},
|
|
685
|
+
isParallelRouteSegment: function() {
|
|
686
|
+
return isParallelRouteSegment;
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
function isGroupSegment(segment) {
|
|
690
|
+
return segment[0] === "(" && segment.endsWith(")");
|
|
691
|
+
}
|
|
692
|
+
function isParallelRouteSegment(segment) {
|
|
693
|
+
return segment.startsWith("@") && segment !== "@children";
|
|
694
|
+
}
|
|
695
|
+
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
696
|
+
if (segment.includes(PAGE_SEGMENT_KEY)) {
|
|
697
|
+
const stringifiedQuery = JSON.stringify(searchParams);
|
|
698
|
+
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
699
|
+
}
|
|
700
|
+
return segment;
|
|
701
|
+
}
|
|
702
|
+
const PAGE_SEGMENT_KEY = "__PAGE__";
|
|
703
|
+
const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
704
|
+
}) });
|
|
705
|
+
|
|
706
|
+
//#endregion
|
|
707
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/app-paths.js
|
|
708
|
+
var require_app_paths = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/app-paths.js": ((exports) => {
|
|
709
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
710
|
+
function _export$6(target, all) {
|
|
711
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
712
|
+
enumerable: true,
|
|
713
|
+
get: all[name]
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
_export$6(exports, {
|
|
717
|
+
normalizeAppPath: function() {
|
|
718
|
+
return normalizeAppPath;
|
|
719
|
+
},
|
|
720
|
+
normalizeRscURL: function() {
|
|
721
|
+
return normalizeRscURL;
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
const _ensureleadingslash = require_ensure_leading_slash();
|
|
725
|
+
const _segment = require_segment();
|
|
726
|
+
function normalizeAppPath(route) {
|
|
727
|
+
return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment, index, segments) => {
|
|
728
|
+
if (!segment) return pathname;
|
|
729
|
+
if ((0, _segment.isGroupSegment)(segment)) return pathname;
|
|
730
|
+
if (segment[0] === "@") return pathname;
|
|
731
|
+
if ((segment === "page" || segment === "route") && index === segments.length - 1) return pathname;
|
|
732
|
+
return pathname + "/" + segment;
|
|
733
|
+
}, ""));
|
|
734
|
+
}
|
|
735
|
+
function normalizeRscURL(url) {
|
|
736
|
+
return url.replace(/\.rsc($|\?)/, "$1");
|
|
737
|
+
}
|
|
738
|
+
}) });
|
|
739
|
+
|
|
740
|
+
//#endregion
|
|
741
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js
|
|
742
|
+
var require_interception_routes = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js": ((exports) => {
|
|
743
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
744
|
+
function _export$5(target, all) {
|
|
745
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
746
|
+
enumerable: true,
|
|
747
|
+
get: all[name]
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
_export$5(exports, {
|
|
751
|
+
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
752
|
+
return INTERCEPTION_ROUTE_MARKERS;
|
|
753
|
+
},
|
|
754
|
+
extractInterceptionRouteInformation: function() {
|
|
755
|
+
return extractInterceptionRouteInformation;
|
|
756
|
+
},
|
|
757
|
+
isInterceptionRouteAppPath: function() {
|
|
758
|
+
return isInterceptionRouteAppPath;
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
const _apppaths = require_app_paths();
|
|
762
|
+
const INTERCEPTION_ROUTE_MARKERS = [
|
|
763
|
+
"(..)(..)",
|
|
764
|
+
"(.)",
|
|
765
|
+
"(..)",
|
|
766
|
+
"(...)"
|
|
767
|
+
];
|
|
768
|
+
function isInterceptionRouteAppPath(path) {
|
|
769
|
+
return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== void 0;
|
|
770
|
+
}
|
|
771
|
+
function extractInterceptionRouteInformation(path) {
|
|
772
|
+
let interceptingRoute, marker, interceptedRoute;
|
|
773
|
+
for (const segment of path.split("/")) {
|
|
774
|
+
marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
775
|
+
if (marker) {
|
|
776
|
+
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
if (!interceptingRoute || !marker || !interceptedRoute) throw Object.defineProperty(/* @__PURE__ */ new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
|
|
781
|
+
value: "E269",
|
|
782
|
+
enumerable: false,
|
|
783
|
+
configurable: true
|
|
784
|
+
});
|
|
785
|
+
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
|
|
786
|
+
switch (marker) {
|
|
787
|
+
case "(.)":
|
|
788
|
+
if (interceptingRoute === "/") interceptedRoute = "/" + interceptedRoute;
|
|
789
|
+
else interceptedRoute = interceptingRoute + "/" + interceptedRoute;
|
|
790
|
+
break;
|
|
791
|
+
case "(..)":
|
|
792
|
+
if (interceptingRoute === "/") throw Object.defineProperty(/* @__PURE__ */ new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
|
|
793
|
+
value: "E207",
|
|
794
|
+
enumerable: false,
|
|
795
|
+
configurable: true
|
|
796
|
+
});
|
|
797
|
+
interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
|
|
798
|
+
break;
|
|
799
|
+
case "(...)":
|
|
800
|
+
interceptedRoute = "/" + interceptedRoute;
|
|
801
|
+
break;
|
|
802
|
+
case "(..)(..)":
|
|
803
|
+
const splitInterceptingRoute = interceptingRoute.split("/");
|
|
804
|
+
if (splitInterceptingRoute.length <= 2) throw Object.defineProperty(/* @__PURE__ */ new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
|
|
805
|
+
value: "E486",
|
|
806
|
+
enumerable: false,
|
|
807
|
+
configurable: true
|
|
808
|
+
});
|
|
809
|
+
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
|
|
810
|
+
break;
|
|
811
|
+
default: throw Object.defineProperty(/* @__PURE__ */ new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
812
|
+
value: "E112",
|
|
813
|
+
enumerable: false,
|
|
814
|
+
configurable: true
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
interceptingRoute,
|
|
819
|
+
interceptedRoute
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
}) });
|
|
823
|
+
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
|
|
826
|
+
var require_is_dynamic = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js": ((exports) => {
|
|
827
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
828
|
+
Object.defineProperty(exports, "isDynamicRoute", {
|
|
829
|
+
enumerable: true,
|
|
830
|
+
get: function() {
|
|
831
|
+
return isDynamicRoute;
|
|
832
|
+
}
|
|
833
|
+
});
|
|
834
|
+
const _interceptionroutes$1 = require_interception_routes();
|
|
835
|
+
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
836
|
+
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
837
|
+
function isDynamicRoute(route, strict) {
|
|
838
|
+
if (strict === void 0) strict = true;
|
|
839
|
+
if ((0, _interceptionroutes$1.isInterceptionRouteAppPath)(route)) route = (0, _interceptionroutes$1.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
840
|
+
if (strict) return TEST_STRICT_ROUTE.test(route);
|
|
841
|
+
return TEST_ROUTE.test(route);
|
|
842
|
+
}
|
|
843
|
+
}) });
|
|
844
|
+
|
|
845
|
+
//#endregion
|
|
846
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/index.js
|
|
847
|
+
var require_utils = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/index.js": ((exports) => {
|
|
848
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
849
|
+
function _export$4(target, all) {
|
|
850
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
851
|
+
enumerable: true,
|
|
852
|
+
get: all[name]
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
_export$4(exports, {
|
|
856
|
+
getSortedRouteObjects: function() {
|
|
857
|
+
return _sortedroutes.getSortedRouteObjects;
|
|
858
|
+
},
|
|
859
|
+
getSortedRoutes: function() {
|
|
860
|
+
return _sortedroutes.getSortedRoutes;
|
|
861
|
+
},
|
|
862
|
+
isDynamicRoute: function() {
|
|
863
|
+
return _isdynamic.isDynamicRoute;
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
const _sortedroutes = require_sorted_routes();
|
|
867
|
+
const _isdynamic = require_is_dynamic();
|
|
868
|
+
}) });
|
|
869
|
+
|
|
870
|
+
//#endregion
|
|
871
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js
|
|
872
|
+
var require_route_matcher = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js": ((exports) => {
|
|
873
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
874
|
+
Object.defineProperty(exports, "getRouteMatcher", {
|
|
875
|
+
enumerable: true,
|
|
876
|
+
get: function() {
|
|
877
|
+
return getRouteMatcher;
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
const _utils$2 = require_utils$1();
|
|
881
|
+
function getRouteMatcher(param) {
|
|
882
|
+
let { re, groups } = param;
|
|
883
|
+
return (pathname) => {
|
|
884
|
+
const routeMatch = re.exec(pathname);
|
|
885
|
+
if (!routeMatch) return false;
|
|
886
|
+
const decode = (param$1) => {
|
|
887
|
+
try {
|
|
888
|
+
return decodeURIComponent(param$1);
|
|
889
|
+
} catch (e) {
|
|
890
|
+
throw Object.defineProperty(new _utils$2.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
|
|
891
|
+
value: "E528",
|
|
892
|
+
enumerable: false,
|
|
893
|
+
configurable: true
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
const params = {};
|
|
898
|
+
for (const [key, group] of Object.entries(groups)) {
|
|
899
|
+
const match = routeMatch[group.pos];
|
|
900
|
+
if (match !== void 0) if (group.repeat) params[key] = match.split("/").map((entry) => decode(entry));
|
|
901
|
+
else params[key] = decode(match);
|
|
902
|
+
}
|
|
903
|
+
return params;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
}) });
|
|
907
|
+
|
|
908
|
+
//#endregion
|
|
909
|
+
//#region ../../node_modules/next/dist/lib/constants.js
|
|
910
|
+
var require_constants = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/lib/constants.js": ((exports) => {
|
|
911
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
912
|
+
function _export$3(target, all) {
|
|
913
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
914
|
+
enumerable: true,
|
|
915
|
+
get: all[name]
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
_export$3(exports, {
|
|
919
|
+
ACTION_SUFFIX: function() {
|
|
920
|
+
return ACTION_SUFFIX;
|
|
921
|
+
},
|
|
922
|
+
APP_DIR_ALIAS: function() {
|
|
923
|
+
return APP_DIR_ALIAS;
|
|
924
|
+
},
|
|
925
|
+
CACHE_ONE_YEAR: function() {
|
|
926
|
+
return CACHE_ONE_YEAR;
|
|
927
|
+
},
|
|
928
|
+
DOT_NEXT_ALIAS: function() {
|
|
929
|
+
return DOT_NEXT_ALIAS;
|
|
930
|
+
},
|
|
931
|
+
ESLINT_DEFAULT_DIRS: function() {
|
|
932
|
+
return ESLINT_DEFAULT_DIRS;
|
|
933
|
+
},
|
|
934
|
+
GSP_NO_RETURNED_VALUE: function() {
|
|
935
|
+
return GSP_NO_RETURNED_VALUE;
|
|
936
|
+
},
|
|
937
|
+
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
938
|
+
return GSSP_COMPONENT_MEMBER_ERROR;
|
|
939
|
+
},
|
|
940
|
+
GSSP_NO_RETURNED_VALUE: function() {
|
|
941
|
+
return GSSP_NO_RETURNED_VALUE;
|
|
942
|
+
},
|
|
943
|
+
INFINITE_CACHE: function() {
|
|
944
|
+
return INFINITE_CACHE;
|
|
945
|
+
},
|
|
946
|
+
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
947
|
+
return INSTRUMENTATION_HOOK_FILENAME;
|
|
948
|
+
},
|
|
949
|
+
MATCHED_PATH_HEADER: function() {
|
|
950
|
+
return MATCHED_PATH_HEADER;
|
|
951
|
+
},
|
|
952
|
+
MIDDLEWARE_FILENAME: function() {
|
|
953
|
+
return MIDDLEWARE_FILENAME;
|
|
954
|
+
},
|
|
955
|
+
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
956
|
+
return MIDDLEWARE_LOCATION_REGEXP;
|
|
957
|
+
},
|
|
958
|
+
NEXT_BODY_SUFFIX: function() {
|
|
959
|
+
return NEXT_BODY_SUFFIX;
|
|
960
|
+
},
|
|
961
|
+
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
962
|
+
return NEXT_CACHE_IMPLICIT_TAG_ID;
|
|
963
|
+
},
|
|
964
|
+
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
965
|
+
return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
|
|
966
|
+
},
|
|
967
|
+
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
968
|
+
return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
|
|
969
|
+
},
|
|
970
|
+
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
971
|
+
return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
|
|
972
|
+
},
|
|
973
|
+
NEXT_CACHE_TAGS_HEADER: function() {
|
|
974
|
+
return NEXT_CACHE_TAGS_HEADER;
|
|
975
|
+
},
|
|
976
|
+
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
977
|
+
return NEXT_CACHE_TAG_MAX_ITEMS;
|
|
978
|
+
},
|
|
979
|
+
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
980
|
+
return NEXT_CACHE_TAG_MAX_LENGTH;
|
|
981
|
+
},
|
|
982
|
+
NEXT_DATA_SUFFIX: function() {
|
|
983
|
+
return NEXT_DATA_SUFFIX;
|
|
984
|
+
},
|
|
985
|
+
NEXT_INTERCEPTION_MARKER_PREFIX: function() {
|
|
986
|
+
return NEXT_INTERCEPTION_MARKER_PREFIX;
|
|
987
|
+
},
|
|
988
|
+
NEXT_META_SUFFIX: function() {
|
|
989
|
+
return NEXT_META_SUFFIX;
|
|
990
|
+
},
|
|
991
|
+
NEXT_QUERY_PARAM_PREFIX: function() {
|
|
992
|
+
return NEXT_QUERY_PARAM_PREFIX;
|
|
993
|
+
},
|
|
994
|
+
NEXT_RESUME_HEADER: function() {
|
|
995
|
+
return NEXT_RESUME_HEADER;
|
|
996
|
+
},
|
|
997
|
+
NON_STANDARD_NODE_ENV: function() {
|
|
998
|
+
return NON_STANDARD_NODE_ENV;
|
|
999
|
+
},
|
|
1000
|
+
PAGES_DIR_ALIAS: function() {
|
|
1001
|
+
return PAGES_DIR_ALIAS;
|
|
1002
|
+
},
|
|
1003
|
+
PRERENDER_REVALIDATE_HEADER: function() {
|
|
1004
|
+
return PRERENDER_REVALIDATE_HEADER;
|
|
1005
|
+
},
|
|
1006
|
+
PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
|
|
1007
|
+
return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
|
|
1008
|
+
},
|
|
1009
|
+
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
1010
|
+
return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
|
|
1011
|
+
},
|
|
1012
|
+
ROOT_DIR_ALIAS: function() {
|
|
1013
|
+
return ROOT_DIR_ALIAS;
|
|
1014
|
+
},
|
|
1015
|
+
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
1016
|
+
return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
|
|
1017
|
+
},
|
|
1018
|
+
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
1019
|
+
return RSC_ACTION_ENCRYPTION_ALIAS;
|
|
1020
|
+
},
|
|
1021
|
+
RSC_ACTION_PROXY_ALIAS: function() {
|
|
1022
|
+
return RSC_ACTION_PROXY_ALIAS;
|
|
1023
|
+
},
|
|
1024
|
+
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
1025
|
+
return RSC_ACTION_VALIDATE_ALIAS;
|
|
1026
|
+
},
|
|
1027
|
+
RSC_CACHE_WRAPPER_ALIAS: function() {
|
|
1028
|
+
return RSC_CACHE_WRAPPER_ALIAS;
|
|
1029
|
+
},
|
|
1030
|
+
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
1031
|
+
return RSC_MOD_REF_PROXY_ALIAS;
|
|
1032
|
+
},
|
|
1033
|
+
RSC_PREFETCH_SUFFIX: function() {
|
|
1034
|
+
return RSC_PREFETCH_SUFFIX;
|
|
1035
|
+
},
|
|
1036
|
+
RSC_SEGMENTS_DIR_SUFFIX: function() {
|
|
1037
|
+
return RSC_SEGMENTS_DIR_SUFFIX;
|
|
1038
|
+
},
|
|
1039
|
+
RSC_SEGMENT_SUFFIX: function() {
|
|
1040
|
+
return RSC_SEGMENT_SUFFIX;
|
|
1041
|
+
},
|
|
1042
|
+
RSC_SUFFIX: function() {
|
|
1043
|
+
return RSC_SUFFIX;
|
|
1044
|
+
},
|
|
1045
|
+
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
1046
|
+
return SERVER_PROPS_EXPORT_ERROR;
|
|
1047
|
+
},
|
|
1048
|
+
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
1049
|
+
return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
|
|
1050
|
+
},
|
|
1051
|
+
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
1052
|
+
return SERVER_PROPS_SSG_CONFLICT;
|
|
1053
|
+
},
|
|
1054
|
+
SERVER_RUNTIME: function() {
|
|
1055
|
+
return SERVER_RUNTIME;
|
|
1056
|
+
},
|
|
1057
|
+
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
1058
|
+
return SSG_FALLBACK_EXPORT_ERROR;
|
|
1059
|
+
},
|
|
1060
|
+
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
1061
|
+
return SSG_GET_INITIAL_PROPS_CONFLICT;
|
|
1062
|
+
},
|
|
1063
|
+
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
1064
|
+
return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
|
|
1065
|
+
},
|
|
1066
|
+
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
1067
|
+
return UNSTABLE_REVALIDATE_RENAME_ERROR;
|
|
1068
|
+
},
|
|
1069
|
+
WEBPACK_LAYERS: function() {
|
|
1070
|
+
return WEBPACK_LAYERS;
|
|
1071
|
+
},
|
|
1072
|
+
WEBPACK_RESOURCE_QUERIES: function() {
|
|
1073
|
+
return WEBPACK_RESOURCE_QUERIES;
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
const NEXT_QUERY_PARAM_PREFIX = "nxtP";
|
|
1077
|
+
const NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
|
|
1078
|
+
const MATCHED_PATH_HEADER = "x-matched-path";
|
|
1079
|
+
const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
1080
|
+
const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
|
|
1081
|
+
const RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
|
|
1082
|
+
const RSC_SEGMENTS_DIR_SUFFIX = ".segments";
|
|
1083
|
+
const RSC_SEGMENT_SUFFIX = ".segment.rsc";
|
|
1084
|
+
const RSC_SUFFIX = ".rsc";
|
|
1085
|
+
const ACTION_SUFFIX = ".action";
|
|
1086
|
+
const NEXT_DATA_SUFFIX = ".json";
|
|
1087
|
+
const NEXT_META_SUFFIX = ".meta";
|
|
1088
|
+
const NEXT_BODY_SUFFIX = ".body";
|
|
1089
|
+
const NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
|
|
1090
|
+
const NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
|
|
1091
|
+
const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
|
|
1092
|
+
const NEXT_RESUME_HEADER = "next-resume";
|
|
1093
|
+
const NEXT_CACHE_TAG_MAX_ITEMS = 128;
|
|
1094
|
+
const NEXT_CACHE_TAG_MAX_LENGTH = 256;
|
|
1095
|
+
const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
|
|
1096
|
+
const NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
|
|
1097
|
+
const CACHE_ONE_YEAR = 31536e3;
|
|
1098
|
+
const INFINITE_CACHE = 4294967294;
|
|
1099
|
+
const MIDDLEWARE_FILENAME = "middleware";
|
|
1100
|
+
const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
|
|
1101
|
+
const INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
|
|
1102
|
+
const PAGES_DIR_ALIAS = "private-next-pages";
|
|
1103
|
+
const DOT_NEXT_ALIAS = "private-dot-next";
|
|
1104
|
+
const ROOT_DIR_ALIAS = "private-next-root-dir";
|
|
1105
|
+
const APP_DIR_ALIAS = "private-next-app-dir";
|
|
1106
|
+
const RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
|
|
1107
|
+
const RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
|
|
1108
|
+
const RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
|
|
1109
|
+
const RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
|
|
1110
|
+
const RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
|
|
1111
|
+
const RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
|
|
1112
|
+
const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`;
|
|
1113
|
+
const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
|
|
1114
|
+
const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
|
|
1115
|
+
const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
|
|
1116
|
+
const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
|
|
1117
|
+
const SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
|
|
1118
|
+
const GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
|
|
1119
|
+
const GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
|
|
1120
|
+
const UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
|
|
1121
|
+
const GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`;
|
|
1122
|
+
const NON_STANDARD_NODE_ENV = `You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`;
|
|
1123
|
+
const SSG_FALLBACK_EXPORT_ERROR = `Pages with \`fallback\` enabled in \`getStaticPaths\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`;
|
|
1124
|
+
const ESLINT_DEFAULT_DIRS = [
|
|
1125
|
+
"app",
|
|
1126
|
+
"pages",
|
|
1127
|
+
"components",
|
|
1128
|
+
"lib",
|
|
1129
|
+
"src"
|
|
1130
|
+
];
|
|
1131
|
+
const SERVER_RUNTIME = {
|
|
1132
|
+
edge: "edge",
|
|
1133
|
+
experimentalEdge: "experimental-edge",
|
|
1134
|
+
nodejs: "nodejs"
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* The names of the webpack layers. These layers are the primitives for the
|
|
1138
|
+
* webpack chunks.
|
|
1139
|
+
*/ const WEBPACK_LAYERS_NAMES = {
|
|
1140
|
+
shared: "shared",
|
|
1141
|
+
reactServerComponents: "rsc",
|
|
1142
|
+
serverSideRendering: "ssr",
|
|
1143
|
+
actionBrowser: "action-browser",
|
|
1144
|
+
apiNode: "api-node",
|
|
1145
|
+
apiEdge: "api-edge",
|
|
1146
|
+
middleware: "middleware",
|
|
1147
|
+
instrument: "instrument",
|
|
1148
|
+
edgeAsset: "edge-asset",
|
|
1149
|
+
appPagesBrowser: "app-pages-browser",
|
|
1150
|
+
pagesDirBrowser: "pages-dir-browser",
|
|
1151
|
+
pagesDirEdge: "pages-dir-edge",
|
|
1152
|
+
pagesDirNode: "pages-dir-node"
|
|
1153
|
+
};
|
|
1154
|
+
const WEBPACK_LAYERS = {
|
|
1155
|
+
...WEBPACK_LAYERS_NAMES,
|
|
1156
|
+
GROUP: {
|
|
1157
|
+
builtinReact: [WEBPACK_LAYERS_NAMES.reactServerComponents, WEBPACK_LAYERS_NAMES.actionBrowser],
|
|
1158
|
+
serverOnly: [
|
|
1159
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1160
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1161
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
1162
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
1163
|
+
],
|
|
1164
|
+
neutralTarget: [WEBPACK_LAYERS_NAMES.apiNode, WEBPACK_LAYERS_NAMES.apiEdge],
|
|
1165
|
+
clientOnly: [WEBPACK_LAYERS_NAMES.serverSideRendering, WEBPACK_LAYERS_NAMES.appPagesBrowser],
|
|
1166
|
+
bundled: [
|
|
1167
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1168
|
+
WEBPACK_LAYERS_NAMES.actionBrowser,
|
|
1169
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1170
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1171
|
+
WEBPACK_LAYERS_NAMES.shared,
|
|
1172
|
+
WEBPACK_LAYERS_NAMES.instrument,
|
|
1173
|
+
WEBPACK_LAYERS_NAMES.middleware
|
|
1174
|
+
],
|
|
1175
|
+
appPages: [
|
|
1176
|
+
WEBPACK_LAYERS_NAMES.reactServerComponents,
|
|
1177
|
+
WEBPACK_LAYERS_NAMES.serverSideRendering,
|
|
1178
|
+
WEBPACK_LAYERS_NAMES.appPagesBrowser,
|
|
1179
|
+
WEBPACK_LAYERS_NAMES.actionBrowser
|
|
1180
|
+
]
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
const WEBPACK_RESOURCE_QUERIES = {
|
|
1184
|
+
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
1185
|
+
metadata: "__next_metadata__",
|
|
1186
|
+
metadataRoute: "__next_metadata_route__",
|
|
1187
|
+
metadataImageMeta: "__next_metadata_image_meta__"
|
|
1188
|
+
};
|
|
1189
|
+
}) });
|
|
1190
|
+
|
|
1191
|
+
//#endregion
|
|
1192
|
+
//#region ../../node_modules/next/dist/shared/lib/escape-regexp.js
|
|
1193
|
+
var require_escape_regexp = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/escape-regexp.js": ((exports) => {
|
|
1194
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1195
|
+
Object.defineProperty(exports, "escapeStringRegexp", {
|
|
1196
|
+
enumerable: true,
|
|
1197
|
+
get: function() {
|
|
1198
|
+
return escapeStringRegexp;
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1201
|
+
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
|
1202
|
+
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
|
1203
|
+
function escapeStringRegexp(str) {
|
|
1204
|
+
if (reHasRegExp.test(str)) return str.replace(reReplaceRegExp, "\\$&");
|
|
1205
|
+
return str;
|
|
1206
|
+
}
|
|
1207
|
+
}) });
|
|
1208
|
+
|
|
1209
|
+
//#endregion
|
|
1210
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/route-regex.js
|
|
1211
|
+
var require_route_regex = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/route-regex.js": ((exports) => {
|
|
1212
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1213
|
+
function _export$2(target, all) {
|
|
1214
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1215
|
+
enumerable: true,
|
|
1216
|
+
get: all[name]
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
_export$2(exports, {
|
|
1220
|
+
getNamedMiddlewareRegex: function() {
|
|
1221
|
+
return getNamedMiddlewareRegex;
|
|
1222
|
+
},
|
|
1223
|
+
getNamedRouteRegex: function() {
|
|
1224
|
+
return getNamedRouteRegex;
|
|
1225
|
+
},
|
|
1226
|
+
getRouteRegex: function() {
|
|
1227
|
+
return getRouteRegex;
|
|
1228
|
+
},
|
|
1229
|
+
parseParameter: function() {
|
|
1230
|
+
return parseParameter;
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
const _constants = require_constants();
|
|
1234
|
+
const _interceptionroutes = require_interception_routes();
|
|
1235
|
+
const _escaperegexp = require_escape_regexp();
|
|
1236
|
+
const _removetrailingslash = require_remove_trailing_slash();
|
|
1237
|
+
/**
|
|
1238
|
+
* Regular expression pattern used to match route parameters.
|
|
1239
|
+
* Matches both single parameters and parameter groups.
|
|
1240
|
+
* Examples:
|
|
1241
|
+
* - `[[...slug]]` matches parameter group with key 'slug', repeat: true, optional: true
|
|
1242
|
+
* - `[...slug]` matches parameter group with key 'slug', repeat: true, optional: false
|
|
1243
|
+
* - `[[foo]]` matches parameter with key 'foo', repeat: false, optional: true
|
|
1244
|
+
* - `[bar]` matches parameter with key 'bar', repeat: false, optional: false
|
|
1245
|
+
*/ const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
1246
|
+
function parseParameter(param) {
|
|
1247
|
+
const match = param.match(PARAMETER_PATTERN);
|
|
1248
|
+
if (!match) return parseMatchedParameter(param);
|
|
1249
|
+
return parseMatchedParameter(match[2]);
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Parses a matched parameter from the PARAMETER_PATTERN regex to a data structure that can be used
|
|
1253
|
+
* to generate the parametrized route.
|
|
1254
|
+
* Examples:
|
|
1255
|
+
* - `[...slug]` -> `{ key: 'slug', repeat: true, optional: true }`
|
|
1256
|
+
* - `...slug` -> `{ key: 'slug', repeat: true, optional: false }`
|
|
1257
|
+
* - `[foo]` -> `{ key: 'foo', repeat: false, optional: true }`
|
|
1258
|
+
* - `bar` -> `{ key: 'bar', repeat: false, optional: false }`
|
|
1259
|
+
* @param param - The matched parameter to parse.
|
|
1260
|
+
* @returns The parsed parameter as a data structure.
|
|
1261
|
+
*/ function parseMatchedParameter(param) {
|
|
1262
|
+
const optional = param.startsWith("[") && param.endsWith("]");
|
|
1263
|
+
if (optional) param = param.slice(1, -1);
|
|
1264
|
+
const repeat = param.startsWith("...");
|
|
1265
|
+
if (repeat) param = param.slice(3);
|
|
1266
|
+
return {
|
|
1267
|
+
key: param,
|
|
1268
|
+
repeat,
|
|
1269
|
+
optional
|
|
1270
|
+
};
|
|
1271
|
+
}
|
|
1272
|
+
function getParametrizedRoute(route, includeSuffix, includePrefix) {
|
|
1273
|
+
const groups = {};
|
|
1274
|
+
let groupIndex = 1;
|
|
1275
|
+
const segments = [];
|
|
1276
|
+
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1277
|
+
const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
1278
|
+
const paramMatches = segment.match(PARAMETER_PATTERN);
|
|
1279
|
+
if (markerMatch && paramMatches && paramMatches[2]) {
|
|
1280
|
+
const { key, optional, repeat } = parseMatchedParameter(paramMatches[2]);
|
|
1281
|
+
groups[key] = {
|
|
1282
|
+
pos: groupIndex++,
|
|
1283
|
+
repeat,
|
|
1284
|
+
optional
|
|
1285
|
+
};
|
|
1286
|
+
segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(markerMatch) + "([^/]+?)");
|
|
1287
|
+
} else if (paramMatches && paramMatches[2]) {
|
|
1288
|
+
const { key, repeat, optional } = parseMatchedParameter(paramMatches[2]);
|
|
1289
|
+
groups[key] = {
|
|
1290
|
+
pos: groupIndex++,
|
|
1291
|
+
repeat,
|
|
1292
|
+
optional
|
|
1293
|
+
};
|
|
1294
|
+
if (includePrefix && paramMatches[1]) segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
|
|
1295
|
+
let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
1296
|
+
if (includePrefix && paramMatches[1]) s = s.substring(1);
|
|
1297
|
+
segments.push(s);
|
|
1298
|
+
} else segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment));
|
|
1299
|
+
if (includeSuffix && paramMatches && paramMatches[3]) segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
1300
|
+
}
|
|
1301
|
+
return {
|
|
1302
|
+
parameterizedRoute: segments.join(""),
|
|
1303
|
+
groups
|
|
1304
|
+
};
|
|
1305
|
+
}
|
|
1306
|
+
function getRouteRegex(normalizedRoute, param) {
|
|
1307
|
+
let { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = param === void 0 ? {} : param;
|
|
1308
|
+
const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
|
|
1309
|
+
let re = parameterizedRoute;
|
|
1310
|
+
if (!excludeOptionalTrailingSlash) re += "(?:/)?";
|
|
1311
|
+
return {
|
|
1312
|
+
re: /* @__PURE__ */ new RegExp("^" + re + "$"),
|
|
1313
|
+
groups
|
|
1314
|
+
};
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Builds a function to generate a minimal routeKey using only a-z and minimal
|
|
1318
|
+
* number of characters.
|
|
1319
|
+
*/ function buildGetSafeRouteKey() {
|
|
1320
|
+
let i = 0;
|
|
1321
|
+
return () => {
|
|
1322
|
+
let routeKey = "";
|
|
1323
|
+
let j = ++i;
|
|
1324
|
+
while (j > 0) {
|
|
1325
|
+
routeKey += String.fromCharCode(97 + (j - 1) % 26);
|
|
1326
|
+
j = Math.floor((j - 1) / 26);
|
|
1327
|
+
}
|
|
1328
|
+
return routeKey;
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
function getSafeKeyFromSegment(param) {
|
|
1332
|
+
let { interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys } = param;
|
|
1333
|
+
const { key, optional, repeat } = parseMatchedParameter(segment);
|
|
1334
|
+
let cleanedKey = key.replace(/\W/g, "");
|
|
1335
|
+
if (keyPrefix) cleanedKey = "" + keyPrefix + cleanedKey;
|
|
1336
|
+
let invalidKey = false;
|
|
1337
|
+
if (cleanedKey.length === 0 || cleanedKey.length > 30) invalidKey = true;
|
|
1338
|
+
if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) invalidKey = true;
|
|
1339
|
+
if (invalidKey) cleanedKey = getSafeRouteKey();
|
|
1340
|
+
const duplicateKey = cleanedKey in routeKeys;
|
|
1341
|
+
if (keyPrefix) routeKeys[cleanedKey] = "" + keyPrefix + key;
|
|
1342
|
+
else routeKeys[cleanedKey] = key;
|
|
1343
|
+
const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
|
|
1344
|
+
let pattern;
|
|
1345
|
+
if (duplicateKey && backreferenceDuplicateKeys) pattern = "\\k<" + cleanedKey + ">";
|
|
1346
|
+
else if (repeat) pattern = "(?<" + cleanedKey + ">.+?)";
|
|
1347
|
+
else pattern = "(?<" + cleanedKey + ">[^/]+?)";
|
|
1348
|
+
return optional ? "(?:/" + interceptionPrefix + pattern + ")?" : "/" + interceptionPrefix + pattern;
|
|
1349
|
+
}
|
|
1350
|
+
function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys) {
|
|
1351
|
+
const getSafeRouteKey = buildGetSafeRouteKey();
|
|
1352
|
+
const routeKeys = {};
|
|
1353
|
+
const segments = [];
|
|
1354
|
+
for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
|
|
1355
|
+
const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
|
|
1356
|
+
const paramMatches = segment.match(PARAMETER_PATTERN);
|
|
1357
|
+
if (hasInterceptionMarker && paramMatches && paramMatches[2]) segments.push(getSafeKeyFromSegment({
|
|
1358
|
+
getSafeRouteKey,
|
|
1359
|
+
interceptionMarker: paramMatches[1],
|
|
1360
|
+
segment: paramMatches[2],
|
|
1361
|
+
routeKeys,
|
|
1362
|
+
keyPrefix: prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
1363
|
+
backreferenceDuplicateKeys
|
|
1364
|
+
}));
|
|
1365
|
+
else if (paramMatches && paramMatches[2]) {
|
|
1366
|
+
if (includePrefix && paramMatches[1]) segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
|
|
1367
|
+
let s = getSafeKeyFromSegment({
|
|
1368
|
+
getSafeRouteKey,
|
|
1369
|
+
segment: paramMatches[2],
|
|
1370
|
+
routeKeys,
|
|
1371
|
+
keyPrefix: prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0,
|
|
1372
|
+
backreferenceDuplicateKeys
|
|
1373
|
+
});
|
|
1374
|
+
if (includePrefix && paramMatches[1]) s = s.substring(1);
|
|
1375
|
+
segments.push(s);
|
|
1376
|
+
} else segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment));
|
|
1377
|
+
if (includeSuffix && paramMatches && paramMatches[3]) segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
|
|
1378
|
+
}
|
|
1379
|
+
return {
|
|
1380
|
+
namedParameterizedRoute: segments.join(""),
|
|
1381
|
+
routeKeys
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1384
|
+
function getNamedRouteRegex(normalizedRoute, options) {
|
|
1385
|
+
var _options_includeSuffix, _options_includePrefix, _options_backreferenceDuplicateKeys;
|
|
1386
|
+
const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_options_includeSuffix = options.includeSuffix) != null ? _options_includeSuffix : false, (_options_includePrefix = options.includePrefix) != null ? _options_includePrefix : false, (_options_backreferenceDuplicateKeys = options.backreferenceDuplicateKeys) != null ? _options_backreferenceDuplicateKeys : false);
|
|
1387
|
+
let namedRegex = result.namedParameterizedRoute;
|
|
1388
|
+
if (!options.excludeOptionalTrailingSlash) namedRegex += "(?:/)?";
|
|
1389
|
+
return {
|
|
1390
|
+
...getRouteRegex(normalizedRoute, options),
|
|
1391
|
+
namedRegex: "^" + namedRegex + "$",
|
|
1392
|
+
routeKeys: result.routeKeys
|
|
1393
|
+
};
|
|
1394
|
+
}
|
|
1395
|
+
function getNamedMiddlewareRegex(normalizedRoute, options) {
|
|
1396
|
+
const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
|
|
1397
|
+
const { catchAll = true } = options;
|
|
1398
|
+
if (parameterizedRoute === "/") return { namedRegex: "^/" + (catchAll ? ".*" : "") + "$" };
|
|
1399
|
+
const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false);
|
|
1400
|
+
let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
|
|
1401
|
+
return { namedRegex: "^" + namedParameterizedRoute + catchAllGroupedRegex + "$" };
|
|
1402
|
+
}
|
|
1403
|
+
}) });
|
|
1404
|
+
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
|
|
1407
|
+
var require_interpolate_as = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/interpolate-as.js": ((exports) => {
|
|
1408
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1409
|
+
Object.defineProperty(exports, "interpolateAs", {
|
|
1410
|
+
enumerable: true,
|
|
1411
|
+
get: function() {
|
|
1412
|
+
return interpolateAs;
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
const _routematcher = require_route_matcher();
|
|
1416
|
+
const _routeregex = require_route_regex();
|
|
1417
|
+
function interpolateAs(route, asPathname, query) {
|
|
1418
|
+
let interpolatedRoute = "";
|
|
1419
|
+
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
1420
|
+
const dynamicGroups = dynamicRegex.groups;
|
|
1421
|
+
const dynamicMatches = (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || query;
|
|
1422
|
+
interpolatedRoute = route;
|
|
1423
|
+
const params = Object.keys(dynamicGroups);
|
|
1424
|
+
if (!params.every((param) => {
|
|
1425
|
+
let value = dynamicMatches[param] || "";
|
|
1426
|
+
const { repeat, optional } = dynamicGroups[param];
|
|
1427
|
+
let replaced = "[" + (repeat ? "..." : "") + param + "]";
|
|
1428
|
+
if (optional) replaced = (!value ? "/" : "") + "[" + replaced + "]";
|
|
1429
|
+
if (repeat && !Array.isArray(value)) value = [value];
|
|
1430
|
+
return (optional || param in dynamicMatches) && (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map((segment) => encodeURIComponent(segment)).join("/") : encodeURIComponent(value)) || "/");
|
|
1431
|
+
})) interpolatedRoute = "";
|
|
1432
|
+
return {
|
|
1433
|
+
params,
|
|
1434
|
+
result: interpolatedRoute
|
|
1435
|
+
};
|
|
1436
|
+
}
|
|
1437
|
+
}) });
|
|
1438
|
+
|
|
1439
|
+
//#endregion
|
|
1440
|
+
//#region ../../node_modules/next/dist/client/resolve-href.js
|
|
1441
|
+
var require_resolve_href = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/resolve-href.js": ((exports, module) => {
|
|
1442
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1443
|
+
Object.defineProperty(exports, "resolveHref", {
|
|
1444
|
+
enumerable: true,
|
|
1445
|
+
get: function() {
|
|
1446
|
+
return resolveHref;
|
|
1447
|
+
}
|
|
1448
|
+
});
|
|
1449
|
+
const _querystring = require_querystring();
|
|
1450
|
+
const _formaturl$1 = require_format_url();
|
|
1451
|
+
const _omit = require_omit();
|
|
1452
|
+
const _utils$1 = require_utils$1();
|
|
1453
|
+
const _normalizetrailingslash$3 = require_normalize_trailing_slash();
|
|
1454
|
+
const _islocalurl$1 = require_is_local_url();
|
|
1455
|
+
const _utils1 = require_utils();
|
|
1456
|
+
const _interpolateas = require_interpolate_as();
|
|
1457
|
+
function resolveHref(router, href, resolveAs) {
|
|
1458
|
+
let base;
|
|
1459
|
+
let urlAsString = typeof href === "string" ? href : (0, _formaturl$1.formatWithValidation)(href);
|
|
1460
|
+
const urlProtoMatch = urlAsString.match(/^[a-zA-Z]{1,}:\/\//);
|
|
1461
|
+
const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
|
|
1462
|
+
if ((urlAsStringNoProto.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
1463
|
+
console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
1464
|
+
const normalizedUrl = (0, _utils$1.normalizeRepeatedSlashes)(urlAsStringNoProto);
|
|
1465
|
+
urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
|
|
1466
|
+
}
|
|
1467
|
+
if (!(0, _islocalurl$1.isLocalURL)(urlAsString)) return resolveAs ? [urlAsString] : urlAsString;
|
|
1468
|
+
try {
|
|
1469
|
+
base = new URL(urlAsString.startsWith("#") ? router.asPath : router.pathname, "http://n");
|
|
1470
|
+
} catch (_) {
|
|
1471
|
+
base = new URL("/", "http://n");
|
|
1472
|
+
}
|
|
1473
|
+
try {
|
|
1474
|
+
const finalUrl = new URL(urlAsString, base);
|
|
1475
|
+
finalUrl.pathname = (0, _normalizetrailingslash$3.normalizePathTrailingSlash)(finalUrl.pathname);
|
|
1476
|
+
let interpolatedAs = "";
|
|
1477
|
+
if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
|
|
1478
|
+
const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
|
|
1479
|
+
const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
|
|
1480
|
+
if (result) interpolatedAs = (0, _formaturl$1.formatWithValidation)({
|
|
1481
|
+
pathname: result,
|
|
1482
|
+
hash: finalUrl.hash,
|
|
1483
|
+
query: (0, _omit.omit)(query, params)
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
|
|
1487
|
+
return resolveAs ? [resolvedHref, interpolatedAs || resolvedHref] : resolvedHref;
|
|
1488
|
+
} catch (_) {
|
|
1489
|
+
return resolveAs ? [urlAsString] : urlAsString;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1493
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1494
|
+
Object.assign(exports.default, exports);
|
|
1495
|
+
module.exports = exports.default;
|
|
1496
|
+
}
|
|
1497
|
+
}) });
|
|
1498
|
+
|
|
1499
|
+
//#endregion
|
|
1500
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js
|
|
1501
|
+
var require_add_path_prefix = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js": ((exports) => {
|
|
1502
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1503
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
1504
|
+
enumerable: true,
|
|
1505
|
+
get: function() {
|
|
1506
|
+
return addPathPrefix;
|
|
1507
|
+
}
|
|
1508
|
+
});
|
|
1509
|
+
const _parsepath = require_parse_path();
|
|
1510
|
+
function addPathPrefix(path, prefix) {
|
|
1511
|
+
if (!path.startsWith("/") || !prefix) return path;
|
|
1512
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
1513
|
+
return "" + prefix + pathname + query + hash;
|
|
1514
|
+
}
|
|
1515
|
+
}) });
|
|
1516
|
+
|
|
1517
|
+
//#endregion
|
|
1518
|
+
//#region ../../node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
1519
|
+
var require_add_locale$1 = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router/utils/add-locale.js": ((exports) => {
|
|
1520
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1521
|
+
Object.defineProperty(exports, "addLocale", {
|
|
1522
|
+
enumerable: true,
|
|
1523
|
+
get: function() {
|
|
1524
|
+
return addLocale$1;
|
|
1525
|
+
}
|
|
1526
|
+
});
|
|
1527
|
+
const _addpathprefix$1 = require_add_path_prefix();
|
|
1528
|
+
const _pathhasprefix = require_path_has_prefix();
|
|
1529
|
+
function addLocale$1(path, locale, defaultLocale, ignorePrefix) {
|
|
1530
|
+
if (!locale || locale === defaultLocale) return path;
|
|
1531
|
+
const lower = path.toLowerCase();
|
|
1532
|
+
if (!ignorePrefix) {
|
|
1533
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
|
1534
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
|
|
1535
|
+
}
|
|
1536
|
+
return (0, _addpathprefix$1.addPathPrefix)(path, "/" + locale);
|
|
1537
|
+
}
|
|
1538
|
+
}) });
|
|
1539
|
+
|
|
1540
|
+
//#endregion
|
|
1541
|
+
//#region ../../node_modules/next/dist/client/add-locale.js
|
|
1542
|
+
var require_add_locale = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/add-locale.js": ((exports, module) => {
|
|
1543
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1544
|
+
Object.defineProperty(exports, "addLocale", {
|
|
1545
|
+
enumerable: true,
|
|
1546
|
+
get: function() {
|
|
1547
|
+
return addLocale;
|
|
1548
|
+
}
|
|
1549
|
+
});
|
|
1550
|
+
const _normalizetrailingslash$2 = require_normalize_trailing_slash();
|
|
1551
|
+
const addLocale = function(path) {
|
|
1552
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) args[_key - 1] = arguments[_key];
|
|
1553
|
+
if (process.env.__NEXT_I18N_SUPPORT) return (0, _normalizetrailingslash$2.normalizePathTrailingSlash)(require_add_locale$1().addLocale(path, ...args));
|
|
1554
|
+
return path;
|
|
1555
|
+
};
|
|
1556
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1557
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1558
|
+
Object.assign(exports.default, exports);
|
|
1559
|
+
module.exports = exports.default;
|
|
1560
|
+
}
|
|
1561
|
+
}) });
|
|
1562
|
+
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region ../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
1565
|
+
var require__interop_require_default = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs": ((exports) => {
|
|
1566
|
+
function _interop_require_default(obj) {
|
|
1567
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
1568
|
+
}
|
|
1569
|
+
exports._ = _interop_require_default;
|
|
1570
|
+
}) });
|
|
1571
|
+
|
|
1572
|
+
//#endregion
|
|
1573
|
+
//#region ../../node_modules/next/dist/shared/lib/router-context.shared-runtime.js
|
|
1574
|
+
var require_router_context_shared_runtime = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/router-context.shared-runtime.js": ((exports) => {
|
|
1575
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1576
|
+
Object.defineProperty(exports, "RouterContext", {
|
|
1577
|
+
enumerable: true,
|
|
1578
|
+
get: function() {
|
|
1579
|
+
return RouterContext;
|
|
1580
|
+
}
|
|
1581
|
+
});
|
|
1582
|
+
const RouterContext = (/* @__PURE__ */ require__interop_require_default()._(require("react"))).default.createContext(null);
|
|
1583
|
+
if (process.env.NODE_ENV !== "production") RouterContext.displayName = "RouterContext";
|
|
1584
|
+
}) });
|
|
1585
|
+
|
|
1586
|
+
//#endregion
|
|
1587
|
+
//#region ../../node_modules/next/dist/client/request-idle-callback.js
|
|
1588
|
+
var require_request_idle_callback = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/request-idle-callback.js": ((exports, module) => {
|
|
1589
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1590
|
+
function _export$1(target, all) {
|
|
1591
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1592
|
+
enumerable: true,
|
|
1593
|
+
get: all[name]
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
_export$1(exports, {
|
|
1597
|
+
cancelIdleCallback: function() {
|
|
1598
|
+
return cancelIdleCallback;
|
|
1599
|
+
},
|
|
1600
|
+
requestIdleCallback: function() {
|
|
1601
|
+
return requestIdleCallback;
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
const requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
|
|
1605
|
+
let start = Date.now();
|
|
1606
|
+
return self.setTimeout(function() {
|
|
1607
|
+
cb({
|
|
1608
|
+
didTimeout: false,
|
|
1609
|
+
timeRemaining: function() {
|
|
1610
|
+
return Math.max(0, 50 - (Date.now() - start));
|
|
1611
|
+
}
|
|
1612
|
+
});
|
|
1613
|
+
}, 1);
|
|
1614
|
+
};
|
|
1615
|
+
const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
|
|
1616
|
+
return clearTimeout(id);
|
|
1617
|
+
};
|
|
1618
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1619
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1620
|
+
Object.assign(exports.default, exports);
|
|
1621
|
+
module.exports = exports.default;
|
|
1622
|
+
}
|
|
1623
|
+
}) });
|
|
1624
|
+
|
|
1625
|
+
//#endregion
|
|
1626
|
+
//#region ../../node_modules/next/dist/client/use-intersection.js
|
|
1627
|
+
var require_use_intersection = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/use-intersection.js": ((exports, module) => {
|
|
1628
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1629
|
+
Object.defineProperty(exports, "useIntersection", {
|
|
1630
|
+
enumerable: true,
|
|
1631
|
+
get: function() {
|
|
1632
|
+
return useIntersection;
|
|
1633
|
+
}
|
|
1634
|
+
});
|
|
1635
|
+
const _react$2 = require("react");
|
|
1636
|
+
const _requestidlecallback = require_request_idle_callback();
|
|
1637
|
+
const hasIntersectionObserver = typeof IntersectionObserver === "function";
|
|
1638
|
+
const observers = /* @__PURE__ */ new Map();
|
|
1639
|
+
const idList = [];
|
|
1640
|
+
function createObserver(options) {
|
|
1641
|
+
const id = {
|
|
1642
|
+
root: options.root || null,
|
|
1643
|
+
margin: options.rootMargin || ""
|
|
1644
|
+
};
|
|
1645
|
+
const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
|
|
1646
|
+
let instance;
|
|
1647
|
+
if (existing) {
|
|
1648
|
+
instance = observers.get(existing);
|
|
1649
|
+
if (instance) return instance;
|
|
1650
|
+
}
|
|
1651
|
+
const elements = /* @__PURE__ */ new Map();
|
|
1652
|
+
const observer = new IntersectionObserver((entries) => {
|
|
1653
|
+
entries.forEach((entry) => {
|
|
1654
|
+
const callback = elements.get(entry.target);
|
|
1655
|
+
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
|
|
1656
|
+
if (callback && isVisible) callback(isVisible);
|
|
1657
|
+
});
|
|
1658
|
+
}, options);
|
|
1659
|
+
instance = {
|
|
1660
|
+
id,
|
|
1661
|
+
observer,
|
|
1662
|
+
elements
|
|
1663
|
+
};
|
|
1664
|
+
idList.push(id);
|
|
1665
|
+
observers.set(id, instance);
|
|
1666
|
+
return instance;
|
|
1667
|
+
}
|
|
1668
|
+
function observe(element, callback, options) {
|
|
1669
|
+
const { id, observer, elements } = createObserver(options);
|
|
1670
|
+
elements.set(element, callback);
|
|
1671
|
+
observer.observe(element);
|
|
1672
|
+
return function unobserve() {
|
|
1673
|
+
elements.delete(element);
|
|
1674
|
+
observer.unobserve(element);
|
|
1675
|
+
if (elements.size === 0) {
|
|
1676
|
+
observer.disconnect();
|
|
1677
|
+
observers.delete(id);
|
|
1678
|
+
const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
|
|
1679
|
+
if (index > -1) idList.splice(index, 1);
|
|
1680
|
+
}
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
function useIntersection(param) {
|
|
1684
|
+
let { rootRef, rootMargin, disabled } = param;
|
|
1685
|
+
const isDisabled = disabled || !hasIntersectionObserver;
|
|
1686
|
+
const [visible, setVisible] = (0, _react$2.useState)(false);
|
|
1687
|
+
const elementRef = (0, _react$2.useRef)(null);
|
|
1688
|
+
const setElement = (0, _react$2.useCallback)((element) => {
|
|
1689
|
+
elementRef.current = element;
|
|
1690
|
+
}, []);
|
|
1691
|
+
(0, _react$2.useEffect)(() => {
|
|
1692
|
+
if (hasIntersectionObserver) {
|
|
1693
|
+
if (isDisabled || visible) return;
|
|
1694
|
+
const element = elementRef.current;
|
|
1695
|
+
if (element && element.tagName) return observe(element, (isVisible) => isVisible && setVisible(isVisible), {
|
|
1696
|
+
root: rootRef == null ? void 0 : rootRef.current,
|
|
1697
|
+
rootMargin
|
|
1698
|
+
});
|
|
1699
|
+
} else if (!visible) {
|
|
1700
|
+
const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
|
|
1701
|
+
return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
|
|
1702
|
+
}
|
|
1703
|
+
}, [
|
|
1704
|
+
isDisabled,
|
|
1705
|
+
rootMargin,
|
|
1706
|
+
rootRef,
|
|
1707
|
+
visible,
|
|
1708
|
+
elementRef.current
|
|
1709
|
+
]);
|
|
1710
|
+
const resetVisible = (0, _react$2.useCallback)(() => {
|
|
1711
|
+
setVisible(false);
|
|
1712
|
+
}, []);
|
|
1713
|
+
return [
|
|
1714
|
+
setElement,
|
|
1715
|
+
visible,
|
|
1716
|
+
resetVisible
|
|
1717
|
+
];
|
|
1718
|
+
}
|
|
1719
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1720
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1721
|
+
Object.assign(exports.default, exports);
|
|
1722
|
+
module.exports = exports.default;
|
|
1723
|
+
}
|
|
1724
|
+
}) });
|
|
1725
|
+
|
|
1726
|
+
//#endregion
|
|
1727
|
+
//#region ../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
1728
|
+
var require_normalize_locale_path$1 = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js": ((exports) => {
|
|
1729
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1730
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
1731
|
+
enumerable: true,
|
|
1732
|
+
get: function() {
|
|
1733
|
+
return normalizeLocalePath$1;
|
|
1734
|
+
}
|
|
1735
|
+
});
|
|
1736
|
+
/**
|
|
1737
|
+
* A cache of lowercased locales for each list of locales. This is stored as a
|
|
1738
|
+
* WeakMap so if the locales are garbage collected, the cache entry will be
|
|
1739
|
+
* removed as well.
|
|
1740
|
+
*/ const cache = /* @__PURE__ */ new WeakMap();
|
|
1741
|
+
function normalizeLocalePath$1(pathname, locales) {
|
|
1742
|
+
if (!locales) return { pathname };
|
|
1743
|
+
let lowercasedLocales = cache.get(locales);
|
|
1744
|
+
if (!lowercasedLocales) {
|
|
1745
|
+
lowercasedLocales = locales.map((locale) => locale.toLowerCase());
|
|
1746
|
+
cache.set(locales, lowercasedLocales);
|
|
1747
|
+
}
|
|
1748
|
+
let detectedLocale;
|
|
1749
|
+
const segments = pathname.split("/", 2);
|
|
1750
|
+
if (!segments[1]) return { pathname };
|
|
1751
|
+
const segment = segments[1].toLowerCase();
|
|
1752
|
+
const index = lowercasedLocales.indexOf(segment);
|
|
1753
|
+
if (index < 0) return { pathname };
|
|
1754
|
+
detectedLocale = locales[index];
|
|
1755
|
+
pathname = pathname.slice(detectedLocale.length + 1) || "/";
|
|
1756
|
+
return {
|
|
1757
|
+
pathname,
|
|
1758
|
+
detectedLocale
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
}) });
|
|
1762
|
+
|
|
1763
|
+
//#endregion
|
|
1764
|
+
//#region ../../node_modules/next/dist/client/normalize-locale-path.js
|
|
1765
|
+
var require_normalize_locale_path = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/normalize-locale-path.js": ((exports, module) => {
|
|
1766
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1767
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
1768
|
+
enumerable: true,
|
|
1769
|
+
get: function() {
|
|
1770
|
+
return normalizeLocalePath;
|
|
1771
|
+
}
|
|
1772
|
+
});
|
|
1773
|
+
const normalizeLocalePath = (pathname, locales) => {
|
|
1774
|
+
if (process.env.__NEXT_I18N_SUPPORT) return require_normalize_locale_path$1().normalizeLocalePath(pathname, locales);
|
|
1775
|
+
return {
|
|
1776
|
+
pathname,
|
|
1777
|
+
detectedLocale: void 0
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1781
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1782
|
+
Object.assign(exports.default, exports);
|
|
1783
|
+
module.exports = exports.default;
|
|
1784
|
+
}
|
|
1785
|
+
}) });
|
|
1786
|
+
|
|
1787
|
+
//#endregion
|
|
1788
|
+
//#region ../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
1789
|
+
var require_detect_domain_locale$1 = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js": ((exports) => {
|
|
1790
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1791
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
1792
|
+
enumerable: true,
|
|
1793
|
+
get: function() {
|
|
1794
|
+
return detectDomainLocale$1;
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
function detectDomainLocale$1(domainItems, hostname, detectedLocale) {
|
|
1798
|
+
if (!domainItems) return;
|
|
1799
|
+
if (detectedLocale) detectedLocale = detectedLocale.toLowerCase();
|
|
1800
|
+
for (const item of domainItems) {
|
|
1801
|
+
var _item_domain, _item_locales;
|
|
1802
|
+
const domainHostname = (_item_domain = item.domain) == null ? void 0 : _item_domain.split(":", 1)[0].toLowerCase();
|
|
1803
|
+
if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? void 0 : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) return item;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}) });
|
|
1807
|
+
|
|
1808
|
+
//#endregion
|
|
1809
|
+
//#region ../../node_modules/next/dist/client/detect-domain-locale.js
|
|
1810
|
+
var require_detect_domain_locale = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/detect-domain-locale.js": ((exports, module) => {
|
|
1811
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1812
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
1813
|
+
enumerable: true,
|
|
1814
|
+
get: function() {
|
|
1815
|
+
return detectDomainLocale;
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
const detectDomainLocale = function() {
|
|
1819
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
1820
|
+
if (process.env.__NEXT_I18N_SUPPORT) return require_detect_domain_locale$1().detectDomainLocale(...args);
|
|
1821
|
+
};
|
|
1822
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1823
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1824
|
+
Object.assign(exports.default, exports);
|
|
1825
|
+
module.exports = exports.default;
|
|
1826
|
+
}
|
|
1827
|
+
}) });
|
|
1828
|
+
|
|
1829
|
+
//#endregion
|
|
1830
|
+
//#region ../../node_modules/next/dist/client/get-domain-locale.js
|
|
1831
|
+
var require_get_domain_locale = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/get-domain-locale.js": ((exports, module) => {
|
|
1832
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1833
|
+
Object.defineProperty(exports, "getDomainLocale", {
|
|
1834
|
+
enumerable: true,
|
|
1835
|
+
get: function() {
|
|
1836
|
+
return getDomainLocale;
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
const _normalizetrailingslash$1 = require_normalize_trailing_slash();
|
|
1840
|
+
const basePath$1 = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
1841
|
+
function getDomainLocale(path, locale, locales, domainLocales) {
|
|
1842
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
1843
|
+
const normalizeLocalePath$2 = require_normalize_locale_path().normalizeLocalePath;
|
|
1844
|
+
const detectDomainLocale$2 = require_detect_domain_locale().detectDomainLocale;
|
|
1845
|
+
const target = locale || normalizeLocalePath$2(path, locales).detectedLocale;
|
|
1846
|
+
const domain = detectDomainLocale$2(domainLocales, void 0, target);
|
|
1847
|
+
if (domain) {
|
|
1848
|
+
const proto = "http" + (domain.http ? "" : "s") + "://";
|
|
1849
|
+
const finalLocale = target === domain.defaultLocale ? "" : "/" + target;
|
|
1850
|
+
return "" + proto + domain.domain + (0, _normalizetrailingslash$1.normalizePathTrailingSlash)("" + basePath$1 + finalLocale + path);
|
|
1851
|
+
}
|
|
1852
|
+
return false;
|
|
1853
|
+
} else return false;
|
|
1854
|
+
}
|
|
1855
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1856
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1857
|
+
Object.assign(exports.default, exports);
|
|
1858
|
+
module.exports = exports.default;
|
|
1859
|
+
}
|
|
1860
|
+
}) });
|
|
1861
|
+
|
|
1862
|
+
//#endregion
|
|
1863
|
+
//#region ../../node_modules/next/dist/client/add-base-path.js
|
|
1864
|
+
var require_add_base_path = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/add-base-path.js": ((exports, module) => {
|
|
1865
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1866
|
+
Object.defineProperty(exports, "addBasePath", {
|
|
1867
|
+
enumerable: true,
|
|
1868
|
+
get: function() {
|
|
1869
|
+
return addBasePath;
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
const _addpathprefix = require_add_path_prefix();
|
|
1873
|
+
const _normalizetrailingslash = require_normalize_trailing_slash();
|
|
1874
|
+
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
1875
|
+
function addBasePath(path, required) {
|
|
1876
|
+
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
1877
|
+
}
|
|
1878
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1879
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1880
|
+
Object.assign(exports.default, exports);
|
|
1881
|
+
module.exports = exports.default;
|
|
1882
|
+
}
|
|
1883
|
+
}) });
|
|
1884
|
+
|
|
1885
|
+
//#endregion
|
|
1886
|
+
//#region ../../node_modules/next/dist/client/use-merged-ref.js
|
|
1887
|
+
var require_use_merged_ref = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/use-merged-ref.js": ((exports, module) => {
|
|
1888
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1889
|
+
Object.defineProperty(exports, "useMergedRef", {
|
|
1890
|
+
enumerable: true,
|
|
1891
|
+
get: function() {
|
|
1892
|
+
return useMergedRef;
|
|
1893
|
+
}
|
|
1894
|
+
});
|
|
1895
|
+
const _react$1 = require("react");
|
|
1896
|
+
function useMergedRef(refA, refB) {
|
|
1897
|
+
const cleanupA = (0, _react$1.useRef)(null);
|
|
1898
|
+
const cleanupB = (0, _react$1.useRef)(null);
|
|
1899
|
+
return (0, _react$1.useCallback)((current) => {
|
|
1900
|
+
if (current === null) {
|
|
1901
|
+
const cleanupFnA = cleanupA.current;
|
|
1902
|
+
if (cleanupFnA) {
|
|
1903
|
+
cleanupA.current = null;
|
|
1904
|
+
cleanupFnA();
|
|
1905
|
+
}
|
|
1906
|
+
const cleanupFnB = cleanupB.current;
|
|
1907
|
+
if (cleanupFnB) {
|
|
1908
|
+
cleanupB.current = null;
|
|
1909
|
+
cleanupFnB();
|
|
1910
|
+
}
|
|
1911
|
+
} else {
|
|
1912
|
+
if (refA) cleanupA.current = applyRef(refA, current);
|
|
1913
|
+
if (refB) cleanupB.current = applyRef(refB, current);
|
|
1914
|
+
}
|
|
1915
|
+
}, [refA, refB]);
|
|
1916
|
+
}
|
|
1917
|
+
function applyRef(refA, current) {
|
|
1918
|
+
if (typeof refA === "function") {
|
|
1919
|
+
const cleanup = refA(current);
|
|
1920
|
+
if (typeof cleanup === "function") return cleanup;
|
|
1921
|
+
else return () => refA(null);
|
|
1922
|
+
} else {
|
|
1923
|
+
refA.current = current;
|
|
1924
|
+
return () => {
|
|
1925
|
+
refA.current = null;
|
|
1926
|
+
};
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
1930
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
1931
|
+
Object.assign(exports.default, exports);
|
|
1932
|
+
module.exports = exports.default;
|
|
1933
|
+
}
|
|
1934
|
+
}) });
|
|
1935
|
+
|
|
1936
|
+
//#endregion
|
|
1937
|
+
//#region ../../node_modules/next/dist/shared/lib/utils/error-once.js
|
|
1938
|
+
var require_error_once = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/shared/lib/utils/error-once.js": ((exports) => {
|
|
1939
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1940
|
+
Object.defineProperty(exports, "errorOnce", {
|
|
1941
|
+
enumerable: true,
|
|
1942
|
+
get: function() {
|
|
1943
|
+
return errorOnce;
|
|
1944
|
+
}
|
|
1945
|
+
});
|
|
1946
|
+
let errorOnce = (_) => {};
|
|
1947
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1948
|
+
const errors = /* @__PURE__ */ new Set();
|
|
1949
|
+
errorOnce = (msg) => {
|
|
1950
|
+
if (!errors.has(msg)) console.error(msg);
|
|
1951
|
+
errors.add(msg);
|
|
1952
|
+
};
|
|
1953
|
+
}
|
|
1954
|
+
}) });
|
|
1955
|
+
|
|
1956
|
+
//#endregion
|
|
1957
|
+
//#region ../../node_modules/next/dist/client/link.js
|
|
1958
|
+
var require_link$1 = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/dist/client/link.js": ((exports, module) => {
|
|
1959
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1960
|
+
function _export(target, all) {
|
|
1961
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
1962
|
+
enumerable: true,
|
|
1963
|
+
get: all[name]
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
_export(exports, {
|
|
1967
|
+
default: function() {
|
|
1968
|
+
return _default;
|
|
1969
|
+
},
|
|
1970
|
+
useLinkStatus: function() {
|
|
1971
|
+
return useLinkStatus;
|
|
1972
|
+
}
|
|
1973
|
+
});
|
|
1974
|
+
const _interop_require_wildcard = require__interop_require_wildcard();
|
|
1975
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
1976
|
+
const _react = /* @__PURE__ */ _interop_require_wildcard._(require("react"));
|
|
1977
|
+
const _resolvehref = require_resolve_href();
|
|
1978
|
+
const _islocalurl = require_is_local_url();
|
|
1979
|
+
const _formaturl = require_format_url();
|
|
1980
|
+
const _utils = require_utils$1();
|
|
1981
|
+
const _addlocale = require_add_locale();
|
|
1982
|
+
const _routercontextsharedruntime = require_router_context_shared_runtime();
|
|
1983
|
+
const _useintersection = require_use_intersection();
|
|
1984
|
+
const _getdomainlocale = require_get_domain_locale();
|
|
1985
|
+
const _addbasepath = require_add_base_path();
|
|
1986
|
+
const _usemergedref = require_use_merged_ref();
|
|
1987
|
+
const _erroronce = require_error_once();
|
|
1988
|
+
const prefetched = /* @__PURE__ */ new Set();
|
|
1989
|
+
function prefetch(router, href, as, options) {
|
|
1990
|
+
if (typeof window === "undefined") return;
|
|
1991
|
+
if (!(0, _islocalurl.isLocalURL)(href)) return;
|
|
1992
|
+
if (!options.bypassPrefetchedCheck) {
|
|
1993
|
+
const locale = typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0;
|
|
1994
|
+
const prefetchedKey = href + "%" + as + "%" + locale;
|
|
1995
|
+
if (prefetched.has(prefetchedKey)) return;
|
|
1996
|
+
prefetched.add(prefetchedKey);
|
|
1997
|
+
}
|
|
1998
|
+
router.prefetch(href, as, options).catch((err) => {
|
|
1999
|
+
if (process.env.NODE_ENV !== "production") throw err;
|
|
2000
|
+
});
|
|
2001
|
+
}
|
|
2002
|
+
function isModifiedEvent(event) {
|
|
2003
|
+
const target = event.currentTarget.getAttribute("target");
|
|
2004
|
+
return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.nativeEvent && event.nativeEvent.which === 2;
|
|
2005
|
+
}
|
|
2006
|
+
function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
|
|
2007
|
+
const { nodeName } = e.currentTarget;
|
|
2008
|
+
if (nodeName.toUpperCase() === "A" && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) return;
|
|
2009
|
+
if (!(0, _islocalurl.isLocalURL)(href)) {
|
|
2010
|
+
if (replace) {
|
|
2011
|
+
e.preventDefault();
|
|
2012
|
+
location.replace(href);
|
|
2013
|
+
}
|
|
2014
|
+
return;
|
|
2015
|
+
}
|
|
2016
|
+
e.preventDefault();
|
|
2017
|
+
const navigate = () => {
|
|
2018
|
+
if (onNavigate) {
|
|
2019
|
+
let isDefaultPrevented = false;
|
|
2020
|
+
onNavigate({ preventDefault: () => {
|
|
2021
|
+
isDefaultPrevented = true;
|
|
2022
|
+
} });
|
|
2023
|
+
if (isDefaultPrevented) return;
|
|
2024
|
+
}
|
|
2025
|
+
const routerScroll = scroll != null ? scroll : true;
|
|
2026
|
+
if ("beforePopState" in router) router[replace ? "replace" : "push"](href, as, {
|
|
2027
|
+
shallow,
|
|
2028
|
+
locale,
|
|
2029
|
+
scroll: routerScroll
|
|
2030
|
+
});
|
|
2031
|
+
else router[replace ? "replace" : "push"](as || href, { scroll: routerScroll });
|
|
2032
|
+
};
|
|
2033
|
+
navigate();
|
|
2034
|
+
}
|
|
2035
|
+
function formatStringOrUrl(urlObjOrString) {
|
|
2036
|
+
if (typeof urlObjOrString === "string") return urlObjOrString;
|
|
2037
|
+
return (0, _formaturl.formatUrl)(urlObjOrString);
|
|
2038
|
+
}
|
|
2039
|
+
/**
|
|
2040
|
+
* A React component that extends the HTML `<a>` element to provide [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)
|
|
2041
|
+
* and client-side navigation between routes.
|
|
2042
|
+
*
|
|
2043
|
+
* It is the primary way to navigate between routes in Next.js.
|
|
2044
|
+
*
|
|
2045
|
+
* Read more: [Next.js docs: `<Link>`](https://nextjs.org/docs/app/api-reference/components/link)
|
|
2046
|
+
*/ const Link$1 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
|
|
2047
|
+
let children;
|
|
2048
|
+
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false,...restProps } = props;
|
|
2049
|
+
children = childrenProp;
|
|
2050
|
+
if (legacyBehavior && (typeof children === "string" || typeof children === "number")) children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", { children });
|
|
2051
|
+
const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
|
|
2052
|
+
const prefetchEnabled = prefetchProp !== false;
|
|
2053
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2054
|
+
function createPropError(args) {
|
|
2055
|
+
return Object.defineProperty(/* @__PURE__ */ new Error("Failed prop type: The prop `" + args.key + "` expects a " + args.expected + " in `<Link>`, but got `" + args.actual + "` instead." + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
2056
|
+
value: "E319",
|
|
2057
|
+
enumerable: false,
|
|
2058
|
+
configurable: true
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
Object.keys({ href: true }).forEach((key) => {
|
|
2062
|
+
if (key === "href") {
|
|
2063
|
+
if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") throw createPropError({
|
|
2064
|
+
key,
|
|
2065
|
+
expected: "`string` or `object`",
|
|
2066
|
+
actual: props[key] === null ? "null" : typeof props[key]
|
|
2067
|
+
});
|
|
2068
|
+
}
|
|
2069
|
+
});
|
|
2070
|
+
Object.keys({
|
|
2071
|
+
as: true,
|
|
2072
|
+
replace: true,
|
|
2073
|
+
scroll: true,
|
|
2074
|
+
shallow: true,
|
|
2075
|
+
passHref: true,
|
|
2076
|
+
prefetch: true,
|
|
2077
|
+
locale: true,
|
|
2078
|
+
onClick: true,
|
|
2079
|
+
onMouseEnter: true,
|
|
2080
|
+
onTouchStart: true,
|
|
2081
|
+
legacyBehavior: true,
|
|
2082
|
+
onNavigate: true
|
|
2083
|
+
}).forEach((key) => {
|
|
2084
|
+
const valType = typeof props[key];
|
|
2085
|
+
if (key === "as") {
|
|
2086
|
+
if (props[key] && valType !== "string" && valType !== "object") throw createPropError({
|
|
2087
|
+
key,
|
|
2088
|
+
expected: "`string` or `object`",
|
|
2089
|
+
actual: valType
|
|
2090
|
+
});
|
|
2091
|
+
} else if (key === "locale") {
|
|
2092
|
+
if (props[key] && valType !== "string") throw createPropError({
|
|
2093
|
+
key,
|
|
2094
|
+
expected: "`string`",
|
|
2095
|
+
actual: valType
|
|
2096
|
+
});
|
|
2097
|
+
} else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
|
|
2098
|
+
if (props[key] && valType !== "function") throw createPropError({
|
|
2099
|
+
key,
|
|
2100
|
+
expected: "`function`",
|
|
2101
|
+
actual: valType
|
|
2102
|
+
});
|
|
2103
|
+
} else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "prefetch" || key === "legacyBehavior") {
|
|
2104
|
+
if (props[key] != null && valType !== "boolean") throw createPropError({
|
|
2105
|
+
key,
|
|
2106
|
+
expected: "`boolean`",
|
|
2107
|
+
actual: valType
|
|
2108
|
+
});
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
}
|
|
2112
|
+
const { href, as } = _react.default.useMemo(() => {
|
|
2113
|
+
if (!router) {
|
|
2114
|
+
const resolvedHref$1 = formatStringOrUrl(hrefProp);
|
|
2115
|
+
return {
|
|
2116
|
+
href: resolvedHref$1,
|
|
2117
|
+
as: asProp ? formatStringOrUrl(asProp) : resolvedHref$1
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
|
|
2121
|
+
return {
|
|
2122
|
+
href: resolvedHref,
|
|
2123
|
+
as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
|
|
2124
|
+
};
|
|
2125
|
+
}, [
|
|
2126
|
+
router,
|
|
2127
|
+
hrefProp,
|
|
2128
|
+
asProp
|
|
2129
|
+
]);
|
|
2130
|
+
const previousHref = _react.default.useRef(href);
|
|
2131
|
+
const previousAs = _react.default.useRef(as);
|
|
2132
|
+
let child;
|
|
2133
|
+
if (legacyBehavior) if (process.env.NODE_ENV === "development") {
|
|
2134
|
+
if (onClick) console.warn("\"onClick\" was passed to <Link> with `href` of `" + hrefProp + "` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link");
|
|
2135
|
+
if (onMouseEnterProp) console.warn("\"onMouseEnter\" was passed to <Link> with `href` of `" + hrefProp + "` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link");
|
|
2136
|
+
try {
|
|
2137
|
+
child = _react.default.Children.only(children);
|
|
2138
|
+
} catch (err) {
|
|
2139
|
+
if (!children) throw Object.defineProperty(/* @__PURE__ */ new Error("No children were passed to <Link> with `href` of `" + hrefProp + "` but one child is required https://nextjs.org/docs/messages/link-no-children"), "__NEXT_ERROR_CODE", {
|
|
2140
|
+
value: "E320",
|
|
2141
|
+
enumerable: false,
|
|
2142
|
+
configurable: true
|
|
2143
|
+
});
|
|
2144
|
+
throw Object.defineProperty(/* @__PURE__ */ new Error("Multiple children were passed to <Link> with `href` of `" + hrefProp + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
2145
|
+
value: "E266",
|
|
2146
|
+
enumerable: false,
|
|
2147
|
+
configurable: true
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
} else child = _react.default.Children.only(children);
|
|
2151
|
+
else if (process.env.NODE_ENV === "development") {
|
|
2152
|
+
if ((children == null ? void 0 : children.type) === "a") throw Object.defineProperty(/* @__PURE__ */ new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
|
|
2153
|
+
value: "E209",
|
|
2154
|
+
enumerable: false,
|
|
2155
|
+
configurable: true
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2158
|
+
const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
|
|
2159
|
+
const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({ rootMargin: "200px" });
|
|
2160
|
+
const setIntersectionWithResetRef = _react.default.useCallback((el) => {
|
|
2161
|
+
if (previousAs.current !== as || previousHref.current !== href) {
|
|
2162
|
+
resetVisible();
|
|
2163
|
+
previousAs.current = as;
|
|
2164
|
+
previousHref.current = href;
|
|
2165
|
+
}
|
|
2166
|
+
setIntersectionRef(el);
|
|
2167
|
+
}, [
|
|
2168
|
+
as,
|
|
2169
|
+
href,
|
|
2170
|
+
resetVisible,
|
|
2171
|
+
setIntersectionRef
|
|
2172
|
+
]);
|
|
2173
|
+
const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
|
|
2174
|
+
_react.default.useEffect(() => {
|
|
2175
|
+
if (process.env.NODE_ENV !== "production") return;
|
|
2176
|
+
if (!router) return;
|
|
2177
|
+
if (!isVisible || !prefetchEnabled) return;
|
|
2178
|
+
prefetch(router, href, as, { locale });
|
|
2179
|
+
}, [
|
|
2180
|
+
as,
|
|
2181
|
+
href,
|
|
2182
|
+
isVisible,
|
|
2183
|
+
locale,
|
|
2184
|
+
prefetchEnabled,
|
|
2185
|
+
router == null ? void 0 : router.locale,
|
|
2186
|
+
router
|
|
2187
|
+
]);
|
|
2188
|
+
const childProps = {
|
|
2189
|
+
ref: setRef,
|
|
2190
|
+
onClick(e) {
|
|
2191
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2192
|
+
if (!e) throw Object.defineProperty(/* @__PURE__ */ new Error("Component rendered inside next/link has to pass click event to \"onClick\" prop."), "__NEXT_ERROR_CODE", {
|
|
2193
|
+
value: "E312",
|
|
2194
|
+
enumerable: false,
|
|
2195
|
+
configurable: true
|
|
2196
|
+
});
|
|
2197
|
+
}
|
|
2198
|
+
if (!legacyBehavior && typeof onClick === "function") onClick(e);
|
|
2199
|
+
if (legacyBehavior && child.props && typeof child.props.onClick === "function") child.props.onClick(e);
|
|
2200
|
+
if (!router) return;
|
|
2201
|
+
if (e.defaultPrevented) return;
|
|
2202
|
+
linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
|
|
2203
|
+
},
|
|
2204
|
+
onMouseEnter(e) {
|
|
2205
|
+
if (!legacyBehavior && typeof onMouseEnterProp === "function") onMouseEnterProp(e);
|
|
2206
|
+
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") child.props.onMouseEnter(e);
|
|
2207
|
+
if (!router) return;
|
|
2208
|
+
prefetch(router, href, as, {
|
|
2209
|
+
locale,
|
|
2210
|
+
priority: true,
|
|
2211
|
+
bypassPrefetchedCheck: true
|
|
2212
|
+
});
|
|
2213
|
+
},
|
|
2214
|
+
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
|
|
2215
|
+
if (!legacyBehavior && typeof onTouchStartProp === "function") onTouchStartProp(e);
|
|
2216
|
+
if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") child.props.onTouchStart(e);
|
|
2217
|
+
if (!router) return;
|
|
2218
|
+
prefetch(router, href, as, {
|
|
2219
|
+
locale,
|
|
2220
|
+
priority: true,
|
|
2221
|
+
bypassPrefetchedCheck: true
|
|
2222
|
+
});
|
|
2223
|
+
}
|
|
2224
|
+
};
|
|
2225
|
+
if ((0, _utils.isAbsoluteUrl)(as)) childProps.href = as;
|
|
2226
|
+
else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
|
|
2227
|
+
const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
|
|
2228
|
+
childProps.href = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales) || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
|
|
2229
|
+
}
|
|
2230
|
+
if (legacyBehavior) {
|
|
2231
|
+
if (process.env.NODE_ENV === "development") (0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
|
|
2232
|
+
return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
|
|
2233
|
+
}
|
|
2234
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
|
|
2235
|
+
...restProps,
|
|
2236
|
+
...childProps,
|
|
2237
|
+
children
|
|
2238
|
+
});
|
|
2239
|
+
});
|
|
2240
|
+
const LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({ pending: false });
|
|
2241
|
+
const useLinkStatus = () => {
|
|
2242
|
+
return (0, _react.useContext)(LinkStatusContext);
|
|
2243
|
+
};
|
|
2244
|
+
const _default = Link$1;
|
|
2245
|
+
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2246
|
+
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2247
|
+
Object.assign(exports.default, exports);
|
|
2248
|
+
module.exports = exports.default;
|
|
2249
|
+
}
|
|
2250
|
+
}) });
|
|
2251
|
+
|
|
2252
|
+
//#endregion
|
|
2253
|
+
//#region ../../node_modules/next/link.js
|
|
2254
|
+
var require_link = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/next/link.js": ((exports, module) => {
|
|
2255
|
+
module.exports = require_link$1();
|
|
2256
|
+
}) });
|
|
2257
|
+
|
|
2258
|
+
//#endregion
|
|
2259
|
+
//#region src/customized-link/internal-link.tsx
|
|
2260
|
+
var import_link = /* @__PURE__ */ require_chunk.__toESM(require_link());
|
|
2261
|
+
const InternalLink = ({ to, target = "_self", className = "", children }) => {
|
|
2262
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(import_link.default, {
|
|
2263
|
+
href: to,
|
|
2264
|
+
target,
|
|
2265
|
+
className,
|
|
2266
|
+
children
|
|
2267
|
+
});
|
|
2268
|
+
};
|
|
2269
|
+
var internal_link_default = InternalLink;
|
|
2270
|
+
|
|
2271
|
+
//#endregion
|
|
2272
|
+
Object.defineProperty(exports, 'internal_link_default', {
|
|
2273
|
+
enumerable: true,
|
|
2274
|
+
get: function () {
|
|
2275
|
+
return internal_link_default;
|
|
2276
|
+
}
|
|
2277
|
+
});
|
|
2278
|
+
//# sourceMappingURL=internal-link-BLXTBMRq.js.map
|