@farm.js/core 0.2.0-beta.4 → 0.2.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 (235) hide show
  1. package/README.md +1 -3
  2. package/dist/{agent-mcp.d-CAwDC9y4.d.ts → agent-mcp.d--uQgDp_Q.d.ts} +1 -1
  3. package/dist/{agent-mcp.d-BdFnjlAT.d.mts → agent-mcp.d-DpthRhqr.d.mts} +1 -1
  4. package/dist/agent-runtime.d.mts +4 -4
  5. package/dist/agent-runtime.d.ts +4 -4
  6. package/dist/{analyzer-K3S4YRAH.mjs → analyzer-GLFRODYV.mjs} +2 -2
  7. package/dist/analyzer-KBVOHASA.cjs +17 -0
  8. package/dist/api/node.d.mts +6 -6
  9. package/dist/api/node.d.ts +6 -6
  10. package/dist/api/route-manager.cjs +3 -3
  11. package/dist/api/route-manager.d.mts +6 -6
  12. package/dist/api/route-manager.d.ts +6 -6
  13. package/dist/api/route-manager.mjs +2 -2
  14. package/dist/api/runtime.d.mts +5 -5
  15. package/dist/api/runtime.d.ts +5 -5
  16. package/dist/api.cjs +4 -4
  17. package/dist/api.d.mts +7 -7
  18. package/dist/api.d.ts +7 -7
  19. package/dist/api.mjs +3 -3
  20. package/dist/{app-manifest.d-Dczk-fwt.d.ts → app-manifest.d-DMgcFuXQ.d.ts} +1 -1
  21. package/dist/{app-manifest.d-COs1wBGz.d.mts → app-manifest.d-DXAvPjMw.d.mts} +1 -1
  22. package/dist/app-markdown.d.mts +5 -5
  23. package/dist/app-markdown.d.ts +5 -5
  24. package/dist/{app.d-LepnxO-5.d.mts → app.d-DG_-nN5y.d.mts} +4 -4
  25. package/dist/{app.d-DREl_yXh.d.ts → app.d-htfGqq-d.d.ts} +4 -4
  26. package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
  27. package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
  28. package/dist/{chunk-LWQ6IESX.mjs → chunk-BOHBFBRA.mjs} +1 -1
  29. package/dist/{chunk-V5F6HN7E.mjs → chunk-CPL7WIMP.mjs} +1 -1
  30. package/dist/{chunk-APKULXZV.cjs → chunk-CS6GXE42.cjs} +91 -21
  31. package/dist/chunk-CYUTK4JP.cjs +52 -0
  32. package/dist/{chunk-T4NOMZTS.mjs → chunk-CZMMU3FP.mjs} +4 -4
  33. package/dist/{chunk-PSALMEHJ.cjs → chunk-D2OU4CX2.cjs} +23 -20
  34. package/dist/{chunk-5BZ7PR3T.cjs → chunk-D2VLHRBN.cjs} +3 -3
  35. package/dist/{chunk-D5OY5OKA.mjs → chunk-D5GFVHBV.mjs} +23 -17
  36. package/dist/{chunk-VGX75645.mjs → chunk-E7ISZK3R.mjs} +8 -5
  37. package/dist/{chunk-F5T55PYX.cjs → chunk-EIAA4W3M.cjs} +26 -21
  38. package/dist/{chunk-2PSN2PUJ.cjs → chunk-EWPH5IOC.cjs} +19 -16
  39. package/dist/{chunk-QBCR2EHA.cjs → chunk-GEZ76JXD.cjs} +3 -3
  40. package/dist/{chunk-KM7ZRKCH.cjs → chunk-GL4SPJTE.cjs} +10 -10
  41. package/dist/{chunk-IU4YTFFQ.cjs → chunk-GUYGMTWA.cjs} +12 -9
  42. package/dist/{chunk-MRDI6MTL.mjs → chunk-H6MYRZ2U.mjs} +15 -10
  43. package/dist/{chunk-P67RLOMO.mjs → chunk-HBZQIRRM.mjs} +1 -1
  44. package/dist/{chunk-NNHIV3O2.cjs → chunk-HENYWY5J.cjs} +2 -2
  45. package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
  46. package/dist/{chunk-E5AC7E25.cjs → chunk-JJ22OI7J.cjs} +2 -2
  47. package/dist/{chunk-XPVS4HKU.cjs → chunk-JZAGIXMB.cjs} +1 -1
  48. package/dist/{chunk-TQCDN4DV.mjs → chunk-KQXYBJES.mjs} +14 -11
  49. package/dist/{chunk-5UMPMVNF.mjs → chunk-L2KGQXFU.mjs} +1 -1
  50. package/dist/{chunk-HP7QYVST.cjs → chunk-LEZJZX4C.cjs} +1 -18
  51. package/dist/{chunk-C4DZAEVT.cjs → chunk-MR64FNW6.cjs} +4 -4
  52. package/dist/{chunk-LOQVWATF.mjs → chunk-MYJPW4XN.mjs} +2 -2
  53. package/dist/chunk-O77EKGAS.mjs +36 -0
  54. package/dist/{chunk-VS4ABIJJ.mjs → chunk-OKZHPPBX.mjs} +1 -1
  55. package/dist/{chunk-WLOIUPV2.mjs → chunk-P2THJDLH.mjs} +37 -26
  56. package/dist/{chunk-KBURN62Z.cjs → chunk-PFVNPOKN.cjs} +11 -1
  57. package/dist/{chunk-IASZIYNM.cjs → chunk-PGU4SCIU.cjs} +302 -297
  58. package/dist/chunk-PTG5BEMG.mjs +47 -0
  59. package/dist/{chunk-UBH2OARS.cjs → chunk-PVB5UYJT.cjs} +280 -274
  60. package/dist/{chunk-EBVKVDQA.mjs → chunk-PZ5ZJAAO.mjs} +1 -1
  61. package/dist/{chunk-FYVSAWJP.cjs → chunk-Q4FHYBFT.cjs} +11 -11
  62. package/dist/{chunk-AGT633OM.cjs → chunk-QI3UYN3P.cjs} +11 -11
  63. package/dist/{chunk-HFOME6I2.mjs → chunk-QJKGRUBR.mjs} +5 -5
  64. package/dist/{chunk-DFLCEMQ3.mjs → chunk-RCJAOQWW.mjs} +1 -1
  65. package/dist/{chunk-AGEBFYHF.mjs → chunk-SIJ3DREB.mjs} +1 -1
  66. package/dist/{chunk-II4ENBE4.mjs → chunk-SPVXL37B.mjs} +1 -1
  67. package/dist/{chunk-VVIO7QGN.mjs → chunk-TI4BJFYX.mjs} +32 -27
  68. package/dist/{chunk-MBDDLYT5.cjs → chunk-V6ACETKR.cjs} +4 -4
  69. package/dist/{chunk-VMIR4SUL.cjs → chunk-W34OS5CK.cjs} +383 -372
  70. package/dist/{chunk-ANKMAGFJ.mjs → chunk-WRT775N6.mjs} +92 -22
  71. package/dist/{chunk-DVXT7RLV.cjs → chunk-WXPY5FRF.cjs} +6 -6
  72. package/dist/{chunk-VQYGXWCS.cjs → chunk-XSE4XJKY.cjs} +2 -2
  73. package/dist/{chunk-2ORWY3SE.mjs → chunk-XYCB3CXM.mjs} +2 -2
  74. package/dist/{chunk-XJEOHDPN.cjs → chunk-YCGOQKVC.cjs} +21 -2
  75. package/dist/{chunk-2UV765GT.cjs → chunk-ZQOHL6TX.cjs} +2 -2
  76. package/dist/{client-component.d-BA6kXI5L.d.mts → client-component.d-D5JVDeQf.d.mts} +1 -1
  77. package/dist/{client-component.d-LSEmRhuI.d.ts → client-component.d-DDbDw2yP.d.ts} +1 -1
  78. package/dist/{client-plugins.d-CVUMc2ai.d.mts → client-plugins.d-9jr2yWR3.d.mts} +21 -16
  79. package/dist/{client-plugins.d-CQ6AGHP0.d.ts → client-plugins.d-BHqfH3DQ.d.ts} +21 -16
  80. package/dist/client-plugins.d.mts +4 -4
  81. package/dist/client-plugins.d.ts +4 -4
  82. package/dist/client.d.mts +10 -10
  83. package/dist/client.d.ts +10 -10
  84. package/dist/config.d.mts +4 -4
  85. package/dist/config.d.ts +4 -4
  86. package/dist/desktop.d.mts +5 -5
  87. package/dist/desktop.d.ts +5 -5
  88. package/dist/{devtools-OBQY3XOY.cjs → devtools-F6Z436WU.cjs} +12 -9
  89. package/dist/{devtools-RYTO2V7G.mjs → devtools-ZDBCJI44.mjs} +8 -5
  90. package/dist/docs.cjs +7 -6
  91. package/dist/docs.d.mts +6 -6
  92. package/dist/docs.d.ts +6 -6
  93. package/dist/docs.mjs +6 -5
  94. package/dist/environment/vite.cjs +6 -5
  95. package/dist/environment/vite.d.mts +2 -1
  96. package/dist/environment/vite.d.ts +2 -1
  97. package/dist/environment/vite.mjs +5 -4
  98. package/dist/{generate-route-types.d-BFOMM8Ef.d.mts → generate-route-types.d-CAiRw4N0.d.mts} +1 -1
  99. package/dist/{generate-route-types.d-C2m8myHb.d.ts → generate-route-types.d-Dz8MOQ3u.d.ts} +1 -1
  100. package/dist/{handler.d-nkrNn_0M.d.ts → handler.d-Dq_bSEKC.d.ts} +2 -2
  101. package/dist/{handler.d-DLKZDAYR.d.mts → handler.d-EtTSPkeO.d.mts} +2 -2
  102. package/dist/{headers.d-C3k520Fc.d.mts → headers.d-BKwGD_uC.d.mts} +1 -1
  103. package/dist/{headers.d-DVBrYnqP.d.ts → headers.d-CpIHLCEk.d.ts} +1 -1
  104. package/dist/index.cjs +28 -27
  105. package/dist/{index.d-e5WhoB07.d.ts → index.d-CoRZKiHA.d.ts} +1 -1
  106. package/dist/{index.d-5PDB032w.d.mts → index.d-DXtaU9OU.d.mts} +1 -1
  107. package/dist/index.d.mts +27 -27
  108. package/dist/index.d.ts +27 -27
  109. package/dist/index.mjs +23 -22
  110. package/dist/integrations/orm.d.mts +4 -4
  111. package/dist/integrations/orm.d.ts +4 -4
  112. package/dist/integrations.d.mts +4 -4
  113. package/dist/integrations.d.ts +4 -4
  114. package/dist/internal/app-markdown-runtime.d.mts +5 -5
  115. package/dist/internal/app-markdown-runtime.d.ts +5 -5
  116. package/dist/internal/build-runtime.cjs +23 -22
  117. package/dist/internal/build-runtime.d.mts +8 -8
  118. package/dist/internal/build-runtime.d.ts +8 -8
  119. package/dist/internal/build-runtime.mjs +22 -21
  120. package/dist/internal/cli-runtime.cjs +14 -10
  121. package/dist/internal/cli-runtime.d.mts +20 -12
  122. package/dist/internal/cli-runtime.d.ts +20 -12
  123. package/dist/internal/cli-runtime.mjs +13 -9
  124. package/dist/internal/client-error-overlay.cjs +4 -4
  125. package/dist/internal/client-error-overlay.mjs +1 -1
  126. package/dist/internal/client-runtime.d.mts +8 -8
  127. package/dist/internal/client-runtime.d.ts +8 -8
  128. package/dist/internal/compression-runtime.d.mts +4 -4
  129. package/dist/internal/compression-runtime.d.ts +4 -4
  130. package/dist/internal/config-runtime.cjs +7 -6
  131. package/dist/internal/config-runtime.d.mts +8 -8
  132. package/dist/internal/config-runtime.d.ts +8 -8
  133. package/dist/internal/config-runtime.mjs +6 -5
  134. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  135. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  136. package/dist/internal/native-server-fns.cjs +4 -4
  137. package/dist/internal/native-server-fns.mjs +3 -3
  138. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  139. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  140. package/dist/internal/production-runtime.cjs +4 -4
  141. package/dist/internal/production-runtime.d.mts +13 -13
  142. package/dist/internal/production-runtime.d.ts +13 -13
  143. package/dist/internal/production-runtime.mjs +3 -3
  144. package/dist/internal/spa-router.d.mts +6 -6
  145. package/dist/internal/spa-router.d.ts +6 -6
  146. package/dist/internal/start-manifest.d.mts +4 -4
  147. package/dist/internal/start-manifest.d.ts +4 -4
  148. package/dist/layers-6R55QDT5.cjs +26 -0
  149. package/dist/{layers-IMRXNZRB.mjs → layers-O6GUR6LT.mjs} +6 -1
  150. package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.mts} +1 -1
  151. package/dist/{layers.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.ts} +1 -1
  152. package/dist/{manager-3DFQDKJ6.cjs → manager-YRIENS63.cjs} +4 -4
  153. package/dist/{manager-GZUTAN5Q.mjs → manager-YTJOAHII.mjs} +3 -3
  154. package/dist/markdown.d.mts +4 -4
  155. package/dist/markdown.d.ts +4 -4
  156. package/dist/middleware.d.mts +4 -4
  157. package/dist/middleware.d.ts +4 -4
  158. package/dist/mobile.d.mts +4 -4
  159. package/dist/mobile.d.ts +4 -4
  160. package/dist/{mount.d-Cbz8vsSZ.d.ts → mount.d-BzK2Z1pR.d.ts} +1 -1
  161. package/dist/{mount.d-COIrFH0i.d.mts → mount.d-D-ynBlxU.d.mts} +1 -1
  162. package/dist/{navigation-delegate.d-dlnYTX-Y.d.ts → navigation-delegate.d-DtsnFnNF.d.ts} +1 -1
  163. package/dist/{navigation-delegate.d-yulG9Dp5.d.mts → navigation-delegate.d-aJh3ZmTY.d.mts} +1 -1
  164. package/dist/navigation.d.mts +7 -7
  165. package/dist/navigation.d.ts +7 -7
  166. package/dist/plugin.cjs +18 -17
  167. package/dist/plugin.d.mts +8 -8
  168. package/dist/plugin.d.ts +8 -8
  169. package/dist/plugin.mjs +17 -16
  170. package/dist/{render-plan.d-BW56oxMP.d.mts → render-plan.d-C6nUIU2m.d.mts} +1 -1
  171. package/dist/{render-plan.d-Cz7bQmcf.d.ts → render-plan.d-h8bkOQyh.d.ts} +1 -1
  172. package/dist/renderer-client.d.mts +8 -8
  173. package/dist/renderer-client.d.ts +8 -8
  174. package/dist/renderer.cjs +4 -3
  175. package/dist/renderer.d.mts +1 -1
  176. package/dist/renderer.d.ts +1 -1
  177. package/dist/renderer.mjs +3 -2
  178. package/dist/{request.d-BwgX-7Wi.d.mts → request.d-CBEdJD5R.d.mts} +1 -1
  179. package/dist/{request.d-BaFROByP.d.ts → request.d-CrriEvxy.d.ts} +1 -1
  180. package/dist/request.d.mts +5 -5
  181. package/dist/request.d.ts +5 -5
  182. package/dist/{route-rendering.d-D4kUuncg.d.ts → route-rendering.d-C-ivf31T.d.ts} +1 -1
  183. package/dist/{route-rendering.d-BzeFPYGc.d.mts → route-rendering.d-DgXpNk_c.d.mts} +1 -1
  184. package/dist/{router.d-B9qJdgjt.d.ts → router.d-BRRPd5dE.d.ts} +1 -1
  185. package/dist/{router.d-D-p8WElf.d.mts → router.d-O5LrW9mZ.d.mts} +1 -1
  186. package/dist/{routes.d-D7RWvfqL.d.ts → routes.d-CYe98R_8.d.ts} +1 -1
  187. package/dist/{routes.d-BWvpUoYu.d.mts → routes.d-DBGnKaUQ.d.mts} +1 -1
  188. package/dist/routes.d.mts +4 -4
  189. package/dist/routes.d.ts +4 -4
  190. package/dist/{rsc-pipeline-YHVEHWTU.cjs → rsc-pipeline-2DNM7UDA.cjs} +8 -7
  191. package/dist/{rsc-pipeline-Y6D6KBES.mjs → rsc-pipeline-HYINQPMW.mjs} +7 -6
  192. package/dist/{runtime-62ZIEV6U.mjs → runtime-JP7L5KI7.mjs} +11 -8
  193. package/dist/{runtime-LKEMFXHW.cjs → runtime-M6GLD4CR.cjs} +15 -12
  194. package/dist/{runtime.d-BUtDIrRJ.d.mts → runtime.d-DP8Sk9PM.d.mts} +1 -1
  195. package/dist/{runtime.d-Du64AX3R.d.ts → runtime.d-DW_1avVi.d.ts} +1 -1
  196. package/dist/{cli-runtime.d-Bvfxt4uo.d.ts → schema-dependencies.d-C__RyTvW.d.ts} +21 -13
  197. package/dist/{cli-runtime.d-BGaFPum1.d.mts → schema-dependencies.d-Cedd7QUf.d.mts} +21 -13
  198. package/dist/{schema.d-BM-uVGpx.d.mts → schema.d-HlGSe1on.d.mts} +1 -1
  199. package/dist/{schema.d-BM-uVGpx.d.ts → schema.d-HlGSe1on.d.ts} +1 -1
  200. package/dist/schema.d.mts +1 -1
  201. package/dist/schema.d.ts +1 -1
  202. package/dist/{server-components-status.d-CvFhb6-t.d.ts → server-components-status.d-CdsEQbeM.d.ts} +3 -3
  203. package/dist/{server-components-status.d-B0YP-m9A.d.mts → server-components-status.d-DN98yOT4.d.mts} +3 -3
  204. package/dist/server-plugins.d.mts +6 -6
  205. package/dist/server-plugins.d.ts +6 -6
  206. package/dist/server.cjs +56 -53
  207. package/dist/server.d.mts +15 -15
  208. package/dist/server.d.ts +15 -15
  209. package/dist/server.mjs +23 -20
  210. package/dist/{spa-router.d-D4ye2WFk.d.ts → spa-router.d-BJWZAdrV.d.ts} +2 -2
  211. package/dist/{spa-router.d-CkR14oGH.d.mts → spa-router.d-FcDbBCrK.d.mts} +2 -2
  212. package/dist/{ssg.d-DFs97VTY.d.mts → ssg.d--uut8Gya.d.mts} +3 -3
  213. package/dist/{ssg.d-BCJB_f7B.d.ts → ssg.d-Cf9mC1rZ.d.ts} +3 -3
  214. package/dist/storage.d.mts +2 -2
  215. package/dist/storage.d.ts +2 -2
  216. package/dist/{store-core.d-Vk5UDKeC.d.mts → store-core.d-DgYlAo-e.d.mts} +2 -2
  217. package/dist/{store-core.d-0W2YScl8.d.ts → store-core.d-h7o6V2kH.d.ts} +2 -2
  218. package/dist/testing.cjs +2 -2
  219. package/dist/testing.d.mts +4 -4
  220. package/dist/testing.d.ts +4 -4
  221. package/dist/testing.mjs +2 -2
  222. package/dist/{types.d-C5hlNbHa.d.mts → types.d-CRiwa0jj.d.mts} +1 -1
  223. package/dist/{types.d-C5hlNbHa.d.ts → types.d-CRiwa0jj.d.ts} +1 -1
  224. package/dist/{utils.d-Ba3N28fk.d.ts → utils.d-2lGEnyBc.d.ts} +1 -1
  225. package/dist/{utils.d-Cloiko8d.d.mts → utils.d-DjFApBfE.d.mts} +1 -1
  226. package/dist/version.cjs +2 -2
  227. package/dist/version.mjs +1 -1
  228. package/dist/vite.cjs +18 -17
  229. package/dist/vite.d.mts +9 -9
  230. package/dist/vite.d.ts +9 -9
  231. package/dist/vite.mjs +17 -16
  232. package/package.json +1 -1
  233. package/dist/analyzer-3AMJK27J.cjs +0 -17
  234. package/dist/chunk-GTHBWZUK.mjs +0 -17
  235. package/dist/layers-GP57TBE2.cjs +0 -21
