@farm.js/core 0.1.50 → 0.1.51-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +163 -3
  2. package/dist/{agent-mcp-9BMbRgg_.d.ts → agent-mcp-BBMfNpsC.d.ts} +1 -1
  3. package/dist/{agent-mcp-CIMH324y.d.mts → agent-mcp-D44ip11f.d.mts} +1 -1
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/{analyzer-DDW34OMC.mjs → analyzer-HOUCQR3K.mjs} +1 -1
  7. package/dist/{analyzer-CN7C74WX.cjs → analyzer-VKUDHNDF.cjs} +2 -2
  8. package/dist/api/route-manager.cjs +5 -5
  9. package/dist/api/route-manager.d.mts +3 -3
  10. package/dist/api/route-manager.d.ts +3 -3
  11. package/dist/api/route-manager.mjs +4 -4
  12. package/dist/api/runtime.d.mts +2 -2
  13. package/dist/api/runtime.d.ts +2 -2
  14. package/dist/api.cjs +6 -6
  15. package/dist/api.d.mts +3 -3
  16. package/dist/api.d.ts +3 -3
  17. package/dist/api.mjs +5 -5
  18. package/dist/{app-BWibTHVT.d.ts → app-CourU3rQ.d.ts} +4 -4
  19. package/dist/{app-DVJ13FPA.d.mts → app-aeD4s_mg.d.mts} +4 -4
  20. package/dist/{app-manifest-CQDJOKL2.d.mts → app-manifest-BC6mFn5A.d.mts} +1 -1
  21. package/dist/{app-manifest-D0kaXdwu.d.ts → app-manifest-LzjoNPeq.d.ts} +1 -1
  22. package/dist/app-markdown.d.mts +2 -2
  23. package/dist/app-markdown.d.ts +2 -2
  24. package/dist/base-path-BOUV5ozD.d.mts +10 -0
  25. package/dist/base-path-BOUV5ozD.d.ts +10 -0
  26. package/dist/{chunk-RWT2BTJT.cjs → chunk-2IAPKPEB.cjs} +6 -6
  27. package/dist/{chunk-2G63BIRL.mjs → chunk-2KVDHNQS.mjs} +8 -11
  28. package/dist/{chunk-76R5GJER.mjs → chunk-3HA7PP72.mjs} +2 -2
  29. package/dist/{chunk-NJVFPJ2Y.cjs → chunk-3OWVWZ6R.cjs} +28 -2
  30. package/dist/{chunk-KO2NWUKN.mjs → chunk-4GJJ65RB.mjs} +9 -1
  31. package/dist/{chunk-GERUXONA.cjs → chunk-5A77OEIG.cjs} +4 -1
  32. package/dist/{chunk-4HBKBHVP.mjs → chunk-5ENW27SL.mjs} +1 -1
  33. package/dist/{chunk-MTB57GOK.mjs → chunk-724WT3NI.mjs} +4 -2
  34. package/dist/{chunk-VCKGOXFI.cjs → chunk-76GHW3WI.cjs} +7 -1
  35. package/dist/{chunk-ZIBIE7AH.mjs → chunk-7UPCJDB5.mjs} +7 -1
  36. package/dist/{chunk-CPXDDWGL.mjs → chunk-AER5I65K.mjs} +1 -1
  37. package/dist/{chunk-WB6XES4V.mjs → chunk-ALEUMLJN.mjs} +34 -5
  38. package/dist/{chunk-WVBUXNBX.mjs → chunk-AMRK3P6W.mjs} +123 -47
  39. package/dist/{chunk-L6QDME5Z.cjs → chunk-B3GZAQSC.cjs} +3 -3
  40. package/dist/chunk-CKPTIEDX.cjs +12 -0
  41. package/dist/{chunk-B5S2JS6M.cjs → chunk-DWW3AMJX.cjs} +288 -255
  42. package/dist/{chunk-EQMTJBB7.cjs → chunk-DZZHTMWM.cjs} +35 -6
  43. package/dist/{chunk-3ATXWZPH.cjs → chunk-E36C43IX.cjs} +13 -16
  44. package/dist/{chunk-J2ZEVDEK.cjs → chunk-EHB77D5U.cjs} +3 -3
  45. package/dist/{chunk-WQGRD5BJ.cjs → chunk-EX6ZSN5P.cjs} +1 -16
  46. package/dist/{chunk-474FO3UE.cjs → chunk-F42U3R4F.cjs} +170 -163
  47. package/dist/{chunk-6QA2SXVH.cjs → chunk-FK25QSVC.cjs} +2 -1
  48. package/dist/{chunk-BW6SCVYX.mjs → chunk-FSQMN2MQ.mjs} +1 -0
  49. package/dist/{chunk-2H3FJYY6.mjs → chunk-FSXSQQTV.mjs} +3 -2
  50. package/dist/chunk-GNZIAJGB.mjs +358 -0
  51. package/dist/{chunk-TXK4D46O.mjs → chunk-H3ASZDT7.mjs} +21 -1
  52. package/dist/{chunk-B6PREBN6.cjs → chunk-HASX6DC7.cjs} +8 -8
  53. package/dist/{chunk-ZLOQQ2UF.mjs → chunk-I2ZA5SXS.mjs} +60 -27
  54. package/dist/{chunk-X2EL3BLH.cjs → chunk-IOUOGRDX.cjs} +11 -3
  55. package/dist/{chunk-CBJKDB6F.mjs → chunk-IRSS4HS4.mjs} +1 -1
  56. package/dist/{chunk-GOOK2J2W.cjs → chunk-J22JD5YJ.cjs} +2 -2
  57. package/dist/{chunk-2DEPNLXK.mjs → chunk-JF5CNHHF.mjs} +4 -4
  58. package/dist/{chunk-VOZ5DI7D.mjs → chunk-JWI5PUO2.mjs} +6 -2
  59. package/dist/{chunk-YAXOEAND.cjs → chunk-KHXAJ2KA.cjs} +6 -6
  60. package/dist/{chunk-WXHDVXJE.mjs → chunk-KY32FWK7.mjs} +2 -2
  61. package/dist/{chunk-EQWWOQTK.cjs → chunk-LEIXUFJN.cjs} +6 -2
  62. package/dist/{chunk-2GLQSIZD.mjs → chunk-LMFJCXDD.mjs} +1 -1
  63. package/dist/{chunk-IXSMFKZ2.cjs → chunk-LNM57D3H.cjs} +4 -4
  64. package/dist/{chunk-5V4KZOZO.mjs → chunk-LZ4SB57H.mjs} +2 -2
  65. package/dist/{chunk-E2BMCNMJ.cjs → chunk-MMEEXMUQ.cjs} +2 -2
  66. package/dist/chunk-N4AQNEXR.cjs +17 -0
  67. package/dist/{chunk-JZMZKABS.cjs → chunk-NWUHS6GV.cjs} +3 -2
  68. package/dist/{chunk-LYWAGXXW.cjs → chunk-O3MMJPC2.cjs} +12 -12
  69. package/dist/{chunk-FACTMUPI.cjs → chunk-PDJSL7PL.cjs} +30 -19
  70. package/dist/{chunk-XLLVWLWO.mjs → chunk-PIHKO25G.mjs} +1 -1
  71. package/dist/chunk-PIUTGRDI.cjs +358 -0
  72. package/dist/{chunk-KGP76FSV.mjs → chunk-PPDHCRTC.mjs} +1 -1
  73. package/dist/{chunk-C73RIAEF.mjs → chunk-QI5AQMEE.mjs} +17 -6
  74. package/dist/{chunk-F5LERVY3.cjs → chunk-QK3HBOTG.cjs} +10 -10
  75. package/dist/{chunk-Q3UU2KXC.mjs → chunk-QMDU6QHN.mjs} +4 -1
  76. package/dist/{chunk-JJOWY3XD.mjs → chunk-R5P4KFPM.mjs} +1 -1
  77. package/dist/{chunk-IWJKJDNW.mjs → chunk-S5ZA2T2W.mjs} +35 -28
  78. package/dist/{chunk-PXEXOQ5R.mjs → chunk-SHS6KXOZ.mjs} +1 -1
  79. package/dist/{chunk-ETF5C6HR.cjs → chunk-SJ23LJ3N.cjs} +3 -3
  80. package/dist/{chunk-KZH6YLND.cjs → chunk-SO3T6T4I.cjs} +427 -351
  81. package/dist/{chunk-JHXJBNLY.cjs → chunk-SUCDVKUB.cjs} +21 -1
  82. package/dist/{chunk-7ONZDKVY.mjs → chunk-T4EW7AAD.mjs} +2 -2
  83. package/dist/{chunk-UY6HS5PF.cjs → chunk-USL2ANCB.cjs} +8 -8
  84. package/dist/{chunk-4T25YCZ5.cjs → chunk-VIFPE5RG.cjs} +14 -14
  85. package/dist/{chunk-HYN3LLG7.cjs → chunk-VO6NLTV4.cjs} +3 -3
  86. package/dist/{chunk-XN2MB4QZ.cjs → chunk-VQJYGZNX.cjs} +4 -4
  87. package/dist/{chunk-5PKDHKQP.cjs → chunk-WFVSAT7Y.cjs} +6 -4
  88. package/dist/{chunk-X3HOVNHI.mjs → chunk-WSY2JD7O.mjs} +6 -6
  89. package/dist/{chunk-SHJJM6OG.mjs → chunk-WVX3BUNJ.mjs} +1 -1
  90. package/dist/chunk-X3EFRVXY.mjs +12 -0
  91. package/dist/{chunk-UCQ52TJY.mjs → chunk-X3JNB2TB.mjs} +1 -1
  92. package/dist/{chunk-RHOR2J6V.cjs → chunk-X5BCMLGP.cjs} +1 -1
  93. package/dist/{chunk-IQXGHGZF.cjs → chunk-XB24LZWI.cjs} +5 -5
  94. package/dist/{chunk-BNMHXVLL.mjs → chunk-XMHERKSE.mjs} +0 -15
  95. package/dist/{chunk-CGCJ2TJU.cjs → chunk-XPMC4E2G.cjs} +3 -3
  96. package/dist/{chunk-HWCHIBJZ.mjs → chunk-XWC5NAHV.mjs} +4 -4
  97. package/dist/{chunk-C7425KDG.cjs → chunk-XYL4HSVC.cjs} +2 -2
  98. package/dist/{chunk-2SVJGOAX.mjs → chunk-Y3N5BFRJ.mjs} +3 -3
  99. package/dist/{chunk-IUBDMDZZ.cjs → chunk-Y7TLL65B.cjs} +4 -4
  100. package/dist/{chunk-M7LKA632.mjs → chunk-YLNBWUVS.mjs} +1 -1
  101. package/dist/chunk-Z5A6CNV2.mjs +60 -0
  102. package/dist/chunk-Z64V4WZI.mjs +17 -0
  103. package/dist/{chunk-2VCC3GVC.mjs → chunk-ZF3GX4O7.mjs} +1 -1
  104. package/dist/{client-plugins-BPfltM5m.d.ts → client-plugins-CFBEfVPO.d.ts} +20 -3
  105. package/dist/{client-plugins-D4RO59f0.d.mts → client-plugins-cqy_dQd0.d.mts} +20 -3
  106. package/dist/client-plugins.d.mts +1 -1
  107. package/dist/client-plugins.d.ts +1 -1
  108. package/dist/client.cjs +5 -4
  109. package/dist/client.d.mts +6 -6
  110. package/dist/client.d.ts +6 -6
  111. package/dist/client.mjs +4 -3
  112. package/dist/config.d.mts +1 -1
  113. package/dist/config.d.ts +1 -1
  114. package/dist/cron.cjs +4 -4
  115. package/dist/cron.mjs +3 -3
  116. package/dist/desktop.d.mts +2 -2
  117. package/dist/desktop.d.ts +2 -2
  118. package/dist/{devtools-STG7HPRV.mjs → devtools-4MLL3RAL.mjs} +6 -6
  119. package/dist/{devtools-N5XTOECL.cjs → devtools-4ZLMD454.cjs} +8 -8
  120. package/dist/docs.cjs +10 -10
  121. package/dist/docs.d.mts +2 -2
  122. package/dist/docs.d.ts +2 -2
  123. package/dist/docs.mjs +9 -9
  124. package/dist/{index-k8o8eUOd.d.mts → index-BYkNbeQV.d.mts} +1 -1
  125. package/dist/{index-C-N3Pwg-.d.ts → index-BxjN_UDZ.d.ts} +1 -1
  126. package/dist/index.cjs +42 -40
  127. package/dist/index.d.mts +16 -16
  128. package/dist/index.d.ts +16 -16
  129. package/dist/index.mjs +41 -39
  130. package/dist/integrations.d.mts +1 -1
  131. package/dist/integrations.d.ts +1 -1
  132. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  133. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  134. package/dist/internal/build-runtime.cjs +32 -31
  135. package/dist/internal/build-runtime.d.mts +3 -3
  136. package/dist/internal/build-runtime.d.ts +3 -3
  137. package/dist/internal/build-runtime.mjs +31 -30
  138. package/dist/internal/cli-runtime.cjs +15 -15
  139. package/dist/internal/cli-runtime.mjs +14 -14
  140. package/dist/internal/client-error-overlay.cjs +4 -4
  141. package/dist/internal/client-error-overlay.mjs +1 -1
  142. package/dist/internal/client-runtime.cjs +4 -2
  143. package/dist/internal/client-runtime.d.mts +5 -5
  144. package/dist/internal/client-runtime.d.ts +5 -5
  145. package/dist/internal/client-runtime.mjs +3 -1
  146. package/dist/internal/compression-runtime.d.mts +1 -1
  147. package/dist/internal/compression-runtime.d.ts +1 -1
  148. package/dist/internal/config-runtime.cjs +8 -8
  149. package/dist/internal/config-runtime.d.mts +3 -3
  150. package/dist/internal/config-runtime.d.ts +3 -3
  151. package/dist/internal/config-runtime.mjs +7 -7
  152. package/dist/internal/form-actions.cjs +4 -3
  153. package/dist/internal/form-actions.mjs +3 -2
  154. package/dist/internal/infra-analytics-runtime.cjs +5 -5
  155. package/dist/internal/infra-analytics-runtime.mjs +3 -3
  156. package/dist/internal/islands-runtime.cjs +56 -0
  157. package/dist/internal/islands-runtime.mjs +57 -1
  158. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  159. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  160. package/dist/internal/production-runtime.cjs +11 -8
  161. package/dist/internal/production-runtime.d.mts +24 -11
  162. package/dist/internal/production-runtime.d.ts +24 -11
  163. package/dist/internal/production-runtime.mjs +10 -7
  164. package/dist/internal/server-fn-transform.cjs +13 -0
  165. package/dist/internal/server-fn-transform.d.mts +24 -0
  166. package/dist/internal/server-fn-transform.d.ts +24 -0
  167. package/dist/internal/server-fn-transform.mjs +13 -0
  168. package/dist/markdown.d.mts +1 -1
  169. package/dist/markdown.d.ts +1 -1
  170. package/dist/middleware.cjs +7 -7
  171. package/dist/middleware.d.mts +3 -3
  172. package/dist/middleware.d.ts +3 -3
  173. package/dist/middleware.mjs +6 -6
  174. package/dist/mobile.d.mts +30 -3
  175. package/dist/mobile.d.ts +30 -3
  176. package/dist/{navigation-delegate-8xg3Zvp4.d.ts → navigation-delegate-BU4xqdnw.d.ts} +1 -1
  177. package/dist/{navigation-delegate-ji6elCKy.d.mts → navigation-delegate-DLhbfEN4.d.mts} +1 -1
  178. package/dist/navigation.d.mts +4 -4
  179. package/dist/navigation.d.ts +4 -4
  180. package/dist/{nitro-YPSZBYDK.cjs → nitro-CK7M4RMY.cjs} +11 -11
  181. package/dist/{nitro-2Q5NVY7L.mjs → nitro-R444AF3O.mjs} +7 -7
  182. package/dist/plugin.cjs +25 -23
  183. package/dist/plugin.d.mts +3 -3
  184. package/dist/plugin.d.ts +3 -3
  185. package/dist/plugin.mjs +24 -22
  186. package/dist/{production-runtime-TdKaYRj0.d.ts → production-runtime-C78A8YgK.d.ts} +1 -1
  187. package/dist/{production-runtime-DXnQQkQf.d.mts → production-runtime-DLA4J5WG.d.mts} +1 -1
  188. package/dist/{programmatic-routes-client-BwiTndEC.d.ts → programmatic-routes-client-CBqkNhBy.d.ts} +2 -2
  189. package/dist/{programmatic-routes-client-Dh1SDLSM.d.mts → programmatic-routes-client-NpqGBn-i.d.mts} +2 -2
  190. package/dist/{render-plan-BvCGXF6K.d.mts → render-plan-C9sWvDTv.d.mts} +1 -1
  191. package/dist/{render-plan-BPbwRbuN.d.ts → render-plan-CrqcBbnV.d.ts} +1 -1
  192. package/dist/renderer-client.cjs +8 -6
  193. package/dist/renderer-client.d.mts +4 -4
  194. package/dist/renderer-client.d.ts +4 -4
  195. package/dist/renderer-client.mjs +4 -2
  196. package/dist/{request-B8PGTZNR.d.ts → request-BizeuqD7.d.ts} +1 -1
  197. package/dist/{request-C_xTkJib.d.mts → request-WwB1-Uim.d.mts} +1 -1
  198. package/dist/request.d.mts +2 -2
  199. package/dist/request.d.ts +2 -2
  200. package/dist/{route-rendering-RNtcj607.d.ts → route-rendering-BGhJN64l.d.ts} +1 -1
  201. package/dist/{route-rendering-DlddURL1.d.mts → route-rendering-S6NFjnx4.d.mts} +1 -1
  202. package/dist/{router-B97eB0Mq.d.mts → router-BIheIy9G.d.mts} +1 -1
  203. package/dist/{router-qUVaoEN8.d.ts → router-BUD_j2EL.d.ts} +1 -1
  204. package/dist/routes.cjs +3 -2
  205. package/dist/routes.d.mts +2 -2
  206. package/dist/routes.d.ts +2 -2
  207. package/dist/routes.mjs +2 -1
  208. package/dist/{rsc-pipeline-L4XOZ2TE.cjs → rsc-pipeline-JRGUZBYM.cjs} +11 -11
  209. package/dist/{rsc-pipeline-T3775JUA.mjs → rsc-pipeline-OLAVIKI3.mjs} +10 -10
  210. package/dist/{runtime-C8GUnNeP.d.ts → runtime-CWP-21hP.d.ts} +1 -1
  211. package/dist/{runtime-CaDswfWi.d.mts → runtime-CgJwe6H_.d.mts} +1 -1
  212. package/dist/{runtime-BIBGJO7V.cjs → runtime-G23RSLEK.cjs} +14 -14
  213. package/dist/{runtime-HRSFC4ZC.mjs → runtime-OGCHDACZ.mjs} +12 -12
  214. package/dist/{schema-dev-notice-LZ5NXGLN.mjs → schema-dev-notice-F6QYSOAI.mjs} +2 -2
  215. package/dist/{schema-dev-notice-XV7GZ3QJ.cjs → schema-dev-notice-UU7DMZEU.cjs} +3 -3
  216. package/dist/{search-client-BTXL5XWD.mjs → search-client-OXH6GBNO.mjs} +5 -3
  217. package/dist/search-client-ZZLKVO5R.cjs +15 -0
  218. package/dist/server-action-security.cjs +2 -2
  219. package/dist/server-action-security.mjs +1 -1
  220. package/dist/server-fn.cjs +3 -3
  221. package/dist/server-fn.mjs +2 -2
  222. package/dist/server-plugins.d.mts +2 -2
  223. package/dist/server-plugins.d.ts +2 -2
  224. package/dist/server-query-client.cjs +4 -3
  225. package/dist/server-query-client.mjs +3 -2
  226. package/dist/server-query.cjs +4 -4
  227. package/dist/server-query.mjs +3 -3
  228. package/dist/server.cjs +57 -55
  229. package/dist/server.d.mts +9 -9
  230. package/dist/server.d.ts +9 -9
  231. package/dist/server.mjs +34 -32
  232. package/dist/{spa-router-Dlv5ofg0.d.mts → spa-router-CVOL0Vrq.d.mts} +2 -2
  233. package/dist/{spa-router-qapSboKz.d.ts → spa-router-Kytv4jSB.d.ts} +2 -2
  234. package/dist/testing.cjs +12 -11
  235. package/dist/testing.d.mts +1 -1
  236. package/dist/testing.d.ts +1 -1
  237. package/dist/testing.mjs +9 -8
  238. package/dist/{utils-A-cYF81u.d.ts → utils-DbyXlzaj.d.ts} +1 -1
  239. package/dist/{utils-DyvlSxFk.d.mts → utils-Dsa1HZ7X.d.mts} +1 -1
  240. package/dist/version.cjs +2 -2
  241. package/dist/version.mjs +1 -1
  242. package/dist/vite.cjs +25 -23
  243. package/dist/vite.d.mts +4 -4
  244. package/dist/vite.d.ts +4 -4
  245. package/dist/vite.mjs +24 -22
  246. package/dist/workflows.cjs +4 -4
  247. package/dist/workflows.mjs +3 -3
  248. package/package.json +8 -3
  249. package/dist/base-path-leyrqXbX.d.mts +0 -19
  250. package/dist/base-path-leyrqXbX.d.ts +0 -19
  251. package/dist/chunk-OTOOJIUB.mjs +0 -34
  252. package/dist/search-client-QCYAL6AY.cjs +0 -13
