@betterinternship/components 2.3.0 → 2.4.1

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 (493) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_interop_require_default.js +4 -0
  4. package/dist/_virtual/_interop_require_default.js.map +1 -0
  5. package/dist/_virtual/_interop_require_wildcard.js +4 -0
  6. package/dist/_virtual/_interop_require_wildcard.js.map +1 -0
  7. package/dist/_virtual/action-async-storage-instance.js +4 -0
  8. package/dist/_virtual/action-async-storage-instance.js.map +1 -0
  9. package/dist/_virtual/action-async-storage.external.js +4 -0
  10. package/dist/_virtual/action-async-storage.external.js.map +1 -0
  11. package/dist/_virtual/action-revalidation-kind.js +4 -0
  12. package/dist/_virtual/action-revalidation-kind.js.map +1 -0
  13. package/dist/_virtual/add-base-path.js +4 -0
  14. package/dist/_virtual/add-base-path.js.map +1 -0
  15. package/dist/_virtual/add-locale.js +4 -0
  16. package/dist/_virtual/add-locale.js.map +1 -0
  17. package/dist/_virtual/add-locale2.js +4 -0
  18. package/dist/_virtual/add-locale2.js.map +1 -0
  19. package/dist/_virtual/add-path-prefix.js +4 -0
  20. package/dist/_virtual/add-path-prefix.js.map +1 -0
  21. package/dist/_virtual/app-paths.js +4 -0
  22. package/dist/_virtual/app-paths.js.map +1 -0
  23. package/dist/_virtual/app-router-context.shared-runtime.js +4 -0
  24. package/dist/_virtual/app-router-context.shared-runtime.js.map +1 -0
  25. package/dist/_virtual/app.js +4 -0
  26. package/dist/_virtual/app.js.map +1 -0
  27. package/dist/_virtual/async-local-storage.js +4 -0
  28. package/dist/_virtual/async-local-storage.js.map +1 -0
  29. package/dist/_virtual/bailout-to-csr.js +4 -0
  30. package/dist/_virtual/bailout-to-csr.js.map +1 -0
  31. package/dist/_virtual/blocking-route-messages.js +4 -0
  32. package/dist/_virtual/blocking-route-messages.js.map +1 -0
  33. package/dist/_virtual/boundary-constants.js +4 -0
  34. package/dist/_virtual/boundary-constants.js.map +1 -0
  35. package/dist/_virtual/boundary-constants2.js +4 -0
  36. package/dist/_virtual/boundary-constants2.js.map +1 -0
  37. package/dist/_virtual/boundary-tracking.js +4 -0
  38. package/dist/_virtual/boundary-tracking.js.map +1 -0
  39. package/dist/_virtual/constants.js +4 -0
  40. package/dist/_virtual/constants.js.map +1 -0
  41. package/dist/_virtual/cookies.js +4 -0
  42. package/dist/_virtual/cookies.js.map +1 -0
  43. package/dist/_virtual/deployment-id.js +4 -0
  44. package/dist/_virtual/deployment-id.js.map +1 -0
  45. package/dist/_virtual/detect-domain-locale.js +4 -0
  46. package/dist/_virtual/detect-domain-locale.js.map +1 -0
  47. package/dist/_virtual/detect-domain-locale2.js +4 -0
  48. package/dist/_virtual/detect-domain-locale2.js.map +1 -0
  49. package/dist/_virtual/dynamic-rendering-utils.js +4 -0
  50. package/dist/_virtual/dynamic-rendering-utils.js.map +1 -0
  51. package/dist/_virtual/dynamic-rendering.js +4 -0
  52. package/dist/_virtual/dynamic-rendering.js.map +1 -0
  53. package/dist/_virtual/ensure-leading-slash.js +4 -0
  54. package/dist/_virtual/ensure-leading-slash.js.map +1 -0
  55. package/dist/_virtual/error-once.js +4 -0
  56. package/dist/_virtual/error-once.js.map +1 -0
  57. package/dist/_virtual/escape-regexp.js +4 -0
  58. package/dist/_virtual/escape-regexp.js.map +1 -0
  59. package/dist/_virtual/find-closest-quality.js +4 -0
  60. package/dist/_virtual/find-closest-quality.js.map +1 -0
  61. package/dist/_virtual/forbidden.js +4 -0
  62. package/dist/_virtual/forbidden.js.map +1 -0
  63. package/dist/_virtual/format-url.js +4 -0
  64. package/dist/_virtual/format-url.js.map +1 -0
  65. package/dist/_virtual/get-domain-locale.js +4 -0
  66. package/dist/_virtual/get-domain-locale.js.map +1 -0
  67. package/dist/_virtual/get-dynamic-param.js +4 -0
  68. package/dist/_virtual/get-dynamic-param.js.map +1 -0
  69. package/dist/_virtual/get-img-props.js +4 -0
  70. package/dist/_virtual/get-img-props.js.map +1 -0
  71. package/dist/_virtual/get-segment-param.js +4 -0
  72. package/dist/_virtual/get-segment-param.js.map +1 -0
  73. package/dist/_virtual/has-base-path.js +4 -0
  74. package/dist/_virtual/has-base-path.js.map +1 -0
  75. package/dist/_virtual/head-manager-context.shared-runtime.js +4 -0
  76. package/dist/_virtual/head-manager-context.shared-runtime.js.map +1 -0
  77. package/dist/_virtual/head.js +4 -0
  78. package/dist/_virtual/head.js.map +1 -0
  79. package/dist/_virtual/headers.js +4 -0
  80. package/dist/_virtual/headers.js.map +1 -0
  81. package/dist/_virtual/hooks-client-context.shared-runtime.js +4 -0
  82. package/dist/_virtual/hooks-client-context.shared-runtime.js.map +1 -0
  83. package/dist/_virtual/hooks-server-context.js +4 -0
  84. package/dist/_virtual/hooks-server-context.js.map +1 -0
  85. package/dist/_virtual/http-access-fallback.js +4 -0
  86. package/dist/_virtual/http-access-fallback.js.map +1 -0
  87. package/dist/_virtual/image-blur-svg.js +4 -0
  88. package/dist/_virtual/image-blur-svg.js.map +1 -0
  89. package/dist/_virtual/image-component.js +4 -0
  90. package/dist/_virtual/image-component.js.map +1 -0
  91. package/dist/_virtual/image-config-context.shared-runtime.js +4 -0
  92. package/dist/_virtual/image-config-context.shared-runtime.js.map +1 -0
  93. package/dist/_virtual/image-config.js +4 -0
  94. package/dist/_virtual/image-config.js.map +1 -0
  95. package/dist/_virtual/image-external.js +4 -0
  96. package/dist/_virtual/image-external.js.map +1 -0
  97. package/dist/_virtual/image-loader.js +4 -0
  98. package/dist/_virtual/image-loader.js.map +1 -0
  99. package/dist/_virtual/image.js +8 -0
  100. package/dist/_virtual/image.js.map +1 -0
  101. package/dist/_virtual/index.js +4 -0
  102. package/dist/_virtual/index.js.map +1 -0
  103. package/dist/_virtual/index2.js +4 -0
  104. package/dist/_virtual/index2.js.map +1 -0
  105. package/dist/_virtual/index3.js +4 -0
  106. package/dist/_virtual/index3.js.map +1 -0
  107. package/dist/_virtual/instant-messages.js +4 -0
  108. package/dist/_virtual/instant-messages.js.map +1 -0
  109. package/dist/_virtual/instant-samples.js +4 -0
  110. package/dist/_virtual/instant-samples.js.map +1 -0
  111. package/dist/_virtual/instant-samples2.js +4 -0
  112. package/dist/_virtual/instant-samples2.js.map +1 -0
  113. package/dist/_virtual/instant-validation-error.js +4 -0
  114. package/dist/_virtual/instant-validation-error.js.map +1 -0
  115. package/dist/_virtual/interception-prefix-from-param-type.js +4 -0
  116. package/dist/_virtual/interception-prefix-from-param-type.js.map +1 -0
  117. package/dist/_virtual/interception-routes.js +4 -0
  118. package/dist/_virtual/interception-routes.js.map +1 -0
  119. package/dist/_virtual/interpolate-as.js +4 -0
  120. package/dist/_virtual/interpolate-as.js.map +1 -0
  121. package/dist/_virtual/invariant-error.js +4 -0
  122. package/dist/_virtual/invariant-error.js.map +1 -0
  123. package/dist/_virtual/is-dynamic.js +4 -0
  124. package/dist/_virtual/is-dynamic.js.map +1 -0
  125. package/dist/_virtual/is-local-url.js +4 -0
  126. package/dist/_virtual/is-local-url.js.map +1 -0
  127. package/dist/_virtual/is-next-router-error.js +4 -0
  128. package/dist/_virtual/is-next-router-error.js.map +1 -0
  129. package/dist/_virtual/is-postpone.js +4 -0
  130. package/dist/_virtual/is-postpone.js.map +1 -0
  131. package/dist/_virtual/link.js +8 -0
  132. package/dist/_virtual/link.js.map +1 -0
  133. package/dist/_virtual/link2.js +4 -0
  134. package/dist/_virtual/link2.js.map +1 -0
  135. package/dist/_virtual/match-local-pattern.js +4 -0
  136. package/dist/_virtual/match-local-pattern.js.map +1 -0
  137. package/dist/_virtual/match-remote-pattern.js +4 -0
  138. package/dist/_virtual/match-remote-pattern.js.map +1 -0
  139. package/dist/_virtual/navigation-dynamic-rendering.js +4 -0
  140. package/dist/_virtual/navigation-dynamic-rendering.js.map +1 -0
  141. package/dist/_virtual/navigation.js +6 -0
  142. package/dist/_virtual/navigation.js.map +1 -0
  143. package/dist/_virtual/navigation.react-server.js +4 -0
  144. package/dist/_virtual/navigation.react-server.js.map +1 -0
  145. package/dist/_virtual/navigation2.js +4 -0
  146. package/dist/_virtual/navigation2.js.map +1 -0
  147. package/dist/_virtual/normalize-locale-path.js +4 -0
  148. package/dist/_virtual/normalize-locale-path.js.map +1 -0
  149. package/dist/_virtual/normalize-locale-path2.js +4 -0
  150. package/dist/_virtual/normalize-locale-path2.js.map +1 -0
  151. package/dist/_virtual/normalize-trailing-slash.js +4 -0
  152. package/dist/_virtual/normalize-trailing-slash.js.map +1 -0
  153. package/dist/_virtual/not-found.js +4 -0
  154. package/dist/_virtual/not-found.js.map +1 -0
  155. package/dist/_virtual/omit.js +4 -0
  156. package/dist/_virtual/omit.js.map +1 -0
  157. package/dist/_virtual/parse-loader-tree.js +4 -0
  158. package/dist/_virtual/parse-loader-tree.js.map +1 -0
  159. package/dist/_virtual/parse-path.js +4 -0
  160. package/dist/_virtual/parse-path.js.map +1 -0
  161. package/dist/_virtual/parse-relative-url.js +4 -0
  162. package/dist/_virtual/parse-relative-url.js.map +1 -0
  163. package/dist/_virtual/path-has-prefix.js +4 -0
  164. package/dist/_virtual/path-has-prefix.js.map +1 -0
  165. package/dist/_virtual/promise-with-resolvers.js +4 -0
  166. package/dist/_virtual/promise-with-resolvers.js.map +1 -0
  167. package/dist/_virtual/querystring.js +4 -0
  168. package/dist/_virtual/querystring.js.map +1 -0
  169. package/dist/_virtual/readonly-url-search-params.js +4 -0
  170. package/dist/_virtual/readonly-url-search-params.js.map +1 -0
  171. package/dist/_virtual/redirect-error.js +4 -0
  172. package/dist/_virtual/redirect-error.js.map +1 -0
  173. package/dist/_virtual/redirect-status-code.js +4 -0
  174. package/dist/_virtual/redirect-status-code.js.map +1 -0
  175. package/dist/_virtual/redirect.js +4 -0
  176. package/dist/_virtual/redirect.js.map +1 -0
  177. package/dist/_virtual/reflect-utils.js +4 -0
  178. package/dist/_virtual/reflect-utils.js.map +1 -0
  179. package/dist/_virtual/reflect.js +4 -0
  180. package/dist/_virtual/reflect.js.map +1 -0
  181. package/dist/_virtual/remove-trailing-slash.js +4 -0
  182. package/dist/_virtual/remove-trailing-slash.js.map +1 -0
  183. package/dist/_virtual/request-cookies.js +4 -0
  184. package/dist/_virtual/request-cookies.js.map +1 -0
  185. package/dist/_virtual/request-idle-callback.js +4 -0
  186. package/dist/_virtual/request-idle-callback.js.map +1 -0
  187. package/dist/_virtual/resolve-href.js +4 -0
  188. package/dist/_virtual/resolve-href.js.map +1 -0
  189. package/dist/_virtual/resolve-param-value.js +4 -0
  190. package/dist/_virtual/resolve-param-value.js.map +1 -0
  191. package/dist/_virtual/route-match-utils.js +4 -0
  192. package/dist/_virtual/route-match-utils.js.map +1 -0
  193. package/dist/_virtual/route-matcher.js +4 -0
  194. package/dist/_virtual/route-matcher.js.map +1 -0
  195. package/dist/_virtual/route-pattern-normalizer.js +4 -0
  196. package/dist/_virtual/route-pattern-normalizer.js.map +1 -0
  197. package/dist/_virtual/route-regex.js +4 -0
  198. package/dist/_virtual/route-regex.js.map +1 -0
  199. package/dist/_virtual/router-context.shared-runtime.js +4 -0
  200. package/dist/_virtual/router-context.shared-runtime.js.map +1 -0
  201. package/dist/_virtual/runtime-reacts.external.js +4 -0
  202. package/dist/_virtual/runtime-reacts.external.js.map +1 -0
  203. package/dist/_virtual/scheduler.js +4 -0
  204. package/dist/_virtual/scheduler.js.map +1 -0
  205. package/dist/_virtual/segment.js +4 -0
  206. package/dist/_virtual/segment.js.map +1 -0
  207. package/dist/_virtual/server-async-storage.js +4 -0
  208. package/dist/_virtual/server-async-storage.js.map +1 -0
  209. package/dist/_virtual/server-inserted-html.shared-runtime.js +4 -0
  210. package/dist/_virtual/server-inserted-html.shared-runtime.js.map +1 -0
  211. package/dist/_virtual/side-effect.js +4 -0
  212. package/dist/_virtual/side-effect.js.map +1 -0
  213. package/dist/_virtual/sorted-routes.js +4 -0
  214. package/dist/_virtual/sorted-routes.js.map +1 -0
  215. package/dist/_virtual/staged-rendering.js +4 -0
  216. package/dist/_virtual/staged-rendering.js.map +1 -0
  217. package/dist/_virtual/static-generation-bailout.js +4 -0
  218. package/dist/_virtual/static-generation-bailout.js.map +1 -0
  219. package/dist/_virtual/unauthorized.js +4 -0
  220. package/dist/_virtual/unauthorized.js.map +1 -0
  221. package/dist/_virtual/unrecognized-action-error.js +4 -0
  222. package/dist/_virtual/unrecognized-action-error.js.map +1 -0
  223. package/dist/_virtual/unstable-rethrow.js +4 -0
  224. package/dist/_virtual/unstable-rethrow.js.map +1 -0
  225. package/dist/_virtual/use-intersection.js +4 -0
  226. package/dist/_virtual/use-intersection.js.map +1 -0
  227. package/dist/_virtual/use-merged-ref.js +4 -0
  228. package/dist/_virtual/use-merged-ref.js.map +1 -0
  229. package/dist/_virtual/utils.js +4 -0
  230. package/dist/_virtual/utils.js.map +1 -0
  231. package/dist/_virtual/warn-once.js +4 -0
  232. package/dist/_virtual/warn-once.js.map +1 -0
  233. package/dist/_virtual/work-async-storage-instance.js +4 -0
  234. package/dist/_virtual/work-async-storage-instance.js.map +1 -0
  235. package/dist/_virtual/work-async-storage.external.js +4 -0
  236. package/dist/_virtual/work-async-storage.external.js.map +1 -0
  237. package/dist/_virtual/work-unit-async-storage-instance.js +4 -0
  238. package/dist/_virtual/work-unit-async-storage-instance.js.map +1 -0
  239. package/dist/_virtual/work-unit-async-storage.external.js +4 -0
  240. package/dist/_virtual/work-unit-async-storage.external.js.map +1 -0
  241. package/dist/components/ui/app-header.js +72 -0
  242. package/dist/components/ui/app-header.js.map +1 -0
  243. package/dist/components/ui/dropdown-menu.js +61 -0
  244. package/dist/components/ui/dropdown-menu.js.map +1 -0
  245. package/dist/components/ui/page-header.js +17 -0
  246. package/dist/components/ui/page-header.js.map +1 -0
  247. package/dist/components/ui/status-notice.d.ts +14 -0
  248. package/dist/components/ui/status-notice.js +27 -0
  249. package/dist/components/ui/status-notice.js.map +1 -0
  250. package/dist/index.d.ts +4 -0
  251. package/dist/index.js +4 -0
  252. package/dist/index.js.map +1 -1
  253. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +17 -0
  254. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js.map +1 -0
  255. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +49 -0
  256. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js.map +1 -0
  257. package/dist/node_modules/next/dist/client/add-base-path.js +39 -0
  258. package/dist/node_modules/next/dist/client/add-base-path.js.map +1 -0
  259. package/dist/node_modules/next/dist/client/add-locale.js +40 -0
  260. package/dist/node_modules/next/dist/client/add-locale.js.map +1 -0
  261. package/dist/node_modules/next/dist/client/components/forbidden.js +62 -0
  262. package/dist/node_modules/next/dist/client/components/forbidden.js.map +1 -0
  263. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +51 -0
  264. package/dist/node_modules/next/dist/client/components/hooks-server-context.js.map +1 -0
  265. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +78 -0
  266. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js.map +1 -0
  267. package/dist/node_modules/next/dist/client/components/instant-samples.js +107 -0
  268. package/dist/node_modules/next/dist/client/components/instant-samples.js.map +1 -0
  269. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +38 -0
  270. package/dist/node_modules/next/dist/client/components/is-next-router-error.js.map +1 -0
  271. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +41 -0
  272. package/dist/node_modules/next/dist/client/components/navigation-dynamic-rendering.js.map +1 -0
  273. package/dist/node_modules/next/dist/client/components/navigation.js +250 -0
  274. package/dist/node_modules/next/dist/client/components/navigation.js.map +1 -0
  275. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +83 -0
  276. package/dist/node_modules/next/dist/client/components/navigation.react-server.js.map +1 -0
  277. package/dist/node_modules/next/dist/client/components/not-found.js +56 -0
  278. package/dist/node_modules/next/dist/client/components/not-found.js.map +1 -0
  279. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +61 -0
  280. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js.map +1 -0
  281. package/dist/node_modules/next/dist/client/components/redirect-error.js +53 -0
  282. package/dist/node_modules/next/dist/client/components/redirect-error.js.map +1 -0
  283. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +37 -0
  284. package/dist/node_modules/next/dist/client/components/redirect-status-code.js.map +1 -0
  285. package/dist/node_modules/next/dist/client/components/redirect.js +99 -0
  286. package/dist/node_modules/next/dist/client/components/redirect.js.map +1 -0
  287. package/dist/node_modules/next/dist/client/components/server-async-storage.js +48 -0
  288. package/dist/node_modules/next/dist/client/components/server-async-storage.js.map +1 -0
  289. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +51 -0
  290. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js.map +1 -0
  291. package/dist/node_modules/next/dist/client/components/unauthorized.js +63 -0
  292. package/dist/node_modules/next/dist/client/components/unauthorized.js.map +1 -0
  293. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +48 -0
  294. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js.map +1 -0
  295. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +51 -0
  296. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js.map +1 -0
  297. package/dist/node_modules/next/dist/client/detect-domain-locale.js +37 -0
  298. package/dist/node_modules/next/dist/client/detect-domain-locale.js.map +1 -0
  299. package/dist/node_modules/next/dist/client/get-domain-locale.js +52 -0
  300. package/dist/node_modules/next/dist/client/get-domain-locale.js.map +1 -0
  301. package/dist/node_modules/next/dist/client/has-base-path.js +37 -0
  302. package/dist/node_modules/next/dist/client/has-base-path.js.map +1 -0
  303. package/dist/node_modules/next/dist/client/image-component.js +351 -0
  304. package/dist/node_modules/next/dist/client/image-component.js.map +1 -0
  305. package/dist/node_modules/next/dist/client/link.js +471 -0
  306. package/dist/node_modules/next/dist/client/link.js.map +1 -0
  307. package/dist/node_modules/next/dist/client/normalize-locale-path.js +41 -0
  308. package/dist/node_modules/next/dist/client/normalize-locale-path.js.map +1 -0
  309. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +52 -0
  310. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js.map +1 -0
  311. package/dist/node_modules/next/dist/client/request-idle-callback.js +53 -0
  312. package/dist/node_modules/next/dist/client/request-idle-callback.js.map +1 -0
  313. package/dist/node_modules/next/dist/client/resolve-href.js +129 -0
  314. package/dist/node_modules/next/dist/client/resolve-href.js.map +1 -0
  315. package/dist/node_modules/next/dist/client/use-intersection.js +129 -0
  316. package/dist/node_modules/next/dist/client/use-intersection.js.map +1 -0
  317. package/dist/node_modules/next/dist/client/use-merged-ref.js +83 -0
  318. package/dist/node_modules/next/dist/client/use-merged-ref.js.map +1 -0
  319. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js +341 -0
  320. package/dist/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js.map +1 -0
  321. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +13 -0
  322. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js.map +1 -0
  323. package/dist/node_modules/next/dist/compiled/picomatch/index.js +13 -0
  324. package/dist/node_modules/next/dist/compiled/picomatch/index.js.map +1 -0
  325. package/dist/node_modules/next/dist/lib/constants.js +370 -0
  326. package/dist/node_modules/next/dist/lib/constants.js.map +1 -0
  327. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +43 -0
  328. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js.map +1 -0
  329. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +112 -0
  330. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js.map +1 -0
  331. package/dist/node_modules/next/dist/lib/scheduler.js +71 -0
  332. package/dist/node_modules/next/dist/lib/scheduler.js.map +1 -0
  333. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +28 -0
  334. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js.map +1 -0
  335. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +27 -0
  336. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js.map +1 -0
  337. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +84 -0
  338. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js.map +1 -0
  339. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js +177 -0
  340. package/dist/node_modules/next/dist/server/app-render/blocking-route-messages.js.map +1 -0
  341. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +1168 -0
  342. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js.map +1 -0
  343. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js +39 -0
  344. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js.map +1 -0
  345. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +47 -0
  346. package/dist/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js.map +1 -0
  347. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +427 -0
  348. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js.map +1 -0
  349. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js +42 -0
  350. package/dist/node_modules/next/dist/server/app-render/instant-validation/instant-validation-error.js.map +1 -0
  351. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js +331 -0
  352. package/dist/node_modules/next/dist/server/app-render/staged-rendering.js.map +1 -0
  353. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +28 -0
  354. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js.map +1 -0
  355. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +27 -0
  356. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js.map +1 -0
  357. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +28 -0
  358. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js.map +1 -0
  359. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +211 -0
  360. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js.map +1 -0
  361. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +269 -0
  362. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js.map +1 -0
  363. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +29 -0
  364. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js.map +1 -0
  365. package/dist/node_modules/next/dist/server/runtime-reacts.external.js +53 -0
  366. package/dist/node_modules/next/dist/server/runtime-reacts.external.js.map +1 -0
  367. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +303 -0
  368. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/headers.js.map +1 -0
  369. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js +43 -0
  370. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js.map +1 -0
  371. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +233 -0
  372. package/dist/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js.map +1 -0
  373. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js +38 -0
  374. package/dist/node_modules/next/dist/server/web/spec-extension/cookies.js.map +1 -0
  375. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js +39 -0
  376. package/dist/node_modules/next/dist/shared/lib/action-revalidation-kind.js.map +1 -0
  377. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +58 -0
  378. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map +1 -0
  379. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +70 -0
  380. package/dist/node_modules/next/dist/shared/lib/deployment-id.js.map +1 -0
  381. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +34 -0
  382. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js.map +1 -0
  383. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +32 -0
  384. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js.map +1 -0
  385. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +614 -0
  386. package/dist/node_modules/next/dist/shared/lib/get-img-props.js.map +1 -0
  387. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +33 -0
  388. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js.map +1 -0
  389. package/dist/node_modules/next/dist/shared/lib/head.js +178 -0
  390. package/dist/node_modules/next/dist/shared/lib/head.js.map +1 -0
  391. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +67 -0
  392. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js.map +1 -0
  393. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +38 -0
  394. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js.map +1 -0
  395. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +67 -0
  396. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js.map +1 -0
  397. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +37 -0
  398. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js.map +1 -0
  399. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +35 -0
  400. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js.map +1 -0
  401. package/dist/node_modules/next/dist/shared/lib/image-config.js +86 -0
  402. package/dist/node_modules/next/dist/shared/lib/image-config.js.map +1 -0
  403. package/dist/node_modules/next/dist/shared/lib/image-external.js +60 -0
  404. package/dist/node_modules/next/dist/shared/lib/image-external.js.map +1 -0
  405. package/dist/node_modules/next/dist/shared/lib/image-loader.js +135 -0
  406. package/dist/node_modules/next/dist/shared/lib/image-loader.js.map +1 -0
  407. package/dist/node_modules/next/dist/shared/lib/instant-messages.js +52 -0
  408. package/dist/node_modules/next/dist/shared/lib/instant-messages.js.map +1 -0
  409. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +36 -0
  410. package/dist/node_modules/next/dist/shared/lib/invariant-error.js.map +1 -0
  411. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +45 -0
  412. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js.map +1 -0
  413. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +56 -0
  414. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js.map +1 -0
  415. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +73 -0
  416. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js.map +1 -0
  417. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +33 -0
  418. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js.map +1 -0
  419. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js +39 -0
  420. package/dist/node_modules/next/dist/shared/lib/promise-with-resolvers.js.map +1 -0
  421. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +167 -0
  422. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js.map +1 -0
  423. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +43 -0
  424. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js.map +1 -0
  425. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +34 -0
  426. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js.map +1 -0
  427. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +72 -0
  428. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js.map +1 -0
  429. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +100 -0
  430. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js.map +1 -0
  431. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +184 -0
  432. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js.map +1 -0
  433. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +91 -0
  434. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js.map +1 -0
  435. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +40 -0
  436. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js.map +1 -0
  437. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +46 -0
  438. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js.map +1 -0
  439. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +116 -0
  440. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js.map +1 -0
  441. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +68 -0
  442. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js.map +1 -0
  443. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +40 -0
  444. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js.map +1 -0
  445. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +41 -0
  446. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js.map +1 -0
  447. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +34 -0
  448. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js.map +1 -0
  449. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +44 -0
  450. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js.map +1 -0
  451. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +48 -0
  452. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js.map +1 -0
  453. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +58 -0
  454. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js.map +1 -0
  455. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +34 -0
  456. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js.map +1 -0
  457. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +87 -0
  458. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js.map +1 -0
  459. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +37 -0
  460. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js.map +1 -0
  461. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +129 -0
  462. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js.map +1 -0
  463. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +124 -0
  464. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js.map +1 -0
  465. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +60 -0
  466. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js.map +1 -0
  467. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +269 -0
  468. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js.map +1 -0
  469. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +253 -0
  470. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js.map +1 -0
  471. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +33 -0
  472. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js.map +1 -0
  473. package/dist/node_modules/next/dist/shared/lib/segment.js +104 -0
  474. package/dist/node_modules/next/dist/shared/lib/segment.js.map +1 -0
  475. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +46 -0
  476. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js.map +1 -0
  477. package/dist/node_modules/next/dist/shared/lib/side-effect.js +77 -0
  478. package/dist/node_modules/next/dist/shared/lib/side-effect.js.map +1 -0
  479. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +35 -0
  480. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js.map +1 -0
  481. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js +72 -0
  482. package/dist/node_modules/next/dist/shared/lib/utils/reflect-utils.js.map +1 -0
  483. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +35 -0
  484. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js.map +1 -0
  485. package/dist/node_modules/next/dist/shared/lib/utils.js +210 -0
  486. package/dist/node_modules/next/dist/shared/lib/utils.js.map +1 -0
  487. package/dist/node_modules/next/image.js +14 -0
  488. package/dist/node_modules/next/image.js.map +1 -0
  489. package/dist/node_modules/next/link.js +14 -0
  490. package/dist/node_modules/next/link.js.map +1 -0
  491. package/dist/node_modules/next/navigation.js +14 -0
  492. package/dist/node_modules/next/navigation.js.map +1 -0
  493. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-param-value.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"resolveParamValue\", {\n enumerable: true,\n get: function() {\n return resolveParamValue;\n }\n});\nconst _invarianterror = require(\"../../invariant-error\");\nconst _interceptionprefixfromparamtype = require(\"./interception-prefix-from-param-type\");\n/**\n * Extracts the param value from a path segment, handling interception markers\n * based on the expected param type.\n *\n * @param pathSegment - The path segment to extract the value from\n * @param params - The current params object for resolving dynamic param references\n * @param paramType - The expected param type which may include interception marker info\n * @returns The extracted param value\n */ function getParamValueFromSegment(pathSegment, params, paramType) {\n // If the segment is dynamic, resolve it from the params object\n if (pathSegment.type === 'dynamic') {\n return params[pathSegment.param.paramName];\n }\n // If the paramType indicates this is an intercepted param, strip the marker\n // that matches the interception marker in the param type\n const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);\n if (interceptionPrefix === pathSegment.interceptionMarker) {\n return pathSegment.name.replace(pathSegment.interceptionMarker, '');\n }\n // For static segments, use the name\n return pathSegment.name;\n}\nfunction resolveParamValue(paramName, paramType, depth, route, params) {\n switch(paramType){\n case 'catchall':\n case 'optional-catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n // For catchall routes, derive from pathname using depth to determine\n // which segments to use\n const processedSegments = [];\n // Process segments to handle any embedded dynamic params\n for(let index = depth; index < route.segments.length; index++){\n const pathSegment = route.segments[index];\n if (pathSegment.type === 'static') {\n let value = pathSegment.name;\n // For intercepted catch-all params, strip the marker from the first segment\n const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);\n if (interceptionPrefix && index === depth && interceptionPrefix === pathSegment.interceptionMarker) {\n // Strip the interception marker from the value\n value = value.replace(pathSegment.interceptionMarker, '');\n }\n processedSegments.push(value);\n } else {\n // If the segment is a param placeholder, check if we have its value\n if (!params.hasOwnProperty(pathSegment.param.paramName)) {\n // If the segment is an optional catchall, we can break out of the\n // loop because it's optional!\n if (pathSegment.param.paramType === 'optional-catchall') {\n break;\n }\n // Unknown param placeholder in pathname - can't derive full value\n return undefined;\n }\n // If the segment matches a param, use the param value\n // We don't encode values here as that's handled during retrieval.\n const paramValue = params[pathSegment.param.paramName];\n if (Array.isArray(paramValue)) {\n processedSegments.push(...paramValue);\n } else {\n processedSegments.push(paramValue);\n }\n }\n }\n if (processedSegments.length > 0) {\n return processedSegments;\n } else if (paramType === 'optional-catchall') {\n return undefined;\n } else {\n // We shouldn't be able to match a catchall segment without any path\n // segments if it's not an optional catchall\n throw Object.defineProperty(new _invarianterror.InvariantError(`Unexpected empty path segments match for a route \"${route.pathname}\" with param \"${paramName}\" of type \"${paramType}\"`), \"__NEXT_ERROR_CODE\", {\n value: \"E931\",\n enumerable: false,\n configurable: true\n });\n }\n case 'dynamic':\n case 'dynamic-intercepted-(..)(..)':\n case 'dynamic-intercepted-(.)':\n case 'dynamic-intercepted-(..)':\n case 'dynamic-intercepted-(...)':\n // For regular dynamic parameters, take the segment at this depth\n if (depth < route.segments.length) {\n const pathSegment = route.segments[depth];\n // Check if the segment at this depth is a placeholder for an unknown param\n if (pathSegment.type === 'dynamic' && !params.hasOwnProperty(pathSegment.param.paramName)) {\n // The segment is a placeholder like [category] and we don't have the value\n return undefined;\n }\n // If the segment matches a param, use the param value from params object\n // Otherwise it's a static segment, just use it directly\n // We don't encode values here as that's handled during retrieval\n return getParamValueFromSegment(pathSegment, params, paramType);\n }\n return undefined;\n default:\n paramType;\n }\n}\n\n//# sourceMappingURL=resolve-param-value.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,mBAAmB,EAAE;MAChD,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,iBAAiB;AAChC,MAAA;AACA,GAAC,CAAC;EACF,MAAM,eAAe,GAAGC,qBAAA,EAAgC;EACxD,MAAM,gCAAgC,GAAGC,sCAAA,EAAgD;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACI,SAAS,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE;AACtE;AACA,MAAI,IAAI,WAAW,CAAC,IAAI,KAAK,SAAS,EAAE;UAChC,OAAO,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC;AAClD,MAAA;AACA;AACA;MACI,MAAM,kBAAkB,GAAG,IAAI,gCAAgC,CAAC,+BAA+B,EAAE,SAAS,CAAC;AAC/G,MAAI,IAAI,kBAAkB,KAAK,WAAW,CAAC,kBAAkB,EAAE;AAC/D,UAAQ,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,EAAE,EAAE,CAAC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,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE;AAC3G;AACA,sBAAoB,OAAO,SAAS;AACpC,kBAAA;AACA;AACA;AACA;kBACgB,OAAO,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,CAAC;AAC/E,cAAA;AACA,cAAY,OAAO,SAAS;AAG5B;AACA,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,124 @@
