boreal-ui 0.0.39 → 0.0.40

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.
Files changed (461) hide show
  1. package/dist/core/{Badge-DOn6E2bS.cjs → Badge-CyGz8K5W.cjs} +4 -1
  2. package/dist/core/Badge-CyGz8K5W.cjs.map +1 -0
  3. package/dist/core/{Badge-Dpjq6lUF.js → Badge-DnE8lt7-.js} +4 -1
  4. package/dist/core/Badge-DnE8lt7-.js.map +1 -0
  5. package/dist/core/Badge.cjs.js +1 -1
  6. package/dist/core/Badge.js +1 -1
  7. package/dist/core/{Card-DftqfPue.cjs → Card-CmyXglyZ.cjs} +6 -5
  8. package/dist/core/Card-CmyXglyZ.cjs.map +1 -0
  9. package/dist/core/{Card-D-GQwaUJ.js → Card-v8Cu1hJe.js} +6 -5
  10. package/dist/core/Card-v8Cu1hJe.js.map +1 -0
  11. package/dist/core/Card.cjs.js +1 -1
  12. package/dist/core/Card.js +1 -1
  13. package/dist/core/{Chip-D4vbSudX.js → Chip-BjbtoFKm.js} +2 -2
  14. package/dist/core/{Chip-D4vbSudX.js.map → Chip-BjbtoFKm.js.map} +1 -1
  15. package/dist/core/{Chip-CWsfLyyU.cjs → Chip-c2mN7R-R.cjs} +2 -2
  16. package/dist/core/{Chip-CWsfLyyU.cjs.map → Chip-c2mN7R-R.cjs.map} +1 -1
  17. package/dist/core/Chip.cjs.js +1 -1
  18. package/dist/core/Chip.js +1 -1
  19. package/dist/core/{CommandPalette-CXKBDCbP.cjs → CommandPalette-CPhVbQAc.cjs} +2 -2
  20. package/dist/core/{CommandPalette-CXKBDCbP.cjs.map → CommandPalette-CPhVbQAc.cjs.map} +1 -1
  21. package/dist/core/{CommandPalette-N556smLj.js → CommandPalette-Df69KRv4.js} +2 -2
  22. package/dist/core/{CommandPalette-N556smLj.js.map → CommandPalette-Df69KRv4.js.map} +1 -1
  23. package/dist/core/CommandPalette.cjs.js +1 -1
  24. package/dist/core/CommandPalette.js +1 -1
  25. package/dist/core/{Dropdown-CwofYHjq.js → Dropdown-CR3xr5K-.js} +2 -2
  26. package/dist/core/{Dropdown-CwofYHjq.js.map → Dropdown-CR3xr5K-.js.map} +1 -1
  27. package/dist/core/{Dropdown-DvwHouyC.cjs → Dropdown-CjPfU1K-.cjs} +2 -2
  28. package/dist/core/{Dropdown-DvwHouyC.cjs.map → Dropdown-CjPfU1K-.cjs.map} +1 -1
  29. package/dist/core/Dropdown.cjs.js +1 -1
  30. package/dist/core/Dropdown.js +1 -1
  31. package/dist/core/{FileUpload-Du7vDDdf.cjs → FileUpload-BJ3RJxT3.cjs} +3 -3
  32. package/dist/core/{FileUpload-Du7vDDdf.cjs.map → FileUpload-BJ3RJxT3.cjs.map} +1 -1
  33. package/dist/core/{FileUpload-Q8aDsaFs.js → FileUpload-C0eHx1h8.js} +3 -3
  34. package/dist/core/{FileUpload-Q8aDsaFs.js.map → FileUpload-C0eHx1h8.js.map} +1 -1
  35. package/dist/core/FileUpload.cjs.js +1 -1
  36. package/dist/core/FileUpload.js +1 -1
  37. package/dist/core/{Footer-DMOA1W7N.cjs → Footer-CYIUIgV1.cjs} +3 -3
  38. package/dist/core/Footer-CYIUIgV1.cjs.map +1 -0
  39. package/dist/core/{Footer-zO4RGjCl.js → Footer-D9RimHx9.js} +3 -3
  40. package/dist/core/Footer-D9RimHx9.js.map +1 -0
  41. package/dist/core/Footer.cjs.js +1 -1
  42. package/dist/core/Footer.js +1 -1
  43. package/dist/core/{FormGroup-C2TWC17P.cjs → FormGroup-Cit_2_Wo.cjs} +5 -8
  44. package/dist/core/FormGroup-Cit_2_Wo.cjs.map +1 -0
  45. package/dist/core/{FormGroup-tSK_NN0-.js → FormGroup-DDZ1D_CI.js} +5 -8
  46. package/dist/core/FormGroup-DDZ1D_CI.js.map +1 -0
  47. package/dist/core/FormGroup.cjs.js +1 -1
  48. package/dist/core/FormGroup.js +1 -1
  49. package/dist/core/{IconButton-_lxTppua.js → IconButton-BMZhwYXB.js} +2 -2
  50. package/dist/core/IconButton-BMZhwYXB.js.map +1 -0
  51. package/dist/core/{IconButton-CR9bTZoJ.cjs → IconButton-Bio6Azm-.cjs} +2 -2
  52. package/dist/core/IconButton-Bio6Azm-.cjs.map +1 -0
  53. package/dist/core/IconButton.cjs.js +1 -1
  54. package/dist/core/IconButton.js +1 -1
  55. package/dist/core/{MarkdownRenderer-LUXCa_a8.cjs → MarkdownRenderer-Bn6vcfSd.cjs} +3 -2
  56. package/dist/core/MarkdownRenderer-Bn6vcfSd.cjs.map +1 -0
  57. package/dist/core/{MarkdownRenderer-B1LmmpZm.js → MarkdownRenderer-Co787hku.js} +3 -2
  58. package/dist/core/MarkdownRenderer-Co787hku.js.map +1 -0
  59. package/dist/core/MarkdownRenderer.cjs.js +1 -1
  60. package/dist/core/MarkdownRenderer.js +1 -1
  61. package/dist/core/MessagePopUp.cjs.js +1 -1
  62. package/dist/core/MessagePopUp.js +1 -1
  63. package/dist/core/{MessagePopup-BlbPMecd.js → MessagePopup-B3lEfar7.js} +2 -2
  64. package/dist/core/{MessagePopup-BlbPMecd.js.map → MessagePopup-B3lEfar7.js.map} +1 -1
  65. package/dist/core/{MessagePopup-hxloT7aK.cjs → MessagePopup-CtdpuRFv.cjs} +2 -2
  66. package/dist/core/{MessagePopup-hxloT7aK.cjs.map → MessagePopup-CtdpuRFv.cjs.map} +1 -1
  67. package/dist/core/{MetricBox-Dh911MS2.js → MetricBox-CPug-nxo.js} +11 -2
  68. package/dist/core/MetricBox-CPug-nxo.js.map +1 -0
  69. package/dist/core/{MetricBox-BcOdQM-l.cjs → MetricBox-DVo4UUQv.cjs} +11 -2
  70. package/dist/core/MetricBox-DVo4UUQv.cjs.map +1 -0
  71. package/dist/core/MetricBox.cjs.js +1 -1
  72. package/dist/core/MetricBox.js +1 -1
  73. package/dist/core/{Modal-D1G1Csp9.js → Modal-DFhYDYb9.js} +2 -2
  74. package/dist/core/{Modal-D1G1Csp9.js.map → Modal-DFhYDYb9.js.map} +1 -1
  75. package/dist/core/{Modal-D-ZoA_xx.cjs → Modal-FB4mTmQW.cjs} +2 -2
  76. package/dist/core/{Modal-D-ZoA_xx.cjs.map → Modal-FB4mTmQW.cjs.map} +1 -1
  77. package/dist/core/Modal.cjs.js +1 -1
  78. package/dist/core/Modal.js +1 -1
  79. package/dist/core/{NotificationCenter-BrUNpJAx.js → NotificationCenter-DLCzWNve.js} +2 -2
  80. package/dist/core/{NotificationCenter-BrUNpJAx.js.map → NotificationCenter-DLCzWNve.js.map} +1 -1
  81. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs → NotificationCenter-DfOOEt9N.cjs} +2 -2
  82. package/dist/core/{NotificationCenter-Dqwu2Z6s.cjs.map → NotificationCenter-DfOOEt9N.cjs.map} +1 -1
  83. package/dist/core/NotificationCenter.cjs.js +1 -1
  84. package/dist/core/NotificationCenter.js +1 -1
  85. package/dist/core/{Pager-CZF6O7rq.js → Pager-DBHI7yRW.js} +2 -2
  86. package/dist/core/{Pager-CZF6O7rq.js.map → Pager-DBHI7yRW.js.map} +1 -1
  87. package/dist/core/{Pager-C_SG4CIc.cjs → Pager-Dv6D3kXa.cjs} +2 -2
  88. package/dist/core/{Pager-C_SG4CIc.cjs.map → Pager-Dv6D3kXa.cjs.map} +1 -1
  89. package/dist/core/Pager.cjs.js +1 -1
  90. package/dist/core/Pager.js +1 -1
  91. package/dist/core/{Skeleton-Cwn3_gc7.js → Skeleton-BjpQHG5i.js} +2 -2
  92. package/dist/core/{Skeleton-Cwn3_gc7.js.map → Skeleton-BjpQHG5i.js.map} +1 -1
  93. package/dist/core/{Skeleton-BLVD5mDI.cjs → Skeleton-tetAZCSl.cjs} +2 -2
  94. package/dist/core/{Skeleton-BLVD5mDI.cjs.map → Skeleton-tetAZCSl.cjs.map} +1 -1
  95. package/dist/core/Skeleton.cjs.js +1 -1
  96. package/dist/core/Skeleton.js +1 -1
  97. package/dist/core/{Spinner-D81UG24n.js → Spinner-D1CHbKYU.js} +2 -2
  98. package/dist/core/Spinner-D1CHbKYU.js.map +1 -0
  99. package/dist/core/{Spinner-CEIk_hpT.cjs → Spinner-JTcQ_d4T.cjs} +2 -2
  100. package/dist/core/Spinner-JTcQ_d4T.cjs.map +1 -0
  101. package/dist/core/Spinner.cjs.js +1 -1
  102. package/dist/core/Spinner.js +1 -1
  103. package/dist/core/{Stepper-Cjb7ckXo.js → Stepper-C6xjvhZJ.js} +2 -2
  104. package/dist/core/{Stepper-Cjb7ckXo.js.map → Stepper-C6xjvhZJ.js.map} +1 -1
  105. package/dist/core/{Stepper-BuCLqbtQ.cjs → Stepper-JNVBVHc3.cjs} +2 -2
  106. package/dist/core/{Stepper-BuCLqbtQ.cjs.map → Stepper-JNVBVHc3.cjs.map} +1 -1
  107. package/dist/core/Stepper.cjs.js +1 -1
  108. package/dist/core/Stepper.js +1 -1
  109. package/dist/core/TagInput.cjs.js +1 -1
  110. package/dist/core/TagInput.js +1 -1
  111. package/dist/core/{Taginput-DgbxDttA.cjs → Taginput-BXCxdLf0.cjs} +3 -3
  112. package/dist/core/{Taginput-DgbxDttA.cjs.map → Taginput-BXCxdLf0.cjs.map} +1 -1
  113. package/dist/core/{Taginput-CKekAR72.js → Taginput-CoxxwLXg.js} +3 -3
  114. package/dist/core/{Taginput-CKekAR72.js.map → Taginput-CoxxwLXg.js.map} +1 -1
  115. package/dist/core/{TextInput-DFOjxri2.cjs → TextInput-DYALlUc_.cjs} +2 -2
  116. package/dist/core/{TextInput-DFOjxri2.cjs.map → TextInput-DYALlUc_.cjs.map} +1 -1
  117. package/dist/core/{TextInput-7kV66ccj.js → TextInput-qw-jAx_3.js} +2 -2
  118. package/dist/core/{TextInput-7kV66ccj.js.map → TextInput-qw-jAx_3.js.map} +1 -1
  119. package/dist/core/TextInput.cjs.js +1 -1
  120. package/dist/core/TextInput.js +1 -1
  121. package/dist/core/{style.css → boreal-ui.css} +6976 -6974
  122. package/dist/core/index.cjs.js +20 -20
  123. package/dist/core/index.js +20 -20
  124. package/dist/next/{Accordion-DKNh8FaP.cjs → Accordion-BPWTEHym.cjs} +50 -50
  125. package/dist/next/{Accordion-DKNh8FaP.cjs.map → Accordion-BPWTEHym.cjs.map} +1 -1
  126. package/dist/next/{Accordion-BkiAI6vY.js → Accordion-DY243Bq9.js} +50 -50
  127. package/dist/next/{Accordion-BkiAI6vY.js.map → Accordion-DY243Bq9.js.map} +1 -1
  128. package/dist/next/Accordion.cjs.js +1 -1
  129. package/dist/next/Accordion.js +1 -1
  130. package/dist/next/{Avatar-ijMVfQpY.js → Avatar-B-Ws4Ueo.js} +42 -42
  131. package/dist/next/{Avatar-ijMVfQpY.js.map → Avatar-B-Ws4Ueo.js.map} +1 -1
  132. package/dist/next/{Avatar-Ctm74prt.cjs → Avatar-B9sMyRWr.cjs} +42 -42
  133. package/dist/next/{Avatar-Ctm74prt.cjs.map → Avatar-B9sMyRWr.cjs.map} +1 -1
  134. package/dist/next/Avatar.cjs.js +1 -1
  135. package/dist/next/Avatar.js +1 -1
  136. package/dist/next/{Badge-k6Dk5S_p.js → Badge-BZNYm0IU.js} +34 -31
  137. package/dist/next/Badge-BZNYm0IU.js.map +1 -0
  138. package/dist/next/{Badge-DbmM5wGc.cjs → Badge-dTyh833r.cjs} +34 -31
  139. package/dist/next/Badge-dTyh833r.cjs.map +1 -0
  140. package/dist/next/Badge.cjs.js +1 -1
  141. package/dist/next/Badge.js +1 -1
  142. package/dist/next/{Breadcrumbs-CWv3TrV_.js → Breadcrumbs-BPWmV24h.js} +39 -39
  143. package/dist/next/{Breadcrumbs-CWv3TrV_.js.map → Breadcrumbs-BPWmV24h.js.map} +1 -1
  144. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs → Breadcrumbs-BcXj2PgR.cjs} +39 -39
  145. package/dist/next/{Breadcrumbs-BrH6_8Kt.cjs.map → Breadcrumbs-BcXj2PgR.cjs.map} +1 -1
  146. package/dist/next/Breadcrumbs.cjs.js +1 -1
  147. package/dist/next/Breadcrumbs.js +1 -1
  148. package/dist/next/{Button-D8Kff8sN.cjs → Button-B1Fh4G0_.cjs} +47 -47
  149. package/dist/next/{Button-D8Kff8sN.cjs.map → Button-B1Fh4G0_.cjs.map} +1 -1
  150. package/dist/next/{Button-BjY7f3mw.js → Button-uZ3xTOOt.js} +47 -47
  151. package/dist/next/{Button-BjY7f3mw.js.map → Button-uZ3xTOOt.js.map} +1 -1
  152. package/dist/next/Button.cjs.js +1 -1
  153. package/dist/next/Button.js +1 -1
  154. package/dist/next/{Card-BFmGnvxN.cjs → Card-BOu9cws1.cjs} +68 -67
  155. package/dist/next/Card-BOu9cws1.cjs.map +1 -0
  156. package/dist/next/{Card-DhxLw6XZ.js → Card-CZu4-xEt.js} +68 -67
  157. package/dist/next/Card-CZu4-xEt.js.map +1 -0
  158. package/dist/next/Card.cjs.js +1 -1
  159. package/dist/next/Card.js +1 -1
  160. package/dist/next/CheckBox.cjs.js +1 -1
  161. package/dist/next/CheckBox.js +1 -1
  162. package/dist/next/{Checkbox-DVr6H6mN.js → Checkbox-BJ0rBZLF.js} +44 -44
  163. package/dist/next/{Checkbox-DVr6H6mN.js.map → Checkbox-BJ0rBZLF.js.map} +1 -1
  164. package/dist/next/{Checkbox-B-y0lEjJ.cjs → Checkbox-Ch7osD3y.cjs} +44 -44
  165. package/dist/next/{Checkbox-B-y0lEjJ.cjs.map → Checkbox-Ch7osD3y.cjs.map} +1 -1
  166. package/dist/next/{Chip-C8ayWG9-.js → Chip-BB3Awc2g.js} +51 -51
  167. package/dist/next/{Chip-C8ayWG9-.js.map → Chip-BB3Awc2g.js.map} +1 -1
  168. package/dist/next/{Chip-C4-KUcHh.cjs → Chip-DzFaUPed.cjs} +51 -51
  169. package/dist/next/{Chip-C4-KUcHh.cjs.map → Chip-DzFaUPed.cjs.map} +1 -1
  170. package/dist/next/Chip.cjs.js +1 -1
  171. package/dist/next/Chip.js +1 -1
  172. package/dist/next/{CircularProgress-Cz9G0WeQ.js → CircularProgress-BUqdguII.js} +37 -37
  173. package/dist/next/{CircularProgress-Cz9G0WeQ.js.map → CircularProgress-BUqdguII.js.map} +1 -1
  174. package/dist/next/{CircularProgress-UhpLA94q.cjs → CircularProgress-Cp2pGFmc.cjs} +37 -37
  175. package/dist/next/{CircularProgress-UhpLA94q.cjs.map → CircularProgress-Cp2pGFmc.cjs.map} +1 -1
  176. package/dist/next/CircularProgress.cjs.js +1 -1
  177. package/dist/next/CircularProgress.js +1 -1
  178. package/dist/next/{ColorPicker-DvgeIT_p.cjs → ColorPicker-BHtO2mbU.cjs} +38 -38
  179. package/dist/next/{ColorPicker-DvgeIT_p.cjs.map → ColorPicker-BHtO2mbU.cjs.map} +1 -1
  180. package/dist/next/{ColorPicker-1naDOGhp.js → ColorPicker-ChWOekWP.js} +38 -38
  181. package/dist/next/{ColorPicker-1naDOGhp.js.map → ColorPicker-ChWOekWP.js.map} +1 -1
  182. package/dist/next/ColorPicker.cjs.js +1 -1
  183. package/dist/next/ColorPicker.js +1 -1
  184. package/dist/next/{CommandPalette-ypXbi8zW.cjs → CommandPalette-BT9X_yL0.cjs} +42 -42
  185. package/dist/next/{CommandPalette-ypXbi8zW.cjs.map → CommandPalette-BT9X_yL0.cjs.map} +1 -1
  186. package/dist/next/{CommandPalette-XP4v5FE6.js → CommandPalette-DEf12Et3.js} +42 -42
  187. package/dist/next/{CommandPalette-XP4v5FE6.js.map → CommandPalette-DEf12Et3.js.map} +1 -1
  188. package/dist/next/CommandPalette.cjs.js +1 -1
  189. package/dist/next/CommandPalette.js +1 -1
  190. package/dist/next/{DataTable-jUelgv2H.js → DataTable-CnvOkZrU.js} +40 -40
  191. package/dist/next/{DataTable-jUelgv2H.js.map → DataTable-CnvOkZrU.js.map} +1 -1
  192. package/dist/next/{DataTable-jq0suGoA.cjs → DataTable-DQ1QRyZw.cjs} +40 -40
  193. package/dist/next/{DataTable-jq0suGoA.cjs.map → DataTable-DQ1QRyZw.cjs.map} +1 -1
  194. package/dist/next/DataTable.cjs.js +1 -1
  195. package/dist/next/DataTable.js +1 -1
  196. package/dist/next/{DateTimePicker-D5gEfxvd.cjs → DateTimePicker-2M4AJJXm.cjs} +46 -46
  197. package/dist/next/{DateTimePicker-D5gEfxvd.cjs.map → DateTimePicker-2M4AJJXm.cjs.map} +1 -1
  198. package/dist/next/{DateTimePicker-BTm6T3-E.js → DateTimePicker-IvBWNgkK.js} +46 -46
  199. package/dist/next/{DateTimePicker-BTm6T3-E.js.map → DateTimePicker-IvBWNgkK.js.map} +1 -1
  200. package/dist/next/DateTimePicker.cjs.js +1 -1
  201. package/dist/next/DateTimePicker.js +1 -1
  202. package/dist/next/{Divider-BYKFFi3a.js → Divider-BCCzNbAE.js} +28 -28
  203. package/dist/next/{Divider-BYKFFi3a.js.map → Divider-BCCzNbAE.js.map} +1 -1
  204. package/dist/next/{Divider-CczNc7mx.cjs → Divider-ByDYa4v6.cjs} +28 -28
  205. package/dist/next/{Divider-CczNc7mx.cjs.map → Divider-ByDYa4v6.cjs.map} +1 -1
  206. package/dist/next/Divider.cjs.js +1 -1
  207. package/dist/next/Divider.js +1 -1
  208. package/dist/next/{Dropdown-yaMx19im.cjs → Dropdown-DEdk2QjS.cjs} +22 -22
  209. package/dist/next/{Dropdown-yaMx19im.cjs.map → Dropdown-DEdk2QjS.cjs.map} +1 -1
  210. package/dist/next/{Dropdown-CJGb6wyQ.js → Dropdown-qdxH-NQR.js} +22 -22
  211. package/dist/next/{Dropdown-CJGb6wyQ.js.map → Dropdown-qdxH-NQR.js.map} +1 -1
  212. package/dist/next/Dropdown.cjs.js +1 -1
  213. package/dist/next/Dropdown.js +1 -1
  214. package/dist/next/{EmptyState-DIymA2cZ.js → EmptyState-BNzFHAk3.js} +31 -31
  215. package/dist/next/{EmptyState-DIymA2cZ.js.map → EmptyState-BNzFHAk3.js.map} +1 -1
  216. package/dist/next/{EmptyState-CGPIGpz2.cjs → EmptyState-CXyx1WlG.cjs} +31 -31
  217. package/dist/next/{EmptyState-CGPIGpz2.cjs.map → EmptyState-CXyx1WlG.cjs.map} +1 -1
  218. package/dist/next/EmptyState.cjs.js +1 -1
  219. package/dist/next/EmptyState.js +1 -1
  220. package/dist/next/{FileUpload-CIued3w1.js → FileUpload-DBSXPL55.js} +52 -52
  221. package/dist/next/{FileUpload-CIued3w1.js.map → FileUpload-DBSXPL55.js.map} +1 -1
  222. package/dist/next/{FileUpload-MVXOV0j9.cjs → FileUpload-DwlqapHn.cjs} +52 -52
  223. package/dist/next/{FileUpload-MVXOV0j9.cjs.map → FileUpload-DwlqapHn.cjs.map} +1 -1
  224. package/dist/next/FileUpload.cjs.js +1 -1
  225. package/dist/next/FileUpload.js +1 -1
  226. package/dist/next/{Footer-DAZLz11H.cjs → Footer-BxrsmJyY.cjs} +45 -45
  227. package/dist/next/Footer-BxrsmJyY.cjs.map +1 -0
  228. package/dist/next/{Footer-BSEbf6CL.js → Footer-CP_PaLon.js} +45 -45
  229. package/dist/next/Footer-CP_PaLon.js.map +1 -0
  230. package/dist/next/Footer.cjs.js +1 -1
  231. package/dist/next/Footer.js +1 -1
  232. package/dist/next/{FormGroup-DbUqgg_b.js → FormGroup-QfUhtyhx.js} +34 -37
  233. package/dist/next/FormGroup-QfUhtyhx.js.map +1 -0
  234. package/dist/next/{FormGroup-6Ss6pNqV.cjs → FormGroup-U3EwnB0M.cjs} +34 -37
  235. package/dist/next/FormGroup-U3EwnB0M.cjs.map +1 -0
  236. package/dist/next/FormGroup.cjs.js +1 -1
  237. package/dist/next/FormGroup.js +1 -1
  238. package/dist/next/{IconButton-VSz8qAIg.cjs → IconButton-2l-_HOMB.cjs} +31 -31
  239. package/dist/next/IconButton-2l-_HOMB.cjs.map +1 -0
  240. package/dist/next/{IconButton-qQljwBB2.js → IconButton-BTUFKRZt.js} +31 -31
  241. package/dist/next/IconButton-BTUFKRZt.js.map +1 -0
  242. package/dist/next/IconButton.cjs.js +1 -1
  243. package/dist/next/IconButton.js +1 -1
  244. package/dist/next/{MarkdownRenderer-B7lwemDw.js → MarkdownRenderer-B8_D0j7d.js} +14 -13
  245. package/dist/next/{MarkdownRenderer-B7lwemDw.js.map → MarkdownRenderer-B8_D0j7d.js.map} +1 -1
  246. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs → MarkdownRenderer-l6hdKOt0.cjs} +14 -13
  247. package/dist/next/{MarkdownRenderer-BvfBDz9X.cjs.map → MarkdownRenderer-l6hdKOt0.cjs.map} +1 -1
  248. package/dist/next/MarkdownRenderer.cjs.js +1 -1
  249. package/dist/next/MarkdownRenderer.js +1 -1
  250. package/dist/next/MessagePopUp.cjs.js +1 -1
  251. package/dist/next/MessagePopUp.js +1 -1
  252. package/dist/next/{MessagePopup-B5OaSUBr.js → MessagePopup-N2n3NvgX.js} +19 -19
  253. package/dist/next/{MessagePopup-B5OaSUBr.js.map → MessagePopup-N2n3NvgX.js.map} +1 -1
  254. package/dist/next/{MessagePopup-BQ4OFvwo.cjs → MessagePopup-PB3e2lTg.cjs} +19 -19
  255. package/dist/next/{MessagePopup-BQ4OFvwo.cjs.map → MessagePopup-PB3e2lTg.cjs.map} +1 -1
  256. package/dist/next/{MetricBox-Dl3iruBZ.js → MetricBox-BjdAzOrZ.js} +57 -48
  257. package/dist/next/MetricBox-BjdAzOrZ.js.map +1 -0
  258. package/dist/next/{MetricBox-BylPOvoO.cjs → MetricBox-C3B6Bkcb.cjs} +57 -48
  259. package/dist/next/MetricBox-C3B6Bkcb.cjs.map +1 -0
  260. package/dist/next/MetricBox.cjs.js +1 -1
  261. package/dist/next/MetricBox.js +1 -1
  262. package/dist/next/{Modal-CevpqeOy.cjs → Modal-DHTrvNfc.cjs} +17 -17
  263. package/dist/next/{Modal-CevpqeOy.cjs.map → Modal-DHTrvNfc.cjs.map} +1 -1
  264. package/dist/next/{Modal-BARibygG.js → Modal-QTq5IcKa.js} +17 -17
  265. package/dist/next/{Modal-BARibygG.js.map → Modal-QTq5IcKa.js.map} +1 -1
  266. package/dist/next/Modal.cjs.js +1 -1
  267. package/dist/next/Modal.js +1 -1
  268. package/dist/next/{NavBar-C5FBdZT6.cjs → NavBar-Ds_02bAe.cjs} +40 -40
  269. package/dist/next/{NavBar-C5FBdZT6.cjs.map → NavBar-Ds_02bAe.cjs.map} +1 -1
  270. package/dist/next/{NavBar-Bucpo8_3.js → NavBar-v_ckzQIo.js} +40 -40
  271. package/dist/next/{NavBar-Bucpo8_3.js.map → NavBar-v_ckzQIo.js.map} +1 -1
  272. package/dist/next/NavBar.cjs.js +1 -1
  273. package/dist/next/NavBar.js +1 -1
  274. package/dist/next/{NotificationCenter-BD58bbOZ.cjs → NotificationCenter-DbYxpoy6.cjs} +43 -43
  275. package/dist/next/{NotificationCenter-BD58bbOZ.cjs.map → NotificationCenter-DbYxpoy6.cjs.map} +1 -1
  276. package/dist/next/{NotificationCenter-CSwbscYh.js → NotificationCenter-DxK09uJd.js} +43 -43
  277. package/dist/next/{NotificationCenter-CSwbscYh.js.map → NotificationCenter-DxK09uJd.js.map} +1 -1
  278. package/dist/next/NotificationCenter.cjs.js +1 -1
  279. package/dist/next/NotificationCenter.js +1 -1
  280. package/dist/next/{Pager-B-xaM28_.cjs → Pager-BU5RjNwR.cjs} +7 -7
  281. package/dist/next/{Pager-B-xaM28_.cjs.map → Pager-BU5RjNwR.cjs.map} +1 -1
  282. package/dist/next/{Pager-DWzCtb2Q.js → Pager-CtzyTqIl.js} +7 -7
  283. package/dist/next/{Pager-DWzCtb2Q.js.map → Pager-CtzyTqIl.js.map} +1 -1
  284. package/dist/next/Pager.cjs.js +1 -1
  285. package/dist/next/Pager.js +1 -1
  286. package/dist/next/{PopOver-QAYHaYcd.js → PopOver-CmPp9PkL.js} +40 -40
  287. package/dist/next/{PopOver-QAYHaYcd.js.map → PopOver-CmPp9PkL.js.map} +1 -1
  288. package/dist/next/{PopOver-Dp4eqN8G.cjs → PopOver-ixERZLpM.cjs} +40 -40
  289. package/dist/next/{PopOver-Dp4eqN8G.cjs.map → PopOver-ixERZLpM.cjs.map} +1 -1
  290. package/dist/next/PopOver.cjs.js +1 -1
  291. package/dist/next/PopOver.js +1 -1
  292. package/dist/next/{ProgressBar-BrO0fvaM.js → ProgressBar-BoU2HJv3.js} +42 -42
  293. package/dist/next/{ProgressBar-BrO0fvaM.js.map → ProgressBar-BoU2HJv3.js.map} +1 -1
  294. package/dist/next/{ProgressBar-DfXSlpKX.cjs → ProgressBar-C6zKbiq5.cjs} +42 -42
  295. package/dist/next/{ProgressBar-DfXSlpKX.cjs.map → ProgressBar-C6zKbiq5.cjs.map} +1 -1
  296. package/dist/next/ProgressBar.cjs.js +1 -1
  297. package/dist/next/ProgressBar.js +1 -1
  298. package/dist/next/{RadioButton-6cb-ZRjy.cjs → RadioButton-BCu934Uo.cjs} +38 -38
  299. package/dist/next/{RadioButton-6cb-ZRjy.cjs.map → RadioButton-BCu934Uo.cjs.map} +1 -1
  300. package/dist/next/{RadioButton-Dz_e0WUT.js → RadioButton-C14Rsx9o.js} +38 -38
  301. package/dist/next/{RadioButton-Dz_e0WUT.js.map → RadioButton-C14Rsx9o.js.map} +1 -1
  302. package/dist/next/RadioButton.cjs.js +1 -1
  303. package/dist/next/RadioButton.js +1 -1
  304. package/dist/next/{Rating-C4pqzKNQ.cjs → Rating-C9BgQANc.cjs} +34 -34
  305. package/dist/next/{Rating-C4pqzKNQ.cjs.map → Rating-C9BgQANc.cjs.map} +1 -1
  306. package/dist/next/{Rating-DbQ61tMY.js → Rating-aheV3uZJ.js} +34 -34
  307. package/dist/next/{Rating-DbQ61tMY.js.map → Rating-aheV3uZJ.js.map} +1 -1
  308. package/dist/next/Rating.cjs.js +1 -1
  309. package/dist/next/Rating.js +1 -1
  310. package/dist/next/{STT-CCzJFcVP.js → STT-CFFr1_Ls.js} +14 -14
  311. package/dist/next/{STT-CCzJFcVP.js.map → STT-CFFr1_Ls.js.map} +1 -1
  312. package/dist/next/{STT-C6kV0zwW.cjs → STT-GyAuX3-m.cjs} +14 -14
  313. package/dist/next/{STT-C6kV0zwW.cjs.map → STT-GyAuX3-m.cjs.map} +1 -1
  314. package/dist/next/ScrollToTop.cjs.js +1 -1
  315. package/dist/next/ScrollToTop.js +1 -1
  316. package/dist/next/{Select-CZivQIlV.js → Select-CPwU0IV9.js} +32 -32
  317. package/dist/next/{Select-CZivQIlV.js.map → Select-CPwU0IV9.js.map} +1 -1
  318. package/dist/next/{Select-CSAN6B98.cjs → Select-Dgcy2vVe.cjs} +32 -32
  319. package/dist/next/{Select-CSAN6B98.cjs.map → Select-Dgcy2vVe.cjs.map} +1 -1
  320. package/dist/next/Select.cjs.js +1 -1
  321. package/dist/next/Select.js +1 -1
  322. package/dist/next/{Sidebar-BVeRWv61.js → Sidebar-CJ4VrQIW.js} +38 -38
  323. package/dist/next/{Sidebar-BVeRWv61.js.map → Sidebar-CJ4VrQIW.js.map} +1 -1
  324. package/dist/next/{Sidebar-DcDJjNrK.cjs → Sidebar-DajVSn82.cjs} +38 -38
  325. package/dist/next/{Sidebar-DcDJjNrK.cjs.map → Sidebar-DajVSn82.cjs.map} +1 -1
  326. package/dist/next/Sidebar.cjs.js +1 -1
  327. package/dist/next/Sidebar.js +1 -1
  328. package/dist/next/{Skeleton-rSW1X4hk.js → Skeleton-D8C29p3K.js} +27 -27
  329. package/dist/next/{Skeleton-rSW1X4hk.js.map → Skeleton-D8C29p3K.js.map} +1 -1
  330. package/dist/next/{Skeleton-JgU17y-3.cjs → Skeleton-Dmz7m0dj.cjs} +27 -27
  331. package/dist/next/{Skeleton-JgU17y-3.cjs.map → Skeleton-Dmz7m0dj.cjs.map} +1 -1
  332. package/dist/next/Skeleton.cjs.js +1 -1
  333. package/dist/next/Skeleton.js +1 -1
  334. package/dist/next/{Slider-CdSPPw1x.js → Slider-BOAgWYkH.js} +43 -43
  335. package/dist/next/{Slider-CdSPPw1x.js.map → Slider-BOAgWYkH.js.map} +1 -1
  336. package/dist/next/{Slider-B8e96nMm.cjs → Slider-DQM9nV1P.cjs} +43 -43
  337. package/dist/next/{Slider-B8e96nMm.cjs.map → Slider-DQM9nV1P.cjs.map} +1 -1
  338. package/dist/next/Slider.cjs.js +1 -1
  339. package/dist/next/Slider.js +1 -1
  340. package/dist/next/{Spinner-B89FhxVt.cjs → Spinner-0GZngKjG.cjs} +38 -38
  341. package/dist/next/Spinner-0GZngKjG.cjs.map +1 -0
  342. package/dist/next/{Spinner-ChiOXzru.js → Spinner-BFAOf4tt.js} +38 -38
  343. package/dist/next/Spinner-BFAOf4tt.js.map +1 -0
  344. package/dist/next/Spinner.cjs.js +1 -1
  345. package/dist/next/Spinner.js +1 -1
  346. package/dist/next/{Stepper-9uHSgp7y.js → Stepper-B03bz8wT.js} +40 -40
  347. package/dist/next/{Stepper-9uHSgp7y.js.map → Stepper-B03bz8wT.js.map} +1 -1
  348. package/dist/next/{Stepper-UwSloxRf.cjs → Stepper-XZSIlydV.cjs} +40 -40
  349. package/dist/next/{Stepper-UwSloxRf.cjs.map → Stepper-XZSIlydV.cjs.map} +1 -1
  350. package/dist/next/Stepper.cjs.js +1 -1
  351. package/dist/next/Stepper.js +1 -1
  352. package/dist/next/{Tabs-D2jqRrxR.cjs → Tabs-D8Efg8wn.cjs} +44 -44
  353. package/dist/next/{Tabs-D2jqRrxR.cjs.map → Tabs-D8Efg8wn.cjs.map} +1 -1
  354. package/dist/next/{Tabs-CvYx2xtH.js → Tabs-DmrS_FUa.js} +44 -44
  355. package/dist/next/{Tabs-CvYx2xtH.js.map → Tabs-DmrS_FUa.js.map} +1 -1
  356. package/dist/next/Tabs.cjs.js +1 -1
  357. package/dist/next/Tabs.js +1 -1
  358. package/dist/next/{TagInput-Dym0BPK1.cjs → TagInput-Bfjg9pZQ.cjs} +48 -48
  359. package/dist/next/{TagInput-Dym0BPK1.cjs.map → TagInput-Bfjg9pZQ.cjs.map} +1 -1
  360. package/dist/next/{TagInput-DUWgLslk.js → TagInput-CtYKwhEi.js} +48 -48
  361. package/dist/next/{TagInput-DUWgLslk.js.map → TagInput-CtYKwhEi.js.map} +1 -1
  362. package/dist/next/TagInput.cjs.js +1 -1
  363. package/dist/next/TagInput.js +1 -1
  364. package/dist/next/{TextArea-xg4t0Lzo.js → TextArea-n9HgwyJE.js} +25 -25
  365. package/dist/next/{TextArea-xg4t0Lzo.js.map → TextArea-n9HgwyJE.js.map} +1 -1
  366. package/dist/next/{TextArea-9AvILSCY.cjs → TextArea-rwkjK4Rf.cjs} +25 -25
  367. package/dist/next/{TextArea-9AvILSCY.cjs.map → TextArea-rwkjK4Rf.cjs.map} +1 -1
  368. package/dist/next/TextArea.cjs.js +1 -1
  369. package/dist/next/TextArea.js +1 -1
  370. package/dist/next/{TextInput-D9dzooMU.js → TextInput-ChmIMzj2.js} +26 -26
  371. package/dist/next/{TextInput-D9dzooMU.js.map → TextInput-ChmIMzj2.js.map} +1 -1
  372. package/dist/next/{TextInput-Cr0WjibW.cjs → TextInput-Z2izAjJj.cjs} +26 -26
  373. package/dist/next/{TextInput-Cr0WjibW.cjs.map → TextInput-Z2izAjJj.cjs.map} +1 -1
  374. package/dist/next/TextInput.cjs.js +1 -1
  375. package/dist/next/TextInput.js +1 -1
  376. package/dist/next/{Timeline-DXSXZumg.cjs → Timeline-3bNOgI6C.cjs} +28 -28
  377. package/dist/next/{Timeline-DXSXZumg.cjs.map → Timeline-3bNOgI6C.cjs.map} +1 -1
  378. package/dist/next/{Timeline-Cg0FWWVc.js → Timeline-9947mxJO.js} +28 -28
  379. package/dist/next/{Timeline-Cg0FWWVc.js.map → Timeline-9947mxJO.js.map} +1 -1
  380. package/dist/next/Timeline.cjs.js +1 -1
  381. package/dist/next/Timeline.js +1 -1
  382. package/dist/next/{Toggle-CnpONDwl.js → Toggle-C60HtU15.js} +30 -30
  383. package/dist/next/{Toggle-CnpONDwl.js.map → Toggle-C60HtU15.js.map} +1 -1
  384. package/dist/next/{Toggle-BNK7uC_N.cjs → Toggle-XcxNC4zl.cjs} +30 -30
  385. package/dist/next/{Toggle-BNK7uC_N.cjs.map → Toggle-XcxNC4zl.cjs.map} +1 -1
  386. package/dist/next/Toggle.cjs.js +1 -1
  387. package/dist/next/Toggle.js +1 -1
  388. package/dist/next/{Toolbar-DHUozW08.cjs → Toolbar-C45B_I44.cjs} +35 -35
  389. package/dist/next/{Toolbar-DHUozW08.cjs.map → Toolbar-C45B_I44.cjs.map} +1 -1
  390. package/dist/next/{Toolbar-007Q19jl.js → Toolbar-Dq1qqx4P.js} +35 -35
  391. package/dist/next/{Toolbar-007Q19jl.js.map → Toolbar-Dq1qqx4P.js.map} +1 -1
  392. package/dist/next/Toolbar.cjs.js +1 -1
  393. package/dist/next/Toolbar.js +1 -1
  394. package/dist/next/{Tooltip-2XEuDIAw.js → Tooltip-BHIA1zE1.js} +39 -39
  395. package/dist/next/{Tooltip-2XEuDIAw.js.map → Tooltip-BHIA1zE1.js.map} +1 -1
  396. package/dist/next/{Tooltip-FCqrcC7D.cjs → Tooltip-BXd5FXXv.cjs} +39 -39
  397. package/dist/next/{Tooltip-FCqrcC7D.cjs.map → Tooltip-BXd5FXXv.cjs.map} +1 -1
  398. package/dist/next/Tooltip.cjs.js +1 -1
  399. package/dist/next/Tooltip.js +1 -1
  400. package/dist/next/{style.css → boreal-ui.css} +9636 -9636
  401. package/dist/next/{image-VX9Ty9NQ.cjs → image-A4nTeRaX.cjs} +1079 -1025
  402. package/dist/next/image-A4nTeRaX.cjs.map +1 -0
  403. package/dist/next/{image-CEz9QtOW.js → image-BBS8QO15.js} +1083 -1029
  404. package/dist/next/image-BBS8QO15.js.map +1 -0
  405. package/dist/next/index.cjs.js +69 -69
  406. package/dist/next/index.js +69 -69
  407. package/dist/next/link-CxWP3aXr.js +3829 -0
  408. package/dist/next/link-CxWP3aXr.js.map +1 -0
  409. package/dist/next/link-lNk_lOdS.cjs +3828 -0
  410. package/dist/next/link-lNk_lOdS.cjs.map +1 -0
  411. package/dist/next/navigation-CZU71Pmb.cjs +2443 -0
  412. package/dist/next/navigation-CZU71Pmb.cjs.map +1 -0
  413. package/dist/next/navigation-DxXFNXZM.js +2444 -0
  414. package/dist/next/navigation-DxXFNXZM.js.map +1 -0
  415. package/dist/tsconfig.build.tsbuildinfo +1 -1
  416. package/dist/types/components/Badge/BadgeBase.d.ts.map +1 -1
  417. package/dist/types/components/Card/CardBase.d.ts.map +1 -1
  418. package/dist/types/components/FormGroup/FormGroupBase.d.ts.map +1 -1
  419. package/dist/types/components/MarkdownRenderer/MarkdownRendererBase.d.ts.map +1 -1
  420. package/dist/types/components/MetricBox/MetricBoxBase.d.ts.map +1 -1
  421. package/package.json +12 -11
  422. package/dist/core/Badge-DOn6E2bS.cjs.map +0 -1
  423. package/dist/core/Badge-Dpjq6lUF.js.map +0 -1
  424. package/dist/core/Card-D-GQwaUJ.js.map +0 -1
  425. package/dist/core/Card-DftqfPue.cjs.map +0 -1
  426. package/dist/core/Footer-DMOA1W7N.cjs.map +0 -1
  427. package/dist/core/Footer-zO4RGjCl.js.map +0 -1
  428. package/dist/core/FormGroup-C2TWC17P.cjs.map +0 -1
  429. package/dist/core/FormGroup-tSK_NN0-.js.map +0 -1
  430. package/dist/core/IconButton-CR9bTZoJ.cjs.map +0 -1
  431. package/dist/core/IconButton-_lxTppua.js.map +0 -1
  432. package/dist/core/MarkdownRenderer-B1LmmpZm.js.map +0 -1
  433. package/dist/core/MarkdownRenderer-LUXCa_a8.cjs.map +0 -1
  434. package/dist/core/MetricBox-BcOdQM-l.cjs.map +0 -1
  435. package/dist/core/MetricBox-Dh911MS2.js.map +0 -1
  436. package/dist/core/Spinner-CEIk_hpT.cjs.map +0 -1
  437. package/dist/core/Spinner-D81UG24n.js.map +0 -1
  438. package/dist/next/Badge-DbmM5wGc.cjs.map +0 -1
  439. package/dist/next/Badge-k6Dk5S_p.js.map +0 -1
  440. package/dist/next/Card-BFmGnvxN.cjs.map +0 -1
  441. package/dist/next/Card-DhxLw6XZ.js.map +0 -1
  442. package/dist/next/Footer-BSEbf6CL.js.map +0 -1
  443. package/dist/next/Footer-DAZLz11H.cjs.map +0 -1
  444. package/dist/next/FormGroup-6Ss6pNqV.cjs.map +0 -1
  445. package/dist/next/FormGroup-DbUqgg_b.js.map +0 -1
  446. package/dist/next/IconButton-VSz8qAIg.cjs.map +0 -1
  447. package/dist/next/IconButton-qQljwBB2.js.map +0 -1
  448. package/dist/next/MetricBox-BylPOvoO.cjs.map +0 -1
  449. package/dist/next/MetricBox-Dl3iruBZ.js.map +0 -1
  450. package/dist/next/Spinner-B89FhxVt.cjs.map +0 -1
  451. package/dist/next/Spinner-ChiOXzru.js.map +0 -1
  452. package/dist/next/image-CEz9QtOW.js.map +0 -1
  453. package/dist/next/image-VX9Ty9NQ.cjs.map +0 -1
  454. package/dist/next/link-Bik5xH00.js +0 -2878
  455. package/dist/next/link-Bik5xH00.js.map +0 -1
  456. package/dist/next/link-hxAaLm0Q.cjs +0 -2877
  457. package/dist/next/link-hxAaLm0Q.cjs.map +0 -1
  458. package/dist/next/navigation-DTwYCgCL.js +0 -1991
  459. package/dist/next/navigation-DTwYCgCL.js.map +0 -1
  460. package/dist/next/navigation-m012syo9.cjs +0 -1990
  461. package/dist/next/navigation-m012syo9.cjs.map +0 -1