@@ -1,14 +1,13 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
+ var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
3
4
 
4
5
 
5
- var _chunkIUBDMDZZcjs = require('./chunk-IUBDMDZZ.cjs');
6
6
 
7
7
 
8
- var _chunkYB44NKC2cjs = require('./chunk-YB44NKC2.cjs');
8
+ var _chunkY7TLL65Bcjs = require('./chunk-Y7TLL65B.cjs');
9
9
 
10
10
 
11
- var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
12
11
 
13
12
 
14
13
 
@@ -31,27 +30,28 @@ var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
31
30
 
32
31
 
33
32
 
33
+ var _chunk76GHW3WIcjs = require('./chunk-76GHW3WI.cjs');
34
34
 
35
35
 
36
- var _chunkVCKGOXFIcjs = require('./chunk-VCKGOXFI.cjs');
36
+ var _chunkJ22JD5YJcjs = require('./chunk-J22JD5YJ.cjs');
37
37
 
38
38
 
39
- var _chunkGOOK2J2Wcjs = require('./chunk-GOOK2J2W.cjs');
40
39
 
41
40
 
42
41
 
43
42
 
44
43
 
44
+ var _chunkSBABQKPTcjs = require('./chunk-SBABQKPT.cjs');
45
45
 
46
46
 
47
- var _chunkSBABQKPTcjs = require('./chunk-SBABQKPT.cjs');
47
+ var _chunkYB44NKC2cjs = require('./chunk-YB44NKC2.cjs');
48
48
 
49
49
 
50
50
 
51
51
  var _chunkXGJVRPYLcjs = require('./chunk-XGJVRPYL.cjs');
52
52
 
53
53
 
54
- var _chunkNJVFPJ2Ycjs = require('./chunk-NJVFPJ2Y.cjs');
54
+ var _chunk3OWVWZ6Rcjs = require('./chunk-3OWVWZ6R.cjs');
55
55
 
56
56
 
57
57
 
@@ -134,13 +134,13 @@ var _chunk5Y2P454Ocjs = require('./chunk-5Y2P454O.cjs');
134
134
  var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
135
135
 
136
136
 
137
- var _chunkIQXGHGZFcjs = require('./chunk-IQXGHGZF.cjs');
137
+ var _chunkXB24LZWIcjs = require('./chunk-XB24LZWI.cjs');
138
138
 
139
139
 
140
- var _chunkC7425KDGcjs = require('./chunk-C7425KDG.cjs');
140
+ var _chunkXYL4HSVCcjs = require('./chunk-XYL4HSVC.cjs');
141
141
 
142
142
 
143
- var _chunk6QA2SXVHcjs = require('./chunk-6QA2SXVH.cjs');
143
+ var _chunkFK25QSVCcjs = require('./chunk-FK25QSVC.cjs');
144
144
 
145
145
 
146
146
  var _chunkWT6RAN2Icjs = require('./chunk-WT6RAN2I.cjs');
@@ -168,7 +168,7 @@ var _chunkWAPQWAE6cjs = require('./chunk-WAPQWAE6.cjs');
168
168
 
169
169
 
170
170
 
171
- var _chunkJ2ZEVDEKcjs = require('./chunk-J2ZEVDEK.cjs');
171
+ var _chunkEHB77D5Ucjs = require('./chunk-EHB77D5U.cjs');
172
172
 
173
173
 
174
174
 
@@ -178,7 +178,7 @@ var _chunkYDXLC4DWcjs = require('./chunk-YDXLC4DW.cjs');
178
178
 
179
179
 
180
180
 
181
- var _chunkJZMZKABScjs = require('./chunk-JZMZKABS.cjs');
181
+ var _chunkNWUHS6GVcjs = require('./chunk-NWUHS6GV.cjs');
182
182
 
183
183
 
184
184
 
@@ -230,10 +230,11 @@ var _chunkLNVGXUL3cjs = require('./chunk-LNVGXUL3.cjs');
230
230
 
231
231
 
232
232
 
233
- var _chunkXN2MB4QZcjs = require('./chunk-XN2MB4QZ.cjs');
233
+ var _chunkVQJYGZNXcjs = require('./chunk-VQJYGZNX.cjs');
234
+
234
235
 
235
236
 
236
- var _chunkJHXJBNLYcjs = require('./chunk-JHXJBNLY.cjs');
237
+ var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
237
238
 
238
239
 
239
240
 
@@ -253,7 +254,7 @@ var _chunkJYT7AN37cjs = require('./chunk-JYT7AN37.cjs');
253
254
  var _chunkB5BBTPJQcjs = require('./chunk-B5BBTPJQ.cjs');
254
255
 
255
256
 
256
- var _chunkRHOR2J6Vcjs = require('./chunk-RHOR2J6V.cjs');
257
+ var _chunkX5BCMLGPcjs = require('./chunk-X5BCMLGP.cjs');
257
258
 
258
259
 
259
260
 