@@ -32,7 +32,7 @@ var _chunk6AUPJYHFcjs = require('./chunk-6AUPJYHF.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkQBCR2EHAcjs = require('./chunk-QBCR2EHA.cjs');
35
+ var _chunkGEZ76JXDcjs = require('./chunk-GEZ76JXD.cjs');
36
36
 
37
37
 
38
38
 
@@ -41,7 +41,7 @@ var _chunkQBCR2EHAcjs = require('./chunk-QBCR2EHA.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkVQYGXWCScjs = require('./chunk-VQYGXWCS.cjs');
44
+ var _chunkXSE4XJKYcjs = require('./chunk-XSE4XJKY.cjs');
45
45
 
46
46
 
47
47
 
@@ -71,7 +71,7 @@ var _chunkTDAH76RRcjs = require('./chunk-TDAH76RR.cjs');
71
71
 
72
72
 
73
73
 
74
- var _chunkF5T55PYXcjs = require('./chunk-F5T55PYX.cjs');
74
+ var _chunkEIAA4W3Mcjs = require('./chunk-EIAA4W3M.cjs');
75
75
 
76
76
 
77
77
  var _chunkI5PDHLKEcjs = require('./chunk-I5PDHLKE.cjs');
@@ -117,7 +117,7 @@ var _chunkKDUVIJSZcjs = require('./chunk-KDUVIJSZ.cjs');
117
117
 
118
118
 
119
119
 
120
- var _chunkUBH2OARScjs = require('./chunk-UBH2OARS.cjs');
120
+ var _chunkPVB5UYJTcjs = require('./chunk-PVB5UYJT.cjs');
121
121
 
122
122
 
123
123
 
@@ -133,11 +133,11 @@ var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
133
133
 
134
134
 
135
135
 
136
- var _chunkKM7ZRKCHcjs = require('./chunk-KM7ZRKCH.cjs');
136
+ var _chunkGL4SPJTEcjs = require('./chunk-GL4SPJTE.cjs');
137
137
 
138
138
 
139
139
 
140
- var _chunkMBDDLYT5cjs = require('./chunk-MBDDLYT5.cjs');
140
+ var _chunkV6ACETKRcjs = require('./chunk-V6ACETKR.cjs');
141
141
 
142
142
 
143
143
 
@@ -165,7 +165,7 @@ var _chunkUOFTT6S4cjs = require('./chunk-UOFTT6S4.cjs');
165
165
 
166
166
 
167
167
 
168
- var _chunkC4DZAEVTcjs = require('./chunk-C4DZAEVT.cjs');
168
+ var _chunkMR64FNW6cjs = require('./chunk-MR64FNW6.cjs');
169
169
 
170
170
 
171
171
 
@@ -173,7 +173,7 @@ var _chunkC4DZAEVTcjs = require('./chunk-C4DZAEVT.cjs');
173
173
  var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
174
174
 
175
175
 
176
- var _chunkNNHIV3O2cjs = require('./chunk-NNHIV3O2.cjs');
176
+ var _chunkHENYWY5Jcjs = require('./chunk-HENYWY5J.cjs');
177
177
 
178
178
 
179
179
  var _chunk323JTLXRcjs = require('./chunk-323JTLXR.cjs');
@@ -194,7 +194,7 @@ var _chunk323JTLXRcjs = require('./chunk-323JTLXR.cjs');
194
194
 
195
195
 
196
196
 
197
- var _chunkPSALMEHJcjs = require('./chunk-PSALMEHJ.cjs');
197
+ var _chunkD2OU4CX2cjs = require('./chunk-D2OU4CX2.cjs');
198
198
 
199
199
 
200
200
 
@@ -214,14 +214,14 @@ var _chunkVZ2P6GRCcjs = require('./chunk-VZ2P6GRC.cjs');
214
214
  var _chunkQZRFEHMScjs = require('./chunk-QZRFEHMS.cjs');
215
215
 
216
216
 
217
- var _chunkIU4YTFFQcjs = require('./chunk-IU4YTFFQ.cjs');
217
+ var _chunkGUYGMTWAcjs = require('./chunk-GUYGMTWA.cjs');
218
218
 
219
219
 
220
220
 
221
221
  var _chunkIEZFFXSCcjs = require('./chunk-IEZFFXSC.cjs');
222
222
 
223
223
 
224
- var _chunkKBURN62Zcjs = require('./chunk-KBURN62Z.cjs');
224
+ var _chunkPFVNPOKNcjs = require('./chunk-PFVNPOKN.cjs');
225
225
 
226
226
 
227
227
 
@@ -231,8 +231,11 @@ var _chunkKBURN62Zcjs = require('./chunk-KBURN62Z.cjs');
231
231
 
232
232
 
233
233
 
234
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
234
235
 
235
- var _chunkHP7QYVSTcjs = require('./chunk-HP7QYVST.cjs');
236
+
237
+
238
+ var _chunkCYUTK4JPcjs = require('./chunk-CYUTK4JP.cjs');
236
239
 
237
240
 
238
241
 
@@ -285,11 +288,11 @@ var _chunkOCQSYDMGcjs = require('./chunk-OCQSYDMG.cjs');
285
288
  var _chunkNQUZDXKJcjs = require('./chunk-NQUZDXKJ.cjs');
286
289
 
287
290
 
288
- var _chunk5BZ7PR3Tcjs = require('./chunk-5BZ7PR3T.cjs');
291
+ var _chunkD2VLHRBNcjs = require('./chunk-D2VLHRBN.cjs');
289
292
 
290
293
 
291
294
 
292
- var _chunkXJEOHDPNcjs = require('./chunk-XJEOHDPN.cjs');
295
+ var _chunkYCGOQKVCcjs = require('./chunk-YCGOQKVC.cjs');
293
296
 
294
297
 
295
298
  var _chunkYHALJBYTcjs = require('./chunk-YHALJBYT.cjs');
@@ -317,7 +320,7 @@ var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
317
320
  var _chunkH5AC3XSEcjs = require('./chunk-H5AC3XSE.cjs');
318
321
 
319
322
 
320
- var _chunkXPVS4HKUcjs = require('./chunk-XPVS4HKU.cjs');
323
+ var _chunkJZAGIXMBcjs = require('./chunk-JZAGIXMB.cjs');
321
324
 
322
325
 
323
326
  var _chunkO7B6LJWEcjs = require('./chunk-O7B6LJWE.cjs');
@@ -683,7 +686,7 @@ async function compileFarmDocsManifest(docs, options) {
683
686
  isPathGuarded: options.isPathGuarded,
684
687
  basePath
685
688
  });
686
- const apiHandler = _chunkVQYGXWCScjs.createFarmDocsAPIHandler.call(void 0, {
689
+ const apiHandler = _chunkXSE4XJKYcjs.createFarmDocsAPIHandler.call(void 0, {
687
690
  rootDir: options.root,
688
691
  srcDir: options.srcDir,
689
692
  docs,
@@ -1110,7 +1113,7 @@ async function createFarmRouteRuntimeManifest(options) {
1110
1113
  const routes = [];
1111
1114
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
1112
1115
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
1113
- const rendering = await _chunkKM7ZRKCHcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1116
+ const rendering = await _chunkGL4SPJTEcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
1114
1117
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
1115
1118
  routes.push({
1116
1119
  kind: "page",
@@ -1852,7 +1855,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1852
1855
  // removed block used (`readFileSync` for a version, say).
1853
1856
  enforce: "pre",
1854
1857
  transform: {
1855
- filter: { id: _chunkUBH2OARScjs.fileNamePattern.call(void 0, configFiles) },
1858
+ filter: { id: _chunkPVB5UYJTcjs.fileNamePattern.call(void 0, configFiles) },
1856
1859
  async handler(code, id) {
1857
1860
  const file = id.split("?", 1)[0];
1858
1861
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -2269,7 +2272,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
2269
2272
  logLevel: "silent",
2270
2273
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
2271
2274
  resolve: {
2272
- alias: _chunkUBH2OARScjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2275
+ alias: _chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2273
2276
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
2274
2277
  },
2275
2278
  transform: {
@@ -2630,7 +2633,7 @@ function hasReactDomEdgeServerBuild(root) {
2630
2633
  }
2631
2634
  }
2632
2635
  function shouldAliasReactServerToWebBuild(renderer, preset) {
2633
- return _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) && _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge";
2636
+ return _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge";
2634
2637
  }
2635
2638
  function isCloudflareImagePreset(preset) {
2636
2639
  return preset === "cloudflare" || preset === "cloudflare-pages" || preset === "cloudflare-module";
@@ -2672,7 +2675,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2672
2675
  return {
2673
2676
  name: "farm-omitted-metadata-image-runtime",
2674
2677
  resolveId: {
2675
- filter: { id: _chunkUBH2OARScjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2678
+ filter: { id: _chunkPVB5UYJTcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2676
2679
  handler(source, importer) {
2677
2680
  if (source !== "@vercel/og") return null;
2678
2681
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2681,7 +2684,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2681
2684
  }
2682
2685
  },
2683
2686
  load: {
2684
- filter: { id: _chunkUBH2OARScjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2687
+ filter: { id: _chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2685
2688
  handler(id) {
2686
2689
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2687
2690
  return `
@@ -3157,7 +3160,7 @@ ${islandsErrors.map((error) => ` - ${error}`).join("\n")}`
3157
3160
  const productionVite = productionViteResult.value;
3158
3161
  _chunk7ZDLE77Pcjs.logger.info("\u26A1 Building application bundles with Vite Rolldown");
3159
3162
  const mobileClient = shouldBuildFarmMobileClient(config);
3160
- const rendererDisabled = _chunkHP7QYVSTcjs.isFarmRendererDisabled.call(void 0, config.renderer);
3163
+ const rendererDisabled = _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, config.renderer);
3161
3164
  const buildClientBundle = async () => {
3162
3165
  if (rendererDisabled) {
3163
3166
  await fs5.rm(clientOutputDir, { recursive: true, force: true });
@@ -3308,7 +3311,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
3308
3311
  for (const route of pageRoutes) {
3309
3312
  if (route.source === void 0 || !_chunk27IPPPCVcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
3310
3313
  const { body } = _chunk27IPPPCVcjs.parseMarkdownFrontmatter.call(void 0, route.source);
3311
- const rendering = _chunkKM7ZRKCHcjs.resolveRouteRenderingConfig.call(void 0,
3314
+ const rendering = _chunkGL4SPJTEcjs.resolveRouteRenderingConfig.call(void 0,
3312
3315
  _chunk27IPPPCVcjs.readFarmMarkdownRouteConfig.call(void 0, body),
3313
3316
  route.source
3314
3317
  );
@@ -3356,7 +3359,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
3356
3359
  const filePath = _path2.default.join(outputDir, _chunkO7B6LJWEcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
3357
3360
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
3358
3361
  try {
3359
- await fs5.writeFile(filePath, _chunkUBH2OARScjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3362
+ await fs5.writeFile(filePath, _chunkPVB5UYJTcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
3360
3363
  } catch (error) {
3361
3364
  if (error.code !== "EEXIST") throw error;
3362
3365
  }
@@ -3390,7 +3393,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
3390
3393
  }
3391
3394
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
3392
3395
  await fs5.writeFile(fontCssPath, normalizedFontCss);
3393
- await fs5.writeFile(clientCssPath, _chunkUBH2OARScjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3396
+ await fs5.writeFile(clientCssPath, _chunkPVB5UYJTcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
3394
3397
  }
3395
3398
  function importsFarmClientBlockedPackage(id, packageName) {
3396
3399
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3440,10 +3443,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3440
3443
  }
3441
3444
  }
3442
3445
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3443
- const key = _chunkPSALMEHJcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3446
+ const key = _chunkD2OU4CX2cjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3444
3447
  let plan = cache.get(key);
3445
3448
  if (!plan) {
3446
- plan = _chunkPSALMEHJcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3449
+ plan = _chunkD2OU4CX2cjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3447
3450
  cache.set(key, plan);
3448
3451
  }
3449
3452
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3472,25 +3475,25 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3472
3475
  const unsupportedIntegrationProvider = integrationProviders.find(
3473
3476
  (provider) => !_chunkN4AM7Q34cjs.providerSupportsIslands.call(void 0, provider)
3474
3477
  );
3475
- if (_optionalChain([config, 'access', _106 => _106.experimental, 'optionalAccess', _107 => _107.isolatedClientHydration]) === "enabled" && _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _108 => _108.experimental, 'optionalAccess', _109 => _109.serverComponents])) !== "rsc" && unsupportedIntegrationProvider) {
3478
+ if (_optionalChain([config, 'access', _106 => _106.experimental, 'optionalAccess', _107 => _107.isolatedClientHydration]) === "enabled" && _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) !== "rsc" && unsupportedIntegrationProvider) {
3476
3479
  _chunk7ZDLE77Pcjs.logger.warn(
3477
3480
  `[Farm.js] Client components hydrate with their route, not as islands, because integration provider "${unsupportedIntegrationProvider.name}" doesn't declare \`islands: true\`.`
3478
3481
  );
3479
3482
  }
3480
- const isolatedMode = _chunkPSALMEHJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3481
- _optionalChain([config, 'access', _110 => _110.experimental, 'optionalAccess', _111 => _111.isolatedClientHydration]),
3483
+ const isolatedMode = _chunkD2OU4CX2cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3484
+ _optionalChain([config, 'access', _108 => _108.experimental, 'optionalAccess', _109 => _109.isolatedClientHydration]),
3482
3485
  {
3483
- serverComponents: _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.serverComponents])) === "rsc",
3486
+ serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "rsc",
3484
3487
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3485
3488
  }
3486
3489
  );
3487
- const planOptions = _chunkPSALMEHJcjs.getFarmClientHydrationPlanOptions.call(void 0,
3490
+ const planOptions = _chunkD2OU4CX2cjs.getFarmClientHydrationPlanOptions.call(void 0,
3488
3491
  config.renderer,
3489
3492
  Boolean(unsupportedIntegrationProvider)
3490
3493
  );
3491
3494
  const pagePlanOptions = {
3492
3495
  ...planOptions,
3493
- serverOwners: _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _114 => _114.experimental, 'optionalAccess', _115 => _115.serverComponents])) === "islands"
3496
+ serverOwners: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands"
3494
3497
  };
3495
3498
  const layoutPlanOptions = {
3496
3499
  ...planOptions,
@@ -3498,18 +3501,18 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3498
3501
  };
3499
3502
  const layoutAppliesToRoute = _chunkIGBQSUT5cjs.routeBoundaryCoversDirectory;
3500
3503
  const routeDirectory = (route) => _nullishCoalesce(route.directory, () => ( route.pattern));
3501
- const islandsMode = _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _116 => _116.experimental, 'optionalAccess', _117 => _117.serverComponents])) === "islands";
3504
+ const islandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands";
3502
3505
  const adapterOwnsDocsRuntime = _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
3503
- const docsEntries = _optionalChain([config, 'access', _118 => _118.docs, 'optionalAccess', _119 => _119.enabled]) ? _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs).map(
3506
+ const docsEntries = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) ? _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs).map(
3504
3507
  (docsRoot) => `/${docsRoot.entry || "docs"}`.replace(/\/+/g, "/").replace(/\/$/, "") || "/"
3505
3508
  ) : [];
3506
3509
  const adapterDocsEntry = _nullishCoalesce(docsEntries[0], () => ( null));
3507
3510
  const isAdapterDocsRoute = (routePattern) => adapterOwnsDocsRuntime && docsEntries.some(
3508
3511
  (docsEntry) => docsEntry === "/" || routePattern === docsEntry || routePattern.startsWith(`${docsEntry}/`)
3509
3512
  );
3510
- const syntheticDocsEntry = _optionalChain([config, 'access', _120 => _120.docs, 'optionalAccess', _121 => _121.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3513
+ const syntheticDocsEntry = _optionalChain([config, 'access', _112 => _112.docs, 'optionalAccess', _113 => _113.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3511
3514
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3512
- const plan = (operation) => sourceSnapshot ? _chunkPSALMEHJcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkPSALMEHJcjs.withFarmSourceSnapshot.call(void 0, operation);
3515
+ const plan = (operation) => sourceSnapshot ? _chunkD2OU4CX2cjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkD2OU4CX2cjs.withFarmSourceSnapshot.call(void 0, operation);
3513
3516
  const { clientLayouts, clientRouteSlots } = plan(() => {
3514
3517
  const clientLayouts2 = layoutRoutes.map((layout) => {
3515
3518
  try {
@@ -3556,7 +3559,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3556
3559
  };
3557
3560
  }
3558
3561
  });
3559
- const markdownPagePlan = _chunkPSALMEHJcjs.createMarkdownPageHydrationPlanner.call(void 0,
3562
+ const markdownPagePlan = _chunkD2OU4CX2cjs.createMarkdownPageHydrationPlanner.call(void 0,
3560
3563
  _chunkYQ5NVEFScjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkYQ5NVEFScjs.resolveMdxConfig.call(void 0, config.mdx), root),
3561
3564
  root,
3562
3565
  isolatedMode,
@@ -3572,7 +3575,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3572
3575
  pagePlanOptions
3573
3576
  )
3574
3577
  }));
3575
- _chunkPSALMEHJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3578
+ _chunkD2OU4CX2cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3576
3579
  clientLayouts2.map((layout) => ({
3577
3580
  pattern: layout.pattern,
3578
3581
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3606,7 +3609,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3606
3609
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3607
3610
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3608
3611
  _chunk7ZDLE77Pcjs.logger.warn(
3609
- `\u26A0\uFE0F ${_chunkPSALMEHJcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3612
+ `\u26A0\uFE0F ${_chunkD2OU4CX2cjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3610
3613
  );
3611
3614
  }
3612
3615
  }
@@ -3641,7 +3644,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3641
3644
  );
3642
3645
  if (metadata.suppressedAsyncHydration) {
3643
3646
  _chunk7ZDLE77Pcjs.logger.warn(
3644
- `\u26A0\uFE0F ${_chunkPSALMEHJcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3647
+ `\u26A0\uFE0F ${_chunkD2OU4CX2cjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3645
3648
  );
3646
3649
  }
3647
3650
  const slotBoundaries = serverSlotPlans.filter(
@@ -3649,7 +3652,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3649
3652
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3650
3653
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3651
3654
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3652
- const islandStrategy = _chunkUBH2OARScjs.resolveFarmRouteRootStrategy.call(void 0,
3655
+ const islandStrategy = _chunkPVB5UYJTcjs.resolveFarmRouteRootStrategy.call(void 0,
3653
3656
  route,
3654
3657
  metadata,
3655
3658
  clientLayouts2,
@@ -3668,7 +3671,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3668
3671
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3669
3672
  ],
3670
3673
  // The server renders a server tree only below a hydrating layout.
3671
- ..._chunkPSALMEHJcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3674
+ ..._chunkD2OU4CX2cjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3672
3675
  });
3673
3676
  _chunk7ZDLE77Pcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3674
3677
  }
@@ -3705,7 +3708,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3705
3708
  }
3706
3709
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3707
3710
  try {
3708
- const metadata = _chunkPSALMEHJcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3711
+ const metadata = _chunkD2OU4CX2cjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3709
3712
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3710
3713
  } catch (error) {
3711
3714
  _chunk7ZDLE77Pcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
@@ -3749,7 +3752,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3749
3752
  srcDir,
3750
3753
  adapterOwnsDocsRuntime ? false : _chunk3EZHMZGDcjs.isFarmDocsSearchEnabled.call(void 0, config.docs),
3751
3754
  adapterOwnsDocsRuntime ? void 0 : _chunk3EZHMZGDcjs.resolveFarmDocsSearchClientModule.call(void 0, root),
3752
- _optionalChain([config, 'access', _122 => _122.docs, 'optionalAccess', _123 => _123.enabled]) ? _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs).map((docsRoot) => docsRoot.entry) : void 0,
3755
+ _optionalChain([config, 'access', _114 => _114.docs, 'optionalAccess', _115 => _115.enabled]) ? _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs).map((docsRoot) => docsRoot.entry) : void 0,
3753
3756
  adapterOwnsDocsRuntime ? _chunkVZ2P6GRCcjs.getFarmDocsAdapterUIModule.call(void 0, config.docs.adapter) : void 0,
3754
3757
  config.i18n,
3755
3758
  config.plugins,
@@ -3758,11 +3761,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3758
3761
  config.trailingSlash,
3759
3762
  _chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, config.integrations),
3760
3763
  config.basePath,
3761
- _chunkUBH2OARScjs.generateClientCachePersistenceCode.call(void 0, _chunkUBH2OARScjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3764
+ _chunkPVB5UYJTcjs.generateClientCachePersistenceCode.call(void 0, _chunkPVB5UYJTcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3762
3765
  adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3763
- _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _124 => _124.experimental, 'optionalAccess', _125 => _125.serverComponents])) === "islands",
3766
+ _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands",
3764
3767
  platform,
3765
- islandsMode ? _chunkPSALMEHJcjs.collectFarmServerStylesheets.call(void 0,
3768
+ islandsMode ? _chunkD2OU4CX2cjs.collectFarmServerStylesheets.call(void 0,
3766
3769
  [
3767
3770
  ...layoutRoutes.map((layout) => layout.modulePath),
3768
3771
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3786,7 +3789,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3786
3789
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-root.tsx"), clientEntry.root);
3787
3790
  }
3788
3791
  const clientInput = { [entryName]: clientEntryPath };
3789
- if (platform === "web" && _chunkUBH2OARScjs.canBootFarmIslandsClient.call(void 0, config)) {
3792
+ if (platform === "web" && _chunkPVB5UYJTcjs.canBootFarmIslandsClient.call(void 0, config)) {
3790
3793
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3791
3794
  await fs5.writeFile(
3792
3795
  clientBootPath,
@@ -3797,7 +3800,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3797
3800
  const hasScopedPostcssConfig = hasProjectPostcssConfig(root);
3798
3801
  let postcssSearchPath;
3799
3802
  let tailwindVitePlugin = void 0;
3800
- const rendererVitePlugins = await _chunkHP7QYVSTcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
3803
+ const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
3801
3804
  ssr: false,
3802
3805
  buildLifetime: rendererBuildLifetime
3803
3806
  });
@@ -3828,11 +3831,11 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3828
3831
  target: FARM_CLIENT_BUILD_TARGET,
3829
3832
  // Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
3830
3833
  // `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
3831
- ..._optionalChain([config, 'access', _126 => _126.vite, 'optionalAccess', _127 => _127.build, 'optionalAccess', _128 => _128.target]) === void 0 && _optionalChain([config, 'access', _129 => _129.vite, 'optionalAccess', _130 => _130.build, 'optionalAccess', _131 => _131.cssTarget]) === void 0 && (_chunkADCVSTFVcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkADCVSTFVcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _132 => _132.vite, 'optionalAccess', _133 => _133.plugins]))) ? { cssTarget: _chunkADCVSTFVcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3834
+ ..._optionalChain([config, 'access', _116 => _116.vite, 'optionalAccess', _117 => _117.build, 'optionalAccess', _118 => _118.target]) === void 0 && _optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.cssTarget]) === void 0 && (_chunkADCVSTFVcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkADCVSTFVcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.plugins]))) ? { cssTarget: _chunkADCVSTFVcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3832
3835
  outDir: outputDir,
3833
3836
  emptyOutDir: platform === "web",
3834
3837
  // Never public: see resolveFarmClientSourcemap.
3835
- sourcemap: resolveFarmClientSourcemap(_optionalChain([config, 'access', _134 => _134.vite, 'optionalAccess', _135 => _135.build, 'optionalAccess', _136 => _136.sourcemap])),
3838
+ sourcemap: resolveFarmClientSourcemap(_optionalChain([config, 'access', _124 => _124.vite, 'optionalAccess', _125 => _125.build, 'optionalAccess', _126 => _126.sourcemap])),
3836
3839
  assetsInlineLimit: 0,
3837
3840
  cssCodeSplit: false,
3838
3841
  // Bundle all CSS into one file
@@ -3844,7 +3847,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3844
3847
  hashCharacters: "hex",
3845
3848
  // Use predictable name for CSS so we can reference it in SSR HTML
3846
3849
  assetFileNames: (assetInfo) => {
3847
- if (_optionalChain([assetInfo, 'access', _137 => _137.name, 'optionalAccess', _138 => _138.endsWith, 'call', _139 => _139(".css")])) {
3850
+ if (_optionalChain([assetInfo, 'access', _127 => _127.name, 'optionalAccess', _128 => _128.endsWith, 'call', _129 => _129(".css")])) {
3848
3851
  return `${entryName}.css`;
3849
3852
  }
3850
3853
  return "assets/[name]-h[hash][extname]";
@@ -3861,7 +3864,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3861
3864
  }
3862
3865
  },
3863
3866
  plugins: [
3864
- _chunkUBH2OARScjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3867
+ _chunkPVB5UYJTcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3865
3868
  createFarmPrivateClientSourcemapsPlugin({
3866
3869
  outDir: _path2.default.join(
3867
3870
  _path2.default.dirname(outputDir),
@@ -3882,7 +3885,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3882
3885
  ],
3883
3886
  rootModules: [_path2.default.join(clientEntryDir, "farm-client-root.tsx")],
3884
3887
  // What the islands entry loads with its first render or hydration (RFC 0010).
3885
- ...islandsMode && _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? {
3888
+ ...islandsMode && _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? {
3886
3889
  rendererImports: [
3887
3890
  "react",
3888
3891
  "react-dom/client",
@@ -3915,7 +3918,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3915
3918
  // unless the app's config or one of its plugins splits chunks.
3916
3919
  createFarmClientChunksPlugin({
3917
3920
  inlineCommonChunks: platform === "web",
3918
- islandsReact: islandsMode && _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer)
3921
+ islandsReact: islandsMode && _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer)
3919
3922
  }),
3920
3923
  farmServerOnlyEntriesPlugin({
3921
3924
  // A desktop app's client is the web target, and its `platform()` says "desktop".
@@ -3923,7 +3926,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3923
3926
  distDir: config.distDir || ".farm"
3924
3927
  }),
3925
3928
  farmNavigationPlugin(config.renderer),
3926
- _chunkUBH2OARScjs.farmDocsClientConfigPlugin.call(void 0,
3929
+ _chunkPVB5UYJTcjs.farmDocsClientConfigPlugin.call(void 0,
3927
3930
  adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3928
3931
  ),
3929
3932
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3956,7 +3959,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3956
3959
  },
3957
3960
  load: {
3958
3961
  filter: {
3959
- id: _chunkUBH2OARScjs.exactIdPattern.call(void 0, [
3962
+ id: _chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [
3960
3963
  "\0empty-module",
3961
3964
  "\0empty-api-route",
3962
3965
  "\0farm-i18n-client-bridge",
@@ -3994,7 +3997,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3994
3997
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3995
3998
  pluginManager
3996
3999
  ),
3997
- _chunkPSALMEHJcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
4000
+ _chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3998
4001
  ],
3999
4002
  mode: "production",
4000
4003
  css: postcssSearchPath ? {
@@ -4002,7 +4005,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
4002
4005
  } : void 0,
4003
4006
  // Ensure React is bundled for client
4004
4007
  resolve: {
4005
- alias: _chunkUBH2OARScjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
4008
+ alias: _chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
4006
4009
  dedupe: [...config.renderer.dedupe || []]
4007
4010
  },
4008
4011
  // Optimize dependencies - exclude server-side code from client bundle
@@ -4016,7 +4019,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
4016
4019
  }
4017
4020
  };
4018
4021
  await viteBuild(
4019
- _chunkUBH2OARScjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
4022
+ _chunkPVB5UYJTcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
4020
4023
  );
4021
4024
  if (platform === "mobile") {
4022
4025
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -4110,9 +4113,9 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
4110
4113
  return response;
4111
4114
  }
4112
4115
 
4113
- ${streamNavigations ? `${_chunkUBH2OARScjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
4116
+ ${streamNavigations ? `${_chunkPVB5UYJTcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
4114
4117
 
4115
- ${_chunkUBH2OARScjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
4118
+ ${_chunkPVB5UYJTcjs.FARM_EARLY_NAVIGATION_SOURCE}` : ""}
4116
4119
 
4117
4120
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
4118
4121
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -5285,7 +5288,7 @@ function readFarmEntryImports(source) {
5285
5288
  for (const match of source.matchAll(/^import\s+([^"';]+?)\s+from\s+(["'][^"']+["'])/gm)) {
5286
5289
  const from = match[2];
5287
5290
  const named = /\{([^}]*)\}/.exec(match[1]);
5288
- for (const specifier of _nullishCoalesce(_optionalChain([named, 'optionalAccess', _140 => _140[1], 'optionalAccess', _141 => _141.split, 'call', _142 => _142(",")]), () => ( []))) {
5291
+ for (const specifier of _nullishCoalesce(_optionalChain([named, 'optionalAccess', _130 => _130[1], 'optionalAccess', _131 => _131.split, 'call', _132 => _132(",")]), () => ( []))) {
5289
5292
  const [imported, local] = specifier.trim().split(/\s+as\s+/);
5290
5293
  if (imported)
5291
5294
  bindings.push({ local: _nullishCoalesce(local, () => ( imported)), clause: `{ ${specifier.trim()} }`, from });
@@ -5420,7 +5423,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
5420
5423
  secure: false
5421
5424
  },
5422
5425
  direction: {}
5423
- }, plugins = [], renderer = _chunkHP7QYVSTcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
5426
+ }, plugins = [], renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
5424
5427
  const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
5425
5428
  const clientPluginEntry = _chunkADCVSTFVcjs.generateFarmClientPluginEntryCode.call(void 0,
5426
5429
  plugins,
@@ -5429,11 +5432,11 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
5429
5432
  publicRuntimeConfig,
5430
5433
  platform
5431
5434
  );
5432
- const appSetupPath = _chunkHP7QYVSTcjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
5433
- const lazyRenderer = islandValues && platform !== "mobile" && _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) && clientRouteSlots.length === 0;
5435
+ const appSetupPath = _chunkLEZJZX4Ccjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
5436
+ const lazyRenderer = islandValues && platform !== "mobile" && _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && clientRouteSlots.length === 0;
5434
5437
  const lazyRoot = islandValues && platform !== "mobile";
5435
5438
  const lazyMatcher = lazyRoot && clientPages.length > 0;
5436
- const rendererClientImports = lazyRenderer ? `import { holdFarmIslandInteractions, restorePagePosition, watchFarmIslandTriggers } from "@farm.js/core/internal/client-runtime";` : _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
5439
+ const rendererClientImports = lazyRenderer ? `import { holdFarmIslandInteractions, restorePagePosition, watchFarmIslandTriggers } from "@farm.js/core/internal/client-runtime";` : _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? `import React from "react";
5437
5440
  import { createRoot, hydrateRoot } from "react-dom/client";
5438
5441
  import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : (
5439
5442
  // Named exports only, as the server entry and the development client read them. A copy
@@ -5446,8 +5449,8 @@ __farmConfigureApp(__farmAppSetup);` : `import * as __farmRendererClient from ${
5446
5449
  import { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};
5447
5450
  const React = { ...__farmRendererClient };`
5448
5451
  );
5449
- const hydrateFarmRouteCall = _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
5450
- const providerClientCode = _chunkUBH2OARScjs.generateFarmIntegrationProviderClientCode.call(void 0,
5452
+ const hydrateFarmRouteCall = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);";
5453
+ const providerClientCode = _chunkPVB5UYJTcjs.generateFarmIntegrationProviderClientCode.call(void 0,
5451
5454
  integrationProviders,
5452
5455
  root,
5453
5456
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -5557,7 +5560,7 @@ function isFarmDocsPath() {
5557
5560
  docsAdapterUI,
5558
5561
  docsConfigModule,
5559
5562
  // Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
5560
- _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
5563
+ _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
5561
5564
  );
5562
5565
  if (clientPages.length === 0 && clientRouteSlots.length === 0 && !providerClientCode.hasProviders) {
5563
5566
  return `
@@ -5581,7 +5584,7 @@ mountFarmDocsSearch();
5581
5584
 
5582
5585
  ${generateUniversalRouterStateRuntime()}
5583
5586
 
5584
- ${_chunkUBH2OARScjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5587
+ ${_chunkPVB5UYJTcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
5585
5588
 
5586
5589
  // SPA Router for server-rendered pages (HTML swap)
5587
5590
  const spaRouter = {
@@ -5885,7 +5888,7 @@ installFarmLinkPrefetch();
5885
5888
  }
5886
5889
  });
5887
5890
  const isolatedHydrationEnabled = isolatedBoundaryModules.size > 0;
5888
- const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) && _chunkHP7QYVSTcjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
5891
+ const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _chunkLEZJZX4Ccjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
5889
5892
  const serverTreeEnabled = isolatedHydrationEnabled && clientPages.some((page) => page.serverTree);
5890
5893
  const islandsRuntimeExports = [
5891
5894
  "createFarmIsolatedHydrationRuntime",
@@ -6123,7 +6126,7 @@ ${layoutRegistrations.join(",\n")}
6123
6126
  ${generateFarmClientRouteMatchSource({ lazyMatcher })}
6124
6127
 
6125
6128
  ${layoutComponentsRuntime}/*farm-root-start*/
6126
- ${_chunkUBH2OARScjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
6129
+ ${_chunkPVB5UYJTcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
6127
6130
  // Wrap a page element with applicable layouts
6128
6131
  function wrapWithLayouts(pageElement, pathname, params) {
6129
6132
  const layouts = getApplicableLayouts(pathname);
@@ -6158,7 +6161,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
6158
6161
  return React.createElement("div", props, pageElement);
6159
6162
  }
6160
6163
  let farmLastRouteState = null;
6161
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkUBH2OARScjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
6164
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkPVB5UYJTcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
6162
6165
  function farmTreeLayoutsOf(pathname) {
6163
6166
  return getApplicableLayouts(pathname).filter(function(layout) {
6164
6167
  return layout.serverTree === true;
@@ -6273,7 +6276,7 @@ async function createMatchedHydrationRoute(matched, pathname, searchParams, navi
6273
6276
 
6274
6277
  if (!pageElement) return null;
6275
6278
  if (!hydrateLayouts) {
6276
- ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, renderer) ? "if (hydrationContainer) pageElement = restorePagePosition(React, hydrationContainer, pageElement);" : ""}
6279
+ ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "if (hydrationContainer) pageElement = restorePagePosition(React, hydrationContainer, pageElement);" : ""}
6277
6280
  return createFarmRouteState(pageElement, pathname, params, false);
6278
6281
  }
6279
6282
  if (matched.route.pageShouldHydrate) {
@@ -6302,7 +6305,7 @@ function createFarmRouteState(page, pathname, params, includeLayouts) {
6302
6305
 
6303
6306
  function hydrateFarmRoute(container, route) {
6304
6307
  farmLastRouteState = route;
6305
- ${_chunkHP7QYVSTcjs.getFarmRendererCapabilities.call(void 0, renderer).hydrationFallback ? `try {
6308
+ ${_chunkLEZJZX4Ccjs.getFarmRendererCapabilities.call(void 0, renderer).hydrationFallback ? `try {
6306
6309
  ${hydrateFarmRouteCall}
6307
6310
  } catch (error) {
6308
6311
  // The renderer opted in with capabilities.hydrationFallback, as development always does. The
@@ -6792,7 +6795,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6792
6795
  return true;
6793
6796
  }` : ""}
6794
6797
 
6795
- ${_chunkUBH2OARScjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6798
+ ${_chunkPVB5UYJTcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6796
6799
 
6797
6800
  function activateNavigationScripts(root) {
6798
6801
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6898,7 +6901,7 @@ function getLayoutShell(root, patterns, index) {
6898
6901
  return shell.innerHTML;
6899
6902
  }
6900
6903
 
6901
- ${islandValues ? _chunkUBH2OARScjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6904
+ ${islandValues ? _chunkPVB5UYJTcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6902
6905
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6903
6906
  if (refresh) revealFarmStreamedContent(nextRoot);
6904
6907
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -7589,7 +7592,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7589
7592
  const hasScopedPostcssConfig = hasProjectPostcssConfig(root);
7590
7593
  let postcssConfigDir;
7591
7594
  let tailwindVitePlugin = void 0;
7592
- const rendererVitePlugins = await _chunkHP7QYVSTcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
7595
+ const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
7593
7596
  ssr: true,
7594
7597
  buildLifetime: rendererBuildLifetime
7595
7598
  });
@@ -7679,10 +7682,10 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7679
7682
  modulePath: entry.modulePath
7680
7683
  })) : [];
7681
7684
  const i18nCatalogs = config.i18n.enabled ? (await _chunkYHALJBYTcjs.readFarmI18nCatalogs.call(void 0, config.i18n)).catalogs : {};
7682
- const appDirs = _chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config);
7685
+ const appDirs = _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config);
7683
7686
  let openAPIReference = null;
7684
7687
  if (config.openapi.enabled && config.openapi.route) {
7685
- const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-3DFQDKJ6.cjs");
7688
+ const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-YRIENS63.cjs");
7686
7689
  const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
7687
7690
  mode: "production",
7688
7691
  apiBaseURL: config.api.baseURL,
@@ -7707,7 +7710,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7707
7710
  }))
7708
7711
  );
7709
7712
  const instrumentationPath = _chunkI5PDHLKEcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
7710
- const notFoundPath = _chunkUBH2OARScjs.resolveFarmNotFoundComponentPath.call(void 0,
7713
+ const notFoundPath = _chunkPVB5UYJTcjs.resolveFarmNotFoundComponentPath.call(void 0,
7711
7714
  config,
7712
7715
  appDirs,
7713
7716
  routeManager.getRendererNotFoundPath()
@@ -7732,9 +7735,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7732
7735
  (provider) => provider.component || provider.type === "clerk"
7733
7736
  );
7734
7737
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
7735
- const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _143 => _143.mdx, 'optionalAccess', _144 => _144.components]));
7738
+ const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _133 => _133.mdx, 'optionalAccess', _134 => _134.components]));
7736
7739
  const hasMiddlewareConfig = _chunkIGBQSUT5cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7737
- const hasRouteContextConfig = _chunkF5T55PYXcjs.hasCustomFarmRouteContext.call(void 0, config);
7740
+ const hasRouteContextConfig = _chunkEIAA4W3Mcjs.hasCustomFarmRouteContext.call(void 0, config);
7738
7741
  const hasServerRuntimePlugins = _chunkADCVSTFVcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
7739
7742
  const hasPluginRoutes = hasFarmPluginRoutes(config);
7740
7743
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
@@ -7746,7 +7749,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7746
7749
  );
7747
7750
  if (_chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
7748
7751
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
7749
- _chunkVQYGXWCScjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7752
+ _chunkXSE4XJKYcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
7750
7753
  config.docs,
7751
7754
  { root, srcDir: config.srcDir },
7752
7755
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -7754,9 +7757,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7754
7757
  );
7755
7758
  }
7756
7759
  const farmDocsCspNonceMarker = _chunkIEZFFXSCcjs.createFarmCspNonce.call(void 0, config.security);
7757
- const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _145 => _145.docs, 'optionalAccess', _146 => _146.enabled]) && _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkIBZW57NWcjs._runWithFarmCspNonce.call(void 0,
7760
+ const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _135 => _135.docs, 'optionalAccess', _136 => _136.enabled]) && _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunkIBZW57NWcjs._runWithFarmCspNonce.call(void 0,
7758
7761
  farmDocsCspNonceMarker,
7759
- async () => _optionalChain([config, 'access', _147 => _147.docs, 'access', _148 => _148.adapter, 'optionalAccess', _149 => _149.server]) ? await _chunkVQYGXWCScjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7762
+ async () => _optionalChain([config, 'access', _137 => _137.docs, 'access', _138 => _138.adapter, 'optionalAccess', _139 => _139.server]) ? await _chunkXSE4XJKYcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
7760
7763
  root,
7761
7764
  srcDir: config.srcDir,
7762
7765
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7816,7 +7819,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7816
7819
  (image) => image.sourceType === "module"
7817
7820
  );
7818
7821
  const externalMetadataImageRuntime = useExternalMetadataImageRuntime && !omitCoreMetadataImageRuntime ? ["@vercel/og"] : [];
7819
- const rendererOptionalExternals = _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? [] : [
7822
+ const rendererOptionalExternals = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? [] : [
7820
7823
  "react",
7821
7824
  "react/jsx-runtime",
7822
7825
  "react/jsx-dev-runtime",
@@ -7870,7 +7873,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7870
7873
  // Adapters can render provider scripts by serializing function source.
7871
7874
  // keepNames injects helper calls into those functions; after Nitro
7872
7875
  // minifies the server chunk the helper is no longer in script scope.
7873
- keepNames: !(_optionalChain([config, 'access', _150 => _150.docs, 'optionalAccess', _151 => _151.enabled]) && _optionalChain([config, 'access', _152 => _152.docs, 'access', _153 => _153.adapter, 'optionalAccess', _154 => _154.server])),
7876
+ keepNames: !(_optionalChain([config, 'access', _140 => _140.docs, 'optionalAccess', _141 => _141.enabled]) && _optionalChain([config, 'access', _142 => _142.docs, 'access', _143 => _143.adapter, 'optionalAccess', _144 => _144.server])),
7874
7877
  jsxDev: false
7875
7878
  },
7876
7879
  // SSR configuration to externalize problematic modules
@@ -7920,10 +7923,10 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7920
7923
  define: {
7921
7924
  __FARM_API_BASE_URL__: JSON.stringify(config.api.baseURL),
7922
7925
  __FARM_ENV__: JSON.stringify(_chunkTP7JAC3Tcjs.createBundledEnv.call(void 0, config.env)),
7923
- __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _155 => _155.env, 'optionalAccess', _156 => _156.public]) || {})
7926
+ __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _145 => _145.env, 'optionalAccess', _146 => _146.public]) || {})
7924
7927
  },
7925
7928
  plugins: [
7926
- _chunkUBH2OARScjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7929
+ _chunkPVB5UYJTcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7927
7930
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7928
7931
  ...rendererVitePlugins,
7929
7932
  ...config.vite.plugins || [],
@@ -7955,7 +7958,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7955
7958
  },
7956
7959
  pluginManager
7957
7960
  ),
7958
- _chunkPSALMEHJcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7961
+ _chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7959
7962
  ...hasRuntimeConfigModule ? [
7960
7963
  farmStripPlatformConfigPlugin(
7961
7964
  [
@@ -7967,7 +7970,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7967
7970
  {
7968
7971
  name: "farm-virtual-ssr-entry",
7969
7972
  resolveId: {
7970
- filter: { id: _chunkUBH2OARScjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7973
+ filter: { id: _chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7971
7974
  handler(id) {
7972
7975
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7973
7976
  return virtualEntryId;
@@ -7976,7 +7979,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7976
7979
  }
7977
7980
  },
7978
7981
  load: {
7979
- filter: { id: _chunkUBH2OARScjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7982
+ filter: { id: _chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7980
7983
  handler(id) {
7981
7984
  if (id === virtualEntryId) {
7982
7985
  return virtualEntryCode;
@@ -7988,7 +7991,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7988
7991
  {
7989
7992
  name: "capture-ssr-bundle",
7990
7993
  configResolved(config2) {
7991
- polyroute = _chunkXJEOHDPNcjs.hasPolyroutePlugin.call(void 0, config2.plugins);
7994
+ polyroute = _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, config2.plugins);
7992
7995
  },
7993
7996
  enforce: "post",
7994
7997
  generateBundle: {
@@ -8016,7 +8019,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
8016
8019
  resolve: {
8017
8020
  alias: [
8018
8021
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
8019
- ...Object.entries(_chunkUBH2OARScjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
8022
+ ...Object.entries(_chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
8020
8023
  ([find, replacement]) => ({ find, replacement })
8021
8024
  )
8022
8025
  ],
@@ -8024,7 +8027,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
8024
8027
  dedupe: [...config.renderer.dedupe || []]
8025
8028
  }
8026
8029
  };
8027
- await viteBuild(_chunkUBH2OARScjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
8030
+ await viteBuild(_chunkPVB5UYJTcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
8028
8031
  } finally {
8029
8032
  if (postcssConfigDir) {
8030
8033
  try {
@@ -8061,7 +8064,7 @@ function readFarmPageLastModified(pageRoutes) {
8061
8064
  return lastModified;
8062
8065
  }
8063
8066
  function getFarmDocsGuardedPaths(config, middlewareRoutes) {
8064
- if (!_optionalChain([config, 'access', _157 => _157.docs, 'optionalAccess', _158 => _158.enabled])) return [];
8067
+ if (!_optionalChain([config, 'access', _147 => _147.docs, 'optionalAccess', _148 => _148.enabled])) return [];
8065
8068
  const options = { root: config.root, srcDir: config.srcDir };
8066
8069
  const guards = {
8067
8070
  config: { middleware: config.middleware, integrations: config.integrations },
@@ -8072,15 +8075,15 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
8072
8075
  ).flatMap((page) => [page.href, _chunk4A6WSOZHcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkIGBQSUT5cjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
8073
8076
  }
8074
8077
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
8075
- const llmsTxt = _optionalChain([agent, 'optionalAccess', _159 => _159.llmsTxt]);
8078
+ const llmsTxt = _optionalChain([agent, 'optionalAccess', _149 => _149.llmsTxt]);
8076
8079
  const ownedByFile = (kind) => applicationMetadataRoutes.some(
8077
8080
  (metadata) => metadata.kind === kind && metadata.pattern === "/"
8078
8081
  );
8079
8082
  return [
8080
- ..._optionalChain([llmsTxt, 'optionalAccess', _160 => _160.enabled]) || ownedByFile("llms") ? ["/llms.txt"] : [],
8081
- ..._optionalChain([llmsTxt, 'optionalAccess', _161 => _161.enabled]) && llmsTxt.full || ownedByFile("llms-full") ? ["/llms-full.txt"] : [],
8082
- ..._optionalChain([agent, 'optionalAccess', _162 => _162.sitemap, 'optionalAccess', _163 => _163.enabled]) || ownedByFile("sitemap") ? ["/sitemap.xml"] : [],
8083
- ..._optionalChain([agent, 'optionalAccess', _164 => _164.crawlers, 'optionalAccess', _165 => _165.enabled]) || ownedByFile("robots") ? ["/robots.txt"] : []
8083
+ ..._optionalChain([llmsTxt, 'optionalAccess', _150 => _150.enabled]) || ownedByFile("llms") ? ["/llms.txt"] : [],
8084
+ ..._optionalChain([llmsTxt, 'optionalAccess', _151 => _151.enabled]) && llmsTxt.full || ownedByFile("llms-full") ? ["/llms-full.txt"] : [],
8085
+ ..._optionalChain([agent, 'optionalAccess', _152 => _152.sitemap, 'optionalAccess', _153 => _153.enabled]) || ownedByFile("sitemap") ? ["/sitemap.xml"] : [],
8086
+ ..._optionalChain([agent, 'optionalAccess', _154 => _154.crawlers, 'optionalAccess', _155 => _155.enabled]) || ownedByFile("robots") ? ["/robots.txt"] : []
8084
8087
  ];
8085
8088
  }
8086
8089
  function generateFarmDocsAdapterHandlerArguments(docs, docsConfigModulePath) {
@@ -8091,7 +8094,7 @@ function generateFarmDocsAdapterHandlerArguments(docs, docsConfigModulePath) {
8091
8094
  docsPath: ${root}.entry,
8092
8095
  contentDir: ${root}.contentDir || ${root}.config?.contentDir,
8093
8096
  }`;
8094
- if (_optionalChain([docs, 'optionalAccess', _166 => _166.roots, 'optionalAccess', _167 => _167.length])) {
8097
+ if (_optionalChain([docs, 'optionalAccess', _156 => _156.roots, 'optionalAccess', _157 => _157.length])) {
8095
8098
  return {
8096
8099
  factory: "createFarmDocsAdapterMultiRuntimeHandler",
8097
8100
  config: `[farmDocsResolvedConfig, ...farmDocsResolvedConfig.roots].map((farmDocsRoot) => ({
@@ -8107,7 +8110,7 @@ function generateFarmDocsAdapterHandlerArguments(docs, docsConfigModulePath) {
8107
8110
  }
8108
8111
  function generateFarmDocsRuntimeConfigExpression(docs, precompiled = false, bundledRootPaths = []) {
8109
8112
  if (!docs.enabled) return "null";
8110
- const serializableDocs = _optionalChain([docs, 'access', _168 => _168.roots, 'optionalAccess', _169 => _169.length]) ? {
8113
+ const serializableDocs = _optionalChain([docs, 'access', _158 => _158.roots, 'optionalAccess', _159 => _159.length]) ? {
8111
8114
  ...docs,
8112
8115
  // React elements and functions do not survive JSON; see runtimeConfig below.
8113
8116
  roots: docs.roots.map((docsRoot) => ({ ...docsRoot, runtimeConfig: void 0 }))
@@ -8141,7 +8144,7 @@ function generateFarmDocsRuntimeConfigExpression(docs, precompiled = false, bund
8141
8144
  },
8142
8145
  }
8143
8146
  : ${JSON.stringify({ ...serializableDocs, runtimeConfig: void 0 })}`;
8144
- if (!_optionalChain([docs, 'access', _170 => _170.roots, 'optionalAccess', _171 => _171.length])) return expression;
8147
+ if (!_optionalChain([docs, 'access', _160 => _160.roots, 'optionalAccess', _161 => _161.length])) return expression;
8145
8148
  return `((farmDocs, farmDocsBundledRootPaths) => ({
8146
8149
  ...farmDocs,
8147
8150
  roots: farmDocs.roots.map((farmDocsRoot, index) => {
@@ -8159,7 +8162,7 @@ function toVirtualEntryImportSpecifier(modulePath) {
8159
8162
  return JSON.stringify(modulePath.replace(/\\/g, "/"));
8160
8163
  }
8161
8164
  function generateNativeAuthIntegrationSource(auth) {
8162
- if (_optionalChain([auth, 'optionalAccess', _172 => _172.enabled]) !== true) {
8165
+ if (_optionalChain([auth, 'optionalAccess', _162 => _162.enabled]) !== true) {
8163
8166
  return { importSource: "", registerSource: "" };
8164
8167
  }
8165
8168
  return {
@@ -8463,7 +8466,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
8463
8466
  `.trim();
8464
8467
  }
8465
8468
  function generateFarmRendererAppSetupServerCode(config) {
8466
- const appSetupPath = _chunkHP7QYVSTcjs.resolveFarmRendererAppSetup.call(void 0, config.root || process.cwd(), config.renderer);
8469
+ const appSetupPath = _chunkLEZJZX4Ccjs.resolveFarmRendererAppSetup.call(void 0, config.root || process.cwd(), config.renderer);
8467
8470
  if (!appSetupPath) return "";
8468
8471
  return `
8469
8472
  import __farmAppSetup from ${JSON.stringify(_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, appSetupPath))};
@@ -8473,46 +8476,46 @@ if (typeof ReactDOMServer.configureApp !== "function") {
8473
8476
  ReactDOMServer.configureApp(__farmAppSetup);`;
8474
8477
  }
8475
8478
  function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlots, errorRoutes, metadataImageRoutes, applicationMetadataRoutes, middlewareRoutes, redirectRoutes, configuredRewriteRoutes, configuredHeaderRoutes, openAPIReference, notFoundPath, instrumentationPath, config, farmDocsPrecompiledManifest, configModulePath, hasServerRuntimeIntegrations, hasRuntimeIntegrationConfig, hasConfiguredRuntimePlugins, hasServerRuntimePlugins, preset, i18nCatalogs, isolatedClientBoundaryModules, hydrationPlanCache, mobileShellLoadingRoutes = [], farmDocsAnalyticsPages = []) {
8476
- const farmRendererDisabled = _chunkHP7QYVSTcjs.isFarmRendererDisabled.call(void 0, config.renderer);
8477
- const farmStaticNotFoundBuild = preset === "vercel" && _optionalChain([config, 'access', _173 => _173.experimental, 'optionalAccess', _174 => _174.staticNotFound]) === true && !farmRendererDisabled;
8479
+ const farmRendererDisabled = _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, config.renderer);
8480
+ const farmStaticNotFoundBuild = preset === "vercel" && _optionalChain([config, 'access', _163 => _163.experimental, 'optionalAccess', _164 => _164.staticNotFound]) === true && !farmRendererDisabled;
8478
8481
  const searchPreserveRoutes = pageRoutes.flatMap(
8479
8482
  (route) => route.searchPreserve ? [route.searchPreserve] : []
8480
8483
  );
8481
8484
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
8482
- const farmIslandsMode = _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _175 => _175.experimental, 'optionalAccess', _176 => _176.serverComponents])) === "islands";
8483
- const farmRendererActions = _chunkUBH2OARScjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8484
- const farmClientBoot = _chunkUBH2OARScjs.canBootFarmIslandsClient.call(void 0, config);
8485
+ const farmIslandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands";
8486
+ const farmRendererActions = _chunkPVB5UYJTcjs.resolveFarmIslxActionsMode.call(void 0, config) === "renderer";
8487
+ const farmClientBoot = _chunkPVB5UYJTcjs.canBootFarmIslandsClient.call(void 0, config);
8485
8488
  const farmMobileClient = shouldBuildFarmMobileClient(config);
8486
8489
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
8487
8490
  const hasCompressionRuntime = config.compress && _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "edge";
8488
- const servesAgentRobotsTxt = Boolean(_optionalChain([config, 'access', _177 => _177.agent, 'optionalAccess', _178 => _178.crawlers, 'optionalAccess', _179 => _179.enabled])) && !applicationMetadataRoutes.some(
8491
+ const servesAgentRobotsTxt = Boolean(_optionalChain([config, 'access', _165 => _165.agent, 'optionalAccess', _166 => _166.crawlers, 'optionalAccess', _167 => _167.enabled])) && !applicationMetadataRoutes.some(
8489
8492
  (metadata) => metadata.kind === "robots" && metadata.pattern === "/"
8490
8493
  );
8491
- const servesAgentSitemap = Boolean(_optionalChain([config, 'access', _180 => _180.agent, 'optionalAccess', _181 => _181.sitemap, 'optionalAccess', _182 => _182.enabled])) && !applicationMetadataRoutes.some(
8494
+ const servesAgentSitemap = Boolean(_optionalChain([config, 'access', _168 => _168.agent, 'optionalAccess', _169 => _169.sitemap, 'optionalAccess', _170 => _170.enabled])) && !applicationMetadataRoutes.some(
8492
8495
  (metadata) => metadata.kind === "sitemap" && metadata.pattern === "/"
8493
8496
  );
8494
- const servesDefaultMCP = _optionalChain([config, 'access', _183 => _183.agent, 'optionalAccess', _184 => _184.mcp]) === true && !_chunkR6GOH5CHcjs.farmConfigMountsMCP.call(void 0, config) && !apiRoutes.some((route) => route.path === "/api/mcp");
8495
- const servesAiCatalog = _optionalChain([config, 'access', _185 => _185.agent, 'optionalAccess', _186 => _186.aiCatalog]) !== false;
8497
+ const servesDefaultMCP = _optionalChain([config, 'access', _171 => _171.agent, 'optionalAccess', _172 => _172.mcp]) === true && !_chunkR6GOH5CHcjs.farmConfigMountsMCP.call(void 0, config) && !apiRoutes.some((route) => route.path === "/api/mcp");
8498
+ const servesAiCatalog = _optionalChain([config, 'access', _173 => _173.agent, 'optionalAccess', _174 => _174.aiCatalog]) !== false;
8496
8499
  const hasPluginRuntime = hasRuntimeIntegrationConfig || hasServerRuntimePlugins;
8497
8500
  const hasInfraAnalyticsRuntime = config.analytics !== false && _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
8498
- const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkMBDDLYT5cjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8501
+ const reportsWebMCPCalls = hasInfraAnalyticsRuntime && _chunkV6ACETKRcjs._farmWebMCPReportsEnabled.call(void 0, config.plugins);
8499
8502
  const hasPrecompiledDocs = Boolean(farmDocsPrecompiledManifest);
8500
8503
  const adapterOwnsDocsRuntime = _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs);
8501
- if (_optionalChain([config, 'access', _187 => _187.docs, 'optionalAccess', _188 => _188.enabled]) && _optionalChain([config, 'access', _189 => _189.docs, 'access', _190 => _190.roots, 'optionalAccess', _191 => _191.length]) && !adapterOwnsDocsRuntime) {
8504
+ if (_optionalChain([config, 'access', _175 => _175.docs, 'optionalAccess', _176 => _176.enabled]) && _optionalChain([config, 'access', _177 => _177.docs, 'access', _178 => _178.roots, 'optionalAccess', _179 => _179.length]) && !adapterOwnsDocsRuntime) {
8502
8505
  throw new Error(
8503
8506
  "Several docs roots need a docs adapter; Farm's built-in docs renderer serves a single docs root."
8504
8507
  );
8505
8508
  }
8506
8509
  const docsConfigModulePath = adapterOwnsDocsRuntime && !hasPrecompiledDocs && config.docs.configPath && !config.docs.configPath.endsWith(".json") ? config.docs.configPath : void 0;
8507
8510
  const adapterHandler = generateFarmDocsAdapterHandlerArguments(config.docs, docsConfigModulePath);
8508
- const hasIsolatedClientGraphRuntime = _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) && isolatedClientBoundaryModules.size > 0;
8509
- const hasRendererIslandsGraph = isolatedClientBoundaryModules.size > 0 && _chunkIU4YTFFQcjs.usesFarmRendererIslands.call(void 0, config);
8510
- const rendererStreamingCapabilities = _chunkHP7QYVSTcjs.getFarmRendererStreamingCapabilitiesForRuntime.call(void 0,
8511
+ const hasIsolatedClientGraphRuntime = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) && isolatedClientBoundaryModules.size > 0;
8512
+ const hasRendererIslandsGraph = isolatedClientBoundaryModules.size > 0 && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, config);
8513
+ const rendererStreamingCapabilities = _chunkLEZJZX4Ccjs.getFarmRendererStreamingCapabilitiesForRuntime.call(void 0,
8511
8514
  config.renderer,
8512
8515
  _chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset)
8513
8516
  );
8514
- const hasReactSyncRender = _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer);
8515
- const rendererServerImports = _chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? `import * as React from "react";
8517
+ const hasReactSyncRender = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer);
8518
+ const rendererServerImports = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? `import * as React from "react";
8516
8519
  import * as ReactDOMServer from "react-dom/server";
8517
8520
  import { markPagePosition, markLayoutPosition } from "@farm.js/core/internal/production-runtime";${hasIsolatedClientGraphRuntime ? farmIslandsMode ? '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph, renderFarmServerTreePage, renderFarmServerTreeLayout, withFarmIslandsRender } from "@farm.js/core/internal/islands-runtime";' : '\nimport { isolateFarmServerPageGraph, wrapFarmIsolatedClientGraph } from "@farm.js/core/internal/isolated-boundary";\nimport { renderFarmServerTreePage } from "@farm.js/core/internal/server-tree";' : ""}` : (
8518
8521
  // The renderer contract is the server module's named exports, which the development
@@ -8571,26 +8574,26 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8571
8574
  );
8572
8575
  const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
8573
8576
  const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkIGBQSUT5cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
8574
- const farmDocsFontAssets = _optionalChain([config, 'access', _192 => _192.docs, 'optionalAccess', _193 => _193.enabled]) ? _chunkQTGYT2DFcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkQTGYT2DFcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
8577
+ const farmDocsFontAssets = _optionalChain([config, 'access', _180 => _180.docs, 'optionalAccess', _181 => _181.enabled]) ? _chunkQTGYT2DFcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkQTGYT2DFcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
8575
8578
  const integrationProviders = _chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, config.integrations);
8576
8579
  const renderedIntegrationProviders = integrationProviders.filter(
8577
8580
  (provider) => provider.component || provider.type === "clerk"
8578
8581
  );
8579
- if (renderedIntegrationProviders.length > 0 && !_chunkHP7QYVSTcjs.getFarmRendererCapabilities.call(void 0, config.renderer).functionComponents) {
8582
+ if (renderedIntegrationProviders.length > 0 && !_chunkLEZJZX4Ccjs.getFarmRendererCapabilities.call(void 0, config.renderer).functionComponents) {
8580
8583
  throw new Error(
8581
8584
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
8582
8585
  );
8583
8586
  }
8584
- const providerServerModules = _chunkUBH2OARScjs.generateFarmIntegrationProviderServerModules.call(void 0,
8587
+ const providerServerModules = _chunkPVB5UYJTcjs.generateFarmIntegrationProviderServerModules.call(void 0,
8585
8588
  renderedIntegrationProviders,
8586
8589
  config.root,
8587
8590
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
8588
8591
  );
8589
8592
  const resolvedIntegrationProviderFallback = Object.fromEntries(
8590
8593
  Object.entries(config.integrations).flatMap(([name, integration]) => {
8591
- const configuredProviders = _optionalChain([integration, 'optionalAccess', _194 => _194.providers]);
8594
+ const configuredProviders = _optionalChain([integration, 'optionalAccess', _182 => _182.providers]);
8592
8595
  const providers = Array.isArray(configuredProviders) ? configuredProviders : [];
8593
- if (providers.some((provider) => typeof _optionalChain([provider, 'optionalAccess', _195 => _195.component]) === "function")) {
8596
+ if (providers.some((provider) => typeof _optionalChain([provider, 'optionalAccess', _183 => _183.component]) === "function")) {
8594
8597
  throw new Error(
8595
8598
  `Integration provider components in production must use an importable component reference, for example component: { module: "@/components/provider" }.`
8596
8599
  );
@@ -8601,22 +8604,22 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8601
8604
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
8602
8605
  (provider) => !_chunkN4AM7Q34cjs.providerSupportsIslands.call(void 0, provider)
8603
8606
  );
8604
- const isolatedHydrationMode = _chunkPSALMEHJcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8605
- _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.isolatedClientHydration]),
8607
+ const isolatedHydrationMode = _chunkD2OU4CX2cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
8608
+ _optionalChain([config, 'access', _184 => _184.experimental, 'optionalAccess', _185 => _185.isolatedClientHydration]),
8606
8609
  {
8607
- serverComponents: _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _198 => _198.experimental, 'optionalAccess', _199 => _199.serverComponents])) === "rsc",
8610
+ serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "rsc",
8608
8611
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
8609
8612
  }
8610
8613
  );
8611
- const hydrationPlanOptions = _chunkPSALMEHJcjs.getFarmClientHydrationPlanOptions.call(void 0,
8614
+ const hydrationPlanOptions = _chunkD2OU4CX2cjs.getFarmClientHydrationPlanOptions.call(void 0,
8612
8615
  config.renderer,
8613
8616
  Boolean(unsupportedIntegrationProvider)
8614
8617
  );
8615
8618
  const pageHydrationPlanOptions = {
8616
8619
  ...hydrationPlanOptions,
8617
- serverOwners: _chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _200 => _200.experimental, 'optionalAccess', _201 => _201.serverComponents])) === "islands"
8620
+ serverOwners: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands"
8618
8621
  };
8619
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkPSALMEHJcjs.withFarmSourceSnapshot.call(void 0, () => {
8622
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkD2OU4CX2cjs.withFarmSourceSnapshot.call(void 0, () => {
8620
8623
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
8621
8624
  ...layout,
8622
8625
  hydration: getCachedClientModuleHydrationPlan(
@@ -8627,7 +8630,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8627
8630
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
8628
8631
  )
8629
8632
  }));
8630
- const markdownPagePlan = _chunkPSALMEHJcjs.createMarkdownPageHydrationPlanner.call(void 0,
8633
+ const markdownPagePlan = _chunkD2OU4CX2cjs.createMarkdownPageHydrationPlanner.call(void 0,
8631
8634
  _chunkYQ5NVEFScjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkYQ5NVEFScjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
8632
8635
  config.root,
8633
8636
  isolatedHydrationMode,
@@ -8647,7 +8650,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8647
8650
  );
8648
8651
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
8649
8652
  });
8650
- _chunkPSALMEHJcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8653
+ _chunkD2OU4CX2cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
8651
8654
  layoutHydrationPlans.map((layout) => ({
8652
8655
  pattern: layout.pattern,
8653
8656
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -8675,13 +8678,13 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8675
8678
  apiImports.push(
8676
8679
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.filePath)};`
8677
8680
  );
8678
- if (_chunkXJEOHDPNcjs.isPolyrouteRouteFileName.call(void 0, _path2.default.basename(route.filePath))) {
8681
+ if (_chunkYCGOQKVCcjs.isPolyrouteRouteFileName.call(void 0, _path2.default.basename(route.filePath))) {
8679
8682
  nativeAPIRoutes.push(`[${JSON.stringify(route.path)}, ${varName}]`);
8680
8683
  }
8681
8684
  apiRegistrations.push(`
8682
8685
  {
8683
8686
  path: ${JSON.stringify(route.path)},
8684
- methods: ${JSON.stringify(route.methods.filter((method) => !_optionalChain([route, 'access', _202 => _202.pluginMethods, 'optionalAccess', _203 => _203.includes, 'call', _204 => _204(method)])))},
8687
+ methods: ${JSON.stringify(route.methods.filter((method) => !_optionalChain([route, 'access', _186 => _186.pluginMethods, 'optionalAccess', _187 => _187.includes, 'call', _188 => _188(method)])))},
8685
8688
  endpoints: ${varName},
8686
8689
  }`);
8687
8690
  });
@@ -8695,8 +8698,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8695
8698
  orderedPageRoutes.forEach((route, index) => {
8696
8699
  const varName = `pageRoute${index}`;
8697
8700
  if (_chunk27IPPPCVcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
8698
- const renderingDirective2 = _chunkKM7ZRKCHcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8699
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkPSALMEHJcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8701
+ const renderingDirective2 = _chunkGL4SPJTEcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8702
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkD2OU4CX2cjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
8700
8703
  pageRegistrations.push(`
8701
8704
  {
8702
8705
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8704,14 +8707,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8704
8707
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
8705
8708
  module: createFarmMarkdownRouteModule({
8706
8709
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8707
- filePath: ${JSON.stringify(_chunkUBH2OARScjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8710
+ filePath: ${JSON.stringify(_chunkPVB5UYJTcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
8708
8711
  components: farmMdxComponents,
8709
- config: farmMdxConfig,${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
8712
+ config: farmMdxConfig,${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: React,"}
8710
8713
  }),
8711
8714
  markdownSource: {
8712
8715
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
8713
8716
  filePath: ${JSON.stringify(
8714
- _chunkUBH2OARScjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8717
+ _chunkPVB5UYJTcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
8715
8718
  )},
8716
8719
  },
8717
8720
  }`);
@@ -8721,7 +8724,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8721
8724
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
8722
8725
  );
8723
8726
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
8724
- const renderingDirective = _chunkKM7ZRKCHcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8727
+ const renderingDirective = _chunkGL4SPJTEcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
8725
8728
  pageRegistrations.push(`
8726
8729
  {
8727
8730
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -8729,8 +8732,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8729
8732
  module: ${varName},
8730
8733
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
8731
8734
  clientModule: ${JSON.stringify(_chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
8732
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkPSALMEHJcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8733
- const rootStrategy = _chunkUBH2OARScjs.resolveFarmRouteRootStrategy.call(void 0,
8735
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkD2OU4CX2cjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
8736
+ const rootStrategy = _chunkPVB5UYJTcjs.resolveFarmRouteRootStrategy.call(void 0,
8734
8737
  route,
8735
8738
  clientMetadata,
8736
8739
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -8743,7 +8746,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8743
8746
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
8744
8747
  ${route.source !== void 0 ? `markdownSource: {
8745
8748
  source: ${JSON.stringify(route.source)},
8746
- filePath: ${JSON.stringify(_chunkUBH2OARScjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8749
+ filePath: ${JSON.stringify(_chunkPVB5UYJTcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
8747
8750
  },` : ""}
8748
8751
  }`);
8749
8752
  });
@@ -8767,7 +8770,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8767
8770
  pattern: ${JSON.stringify(layout.pattern)},
8768
8771
  module: ${varName},
8769
8772
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
8770
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkUBH2OARScjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8773
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkPVB5UYJTcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
8771
8774
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
8772
8775
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
8773
8776
  }`);
@@ -8795,7 +8798,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8795
8798
  containerId: ${JSON.stringify(slot.containerId)},
8796
8799
  interception: ${JSON.stringify(slot.interception)},
8797
8800
  fallback: ${JSON.stringify(slot.fallback)},
8798
- hydrates: ${!farmIslandsMode || _chunkPSALMEHJcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8801
+ hydrates: ${!farmIslandsMode || _chunkD2OU4CX2cjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
8799
8802
  module: ${varName},
8800
8803
  }`);
8801
8804
  });
@@ -8841,7 +8844,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8841
8844
  metadataImageImports.push(
8842
8845
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(image.modulePath)};`
8843
8846
  );
8844
- const component = !_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) && _chunkUBH2OARScjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _205 => _205.renderer, 'optionalAccess', _206 => _206.componentExtensions]), () => ( [])));
8847
+ const component = !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) && _chunkPVB5UYJTcjs.isRendererCompiledComponent.call(void 0, image.modulePath, _nullishCoalesce(_optionalChain([config, 'access', _189 => _189.renderer, 'optionalAccess', _190 => _190.componentExtensions]), () => ( [])));
8845
8848
  metadataImageRegistrations.push(`
8846
8849
  {
8847
8850
  pattern: ${JSON.stringify(image.pattern)},
@@ -8917,7 +8920,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
8917
8920
  createDefaultErrorMarkup,
8918
8921
  createFarmInstrumentationLifecycle,
8919
8922
  createFarmLayoutSelector,
8920
- createFarmLayoutBoundary,${_optionalChain([config, 'access', _207 => _207.docs, 'optionalAccess', _208 => _208.enabled]) ? "\n createFarmDocsLayoutTree,\n farmDocsLayoutsWrapPage,\n placeFarmDocsLayoutRoot," : ""}
8923
+ createFarmLayoutBoundary,${_optionalChain([config, 'access', _191 => _191.docs, 'optionalAccess', _192 => _192.enabled]) ? "\n createFarmDocsLayoutTree,\n farmDocsLayoutsWrapPage,\n placeFarmDocsLayoutRoot," : ""}
8921
8924
  isInFarmRouteGroupScope,
8922
8925
  routeBoundaryCoversDirectory,
8923
8926
  createFarmCacheKey,
@@ -9001,7 +9004,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
9001
9004
  createFarmDeploymentMismatchResponse,
9002
9005
  FARM_DEPLOYMENT_ID_HEADER,
9003
9006
  getFarmDeploymentMismatch,
9004
- withoutFarmDeploymentCookie,${config.mobileClient ? "\n createFarmNativeTreeResponse," : ""}${config.trailingSlash && (_optionalChain([config, 'access', _209 => _209.md, 'optionalAccess', _210 => _210.enabled]) || hasMarkdownPages) ? "\n toFarmTrailingSlashPageRequest," : ""}${hasInfraAnalyticsRuntime ? "\n resolveFarmDocsEngineRouteLabel,\n resolveFarmDocsRouteLabel,\n resolveFarmMarkdownRouteLabel,\n resolveFarmMCPRouteLabel,\n setFarmRouteLabel," : ""}${hasFarmServerStorageConfig(config.storage) ? "\n _registerFarmStorageModules,\n disposeFarmStorage,\n initFarmStorage," : ""}${searchPreserveRoutesSource ? "\n _setFarmSearchPreserveRoutes," : ""}
9007
+ withoutFarmDeploymentCookie,${config.mobileClient ? "\n createFarmNativeTreeResponse," : ""}${config.trailingSlash && (_optionalChain([config, 'access', _193 => _193.md, 'optionalAccess', _194 => _194.enabled]) || hasMarkdownPages) ? "\n toFarmTrailingSlashPageRequest," : ""}${hasInfraAnalyticsRuntime ? "\n resolveFarmDocsEngineRouteLabel,\n resolveFarmDocsRouteLabel,\n resolveFarmMarkdownRouteLabel,\n resolveFarmMCPRouteLabel,\n setFarmRouteLabel," : ""}${hasFarmServerStorageConfig(config.storage) ? "\n _registerFarmStorageModules,\n disposeFarmStorage,\n initFarmStorage," : ""}${searchPreserveRoutesSource ? "\n _setFarmSearchPreserveRoutes," : ""}
9005
9008
  } from "@farm.js/core/internal/production-runtime";${farmMobileClient ? `
9006
9009
  import { _applyFarmMobileShellClient } from "@farm.js/core/internal/production-runtime";
9007
9010
  // The mobile client documents load when a mobile shell asks for them (RFC 0004, 7.2), filled in
@@ -9073,25 +9076,25 @@ function farmFormStateScript() { return ""; }`}`;
9073
9076
  const infraAnalyticsImport = hasInfraAnalyticsRuntime ? `import { ${hasPluginRuntime ? "createFarmInfraAnalyticsPlugin" : "createFarmInfraAnalyticsRecorder"} } from "@farm.js/core/internal/infra-analytics-runtime";` : "";
9074
9077
  const compressionRuntimeImport = hasCompressionRuntime ? `import { compressFarmResponse${hasPluginRuntime ? ", createCompressionPlugin" : ""} } from "@farm.js/core/internal/compression-runtime";` : "";
9075
9078
  const i18nServerImport = config.i18n.enabled ? `import { _runWithFarmI18nRequest, _setDefaultFarmI18nRuntime, createFarmI18nRuntime, getFarmI18nClientSnapshot } from "@farm.js/core/i18n/server";` : "";
9076
- const docsHandlerImport = _optionalChain([config, 'access', _211 => _211.docs, 'optionalAccess', _212 => _212.enabled]) ? hasPrecompiledDocs ? `import { createFarmDocsPrecompiledRuntime } from "@farm.js/core/internal/docs-precompiled-runtime";
9079
+ const docsHandlerImport = _optionalChain([config, 'access', _195 => _195.docs, 'optionalAccess', _196 => _196.enabled]) ? hasPrecompiledDocs ? `import { createFarmDocsPrecompiledRuntime } from "@farm.js/core/internal/docs-precompiled-runtime";
9077
9080
  const isFarmDocsAPIRequest = (requestOrPathname) => {
9078
9081
  const pathname = typeof requestOrPathname === "string"
9079
9082
  ? requestOrPathname
9080
9083
  : new URL(requestOrPathname.url).pathname;
9081
- const apiPath = ${JSON.stringify(_optionalChain([farmDocsPrecompiledManifest, 'optionalAccess', _213 => _213.apiPath]) || "/api/docs")};
9084
+ const apiPath = ${JSON.stringify(_optionalChain([farmDocsPrecompiledManifest, 'optionalAccess', _197 => _197.apiPath]) || "/api/docs")};
9082
9085
  return pathname === apiPath || pathname.startsWith(apiPath + "/");
9083
9086
  };` : adapterOwnsDocsRuntime ? `import { ${docsConfigModulePath ? "getFarmDocsConfigModuleRoot, " : ""}isFarmDocsAPIRequest } from "@farm.js/core/docs";
9084
- import { ${_optionalChain([config, 'access', _214 => _214.docs, 'access', _215 => _215.roots, 'optionalAccess', _216 => _216.length]) ? "createFarmDocsMultiRuntimeHandler as createFarmDocsAdapterMultiRuntimeHandler" : "createFarmDocsRuntimeHandler as createFarmDocsAdapterRuntimeHandler"} } from ${JSON.stringify(config.docs.adapter.server)};
9087
+ import { ${_optionalChain([config, 'access', _198 => _198.docs, 'access', _199 => _199.roots, 'optionalAccess', _200 => _200.length]) ? "createFarmDocsMultiRuntimeHandler as createFarmDocsAdapterMultiRuntimeHandler" : "createFarmDocsRuntimeHandler as createFarmDocsAdapterRuntimeHandler"} } from ${JSON.stringify(config.docs.adapter.server)};
9085
9088
  import * as FarmDocsAdapterUI from ${JSON.stringify(_chunkVZ2P6GRCcjs.getFarmDocsAdapterUIModule.call(void 0, config.docs.adapter))};${docsConfigModulePath ? `
9086
9089
  import * as farmDocsConfigModule from ${toVirtualEntryImportSpecifier(docsConfigModulePath)};` : ""}` : `import { createFarmDocsAPIHandler, createFarmDocsHandler, isFarmDocsAPIRequest } from "@farm.js/core/docs";` : "";
9087
- const docsFontImport = _optionalChain([config, 'access', _217 => _217.docs, 'optionalAccess', _218 => _218.enabled]) && !hasPrecompiledDocs ? `import { resolveFarmLayoutFonts } from "@farm.js/core/font";` : "";
9088
- const docsRuntimeImport = _optionalChain([config, 'access', _219 => _219.docs, 'optionalAccess', _220 => _220.enabled]) && !hasPrecompiledDocs ? `import { existsSync as farmDocsExistsSync } from "node:fs";
9090
+ const docsFontImport = _optionalChain([config, 'access', _201 => _201.docs, 'optionalAccess', _202 => _202.enabled]) && !hasPrecompiledDocs ? `import { resolveFarmLayoutFonts } from "@farm.js/core/font";` : "";
9091
+ const docsRuntimeImport = _optionalChain([config, 'access', _203 => _203.docs, 'optionalAccess', _204 => _204.enabled]) && !hasPrecompiledDocs ? `import { existsSync as farmDocsExistsSync } from "node:fs";
9089
9092
  import { dirname as farmDocsDirname, join as farmDocsJoin } from "node:path";
9090
9093
  import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
9091
- const markdownHandlerImport = _optionalChain([config, 'access', _221 => _221.md, 'optionalAccess', _222 => _222.enabled]) ? `import { applyMarkdownNegotiationHeaders, createMarkdownMirrorResponse, getFarmMarkdownAlternatePath } from "@farm.js/core/markdown";` : "";
9094
+ const markdownHandlerImport = _optionalChain([config, 'access', _205 => _205.md, 'optionalAccess', _206 => _206.enabled]) ? `import { applyMarkdownNegotiationHeaders, createMarkdownMirrorResponse, getFarmMarkdownAlternatePath } from "@farm.js/core/markdown";` : "";
9092
9095
  const appMarkdownImport = hasMarkdownPages ? `import { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, isFarmMarkdownPublicSourceResponse } from "@farm.js/core/internal/app-markdown-runtime";` : "const createFarmMarkdownSourceResponse = null;\nconst isFarmMarkdownPublicSourceResponse = null;";
9093
9096
  const markdownErrorImport = `import { FARM_MARKDOWN_CONTENT_TYPE, FARM_MARKDOWN_PAGE_CHECK_HEADER, _isFarmMarkdownPageCheck, createFarmMarkdownErrorBody, farmRequestWantsMarkdown } from "@farm.js/core/markdown";`;
9094
- const mdxComponentsPath = typeof _optionalChain([config, 'access', _223 => _223.mdx, 'optionalAccess', _224 => _224.components]) === "string" ? _path2.default.isAbsolute(config.mdx.components) ? config.mdx.components : _path2.default.join(config.root, config.mdx.components) : null;
9097
+ const mdxComponentsPath = typeof _optionalChain([config, 'access', _207 => _207.mdx, 'optionalAccess', _208 => _208.components]) === "string" ? _path2.default.isAbsolute(config.mdx.components) ? config.mdx.components : _path2.default.join(config.root, config.mdx.components) : null;
9095
9098
  const mdxComponentsImport = mdxComponentsPath ? `import * as FarmMdxComponentsModule from ${toVirtualEntryImportSpecifier(mdxComponentsPath)};` : "";
9096
9099
  const layerConfigPaths = (config.layers || []).map((layer) => layer.configFile).filter((configFile) => Boolean(configFile)).filter((configFile) => configFile !== configModulePath);
9097
9100
  const layerConfigImports = layerConfigPaths.map(
@@ -9111,14 +9114,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
9111
9114
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
9112
9115
  const nativeMCP = _chunkVNWKJOJFcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
9113
9116
  const mobileSession = (config.plugins || []).some(
9114
- (plugin) => _optionalChain([plugin, 'optionalAccess', _225 => _225.name]) === _chunk6AUPJYHFcjs.FARM_MOBILE_SESSION_PLUGIN
9117
+ (plugin) => _optionalChain([plugin, 'optionalAccess', _209 => _209.name]) === _chunk6AUPJYHFcjs.FARM_MOBILE_SESSION_PLUGIN
9115
9118
  );
9116
9119
  const nativeServerFns = (config.plugins || []).some(
9117
- (plugin) => _optionalChain([plugin, 'optionalAccess', _226 => _226.name]) === _chunk323JTLXRcjs.FARM_NATIVE_SERVER_FN_PLUGIN
9118
- ) ? _chunkQBCR2EHAcjs.collectFarmNativeServerFns.call(void 0, {
9120
+ (plugin) => _optionalChain([plugin, 'optionalAccess', _210 => _210.name]) === _chunk323JTLXRcjs.FARM_NATIVE_SERVER_FN_PLUGIN
9121
+ ) ? _chunkGEZ76JXDcjs.collectFarmNativeServerFns.call(void 0, {
9119
9122
  root: config.root,
9120
9123
  srcDir: config.srcDir,
9121
- entries: _chunkQBCR2EHAcjs.findFarmNativeScreenFiles.call(void 0, _chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config))
9124
+ entries: _chunkGEZ76JXDcjs.findFarmNativeScreenFiles.call(void 0, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config))
9122
9125
  }) : void 0;
9123
9126
  const integrationImports = `
9124
9127
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -9133,7 +9136,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
9133
9136
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
9134
9137
  });` : ""}
9135
9138
  `;
9136
- const imageRuntime = _chunkUBH2OARScjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
9139
+ const imageRuntime = _chunkPVB5UYJTcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
9137
9140
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
9138
9141
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
9139
9142
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -9315,7 +9318,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
9315
9318
 
9316
9319
  function renderFarmDefault404Page() {
9317
9320
  return React.createElement(React.Fragment, null,
9318
- React.createElement("style", null, ${JSON.stringify(_chunkUBH2OARScjs.DEFAULT_NOT_FOUND_STYLES)}),
9321
+ React.createElement("style", null, ${JSON.stringify(_chunkPVB5UYJTcjs.DEFAULT_NOT_FOUND_STYLES)}),
9319
9322
  React.createElement("main", {
9320
9323
  className: "farm-default-not-found",
9321
9324
  "aria-labelledby": "farm-default-not-found-title",
@@ -9356,7 +9359,7 @@ function createFarmNotFoundElement(pathname) {
9356
9359
  function isFarmStaticNotFoundPrerender(pathname) {
9357
9360
  return (
9358
9361
  typeof process !== "undefined" &&
9359
- process.env?.${_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV} === "1" &&
9362
+ process.env?.${_chunkV6ACETKRcjs.FARM_PRERENDER_ENV} === "1" &&
9360
9363
  pathname === ${JSON.stringify(_chunkTFCBJFP7cjs.applyFarmBasePath.call(void 0, FARM_STATIC_NOT_FOUND_PATH, config.basePath))}
9361
9364
  );
9362
9365
  }
@@ -9428,7 +9431,7 @@ function wrapWithFarmIntegrationProviders(element) {
9428
9431
  // providers, so the server renders them inside it too. React lines an island up with its tree
9429
9432
  // position instead, and its providers render no markup.
9430
9433
  function wrapFarmIslandIntegrationProviders(element) {
9431
- return ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "element" : "wrapWithFarmIntegrationProviders(element)"};
9434
+ return ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "element" : "wrapWithFarmIntegrationProviders(element)"};
9432
9435
  }
9433
9436
  const serverRuntimeIntegrations = Object.fromEntries(
9434
9437
  Object.entries(configuredIntegrations).filter(([, integration]) =>
@@ -9488,24 +9491,24 @@ const farmImageHandler = ${imageRuntime === "none" ? "null" : imageRuntime === "
9488
9491
  validateRemoteUrl: createNodeImageUrlValidator(${JSON.stringify(config.images)}),
9489
9492
  onError(error) { console.error("[Farm Image]", error); },
9490
9493
  })`};
9491
- const farmMarkdownConfig = ${JSON.stringify(config.md)};${_optionalChain([config, 'access', _227 => _227.md, 'optionalAccess', _228 => _228.enabled]) || hasMarkdownPages ? config.trailingSlash ? `
9494
+ const farmMarkdownConfig = ${JSON.stringify(config.md)};${_optionalChain([config, 'access', _211 => _211.md, 'optionalAccess', _212 => _212.enabled]) || hasMarkdownPages ? config.trailingSlash ? `
9492
9495
  // A Markdown mirror, and a page.md source's page check, read the page at the URL it answers at
9493
9496
  // ('/about/'), so the trailing-slash 308 never answers in its place.
9494
9497
  const toFarmMarkdownPageRequest = (request) => toFarmTrailingSlashPageRequest(request, true);` : `
9495
9498
  const toFarmMarkdownPageRequest = (request) => request;` : ""}
9496
- const farmLlmsTxtConfig = ${JSON.stringify(_nullishCoalesce(_optionalChain([config, 'access', _229 => _229.agent, 'optionalAccess', _230 => _230.llmsTxt]), () => ( { enabled: false, include: [], exclude: [] })))};
9497
- ${_optionalChain([config, 'access', _231 => _231.agent, 'optionalAccess', _232 => _232.llmsTxt, 'optionalAccess', _233 => _233.enabled]) ? "const farmLlmsFullRenderer = createFarmLlmsFullRenderer({ revalidate: farmLlmsTxtConfig.revalidate });\n" : ""}${servesAgentRobotsTxt ? `const farmAgentCrawlers = ${JSON.stringify(config.agent.crawlers)};` : ""}
9499
+ const farmLlmsTxtConfig = ${JSON.stringify(_nullishCoalesce(_optionalChain([config, 'access', _213 => _213.agent, 'optionalAccess', _214 => _214.llmsTxt]), () => ( { enabled: false, include: [], exclude: [] })))};
9500
+ ${_optionalChain([config, 'access', _215 => _215.agent, 'optionalAccess', _216 => _216.llmsTxt, 'optionalAccess', _217 => _217.enabled]) ? "const farmLlmsFullRenderer = createFarmLlmsFullRenderer({ revalidate: farmLlmsTxtConfig.revalidate });\n" : ""}${servesAgentRobotsTxt ? `const farmAgentCrawlers = ${JSON.stringify(config.agent.crawlers)};` : ""}
9498
9501
  const farmMdxConfig = ${JSON.stringify({
9499
9502
  ...config.mdx,
9500
- components: typeof _optionalChain([config, 'access', _234 => _234.mdx, 'optionalAccess', _235 => _235.components]) === "string" ? config.mdx.components : void 0
9503
+ components: typeof _optionalChain([config, 'access', _218 => _218.mdx, 'optionalAccess', _219 => _219.components]) === "string" ? config.mdx.components : void 0
9501
9504
  })};
9502
9505
  const configuredFarmMdxComponents = farmUserConfig?.mdx?.components;
9503
- ${_optionalChain([config, 'access', _236 => _236.agent, 'optionalAccess', _237 => _237.noindexPreviews]) ? `// agent.noindexPreviews: the runtime environment decides, falling back to the
9506
+ ${_optionalChain([config, 'access', _220 => _220.agent, 'optionalAccess', _221 => _221.noindexPreviews]) ? `// agent.noindexPreviews: the runtime environment decides, falling back to the
9504
9507
  // environment this was built in, since Netlify exposes its deploy context only
9505
9508
  // to the build.
9506
9509
  const farmNoindexPreview = resolveFarmPreviewDeployment(
9507
9510
  globalThis.process?.env,
9508
- ${JSON.stringify(_chunkNNHIV3O2cjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9511
+ ${JSON.stringify(_chunkHENYWY5Jcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
9509
9512
  );` : ""}
9510
9513
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
9511
9514
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -9551,7 +9554,7 @@ export const farmProductionLifecycle = createFarmProductionLifecycle({
9551
9554
  });
9552
9555
  const farmI18nRuntime = ${config.i18n.enabled ? `createFarmI18nRuntime(farmI18nConfig, ${JSON.stringify(i18nCatalogs)})` : "null"};
9553
9556
  ${config.i18n.enabled ? "_setDefaultFarmI18nRuntime(farmI18nRuntime);" : ""}
9554
- const farmDocsBundledContentDir = ${_optionalChain([config, 'access', _238 => _238.docs, 'optionalAccess', _239 => _239.enabled]) && !hasPrecompiledDocs ? `(() => {
9557
+ const farmDocsBundledContentDir = ${_optionalChain([config, 'access', _222 => _222.docs, 'optionalAccess', _223 => _223.enabled]) && !hasPrecompiledDocs ? `(() => {
9555
9558
  try {
9556
9559
  const currentDir = farmDocsDirname(farmDocsFileURLToPath(import.meta.url));
9557
9560
  const candidates = [
@@ -9563,7 +9566,7 @@ const farmDocsBundledContentDir = ${_optionalChain([config, 'access', _238 => _2
9563
9566
  } catch {
9564
9567
  return null;
9565
9568
  }
9566
- })()` : "null"};${_optionalChain([config, 'access', _240 => _240.docs, 'optionalAccess', _241 => _241.enabled]) && !hasPrecompiledDocs && _optionalChain([config, 'access', _242 => _242.docs, 'access', _243 => _243.roots, 'optionalAccess', _244 => _244.length]) ? `
9569
+ })()` : "null"};${_optionalChain([config, 'access', _224 => _224.docs, 'optionalAccess', _225 => _225.enabled]) && !hasPrecompiledDocs && _optionalChain([config, 'access', _226 => _226.docs, 'access', _227 => _227.roots, 'optionalAccess', _228 => _228.length]) ? `
9567
9570
  const farmDocsBundledRootsDir = (() => {
9568
9571
  try {
9569
9572
  const currentDir = farmDocsDirname(farmDocsFileURLToPath(import.meta.url));
@@ -9580,7 +9583,7 @@ const farmDocsBundledRootsDir = (() => {
9580
9583
  const farmDocsResolvedConfig = ${generateFarmDocsRuntimeConfigExpression(
9581
9584
  config.docs,
9582
9585
  hasPrecompiledDocs,
9583
- _optionalChain([config, 'access', _245 => _245.docs, 'optionalAccess', _246 => _246.enabled]) && _optionalChain([config, 'access', _247 => _247.docs, 'access', _248 => _248.roots, 'optionalAccess', _249 => _249.length]) ? getFarmDocsBundledRootPaths(config.docs, config.root, config.srcDir) : []
9586
+ _optionalChain([config, 'access', _229 => _229.docs, 'optionalAccess', _230 => _230.enabled]) && _optionalChain([config, 'access', _231 => _231.docs, 'access', _232 => _232.roots, 'optionalAccess', _233 => _233.length]) ? getFarmDocsBundledRootPaths(config.docs, config.root, config.srcDir) : []
9584
9587
  )};
9585
9588
  const farmDocsRuntimeRoot = ${hasPrecompiledDocs ? '"."' : `farmDocsBundledContentDir || ${JSON.stringify(config.root)}`};
9586
9589
  // Docs pages a path-specific guard covers, decided at build time. The docs API and the
@@ -9620,8 +9623,8 @@ const farmDocsModulePreloadPaths = farmDocsModulePreloads
9620
9623
  }
9621
9624
  : undefined;
9622
9625
  ${adapterOwnsDocsRuntime && !hasPrecompiledDocs ? `// The renderer contract's server exports, for a docs UI that builds its pages with them.
9623
- const farmDocsAppRenderer = ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? '{ name: "react", createElement: React.createElement, Fragment: React.Fragment, renderToString: ReactDOMServer.renderToString }' : "__farmRendererServer"};
9624
- ` : ""}const farmDocsHandler = ${_optionalChain([config, 'access', _250 => _250.docs, 'optionalAccess', _251 => _251.enabled]) ? hasPrecompiledDocs ? "farmDocsPrecompiledRuntime.handleDocsRequest" : adapterOwnsDocsRuntime ? `${adapterHandler.factory}(${adapterHandler.config}, {${_optionalChain([config, 'access', _252 => _252.docs, 'access', _253 => _253.roots, 'optionalAccess', _254 => _254.length]) ? "" : `
9626
+ const farmDocsAppRenderer = ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? '{ name: "react", createElement: React.createElement, Fragment: React.Fragment, renderToString: ReactDOMServer.renderToString }' : "__farmRendererServer"};
9627
+ ` : ""}const farmDocsHandler = ${_optionalChain([config, 'access', _234 => _234.docs, 'optionalAccess', _235 => _235.enabled]) ? hasPrecompiledDocs ? "farmDocsPrecompiledRuntime.handleDocsRequest" : adapterOwnsDocsRuntime ? `${adapterHandler.factory}(${adapterHandler.config}, {${_optionalChain([config, 'access', _236 => _236.docs, 'access', _237 => _237.roots, 'optionalAccess', _238 => _238.length]) ? "" : `
9625
9628
  rootDir: farmDocsRuntimeRoot,`}
9626
9629
  // A production build's content cannot change, so the adapter reads its
9627
9630
  // navigation once instead of scanning the content directory per request.
@@ -9645,7 +9648,7 @@ const farmDocsAppRenderer = ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, con
9645
9648
  registerMCPServer: registerFarmMCPServer,
9646
9649
  // A page built with this keeps its HTML string, so the preload budget and the response
9647
9650
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
9648
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkVQYGXWCScjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9651
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkXSE4XJKYcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
9649
9652
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
9650
9653
  // asks about any path its own content lists, so the guards decide here, not a page list.
9651
9654
  isPathGuarded: (pathname) =>
@@ -9671,7 +9674,7 @@ const farmDocsAppRenderer = ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, con
9671
9674
  isPathGuarded: isFarmDocsPathGuarded,
9672
9675
  basePath: ${JSON.stringify(config.basePath)},
9673
9676
  })` : "null"};
9674
- const farmDocsAPIHandler = ${_optionalChain([config, 'access', _255 => _255.docs, 'optionalAccess', _256 => _256.enabled]) ? hasPrecompiledDocs ? "farmDocsPrecompiledRuntime.handleAPIRequest" : adapterOwnsDocsRuntime ? "null" : `createFarmDocsAPIHandler({ rootDir: farmDocsRuntimeRoot, srcDir: ${JSON.stringify(config.srcDir)}, docs: farmDocsResolvedConfig, isPathGuarded: isFarmDocsPathGuarded, basePath: ${JSON.stringify(config.basePath)} })` : "null"};
9677
+ const farmDocsAPIHandler = ${_optionalChain([config, 'access', _239 => _239.docs, 'optionalAccess', _240 => _240.enabled]) ? hasPrecompiledDocs ? "farmDocsPrecompiledRuntime.handleAPIRequest" : adapterOwnsDocsRuntime ? "null" : `createFarmDocsAPIHandler({ rootDir: farmDocsRuntimeRoot, srcDir: ${JSON.stringify(config.srcDir)}, docs: farmDocsResolvedConfig, isPathGuarded: isFarmDocsPathGuarded, basePath: ${JSON.stringify(config.basePath)} })` : "null"};
9675
9678
 
9676
9679
  // A long-running server calls this before it listens, so a Polyroute route's first request
9677
9680
  // doesn't wait for its WebAssembly to compile and its instance to start. Polyroute releases
@@ -9722,12 +9725,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
9722
9725
  // runtime request.
9723
9726
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
9724
9727
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
9725
- ${_optionalChain([config, 'access', _257 => _257.agent, 'optionalAccess', _258 => _258.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkC4DZAEVTcjs.resolveFarmApiCatalogInput.call(void 0, config))};
9726
- ` : ""}${_optionalChain([config, 'access', _259 => _259.agent, 'optionalAccess', _260 => _260.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
9727
- _chunkC4DZAEVTcjs.resolveFarmAppManifestInput.call(void 0, config, {
9728
+ ${_optionalChain([config, 'access', _241 => _241.agent, 'optionalAccess', _242 => _242.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkMR64FNW6cjs.resolveFarmApiCatalogInput.call(void 0, config))};
9729
+ ` : ""}${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
9730
+ _chunkMR64FNW6cjs.resolveFarmAppManifestInput.call(void 0, config, {
9728
9731
  build: config.deploymentId,
9729
- packages: _chunkUBH2OARScjs.resolveFarmAppPackages.call(void 0, config.root),
9730
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkUBH2OARScjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9732
+ packages: _chunkPVB5UYJTcjs.resolveFarmAppPackages.call(void 0, config.root),
9733
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkPVB5UYJTcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
9731
9734
  })
9732
9735
  )};
9733
9736
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -9740,7 +9743,7 @@ farmAppManifestInput.guardCoversPath = (path) =>
9740
9743
  path,
9741
9744
  farmLocalAPIBasePath,
9742
9745
  );
9743
- ${_optionalChain([config, 'access', _261 => _261.docs, 'optionalAccess', _262 => _262.enabled]) ? `// A docs runtime's MCP server lists its tools when asked over MCP, in process. A build
9746
+ ${_optionalChain([config, 'access', _245 => _245.docs, 'optionalAccess', _246 => _246.enabled]) ? `// A docs runtime's MCP server lists its tools when asked over MCP, in process. A build
9744
9747
  // can't change them, so they are read once.
9745
9748
  if (farmDocsHandler) {
9746
9749
  farmAppManifestInput.registeredMCP = (request) =>
@@ -11102,10 +11105,10 @@ async function handleMetadataImageRequest(request, routePathname) {
11102
11105
  path: match.pagePath,
11103
11106
  };
11104
11107
 
11105
- ${hasGeneratedMetadataImages ? `const value = await resolveFarmMetadataImageValue(imageModule, props${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "" : ", {\n renderer: ReactDOMServer,\n component: image.component === true,\n }"});
11108
+ ${hasGeneratedMetadataImages ? `const value = await resolveFarmMetadataImageValue(imageModule, props${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "" : ", {\n renderer: ReactDOMServer,\n component: image.component === true,\n }"});
11106
11109
  return createFarmMetadataImageResponse(value, imageModule, {
11107
11110
  method,
11108
- ifNoneMatch: request.headers.get("if-none-match"),${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: ReactDOMServer,"}
11111
+ ifNoneMatch: request.headers.get("if-none-match"),${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "" : "\n renderer: ReactDOMServer,"}
11109
11112
  });` : 'throw new Error("Generated metadata image runtime is unavailable");'}
11110
11113
  } catch (error) {
11111
11114
  console.error("Metadata image render failed:", error);
@@ -11239,7 +11242,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
11239
11242
  // aside for a page route that answers /mcp and for any MCP server published or
11240
11243
  // registered at runtime, such as the docs engine's.
11241
11244
  const farmDefaultMCPServer = ${JSON.stringify(
11242
- _chunkR6GOH5CHcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkXPVS4HKUcjs.FARM_VERSION)
11245
+ _chunkR6GOH5CHcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkJZAGIXMBcjs.FARM_VERSION)
11243
11246
  )};
11244
11247
  let farmDefaultMCPRouteFree;
11245
11248
  function getFarmDefaultMCPServer() {
@@ -11433,7 +11436,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
11433
11436
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
11434
11437
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
11435
11438
  const farmPrerendering =
11436
- typeof process !== "undefined" && process.env?.${_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV} === "1";
11439
+ typeof process !== "undefined" && process.env?.${_chunkV6ACETKRcjs.FARM_PRERENDER_ENV} === "1";
11437
11440
  ` : ""}
11438
11441
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
11439
11442
  config: farmMiddlewareConfig,
@@ -11577,7 +11580,7 @@ function hasLocalRequestRoute(request, routePathname) {
11577
11580
  if (${imageRuntime === "none" ? "false" : `pathname === ${JSON.stringify(config.images.path)}`}) {
11578
11581
  return true;
11579
11582
  }
11580
- ${_optionalChain([config, 'access', _263 => _263.docs, 'optionalAccess', _264 => _264.enabled]) ? `const docsPath = normalizeRuntimePath(farmDocsResolvedConfig?.entry || "/docs");
11583
+ ${_optionalChain([config, 'access', _247 => _247.docs, 'optionalAccess', _248 => _248.enabled]) ? `const docsPath = normalizeRuntimePath(farmDocsResolvedConfig?.entry || "/docs");
11581
11584
  // The docs answer below the basePath; their API stays at /api/docs, as API routes do.
11582
11585
  const docsRoutePathname = stripFarmBasePath(pathname);
11583
11586
  if (
@@ -11605,7 +11608,7 @@ function getFarmPluginRequestOptions(request) {
11605
11608
  route: { ...route, pattern: normalizeRuntimePath(farmOpenAPIReference.route) },
11606
11609
  };
11607
11610
  }
11608
- const isDocsAPIRequest = ${_optionalChain([config, 'access', _265 => _265.docs, 'optionalAccess', _266 => _266.enabled]) ? "isFarmDocsAPIRequest(pathname)" : "false"};
11611
+ const isDocsAPIRequest = ${_optionalChain([config, 'access', _249 => _249.docs, 'optionalAccess', _250 => _250.enabled]) ? "isFarmDocsAPIRequest(pathname)" : "false"};
11609
11612
  const integrationMatch = ${hasServerRuntimeIntegrations ? `matchIntegrationRoute(serverRuntimeIntegrations, {
11610
11613
  pathname,
11611
11614
  method: request.method,
@@ -11689,7 +11692,7 @@ ${hasInfraAnalyticsRuntime ? `
11689
11692
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
11690
11693
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
11691
11694
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
11692
- _chunkC4DZAEVTcjs.listFarmBuiltInRoutePaths.call(void 0, {
11695
+ _chunkMR64FNW6cjs.listFarmBuiltInRoutePaths.call(void 0, {
11693
11696
  agent: {
11694
11697
  ...config.agent,
11695
11698
  aiCatalog: servesAiCatalog,
@@ -11700,9 +11703,9 @@ const farmBuiltInRoutePaths = new Set(${JSON.stringify(
11700
11703
  openapi: openAPIReference
11701
11704
  })
11702
11705
  )});
11703
- ${_optionalChain([config, 'access', _267 => _267.docs, 'optionalAccess', _268 => _268.enabled]) ? `const farmDocsRouteLabelInput = {
11706
+ ${_optionalChain([config, 'access', _251 => _251.docs, 'optionalAccess', _252 => _252.enabled]) ? `const farmDocsRouteLabelInput = {
11704
11707
  path: normalizeRuntimePath(farmDocsResolvedConfig?.entry || "/docs"),
11705
- apiPath: ${JSON.stringify(_optionalChain([farmDocsPrecompiledManifest, 'optionalAccess', _269 => _269.apiPath]) || "/api/docs")},${_optionalChain([config, 'access', _270 => _270.docs, 'access', _271 => _271.roots, 'optionalAccess', _272 => _272.length]) ? "\n roots: farmDocsResolvedConfig.roots.map((farmDocsRoot) => farmDocsRoot.entry)," : ""}${farmDocsAnalyticsPages.length ? `
11708
+ apiPath: ${JSON.stringify(_optionalChain([farmDocsPrecompiledManifest, 'optionalAccess', _253 => _253.apiPath]) || "/api/docs")},${_optionalChain([config, 'access', _254 => _254.docs, 'access', _255 => _255.roots, 'optionalAccess', _256 => _256.length]) ? "\n roots: farmDocsResolvedConfig.roots.map((farmDocsRoot) => farmDocsRoot.entry)," : ""}${farmDocsAnalyticsPages.length ? `
11706
11709
  pages: new Set(${JSON.stringify(farmDocsAnalyticsPages)}),` : ""}
11707
11710
  };
11708
11711
  ` : ""}// The request's route payload, for a handler that learns what answered while it handles.
@@ -11718,11 +11721,11 @@ function labelFarmRequestOptions(options) {
11718
11721
  setFarmRouteLabel(options.route, mcpLabel);
11719
11722
  return options;
11720
11723
  }
11721
- ${_optionalChain([config, 'access', _273 => _273.docs, 'optionalAccess', _274 => _274.enabled]) ? `if (options.kind === "docs") {
11724
+ ${_optionalChain([config, 'access', _257 => _257.docs, 'optionalAccess', _258 => _258.enabled]) ? `if (options.kind === "docs") {
11722
11725
  setFarmRouteLabel(options.route, resolveFarmDocsRouteLabel(routePathname, farmDocsRouteLabelInput));
11723
11726
  return options;
11724
11727
  }` : ""}
11725
- ${_optionalChain([config, 'access', _275 => _275.md, 'optionalAccess', _276 => _276.enabled]) || hasMarkdownPages ? `const markdownLabel = resolveFarmMarkdownRouteLabel(
11728
+ ${_optionalChain([config, 'access', _259 => _259.md, 'optionalAccess', _260 => _260.enabled]) || hasMarkdownPages ? `const markdownLabel = resolveFarmMarkdownRouteLabel(
11726
11729
  routePathname,
11727
11730
  (page) => matchPageRoute(page)?.route.pattern,
11728
11731
  );
@@ -11757,7 +11760,7 @@ function getApplicableLayouts(pathname, directory) {
11757
11760
  return applicable;
11758
11761
  }
11759
11762
 
11760
- ${_optionalChain([config, 'access', _277 => _277.docs, 'optionalAccess', _278 => _278.enabled]) ? `async function wrapFarmDocsResponseWithLayouts(request, response) {
11763
+ ${_optionalChain([config, 'access', _261 => _261.docs, 'optionalAccess', _262 => _262.enabled]) ? `async function wrapFarmDocsResponseWithLayouts(request, response) {
11761
11764
  if (request.method === "HEAD") return response;
11762
11765
  if (response.headers.get("x-farm-docs-adapter")) return response;
11763
11766
 
@@ -11863,7 +11866,7 @@ ${_optionalChain([config, 'access', _277 => _277.docs, 'optionalAccess', _278 =>
11863
11866
 
11864
11867
  // Shells keep their own LRU so query-string variants never evict app cache entries.
11865
11868
  const pprShellCache = getFarmDataCache().pprShellCache;
11866
- const experimentalPPREnabled = ${JSON.stringify(_optionalChain([config, 'access', _279 => _279.experimental, 'optionalAccess', _280 => _280.ppr]) === true)};
11869
+ const experimentalPPREnabled = ${JSON.stringify(_optionalChain([config, 'access', _263 => _263.experimental, 'optionalAccess', _264 => _264.ppr]) === true)};
11867
11870
 
11868
11871
  function resolveRouteRenderingView(route) {
11869
11872
  // The same merge development uses: baked directive config under the
@@ -11983,7 +11986,7 @@ async function handleFarmRequest(request, adapterContext) {
11983
11986
  },
11984
11987
  { redirect: !isFarmLocalAPIPathname(requestUrl.pathname) }
11985
11988
  )` : "handleFarmRequestInContext(request, null, false, Date.now(), adapterContext, requestUrl)"};
11986
- ${_optionalChain([config, 'access', _281 => _281.md, 'optionalAccess', _282 => _282.enabled]) ? `const pathname = getFarmRoutePathname(requestUrl.pathname);
11989
+ ${_optionalChain([config, 'access', _265 => _265.md, 'optionalAccess', _266 => _266.enabled]) ? `const pathname = getFarmRoutePathname(requestUrl.pathname);
11987
11990
  if (matchPageRoute(pathname)) {
11988
11991
  // The Link header advertises the public .md URL, like the head alternate.
11989
11992
  return applyMarkdownNegotiationHeaders(response, {
@@ -12200,7 +12203,7 @@ ${hasServerRuntimeIntegrations ? `
12200
12203
  return renderFarmErrorJSONResponse();` : `
12201
12204
  if (isFarmLocalAPIPathname(pathname)) return renderFarmErrorJSONResponse();
12202
12205
  // No page was selected, so only the root error boundary and layouts apply.
12203
- const errorResponse = await renderFarmErrorResponse(middlewareResult.error, "/", {}, null);${_optionalChain([config, 'access', _283 => _283.md, 'optionalAccess', _284 => _284.enabled]) ? `
12206
+ const errorResponse = await renderFarmErrorResponse(middlewareResult.error, "/", {}, null);${_optionalChain([config, 'access', _267 => _267.md, 'optionalAccess', _268 => _268.enabled]) ? `
12204
12207
  // An agent asking for Markdown reads the error document as Markdown, as it
12205
12208
  // does when a page throws. The helper answers null when Markdown is off.
12206
12209
  const markdownErrorResponse = await createMarkdownMirrorResponse({
@@ -12242,7 +12245,7 @@ ${hasServerRuntimeIntegrations ? `
12242
12245
  }
12243
12246
  ` : ""}
12244
12247
 
12245
- ${_optionalChain([config, 'access', _285 => _285.docs, 'optionalAccess', _286 => _286.enabled]) ? `
12248
+ ${_optionalChain([config, 'access', _269 => _269.docs, 'optionalAccess', _270 => _270.enabled]) ? `
12246
12249
  // Docs responses are served after app middleware so route guards and
12247
12250
  // middleware headers apply to the docs engine like any other page content.
12248
12251
  // An app's own llms.txt, llms-full.txt, sitemap.xml, and robots.txt take
@@ -12362,7 +12365,7 @@ ${hasServerRuntimeIntegrations ? `
12362
12365
  }
12363
12366
  ` : ""}
12364
12367
 
12365
- ${_optionalChain([config, 'access', _287 => _287.md, 'optionalAccess', _288 => _288.enabled]) ? `
12368
+ ${_optionalChain([config, 'access', _271 => _271.md, 'optionalAccess', _272 => _272.enabled]) ? `
12366
12369
  if (farmMarkdownConfig?.enabled) {
12367
12370
  const markdownResponse = await createMarkdownMirrorResponse({
12368
12371
  // The mirror helper only reads metadata and creates its own GET request.
@@ -12466,11 +12469,11 @@ ${hasServerRuntimeIntegrations ? `
12466
12469
  return applyProductionMiddlewareHeaders(applicationMetadataResponse, middlewareHeaders);
12467
12470
  }
12468
12471
  ` : ""}
12469
- ${_optionalChain([config, 'access', _289 => _289.agent, 'optionalAccess', _290 => _290.manifest]) !== false ? `
12472
+ ${_optionalChain([config, 'access', _273 => _273.agent, 'optionalAccess', _274 => _274.manifest]) !== false ? `
12470
12473
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
12471
12474
  // public manifest, the same document for every request.
12472
12475
  if (
12473
- [${JSON.stringify(_chunkC4DZAEVTcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkC4DZAEVTcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12476
+ [${JSON.stringify(_chunkMR64FNW6cjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkMR64FNW6cjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
12474
12477
  normalizeRuntimePath(routePathname),
12475
12478
  )
12476
12479
  ) {
@@ -12480,9 +12483,9 @@ ${hasServerRuntimeIntegrations ? `
12480
12483
  );
12481
12484
  }
12482
12485
  ` : ""}
12483
- ${_optionalChain([config, 'access', _291 => _291.agent, 'optionalAccess', _292 => _292.apiCatalog]) ? `
12486
+ ${_optionalChain([config, 'access', _275 => _275.agent, 'optionalAccess', _276 => _276.apiCatalog]) ? `
12484
12487
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
12485
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkC4DZAEVTcjs.FARM_API_CATALOG_PATH)}) {
12488
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkMR64FNW6cjs.FARM_API_CATALOG_PATH)}) {
12486
12489
  return applyProductionMiddlewareHeaders(
12487
12490
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
12488
12491
  middlewareHeaders,
@@ -12507,11 +12510,11 @@ ${hasServerRuntimeIntegrations ? `
12507
12510
  );
12508
12511
  }
12509
12512
  ` : ""}
12510
- ${_optionalChain([config, 'access', _293 => _293.agent, 'optionalAccess', _294 => _294.llmsTxt, 'optionalAccess', _295 => _295.enabled]) ? `
12513
+ ${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.llmsTxt, 'optionalAccess', _279 => _279.enabled]) ? `
12511
12514
  // agent.llmsTxt with no llms.ts or llms-full.ts: serve the generated files.
12512
12515
  const farmGeneratedLlmsKind = normalizeRuntimePath(routePathname) === "/llms.txt"
12513
12516
  ? "llms"
12514
- : ${_optionalChain([config, 'access', _296 => _296.agent, 'optionalAccess', _297 => _297.llmsTxt, 'optionalAccess', _298 => _298.full]) ? `normalizeRuntimePath(routePathname) === "/llms-full.txt" ? "llms-full" : ` : ""}null;
12517
+ : ${_optionalChain([config, 'access', _280 => _280.agent, 'optionalAccess', _281 => _281.llmsTxt, 'optionalAccess', _282 => _282.full]) ? `normalizeRuntimePath(routePathname) === "/llms-full.txt" ? "llms-full" : ` : ""}null;
12515
12518
  if (farmGeneratedLlmsKind) {
12516
12519
  const llmsContext = createFarmLlmsTxtContext(request, farmGeneratedLlmsKind === "llms-full");
12517
12520
  // Renders are shared per origin the request reached, which is where pages are read.
@@ -12547,7 +12550,7 @@ ${hasServerRuntimeIntegrations ? `
12547
12550
  }
12548
12551
  ` : ""}
12549
12552
 
12550
- ${_optionalChain([config, 'access', _299 => _299.docs, 'optionalAccess', _300 => _300.enabled]) ? `if (farmDocsAPIHandler && isFarmDocsAPIRequest(pathname)) {
12553
+ ${_optionalChain([config, 'access', _283 => _283.docs, 'optionalAccess', _284 => _284.enabled]) ? `if (farmDocsAPIHandler && isFarmDocsAPIRequest(pathname)) {
12551
12554
  const docsAPIResponse = await farmDocsAPIHandler(cloneFarmRequestWithContext(request));
12552
12555
  if (docsAPIResponse) {
12553
12556
  return applyProductionMiddlewareHeaders(
@@ -13042,7 +13045,7 @@ ${hasServerRuntimeIntegrations ? `
13042
13045
  pageElement,
13043
13046
  );
13044
13047
 
13045
- ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) pageElement = markPagePosition(React, pageElement);" : ""}
13048
+ ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) pageElement = markPagePosition(React, pageElement);" : ""}
13046
13049
  // Wrap with layouts (from innermost to outermost)
13047
13050
  // Layouts are sorted by depth (root first), so we process in reverse
13048
13051
  let wrappedElement = pageElement;
@@ -13116,7 +13119,7 @@ ${hasServerRuntimeIntegrations ? `
13116
13119
  wrappedElement = wrapFarmRouteClientGraph(wrappedElement);
13117
13120
  }
13118
13121
 
13119
- ${_chunkHP7QYVSTcjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) wrappedElement = markLayoutPosition(React, wrappedElement);" : ""}
13122
+ ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? "if (route.shouldHydrate && !shouldHydrateLayout) wrappedElement = markLayoutPosition(React, wrappedElement);" : ""}
13120
13123
  wrappedElement = wrapWithFarmIntegrationProviders(wrappedElement);
13121
13124
  return renderFarmElement(ReactDOMServer, wrappedElement, route.pattern, farmFlushToken);
13122
13125
  };
@@ -13187,7 +13190,7 @@ ${hasServerRuntimeIntegrations ? `
13187
13190
  );
13188
13191
  }
13189
13192
  }
13190
- ${_optionalChain([config, 'access', _301 => _301.md, 'optionalAccess', _302 => _302.enabled]) ? `
13193
+ ${_optionalChain([config, 'access', _285 => _285.md, 'optionalAccess', _286 => _286.enabled]) ? `
13191
13194
  // Advertise the Markdown mirror in the head as well as the Link header,
13192
13195
  // using the public path the .md request will be resolved against.
13193
13196
  mergedMetadata = addMetadataMarkdownAlternate(
@@ -13216,7 +13219,7 @@ ${hasServerRuntimeIntegrations ? `
13216
13219
  emitFarmEvent({ type: "cache.bypass", route: pathname, reason: "cookie" });
13217
13220
  }
13218
13221
 
13219
- const renderedMetadata = renderMetadataHead(mergedMetadata, { pathname, jsonLd: ${JSON.stringify(_nullishCoalesce(_optionalChain([config, 'access', _303 => _303.agent, 'optionalAccess', _304 => _304.jsonLd]), () => ( false)))} });
13222
+ const renderedMetadata = renderMetadataHead(mergedMetadata, { pathname, jsonLd: ${JSON.stringify(_nullishCoalesce(_optionalChain([config, 'access', _287 => _287.agent, 'optionalAccess', _288 => _288.jsonLd]), () => ( false)))} });
13220
13223
  const title = renderedMetadata.title;
13221
13224
  const metaTags = renderedMetadata.tags;
13222
13225
  const hasFavicon = renderedMetadata.hasFavicon;
@@ -14074,11 +14077,11 @@ function createFarmRuntimeHookErrorResponse(request, error) {
14074
14077
  export async function fetch(request, context) {${imageRuntime === "none" ? "" : `
14075
14078
  // The image optimizer's fetch of a local source is not a loopback visitor.
14076
14079
  context = _withFarmImageSourceClientAddress(request, context);`}
14077
- ${_optionalChain([config, 'access', _305 => _305.agent, 'optionalAccess', _306 => _306.noindexPreviews]) ? "const response = await" : "return"} _runWithAPIRequestRuntime({
14080
+ ${_optionalChain([config, 'access', _289 => _289.agent, 'optionalAccess', _290 => _290.noindexPreviews]) ? "const response = await" : "return"} _runWithAPIRequestRuntime({
14078
14081
  basePath: farmLocalAPIBasePath,
14079
14082
  dispatch: async (localRequest) =>
14080
14083
  (await handleAPIRequest(localRequest)) ?? Response.json({ error: "Not Found" }, { status: 404 }),
14081
- }, () => handleFarmFetch(request, context));${_optionalChain([config, 'access', _307 => _307.agent, 'optionalAccess', _308 => _308.noindexPreviews]) ? `
14084
+ }, () => handleFarmFetch(request, context));${_optionalChain([config, 'access', _291 => _291.agent, 'optionalAccess', _292 => _292.noindexPreviews]) ? `
14082
14085
  // Keep every response of a preview deployment out of search indexes.
14083
14086
  return farmNoindexPreview ? applyFarmPreviewRobotsTag(response) : response;` : ""}
14084
14087
  }
@@ -14288,7 +14291,7 @@ function getManifestPageEntry(manifest, pathname) {
14288
14291
  })).sort((left, right) => _chunkT4YCWRCJcjs.compareRouteSpecificity.call(void 0, left.specificity, right.specificity)).map(({ entry, matches }) => ({ entry, matches }));
14289
14292
  manifestPageMatchers.set(manifest.routes, pages);
14290
14293
  }
14291
- return _optionalChain([pages, 'access', _309 => _309.find, 'call', _310 => _310((page) => page.matches(pathname)), 'optionalAccess', _311 => _311.entry]);
14294
+ return _optionalChain([pages, 'access', _293 => _293.find, 'call', _294 => _294((page) => page.matches(pathname)), 'optionalAccess', _295 => _295.entry]);
14292
14295
  }
14293
14296
  function withFarmEdgeGuardedPrerenderHeaders(headers, edgeGuarded) {
14294
14297
  if (!edgeGuarded) return headers;
@@ -14327,11 +14330,11 @@ function getPhysicalPrerenderBypassReason(options) {
14327
14330
  }
14328
14331
  if (_chunkIGBQSUT5cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
14329
14332
  if (_chunkIGBQSUT5cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
14330
- if (_chunkF5T55PYXcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
14333
+ if (_chunkEIAA4W3Mcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
14331
14334
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
14332
14335
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
14333
- if (_optionalChain([manifestEntry, 'optionalAccess', _312 => _312.rendering]) === "dynamic") return "dynamic runtime manifest";
14334
- if (manifestEntry && (manifestEntry.runtime !== "auto" || Boolean(_optionalChain([manifestEntry, 'access', _313 => _313.regions, 'optionalAccess', _314 => _314.length])) || manifestEntry.maxDuration !== void 0)) {
14336
+ if (_optionalChain([manifestEntry, 'optionalAccess', _296 => _296.rendering]) === "dynamic") return "dynamic runtime manifest";
14337
+ if (manifestEntry && (manifestEntry.runtime !== "auto" || Boolean(_optionalChain([manifestEntry, 'access', _297 => _297.regions, 'optionalAccess', _298 => _298.length])) || manifestEntry.maxDuration !== void 0)) {
14335
14338
  return "route runtime controls";
14336
14339
  }
14337
14340
  const routeRule = getEffectiveRouteRule(config, pathname);
@@ -14350,11 +14353,11 @@ function normalizeStaticNotFoundPath(pathname) {
14350
14353
  var FARM_STATIC_NOT_FOUND_PROBE = "/__farm-static-not-found-probe__/0";
14351
14354
  async function resolveFarmStaticNotFoundPlan(options) {
14352
14355
  const { config, routeManager } = options;
14353
- if (_optionalChain([config, 'access', _315 => _315.experimental, 'optionalAccess', _316 => _316.staticNotFound]) !== true) return null;
14356
+ if (_optionalChain([config, 'access', _299 => _299.experimental, 'optionalAccess', _300 => _300.staticNotFound]) !== true) return null;
14354
14357
  if (options.preset !== "vercel") {
14355
14358
  return { reason: `it applies to the vercel target, not "${options.preset}"` };
14356
14359
  }
14357
- if (_chunkHP7QYVSTcjs.isFarmRendererDisabled.call(void 0, config.renderer)) {
14360
+ if (_chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, config.renderer)) {
14358
14361
  return { reason: "the app sets `renderer: false`, so a missing URL gets a JSON 404" };
14359
14362
  }
14360
14363
  if (config.i18n.enabled) return { reason: "i18n may redirect any path to a locale" };
@@ -14421,7 +14424,7 @@ async function resolveFarmStaticNotFoundPlan(options) {
14421
14424
  if (_chunkUOFTT6S4cjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, FARM_STATIC_NOT_FOUND_PROBE)) {
14422
14425
  return { reason: `the server plugin "${plugin.name}" may answer any path` };
14423
14426
  }
14424
- for (const endpoint of _nullishCoalesce(_optionalChain([plugin, 'access', _317 => _317.runtime, 'optionalAccess', _318 => _318.endpoints]), () => ( []))) {
14427
+ for (const endpoint of _nullishCoalesce(_optionalChain([plugin, 'access', _301 => _301.runtime, 'optionalAccess', _302 => _302.endpoints]), () => ( []))) {
14425
14428
  paths.add(
14426
14429
  _chunkUOFTT6S4cjs.normalizeFarmPluginRuntimeEndpointPath.call(void 0,
14427
14430
  endpoint.path,
@@ -14470,14 +14473,14 @@ async function resolveFarmStaticNotFoundPlan(options) {
14470
14473
  const refusal = addMatcherSource(source, "the rewrite source");
14471
14474
  if (refusal) return { reason: refusal };
14472
14475
  }
14473
- if (_optionalChain([config, 'access', _319 => _319.docs, 'optionalAccess', _320 => _320.enabled])) {
14476
+ if (_optionalChain([config, 'access', _303 => _303.docs, 'optionalAccess', _304 => _304.enabled])) {
14474
14477
  for (const docsRoot of _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs)) {
14475
14478
  const entry = normalizeStaticNotFoundPath(docsRoot.entry);
14476
14479
  if (entry === "/") return { reason: "the docs entry is `/`, so docs answer every path" };
14477
14480
  prefixPatterns.add(entry);
14478
14481
  }
14479
14482
  if (_chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
14480
- const adapterRoutes = await _chunkVQYGXWCScjs.listFarmDocsAdapterRoutes.call(void 0, config.docs, {
14483
+ const adapterRoutes = await _chunkXSE4XJKYcjs.listFarmDocsAdapterRoutes.call(void 0, config.docs, {
14481
14484
  root: options.root,
14482
14485
  srcDir: config.srcDir
14483
14486
  });
@@ -14506,9 +14509,9 @@ async function resolveFarmStaticNotFoundPlan(options) {
14506
14509
  if (config.openapi.specRoute) paths.add(config.openapi.specRoute);
14507
14510
  }
14508
14511
  if (config.workflows.route) prefixPatterns.add(config.workflows.route);
14509
- const notFoundPath = _chunkUBH2OARScjs.resolveFarmNotFoundComponentPath.call(void 0,
14512
+ const notFoundPath = _chunkPVB5UYJTcjs.resolveFarmNotFoundComponentPath.call(void 0,
14510
14513
  config,
14511
- _chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config),
14514
+ _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config),
14512
14515
  routeManager.getRendererNotFoundPath()
14513
14516
  );
14514
14517
  if (notFoundPath && /\bpathname\b/.test(_fs.readFileSync.call(void 0, notFoundPath, "utf8"))) {
@@ -14527,7 +14530,7 @@ async function resolveFarmStaticNotFoundPlan(options) {
14527
14530
  };
14528
14531
  }
14529
14532
  async function getFarmDocsPrerenderPages(config, root, preset) {
14530
- if (!_optionalChain([config, 'access', _321 => _321.docs, 'optionalAccess', _322 => _322.enabled]) || !config.docs.prerender) return [];
14533
+ if (!_optionalChain([config, 'access', _305 => _305.docs, 'optionalAccess', _306 => _306.enabled]) || !config.docs.prerender) return [];
14531
14534
  if (_chunkVIDUNAQEcjs.getFarmPresetRuntime.call(void 0, preset) === "edge") {
14532
14535
  _chunk7ZDLE77Pcjs.logger.info(
14533
14536
  `\u21AA Keeping docs pages in the edge docs snapshot: docs.prerender writes static files on Node and serverless targets, not "${preset}".`
@@ -14546,7 +14549,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
14546
14549
  }
14547
14550
  return pages2;
14548
14551
  }
14549
- const pages = await _chunkVQYGXWCScjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
14552
+ const pages = await _chunkXSE4XJKYcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
14550
14553
  if (!pages) {
14551
14554
  _chunk7ZDLE77Pcjs.logger.warn(
14552
14555
  `The docs adapter ${JSON.stringify(config.docs.adapter.id)} does not list its pages for prerendering; upgrade it to prerender docs pages. They render on request until then.`
@@ -14556,11 +14559,11 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
14556
14559
  return pages;
14557
14560
  }
14558
14561
  async function listFarmDocsAnalyticsPages(config, root, preset) {
14559
- if (!_optionalChain([config, 'access', _323 => _323.docs, 'optionalAccess', _324 => _324.enabled]) || config.analytics === false || _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "nodejs") {
14562
+ if (!_optionalChain([config, 'access', _307 => _307.docs, 'optionalAccess', _308 => _308.enabled]) || config.analytics === false || _chunkRLC7NNTAcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) !== "nodejs") {
14560
14563
  return [];
14561
14564
  }
14562
14565
  try {
14563
- return await _chunkVQYGXWCScjs.listFarmDocsPagePaths.call(void 0, config.docs, {
14566
+ return await _chunkXSE4XJKYcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
14564
14567
  root,
14565
14568
  srcDir: config.srcDir,
14566
14569
  adapter: _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
@@ -14574,16 +14577,16 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
14574
14577
  }
14575
14578
  function hasFarmNitroCacheRouteRule(routeRules) {
14576
14579
  return Object.values(routeRules || {}).some((rule) => {
14577
- const swr = _optionalChain([rule, 'optionalAccess', _325 => _325.swr]);
14578
- const cache = _optionalChain([rule, 'optionalAccess', _326 => _326.cache]);
14579
- const headers = _optionalChain([rule, 'optionalAccess', _327 => _327.headers]);
14580
+ const swr = _optionalChain([rule, 'optionalAccess', _309 => _309.swr]);
14581
+ const cache = _optionalChain([rule, 'optionalAccess', _310 => _310.cache]);
14582
+ const headers = _optionalChain([rule, 'optionalAccess', _311 => _311.headers]);
14580
14583
  return swr !== void 0 && swr !== false || cache !== void 0 && cache !== false || !!headers && typeof headers === "object" && Object.keys(headers).length > 0;
14581
14584
  });
14582
14585
  }
14583
14586
  function getFarmRouteRuleHeaderNames(routeRules) {
14584
14587
  const names = /* @__PURE__ */ new Set();
14585
14588
  for (const rule of Object.values(routeRules || {})) {
14586
- const headers = _optionalChain([rule, 'optionalAccess', _328 => _328.headers]);
14589
+ const headers = _optionalChain([rule, 'optionalAccess', _312 => _312.headers]);
14587
14590
  if (!headers || typeof headers !== "object") continue;
14588
14591
  for (const name of Object.keys(headers)) names.add(name.toLowerCase());
14589
14592
  }
@@ -14598,10 +14601,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
14598
14601
  const nitroBuilder = nitroBuilderResult.value;
14599
14602
  const isVercel = preset === "vercel";
14600
14603
  const isCloudflareWorker = preset === "cloudflare-module";
14601
- const outputDir = _chunkF5T55PYXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
14604
+ const outputDir = _chunkEIAA4W3Mcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
14602
14605
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
14603
14606
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
14604
- const imageRuntime = _chunkUBH2OARScjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
14607
+ const imageRuntime = _chunkPVB5UYJTcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
14605
14608
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
14606
14609
  (image) => image.sourceType === "module"
14607
14610
  );
@@ -14623,7 +14626,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
14623
14626
  _chunk7ZDLE77Pcjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
14624
14627
  _chunk7ZDLE77Pcjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
14625
14628
  const ssgCollectionPromise = routeManager.collectSSGPages();
14626
- const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config));
14629
+ const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config));
14627
14630
  const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
14628
14631
  const docsPrerenderPagesPromise = getFarmDocsPrerenderPages(config, root, preset);
14629
14632
  const farmWorkflows = await _chunkXE3E4MERcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
@@ -14768,7 +14771,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
14768
14771
  webEntry: clientJsSrc,
14769
14772
  webBoot: clientBootSrc,
14770
14773
  stylesheet: clientCssHref,
14771
- webFiles: _nullishCoalesce(_optionalChain([clientModulePreloads, 'optionalAccess', _329 => _329.files]), () => ( []))
14774
+ webFiles: _nullishCoalesce(_optionalChain([clientModulePreloads, 'optionalAccess', _313 => _313.files]), () => ( []))
14772
14775
  })
14773
14776
  ) : null;
14774
14777
  for (const output of Object.values(ssrBundle)) {
@@ -15135,7 +15138,7 @@ function toFarmNodeResponse(request, response) {
15135
15138
  varyFarmNitroCacheRules(_chunkQZRFEHMScjs.routeRulesToNitroRouteRules.call(void 0, config.routeRules), [
15136
15139
  ...config.md.enabled ? ["accept"] : [],
15137
15140
  ...shouldBuildFarmMobileClient(config) ? ["x-farm-shell"] : [],
15138
- ..._chunkHP7QYVSTcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _330 => _330.experimental, 'optionalAccess', _331 => _331.serverComponents])) === "islands" ? ["f-layouts"] : []
15141
+ ..._chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) === "islands" ? ["f-layouts"] : []
15139
15142
  ]),
15140
15143
  config.basePath,
15141
15144
  _chunkH5AC3XSEcjs.resolveFarmAPIServerBasePath.call(void 0, config.api)
@@ -15307,22 +15310,22 @@ function toFarmNodeResponse(request, response) {
15307
15310
  snapshotSSRRebundleOptions(nitroConfig)
15308
15311
  );
15309
15312
  const requestedBuilder = _nullishCoalesce(nitroConfig.builder, () => ( process.env.NITRO_BUILDER));
15310
- const nitroBuildIsFarms = (requestedBuilder === void 0 || requestedBuilder === "rollup" || requestedBuilder === "rolldown") && nitroConfig.sourcemap === false && !hasCustomOxcOptions && !hasLateBuildMutationConfig && !hasUnsupportedSSRRebundleOverrides && _optionalChain([nitroConfig, 'access', _332 => _332.rollupConfig, 'optionalAccess', _333 => _333.external]) === nitroRollupExternal && !hasRollupPlugins(_optionalChain([nitroConfig, 'access', _334 => _334.rollupConfig, 'optionalAccess', _335 => _335.plugins])) && customRollupKeys.length === 0 && Boolean(
15311
- _optionalChain([nitroConfig, 'access', _336 => _336.handlers, 'optionalAccess', _337 => _337.some, 'call', _338 => _338(
15312
- (handler) => _path2.default.resolve(_optionalChain([handler, 'optionalAccess', _339 => _339.handler]) || "") === nitroEntryPath
15313
+ const nitroBuildIsFarms = (requestedBuilder === void 0 || requestedBuilder === "rollup" || requestedBuilder === "rolldown") && nitroConfig.sourcemap === false && !hasCustomOxcOptions && !hasLateBuildMutationConfig && !hasUnsupportedSSRRebundleOverrides && _optionalChain([nitroConfig, 'access', _314 => _314.rollupConfig, 'optionalAccess', _315 => _315.external]) === nitroRollupExternal && !hasRollupPlugins(_optionalChain([nitroConfig, 'access', _316 => _316.rollupConfig, 'optionalAccess', _317 => _317.plugins])) && customRollupKeys.length === 0 && Boolean(
15314
+ _optionalChain([nitroConfig, 'access', _318 => _318.handlers, 'optionalAccess', _319 => _319.some, 'call', _320 => _320(
15315
+ (handler) => _path2.default.resolve(_optionalChain([handler, 'optionalAccess', _321 => _321.handler]) || "") === nitroEntryPath
15313
15316
  )])
15314
15317
  );
15315
- const canReusePrebuiltSSR = isPrebuiltSSRCandidate && PREBUILT_SSR_PRESETS.has(_nullishCoalesce(nitroConfig.preset, () => ( ""))) && nitroBuildIsFarms && _path2.default.resolve(_optionalChain([nitroConfig, 'access', _340 => _340.output, 'optionalAccess', _341 => _341.serverDir]) || "") === _path2.default.resolve(expectedServerDir);
15318
+ const canReusePrebuiltSSR = isPrebuiltSSRCandidate && PREBUILT_SSR_PRESETS.has(_nullishCoalesce(nitroConfig.preset, () => ( ""))) && nitroBuildIsFarms && _path2.default.resolve(_optionalChain([nitroConfig, 'access', _322 => _322.output, 'optionalAccess', _323 => _323.serverDir]) || "") === _path2.default.resolve(expectedServerDir);
15316
15319
  const prerenderReusesPrebuiltSSR = (prerenderRoutes.length > 0 || staticNotFoundPrerenderPath !== null) && ssrExternalsArePackaged && nitroBuildIsFarms;
15317
15320
  const selectRolldownBuilder = canReusePrebuiltSSR && requestedBuilder === void 0 && await canUseRolldownBuilder();
15318
15321
  if (selectRolldownBuilder) nitroConfig.builder = "rolldown";
15319
15322
  const useRolldownBuilder = canReusePrebuiltSSR && (_nullishCoalesce(nitroConfig.builder, () => ( process.env.NITRO_BUILDER))) === "rolldown";
15320
15323
  const shouldMinify = nitroConfig.minify !== false;
15321
- const keepServerNames = !(_optionalChain([config, 'access', _342 => _342.docs, 'optionalAccess', _343 => _343.enabled]) && _optionalChain([config, 'access', _344 => _344.docs, 'access', _345 => _345.adapter, 'optionalAccess', _346 => _346.server]));
15324
+ const keepServerNames = !(_optionalChain([config, 'access', _324 => _324.docs, 'optionalAccess', _325 => _325.enabled]) && _optionalChain([config, 'access', _326 => _326.docs, 'access', _327 => _327.adapter, 'optionalAccess', _328 => _328.server]));
15322
15325
  const useFarmServerMinifier = shouldMinify && nitroConfig.sourcemap === false && !hasCustomOxcOptions && !hasLateBuildMutationConfig;
15323
15326
  const serverChunkMinifier = useFarmServerMinifier ? createServerChunkMinifyPlugin({ keepNames: keepServerNames, target: "esnext" }) : null;
15324
15327
  const ssrRollupPlugin = canReusePrebuiltSSR ? prebuiltSSRPlugin : createServerReadSSRAssetsPlugin(ssrBundle, ssrOutputDir);
15325
- const configuredRollupPlugins = _optionalChain([nitroConfig, 'access', _347 => _347.rollupConfig, 'optionalAccess', _348 => _348.plugins]);
15328
+ const configuredRollupPlugins = _optionalChain([nitroConfig, 'access', _329 => _329.rollupConfig, 'optionalAccess', _330 => _330.plugins]);
15326
15329
  nitroConfig.rollupConfig = {
15327
15330
  ...nitroConfig.rollupConfig,
15328
15331
  plugins: [
@@ -15361,7 +15364,7 @@ function toFarmNodeResponse(request, response) {
15361
15364
  let skippedNonHtmlPrerenderRoute = false;
15362
15365
  nitroInstance.hooks.hook("prerender:generate", (route) => {
15363
15366
  if (route.error || !prerenderPagePaths.has(route.route)) return;
15364
- if (_optionalChain([route, 'access', _349 => _349.contentType, 'optionalAccess', _350 => _350.toLowerCase, 'call', _351 => _351(), 'access', _352 => _352.includes, 'call', _353 => _353("html")])) return;
15367
+ if (_optionalChain([route, 'access', _331 => _331.contentType, 'optionalAccess', _332 => _332.toLowerCase, 'call', _333 => _333(), 'access', _334 => _334.includes, 'call', _335 => _335("html")])) return;
15365
15368
  route.skip = true;
15366
15369
  skippedNonHtmlPrerenderRoute = true;
15367
15370
  const configuredRule = configuredNitroRouteRules[route.route];
@@ -15372,9 +15375,9 @@ function toFarmNodeResponse(request, response) {
15372
15375
  nitroInstance.hooks.hook("prerender:done", () => {
15373
15376
  if (skippedNonHtmlPrerenderRoute) nitroInstance.routing.sync();
15374
15377
  });
15375
- if (_optionalChain([config, 'access', _354 => _354.md, 'optionalAccess', _355 => _355.enabled])) {
15378
+ if (_optionalChain([config, 'access', _336 => _336.md, 'optionalAccess', _337 => _337.enabled])) {
15376
15379
  nitroInstance.hooks.hook("prerender:generate", (route) => {
15377
- if (!route.contents || !_optionalChain([route, 'access', _356 => _356.contentType, 'optionalAccess', _357 => _357.toLowerCase, 'call', _358 => _358(), 'access', _359 => _359.includes, 'call', _360 => _360("html")])) return;
15380
+ if (!route.contents || !_optionalChain([route, 'access', _338 => _338.contentType, 'optionalAccess', _339 => _339.toLowerCase, 'call', _340 => _340(), 'access', _341 => _341.includes, 'call', _342 => _342("html")])) return;
15378
15381
  const alternatePath = _chunkU2HFXURZcjs.getFarmMarkdownAlternatePath.call(void 0, config.md, route.route, {
15379
15382
  routePathname: (pathname) => routeManager.toRoutePathname(pathname)
15380
15383
  });
@@ -15397,7 +15400,7 @@ function toFarmNodeResponse(request, response) {
15397
15400
  }
15398
15401
  if (config.security.csp && config.security.csp.nonce) {
15399
15402
  nitroInstance.hooks.hook("prerender:generate", async (route) => {
15400
- if (!route.contents || !_optionalChain([route, 'access', _361 => _361.contentType, 'optionalAccess', _362 => _362.toLowerCase, 'call', _363 => _363(), 'access', _364 => _364.includes, 'call', _365 => _365("html")])) return;
15403
+ if (!route.contents || !_optionalChain([route, 'access', _343 => _343.contentType, 'optionalAccess', _344 => _344.toLowerCase, 'call', _345 => _345(), 'access', _346 => _346.includes, 'call', _347 => _347("html")])) return;
15401
15404
  const staticCsp = await _chunkIEZFFXSCcjs.applyFarmCspHashesToHtml.call(void 0, route.contents, config.security);
15402
15405
  if (!staticCsp) return;
15403
15406
  route.contents = staticCsp.html;
@@ -15418,8 +15421,8 @@ function toFarmNodeResponse(request, response) {
15418
15421
  if (staticNotFoundPrerenderPath) {
15419
15422
  nitroInstance.hooks.hook("prerender:generate", (route) => {
15420
15423
  if (route.route !== staticNotFoundPrerenderPath) return;
15421
- const status = _nullishCoalesce(_optionalChain([route, 'access', _366 => _366.error, 'optionalAccess', _367 => _367.status]), () => ( 200));
15422
- const contentType = _nullishCoalesce(_optionalChain([route, 'access', _368 => _368.contentType, 'optionalAccess', _369 => _369.toLowerCase, 'call', _370 => _370()]), () => ( ""));
15424
+ const status = _nullishCoalesce(_optionalChain([route, 'access', _348 => _348.error, 'optionalAccess', _349 => _349.status]), () => ( 200));
15425
+ const contentType = _nullishCoalesce(_optionalChain([route, 'access', _350 => _350.contentType, 'optionalAccess', _351 => _351.toLowerCase, 'call', _352 => _352()]), () => ( ""));
15423
15426
  route.error = void 0;
15424
15427
  if (status === 404 && contentType.includes("text/html")) {
15425
15428
  staticNotFoundWritten = true;
@@ -15449,7 +15452,7 @@ function toFarmNodeResponse(request, response) {
15449
15452
  await nitroBuilder.copyPublicAssets(nitroInstance);
15450
15453
  if (prerenderReusesPrebuiltSSR && (!canReusePrebuiltSSR || preset !== "node-server")) {
15451
15454
  nitroInstance.hooks.hook("prerender:config", (prerendererConfig) => {
15452
- const configuredPlugins = _optionalChain([prerendererConfig, 'access', _371 => _371.rollupConfig, 'optionalAccess', _372 => _372.plugins]);
15455
+ const configuredPlugins = _optionalChain([prerendererConfig, 'access', _353 => _353.rollupConfig, 'optionalAccess', _354 => _354.plugins]);
15453
15456
  const plugins = Array.isArray(configuredPlugins) ? configuredPlugins : configuredPlugins ? [configuredPlugins] : [];
15454
15457
  prerendererConfig.rollupConfig = {
15455
15458
  ...prerendererConfig.rollupConfig,
@@ -15517,13 +15520,13 @@ function toFarmNodeResponse(request, response) {
15517
15520
  if (prerenderRoutes.length > 0) {
15518
15521
  _chunk7ZDLE77Pcjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
15519
15522
  }
15520
- const previousPrerender = process.env[_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV];
15521
- process.env[_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV] = "1";
15523
+ const previousPrerender = process.env[_chunkV6ACETKRcjs.FARM_PRERENDER_ENV];
15524
+ process.env[_chunkV6ACETKRcjs.FARM_PRERENDER_ENV] = "1";
15522
15525
  try {
15523
15526
  await nitroBuilder.prerender(nitroInstance);
15524
15527
  } finally {
15525
- if (previousPrerender === void 0) delete process.env[_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV];
15526
- else process.env[_chunkMBDDLYT5cjs.FARM_PRERENDER_ENV] = previousPrerender;
15528
+ if (previousPrerender === void 0) delete process.env[_chunkV6ACETKRcjs.FARM_PRERENDER_ENV];
15529
+ else process.env[_chunkV6ACETKRcjs.FARM_PRERENDER_ENV] = previousPrerender;
15527
15530
  }
15528
15531
  }
15529
15532
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -15614,7 +15617,7 @@ function toFarmNodeResponse(request, response) {
15614
15617
  ...staticNotFoundPlan.input,
15615
15618
  matcherSources: [...staticNotFoundPlan.input.matcherSources, ...handlerSources]
15616
15619
  });
15617
- const fileHeaders = _optionalChain([nitroInstance, 'access', _373 => _373.options, 'access', _374 => _374.routeRules, 'access', _375 => _375[staticNotFoundPrerenderPath], 'optionalAccess', _376 => _376.headers]);
15620
+ const fileHeaders = _optionalChain([nitroInstance, 'access', _355 => _355.options, 'access', _356 => _356.routeRules, 'access', _357 => _357[staticNotFoundPrerenderPath], 'optionalAccess', _358 => _358.headers]);
15618
15621
  const cspHeaders = Object.fromEntries(
15619
15622
  Object.entries(fileHeaders || {}).filter(
15620
15623
  ([name]) => name.toLowerCase().startsWith("content-security-policy")
@@ -15740,7 +15743,7 @@ async function moveVercelOutputPath(src, dest, fs5) {
15740
15743
  await fs5.rename(src, dest);
15741
15744
  return;
15742
15745
  } catch (error) {
15743
- const code = _optionalChain([error, 'optionalAccess', _377 => _377.code]);
15746
+ const code = _optionalChain([error, 'optionalAccess', _359 => _359.code]);
15744
15747
  if (code !== "EPERM" && code !== "EACCES" && code !== "EXDEV" && code !== "ENOTEMPTY" && code !== "EEXIST") {
15745
15748
  throw error;
15746
15749
  }
@@ -15766,7 +15769,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
15766
15769
  try {
15767
15770
  await moveVercelOutputPath(publicDir, staticDir, fs5);
15768
15771
  } catch (error) {
15769
- if (_optionalChain([error, 'optionalAccess', _378 => _378.code]) !== "ENOENT") throw error;
15772
+ if (_optionalChain([error, 'optionalAccess', _360 => _360.code]) !== "ENOENT") throw error;
15770
15773
  }
15771
15774
  await copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs5);
15772
15775
  await copyPrismaClientForVercel(root, nitroFuncDir, fs5);
@@ -15810,7 +15813,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
15810
15813
  _chunk7ZDLE77Pcjs.logger.info("\u2705 Post-processed Vercel output for Build Output API v3");
15811
15814
  }
15812
15815
  async function copyFarmDocsContentForVercel(config, root, nitroFuncDir, fs5, options = {}) {
15813
- if (!_optionalChain([config, 'access', _379 => _379.docs, 'optionalAccess', _380 => _380.enabled])) return;
15816
+ if (!_optionalChain([config, 'access', _361 => _361.docs, 'optionalAccess', _362 => _362.enabled])) return;
15814
15817
  const [mainRoot, ...extraRoots] = _chunk4A6WSOZHcjs.getFarmDocsRoots.call(void 0, config.docs);
15815
15818
  await copyFarmDocsRootContent(
15816
15819
  mainRoot,
@@ -15840,7 +15843,7 @@ async function copyFarmDocsRootContent(docs, root, srcDir, bundledContentDir, fs
15840
15843
  const lastModifiedManifest = _chunk4A6WSOZHcjs.createFarmDocsLastModifiedManifest.call(void 0, docsContentDir, {
15841
15844
  fallback: "now"
15842
15845
  });
15843
- const undatedPages = _nullishCoalesce(_optionalChain([lastModifiedManifest, 'access', _381 => _381.unknown, 'optionalAccess', _382 => _382.length]), () => ( 0));
15846
+ const undatedPages = _nullishCoalesce(_optionalChain([lastModifiedManifest, 'access', _363 => _363.unknown, 'optionalAccess', _364 => _364.length]), () => ( 0));
15844
15847
  if (log && undatedPages > 0) {
15845
15848
  _chunk7ZDLE77Pcjs.logger.warn(
15846
15849
  `${undatedPages} docs page(s) were last changed before this shallow clone's Git history, so they show no "Last updated" date. Build from a full clone (git fetch --unshallow) or set lastModified in the page's frontmatter.`
@@ -15927,7 +15930,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
15927
15930
  try {
15928
15931
  await copyPackage("sharp", sharpRequire);
15929
15932
  if (!copiedPackages.has("sharp")) {
15930
- throw new Error(`Farm image optimization requires sharp. ${_chunkUBH2OARScjs.SHARP_INSTALL_HINT}`);
15933
+ throw new Error(`Farm image optimization requires sharp. ${_chunkPVB5UYJTcjs.SHARP_INSTALL_HINT}`);
15931
15934
  }
15932
15935
  } catch (error) {
15933
15936
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -16161,7 +16164,7 @@ async function createFarmProjectModuleSsrEnvironment() {
16161
16164
  // src/build/index.ts
16162
16165
  async function build(config, options = {}) {
16163
16166
  return _chunkJYQMGMKTcjs.withProductionNodeEnv.call(void 0,
16164
- () => _chunkPSALMEHJcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
16167
+ () => _chunkD2OU4CX2cjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
16165
16168
  );
16166
16169
  }
16167
16170
  function createBuildTargetBaseline(config) {
@@ -16172,7 +16175,7 @@ function createBuildTargetBaseline(config) {
16172
16175
  preset,
16173
16176
  distDir,
16174
16177
  outputDir,
16175
- outputWasDerived: outputDir === _chunkF5T55PYXcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
16178
+ outputWasDerived: outputDir === _chunkEIAA4W3Mcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
16176
16179
  };
16177
16180
  }
16178
16181
  function resolveBuildTargets(config, options, baseline) {
@@ -16181,8 +16184,8 @@ function resolveBuildTargets(config, options, baseline) {
16181
16184
  const distDir = config.distDir || ".farm";
16182
16185
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
16183
16186
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
16184
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkF5T55PYXcjs.getDeployTargetForPreset.call(void 0, preset);
16185
- const outputDir = shouldRefreshDerivedOutput ? _chunkF5T55PYXcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
16187
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkEIAA4W3Mcjs.getDeployTargetForPreset.call(void 0, preset);
16188
+ const outputDir = shouldRefreshDerivedOutput ? _chunkEIAA4W3Mcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
16186
16189
  return {
16187
16190
  root,
16188
16191
  preset,
@@ -16190,7 +16193,7 @@ function resolveBuildTargets(config, options, baseline) {
16190
16193
  distDir,
16191
16194
  deployTarget,
16192
16195
  outputDir,
16193
- deployOutputDir: _chunkF5T55PYXcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
16196
+ deployOutputDir: _chunkEIAA4W3Mcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
16194
16197
  };
16195
16198
  }
16196
16199
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -16227,15 +16230,15 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
16227
16230
  };
16228
16231
  config = {
16229
16232
  ...config,
16230
- images: _chunkUBH2OARScjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
16233
+ images: _chunkPVB5UYJTcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
16231
16234
  root: targets.root,
16232
16235
  preset: targets.preset
16233
16236
  })
16234
16237
  };
16235
- if (_optionalChain([config, 'access', _383 => _383.docs, 'optionalAccess', _384 => _384.enabled])) await _chunkTDAH76RRcjs.loadFarmDocsEngine.call(void 0, );
16238
+ if (_optionalChain([config, 'access', _365 => _365.docs, 'optionalAccess', _366 => _366.enabled])) await _chunkTDAH76RRcjs.loadFarmDocsEngine.call(void 0, );
16236
16239
  pluginManager.updateContext({ config });
16237
16240
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
16238
- _chunkPSALMEHJcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkPSALMEHJcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
16241
+ _chunkD2OU4CX2cjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkD2OU4CX2cjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
16239
16242
  _chunk7ZDLE77Pcjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
16240
16243
  await pluginManager.setupPlugins();
16241
16244
  await pluginManager.runHookParallel("beforeBundle", {
@@ -16247,8 +16250,8 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
16247
16250
  });
16248
16251
  _chunk7ZDLE77Pcjs.logger.info("\u{1F50D} Discovering routes and API endpoints...");
16249
16252
  const productionViteResult = productionViteResultPromise ? (await productionViteResultPromise)[0] : void 0;
16250
- if (_optionalChain([productionViteResult, 'optionalAccess', _385 => _385.status]) === "rejected") throw productionViteResult.reason;
16251
- const productionVite = _optionalChain([productionViteResult, 'optionalAccess', _386 => _386.value]);
16253
+ if (_optionalChain([productionViteResult, 'optionalAccess', _367 => _367.status]) === "rejected") throw productionViteResult.reason;
16254
+ const productionVite = _optionalChain([productionViteResult, 'optionalAccess', _368 => _368.value]);
16252
16255
  const createViteServer = productionVite ? productionVite.createServer : (await import("vite")).createServer;
16253
16256
  projectModuleServer = await createProjectModuleServer(
16254
16257
  createViteServer,
@@ -16256,31 +16259,33 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
16256
16259
  root,
16257
16260
  rendererBuild.signal
16258
16261
  );
16259
- const farmApp = _chunkUBH2OARScjs.createFarmApp.call(void 0, config, projectModuleServer);
16262
+ const farmApp = _chunkPVB5UYJTcjs.createFarmApp.call(void 0, config, projectModuleServer);
16260
16263
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
16261
16264
  await farmApp.initialize();
16262
16265
  const routeManager = farmApp.getRouteManager();
16263
16266
  const serverRenderer = farmApp.getServerRenderer();
16264
- const typeArtifacts = _chunkKM7ZRKCHcjs.generateFarmTypeArtifacts.call(void 0, {
16267
+ const typeArtifacts = _chunkGL4SPJTEcjs.generateFarmTypeArtifacts.call(void 0, {
16265
16268
  root,
16266
16269
  srcDir,
16267
16270
  layers: config.layers,
16268
16271
  storage: config.storage,
16269
16272
  plugins: config.plugins,
16270
16273
  extraRoutes: [
16271
- ..._optionalChain([config, 'access', _387 => _387.openapi, 'optionalAccess', _388 => _388.enabled]) && config.openapi.route ? [config.openapi.route] : [],
16274
+ ..._optionalChain([config, 'access', _369 => _369.openapi, 'optionalAccess', _370 => _370.enabled]) && config.openapi.route ? [config.openapi.route] : [],
16272
16275
  ..._chunk4A6WSOZHcjs.getFarmDocsRouteTypeEntries.call(void 0, config.docs)
16273
16276
  ],
16274
16277
  suppressLintOnLink: config.suppressLintOnLink,
16275
16278
  componentExtensions: config.renderer.componentExtensions,
16276
16279
  renderer: config.renderer,
16277
- i18nConfig: config.i18n
16280
+ i18nConfig: config.i18n,
16281
+ // Match the routes the API route manager below discovers through this server.
16282
+ polyroute: _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, projectModuleServer.config.plugins)
16278
16283
  }).catch((error) => {
16279
16284
  const message = error instanceof Error ? error.message : String(error);
16280
16285
  _chunk7ZDLE77Pcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
16281
16286
  });
16282
- const apiRouteManager = new (0, _chunk5BZ7PR3Tcjs.APIRouteManager)(
16283
- _chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config),
16287
+ const apiRouteManager = new (0, _chunkD2VLHRBNcjs.APIRouteManager)(
16288
+ _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config),
16284
16289
  projectModuleServer,
16285
16290
  {
16286
16291
  throwOnLoadError: true,
@@ -16354,7 +16359,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
16354
16359
  throw error;
16355
16360
  } finally {
16356
16361
  try {
16357
- await _optionalChain([projectModuleServer, 'optionalAccess', _389 => _389.close, 'call', _390 => _390()]);
16362
+ await _optionalChain([projectModuleServer, 'optionalAccess', _371 => _371.close, 'call', _372 => _372()]);
16358
16363
  } finally {
16359
16364
  rendererBuild.abort();
16360
16365
  }
@@ -16362,11 +16367,11 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
16362
16367
  }
16363
16368
  async function createProjectModuleServer(createViteServer, config, root, buildLifetime) {
16364
16369
  const { farmNavigationPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
16365
- const rendererVitePlugins = await _chunkHP7QYVSTcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
16370
+ const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, root, {
16366
16371
  ssr: true,
16367
16372
  buildLifetime
16368
16373
  });
16369
- const viteConfig = _chunkUBH2OARScjs.mergeFarmViteConfig.call(void 0,
16374
+ const viteConfig = _chunkPVB5UYJTcjs.mergeFarmViteConfig.call(void 0,
16370
16375
  {
16371
16376
  root,
16372
16377
  appType: "custom",
@@ -16378,13 +16383,13 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
16378
16383
  },
16379
16384
  plugins: [
16380
16385
  ...rendererVitePlugins,
16381
- _chunkUBH2OARScjs.farmFontImportsPlugin.call(void 0, {
16386
+ _chunkPVB5UYJTcjs.farmFontImportsPlugin.call(void 0, {
16382
16387
  root,
16383
16388
  basePath: config.basePath,
16384
16389
  publicDir: config.publicDir,
16385
- isLayoutModule: (id) => _chunkUBH2OARScjs.isFarmLayoutModule.call(void 0, id, _chunkKBURN62Zcjs.getFarmAppDirectories.call(void 0, config))
16390
+ isLayoutModule: (id) => _chunkPVB5UYJTcjs.isFarmLayoutModule.call(void 0, id, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, config))
16386
16391
  }),
16387
- _chunkPSALMEHJcjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
16392
+ _chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, { renderer: config.renderer }),
16388
16393
  // Route modules load here at build time (rendering config, prerendering): `server-only`
16389
16394
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
16390
16395
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -16400,7 +16405,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
16400
16405
  hmr: false
16401
16406
  },
16402
16407
  resolve: {
16403
- alias: _chunkUBH2OARScjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
16408
+ alias: _chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
16404
16409
  dedupe: [...config.renderer.dedupe || []]
16405
16410
  },
16406
16411
  optimizeDeps: {
@@ -16439,10 +16444,10 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
16439
16444
  noDiscovery: true
16440
16445
  },
16441
16446
  // An app or plugin that brings its own SSR environment keeps it.
16442
- environments: _optionalChain([viteConfig, 'access', _391 => _391.environments, 'optionalAccess', _392 => _392.ssr, 'optionalAccess', _393 => _393.dev, 'optionalAccess', _394 => _394.createEnvironment]) ? viteConfig.environments : {
16447
+ environments: _optionalChain([viteConfig, 'access', _373 => _373.environments, 'optionalAccess', _374 => _374.ssr, 'optionalAccess', _375 => _375.dev, 'optionalAccess', _376 => _376.createEnvironment]) ? viteConfig.environments : {
16443
16448
  ...viteConfig.environments,
16444
16449
  ssr: {
16445
- ..._optionalChain([viteConfig, 'access', _395 => _395.environments, 'optionalAccess', _396 => _396.ssr]),
16450
+ ..._optionalChain([viteConfig, 'access', _377 => _377.environments, 'optionalAccess', _378 => _378.ssr]),
16446
16451
  ...await createFarmProjectModuleSsrEnvironment()
16447
16452
  }
16448
16453
  }
@@ -16478,7 +16483,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
16478
16483
  farmNavigationPlugin(config.renderer),
16479
16484
  farmIslandContainersPlugin(config),
16480
16485
  farmPlugin(config, pluginManager),
16481
- _chunkPSALMEHJcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
16486
+ _chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
16482
16487
  ],
16483
16488
  mode: "production"
16484
16489
  });
@@ -16506,20 +16511,20 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
16506
16511
  define: {
16507
16512
  __FARM_API_BASE_URL__: JSON.stringify(config.api.baseURL),
16508
16513
  __FARM_ENV__: JSON.stringify(_chunkTP7JAC3Tcjs.createBundledEnv.call(void 0, config.env)),
16509
- __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _397 => _397.env, 'optionalAccess', _398 => _398.public]) || {})
16514
+ __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _379 => _379.env, 'optionalAccess', _380 => _380.public]) || {})
16510
16515
  },
16511
16516
  plugins: [
16512
16517
  farmI18nClientBridgePlugin(),
16513
16518
  farmIslandContainersPlugin(config),
16514
16519
  farmPlugin(config, pluginManager),
16515
- _chunkPSALMEHJcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
16520
+ _chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
16516
16521
  ],
16517
16522
  mode: "production"
16518
16523
  });
16519
16524
  }
16520
16525
  function resolveLegacyPageEntry(config, root, srcDir) {
16521
16526
  const appDir = _path2.default.join(root, srcDir, "app");
16522
- for (const extension of _chunkHP7QYVSTcjs.getFarmRendererComponentExtensions.call(void 0, config.renderer)) {
16527
+ for (const extension of _chunkLEZJZX4Ccjs.getFarmRendererComponentExtensions.call(void 0, config.renderer)) {
16523
16528
  const candidate = _path2.default.join(appDir, `page${extension}`);
16524
16529
  if (_fs.existsSync.call(void 0, candidate)) return candidate;
16525
16530
  }
@@ -16540,7 +16545,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
16540
16545
  if (pluginManager) {
16541
16546
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
16542
16547
  }
16543
- const outputDir = _chunkF5T55PYXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
16548
+ const outputDir = _chunkEIAA4W3Mcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
16544
16549
  const serverOutputDir = _path2.default.join(outputDir, "server");
16545
16550
  const publicOutputDir = _path2.default.join(outputDir, "public");
16546
16551
  const { mkdir, cp } = await import("fs/promises");
@@ -16611,7 +16616,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
16611
16616
  root,
16612
16617
  preset,
16613
16618
  distDir,
16614
- outputDir: _chunkF5T55PYXcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir),
16619
+ outputDir: _chunkEIAA4W3Mcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir),
16615
16620
  serverDir: _path2.default.resolve(nitro.options.output.serverDir)
16616
16621
  });
16617
16622
  }