@@ -0,0 +1,3829 @@
1
+ import require$$2 from "react/jsx-runtime";
2
+ import React from "react";
3
+ function getDefaultExportFromCjs(x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5
+ }
6
+ var _interop_require_default = {};
7
+ var hasRequired_interop_require_default;
8
+ function require_interop_require_default() {
9
+ if (hasRequired_interop_require_default) return _interop_require_default;
10
+ hasRequired_interop_require_default = 1;
11
+ function _interop_require_default$1(obj) {
12
+ return obj && obj.__esModule ? obj : { default: obj };
13
+ }
14
+ _interop_require_default._ = _interop_require_default$1;
15
+ return _interop_require_default;
16
+ }
17
+ var _interop_require_wildcard = {};
18
+ var hasRequired_interop_require_wildcard;
19
+ function require_interop_require_wildcard() {
20
+ if (hasRequired_interop_require_wildcard) return _interop_require_wildcard;
21
+ hasRequired_interop_require_wildcard = 1;
22
+ function _getRequireWildcardCache(nodeInterop) {
23
+ if (typeof WeakMap !== "function") return null;
24
+ var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
25
+ var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
26
+ return (_getRequireWildcardCache = function(nodeInterop2) {
27
+ return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
28
+ })(nodeInterop);
29
+ }
30
+ function _interop_require_wildcard$1(obj, nodeInterop) {
31
+ if (!nodeInterop && obj && obj.__esModule) return obj;
32
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") return { default: obj };
33
+ var cache = _getRequireWildcardCache(nodeInterop);
34
+ if (cache && cache.has(obj)) return cache.get(obj);
35
+ var newObj = { __proto__: null };
36
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
37
+ for (var key in obj) {
38
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
39
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
40
+ if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
41
+ else newObj[key] = obj[key];
42
+ }
43
+ }
44
+ newObj.default = obj;
45
+ if (cache) cache.set(obj, newObj);
46
+ return newObj;
47
+ }
48
+ _interop_require_wildcard._ = _interop_require_wildcard$1;
49
+ return _interop_require_wildcard;
50
+ }
51
+ var routerContext_sharedRuntime = {};
52
+ var hasRequiredRouterContext_sharedRuntime;
53
+ function requireRouterContext_sharedRuntime() {
54
+ if (hasRequiredRouterContext_sharedRuntime) return routerContext_sharedRuntime;
55
+ hasRequiredRouterContext_sharedRuntime = 1;
56
+ (function(exports$1) {
57
+ Object.defineProperty(exports$1, "__esModule", {
58
+ value: true
59
+ });
60
+ Object.defineProperty(exports$1, "RouterContext", {
61
+ enumerable: true,
62
+ get: function() {
63
+ return RouterContext;
64
+ }
65
+ });
66
+ const _interop_require_default2 = /* @__PURE__ */ require_interop_require_default();
67
+ const _react = /* @__PURE__ */ _interop_require_default2._(React);
68
+ const RouterContext = _react.default.createContext(null);
69
+ if (process.env.NODE_ENV !== "production") {
70
+ RouterContext.displayName = "RouterContext";
71
+ }
72
+ })(routerContext_sharedRuntime);
73
+ return routerContext_sharedRuntime;
74
+ }
75
+ var useMergedRef = { exports: {} };
76
+ var hasRequiredUseMergedRef;
77
+ function requireUseMergedRef() {
78
+ if (hasRequiredUseMergedRef) return useMergedRef.exports;
79
+ hasRequiredUseMergedRef = 1;
80
+ (function(module, exports$1) {
81
+ Object.defineProperty(exports$1, "__esModule", {
82
+ value: true
83
+ });
84
+ Object.defineProperty(exports$1, "useMergedRef", {
85
+ enumerable: true,
86
+ get: function() {
87
+ return useMergedRef2;
88
+ }
89
+ });
90
+ const _react = React;
91
+ function useMergedRef2(refA, refB) {
92
+ const cleanupA = (0, _react.useRef)(null);
93
+ const cleanupB = (0, _react.useRef)(null);
94
+ return (0, _react.useCallback)((current) => {
95
+ if (current === null) {
96
+ const cleanupFnA = cleanupA.current;
97
+ if (cleanupFnA) {
98
+ cleanupA.current = null;
99
+ cleanupFnA();
100
+ }
101
+ const cleanupFnB = cleanupB.current;
102
+ if (cleanupFnB) {
103
+ cleanupB.current = null;
104
+ cleanupFnB();
105
+ }
106
+ } else {
107
+ if (refA) {
108
+ cleanupA.current = applyRef(refA, current);
109
+ }
110
+ if (refB) {
111
+ cleanupB.current = applyRef(refB, current);
112
+ }
113
+ }
114
+ }, [
115
+ refA,
116
+ refB
117
+ ]);
118
+ }
119
+ function applyRef(refA, current) {
120
+ if (typeof refA === "function") {
121
+ const cleanup = refA(current);
122
+ if (typeof cleanup === "function") {
123
+ return cleanup;
124
+ } else {
125
+ return () => refA(null);
126
+ }
127
+ } else {
128
+ refA.current = current;
129
+ return () => {
130
+ refA.current = null;
131
+ };
132
+ }
133
+ }
134
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
135
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
136
+ Object.assign(exports$1.default, exports$1);
137
+ module.exports = exports$1.default;
138
+ }
139
+ })(useMergedRef, useMergedRef.exports);
140
+ return useMergedRef.exports;
141
+ }
142
+ var link$1 = { exports: {} };
143
+ var resolveHref = { exports: {} };
144
+ var querystring = {};
145
+ var hasRequiredQuerystring;
146
+ function requireQuerystring() {
147
+ if (hasRequiredQuerystring) return querystring;
148
+ hasRequiredQuerystring = 1;
149
+ (function(exports$1) {
150
+ Object.defineProperty(exports$1, "__esModule", {
151
+ value: true
152
+ });
153
+ function _export(target, all) {
154
+ for (var name in all) Object.defineProperty(target, name, {
155
+ enumerable: true,
156
+ get: all[name]
157
+ });
158
+ }
159
+ _export(exports$1, {
160
+ assign: function() {
161
+ return assign;
162
+ },
163
+ searchParamsToUrlQuery: function() {
164
+ return searchParamsToUrlQuery;
165
+ },
166
+ urlQueryToSearchParams: function() {
167
+ return urlQueryToSearchParams;
168
+ }
169
+ });
170
+ function searchParamsToUrlQuery(searchParams) {
171
+ const query = {};
172
+ for (const [key, value] of searchParams.entries()) {
173
+ const existing = query[key];
174
+ if (typeof existing === "undefined") {
175
+ query[key] = value;
176
+ } else if (Array.isArray(existing)) {
177
+ existing.push(value);
178
+ } else {
179
+ query[key] = [
180
+ existing,
181
+ value
182
+ ];
183
+ }
184
+ }
185
+ return query;
186
+ }
187
+ function stringifyUrlQueryParam(param) {
188
+ if (typeof param === "string") {
189
+ return param;
190
+ }
191
+ if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") {
192
+ return String(param);
193
+ } else {
194
+ return "";
195
+ }
196
+ }
197
+ function urlQueryToSearchParams(query) {
198
+ const searchParams = new URLSearchParams();
199
+ for (const [key, value] of Object.entries(query)) {
200
+ if (Array.isArray(value)) {
201
+ for (const item of value) {
202
+ searchParams.append(key, stringifyUrlQueryParam(item));
203
+ }
204
+ } else {
205
+ searchParams.set(key, stringifyUrlQueryParam(value));
206
+ }
207
+ }
208
+ return searchParams;
209
+ }
210
+ function assign(target, ...searchParamsList) {
211
+ for (const searchParams of searchParamsList) {
212
+ for (const key of searchParams.keys()) {
213
+ target.delete(key);
214
+ }
215
+ for (const [key, value] of searchParams.entries()) {
216
+ target.append(key, value);
217
+ }
218
+ }
219
+ return target;
220
+ }
221
+ })(querystring);
222
+ return querystring;
223
+ }
224
+ var formatUrl = {};
225
+ var hasRequiredFormatUrl;
226
+ function requireFormatUrl() {
227
+ if (hasRequiredFormatUrl) return formatUrl;
228
+ hasRequiredFormatUrl = 1;
229
+ (function(exports$1) {
230
+ Object.defineProperty(exports$1, "__esModule", {
231
+ value: true
232
+ });
233
+ function _export(target, all) {
234
+ for (var name in all) Object.defineProperty(target, name, {
235
+ enumerable: true,
236
+ get: all[name]
237
+ });
238
+ }
239
+ _export(exports$1, {
240
+ formatUrl: function() {
241
+ return formatUrl2;
242
+ },
243
+ formatWithValidation: function() {
244
+ return formatWithValidation;
245
+ },
246
+ urlObjectKeys: function() {
247
+ return urlObjectKeys;
248
+ }
249
+ });
250
+ const _interop_require_wildcard2 = /* @__PURE__ */ require_interop_require_wildcard();
251
+ const _querystring = /* @__PURE__ */ _interop_require_wildcard2._(requireQuerystring());
252
+ const slashedProtocols = /https?|ftp|gopher|file/;
253
+ function formatUrl2(urlObj) {
254
+ let { auth, hostname } = urlObj;
255
+ let protocol = urlObj.protocol || "";
256
+ let pathname = urlObj.pathname || "";
257
+ let hash = urlObj.hash || "";
258
+ let query = urlObj.query || "";
259
+ let host = false;
260
+ auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
261
+ if (urlObj.host) {
262
+ host = auth + urlObj.host;
263
+ } else if (hostname) {
264
+ host = auth + (~hostname.indexOf(":") ? `[${hostname}]` : hostname);
265
+ if (urlObj.port) {
266
+ host += ":" + urlObj.port;
267
+ }
268
+ }
269
+ if (query && typeof query === "object") {
270
+ query = String(_querystring.urlQueryToSearchParams(query));
271
+ }
272
+ let search = urlObj.search || query && `?${query}` || "";
273
+ if (protocol && !protocol.endsWith(":")) protocol += ":";
274
+ if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
275
+ host = "//" + (host || "");
276
+ if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
277
+ } else if (!host) {
278
+ host = "";
279
+ }
280
+ if (hash && hash[0] !== "#") hash = "#" + hash;
281
+ if (search && search[0] !== "?") search = "?" + search;
282
+ pathname = pathname.replace(/[?#]/g, encodeURIComponent);
283
+ search = search.replace("#", "%23");
284
+ return `${protocol}${host}${pathname}${search}${hash}`;
285
+ }
286
+ const urlObjectKeys = [
287
+ "auth",
288
+ "hash",
289
+ "host",
290
+ "hostname",
291
+ "href",
292
+ "path",
293
+ "pathname",
294
+ "port",
295
+ "protocol",
296
+ "query",
297
+ "search",
298
+ "slashes"
299
+ ];
300
+ function formatWithValidation(url) {
301
+ if (process.env.NODE_ENV === "development") {
302
+ if (url !== null && typeof url === "object") {
303
+ Object.keys(url).forEach((key) => {
304
+ if (!urlObjectKeys.includes(key)) {
305
+ console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
306
+ }
307
+ });
308
+ }
309
+ }
310
+ return formatUrl2(url);
311
+ }
312
+ })(formatUrl);
313
+ return formatUrl;
314
+ }
315
+ var omit = {};
316
+ var hasRequiredOmit;
317
+ function requireOmit() {
318
+ if (hasRequiredOmit) return omit;
319
+ hasRequiredOmit = 1;
320
+ (function(exports$1) {
321
+ Object.defineProperty(exports$1, "__esModule", {
322
+ value: true
323
+ });
324
+ Object.defineProperty(exports$1, "omit", {
325
+ enumerable: true,
326
+ get: function() {
327
+ return omit2;
328
+ }
329
+ });
330
+ function omit2(object, keys) {
331
+ const omitted = {};
332
+ Object.keys(object).forEach((key) => {
333
+ if (!keys.includes(key)) {
334
+ omitted[key] = object[key];
335
+ }
336
+ });
337
+ return omitted;
338
+ }
339
+ })(omit);
340
+ return omit;
341
+ }
342
+ var utils$1 = {};
343
+ var hasRequiredUtils$1;
344
+ function requireUtils$1() {
345
+ if (hasRequiredUtils$1) return utils$1;
346
+ hasRequiredUtils$1 = 1;
347
+ (function(exports$1) {
348
+ Object.defineProperty(exports$1, "__esModule", {
349
+ value: true
350
+ });
351
+ function _export(target, all) {
352
+ for (var name in all) Object.defineProperty(target, name, {
353
+ enumerable: true,
354
+ get: all[name]
355
+ });
356
+ }
357
+ _export(exports$1, {
358
+ DecodeError: function() {
359
+ return DecodeError;
360
+ },
361
+ MiddlewareNotFoundError: function() {
362
+ return MiddlewareNotFoundError;
363
+ },
364
+ MissingStaticPage: function() {
365
+ return MissingStaticPage;
366
+ },
367
+ NormalizeError: function() {
368
+ return NormalizeError;
369
+ },
370
+ PageNotFoundError: function() {
371
+ return PageNotFoundError;
372
+ },
373
+ SP: function() {
374
+ return SP;
375
+ },
376
+ ST: function() {
377
+ return ST;
378
+ },
379
+ WEB_VITALS: function() {
380
+ return WEB_VITALS;
381
+ },
382
+ execOnce: function() {
383
+ return execOnce;
384
+ },
385
+ getDisplayName: function() {
386
+ return getDisplayName;
387
+ },
388
+ getLocationOrigin: function() {
389
+ return getLocationOrigin;
390
+ },
391
+ getURL: function() {
392
+ return getURL;
393
+ },
394
+ isAbsoluteUrl: function() {
395
+ return isAbsoluteUrl;
396
+ },
397
+ isResSent: function() {
398
+ return isResSent;
399
+ },
400
+ loadGetInitialProps: function() {
401
+ return loadGetInitialProps;
402
+ },
403
+ normalizeRepeatedSlashes: function() {
404
+ return normalizeRepeatedSlashes;
405
+ },
406
+ stringifyError: function() {
407
+ return stringifyError;
408
+ }
409
+ });
410
+ const WEB_VITALS = [
411
+ "CLS",
412
+ "FCP",
413
+ "FID",
414
+ "INP",
415
+ "LCP",
416
+ "TTFB"
417
+ ];
418
+ function execOnce(fn) {
419
+ let used = false;
420
+ let result;
421
+ return (...args) => {
422
+ if (!used) {
423
+ used = true;
424
+ result = fn(...args);
425
+ }
426
+ return result;
427
+ };
428
+ }
429
+ const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
430
+ const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
431
+ function getLocationOrigin() {
432
+ const { protocol, hostname, port } = window.location;
433
+ return `${protocol}//${hostname}${port ? ":" + port : ""}`;
434
+ }
435
+ function getURL() {
436
+ const { href } = window.location;
437
+ const origin = getLocationOrigin();
438
+ return href.substring(origin.length);
439
+ }
440
+ function getDisplayName(Component) {
441
+ return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
442
+ }
443
+ function isResSent(res) {
444
+ return res.finished || res.headersSent;
445
+ }
446
+ function normalizeRepeatedSlashes(url) {
447
+ const urlParts = url.split("?");
448
+ const urlNoQuery = urlParts[0];
449
+ return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
450
+ }
451
+ async function loadGetInitialProps(App, ctx) {
452
+ var _a;
453
+ if (process.env.NODE_ENV !== "production") {
454
+ if ((_a = App.prototype) == null ? void 0 : _a.getInitialProps) {
455
+ 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.`;
456
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
457
+ value: "E394",
458
+ enumerable: false,
459
+ configurable: true
460
+ });
461
+ }
462
+ }
463
+ const res = ctx.res || ctx.ctx && ctx.ctx.res;
464
+ if (!App.getInitialProps) {
465
+ if (ctx.ctx && ctx.Component) {
466
+ return {
467
+ pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
468
+ };
469
+ }
470
+ return {};
471
+ }
472
+ const props = await App.getInitialProps(ctx);
473
+ if (res && isResSent(res)) {
474
+ return props;
475
+ }
476
+ if (!props) {
477
+ const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
478
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
479
+ value: "E394",
480
+ enumerable: false,
481
+ configurable: true
482
+ });
483
+ }
484
+ if (process.env.NODE_ENV !== "production") {
485
+ if (Object.keys(props).length === 0 && !ctx.ctx) {
486
+ 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`);
487
+ }
488
+ }
489
+ return props;
490
+ }
491
+ const SP = typeof performance !== "undefined";
492
+ const ST = SP && [
493
+ "mark",
494
+ "measure",
495
+ "getEntriesByName"
496
+ ].every((method) => typeof performance[method] === "function");
497
+ class DecodeError extends Error {
498
+ }
499
+ class NormalizeError extends Error {
500
+ }
501
+ class PageNotFoundError extends Error {
502
+ constructor(page) {
503
+ super();
504
+ this.code = "ENOENT";
505
+ this.name = "PageNotFoundError";
506
+ this.message = `Cannot find module for page: ${page}`;
507
+ }
508
+ }
509
+ class MissingStaticPage extends Error {
510
+ constructor(page, message) {
511
+ super();
512
+ this.message = `Failed to load static file for page: ${page} ${message}`;
513
+ }
514
+ }
515
+ class MiddlewareNotFoundError extends Error {
516
+ constructor() {
517
+ super();
518
+ this.code = "ENOENT";
519
+ this.message = `Cannot find the middleware module`;
520
+ }
521
+ }
522
+ function stringifyError(error) {
523
+ return JSON.stringify({
524
+ message: error.message,
525
+ stack: error.stack
526
+ });
527
+ }
528
+ })(utils$1);
529
+ return utils$1;
530
+ }
531
+ var normalizeTrailingSlash = { exports: {} };
532
+ var removeTrailingSlash = {};
533
+ var hasRequiredRemoveTrailingSlash;
534
+ function requireRemoveTrailingSlash() {
535
+ if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash;
536
+ hasRequiredRemoveTrailingSlash = 1;
537
+ (function(exports$1) {
538
+ Object.defineProperty(exports$1, "__esModule", {
539
+ value: true
540
+ });
541
+ Object.defineProperty(exports$1, "removeTrailingSlash", {
542
+ enumerable: true,
543
+ get: function() {
544
+ return removeTrailingSlash2;
545
+ }
546
+ });
547
+ function removeTrailingSlash2(route) {
548
+ return route.replace(/\/$/, "") || "/";
549
+ }
550
+ })(removeTrailingSlash);
551
+ return removeTrailingSlash;
552
+ }
553
+ var parsePath = {};
554
+ var hasRequiredParsePath;
555
+ function requireParsePath() {
556
+ if (hasRequiredParsePath) return parsePath;
557
+ hasRequiredParsePath = 1;
558
+ (function(exports$1) {
559
+ Object.defineProperty(exports$1, "__esModule", {
560
+ value: true
561
+ });
562
+ Object.defineProperty(exports$1, "parsePath", {
563
+ enumerable: true,
564
+ get: function() {
565
+ return parsePath2;
566
+ }
567
+ });
568
+ function parsePath2(path) {
569
+ const hashIndex = path.indexOf("#");
570
+ const queryIndex = path.indexOf("?");
571
+ const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
572
+ if (hasQuery || hashIndex > -1) {
573
+ return {
574
+ pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
575
+ query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
576
+ hash: hashIndex > -1 ? path.slice(hashIndex) : ""
577
+ };
578
+ }
579
+ return {
580
+ pathname: path,
581
+ query: "",
582
+ hash: ""
583
+ };
584
+ }
585
+ })(parsePath);
586
+ return parsePath;
587
+ }
588
+ var hasRequiredNormalizeTrailingSlash;
589
+ function requireNormalizeTrailingSlash() {
590
+ if (hasRequiredNormalizeTrailingSlash) return normalizeTrailingSlash.exports;
591
+ hasRequiredNormalizeTrailingSlash = 1;
592
+ (function(module, exports$1) {
593
+ Object.defineProperty(exports$1, "__esModule", {
594
+ value: true
595
+ });
596
+ Object.defineProperty(exports$1, "normalizePathTrailingSlash", {
597
+ enumerable: true,
598
+ get: function() {
599
+ return normalizePathTrailingSlash;
600
+ }
601
+ });
602
+ const _removetrailingslash = requireRemoveTrailingSlash();
603
+ const _parsepath = requireParsePath();
604
+ const normalizePathTrailingSlash = (path) => {
605
+ if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) {
606
+ return path;
607
+ }
608
+ const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
609
+ if (process.env.__NEXT_TRAILING_SLASH) {
610
+ if (/\.[^/]+\/?$/.test(pathname)) {
611
+ return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
612
+ } else if (pathname.endsWith("/")) {
613
+ return `${pathname}${query}${hash}`;
614
+ } else {
615
+ return `${pathname}/${query}${hash}`;
616
+ }
617
+ }
618
+ return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
619
+ };
620
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
621
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
622
+ Object.assign(exports$1.default, exports$1);
623
+ module.exports = exports$1.default;
624
+ }
625
+ })(normalizeTrailingSlash, normalizeTrailingSlash.exports);
626
+ return normalizeTrailingSlash.exports;
627
+ }
628
+ var isLocalUrl = {};
629
+ var hasBasePath = { exports: {} };
630
+ var pathHasPrefix = {};
631
+ var hasRequiredPathHasPrefix;
632
+ function requirePathHasPrefix() {
633
+ if (hasRequiredPathHasPrefix) return pathHasPrefix;
634
+ hasRequiredPathHasPrefix = 1;
635
+ (function(exports$1) {
636
+ Object.defineProperty(exports$1, "__esModule", {
637
+ value: true
638
+ });
639
+ Object.defineProperty(exports$1, "pathHasPrefix", {
640
+ enumerable: true,
641
+ get: function() {
642
+ return pathHasPrefix2;
643
+ }
644
+ });
645
+ const _parsepath = requireParsePath();
646
+ function pathHasPrefix2(path, prefix) {
647
+ if (typeof path !== "string") {
648
+ return false;
649
+ }
650
+ const { pathname } = (0, _parsepath.parsePath)(path);
651
+ return pathname === prefix || pathname.startsWith(prefix + "/");
652
+ }
653
+ })(pathHasPrefix);
654
+ return pathHasPrefix;
655
+ }
656
+ var hasRequiredHasBasePath;
657
+ function requireHasBasePath() {
658
+ if (hasRequiredHasBasePath) return hasBasePath.exports;
659
+ hasRequiredHasBasePath = 1;
660
+ (function(module, exports$1) {
661
+ Object.defineProperty(exports$1, "__esModule", {
662
+ value: true
663
+ });
664
+ Object.defineProperty(exports$1, "hasBasePath", {
665
+ enumerable: true,
666
+ get: function() {
667
+ return hasBasePath2;
668
+ }
669
+ });
670
+ const _pathhasprefix = requirePathHasPrefix();
671
+ const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
672
+ function hasBasePath2(path) {
673
+ return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
674
+ }
675
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
676
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
677
+ Object.assign(exports$1.default, exports$1);
678
+ module.exports = exports$1.default;
679
+ }
680
+ })(hasBasePath, hasBasePath.exports);
681
+ return hasBasePath.exports;
682
+ }
683
+ var hasRequiredIsLocalUrl;
684
+ function requireIsLocalUrl() {
685
+ if (hasRequiredIsLocalUrl) return isLocalUrl;
686
+ hasRequiredIsLocalUrl = 1;
687
+ (function(exports$1) {
688
+ Object.defineProperty(exports$1, "__esModule", {
689
+ value: true
690
+ });
691
+ Object.defineProperty(exports$1, "isLocalURL", {
692
+ enumerable: true,
693
+ get: function() {
694
+ return isLocalURL;
695
+ }
696
+ });
697
+ const _utils = requireUtils$1();
698
+ const _hasbasepath = requireHasBasePath();
699
+ function isLocalURL(url) {
700
+ if (!(0, _utils.isAbsoluteUrl)(url)) return true;
701
+ try {
702
+ const locationOrigin = (0, _utils.getLocationOrigin)();
703
+ const resolved = new URL(url, locationOrigin);
704
+ return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
705
+ } catch (_) {
706
+ return false;
707
+ }
708
+ }
709
+ })(isLocalUrl);
710
+ return isLocalUrl;
711
+ }
712
+ var utils = {};
713
+ var sortedRoutes = {};
714
+ var hasRequiredSortedRoutes;
715
+ function requireSortedRoutes() {
716
+ if (hasRequiredSortedRoutes) return sortedRoutes;
717
+ hasRequiredSortedRoutes = 1;
718
+ (function(exports$1) {
719
+ Object.defineProperty(exports$1, "__esModule", {
720
+ value: true
721
+ });
722
+ function _export(target, all) {
723
+ for (var name in all) Object.defineProperty(target, name, {
724
+ enumerable: true,
725
+ get: all[name]
726
+ });
727
+ }
728
+ _export(exports$1, {
729
+ getSortedRouteObjects: function() {
730
+ return getSortedRouteObjects;
731
+ },
732
+ getSortedRoutes: function() {
733
+ return getSortedRoutes;
734
+ }
735
+ });
736
+ class UrlNode {
737
+ insert(urlPath) {
738
+ this._insert(urlPath.split("/").filter(Boolean), [], false);
739
+ }
740
+ smoosh() {
741
+ return this._smoosh();
742
+ }
743
+ _smoosh(prefix = "/") {
744
+ const childrenPaths = [
745
+ ...this.children.keys()
746
+ ].sort();
747
+ if (this.slugName !== null) {
748
+ childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
749
+ }
750
+ if (this.restSlugName !== null) {
751
+ childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
752
+ }
753
+ if (this.optionalRestSlugName !== null) {
754
+ childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
755
+ }
756
+ const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [
757
+ ...prev,
758
+ ...curr
759
+ ], []);
760
+ if (this.slugName !== null) {
761
+ routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
762
+ }
763
+ if (!this.placeholder) {
764
+ const r = prefix === "/" ? "/" : prefix.slice(0, -1);
765
+ if (this.optionalRestSlugName != null) {
766
+ throw Object.defineProperty(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", {
767
+ value: "E458",
768
+ enumerable: false,
769
+ configurable: true
770
+ });
771
+ }
772
+ routes.unshift(r);
773
+ }
774
+ if (this.restSlugName !== null) {
775
+ routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
776
+ }
777
+ if (this.optionalRestSlugName !== null) {
778
+ routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
779
+ }
780
+ return routes;
781
+ }
782
+ _insert(urlPaths, slugNames, isCatchAll) {
783
+ if (urlPaths.length === 0) {
784
+ this.placeholder = false;
785
+ return;
786
+ }
787
+ if (isCatchAll) {
788
+ throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
789
+ value: "E392",
790
+ enumerable: false,
791
+ configurable: true
792
+ });
793
+ }
794
+ let nextSegment = urlPaths[0];
795
+ if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
796
+ let handleSlug = function(previousSlug, nextSlug) {
797
+ if (previousSlug !== null) {
798
+ if (previousSlug !== nextSlug) {
799
+ throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
800
+ value: "E337",
801
+ enumerable: false,
802
+ configurable: true
803
+ });
804
+ }
805
+ }
806
+ slugNames.forEach((slug) => {
807
+ if (slug === nextSlug) {
808
+ throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
809
+ value: "E247",
810
+ enumerable: false,
811
+ configurable: true
812
+ });
813
+ }
814
+ if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
815
+ throw Object.defineProperty(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", {
816
+ value: "E499",
817
+ enumerable: false,
818
+ configurable: true
819
+ });
820
+ }
821
+ });
822
+ slugNames.push(nextSlug);
823
+ };
824
+ let segmentName = nextSegment.slice(1, -1);
825
+ let isOptional = false;
826
+ if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
827
+ segmentName = segmentName.slice(1, -1);
828
+ isOptional = true;
829
+ }
830
+ if (segmentName.startsWith("…")) {
831
+ throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
832
+ value: "E147",
833
+ enumerable: false,
834
+ configurable: true
835
+ });
836
+ }
837
+ if (segmentName.startsWith("...")) {
838
+ segmentName = segmentName.substring(3);
839
+ isCatchAll = true;
840
+ }
841
+ if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
842
+ throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
843
+ value: "E421",
844
+ enumerable: false,
845
+ configurable: true
846
+ });
847
+ }
848
+ if (segmentName.startsWith(".")) {
849
+ throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
850
+ value: "E288",
851
+ enumerable: false,
852
+ configurable: true
853
+ });
854
+ }
855
+ if (isCatchAll) {
856
+ if (isOptional) {
857
+ if (this.restSlugName != null) {
858
+ throw Object.defineProperty(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", {
859
+ value: "E299",
860
+ enumerable: false,
861
+ configurable: true
862
+ });
863
+ }
864
+ handleSlug(this.optionalRestSlugName, segmentName);
865
+ this.optionalRestSlugName = segmentName;
866
+ nextSegment = "[[...]]";
867
+ } else {
868
+ if (this.optionalRestSlugName != null) {
869
+ throw Object.defineProperty(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", {
870
+ value: "E300",
871
+ enumerable: false,
872
+ configurable: true
873
+ });
874
+ }
875
+ handleSlug(this.restSlugName, segmentName);
876
+ this.restSlugName = segmentName;
877
+ nextSegment = "[...]";
878
+ }
879
+ } else {
880
+ if (isOptional) {
881
+ throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
882
+ value: "E435",
883
+ enumerable: false,
884
+ configurable: true
885
+ });
886
+ }
887
+ handleSlug(this.slugName, segmentName);
888
+ this.slugName = segmentName;
889
+ nextSegment = "[]";
890
+ }
891
+ }
892
+ if (!this.children.has(nextSegment)) {
893
+ this.children.set(nextSegment, new UrlNode());
894
+ }
895
+ this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
896
+ }
897
+ constructor() {
898
+ this.placeholder = true;
899
+ this.children = /* @__PURE__ */ new Map();
900
+ this.slugName = null;
901
+ this.restSlugName = null;
902
+ this.optionalRestSlugName = null;
903
+ }
904
+ }
905
+ function getSortedRoutes(normalizedPages) {
906
+ const root = new UrlNode();
907
+ normalizedPages.forEach((pagePath) => root.insert(pagePath));
908
+ return root.smoosh();
909
+ }
910
+ function getSortedRouteObjects(objects, getter) {
911
+ const indexes = {};
912
+ const pathnames = [];
913
+ for (let i = 0; i < objects.length; i++) {
914
+ const pathname = getter(objects[i]);
915
+ indexes[pathname] = i;
916
+ pathnames[i] = pathname;
917
+ }
918
+ const sorted = getSortedRoutes(pathnames);
919
+ return sorted.map((pathname) => objects[indexes[pathname]]);
920
+ }
921
+ })(sortedRoutes);
922
+ return sortedRoutes;
923
+ }
924
+ var isDynamic = {};
925
+ var interceptionRoutes = {};
926
+ var appPaths = {};
927
+ var ensureLeadingSlash = {};
928
+ var hasRequiredEnsureLeadingSlash;
929
+ function requireEnsureLeadingSlash() {
930
+ if (hasRequiredEnsureLeadingSlash) return ensureLeadingSlash;
931
+ hasRequiredEnsureLeadingSlash = 1;
932
+ (function(exports$1) {
933
+ Object.defineProperty(exports$1, "__esModule", {
934
+ value: true
935
+ });
936
+ Object.defineProperty(exports$1, "ensureLeadingSlash", {
937
+ enumerable: true,
938
+ get: function() {
939
+ return ensureLeadingSlash2;
940
+ }
941
+ });
942
+ function ensureLeadingSlash2(path) {
943
+ return path.startsWith("/") ? path : `/${path}`;
944
+ }
945
+ })(ensureLeadingSlash);
946
+ return ensureLeadingSlash;
947
+ }
948
+ var segment = {};
949
+ var hasRequiredSegment;
950
+ function requireSegment() {
951
+ if (hasRequiredSegment) return segment;
952
+ hasRequiredSegment = 1;
953
+ (function(exports$1) {
954
+ Object.defineProperty(exports$1, "__esModule", {
955
+ value: true
956
+ });
957
+ function _export(target, all) {
958
+ for (var name in all) Object.defineProperty(target, name, {
959
+ enumerable: true,
960
+ get: all[name]
961
+ });
962
+ }
963
+ _export(exports$1, {
964
+ DEFAULT_SEGMENT_KEY: function() {
965
+ return DEFAULT_SEGMENT_KEY;
966
+ },
967
+ PAGE_SEGMENT_KEY: function() {
968
+ return PAGE_SEGMENT_KEY;
969
+ },
970
+ addSearchParamsIfPageSegment: function() {
971
+ return addSearchParamsIfPageSegment;
972
+ },
973
+ computeSelectedLayoutSegment: function() {
974
+ return computeSelectedLayoutSegment;
975
+ },
976
+ getSegmentValue: function() {
977
+ return getSegmentValue;
978
+ },
979
+ getSelectedLayoutSegmentPath: function() {
980
+ return getSelectedLayoutSegmentPath;
981
+ },
982
+ isGroupSegment: function() {
983
+ return isGroupSegment;
984
+ },
985
+ isParallelRouteSegment: function() {
986
+ return isParallelRouteSegment;
987
+ }
988
+ });
989
+ function getSegmentValue(segment2) {
990
+ return Array.isArray(segment2) ? segment2[1] : segment2;
991
+ }
992
+ function isGroupSegment(segment2) {
993
+ return segment2[0] === "(" && segment2.endsWith(")");
994
+ }
995
+ function isParallelRouteSegment(segment2) {
996
+ return segment2.startsWith("@") && segment2 !== "@children";
997
+ }
998
+ function addSearchParamsIfPageSegment(segment2, searchParams) {
999
+ const isPageSegment = segment2.includes(PAGE_SEGMENT_KEY);
1000
+ if (isPageSegment) {
1001
+ const stringifiedQuery = JSON.stringify(searchParams);
1002
+ return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
1003
+ }
1004
+ return segment2;
1005
+ }
1006
+ function computeSelectedLayoutSegment(segments, parallelRouteKey) {
1007
+ if (!segments || segments.length === 0) {
1008
+ return null;
1009
+ }
1010
+ const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
1011
+ return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
1012
+ }
1013
+ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
1014
+ let node;
1015
+ if (first) {
1016
+ node = tree[1][parallelRouteKey];
1017
+ } else {
1018
+ const parallelRoutes = tree[1];
1019
+ node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
1020
+ }
1021
+ if (!node) return segmentPath;
1022
+ const segment2 = node[0];
1023
+ let segmentValue = getSegmentValue(segment2);
1024
+ if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
1025
+ return segmentPath;
1026
+ }
1027
+ segmentPath.push(segmentValue);
1028
+ return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
1029
+ }
1030
+ const PAGE_SEGMENT_KEY = "__PAGE__";
1031
+ const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
1032
+ })(segment);
1033
+ return segment;
1034
+ }
1035
+ var hasRequiredAppPaths;
1036
+ function requireAppPaths() {
1037
+ if (hasRequiredAppPaths) return appPaths;
1038
+ hasRequiredAppPaths = 1;
1039
+ (function(exports$1) {
1040
+ Object.defineProperty(exports$1, "__esModule", {
1041
+ value: true
1042
+ });
1043
+ function _export(target, all) {
1044
+ for (var name in all) Object.defineProperty(target, name, {
1045
+ enumerable: true,
1046
+ get: all[name]
1047
+ });
1048
+ }
1049
+ _export(exports$1, {
1050
+ normalizeAppPath: function() {
1051
+ return normalizeAppPath;
1052
+ },
1053
+ normalizeRscURL: function() {
1054
+ return normalizeRscURL;
1055
+ }
1056
+ });
1057
+ const _ensureleadingslash = requireEnsureLeadingSlash();
1058
+ const _segment = requireSegment();
1059
+ function normalizeAppPath(route) {
1060
+ return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment2, index, segments) => {
1061
+ if (!segment2) {
1062
+ return pathname;
1063
+ }
1064
+ if ((0, _segment.isGroupSegment)(segment2)) {
1065
+ return pathname;
1066
+ }
1067
+ if (segment2[0] === "@") {
1068
+ return pathname;
1069
+ }
1070
+ if ((segment2 === "page" || segment2 === "route") && index === segments.length - 1) {
1071
+ return pathname;
1072
+ }
1073
+ return `${pathname}/${segment2}`;
1074
+ }, ""));
1075
+ }
1076
+ function normalizeRscURL(url) {
1077
+ return url.replace(
1078
+ /\.rsc($|\?)/,
1079
+ // $1 ensures `?` is preserved
1080
+ "$1"
1081
+ );
1082
+ }
1083
+ })(appPaths);
1084
+ return appPaths;
1085
+ }
1086
+ var hasRequiredInterceptionRoutes;
1087
+ function requireInterceptionRoutes() {
1088
+ if (hasRequiredInterceptionRoutes) return interceptionRoutes;
1089
+ hasRequiredInterceptionRoutes = 1;
1090
+ (function(exports$1) {
1091
+ Object.defineProperty(exports$1, "__esModule", {
1092
+ value: true
1093
+ });
1094
+ function _export(target, all) {
1095
+ for (var name in all) Object.defineProperty(target, name, {
1096
+ enumerable: true,
1097
+ get: all[name]
1098
+ });
1099
+ }
1100
+ _export(exports$1, {
1101
+ INTERCEPTION_ROUTE_MARKERS: function() {
1102
+ return INTERCEPTION_ROUTE_MARKERS;
1103
+ },
1104
+ extractInterceptionRouteInformation: function() {
1105
+ return extractInterceptionRouteInformation;
1106
+ },
1107
+ isInterceptionRouteAppPath: function() {
1108
+ return isInterceptionRouteAppPath;
1109
+ }
1110
+ });
1111
+ const _apppaths = requireAppPaths();
1112
+ const INTERCEPTION_ROUTE_MARKERS = [
1113
+ "(..)(..)",
1114
+ "(.)",
1115
+ "(..)",
1116
+ "(...)"
1117
+ ];
1118
+ function isInterceptionRouteAppPath(path) {
1119
+ return path.split("/").find((segment2) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m))) !== void 0;
1120
+ }
1121
+ function extractInterceptionRouteInformation(path) {
1122
+ let interceptingRoute;
1123
+ let marker;
1124
+ let interceptedRoute;
1125
+ for (const segment2 of path.split("/")) {
1126
+ marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
1127
+ if (marker) {
1128
+ [interceptingRoute, interceptedRoute] = path.split(marker, 2);
1129
+ break;
1130
+ }
1131
+ }
1132
+ if (!interceptingRoute || !marker || !interceptedRoute) {
1133
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
1134
+ value: "E269",
1135
+ enumerable: false,
1136
+ configurable: true
1137
+ });
1138
+ }
1139
+ interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
1140
+ switch (marker) {
1141
+ case "(.)":
1142
+ if (interceptingRoute === "/") {
1143
+ interceptedRoute = `/${interceptedRoute}`;
1144
+ } else {
1145
+ interceptedRoute = interceptingRoute + "/" + interceptedRoute;
1146
+ }
1147
+ break;
1148
+ case "(..)":
1149
+ if (interceptingRoute === "/") {
1150
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
1151
+ value: "E207",
1152
+ enumerable: false,
1153
+ configurable: true
1154
+ });
1155
+ }
1156
+ interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
1157
+ break;
1158
+ case "(...)":
1159
+ interceptedRoute = "/" + interceptedRoute;
1160
+ break;
1161
+ case "(..)(..)":
1162
+ const splitInterceptingRoute = interceptingRoute.split("/");
1163
+ if (splitInterceptingRoute.length <= 2) {
1164
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
1165
+ value: "E486",
1166
+ enumerable: false,
1167
+ configurable: true
1168
+ });
1169
+ }
1170
+ interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
1171
+ break;
1172
+ default:
1173
+ throw Object.defineProperty(new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
1174
+ value: "E112",
1175
+ enumerable: false,
1176
+ configurable: true
1177
+ });
1178
+ }
1179
+ return {
1180
+ interceptingRoute,
1181
+ interceptedRoute
1182
+ };
1183
+ }
1184
+ })(interceptionRoutes);
1185
+ return interceptionRoutes;
1186
+ }
1187
+ var hasRequiredIsDynamic;
1188
+ function requireIsDynamic() {
1189
+ if (hasRequiredIsDynamic) return isDynamic;
1190
+ hasRequiredIsDynamic = 1;
1191
+ (function(exports$1) {
1192
+ Object.defineProperty(exports$1, "__esModule", {
1193
+ value: true
1194
+ });
1195
+ Object.defineProperty(exports$1, "isDynamicRoute", {
1196
+ enumerable: true,
1197
+ get: function() {
1198
+ return isDynamicRoute;
1199
+ }
1200
+ });
1201
+ const _interceptionroutes = requireInterceptionRoutes();
1202
+ const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
1203
+ const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
1204
+ function isDynamicRoute(route, strict = true) {
1205
+ if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
1206
+ route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
1207
+ }
1208
+ if (strict) {
1209
+ return TEST_STRICT_ROUTE.test(route);
1210
+ }
1211
+ return TEST_ROUTE.test(route);
1212
+ }
1213
+ })(isDynamic);
1214
+ return isDynamic;
1215
+ }
1216
+ var hasRequiredUtils;
1217
+ function requireUtils() {
1218
+ if (hasRequiredUtils) return utils;
1219
+ hasRequiredUtils = 1;
1220
+ (function(exports$1) {
1221
+ Object.defineProperty(exports$1, "__esModule", {
1222
+ value: true
1223
+ });
1224
+ function _export(target, all) {
1225
+ for (var name in all) Object.defineProperty(target, name, {
1226
+ enumerable: true,
1227
+ get: all[name]
1228
+ });
1229
+ }
1230
+ _export(exports$1, {
1231
+ getSortedRouteObjects: function() {
1232
+ return _sortedroutes.getSortedRouteObjects;
1233
+ },
1234
+ getSortedRoutes: function() {
1235
+ return _sortedroutes.getSortedRoutes;
1236
+ },
1237
+ isDynamicRoute: function() {
1238
+ return _isdynamic.isDynamicRoute;
1239
+ }
1240
+ });
1241
+ const _sortedroutes = requireSortedRoutes();
1242
+ const _isdynamic = requireIsDynamic();
1243
+ })(utils);
1244
+ return utils;
1245
+ }
1246
+ var interpolateAs = {};
1247
+ var routeMatcher = {};
1248
+ var routeMatchUtils = {};
1249
+ var pathToRegexp = { exports: {} };
1250
+ var hasRequiredPathToRegexp;
1251
+ function requirePathToRegexp() {
1252
+ if (hasRequiredPathToRegexp) return pathToRegexp.exports;
1253
+ hasRequiredPathToRegexp = 1;
1254
+ (() => {
1255
+ if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
1256
+ var e = {};
1257
+ (() => {
1258
+ var n = e;
1259
+ Object.defineProperty(n, "__esModule", { value: true });
1260
+ n.pathToRegexp = n.tokensToRegexp = n.regexpToFunction = n.match = n.tokensToFunction = n.compile = n.parse = void 0;
1261
+ function lexer(e2) {
1262
+ var n2 = [];
1263
+ var r = 0;
1264
+ while (r < e2.length) {
1265
+ var t = e2[r];
1266
+ if (t === "*" || t === "+" || t === "?") {
1267
+ n2.push({ type: "MODIFIER", index: r, value: e2[r++] });
1268
+ continue;
1269
+ }
1270
+ if (t === "\\") {
1271
+ n2.push({ type: "ESCAPED_CHAR", index: r++, value: e2[r++] });
1272
+ continue;
1273
+ }
1274
+ if (t === "{") {
1275
+ n2.push({ type: "OPEN", index: r, value: e2[r++] });
1276
+ continue;
1277
+ }
1278
+ if (t === "}") {
1279
+ n2.push({ type: "CLOSE", index: r, value: e2[r++] });
1280
+ continue;
1281
+ }
1282
+ if (t === ":") {
1283
+ var a = "";
1284
+ var i = r + 1;
1285
+ while (i < e2.length) {
1286
+ var o = e2.charCodeAt(i);
1287
+ if (o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || o === 95) {
1288
+ a += e2[i++];
1289
+ continue;
1290
+ }
1291
+ break;
1292
+ }
1293
+ if (!a) throw new TypeError("Missing parameter name at ".concat(r));
1294
+ n2.push({ type: "NAME", index: r, value: a });
1295
+ r = i;
1296
+ continue;
1297
+ }
1298
+ if (t === "(") {
1299
+ var c = 1;
1300
+ var f = "";
1301
+ var i = r + 1;
1302
+ if (e2[i] === "?") {
1303
+ throw new TypeError('Pattern cannot start with "?" at '.concat(i));
1304
+ }
1305
+ while (i < e2.length) {
1306
+ if (e2[i] === "\\") {
1307
+ f += e2[i++] + e2[i++];
1308
+ continue;
1309
+ }
1310
+ if (e2[i] === ")") {
1311
+ c--;
1312
+ if (c === 0) {
1313
+ i++;
1314
+ break;
1315
+ }
1316
+ } else if (e2[i] === "(") {
1317
+ c++;
1318
+ if (e2[i + 1] !== "?") {
1319
+ throw new TypeError("Capturing groups are not allowed at ".concat(i));
1320
+ }
1321
+ }
1322
+ f += e2[i++];
1323
+ }
1324
+ if (c) throw new TypeError("Unbalanced pattern at ".concat(r));
1325
+ if (!f) throw new TypeError("Missing pattern at ".concat(r));
1326
+ n2.push({ type: "PATTERN", index: r, value: f });
1327
+ r = i;
1328
+ continue;
1329
+ }
1330
+ n2.push({ type: "CHAR", index: r, value: e2[r++] });
1331
+ }
1332
+ n2.push({ type: "END", index: r, value: "" });
1333
+ return n2;
1334
+ }
1335
+ function parse(e2, n2) {
1336
+ if (n2 === void 0) {
1337
+ n2 = {};
1338
+ }
1339
+ var r = lexer(e2);
1340
+ var t = n2.prefixes, a = t === void 0 ? "./" : t, i = n2.delimiter, o = i === void 0 ? "/#?" : i;
1341
+ var c = [];
1342
+ var f = 0;
1343
+ var u = 0;
1344
+ var p = "";
1345
+ var tryConsume = function(e3) {
1346
+ if (u < r.length && r[u].type === e3) return r[u++].value;
1347
+ };
1348
+ var mustConsume = function(e3) {
1349
+ var n3 = tryConsume(e3);
1350
+ if (n3 !== void 0) return n3;
1351
+ var t2 = r[u], a2 = t2.type, i2 = t2.index;
1352
+ throw new TypeError("Unexpected ".concat(a2, " at ").concat(i2, ", expected ").concat(e3));
1353
+ };
1354
+ var consumeText = function() {
1355
+ var e3 = "";
1356
+ var n3;
1357
+ while (n3 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) {
1358
+ e3 += n3;
1359
+ }
1360
+ return e3;
1361
+ };
1362
+ var isSafe = function(e3) {
1363
+ for (var n3 = 0, r2 = o; n3 < r2.length; n3++) {
1364
+ var t2 = r2[n3];
1365
+ if (e3.indexOf(t2) > -1) return true;
1366
+ }
1367
+ return false;
1368
+ };
1369
+ var safePattern = function(e3) {
1370
+ var n3 = c[c.length - 1];
1371
+ var r2 = e3 || (n3 && typeof n3 === "string" ? n3 : "");
1372
+ if (n3 && !r2) {
1373
+ throw new TypeError('Must have text between two parameters, missing text after "'.concat(n3.name, '"'));
1374
+ }
1375
+ if (!r2 || isSafe(r2)) return "[^".concat(escapeString(o), "]+?");
1376
+ return "(?:(?!".concat(escapeString(r2), ")[^").concat(escapeString(o), "])+?");
1377
+ };
1378
+ while (u < r.length) {
1379
+ var v = tryConsume("CHAR");
1380
+ var s = tryConsume("NAME");
1381
+ var d = tryConsume("PATTERN");
1382
+ if (s || d) {
1383
+ var g = v || "";
1384
+ if (a.indexOf(g) === -1) {
1385
+ p += g;
1386
+ g = "";
1387
+ }
1388
+ if (p) {
1389
+ c.push(p);
1390
+ p = "";
1391
+ }
1392
+ c.push({ name: s || f++, prefix: g, suffix: "", pattern: d || safePattern(g), modifier: tryConsume("MODIFIER") || "" });
1393
+ continue;
1394
+ }
1395
+ var x = v || tryConsume("ESCAPED_CHAR");
1396
+ if (x) {
1397
+ p += x;
1398
+ continue;
1399
+ }
1400
+ if (p) {
1401
+ c.push(p);
1402
+ p = "";
1403
+ }
1404
+ var h = tryConsume("OPEN");
1405
+ if (h) {
1406
+ var g = consumeText();
1407
+ var l = tryConsume("NAME") || "";
1408
+ var m = tryConsume("PATTERN") || "";
1409
+ var T = consumeText();
1410
+ mustConsume("CLOSE");
1411
+ c.push({ name: l || (m ? f++ : ""), pattern: l && !m ? safePattern(g) : m, prefix: g, suffix: T, modifier: tryConsume("MODIFIER") || "" });
1412
+ continue;
1413
+ }
1414
+ mustConsume("END");
1415
+ }
1416
+ return c;
1417
+ }
1418
+ n.parse = parse;
1419
+ function compile(e2, n2) {
1420
+ return tokensToFunction(parse(e2, n2), n2);
1421
+ }
1422
+ n.compile = compile;
1423
+ function tokensToFunction(e2, n2) {
1424
+ if (n2 === void 0) {
1425
+ n2 = {};
1426
+ }
1427
+ var r = flags(n2);
1428
+ var t = n2.encode, a = t === void 0 ? function(e3) {
1429
+ return e3;
1430
+ } : t, i = n2.validate, o = i === void 0 ? true : i;
1431
+ var c = e2.map((function(e3) {
1432
+ if (typeof e3 === "object") {
1433
+ return new RegExp("^(?:".concat(e3.pattern, ")$"), r);
1434
+ }
1435
+ }));
1436
+ return function(n3) {
1437
+ var r2 = "";
1438
+ for (var t2 = 0; t2 < e2.length; t2++) {
1439
+ var i2 = e2[t2];
1440
+ if (typeof i2 === "string") {
1441
+ r2 += i2;
1442
+ continue;
1443
+ }
1444
+ var f = n3 ? n3[i2.name] : void 0;
1445
+ var u = i2.modifier === "?" || i2.modifier === "*";
1446
+ var p = i2.modifier === "*" || i2.modifier === "+";
1447
+ if (Array.isArray(f)) {
1448
+ if (!p) {
1449
+ throw new TypeError('Expected "'.concat(i2.name, '" to not repeat, but got an array'));
1450
+ }
1451
+ if (f.length === 0) {
1452
+ if (u) continue;
1453
+ throw new TypeError('Expected "'.concat(i2.name, '" to not be empty'));
1454
+ }
1455
+ for (var v = 0; v < f.length; v++) {
1456
+ var s = a(f[v], i2);
1457
+ if (o && !c[t2].test(s)) {
1458
+ throw new TypeError('Expected all "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1459
+ }
1460
+ r2 += i2.prefix + s + i2.suffix;
1461
+ }
1462
+ continue;
1463
+ }
1464
+ if (typeof f === "string" || typeof f === "number") {
1465
+ var s = a(String(f), i2);
1466
+ if (o && !c[t2].test(s)) {
1467
+ throw new TypeError('Expected "'.concat(i2.name, '" to match "').concat(i2.pattern, '", but got "').concat(s, '"'));
1468
+ }
1469
+ r2 += i2.prefix + s + i2.suffix;
1470
+ continue;
1471
+ }
1472
+ if (u) continue;
1473
+ var d = p ? "an array" : "a string";
1474
+ throw new TypeError('Expected "'.concat(i2.name, '" to be ').concat(d));
1475
+ }
1476
+ return r2;
1477
+ };
1478
+ }
1479
+ n.tokensToFunction = tokensToFunction;
1480
+ function match(e2, n2) {
1481
+ var r = [];
1482
+ var t = pathToRegexp2(e2, r, n2);
1483
+ return regexpToFunction(t, r, n2);
1484
+ }
1485
+ n.match = match;
1486
+ function regexpToFunction(e2, n2, r) {
1487
+ if (r === void 0) {
1488
+ r = {};
1489
+ }
1490
+ var t = r.decode, a = t === void 0 ? function(e3) {
1491
+ return e3;
1492
+ } : t;
1493
+ return function(r2) {
1494
+ var t2 = e2.exec(r2);
1495
+ if (!t2) return false;
1496
+ var i = t2[0], o = t2.index;
1497
+ var c = /* @__PURE__ */ Object.create(null);
1498
+ var _loop_1 = function(e3) {
1499
+ if (t2[e3] === void 0) return "continue";
1500
+ var r3 = n2[e3 - 1];
1501
+ if (r3.modifier === "*" || r3.modifier === "+") {
1502
+ c[r3.name] = t2[e3].split(r3.prefix + r3.suffix).map((function(e4) {
1503
+ return a(e4, r3);
1504
+ }));
1505
+ } else {
1506
+ c[r3.name] = a(t2[e3], r3);
1507
+ }
1508
+ };
1509
+ for (var f = 1; f < t2.length; f++) {
1510
+ _loop_1(f);
1511
+ }
1512
+ return { path: i, index: o, params: c };
1513
+ };
1514
+ }
1515
+ n.regexpToFunction = regexpToFunction;
1516
+ function escapeString(e2) {
1517
+ return e2.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1518
+ }
1519
+ function flags(e2) {
1520
+ return e2 && e2.sensitive ? "" : "i";
1521
+ }
1522
+ function regexpToRegexp(e2, n2) {
1523
+ if (!n2) return e2;
1524
+ var r = /\((?:\?<(.*?)>)?(?!\?)/g;
1525
+ var t = 0;
1526
+ var a = r.exec(e2.source);
1527
+ while (a) {
1528
+ n2.push({ name: a[1] || t++, prefix: "", suffix: "", modifier: "", pattern: "" });
1529
+ a = r.exec(e2.source);
1530
+ }
1531
+ return e2;
1532
+ }
1533
+ function arrayToRegexp(e2, n2, r) {
1534
+ var t = e2.map((function(e3) {
1535
+ return pathToRegexp2(e3, n2, r).source;
1536
+ }));
1537
+ return new RegExp("(?:".concat(t.join("|"), ")"), flags(r));
1538
+ }
1539
+ function stringToRegexp(e2, n2, r) {
1540
+ return tokensToRegexp(parse(e2, r), n2, r);
1541
+ }
1542
+ function tokensToRegexp(e2, n2, r) {
1543
+ if (r === void 0) {
1544
+ r = {};
1545
+ }
1546
+ var t = r.strict, a = t === void 0 ? false : t, i = r.start, o = i === void 0 ? true : i, c = r.end, f = c === void 0 ? true : c, u = r.encode, p = u === void 0 ? function(e3) {
1547
+ return e3;
1548
+ } : u, v = r.delimiter, s = v === void 0 ? "/#?" : v, d = r.endsWith, g = d === void 0 ? "" : d;
1549
+ var x = "[".concat(escapeString(g), "]|$");
1550
+ var h = "[".concat(escapeString(s), "]");
1551
+ var l = o ? "^" : "";
1552
+ for (var m = 0, T = e2; m < T.length; m++) {
1553
+ var E = T[m];
1554
+ if (typeof E === "string") {
1555
+ l += escapeString(p(E));
1556
+ } else {
1557
+ var w = escapeString(p(E.prefix));
1558
+ var y = escapeString(p(E.suffix));
1559
+ if (E.pattern) {
1560
+ if (n2) n2.push(E);
1561
+ if (w || y) {
1562
+ if (E.modifier === "+" || E.modifier === "*") {
1563
+ var R = E.modifier === "*" ? "?" : "";
1564
+ l += "(?:".concat(w, "((?:").concat(E.pattern, ")(?:").concat(y).concat(w, "(?:").concat(E.pattern, "))*)").concat(y, ")").concat(R);
1565
+ } else {
1566
+ l += "(?:".concat(w, "(").concat(E.pattern, ")").concat(y, ")").concat(E.modifier);
1567
+ }
1568
+ } else {
1569
+ if (E.modifier === "+" || E.modifier === "*") {
1570
+ throw new TypeError('Can not repeat "'.concat(E.name, '" without a prefix and suffix'));
1571
+ }
1572
+ l += "(".concat(E.pattern, ")").concat(E.modifier);
1573
+ }
1574
+ } else {
1575
+ l += "(?:".concat(w).concat(y, ")").concat(E.modifier);
1576
+ }
1577
+ }
1578
+ }
1579
+ if (f) {
1580
+ if (!a) l += "".concat(h, "?");
1581
+ l += !r.endsWith ? "$" : "(?=".concat(x, ")");
1582
+ } else {
1583
+ var A = e2[e2.length - 1];
1584
+ var _ = typeof A === "string" ? h.indexOf(A[A.length - 1]) > -1 : A === void 0;
1585
+ if (!a) {
1586
+ l += "(?:".concat(h, "(?=").concat(x, "))?");
1587
+ }
1588
+ if (!_) {
1589
+ l += "(?=".concat(h, "|").concat(x, ")");
1590
+ }
1591
+ }
1592
+ return new RegExp(l, flags(r));
1593
+ }
1594
+ n.tokensToRegexp = tokensToRegexp;
1595
+ function pathToRegexp2(e2, n2, r) {
1596
+ if (e2 instanceof RegExp) return regexpToRegexp(e2, n2);
1597
+ if (Array.isArray(e2)) return arrayToRegexp(e2, n2, r);
1598
+ return stringToRegexp(e2, n2, r);
1599
+ }
1600
+ n.pathToRegexp = pathToRegexp2;
1601
+ })();
1602
+ pathToRegexp.exports = e;
1603
+ })();
1604
+ return pathToRegexp.exports;
1605
+ }
1606
+ var routePatternNormalizer = {};
1607
+ var hasRequiredRoutePatternNormalizer;
1608
+ function requireRoutePatternNormalizer() {
1609
+ if (hasRequiredRoutePatternNormalizer) return routePatternNormalizer;
1610
+ hasRequiredRoutePatternNormalizer = 1;
1611
+ (function(exports$1) {
1612
+ Object.defineProperty(exports$1, "__esModule", {
1613
+ value: true
1614
+ });
1615
+ function _export(target, all) {
1616
+ for (var name in all) Object.defineProperty(target, name, {
1617
+ enumerable: true,
1618
+ get: all[name]
1619
+ });
1620
+ }
1621
+ _export(exports$1, {
1622
+ PARAM_SEPARATOR: function() {
1623
+ return PARAM_SEPARATOR;
1624
+ },
1625
+ hasAdjacentParameterIssues: function() {
1626
+ return hasAdjacentParameterIssues;
1627
+ },
1628
+ normalizeAdjacentParameters: function() {
1629
+ return normalizeAdjacentParameters;
1630
+ },
1631
+ normalizeTokensForRegexp: function() {
1632
+ return normalizeTokensForRegexp;
1633
+ },
1634
+ stripNormalizedSeparators: function() {
1635
+ return stripNormalizedSeparators;
1636
+ },
1637
+ stripParameterSeparators: function() {
1638
+ return stripParameterSeparators;
1639
+ }
1640
+ });
1641
+ const PARAM_SEPARATOR = "_NEXTSEP_";
1642
+ function hasAdjacentParameterIssues(route) {
1643
+ if (typeof route !== "string") return false;
1644
+ if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
1645
+ return true;
1646
+ }
1647
+ if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {
1648
+ return true;
1649
+ }
1650
+ return false;
1651
+ }
1652
+ function normalizeAdjacentParameters(route) {
1653
+ let normalized = route;
1654
+ normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
1655
+ normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
1656
+ return normalized;
1657
+ }
1658
+ function normalizeTokensForRegexp(tokens) {
1659
+ return tokens.map((token) => {
1660
+ if (typeof token === "object" && token !== null && // Not all token objects have 'modifier' property (e.g., simple text tokens)
1661
+ "modifier" in token && // Only repeating modifiers (* or +) cause the validation error
1662
+ // Other modifiers like '?' (optional) are fine
1663
+ (token.modifier === "*" || token.modifier === "+") && // Token objects can have different shapes depending on route pattern
1664
+ "prefix" in token && "suffix" in token && // Both prefix and suffix must be empty strings
1665
+ // This is what causes the validation error in path-to-regexp
1666
+ token.prefix === "" && token.suffix === "") {
1667
+ return {
1668
+ ...token,
1669
+ prefix: "/"
1670
+ };
1671
+ }
1672
+ return token;
1673
+ });
1674
+ }
1675
+ function stripNormalizedSeparators(pathname) {
1676
+ return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, "g"), ")");
1677
+ }
1678
+ function stripParameterSeparators(params) {
1679
+ const cleaned = {};
1680
+ for (const [key, value] of Object.entries(params)) {
1681
+ if (typeof value === "string") {
1682
+ cleaned[key] = value.replace(new RegExp(`^${PARAM_SEPARATOR}`), "");
1683
+ } else if (Array.isArray(value)) {
1684
+ cleaned[key] = value.map((item) => typeof item === "string" ? item.replace(new RegExp(`^${PARAM_SEPARATOR}`), "") : item);
1685
+ } else {
1686
+ cleaned[key] = value;
1687
+ }
1688
+ }
1689
+ return cleaned;
1690
+ }
1691
+ })(routePatternNormalizer);
1692
+ return routePatternNormalizer;
1693
+ }
1694
+ var hasRequiredRouteMatchUtils;
1695
+ function requireRouteMatchUtils() {
1696
+ if (hasRequiredRouteMatchUtils) return routeMatchUtils;
1697
+ hasRequiredRouteMatchUtils = 1;
1698
+ (function(exports$1) {
1699
+ Object.defineProperty(exports$1, "__esModule", {
1700
+ value: true
1701
+ });
1702
+ function _export(target, all) {
1703
+ for (var name in all) Object.defineProperty(target, name, {
1704
+ enumerable: true,
1705
+ get: all[name]
1706
+ });
1707
+ }
1708
+ _export(exports$1, {
1709
+ safeCompile: function() {
1710
+ return safeCompile;
1711
+ },
1712
+ safePathToRegexp: function() {
1713
+ return safePathToRegexp;
1714
+ },
1715
+ safeRegexpToFunction: function() {
1716
+ return safeRegexpToFunction;
1717
+ },
1718
+ safeRouteMatcher: function() {
1719
+ return safeRouteMatcher;
1720
+ }
1721
+ });
1722
+ const _pathtoregexp = requirePathToRegexp();
1723
+ const _routepatternnormalizer = requireRoutePatternNormalizer();
1724
+ function safePathToRegexp(route, keys, options) {
1725
+ if (typeof route !== "string") {
1726
+ return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
1727
+ }
1728
+ const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1729
+ const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1730
+ try {
1731
+ return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
1732
+ } catch (error) {
1733
+ if (!needsNormalization) {
1734
+ try {
1735
+ const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1736
+ return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
1737
+ } catch (retryError) {
1738
+ throw error;
1739
+ }
1740
+ }
1741
+ throw error;
1742
+ }
1743
+ }
1744
+ function safeCompile(route, options) {
1745
+ const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1746
+ const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1747
+ try {
1748
+ const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
1749
+ if (needsNormalization) {
1750
+ return (params) => {
1751
+ return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1752
+ };
1753
+ }
1754
+ return compiler;
1755
+ } catch (error) {
1756
+ if (!needsNormalization) {
1757
+ try {
1758
+ const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1759
+ const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
1760
+ return (params) => {
1761
+ return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1762
+ };
1763
+ } catch (retryError) {
1764
+ throw error;
1765
+ }
1766
+ }
1767
+ throw error;
1768
+ }
1769
+ }
1770
+ function safeRegexpToFunction(regexp, keys) {
1771
+ const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
1772
+ return (pathname) => {
1773
+ const result = originalMatcher(pathname);
1774
+ if (!result) return false;
1775
+ return {
1776
+ ...result,
1777
+ params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
1778
+ };
1779
+ };
1780
+ }
1781
+ function safeRouteMatcher(matcherFn) {
1782
+ return (pathname) => {
1783
+ const result = matcherFn(pathname);
1784
+ if (!result) return false;
1785
+ return (0, _routepatternnormalizer.stripParameterSeparators)(result);
1786
+ };
1787
+ }
1788
+ })(routeMatchUtils);
1789
+ return routeMatchUtils;
1790
+ }
1791
+ var hasRequiredRouteMatcher;
1792
+ function requireRouteMatcher() {
1793
+ if (hasRequiredRouteMatcher) return routeMatcher;
1794
+ hasRequiredRouteMatcher = 1;
1795
+ (function(exports$1) {
1796
+ Object.defineProperty(exports$1, "__esModule", {
1797
+ value: true
1798
+ });
1799
+ Object.defineProperty(exports$1, "getRouteMatcher", {
1800
+ enumerable: true,
1801
+ get: function() {
1802
+ return getRouteMatcher;
1803
+ }
1804
+ });
1805
+ const _utils = requireUtils$1();
1806
+ const _routematchutils = requireRouteMatchUtils();
1807
+ function getRouteMatcher({ re, groups }) {
1808
+ const rawMatcher = (pathname) => {
1809
+ const routeMatch = re.exec(pathname);
1810
+ if (!routeMatch) return false;
1811
+ const decode = (param) => {
1812
+ try {
1813
+ return decodeURIComponent(param);
1814
+ } catch {
1815
+ throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
1816
+ value: "E528",
1817
+ enumerable: false,
1818
+ configurable: true
1819
+ });
1820
+ }
1821
+ };
1822
+ const params = {};
1823
+ for (const [key, group] of Object.entries(groups)) {
1824
+ const match = routeMatch[group.pos];
1825
+ if (match !== void 0) {
1826
+ if (group.repeat) {
1827
+ params[key] = match.split("/").map((entry) => decode(entry));
1828
+ } else {
1829
+ params[key] = decode(match);
1830
+ }
1831
+ }
1832
+ }
1833
+ return params;
1834
+ };
1835
+ return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
1836
+ }
1837
+ })(routeMatcher);
1838
+ return routeMatcher;
1839
+ }
1840
+ var routeRegex = {};
1841
+ var constants = {};
1842
+ var hasRequiredConstants;
1843
+ function requireConstants() {
1844
+ if (hasRequiredConstants) return constants;
1845
+ hasRequiredConstants = 1;
1846
+ (function(exports$1) {
1847
+ Object.defineProperty(exports$1, "__esModule", {
1848
+ value: true
1849
+ });
1850
+ function _export(target, all) {
1851
+ for (var name in all) Object.defineProperty(target, name, {
1852
+ enumerable: true,
1853
+ get: all[name]
1854
+ });
1855
+ }
1856
+ _export(exports$1, {
1857
+ ACTION_SUFFIX: function() {
1858
+ return ACTION_SUFFIX;
1859
+ },
1860
+ APP_DIR_ALIAS: function() {
1861
+ return APP_DIR_ALIAS;
1862
+ },
1863
+ CACHE_ONE_YEAR: function() {
1864
+ return CACHE_ONE_YEAR;
1865
+ },
1866
+ DOT_NEXT_ALIAS: function() {
1867
+ return DOT_NEXT_ALIAS;
1868
+ },
1869
+ ESLINT_DEFAULT_DIRS: function() {
1870
+ return ESLINT_DEFAULT_DIRS;
1871
+ },
1872
+ GSP_NO_RETURNED_VALUE: function() {
1873
+ return GSP_NO_RETURNED_VALUE;
1874
+ },
1875
+ GSSP_COMPONENT_MEMBER_ERROR: function() {
1876
+ return GSSP_COMPONENT_MEMBER_ERROR;
1877
+ },
1878
+ GSSP_NO_RETURNED_VALUE: function() {
1879
+ return GSSP_NO_RETURNED_VALUE;
1880
+ },
1881
+ HTML_CONTENT_TYPE_HEADER: function() {
1882
+ return HTML_CONTENT_TYPE_HEADER;
1883
+ },
1884
+ INFINITE_CACHE: function() {
1885
+ return INFINITE_CACHE;
1886
+ },
1887
+ INSTRUMENTATION_HOOK_FILENAME: function() {
1888
+ return INSTRUMENTATION_HOOK_FILENAME;
1889
+ },
1890
+ JSON_CONTENT_TYPE_HEADER: function() {
1891
+ return JSON_CONTENT_TYPE_HEADER;
1892
+ },
1893
+ MATCHED_PATH_HEADER: function() {
1894
+ return MATCHED_PATH_HEADER;
1895
+ },
1896
+ MIDDLEWARE_FILENAME: function() {
1897
+ return MIDDLEWARE_FILENAME;
1898
+ },
1899
+ MIDDLEWARE_LOCATION_REGEXP: function() {
1900
+ return MIDDLEWARE_LOCATION_REGEXP;
1901
+ },
1902
+ NEXT_BODY_SUFFIX: function() {
1903
+ return NEXT_BODY_SUFFIX;
1904
+ },
1905
+ NEXT_CACHE_IMPLICIT_TAG_ID: function() {
1906
+ return NEXT_CACHE_IMPLICIT_TAG_ID;
1907
+ },
1908
+ NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
1909
+ return NEXT_CACHE_REVALIDATED_TAGS_HEADER;
1910
+ },
1911
+ NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
1912
+ return NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER;
1913
+ },
1914
+ NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
1915
+ return NEXT_CACHE_SOFT_TAG_MAX_LENGTH;
1916
+ },
1917
+ NEXT_CACHE_TAGS_HEADER: function() {
1918
+ return NEXT_CACHE_TAGS_HEADER;
1919
+ },
1920
+ NEXT_CACHE_TAG_MAX_ITEMS: function() {
1921
+ return NEXT_CACHE_TAG_MAX_ITEMS;
1922
+ },
1923
+ NEXT_CACHE_TAG_MAX_LENGTH: function() {
1924
+ return NEXT_CACHE_TAG_MAX_LENGTH;
1925
+ },
1926
+ NEXT_DATA_SUFFIX: function() {
1927
+ return NEXT_DATA_SUFFIX;
1928
+ },
1929
+ NEXT_INTERCEPTION_MARKER_PREFIX: function() {
1930
+ return NEXT_INTERCEPTION_MARKER_PREFIX;
1931
+ },
1932
+ NEXT_META_SUFFIX: function() {
1933
+ return NEXT_META_SUFFIX;
1934
+ },
1935
+ NEXT_QUERY_PARAM_PREFIX: function() {
1936
+ return NEXT_QUERY_PARAM_PREFIX;
1937
+ },
1938
+ NEXT_RESUME_HEADER: function() {
1939
+ return NEXT_RESUME_HEADER;
1940
+ },
1941
+ NON_STANDARD_NODE_ENV: function() {
1942
+ return NON_STANDARD_NODE_ENV;
1943
+ },
1944
+ PAGES_DIR_ALIAS: function() {
1945
+ return PAGES_DIR_ALIAS;
1946
+ },
1947
+ PRERENDER_REVALIDATE_HEADER: function() {
1948
+ return PRERENDER_REVALIDATE_HEADER;
1949
+ },
1950
+ PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
1951
+ return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
1952
+ },
1953
+ PROXY_FILENAME: function() {
1954
+ return PROXY_FILENAME;
1955
+ },
1956
+ PROXY_LOCATION_REGEXP: function() {
1957
+ return PROXY_LOCATION_REGEXP;
1958
+ },
1959
+ PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
1960
+ return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
1961
+ },
1962
+ ROOT_DIR_ALIAS: function() {
1963
+ return ROOT_DIR_ALIAS;
1964
+ },
1965
+ RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
1966
+ return RSC_ACTION_CLIENT_WRAPPER_ALIAS;
1967
+ },
1968
+ RSC_ACTION_ENCRYPTION_ALIAS: function() {
1969
+ return RSC_ACTION_ENCRYPTION_ALIAS;
1970
+ },
1971
+ RSC_ACTION_PROXY_ALIAS: function() {
1972
+ return RSC_ACTION_PROXY_ALIAS;
1973
+ },
1974
+ RSC_ACTION_VALIDATE_ALIAS: function() {
1975
+ return RSC_ACTION_VALIDATE_ALIAS;
1976
+ },
1977
+ RSC_CACHE_WRAPPER_ALIAS: function() {
1978
+ return RSC_CACHE_WRAPPER_ALIAS;
1979
+ },
1980
+ RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS: function() {
1981
+ return RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS;
1982
+ },
1983
+ RSC_MOD_REF_PROXY_ALIAS: function() {
1984
+ return RSC_MOD_REF_PROXY_ALIAS;
1985
+ },
1986
+ RSC_PREFETCH_SUFFIX: function() {
1987
+ return RSC_PREFETCH_SUFFIX;
1988
+ },
1989
+ RSC_SEGMENTS_DIR_SUFFIX: function() {
1990
+ return RSC_SEGMENTS_DIR_SUFFIX;
1991
+ },
1992
+ RSC_SEGMENT_SUFFIX: function() {
1993
+ return RSC_SEGMENT_SUFFIX;
1994
+ },
1995
+ RSC_SUFFIX: function() {
1996
+ return RSC_SUFFIX;
1997
+ },
1998
+ SERVER_PROPS_EXPORT_ERROR: function() {
1999
+ return SERVER_PROPS_EXPORT_ERROR;
2000
+ },
2001
+ SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
2002
+ return SERVER_PROPS_GET_INIT_PROPS_CONFLICT;
2003
+ },
2004
+ SERVER_PROPS_SSG_CONFLICT: function() {
2005
+ return SERVER_PROPS_SSG_CONFLICT;
2006
+ },
2007
+ SERVER_RUNTIME: function() {
2008
+ return SERVER_RUNTIME;
2009
+ },
2010
+ SSG_FALLBACK_EXPORT_ERROR: function() {
2011
+ return SSG_FALLBACK_EXPORT_ERROR;
2012
+ },
2013
+ SSG_GET_INITIAL_PROPS_CONFLICT: function() {
2014
+ return SSG_GET_INITIAL_PROPS_CONFLICT;
2015
+ },
2016
+ STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
2017
+ return STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR;
2018
+ },
2019
+ TEXT_PLAIN_CONTENT_TYPE_HEADER: function() {
2020
+ return TEXT_PLAIN_CONTENT_TYPE_HEADER;
2021
+ },
2022
+ UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
2023
+ return UNSTABLE_REVALIDATE_RENAME_ERROR;
2024
+ },
2025
+ WEBPACK_LAYERS: function() {
2026
+ return WEBPACK_LAYERS;
2027
+ },
2028
+ WEBPACK_RESOURCE_QUERIES: function() {
2029
+ return WEBPACK_RESOURCE_QUERIES;
2030
+ },
2031
+ WEB_SOCKET_MAX_RECONNECTIONS: function() {
2032
+ return WEB_SOCKET_MAX_RECONNECTIONS;
2033
+ }
2034
+ });
2035
+ const TEXT_PLAIN_CONTENT_TYPE_HEADER = "text/plain";
2036
+ const HTML_CONTENT_TYPE_HEADER = "text/html; charset=utf-8";
2037
+ const JSON_CONTENT_TYPE_HEADER = "application/json; charset=utf-8";
2038
+ const NEXT_QUERY_PARAM_PREFIX = "nxtP";
2039
+ const NEXT_INTERCEPTION_MARKER_PREFIX = "nxtI";
2040
+ const MATCHED_PATH_HEADER = "x-matched-path";
2041
+ const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
2042
+ const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";
2043
+ const RSC_PREFETCH_SUFFIX = ".prefetch.rsc";
2044
+ const RSC_SEGMENTS_DIR_SUFFIX = ".segments";
2045
+ const RSC_SEGMENT_SUFFIX = ".segment.rsc";
2046
+ const RSC_SUFFIX = ".rsc";
2047
+ const ACTION_SUFFIX = ".action";
2048
+ const NEXT_DATA_SUFFIX = ".json";
2049
+ const NEXT_META_SUFFIX = ".meta";
2050
+ const NEXT_BODY_SUFFIX = ".body";
2051
+ const NEXT_CACHE_TAGS_HEADER = "x-next-cache-tags";
2052
+ const NEXT_CACHE_REVALIDATED_TAGS_HEADER = "x-next-revalidated-tags";
2053
+ const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER = "x-next-revalidate-tag-token";
2054
+ const NEXT_RESUME_HEADER = "next-resume";
2055
+ const NEXT_CACHE_TAG_MAX_ITEMS = 128;
2056
+ const NEXT_CACHE_TAG_MAX_LENGTH = 256;
2057
+ const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024;
2058
+ const NEXT_CACHE_IMPLICIT_TAG_ID = "_N_T_";
2059
+ const CACHE_ONE_YEAR = 31536e3;
2060
+ const INFINITE_CACHE = 4294967294;
2061
+ const MIDDLEWARE_FILENAME = "middleware";
2062
+ const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
2063
+ const PROXY_FILENAME = "proxy";
2064
+ const PROXY_LOCATION_REGEXP = `(?:src/)?${PROXY_FILENAME}`;
2065
+ const INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
2066
+ const PAGES_DIR_ALIAS = "private-next-pages";
2067
+ const DOT_NEXT_ALIAS = "private-dot-next";
2068
+ const ROOT_DIR_ALIAS = "private-next-root-dir";
2069
+ const APP_DIR_ALIAS = "private-next-app-dir";
2070
+ const RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
2071
+ const RSC_ACTION_VALIDATE_ALIAS = "private-next-rsc-action-validate";
2072
+ const RSC_ACTION_PROXY_ALIAS = "private-next-rsc-server-reference";
2073
+ const RSC_CACHE_WRAPPER_ALIAS = "private-next-rsc-cache-wrapper";
2074
+ const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS = "private-next-rsc-track-dynamic-import";
2075
+ const RSC_ACTION_ENCRYPTION_ALIAS = "private-next-rsc-action-encryption";
2076
+ const RSC_ACTION_CLIENT_WRAPPER_ALIAS = "private-next-rsc-action-client-wrapper";
2077
+ 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`;
2078
+ const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`;
2079
+ const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`;
2080
+ const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`;
2081
+ const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`;
2082
+ const SERVER_PROPS_EXPORT_ERROR = `pages with \`getServerSideProps\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`;
2083
+ const GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
2084
+ const GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
2085
+ const UNSTABLE_REVALIDATE_RENAME_ERROR = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.";
2086
+ 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`;
2087
+ 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`;
2088
+ 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`;
2089
+ const ESLINT_DEFAULT_DIRS = [
2090
+ "app",
2091
+ "pages",
2092
+ "components",
2093
+ "lib",
2094
+ "src"
2095
+ ];
2096
+ const SERVER_RUNTIME = {
2097
+ edge: "edge",
2098
+ experimentalEdge: "experimental-edge",
2099
+ nodejs: "nodejs"
2100
+ };
2101
+ const WEB_SOCKET_MAX_RECONNECTIONS = 12;
2102
+ const WEBPACK_LAYERS_NAMES = {
2103
+ /**
2104
+ * The layer for the shared code between the client and server bundles.
2105
+ */
2106
+ shared: "shared",
2107
+ /**
2108
+ * The layer for server-only runtime and picking up `react-server` export conditions.
2109
+ * Including app router RSC pages and app router custom routes and metadata routes.
2110
+ */
2111
+ reactServerComponents: "rsc",
2112
+ /**
2113
+ * Server Side Rendering layer for app (ssr).
2114
+ */
2115
+ serverSideRendering: "ssr",
2116
+ /**
2117
+ * The browser client bundle layer for actions.
2118
+ */
2119
+ actionBrowser: "action-browser",
2120
+ /**
2121
+ * The Node.js bundle layer for the API routes.
2122
+ */
2123
+ apiNode: "api-node",
2124
+ /**
2125
+ * The Edge Lite bundle layer for the API routes.
2126
+ */
2127
+ apiEdge: "api-edge",
2128
+ /**
2129
+ * The layer for the middleware code.
2130
+ */
2131
+ middleware: "middleware",
2132
+ /**
2133
+ * The layer for the instrumentation hooks.
2134
+ */
2135
+ instrument: "instrument",
2136
+ /**
2137
+ * The layer for assets on the edge.
2138
+ */
2139
+ edgeAsset: "edge-asset",
2140
+ /**
2141
+ * The browser client bundle layer for App directory.
2142
+ */
2143
+ appPagesBrowser: "app-pages-browser",
2144
+ /**
2145
+ * The browser client bundle layer for Pages directory.
2146
+ */
2147
+ pagesDirBrowser: "pages-dir-browser",
2148
+ /**
2149
+ * The Edge Lite bundle layer for Pages directory.
2150
+ */
2151
+ pagesDirEdge: "pages-dir-edge",
2152
+ /**
2153
+ * The Node.js bundle layer for Pages directory.
2154
+ */
2155
+ pagesDirNode: "pages-dir-node"
2156
+ };
2157
+ const WEBPACK_LAYERS = {
2158
+ ...WEBPACK_LAYERS_NAMES,
2159
+ GROUP: {
2160
+ builtinReact: [
2161
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
2162
+ WEBPACK_LAYERS_NAMES.actionBrowser
2163
+ ],
2164
+ serverOnly: [
2165
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
2166
+ WEBPACK_LAYERS_NAMES.actionBrowser,
2167
+ WEBPACK_LAYERS_NAMES.instrument,
2168
+ WEBPACK_LAYERS_NAMES.middleware
2169
+ ],
2170
+ neutralTarget: [
2171
+ // pages api
2172
+ WEBPACK_LAYERS_NAMES.apiNode,
2173
+ WEBPACK_LAYERS_NAMES.apiEdge
2174
+ ],
2175
+ clientOnly: [
2176
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
2177
+ WEBPACK_LAYERS_NAMES.appPagesBrowser
2178
+ ],
2179
+ bundled: [
2180
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
2181
+ WEBPACK_LAYERS_NAMES.actionBrowser,
2182
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
2183
+ WEBPACK_LAYERS_NAMES.appPagesBrowser,
2184
+ WEBPACK_LAYERS_NAMES.shared,
2185
+ WEBPACK_LAYERS_NAMES.instrument,
2186
+ WEBPACK_LAYERS_NAMES.middleware
2187
+ ],
2188
+ appPages: [
2189
+ // app router pages and layouts
2190
+ WEBPACK_LAYERS_NAMES.reactServerComponents,
2191
+ WEBPACK_LAYERS_NAMES.serverSideRendering,
2192
+ WEBPACK_LAYERS_NAMES.appPagesBrowser,
2193
+ WEBPACK_LAYERS_NAMES.actionBrowser
2194
+ ]
2195
+ }
2196
+ };
2197
+ const WEBPACK_RESOURCE_QUERIES = {
2198
+ edgeSSREntry: "__next_edge_ssr_entry__",
2199
+ metadata: "__next_metadata__",
2200
+ metadataRoute: "__next_metadata_route__",
2201
+ metadataImageMeta: "__next_metadata_image_meta__"
2202
+ };
2203
+ })(constants);
2204
+ return constants;
2205
+ }
2206
+ var escapeRegexp = {};
2207
+ var hasRequiredEscapeRegexp;
2208
+ function requireEscapeRegexp() {
2209
+ if (hasRequiredEscapeRegexp) return escapeRegexp;
2210
+ hasRequiredEscapeRegexp = 1;
2211
+ (function(exports$1) {
2212
+ Object.defineProperty(exports$1, "__esModule", {
2213
+ value: true
2214
+ });
2215
+ Object.defineProperty(exports$1, "escapeStringRegexp", {
2216
+ enumerable: true,
2217
+ get: function() {
2218
+ return escapeStringRegexp;
2219
+ }
2220
+ });
2221
+ const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
2222
+ const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
2223
+ function escapeStringRegexp(str) {
2224
+ if (reHasRegExp.test(str)) {
2225
+ return str.replace(reReplaceRegExp, "\\$&");
2226
+ }
2227
+ return str;
2228
+ }
2229
+ })(escapeRegexp);
2230
+ return escapeRegexp;
2231
+ }
2232
+ var getDynamicParam = {};
2233
+ var invariantError = {};
2234
+ var hasRequiredInvariantError;
2235
+ function requireInvariantError() {
2236
+ if (hasRequiredInvariantError) return invariantError;
2237
+ hasRequiredInvariantError = 1;
2238
+ (function(exports$1) {
2239
+ Object.defineProperty(exports$1, "__esModule", {
2240
+ value: true
2241
+ });
2242
+ Object.defineProperty(exports$1, "InvariantError", {
2243
+ enumerable: true,
2244
+ get: function() {
2245
+ return InvariantError;
2246
+ }
2247
+ });
2248
+ class InvariantError extends Error {
2249
+ constructor(message, options) {
2250
+ super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
2251
+ this.name = "InvariantError";
2252
+ }
2253
+ }
2254
+ })(invariantError);
2255
+ return invariantError;
2256
+ }
2257
+ var parseLoaderTree = {};
2258
+ var hasRequiredParseLoaderTree;
2259
+ function requireParseLoaderTree() {
2260
+ if (hasRequiredParseLoaderTree) return parseLoaderTree;
2261
+ hasRequiredParseLoaderTree = 1;
2262
+ (function(exports$1) {
2263
+ Object.defineProperty(exports$1, "__esModule", {
2264
+ value: true
2265
+ });
2266
+ Object.defineProperty(exports$1, "parseLoaderTree", {
2267
+ enumerable: true,
2268
+ get: function() {
2269
+ return parseLoaderTree2;
2270
+ }
2271
+ });
2272
+ const _segment = requireSegment();
2273
+ function parseLoaderTree2(tree) {
2274
+ const [segment2, parallelRoutes, modules] = tree;
2275
+ const { layout, template } = modules;
2276
+ let { page } = modules;
2277
+ page = segment2 === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
2278
+ const conventionPath = (layout == null ? void 0 : layout[1]) || (template == null ? void 0 : template[1]) || (page == null ? void 0 : page[1]);
2279
+ return {
2280
+ page,
2281
+ segment: segment2,
2282
+ modules,
2283
+ /* it can be either layout / template / page */
2284
+ conventionPath,
2285
+ parallelRoutes
2286
+ };
2287
+ }
2288
+ })(parseLoaderTree);
2289
+ return parseLoaderTree;
2290
+ }
2291
+ var getSegmentParam = {};
2292
+ var hasRequiredGetSegmentParam;
2293
+ function requireGetSegmentParam() {
2294
+ if (hasRequiredGetSegmentParam) return getSegmentParam;
2295
+ hasRequiredGetSegmentParam = 1;
2296
+ (function(exports$1) {
2297
+ Object.defineProperty(exports$1, "__esModule", {
2298
+ value: true
2299
+ });
2300
+ function _export(target, all) {
2301
+ for (var name in all) Object.defineProperty(target, name, {
2302
+ enumerable: true,
2303
+ get: all[name]
2304
+ });
2305
+ }
2306
+ _export(exports$1, {
2307
+ getParamProperties: function() {
2308
+ return getParamProperties;
2309
+ },
2310
+ getSegmentParam: function() {
2311
+ return getSegmentParam2;
2312
+ },
2313
+ isCatchAll: function() {
2314
+ return isCatchAll;
2315
+ }
2316
+ });
2317
+ const _interceptionroutes = requireInterceptionRoutes();
2318
+ function getSegmentParam2(segment2) {
2319
+ const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker) => segment2.startsWith(marker));
2320
+ if (interceptionMarker) {
2321
+ segment2 = segment2.slice(interceptionMarker.length);
2322
+ }
2323
+ if (segment2.startsWith("[[...") && segment2.endsWith("]]")) {
2324
+ return {
2325
+ // TODO-APP: Optional catchall does not currently work with parallel routes,
2326
+ // so for now aren't handling a potential interception marker.
2327
+ type: "optional-catchall",
2328
+ param: segment2.slice(5, -2)
2329
+ };
2330
+ }
2331
+ if (segment2.startsWith("[...") && segment2.endsWith("]")) {
2332
+ return {
2333
+ type: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : "catchall",
2334
+ param: segment2.slice(4, -1)
2335
+ };
2336
+ }
2337
+ if (segment2.startsWith("[") && segment2.endsWith("]")) {
2338
+ return {
2339
+ type: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : "dynamic",
2340
+ param: segment2.slice(1, -1)
2341
+ };
2342
+ }
2343
+ return null;
2344
+ }
2345
+ function isCatchAll(type) {
2346
+ return type === "catchall" || type === "catchall-intercepted-(..)(..)" || type === "catchall-intercepted-(.)" || type === "catchall-intercepted-(..)" || type === "catchall-intercepted-(...)" || type === "optional-catchall";
2347
+ }
2348
+ function getParamProperties(paramType) {
2349
+ let repeat = false;
2350
+ let optional = false;
2351
+ switch (paramType) {
2352
+ case "catchall":
2353
+ case "catchall-intercepted-(..)(..)":
2354
+ case "catchall-intercepted-(.)":
2355
+ case "catchall-intercepted-(..)":
2356
+ case "catchall-intercepted-(...)":
2357
+ repeat = true;
2358
+ break;
2359
+ case "optional-catchall":
2360
+ repeat = true;
2361
+ optional = true;
2362
+ break;
2363
+ }
2364
+ return {
2365
+ repeat,
2366
+ optional
2367
+ };
2368
+ }
2369
+ })(getSegmentParam);
2370
+ return getSegmentParam;
2371
+ }
2372
+ var hasRequiredGetDynamicParam;
2373
+ function requireGetDynamicParam() {
2374
+ if (hasRequiredGetDynamicParam) return getDynamicParam;
2375
+ hasRequiredGetDynamicParam = 1;
2376
+ (function(exports$1) {
2377
+ Object.defineProperty(exports$1, "__esModule", {
2378
+ value: true
2379
+ });
2380
+ function _export(target, all) {
2381
+ for (var name in all) Object.defineProperty(target, name, {
2382
+ enumerable: true,
2383
+ get: all[name]
2384
+ });
2385
+ }
2386
+ _export(exports$1, {
2387
+ PARAMETER_PATTERN: function() {
2388
+ return PARAMETER_PATTERN;
2389
+ },
2390
+ getDynamicParam: function() {
2391
+ return getDynamicParam2;
2392
+ },
2393
+ interpolateParallelRouteParams: function() {
2394
+ return interpolateParallelRouteParams;
2395
+ },
2396
+ parseMatchedParameter: function() {
2397
+ return parseMatchedParameter;
2398
+ },
2399
+ parseParameter: function() {
2400
+ return parseParameter;
2401
+ }
2402
+ });
2403
+ const _invarianterror = requireInvariantError();
2404
+ const _parseloadertree = requireParseLoaderTree();
2405
+ const _getsegmentparam = requireGetSegmentParam();
2406
+ function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
2407
+ let value = interpolatedParams[segmentKey];
2408
+ if (fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(segmentKey)) {
2409
+ const [searchValue] = fallbackRouteParams.get(segmentKey);
2410
+ value = searchValue;
2411
+ } else if (Array.isArray(value)) {
2412
+ value = value.map((i) => encodeURIComponent(i));
2413
+ } else if (typeof value === "string") {
2414
+ value = encodeURIComponent(value);
2415
+ }
2416
+ return value;
2417
+ }
2418
+ function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
2419
+ const interpolated = structuredClone(params);
2420
+ const stack = [
2421
+ {
2422
+ tree: loaderTree,
2423
+ depth: 0
2424
+ }
2425
+ ];
2426
+ const pathSegments = pagePath.split("/").slice(1);
2427
+ while (stack.length > 0) {
2428
+ const { tree, depth } = stack.pop();
2429
+ const { segment: segment2, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
2430
+ const segmentParam = (0, _getsegmentparam.getSegmentParam)(segment2);
2431
+ if (segmentParam && !interpolated.hasOwnProperty(segmentParam.param) && // If the param is in the fallback route params, we don't need to
2432
+ // interpolate it because it's already marked as being unknown.
2433
+ !(fallbackRouteParams == null ? void 0 : fallbackRouteParams.has(segmentParam.param))) {
2434
+ switch (segmentParam.type) {
2435
+ case "catchall":
2436
+ case "optional-catchall":
2437
+ case "catchall-intercepted-(..)(..)":
2438
+ case "catchall-intercepted-(.)":
2439
+ case "catchall-intercepted-(..)":
2440
+ case "catchall-intercepted-(...)":
2441
+ const remainingSegments = pathSegments.slice(depth);
2442
+ const processedSegments = remainingSegments.flatMap((pathSegment) => {
2443
+ const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
2444
+ return param ? interpolated[param.param] : pathSegment;
2445
+ }).filter((s) => s !== void 0);
2446
+ if (processedSegments.length > 0) {
2447
+ interpolated[segmentParam.param] = processedSegments;
2448
+ }
2449
+ break;
2450
+ case "dynamic":
2451
+ case "dynamic-intercepted-(..)(..)":
2452
+ case "dynamic-intercepted-(.)":
2453
+ case "dynamic-intercepted-(..)":
2454
+ case "dynamic-intercepted-(...)":
2455
+ if (depth < pathSegments.length) {
2456
+ const pathSegment = pathSegments[depth];
2457
+ const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
2458
+ interpolated[segmentParam.param] = param ? interpolated[param.param] : pathSegment;
2459
+ }
2460
+ break;
2461
+ default:
2462
+ segmentParam.type;
2463
+ }
2464
+ }
2465
+ let nextDepth = depth;
2466
+ const isRouteGroup = segment2.startsWith("(") && segment2.endsWith(")");
2467
+ if (!isRouteGroup && segment2 !== "") {
2468
+ nextDepth++;
2469
+ }
2470
+ for (const route of Object.values(parallelRoutes)) {
2471
+ stack.push({
2472
+ tree: route,
2473
+ depth: nextDepth
2474
+ });
2475
+ }
2476
+ }
2477
+ return interpolated;
2478
+ }
2479
+ function getDynamicParam2(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams) {
2480
+ let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
2481
+ if (!value || value.length === 0) {
2482
+ if (dynamicParamType === "oc") {
2483
+ return {
2484
+ param: segmentKey,
2485
+ value: null,
2486
+ type: dynamicParamType,
2487
+ treeSegment: [
2488
+ segmentKey,
2489
+ "",
2490
+ dynamicParamType
2491
+ ]
2492
+ };
2493
+ }
2494
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
2495
+ value: "E864",
2496
+ enumerable: false,
2497
+ configurable: true
2498
+ });
2499
+ }
2500
+ return {
2501
+ param: segmentKey,
2502
+ // The value that is passed to user code.
2503
+ value,
2504
+ // The value that is rendered in the router tree.
2505
+ treeSegment: [
2506
+ segmentKey,
2507
+ Array.isArray(value) ? value.join("/") : value,
2508
+ dynamicParamType
2509
+ ],
2510
+ type: dynamicParamType
2511
+ };
2512
+ }
2513
+ const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
2514
+ function parseParameter(param) {
2515
+ const match = param.match(PARAMETER_PATTERN);
2516
+ if (!match) {
2517
+ return parseMatchedParameter(param);
2518
+ }
2519
+ return parseMatchedParameter(match[2]);
2520
+ }
2521
+ function parseMatchedParameter(param) {
2522
+ const optional = param.startsWith("[") && param.endsWith("]");
2523
+ if (optional) {
2524
+ param = param.slice(1, -1);
2525
+ }
2526
+ const repeat = param.startsWith("...");
2527
+ if (repeat) {
2528
+ param = param.slice(3);
2529
+ }
2530
+ return {
2531
+ key: param,
2532
+ repeat,
2533
+ optional
2534
+ };
2535
+ }
2536
+ })(getDynamicParam);
2537
+ return getDynamicParam;
2538
+ }
2539
+ var hasRequiredRouteRegex;
2540
+ function requireRouteRegex() {
2541
+ if (hasRequiredRouteRegex) return routeRegex;
2542
+ hasRequiredRouteRegex = 1;
2543
+ (function(exports$1) {
2544
+ Object.defineProperty(exports$1, "__esModule", {
2545
+ value: true
2546
+ });
2547
+ function _export(target, all) {
2548
+ for (var name in all) Object.defineProperty(target, name, {
2549
+ enumerable: true,
2550
+ get: all[name]
2551
+ });
2552
+ }
2553
+ _export(exports$1, {
2554
+ getNamedMiddlewareRegex: function() {
2555
+ return getNamedMiddlewareRegex;
2556
+ },
2557
+ getNamedRouteRegex: function() {
2558
+ return getNamedRouteRegex;
2559
+ },
2560
+ getRouteRegex: function() {
2561
+ return getRouteRegex;
2562
+ }
2563
+ });
2564
+ const _constants = requireConstants();
2565
+ const _interceptionroutes = requireInterceptionRoutes();
2566
+ const _escaperegexp = requireEscapeRegexp();
2567
+ const _removetrailingslash = requireRemoveTrailingSlash();
2568
+ const _getdynamicparam = requireGetDynamicParam();
2569
+ function getParametrizedRoute(route, includeSuffix, includePrefix) {
2570
+ const groups = {};
2571
+ let groupIndex = 1;
2572
+ const segments = [];
2573
+ for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2574
+ const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment2.startsWith(m));
2575
+ const paramMatches = segment2.match(_getdynamicparam.PARAMETER_PATTERN);
2576
+ if (markerMatch && paramMatches && paramMatches[2]) {
2577
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2578
+ groups[key] = {
2579
+ pos: groupIndex++,
2580
+ repeat,
2581
+ optional
2582
+ };
2583
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
2584
+ } else if (paramMatches && paramMatches[2]) {
2585
+ const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2586
+ groups[key] = {
2587
+ pos: groupIndex++,
2588
+ repeat,
2589
+ optional
2590
+ };
2591
+ if (includePrefix && paramMatches[1]) {
2592
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2593
+ }
2594
+ let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
2595
+ if (includePrefix && paramMatches[1]) {
2596
+ s = s.substring(1);
2597
+ }
2598
+ segments.push(s);
2599
+ } else {
2600
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment2)}`);
2601
+ }
2602
+ if (includeSuffix && paramMatches && paramMatches[3]) {
2603
+ segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2604
+ }
2605
+ }
2606
+ return {
2607
+ parameterizedRoute: segments.join(""),
2608
+ groups
2609
+ };
2610
+ }
2611
+ function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
2612
+ const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
2613
+ let re = parameterizedRoute;
2614
+ if (!excludeOptionalTrailingSlash) {
2615
+ re += "(?:/)?";
2616
+ }
2617
+ return {
2618
+ re: new RegExp(`^${re}$`),
2619
+ groups
2620
+ };
2621
+ }
2622
+ function buildGetSafeRouteKey() {
2623
+ let i = 0;
2624
+ return () => {
2625
+ let routeKey = "";
2626
+ let j = ++i;
2627
+ while (j > 0) {
2628
+ routeKey += String.fromCharCode(97 + (j - 1) % 26);
2629
+ j = Math.floor((j - 1) / 26);
2630
+ }
2631
+ return routeKey;
2632
+ };
2633
+ }
2634
+ function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment: segment2, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
2635
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment2);
2636
+ let cleanedKey = key.replace(/\W/g, "");
2637
+ if (keyPrefix) {
2638
+ cleanedKey = `${keyPrefix}${cleanedKey}`;
2639
+ }
2640
+ let invalidKey = false;
2641
+ if (cleanedKey.length === 0 || cleanedKey.length > 30) {
2642
+ invalidKey = true;
2643
+ }
2644
+ if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
2645
+ invalidKey = true;
2646
+ }
2647
+ if (invalidKey) {
2648
+ cleanedKey = getSafeRouteKey();
2649
+ }
2650
+ const duplicateKey = cleanedKey in routeKeys;
2651
+ if (keyPrefix) {
2652
+ routeKeys[cleanedKey] = `${keyPrefix}${key}`;
2653
+ } else {
2654
+ routeKeys[cleanedKey] = key;
2655
+ }
2656
+ const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
2657
+ let pattern;
2658
+ if (duplicateKey && backreferenceDuplicateKeys) {
2659
+ pattern = `\\k<${cleanedKey}>`;
2660
+ } else if (repeat) {
2661
+ pattern = `(?<${cleanedKey}>.+?)`;
2662
+ } else {
2663
+ pattern = `(?<${cleanedKey}>[^/]+?)`;
2664
+ }
2665
+ return {
2666
+ key,
2667
+ pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
2668
+ cleanedKey,
2669
+ optional,
2670
+ repeat
2671
+ };
2672
+ }
2673
+ function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
2674
+ names: {},
2675
+ intercepted: {}
2676
+ }) {
2677
+ var _a, _b;
2678
+ const getSafeRouteKey = buildGetSafeRouteKey();
2679
+ const routeKeys = {};
2680
+ const segments = [];
2681
+ const inverseParts = [];
2682
+ reference = structuredClone(reference);
2683
+ for (const segment2 of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2684
+ const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment2.startsWith(m));
2685
+ const paramMatches = segment2.match(_getdynamicparam.PARAMETER_PATTERN);
2686
+ const interceptionMarker = hasInterceptionMarker ? paramMatches == null ? void 0 : paramMatches[1] : void 0;
2687
+ let keyPrefix;
2688
+ if (interceptionMarker && (paramMatches == null ? void 0 : paramMatches[2])) {
2689
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2690
+ reference.intercepted[paramMatches[2]] = interceptionMarker;
2691
+ } else if ((paramMatches == null ? void 0 : paramMatches[2]) && reference.intercepted[paramMatches[2]]) {
2692
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
2693
+ } else {
2694
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0;
2695
+ }
2696
+ if (interceptionMarker && paramMatches && paramMatches[2]) {
2697
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2698
+ getSafeRouteKey,
2699
+ interceptionMarker,
2700
+ segment: paramMatches[2],
2701
+ routeKeys,
2702
+ keyPrefix,
2703
+ backreferenceDuplicateKeys
2704
+ });
2705
+ segments.push(pattern);
2706
+ inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2707
+ (_a = reference.names)[key] ?? (_a[key] = cleanedKey);
2708
+ } else if (paramMatches && paramMatches[2]) {
2709
+ if (includePrefix && paramMatches[1]) {
2710
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2711
+ inverseParts.push(`/${paramMatches[1]}`);
2712
+ }
2713
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2714
+ getSafeRouteKey,
2715
+ segment: paramMatches[2],
2716
+ routeKeys,
2717
+ keyPrefix,
2718
+ backreferenceDuplicateKeys
2719
+ });
2720
+ let s = pattern;
2721
+ if (includePrefix && paramMatches[1]) {
2722
+ s = s.substring(1);
2723
+ }
2724
+ segments.push(s);
2725
+ inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2726
+ (_b = reference.names)[key] ?? (_b[key] = cleanedKey);
2727
+ } else {
2728
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment2)}`);
2729
+ inverseParts.push(`/${segment2}`);
2730
+ }
2731
+ if (includeSuffix && paramMatches && paramMatches[3]) {
2732
+ segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2733
+ inverseParts.push(paramMatches[3]);
2734
+ }
2735
+ }
2736
+ return {
2737
+ namedParameterizedRoute: segments.join(""),
2738
+ routeKeys,
2739
+ pathToRegexpPattern: inverseParts.join(""),
2740
+ reference
2741
+ };
2742
+ }
2743
+ function getNamedRouteRegex(normalizedRoute, options) {
2744
+ const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);
2745
+ let namedRegex = result.namedParameterizedRoute;
2746
+ if (!options.excludeOptionalTrailingSlash) {
2747
+ namedRegex += "(?:/)?";
2748
+ }
2749
+ return {
2750
+ ...getRouteRegex(normalizedRoute, options),
2751
+ namedRegex: `^${namedRegex}$`,
2752
+ routeKeys: result.routeKeys,
2753
+ pathToRegexpPattern: result.pathToRegexpPattern,
2754
+ reference: result.reference
2755
+ };
2756
+ }
2757
+ function getNamedMiddlewareRegex(normalizedRoute, options) {
2758
+ const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
2759
+ const { catchAll = true } = options;
2760
+ if (parameterizedRoute === "/") {
2761
+ let catchAllRegex = catchAll ? ".*" : "";
2762
+ return {
2763
+ namedRegex: `^/${catchAllRegex}$`
2764
+ };
2765
+ }
2766
+ const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, void 0);
2767
+ let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
2768
+ return {
2769
+ namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`
2770
+ };
2771
+ }
2772
+ })(routeRegex);
2773
+ return routeRegex;
2774
+ }
2775
+ var hasRequiredInterpolateAs;
2776
+ function requireInterpolateAs() {
2777
+ if (hasRequiredInterpolateAs) return interpolateAs;
2778
+ hasRequiredInterpolateAs = 1;
2779
+ (function(exports$1) {
2780
+ Object.defineProperty(exports$1, "__esModule", {
2781
+ value: true
2782
+ });
2783
+ Object.defineProperty(exports$1, "interpolateAs", {
2784
+ enumerable: true,
2785
+ get: function() {
2786
+ return interpolateAs2;
2787
+ }
2788
+ });
2789
+ const _routematcher = requireRouteMatcher();
2790
+ const _routeregex = requireRouteRegex();
2791
+ function interpolateAs2(route, asPathname, query) {
2792
+ let interpolatedRoute = "";
2793
+ const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
2794
+ const dynamicGroups = dynamicRegex.groups;
2795
+ const dynamicMatches = (
2796
+ // Try to match the dynamic route against the asPath
2797
+ (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
2798
+ // TODO: should this take priority; also need to change in the router.
2799
+ query
2800
+ );
2801
+ interpolatedRoute = route;
2802
+ const params = Object.keys(dynamicGroups);
2803
+ if (!params.every((param) => {
2804
+ let value = dynamicMatches[param] || "";
2805
+ const { repeat, optional } = dynamicGroups[param];
2806
+ let replaced = `[${repeat ? "..." : ""}${param}]`;
2807
+ if (optional) {
2808
+ replaced = `${!value ? "/" : ""}[${replaced}]`;
2809
+ }
2810
+ if (repeat && !Array.isArray(value)) value = [
2811
+ value
2812
+ ];
2813
+ return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
2814
+ (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(
2815
+ // these values should be fully encoded instead of just
2816
+ // path delimiter escaped since they are being inserted
2817
+ // into the URL and we expect URL encoded segments
2818
+ // when parsing dynamic route params
2819
+ (segment2) => encodeURIComponent(segment2)
2820
+ ).join("/") : encodeURIComponent(value)) || "/");
2821
+ })) {
2822
+ interpolatedRoute = "";
2823
+ }
2824
+ return {
2825
+ params,
2826
+ result: interpolatedRoute
2827
+ };
2828
+ }
2829
+ })(interpolateAs);
2830
+ return interpolateAs;
2831
+ }
2832
+ var hasRequiredResolveHref;
2833
+ function requireResolveHref() {
2834
+ if (hasRequiredResolveHref) return resolveHref.exports;
2835
+ hasRequiredResolveHref = 1;
2836
+ (function(module, exports$1) {
2837
+ Object.defineProperty(exports$1, "__esModule", {
2838
+ value: true
2839
+ });
2840
+ Object.defineProperty(exports$1, "resolveHref", {
2841
+ enumerable: true,
2842
+ get: function() {
2843
+ return resolveHref2;
2844
+ }
2845
+ });
2846
+ const _querystring = requireQuerystring();
2847
+ const _formaturl = requireFormatUrl();
2848
+ const _omit = requireOmit();
2849
+ const _utils = requireUtils$1();
2850
+ const _normalizetrailingslash = requireNormalizeTrailingSlash();
2851
+ const _islocalurl = requireIsLocalUrl();
2852
+ const _utils1 = requireUtils();
2853
+ const _interpolateas = requireInterpolateAs();
2854
+ const _routeregex = requireRouteRegex();
2855
+ const _routematcher = requireRouteMatcher();
2856
+ function resolveHref2(router, href, resolveAs) {
2857
+ let base;
2858
+ let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
2859
+ const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
2860
+ const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
2861
+ const urlParts = urlAsStringNoProto.split("?", 1);
2862
+ if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
2863
+ console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
2864
+ const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
2865
+ urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
2866
+ }
2867
+ if (!(0, _islocalurl.isLocalURL)(urlAsString)) {
2868
+ return resolveAs ? [
2869
+ urlAsString
2870
+ ] : urlAsString;
2871
+ }
2872
+ try {
2873
+ let baseBase = urlAsString.startsWith("#") ? router.asPath : router.pathname;
2874
+ if (urlAsString.startsWith("?")) {
2875
+ baseBase = router.asPath;
2876
+ if ((0, _utils1.isDynamicRoute)(router.pathname)) {
2877
+ baseBase = router.pathname;
2878
+ const routeRegex2 = (0, _routeregex.getRouteRegex)(router.pathname);
2879
+ const match = (0, _routematcher.getRouteMatcher)(routeRegex2)(router.asPath);
2880
+ if (!match) {
2881
+ baseBase = router.asPath;
2882
+ }
2883
+ }
2884
+ }
2885
+ base = new URL(baseBase, "http://n");
2886
+ } catch (_) {
2887
+ base = new URL("/", "http://n");
2888
+ }
2889
+ try {
2890
+ const finalUrl = new URL(urlAsString, base);
2891
+ finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
2892
+ let interpolatedAs = "";
2893
+ if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
2894
+ const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
2895
+ const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
2896
+ if (result) {
2897
+ interpolatedAs = (0, _formaturl.formatWithValidation)({
2898
+ pathname: result,
2899
+ hash: finalUrl.hash,
2900
+ query: (0, _omit.omit)(query, params)
2901
+ });
2902
+ }
2903
+ }
2904
+ const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
2905
+ return resolveAs ? [
2906
+ resolvedHref,
2907
+ interpolatedAs || resolvedHref
2908
+ ] : resolvedHref;
2909
+ } catch (_) {
2910
+ return resolveAs ? [
2911
+ urlAsString
2912
+ ] : urlAsString;
2913
+ }
2914
+ }
2915
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
2916
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
2917
+ Object.assign(exports$1.default, exports$1);
2918
+ module.exports = exports$1.default;
2919
+ }
2920
+ })(resolveHref, resolveHref.exports);
2921
+ return resolveHref.exports;
2922
+ }
2923
+ var addLocale$1 = { exports: {} };
2924
+ var addLocale = {};
2925
+ var addPathPrefix = {};
2926
+ var hasRequiredAddPathPrefix;
2927
+ function requireAddPathPrefix() {
2928
+ if (hasRequiredAddPathPrefix) return addPathPrefix;
2929
+ hasRequiredAddPathPrefix = 1;
2930
+ (function(exports$1) {
2931
+ Object.defineProperty(exports$1, "__esModule", {
2932
+ value: true
2933
+ });
2934
+ Object.defineProperty(exports$1, "addPathPrefix", {
2935
+ enumerable: true,
2936
+ get: function() {
2937
+ return addPathPrefix2;
2938
+ }
2939
+ });
2940
+ const _parsepath = requireParsePath();
2941
+ function addPathPrefix2(path, prefix) {
2942
+ if (!path.startsWith("/") || !prefix) {
2943
+ return path;
2944
+ }
2945
+ const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
2946
+ return `${prefix}${pathname}${query}${hash}`;
2947
+ }
2948
+ })(addPathPrefix);
2949
+ return addPathPrefix;
2950
+ }
2951
+ var hasRequiredAddLocale$1;
2952
+ function requireAddLocale$1() {
2953
+ if (hasRequiredAddLocale$1) return addLocale;
2954
+ hasRequiredAddLocale$1 = 1;
2955
+ (function(exports$1) {
2956
+ Object.defineProperty(exports$1, "__esModule", {
2957
+ value: true
2958
+ });
2959
+ Object.defineProperty(exports$1, "addLocale", {
2960
+ enumerable: true,
2961
+ get: function() {
2962
+ return addLocale2;
2963
+ }
2964
+ });
2965
+ const _addpathprefix = requireAddPathPrefix();
2966
+ const _pathhasprefix = requirePathHasPrefix();
2967
+ function addLocale2(path, locale, defaultLocale, ignorePrefix) {
2968
+ if (!locale || locale === defaultLocale) return path;
2969
+ const lower = path.toLowerCase();
2970
+ if (!ignorePrefix) {
2971
+ if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
2972
+ if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`)) return path;
2973
+ }
2974
+ return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
2975
+ }
2976
+ })(addLocale);
2977
+ return addLocale;
2978
+ }
2979
+ var hasRequiredAddLocale;
2980
+ function requireAddLocale() {
2981
+ if (hasRequiredAddLocale) return addLocale$1.exports;
2982
+ hasRequiredAddLocale = 1;
2983
+ (function(module, exports$1) {
2984
+ Object.defineProperty(exports$1, "__esModule", {
2985
+ value: true
2986
+ });
2987
+ Object.defineProperty(exports$1, "addLocale", {
2988
+ enumerable: true,
2989
+ get: function() {
2990
+ return addLocale2;
2991
+ }
2992
+ });
2993
+ const _normalizetrailingslash = requireNormalizeTrailingSlash();
2994
+ const addLocale2 = (path, ...args) => {
2995
+ if (process.env.__NEXT_I18N_SUPPORT) {
2996
+ return (0, _normalizetrailingslash.normalizePathTrailingSlash)(requireAddLocale$1().addLocale(path, ...args));
2997
+ }
2998
+ return path;
2999
+ };
3000
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3001
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3002
+ Object.assign(exports$1.default, exports$1);
3003
+ module.exports = exports$1.default;
3004
+ }
3005
+ })(addLocale$1, addLocale$1.exports);
3006
+ return addLocale$1.exports;
3007
+ }
3008
+ var useIntersection = { exports: {} };
3009
+ var requestIdleCallback = { exports: {} };
3010
+ var hasRequiredRequestIdleCallback;
3011
+ function requireRequestIdleCallback() {
3012
+ if (hasRequiredRequestIdleCallback) return requestIdleCallback.exports;
3013
+ hasRequiredRequestIdleCallback = 1;
3014
+ (function(module, exports$1) {
3015
+ Object.defineProperty(exports$1, "__esModule", {
3016
+ value: true
3017
+ });
3018
+ function _export(target, all) {
3019
+ for (var name in all) Object.defineProperty(target, name, {
3020
+ enumerable: true,
3021
+ get: all[name]
3022
+ });
3023
+ }
3024
+ _export(exports$1, {
3025
+ cancelIdleCallback: function() {
3026
+ return cancelIdleCallback;
3027
+ },
3028
+ requestIdleCallback: function() {
3029
+ return requestIdleCallback2;
3030
+ }
3031
+ });
3032
+ const requestIdleCallback2 = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
3033
+ let start = Date.now();
3034
+ return self.setTimeout(function() {
3035
+ cb({
3036
+ didTimeout: false,
3037
+ timeRemaining: function() {
3038
+ return Math.max(0, 50 - (Date.now() - start));
3039
+ }
3040
+ });
3041
+ }, 1);
3042
+ };
3043
+ const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
3044
+ return clearTimeout(id);
3045
+ };
3046
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3047
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3048
+ Object.assign(exports$1.default, exports$1);
3049
+ module.exports = exports$1.default;
3050
+ }
3051
+ })(requestIdleCallback, requestIdleCallback.exports);
3052
+ return requestIdleCallback.exports;
3053
+ }
3054
+ var hasRequiredUseIntersection;
3055
+ function requireUseIntersection() {
3056
+ if (hasRequiredUseIntersection) return useIntersection.exports;
3057
+ hasRequiredUseIntersection = 1;
3058
+ (function(module, exports$1) {
3059
+ Object.defineProperty(exports$1, "__esModule", {
3060
+ value: true
3061
+ });
3062
+ Object.defineProperty(exports$1, "useIntersection", {
3063
+ enumerable: true,
3064
+ get: function() {
3065
+ return useIntersection2;
3066
+ }
3067
+ });
3068
+ const _react = React;
3069
+ const _requestidlecallback = requireRequestIdleCallback();
3070
+ const hasIntersectionObserver = typeof IntersectionObserver === "function";
3071
+ const observers = /* @__PURE__ */ new Map();
3072
+ const idList = [];
3073
+ function createObserver(options) {
3074
+ const id = {
3075
+ root: options.root || null,
3076
+ margin: options.rootMargin || ""
3077
+ };
3078
+ const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
3079
+ let instance;
3080
+ if (existing) {
3081
+ instance = observers.get(existing);
3082
+ if (instance) {
3083
+ return instance;
3084
+ }
3085
+ }
3086
+ const elements = /* @__PURE__ */ new Map();
3087
+ const observer = new IntersectionObserver((entries) => {
3088
+ entries.forEach((entry) => {
3089
+ const callback = elements.get(entry.target);
3090
+ const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
3091
+ if (callback && isVisible) {
3092
+ callback(isVisible);
3093
+ }
3094
+ });
3095
+ }, options);
3096
+ instance = {
3097
+ id,
3098
+ observer,
3099
+ elements
3100
+ };
3101
+ idList.push(id);
3102
+ observers.set(id, instance);
3103
+ return instance;
3104
+ }
3105
+ function observe(element, callback, options) {
3106
+ const { id, observer, elements } = createObserver(options);
3107
+ elements.set(element, callback);
3108
+ observer.observe(element);
3109
+ return function unobserve() {
3110
+ elements.delete(element);
3111
+ observer.unobserve(element);
3112
+ if (elements.size === 0) {
3113
+ observer.disconnect();
3114
+ observers.delete(id);
3115
+ const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
3116
+ if (index > -1) {
3117
+ idList.splice(index, 1);
3118
+ }
3119
+ }
3120
+ };
3121
+ }
3122
+ function useIntersection2({ rootRef, rootMargin, disabled }) {
3123
+ const isDisabled = disabled || !hasIntersectionObserver;
3124
+ const [visible, setVisible] = (0, _react.useState)(false);
3125
+ const elementRef = (0, _react.useRef)(null);
3126
+ const setElement = (0, _react.useCallback)((element) => {
3127
+ elementRef.current = element;
3128
+ }, []);
3129
+ (0, _react.useEffect)(() => {
3130
+ if (hasIntersectionObserver) {
3131
+ if (isDisabled || visible) return;
3132
+ const element = elementRef.current;
3133
+ if (element && element.tagName) {
3134
+ const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
3135
+ root: rootRef == null ? void 0 : rootRef.current,
3136
+ rootMargin
3137
+ });
3138
+ return unobserve;
3139
+ }
3140
+ } else {
3141
+ if (!visible) {
3142
+ const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
3143
+ return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
3144
+ }
3145
+ }
3146
+ }, [
3147
+ isDisabled,
3148
+ rootMargin,
3149
+ rootRef,
3150
+ visible,
3151
+ elementRef.current
3152
+ ]);
3153
+ const resetVisible = (0, _react.useCallback)(() => {
3154
+ setVisible(false);
3155
+ }, []);
3156
+ return [
3157
+ setElement,
3158
+ visible,
3159
+ resetVisible
3160
+ ];
3161
+ }
3162
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3163
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3164
+ Object.assign(exports$1.default, exports$1);
3165
+ module.exports = exports$1.default;
3166
+ }
3167
+ })(useIntersection, useIntersection.exports);
3168
+ return useIntersection.exports;
3169
+ }
3170
+ var getDomainLocale = { exports: {} };
3171
+ var normalizeLocalePath$1 = { exports: {} };
3172
+ var normalizeLocalePath = {};
3173
+ var hasRequiredNormalizeLocalePath$1;
3174
+ function requireNormalizeLocalePath$1() {
3175
+ if (hasRequiredNormalizeLocalePath$1) return normalizeLocalePath;
3176
+ hasRequiredNormalizeLocalePath$1 = 1;
3177
+ (function(exports$1) {
3178
+ Object.defineProperty(exports$1, "__esModule", {
3179
+ value: true
3180
+ });
3181
+ Object.defineProperty(exports$1, "normalizeLocalePath", {
3182
+ enumerable: true,
3183
+ get: function() {
3184
+ return normalizeLocalePath2;
3185
+ }
3186
+ });
3187
+ const cache = /* @__PURE__ */ new WeakMap();
3188
+ function normalizeLocalePath2(pathname, locales) {
3189
+ if (!locales) return {
3190
+ pathname
3191
+ };
3192
+ let lowercasedLocales = cache.get(locales);
3193
+ if (!lowercasedLocales) {
3194
+ lowercasedLocales = locales.map((locale) => locale.toLowerCase());
3195
+ cache.set(locales, lowercasedLocales);
3196
+ }
3197
+ let detectedLocale;
3198
+ const segments = pathname.split("/", 2);
3199
+ if (!segments[1]) return {
3200
+ pathname
3201
+ };
3202
+ const segment2 = segments[1].toLowerCase();
3203
+ const index = lowercasedLocales.indexOf(segment2);
3204
+ if (index < 0) return {
3205
+ pathname
3206
+ };
3207
+ detectedLocale = locales[index];
3208
+ pathname = pathname.slice(detectedLocale.length + 1) || "/";
3209
+ return {
3210
+ pathname,
3211
+ detectedLocale
3212
+ };
3213
+ }
3214
+ })(normalizeLocalePath);
3215
+ return normalizeLocalePath;
3216
+ }
3217
+ var hasRequiredNormalizeLocalePath;
3218
+ function requireNormalizeLocalePath() {
3219
+ if (hasRequiredNormalizeLocalePath) return normalizeLocalePath$1.exports;
3220
+ hasRequiredNormalizeLocalePath = 1;
3221
+ (function(module, exports$1) {
3222
+ Object.defineProperty(exports$1, "__esModule", {
3223
+ value: true
3224
+ });
3225
+ Object.defineProperty(exports$1, "normalizeLocalePath", {
3226
+ enumerable: true,
3227
+ get: function() {
3228
+ return normalizeLocalePath2;
3229
+ }
3230
+ });
3231
+ const normalizeLocalePath2 = (pathname, locales) => {
3232
+ if (process.env.__NEXT_I18N_SUPPORT) {
3233
+ return requireNormalizeLocalePath$1().normalizeLocalePath(pathname, locales);
3234
+ }
3235
+ return {
3236
+ pathname,
3237
+ detectedLocale: void 0
3238
+ };
3239
+ };
3240
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3241
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3242
+ Object.assign(exports$1.default, exports$1);
3243
+ module.exports = exports$1.default;
3244
+ }
3245
+ })(normalizeLocalePath$1, normalizeLocalePath$1.exports);
3246
+ return normalizeLocalePath$1.exports;
3247
+ }
3248
+ var detectDomainLocale$1 = { exports: {} };
3249
+ var detectDomainLocale = {};
3250
+ var hasRequiredDetectDomainLocale$1;
3251
+ function requireDetectDomainLocale$1() {
3252
+ if (hasRequiredDetectDomainLocale$1) return detectDomainLocale;
3253
+ hasRequiredDetectDomainLocale$1 = 1;
3254
+ (function(exports$1) {
3255
+ Object.defineProperty(exports$1, "__esModule", {
3256
+ value: true
3257
+ });
3258
+ Object.defineProperty(exports$1, "detectDomainLocale", {
3259
+ enumerable: true,
3260
+ get: function() {
3261
+ return detectDomainLocale2;
3262
+ }
3263
+ });
3264
+ function detectDomainLocale2(domainItems, hostname, detectedLocale) {
3265
+ var _a, _b;
3266
+ if (!domainItems) return;
3267
+ if (detectedLocale) {
3268
+ detectedLocale = detectedLocale.toLowerCase();
3269
+ }
3270
+ for (const item of domainItems) {
3271
+ const domainHostname = (_a = item.domain) == null ? void 0 : _a.split(":", 1)[0].toLowerCase();
3272
+ if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_b = item.locales) == null ? void 0 : _b.some((locale) => locale.toLowerCase() === detectedLocale))) {
3273
+ return item;
3274
+ }
3275
+ }
3276
+ }
3277
+ })(detectDomainLocale);
3278
+ return detectDomainLocale;
3279
+ }
3280
+ var hasRequiredDetectDomainLocale;
3281
+ function requireDetectDomainLocale() {
3282
+ if (hasRequiredDetectDomainLocale) return detectDomainLocale$1.exports;
3283
+ hasRequiredDetectDomainLocale = 1;
3284
+ (function(module, exports$1) {
3285
+ Object.defineProperty(exports$1, "__esModule", {
3286
+ value: true
3287
+ });
3288
+ Object.defineProperty(exports$1, "detectDomainLocale", {
3289
+ enumerable: true,
3290
+ get: function() {
3291
+ return detectDomainLocale2;
3292
+ }
3293
+ });
3294
+ const detectDomainLocale2 = (...args) => {
3295
+ if (process.env.__NEXT_I18N_SUPPORT) {
3296
+ return requireDetectDomainLocale$1().detectDomainLocale(...args);
3297
+ }
3298
+ };
3299
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3300
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3301
+ Object.assign(exports$1.default, exports$1);
3302
+ module.exports = exports$1.default;
3303
+ }
3304
+ })(detectDomainLocale$1, detectDomainLocale$1.exports);
3305
+ return detectDomainLocale$1.exports;
3306
+ }
3307
+ var hasRequiredGetDomainLocale;
3308
+ function requireGetDomainLocale() {
3309
+ if (hasRequiredGetDomainLocale) return getDomainLocale.exports;
3310
+ hasRequiredGetDomainLocale = 1;
3311
+ (function(module, exports$1) {
3312
+ Object.defineProperty(exports$1, "__esModule", {
3313
+ value: true
3314
+ });
3315
+ Object.defineProperty(exports$1, "getDomainLocale", {
3316
+ enumerable: true,
3317
+ get: function() {
3318
+ return getDomainLocale2;
3319
+ }
3320
+ });
3321
+ const _normalizetrailingslash = requireNormalizeTrailingSlash();
3322
+ const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3323
+ function getDomainLocale2(path, locale, locales, domainLocales) {
3324
+ if (process.env.__NEXT_I18N_SUPPORT) {
3325
+ const normalizeLocalePath2 = requireNormalizeLocalePath().normalizeLocalePath;
3326
+ const detectDomainLocale2 = requireDetectDomainLocale().detectDomainLocale;
3327
+ const target = locale || normalizeLocalePath2(path, locales).detectedLocale;
3328
+ const domain = detectDomainLocale2(domainLocales, void 0, target);
3329
+ if (domain) {
3330
+ const proto = `http${domain.http ? "" : "s"}://`;
3331
+ const finalLocale = target === domain.defaultLocale ? "" : `/${target}`;
3332
+ return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
3333
+ }
3334
+ return false;
3335
+ } else {
3336
+ return false;
3337
+ }
3338
+ }
3339
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3340
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3341
+ Object.assign(exports$1.default, exports$1);
3342
+ module.exports = exports$1.default;
3343
+ }
3344
+ })(getDomainLocale, getDomainLocale.exports);
3345
+ return getDomainLocale.exports;
3346
+ }
3347
+ var addBasePath = { exports: {} };
3348
+ var hasRequiredAddBasePath;
3349
+ function requireAddBasePath() {
3350
+ if (hasRequiredAddBasePath) return addBasePath.exports;
3351
+ hasRequiredAddBasePath = 1;
3352
+ (function(module, exports$1) {
3353
+ Object.defineProperty(exports$1, "__esModule", {
3354
+ value: true
3355
+ });
3356
+ Object.defineProperty(exports$1, "addBasePath", {
3357
+ enumerable: true,
3358
+ get: function() {
3359
+ return addBasePath2;
3360
+ }
3361
+ });
3362
+ const _addpathprefix = requireAddPathPrefix();
3363
+ const _normalizetrailingslash = requireNormalizeTrailingSlash();
3364
+ const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
3365
+ function addBasePath2(path, required) {
3366
+ return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
3367
+ }
3368
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3369
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3370
+ Object.assign(exports$1.default, exports$1);
3371
+ module.exports = exports$1.default;
3372
+ }
3373
+ })(addBasePath, addBasePath.exports);
3374
+ return addBasePath.exports;
3375
+ }
3376
+ var errorOnce = {};
3377
+ var hasRequiredErrorOnce;
3378
+ function requireErrorOnce() {
3379
+ if (hasRequiredErrorOnce) return errorOnce;
3380
+ hasRequiredErrorOnce = 1;
3381
+ (function(exports$1) {
3382
+ Object.defineProperty(exports$1, "__esModule", {
3383
+ value: true
3384
+ });
3385
+ Object.defineProperty(exports$1, "errorOnce", {
3386
+ enumerable: true,
3387
+ get: function() {
3388
+ return errorOnce2;
3389
+ }
3390
+ });
3391
+ let errorOnce2 = (_) => {
3392
+ };
3393
+ if (process.env.NODE_ENV !== "production") {
3394
+ const errors = /* @__PURE__ */ new Set();
3395
+ errorOnce2 = (msg) => {
3396
+ if (!errors.has(msg)) {
3397
+ console.error(msg);
3398
+ }
3399
+ errors.add(msg);
3400
+ };
3401
+ }
3402
+ })(errorOnce);
3403
+ return errorOnce;
3404
+ }
3405
+ var hasRequiredLink$1;
3406
+ function requireLink$1() {
3407
+ if (hasRequiredLink$1) return link$1.exports;
3408
+ hasRequiredLink$1 = 1;
3409
+ (function(module, exports$1) {
3410
+ "use client";
3411
+ Object.defineProperty(exports$1, "__esModule", {
3412
+ value: true
3413
+ });
3414
+ function _export(target, all) {
3415
+ for (var name in all) Object.defineProperty(target, name, {
3416
+ enumerable: true,
3417
+ get: all[name]
3418
+ });
3419
+ }
3420
+ _export(exports$1, {
3421
+ default: function() {
3422
+ return _default;
3423
+ },
3424
+ useLinkStatus: function() {
3425
+ return useLinkStatus;
3426
+ }
3427
+ });
3428
+ const _interop_require_wildcard2 = /* @__PURE__ */ require_interop_require_wildcard();
3429
+ const _jsxruntime = require$$2;
3430
+ const _react = /* @__PURE__ */ _interop_require_wildcard2._(React);
3431
+ const _resolvehref = requireResolveHref();
3432
+ const _islocalurl = requireIsLocalUrl();
3433
+ const _formaturl = requireFormatUrl();
3434
+ const _utils = requireUtils$1();
3435
+ const _addlocale = requireAddLocale();
3436
+ const _routercontextsharedruntime = requireRouterContext_sharedRuntime();
3437
+ const _useintersection = requireUseIntersection();
3438
+ const _getdomainlocale = requireGetDomainLocale();
3439
+ const _addbasepath = requireAddBasePath();
3440
+ const _usemergedref = requireUseMergedRef();
3441
+ const _erroronce = requireErrorOnce();
3442
+ const prefetched = /* @__PURE__ */ new Set();
3443
+ function prefetch(router, href, as, options) {
3444
+ if (typeof window === "undefined") {
3445
+ return;
3446
+ }
3447
+ if (!(0, _islocalurl.isLocalURL)(href)) {
3448
+ return;
3449
+ }
3450
+ if (!options.bypassPrefetchedCheck) {
3451
+ const locale = (
3452
+ // Let the link's locale prop override the default router locale.
3453
+ typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0
3454
+ );
3455
+ const prefetchedKey = href + "%" + as + "%" + locale;
3456
+ if (prefetched.has(prefetchedKey)) {
3457
+ return;
3458
+ }
3459
+ prefetched.add(prefetchedKey);
3460
+ }
3461
+ router.prefetch(href, as, options).catch((err) => {
3462
+ if (process.env.NODE_ENV !== "production") {
3463
+ throw err;
3464
+ }
3465
+ });
3466
+ }
3467
+ function isModifiedEvent(event) {
3468
+ const eventTarget = event.currentTarget;
3469
+ const target = eventTarget.getAttribute("target");
3470
+ return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
3471
+ event.nativeEvent && event.nativeEvent.which === 2;
3472
+ }
3473
+ function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
3474
+ const { nodeName } = e.currentTarget;
3475
+ const isAnchorNodeName = nodeName.toUpperCase() === "A";
3476
+ if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) {
3477
+ return;
3478
+ }
3479
+ if (!(0, _islocalurl.isLocalURL)(href)) {
3480
+ if (replace) {
3481
+ e.preventDefault();
3482
+ location.replace(href);
3483
+ }
3484
+ return;
3485
+ }
3486
+ e.preventDefault();
3487
+ const navigate = () => {
3488
+ if (onNavigate) {
3489
+ let isDefaultPrevented = false;
3490
+ onNavigate({
3491
+ preventDefault: () => {
3492
+ isDefaultPrevented = true;
3493
+ }
3494
+ });
3495
+ if (isDefaultPrevented) {
3496
+ return;
3497
+ }
3498
+ }
3499
+ const routerScroll = scroll ?? true;
3500
+ if ("beforePopState" in router) {
3501
+ router[replace ? "replace" : "push"](href, as, {
3502
+ shallow,
3503
+ locale,
3504
+ scroll: routerScroll
3505
+ });
3506
+ } else {
3507
+ router[replace ? "replace" : "push"](as || href, {
3508
+ scroll: routerScroll
3509
+ });
3510
+ }
3511
+ };
3512
+ navigate();
3513
+ }
3514
+ function formatStringOrUrl(urlObjOrString) {
3515
+ if (typeof urlObjOrString === "string") {
3516
+ return urlObjOrString;
3517
+ }
3518
+ return (0, _formaturl.formatUrl)(urlObjOrString);
3519
+ }
3520
+ const Link2 = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
3521
+ let children;
3522
+ 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;
3523
+ children = childrenProp;
3524
+ if (legacyBehavior && (typeof children === "string" || typeof children === "number")) {
3525
+ children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
3526
+ children
3527
+ });
3528
+ }
3529
+ const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
3530
+ const prefetchEnabled = prefetchProp !== false;
3531
+ if (process.env.NODE_ENV !== "production") {
3532
+ let createPropError = function(args) {
3533
+ return Object.defineProperty(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", {
3534
+ value: "E319",
3535
+ enumerable: false,
3536
+ configurable: true
3537
+ });
3538
+ };
3539
+ const requiredPropsGuard = {
3540
+ href: true
3541
+ };
3542
+ const requiredProps = Object.keys(requiredPropsGuard);
3543
+ requiredProps.forEach((key) => {
3544
+ if (key === "href") {
3545
+ if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") {
3546
+ throw createPropError({
3547
+ key,
3548
+ expected: "`string` or `object`",
3549
+ actual: props[key] === null ? "null" : typeof props[key]
3550
+ });
3551
+ }
3552
+ }
3553
+ });
3554
+ const optionalPropsGuard = {
3555
+ as: true,
3556
+ replace: true,
3557
+ scroll: true,
3558
+ shallow: true,
3559
+ passHref: true,
3560
+ prefetch: true,
3561
+ locale: true,
3562
+ onClick: true,
3563
+ onMouseEnter: true,
3564
+ onTouchStart: true,
3565
+ legacyBehavior: true,
3566
+ onNavigate: true
3567
+ };
3568
+ const optionalProps = Object.keys(optionalPropsGuard);
3569
+ optionalProps.forEach((key) => {
3570
+ const valType = typeof props[key];
3571
+ if (key === "as") {
3572
+ if (props[key] && valType !== "string" && valType !== "object") {
3573
+ throw createPropError({
3574
+ key,
3575
+ expected: "`string` or `object`",
3576
+ actual: valType
3577
+ });
3578
+ }
3579
+ } else if (key === "locale") {
3580
+ if (props[key] && valType !== "string") {
3581
+ throw createPropError({
3582
+ key,
3583
+ expected: "`string`",
3584
+ actual: valType
3585
+ });
3586
+ }
3587
+ } else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
3588
+ if (props[key] && valType !== "function") {
3589
+ throw createPropError({
3590
+ key,
3591
+ expected: "`function`",
3592
+ actual: valType
3593
+ });
3594
+ }
3595
+ } else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
3596
+ if (props[key] != null && valType !== "boolean") {
3597
+ throw createPropError({
3598
+ key,
3599
+ expected: "`boolean`",
3600
+ actual: valType
3601
+ });
3602
+ }
3603
+ } else if (key === "prefetch") {
3604
+ if (props[key] != null && valType !== "boolean" && props[key] !== "auto") {
3605
+ throw createPropError({
3606
+ key,
3607
+ expected: '`boolean | "auto"`',
3608
+ actual: valType
3609
+ });
3610
+ }
3611
+ } else ;
3612
+ });
3613
+ }
3614
+ const { href, as } = _react.default.useMemo(() => {
3615
+ if (!router) {
3616
+ const resolvedHref2 = formatStringOrUrl(hrefProp);
3617
+ return {
3618
+ href: resolvedHref2,
3619
+ as: asProp ? formatStringOrUrl(asProp) : resolvedHref2
3620
+ };
3621
+ }
3622
+ const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
3623
+ return {
3624
+ href: resolvedHref,
3625
+ as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
3626
+ };
3627
+ }, [
3628
+ router,
3629
+ hrefProp,
3630
+ asProp
3631
+ ]);
3632
+ const previousHref = _react.default.useRef(href);
3633
+ const previousAs = _react.default.useRef(as);
3634
+ let child;
3635
+ if (legacyBehavior) {
3636
+ if (process.env.NODE_ENV === "development") {
3637
+ if (onClick) {
3638
+ 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`);
3639
+ }
3640
+ if (onMouseEnterProp) {
3641
+ 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`);
3642
+ }
3643
+ try {
3644
+ child = _react.default.Children.only(children);
3645
+ } catch (err) {
3646
+ if (!children) {
3647
+ throw Object.defineProperty(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", {
3648
+ value: "E320",
3649
+ enumerable: false,
3650
+ configurable: true
3651
+ });
3652
+ }
3653
+ throw Object.defineProperty(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", {
3654
+ value: "E266",
3655
+ enumerable: false,
3656
+ configurable: true
3657
+ });
3658
+ }
3659
+ } else {
3660
+ child = _react.default.Children.only(children);
3661
+ }
3662
+ } else {
3663
+ if (process.env.NODE_ENV === "development") {
3664
+ if ((children == null ? void 0 : children.type) === "a") {
3665
+ throw Object.defineProperty(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", {
3666
+ value: "E209",
3667
+ enumerable: false,
3668
+ configurable: true
3669
+ });
3670
+ }
3671
+ }
3672
+ }
3673
+ const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
3674
+ const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({
3675
+ rootMargin: "200px"
3676
+ });
3677
+ const setIntersectionWithResetRef = _react.default.useCallback((el) => {
3678
+ if (previousAs.current !== as || previousHref.current !== href) {
3679
+ resetVisible();
3680
+ previousAs.current = as;
3681
+ previousHref.current = href;
3682
+ }
3683
+ setIntersectionRef(el);
3684
+ }, [
3685
+ as,
3686
+ href,
3687
+ resetVisible,
3688
+ setIntersectionRef
3689
+ ]);
3690
+ const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
3691
+ _react.default.useEffect(() => {
3692
+ if (process.env.NODE_ENV !== "production") {
3693
+ return;
3694
+ }
3695
+ if (!router) {
3696
+ return;
3697
+ }
3698
+ if (!isVisible || !prefetchEnabled) {
3699
+ return;
3700
+ }
3701
+ prefetch(router, href, as, {
3702
+ locale
3703
+ });
3704
+ }, [
3705
+ as,
3706
+ href,
3707
+ isVisible,
3708
+ locale,
3709
+ prefetchEnabled,
3710
+ router == null ? void 0 : router.locale,
3711
+ router
3712
+ ]);
3713
+ const childProps = {
3714
+ ref: setRef,
3715
+ onClick(e) {
3716
+ if (process.env.NODE_ENV !== "production") {
3717
+ if (!e) {
3718
+ throw Object.defineProperty(new Error(`Component rendered inside next/link has to pass click event to "onClick" prop.`), "__NEXT_ERROR_CODE", {
3719
+ value: "E312",
3720
+ enumerable: false,
3721
+ configurable: true
3722
+ });
3723
+ }
3724
+ }
3725
+ if (!legacyBehavior && typeof onClick === "function") {
3726
+ onClick(e);
3727
+ }
3728
+ if (legacyBehavior && child.props && typeof child.props.onClick === "function") {
3729
+ child.props.onClick(e);
3730
+ }
3731
+ if (!router) {
3732
+ return;
3733
+ }
3734
+ if (e.defaultPrevented) {
3735
+ return;
3736
+ }
3737
+ linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
3738
+ },
3739
+ onMouseEnter(e) {
3740
+ if (!legacyBehavior && typeof onMouseEnterProp === "function") {
3741
+ onMouseEnterProp(e);
3742
+ }
3743
+ if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") {
3744
+ child.props.onMouseEnter(e);
3745
+ }
3746
+ if (!router) {
3747
+ return;
3748
+ }
3749
+ prefetch(router, href, as, {
3750
+ locale,
3751
+ priority: true,
3752
+ // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3753
+ bypassPrefetchedCheck: true
3754
+ });
3755
+ },
3756
+ onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
3757
+ if (!legacyBehavior && typeof onTouchStartProp === "function") {
3758
+ onTouchStartProp(e);
3759
+ }
3760
+ if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") {
3761
+ child.props.onTouchStart(e);
3762
+ }
3763
+ if (!router) {
3764
+ return;
3765
+ }
3766
+ prefetch(router, href, as, {
3767
+ locale,
3768
+ priority: true,
3769
+ // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
3770
+ bypassPrefetchedCheck: true
3771
+ });
3772
+ }
3773
+ };
3774
+ if ((0, _utils.isAbsoluteUrl)(as)) {
3775
+ childProps.href = as;
3776
+ } else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
3777
+ const curLocale = typeof locale !== "undefined" ? locale : router == null ? void 0 : router.locale;
3778
+ const localeDomain = (router == null ? void 0 : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? void 0 : router.locales, router == null ? void 0 : router.domainLocales);
3779
+ childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? void 0 : router.defaultLocale));
3780
+ }
3781
+ if (legacyBehavior) {
3782
+ if (process.env.NODE_ENV === "development") {
3783
+ (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");
3784
+ }
3785
+ return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
3786
+ }
3787
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
3788
+ ...restProps,
3789
+ ...childProps,
3790
+ children
3791
+ });
3792
+ });
3793
+ const LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({
3794
+ // We do not support link status in the Pages Router, so we always return false
3795
+ pending: false
3796
+ });
3797
+ const useLinkStatus = () => {
3798
+ return (0, _react.useContext)(LinkStatusContext);
3799
+ };
3800
+ const _default = Link2;
3801
+ if ((typeof exports$1.default === "function" || typeof exports$1.default === "object" && exports$1.default !== null) && typeof exports$1.default.__esModule === "undefined") {
3802
+ Object.defineProperty(exports$1.default, "__esModule", { value: true });
3803
+ Object.assign(exports$1.default, exports$1);
3804
+ module.exports = exports$1.default;
3805
+ }
3806
+ })(link$1, link$1.exports);
3807
+ return link$1.exports;
3808
+ }
3809
+ var link;
3810
+ var hasRequiredLink;
3811
+ function requireLink() {
3812
+ if (hasRequiredLink) return link;
3813
+ hasRequiredLink = 1;
3814
+ link = requireLink$1();
3815
+ return link;
3816
+ }
3817
+ var linkExports = requireLink();
3818
+ const Link = /* @__PURE__ */ getDefaultExportFromCjs(linkExports);
3819
+ export {
3820
+ Link as L,
3821
+ require_interop_require_wildcard as a,
3822
+ requireRouterContext_sharedRuntime as b,
3823
+ requireUseMergedRef as c,
3824
+ requireInvariantError as d,
3825
+ requireSegment as e,
3826
+ getDefaultExportFromCjs as g,
3827
+ require_interop_require_default as r
3828
+ };
3829
+ //# sourceMappingURL=link-CxWP3aXr.js.map