@@ -1485,7 +1486,7 @@ function warnUnresolvedAliasImport(importerPath, specifier, root) {
1485
1486
  if (!ALIAS_IMPORT.test(specifier) || warnedUnresolvedAliasImports.has(specifier)) return;
1486
1487
  warnedUnresolvedAliasImports.add(specifier);
1487
1488
  const importer = root ? path4.default.relative(root, importerPath) : importerPath;
1488
- _chunkXN2MB4QZcjs.logger.warn(
1489
+ _chunkVQJYGZNXcjs.logger.warn(
1489
1490
  `Could not resolve "${specifier}" (imported by ${importer}) while checking which pages need client JavaScript. If it holds client components, they will not hydrate. Map the alias in tsconfig.json "paths" or package.json "imports".`
1490
1491
  );
1491
1492
  }
@@ -1924,18 +1925,18 @@ var RouteManager = class {
1924
1925
  )
1925
1926
  );
1926
1927
  this.orderedLayouts = Array.from(this.layouts.values()).sort(
1927
- (left, right) => _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
1928
- ).map((entry) => ({ entry, groupScope: _chunkVCKGOXFIcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
1928
+ (left, right) => _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, left.pattern) - _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, right.pattern)
1929
+ ).map((entry) => ({ entry, groupScope: _chunk76GHW3WIcjs.getRouteGroupScope.call(void 0, entry.pattern) }));
1929
1930
  for (const slot of this.routeSlots.values()) {
1930
1931
  if (!this.routeSlotOwnerSegments.has(slot.ownerPattern)) {
1931
1932
  this.routeSlotOwnerSegments.set(
1932
1933
  slot.ownerPattern,
1933
- _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, `${slot.ownerPattern}/page.tsx`).segments
1934
+ _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, `${slot.ownerPattern}/page.tsx`).segments
1934
1935
  );
1935
1936
  }
1936
1937
  }
