@lssm/lib.design-system 1.11.1 → 1.41.0

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 (299) hide show
  1. package/README.md +6 -1
  2. package/dist/_virtual/rolldown_runtime.js +9 -4
  3. package/dist/components/agent/ApprovalQueue.js +1 -1
  4. package/dist/components/atoms/Button.js +4 -5
  5. package/dist/components/atoms/ButtonLink.js +2 -2
  6. package/dist/components/atoms/Cta.js +4 -5
  7. package/dist/components/atoms/EmptyState.js +4 -4
  8. package/dist/components/atoms/ErrorState.js +1 -2
  9. package/dist/components/atoms/Input.js +5 -6
  10. package/dist/components/atoms/Link.js +1 -2
  11. package/dist/components/atoms/Link.web.js +4 -2
  12. package/dist/components/atoms/LoaderCircular.js +1 -2
  13. package/dist/components/atoms/Stepper.js +4 -4
  14. package/dist/components/atoms/Textarea.js +8 -9
  15. package/dist/components/data-view/DataViewRenderer.js +2 -2
  16. package/dist/components/forms/ActionForm.js +18 -0
  17. package/dist/components/forms/FormOneByOneLayout.js +3 -3
  18. package/dist/components/forms/FormStepsLayout.js +3 -3
  19. package/dist/components/forms/ZodForm.js +1 -1
  20. package/dist/components/legal/atoms/LegalCallout.js +1 -1
  21. package/dist/components/legal/atoms/LegalHeading.js +1 -1
  22. package/dist/components/legal/atoms/LegalList.js +1 -1
  23. package/dist/components/legal/atoms/LegalSection.js +1 -1
  24. package/dist/components/legal/atoms/LegalText.js +1 -1
  25. package/dist/components/legal/molecules/ContactFields.js +8 -8
  26. package/dist/components/legal/molecules/LegalTOC.js +1 -1
  27. package/dist/components/legal/organisms/ContactForm.js +3 -3
  28. package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
  29. package/dist/components/legal/templates/ContactTemplate.js +3 -3
  30. package/dist/components/marketing/MarketingCard.js +20 -0
  31. package/dist/components/marketing/MarketingCardsSection.js +28 -0
  32. package/dist/components/marketing/MarketingComparisonSection.js +52 -0
  33. package/dist/components/marketing/MarketingIconCard.js +73 -0
  34. package/dist/components/marketing/MarketingSection.js +61 -0
  35. package/dist/components/marketing/MarketingStepCard.js +36 -0
  36. package/dist/components/molecules/AiLinkButton.js +4 -4
  37. package/dist/components/molecules/Breadcrumbs.js +2 -2
  38. package/dist/components/molecules/CommandPalette.js +3 -3
  39. package/dist/components/molecules/CommandSearchTrigger.js +3 -3
  40. package/dist/components/molecules/FiltersToolbar.js +5 -5
  41. package/dist/components/molecules/HoverPreview.js +2 -2
  42. package/dist/components/molecules/LangSwitchDropdown.js +2 -2
  43. package/dist/components/molecules/LoaderBlock.js +1 -2
  44. package/dist/components/molecules/OverviewCard.js +5 -4
  45. package/dist/components/molecules/SkeletonBlock/index.web.js +1 -2
  46. package/dist/components/molecules/SkeletonCircle/index.web.js +1 -2
  47. package/dist/components/molecules/SkeletonList/index.web.js +4 -5
  48. package/dist/components/organisms/AcademyLayout.js +2 -2
  49. package/dist/components/organisms/AppLayout.js +2 -2
  50. package/dist/components/organisms/EmptySearchResult.js +5 -5
  51. package/dist/components/organisms/FAQSection.js +2 -2
  52. package/dist/components/organisms/Footer.js +2 -4
  53. package/dist/components/organisms/MarketingHeader.js +5 -5
  54. package/dist/components/organisms/MarketingHeaderMobile.js +2 -2
  55. package/dist/components/organisms/MarketingLayout.js +1 -0
  56. package/dist/components/templates/lists/ListPageTemplate/index.web.js +2 -2
  57. package/dist/hooks/useListUrlState.js +7 -7
  58. package/dist/index.js +9 -1
  59. package/dist/lib/keyboard.js +1 -172
  60. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
  61. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
  62. package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
  63. package/dist/node_modules/next/dist/client/add-locale.js +29 -0
  64. package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
  65. package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
  66. package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
  67. package/dist/node_modules/next/dist/client/link.js +311 -0
  68. package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
  69. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
  70. package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
  71. package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
  72. package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
  73. package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
  74. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
  75. package/dist/node_modules/next/dist/lib/constants.js +316 -0
  76. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
  77. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
  78. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
  79. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
  80. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
  81. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
  82. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
  83. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
  84. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
  85. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
  86. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
  87. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
  88. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
  89. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
  90. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
  91. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  92. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
  93. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
  94. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
  95. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
  96. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
  97. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
  98. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
  99. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
  100. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
  101. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
  102. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
  103. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
  104. package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
  105. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
  106. package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
  107. package/dist/node_modules/next/link.js +12 -0
  108. package/dist/platform/useColorScheme.js +3 -3
  109. package/dist/platform/useReducedMotion.js +3 -3
  110. package/dist/platform/useResponsive.js +4 -4
  111. package/dist/renderers/form-contract.js +1 -1
  112. package/package.json +13 -304
  113. package/dist/components/agent/AgentMonitor.d.ts +0 -28
  114. package/dist/components/agent/ApprovalQueue.d.ts +0 -25
  115. package/dist/components/atoms/ActionButtons.d.ts +0 -25
  116. package/dist/components/atoms/Button.d.ts +0 -39
  117. package/dist/components/atoms/Button.mobile.d.ts +0 -21
  118. package/dist/components/atoms/Button.mobile.js +0 -34
  119. package/dist/components/atoms/ButtonLink.d.ts +0 -21
  120. package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
  121. package/dist/components/atoms/ButtonLink.mobile.js +0 -41
  122. package/dist/components/atoms/Cta.d.ts +0 -20
  123. package/dist/components/atoms/Cta.mobile.d.ts +0 -14
  124. package/dist/components/atoms/Cta.mobile.js +0 -38
  125. package/dist/components/atoms/DataChips.d.ts +0 -37
  126. package/dist/components/atoms/EmptyState.d.ts +0 -7
  127. package/dist/components/atoms/ErrorState.d.ts +0 -28
  128. package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
  129. package/dist/components/atoms/ErrorState.mobile.js +0 -41
  130. package/dist/components/atoms/Input.d.ts +0 -39
  131. package/dist/components/atoms/Input.mobile.d.ts +0 -37
  132. package/dist/components/atoms/Input.mobile.js +0 -27
  133. package/dist/components/atoms/Link.d.ts +0 -11
  134. package/dist/components/atoms/Link.native.d.ts +0 -1
  135. package/dist/components/atoms/Link.native.js +0 -0
  136. package/dist/components/atoms/Link.web.d.ts +0 -23
  137. package/dist/components/atoms/LoaderCircular.d.ts +0 -22
  138. package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
  139. package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
  140. package/dist/components/atoms/NavBrand.d.ts +0 -18
  141. package/dist/components/atoms/Stepper.d.ts +0 -7
  142. package/dist/components/atoms/Textarea.d.ts +0 -41
  143. package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
  144. package/dist/components/atoms/Textarea.mobile.js +0 -27
  145. package/dist/components/data-view/DataViewDetail.d.ts +0 -21
  146. package/dist/components/data-view/DataViewList.d.ts +0 -23
  147. package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
  148. package/dist/components/data-view/DataViewTable.d.ts +0 -25
  149. package/dist/components/data-view/utils.d.ts +0 -5
  150. package/dist/components/forms/FormCardLayout.d.ts +0 -22
  151. package/dist/components/forms/FormDialog.d.ts +0 -24
  152. package/dist/components/forms/FormLayout.d.ts +0 -29
  153. package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
  154. package/dist/components/forms/FormStepsLayout.d.ts +0 -26
  155. package/dist/components/forms/ZodForm.d.ts +0 -21
  156. package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
  157. package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
  158. package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
  159. package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
  160. package/dist/components/legal/atoms/LegalList.d.ts +0 -20
  161. package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
  162. package/dist/components/legal/atoms/LegalText.d.ts +0 -24
  163. package/dist/components/legal/molecules/Consent.d.ts +0 -35
  164. package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
  165. package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
  166. package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
  167. package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
  168. package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
  169. package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
  170. package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
  171. package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
  172. package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
  173. package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
  174. package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
  175. package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
  176. package/dist/components/molecules/AiLinkButton.d.ts +0 -15
  177. package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
  178. package/dist/components/molecules/CommandPalette.d.ts +0 -26
  179. package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
  180. package/dist/components/molecules/DropdownMenu.d.ts +0 -1
  181. package/dist/components/molecules/DropdownMenu.js +0 -0
  182. package/dist/components/molecules/EntityCard.d.ts +0 -37
  183. package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
  184. package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
  185. package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
  186. package/dist/components/molecules/HoverPreview.d.ts +0 -20
  187. package/dist/components/molecules/LangSwitch.d.ts +0 -22
  188. package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
  189. package/dist/components/molecules/LoaderBlock.d.ts +0 -18
  190. package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
  191. package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
  192. package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
  193. package/dist/components/molecules/NavItemCard.d.ts +0 -14
  194. package/dist/components/molecules/NavMain.d.ts +0 -13
  195. package/dist/components/molecules/NavUser.d.ts +0 -17
  196. package/dist/components/molecules/OverviewCard.d.ts +0 -20
  197. package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
  198. package/dist/components/molecules/SkeletonBlock/index.js +0 -3
  199. package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
  200. package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
  201. package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
  202. package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
  203. package/dist/components/molecules/SkeletonBlock/types.js +0 -0
  204. package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
  205. package/dist/components/molecules/SkeletonCircle/index.js +0 -3
  206. package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
  207. package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
  208. package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
  209. package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
  210. package/dist/components/molecules/SkeletonCircle/types.js +0 -0
  211. package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
  212. package/dist/components/molecules/SkeletonList/index.js +0 -3
  213. package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
  214. package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
  215. package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
  216. package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
  217. package/dist/components/molecules/SkeletonList/types.js +0 -0
  218. package/dist/components/molecules/StatCard.d.ts +0 -36
  219. package/dist/components/molecules/StatusChip.d.ts +0 -26
  220. package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
  221. package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
  222. package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
  223. package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
  224. package/dist/components/molecules/hover-previews/User.d.ts +0 -25
  225. package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
  226. package/dist/components/native/BottomTabs.mobile.js +0 -27
  227. package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
  228. package/dist/components/native/FlatListScreen.mobile.js +0 -63
  229. package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
  230. package/dist/components/native/SheetMenu.mobile.js +0 -21
  231. package/dist/components/organisms/AcademyLayout.d.ts +0 -29
  232. package/dist/components/organisms/AppHeader.d.ts +0 -18
  233. package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
  234. package/dist/components/organisms/AppHeader.mobile.js +0 -52
  235. package/dist/components/organisms/AppLayout.d.ts +0 -28
  236. package/dist/components/organisms/AppSidebar.d.ts +0 -23
  237. package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
  238. package/dist/components/organisms/AppSidebar.mobile.js +0 -0
  239. package/dist/components/organisms/EmptyDataList.d.ts +0 -20
  240. package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
  241. package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
  242. package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
  243. package/dist/components/organisms/EmptyDataList.types.js +0 -1
  244. package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
  245. package/dist/components/organisms/FAQSection.d.ts +0 -31
  246. package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
  247. package/dist/components/organisms/FeaturesSection.d.ts +0 -19
  248. package/dist/components/organisms/Footer.d.ts +0 -25
  249. package/dist/components/organisms/GridLayout.d.ts +0 -25
  250. package/dist/components/organisms/GridLayout.js +0 -28
  251. package/dist/components/organisms/Header.d.ts +0 -37
  252. package/dist/components/organisms/Header.mobile.d.ts +0 -24
  253. package/dist/components/organisms/Header.mobile.js +0 -18
  254. package/dist/components/organisms/HeroResponsive.d.ts +0 -14
  255. package/dist/components/organisms/HeroSection.d.ts +0 -29
  256. package/dist/components/organisms/ListCardPage.d.ts +0 -36
  257. package/dist/components/organisms/ListGridPage.d.ts +0 -36
  258. package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
  259. package/dist/components/organisms/ListTablePage.d.ts +0 -33
  260. package/dist/components/organisms/MarketingHeader.d.ts +0 -36
  261. package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
  262. package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
  263. package/dist/components/organisms/MarketingLayout.d.ts +0 -18
  264. package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
  265. package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
  266. package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
  267. package/dist/components/organisms/PricingCarousel.d.ts +0 -24
  268. package/dist/components/organisms/PricingSection.d.ts +0 -18
  269. package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
  270. package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
  271. package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
  272. package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
  273. package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
  274. package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
  275. package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
  276. package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
  277. package/dist/hooks/useListUrlState.d.ts +0 -30
  278. package/dist/index.d.ts +0 -108
  279. package/dist/lib/keyboard.d.ts +0 -14
  280. package/dist/lib/utils.d.ts +0 -6
  281. package/dist/platform/useColorScheme.d.ts +0 -5
  282. package/dist/platform/useColorScheme.mobile.d.ts +0 -5
  283. package/dist/platform/useColorScheme.mobile.js +0 -20
  284. package/dist/platform/useReducedMotion.d.ts +0 -4
  285. package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
  286. package/dist/platform/useReducedMotion.mobile.js +0 -28
  287. package/dist/platform/useResponsive.d.ts +0 -23
  288. package/dist/platform/useResponsive.mobile.d.ts +0 -23
  289. package/dist/platform/useResponsive.mobile.js +0 -42
  290. package/dist/platform/withPlatformUI.d.ts +0 -28
  291. package/dist/renderers/form-contract.d.ts +0 -11
  292. package/dist/renderers/index.d.ts +0 -2
  293. package/dist/renderers/index.js +0 -3
  294. package/dist/theme/tokenBridge.d.ts +0 -19
  295. package/dist/theme/tokens.d.ts +0 -50
  296. package/dist/theme/variants.d.ts +0 -21
  297. package/dist/types/nativewind-env.d.ts +0 -1
  298. package/dist/types/navigation.d.ts +0 -44
  299. package/dist/types/navigation.js +0 -1
