@farm.js/core 0.1.75 → 0.1.77

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 (233) hide show
  1. package/dist/{agent-mcp.d-Djvao5eV.d.ts → agent-mcp.d-B1h3RznZ.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-wA13pwmS.d.mts → agent-mcp.d-WFQotg8M.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +2 -2
  4. package/dist/agent-runtime.d.mts +7 -5
  5. package/dist/agent-runtime.d.ts +7 -5
  6. package/dist/agent-runtime.mjs +1 -1
  7. package/dist/{analyzer-LJHMFCDW.mjs → analyzer-64YS2OXQ.mjs} +2 -2
  8. package/dist/analyzer-HTNXLX6N.cjs +16 -0
  9. package/dist/api/node.d.mts +9 -7
  10. package/dist/api/node.d.ts +9 -7
  11. package/dist/api/route-manager.d.mts +9 -7
  12. package/dist/api/route-manager.d.ts +9 -7
  13. package/dist/api/runtime.d.mts +8 -6
  14. package/dist/api/runtime.d.ts +8 -6
  15. package/dist/api.d.mts +10 -8
  16. package/dist/api.d.ts +10 -8
  17. package/dist/{app-manifest.d-DIuqSi9k.d.mts → app-manifest.d-EZEYG-tD.d.mts} +1 -1
  18. package/dist/{app-manifest.d-BukcP_EV.d.ts → app-manifest.d-Ktsqsuk9.d.ts} +1 -1
  19. package/dist/app-markdown.d.mts +8 -6
  20. package/dist/app-markdown.d.ts +8 -6
  21. package/dist/{app.d-BQqmM6Gy.d.ts → app.d-CSh3y8w8.d.ts} +5 -4
  22. package/dist/{app.d-YVuFb10p.d.mts → app.d-DTkqYcIr.d.mts} +5 -4
  23. package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
  24. package/dist/{chunk-HV2WZFUW.mjs → chunk-2QPTZMGK.mjs} +1 -1
  25. package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
  26. package/dist/{chunk-LQBV2Y37.mjs → chunk-65XXHTVJ.mjs} +38 -2
  27. package/dist/{chunk-XGDI4OUB.cjs → chunk-6ZFGWB75.cjs} +13 -1
  28. package/dist/{chunk-IDOUCM2X.mjs → chunk-7EXFAJST.mjs} +57 -44
  29. package/dist/{chunk-HVJ7IACB.cjs → chunk-7SAGHWWU.cjs} +2 -2
  30. package/dist/{chunk-GNY7BO7R.mjs → chunk-BTHNOAOF.mjs} +2 -2
  31. package/dist/{chunk-TJVUTGED.mjs → chunk-D2RLADWN.mjs} +285 -93
  32. package/dist/chunk-DS2KZ5BT.mjs +16 -0
  33. package/dist/{chunk-WHCNJVYU.cjs → chunk-DSRWQ4SJ.cjs} +3 -3
  34. package/dist/{chunk-ZPCZWEU3.cjs → chunk-FCHEO3LG.cjs} +2 -2
  35. package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
  36. package/dist/{chunk-4T2RB4JA.mjs → chunk-FNVGK72M.mjs} +5 -5
  37. package/dist/{chunk-TFEODQLG.mjs → chunk-FPGSIOWS.mjs} +2 -2
  38. package/dist/{chunk-4BS3HSY7.cjs → chunk-FTQUNBRN.cjs} +2 -2
  39. package/dist/{chunk-ZV76IQG7.cjs → chunk-FVVGEGQ2.cjs} +2 -2
  40. package/dist/{chunk-7564NP5Z.cjs → chunk-GC2BSXQS.cjs} +39 -3
  41. package/dist/{chunk-HT2SZKXG.mjs → chunk-H76C5AOU.mjs} +12 -0
  42. package/dist/{chunk-OFIFRB62.mjs → chunk-IHMSLS2O.mjs} +36 -20
  43. package/dist/{chunk-BUC3FDYC.cjs → chunk-IIVZTGGP.cjs} +2 -2
  44. package/dist/{chunk-6MATGOEF.mjs → chunk-IXC6WDMT.mjs} +1 -1
  45. package/dist/{chunk-KPYQ32BA.cjs → chunk-JD42G6BN.cjs} +2 -2
  46. package/dist/{chunk-WJ5CCQBM.cjs → chunk-LTDMJD2F.cjs} +4 -4
  47. package/dist/{chunk-XX6ZA2IO.cjs → chunk-MQW4LHJR.cjs} +1 -1
  48. package/dist/{chunk-BNTRXJL4.cjs → chunk-NQZWLIPT.cjs} +3 -3
  49. package/dist/{chunk-QGYHE6VJ.mjs → chunk-NTHAZLVS.mjs} +28 -27
  50. package/dist/{chunk-OCLCA3X3.mjs → chunk-OCKQ3YOH.mjs} +1 -1
  51. package/dist/{chunk-PBQGIA27.cjs → chunk-OQZF6H6G.cjs} +4 -4
  52. package/dist/{chunk-YSTKSZD2.mjs → chunk-ORWXJDUN.mjs} +1 -1
  53. package/dist/{chunk-JNZDTE75.cjs → chunk-PMKUTZGR.cjs} +8 -8
  54. package/dist/{chunk-4ZSZI6XL.cjs → chunk-PUEPDMWY.cjs} +16 -16
  55. package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
  56. package/dist/{chunk-A5F55ZFA.mjs → chunk-QODXWUGQ.mjs} +2 -2
  57. package/dist/chunk-RFXEQYPH.cjs +723 -0
  58. package/dist/{chunk-IK33N2AN.cjs → chunk-SIYELCIX.cjs} +158 -142
  59. package/dist/{chunk-MFU7SXAB.mjs → chunk-SL2BSPDJ.mjs} +1 -1
  60. package/dist/{chunk-H7QY7ZE4.mjs → chunk-SMYDCZBW.mjs} +1 -1
  61. package/dist/{chunk-GLF44JKY.mjs → chunk-TQOYIPMQ.mjs} +1 -1
  62. package/dist/{chunk-IVBDRAOR.cjs → chunk-UYACD4SH.cjs} +1 -1
  63. package/dist/{chunk-B4CWYGCG.mjs → chunk-WHNNDFCJ.mjs} +1 -1
  64. package/dist/{chunk-4MU4QCX4.mjs → chunk-WXMR3OHY.mjs} +1 -1
  65. package/dist/{chunk-YL7BKHYE.cjs → chunk-WZVESREI.cjs} +291 -278
  66. package/dist/chunk-XRRHPBG2.cjs +16 -0
  67. package/dist/{chunk-NPGXX7HN.cjs → chunk-YROK6CJC.cjs} +7 -7
  68. package/dist/{chunk-OZARLCYQ.cjs → chunk-YRQ44JTF.cjs} +179 -178
  69. package/dist/{chunk-2NQ3S2SJ.mjs → chunk-YTGNMKRA.mjs} +1 -1
  70. package/dist/{chunk-YCNKS6SD.mjs → chunk-ZBE5EHVJ.mjs} +4 -4
  71. package/dist/cli-runtime.d-DljFfr8T.d.ts +537 -0
  72. package/dist/cli-runtime.d-HSkdfvoq.d.mts +537 -0
  73. package/dist/client/lifecycle.d.mts +1 -1
  74. package/dist/client/lifecycle.d.ts +1 -1
  75. package/dist/{client-component.d-BeqVuqy2.d.mts → client-component.d-B-1dIlsw.d.mts} +2 -137
  76. package/dist/{client-component.d-CZ1NpHAY.d.ts → client-component.d-_otXB__v.d.ts} +2 -137
  77. package/dist/{client-plugins.d-ChceYO9t.d.mts → client-plugins.d-BmBzvfSP.d.mts} +4 -4
  78. package/dist/{client-plugins.d-D9kWC0QB.d.ts → client-plugins.d-MjxlvbCK.d.ts} +4 -4
  79. package/dist/client-plugins.d.mts +7 -5
  80. package/dist/client-plugins.d.ts +7 -5
  81. package/dist/client.d.mts +12 -10
  82. package/dist/client.d.ts +12 -10
  83. package/dist/config.d.mts +7 -5
  84. package/dist/config.d.ts +7 -5
  85. package/dist/desktop.d.mts +8 -6
  86. package/dist/desktop.d.ts +8 -6
  87. package/dist/{devtools-B3W3DLPG.mjs → devtools-7LHXG2VS.mjs} +4 -3
  88. package/dist/{devtools-T5I2WHRX.cjs → devtools-NNQN66EZ.cjs} +5 -4
  89. package/dist/docs.cjs +6 -5
  90. package/dist/docs.d.mts +10 -65
  91. package/dist/docs.d.ts +10 -65
  92. package/dist/docs.mjs +5 -4
  93. package/dist/environment/vite.cjs +5 -4
  94. package/dist/environment/vite.mjs +4 -3
  95. package/dist/handler.d-C53zFDmp.d.ts +62 -0
  96. package/dist/handler.d-CaYopqaD.d.mts +62 -0
  97. package/dist/{headers.d-Aux4JVnm.d.ts → headers.d-BvtpC90T.d.ts} +1 -1
  98. package/dist/{headers.d-BawakaPv.d.mts → headers.d-MBkD9ZLf.d.mts} +1 -1
  99. package/dist/index.cjs +31 -24
  100. package/dist/index.d-2hQpPZ-P.d.ts +16 -0
  101. package/dist/index.d-Mikf-tdP.d.mts +16 -0
  102. package/dist/index.d.mts +39 -556
  103. package/dist/index.d.ts +39 -556
  104. package/dist/index.mjs +30 -23
  105. package/dist/integrations/orm.cjs +4 -3
  106. package/dist/integrations/orm.d.mts +6 -4
  107. package/dist/integrations/orm.d.ts +6 -4
  108. package/dist/integrations/orm.mjs +3 -2
  109. package/dist/integrations.cjs +2 -2
  110. package/dist/integrations.d.mts +7 -5
  111. package/dist/integrations.d.ts +7 -5
  112. package/dist/integrations.mjs +1 -1
  113. package/dist/internal/app-markdown-runtime.d.mts +8 -6
  114. package/dist/internal/app-markdown-runtime.d.ts +8 -6
  115. package/dist/internal/build-runtime.cjs +23 -22
  116. package/dist/internal/build-runtime.d.mts +10 -7
  117. package/dist/internal/build-runtime.d.ts +10 -7
  118. package/dist/internal/build-runtime.mjs +22 -21
  119. package/dist/internal/cli-runtime.cjs +17 -9
  120. package/dist/internal/cli-runtime.d.mts +46 -0
  121. package/dist/internal/cli-runtime.d.ts +46 -0
  122. package/dist/internal/cli-runtime.mjs +16 -8
  123. package/dist/internal/client-error-overlay.cjs +4 -4
  124. package/dist/internal/client-error-overlay.mjs +1 -1
  125. package/dist/internal/client-runtime.d.mts +11 -9
  126. package/dist/internal/client-runtime.d.ts +11 -9
  127. package/dist/internal/compression-runtime.cjs +2 -2
  128. package/dist/internal/compression-runtime.d.mts +11 -6
  129. package/dist/internal/compression-runtime.d.ts +11 -6
  130. package/dist/internal/compression-runtime.mjs +1 -1
  131. package/dist/internal/config-runtime.cjs +6 -5
  132. package/dist/internal/config-runtime.d.mts +9 -7
  133. package/dist/internal/config-runtime.d.ts +9 -7
  134. package/dist/internal/config-runtime.mjs +5 -4
  135. package/dist/internal/infra-analytics-runtime.cjs +6 -6
  136. package/dist/internal/infra-analytics-runtime.mjs +4 -4
  137. package/dist/internal/native-server-fns.cjs +4 -4
  138. package/dist/internal/native-server-fns.mjs +3 -3
  139. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  140. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  141. package/dist/internal/production-runtime.cjs +8 -7
  142. package/dist/internal/production-runtime.d.mts +16 -14
  143. package/dist/internal/production-runtime.d.ts +16 -14
  144. package/dist/internal/production-runtime.mjs +7 -6
  145. package/dist/internal/start-manifest.d.mts +7 -5
  146. package/dist/internal/start-manifest.d.ts +7 -5
  147. package/dist/{layers-XQ7VFMWO.mjs → layers-I7VE5Q2Y.mjs} +2 -1
  148. package/dist/layers-WP5K5F7W.cjs +21 -0
  149. package/dist/{lifecycle.d-OtGWAvJT.d.ts → lifecycle.d-VzcXyEyn.d.mts} +1 -1
  150. package/dist/{lifecycle.d-OtGWAvJT.d.mts → lifecycle.d-VzcXyEyn.d.ts} +1 -1
  151. package/dist/markdown.d.mts +7 -5
  152. package/dist/markdown.d.ts +7 -5
  153. package/dist/middleware.d.mts +7 -5
  154. package/dist/middleware.d.ts +7 -5
  155. package/dist/{mount.d-BomEt2kV.d.mts → mount.d-DsP46XCy.d.mts} +1 -1
  156. package/dist/{mount.d-Ca8eb9GB.d.ts → mount.d-GU-tNxbE.d.ts} +1 -1
  157. package/dist/{navigation-delegate.d-B1ujRkYo.d.mts → navigation-delegate.d-CUtNOYLi.d.mts} +1 -1
  158. package/dist/{navigation-delegate.d-DJCC2jXF.d.ts → navigation-delegate.d-DsxNPrLT.d.ts} +1 -1
  159. package/dist/navigation.d.mts +10 -8
  160. package/dist/navigation.d.ts +10 -8
  161. package/dist/{plugin-FD4S2QEJ.mjs → plugin-2KWR2X4B.mjs} +1 -1
  162. package/dist/{plugin-5BNPYCER.cjs → plugin-MW7IDV76.cjs} +2 -2
  163. package/dist/plugin.cjs +15 -14
  164. package/dist/plugin.d.mts +11 -8
  165. package/dist/plugin.d.ts +11 -8
  166. package/dist/plugin.mjs +14 -13
  167. package/dist/{render-plan.d-BxRbaxYA.d.ts → render-plan.d-8K6S0h0L.d.ts} +1 -1
  168. package/dist/{render-plan.d-CFod_Zf-.d.mts → render-plan.d-B7Xp-PPW.d.mts} +1 -1
  169. package/dist/renderer-client.d.mts +10 -8
  170. package/dist/renderer-client.d.ts +10 -8
  171. package/dist/{request.d-DRQgaXGG.d.ts → request.d-CuQxmOqX.d.ts} +1 -1
  172. package/dist/{request.d-DG4TeXMM.d.mts → request.d-nhqciCAz.d.mts} +1 -1
  173. package/dist/request.d.mts +8 -6
  174. package/dist/request.d.ts +8 -6
  175. package/dist/{route-rendering.d-Db07UNVG.d.ts → route-rendering.d-BSsdDYC1.d.ts} +1 -1
  176. package/dist/{route-rendering.d-BXtZKgqu.d.mts → route-rendering.d-CeF1FOnl.d.mts} +1 -1
  177. package/dist/{router.d-BC3hyjf0.d.ts → router.d-C7yGlhDL.d.ts} +1 -1
  178. package/dist/{router.d-B61kXqxJ.d.mts → router.d-D462OX24.d.mts} +1 -1
  179. package/dist/routes.d.mts +7 -5
  180. package/dist/routes.d.ts +7 -5
  181. package/dist/{rsc-pipeline-VENBFYXW.cjs → rsc-pipeline-7PV6ARDS.cjs} +8 -7
  182. package/dist/{rsc-pipeline-LJ7YCGY6.mjs → rsc-pipeline-EZU4W4RL.mjs} +7 -6
  183. package/dist/{runtime-UNDTYGQS.cjs → runtime-QOE3NRXF.cjs} +8 -7
  184. package/dist/{runtime-4DWUXZHS.mjs → runtime-RWLFEPS3.mjs} +5 -4
  185. package/dist/{runtime.d-Cl6EBGmC.d.mts → runtime.d-C-BHQMy5.d.mts} +1 -1
  186. package/dist/{runtime.d-SC95yDzr.d.ts → runtime.d-CORDJQMy.d.ts} +1 -1
  187. package/dist/{schema.d-Dny9pnrm.d.mts → schema.d-BM-uVGpx.d.mts} +1 -1
  188. package/dist/{schema.d-Dny9pnrm.d.ts → schema.d-BM-uVGpx.d.ts} +1 -1
  189. package/dist/schema.d.mts +1 -1
  190. package/dist/schema.d.ts +1 -1
  191. package/dist/{index.d-r1MLpgeE.d.ts → server-components-status.d-BJ6huueH.d.mts} +2 -15
  192. package/dist/{index.d-Ccq42CPU.d.mts → server-components-status.d-BbADqqjq.d.ts} +2 -15
  193. package/dist/server-plugins.cjs +2 -2
  194. package/dist/server-plugins.d.mts +9 -7
  195. package/dist/server-plugins.d.ts +9 -7
  196. package/dist/server-plugins.mjs +1 -1
  197. package/dist/server.cjs +46 -39
  198. package/dist/server.d.mts +17 -14
  199. package/dist/server.d.ts +17 -14
  200. package/dist/server.mjs +24 -17
  201. package/dist/session-OU7M4CIF.cjs +24 -0
  202. package/dist/{session-QZXZOPR2.mjs → session-WPAT6H76.mjs} +3 -2
  203. package/dist/{spa-router.d-DrlXgDqY.d.mts → spa-router.d-DfjafHyX.d.mts} +4 -4
  204. package/dist/{spa-router.d-DwM02Mwd.d.ts → spa-router.d-DyGJLQc_.d.ts} +4 -4
  205. package/dist/ssg.d-D11lz_wr.d.ts +138 -0
  206. package/dist/ssg.d-iiLTyLAO.d.mts +138 -0
  207. package/dist/storage.cjs +9 -2
  208. package/dist/storage.d.mts +266 -34
  209. package/dist/storage.d.ts +266 -34
  210. package/dist/storage.mjs +8 -1
  211. package/dist/testing.d.mts +7 -5
  212. package/dist/testing.d.ts +7 -5
  213. package/dist/types.d-DC97bnjj.d.mts +131 -0
  214. package/dist/types.d-DC97bnjj.d.ts +131 -0
  215. package/dist/{utils.d-C6KXz3uB.d.ts → utils.d-D-GQeEfa.d.ts} +1 -1
  216. package/dist/{utils.d-CHzxAshz.d.mts → utils.d-fW-95yEh.d.mts} +1 -1
  217. package/dist/version.cjs +2 -2
  218. package/dist/version.mjs +1 -1
  219. package/dist/vite.cjs +15 -14
  220. package/dist/vite.d.mts +12 -9
  221. package/dist/vite.d.ts +12 -9
  222. package/dist/vite.mjs +14 -13
  223. package/package.json +11 -4
  224. package/dist/analyzer-23GCBYFI.cjs +0 -16
  225. package/dist/chunk-JMYXO572.cjs +0 -531
  226. package/dist/layers-7P4RLKVX.cjs +0 -20
  227. package/dist/session-2Q72D4QV.cjs +0 -23
  228. package/dist/types.d-BnIqOn9w.d.mts +0 -73
  229. package/dist/types.d-BnIqOn9w.d.ts +0 -73
  230. /package/dist/{chunk-6DBBMQWT.cjs → chunk-AF3PNVVF.cjs} +0 -0
  231. /package/dist/{chunk-5O3SK3ZC.mjs → chunk-BEXH6BGH.mjs} +0 -0
  232. /package/dist/{chunk-PMU4U2W2.cjs → chunk-PC5OZ4YR.cjs} +0 -0
  233. /package/dist/{chunk-Z5ZZAGIH.mjs → chunk-RL47VZ6J.mjs} +0 -0
@@ -28,11 +28,11 @@ var _chunkNG2EZ6QScjs = require('./chunk-NG2EZ6QS.cjs');
28
28
  var _chunkVM57CK74cjs = require('./chunk-VM57CK74.cjs');
29
29
 
30
30
 
31
- var _chunk4BS3HSY7cjs = require('./chunk-4BS3HSY7.cjs');
31
+ var _chunkFTQUNBRNcjs = require('./chunk-FTQUNBRN.cjs');
32
32
 
33
33
 
34
34
 
35
- var _chunkBNTRXJL4cjs = require('./chunk-BNTRXJL4.cjs');
35
+ var _chunkNQZWLIPTcjs = require('./chunk-NQZWLIPT.cjs');
36
36
 
37
37
 
38
38
 
@@ -41,7 +41,7 @@ var _chunkBNTRXJL4cjs = require('./chunk-BNTRXJL4.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkZPCZWEU3cjs = require('./chunk-ZPCZWEU3.cjs');
44
+ var _chunkFCHEO3LGcjs = require('./chunk-FCHEO3LG.cjs');
45
45
 
46
46
 
47
47
 
@@ -65,7 +65,7 @@ var _chunkDZZHTMWMcjs = require('./chunk-DZZHTMWM.cjs');
65
65
  var _chunk42EUEYW6cjs = require('./chunk-42EUEYW6.cjs');
66
66
 
67
67
 
68
- var _chunkWHCNJVYUcjs = require('./chunk-WHCNJVYU.cjs');
68
+ var _chunkDSRWQ4SJcjs = require('./chunk-DSRWQ4SJ.cjs');
69
69
 
70
70
 
71
71
  var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
@@ -74,7 +74,7 @@ var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
74
74
 
75
75
 
76
76
 
77
- var _chunkNPGXX7HNcjs = require('./chunk-NPGXX7HN.cjs');
77
+ var _chunkYROK6CJCcjs = require('./chunk-YROK6CJC.cjs');
78
78
 
79
79
 
80
80
  var _chunk3GNHJ3RNcjs = require('./chunk-3GNHJ3RN.cjs');
@@ -116,23 +116,23 @@ var _chunkO4JYMU5Ncjs = require('./chunk-O4JYMU5N.cjs');
116
116
 
117
117
 
118
118
 
119
- var _chunkIK33N2ANcjs = require('./chunk-IK33N2AN.cjs');
119
+ var _chunkSIYELCIXcjs = require('./chunk-SIYELCIX.cjs');
120
120
 
121
121
 
122
122
 
123
123
 
124
124
 
125
125
 
126
- var _chunkHVJ7IACBcjs = require('./chunk-HVJ7IACB.cjs');
126
+ var _chunk7SAGHWWUcjs = require('./chunk-7SAGHWWU.cjs');
127
127
 
128
128
 
129
- var _chunkPMU4U2W2cjs = require('./chunk-PMU4U2W2.cjs');
129
+ var _chunkPC5OZ4YRcjs = require('./chunk-PC5OZ4YR.cjs');
130
130
 
131
131
 
132
132
 
133
133
 
134
134
 
135
- var _chunk7564NP5Zcjs = require('./chunk-7564NP5Z.cjs');
135
+ var _chunkGC2BSXQScjs = require('./chunk-GC2BSXQS.cjs');
136
136
 
137
137
 
138
138
 
@@ -145,7 +145,7 @@ var _chunk7564NP5Zcjs = require('./chunk-7564NP5Z.cjs');
145
145
 
146
146
 
147
147
 
148
- var _chunkXGDI4OUBcjs = require('./chunk-XGDI4OUB.cjs');
148
+ var _chunk6ZFGWB75cjs = require('./chunk-6ZFGWB75.cjs');
149
149
 
150
150
 
151
151
  var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
@@ -159,7 +159,7 @@ var _chunk47JV57DAcjs = require('./chunk-47JV57DA.cjs');
159
159
 
160
160
 
161
161
 
162
- var _chunkWJ5CCQBMcjs = require('./chunk-WJ5CCQBM.cjs');
162
+ var _chunkLTDMJD2Fcjs = require('./chunk-LTDMJD2F.cjs');
163
163
 
164
164
 
165
165
 
@@ -167,7 +167,7 @@ var _chunkWJ5CCQBMcjs = require('./chunk-WJ5CCQBM.cjs');
167
167
  var _chunkYRXPDKMMcjs = require('./chunk-YRXPDKMM.cjs');
168
168
 
169
169
 
170
- var _chunkKPYQ32BAcjs = require('./chunk-KPYQ32BA.cjs');
170
+ var _chunkJD42G6BNcjs = require('./chunk-JD42G6BN.cjs');
171
171
 
172
172
 
173
173
  var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
@@ -188,7 +188,7 @@ var _chunk4EBC7EMWcjs = require('./chunk-4EBC7EMW.cjs');
188
188
 
189
189
 
190
190
 
191
- var _chunkJNZDTE75cjs = require('./chunk-JNZDTE75.cjs');
191
+ var _chunkPMKUTZGRcjs = require('./chunk-PMKUTZGR.cjs');
192
192
 
193
193
 
194
194
 
@@ -210,7 +210,7 @@ var _chunk6JHZPB52cjs = require('./chunk-6JHZPB52.cjs');
210
210
  var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
211
211
 
212
212
 
213
- var _chunkMTBDJ326cjs = require('./chunk-MTBDJ326.cjs');
213
+ var _chunkQMR2TUVZcjs = require('./chunk-QMR2TUVZ.cjs');
214
214
 
215
215
 
216
216
 
@@ -257,13 +257,13 @@ var _chunkQUEYL2WMcjs = require('./chunk-QUEYL2WM.cjs');
257
257
 
258
258
 
259
259
 
260
- var _chunk6DBBMQWTcjs = require('./chunk-6DBBMQWT.cjs');
260
+ var _chunkAF3PNVVFcjs = require('./chunk-AF3PNVVF.cjs');
261
261
 
262
262
 
263
263
  var _chunkQKW6DLDTcjs = require('./chunk-QKW6DLDT.cjs');
264
264
 
265
265
 
266
- var _chunkJMYXO572cjs = require('./chunk-JMYXO572.cjs');
266
+ var _chunkRFXEQYPHcjs = require('./chunk-RFXEQYPH.cjs');
267
267
 
268
268
 
269
269
 
@@ -299,7 +299,7 @@ var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
299
299
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
300
300
 
301
301
 
302
- var _chunkIVBDRAORcjs = require('./chunk-IVBDRAOR.cjs');
302
+ var _chunkUYACD4SHcjs = require('./chunk-UYACD4SH.cjs');
303
303
 
304
304
 
305
305
  var _chunkY3DO7BIJcjs = require('./chunk-Y3DO7BIJ.cjs');
@@ -642,7 +642,7 @@ async function compileFarmDocsManifest(docs, options) {
642
642
  isPathGuarded: options.isPathGuarded,
643
643
  basePath
644
644
  });
645
- const apiHandler = _chunkZPCZWEU3cjs.createFarmDocsAPIHandler.call(void 0, {
645
+ const apiHandler = _chunkFCHEO3LGcjs.createFarmDocsAPIHandler.call(void 0, {
646
646
  rootDir: options.root,
647
647
  srcDir: options.srcDir,
648
648
  docs,
@@ -993,7 +993,7 @@ async function createFarmRouteRuntimeManifest(options) {
993
993
  const routes = [];
994
994
  for (const [pattern, entry] of options.routeManager.getRoutes()) {
995
995
  const routeModule = await options.routeManager.loadRouteModule(entry.modulePath);
996
- const rendering = await _chunk7564NP5Zcjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
996
+ const rendering = await _chunkGC2BSXQScjs.resolveRouteRenderingConfigFromFile.call(void 0, routeModule, entry.modulePath);
997
997
  const runtimeConfig = await options.routeManager.resolveRouteRuntimeConfig(pattern);
998
998
  routes.push({
999
999
  kind: "page",
@@ -1606,7 +1606,7 @@ function farmStripPlatformConfigPlugin(configFiles) {
1606
1606
  // removed block used (`readFileSync` for a version, say).
1607
1607
  enforce: "pre",
1608
1608
  transform: {
1609
- filter: { id: _chunkIK33N2ANcjs.fileNamePattern.call(void 0, configFiles) },
1609
+ filter: { id: _chunkSIYELCIXcjs.fileNamePattern.call(void 0, configFiles) },
1610
1610
  async handler(code, id) {
1611
1611
  const file = id.split("?", 1)[0];
1612
1612
  if (!files.has(_path2.default.resolve(file)) && !files.has(realPath(file))) return null;
@@ -1886,7 +1886,7 @@ async function writeFarmVercelEdgeMiddlewareFunction(options) {
1886
1886
  logLevel: "silent",
1887
1887
  plugins: [edgeNodeModulesPlugin(coreDir, unsupported)],
1888
1888
  resolve: {
1889
- alias: _chunkIK33N2ANcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1889
+ alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
1890
1890
  conditionNames: ["edge-light", "worker", "browser", "import", "module", "default"]
1891
1891
  },
1892
1892
  transform: {
@@ -2139,7 +2139,7 @@ function createPrerenderRuntimeResolverPlugin(root, resolveNitroEntry = resolveN
2139
2139
  };
2140
2140
  }
2141
2141
  function createFarmStorageModuleRegistration(config) {
2142
- const modules = _chunkJMYXO572cjs._collectFarmStorageModules.call(void 0, config.storage);
2142
+ const modules = _chunkRFXEQYPHcjs._collectFarmStorageModules.call(void 0, config.storage);
2143
2143
  if (modules.length === 0) return "";
2144
2144
  const root = config.root || process.cwd();
2145
2145
  const projectRequire = _module.createRequire.call(void 0, _path2.default.join(root, "package.json"));
@@ -2288,7 +2288,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2288
2288
  return {
2289
2289
  name: "farm-omitted-metadata-image-runtime",
2290
2290
  resolveId: {
2291
- filter: { id: _chunkIK33N2ANcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2291
+ filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, ["@vercel/og"]) },
2292
2292
  handler(source, importer) {
2293
2293
  if (source !== "@vercel/og") return null;
2294
2294
  const fromCoreRuntime = importer !== void 0 && isFarmCoreModule(importer) && !/^og\.[cm]?[jt]sx?$/.test(_path2.default.basename(importer.split("?", 1)[0]));
@@ -2297,7 +2297,7 @@ function createOmittedMetadataImageRuntimePlugin(externalizeOtherImports) {
2297
2297
  }
2298
2298
  },
2299
2299
  load: {
2300
- filter: { id: _chunkIK33N2ANcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2300
+ filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID]) },
2301
2301
  handler(id) {
2302
2302
  if (id !== FARM_OMITTED_METADATA_IMAGE_RUNTIME_ID) return null;
2303
2303
  return `
@@ -2626,9 +2626,9 @@ function hasFarmPluginRoutes(config) {
2626
2626
  }
2627
2627
  function farmServerRuntimePluginsMayHandlePath(config, pathname) {
2628
2628
  return (config.plugins || []).some(
2629
- (plugin) => _chunk6DBBMQWTcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2629
+ (plugin) => _chunkAF3PNVVFcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) !== false && // Mobile session tokens change only bearer requests and cookie-clearing responses, which a
2630
2630
  // prerendered file never answers or sends; its endpoints live under /__farm/.
2631
- plugin.name !== _chunk4BS3HSY7cjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2631
+ plugin.name !== _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN && _chunk47JV57DAcjs.farmPluginMayAffectRuntimePath.call(void 0, plugin, pathname)
2632
2632
  );
2633
2633
  }
2634
2634
  async function discoverMiddlewareRoutes(appDir) {
@@ -2917,7 +2917,7 @@ function collectFarmPrerenderedMarkdownBodies(pageRoutes) {
2917
2917
  for (const route of pageRoutes) {
2918
2918
  if (route.source === void 0 || !_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) continue;
2919
2919
  const { body } = _chunkPG7J7XYTcjs.parseMarkdownFrontmatter.call(void 0, route.source);
2920
- const rendering = _chunk7564NP5Zcjs.resolveRouteRenderingConfig.call(void 0,
2920
+ const rendering = _chunkGC2BSXQScjs.resolveRouteRenderingConfig.call(void 0,
2921
2921
  _chunkPG7J7XYTcjs.readFarmMarkdownRouteConfig.call(void 0, body),
2922
2922
  route.source
2923
2923
  );
@@ -2961,7 +2961,7 @@ async function writeFarmVideoPlayerToClient(outputDir) {
2961
2961
  const filePath = _path2.default.join(outputDir, _chunkY3DO7BIJcjs.FARM_VIDEO_PLAYER_PATH.slice(1));
2962
2962
  await fs5.mkdir(_path2.default.dirname(filePath), { recursive: true });
2963
2963
  try {
2964
- await fs5.writeFile(filePath, _chunkIK33N2ANcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2964
+ await fs5.writeFile(filePath, _chunkSIYELCIXcjs.FARM_VIDEO_PLAYER_HTML, { flag: "wx" });
2965
2965
  } catch (error) {
2966
2966
  if (error.code !== "EEXIST") throw error;
2967
2967
  }
@@ -2995,7 +2995,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
2995
2995
  }
2996
2996
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
2997
2997
  await fs5.writeFile(fontCssPath, normalizedFontCss);
2998
- await fs5.writeFile(clientCssPath, _chunkIK33N2ANcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
2998
+ await fs5.writeFile(clientCssPath, _chunkSIYELCIXcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
2999
2999
  }
3000
3000
  function importsFarmClientBlockedPackage(id, packageName) {
3001
3001
  return id === packageName || id.startsWith(`${packageName}/`);
@@ -3045,10 +3045,10 @@ async function validateClientBuildOutput(root, srcDir, outputDir) {
3045
3045
  }
3046
3046
  }
3047
3047
  function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, options = {}) {
3048
- const key = _chunkJNZDTE75cjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3048
+ const key = _chunkPMKUTZGRcjs.getClientModuleHydrationPlanKey.call(void 0, modulePath, root, mode, options);
3049
3049
  let plan = cache.get(key);
3050
3050
  if (!plan) {
3051
- plan = _chunkJNZDTE75cjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3051
+ plan = _chunkPMKUTZGRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
3052
3052
  cache.set(key, plan);
3053
3053
  }
3054
3054
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -3057,7 +3057,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3057
3057
  if (!mobile) await _chunkE5UN4OWXcjs.removeFarmMobileClientManifest.call(void 0, _path2.default.dirname(outputDir));
3058
3058
  const viteBuild = productionVite.build;
3059
3059
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
3060
- const { PluginManager: PluginManager2 } = await import("./plugin-5BNPYCER.cjs");
3060
+ const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
3061
3061
  const fs5 = await import("fs/promises");
3062
3062
  const pluginManager = new PluginManager2({
3063
3063
  config,
@@ -3066,7 +3066,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3066
3066
  });
3067
3067
  pluginManager.addPlugins(config.plugins || []);
3068
3068
  const clientPages = [];
3069
- const integrationProviders = _chunk6DBBMQWTcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3069
+ const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).filter(
3070
3070
  (provider) => provider.component || provider.type === "clerk"
3071
3071
  );
3072
3072
  const unsupportedIntegrationProvider = integrationProviders.find(
@@ -3077,14 +3077,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3077
3077
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
3078
3078
  );
3079
3079
  }
3080
- const isolatedMode = _chunkJNZDTE75cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3080
+ const isolatedMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
3081
3081
  _optionalChain([config, 'access', _95 => _95.experimental, 'optionalAccess', _96 => _96.isolatedClientHydration]),
3082
3082
  {
3083
3083
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _97 => _97.experimental, 'optionalAccess', _98 => _98.serverComponents])) === "rsc",
3084
3084
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
3085
3085
  }
3086
3086
  );
3087
- const planOptions = _chunkJNZDTE75cjs.getFarmClientHydrationPlanOptions.call(void 0,
3087
+ const planOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
3088
3088
  config.renderer,
3089
3089
  Boolean(unsupportedIntegrationProvider)
3090
3090
  );
@@ -3096,7 +3096,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3096
3096
  ...planOptions,
3097
3097
  serverTreeLayouts: pagePlanOptions.serverOwners
3098
3098
  };
3099
- const layoutAppliesToRoute = _chunkXGDI4OUBcjs.routeBoundaryCoversDirectory;
3099
+ const layoutAppliesToRoute = _chunk6ZFGWB75cjs.routeBoundaryCoversDirectory;
3100
3100
  const routeDirectory = (route) => _nullishCoalesce(route.directory, () => ( route.pattern));
3101
3101
  const islandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _101 => _101.experimental, 'optionalAccess', _102 => _102.serverComponents])) === "islands";
3102
3102
  const adapterOwnsDocsRuntime = Boolean(
@@ -3111,7 +3111,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3111
3111
  );
3112
3112
  const syntheticDocsEntry = _optionalChain([config, 'access', _110 => _110.docs, 'optionalAccess', _111 => _111.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
3113
3113
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
3114
- const plan = (operation) => sourceSnapshot ? _chunkJNZDTE75cjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkJNZDTE75cjs.withFarmSourceSnapshot.call(void 0, operation);
3114
+ const plan = (operation) => sourceSnapshot ? _chunkPMKUTZGRcjs.withFarmSourceSnapshotOf.call(void 0, sourceSnapshot, operation) : _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, operation);
3115
3115
  const { clientLayouts, clientRouteSlots } = plan(() => {
3116
3116
  const clientLayouts2 = layoutRoutes.map((layout) => {
3117
3117
  try {
@@ -3158,7 +3158,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3158
3158
  };
3159
3159
  }
3160
3160
  });
3161
- const markdownPagePlan = _chunkJNZDTE75cjs.createMarkdownPageHydrationPlanner.call(void 0,
3161
+ const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
3162
3162
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), root),
3163
3163
  root,
3164
3164
  isolatedMode,
@@ -3174,7 +3174,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3174
3174
  pagePlanOptions
3175
3175
  )
3176
3176
  }));
3177
- _chunkJNZDTE75cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3177
+ _chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
3178
3178
  clientLayouts2.map((layout) => ({
3179
3179
  pattern: layout.pattern,
3180
3180
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -3183,7 +3183,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3183
3183
  [
3184
3184
  ...routePlans.map(({ route, metadata }) => ({
3185
3185
  pattern: routeDirectory(route),
3186
- depth: _chunkXGDI4OUBcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3186
+ depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
3187
3187
  metadata
3188
3188
  })),
3189
3189
  ...syntheticDocsPatterns.map((pattern) => ({
@@ -3208,7 +3208,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3208
3208
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || docsEntries.some((docsEntry) => layoutAppliesToRoute(layout.pattern, docsEntry));
3209
3209
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
3210
3210
  _chunkGC5ROI3Acjs.logger.warn(
3211
- `\u26A0\uFE0F ${_chunkJNZDTE75cjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3211
+ `\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`
3212
3212
  );
3213
3213
  }
3214
3214
  }
@@ -3243,7 +3243,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3243
3243
  );
3244
3244
  if (metadata.suppressedAsyncHydration) {
3245
3245
  _chunkGC5ROI3Acjs.logger.warn(
3246
- `\u26A0\uFE0F ${_chunkJNZDTE75cjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3246
+ `\u26A0\uFE0F ${_chunkPMKUTZGRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
3247
3247
  );
3248
3248
  }
3249
3249
  const slotBoundaries = serverSlotPlans.filter(
@@ -3251,7 +3251,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3251
3251
  ).flatMap(({ plan: plan2 }) => plan2.isolatedBoundaries);
3252
3252
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0 || slotBoundaries.length > 0) {
3253
3253
  const relativePath = route.modulePath.replace(root, "").replace(/^\//, "");
3254
- const islandStrategy = _chunkIK33N2ANcjs.resolveFarmRouteRootStrategy.call(void 0,
3254
+ const islandStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
3255
3255
  route,
3256
3256
  metadata,
3257
3257
  clientLayouts2,
@@ -3270,7 +3270,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3270
3270
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries || layout.serverTreeLayout).flatMap((layout) => layout.isolatedBoundaries)
3271
3271
  ],
3272
3272
  // The server renders a server tree only below a hydrating layout.
3273
- ..._chunkJNZDTE75cjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3273
+ ..._chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
3274
3274
  });
3275
3275
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
3276
3276
  }
@@ -3307,7 +3307,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3307
3307
  }
3308
3308
  const clientRouteSlots2 = routeSlots.filter((slot) => {
3309
3309
  try {
3310
- const metadata = _chunkJNZDTE75cjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3310
+ const metadata = _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root);
3311
3311
  return metadata.shouldHydrate && (!islandsMode || metadata.isClientComponent);
3312
3312
  } catch (error) {
3313
3313
  _chunkGC5ROI3Acjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
@@ -3358,13 +3358,13 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3358
3358
  config.renderer,
3359
3359
  config.publicRuntimeConfig,
3360
3360
  config.trailingSlash,
3361
- _chunk6DBBMQWTcjs.getIntegrationProviders.call(void 0, config.integrations),
3361
+ _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations),
3362
3362
  config.basePath,
3363
- _chunkIK33N2ANcjs.generateClientCachePersistenceCode.call(void 0, _chunkIK33N2ANcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3363
+ _chunkSIYELCIXcjs.generateClientCachePersistenceCode.call(void 0, _chunkSIYELCIXcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
3364
3364
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
3365
3365
  _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _117 => _117.experimental, 'optionalAccess', _118 => _118.serverComponents])) === "islands",
3366
3366
  platform,
3367
- islandsMode ? _chunkJNZDTE75cjs.collectFarmServerStylesheets.call(void 0,
3367
+ islandsMode ? _chunkPMKUTZGRcjs.collectFarmServerStylesheets.call(void 0,
3368
3368
  [
3369
3369
  ...layoutRoutes.map((layout) => layout.modulePath),
3370
3370
  ...pageRoutes.filter((route) => !isAdapterDocsRoute(route.pattern)).map((route) => route.modulePath)
@@ -3383,7 +3383,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3383
3383
  await fs5.writeFile(_path2.default.join(clientEntryDir, "farm-client-router.tsx"), clientEntry.router);
3384
3384
  }
3385
3385
  const clientInput = { [entryName]: clientEntryPath };
3386
- if (platform === "web" && _chunkIK33N2ANcjs.canBootFarmIslandsClient.call(void 0, config)) {
3386
+ if (platform === "web" && _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config)) {
3387
3387
  const clientBootPath = _path2.default.join(clientEntryDir, "farm-client-boot.tsx");
3388
3388
  await fs5.writeFile(
3389
3389
  clientBootPath,
@@ -3404,7 +3404,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3404
3404
  const postcssConfigPath = _path2.default.join(clientEntryDir, "postcss.config.cjs");
3405
3405
  await fs5.writeFile(postcssConfigPath, "module.exports = { plugins: [] };\n");
3406
3406
  postcssSearchPath = clientEntryDir;
3407
- tailwindVitePlugin = await _chunkHVJ7IACBcjs.loadTailwindVitePlugin.call(void 0, {
3407
+ tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
3408
3408
  builder: productionVite.builder,
3409
3409
  announce: true
3410
3410
  });
@@ -3425,7 +3425,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3425
3425
  target: FARM_CLIENT_BUILD_TARGET,
3426
3426
  // Tailwind CSS 4 already requires newer browsers than that baseline. An app's own
3427
3427
  // `build.target` or `build.cssTarget` still decides, as Vite derives one from the other.
3428
- ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunkHVJ7IACBcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunkHVJ7IACBcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunkHVJ7IACBcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3428
+ ..._optionalChain([config, 'access', _119 => _119.vite, 'optionalAccess', _120 => _120.build, 'optionalAccess', _121 => _121.target]) === void 0 && _optionalChain([config, 'access', _122 => _122.vite, 'optionalAccess', _123 => _123.build, 'optionalAccess', _124 => _124.cssTarget]) === void 0 && (_chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, tailwindVitePlugin) || _chunk7SAGHWWUcjs.includesTailwindVitePlugin.call(void 0, _optionalChain([config, 'access', _125 => _125.vite, 'optionalAccess', _126 => _126.plugins]))) ? { cssTarget: _chunk7SAGHWWUcjs.TAILWIND_CSS_BROWSER_TARGET } : {},
3429
3429
  outDir: outputDir,
3430
3430
  emptyOutDir: platform === "web",
3431
3431
  // Never public: see resolveFarmClientSourcemap.
@@ -3458,7 +3458,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3458
3458
  }
3459
3459
  },
3460
3460
  plugins: [
3461
- _chunkIK33N2ANcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3461
+ _chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
3462
3462
  createFarmPrivateClientSourcemapsPlugin({
3463
3463
  outDir: _path2.default.join(
3464
3464
  _path2.default.dirname(outputDir),
@@ -3490,7 +3490,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3490
3490
  ...rendererVitePlugins,
3491
3491
  ...config.vite.plugins || [],
3492
3492
  farmServerOnlyEntriesPlugin({ platform, distDir: config.distDir || ".farm" }),
3493
- _chunkIK33N2ANcjs.farmDocsClientConfigPlugin.call(void 0,
3493
+ _chunkSIYELCIXcjs.farmDocsClientConfigPlugin.call(void 0,
3494
3494
  adapterOwnsDocsRuntime ? _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
3495
3495
  ),
3496
3496
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -3523,7 +3523,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3523
3523
  },
3524
3524
  load: {
3525
3525
  filter: {
3526
- id: _chunkIK33N2ANcjs.exactIdPattern.call(void 0, [
3526
+ id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [
3527
3527
  "\0empty-module",
3528
3528
  "\0empty-api-route",
3529
3529
  "\0farm-i18n-client-bridge",
@@ -3561,7 +3561,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3561
3561
  { ...config, isolatedClientBoundaryModules, programmaticClientRoutes, sourceSnapshot },
3562
3562
  pluginManager
3563
3563
  ),
3564
- _chunkJNZDTE75cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3564
+ _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
3565
3565
  ],
3566
3566
  mode: "production",
3567
3567
  css: postcssSearchPath ? {
@@ -3569,7 +3569,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3569
3569
  } : void 0,
3570
3570
  // Ensure React is bundled for client
3571
3571
  resolve: {
3572
- alias: _chunkIK33N2ANcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3572
+ alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
3573
3573
  dedupe: [...config.renderer.dedupe || []]
3574
3574
  },
3575
3575
  // Optimize dependencies - exclude server-side code from client bundle
@@ -3583,7 +3583,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
3583
3583
  }
3584
3584
  };
3585
3585
  await viteBuild(
3586
- _chunkIK33N2ANcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3586
+ _chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite, { clientOutput: true })
3587
3587
  );
3588
3588
  if (platform === "mobile") {
3589
3589
  await fs5.rm(_path2.default.join(outputDir, `${entryName}.css`), { force: true });
@@ -3676,7 +3676,7 @@ async function fetchFarmNavigationDocument(url, headers, recover = true, signal)
3676
3676
  return response;
3677
3677
  }
3678
3678
 
3679
- ${streamNavigations ? _chunkIK33N2ANcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
3679
+ ${streamNavigations ? _chunkSIYELCIXcjs.FARM_NAVIGATION_STREAM_READER_SOURCE : ""}
3680
3680
 
3681
3681
  function clearFarmPrefetchCacheOnDeploymentMismatch(router, error) {
3682
3682
  if (error?.name === "FarmDeploymentMismatchError") {
@@ -4825,7 +4825,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
4825
4825
  direction: {}
4826
4826
  }, plugins = [], renderer = _chunk67MZTLTFcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false, platform, serverStylesheets = []) {
4827
4827
  const toImportPath = (targetPath) => targetPath.replace(/\\/g, "/");
4828
- const clientPluginEntry = _chunkHVJ7IACBcjs.generateFarmClientPluginEntryCode.call(void 0,
4828
+ const clientPluginEntry = _chunk7SAGHWWUcjs.generateFarmClientPluginEntryCode.call(void 0,
4829
4829
  plugins,
4830
4830
  root,
4831
4831
  srcDir,
@@ -4838,7 +4838,7 @@ import { createRoot, hydrateRoot } from "react-dom/client";
4838
4838
  import { restorePagePosition } from "@farm.js/core/internal/client-runtime";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
4839
4839
  import __farmAppSetup from ${JSON.stringify(_chunkGC5ROI3Acjs.toPosixPath.call(void 0, appSetupPath))};
4840
4840
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
4841
- const providerClientCode = _chunkIK33N2ANcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4841
+ const providerClientCode = _chunkSIYELCIXcjs.generateFarmIntegrationProviderClientCode.call(void 0,
4842
4842
  integrationProviders,
4843
4843
  root,
4844
4844
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -4861,18 +4861,18 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
4861
4861
  const layoutImportStatements = [];
4862
4862
  const layoutRegistrations = [];
4863
4863
  const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
4864
- const treeLayoutPatterns = islandValues ? _chunkXGDI4OUBcjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
4864
+ const treeLayoutPatterns = islandValues ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0, layoutRoutes) : /* @__PURE__ */ new Set();
4865
4865
  layoutRoutes.forEach((layout, index) => {
4866
4866
  const relativePath = toImportPath(layout.modulePath);
4867
4867
  const treeLayout = treeLayoutPatterns.has(layout.pattern);
4868
4868
  const rendersOnClient = treeLayout || !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some(
4869
- (pattern) => _chunkXGDI4OUBcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
4869
+ (pattern) => _chunk6ZFGWB75cjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern)
4870
4870
  );
4871
4871
  if (rendersOnClient && !treeLayout) {
4872
4872
  layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
4873
4873
  }
4874
- const groupScope = _chunkXGDI4OUBcjs.getRouteGroupScope.call(void 0, layout.pattern);
4875
- const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkXGDI4OUBcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
4874
+ const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, layout.pattern);
4875
+ const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
4876
4876
  layoutRegistrations.push(
4877
4877
  ` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? treeLayout ? `getFarmTreeLayoutComponent(${JSON.stringify(layout.pattern)})` : `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)}${treeLayout ? ", serverTree: true" : ""} }`
4878
4878
  );
@@ -4959,7 +4959,7 @@ mountFarmDocsSearch();
4959
4959
 
4960
4960
  ${generateUniversalRouterStateRuntime()}
4961
4961
 
4962
- ${_chunkIK33N2ANcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
4962
+ ${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
4963
4963
 
4964
4964
  // SPA Router for server-rendered pages (HTML swap)
4965
4965
  const spaRouter = {
@@ -5407,7 +5407,7 @@ function hasHydratableLayout(pathname) {
5407
5407
  });
5408
5408
  }
5409
5409
 
5410
- ${_chunkIK33N2ANcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5410
+ ${_chunkSIYELCIXcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
5411
5411
  // Wrap a page element with applicable layouts
5412
5412
  function wrapWithLayouts(pageElement, pathname, params) {
5413
5413
  const layouts = getApplicableLayouts(pathname);
@@ -5442,7 +5442,7 @@ function createLayoutPageBoundary(route, pageElement, serverHtml) {
5442
5442
  return React.createElement("div", props, pageElement);
5443
5443
  }
5444
5444
  let farmLastRouteState = null;
5445
- ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkIK33N2ANcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5445
+ ${hasServerTreeLayouts && islandValues && isolatedHydrationEnabled ? `${_chunkSIYELCIXcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
5446
5446
  function farmTreeLayoutsOf(pathname) {
5447
5447
  return getApplicableLayouts(pathname).filter(function(layout) {
5448
5448
  return layout.serverTree === true;
@@ -6016,7 +6016,7 @@ function fitsSegmentResponse(currentRoot, nextRoot) {
6016
6016
  return true;
6017
6017
  }` : ""}
6018
6018
 
6019
- ${_chunkIK33N2ANcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6019
+ ${_chunkSIYELCIXcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
6020
6020
 
6021
6021
  function activateNavigationScripts(root) {
6022
6022
  for (const script of Array.from(root?.querySelectorAll?.("script") || [])) {
@@ -6119,7 +6119,7 @@ function getLayoutShell(root, patterns, index) {
6119
6119
  return shell.innerHTML;
6120
6120
  }
6121
6121
 
6122
- ${islandValues ? _chunkIK33N2ANcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6122
+ ${islandValues ? _chunkSIYELCIXcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceSharedLayoutBoundary(currentRoot, nextRoot, refresh = false) {
6123
6123
  // A refresh keeps the islands still on the page: the ones in streamed Suspense content too.
6124
6124
  if (refresh) revealFarmStreamedContent(nextRoot);
6125
6125
  const currentPatterns = getLayoutPatterns(currentRoot);
@@ -6767,7 +6767,7 @@ void hydrate();
6767
6767
  async function buildSSRInMemory(productionVite, config, root, routeManager, apiRouteManager, serverRenderer, preset, collectedPageRoutes, collectedLayoutRoutes, collectedRouteSlots, isolatedClientBoundaryModules, hydrationPlanCache, rendererBuildLifetime, sourceSnapshot) {
6768
6768
  const viteBuild = productionVite.build;
6769
6769
  const { farmIslandContainersPlugin, farmPlugin, farmServerOnlyEntriesPlugin } = await import("./vite.cjs");
6770
- const { PluginManager: PluginManager2 } = await import("./plugin-5BNPYCER.cjs");
6770
+ const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
6771
6771
  const fs5 = await import("fs/promises");
6772
6772
  const pluginManager = new PluginManager2({
6773
6773
  config,
@@ -6788,7 +6788,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6788
6788
  _path2.default.join(postcssConfigDir, "postcss.config.cjs"),
6789
6789
  "module.exports = { plugins: [] };\n"
6790
6790
  );
6791
- tailwindVitePlugin = await _chunkHVJ7IACBcjs.loadTailwindVitePlugin.call(void 0, {
6791
+ tailwindVitePlugin = await _chunk7SAGHWWUcjs.loadTailwindVitePlugin.call(void 0, {
6792
6792
  builder: productionVite.builder,
6793
6793
  label: "for SSR"
6794
6794
  });
@@ -6867,7 +6867,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6867
6867
  modulePath: entry.modulePath
6868
6868
  })) : [];
6869
6869
  const i18nCatalogs = config.i18n.enabled ? (await _chunkCYOTNHDFcjs.readFarmI18nCatalogs.call(void 0, config.i18n)).catalogs : {};
6870
- const appDirs = _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config);
6870
+ const appDirs = _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config);
6871
6871
  let openAPIReference = null;
6872
6872
  if (config.openapi.enabled && config.openapi.route) {
6873
6873
  const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-R7FV4A56.cjs");
@@ -6895,7 +6895,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6895
6895
  }))
6896
6896
  );
6897
6897
  const instrumentationPath = _chunk3GNHJ3RNcjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
6898
- const notFoundPath = _chunkIK33N2ANcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
6898
+ const notFoundPath = _chunkSIYELCIXcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
6899
6899
  if (notFoundPath) _chunkGC5ROI3Acjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
6900
6900
  layoutRoutes.sort((a, b) => {
6901
6901
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -6912,14 +6912,14 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6912
6912
  const hasServerRuntimeIntegrations = configuredIntegrationValues.some(
6913
6913
  (integration) => typeof integration === "object" && integration !== null && (!("serverRuntime" in integration) || integration.serverRuntime !== false)
6914
6914
  );
6915
- const hasIntegrationProviders = _chunk6DBBMQWTcjs.getIntegrationProviders.call(void 0, config.integrations).some(
6915
+ const hasIntegrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations).some(
6916
6916
  (provider) => provider.component || provider.type === "clerk"
6917
6917
  );
6918
6918
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
6919
6919
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _136 => _136.mdx, 'optionalAccess', _137 => _137.components]));
6920
- const hasMiddlewareConfig = _chunkXGDI4OUBcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
6921
- const hasRouteContextConfig = _chunkNPGXX7HNcjs.hasCustomFarmRouteContext.call(void 0, config);
6922
- const hasServerRuntimePlugins = _chunkHVJ7IACBcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
6920
+ const hasMiddlewareConfig = _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
6921
+ const hasRouteContextConfig = _chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config);
6922
+ const hasServerRuntimePlugins = _chunk7SAGHWWUcjs.hasFarmServerRuntimePlugins.call(void 0, config.plugins);
6923
6923
  const hasPluginRoutes = hasFarmPluginRoutes(config);
6924
6924
  const hasServerCacheConfig = hasFarmServerCacheConfig(config.cache);
6925
6925
  const configModulePath = hasServerRuntimeIntegrations || hasObservabilityHandler || hasMdxComponentConfig || hasMiddlewareConfig || hasRouteContextConfig || hasServerRuntimePlugins || hasPluginRoutes || hasServerCacheConfig || hasFarmServerStorageConfig(config.storage) || hasIntegrationProviders ? await findFarmConfigPath(root) : null;
@@ -6928,9 +6928,9 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6928
6928
  const hasConfiguredRuntimePlugins = Boolean(
6929
6929
  hasRuntimeConfigModule && (config.plugins || []).length > 0
6930
6930
  );
6931
- if (_chunkZPCZWEU3cjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
6931
+ if (_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
6932
6932
  const adapterGuardedPaths = new Set(getFarmDocsGuardedPaths(config, middlewareRoutes));
6933
- _chunkZPCZWEU3cjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
6933
+ _chunkFCHEO3LGcjs.assertFarmDocsAdapterServesNoGuardedPages.call(void 0,
6934
6934
  config.docs,
6935
6935
  { root, srcDir: config.srcDir },
6936
6936
  (pathname) => adapterGuardedPaths.has(pathname),
@@ -6940,7 +6940,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
6940
6940
  const farmDocsCspNonceMarker = _chunk6JHZPB52cjs.createFarmCspNonce.call(void 0, config.security);
6941
6941
  const farmDocsPrecompiledManifest = _optionalChain([config, 'access', _138 => _138.docs, 'optionalAccess', _139 => _139.enabled]) && _chunkNLBHLPEOcjs.getFarmPresetRuntime.call(void 0, preset) === "edge" ? await _chunk2RSVYJT6cjs._runWithFarmCspNonce.call(void 0,
6942
6942
  farmDocsCspNonceMarker,
6943
- async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkZPCZWEU3cjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
6943
+ async () => _optionalChain([config, 'access', _140 => _140.docs, 'access', _141 => _141.adapter, 'optionalAccess', _142 => _142.server]) ? await _chunkFCHEO3LGcjs.compileFarmDocsAdapterEdgeManifest.call(void 0, config.docs, {
6944
6944
  root,
6945
6945
  srcDir: config.srcDir,
6946
6946
  clientEntry: FARM_CLIENT_JS_SRC_PLACEHOLDER,
@@ -7107,7 +7107,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7107
7107
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _148 => _148.env, 'optionalAccess', _149 => _149.public]) || {})
7108
7108
  },
7109
7109
  plugins: [
7110
- _chunkIK33N2ANcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7110
+ _chunkSIYELCIXcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
7111
7111
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
7112
7112
  ...rendererVitePlugins,
7113
7113
  ...config.vite.plugins || [],
@@ -7138,7 +7138,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7138
7138
  },
7139
7139
  pluginManager
7140
7140
  ),
7141
- _chunkJNZDTE75cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7141
+ _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
7142
7142
  ...hasRuntimeConfigModule ? [
7143
7143
  farmStripPlatformConfigPlugin(
7144
7144
  [
@@ -7150,7 +7150,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7150
7150
  {
7151
7151
  name: "farm-virtual-ssr-entry",
7152
7152
  resolveId: {
7153
- filter: { id: _chunkIK33N2ANcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7153
+ filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId, "\0virtual:farm-ssr-entry"]) },
7154
7154
  handler(id) {
7155
7155
  if (id === virtualEntryId || id === "\0virtual:farm-ssr-entry") {
7156
7156
  return virtualEntryId;
@@ -7159,7 +7159,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7159
7159
  }
7160
7160
  },
7161
7161
  load: {
7162
- filter: { id: _chunkIK33N2ANcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7162
+ filter: { id: _chunkSIYELCIXcjs.exactIdPattern.call(void 0, [virtualEntryId]) },
7163
7163
  handler(id) {
7164
7164
  if (id === virtualEntryId) {
7165
7165
  return virtualEntryCode;
@@ -7191,7 +7191,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7191
7191
  resolve: {
7192
7192
  alias: [
7193
7193
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
7194
- ...Object.entries(_chunkIK33N2ANcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7194
+ ...Object.entries(_chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
7195
7195
  ([find, replacement]) => ({ find, replacement })
7196
7196
  )
7197
7197
  ],
@@ -7199,7 +7199,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
7199
7199
  dedupe: [...config.renderer.dedupe || []]
7200
7200
  }
7201
7201
  };
7202
- await viteBuild(_chunkIK33N2ANcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7202
+ await viteBuild(_chunkSIYELCIXcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
7203
7203
  } finally {
7204
7204
  if (postcssConfigDir) {
7205
7205
  try {
@@ -7243,7 +7243,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
7243
7243
  };
7244
7244
  return _chunk6D3CJFNUcjs.getFarmDocsRoots.call(void 0, config.docs).flatMap(
7245
7245
  (docsRoot) => _chunk6D3CJFNUcjs.discoverFarmDocsPages.call(void 0, _chunk6D3CJFNUcjs.resolveFarmDocsContentDir.call(void 0, docsRoot, options), docsRoot)
7246
- ).flatMap((page) => [page.href, _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkXGDI4OUBcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7246
+ ).flatMap((page) => [page.href, _chunk6D3CJFNUcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
7247
7247
  }
7248
7248
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
7249
7249
  const llmsTxt = _optionalChain([agent, 'optionalAccess', _152 => _152.llmsTxt]);
@@ -7492,9 +7492,9 @@ function useFarmNodePageResponse(ResponseClass) {
7492
7492
  // Web body the way reading response.body would.
7493
7493
  const farmLazyBufferedHtml = new WeakMap();
7494
7494
 
7495
- // Bind the stored shell to the response Farm built from it. A body replacement
7496
- // gets a new response and takes the ordinary scan path.
7497
- const farmPreloadShells = new WeakMap();
7495
+ // Only the response built from a stored shell can reuse its preload scan and
7496
+ // compressed bytes. Replacing the body creates a new response.
7497
+ const farmResponseShells = new WeakMap();
7498
7498
 
7499
7499
  function hasFarmContentType(headers) {
7500
7500
  if (!headers) return false;
@@ -7604,7 +7604,7 @@ async function applyFarmPreloadBudget(response, pathname, request) {
7604
7604
  const ownedHtml = hasNoHtmlPreloads ? undefined : getFarmOwnedBufferedHtml(response);
7605
7605
  const html = hasNoHtmlPreloads ? "" : (ownedHtml ?? await response.text());
7606
7606
  const managed = manageFarmDocumentPreloads(html, linkHeader, farmPreloadConfig,
7607
- ownedHtml === undefined ? undefined : farmPreloadShells.get(response));
7607
+ ownedHtml === undefined ? undefined : farmResponseShells.get(response));
7608
7608
  // A remembered document the budget left unchanged keeps its unread body.
7609
7609
  const reusesBody = hasNoHtmlPreloads || (ownedHtml !== undefined && managed.html === html);
7610
7610
  if (ownedHtml !== undefined && !reusesBody && !isLazyPage) {
@@ -7649,7 +7649,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
7649
7649
  );
7650
7650
  const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
7651
7651
  const farmIslandsMode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _166 => _166.experimental, 'optionalAccess', _167 => _167.serverComponents])) === "islands";
7652
- const farmClientBoot = _chunkIK33N2ANcjs.canBootFarmIslandsClient.call(void 0, config);
7652
+ const farmClientBoot = _chunkSIYELCIXcjs.canBootFarmIslandsClient.call(void 0, config);
7653
7653
  const farmMobileClient = shouldBuildFarmMobileClient(config);
7654
7654
  const farmMobileShells = farmMobileClient && config.mobileShells ? config.mobileShells : null;
7655
7655
  const hasCompressionRuntime = config.compress && _chunkOCS3PSYRcjs.resolveFarmInstrumentationRuntime.call(void 0, preset) === "nodejs";
@@ -7718,9 +7718,9 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7718
7718
  (image) => image.sourceType === "module"
7719
7719
  );
7720
7720
  const edgeMiddlewareFilePaths = farmTargetRunsEdgeMiddleware(preset) ? middlewareRoutes.filter(isFarmEdgeMiddlewareRoute).map((route) => route.filePath) : [];
7721
- const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkXGDI4OUBcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7721
+ const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunk6ZFGWB75cjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
7722
7722
  const farmDocsFontAssets = _optionalChain([config, 'access', _188 => _188.docs, 'optionalAccess', _189 => _189.enabled]) ? _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
7723
- const integrationProviders = _chunk6DBBMQWTcjs.getIntegrationProviders.call(void 0, config.integrations);
7723
+ const integrationProviders = _chunkAF3PNVVFcjs.getIntegrationProviders.call(void 0, config.integrations);
7724
7724
  const renderedIntegrationProviders = integrationProviders.filter(
7725
7725
  (provider) => provider.component || provider.type === "clerk"
7726
7726
  );
@@ -7729,7 +7729,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7729
7729
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
7730
7730
  );
7731
7731
  }
7732
- const providerServerModules = _chunkIK33N2ANcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7732
+ const providerServerModules = _chunkSIYELCIXcjs.generateFarmIntegrationProviderServerModules.call(void 0,
7733
7733
  renderedIntegrationProviders,
7734
7734
  config.root,
7735
7735
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -7749,14 +7749,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7749
7749
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
7750
7750
  (provider) => provider.supportsIsolatedHydration !== true
7751
7751
  );
7752
- const isolatedHydrationMode = _chunkJNZDTE75cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7752
+ const isolatedHydrationMode = _chunkPMKUTZGRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
7753
7753
  _optionalChain([config, 'access', _192 => _192.experimental, 'optionalAccess', _193 => _193.isolatedClientHydration]),
7754
7754
  {
7755
7755
  serverComponents: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _194 => _194.experimental, 'optionalAccess', _195 => _195.serverComponents])) === "rsc",
7756
7756
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
7757
7757
  }
7758
7758
  );
7759
- const hydrationPlanOptions = _chunkJNZDTE75cjs.getFarmClientHydrationPlanOptions.call(void 0,
7759
+ const hydrationPlanOptions = _chunkPMKUTZGRcjs.getFarmClientHydrationPlanOptions.call(void 0,
7760
7760
  config.renderer,
7761
7761
  Boolean(unsupportedIntegrationProvider)
7762
7762
  );
@@ -7764,7 +7764,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7764
7764
  ...hydrationPlanOptions,
7765
7765
  serverOwners: _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _196 => _196.experimental, 'optionalAccess', _197 => _197.serverComponents])) === "islands"
7766
7766
  };
7767
- const { layoutHydrationPlans, pageHydrationPlans } = _chunkJNZDTE75cjs.withFarmSourceSnapshot.call(void 0, () => {
7767
+ const { layoutHydrationPlans, pageHydrationPlans } = _chunkPMKUTZGRcjs.withFarmSourceSnapshot.call(void 0, () => {
7768
7768
  const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
7769
7769
  ...layout,
7770
7770
  hydration: getCachedClientModuleHydrationPlan(
@@ -7775,7 +7775,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7775
7775
  { ...hydrationPlanOptions, serverTreeLayouts: pageHydrationPlanOptions.serverOwners }
7776
7776
  )
7777
7777
  }));
7778
- const markdownPagePlan = _chunkJNZDTE75cjs.createMarkdownPageHydrationPlanner.call(void 0,
7778
+ const markdownPagePlan = _chunkPMKUTZGRcjs.createMarkdownPageHydrationPlanner.call(void 0,
7779
7779
  _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
7780
7780
  config.root,
7781
7781
  isolatedHydrationMode,
@@ -7795,7 +7795,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7795
7795
  );
7796
7796
  return { layoutHydrationPlans: layoutHydrationPlans2, pageHydrationPlans: pageHydrationPlans2 };
7797
7797
  });
7798
- _chunkJNZDTE75cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7798
+ _chunkPMKUTZGRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
7799
7799
  layoutHydrationPlans.map((layout) => ({
7800
7800
  pattern: layout.pattern,
7801
7801
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -7804,10 +7804,10 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7804
7804
  pageRoutes.map((route) => ({
7805
7805
  // Compared by directory so a grouped layout applies only inside its group.
7806
7806
  pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
7807
- depth: _chunkXGDI4OUBcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
7807
+ depth: _chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
7808
7808
  metadata: pageHydrationPlans.get(route.modulePath)
7809
7809
  })),
7810
- _chunkXGDI4OUBcjs.routeBoundaryCoversDirectory,
7810
+ _chunk6ZFGWB75cjs.routeBoundaryCoversDirectory,
7811
7811
  { serverOwners: pageHydrationPlanOptions.serverOwners }
7812
7812
  );
7813
7813
  const providerServerImports = [
@@ -7839,8 +7839,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7839
7839
  orderedPageRoutes.forEach((route, index) => {
7840
7840
  const varName = `pageRoute${index}`;
7841
7841
  if (_chunkPG7J7XYTcjs.isFarmMarkdownPageFile.call(void 0, route.modulePath)) {
7842
- const renderingDirective2 = _chunk7564NP5Zcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7843
- const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkJNZDTE75cjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7842
+ const renderingDirective2 = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7843
+ const markdownServerTree = pageHydrationPlanOptions.serverOwners && _chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, pageHydrationPlans.get(route.modulePath));
7844
7844
  pageRegistrations.push(`
7845
7845
  {
7846
7846
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -7848,14 +7848,14 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7848
7848
  rendering: ${JSON.stringify(renderingDirective2)},` : ""}${markdownServerTree ? "\n serverTree: true," : ""}
7849
7849
  module: createFarmMarkdownRouteModule({
7850
7850
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7851
- filePath: ${JSON.stringify(_chunkIK33N2ANcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
7851
+ filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.modulePath))},
7852
7852
  components: farmMdxComponents,
7853
7853
  config: farmMdxConfig,
7854
7854
  }),
7855
7855
  markdownSource: {
7856
7856
  source: ${JSON.stringify(_nullishCoalesce(route.source, () => ( "")))},
7857
7857
  filePath: ${JSON.stringify(
7858
- _chunkIK33N2ANcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
7858
+ _chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, _nullishCoalesce(route.markdownSourcePath, () => ( route.modulePath)))
7859
7859
  )},
7860
7860
  },
7861
7861
  }`);
@@ -7865,7 +7865,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7865
7865
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(route.modulePath)};`
7866
7866
  );
7867
7867
  const clientMetadata = pageHydrationPlans.get(route.modulePath);
7868
- const renderingDirective = _chunk7564NP5Zcjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7868
+ const renderingDirective = _chunkGC2BSXQScjs.readRouteRenderingDirectiveFromFile.call(void 0, route.modulePath);
7869
7869
  pageRegistrations.push(`
7870
7870
  {
7871
7871
  pattern: ${JSON.stringify(route.pattern)},${route.directory ? `
@@ -7873,8 +7873,8 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7873
7873
  module: ${varName},
7874
7874
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
7875
7875
  clientModule: ${JSON.stringify(_chunkGC5ROI3Acjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
7876
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkJNZDTE75cjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
7877
- const rootStrategy = _chunkIK33N2ANcjs.resolveFarmRouteRootStrategy.call(void 0,
7876
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkPMKUTZGRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${(() => {
7877
+ const rootStrategy = _chunkSIYELCIXcjs.resolveFarmRouteRootStrategy.call(void 0,
7878
7878
  route,
7879
7879
  clientMetadata,
7880
7880
  layoutHydrationPlans.map((layout) => ({ ...layout, ...layout.hydration })),
@@ -7887,13 +7887,13 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7887
7887
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
7888
7888
  ${route.source !== void 0 ? `markdownSource: {
7889
7889
  source: ${JSON.stringify(route.source)},
7890
- filePath: ${JSON.stringify(_chunkIK33N2ANcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
7890
+ filePath: ${JSON.stringify(_chunkSIYELCIXcjs.toBakedMarkdownSourcePath.call(void 0, config.root, route.markdownSourcePath))},
7891
7891
  },` : ""}
7892
7892
  }`);
7893
7893
  });
7894
7894
  const layoutImports = [];
7895
7895
  const layoutRegistrations = [];
7896
- const treeLayoutPatterns = farmIslandsMode ? _chunkXGDI4OUBcjs.getFarmServerTreeLayoutPatterns.call(void 0,
7896
+ const treeLayoutPatterns = farmIslandsMode ? _chunk6ZFGWB75cjs.getFarmServerTreeLayoutPatterns.call(void 0,
7897
7897
  layoutHydrationPlans.map((layout) => ({
7898
7898
  pattern: layout.pattern,
7899
7899
  shouldHydrate: layout.hydration.shouldHydrate,
@@ -7911,7 +7911,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7911
7911
  pattern: ${JSON.stringify(layout.pattern)},
7912
7912
  module: ${varName},
7913
7913
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},
7914
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkIK33N2ANcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
7914
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${treeLayoutPatterns.has(layout.pattern) ? "\n serverTree: true," : ""}${farmIslandsMode && _chunkSIYELCIXcjs.canFarmSkipKeptLayoutRender.call(void 0, layout.modulePath, config.root) ? "\n skipKeptRender: true," : ""}${// A layout whose client components hydrate as islands of their own (islands mode,
7915
7915
  // isolatedClientHydration, or an async layout): it wraps a docs page as an app page.
7916
7916
  clientMetadata.hasIsolatedClientBoundaries ? "\n islands: true," : ""}
7917
7917
  }`);
@@ -7939,7 +7939,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7939
7939
  containerId: ${JSON.stringify(slot.containerId)},
7940
7940
  interception: ${JSON.stringify(slot.interception)},
7941
7941
  fallback: ${JSON.stringify(slot.fallback)},
7942
- hydrates: ${!farmIslandsMode || _chunkJNZDTE75cjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
7942
+ hydrates: ${!farmIslandsMode || _chunkPMKUTZGRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, config.root).isClientComponent},
7943
7943
  module: ${varName},
7944
7944
  }`);
7945
7945
  });
@@ -7950,12 +7950,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7950
7950
  errorImports.push(
7951
7951
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
7952
7952
  );
7953
- const groupScope = _chunkXGDI4OUBcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
7953
+ const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
7954
7954
  errorRegistrations.push(`
7955
7955
  {
7956
- pattern: ${JSON.stringify(_chunkXGDI4OUBcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
7956
+ pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
7957
7957
  groupScope: ${JSON.stringify(groupScope)},
7958
- directoryDepth: ${_chunkXGDI4OUBcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
7958
+ directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
7959
7959
  module: ${varName},
7960
7960
  }`);
7961
7961
  });
@@ -7967,12 +7967,12 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
7967
7967
  loadingImports.push(
7968
7968
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(loadingRoute.modulePath)};`
7969
7969
  );
7970
- const groupScope = _chunkXGDI4OUBcjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
7970
+ const groupScope = _chunk6ZFGWB75cjs.getRouteGroupScope.call(void 0, loadingRoute.pattern);
7971
7971
  loadingRegistrations.push(`
7972
7972
  {
7973
- pattern: ${JSON.stringify(_chunkXGDI4OUBcjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
7973
+ pattern: ${JSON.stringify(_chunk6ZFGWB75cjs.stripRouteGroups.call(void 0, loadingRoute.pattern))},${groupScope ? `
7974
7974
  groupScope: ${JSON.stringify(groupScope)},
7975
- directoryDepth: ${_chunkXGDI4OUBcjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
7975
+ directoryDepth: ${_chunk6ZFGWB75cjs.getRouteDirectoryDepth.call(void 0, loadingRoute.pattern)},` : ""}
7976
7976
  module: ${varName},
7977
7977
  }`);
7978
7978
  });
@@ -8249,14 +8249,14 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
8249
8249
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
8250
8250
  const nativeMCP = _chunkVM57CK74cjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
8251
8251
  const mobileSession = (config.plugins || []).some(
8252
- (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunk4BS3HSY7cjs.FARM_MOBILE_SESSION_PLUGIN
8252
+ (plugin) => _optionalChain([plugin, 'optionalAccess', _219 => _219.name]) === _chunkFTQUNBRNcjs.FARM_MOBILE_SESSION_PLUGIN
8253
8253
  );
8254
8254
  const nativeServerFns = (config.plugins || []).some(
8255
8255
  (plugin) => _optionalChain([plugin, 'optionalAccess', _220 => _220.name]) === _chunk4EBC7EMWcjs.FARM_NATIVE_SERVER_FN_PLUGIN
8256
- ) ? _chunkBNTRXJL4cjs.collectFarmNativeServerFns.call(void 0, {
8256
+ ) ? _chunkNQZWLIPTcjs.collectFarmNativeServerFns.call(void 0, {
8257
8257
  root: config.root,
8258
8258
  srcDir: config.srcDir,
8259
- entries: _chunkBNTRXJL4cjs.findFarmNativeScreenFiles.call(void 0, _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config))
8259
+ entries: _chunkNQZWLIPTcjs.findFarmNativeScreenFiles.call(void 0, _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config))
8260
8260
  }) : void 0;
8261
8261
  const integrationImports = `
8262
8262
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
@@ -8271,7 +8271,7 @@ ${nativeServerFns ? `const __farmNativeServerFnRegistry = Object.assign(Object.c
8271
8271
  ${nativeServerFns.flatMap((module, index) => module.exports.map((entry) => ` ${JSON.stringify(entry.id)}: __farmNativeServerFns${index}[${JSON.stringify(entry.name)}],`)).join("\n")}
8272
8272
  });` : ""}
8273
8273
  `;
8274
- const imageRuntime = _chunkIK33N2ANcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8274
+ const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
8275
8275
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
8276
8276
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
8277
8277
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -8453,7 +8453,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
8453
8453
 
8454
8454
  function renderFarmDefault404Page() {
8455
8455
  return React.createElement(React.Fragment, null,
8456
- React.createElement("style", null, ${JSON.stringify(_chunkIK33N2ANcjs.DEFAULT_NOT_FOUND_STYLES)}),
8456
+ React.createElement("style", null, ${JSON.stringify(_chunkSIYELCIXcjs.DEFAULT_NOT_FOUND_STYLES)}),
8457
8457
  React.createElement("main", {
8458
8458
  className: "farm-default-not-found",
8459
8459
  "aria-labelledby": "farm-default-not-found-title",
@@ -8613,7 +8613,7 @@ ${_optionalChain([config, 'access', _230 => _230.agent, 'optionalAccess', _231 =
8613
8613
  // to the build.
8614
8614
  const farmNoindexPreview = resolveFarmPreviewDeployment(
8615
8615
  globalThis.process?.env,
8616
- ${JSON.stringify(_chunkKPYQ32BAcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8616
+ ${JSON.stringify(_chunkJD42G6BNcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env))},
8617
8617
  );` : ""}
8618
8618
  const farmMdxComponents = ${mdxComponentsPath ? `(FarmMdxComponentsModule.components || Reflect.get(FarmMdxComponentsModule, "default") || {})` : `(configuredFarmMdxComponents && typeof configuredFarmMdxComponents === "object" ? configuredFarmMdxComponents : {})`};
8619
8619
  const farmObservabilityConfig = farmUserConfig?.observability ?? ${JSON.stringify(
@@ -8744,7 +8744,7 @@ const farmDocsHandler = ${_optionalChain([config, 'access', _239 => _239.docs, '
8744
8744
  registerMCPServer: registerFarmMCPServer,
8745
8745
  // A page built with this keeps its HTML string, so the preload budget and the response
8746
8746
  // writer use it instead of reading and re-encoding the body. Older adapters ignore it.
8747
- createHtmlResponse: farmOwnedHtmlResponse,${_chunkZPCZWEU3cjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8747
+ createHtmlResponse: farmOwnedHtmlResponse,${_chunkFCHEO3LGcjs.farmDocsAdapterServesGuardedPages.call(void 0, config.docs) ? `
8748
8748
  // The adapter keeps pages a path guard covers off search, llms.txt, the sitemap and MCP. It
8749
8749
  // asks about any path its own content lists, so the guards decide here, not a page list.
8750
8750
  isPathGuarded: (pathname) =>
@@ -8805,12 +8805,12 @@ const farmDeploymentCookiePath = ${JSON.stringify(config.basePath || "/")};
8805
8805
  // runtime request.
8806
8806
  const farmRuntimeErrorSlot = Symbol("farm.runtime.error.slot");
8807
8807
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
8808
- ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkWJ5CCQBMcjs.resolveFarmApiCatalogInput.call(void 0, config))};
8808
+ ${_optionalChain([config, 'access', _243 => _243.agent, 'optionalAccess', _244 => _244.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkLTDMJD2Fcjs.resolveFarmApiCatalogInput.call(void 0, config))};
8809
8809
  ` : ""}${_optionalChain([config, 'access', _245 => _245.agent, 'optionalAccess', _246 => _246.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
8810
- _chunkWJ5CCQBMcjs.resolveFarmAppManifestInput.call(void 0, config, {
8810
+ _chunkLTDMJD2Fcjs.resolveFarmAppManifestInput.call(void 0, config, {
8811
8811
  build: config.deploymentId,
8812
- packages: _chunkIK33N2ANcjs.resolveFarmAppPackages.call(void 0, config.root),
8813
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkIK33N2ANcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8812
+ packages: _chunkSIYELCIXcjs.resolveFarmAppPackages.call(void 0, config.root),
8813
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkSIYELCIXcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
8814
8814
  })
8815
8815
  )};
8816
8816
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -9591,7 +9591,7 @@ function peelFarmDocumentPrefix(markup) {
9591
9591
  let inner = markup.replace(/^\\s+/, "");
9592
9592
  let hoisted = "";
9593
9593
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
9594
- const hoistable = /${_chunkXGDI4OUBcjs.HOISTED_HEAD_ELEMENT.source}/i;
9594
+ const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
9595
9595
  let match;
9596
9596
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
9597
9597
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -9620,7 +9620,7 @@ function opensFarmFullDocument(markup) {
9620
9620
  // them: its own head takes them. Matches the dev renderer's takeFarmHoistedHead.
9621
9621
  function takeFarmHoistedHead(markup) {
9622
9622
  if (opensFarmFullDocument(markup)) return { head: "", body: markup };
9623
- const hoistable = /${_chunkXGDI4OUBcjs.HOISTED_HEAD_ELEMENT.source}/i;
9623
+ const hoistable = /${_chunk6ZFGWB75cjs.HOISTED_HEAD_ELEMENT.source}/i;
9624
9624
  let head = "";
9625
9625
  let body = markup;
9626
9626
  let match;
@@ -10150,7 +10150,7 @@ function createFarmAgentRobotsResponse(request) {
10150
10150
  // its nearest layout's.
10151
10151
  const farmAgentGuardedPages = new Set(${JSON.stringify(
10152
10152
  pageRoutes.map((route) => route.pattern).filter(
10153
- (pattern) => !pattern.includes("[") && _chunkXGDI4OUBcjs.farmPathGuardCoversPage.call(void 0,
10153
+ (pattern) => !pattern.includes("[") && _chunk6ZFGWB75cjs.farmPathGuardCoversPage.call(void 0,
10154
10154
  {
10155
10155
  config: { middleware: config.middleware, integrations: config.integrations },
10156
10156
  middlewareRoutes
@@ -10205,7 +10205,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
10205
10205
  // aside for a page route that answers /mcp and for any MCP server published or
10206
10206
  // registered at runtime, such as the docs engine's.
10207
10207
  const farmDefaultMCPServer = ${JSON.stringify(
10208
- _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkIVBDRAORcjs.FARM_VERSION)
10208
+ _chunkYRXPDKMMcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunkUYACD4SHcjs.FARM_VERSION)
10209
10209
  )};
10210
10210
  let farmDefaultMCPRouteFree;
10211
10211
  function getFarmDefaultMCPServer() {
@@ -10399,7 +10399,7 @@ ${edgeMiddlewareFilePaths.length > 0 ? `
10399
10399
  // middleware guards is never prerendered. Read once: Nitro's prerender worker sets the variable.
10400
10400
  const farmEdgeMiddlewareFiles = new Set(${JSON.stringify(edgeMiddlewareFilePaths)});
10401
10401
  const farmPrerendering =
10402
- typeof process !== "undefined" && process.env?.${_chunkWHCNJVYUcjs.FARM_PRERENDER_ENV} === "1";
10402
+ typeof process !== "undefined" && process.env?.${_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV} === "1";
10403
10403
  ` : ""}
10404
10404
  const farmMiddlewareRunner = ${hasMiddlewareRuntime ? `createProductionMiddlewareRunner({
10405
10405
  config: farmMiddlewareConfig,
@@ -10655,7 +10655,7 @@ ${hasInfraAnalyticsRuntime ? `
10655
10655
  // endpoints, Markdown mirrors, and docs pages have no app route pattern, so they are
10656
10656
  // labeled here; route.pattern keeps meaning the matched app route for plugins.
10657
10657
  const farmBuiltInRoutePaths = new Set(${JSON.stringify(
10658
- _chunkWJ5CCQBMcjs.listFarmBuiltInRoutePaths.call(void 0, {
10658
+ _chunkLTDMJD2Fcjs.listFarmBuiltInRoutePaths.call(void 0, {
10659
10659
  agent: {
10660
10660
  ...config.agent,
10661
10661
  aiCatalog: servesAiCatalog,
@@ -11432,7 +11432,7 @@ ${hasServerRuntimeIntegrations ? `
11432
11432
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
11433
11433
  // public manifest, the same document for every request.
11434
11434
  if (
11435
- [${JSON.stringify(_chunkWJ5CCQBMcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkWJ5CCQBMcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11435
+ [${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
11436
11436
  normalizeRuntimePath(routePathname),
11437
11437
  )
11438
11438
  ) {
@@ -11444,7 +11444,7 @@ ${hasServerRuntimeIntegrations ? `
11444
11444
  ` : ""}
11445
11445
  ${_optionalChain([config, 'access', _277 => _277.agent, 'optionalAccess', _278 => _278.apiCatalog]) ? `
11446
11446
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
11447
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkWJ5CCQBMcjs.FARM_API_CATALOG_PATH)}) {
11447
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkLTDMJD2Fcjs.FARM_API_CATALOG_PATH)}) {
11448
11448
  return applyProductionMiddlewareHeaders(
11449
11449
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
11450
11450
  middlewareHeaders,
@@ -11665,7 +11665,7 @@ ${hasServerRuntimeIntegrations ? `
11665
11665
  : {}),
11666
11666
  },
11667
11667
  }), middlewareHeaders), cachedPPRShell);
11668
- farmPreloadShells.set(response, cachedPPRShellEntry);
11668
+ farmResponseShells.set(response, cachedPPRShellEntry);
11669
11669
  return response;
11670
11670
  }
11671
11671
  emitFarmEvent({ type: "ppr.shell.miss", route: pathname, key: pprCacheKey });
@@ -13118,7 +13118,7 @@ async function handleFarmFetch(request, context) {${config.server.trustProxy ? `
13118
13118
  );
13119
13119
  // A Nitro cache rule stores the response and strips its Content-Encoding, so a
13120
13120
  // response it caches is sent as it is, with no Vary on an encoding it never saw.
13121
- return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response))" : "response"};
13121
+ return ${hasCompressionRuntime && !hasPluginRuntime ? "context?.routeRuleCache ? response : compressFarmResponse(request, response, getFarmOwnedBufferedHtml(response), farmLazyBufferedHtml.has(response), farmResponseShells.get(response))" : "response"};
13122
13122
  }),
13123
13123
  {
13124
13124
  onResponseFinished: typeof context?.onResponseFinished === "function"
@@ -13253,9 +13253,9 @@ function getPhysicalPrerenderBypassReason(options) {
13253
13253
  if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
13254
13254
  return "rewrite";
13255
13255
  }
13256
- if (_chunkXGDI4OUBcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13257
- if (_chunkXGDI4OUBcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13258
- if (_chunkNPGXX7HNcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13256
+ if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
13257
+ if (_chunk6ZFGWB75cjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
13258
+ if (_chunkYROK6CJCcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
13259
13259
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
13260
13260
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
13261
13261
  if (_optionalChain([manifestEntry, 'optionalAccess', _298 => _298.rendering]) === "dynamic") return "dynamic runtime manifest";
@@ -13279,7 +13279,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
13279
13279
  );
13280
13280
  return [];
13281
13281
  }
13282
- if (!_chunkZPCZWEU3cjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13282
+ if (!_chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)) {
13283
13283
  const { pages: pages2, originDependent } = _chunk6D3CJFNUcjs.listFarmDocsBuiltInPrerenderPages.call(void 0, config.docs, {
13284
13284
  root,
13285
13285
  srcDir: config.srcDir
@@ -13297,7 +13297,7 @@ async function getFarmDocsPrerenderPages(config, root, preset) {
13297
13297
  );
13298
13298
  return [];
13299
13299
  }
13300
- const pages = await _chunkZPCZWEU3cjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13300
+ const pages = await _chunkFCHEO3LGcjs.listFarmDocsAdapterPages.call(void 0, config.docs, { root, srcDir: config.srcDir });
13301
13301
  if (!pages) {
13302
13302
  _chunkGC5ROI3Acjs.logger.warn(
13303
13303
  `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.`
@@ -13311,10 +13311,10 @@ async function listFarmDocsAnalyticsPages(config, root, preset) {
13311
13311
  return [];
13312
13312
  }
13313
13313
  try {
13314
- return await _chunkZPCZWEU3cjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13314
+ return await _chunkFCHEO3LGcjs.listFarmDocsPagePaths.call(void 0, config.docs, {
13315
13315
  root,
13316
13316
  srcDir: config.srcDir,
13317
- adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkZPCZWEU3cjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13317
+ adapter: _chunk67MZTLTFcjs.isReactRenderer.call(void 0, config.renderer) && _chunkFCHEO3LGcjs.hasFarmDocsRuntimeAdapter.call(void 0, config.docs)
13318
13318
  });
13319
13319
  } catch (error) {
13320
13320
  _chunkGC5ROI3Acjs.logger.warn(
@@ -13340,10 +13340,10 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13340
13340
  const nitroBuilder = nitroBuilderResult.value;
13341
13341
  const isVercel = preset === "vercel";
13342
13342
  const isCloudflareWorker = preset === "cloudflare-module";
13343
- const outputDir = _chunkNPGXX7HNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13343
+ const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
13344
13344
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
13345
13345
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
13346
- const imageRuntime = _chunkIK33N2ANcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13346
+ const imageRuntime = _chunkSIYELCIXcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
13347
13347
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
13348
13348
  (image) => image.sourceType === "module"
13349
13349
  );
@@ -13365,7 +13365,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13365
13365
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} SSR entry file: ${ssrEntryFile}`);
13366
13366
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4E6} Preset: ${preset}`);
13367
13367
  const ssgCollectionPromise = routeManager.collectSSGPages();
13368
- const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config));
13368
+ const middlewareRoutesPromise = discoverMiddlewareRoutes(_chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config));
13369
13369
  const configuredResponseRoutesPromise = Promise.all([config.redirects(), config.rewrites()]);
13370
13370
  const docsPrerenderPagesPromise = getFarmDocsPrerenderPages(config, root, preset);
13371
13371
  const farmWorkflows = await _chunkQUEYL2WMcjs.prepareFarmWorkflowsForNitro.call(void 0, config);
@@ -13399,7 +13399,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
13399
13399
  const edgeGuardedPrerenderRoutes = [];
13400
13400
  const addPrerenderRoute = (pathname) => {
13401
13401
  prerenderRoutes.push(pathname);
13402
- if (_chunkXGDI4OUBcjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
13402
+ if (_chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, edgeMiddlewareRoutes, pathname)) {
13403
13403
  edgeGuardedPrerenderRoutes.push(pathname);
13404
13404
  }
13405
13405
  };
@@ -14157,13 +14157,13 @@ function toFarmNodeResponse(request, response) {
14157
14157
  }
14158
14158
  if (prerenderRoutes.length > 0) {
14159
14159
  _chunkGC5ROI3Acjs.logger.info(`\u{1F4C4} Pre-rendering ${prerenderRoutes.length} SSG page(s)`);
14160
- const previousPrerender = process.env[_chunkWHCNJVYUcjs.FARM_PRERENDER_ENV];
14161
- process.env[_chunkWHCNJVYUcjs.FARM_PRERENDER_ENV] = "1";
14160
+ const previousPrerender = process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
14161
+ process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = "1";
14162
14162
  try {
14163
14163
  await nitroBuilder.prerender(nitroInstance);
14164
14164
  } finally {
14165
- if (previousPrerender === void 0) delete process.env[_chunkWHCNJVYUcjs.FARM_PRERENDER_ENV];
14166
- else process.env[_chunkWHCNJVYUcjs.FARM_PRERENDER_ENV] = previousPrerender;
14165
+ if (previousPrerender === void 0) delete process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV];
14166
+ else process.env[_chunkDSRWQ4SJcjs.FARM_PRERENDER_ENV] = previousPrerender;
14167
14167
  }
14168
14168
  }
14169
14169
  const sharpRuntimeStagePromise = imageRuntime === "node" ? stageSharpRuntime(config, root, distDir, fs5, preset) : Promise.resolve(null);
@@ -14380,7 +14380,7 @@ async function postProcessVercelOutput(root, outputDir, fs5, config, farmWorkflo
14380
14380
  config.basePath
14381
14381
  );
14382
14382
  const edgeMiddlewareRoutes = edgeMiddleware.middlewareRoutes.filter(
14383
- (route) => edgeMiddleware.guardedPages.some((pathname) => _chunkXGDI4OUBcjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
14383
+ (route) => edgeMiddleware.guardedPages.some((pathname) => _chunk6ZFGWB75cjs.appMiddlewareMayHandlePath.call(void 0, [route], pathname))
14384
14384
  );
14385
14385
  if (edgeMiddlewareRoutes.length > 0) {
14386
14386
  await writeFarmVercelEdgeMiddlewareFunction({
@@ -14518,7 +14518,7 @@ async function stageSharpRuntime(config, root, distDir, fs5, preset) {
14518
14518
  try {
14519
14519
  await copyPackage("sharp", sharpRequire);
14520
14520
  if (!copiedPackages.has("sharp")) {
14521
- throw new Error(`Farm image optimization requires sharp. ${_chunkIK33N2ANcjs.SHARP_INSTALL_HINT}`);
14521
+ throw new Error(`Farm image optimization requires sharp. ${_chunkSIYELCIXcjs.SHARP_INSTALL_HINT}`);
14522
14522
  }
14523
14523
  } catch (error) {
14524
14524
  await fs5.rm(stageDir, { recursive: true, force: true });
@@ -14751,7 +14751,7 @@ async function createFarmProjectModuleSsrEnvironment() {
14751
14751
  // src/build/index.ts
14752
14752
  async function build(config, options = {}) {
14753
14753
  return _chunkNG2EZ6QScjs.withProductionNodeEnv.call(void 0,
14754
- () => _chunkJNZDTE75cjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14754
+ () => _chunkPMKUTZGRcjs.withPackageClientBoundaryCache.call(void 0, () => buildWithProductionNodeEnv(config, options))
14755
14755
  );
14756
14756
  }
14757
14757
  function createBuildTargetBaseline(config) {
@@ -14762,7 +14762,7 @@ function createBuildTargetBaseline(config) {
14762
14762
  preset,
14763
14763
  distDir,
14764
14764
  outputDir,
14765
- outputWasDerived: outputDir === _chunkNPGXX7HNcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14765
+ outputWasDerived: outputDir === _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, config.deploy.target, preset, distDir)
14766
14766
  };
14767
14767
  }
14768
14768
  function resolveBuildTargets(config, options, baseline) {
@@ -14771,8 +14771,8 @@ function resolveBuildTargets(config, options, baseline) {
14771
14771
  const distDir = config.distDir || ".farm";
14772
14772
  const outputWasReplaced = config.deploy.outputDir !== baseline.outputDir;
14773
14773
  const shouldRefreshDerivedOutput = baseline.outputWasDerived && !outputWasReplaced && (preset !== baseline.preset || distDir !== baseline.distDir);
14774
- const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkNPGXX7HNcjs.getDeployTargetForPreset.call(void 0, preset);
14775
- const outputDir = shouldRefreshDerivedOutput ? _chunkNPGXX7HNcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14774
+ const deployTarget = preset === config.deploy.preset ? config.deploy.target : _chunkYROK6CJCcjs.getDeployTargetForPreset.call(void 0, preset);
14775
+ const outputDir = shouldRefreshDerivedOutput ? _chunkYROK6CJCcjs.getDefaultDeployOutputDir.call(void 0, deployTarget, preset, distDir) : config.deploy.outputDir;
14776
14776
  return {
14777
14777
  root,
14778
14778
  preset,
@@ -14780,7 +14780,7 @@ function resolveBuildTargets(config, options, baseline) {
14780
14780
  distDir,
14781
14781
  deployTarget,
14782
14782
  outputDir,
14783
- deployOutputDir: _chunkNPGXX7HNcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14783
+ deployOutputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, outputDir)
14784
14784
  };
14785
14785
  }
14786
14786
  async function buildWithProductionNodeEnv(inputConfig, options) {
@@ -14788,7 +14788,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14788
14788
  const targetBaseline = createBuildTargetBaseline(config);
14789
14789
  let targets;
14790
14790
  const productionViteResultPromise = options.universal === false ? void 0 : Promise.allSettled([Promise.resolve(_nullishCoalesce(options.productionVite, () => ( _chunkMF3IA2AWcjs.loadFarmProductionVite.call(void 0, ))))]);
14791
- const pluginManager = new (0, _chunkPMU4U2W2cjs.PluginManager)({
14791
+ const pluginManager = new (0, _chunkPC5OZ4YRcjs.PluginManager)({
14792
14792
  config,
14793
14793
  isDev: false,
14794
14794
  isProd: true
@@ -14817,7 +14817,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14817
14817
  };
14818
14818
  config = {
14819
14819
  ...config,
14820
- images: _chunkIK33N2ANcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
14820
+ images: _chunkSIYELCIXcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
14821
14821
  root: targets.root,
14822
14822
  preset: targets.preset
14823
14823
  })
@@ -14825,7 +14825,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14825
14825
  if (_optionalChain([config, 'access', _353 => _353.docs, 'optionalAccess', _354 => _354.enabled])) await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
14826
14826
  pluginManager.updateContext({ config });
14827
14827
  const { root, preset, srcDir, distDir, deployOutputDir } = targets;
14828
- _chunkJNZDTE75cjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkJNZDTE75cjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
14828
+ _chunkPMKUTZGRcjs.usePackageClientBoundaryCacheFile.call(void 0, _chunkPMKUTZGRcjs.resolvePackageClientBoundaryCacheFile.call(void 0, root, distDir));
14829
14829
  _chunkGC5ROI3Acjs.logger.info(`\u{1F69C} Building Farm.js application with preset: ${preset}...`);
14830
14830
  await pluginManager.setupPlugins();
14831
14831
  await pluginManager.runHookParallel("beforeBundle", {
@@ -14846,15 +14846,16 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14846
14846
  root,
14847
14847
  rendererBuild.signal
14848
14848
  );
14849
- const farmApp = _chunkIK33N2ANcjs.createFarmApp.call(void 0, config, projectModuleServer);
14849
+ const farmApp = _chunkSIYELCIXcjs.createFarmApp.call(void 0, config, projectModuleServer);
14850
14850
  if (options.universal !== false) farmApp.getRouteManager().keepBuildSourceSnapshot();
14851
14851
  await farmApp.initialize();
14852
14852
  const routeManager = farmApp.getRouteManager();
14853
14853
  const serverRenderer = farmApp.getServerRenderer();
14854
- const typeArtifacts = _chunk7564NP5Zcjs.generateFarmTypeArtifacts.call(void 0, {
14854
+ const typeArtifacts = _chunkGC2BSXQScjs.generateFarmTypeArtifacts.call(void 0, {
14855
14855
  root,
14856
14856
  srcDir,
14857
14857
  layers: config.layers,
14858
+ storage: config.storage,
14858
14859
  plugins: config.plugins,
14859
14860
  extraRoutes: [
14860
14861
  ..._optionalChain([config, 'access', _357 => _357.openapi, 'optionalAccess', _358 => _358.enabled]) && config.openapi.route ? [config.openapi.route] : [],
@@ -14868,7 +14869,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
14868
14869
  _chunkGC5ROI3Acjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
14869
14870
  });
14870
14871
  const apiRouteManager = new (0, _chunkHFJLMALCcjs.APIRouteManager)(
14871
- _chunkMTBDJ326cjs.getFarmAppDirectories.call(void 0, config),
14872
+ _chunkQMR2TUVZcjs.getFarmAppDirectories.call(void 0, config),
14872
14873
  projectModuleServer,
14873
14874
  {
14874
14875
  throwOnLoadError: true,
@@ -14954,7 +14955,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14954
14955
  ssr: true,
14955
14956
  buildLifetime
14956
14957
  });
14957
- const viteConfig = _chunkIK33N2ANcjs.mergeFarmViteConfig.call(void 0,
14958
+ const viteConfig = _chunkSIYELCIXcjs.mergeFarmViteConfig.call(void 0,
14958
14959
  {
14959
14960
  root,
14960
14961
  appType: "custom",
@@ -14966,12 +14967,12 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14966
14967
  },
14967
14968
  plugins: [
14968
14969
  ...rendererVitePlugins,
14969
- _chunkIK33N2ANcjs.farmFontImportsPlugin.call(void 0, {
14970
+ _chunkSIYELCIXcjs.farmFontImportsPlugin.call(void 0, {
14970
14971
  root,
14971
14972
  basePath: config.basePath,
14972
14973
  publicDir: config.publicDir
14973
14974
  }),
14974
- _chunkJNZDTE75cjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
14975
+ _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, ),
14975
14976
  // Route modules load here at build time (rendering config, prerendering): `server-only`
14976
14977
  // resolves as it does in the server build. Module-entry packages load pre-bundled, as in
14977
14978
  // `farm dev`: unbundled, lucide-react alone is ~1,750 modules through the module runner,
@@ -14986,7 +14987,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
14986
14987
  hmr: false
14987
14988
  },
14988
14989
  resolve: {
14989
- alias: _chunkIK33N2ANcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
14990
+ alias: _chunkSIYELCIXcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
14990
14991
  dedupe: [...config.renderer.dedupe || []]
14991
14992
  },
14992
14993
  optimizeDeps: {
@@ -15041,7 +15042,7 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15041
15042
  farmPlugin,
15042
15043
  farmServerOnlyEntriesPlugin
15043
15044
  } = await import("./vite.cjs");
15044
- const { PluginManager: PluginManager2 } = await import("./plugin-5BNPYCER.cjs");
15045
+ const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
15045
15046
  const pluginManager = new PluginManager2({
15046
15047
  config,
15047
15048
  isDev: false,
@@ -15062,14 +15063,14 @@ async function buildClient2(viteBuild, config, root, srcDir, outputDir) {
15062
15063
  farmServerOnlyEntriesPlugin({ distDir: config.distDir || ".farm" }),
15063
15064
  farmIslandContainersPlugin(config),
15064
15065
  farmPlugin(config, pluginManager),
15065
- _chunkJNZDTE75cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15066
+ _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15066
15067
  ],
15067
15068
  mode: "production"
15068
15069
  });
15069
15070
  }
15070
15071
  async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15071
15072
  const { farmI18nClientBridgePlugin, farmIslandContainersPlugin, farmPlugin } = await import("./vite.cjs");
15072
- const { PluginManager: PluginManager2 } = await import("./plugin-5BNPYCER.cjs");
15073
+ const { PluginManager: PluginManager2 } = await import("./plugin-MW7IDV76.cjs");
15073
15074
  const pluginManager = new PluginManager2({
15074
15075
  config,
15075
15076
  isDev: false,
@@ -15096,7 +15097,7 @@ async function buildSSR(viteBuild, config, root, srcDir, outputDir) {
15096
15097
  farmI18nClientBridgePlugin(),
15097
15098
  farmIslandContainersPlugin(config),
15098
15099
  farmPlugin(config, pluginManager),
15099
- _chunkJNZDTE75cjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15100
+ _chunkPMKUTZGRcjs.farmEnvironmentFunctionsPlugin.call(void 0, config)
15100
15101
  ],
15101
15102
  mode: "production"
15102
15103
  });
@@ -15124,7 +15125,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15124
15125
  if (pluginManager) {
15125
15126
  nitroConfig = await pluginManager.runHookSerial("beforeNitroBuild", nitroConfig);
15126
15127
  }
15127
- const outputDir = _chunkNPGXX7HNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15128
+ const outputDir = _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
15128
15129
  const serverOutputDir = _path2.default.join(outputDir, "server");
15129
15130
  const publicOutputDir = _path2.default.join(outputDir, "public");
15130
15131
  const { mkdir, cp } = await import("fs/promises");
@@ -15195,7 +15196,7 @@ async function buildNitro(config, routeManager, apiRouteManager, serverRenderer,
15195
15196
  root,
15196
15197
  preset,
15197
15198
  distDir,
15198
- outputDir: _chunkNPGXX7HNcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15199
+ outputDir: _chunkYROK6CJCcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir)
15199
15200
  });
15200
15201
  }
15201
15202
  }