1
+ import { __exports as routeMatchUtils } from '../../../../../../../_virtual/route-match-utils.js';
2
+ import { __require as requirePathToRegexp } from '../../../../compiled/path-to-regexp/index.js';
3
+ import { __require as requireRoutePatternNormalizer } from '../../../../lib/route-pattern-normalizer.js';
4
+
5
+ /**
6
+ * Client-safe utilities for route matching that don't import server-side
7
+ * utilities to avoid bundling issues with Turbopack
8
+ */
9
+
10
+ var hasRequiredRouteMatchUtils;
11
+
12
+ function requireRouteMatchUtils () {
13
+ if (hasRequiredRouteMatchUtils) return routeMatchUtils;
14
+ hasRequiredRouteMatchUtils = 1;
15
+ (function (exports$1) {
16
+ Object.defineProperty(exports$1, "__esModule", {
17
+ value: true
18
+ });
19
+ function _export(target, all) {
20
+ for(var name in all)Object.defineProperty(target, name, {
21
+ enumerable: true,
22
+ get: all[name]
23
+ });
24
+ }
25
+ _export(exports$1, {
26
+ safeCompile: function() {
27
+ return safeCompile;
28
+ },
29
+ safePathToRegexp: function() {
30
+ return safePathToRegexp;
31
+ },
32
+ safeRegexpToFunction: function() {
33
+ return safeRegexpToFunction;
34
+ },
35
+ safeRouteMatcher: function() {
36
+ return safeRouteMatcher;
37
+ }
38
+ });
39
+ const _pathtoregexp = requirePathToRegexp();
40
+ const _routepatternnormalizer = requireRoutePatternNormalizer();
41
+ function safePathToRegexp(route, keys, options) {
42
+ if (typeof route !== 'string') {
43
+ return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
44
+ }
45
+ // Check if normalization is needed and cache the result
46
+ const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
47
+ const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
48
+ try {
49
+ return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
50
+ } catch (error) {
51
+ // Only try normalization if we haven't already normalized
52
+ if (!needsNormalization) {
53
+ try {
54
+ const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
55
+ return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
56
+ } catch (retryError) {
57
+ // If that doesn't work, fall back to original error
58
+ throw error;
59
+ }
60
+ }
61
+ throw error;
62
+ }
63
+ }
64
+ function safeCompile(route, options) {
65
+ // Check if normalization is needed and cache the result
66
+ const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
67
+ const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
68
+ try {
69
+ const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
70
+ // If we normalized the route, wrap the compiler to strip separators from output
71
+ // The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy
72
+ // path-to-regexp validation, but we don't want it in the final compiled URL
73
+ if (needsNormalization) {
74
+ return (params)=>{
75
+ return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
76
+ };
77
+ }
78
+ return compiler;
79
+ } catch (error) {
80
+ // Only try normalization if we haven't already normalized
81
+ if (!needsNormalization) {
82
+ try {
83
+ const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
84
+ const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
85
+ // Wrap the compiler to strip separators from output
86
+ return (params)=>{
87
+ return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
88
+ };
89
+ } catch (retryError) {
90
+ // If that doesn't work, fall back to original error
91
+ throw error;
92
+ }
93
+ }
94
+ throw error;
95
+ }
96
+ }
97
+ function safeRegexpToFunction(regexp, keys) {
98
+ const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
99
+ return (pathname)=>{
100
+ const result = originalMatcher(pathname);
101
+ if (!result) return false;
102
+ // Clean parameters before returning
103
+ return {
104
+ ...result,
105
+ params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
106
+ };
107
+ };
108
+ }
109
+ function safeRouteMatcher(matcherFn) {
110
+ return (pathname)=>{
111
+ const result = matcherFn(pathname);
112
+ if (!result) return false;
113
+ // Clean parameters before returning
114
+ return (0, _routepatternnormalizer.stripParameterSeparators)(result);
115
+ };
116
+ }
117
+
118
+
119
+ } (routeMatchUtils));
120
+ return routeMatchUtils;
121
+ }
122
+
123
+ export { requireRouteMatchUtils as __require };
124
+ //# sourceMappingURL=route-match-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-match-utils.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/route-match-utils.js"],"sourcesContent":["/**\n * Client-safe utilities for route matching that don't import server-side\n * utilities to avoid bundling issues with Turbopack\n */ \"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n safeCompile: null,\n safePathToRegexp: null,\n safeRegexpToFunction: null,\n safeRouteMatcher: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n safeCompile: function() {\n return safeCompile;\n },\n safePathToRegexp: function() {\n return safePathToRegexp;\n },\n safeRegexpToFunction: function() {\n return safeRegexpToFunction;\n },\n safeRouteMatcher: function() {\n return safeRouteMatcher;\n }\n});\nconst _pathtoregexp = require(\"next/dist/compiled/path-to-regexp\");\nconst _routepatternnormalizer = require(\"../../../../lib/route-pattern-normalizer\");\nfunction safePathToRegexp(route, keys, options) {\n if (typeof route !== 'string') {\n return (0, _pathtoregexp.pathToRegexp)(route, keys, options);\n }\n // Check if normalization is needed and cache the result\n const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);\n const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;\n try {\n return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);\n return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error;\n }\n }\n throw error;\n }\n}\nfunction safeCompile(route, options) {\n // Check if normalization is needed and cache the result\n const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);\n const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;\n try {\n const compiler = (0, _pathtoregexp.compile)(routeToUse, options);\n // If we normalized the route, wrap the compiler to strip separators from output\n // The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy\n // path-to-regexp validation, but we don't want it in the final compiled URL\n if (needsNormalization) {\n return (params)=>{\n return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));\n };\n }\n return compiler;\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);\n const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);\n // Wrap the compiler to strip separators from output\n return (params)=>{\n return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));\n };\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error;\n }\n }\n throw error;\n }\n}\nfunction safeRegexpToFunction(regexp, keys) {\n const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);\n return (pathname)=>{\n const result = originalMatcher(pathname);\n if (!result) return false;\n // Clean parameters before returning\n return {\n ...result,\n params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)\n };\n };\n}\nfunction safeRouteMatcher(matcherFn) {\n return (pathname)=>{\n const result = matcherFn(pathname);\n if (!result) return false;\n // Clean parameters before returning\n return (0, _routepatternnormalizer.stripParameterSeparators)(result);\n };\n}\n\n//# sourceMappingURL=route-match-utils.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;;;;;;AAIA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAOF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UACpD,UAAU,EAAE,IAAI;AACxB,UAAQ,GAAG,EAAE,GAAG,CAAC,IAAI;AACrB,OAAK,CAAC;AACN,EAAA;EACA,OAAO,CAACA,SAAO,EAAE;MACb,WAAW,EAAE,WAAW;AAC5B,UAAQ,OAAO,WAAW;MAC1B,CAAK;MACD,gBAAgB,EAAE,WAAW;AACjC,UAAQ,OAAO,gBAAgB;MAC/B,CAAK;MACD,oBAAoB,EAAE,WAAW;AACrC,UAAQ,OAAO,oBAAoB;MACnC,CAAK;MACD,gBAAgB,EAAE,WAAW;AACjC,UAAQ,OAAO,gBAAgB;AAC/B,MAAA;AACA,GAAC,CAAC;EACF,MAAM,aAAa,GAAGC,mBAAA,EAA4C;EAClE,MAAM,uBAAuB,GAAGC,6BAAA,EAAmD;AACnF,EAAA,SAAS,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE;AAChD,MAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACnC,UAAQ,OAAO,IAAI,aAAa,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC;AACpE,MAAA;AACA;MACI,MAAM,kBAAkB,GAAG,IAAI,uBAAuB,CAAC,0BAA0B,EAAE,KAAK,CAAC;AAC7F,MAAI,MAAM,UAAU,GAAG,kBAAkB,GAAG,IAAI,uBAAuB,CAAC,2B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__exports as routeMatcher } from '../../../../../../../_virtual/route-matcher.js';
2
+ import { __require as requireUtils } from '../../utils.js';
3
+ import { __require as requireRouteMatchUtils } from './route-match-utils.js';
4
+
5
+ var hasRequiredRouteMatcher;
6
+
7
+ function requireRouteMatcher () {
8
+ if (hasRequiredRouteMatcher) return routeMatcher;
9
+ hasRequiredRouteMatcher = 1;
10
+ (function (exports$1) {
11
+ Object.defineProperty(exports$1, "__esModule", {
12
+ value: true
13
+ });
14
+ Object.defineProperty(exports$1, "getRouteMatcher", {
15
+ enumerable: true,
16
+ get: function() {
17
+ return getRouteMatcher;
18
+ }
19
+ });
20
+ const _utils = requireUtils();
21
+ const _routematchutils = requireRouteMatchUtils();
22
+ function getRouteMatcher({ re, groups }) {
23
+ const rawMatcher = (pathname)=>{
24
+ const routeMatch = re.exec(pathname);
25
+ if (!routeMatch) return false;
26
+ const decode = (param)=>{
27
+ try {
28
+ return decodeURIComponent(param);
29
+ } catch {
30
+ throw Object.defineProperty(new _utils.DecodeError('failed to decode param'), "__NEXT_ERROR_CODE", {
31
+ value: "E528",
32
+ enumerable: false,
33
+ configurable: true
34
+ });
35
+ }
36
+ };
37
+ const params = {};
38
+ for (const [key, group] of Object.entries(groups)){
39
+ const match = routeMatch[group.pos];
40
+ if (match !== undefined) {
41
+ if (group.repeat) {
42
+ params[key] = match.split('/').map((entry)=>decode(entry));
43
+ } else {
44
+ params[key] = decode(match);
45
+ }
46
+ }
47
+ }
48
+ return params;
49
+ };
50
+ // Wrap with safe matcher to handle parameter cleaning
51
+ return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
52
+ }
53
+
54
+
55
+ } (routeMatcher));
56
+ return routeMatcher;
57
+ }
58
+
59
+ export { requireRouteMatcher as __require };
60
+ //# sourceMappingURL=route-matcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-matcher.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"getRouteMatcher\", {\n enumerable: true,\n get: function() {\n return getRouteMatcher;\n }\n});\nconst _utils = require(\"../../utils\");\nconst _routematchutils = require(\"./route-match-utils\");\nfunction getRouteMatcher({ re, groups }) {\n const rawMatcher = (pathname)=>{\n const routeMatch = re.exec(pathname);\n if (!routeMatch) return false;\n const decode = (param)=>{\n try {\n return decodeURIComponent(param);\n } catch {\n throw Object.defineProperty(new _utils.DecodeError('failed to decode param'), \"__NEXT_ERROR_CODE\", {\n value: \"E528\",\n enumerable: false,\n configurable: true\n });\n }\n };\n const params = {};\n for (const [key, group] of Object.entries(groups)){\n const match = routeMatch[group.pos];\n if (match !== undefined) {\n if (group.repeat) {\n params[key] = match.split('/').map((entry)=>decode(entry));\n } else {\n params[key] = decode(match);\n }\n }\n }\n return params;\n };\n // Wrap with safe matcher to handle parameter cleaning\n return (0, _routematchutils.safeRouteMatcher)(rawMatcher);\n}\n\n//# sourceMappingURL=route-matcher.js.map"],"names":["exports","require$$0","require$$1"],"mappings":";;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AACF,EAAA,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,iBAAiB,EAAE;MAC9C,UAAU,EAAE,IAAI;MAChB,GAAG,EAAE,WAAW;AACpB,UAAQ,OAAO,eAAe;AAC9B,MAAA;AACA,GAAC,CAAC;EACF,MAAM,MAAM,GAAGC,YAAA,EAAsB;EACrC,MAAM,gBAAgB,GAAGC,sBAAA,EAA8B;AACvD,EAAA,SAAS,eAAe,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE;AACzC,MAAI,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG;UAC3B,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC5C,UAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,KAAK;AACrC,UAAQ,MAAM,MAAM,GAAG,CAAC,KAAK,GAAG;AAChC,cAAY,IAAI;AAChB,kBAAgB,OAAO,kBAAkB,CAAC,KAAK,CAAC;AAChD,cAAA,CAAa,CAAC,OAAO;AACrB,kBAAgB,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,wBAAwB,CAAC,EAAE,mBAAmB,EAAE;sBAC/F,KAAK,EAAE,MAAM;sBACb,UAAU,EAAE,KAAK;AACrC,sBAAoB,YAAY,EAAE;AAClC,mBAAiB,CAAC;AAClB,cAAA;UACA,CAAS;UACD,MAAM,MAAM,GAAG,EAAE;AACzB,UAAQ,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;cAC9C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC;AAC/C,cAAY,IAAI,KAAK,KAAK,SAAS,EAAE;AACrC,kBAAgB,IAAI,KAAK,CAAC,MAAM,EAAE;sBACd,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;AAC9E,kBAAA,CAAiB,MAAM;sBACH,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;AAC/C,kBAAA;AACA,cAAA;AACA,UAAA;AACA,UAAQ,OAAO,MAAM;MACrB,CAAK;AACL;MACI,OAAO,IAAI,gBAAgB,CAAC,gBAAgB,EAAE,UAAU,CAAC;AAC7D,EAAA;;AAEA;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,269 @@
1
+ import { __exports as routeRegex } from '../../../../../../../_virtual/route-regex.js';
2
+ import { __require as requireConstants } from '../../../../lib/constants.js';
3
+ import { __require as requireInterceptionRoutes } from './interception-routes.js';
4
+ import { __require as requireEscapeRegexp } from '../../escape-regexp.js';
5
+ import { __require as requireRemoveTrailingSlash } from './remove-trailing-slash.js';
6
+ import { __require as requireGetDynamicParam } from './get-dynamic-param.js';
7
+
8
+ var hasRequiredRouteRegex;
9
+
10
+ function requireRouteRegex () {
11
+ if (hasRequiredRouteRegex) return routeRegex;
12
+ hasRequiredRouteRegex = 1;
13
+ (function (exports$1) {
14
+ Object.defineProperty(exports$1, "__esModule", {
15
+ value: true
16
+ });
17
+ function _export(target, all) {
18
+ for(var name in all)Object.defineProperty(target, name, {
19
+ enumerable: true,
20
+ get: all[name]
21
+ });
22
+ }
23
+ _export(exports$1, {
24
+ getNamedMiddlewareRegex: function() {
25
+ return getNamedMiddlewareRegex;
26
+ },
27
+ getNamedRouteRegex: function() {
28
+ return getNamedRouteRegex;
29
+ },
30
+ getRouteRegex: function() {
31
+ return getRouteRegex;
32
+ }
33
+ });
34
+ const _constants = requireConstants();
35
+ const _interceptionroutes = requireInterceptionRoutes();
36
+ const _escaperegexp = requireEscapeRegexp();
37
+ const _removetrailingslash = requireRemoveTrailingSlash();
38
+ const _getdynamicparam = requireGetDynamicParam();
39
+ function getParametrizedRoute(route, includeSuffix, includePrefix) {
40
+ const groups = {};
41
+ let groupIndex = 1;
42
+ const segments = [];
43
+ for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split('/')){
44
+ const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
45
+ const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN) // Check for parameters
46
+ ;
47
+ if (markerMatch && paramMatches && paramMatches[2]) {
48
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
49
+ groups[key] = {
50
+ pos: groupIndex++,
51
+ repeat,
52
+ optional
53
+ };
54
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
55
+ } else if (paramMatches && paramMatches[2]) {
56
+ const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
57
+ groups[key] = {
58
+ pos: groupIndex++,
59
+ repeat,
60
+ optional
61
+ };
62
+ if (includePrefix && paramMatches[1]) {
63
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
64
+ }
65
+ let s = repeat ? optional ? '(?:/(.+?))?' : '/(.+?)' : '/([^/]+?)';
66
+ // Remove the leading slash if includePrefix already added it.
67
+ if (includePrefix && paramMatches[1]) {
68
+ s = s.substring(1);
69
+ }
70
+ segments.push(s);
71
+ } else {
72
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
73
+ }
74
+ // If there's a suffix, add it to the segments if it's enabled.
75
+ if (includeSuffix && paramMatches && paramMatches[3]) {
76
+ segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
77
+ }
78
+ }
79
+ return {
80
+ parameterizedRoute: segments.join(''),
81
+ groups
82
+ };
83
+ }
84
+ function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
85
+ const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
86
+ let re = parameterizedRoute;
87
+ if (!excludeOptionalTrailingSlash) {
88
+ re += '(?:/)?';
89
+ }
90
+ return {
91
+ re: new RegExp(`^${re}$`),
92
+ groups: groups
93
+ };
94
+ }
95
+ /**
96
+ * Builds a function to generate a minimal routeKey using only a-z and minimal
97
+ * number of characters.
98
+ */ function buildGetSafeRouteKey() {
99
+ let i = 0;
100
+ return ()=>{
101
+ let routeKey = '';
102
+ let j = ++i;
103
+ while(j > 0){
104
+ routeKey += String.fromCharCode(97 + (j - 1) % 26);
105
+ j = Math.floor((j - 1) / 26);
106
+ }
107
+ return routeKey;
108
+ };
109
+ }
110
+ function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
111
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
112
+ // replace any non-word characters since they can break
113
+ // the named regex
114
+ let cleanedKey = key.replace(/\W/g, '');
115
+ if (keyPrefix) {
116
+ cleanedKey = `${keyPrefix}${cleanedKey}`;
117
+ }
118
+ let invalidKey = false;
119
+ // check if the key is still invalid and fallback to using a known
120
+ // safe key
121
+ if (cleanedKey.length === 0 || cleanedKey.length > 30) {
122
+ invalidKey = true;
123
+ }
124
+ if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {
125
+ invalidKey = true;
126
+ }
127
+ if (invalidKey) {
128
+ cleanedKey = getSafeRouteKey();
129
+ }
130
+ const duplicateKey = cleanedKey in routeKeys;
131
+ if (keyPrefix) {
132
+ routeKeys[cleanedKey] = `${keyPrefix}${key}`;
133
+ } else {
134
+ routeKeys[cleanedKey] = key;
135
+ }
136
+ // if the segment has an interception marker, make sure that's part of the regex pattern
137
+ // this is to ensure that the route with the interception marker doesn't incorrectly match
138
+ // the non-intercepted route (ie /app/(.)[username] should not match /app/[username])
139
+ const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : '';
140
+ let pattern;
141
+ if (duplicateKey && backreferenceDuplicateKeys) {
142
+ // Use a backreference to the key to ensure that the key is the same value
143
+ // in each of the placeholders.
144
+ pattern = `\\k<${cleanedKey}>`;
145
+ } else if (repeat) {
146
+ pattern = `(?<${cleanedKey}>.+?)`;
147
+ } else {
148
+ pattern = `(?<${cleanedKey}>[^/]+?)`;
149
+ }
150
+ return {
151
+ key,
152
+ pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
153
+ cleanedKey: cleanedKey,
154
+ optional,
155
+ repeat
156
+ };
157
+ }
158
+ function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
159
+ names: {},
160
+ intercepted: {}
161
+ }) {
162
+ const getSafeRouteKey = buildGetSafeRouteKey();
163
+ const routeKeys = {};
164
+ const segments = [];
165
+ const inverseParts = [];
166
+ // Ensure we don't mutate the original reference object.
167
+ reference = structuredClone(reference);
168
+ for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split('/')){
169
+ const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m)=>segment.startsWith(m));
170
+ const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN) // Check for parameters
171
+ ;
172
+ const interceptionMarker = hasInterceptionMarker ? paramMatches?.[1] : undefined;
173
+ let keyPrefix;
174
+ if (interceptionMarker && paramMatches?.[2]) {
175
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;
176
+ reference.intercepted[paramMatches[2]] = interceptionMarker;
177
+ } else if (paramMatches?.[2] && reference.intercepted[paramMatches[2]]) {
178
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;
179
+ } else {
180
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : undefined;
181
+ }
182
+ if (interceptionMarker && paramMatches && paramMatches[2]) {
183
+ // If there's an interception marker, add it to the segments.
184
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
185
+ getSafeRouteKey,
186
+ interceptionMarker,
187
+ segment: paramMatches[2],
188
+ routeKeys,
189
+ keyPrefix,
190
+ backreferenceDuplicateKeys
191
+ });
192
+ segments.push(pattern);
193
+ inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? '*' : '+' : ''}`);
194
+ reference.names[key] ??= cleanedKey;
195
+ } else if (paramMatches && paramMatches[2]) {
196
+ // If there's a prefix, add it to the segments if it's enabled.
197
+ if (includePrefix && paramMatches[1]) {
198
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
199
+ inverseParts.push(`/${paramMatches[1]}`);
200
+ }
201
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
202
+ getSafeRouteKey,
203
+ segment: paramMatches[2],
204
+ routeKeys,
205
+ keyPrefix,
206
+ backreferenceDuplicateKeys
207
+ });
208
+ // Remove the leading slash if includePrefix already added it.
209
+ let s = pattern;
210
+ if (includePrefix && paramMatches[1]) {
211
+ s = s.substring(1);
212
+ }
213
+ segments.push(s);
214
+ inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? '*' : '+' : ''}`);
215
+ reference.names[key] ??= cleanedKey;
216
+ } else {
217
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
218
+ inverseParts.push(`/${segment}`);
219
+ }
220
+ // If there's a suffix, add it to the segments if it's enabled.
221
+ if (includeSuffix && paramMatches && paramMatches[3]) {
222
+ segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
223
+ inverseParts.push(paramMatches[3]);
224
+ }
225
+ }
226
+ return {
227
+ namedParameterizedRoute: segments.join(''),
228
+ routeKeys,
229
+ pathToRegexpPattern: inverseParts.join(''),
230
+ reference
231
+ };
232
+ }
233
+ function getNamedRouteRegex(normalizedRoute, options) {
234
+ const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);
235
+ let namedRegex = result.namedParameterizedRoute;
236
+ if (!options.excludeOptionalTrailingSlash) {
237
+ namedRegex += '(?:/)?';
238
+ }
239
+ return {
240
+ ...getRouteRegex(normalizedRoute, options),
241
+ namedRegex: `^${namedRegex}$`,
242
+ routeKeys: result.routeKeys,
243
+ pathToRegexpPattern: result.pathToRegexpPattern,
244
+ reference: result.reference
245
+ };
246
+ }
247
+ function getNamedMiddlewareRegex(normalizedRoute, options) {
248
+ const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
249
+ const { catchAll = true } = options;
250
+ if (parameterizedRoute === '/') {
251
+ let catchAllRegex = catchAll ? '.*' : '';
252
+ return {
253
+ namedRegex: `^/${catchAllRegex}$`
254
+ };
255
+ }
256
+ const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, undefined);
257
+ let catchAllGroupedRegex = catchAll ? '(?:(/.*)?)' : '';
258
+ return {
259
+ namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`
260
+ };
261
+ }
262
+
263
+
264
+ } (routeRegex));
265
+ return routeRegex;
266
+ }
267
+
268
+ export { requireRouteRegex as __require };
269
+ //# sourceMappingURL=route-regex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-regex.js","sources":["../../../../../../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n0 && (module.exports = {\n getNamedMiddlewareRegex: null,\n getNamedRouteRegex: null,\n getRouteRegex: null\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n getNamedMiddlewareRegex: function() {\n return getNamedMiddlewareRegex;\n },\n getNamedRouteRegex: function() {\n return getNamedRouteRegex;\n },\n getRouteRegex: function() {\n return getRouteRegex;\n }\n});\nconst _constants = require(\"../../../../lib/constants\");\nconst _interceptionroutes = require(\"./interception-routes\");\nconst _escaperegexp = require(\"../../escape-regexp\");\nconst _removetrailingslash = require(\"./remove-trailing-slash\");\nconst _getdynamicparam = require(\"./get-dynamic-param\");\nfunction getParametrizedRoute(route, includeSuffix, includePrefix) {\n const groups = {};\n let groupIndex = 1;\n const segments = [];\n for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split('/')){\n const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));\n const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN) // Check for parameters\n ;\n if (markerMatch && paramMatches && paramMatches[2]) {\n const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);\n groups[key] = {\n pos: groupIndex++,\n repeat,\n optional\n };\n segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);\n } else if (paramMatches && paramMatches[2]) {\n const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);\n groups[key] = {\n pos: groupIndex++,\n repeat,\n optional\n };\n if (includePrefix && paramMatches[1]) {\n segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);\n }\n let s = repeat ? optional ? '(?:/(.+?))?' : '/(.+?)' : '/([^/]+?)';\n // Remove the leading slash if includePrefix already added it.\n if (includePrefix && paramMatches[1]) {\n s = s.substring(1);\n }\n segments.push(s);\n } else {\n segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);\n }\n // If there's a suffix, add it to the segments if it's enabled.\n if (includeSuffix && paramMatches && paramMatches[3]) {\n segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));\n }\n }\n return {\n parameterizedRoute: segments.join(''),\n groups\n };\n}\nfunction getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {\n const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);\n let re = parameterizedRoute;\n if (!excludeOptionalTrailingSlash) {\n re += '(?:/)?';\n }\n return {\n re: new RegExp(`^${re}$`),\n groups: groups\n };\n}\n/**\n * Builds a function to generate a minimal routeKey using only a-z and minimal\n * number of characters.\n */ function buildGetSafeRouteKey() {\n let i = 0;\n return ()=>{\n let routeKey = '';\n let j = ++i;\n while(j > 0){\n routeKey += String.fromCharCode(97 + (j - 1) % 26);\n j = Math.floor((j - 1) / 26);\n }\n return routeKey;\n };\n}\nfunction getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {\n const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);\n // replace any non-word characters since they can break\n // the named regex\n let cleanedKey = key.replace(/\\W/g, '');\n if (keyPrefix) {\n cleanedKey = `${keyPrefix}${cleanedKey}`;\n }\n let invalidKey = false;\n // check if the key is still invalid and fallback to using a known\n // safe key\n if (cleanedKey.length === 0 || cleanedKey.length > 30) {\n invalidKey = true;\n }\n if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) {\n invalidKey = true;\n }\n if (invalidKey) {\n cleanedKey = getSafeRouteKey();\n }\n const duplicateKey = cleanedKey in routeKeys;\n if (keyPrefix) {\n routeKeys[cleanedKey] = `${keyPrefix}${key}`;\n } else {\n routeKeys[cleanedKey] = key;\n }\n // if the segment has an interception marker, make sure that's part of the regex pattern\n // this is to ensure that the route with the interception marker doesn't incorrectly match\n // the non-intercepted route (ie /app/(.)[username] should not match /app/[username])\n const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : '';\n let pattern;\n if (duplicateKey && backreferenceDuplicateKeys) {\n // Use a backreference to the key to ensure that the key is the same value\n // in each of the placeholders.\n pattern = `\\\\k<${cleanedKey}>`;\n } else if (repeat) {\n pattern = `(?<${cleanedKey}>.+?)`;\n } else {\n pattern = `(?<${cleanedKey}>[^/]+?)`;\n }\n return {\n key,\n pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,\n cleanedKey: cleanedKey,\n optional,\n repeat\n };\n}\nfunction getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {\n names: {},\n intercepted: {}\n}) {\n const getSafeRouteKey = buildGetSafeRouteKey();\n const routeKeys = {};\n const segments = [];\n const inverseParts = [];\n // Ensure we don't mutate the original reference object.\n reference = structuredClone(reference);\n for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split('/')){\n const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m)=>segment.startsWith(m));\n const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN) // Check for parameters\n ;\n const interceptionMarker = hasInterceptionMarker ? paramMatches?.[1] : undefined;\n let keyPrefix;\n if (interceptionMarker && paramMatches?.[2]) {\n keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;\n reference.intercepted[paramMatches[2]] = interceptionMarker;\n } else if (paramMatches?.[2] && reference.intercepted[paramMatches[2]]) {\n keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;\n } else {\n keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : undefined;\n }\n if (interceptionMarker && paramMatches && paramMatches[2]) {\n // If there's an interception marker, add it to the segments.\n const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({\n getSafeRouteKey,\n interceptionMarker,\n segment: paramMatches[2],\n routeKeys,\n keyPrefix,\n backreferenceDuplicateKeys\n });\n segments.push(pattern);\n inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? '*' : '+' : ''}`);\n reference.names[key] ??= cleanedKey;\n } else if (paramMatches && paramMatches[2]) {\n // If there's a prefix, add it to the segments if it's enabled.\n if (includePrefix && paramMatches[1]) {\n segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);\n inverseParts.push(`/${paramMatches[1]}`);\n }\n const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({\n getSafeRouteKey,\n segment: paramMatches[2],\n routeKeys,\n keyPrefix,\n backreferenceDuplicateKeys\n });\n // Remove the leading slash if includePrefix already added it.\n let s = pattern;\n if (includePrefix && paramMatches[1]) {\n s = s.substring(1);\n }\n segments.push(s);\n inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? '*' : '+' : ''}`);\n reference.names[key] ??= cleanedKey;\n } else {\n segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);\n inverseParts.push(`/${segment}`);\n }\n // If there's a suffix, add it to the segments if it's enabled.\n if (includeSuffix && paramMatches && paramMatches[3]) {\n segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));\n inverseParts.push(paramMatches[3]);\n }\n }\n return {\n namedParameterizedRoute: segments.join(''),\n routeKeys,\n pathToRegexpPattern: inverseParts.join(''),\n reference\n };\n}\nfunction getNamedRouteRegex(normalizedRoute, options) {\n const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);\n let namedRegex = result.namedParameterizedRoute;\n if (!options.excludeOptionalTrailingSlash) {\n namedRegex += '(?:/)?';\n }\n return {\n ...getRouteRegex(normalizedRoute, options),\n namedRegex: `^${namedRegex}$`,\n routeKeys: result.routeKeys,\n pathToRegexpPattern: result.pathToRegexpPattern,\n reference: result.reference\n };\n}\nfunction getNamedMiddlewareRegex(normalizedRoute, options) {\n const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);\n const { catchAll = true } = options;\n if (parameterizedRoute === '/') {\n let catchAllRegex = catchAll ? '.*' : '';\n return {\n namedRegex: `^/${catchAllRegex}$`\n };\n }\n const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, undefined);\n let catchAllGroupedRegex = catchAll ? '(?:(/.*)?)' : '';\n return {\n namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`\n };\n}\n\n//# sourceMappingURL=route-regex.js.map"],"names":["exports","require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;;;;AACA,EAAA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE;AAC7C,MAAI,KAAK,EAAE;AACX,GAAC,CAAC;AAMF,EAAA,SAAS,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE;AAC9B,MAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE;UAC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