@@ -0,0 +1,203 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+ import { require_remove_trailing_slash } from "./remove-trailing-slash.js";
3
+ import { require_interception_routes } from "./interception-routes.js";
4
+ import { require_constants } from "../../../../lib/constants.js";
5
+ import { require_escape_regexp } from "../../escape-regexp.js";
6
+ import { require_get_dynamic_param } from "./get-dynamic-param.js";
7
+
8
+ //#region ../../../node_modules/next/dist/shared/lib/router/utils/route-regex.js
9
+ var require_route_regex = /* @__PURE__ */ __commonJSMin(((exports) => {
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ function _export(target, all) {
12
+ for (var name in all) Object.defineProperty(target, name, {
13
+ enumerable: true,
14
+ get: all[name]
15
+ });
16
+ }
17
+ _export(exports, {
18
+ getNamedMiddlewareRegex: function() {
19
+ return getNamedMiddlewareRegex;
20
+ },
21
+ getNamedRouteRegex: function() {
22
+ return getNamedRouteRegex;
23
+ },
24
+ getRouteRegex: function() {
25
+ return getRouteRegex;
26
+ }
27
+ });
28
+ const _constants = require_constants();
29
+ const _interceptionroutes = require_interception_routes();
30
+ const _escaperegexp = require_escape_regexp();
31
+ const _removetrailingslash = require_remove_trailing_slash();
32
+ const _getdynamicparam = require_get_dynamic_param();
33
+ function getParametrizedRoute(route, includeSuffix, includePrefix) {
34
+ const groups = {};
35
+ let groupIndex = 1;
36
+ const segments = [];
37
+ for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
38
+ const markerMatch = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
39
+ const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
40
+ if (markerMatch && paramMatches && paramMatches[2]) {
41
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
42
+ groups[key] = {
43
+ pos: groupIndex++,
44
+ repeat,
45
+ optional
46
+ };
47
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
48
+ } else if (paramMatches && paramMatches[2]) {
49
+ const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
50
+ groups[key] = {
51
+ pos: groupIndex++,
52
+ repeat,
53
+ optional
54
+ };
55
+ if (includePrefix && paramMatches[1]) segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
56
+ let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
57
+ if (includePrefix && paramMatches[1]) s = s.substring(1);
58
+ segments.push(s);
59
+ } else segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
60
+ if (includeSuffix && paramMatches && paramMatches[3]) segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
61
+ }
62
+ return {
63
+ parameterizedRoute: segments.join(""),
64
+ groups
65
+ };
66
+ }
67
+ function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
68
+ const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
69
+ let re = parameterizedRoute;
70
+ if (!excludeOptionalTrailingSlash) re += "(?:/)?";
71
+ return {
72
+ re: /* @__PURE__ */ new RegExp(`^${re}$`),
73
+ groups
74
+ };
75
+ }
76
+ /**
77
+ * Builds a function to generate a minimal routeKey using only a-z and minimal
78
+ * number of characters.
79
+ */ function buildGetSafeRouteKey() {
80
+ let i = 0;
81
+ return () => {
82
+ let routeKey = "";
83
+ let j = ++i;
84
+ while (j > 0) {
85
+ routeKey += String.fromCharCode(97 + (j - 1) % 26);
86
+ j = Math.floor((j - 1) / 26);
87
+ }
88
+ return routeKey;
89
+ };
90
+ }
91
+ function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
92
+ const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
93
+ let cleanedKey = key.replace(/\W/g, "");
94
+ if (keyPrefix) cleanedKey = `${keyPrefix}${cleanedKey}`;
95
+ let invalidKey = false;
96
+ if (cleanedKey.length === 0 || cleanedKey.length > 30) invalidKey = true;
97
+ if (!isNaN(parseInt(cleanedKey.slice(0, 1)))) invalidKey = true;
98
+ if (invalidKey) cleanedKey = getSafeRouteKey();
99
+ const duplicateKey = cleanedKey in routeKeys;
100
+ if (keyPrefix) routeKeys[cleanedKey] = `${keyPrefix}${key}`;
101
+ else routeKeys[cleanedKey] = key;
102
+ const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
103
+ let pattern;
104
+ if (duplicateKey && backreferenceDuplicateKeys) pattern = `\\k<${cleanedKey}>`;
105
+ else if (repeat) pattern = `(?<${cleanedKey}>.+?)`;
106
+ else pattern = `(?<${cleanedKey}>[^/]+?)`;
107
+ return {
108
+ key,
109
+ pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
110
+ cleanedKey,
111
+ optional,
112
+ repeat
113
+ };
114
+ }
115
+ function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
116
+ names: {},
117
+ intercepted: {}
118
+ }) {
119
+ const getSafeRouteKey = buildGetSafeRouteKey();
120
+ const routeKeys = {};
121
+ const segments = [];
122
+ const inverseParts = [];
123
+ reference = structuredClone(reference);
124
+ for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
125
+ const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
126
+ const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
127
+ const interceptionMarker = hasInterceptionMarker ? paramMatches?.[1] : void 0;
128
+ let keyPrefix;
129
+ if (interceptionMarker && paramMatches?.[2]) {
130
+ keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
131
+ reference.intercepted[paramMatches[2]] = interceptionMarker;
132
+ } else if (paramMatches?.[2] && reference.intercepted[paramMatches[2]]) keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : void 0;
133
+ else keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : void 0;
134
+ if (interceptionMarker && paramMatches && paramMatches[2]) {
135
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
136
+ getSafeRouteKey,
137
+ interceptionMarker,
138
+ segment: paramMatches[2],
139
+ routeKeys,
140
+ keyPrefix,
141
+ backreferenceDuplicateKeys
142
+ });
143
+ segments.push(pattern);
144
+ inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
145
+ reference.names[key] ??= cleanedKey;
146
+ } else if (paramMatches && paramMatches[2]) {
147
+ if (includePrefix && paramMatches[1]) {
148
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
149
+ inverseParts.push(`/${paramMatches[1]}`);
150
+ }
151
+ const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
152
+ getSafeRouteKey,
153
+ segment: paramMatches[2],
154
+ routeKeys,
155
+ keyPrefix,
156
+ backreferenceDuplicateKeys
157
+ });
158
+ let s = pattern;
159
+ if (includePrefix && paramMatches[1]) s = s.substring(1);
160
+ segments.push(s);
161
+ inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
162
+ reference.names[key] ??= cleanedKey;
163
+ } else {
164
+ segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
165
+ inverseParts.push(`/${segment}`);
166
+ }
167
+ if (includeSuffix && paramMatches && paramMatches[3]) {
168
+ segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
169
+ inverseParts.push(paramMatches[3]);
170
+ }
171
+ }
172
+ return {
173
+ namedParameterizedRoute: segments.join(""),
174
+ routeKeys,
175
+ pathToRegexpPattern: inverseParts.join(""),
176
+ reference
177
+ };
178
+ }
179
+ function getNamedRouteRegex(normalizedRoute, options) {
180
+ const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);
181
+ let namedRegex = result.namedParameterizedRoute;
182
+ if (!options.excludeOptionalTrailingSlash) namedRegex += "(?:/)?";
183
+ return {
184
+ ...getRouteRegex(normalizedRoute, options),
185
+ namedRegex: `^${namedRegex}$`,
186
+ routeKeys: result.routeKeys,
187
+ pathToRegexpPattern: result.pathToRegexpPattern,
188
+ reference: result.reference
189
+ };
190
+ }
191
+ function getNamedMiddlewareRegex(normalizedRoute, options) {
192
+ const { parameterizedRoute } = getParametrizedRoute(normalizedRoute, false, false);
193
+ const { catchAll = true } = options;
194
+ if (parameterizedRoute === "/") return { namedRegex: `^/${catchAll ? ".*" : ""}$` };
195
+ const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, void 0);
196
+ return { namedRegex: `^${namedParameterizedRoute}${catchAll ? "(?:(/.*)?)" : ""}$` };
197
+ }
198
+ }));
199
+
200
+ //#endregion
201
+ export default require_route_regex();
202
+
203
+ export { require_route_regex };
@@ -0,0 +1,167 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js
4
+ var require_sorted_routes = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ function _export(target, all) {
7
+ for (var name in all) Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ getSortedRouteObjects: function() {
14
+ return getSortedRouteObjects;
15
+ },
16
+ getSortedRoutes: function() {
17
+ return getSortedRoutes;
18
+ }
19
+ });
20
+ var UrlNode = class UrlNode {
21
+ insert(urlPath) {
22
+ this._insert(urlPath.split("/").filter(Boolean), [], false);
23
+ }
24
+ smoosh() {
25
+ return this._smoosh();
26
+ }
27
+ _smoosh(prefix = "/") {
28
+ const childrenPaths = [...this.children.keys()].sort();
29
+ if (this.slugName !== null) childrenPaths.splice(childrenPaths.indexOf("[]"), 1);
30
+ if (this.restSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[...]"), 1);
31
+ if (this.optionalRestSlugName !== null) childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
32
+ const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [...prev, ...curr], []);
33
+ if (this.slugName !== null) routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
34
+ if (!this.placeholder) {
35
+ const r = prefix === "/" ? "/" : prefix.slice(0, -1);
36
+ if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
37
+ value: "E458",
38
+ enumerable: false,
39
+ configurable: true
40
+ });
41
+ routes.unshift(r);
42
+ }
43
+ if (this.restSlugName !== null) routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
44
+ if (this.optionalRestSlugName !== null) routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
45
+ return routes;
46
+ }
47
+ _insert(urlPaths, slugNames, isCatchAll) {
48
+ if (urlPaths.length === 0) {
49
+ this.placeholder = false;
50
+ return;
51
+ }
52
+ if (isCatchAll) throw Object.defineProperty(/* @__PURE__ */ new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
53
+ value: "E392",
54
+ enumerable: false,
55
+ configurable: true
56
+ });
57
+ let nextSegment = urlPaths[0];
58
+ if (nextSegment.startsWith("[") && nextSegment.endsWith("]")) {
59
+ let segmentName = nextSegment.slice(1, -1);
60
+ let isOptional = false;
61
+ if (segmentName.startsWith("[") && segmentName.endsWith("]")) {
62
+ segmentName = segmentName.slice(1, -1);
63
+ isOptional = true;
64
+ }
65
+ if (segmentName.startsWith("…")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
66
+ value: "E147",
67
+ enumerable: false,
68
+ configurable: true
69
+ });
70
+ if (segmentName.startsWith("...")) {
71
+ segmentName = segmentName.substring(3);
72
+ isCatchAll = true;
73
+ }
74
+ if (segmentName.startsWith("[") || segmentName.endsWith("]")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
75
+ value: "E421",
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ if (segmentName.startsWith(".")) throw Object.defineProperty(/* @__PURE__ */ new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
80
+ value: "E288",
81
+ enumerable: false,
82
+ configurable: true
83
+ });
84
+ function handleSlug(previousSlug, nextSlug) {
85
+ if (previousSlug !== null) {
86
+ if (previousSlug !== nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
87
+ value: "E337",
88
+ enumerable: false,
89
+ configurable: true
90
+ });
91
+ }
92
+ slugNames.forEach((slug) => {
93
+ if (slug === nextSlug) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
94
+ value: "E247",
95
+ enumerable: false,
96
+ configurable: true
97
+ });
98
+ if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
99
+ value: "E499",
100
+ enumerable: false,
101
+ configurable: true
102
+ });
103
+ });
104
+ slugNames.push(nextSlug);
105
+ }
106
+ if (isCatchAll) if (isOptional) {
107
+ if (this.restSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
108
+ value: "E299",
109
+ enumerable: false,
110
+ configurable: true
111
+ });
112
+ handleSlug(this.optionalRestSlugName, segmentName);
113
+ this.optionalRestSlugName = segmentName;
114
+ nextSegment = "[[...]]";
115
+ } else {
116
+ if (this.optionalRestSlugName != null) throw Object.defineProperty(/* @__PURE__ */ new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
117
+ value: "E300",
118
+ enumerable: false,
119
+ configurable: true
120
+ });
121
+ handleSlug(this.restSlugName, segmentName);
122
+ this.restSlugName = segmentName;
123
+ nextSegment = "[...]";
124
+ }
125
+ else {
126
+ if (isOptional) throw Object.defineProperty(/* @__PURE__ */ new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
127
+ value: "E435",
128
+ enumerable: false,
129
+ configurable: true
130
+ });
131
+ handleSlug(this.slugName, segmentName);
132
+ this.slugName = segmentName;
133
+ nextSegment = "[]";
134
+ }
135
+ }
136
+ if (!this.children.has(nextSegment)) this.children.set(nextSegment, new UrlNode());
137
+ this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll);
138
+ }
139
+ constructor() {
140
+ this.placeholder = true;
141
+ this.children = /* @__PURE__ */ new Map();
142
+ this.slugName = null;
143
+ this.restSlugName = null;
144
+ this.optionalRestSlugName = null;
145
+ }
146
+ };
147
+ function getSortedRoutes(normalizedPages) {
148
+ const root = new UrlNode();
149
+ normalizedPages.forEach((pagePath) => root.insert(pagePath));
150
+ return root.smoosh();
151
+ }
152
+ function getSortedRouteObjects(objects, getter) {
153
+ const indexes = {};
154
+ const pathnames = [];
155
+ for (let i = 0; i < objects.length; i++) {
156
+ const pathname = getter(objects[i]);
157
+ indexes[pathname] = i;
158
+ pathnames[i] = pathname;
159
+ }
160
+ return getSortedRoutes(pathnames).map((pathname) => objects[indexes[pathname]]);
161
+ }
162
+ }));
163
+
164
+ //#endregion
165
+ export default require_sorted_routes();
166
+
167
+ export { require_sorted_routes };
@@ -0,0 +1,20 @@
1
+ import { __commonJSMin, __require } from "../../../../../_virtual/rolldown_runtime.js";
2
+ import { require__interop_require_default } from "../../../../@swc/helpers/cjs/_interop_require_default.js";
3
+
4
+ //#region ../../../node_modules/next/dist/shared/lib/router-context.shared-runtime.js
5
+ var require_router_context_shared_runtime = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ Object.defineProperty(exports, "RouterContext", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return RouterContext;
11
+ }
12
+ });
13
+ const RouterContext = (/* @__PURE__ */ require__interop_require_default()._(__require("react"))).default.createContext(null);
14
+ RouterContext.displayName = "RouterContext";
15
+ }));
16
+
17
+ //#endregion
18
+ export default require_router_context_shared_runtime();
19
+
20
+ export { require_router_context_shared_runtime };
@@ -0,0 +1,80 @@
1
+ import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/shared/lib/segment.js
4
+ var require_segment = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ function _export(target, all) {
7
+ for (var name in all) Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ DEFAULT_SEGMENT_KEY: function() {
14
+ return DEFAULT_SEGMENT_KEY;
15
+ },
16
+ PAGE_SEGMENT_KEY: function() {
17
+ return PAGE_SEGMENT_KEY;
18
+ },
19
+ addSearchParamsIfPageSegment: function() {
20
+ return addSearchParamsIfPageSegment;
21
+ },
22
+ computeSelectedLayoutSegment: function() {
23
+ return computeSelectedLayoutSegment;
24
+ },
25
+ getSegmentValue: function() {
26
+ return getSegmentValue;
27
+ },
28
+ getSelectedLayoutSegmentPath: function() {
29
+ return getSelectedLayoutSegmentPath;
30
+ },
31
+ isGroupSegment: function() {
32
+ return isGroupSegment;
33
+ },
34
+ isParallelRouteSegment: function() {
35
+ return isParallelRouteSegment;
36
+ }
37
+ });
38
+ function getSegmentValue(segment) {
39
+ return Array.isArray(segment) ? segment[1] : segment;
40
+ }
41
+ function isGroupSegment(segment) {
42
+ return segment[0] === "(" && segment.endsWith(")");
43
+ }
44
+ function isParallelRouteSegment(segment) {
45
+ return segment.startsWith("@") && segment !== "@children";
46
+ }
47
+ function addSearchParamsIfPageSegment(segment, searchParams) {
48
+ if (segment.includes(PAGE_SEGMENT_KEY)) {
49
+ const stringifiedQuery = JSON.stringify(searchParams);
50
+ return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
51
+ }
52
+ return segment;
53
+ }
54
+ function computeSelectedLayoutSegment(segments, parallelRouteKey) {
55
+ if (!segments || segments.length === 0) return null;
56
+ const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
57
+ return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
58
+ }
59
+ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
60
+ let node;
61
+ if (first) node = tree[1][parallelRouteKey];
62
+ else {
63
+ const parallelRoutes = tree[1];
64
+ node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
65
+ }
66
+ if (!node) return segmentPath;
67
+ const segment = node[0];
68
+ let segmentValue = getSegmentValue(segment);
69
+ if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) return segmentPath;
70
+ segmentPath.push(segmentValue);
71
+ return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
72
+ }
73
+ const PAGE_SEGMENT_KEY = "__PAGE__";
74
+ const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
75
+ }));
76
+
77
+ //#endregion
78
+ export default require_segment();
79
+
80
+ export { require_segment };
@@ -0,0 +1,25 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/shared/lib/utils/error-once.js
4
+ var require_error_once = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ Object.defineProperty(exports, "errorOnce", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return errorOnce;
10
+ }
11
+ });
12
+ let errorOnce = (_) => {};
13
+ {
14
+ const errors = /* @__PURE__ */ new Set();
15
+ errorOnce = (msg) => {
16
+ if (!errors.has(msg)) console.error(msg);
17
+ errors.add(msg);
18
+ };
19
+ }
20
+ }));
21
+
22
+ //#endregion
23
+ export default require_error_once();
24
+
25
+ export { require_error_once };
@@ -0,0 +1,172 @@
1
+ import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/shared/lib/utils.js
4
+ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ function _export(target, all) {
7
+ for (var name in all) Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ DecodeError: function() {
14
+ return DecodeError;
15
+ },
16
+ MiddlewareNotFoundError: function() {
17
+ return MiddlewareNotFoundError;
18
+ },
19
+ MissingStaticPage: function() {
20
+ return MissingStaticPage;
21
+ },
22
+ NormalizeError: function() {
23
+ return NormalizeError;
24
+ },
25
+ PageNotFoundError: function() {
26
+ return PageNotFoundError;
27
+ },
28
+ SP: function() {
29
+ return SP;
30
+ },
31
+ ST: function() {
32
+ return ST;
33
+ },
34
+ WEB_VITALS: function() {
35
+ return WEB_VITALS;
36
+ },
37
+ execOnce: function() {
38
+ return execOnce;
39
+ },
40
+ getDisplayName: function() {
41
+ return getDisplayName;
42
+ },
43
+ getLocationOrigin: function() {
44
+ return getLocationOrigin;
45
+ },
46
+ getURL: function() {
47
+ return getURL;
48
+ },
49
+ isAbsoluteUrl: function() {
50
+ return isAbsoluteUrl;
51
+ },
52
+ isResSent: function() {
53
+ return isResSent;
54
+ },
55
+ loadGetInitialProps: function() {
56
+ return loadGetInitialProps;
57
+ },
58
+ normalizeRepeatedSlashes: function() {
59
+ return normalizeRepeatedSlashes;
60
+ },
61
+ stringifyError: function() {
62
+ return stringifyError;
63
+ }
64
+ });
65
+ const WEB_VITALS = [
66
+ "CLS",
67
+ "FCP",
68
+ "FID",
69
+ "INP",
70
+ "LCP",
71
+ "TTFB"
72
+ ];
73
+ function execOnce(fn) {
74
+ let used = false;
75
+ let result;
76
+ return (...args) => {
77
+ if (!used) {
78
+ used = true;
79
+ result = fn(...args);
80
+ }
81
+ return result;
82
+ };
83
+ }
84
+ const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
85
+ const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
86
+ function getLocationOrigin() {
87
+ const { protocol, hostname, port } = window.location;
88
+ return `${protocol}//${hostname}${port ? ":" + port : ""}`;
89
+ }
90
+ function getURL() {
91
+ const { href } = window.location;
92
+ const origin = getLocationOrigin();
93
+ return href.substring(origin.length);
94
+ }
95
+ function getDisplayName(Component) {
96
+ return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
97
+ }
98
+ function isResSent(res) {
99
+ return res.finished || res.headersSent;
100
+ }
101
+ function normalizeRepeatedSlashes(url) {
102
+ const urlParts = url.split("?");
103
+ return urlParts[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
104
+ }
105
+ async function loadGetInitialProps(App, ctx) {
106
+ if (App.prototype?.getInitialProps) {
107
+ 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.`;
108
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
109
+ value: "E394",
110
+ enumerable: false,
111
+ configurable: true
112
+ });
113
+ }
114
+ const res = ctx.res || ctx.ctx && ctx.ctx.res;
115
+ if (!App.getInitialProps) {
116
+ if (ctx.ctx && ctx.Component) return { pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx) };
117
+ return {};
118
+ }
119
+ const props = await App.getInitialProps(ctx);
120
+ if (res && isResSent(res)) return props;
121
+ if (!props) {
122
+ const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
123
+ throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
124
+ value: "E394",
125
+ enumerable: false,
126
+ configurable: true
127
+ });
128
+ }
129
+ if (Object.keys(props).length === 0 && !ctx.ctx) console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
130
+ return props;
131
+ }
132
+ const SP = typeof performance !== "undefined";
133
+ const ST = SP && [
134
+ "mark",
135
+ "measure",
136
+ "getEntriesByName"
137
+ ].every((method) => typeof performance[method] === "function");
138
+ var DecodeError = class extends Error {};
139
+ var NormalizeError = class extends Error {};
140
+ var PageNotFoundError = class extends Error {
141
+ constructor(page) {
142
+ super();
143
+ this.code = "ENOENT";
144
+ this.name = "PageNotFoundError";
145
+ this.message = `Cannot find module for page: ${page}`;
146
+ }
147
+ };
148
+ var MissingStaticPage = class extends Error {
149
+ constructor(page, message) {
150
+ super();
151
+ this.message = `Failed to load static file for page: ${page} ${message}`;
152
+ }
153
+ };
154
+ var MiddlewareNotFoundError = class extends Error {
155
+ constructor() {
156
+ super();
157
+ this.code = "ENOENT";
158
+ this.message = `Cannot find the middleware module`;
159
+ }
160
+ };
161
+ function stringifyError(error) {
162
+ return JSON.stringify({
163
+ message: error.message,
164
+ stack: error.stack
165
+ });
166
+ }
167
+ }));
168
+
169
+ //#endregion
170
+ export default require_utils();
171
+
172
+ export { require_utils };
@@ -0,0 +1,12 @@
1
+ import { __commonJSMin } from "../../_virtual/rolldown_runtime.js";
2
+ import { require_link as require_link$1 } from "./dist/client/link.js";
3
+
4
+ //#region ../../../node_modules/next/link.js
5
+ var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ module.exports = require_link$1();
7
+ }));
8
+
9
+ //#endregion
10
+ export default require_link();
11
+
12
+ export { require_link };