@helpwave/hightide 0.1.26 → 0.1.28

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