1937
1938
  if (process.env.FARM_VERBOSE) {
1938
- _chunkXN2MB4QZcjs.logger.info(
1939
+ _chunkVQJYGZNXcjs.logger.info(
1939
1940
  `Discovered ${this.routes.size} pages, ${this.layouts.size} layouts, and ${this.metadataRoutes.size} metadata routes`
1940
1941
  );
1941
1942
  }
@@ -1949,11 +1950,11 @@ var RouteManager = class {
1949
1950
  matchRoute(pathname, options = {}) {
1950
1951
  const routePathname = this.toRoutePathname(pathname);
1951
1952
  const normalizedPath = routePathname === "/" ? "/" : routePathname.replace(/\/$/, "");
1952
- const pathParts = _chunkXN2MB4QZcjs.splitRoutePath.call(void 0, normalizedPath);
1953
+ const pathParts = _chunkVQJYGZNXcjs.splitRoutePath.call(void 0, normalizedPath);
1953
1954
  let matchedRoute = null;
1954
1955
  let params = {};
1955
1956
  for (const routeEntry of this.routes.values()) {
1956
- const match = _chunkXN2MB4QZcjs.matchRouteParts.call(void 0, pathParts, routeEntry.route.segments);
1957
+ const match = _chunkVQJYGZNXcjs.matchRouteParts.call(void 0, pathParts, routeEntry.route.segments);
1957
1958
  if (match.matches) {
1958
1959
  matchedRoute = routeEntry;
1959
1960
  params = match.params;
@@ -1991,7 +1992,7 @@ var RouteManager = class {
1991
1992
  throw new Error(`Cannot resolve runtime configuration for unknown route "${pattern}"`);
1992
1993
  }
1993
1994
  const inherited = _chunkOYZXVBZPcjs.resolveFarmRouteRuleRuntimeConfig.call(void 0, pattern, this.config.routeRules);
1994
- const layouts = this.findMatchingLayouts(_chunkXN2MB4QZcjs.splitRoutePath.call(void 0, pattern), routeEntry);
1995
+ const layouts = this.findMatchingLayouts(_chunkVQJYGZNXcjs.splitRoutePath.call(void 0, pattern), routeEntry);
1995
1996
  const layoutConfigs = [];
1996
1997
  for (const layout of layouts) {
1997
1998
  const layoutModule = await this.loadLayoutModule(layout.modulePath);
@@ -2039,7 +2040,7 @@ var RouteManager = class {
2039
2040
  const routePathname = _optionalChain([localeMatch, 'optionalAccess', _104 => _104.pathname]) || pathname;
2040
2041
  const normalizedPath = routePathname === "/" ? "/" : routePathname.replace(/\/$/, "");
2041
2042
  for (const redirectEntry of this.redirects.values()) {
2042
- const match = _chunkXN2MB4QZcjs.matchRoute.call(void 0, normalizedPath, redirectEntry.route.segments);
2043
+ const match = _chunkVQJYGZNXcjs.matchRoute.call(void 0, normalizedPath, redirectEntry.route.segments);
2043
2044
  if (!match.matches) continue;
2044
2045
  const statusCode = redirectEntry.definition.statusCode || (redirectEntry.definition.permanent ? 308 : 307);
2045
2046
  return {
@@ -2080,7 +2081,7 @@ var RouteManager = class {
2080
2081
  const pagePath = normalizedPath.slice(0, -suffix.fileName.length - 1) || "/";
2081
2082
  for (const imageEntry of this.metadataImages.values()) {
2082
2083
  if (imageEntry.kind !== suffix.kind) continue;
2083
- const match = _chunkXN2MB4QZcjs.matchRoute.call(void 0, pagePath, imageEntry.route.segments);
2084
+ const match = _chunkVQJYGZNXcjs.matchRoute.call(void 0, pagePath, imageEntry.route.segments);
2084
2085
  if (!match.matches) continue;
2085
2086
  return {
2086
2087
  image: imageEntry,
@@ -2098,7 +2099,7 @@ var RouteManager = class {
2098
2099
  const routePath = normalizedPath.slice(0, -suffix.outputName.length - 1) || "/";
2099
2100
  for (const metadata of this.metadataRoutes.values()) {
2100
2101
  if (metadata.kind !== suffix.kind) continue;
2101
- const match = _chunkXN2MB4QZcjs.matchRoute.call(void 0, routePath, metadata.route.segments);
2102
+ const match = _chunkVQJYGZNXcjs.matchRoute.call(void 0, routePath, metadata.route.segments);
2102
2103
  if (!match.matches) continue;
2103
2104
  return { metadata, params: match.params, routePath };
2104
2105
  }
@@ -2112,7 +2113,7 @@ var RouteManager = class {
2112
2113
  for (const metadata of this.metadataRoutes.values()) {
2113
2114
  if (metadata.kind !== kind || metadata.route.segments.length > pathSegments.length) continue;
2114
2115
  const routePath = metadata.route.segments.length === 0 ? "/" : `/${pathSegments.slice(0, metadata.route.segments.length).join("/")}`;
2115
- const match = _chunkXN2MB4QZcjs.matchRoute.call(void 0, routePath, metadata.route.segments);
2116
+ const match = _chunkVQJYGZNXcjs.matchRoute.call(void 0, routePath, metadata.route.segments);
2116
2117
  if (!match.matches) continue;
2117
2118
  if (!bestMatch || metadata.route.segments.length > bestMatch.metadata.route.segments.length) {
2118
2119
  bestMatch = { metadata, params: match.params, routePath };
@@ -2133,7 +2134,7 @@ var RouteManager = class {
2133
2134
  if (imageEntry.kind !== kind) continue;
2134
2135
  if (imageEntry.route.segments.length > pathSegments.length) continue;
2135
2136
  const candidatePath = imageEntry.route.segments.length === 0 ? "/" : `/${pathSegments.slice(0, imageEntry.route.segments.length).join("/")}`;
2136
- const match = _chunkXN2MB4QZcjs.matchRoute.call(void 0, candidatePath, imageEntry.route.segments);
2137
+ const match = _chunkVQJYGZNXcjs.matchRoute.call(void 0, candidatePath, imageEntry.route.segments);
2137
2138
  if (!match.matches) continue;
2138
2139
  if (!bestMatch || imageEntry.route.segments.length > bestMatch.image.route.segments.length) {
2139
2140
  bestMatch = {
@@ -2159,7 +2160,7 @@ var RouteManager = class {
2159
2160
  return this.clientManifestCache.manifest;
2160
2161
  }
2161
2162
  const toUrlPath = (absolutePath) => {
2162
- const rootRelative = _chunkXN2MB4QZcjs.toRootRelativeUrlPath.call(void 0, absolutePath, normalizedProjectRoot);
2163
+ const rootRelative = _chunkVQJYGZNXcjs.toRootRelativeUrlPath.call(void 0, absolutePath, normalizedProjectRoot);
2163
2164
  if (rootRelative !== void 0) return rootRelative;
2164
2165
  if (path4.default.isAbsolute(absolutePath)) {
2165
2166
  const normalized = absolutePath.replace(/\\/g, "/");
@@ -2174,7 +2175,7 @@ var RouteManager = class {
2174
2175
  (provider) => provider.supportsIsolatedHydration !== true
2175
2176
  );
2176
2177
  if (_optionalChain([this, 'access', _108 => _108.config, 'access', _109 => _109.experimental, 'optionalAccess', _110 => _110.isolatedClientHydration]) === "enabled" && _chunkBPNOYILCcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([this, 'access', _111 => _111.config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.serverComponents])) !== "rsc" && unsupportedIntegrationProvider) {
2177
- _chunkXN2MB4QZcjs.logger.warn(
2178
+ _chunkVQJYGZNXcjs.logger.warn(
2178
2179
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
2179
2180
  );
2180
2181
  }
@@ -2216,7 +2217,7 @@ var RouteManager = class {
2216
2217
  ({ entry, metadata }) => _chunkJATTVAHAcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) && metadata.fallbackReason
2217
2218
  );
2218
2219
  if (markdownFallback) {
2219
- _chunkXN2MB4QZcjs.logger.warn(
2220
+ _chunkVQJYGZNXcjs.logger.warn(
2220
2221
  `[Farm.js] client components in Markdown pages stay static: ${markdownFallback.metadata.fallbackReason}.`
2221
2222
  );
2222
2223
  }
@@ -2224,39 +2225,39 @@ var RouteManager = class {
2224
2225
  ({ entry, metadata }) => _chunkJATTVAHAcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) && metadata.staticPackageBoundaries
2225
2226
  ), 'optionalAccess', _128 => _128.metadata, 'access', _129 => _129.staticPackageBoundaries]);
2226
2227
  if (markdownStaticPackages) {
2227
- _chunkXN2MB4QZcjs.logger.info(
2228
+ _chunkVQJYGZNXcjs.logger.info(
2228
2229
  `[Farm.js] Markdown pages render client components from ${markdownStaticPackages.join(", ")} as static HTML: package client components cannot be isolated yet.`
2229
2230
  );
2230
2231
  }
2231
2232
  for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
2232
2233
  if (_chunkJATTVAHAcjs.isFarmMarkdownPageFile.call(void 0, entry.modulePath) || !metadata.staticPackageBoundaries) continue;
2233
- _chunkXN2MB4QZcjs.logger.info(
2234
+ _chunkVQJYGZNXcjs.logger.info(
2234
2235
  `[Farm.js] ${entry.pattern} is async, so it renders client components from ${metadata.staticPackageBoundaries.join(", ")} as static HTML: package client components cannot be isolated yet.`
2235
2236
  );
2236
2237
  }
2237
2238
  enforceFarmIsolatedHydrationRouteBudget(
2238
2239
  layoutEntries.map(({ entry, metadata }) => ({
2239
2240
  pattern: entry.pattern,
2240
- depth: _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
2241
+ depth: _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, entry.pattern),
2241
2242
  metadata
2242
2243
  })),
2243
2244
  routeEntries.map(({ entry, metadata }) => ({
2244
2245
  pattern: getRouteEntryDirectory(entry),
2245
- depth: _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
2246
+ depth: _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, getRouteEntryDirectory(entry)),
2246
2247
  metadata
2247
2248
  })),
2248
- _chunkVCKGOXFIcjs.routeBoundaryCoversDirectory
2249
+ _chunk76GHW3WIcjs.routeBoundaryCoversDirectory
2249
2250
  );
2250
2251
  for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
2251
2252
  if (!metadata.costGuardExceeded) continue;
2252
- _chunkXN2MB4QZcjs.logger.warn(
2253
+ _chunkVQJYGZNXcjs.logger.warn(
2253
2254
  `[Farm.js] isolated hydration kept route-wide for ${entry.modulePath}: ${metadata.fallbackReason}.`
2254
2255
  );
2255
2256
  }
2256
2257
  if (isolatedMode === "analyze") {
2257
2258
  for (const { entry, metadata } of [...layoutEntries, ...routeEntries]) {
2258
2259
  if (!metadata.isolatedHydrationEligible) continue;
2259
- _chunkXN2MB4QZcjs.logger.info(
2260
+ _chunkVQJYGZNXcjs.logger.info(
2260
2261
  `[Farm.js] isolated hydration analysis: ${entry.modulePath} can keep ${metadata.isolatedBoundaries.length} client ${metadata.isolatedBoundaries.length === 1 ? "boundary" : "boundaries"} while excluding its server owner from the browser graph.`
2261
2262
  );
2262
2263
  }
@@ -2264,7 +2265,7 @@ var RouteManager = class {
2264
2265
  const routes = routeEntries.map(({ entry, metadata }) => {
2265
2266
  const programmaticPage = this.programmaticPages.get(entry.modulePath);
2266
2267
  const layoutShouldHydrate = layoutEntries.some(
2267
- ({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunkVCKGOXFIcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
2268
+ ({ entry: layout, metadata: layoutMetadata }) => layoutMetadata.shouldHydrate && _chunk76GHW3WIcjs.routeBoundaryCoversDirectory.call(void 0, layout.pattern, getRouteEntryDirectory(entry))
2268
2269
  );
2269
2270
  return {
2270
2271
  pattern: entry.pattern,
@@ -2281,7 +2282,7 @@ var RouteManager = class {
2281
2282
  }))
2282
2283
  } : {},
2283
2284
  ...usesFarmServerTree(metadata) ? { serverTree: true } : {},
2284
- renderPlan: _chunkVCKGOXFIcjs.createFarmRouteRenderPlan.call(void 0, {
2285
+ renderPlan: _chunk76GHW3WIcjs.createFarmRouteRenderPlan.call(void 0, {
2285
2286
  pageShouldHydrate: metadata.shouldHydrate,
2286
2287
  layoutShouldHydrate,
2287
2288
  islandStrategy: metadata.islandStrategy
@@ -2297,7 +2298,7 @@ var RouteManager = class {
2297
2298
  }))
2298
2299
  };
2299
2300
  });
2300
- const treeLayoutPatterns = islandsMode ? _chunkVCKGOXFIcjs.getFarmServerTreeLayoutPatterns.call(void 0,
2301
+ const treeLayoutPatterns = islandsMode ? _chunk76GHW3WIcjs.getFarmServerTreeLayoutPatterns.call(void 0,
2301
2302
  layoutEntries.map(({ entry, metadata }) => ({
2302
2303
  pattern: entry.pattern,
2303
2304
  shouldHydrate: metadata.shouldHydrate,
@@ -2354,7 +2355,7 @@ var RouteManager = class {
2354
2355
  for (const error of islandsErrors) {
2355
2356
  if (this.reportedIslandsErrors.has(error)) continue;
2356
2357
  this.reportedIslandsErrors.add(error);
2357
- _chunkXN2MB4QZcjs.logger.error(`[Farm.js] islands mode cannot hydrate ${error}`);
2358
+ _chunkVQJYGZNXcjs.logger.error(`[Farm.js] islands mode cannot hydrate ${error}`);
2358
2359
  }
2359
2360
  const manifest = { routes, layouts, slots };
2360
2361
  this.clientManifestCache = {
@@ -2442,7 +2443,7 @@ var RouteManager = class {
2442
2443
  return module;
2443
2444
  }
2444
2445
  } catch (error) {
2445
- _chunkXN2MB4QZcjs.logger.error(`Failed to load route module: ${modulePath}`);
2446
+ _chunkVQJYGZNXcjs.logger.error(`Failed to load route module: ${modulePath}`);
2446
2447
  throw error;
2447
2448
  }
2448
2449
  }
@@ -2467,7 +2468,7 @@ var RouteManager = class {
2467
2468
  return module;
2468
2469
  }
2469
2470
  } catch (error) {
2470
- _chunkXN2MB4QZcjs.logger.error(`Failed to load layout module: ${modulePath}`);
2471
+ _chunkVQJYGZNXcjs.logger.error(`Failed to load layout module: ${modulePath}`);
2471
2472
  throw error;
2472
2473
  }
2473
2474
  }
@@ -2476,7 +2477,7 @@ var RouteManager = class {
2476
2477
  */
2477
2478
  createRoutePattern(route) {
2478
2479
  if (route.segments.length === 0) return "/";
2479
- return "/" + route.segments.map(_chunkVCKGOXFIcjs.formatRouteSegment).join("/");
2480
+ return "/" + route.segments.map(_chunk76GHW3WIcjs.formatRouteSegment).join("/");
2480
2481
  }
2481
2482
  registerPageRoute(entry) {
2482
2483
  _chunkYTVSWXEZcjs.assertUniqueRouteParameters.call(void 0, entry.pattern);
@@ -2494,7 +2495,7 @@ var RouteManager = class {
2494
2495
  this.pageRouteShapes.set(shape, entry);
2495
2496
  }
2496
2497
  async discoverFileRoutes(source) {
2497
- const appDir = _chunkXN2MB4QZcjs.resolveAppPath.call(void 0, source.root, source.srcDir, "app");
2498
+ const appDir = _chunkVQJYGZNXcjs.resolveAppPath.call(void 0, source.root, source.srcDir, "app");
2498
2499
  const componentExtensions = _chunkRD623KW4cjs.getFarmRendererComponentExtensions.call(void 0, this.config.renderer).map(
2499
2500
  (extension) => extension.slice(1)
2500
2501
  );
@@ -2513,8 +2514,8 @@ var RouteManager = class {
2513
2514
  appDir
2514
2515
  );
2515
2516
  const canonicalPageGroups = /* @__PURE__ */ new Map();
2516
- for (const file of pageFiles.filter((candidate) => _chunkJ2ZEVDEKcjs.parseRouteSlotFile.call(void 0, candidate) === null)) {
2517
- const route = _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, file);
2517
+ for (const file of pageFiles.filter((candidate) => _chunkEHB77D5Ucjs.parseRouteSlotFile.call(void 0, candidate) === null)) {
2518
+ const route = _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, file);
2518
2519
  const pattern = this.createRoutePattern(route);
2519
2520
  const group = canonicalPageGroups.get(pattern);
2520
2521
  if (group) {
@@ -2568,9 +2569,9 @@ var RouteManager = class {
2568
2569
  ["error", errorFiles, this.errors]
2569
2570
  ]) {
2570
2571
  for (const file of files) {
2571
- const route = _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, file);
2572
+ const route = _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, file);
2572
2573
  const modulePath = path4.default.join(appDir, file);
2573
- const pattern = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
2574
+ const pattern = _chunk76GHW3WIcjs.createRouteDirectoryPattern.call(void 0, route);
2574
2575
  const existing = target.get(pattern);
2575
2576
  if (_optionalChain([existing, 'optionalAccess', _136 => _136.sourceRoot]) === source.root) {
2576
2577
  throw new Error(
@@ -2587,12 +2588,12 @@ var RouteManager = class {
2587
2588
  }
2588
2589
  }
2589
2590
  for (const file of [...pageFiles, ...slotDefaultFiles]) {
2590
- const slot = _chunkJ2ZEVDEKcjs.parseRouteSlotFile.call(void 0, file);
2591
+ const slot = _chunkEHB77D5Ucjs.parseRouteSlotFile.call(void 0, file);
2591
2592
  if (!slot) continue;
2592
2593
  const modulePath = path4.default.join(appDir, file);
2593
2594
  const pattern = this.createRoutePattern(slot.route);
2594
2595
  const ownerPattern = this.createRoutePattern(slot.ownerRoute);
2595
- const ownerDirectory = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
2596
+ const ownerDirectory = _chunk76GHW3WIcjs.createRouteDirectoryPattern.call(void 0, slot.ownerRoute);
2596
2597
  const key = `${ownerPattern}:${slot.name}:${slot.interception ? "intercept" : "slot"}:${slot.fallback ? "default" : pattern}`;
2597
2598
  const existing = this.routeSlots.get(key);
2598
2599
  if (_optionalChain([existing, 'optionalAccess', _137 => _137.sourceRoot]) === source.root) {
@@ -2611,14 +2612,14 @@ var RouteManager = class {
2611
2612
  ...ownerDirectory === ownerPattern ? {} : { ownerDirectory },
2612
2613
  interception: slot.interception,
2613
2614
  fallback: slot.fallback,
2614
- containerId: _chunkJ2ZEVDEKcjs.createRouteSlotContainerId.call(void 0, slot.name, ownerPattern)
2615
+ containerId: _chunkEHB77D5Ucjs.createRouteSlotContainerId.call(void 0, slot.name, ownerPattern)
2615
2616
  });
2616
2617
  }
2617
2618
  for (const file of metadataImageFiles) {
2618
2619
  const fileBase = path4.default.basename(file, path4.default.extname(file));
2619
2620
  const kind = fileBase === "twitter-image" ? "twitter" : "opengraph";
2620
2621
  const fileName = kind === "twitter" ? "twitter-image" : "opengraph-image";
2621
- const route = _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, file);
2622
+ const route = _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, file);
2622
2623
  const modulePath = path4.default.join(appDir, file);
2623
2624
  const pattern = this.createRoutePattern(route);
2624
2625
  const key = `${kind}:${pattern}`;
@@ -2647,7 +2648,7 @@ var RouteManager = class {
2647
2648
  path4.default.basename(file, path4.default.extname(file))
2648
2649
  );
2649
2650
  if (!descriptor) continue;
2650
- const route = _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, file);
2651
+ const route = _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, file);
2651
2652
  const modulePath = path4.default.join(appDir, file);
2652
2653
  const pattern = this.createRoutePattern(route);
2653
2654
  const key = `${descriptor.kind}:${pattern}`;
@@ -2669,7 +2670,7 @@ var RouteManager = class {
2669
2670
  }
2670
2671
  async discoverProgrammaticRoutes(source, clientRoutes) {
2671
2672
  if (this.viteServer) _chunkE7QOEV5Zcjs.trackProgrammaticRouteSources.call(void 0, );
2672
- const manifests = await _chunkJZMZKABScjs.loadProgrammaticRouteManifests.call(void 0, {
2673
+ const manifests = await _chunkNWUHS6GVcjs.loadProgrammaticRouteManifests.call(void 0, {
2673
2674
  root: source.root,
2674
2675
  srcDir: source.srcDir,
2675
2676
  loadModule: (filePath) => this.loadProgrammaticRoutesModule(filePath)
@@ -2709,7 +2710,7 @@ var RouteManager = class {
2709
2710
  }
2710
2711
  if (definition.kind === "layout") {
2711
2712
  const route = _chunkE7QOEV5Zcjs.parseProgrammaticRoutePath.call(void 0, definition.path, "layout");
2712
- const pattern = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
2713
+ const pattern = _chunk76GHW3WIcjs.createRouteDirectoryPattern.call(void 0, route);
2713
2714
  const existing = this.layouts.get(pattern);
2714
2715
  if (_optionalChain([existing, 'optionalAccess', _141 => _141.sourceRoot]) === source.root) {
2715
2716
  throw new Error(
@@ -2741,7 +2742,7 @@ var RouteManager = class {
2741
2742
  async loadProgrammaticRoutesModule(filePath) {
2742
2743
  if (this.viteServer) {
2743
2744
  const viteRoot = _optionalChain([this, 'access', _142 => _142.viteServer, 'access', _143 => _143.config, 'optionalAccess', _144 => _144.root]) || this.config.root || process.cwd();
2744
- return await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, filePath, viteRoot));
2745
+ return await _chunkJYNNIGQOcjs.loadFarmDevModule.call(void 0, this.viteServer, _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, filePath, viteRoot));
2745
2746
  }
2746
2747
  return await import(
2747
2748
  /* @vite-ignore */
@@ -2755,8 +2756,8 @@ var RouteManager = class {
2755
2756
  findMatchingLayouts(pathnameParts, route) {
2756
2757
  const matchingLayouts = [];
2757
2758
  for (const { entry, groupScope } of this.orderedLayouts) {
2758
- if (!_chunkXN2MB4QZcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
2759
- if (groupScope !== null && !_chunkVCKGOXFIcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
2759
+ if (!_chunkVQJYGZNXcjs.matchRoutePrefixParts.call(void 0, pathnameParts, entry.route.segments)) continue;
2760
+ if (groupScope !== null && !_chunk76GHW3WIcjs.isInRouteGroupScope.call(void 0, route && getRouteEntryDirectory(route), groupScope)) {
2760
2761
  continue;
2761
2762
  }
2762
2763
  matchingLayouts.push(entry);
@@ -2765,7 +2766,7 @@ var RouteManager = class {
2765
2766
  }
2766
2767
  matchPageRoute(pathnameParts) {
2767
2768
  for (const routeEntry of this.routes.values()) {
2768
- if (_chunkXN2MB4QZcjs.matchRouteParts.call(void 0, pathnameParts, routeEntry.route.segments).matches) return routeEntry;
2769
+ if (_chunkVQJYGZNXcjs.matchRouteParts.call(void 0, pathnameParts, routeEntry.route.segments).matches) return routeEntry;
2769
2770
  }
2770
2771
  return null;
2771
2772
  }
@@ -2779,14 +2780,14 @@ var RouteManager = class {
2779
2780
  groups.set(key, entries);
2780
2781
  }
2781
2782
  const normalizedFrom = interceptFrom ? this.toRoutePathname(new URL(interceptFrom, "http://farm.local").pathname) : void 0;
2782
- const normalizedFromParts = normalizedFrom ? _chunkXN2MB4QZcjs.splitRoutePath.call(void 0, normalizedFrom) : void 0;
2783
+ const normalizedFromParts = normalizedFrom ? _chunkVQJYGZNXcjs.splitRoutePath.call(void 0, normalizedFrom) : void 0;
2783
2784
  const matches = [];
2784
2785
  for (const entries of groups.values()) {
2785
2786
  const candidates = entries.filter((entry) => !entry.fallback).filter(
2786
2787
  (entry) => !entry.interception || normalizedFrom !== void 0 && this.matchesRoutePrefix(normalizedFrom, entry.ownerPattern, normalizedFromParts)
2787
2788
  ).map((entry) => ({
2788
2789
  entry,
2789
- match: _chunkXN2MB4QZcjs.matchRouteParts.call(void 0, pathnameParts, entry.route.segments)
2790
+ match: _chunkVQJYGZNXcjs.matchRouteParts.call(void 0, pathnameParts, entry.route.segments)
2790
2791
  })).filter((candidate) => candidate.match.matches).sort((left, right) => {
2791
2792
  if (left.entry.interception !== right.entry.interception) {
2792
2793
  return left.entry.interception ? -1 : 1;
@@ -2826,25 +2827,25 @@ var RouteManager = class {
2826
2827
  return ownerDifference || left.name.localeCompare(right.name);
2827
2828
  });
2828
2829
  }
2829
- matchesRoutePrefix(pathname, pattern, pathnameParts = _chunkXN2MB4QZcjs.splitRoutePath.call(void 0, pathname)) {
2830
+ matchesRoutePrefix(pathname, pattern, pathnameParts = _chunkVQJYGZNXcjs.splitRoutePath.call(void 0, pathname)) {
2830
2831
  if (pattern === "/") return true;
2831
- const patternSegments = _nullishCoalesce(this.routeSlotOwnerSegments.get(pattern), () => ( _chunkXN2MB4QZcjs.parseRoutePath.call(void 0, `${pattern}/page.tsx`).segments));
2832
- return _chunkXN2MB4QZcjs.matchRoutePrefixParts.call(void 0, pathnameParts, patternSegments);
2832
+ const patternSegments = _nullishCoalesce(this.routeSlotOwnerSegments.get(pattern), () => ( _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, `${pattern}/page.tsx`).segments));
2833
+ return _chunkVQJYGZNXcjs.matchRoutePrefixParts.call(void 0, pathnameParts, patternSegments);
2833
2834
  }
2834
2835
  findNearestBoundary(pathname, boundaries, route) {
2835
2836
  const normalizedPath = pathname === "/" ? "/" : pathname.replace(/\/$/, "");
2836
2837
  let bestMatch = null;
2837
2838
  let page = route;
2838
2839
  for (const boundaryEntry of boundaries.values()) {
2839
- if (!_chunkXN2MB4QZcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
2840
- const groupScope = _chunkVCKGOXFIcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
2840
+ if (!_chunkVQJYGZNXcjs.matchRoutePrefix.call(void 0, normalizedPath, boundaryEntry.route.segments)) continue;
2841
+ const groupScope = _chunk76GHW3WIcjs.getRouteGroupScope.call(void 0, boundaryEntry.pattern);
2841
2842
  if (groupScope !== null) {
2842
- if (page === void 0) page = this.matchPageRoute(_chunkXN2MB4QZcjs.splitRoutePath.call(void 0, normalizedPath));
2843
- if (!_chunkVCKGOXFIcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
2843
+ if (page === void 0) page = this.matchPageRoute(_chunkVQJYGZNXcjs.splitRoutePath.call(void 0, normalizedPath));
2844
+ if (!_chunk76GHW3WIcjs.isInRouteGroupScope.call(void 0, page && getRouteEntryDirectory(page), groupScope)) continue;
2844
2845
  }
2845
2846
  const depth = boundaryEntry.route.segments.length;
2846
2847
  const bestDepth = _nullishCoalesce(_optionalChain([bestMatch, 'optionalAccess', _145 => _145.route, 'access', _146 => _146.segments, 'access', _147 => _147.length]), () => ( -1));
2847
- if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunkVCKGOXFIcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
2848
+ if (!bestMatch || depth > bestDepth || depth === bestDepth && _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, boundaryEntry.pattern) > _chunk76GHW3WIcjs.getRouteDirectoryDepth.call(void 0, bestMatch.pattern)) {
2848
2849
  bestMatch = boundaryEntry;
2849
2850
  }
2850
2851
  }
@@ -2855,13 +2856,13 @@ var RouteManager = class {
2855
2856
  */
2856
2857
  logRoutes() {
2857
2858
  if (this.routes.size > 0) {
2858
- _chunkXN2MB4QZcjs.logger.info("Registered routes:");
2859
+ _chunkVQJYGZNXcjs.logger.info("Registered routes:");
2859
2860
  for (const [pattern, entry] of this.routes) {
2860
2861
  console.log(` ${pattern} -> ${entry.modulePath}`);
2861
2862
  }
2862
2863
  }
2863
2864
  if (this.layouts.size > 0) {
2864
- _chunkXN2MB4QZcjs.logger.info("Registered layouts:");
2865
+ _chunkVQJYGZNXcjs.logger.info("Registered layouts:");
2865
2866
  for (const [pattern, entry] of this.layouts) {
2866
2867
  console.log(` ${pattern} -> ${entry.modulePath}`);
2867
2868
  }
@@ -2881,7 +2882,7 @@ var RouteManager = class {
2881
2882
  pattern: entry.pattern
2882
2883
  }));
2883
2884
  const i18n = this.getI18nConfig();
2884
- const result = await _chunkIUBDMDZZcjs.collectSSGPages.call(void 0, routes, (filePath) => this.loadRouteModule(filePath), {
2885
+ const result = await _chunkY7TLL65Bcjs.collectSSGPages.call(void 0, routes, (filePath) => this.loadRouteModule(filePath), {
2885
2886
  suggestStaticRendering: shouldSuggestStaticRenderingForI18n(i18n)
2886
2887
  });
2887
2888
  if (!i18n) {
@@ -2926,7 +2927,7 @@ var RouteManager = class {
2926
2927
  async isRouteSSG(modulePath) {
2927
2928
  try {
2928
2929
  const mod = await this.loadRouteModule(modulePath);
2929
- const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2930
+ const rendering = await _chunkY7TLL65Bcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2930
2931
  return rendering.ssg;
2931
2932
  } catch (e8) {
2932
2933
  return false;
@@ -2938,7 +2939,7 @@ var RouteManager = class {
2938
2939
  async hasRouteISR(modulePath) {
2939
2940
  try {
2940
2941
  const mod = await this.loadRouteModule(modulePath);
2941
- const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2942
+ const rendering = await _chunkY7TLL65Bcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2942
2943
  return rendering.ssg && typeof rendering.revalidate === "number" && rendering.revalidate > 0;
2943
2944
  } catch (e9) {
2944
2945
  return false;
@@ -2950,7 +2951,7 @@ var RouteManager = class {
2950
2951
  async getRouteRevalidateInterval(modulePath) {
2951
2952
  try {
2952
2953
  const mod = await this.loadRouteModule(modulePath);
2953
- const rendering = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2954
+ const rendering = await _chunkY7TLL65Bcjs.resolveRouteRenderingConfigFromFile.call(void 0, mod, modulePath);
2954
2955
  return rendering.revalidate;
2955
2956
  } catch (e10) {
2956
2957
  return void 0;
@@ -2958,7 +2959,7 @@ var RouteManager = class {
2958
2959
  }
2959
2960
  };
2960
2961
  function getPageDirectoryField(route, pattern) {
2961
- const directory = _chunkVCKGOXFIcjs.createRouteDirectoryPattern.call(void 0, route);
2962
+ const directory = _chunk76GHW3WIcjs.createRouteDirectoryPattern.call(void 0, route);
2962
2963
  return directory === pattern ? {} : { directory };
2963
2964
  }
2964
2965
  function interpolateRedirectDestination(destination, params) {
@@ -3031,7 +3032,7 @@ function replaceAll(input, search, replacement) {
3031
3032
  }
3032
3033
  async function safeGlobFiles(pattern, cwd) {
3033
3034
  try {
3034
- return await _chunkXN2MB4QZcjs.globFiles.call(void 0, pattern, cwd);
3035
+ return await _chunkVQJYGZNXcjs.globFiles.call(void 0, pattern, cwd);
3035
3036
  } catch (e11) {
3036
3037
  return [];
3037
3038
  }
@@ -4165,7 +4166,7 @@ function generateFarmIntegrationProviderServerModules(providers, root, rendererC
4165
4166
  }
4166
4167
  function resolveProviderModule(moduleId, root) {
4167
4168
  if (!moduleId.startsWith(".")) return moduleId;
4168
- return _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, path4.default.resolve(root, moduleId), root);
4169
+ return _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, path4.default.resolve(root, moduleId), root);
4169
4170
  }
4170
4171
 
4171
4172
  // src/server/renderer.ts
@@ -4468,7 +4469,12 @@ function withFarmIslandsRenders(runtime, islandsRuntime) {
4468
4469
  return wrapped;
4469
4470
  }
4470
4471
  var cachedClerkProvider = null;
4471
- var importRuntimeModule = new Function("specifier", "return import(specifier);");
4472
+ function importRuntimeModule(specifier) {
4473
+ return import(
4474
+ /* @vite-ignore */
4475
+ specifier
4476
+ );
4477
+ }
4472
4478
  function shouldServePrerenderedPage(nodeEnv, method) {
4473
4479
  if (nodeEnv !== "production") return false;
4474
4480
  const normalizedMethod = (method || "GET").toUpperCase();
@@ -4516,7 +4522,7 @@ var warnedSuppressedAsyncHydrationModules = /* @__PURE__ */ new Set();
4516
4522
  function warnSuppressedAsyncHydrationOnce(modulePath, reason) {
4517
4523
  if (warnedSuppressedAsyncHydrationModules.has(modulePath)) return;
4518
4524
  warnedSuppressedAsyncHydrationModules.add(modulePath);
4519
- _chunkXN2MB4QZcjs.logger.warn(describeSuppressedAsyncHydration(modulePath, reason));
4525
+ _chunkVQJYGZNXcjs.logger.warn(describeSuppressedAsyncHydration(modulePath, reason));
4520
4526
  }
4521
4527
  var fullDocumentRoutes = /* @__PURE__ */ new Set();
4522
4528
  var documentLayouts = /* @__PURE__ */ new WeakMap();
@@ -4557,7 +4563,7 @@ function appendResponseVary(res, value) {
4557
4563
  function renderI18nAlternateLinks(requestPath, snapshot, options) {
4558
4564
  if (snapshot.routing === "none") return "";
4559
4565
  const url = new URL(requestPath, "http://farm.local");
4560
- return _chunkVCKGOXFIcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
4566
+ return _chunk76GHW3WIcjs.renderFarmLocaleAlternateLinks.call(void 0, url.pathname, snapshot, options);
4561
4567
  }
4562
4568
  var PPR_REFRESH_MAX_ATTEMPTS = 3;
4563
4569
  function createPPRRefreshScript() {
@@ -4658,7 +4664,7 @@ async function parseRouteModuleProps(routeModule, input) {
4658
4664
  ...input.props,
4659
4665
  params,
4660
4666
  search,
4661
- searchParams: Promise.resolve(search)
4667
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, search)
4662
4668
  };
4663
4669
  }
4664
4670
  function parseRouteModuleSchema(schema, value, label, routePath) {
@@ -4676,7 +4682,7 @@ function createRouteStateProps(input) {
4676
4682
  return {
4677
4683
  params: input.params,
4678
4684
  search: input.searchParamsObject,
4679
- searchParams: Promise.resolve(input.searchParamsObject),
4685
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, input.searchParamsObject),
4680
4686
  path: input.path,
4681
4687
  middleware: input.middlewareMap.size > 0 ? { data: input.middlewareMap } : void 0,
4682
4688
  context: input.pluginExposedContext.size > 0 ? { data: input.pluginExposedContext } : void 0
@@ -4997,13 +5003,13 @@ var ServerRenderer = class {
4997
5003
  );
4998
5004
  }
4999
5005
  this.ssgManifest = parseSSGManifest(content, manifestPath);
5000
- _chunkXN2MB4QZcjs.logger.info(`Loaded SSG manifest: ${this.ssgManifest.length} pages`);
5006
+ _chunkVQJYGZNXcjs.logger.info(`Loaded SSG manifest: ${this.ssgManifest.length} pages`);
5001
5007
  }
5002
5008
  /**
5003
5009
  * Check if a path should be served from SSG cache
5004
5010
  */
5005
5011
  async shouldServeSSG(pathname) {
5006
- const ssgPage = _chunkIUBDMDZZcjs.matchSSGPage.call(void 0, pathname, this.ssgManifest);
5012
+ const ssgPage = _chunkY7TLL65Bcjs.matchSSGPage.call(void 0, pathname, this.ssgManifest);
5007
5013
  if (!ssgPage) return null;
5008
5014
  const cached = await this.getCachedSSGPage(pathname);
5009
5015
  if (cached && await this.dataCache.isStaleAsync(cached)) {
@@ -5129,7 +5135,7 @@ var ServerRenderer = class {
5129
5135
  const PageComponent = mod.default;
5130
5136
  const pageProps = {
5131
5137
  params: page.params,
5132
- searchParams: Promise.resolve({}),
5138
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, {}),
5133
5139
  path: page.urlPath
5134
5140
  };
5135
5141
  let pageElement = this.rendererRuntime.createElement(PageComponent, pageProps);
@@ -5179,13 +5185,13 @@ var ServerRenderer = class {
5179
5185
  { metadata: mergedMetadata }
5180
5186
  );
5181
5187
  await this.cacheSSGPage(page, fullDocument, { document: true });
5182
- _chunkXN2MB4QZcjs.logger.info(`ISR: Regenerated ${page.urlPath}`);
5188
+ _chunkVQJYGZNXcjs.logger.info(`ISR: Regenerated ${page.urlPath}`);
5183
5189
  } catch (error) {
5184
- _chunkXN2MB4QZcjs.logger.error(`ISR regeneration failed for ${page.urlPath}: ${error}`);
5190
+ _chunkVQJYGZNXcjs.logger.error(`ISR regeneration failed for ${page.urlPath}: ${error}`);
5185
5191
  }
5186
5192
  });
5187
5193
  } catch (error) {
5188
- _chunkXN2MB4QZcjs.logger.error(`ISR trigger failed: ${error}`);
5194
+ _chunkVQJYGZNXcjs.logger.error(`ISR trigger failed: ${error}`);
5189
5195
  }
5190
5196
  }
5191
5197
  /**
@@ -5228,7 +5234,7 @@ var ServerRenderer = class {
5228
5234
  return true;
5229
5235
  }
5230
5236
  } catch (error) {
5231
- _chunkXN2MB4QZcjs.logger.error(`Failed to serve SSG page ${page.urlPath}: ${error}`);
5237
+ _chunkVQJYGZNXcjs.logger.error(`Failed to serve SSG page ${page.urlPath}: ${error}`);
5232
5238
  }
5233
5239
  return false;
5234
5240
  }
@@ -5296,7 +5302,7 @@ var ServerRenderer = class {
5296
5302
  const url = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req, { trustProxy: _optionalChain([this, 'access', _182 => _182.config, 'access', _183 => _183.server, 'optionalAccess', _184 => _184.trustProxy]) });
5297
5303
  pathname = url.pathname;
5298
5304
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, { type: "render.start", route: pathname, pathname });
5299
- searchParamsObject = _chunkJHXJBNLYcjs.searchParamsToObject.call(void 0, url.searchParams);
5305
+ searchParamsObject = _chunkSUCDVKUBcjs.searchParamsToObject.call(void 0, url.searchParams);
5300
5306
  const metadataRouteMatch = this.routeManager.matchMetadataRoute(pathname);
5301
5307
  if (metadataRouteMatch) {
5302
5308
  await this.renderMetadataRoute(req, res, metadataRouteMatch);
@@ -5381,9 +5387,9 @@ var ServerRenderer = class {
5381
5387
  actionRequest = _chunkHNAISJFDcjs.createWebRequestFromFarmRequest.call(void 0, req, {
5382
5388
  trustProxy: _optionalChain([this, 'access', _188 => _188.config, 'access', _189 => _189.server, 'optionalAccess', _190 => _190.trustProxy])
5383
5389
  });
5384
- const actionResponse = await _chunkNJVFPJ2Ycjs.handleFarmFormActionRequest.call(void 0,
5390
+ const actionResponse = await _chunk3OWVWZ6Rcjs.handleFarmFormActionRequest.call(void 0,
5385
5391
  actionRequest,
5386
- _chunk6QA2SXVHcjs.resolveServerActionsConfig.call(void 0, this.config.serverActions)
5392
+ _chunkFK25QSVCcjs.resolveServerActionsConfig.call(void 0, this.config.serverActions)
5387
5393
  );
5388
5394
  if (actionResponse) {
5389
5395
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, actionResponse);
@@ -5415,7 +5421,7 @@ var ServerRenderer = class {
5415
5421
  const rawPageProps = _chunkX333W5KVcjs.withFarmRouteContext.call(void 0,
5416
5422
  {
5417
5423
  params,
5418
- searchParams: Promise.resolve(searchParamsObject),
5424
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, searchParamsObject),
5419
5425
  path: pathname,
5420
5426
  middleware: middlewareMap.size > 0 ? { data: middlewareMap } : void 0,
5421
5427
  context: pluginExposedContext.size > 0 ? { data: pluginExposedContext } : void 0
@@ -5438,7 +5444,7 @@ var ServerRenderer = class {
5438
5444
  const routeStateProps = {
5439
5445
  ...rawPageProps,
5440
5446
  search: searchParamsObject,
5441
- searchParams: Promise.resolve(searchParamsObject),
5447
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, searchParamsObject),
5442
5448
  error
5443
5449
  };
5444
5450
  if (_chunk7JUIK547cjs.isFarmNotFoundError.call(void 0, error) && _optionalChain([programmaticRouteComponents, 'optionalAccess', _194 => _194.notFound])) {
@@ -5453,7 +5459,7 @@ var ServerRenderer = class {
5453
5459
  throw error;
5454
5460
  }
5455
5461
  }
5456
- const renderingConfig = await _chunkIUBDMDZZcjs.resolveRouteRenderingConfigFromFile.call(void 0,
5462
+ const renderingConfig = await _chunkY7TLL65Bcjs.resolveRouteRenderingConfigFromFile.call(void 0,
5457
5463
  routeModule,
5458
5464
  route.modulePath,
5459
5465
  { experimentalPPR: _optionalChain([this, 'access', _196 => _196.config, 'access', _197 => _197.experimental, 'optionalAccess', _198 => _198.ppr]) === true }
@@ -5556,7 +5562,7 @@ var ServerRenderer = class {
5556
5562
  const rawSlotProps = _chunkX333W5KVcjs.withFarmRouteContext.call(void 0,
5557
5563
  {
5558
5564
  params: slot.params,
5559
- searchParams: Promise.resolve(searchParamsObject),
5565
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, searchParamsObject),
5560
5566
  path: pathname,
5561
5567
  middleware: middlewareMap.size > 0 ? { data: middlewareMap } : void 0,
5562
5568
  context: pluginExposedContext.size > 0 ? { data: pluginExposedContext } : void 0
@@ -5620,7 +5626,7 @@ var ServerRenderer = class {
5620
5626
  );
5621
5627
  const clientLayouts = layouts.map((layout, index) => ({
5622
5628
  pattern: layout.pattern,
5623
- modulePath: _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, layout.modulePath, this.config.root),
5629
+ modulePath: _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, layout.modulePath, this.config.root),
5624
5630
  shouldHydrate: _optionalChain([layoutHydrationMetadata, 'access', _203 => _203[index], 'optionalAccess', _204 => _204.shouldHydrate]) === true,
5625
5631
  islandStrategy: _nullishCoalesce(_optionalChain([layoutHydrationMetadata, 'access', _205 => _205[index], 'optionalAccess', _206 => _206.islandStrategy]), () => ( null)),
5626
5632
  ..._optionalChain([layoutHydrationMetadata, 'access', _207 => _207[index], 'optionalAccess', _208 => _208.hasIsolatedClientBoundaries]) === true ? { hasIsolatedClientBoundaries: true } : {},
@@ -5652,7 +5658,7 @@ var ServerRenderer = class {
5652
5658
  req.__FARM_SHOULD_HYDRATE__ = shouldHydrate || shouldHydrateLayout || hasIsolatedClientBoundaries;
5653
5659
  req.__FARM_ISLAND_STRATEGY__ = hydrationIslandStrategy;
5654
5660
  req.__FARM_HAS_HYDRATABLE_ROUTE_SLOTS__ = hasHydratableRouteSlots;
5655
- req.__FARM_LOADING_MODULE_PATH__ = _optionalChain([loadingBoundaryEntry, 'optionalAccess', _212 => _212.modulePath]) ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, loadingBoundaryEntry.modulePath, this.config.root) : null;
5661
+ req.__FARM_LOADING_MODULE_PATH__ = _optionalChain([loadingBoundaryEntry, 'optionalAccess', _212 => _212.modulePath]) ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, loadingBoundaryEntry.modulePath, this.config.root) : null;
5656
5662
  req.__FARM_ROUTE_SLOTS__ = renderedRouteSlots.map((slot) => ({
5657
5663
  name: slot.name,
5658
5664
  ownerPattern: slot.ownerPattern,
@@ -5887,7 +5893,7 @@ var ServerRenderer = class {
5887
5893
  }
5888
5894
  }
5889
5895
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, { type: "render.error", route: pathname, error });
5890
- const errorStatus = _chunkVCKGOXFIcjs.resolveDefaultErrorStatus.call(void 0, error);
5896
+ const errorStatus = _chunk76GHW3WIcjs.resolveDefaultErrorStatus.call(void 0, error);
5891
5897
  if (pprRefreshRoute) {
5892
5898
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
5893
5899
  type: "ppr.refresh.error",
@@ -5895,7 +5901,7 @@ var ServerRenderer = class {
5895
5901
  error
5896
5902
  });
5897
5903
  }
5898
- _chunkXN2MB4QZcjs.logger.error(`Error rendering page: ${error}`);
5904
+ _chunkVQJYGZNXcjs.logger.error(`Error rendering page: ${error}`);
5899
5905
  if (res.headersSent || res.writableEnded) {
5900
5906
  if (!res.writableEnded) {
5901
5907
  res.end();
@@ -5943,7 +5949,7 @@ var ServerRenderer = class {
5943
5949
  let providerSourceModule;
5944
5950
  if (_chunkWAPQWAE6cjs.isFarmIntegrationProviderComponentReference.call(void 0, provider.component)) {
5945
5951
  providerSourceModule = provider.component.module;
5946
- const providerModuleId = provider.component.module.startsWith(".") ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0,
5952
+ const providerModuleId = provider.component.module.startsWith(".") ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0,
5947
5953
  path9.resolve(this.config.root, provider.component.module),
5948
5954
  this.config.root
5949
5955
  ) : provider.component.module;
@@ -6077,7 +6083,7 @@ var ServerRenderer = class {
6077
6083
  reference.contentType = imageModule.contentType;
6078
6084
  }
6079
6085
  } catch (error) {
6080
- _chunkXN2MB4QZcjs.logger.warn(`Failed to read ${kind} image metadata for ${pathname}: ${error}`);
6086
+ _chunkVQJYGZNXcjs.logger.warn(`Failed to read ${kind} image metadata for ${pathname}: ${error}`);
6081
6087
  }
6082
6088
  return reference;
6083
6089
  }
@@ -6115,13 +6121,13 @@ var ServerRenderer = class {
6115
6121
  origin: url.origin,
6116
6122
  readMarkdown: llmsContext.markdown
6117
6123
  }) : value;
6118
- const response = _chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
6124
+ const response = _chunk76GHW3WIcjs.createFarmMetadataRouteResponse.call(void 0, match.metadata.kind, body, routeModule, {
6119
6125
  method,
6120
6126
  request: request2
6121
6127
  });
6122
6128
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, response);
6123
6129
  } catch (error) {
6124
- _chunkXN2MB4QZcjs.logger.error(`Metadata route render failed for ${match.metadata.modulePath}: ${error}`);
6130
+ _chunkVQJYGZNXcjs.logger.error(`Metadata route render failed for ${match.metadata.modulePath}: ${error}`);
6125
6131
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6126
6132
  res,
6127
6133
  new Response("Internal Server Error", {
@@ -6151,7 +6157,7 @@ var ServerRenderer = class {
6151
6157
  }) : context.defaults;
6152
6158
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6153
6159
  res,
6154
- _chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0,
6160
+ _chunk76GHW3WIcjs.createFarmMetadataRouteResponse.call(void 0,
6155
6161
  kind,
6156
6162
  body,
6157
6163
  { revalidate: config.revalidate },
@@ -6159,7 +6165,7 @@ var ServerRenderer = class {
6159
6165
  )
6160
6166
  );
6161
6167
  } catch (error) {
6162
- _chunkXN2MB4QZcjs.logger.error(`Generated ${kind}.txt failed: ${error}`);
6168
+ _chunkVQJYGZNXcjs.logger.error(`Generated ${kind}.txt failed: ${error}`);
6163
6169
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6164
6170
  res,
6165
6171
  new Response("Internal Server Error", {
@@ -6186,10 +6192,10 @@ var ServerRenderer = class {
6186
6192
  });
6187
6193
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6188
6194
  res,
6189
- _chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
6195
+ _chunk76GHW3WIcjs.createFarmMetadataRouteResponse.call(void 0, "robots", robots, {}, { method: req.method })
6190
6196
  );
6191
6197
  } catch (error) {
6192
- _chunkXN2MB4QZcjs.logger.error(`Generated robots.txt failed: ${error}`);
6198
+ _chunkVQJYGZNXcjs.logger.error(`Generated robots.txt failed: ${error}`);
6193
6199
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6194
6200
  res,
6195
6201
  new Response("Internal Server Error", {
@@ -6212,7 +6218,7 @@ var ServerRenderer = class {
6212
6218
  this.getAgentListedRoutes().map(async ([pattern, route]) => {
6213
6219
  const [module, stat] = await Promise.all([
6214
6220
  this.routeManager.loadRouteModule(route.modulePath).catch((error) => {
6215
- _chunkXN2MB4QZcjs.logger.warn(`Could not read metadata for ${pattern} in sitemap.xml: ${error}`);
6221
+ _chunkVQJYGZNXcjs.logger.warn(`Could not read metadata for ${pattern} in sitemap.xml: ${error}`);
6216
6222
  return void 0;
6217
6223
  }),
6218
6224
  fs5.promises.stat(route.modulePath).catch(() => void 0)
@@ -6230,10 +6236,10 @@ var ServerRenderer = class {
6230
6236
  });
6231
6237
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6232
6238
  res,
6233
- _chunkVCKGOXFIcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
6239
+ _chunk76GHW3WIcjs.createFarmMetadataRouteResponse.call(void 0, "sitemap", sitemap, {}, { method: req.method })
6234
6240
  );
6235
6241
  } catch (error) {
6236
- _chunkXN2MB4QZcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
6242
+ _chunkVQJYGZNXcjs.logger.error(`Generated sitemap.xml failed: ${error}`);
6237
6243
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6238
6244
  res,
6239
6245
  new Response("Internal Server Error", {
@@ -6259,7 +6265,7 @@ var ServerRenderer = class {
6259
6265
  getAgentListedRoutes() {
6260
6266
  const guards = { config: this.config, middlewareRoutes: _nullishCoalesce(_optionalChain([this, 'access', _253 => _253.middlewareRoutes, 'optionalCall', _254 => _254()]), () => ( [])) };
6261
6267
  return [...this.routeManager.getRoutes()].filter(
6262
- ([pattern]) => !pattern.includes("[") && !_chunkVCKGOXFIcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
6268
+ ([pattern]) => !pattern.includes("[") && !_chunk76GHW3WIcjs.farmPathGuardCoversPage.call(void 0, guards, pattern)
6263
6269
  );
6264
6270
  }
6265
6271
  /**
@@ -6273,7 +6279,7 @@ var ServerRenderer = class {
6273
6279
  if (this.routeManager.matchRoute(_chunkSBABQKPTcjs.FARM_DEFAULT_MCP_PATH).route) return void 0;
6274
6280
  _nullishCoalesce(this.defaultMCPServer, () => ( (this.defaultMCPServer = _chunkSBABQKPTcjs.createFarmDefaultMCPServer.call(void 0,
6275
6281
  readAppPackageIdentity(this.config.root),
6276
- _chunkRHOR2J6Vcjs.FARM_VERSION
6282
+ _chunkX5BCMLGPcjs.FARM_VERSION
6277
6283
  ))));
6278
6284
  return _chunkSBABQKPTcjs.resolveFarmDefaultMCPServer.call(void 0, this.defaultMCPServer);
6279
6285
  }
@@ -6306,7 +6312,7 @@ var ServerRenderer = class {
6306
6312
  });
6307
6313
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0, res, response);
6308
6314
  } catch (error) {
6309
- _chunkXN2MB4QZcjs.logger.error(`Default MCP server failed: ${error}`);
6315
+ _chunkVQJYGZNXcjs.logger.error(`Default MCP server failed: ${error}`);
6310
6316
  await _chunkZ5MZDFX4cjs.sendWebResponse.call(void 0,
6311
6317
  res,
6312
6318
  new Response(
@@ -6331,7 +6337,7 @@ var ServerRenderer = class {
6331
6337
  if (module.__farmRouteGuard) return null;
6332
6338
  return { pattern, metadata: module.metadata };
6333
6339
  } catch (error) {
6334
- _chunkXN2MB4QZcjs.logger.warn(`Could not read metadata for ${pattern} in llms.txt: ${error}`);
6340
+ _chunkVQJYGZNXcjs.logger.warn(`Could not read metadata for ${pattern} in llms.txt: ${error}`);
6335
6341
  return { pattern };
6336
6342
  }
6337
6343
  })
@@ -6355,7 +6361,7 @@ var ServerRenderer = class {
6355
6361
  pages,
6356
6362
  config,
6357
6363
  rootMetadata,
6358
- mcp: _optionalChain([this, 'access', _266 => _266.config, 'access', _267 => _267.agent, 'optionalAccess', _268 => _268.aiCatalog]) === false ? [] : _chunkGOOK2J2Wcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
6364
+ mcp: _optionalChain([this, 'access', _266 => _266.config, 'access', _267 => _267.agent, 'optionalAccess', _268 => _268.aiCatalog]) === false ? [] : _chunkJ22JD5YJcjs.listFarmMCPLlmsTxtLinks.call(void 0, origin, {
6359
6365
  basePath: this.config.basePath,
6360
6366
  apiServerBasePath: _chunkB5BBTPJQcjs.resolveFarmAPIServerBasePath.call(void 0,
6361
6367
  _chunkIWFV5ZEDcjs.normalizeFarmAPIConfig.call(void 0,
@@ -6420,7 +6426,7 @@ var ServerRenderer = class {
6420
6426
  }
6421
6427
  const imageProps = {
6422
6428
  params: options.params,
6423
- searchParams: Promise.resolve(options.searchParamsObject),
6429
+ searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, options.searchParamsObject),
6424
6430
  path: options.pagePath
6425
6431
  };
6426
6432
  const handlerResult = typeof imageModule.default === "function" ? await imageModule.default(imageProps) : imageModule.default;
@@ -6529,7 +6535,7 @@ var ServerRenderer = class {
6529
6535
  res.end();
6530
6536
  return true;
6531
6537
  } catch (renderError) {
6532
- _chunkXN2MB4QZcjs.logger.warn(`Failed to render route-level error boundary: ${renderError}`);
6538
+ _chunkVQJYGZNXcjs.logger.warn(`Failed to render route-level error boundary: ${renderError}`);
6533
6539
  return false;
6534
6540
  }
6535
6541
  }
@@ -6592,7 +6598,7 @@ var ServerRenderer = class {
6592
6598
  const routeSlots = (req.__FARM_ROUTE_SLOTS__ || []).map(
6593
6599
  (slot) => ({
6594
6600
  ...slot,
6595
- modulePath: typeof slot.modulePath === "string" ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, slot.modulePath, this.config.root) : slot.modulePath
6601
+ modulePath: typeof slot.modulePath === "string" ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, slot.modulePath, this.config.root) : slot.modulePath
6596
6602
  })
6597
6603
  );
6598
6604
  const deferredProps = _chunkXQSYOVCWcjs.prepareDeferredData.call(void 0, {
@@ -6600,7 +6606,7 @@ var ServerRenderer = class {
6600
6606
  slots: routeSlots
6601
6607
  });
6602
6608
  const pagePath = req.__FARM_PAGE_PATH__;
6603
- const relativePath = pagePath ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, pagePath, this.config.root) : "/src/app/page.tsx";
6609
+ const relativePath = pagePath ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, pagePath, this.config.root) : "/src/app/page.tsx";
6604
6610
  const deploymentId = this.getDeploymentId();
6605
6611
  const farmScripts = (markup) => this.stampFarmScripts(req, markup);
6606
6612
  const bootstrapScript = farmScripts(`<script data-farm-refresh-state>
@@ -6657,19 +6663,19 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
6657
6663
  i18nSnapshot,
6658
6664
  this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
6659
6665
  ) : "";
6660
- const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
6666
+ const themeDocument = _chunk76GHW3WIcjs.createFarmThemeDocumentParts.call(void 0,
6661
6667
  this.config.theme,
6662
6668
  this.config.basePath,
6663
6669
  _chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
6664
6670
  );
6665
6671
  themeDocument.head = farmScripts(themeDocument.head);
6666
- const fullDocument = _chunkVCKGOXFIcjs.extractFarmFullDocument.call(void 0, content);
6672
+ const fullDocument = _chunk76GHW3WIcjs.extractFarmFullDocument.call(void 0, content);
6667
6673
  let html;
6668
6674
  if (fullDocument) {
6669
6675
  const shouldReplaceLayoutTitle = hasExplicitTitle || rendererHasTitle;
6670
- const documentHtml = shouldReplaceLayoutTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
6671
- const effectiveRendererHead = hasExplicitTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
6672
- html = _chunkVCKGOXFIcjs.composeFarmFullDocument.call(void 0, documentHtml, {
6676
+ const documentHtml = shouldReplaceLayoutTitle ? _chunk76GHW3WIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument;
6677
+ const effectiveRendererHead = hasExplicitTitle ? _chunk76GHW3WIcjs.removeFarmDocumentTitles.call(void 0, rendererHead) : rendererHead;
6678
+ html = _chunk76GHW3WIcjs.composeFarmFullDocument.call(void 0, documentHtml, {
6673
6679
  fallbackIcon: !hasFavicon,
6674
6680
  viewport: viewportTags,
6675
6681
  htmlAttributes: `${i18nSnapshot ? ` lang="${escapeHtmlAttribute2(i18nSnapshot.locale)}" dir="${escapeHtmlAttribute2(i18nSnapshot.direction)}"` : ""}${themeDocument.attributes}`,
@@ -6799,7 +6805,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
6799
6805
  let lateNavigationError = null;
6800
6806
  const pagePath = req.__FARM_PAGE_PATH__;
6801
6807
  const isClientComponent = req.__FARM_IS_CLIENT_COMPONENT__ === true;
6802
- const relativePath = pagePath ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, pagePath, this.config.root) : "/src/app/page.tsx";
6808
+ const relativePath = pagePath ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, pagePath, this.config.root) : "/src/app/page.tsx";
6803
6809
  const manifest = _nullishCoalesce(options.routeManifest, () => ( this.routeManager.generateClientManifest(this.config.root)));
6804
6810
  const clientManifest = {
6805
6811
  clientEntry: "/@farm/client.js",
@@ -6850,7 +6856,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
6850
6856
  const routeSlotPayload = (req.__FARM_ROUTE_SLOTS__ || []).map(
6851
6857
  (slot) => ({
6852
6858
  ...slot,
6853
- modulePath: typeof slot.modulePath === "string" ? _chunkXN2MB4QZcjs.toViteModuleId.call(void 0, slot.modulePath, this.config.root) : slot.modulePath
6859
+ modulePath: typeof slot.modulePath === "string" ? _chunkVQJYGZNXcjs.toViteModuleId.call(void 0, slot.modulePath, this.config.root) : slot.modulePath
6854
6860
  })
6855
6861
  );
6856
6862
  const deferredProps = _chunkXQSYOVCWcjs.prepareDeferredData.call(void 0, {
@@ -6901,7 +6907,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
6901
6907
  this.getI18nAlternateOptions(req, req.__FARM_METADATA__)
6902
6908
  ) : "";
6903
6909
  const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
6904
- const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
6910
+ const themeDocument = _chunk76GHW3WIcjs.createFarmThemeDocumentParts.call(void 0,
6905
6911
  this.config.theme,
6906
6912
  this.config.basePath,
6907
6913
  _chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
@@ -6967,10 +6973,10 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
6967
6973
  ${stampDocumentHTML(FARM_DEV_EARLY_CLIENT_SCRIPT)}`
6968
6974
  )
6969
6975
  } : document;
6970
- const documentTransform = streamDocument ? _chunkVCKGOXFIcjs.createFarmStreamedDocumentTransform.call(void 0,
6976
+ const documentTransform = streamDocument ? _chunk76GHW3WIcjs.createFarmStreamedDocumentTransform.call(void 0,
6971
6977
  (opening) => withEarlyClient(
6972
- _chunkVCKGOXFIcjs.openFarmStreamedDocument.call(void 0,
6973
- hasExplicitTitle ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, opening) : opening,
6978
+ _chunk76GHW3WIcjs.openFarmStreamedDocument.call(void 0,
6979
+ hasExplicitTitle ? _chunk76GHW3WIcjs.removeFarmDocumentTitles.call(void 0, opening) : opening,
6974
6980
  {
6975
6981
  fallbackIcon: !hasFavicon,
6976
6982
  viewport: viewportTags,
@@ -7009,7 +7015,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7009
7015
  const recordRenderedChunk = (chunkText, renderedText = chunkText) => {
7010
7016
  if (!checkedFullDocument && renderedText) {
7011
7017
  documentPrefix += renderedText;
7012
- const prefix = _chunkVCKGOXFIcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
7018
+ const prefix = _chunk76GHW3WIcjs.classifyFarmDocumentPrefix.call(void 0, documentPrefix);
7013
7019
  if (prefix !== "pending") {
7014
7020
  checkedFullDocument = true;
7015
7021
  documentPrefix = "";
@@ -7068,7 +7074,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7068
7074
  finishStream(callback);
7069
7075
  },
7070
7076
  (error) => {
7071
- _chunkXN2MB4QZcjs.logger.error(`Could not recover from a late navigation error: ${error}`);
7077
+ _chunkVQJYGZNXcjs.logger.error(`Could not recover from a late navigation error: ${error}`);
7072
7078
  finishStream(callback);
7073
7079
  }
7074
7080
  );
@@ -7118,7 +7124,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7118
7124
  }
7119
7125
  const cachedHtml = staticShellParts ? staticShellParts.join("") : htmlParts.join("");
7120
7126
  Promise.resolve(options.onComplete(cachedHtml)).catch((error) => {
7121
- _chunkXN2MB4QZcjs.logger.warn(`Failed to cache PPR shell: ${error}`);
7127
+ _chunkVQJYGZNXcjs.logger.warn(`Failed to cache PPR shell: ${error}`);
7122
7128
  });
7123
7129
  }
7124
7130
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
@@ -7137,7 +7143,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7137
7143
  onShellError(error) {
7138
7144
  didError = true;
7139
7145
  if (!isWebResponse(error) && !_chunk7JUIK547cjs.isFarmRedirectError.call(void 0, error) && !_chunk7JUIK547cjs.isFarmNotFoundError.call(void 0, error)) {
7140
- _chunkXN2MB4QZcjs.logger.error(`SSR shell error: ${error}`);
7146
+ _chunkVQJYGZNXcjs.logger.error(`SSR shell error: ${error}`);
7141
7147
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
7142
7148
  type: "render.error",
7143
7149
  route: observabilityRoute,
@@ -7157,7 +7163,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7157
7163
  return;
7158
7164
  }
7159
7165
  if (!isWebResponse(error)) {
7160
- _chunkXN2MB4QZcjs.logger.error(`SSR streaming error: ${error}`);
7166
+ _chunkVQJYGZNXcjs.logger.error(`SSR streaming error: ${error}`);
7161
7167
  _chunkEVIWKPJVcjs.emitFarmEvent.call(void 0, {
7162
7168
  type: "render.error",
7163
7169
  route: observabilityRoute,
@@ -7223,7 +7229,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7223
7229
  */
7224
7230
  async createLateNavigationRecoveryHTML(req, error) {
7225
7231
  if (_chunk7JUIK547cjs.isFarmRedirectError.call(void 0, error)) {
7226
- return _chunkVCKGOXFIcjs.createLateRedirectRecovery.call(void 0,
7232
+ return _chunk76GHW3WIcjs.createLateRedirectRecovery.call(void 0,
7227
7233
  this.localizeRedirectUrl(_chunk7JUIK547cjs.getFarmRedirectError.call(void 0, error).url),
7228
7234
  this.getCspNonce(req) || ""
7229
7235
  );
@@ -7242,10 +7248,10 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7242
7248
  rendererRenderOptions()
7243
7249
  );
7244
7250
  } catch (error2) {
7245
- _chunkXN2MB4QZcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
7251
+ _chunkVQJYGZNXcjs.logger.warn(`not-found page could not render outside its layout, using Farm's: ${error2}`);
7246
7252
  }
7247
7253
  }
7248
- return _chunkVCKGOXFIcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
7254
+ return _chunk76GHW3WIcjs.createLateNotFoundRecovery.call(void 0, content, this.getCspNonce(req) || "");
7249
7255
  }
7250
7256
  async render404(req, res) {
7251
7257
  res.statusCode = 404;
@@ -7323,10 +7329,10 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7323
7329
  trustProxy: _optionalChain([this, 'access', _317 => _317.config, 'access', _318 => _318.server, 'optionalAccess', _319 => _319.trustProxy])
7324
7330
  });
7325
7331
  const diagnostics = isDev ? createDefaultErrorDiagnostics(error, this.config.root || process.cwd()) : void 0;
7326
- const statusText = _chunkVCKGOXFIcjs.getDefaultErrorStatusText.call(void 0, statusCode);
7332
+ const statusText = _chunk76GHW3WIcjs.getDefaultErrorStatusText.call(void 0, statusCode);
7327
7333
  const content = this.stampFarmScripts(
7328
7334
  req,
7329
- _chunkVCKGOXFIcjs.createDefaultErrorMarkup.call(void 0, {
7335
+ _chunk76GHW3WIcjs.createDefaultErrorMarkup.call(void 0, {
7330
7336
  statusCode,
7331
7337
  statusText,
7332
7338
  requestPath: requestUrl.pathname,
@@ -7336,7 +7342,7 @@ window.__FARM_I18N__ = ${_chunkRVGLYMJMcjs.getFarmI18nClientSnapshot.call(void 0
7336
7342
  stack: _optionalChain([diagnostics, 'optionalAccess', _322 => _322.stack]),
7337
7343
  sourceFrame: _optionalChain([diagnostics, 'optionalAccess', _323 => _323.sourceFrame]),
7338
7344
  development: isDev,
7339
- farmVersion: _chunkRHOR2J6Vcjs.FARM_VERSION,
7345
+ farmVersion: _chunkX5BCMLGPcjs.FARM_VERSION,
7340
7346
  nodeVersion: process.version,
7341
7347
  mode: isDev ? "development" : "production"
7342
7348
  })
@@ -7382,7 +7388,7 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
7382
7388
  this.getI18nAlternateOptions(alternates.req, alternates.metadata)
7383
7389
  ) : "";
7384
7390
  const fontHead = renderFarmFontDevHead(this.config.root || process.cwd());
7385
- const themeDocument = _chunkVCKGOXFIcjs.createFarmThemeDocumentParts.call(void 0,
7391
+ const themeDocument = _chunk76GHW3WIcjs.createFarmThemeDocumentParts.call(void 0,
7386
7392
  this.config.theme,
7387
7393
  this.config.basePath,
7388
7394
  _chunk4ZJ5C7UJcjs.getTheme.call(void 0, )
@@ -7392,10 +7398,10 @@ ${i18nSnapshot ? `window.__FARM_I18N__ = ${serializeInlineValue(i18nSnapshot)};`
7392
7398
  _optionalChain([this, 'access', _328 => _328.rendererRuntime, 'access', _329 => _329.generateHydrationScript, 'optionalCall', _330 => _330()]) || ""
7393
7399
  );
7394
7400
  const viewportTags = _chunk6IOZPJ3Icjs.renderViewportHead.call(void 0, _optionalChain([alternates, 'access', _331 => _331.metadata, 'optionalAccess', _332 => _332.viewport]));
7395
- const fullDocument = _chunkVCKGOXFIcjs.extractFarmFullDocument.call(void 0, content);
7401
+ const fullDocument = _chunk76GHW3WIcjs.extractFarmFullDocument.call(void 0, content);
7396
7402
  if (fullDocument) {
7397
- return _chunkVCKGOXFIcjs.composeFarmFullDocument.call(void 0,
7398
- metadataHead ? _chunkVCKGOXFIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
7403
+ return _chunk76GHW3WIcjs.composeFarmFullDocument.call(void 0,
7404
+ metadataHead ? _chunk76GHW3WIcjs.removeFarmDocumentTitles.call(void 0, fullDocument) : fullDocument,
7399
7405
  {
7400
7406
  fallbackIcon: !metadataHead,
7401
7407
  viewport: viewportTags,
@@ -7507,7 +7513,7 @@ var FarmApp = class {
7507
7513
  }
7508
7514
  async initialize() {
7509
7515
  if (process.env.FARM_VERBOSE) {
7510
- _chunkXN2MB4QZcjs.logger.info("Initializing Farm.js application...");
7516
+ _chunkVQJYGZNXcjs.logger.info("Initializing Farm.js application...");
7511
7517
  }
7512
7518
  await _chunkJMYXO572cjs.initStorage.call(void 0, this.config.storage);
7513
7519
  await _chunkDMAP4RNDcjs.configureFarmCache.call(void 0, this.config.cache);
@@ -7517,7 +7523,7 @@ var FarmApp = class {
7517
7523
  await this.routeManager.discoverRoutes();
7518
7524
  this.routeManager.generateClientManifest(this.config.root);
7519
7525
  if (process.env.FARM_VERBOSE) {
7520
- _chunkXN2MB4QZcjs.logger.success("Farm.js application initialized successfully!");
7526
+ _chunkVQJYGZNXcjs.logger.success("Farm.js application initialized successfully!");
7521
7527
  }
7522
7528
  }
7523
7529
  getRouteManager() {
@@ -7553,14 +7559,14 @@ var FarmApp = class {
7553
7559
  integrations: config.integrations || {},
7554
7560
  plugins: config.plugins || [],
7555
7561
  migrations: config.migrations || { commands: [] },
7556
- cron: _chunkC7425KDGcjs.resolveCronConfig.call(void 0, config.cron),
7557
- workflows: _chunkIQXGHGZFcjs.resolveWorkflowsConfig.call(void 0, config.workflows),
7562
+ cron: _chunkXYL4HSVCcjs.resolveCronConfig.call(void 0, config.cron),
7563
+ workflows: _chunkXB24LZWIcjs.resolveWorkflowsConfig.call(void 0, config.workflows),
7558
7564
  api: normalizeFarmAppAPIConfig(config.api),
7559
7565
  middleware: config.middleware || {},
7560
7566
  routeRules: _chunkV56632LAcjs.normalizeRouteRules.call(void 0, config.routeRules),
7561
7567
  context: config.context || (() => void 0),
7562
7568
  server: _chunkLIFUPCXWcjs.resolveFarmServerConfig.call(void 0, config.server),
7563
- serverActions: _chunk6QA2SXVHcjs.resolveServerActionsConfig.call(void 0, config.serverActions),
7569
+ serverActions: _chunkFK25QSVCcjs.resolveServerActionsConfig.call(void 0, config.serverActions),
7564
7570
  security: _chunk6JHZPB52cjs.resolveFarmSecurityConfig.call(void 0, config.security),
7565
7571
  images: _chunkHEPJIKKQcjs.resolveFarmImageConfig.call(void 0, config.images),
7566
7572
  performance: _chunkNYQSC4DXcjs.resolveFarmPerformanceConfig.call(void 0, config.performance),
@@ -7603,17 +7609,17 @@ var FarmApp = class {
7603
7609
  }
7604
7610
  async verifyAppStructure() {
7605
7611
  const appDirs = _chunk5Y2P454Ocjs.getFarmAppDirectories.call(void 0, this.config);
7606
- const hasAppDirectory = (await Promise.all(appDirs.map((appDir) => _chunkXN2MB4QZcjs.fileExists.call(void 0, appDir)))).some(
7612
+ const hasAppDirectory = (await Promise.all(appDirs.map((appDir) => _chunkVQJYGZNXcjs.fileExists.call(void 0, appDir)))).some(
7607
7613
  Boolean
7608
7614
  );
7609
7615
  if (!hasAppDirectory) {
7610
7616
  const routeFiles = _chunk5Y2P454Ocjs.getFarmSourceRoots.call(void 0, this.config).flatMap(
7611
- (source) => _chunkJZMZKABScjs.findProgrammaticRouteFiles.call(void 0, source.root, source.srcDir)
7617
+ (source) => _chunkNWUHS6GVcjs.findProgrammaticRouteFiles.call(void 0, source.root, source.srcDir)
7612
7618
  );
7613
7619
  if (routeFiles.length > 0) {
7614
7620
  return;
7615
7621
  }
7616
- const appDir = _chunkXN2MB4QZcjs.resolveAppPath.call(void 0, this.config.root, this.config.srcDir, "app");
7622
+ const appDir = _chunkVQJYGZNXcjs.resolveAppPath.call(void 0, this.config.root, this.config.srcDir, "app");
7617
7623
  throw new Error(
7618
7624
  `App directory not found at ${appDir}. Please create a src/app directory or extend a Farm layer containing routes.`
7619
7625
  );
@@ -7622,11 +7628,11 @@ var FarmApp = class {
7622
7628
  const rootLayoutPaths = appDirs.flatMap(
7623
7629
  (appDir) => componentExtensions.map((extension) => path4.default.join(appDir, `layout${extension}`))
7624
7630
  );
7625
- const hasRootLayout = await Promise.all(rootLayoutPaths.map((p) => _chunkXN2MB4QZcjs.fileExists.call(void 0, p))).then(
7631
+ const hasRootLayout = await Promise.all(rootLayoutPaths.map((p) => _chunkVQJYGZNXcjs.fileExists.call(void 0, p))).then(
7626
7632
  (results) => results.some(Boolean)
7627
7633
  );
7628
7634
  if (!hasRootLayout) {
7629
- _chunkXN2MB4QZcjs.logger.warn(
7635
+ _chunkVQJYGZNXcjs.logger.warn(
7630
7636
  `No root layout found. Consider creating src/app/layout${componentExtensions[0]} for consistent page structure.`
7631
7637
  );
7632
7638
  }
@@ -7665,7 +7671,7 @@ function resolveFarmImageProviderForRuntime(images, options) {
7665
7671
  `images.provider "node" optimizes images with sharp, which is not installed. ${SHARP_INSTALL_HINT}`
7666
7672
  );
7667
7673
  }
7668
- _chunkXN2MB4QZcjs.logger.info(
7674
+ _chunkVQJYGZNXcjs.logger.info(
7669
7675
  `Image optimization is off because sharp is not installed; images use their original URLs. ${SHARP_INSTALL_HINT}, or set images.provider to "none".`
7670
7676
  );
7671
7677
  return Object.freeze({ ...images, provider: "none" });
@@ -7724,7 +7730,7 @@ function resolveFarmAppPackages(root) {
7724
7730
 
7725
7731
 
7726
7732
 
7727
- var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
7733
+ var _tinyglobby = require('tinyglobby');
7728
7734
  var WEBMCP_CLIENT = "@farm.js/webmcp/client";
7729
7735
  var DEFINERS = /* @__PURE__ */ new Set(["defineWebMCPTool", "registerWebMCPTool", "registerWebMCPTools"]);
7730
7736
  var HINTS = ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"];
@@ -7868,9 +7874,10 @@ function collectFarmWebMCPTools(root, srcDir = "src") {
7868
7874
  const base = path4.default.resolve(root, srcDir);
7869
7875
  let files;
7870
7876
  try {
7871
- files = _fastglob2.default.sync("**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}", {
7877
+ files = _tinyglobby.globSync.call(void 0, "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}", {
7872
7878
  cwd: base,
7873
7879
  absolute: true,
7880
+ expandDirectories: false,
7874
7881
  ignore: ["**/node_modules/**", "**/*.d.ts", "**/*.{test,spec}.*", "**/__tests__/**"]
7875
7882
  });
7876
7883
  } catch (e23) {