@farm.js/core 0.2.0-beta.2 → 0.2.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 (687) hide show
  1. package/README.md +1 -3
  2. package/dist/THIRD-PARTY-LICENSES.md +3220 -0
  3. package/dist/after.cjs +3 -3
  4. package/dist/after.mjs +1 -1
  5. package/dist/{agent-mcp-handler-VX4NDDHR.mjs → agent-mcp-handler-BY7VJQ4W.mjs} +1 -1
  6. package/dist/agent-mcp-handler-S4UTE7NO.cjs +21 -0
  7. package/dist/{agent-mcp.d-DhCEzIfu.d.mts → agent-mcp.d-DhZf5-v0.d.mts} +1 -1
  8. package/dist/{agent-mcp.d-DBaonhLg.d.ts → agent-mcp.d-xPua9Zdz.d.ts} +1 -1
  9. package/dist/agent-runtime.cjs +25 -22
  10. package/dist/agent-runtime.d.mts +1 -1
  11. package/dist/agent-runtime.d.ts +1 -1
  12. package/dist/agent-runtime.mjs +2 -2
  13. package/dist/{analyzer-T2U345WL.mjs → analyzer-LQ4LVDCW.mjs} +3 -3
  14. package/dist/analyzer-ZFC2L6NZ.cjs +17 -0
  15. package/dist/api/client.cjs +16 -16
  16. package/dist/api/client.mjs +1 -1
  17. package/dist/api/client.native.cjs +21 -18
  18. package/dist/api/client.native.mjs +1 -1
  19. package/dist/api/node.cjs +29 -26
  20. package/dist/api/node.d.mts +3 -3
  21. package/dist/api/node.d.ts +3 -3
  22. package/dist/api/node.mjs +1 -1
  23. package/dist/api/route-manager.cjs +45 -45
  24. package/dist/api/route-manager.d.mts +3 -3
  25. package/dist/api/route-manager.d.ts +3 -3
  26. package/dist/api/route-manager.mjs +5 -5
  27. package/dist/api/runtime.cjs +25 -25
  28. package/dist/api/runtime.d.mts +2 -2
  29. package/dist/api/runtime.d.ts +2 -2
  30. package/dist/api/runtime.mjs +1 -1
  31. package/dist/api.cjs +57 -57
  32. package/dist/api.d.mts +4 -4
  33. package/dist/api.d.ts +4 -4
  34. package/dist/api.mjs +6 -6
  35. package/dist/{app-manifest.d-uE0JGZKN.d.mts → app-manifest.d-Bq9VWtpk.d.mts} +1 -1
  36. package/dist/{app-manifest.d-nLVFFd7N.d.ts → app-manifest.d-D6l1Wkn6.d.ts} +1 -1
  37. package/dist/app-markdown-compiler-4RCCOTTF.cjs +33007 -0
  38. package/dist/app-markdown-compiler-OM2AMFRK.mjs +32402 -0
  39. package/dist/app-markdown.cjs +16 -16
  40. package/dist/app-markdown.d.mts +2 -2
  41. package/dist/app-markdown.d.ts +2 -2
  42. package/dist/app-markdown.mjs +3 -3
  43. package/dist/{app.d-DGGcNXV7.d.mts → app.d-Bn1bqBkf.d.mts} +17 -7
  44. package/dist/{app.d-CwVkAUEU.d.ts → app.d-gnTrW72o.d.ts} +17 -7
  45. package/dist/cache.cjs +8 -8
  46. package/dist/cache.mjs +1 -1
  47. package/dist/{chunk-DA432P2F.cjs → chunk-25CHWAZY.cjs} +14 -10
  48. package/dist/{chunk-JDT733EW.cjs → chunk-27IPPPCV.cjs} +16 -19
  49. package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
  50. package/dist/{chunk-PHCJJJZV.cjs → chunk-2HC46EGU.cjs} +6 -2
  51. package/dist/{chunk-MF3IA2AW.cjs → chunk-2L4M6YUG.cjs} +6 -1
  52. package/dist/{chunk-RBSGFS5X.cjs → chunk-2LHO4HTP.cjs} +62 -54
  53. package/dist/{chunk-CIY74JLV.cjs → chunk-2RA2VIKN.cjs} +9 -5
  54. package/dist/{chunk-A3LNXQJJ.cjs → chunk-2VLW3HWJ.cjs} +9 -2
  55. package/dist/{chunk-4EBC7EMW.cjs → chunk-323JTLXR.cjs} +6 -1
  56. package/dist/{chunk-7KJJ4SBS.cjs → chunk-32HGOX3M.cjs} +6 -1
  57. package/dist/{chunk-RKQOMG2X.cjs → chunk-3ACTVXZG.cjs} +9 -5
  58. package/dist/{chunk-N3H7UPBM.cjs → chunk-3EZHMZGD.cjs} +6 -1
  59. package/dist/{chunk-LQWIIBI2.cjs → chunk-3KLDTMIC.cjs} +6 -1
  60. package/dist/{chunk-OO7DYIJD.cjs → chunk-3YT7DIIS.cjs} +7 -1
  61. package/dist/{chunk-ILQSRLKK.cjs → chunk-4A6WSOZH.cjs} +55 -49
  62. package/dist/{chunk-CBB7I6HW.cjs → chunk-4ER5KYSC.cjs} +9 -5
  63. package/dist/{chunk-E5UN4OWX.cjs → chunk-4JARM2QQ.cjs} +6 -1
  64. package/dist/{chunk-VGVRGGP4.cjs → chunk-4JCX33RZ.cjs} +13 -8
  65. package/dist/chunk-4RLFAN7T.cjs +6 -0
  66. package/dist/{chunk-OZUINP2P.cjs → chunk-4USE4SEU.cjs} +19 -15
  67. package/dist/{chunk-LQ3FISSD.mjs → chunk-54INSSWI.mjs} +66 -53
  68. package/dist/{chunk-PENBZAHJ.cjs → chunk-57OAZCWQ.cjs} +6 -1
  69. package/dist/{chunk-JYQ6DGPW.cjs → chunk-5P3TZGS3.cjs} +52 -45
  70. package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
  71. package/dist/{chunk-OZC2JPW6.cjs → chunk-5XYJ5KRN.cjs} +6 -1
  72. package/dist/{chunk-QKW6DLDT.cjs → chunk-5YT2ZSWS.cjs} +17 -13
  73. package/dist/{chunk-QCKSYYXK.cjs → chunk-63S7DAEG.cjs} +21 -17
  74. package/dist/{chunk-FDGYDQGL.cjs → chunk-66WIOZXX.cjs} +7 -1
  75. package/dist/{chunk-MHKPXX3J.cjs → chunk-6AUPJYHF.cjs} +13 -9
  76. package/dist/{chunk-DVJM55D2.cjs → chunk-6FIY4KBC.cjs} +6 -1
  77. package/dist/{chunk-TIZJYHB7.mjs → chunk-6IUWKO2Q.mjs} +15 -0
  78. package/dist/{chunk-VWIW47FW.cjs → chunk-6K7LEL2T.cjs} +6 -1
  79. package/dist/{chunk-UZCMMJJT.cjs → chunk-6NQ63L6N.cjs} +6 -1
  80. package/dist/{chunk-BTVDYS4B.cjs → chunk-6QCZWAGO.cjs} +6 -1
  81. package/dist/{chunk-RDADQG5S.cjs → chunk-6QWCFVGL.cjs} +14 -7
  82. package/dist/{chunk-JRGR5Z4K.cjs → chunk-6VC7NUY3.cjs} +6 -1
  83. package/dist/{chunk-CKPTIEDX.cjs → chunk-7BFFBYLN.cjs} +6 -1
  84. package/dist/{chunk-7Q7UB4TL.cjs → chunk-7GKZDRY2.cjs} +9 -5
  85. package/dist/{chunk-UCJCU2IL.cjs → chunk-7JI7W2MD.cjs} +34 -30
  86. package/dist/{chunk-C7LCTVJ2.cjs → chunk-7JZVCHNF.cjs} +10 -6
  87. package/dist/{chunk-QZUCVJZJ.cjs → chunk-7M3X4CBY.cjs} +6 -1
  88. package/dist/{chunk-7JUIK547.cjs → chunk-7MQMWGTL.cjs} +6 -1
  89. package/dist/{chunk-PIUTGRDI.cjs → chunk-7O3YJ6NP.cjs} +6 -1
  90. package/dist/{chunk-SXCL2MIN.cjs → chunk-7V5MQSBL.cjs} +9 -1
  91. package/dist/{chunk-7U4XF76R.cjs → chunk-7ZDLE77P.cjs} +12 -8
  92. package/dist/{chunk-NU5XLYRN.cjs → chunk-A2ELHZBZ.cjs} +10 -1
  93. package/dist/{chunk-RZI6436F.cjs → chunk-ADCVSTFV.cjs} +18 -11
  94. package/dist/chunk-AZJEQ5CR.cjs +6 -0
  95. package/dist/{chunk-ZMSVKVI3.cjs → chunk-B2VSX33T.cjs} +6 -1
  96. package/dist/{chunk-AQIRXBBY.cjs → chunk-B6JPBPBQ.cjs} +6 -1
  97. package/dist/{chunk-W76C7TCW.cjs → chunk-BNVQSUZK.cjs} +6 -2
  98. package/dist/{chunk-MNUYXZV7.cjs → chunk-BNWADCG2.cjs} +6 -1
  99. package/dist/{chunk-CCAUIBIS.cjs → chunk-BRWSQDKO.cjs} +10 -1
  100. package/dist/{chunk-KQS27YN7.cjs → chunk-C6DR4JAR.cjs} +14 -10
  101. package/dist/{chunk-Y3WG64CP.cjs → chunk-CH2JX3CM.cjs} +6 -1
  102. package/dist/{chunk-KDQKTX3Q.cjs → chunk-COMBIEAP.cjs} +44 -36
  103. package/dist/{chunk-YUQUGVSV.cjs → chunk-CTTXHHZG.cjs} +50 -46
  104. package/dist/{chunk-FDZZ6K3N.cjs → chunk-CUW7K4AU.cjs} +14 -10
  105. package/dist/chunk-CWSUKW2H.cjs +6 -0
  106. package/dist/chunk-CYUTK4JP.cjs +52 -0
  107. package/dist/{chunk-COK4IXOO.mjs → chunk-D7KBMJ7L.mjs} +1 -1
  108. package/dist/{chunk-T3SMMLSB.cjs → chunk-DB4NOIQC.cjs} +12 -8
  109. package/dist/{chunk-N2ZMSSPP.cjs → chunk-DNERKYN4.cjs} +77 -70
  110. package/dist/{chunk-OWOUTKIJ.cjs → chunk-DQYMTSF3.cjs} +6 -1
  111. package/dist/{chunk-7V5M43ND.mjs → chunk-DVL3UVYT.mjs} +2 -2
  112. package/dist/{chunk-UNOXV37V.cjs → chunk-DYGHX2UR.cjs} +6 -1
  113. package/dist/{chunk-LSHX2H5G.cjs → chunk-EBE6BK54.cjs} +6 -1
  114. package/dist/{chunk-WT6RAN2I.cjs → chunk-EGMJ5KEU.cjs} +6 -1
  115. package/dist/{chunk-22KXTL3I.cjs → chunk-EJLMRNSV.cjs} +24 -19
  116. package/dist/{chunk-RDNKQ5MK.cjs → chunk-EMM3YXXI.cjs} +19 -15
  117. package/dist/{chunk-EZUTDTFM.cjs → chunk-ERSLQ4C7.cjs} +18 -11
  118. package/dist/{chunk-4WXNTAOM.mjs → chunk-EUVHELJL.mjs} +1 -1
  119. package/dist/{chunk-VGZIIOU6.cjs → chunk-EWPH5IOC.cjs} +26 -19
  120. package/dist/{chunk-J6TZRYCO.cjs → chunk-F5JTXLS7.cjs} +6 -1
  121. package/dist/{chunk-UWDFH3ZV.mjs → chunk-FFROR7QD.mjs} +1 -1
  122. package/dist/{chunk-HUGPJFOC.cjs → chunk-G22QP2MX.cjs} +9 -5
  123. package/dist/{chunk-PMJSG4JS.cjs → chunk-G5KGLMPN.cjs} +6 -1
  124. package/dist/{chunk-4Q263EQI.mjs → chunk-GAD63TH7.mjs} +9 -9
  125. package/dist/{chunk-R5U7OIPI.cjs → chunk-GAII22G2.cjs} +6 -1
  126. package/dist/{chunk-SSFAPTRD.mjs → chunk-GK2RCRT2.mjs} +1 -1
  127. package/dist/{chunk-6CTFVBAT.cjs → chunk-GKYOFMPQ.cjs} +6 -1
  128. package/dist/{chunk-JYT7AN37.cjs → chunk-GLP3ID53.cjs} +6 -1
  129. package/dist/{chunk-QBJ6N5MT.mjs → chunk-GN2RXH72.mjs} +1 -1
  130. package/dist/{chunk-RQRTH57V.cjs → chunk-GQONHUMI.cjs} +6 -1
  131. package/dist/{chunk-EOXPRC2C.cjs → chunk-GQQID5IB.cjs} +7 -1
  132. package/dist/{chunk-IUKBPBM7.cjs → chunk-GUDYDNKU.cjs} +6 -1
  133. package/dist/{chunk-6GJZJAED.mjs → chunk-GUNPDMSX.mjs} +1 -1
  134. package/dist/{chunk-Z43CIBUR.cjs → chunk-GUYGMTWA.cjs} +20 -13
  135. package/dist/{chunk-QO24II6C.mjs → chunk-GXWCR7PP.mjs} +7 -3
  136. package/dist/{chunk-VS7HLH4S.cjs → chunk-GYH2B4YQ.cjs} +12 -8
  137. package/dist/{chunk-RGMUS3HO.cjs → chunk-H3TYWCMG.cjs} +18 -14
  138. package/dist/{chunk-2OF5RPVU.cjs → chunk-H5AC3XSE.cjs} +18 -14
  139. package/dist/{chunk-ZIOFRBIU.cjs → chunk-H7INTSUK.cjs} +15 -9
  140. package/dist/{chunk-RFNQTQ44.cjs → chunk-HBRCMX24.cjs} +10 -5
  141. package/dist/{chunk-UA77C2ZA.cjs → chunk-HF3JJPH4.cjs} +58 -50
  142. package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
  143. package/dist/{chunk-JP5TWUK2.cjs → chunk-HSAHQBMG.cjs} +8 -4
  144. package/dist/{chunk-OQOII62L.mjs → chunk-HYYOVRED.mjs} +2 -2
  145. package/dist/{chunk-3BTN3NP7.cjs → chunk-I5PDHLKE.cjs} +6 -2
  146. package/dist/{chunk-2RSVYJT6.cjs → chunk-IBZW57NW.cjs} +9 -5
  147. package/dist/{chunk-KORZ6PRE.cjs → chunk-IDUGG7VR.cjs} +6 -1
  148. package/dist/{chunk-6JHZPB52.cjs → chunk-IEZFFXSC.cjs} +10 -6
  149. package/dist/{chunk-VACYUMXW.cjs → chunk-IGA3OTFY.cjs} +37 -29
  150. package/dist/{chunk-YSRZSKQB.cjs → chunk-IGBQSUT5.cjs} +55 -40
  151. package/dist/{chunk-JIBEFLQ7.cjs → chunk-IKYNDANT.cjs} +7 -1
  152. package/dist/{chunk-KBGZ5FD6.cjs → chunk-IVEV44O2.cjs} +6 -2
  153. package/dist/{chunk-MCSRMEQV.cjs → chunk-J2JMESBJ.cjs} +6 -1
  154. package/dist/{chunk-WMRGIQTA.cjs → chunk-J3RIMCBD.cjs} +6 -1
  155. package/dist/{chunk-MWAWMFG3.cjs → chunk-J6JAUJPC.cjs} +737 -709
  156. package/dist/{chunk-N4AQNEXR.cjs → chunk-JIBZ6SCC.cjs} +6 -1
  157. package/dist/{chunk-SWPLGPYF.cjs → chunk-JKNQMGZE.cjs} +28 -24
  158. package/dist/{chunk-IZYFP7IN.cjs → chunk-JOSR2E2C.cjs} +17 -13
  159. package/dist/{chunk-AOKXITZ6.cjs → chunk-JOZDAIKZ.cjs} +6 -1
  160. package/dist/{chunk-EODGIFI7.cjs → chunk-JYQMGMKT.cjs} +16 -4
  161. package/dist/{chunk-J6RFB324.cjs → chunk-JZCUDAH2.cjs} +6 -1
  162. package/dist/{chunk-N2BRIN7I.mjs → chunk-K44IR6WC.mjs} +1 -1
  163. package/dist/{chunk-SUCDVKUB.cjs → chunk-K6LZMZNB.cjs} +6 -1
  164. package/dist/{chunk-GYJT2U7J.cjs → chunk-KAD5WBY4.cjs} +9 -5
  165. package/dist/{chunk-O4JYMU5N.cjs → chunk-KDUVIJSZ.cjs} +22 -18
  166. package/dist/{chunk-2LHZD3OP.cjs → chunk-KEBD377T.cjs} +6 -2
  167. package/dist/{chunk-3DE6RK7K.cjs → chunk-KHTJVI6B.cjs} +6 -1
  168. package/dist/{chunk-OY5XDG24.cjs → chunk-KI3B3H5K.cjs} +9 -5
  169. package/dist/{chunk-ANKMAGFJ.mjs → chunk-KJW6KEOZ.mjs} +1 -1
  170. package/dist/{chunk-4A6A6P4T.mjs → chunk-KKXGBQ2K.mjs} +3 -3
  171. package/dist/{chunk-4IE3YK7U.mjs → chunk-KQXYBJES.mjs} +14 -11
  172. package/dist/{chunk-P2355C6E.cjs → chunk-KSRWTQ6J.cjs} +6 -1
  173. package/dist/{chunk-SHIWRBFI.cjs → chunk-KUG3P3GY.cjs} +6 -1
  174. package/dist/{chunk-T7HGXF7D.cjs → chunk-KXCPX3HE.cjs} +11 -7
  175. package/dist/{chunk-C5QHZ626.cjs → chunk-KXXZDS7C.cjs} +6 -1
  176. package/dist/{chunk-DUIP64BF.cjs → chunk-KYFTDHNN.cjs} +6 -1
  177. package/dist/{chunk-VXCFJWK5.cjs → chunk-L6CW5AWM.cjs} +6 -1
  178. package/dist/{chunk-XGPRM7OK.cjs → chunk-LEK3P2ZD.cjs} +16 -7
  179. package/dist/{chunk-T7UC2ORA.cjs → chunk-LEZJZX4C.cjs} +7 -18
  180. package/dist/{chunk-HA7YRO53.cjs → chunk-LF7HAALM.cjs} +6 -1
  181. package/dist/{chunk-2KMIJDY6.cjs → chunk-LG62AYPQ.cjs} +6 -1
  182. package/dist/{chunk-OLIWLN4I.cjs → chunk-LGL5QKUJ.cjs} +24 -20
  183. package/dist/{chunk-SMUW7UST.mjs → chunk-LO5BNR6Y.mjs} +7 -2
  184. package/dist/{chunk-PWDBWXQI.cjs → chunk-LVYUTMW4.cjs} +6 -1
  185. package/dist/{chunk-XRRHPBG2.cjs → chunk-M6W3AN57.cjs} +6 -1
  186. package/dist/{chunk-PZXYAWYG.cjs → chunk-M7RS7HSB.cjs} +13 -8
  187. package/dist/{chunk-I5KPOXUE.mjs → chunk-MEIZIRMK.mjs} +1 -1
  188. package/dist/{chunk-HNB5JHBO.mjs → chunk-MLMDOIBY.mjs} +5 -5
  189. package/dist/{chunk-CEVXKJKF.cjs → chunk-MMSCWTJT.cjs} +6 -1
  190. package/dist/{chunk-SIECKBNK.cjs → chunk-MNBFSAWF.cjs} +7 -2
  191. package/dist/{chunk-EA5HVG45.cjs → chunk-MUQP2APN.cjs} +9 -2
  192. package/dist/{chunk-XOLYZZDX.mjs → chunk-MX4G24YS.mjs} +110 -56
  193. package/dist/{chunk-SCE7VWPN.cjs → chunk-MZG5M4JS.cjs} +48 -41
  194. package/dist/{chunk-DVAZ53X6.cjs → chunk-N4AM7Q34.cjs} +77 -73
  195. package/dist/{chunk-DXUXQP2T.cjs → chunk-N4C72FCD.cjs} +6 -1
  196. package/dist/{chunk-H7REG7OX.cjs → chunk-NKW4JEOH.cjs} +13 -9
  197. package/dist/{chunk-XRFGOYXG.cjs → chunk-NMMCBJZM.cjs} +17 -12
  198. package/dist/{chunk-SHDCKRP4.cjs → chunk-NQUZDXKJ.cjs} +7 -3
  199. package/dist/{chunk-UGWKNZ4U.cjs → chunk-O47IT4CS.cjs} +25 -21
  200. package/dist/{chunk-EUZFBHPP.cjs → chunk-O7B6LJWE.cjs} +7 -3
  201. package/dist/{chunk-UOMSGJHK.cjs → chunk-OAAVIFOJ.cjs} +116 -103
  202. package/dist/{chunk-SAUGKNCF.cjs → chunk-OBERQH7M.cjs} +42 -37
  203. package/dist/{chunk-NW3DL2PM.cjs → chunk-OCQSYDMG.cjs} +11 -4
  204. package/dist/{chunk-ZNXU4E6A.cjs → chunk-OSLI2SCA.cjs} +83 -72
  205. package/dist/{chunk-HLYRXN2I.cjs → chunk-OUOUPA37.cjs} +6 -1
  206. package/dist/{chunk-YIGUFJMR.cjs → chunk-OVSK47CZ.cjs} +6 -1
  207. package/dist/{chunk-ATYTLVSI.cjs → chunk-OX63SW6N.cjs} +7 -1
  208. package/dist/{chunk-GTHBWZUK.mjs → chunk-OZAVCLXY.mjs} +1 -1
  209. package/dist/{chunk-YKHRCY4T.cjs → chunk-P2LSRUQB.cjs} +6 -1
  210. package/dist/{chunk-XJDB564A.cjs → chunk-P4ZLFUNB.cjs} +7 -2
  211. package/dist/{chunk-2OFP3IVA.cjs → chunk-P5RNGH52.cjs} +32 -18
  212. package/dist/{chunk-NZRAUCUL.cjs → chunk-PATIHHC7.cjs} +26 -20
  213. package/dist/{chunk-6FXBJPF5.cjs → chunk-PCF54MSR.cjs} +6 -1
  214. package/dist/{chunk-52Q4OB4A.cjs → chunk-PFVNPOKN.cjs} +21 -7
  215. package/dist/{chunk-GVYZCJZH.cjs → chunk-PHYSFHJK.cjs} +6 -1
  216. package/dist/{chunk-4DCWVSL2.cjs → chunk-PHZ7MLRQ.cjs} +6 -1
  217. package/dist/{chunk-PCAEJNQF.cjs → chunk-PNMRXZS5.cjs} +13 -9
  218. package/dist/{chunk-HS4JPIGR.cjs → chunk-PRKFECGT.cjs} +7 -3
  219. package/dist/chunk-PTG5BEMG.mjs +47 -0
  220. package/dist/{chunk-YUCU6XB4.cjs → chunk-PYPHM7AS.cjs} +9 -4
  221. package/dist/{chunk-YNPVG2GG.mjs → chunk-PZ5ZJAAO.mjs} +2 -2
  222. package/dist/{chunk-H7OFZJCV.cjs → chunk-QBMMQS25.cjs} +14 -8
  223. package/dist/{chunk-Y2FEFQAY.cjs → chunk-QCVP22KW.cjs} +8 -5
  224. package/dist/{chunk-J3GFOQOL.cjs → chunk-QGJL7EPX.cjs} +13 -9
  225. package/dist/{chunk-2PE5STAR.cjs → chunk-QHHEL4ZO.cjs} +6 -2
  226. package/dist/{chunk-LTOT5KVJ.mjs → chunk-QKXQFBNL.mjs} +1 -1
  227. package/dist/{chunk-L6E5BSNU.cjs → chunk-QT7MJL5E.cjs} +7 -3
  228. package/dist/{chunk-ERMUL73L.cjs → chunk-QTGYT2DF.cjs} +6 -1
  229. package/dist/{chunk-WBTHHTBO.cjs → chunk-QW5I5D5T.cjs} +6 -1
  230. package/dist/{chunk-IIHZ2BEE.cjs → chunk-QZRFEHMS.cjs} +15 -11
  231. package/dist/{chunk-HXNLKCWH.cjs → chunk-QZVPBDF7.cjs} +6 -1
  232. package/dist/{chunk-JH4CDG4G.cjs → chunk-R6GOH5CH.cjs} +18 -14
  233. package/dist/{chunk-2BEGVSDF.cjs → chunk-RBDAW6IZ.cjs} +7 -3
  234. package/dist/{chunk-HVGINJTO.mjs → chunk-RDT2LJES.mjs} +77 -40
  235. package/dist/{chunk-PLJMEUAN.cjs → chunk-RFKPIAOF.cjs} +9 -1
  236. package/dist/{chunk-WPURVYXT.cjs → chunk-RGIHE6YL.cjs} +6 -2
  237. package/dist/{chunk-6B44ZU5P.cjs → chunk-RHORD2K2.cjs} +19 -15
  238. package/dist/{chunk-7MMDEIVC.mjs → chunk-RKWZ6F5D.mjs} +2 -2
  239. package/dist/{chunk-OCS3PSYR.cjs → chunk-RLC7NNTA.cjs} +6 -1
  240. package/dist/{chunk-WEZTGM7N.cjs → chunk-RMLXUVR5.cjs} +11 -9
  241. package/dist/{chunk-Q637AXGZ.mjs → chunk-RP55BUJM.mjs} +103 -20
  242. package/dist/{chunk-STF6VDYQ.cjs → chunk-RQSPBWXJ.cjs} +6 -1
  243. package/dist/{chunk-RWR7SMD7.cjs → chunk-S2QSTMBE.cjs} +7 -3
  244. package/dist/{chunk-GCJ4GNMC.cjs → chunk-SGBEJBBB.cjs} +8 -4
  245. package/dist/chunk-SGRWZEQC.cjs +44 -0
  246. package/dist/{chunk-BW563VZZ.mjs → chunk-SIHHYNX4.mjs} +1 -1
  247. package/dist/{chunk-NDMPGFKL.cjs → chunk-SIQPXYBB.cjs} +6 -1
  248. package/dist/{chunk-2HTNASSB.cjs → chunk-SM4Y7CL4.cjs} +10 -6
  249. package/dist/{chunk-UNJZGVPU.cjs → chunk-SQ5O5EDN.cjs} +6 -1
  250. package/dist/{chunk-A25FXJ7D.cjs → chunk-SWOJU7LI.cjs} +6 -1
  251. package/dist/{chunk-BNH53KOT.cjs → chunk-SZBBBLLS.cjs} +6 -1
  252. package/dist/{chunk-EXPVSFAG.cjs → chunk-T4VF6BYV.cjs} +50 -41
  253. package/dist/{chunk-ML4TOUZP.cjs → chunk-T4YCWRCJ.cjs} +6 -1
  254. package/dist/{chunk-NDOE76QC.cjs → chunk-TDAH76RR.cjs} +8 -4
  255. package/dist/{chunk-D22BUQKW.cjs → chunk-TFCBJFP7.cjs} +6 -1
  256. package/dist/{chunk-NWF2FTFV.mjs → chunk-TP3ISVRU.mjs} +2 -9
  257. package/dist/{chunk-3EIPOTZV.cjs → chunk-TP7JAC3T.cjs} +6 -2
  258. package/dist/{chunk-FB4CWSC2.cjs → chunk-TSLXAEGM.cjs} +16 -12
  259. package/dist/{chunk-5LJF4KUZ.cjs → chunk-U2HFXURZ.cjs} +19 -9
  260. package/dist/{chunk-SHD265HW.cjs → chunk-U3NUGF2E.cjs} +7 -1
  261. package/dist/{chunk-SVXOCTQ2.cjs → chunk-UARKTC55.cjs} +6 -1
  262. package/dist/{chunk-UZM3PDKK.cjs → chunk-UGL4BDNB.cjs} +27 -3
  263. package/dist/{chunk-GBMWLDCC.cjs → chunk-UHTXBC4Q.cjs} +7 -1
  264. package/dist/{chunk-47JV57DA.cjs → chunk-UOFTT6S4.cjs} +6 -1
  265. package/dist/{chunk-NNNMFSXG.mjs → chunk-V36K4TSU.mjs} +2 -2
  266. package/dist/{chunk-I2RBHZF7.cjs → chunk-VB7P66Q4.cjs} +6 -1
  267. package/dist/{chunk-BIAGSYIZ.cjs → chunk-VD7ENQP2.cjs} +54 -47
  268. package/dist/{chunk-J2EKGR6E.cjs → chunk-VFZQXADS.cjs} +719 -634
  269. package/dist/{chunk-NLBHLPEO.cjs → chunk-VIDUNAQE.cjs} +6 -1
  270. package/dist/{chunk-VM57CK74.cjs → chunk-VNWKJOJF.cjs} +6 -1
  271. package/dist/{chunk-MPU5DOXX.cjs → chunk-VUCDMV3Q.cjs} +6 -1
  272. package/dist/{chunk-M4YXD6MD.cjs → chunk-VWPGK6UV.cjs} +837 -769
  273. package/dist/{chunk-L2GUEYHR.cjs → chunk-VZ2P6GRC.cjs} +8 -1
  274. package/dist/{chunk-3SPECQXI.cjs → chunk-W4KSV6GX.cjs} +13 -9
  275. package/dist/{chunk-CHOOBTDD.cjs → chunk-W4WFKRLR.cjs} +17 -13
  276. package/dist/chunk-W7BMZI3I.cjs +6 -0
  277. package/dist/{chunk-SNP33A33.cjs → chunk-WCPGU6J6.cjs} +6 -1
  278. package/dist/{chunk-2OR5WAD5.cjs → chunk-WFNL24R6.cjs} +58 -43
  279. package/dist/{chunk-XOFJUSWC.cjs → chunk-WJ5ADUI2.cjs} +18 -14
  280. package/dist/{chunk-SPKZCFPH.mjs → chunk-WOPQQCP3.mjs} +5 -5
  281. package/dist/{chunk-ZSVFI7JM.cjs → chunk-WXPY5FRF.cjs} +23 -18
  282. package/dist/{chunk-JCYDWJVO.cjs → chunk-WZSLDPVZ.cjs} +13 -9
  283. package/dist/{chunk-O5YM6GU3.mjs → chunk-X2TC6PBK.mjs} +1 -1
  284. package/dist/{chunk-BSX5OGSD.cjs → chunk-XE3E4MER.cjs} +24 -20
  285. package/dist/{chunk-3BIASUGR.cjs → chunk-XEPUUTGC.cjs} +6 -1
  286. package/dist/{chunk-HQKCSJEH.cjs → chunk-XH4GQ7MT.cjs} +17 -10
  287. package/dist/{chunk-5AMH6AFA.cjs → chunk-XK7SRVHC.cjs} +15 -11
  288. package/dist/{chunk-WKVYF2B5.cjs → chunk-XSJYXUY6.cjs} +6 -1
  289. package/dist/{chunk-5DX3O6TT.cjs → chunk-XSLYRNNA.cjs} +8 -4
  290. package/dist/{chunk-UUQNJDGH.cjs → chunk-XTQPYWQW.cjs} +6 -1
  291. package/dist/{chunk-3HLQTOVU.cjs → chunk-XVD5Y6S4.cjs} +6 -1
  292. package/dist/{chunk-7Q2YWZF7.cjs → chunk-XXBWKAJF.cjs} +14 -10
  293. package/dist/{chunk-YDXLC4DW.cjs → chunk-XZ6L3FUU.cjs} +6 -1
  294. package/dist/{chunk-FZ7OUN5M.cjs → chunk-Y3HLU2XL.cjs} +6 -2
  295. package/dist/{chunk-I2BYNELA.cjs → chunk-Y6WRVFD6.cjs} +9 -5
  296. package/dist/{chunk-OOZEU5KK.cjs → chunk-YC3LKWJO.cjs} +6 -1
  297. package/dist/{chunk-SXXSQVKK.cjs → chunk-YCIFGYBY.cjs} +13 -8
  298. package/dist/{chunk-CYOTNHDF.cjs → chunk-YHALJBYT.cjs} +6 -2
  299. package/dist/{chunk-WOAXQ5MZ.cjs → chunk-YLEL4ZRQ.cjs} +18 -14
  300. package/dist/{chunk-WEGAVN37.cjs → chunk-YMJK6VWQ.cjs} +6 -1
  301. package/dist/{chunk-2HW5LWAH.cjs → chunk-YQ5NVEFS.cjs} +6 -1
  302. package/dist/{chunk-AQLHD6HZ.cjs → chunk-YQXLBYY2.cjs} +20 -11
  303. package/dist/{chunk-IBEHVSU4.cjs → chunk-YUV5XXDC.cjs} +6 -1
  304. package/dist/{chunk-PWMJBCAN.cjs → chunk-YV47TSSB.cjs} +7 -3
  305. package/dist/{chunk-X333W5KV.cjs → chunk-YZMSJRM5.cjs} +6 -1
  306. package/dist/{chunk-VFMHE5D3.cjs → chunk-Z23OCU33.cjs} +29 -25
  307. package/dist/{chunk-DBYNZIIQ.cjs → chunk-Z2JQR56W.cjs} +6 -1
  308. package/dist/chunk-Z7YIQ7AJ.cjs +16 -0
  309. package/dist/{chunk-RTAWQXME.cjs → chunk-ZCT6B5PQ.cjs} +242 -145
  310. package/dist/{chunk-P2TGLGRR.mjs → chunk-ZF7N222A.mjs} +2 -2
  311. package/dist/{chunk-RK3YYUX6.cjs → chunk-ZKVA2TV6.cjs} +6 -1
  312. package/dist/{chunk-SAPG45RA.cjs → chunk-ZPZGC6OD.cjs} +31 -27
  313. package/dist/{chunk-DV52ZS53.cjs → chunk-ZRRNF26T.cjs} +6 -2
  314. package/dist/{chunk-26ZTI2ZO.mjs → chunk-ZRTBDHO2.mjs} +19 -14
  315. package/dist/{chunk-PO5MXV5X.cjs → chunk-ZSSBEPN4.cjs} +6 -1
  316. package/dist/{chunk-TWFJJPE7.cjs → chunk-ZTNU4XCC.cjs} +42 -38
  317. package/dist/{chunk-V5FEFFHV.mjs → chunk-ZVEKOMZS.mjs} +1 -1
  318. package/dist/{cli-runtime.d-oUiNuspW.d.mts → cli-runtime.d-LwIb0swO.d.mts} +5 -5
  319. package/dist/{cli-runtime.d-Dbl-gIoz.d.ts → cli-runtime.d-Vvxf-Z8a.d.ts} +5 -5
  320. package/dist/client/lifecycle.cjs +8 -3
  321. package/dist/client/lifecycle.mjs +1 -1
  322. package/dist/{client-component.d-DaUqOhZT.d.mts → client-component.d-34DDMZcl.d.mts} +1 -1
  323. package/dist/{client-component.d-CT4q7tmy.d.ts → client-component.d-DT5OKBZu.d.ts} +1 -1
  324. package/dist/client-plugins.cjs +8 -3
  325. package/dist/{client-plugins.d-BfGTqbAH.d.mts → client-plugins.d-D7k9t9Ge.d.mts} +31 -12
  326. package/dist/{client-plugins.d-24qhjX8c.d.ts → client-plugins.d-D9CnUvZ5.d.ts} +31 -12
  327. package/dist/client-plugins.d.mts +1 -1
  328. package/dist/client-plugins.d.ts +1 -1
  329. package/dist/client-plugins.mjs +1 -1
  330. package/dist/client.cjs +51 -51
  331. package/dist/client.d.mts +7 -7
  332. package/dist/client.d.ts +7 -7
  333. package/dist/client.mjs +1 -1
  334. package/dist/config.cjs +3 -3
  335. package/dist/config.d.mts +1 -1
  336. package/dist/config.d.ts +1 -1
  337. package/dist/config.mjs +1 -1
  338. package/dist/cron.cjs +9 -9
  339. package/dist/cron.mjs +1 -1
  340. package/dist/deferred.cjs +3 -3
  341. package/dist/deferred.mjs +1 -1
  342. package/dist/deployment.cjs +3 -3
  343. package/dist/deployment.mjs +1 -1
  344. package/dist/desktop.cjs +4 -1
  345. package/dist/desktop.d.mts +2 -2
  346. package/dist/desktop.d.ts +2 -2
  347. package/dist/desktop.mjs +1 -1
  348. package/dist/{dev-guard-VIEEA4LS.cjs → dev-guard-M3ZCDWCK.cjs} +14 -11
  349. package/dist/{dev-guard-K3GJDPEQ.mjs → dev-guard-TFVWJNIB.mjs} +2 -2
  350. package/dist/{devtools-5WDQQDTA.cjs → devtools-IUU4SWQL.cjs} +78 -72
  351. package/dist/{devtools-DPYIYHTI.mjs → devtools-R77KAJA4.mjs} +11 -8
  352. package/dist/{devtools-client-BKBCCORT.cjs → devtools-client-3K67NMWA.cjs} +7 -4
  353. package/dist/{devtools-client-L4MUWD6K.mjs → devtools-client-WAMA6Q77.mjs} +1 -1
  354. package/dist/{devtools-ui-C2EMF2SO.cjs → devtools-ui-TPBPQEEB.cjs} +4 -1
  355. package/dist/{devtools-ui-BOG33MT5.mjs → devtools-ui-UYEVDADD.mjs} +1 -1
  356. package/dist/docs.cjs +73 -72
  357. package/dist/docs.d.mts +3 -3
  358. package/dist/docs.d.ts +3 -3
  359. package/dist/docs.mjs +9 -8
  360. package/dist/env-types.cjs +4 -4
  361. package/dist/env-types.mjs +1 -1
  362. package/dist/env.cjs +4 -4
  363. package/dist/env.mjs +1 -1
  364. package/dist/environment/vite.cjs +17 -16
  365. package/dist/environment/vite.d.mts +1 -0
  366. package/dist/environment/vite.d.ts +1 -0
  367. package/dist/environment/vite.mjs +6 -5
  368. package/dist/environment.cjs +3 -3
  369. package/dist/environment.mjs +1 -1
  370. package/dist/font.cjs +3 -3
  371. package/dist/font.mjs +1 -1
  372. package/dist/{handler.d-Oca5kNSz.d.ts → handler.d-DbZvbwNi.d.ts} +1 -1
  373. package/dist/{handler.d-GfNuz57p.d.mts → handler.d-fxTjv3Nn.d.mts} +1 -1
  374. package/dist/headers.cjs +6 -6
  375. package/dist/{headers.d-C_lsQIWA.d.mts → headers.d-OBHpGTF_.d.mts} +1 -1
  376. package/dist/{headers.d-b8gHJDvu.d.ts → headers.d-oeWybIk8.d.ts} +1 -1
  377. package/dist/headers.mjs +1 -1
  378. package/dist/i18n/client.cjs +23 -20
  379. package/dist/i18n/client.mjs +1 -1
  380. package/dist/i18n/index.cjs +12 -7
  381. package/dist/i18n/index.mjs +1 -1
  382. package/dist/i18n/server.cjs +11 -11
  383. package/dist/i18n/server.mjs +1 -1
  384. package/dist/image/server.cjs +8 -8
  385. package/dist/image/server.mjs +1 -1
  386. package/dist/image/sharp.cjs +21 -18
  387. package/dist/image/sharp.mjs +1 -1
  388. package/dist/image.cjs +7 -4
  389. package/dist/image.mjs +1 -1
  390. package/dist/index.cjs +229 -216
  391. package/dist/{index.d-Ckv6kHFm.d.ts → index.d-BM-dKdzH.d.ts} +1 -1
  392. package/dist/{index.d-BLtjh1aS.d.mts → index.d-CRrPQwlO.d.mts} +1 -1
  393. package/dist/index.d.mts +22 -22
  394. package/dist/index.d.ts +22 -22
  395. package/dist/index.mjs +42 -41
  396. package/dist/instrumentation.cjs +5 -5
  397. package/dist/instrumentation.mjs +1 -1
  398. package/dist/integrations/orm.cjs +7 -7
  399. package/dist/integrations/orm.d.mts +1 -1
  400. package/dist/integrations/orm.d.ts +1 -1
  401. package/dist/integrations/orm.mjs +3 -3
  402. package/dist/integrations.cjs +22 -22
  403. package/dist/integrations.d.mts +1 -1
  404. package/dist/integrations.d.ts +1 -1
  405. package/dist/integrations.mjs +2 -2
  406. package/dist/internal/app-markdown-runtime.cjs +14 -14
  407. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  408. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  409. package/dist/internal/app-markdown-runtime.mjs +2 -2
  410. package/dist/internal/build-runtime.cjs +187 -181
  411. package/dist/internal/build-runtime.d.mts +5 -5
  412. package/dist/internal/build-runtime.d.ts +5 -5
  413. package/dist/internal/build-runtime.mjs +36 -35
  414. package/dist/internal/cli-runtime.cjs +106 -100
  415. package/dist/internal/cli-runtime.d.mts +7 -7
  416. package/dist/internal/cli-runtime.d.ts +7 -7
  417. package/dist/internal/cli-runtime.mjs +18 -17
  418. package/dist/internal/client-error-overlay.cjs +12 -9
  419. package/dist/internal/client-error-overlay.mjs +2 -2
  420. package/dist/internal/client-runtime.cjs +37 -26
  421. package/dist/internal/client-runtime.d.mts +5 -5
  422. package/dist/internal/client-runtime.d.ts +5 -5
  423. package/dist/internal/client-runtime.mjs +1 -1
  424. package/dist/internal/compression-runtime.cjs +4 -4
  425. package/dist/internal/compression-runtime.d.mts +1 -1
  426. package/dist/internal/compression-runtime.d.ts +1 -1
  427. package/dist/internal/compression-runtime.mjs +1 -1
  428. package/dist/internal/config-runtime.cjs +86 -82
  429. package/dist/internal/config-runtime.d.mts +3 -3
  430. package/dist/internal/config-runtime.d.ts +3 -3
  431. package/dist/internal/config-runtime.mjs +10 -9
  432. package/dist/internal/desktop-guard.cjs +5 -5
  433. package/dist/internal/desktop-guard.mjs +1 -1
  434. package/dist/internal/docs-precompiled-runtime.cjs +10 -7
  435. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  436. package/dist/internal/form-actions-client.cjs +4 -1
  437. package/dist/internal/form-actions-client.mjs +1 -1
  438. package/dist/internal/form-actions.cjs +13 -13
  439. package/dist/internal/form-actions.mjs +1 -1
  440. package/dist/internal/infra-analytics-runtime.cjs +32 -29
  441. package/dist/internal/infra-analytics-runtime.mjs +5 -5
  442. package/dist/internal/island-codec.cjs +4 -4
  443. package/dist/internal/island-codec.mjs +1 -1
  444. package/dist/internal/island-value-store.cjs +4 -1
  445. package/dist/internal/island-value-store.mjs +1 -1
  446. package/dist/internal/islands-action-client.cjs +10 -10
  447. package/dist/internal/islands-action-client.mjs +1 -1
  448. package/dist/internal/islands-boot.cjs +6 -3
  449. package/dist/internal/islands-boot.mjs +1 -1
  450. package/dist/internal/islands-runtime.cjs +12 -9
  451. package/dist/internal/islands-runtime.mjs +2 -2
  452. package/dist/internal/islands-server-tree.cjs +4 -1
  453. package/dist/internal/islands-server-tree.mjs +1 -1
  454. package/dist/internal/islands-server.cjs +9 -6
  455. package/dist/internal/islands-server.mjs +1 -1
  456. package/dist/internal/islx-actions-client.cjs +13 -10
  457. package/dist/internal/islx-actions-client.mjs +1 -1
  458. package/dist/internal/islx-actions-server.cjs +4 -1
  459. package/dist/internal/islx-actions-server.mjs +1 -1
  460. package/dist/internal/islx-client.cjs +7 -4
  461. package/dist/internal/islx-client.mjs +2 -2
  462. package/dist/internal/islx-react.cjs +4 -1
  463. package/dist/internal/islx-server.cjs +4 -1
  464. package/dist/internal/isolated-boundary.cjs +5 -5
  465. package/dist/internal/isolated-boundary.mjs +1 -1
  466. package/dist/internal/metadata-image-runtime.cjs +8 -8
  467. package/dist/internal/metadata-image-runtime.mjs +1 -1
  468. package/dist/internal/native-server-fns.cjs +10 -10
  469. package/dist/internal/native-server-fns.mjs +4 -4
  470. package/dist/internal/navigation-neutral.cjs +6 -3
  471. package/dist/internal/navigation-neutral.mjs +1 -1
  472. package/dist/internal/product-telemetry-runtime.cjs +4 -4
  473. package/dist/internal/product-telemetry-runtime.mjs +3 -3
  474. package/dist/internal/production-node-env.cjs +3 -3
  475. package/dist/internal/production-node-env.mjs +2 -2
  476. package/dist/internal/production-runtime.cjs +97 -89
  477. package/dist/internal/production-runtime.d.mts +10 -10
  478. package/dist/internal/production-runtime.d.ts +10 -10
  479. package/dist/internal/production-runtime.mjs +6 -6
  480. package/dist/internal/react-cache.cjs +10 -7
  481. package/dist/internal/react-cache.mjs +1 -1
  482. package/dist/internal/renderer-islands.cjs +4 -1
  483. package/dist/internal/renderer-islands.mjs +1 -1
  484. package/dist/internal/request-cookies.cjs +3 -3
  485. package/dist/internal/request-cookies.mjs +1 -1
  486. package/dist/internal/server-fn-transform.cjs +3 -3
  487. package/dist/internal/server-fn-transform.mjs +1 -1
  488. package/dist/internal/server-tree.cjs +5 -5
  489. package/dist/internal/server-tree.mjs +1 -1
  490. package/dist/internal/spa-router.cjs +20 -20
  491. package/dist/internal/spa-router.d.mts +3 -3
  492. package/dist/internal/spa-router.d.ts +3 -3
  493. package/dist/internal/spa-router.mjs +1 -1
  494. package/dist/internal/start-manifest.cjs +4 -1
  495. package/dist/internal/start-manifest.d.mts +1 -1
  496. package/dist/internal/start-manifest.d.ts +1 -1
  497. package/dist/internal/start-manifest.mjs +1 -1
  498. package/dist/internal/vercel-edge-middleware.cjs +23 -20
  499. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  500. package/dist/json-ld.cjs +4 -1
  501. package/dist/json-ld.mjs +1 -1
  502. package/dist/layers-6R55QDT5.cjs +26 -0
  503. package/dist/{layers-744BBUY5.mjs → layers-O6GUR6LT.mjs} +7 -2
  504. package/dist/{libsql-http-M6LMNXCN.cjs → libsql-http-5GYGFVGC.cjs} +94 -87
  505. package/dist/{libsql-http-2QD224YS.mjs → libsql-http-PBJXNEOX.mjs} +1 -1
  506. package/dist/{manager-7BNSJKME.mjs → manager-EFPBRS3U.mjs} +4 -4
  507. package/dist/manager-STAB5TVZ.cjs +18 -0
  508. package/dist/markdown.cjs +12 -12
  509. package/dist/markdown.d.mts +1 -1
  510. package/dist/markdown.d.ts +1 -1
  511. package/dist/markdown.mjs +1 -1
  512. package/dist/middleware.cjs +32 -32
  513. package/dist/middleware.d.mts +1 -1
  514. package/dist/middleware.d.ts +1 -1
  515. package/dist/middleware.mjs +4 -4
  516. package/dist/mobile.cjs +4 -1
  517. package/dist/mobile.mjs +1 -1
  518. package/dist/{modules-3Q2ZCY4Q.mjs → modules-IVJXVV4W.mjs} +1 -1
  519. package/dist/modules-JDPCBWND.cjs +13 -0
  520. package/dist/{mount.d-BCS8mD4E.d.mts → mount.d-B7RiwjiO.d.mts} +1 -1
  521. package/dist/{mount.d-DEX8eref.d.ts → mount.d-TnD-Mebk.d.ts} +1 -1
  522. package/dist/{native-server-fn-handler-PYK65A46.mjs → native-server-fn-handler-IMLQMSIR.mjs} +1 -1
  523. package/dist/native-server-fn-handler-U7I6H6MM.cjs +30 -0
  524. package/dist/{native-specs-A7YOL463.mjs → native-specs-4DOPYSOJ.mjs} +1 -1
  525. package/dist/native-specs-IXHEIZCD.cjs +15 -0
  526. package/dist/{native-tree-AO7PQ7FR.mjs → native-tree-2GQMSOLV.mjs} +1 -1
  527. package/dist/native-tree-PHCV43W4.cjs +28 -0
  528. package/dist/native.cjs +4 -1
  529. package/dist/native.mjs +1 -1
  530. package/dist/{navigation-delegate.d-F83ugsZW.d.mts → navigation-delegate.d-Boz2511c.d.mts} +1 -1
  531. package/dist/{navigation-delegate.d-Cgi28e5Q.d.ts → navigation-delegate.d-VBCF0EeN.d.ts} +1 -1
  532. package/dist/navigation.cjs +26 -26
  533. package/dist/navigation.d.mts +4 -4
  534. package/dist/navigation.d.ts +4 -4
  535. package/dist/navigation.mjs +1 -1
  536. package/dist/{nitro-FK3SZM4H.mjs → nitro-6HSEGMWJ.mjs} +2 -2
  537. package/dist/{nitro-YDFMH5PY.cjs → nitro-K4MCBBB6.cjs} +31 -28
  538. package/dist/{node-module-bundle-ZWCQJCKA.mjs → node-module-bundle-4IN4YCDV.mjs} +1 -1
  539. package/dist/node-module-bundle-PHKRIHI6.cjs +15 -0
  540. package/dist/observability.cjs +3 -3
  541. package/dist/observability.mjs +1 -1
  542. package/dist/og.cjs +4 -1
  543. package/dist/og.mjs +1 -1
  544. package/dist/platform.cjs +4 -1
  545. package/dist/platform.mjs +1 -1
  546. package/dist/{plugin-EVKQZBNW.mjs → plugin-B7I5QVBE.mjs} +2 -2
  547. package/dist/plugin-QYBJSGHG.cjs +33 -0
  548. package/dist/plugin.cjs +176 -170
  549. package/dist/plugin.d.mts +5 -5
  550. package/dist/plugin.d.ts +5 -5
  551. package/dist/plugin.mjs +30 -29
  552. package/dist/{port-STMSGUVU.cjs → port-2YV5GBDN.cjs} +13 -10
  553. package/dist/{port-CEZTV776.mjs → port-4ZIDLV4Z.mjs} +1 -1
  554. package/dist/query/client.cjs +38 -34
  555. package/dist/query/client.mjs +1 -1
  556. package/dist/query/index.cjs +5 -5
  557. package/dist/query/index.mjs +1 -1
  558. package/dist/query/parsers.cjs +3 -3
  559. package/dist/query/parsers.mjs +1 -1
  560. package/dist/query/server.cjs +8 -5
  561. package/dist/query/server.mjs +1 -1
  562. package/dist/{render-plan.d-DCF2GZdD.d.ts → render-plan.d-BrumV_ZE.d.ts} +1 -1
  563. package/dist/{render-plan.d-BkVY4aFb.d.mts → render-plan.d-BwnmyfNk.d.mts} +1 -1
  564. package/dist/renderer/none/server.cjs +4 -1
  565. package/dist/renderer/none/server.mjs +1 -1
  566. package/dist/renderer/react/client.cjs +4 -1
  567. package/dist/renderer/react/client.mjs +1 -1
  568. package/dist/renderer/react/server.cjs +14 -11
  569. package/dist/renderer/react/server.mjs +1 -1
  570. package/dist/renderer/react/vite.cjs +4 -1
  571. package/dist/renderer/react/vite.mjs +1 -1
  572. package/dist/renderer-client.cjs +67 -64
  573. package/dist/renderer-client.d.mts +5 -5
  574. package/dist/renderer-client.d.ts +5 -5
  575. package/dist/renderer-client.mjs +1 -1
  576. package/dist/renderer.cjs +12 -6
  577. package/dist/renderer.d.mts +1 -1
  578. package/dist/renderer.d.ts +1 -1
  579. package/dist/renderer.mjs +4 -3
  580. package/dist/request.cjs +9 -4
  581. package/dist/{request.d-DMPB53-i.d.mts → request.d-Dd5nRTO5.d.mts} +1 -1
  582. package/dist/{request.d-C5o-4dU2.d.ts → request.d-NUi01-5e.d.ts} +1 -1
  583. package/dist/request.d.mts +2 -2
  584. package/dist/request.d.ts +2 -2
  585. package/dist/request.mjs +1 -1
  586. package/dist/{route-rendering.d-DDvArvik.d.mts → route-rendering.d-BK0Pf7_k.d.mts} +1 -1
  587. package/dist/{route-rendering.d-DfP6zRP7.d.ts → route-rendering.d-CJR5BPXV.d.ts} +1 -1
  588. package/dist/router.cjs +5 -5
  589. package/dist/{router.d-s40h7aoS.d.ts → router.d-C-JSFCPU.d.ts} +1 -1
  590. package/dist/{router.d-1Skf2XCO.d.mts → router.d-CNUS3x1j.d.mts} +1 -1
  591. package/dist/router.mjs +1 -1
  592. package/dist/routes.cjs +16 -16
  593. package/dist/routes.d.mts +1 -1
  594. package/dist/routes.d.ts +1 -1
  595. package/dist/routes.mjs +1 -1
  596. package/dist/{rsc-pipeline-O2YMVHUF.mjs → rsc-pipeline-DHISDFT7.mjs} +13 -12
  597. package/dist/rsc-pipeline-UBWVU3NF.cjs +92 -0
  598. package/dist/{runtime-K2X3IZAF.mjs → runtime-VUKMY44G.mjs} +16 -13
  599. package/dist/{runtime-WOTVFYQY.cjs → runtime-XKRQW3YT.cjs} +132 -119
  600. package/dist/{runtime.d-k-9kFUsM.d.ts → runtime.d-B2T4bM5_.d.ts} +1 -1
  601. package/dist/{runtime.d-Bykc5Qfg.d.mts → runtime.d-CsOpO6yQ.d.mts} +1 -1
  602. package/dist/safe-fetch.cjs +4 -4
  603. package/dist/safe-fetch.mjs +1 -1
  604. package/dist/{schema-dev-notice-EUPAUJVN.mjs → schema-dev-notice-EZAOFO7A.mjs} +1 -1
  605. package/dist/{schema-dev-notice-ZSCL47CT.cjs → schema-dev-notice-Y4J5KPEY.cjs} +16 -13
  606. package/dist/schema.cjs +4 -4
  607. package/dist/schema.mjs +1 -1
  608. package/dist/{search-client-GIXIEU75.mjs → search-client-HN3ZY6AK.mjs} +1 -1
  609. package/dist/search-client-Z7KDVD4C.cjs +15 -0
  610. package/dist/server-action-security.cjs +10 -10
  611. package/dist/server-action-security.mjs +1 -1
  612. package/dist/{server-components-status.d-DLNd1C5j.d.ts → server-components-status.d-Cc5rir0l.d.mts} +2 -2
  613. package/dist/{server-components-status.d-D-HixBe0.d.mts → server-components-status.d-DOYt4E_Q.d.ts} +2 -2
  614. package/dist/server-fn-client.cjs +4 -4
  615. package/dist/server-fn-client.mjs +1 -1
  616. package/dist/server-fn.cjs +17 -17
  617. package/dist/server-fn.mjs +1 -1
  618. package/dist/server-plugins.cjs +21 -16
  619. package/dist/server-plugins.d.mts +3 -3
  620. package/dist/server-plugins.d.ts +3 -3
  621. package/dist/server-plugins.mjs +1 -1
  622. package/dist/server-query-client.cjs +10 -10
  623. package/dist/server-query-client.mjs +1 -1
  624. package/dist/server-query.cjs +19 -19
  625. package/dist/server-query.mjs +1 -1
  626. package/dist/server.cjs +236 -224
  627. package/dist/server.d.mts +12 -12
  628. package/dist/server.d.ts +12 -12
  629. package/dist/server.mjs +37 -34
  630. package/dist/session-J7NTZI56.cjs +24 -0
  631. package/dist/{session-4IB34X35.mjs → session-ZFM3RDG2.mjs} +3 -3
  632. package/dist/{spa-router.d-Dl-EJeJT.d.ts → spa-router.d-C7FcpLxU.d.ts} +2 -2
  633. package/dist/{spa-router.d-DIlXwm00.d.mts → spa-router.d-Cq5UFJvq.d.mts} +2 -2
  634. package/dist/{ssg.d-D2ZV0bhs.d.mts → ssg.d-BzNZemk7.d.mts} +2 -2
  635. package/dist/{ssg.d-bE-ylg0e.d.ts → ssg.d-DUhacIxj.d.ts} +2 -2
  636. package/dist/storage.cjs +4 -4
  637. package/dist/storage.mjs +2 -2
  638. package/dist/{store-core.d-BmdnMopD.d.ts → store-core.d-BX3yXrxA.d.ts} +2 -2
  639. package/dist/{store-core.d-DPsCYzV7.d.mts → store-core.d-DbUAtSBK.d.mts} +2 -2
  640. package/dist/testing.cjs +65 -62
  641. package/dist/testing.d.mts +1 -1
  642. package/dist/testing.d.ts +1 -1
  643. package/dist/testing.mjs +5 -5
  644. package/dist/theme/client.cjs +5 -5
  645. package/dist/theme/client.mjs +1 -1
  646. package/dist/theme/index.cjs +4 -4
  647. package/dist/theme/index.mjs +1 -1
  648. package/dist/theme/runtime.cjs +3 -3
  649. package/dist/theme/runtime.mjs +1 -1
  650. package/dist/theme/server.cjs +8 -8
  651. package/dist/theme/server.mjs +1 -1
  652. package/dist/{utils.d-BFZQcBZV.d.ts → utils.d-BhJJEXzo.d.ts} +1 -1
  653. package/dist/{utils.d-nM3OHKq5.d.mts → utils.d-NOMkLFpC.d.mts} +1 -1
  654. package/dist/version.cjs +3 -3
  655. package/dist/version.mjs +2 -2
  656. package/dist/vite.cjs +169 -168
  657. package/dist/vite.d.mts +6 -6
  658. package/dist/vite.d.ts +6 -6
  659. package/dist/vite.mjs +30 -29
  660. package/dist/workflows.cjs +14 -14
  661. package/dist/workflows.mjs +2 -2
  662. package/package.json +5 -5
  663. package/LICENSE +0 -22
  664. package/dist/agent-mcp-handler-EXOG55M4.cjs +0 -21
  665. package/dist/analyzer-OWIHFO5M.cjs +0 -17
  666. package/dist/chunk-3376ZTRC.cjs +0 -1
  667. package/dist/chunk-K5NI5YQR.cjs +0 -1
  668. package/dist/chunk-MCJLA63J.cjs +0 -1
  669. package/dist/chunk-NOSLIDSG.cjs +0 -9
  670. package/dist/chunk-PAKB6JHX.cjs +0 -40
  671. package/dist/chunk-YTAABQEV.cjs +0 -1
  672. package/dist/layers-XLOMMQP7.cjs +0 -21
  673. package/dist/manager-37UJPUN4.cjs +0 -18
  674. package/dist/modules-KDHFBQ6L.cjs +0 -13
  675. package/dist/native-server-fn-handler-57TCQPSM.cjs +0 -30
  676. package/dist/native-specs-JDPH26AO.cjs +0 -15
  677. package/dist/native-tree-52CUAP3N.cjs +0 -28
  678. package/dist/node-module-bundle-TNSY5PAC.cjs +0 -15
  679. package/dist/plugin-MWO3G2XM.cjs +0 -33
  680. package/dist/rsc-pipeline-SFQSMVI7.cjs +0 -91
  681. package/dist/search-client-A7YJT7JZ.cjs +0 -15
  682. package/dist/session-MOYQJ7E6.cjs +0 -24
  683. package/dist/{chunk-IVP5Q4BX.mjs → chunk-6IKUYFNQ.mjs} +0 -0
  684. package/dist/{chunk-D7LXBLUW.mjs → chunk-FYTZZM5U.mjs} +3 -3
  685. /package/dist/{chunk-E72GG355.mjs → chunk-HDZ2AMDD.mjs} +0 -0
  686. /package/dist/{chunk-URBP6DLH.mjs → chunk-LQZXCSYG.mjs} +0 -0
  687. /package/dist/{chunk-M6AJZ4XR.mjs → chunk-QNJUQIUZ.mjs} +0 -0
@@ -2,15 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkY2FEFQAYcjs = require('./chunk-Y2FEFQAY.cjs');
5
+ var _chunkQCVP22KWcjs = require('./chunk-QCVP22KW.cjs');
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunk3SPECQXIcjs = require('./chunk-3SPECQXI.cjs');
10
+ var _chunkW4KSV6GXcjs = require('./chunk-W4KSV6GX.cjs');
11
11
 
12
12
 
13
- var _chunkRDADQG5Scjs = require('./chunk-RDADQG5S.cjs');
13
+ var _chunk6QWCFVGLcjs = require('./chunk-6QWCFVGL.cjs');
14
14
 
15
15
 
16
16
 
@@ -44,25 +44,25 @@ var _chunkRDADQG5Scjs = require('./chunk-RDADQG5S.cjs');
44
44
 
45
45
 
46
46
 
47
- var _chunkM4YXD6MDcjs = require('./chunk-M4YXD6MD.cjs');
47
+ var _chunkVWPGK6UVcjs = require('./chunk-VWPGK6UV.cjs');
48
48
 
49
49
 
50
50
 
51
51
 
52
- var _chunkRZI6436Fcjs = require('./chunk-RZI6436F.cjs');
52
+ var _chunkADCVSTFVcjs = require('./chunk-ADCVSTFV.cjs');
53
53
 
54
54
 
55
- var _chunkVACYUMXWcjs = require('./chunk-VACYUMXW.cjs');
55
+ var _chunkIGA3OTFYcjs = require('./chunk-IGA3OTFY.cjs');
56
56
 
57
57
 
58
- var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
58
+ var _chunkYQXLBYY2cjs = require('./chunk-YQXLBYY2.cjs');
59
59
 
60
60
 
61
61
 
62
- var _chunkEXPVSFAGcjs = require('./chunk-EXPVSFAG.cjs');
62
+ var _chunkT4VF6BYVcjs = require('./chunk-T4VF6BYV.cjs');
63
63
 
64
64
 
65
- var _chunkUGWKNZ4Ucjs = require('./chunk-UGWKNZ4U.cjs');
65
+ var _chunkO47IT4CScjs = require('./chunk-O47IT4CS.cjs');
66
66
 
67
67
 
68
68
 
@@ -71,10 +71,10 @@ var _chunkUGWKNZ4Ucjs = require('./chunk-UGWKNZ4U.cjs');
71
71
 
72
72
 
73
73
 
74
- var _chunkYSRZSKQBcjs = require('./chunk-YSRZSKQB.cjs');
74
+ var _chunkIGBQSUT5cjs = require('./chunk-IGBQSUT5.cjs');
75
75
 
76
76
 
77
- var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
77
+ var _chunkXVD5Y6S4cjs = require('./chunk-XVD5Y6S4.cjs');
78
78
 
79
79
 
80
80
 
@@ -89,21 +89,21 @@ var _chunk3HLQTOVUcjs = require('./chunk-3HLQTOVU.cjs');
89
89
 
90
90
 
91
91
 
92
- var _chunkSCE7VWPNcjs = require('./chunk-SCE7VWPN.cjs');
92
+ var _chunkMZG5M4JScjs = require('./chunk-MZG5M4JS.cjs');
93
93
 
94
94
 
95
- var _chunkJH4CDG4Gcjs = require('./chunk-JH4CDG4G.cjs');
95
+ var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
96
96
 
97
97
 
98
- var _chunkEA5HVG45cjs = require('./chunk-EA5HVG45.cjs');
98
+ var _chunkMUQP2APNcjs = require('./chunk-MUQP2APN.cjs');
99
99
 
100
100
 
101
101
 
102
102
 
103
- var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
103
+ var _chunk7O3YJ6NPcjs = require('./chunk-7O3YJ6NP.cjs');
104
104
 
105
105
 
106
- var _chunkNDMPGFKLcjs = require('./chunk-NDMPGFKL.cjs');
106
+ var _chunkSIQPXYBBcjs = require('./chunk-SIQPXYBB.cjs');
107
107
 
108
108
 
109
109
 
@@ -147,45 +147,45 @@ var _chunkNDMPGFKLcjs = require('./chunk-NDMPGFKL.cjs');
147
147
 
148
148
 
149
149
 
150
- var _chunkRTAWQXMEcjs = require('./chunk-RTAWQXME.cjs');
151
150
 
151
+ var _chunkZCT6B5PQcjs = require('./chunk-ZCT6B5PQ.cjs');
152
152
 
153
153
 
154
- var _chunkXJDB564Acjs = require('./chunk-XJDB564A.cjs');
155
154
 
155
+ var _chunkP4ZLFUNBcjs = require('./chunk-P4ZLFUNB.cjs');
156
156
 
157
157
 
158
- var _chunkERMUL73Lcjs = require('./chunk-ERMUL73L.cjs');
159
158
 
159
+ var _chunkQTGYT2DFcjs = require('./chunk-QTGYT2DF.cjs');
160
160
 
161
161
 
162
162
 
163
- var _chunkL2GUEYHRcjs = require('./chunk-L2GUEYHR.cjs');
164
163
 
164
+ var _chunkVZ2P6GRCcjs = require('./chunk-VZ2P6GRC.cjs');
165
165
 
166
- var _chunkIIHZ2BEEcjs = require('./chunk-IIHZ2BEE.cjs');
167
166
 
167
+ var _chunkQZRFEHMScjs = require('./chunk-QZRFEHMS.cjs');
168
168
 
169
169
 
170
170
 
171
- var _chunkSTF6VDYQcjs = require('./chunk-STF6VDYQ.cjs');
172
171
 
172
+ var _chunkRQSPBWXJcjs = require('./chunk-RQSPBWXJ.cjs');
173
173
 
174
- var _chunkZ43CIBURcjs = require('./chunk-Z43CIBUR.cjs');
175
174
 
175
+ var _chunkGUYGMTWAcjs = require('./chunk-GUYGMTWA.cjs');
176
176
 
177
177
 
178
178
 
179
- var _chunkEZUTDTFMcjs = require('./chunk-EZUTDTFM.cjs');
180
179
 
180
+ var _chunkERSLQ4C7cjs = require('./chunk-ERSLQ4C7.cjs');
181
181
 
182
- var _chunkDA432P2Fcjs = require('./chunk-DA432P2F.cjs');
183
182
 
183
+ var _chunk25CHWAZYcjs = require('./chunk-25CHWAZY.cjs');
184
184
 
185
185
 
186
186
 
187
- var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
188
187
 
188
+ var _chunkPFVNPOKNcjs = require('./chunk-PFVNPOKN.cjs');
189
189
 
190
190
 
191
191
 
@@ -195,185 +195,194 @@ var _chunk52Q4OB4Acjs = require('./chunk-52Q4OB4A.cjs');
195
195
 
196
196
 
197
197
 
198
- var _chunkT7UC2ORAcjs = require('./chunk-T7UC2ORA.cjs');
198
+ var _chunkLEZJZX4Ccjs = require('./chunk-LEZJZX4C.cjs');
199
199
 
200
200
 
201
- var _chunkHQKCSJEHcjs = require('./chunk-HQKCSJEH.cjs');
202
201
 
202
+ var _chunkCYUTK4JPcjs = require('./chunk-CYUTK4JP.cjs');
203
203
 
204
- var _chunk3EIPOTZVcjs = require('./chunk-3EIPOTZV.cjs');
205
204
 
205
+ var _chunkXH4GQ7MTcjs = require('./chunk-XH4GQ7MT.cjs');
206
206
 
207
207
 
208
+ var _chunkTP7JAC3Tcjs = require('./chunk-TP7JAC3T.cjs');
208
209
 
209
- var _chunkJDT733EWcjs = require('./chunk-JDT733EW.cjs');
210
210
 
211
211
 
212
212
 
213
- var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
213
+ var _chunk27IPPPCVcjs = require('./chunk-27IPPPCV.cjs');
214
214
 
215
215
 
216
216
 
217
+ var _chunkYQ5NVEFScjs = require('./chunk-YQ5NVEFS.cjs');
217
218
 
218
219
 
219
220
 
220
221
 
221
- var _chunk5LJF4KUZcjs = require('./chunk-5LJF4KUZ.cjs');
222
222
 
223
223
 
224
224
 
225
+ var _chunkU2HFXURZcjs = require('./chunk-U2HFXURZ.cjs');
225
226
 
226
227
 
227
228
 
228
229
 
229
- var _chunkDVAZ53X6cjs = require('./chunk-DVAZ53X6.cjs');
230
230
 
231
231
 
232
232
 
233
- var _chunkX333W5KVcjs = require('./chunk-X333W5KV.cjs');
233
+ var _chunkN4AM7Q34cjs = require('./chunk-N4AM7Q34.cjs');
234
234
 
235
235
 
236
- var _chunkUA77C2ZAcjs = require('./chunk-UA77C2ZA.cjs');
237
236
 
237
+ var _chunkYZMSJRM5cjs = require('./chunk-YZMSJRM5.cjs');
238
238
 
239
239
 
240
- var _chunkYDXLC4DWcjs = require('./chunk-YDXLC4DW.cjs');
240
+ var _chunkHF3JJPH4cjs = require('./chunk-HF3JJPH4.cjs');
241
241
 
242
242
 
243
- var _chunkBNH53KOTcjs = require('./chunk-BNH53KOT.cjs');
244
243
 
244
+ var _chunkXZ6L3FUUcjs = require('./chunk-XZ6L3FUU.cjs');
245
245
 
246
- var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
247
246
 
247
+ var _chunkSZBBBLLScjs = require('./chunk-SZBBBLLS.cjs');
248
248
 
249
- var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
250
249
 
250
+ var _chunkIVEV44O2cjs = require('./chunk-IVEV44O2.cjs');
251
251
 
252
- var _chunkTWFJJPE7cjs = require('./chunk-TWFJJPE7.cjs');
253
252
 
253
+ var _chunkKSRWTQ6Jcjs = require('./chunk-KSRWTQ6J.cjs');
254
254
 
255
255
 
256
- var _chunkSIECKBNKcjs = require('./chunk-SIECKBNK.cjs');
256
+ var _chunkZTNU4XCCcjs = require('./chunk-ZTNU4XCC.cjs');
257
257
 
258
258
 
259
- var _chunkSXXSQVKKcjs = require('./chunk-SXXSQVKK.cjs');
260
259
 
260
+ var _chunkMNBFSAWFcjs = require('./chunk-MNBFSAWF.cjs');
261
261
 
262
262
 
263
- var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
263
+ var _chunkYCIFGYBYcjs = require('./chunk-YCIFGYBY.cjs');
264
264
 
265
265
 
266
266
 
267
+ var _chunkIDUGG7VRcjs = require('./chunk-IDUGG7VR.cjs');
267
268
 
268
- var _chunkJYQ6DGPWcjs = require('./chunk-JYQ6DGPW.cjs');
269
269
 
270
270
 
271
- var _chunkRKQOMG2Xcjs = require('./chunk-RKQOMG2X.cjs');
272
271
 
272
+ var _chunk5P3TZGS3cjs = require('./chunk-5P3TZGS3.cjs');
273
273
 
274
274
 
275
+ var _chunk3ACTVXZGcjs = require('./chunk-3ACTVXZG.cjs');
275
276
 
276
- var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
277
277
 
278
278
 
279
- var _chunkY3WG64CPcjs = require('./chunk-Y3WG64CP.cjs');
280
279
 
280
+ var _chunkPYPHM7AScjs = require('./chunk-PYPHM7AS.cjs');
281
281
 
282
282
 
283
+ var _chunkCH2JX3CMcjs = require('./chunk-CH2JX3CM.cjs');
283
284
 
284
- var _chunkJRGR5Z4Kcjs = require('./chunk-JRGR5Z4K.cjs');
285
285
 
286
286
 
287
287
 
288
+ var _chunk6VC7NUY3cjs = require('./chunk-6VC7NUY3.cjs');
288
289
 
289
- var _chunkI2RBHZF7cjs = require('./chunk-I2RBHZF7.cjs');
290
290
 
291
291
 
292
292
 
293
- var _chunkZMSVKVI3cjs = require('./chunk-ZMSVKVI3.cjs');
293
+ var _chunkVB7P66Q4cjs = require('./chunk-VB7P66Q4.cjs');
294
294
 
295
295
 
296
296
 
297
+ var _chunkB2VSX33Tcjs = require('./chunk-B2VSX33T.cjs');
297
298
 
298
- var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
299
299
 
300
300
 
301
- var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
302
301
 
302
+ var _chunk7ZDLE77Pcjs = require('./chunk-7ZDLE77P.cjs');
303
303
 
304
304
 
305
+ var _chunkH5AC3XSEcjs = require('./chunk-H5AC3XSE.cjs');
305
306
 
306
307
 
307
308
 
308
- var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
309
309
 
310
310
 
311
311
 
312
- var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
312
+ var _chunk7GKZDRY2cjs = require('./chunk-7GKZDRY2.cjs');
313
313
 
314
314
 
315
315
 
316
- var _chunkPLJMEUANcjs = require('./chunk-PLJMEUAN.cjs');
316
+ var _chunkK6LZMZNBcjs = require('./chunk-K6LZMZNB.cjs');
317
317
 
318
318
 
319
- var _chunkNOSLIDSGcjs = require('./chunk-NOSLIDSG.cjs');
320
319
 
320
+ var _chunkRFKPIAOFcjs = require('./chunk-RFKPIAOF.cjs');
321
321
 
322
- var _chunkPMJSG4JScjs = require('./chunk-PMJSG4JS.cjs');
323
322
 
323
+ var _chunkZ7YIQ7AJcjs = require('./chunk-Z7YIQ7AJ.cjs');
324
324
 
325
325
 
326
- var _chunkMCSRMEQVcjs = require('./chunk-MCSRMEQV.cjs');
326
+ var _chunkG5KGLMPNcjs = require('./chunk-G5KGLMPN.cjs');
327
327
 
328
328
 
329
329
 
330
- var _chunkRWR7SMD7cjs = require('./chunk-RWR7SMD7.cjs');
330
+ var _chunkJ2JMESBJcjs = require('./chunk-J2JMESBJ.cjs');
331
331
 
332
332
 
333
333
 
334
+ var _chunkS2QSTMBEcjs = require('./chunk-S2QSTMBE.cjs');
334
335
 
335
336
 
336
- var _chunkEUZFBHPPcjs = require('./chunk-EUZFBHPP.cjs');
337
337
 
338
338
 
339
- var _chunkDBYNZIIQcjs = require('./chunk-DBYNZIIQ.cjs');
340
339
 
340
+ var _chunkO7B6LJWEcjs = require('./chunk-O7B6LJWE.cjs');
341
341
 
342
342
 
343
+ var _chunkZ2JQR56Wcjs = require('./chunk-Z2JQR56W.cjs');
343
344
 
344
345
 
345
- var _chunkNLBHLPEOcjs = require('./chunk-NLBHLPEO.cjs');
346
346
 
347
347
 
348
348
 
349
- var _chunkDVJM55D2cjs = require('./chunk-DVJM55D2.cjs');
349
+ var _chunkVIDUNAQEcjs = require('./chunk-VIDUNAQE.cjs');
350
350
 
351
351
 
352
352
 
353
+ var _chunk6FIY4KBCcjs = require('./chunk-6FIY4KBC.cjs');
353
354
 
354
355
 
355
- var _chunkH7OFZJCVcjs = require('./chunk-H7OFZJCV.cjs');
356
356
 
357
357
 
358
- var _chunkA25FXJ7Dcjs = require('./chunk-A25FXJ7D.cjs');
359
358
 
359
+ var _chunkQBMMQS25cjs = require('./chunk-QBMMQS25.cjs');
360
360
 
361
361
 
362
+ var _chunkSWOJU7LIcjs = require('./chunk-SWOJU7LI.cjs');
362
363
 
363
- var _chunk2RSVYJT6cjs = require('./chunk-2RSVYJT6.cjs');
364
364
 
365
365
 
366
- var _chunk7JUIK547cjs = require('./chunk-7JUIK547.cjs');
367
366
 
367
+ var _chunkIBZW57NWcjs = require('./chunk-IBZW57NW.cjs');
368
368
 
369
369
 
370
- var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
370
+ var _chunk7MQMWGTLcjs = require('./chunk-7MQMWGTL.cjs');
371
371
 
372
372
 
373
373
 
374
- var _chunkUZM3PDKKcjs = require('./chunk-UZM3PDKK.cjs');
374
+ var _chunkTFCBJFP7cjs = require('./chunk-TFCBJFP7.cjs');
375
+
376
+
377
+
378
+
379
+ var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
380
+
381
+ // src/vite.ts
382
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
375
383
 
376
384
  // src/form-actions-transform.ts
385
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
377
386
  var _crypto = require('crypto');
378
387
  var _compiler = require('@farm.js/islx/compiler');
379
388
  var _path2 = require('path'); var path2 = _interopRequireWildcard(_path2); var path6 = _interopRequireWildcard(_path2); var path3 = _interopRequireWildcard(_path2);
@@ -403,10 +412,11 @@ var _async_hooks = require('async_hooks');
403
412
  var _module = require('module');
404
413
 
405
414
  // src/dev-preview-guard.ts
415
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
406
416
  var _fs = require('fs'); var fs2 = _interopRequireWildcard(_fs); var fs = _interopRequireWildcard(_fs);
407
417
 
408
418
  function isFarmPreviewTunnelRequest(headers) {
409
- return headers[_chunkHQKCSJEHcjs.FARM_PREVIEW_REQUEST_HEADER] !== void 0;
419
+ return headers[_chunkXH4GQ7MTcjs.FARM_PREVIEW_REQUEST_HEADER] !== void 0;
410
420
  }
411
421
  var VITE_DEFAULT_FS_DENY = [
412
422
  ".env",
@@ -521,6 +531,7 @@ function isInside(directory, file) {
521
531
  }
522
532
 
523
533
  // src/server/dev-cors.ts
534
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
524
535
  var VITE_DEFAULT_CORS_ORIGIN = /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/;
525
536
  var VITE_DEFAULT_CORS_METHODS = "GET,HEAD,PUT,PATCH,POST,DELETE";
526
537
  function appendVary(res, value) {
@@ -558,6 +569,7 @@ function createFarmDevViteCorsMiddleware() {
558
569
  var _url = require('url');
559
570
 
560
571
  // src/dev-static.ts
572
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
561
573
 
562
574
 
563
575
  function shouldBypassFarmRouterForDottedPath(pathname, routeManager, baseDirs, generatedPaths = [], method = "GET") {
@@ -707,6 +719,7 @@ function devServableFileExists(pathname, baseDirs) {
707
719
  }
708
720
 
709
721
  // src/server-query-boundary.ts
722
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
710
723
  var SERVER_FN_FACTORIES = ["createServerQuery", "createServerFn"];
711
724
  var FARM_CORE_IMPORT_RE = /import\s*(?!type\b)(?:[\w$]+\s*,\s*)?\{([^}]*)\}\s*from\s*(["'])@farm\.js\/core(?:\/[\w./-]+)?\2/g;
712
725
  function findClientServerFnViolation(code, id) {
@@ -724,7 +737,7 @@ function findClientServerFnViolation(code, id) {
724
737
  return null;
725
738
  }
726
739
  function createServerFnBoundaryDiagnostic(violation, id, location) {
727
- return _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
740
+ return _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
728
741
  "CLIENT_SERVER_FUNCTION",
729
742
  id,
730
743
  `${violation.factory} handlers run only on the server, but this module is bundled into the client, so the handler and its Node-only imports would run in the browser.`,
@@ -733,6 +746,7 @@ function createServerFnBoundaryDiagnostic(violation, id, location) {
733
746
  }
734
747
 
735
748
  // src/client-boundary-env.ts
749
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
736
750
 
737
751
  var FUNCTION_BODY_TYPES = /* @__PURE__ */ new Set([
738
752
  "FunctionDeclaration",
@@ -983,21 +997,21 @@ function readPropertyKey(property) {
983
997
  function createClientBoundaryDiagnostic(file, finding, location) {
984
998
  switch (finding.kind) {
985
999
  case "server-env":
986
- return _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
1000
+ return _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
987
1001
  "CLIENT_SERVER_ENV",
988
1002
  file,
989
1003
  `process.env.${finding.name} is read at module scope in a module compiled for the browser, where it is undefined.`,
990
1004
  location
991
1005
  );
992
1006
  case "public-env":
993
- return _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
1007
+ return _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
994
1008
  "CLIENT_PROCESS_ENV_PUBLIC",
995
1009
  file,
996
1010
  `process.env.${finding.name} is declared public, but process.env is not populated in the browser, so this module-scope read is undefined there.`,
997
1011
  location
998
1012
  );
999
1013
  case "builtin":
1000
- return _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
1014
+ return _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
1001
1015
  "CLIENT_NODE_BUILTIN",
1002
1016
  file,
1003
1017
  `"${finding.name}" is imported into a module compiled for the browser, which gets a stub whose exports without a Web API equivalent are undefined.`,
@@ -1007,6 +1021,7 @@ function createClientBoundaryDiagnostic(file, finding, location) {
1007
1021
  }
1008
1022
 
1009
1023
  // src/image-vite.ts
1024
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1010
1025
  var _promises = require('fs/promises');
1011
1026
 
1012
1027
  var _imagesize = require('image-size');
@@ -1074,6 +1089,7 @@ async function createBlurDataURL(bytes) {
1074
1089
  }
1075
1090
 
1076
1091
  // src/dev/deferred-setup.ts
1092
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1077
1093
  function createFarmDeferredMiddleware(ready) {
1078
1094
  const stack = [];
1079
1095
  const run = (req, res, next) => {
@@ -1113,6 +1129,7 @@ function createFarmDeferredMiddleware(ready) {
1113
1129
 
1114
1130
 
1115
1131
  // src/islands-react-cache-transform.ts
1132
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1116
1133
 
1117
1134
  var _parseAst = require('rolldown/parseAst');
1118
1135
  var FARM_REACT_CACHE_MODULE = "@farm.js/core/internal/react-cache";
@@ -1207,8 +1224,9 @@ import { ${[...used].map((name) => `${name} as ${REACT_CACHE_APIS[name]}`).join(
1207
1224
  }
1208
1225
 
1209
1226
  // src/navigation/page-data-error.ts
1227
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1210
1228
  function resolveFarmPageDataFailure(error) {
1211
- if (_chunk7JUIK547cjs.isFarmNotFoundError.call(void 0, error)) {
1229
+ if (_chunk7MQMWGTLcjs.isFarmNotFoundError.call(void 0, error)) {
1212
1230
  return {
1213
1231
  status: 404,
1214
1232
  payload: {
@@ -1237,7 +1255,8 @@ function resolveFarmPageDataFailure(error) {
1237
1255
  }
1238
1256
 
1239
1257
  // src/openapi/dev-status.ts
1240
- function reportOpenAPIDevGenerationResult(spec, output = _chunk7U4XF76Rcjs.logger) {
1258
+ _chunkUGL4BDNBcjs.init_define_import_meta.call(void 0, );
1259
+ function reportOpenAPIDevGenerationResult(spec, output = _chunk7ZDLE77Pcjs.logger) {
1241
1260
  if (spec) {
1242
1261
  output.success("\u2705 OpenAPI documentation enabled");
1243
1262
  return;
@@ -1248,13 +1267,13 @@ function reportOpenAPIDevGenerationResult(spec, output = _chunk7U4XF76Rcjs.logge
1248
1267
  // src/vite.ts
1249
1268
  var SERVER_FN_TRANSFORM_PLUGIN = "@farm.js/plugin/rsc:server-fn-actions";
1250
1269
  function farmLlmsTxtGeneratedPaths(config) {
1251
- const llms = _chunkDA432P2Fcjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([config, 'access', _62 => _62.agent, 'optionalAccess', _63 => _63.llmsTxt]));
1270
+ const llms = _chunk25CHWAZYcjs.resolveFarmLlmsTxtConfig.call(void 0, _optionalChain([config, 'access', _62 => _62.agent, 'optionalAccess', _63 => _63.llmsTxt]));
1252
1271
  if (!llms.enabled) return [];
1253
1272
  return llms.full ? ["/llms.txt", "/llms-full.txt"] : ["/llms.txt"];
1254
1273
  }
1255
1274
  function farmAgentGeneratedPaths(config) {
1256
- const crawlers = _chunkEZUTDTFMcjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([config, 'access', _64 => _64.agent, 'optionalAccess', _65 => _65.crawlers]));
1257
- const sitemap = _chunkEZUTDTFMcjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([config, 'access', _66 => _66.agent, 'optionalAccess', _67 => _67.sitemap]));
1275
+ const crawlers = _chunkERSLQ4C7cjs.resolveFarmAgentCrawlers.call(void 0, _optionalChain([config, 'access', _64 => _64.agent, 'optionalAccess', _65 => _65.crawlers]));
1276
+ const sitemap = _chunkERSLQ4C7cjs.resolveFarmAgentSitemap.call(void 0, _optionalChain([config, 'access', _66 => _66.agent, 'optionalAccess', _67 => _67.sitemap]));
1258
1277
  return [
1259
1278
  ...farmLlmsTxtGeneratedPaths(config),
1260
1279
  ...sitemap.enabled ? ["/sitemap.xml"] : [],
@@ -1290,22 +1309,22 @@ function loadFarmDocsDevRuntime() {
1290
1309
  return import("./docs.cjs");
1291
1310
  }
1292
1311
  function loadFarmDocsSearchDevRuntime() {
1293
- return import("./search-client-A7YJT7JZ.cjs");
1312
+ return import("./search-client-Z7KDVD4C.cjs");
1294
1313
  }
1295
1314
  function loadFarmOpenAPIDevRuntime() {
1296
- return import("./manager-37UJPUN4.cjs");
1315
+ return import("./manager-STAB5TVZ.cjs");
1297
1316
  }
1298
1317
  function loadFarmWorkflowsDevRuntime() {
1299
1318
  return import("./workflows.cjs");
1300
1319
  }
1301
1320
  function loadFarmDevtoolsSnapshotRuntime() {
1302
- return import("./devtools-5WDQQDTA.cjs");
1321
+ return import("./devtools-IUU4SWQL.cjs");
1303
1322
  }
1304
1323
  function loadFarmDevtoolsUIRuntime() {
1305
- return import("./devtools-ui-C2EMF2SO.cjs");
1324
+ return import("./devtools-ui-TPBPQEEB.cjs");
1306
1325
  }
1307
1326
  function loadFarmDevtoolsClientRuntime() {
1308
- return import("./devtools-client-BKBCCORT.cjs");
1327
+ return import("./devtools-client-3K67NMWA.cjs");
1309
1328
  }
1310
1329
  function farmI18nClientBridgePlugin() {
1311
1330
  return {
@@ -1324,7 +1343,7 @@ function farmI18nClientBridgePlugin() {
1324
1343
  };
1325
1344
  }
1326
1345
  function farmNavigationPlugin(renderer) {
1327
- const otherRenderer = !_chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, renderer) && !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer || void 0) && _optionalChain([(renderer || void 0), 'optionalAccess', _69 => _69.name]) !== "preact";
1346
+ const otherRenderer = !_chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, renderer) && !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer || void 0) && _optionalChain([(renderer || void 0), 'optionalAccess', _69 => _69.name]) !== "preact";
1328
1347
  return {
1329
1348
  name: "farm:navigation",
1330
1349
  config() {
@@ -1349,16 +1368,16 @@ var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
1349
1368
  var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
1350
1369
  var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
1351
1370
  var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
1352
- _chunkM4YXD6MDcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
1353
- new RegExp(`^${_chunkRTAWQXMEcjs.FARM_RESOLVE_FROM_PREFIX}`),
1371
+ _chunkVWPGK6UVcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
1372
+ new RegExp(`^${_chunkZCT6B5PQcjs.FARM_RESOLVE_FROM_PREFIX}`),
1354
1373
  // What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
1355
1374
  // included.
1356
1375
  /^node:/,
1357
- _chunkM4YXD6MDcjs.exactIdPattern.call(void 0, _module.builtinModules)
1376
+ _chunkVWPGK6UVcjs.exactIdPattern.call(void 0, _module.builtinModules)
1358
1377
  ];
1359
1378
  var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
1360
- _chunkM4YXD6MDcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
1361
- new RegExp(`^${_chunkRTAWQXMEcjs.FARM_BROWSER_BUILTIN_PREFIX}`)
1379
+ _chunkVWPGK6UVcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
1380
+ new RegExp(`^${_chunkZCT6B5PQcjs.FARM_BROWSER_BUILTIN_PREFIX}`)
1362
1381
  ];
1363
1382
  function createFarmPlatformClientModule(platform) {
1364
1383
  return `export function platform() { return ${JSON.stringify(platform)}; }
@@ -1389,27 +1408,36 @@ function farmIslandContainersPlugin(config) {
1389
1408
  root = config.root || resolved.root;
1390
1409
  farmApi = _optionalChain([resolved, 'access', _70 => _70.plugins, 'access', _71 => _71.find, 'call', _72 => _72((plugin) => plugin.name === "farm"), 'optionalAccess', _73 => _73.api]);
1391
1410
  },
1392
- transform(code, id) {
1393
- if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _74 => _74.experimental, 'optionalAccess', _75 => _75.serverComponents])) !== "islands") {
1394
- return null;
1395
- }
1396
- if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
1397
- return null;
1411
+ transform: {
1412
+ // Most modules a build transforms open no container element. The bundler skips them
1413
+ // without calling into JavaScript.
1414
+ filter: {
1415
+ id: { include: /\.[jt]sx(?:$|\?)/, exclude: /\/node_modules\// },
1416
+ code: _chunkZCT6B5PQcjs.FARM_ISLAND_CONTAINER_TAG
1417
+ },
1418
+ handler(code, id) {
1419
+ if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) !== "islands") {
1420
+ return null;
1421
+ }
1422
+ if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
1423
+ return null;
1424
+ }
1425
+ if (_chunkZCT6B5PQcjs.hasUseClientDirective.call(void 0, code)) return null;
1426
+ if (!_chunkZCT6B5PQcjs.FARM_ISLAND_CONTAINER_TAG.test(code)) return null;
1427
+ const file = id.split("?", 1)[0];
1428
+ const inspect = () => _chunkZCT6B5PQcjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
1429
+ const bindings = farmApi ? farmApi.inspectPackages(inspect) : inspect();
1430
+ if (bindings.length === 0) return null;
1431
+ const grown = _chunkZCT6B5PQcjs.wrapFarmIslandContainers.call(void 0, {
1432
+ code,
1433
+ file,
1434
+ bindings,
1435
+ reference: _chunkZCT6B5PQcjs.farmIslandContainerReferencePath.call(void 0, root)
1436
+ });
1437
+ if (grown === null) return null;
1438
+ _chunkZCT6B5PQcjs.ensureFarmIslandContainerReference.call(void 0, root);
1439
+ return { code: grown, map: null };
1398
1440
  }
1399
- if (_chunkRTAWQXMEcjs.hasUseClientDirective.call(void 0, code)) return null;
1400
- const file = id.split("?", 1)[0];
1401
- const inspect = () => _chunkRTAWQXMEcjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
1402
- const bindings = farmApi ? farmApi.inspectPackages(inspect) : inspect();
1403
- if (bindings.length === 0) return null;
1404
- const grown = _chunkRTAWQXMEcjs.wrapFarmIslandContainers.call(void 0, {
1405
- code,
1406
- file,
1407
- bindings,
1408
- reference: _chunkRTAWQXMEcjs.farmIslandContainerReferencePath.call(void 0, root)
1409
- });
1410
- if (grown === null) return null;
1411
- _chunkRTAWQXMEcjs.ensureFarmIslandContainerReference.call(void 0, root);
1412
- return { code: grown, map: null };
1413
1441
  }
1414
1442
  };
1415
1443
  }
@@ -1422,18 +1450,18 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1422
1450
  config(config) {
1423
1451
  const appRoot = path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())));
1424
1452
  if (options.distDir) {
1425
- _chunkRTAWQXMEcjs.usePackageScanCacheFile.call(void 0,
1453
+ _chunkZCT6B5PQcjs.usePackageScanCacheFile.call(void 0,
1426
1454
  path6.resolve(appRoot, options.distDir, "cache", "package-scans.json")
1427
1455
  );
1428
1456
  }
1429
- const bundledPackages = _chunkRTAWQXMEcjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
1457
+ const bundledPackages = _chunkZCT6B5PQcjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
1430
1458
  const prebundle = options.prebundleServerPackages ? createFarmServerPrebundleConfig(bundledPackages) : {};
1431
- _chunkRTAWQXMEcjs.persistPackageScanCache.call(void 0, );
1459
+ _chunkZCT6B5PQcjs.persistPackageScanCache.call(void 0, );
1432
1460
  return {
1433
1461
  optimizeDeps: {
1434
1462
  // A package that defines fonts is served unbundled, so Farm's font compiler sees it.
1435
1463
  exclude: bundledPackages.filter(({ fonts }) => fonts).map(({ name }) => name),
1436
- rolldownOptions: { plugins: [_chunkRTAWQXMEcjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] }
1464
+ rolldownOptions: { plugins: [_chunkZCT6B5PQcjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] }
1437
1465
  },
1438
1466
  ssr: {
1439
1467
  noExternal: [
@@ -1453,14 +1481,14 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1453
1481
  resolveId: {
1454
1482
  filter: { id: FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER },
1455
1483
  handler(id, importer, options2) {
1456
- if (id === FARM_PLATFORM_ENTRY) return _optionalChain([options2, 'optionalAccess', _76 => _76.ssr]) ? null : FARM_PLATFORM_CLIENT_ID;
1484
+ if (id === FARM_PLATFORM_ENTRY) return _optionalChain([options2, 'optionalAccess', _74 => _74.ssr]) ? null : FARM_PLATFORM_CLIENT_ID;
1457
1485
  if (id === SERVER_ONLY_PACKAGE) {
1458
- if (_optionalChain([options2, 'optionalAccess', _77 => _77.ssr]) || _optionalChain([options2, 'optionalAccess', _78 => _78.scan])) {
1486
+ if (_optionalChain([options2, 'optionalAccess', _75 => _75.ssr]) || _optionalChain([options2, 'optionalAccess', _76 => _76.scan])) {
1459
1487
  return FARM_SERVER_ONLY_PACKAGE_ID;
1460
1488
  }
1461
1489
  this.error(
1462
- _chunkRTAWQXMEcjs.formatFarmDiagnostic.call(void 0,
1463
- _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
1490
+ _chunkZCT6B5PQcjs.formatFarmDiagnostic.call(void 0,
1491
+ _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
1464
1492
  "CLIENT_SERVER_ONLY_IMPORT",
1465
1493
  _nullishCoalesce(importer, () => ( "<unknown module>")),
1466
1494
  `${importer ? "This module" : "A module"} imports "server-only", so it must not reach the browser, but client code imports it.`
@@ -1469,10 +1497,10 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1469
1497
  )
1470
1498
  );
1471
1499
  }
1472
- if (!_optionalChain([options2, 'optionalAccess', _79 => _79.ssr]) && _module.isBuiltin.call(void 0, id)) {
1473
- return _chunkRTAWQXMEcjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
1500
+ if (!_optionalChain([options2, 'optionalAccess', _77 => _77.ssr]) && _module.isBuiltin.call(void 0, id)) {
1501
+ return _chunkZCT6B5PQcjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
1474
1502
  }
1475
- const resolveFrom = importer ? _chunkRTAWQXMEcjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
1503
+ const resolveFrom = importer ? _chunkZCT6B5PQcjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
1476
1504
  if (resolveFrom) {
1477
1505
  const directory = path6.dirname(resolveFrom.importer);
1478
1506
  return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
@@ -1487,10 +1515,10 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1487
1515
  }
1488
1516
  if (!FARM_SERVER_ONLY_ENTRIES.has(id)) return null;
1489
1517
  const importedBy = importer ? ` (imported by ${importer})` : "";
1490
- if (!_optionalChain([options2, 'optionalAccess', _80 => _80.ssr])) {
1518
+ if (!_optionalChain([options2, 'optionalAccess', _78 => _78.ssr])) {
1491
1519
  this.error(
1492
- _chunkRTAWQXMEcjs.formatFarmDiagnostic.call(void 0,
1493
- _chunkRTAWQXMEcjs.createFarmDiagnostic.call(void 0,
1520
+ _chunkZCT6B5PQcjs.formatFarmDiagnostic.call(void 0,
1521
+ _chunkZCT6B5PQcjs.createFarmDiagnostic.call(void 0,
1494
1522
  "CLIENT_SERVER_ONLY_ENTRY",
1495
1523
  _nullishCoalesce(importer, () => ( id)),
1496
1524
  `${id} is server-only and cannot be imported into client code.`
@@ -1499,10 +1527,10 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1499
1527
  )
1500
1528
  );
1501
1529
  }
1502
- vercelOgInstalled || (vercelOgInstalled = _chunkKORZ6PREcjs.isOptionalPeerInstalled.call(void 0, root, "@vercel/og"));
1530
+ vercelOgInstalled || (vercelOgInstalled = _chunkIDUGG7VRcjs.isOptionalPeerInstalled.call(void 0, root, "@vercel/og"));
1503
1531
  if (!vercelOgInstalled) {
1504
1532
  this.error(
1505
- `${id} needs @vercel/og, which is not installed${importedBy}. ${_chunkKORZ6PREcjs.VERCEL_OG_INSTALL_HINT}`
1533
+ `${id} needs @vercel/og, which is not installed${importedBy}. ${_chunkIDUGG7VRcjs.VERCEL_OG_INSTALL_HINT}`
1506
1534
  );
1507
1535
  }
1508
1536
  return null;
@@ -1513,9 +1541,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
1513
1541
  handler(id) {
1514
1542
  if (id === FARM_SERVER_ONLY_PACKAGE_ID) return "export {};";
1515
1543
  if (id === FARM_PLATFORM_CLIENT_ID) {
1516
- return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkAQLHD6HZcjs.resolveFarmPlatform.call(void 0, ))));
1544
+ return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkYQXLBYY2cjs.resolveFarmPlatform.call(void 0, ))));
1517
1545
  }
1518
- return _nullishCoalesce(_chunkRTAWQXMEcjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
1546
+ return _nullishCoalesce(_chunkZCT6B5PQcjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
1519
1547
  }
1520
1548
  }
1521
1549
  };
@@ -1548,10 +1576,10 @@ function renderFarmI18nStaticHead(requestPath, snapshot) {
1548
1576
  if (!snapshot) return "";
1549
1577
  const runtime = `<script>window.__FARM_I18N__ = ${serializeFarmInlineValue(snapshot)};</script>`;
1550
1578
  if (snapshot.routing === "none") return runtime;
1551
- return `${_chunkYSRZSKQBcjs.renderFarmLocaleAlternateLinks.call(void 0, requestPath, snapshot)}${runtime}`;
1579
+ return `${_chunkIGBQSUT5cjs.renderFarmLocaleAlternateLinks.call(void 0, requestPath, snapshot)}${runtime}`;
1552
1580
  }
1553
1581
  function getPublicEnvDefine(config) {
1554
- const publicEnv = _optionalChain([config, 'access', _81 => _81.env, 'optionalAccess', _82 => _82.public]);
1582
+ const publicEnv = _optionalChain([config, 'access', _79 => _79.env, 'optionalAccess', _80 => _80.public]);
1555
1583
  if (!isResolvedEnvScope(publicEnv)) {
1556
1584
  return {};
1557
1585
  }
@@ -1572,15 +1600,15 @@ function createRequestFromNodeRequest(req, url, signal) {
1572
1600
  signal
1573
1601
  });
1574
1602
  }
1575
- function withFarmRequestTracing(handler, apiRuntime, resolveTraceUrl = (request) => _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, request)) {
1576
- const middleware = _chunkP2355C6Ecjs._withAfterNodeMiddleware.call(void 0, handler);
1603
+ function withFarmRequestTracing(handler, apiRuntime, resolveTraceUrl = (request) => _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, request)) {
1604
+ const middleware = _chunkKSRWTQ6Jcjs._withAfterNodeMiddleware.call(void 0, handler);
1577
1605
  return (req, res, next) => {
1578
1606
  const traceUrl = resolveTraceUrl(req);
1579
1607
  const traceRequest = createRequestFromNodeRequest(req, traceUrl);
1580
- const run = () => _chunkPLJMEUANcjs.runWithFarmRequestSpan.call(void 0, traceRequest, () => middleware(req, res, next), {
1608
+ const run = () => _chunkRFKPIAOFcjs.runWithFarmRequestSpan.call(void 0, traceRequest, () => middleware(req, res, next), {
1581
1609
  getStatusCode: () => res.statusCode || 200
1582
1610
  });
1583
- const result = apiRuntime ? _chunkKBGZ5FD6cjs._runWithAPIRequestRuntime.call(void 0, apiRuntime, run) : run();
1611
+ const result = apiRuntime ? _chunkIVEV44O2cjs._runWithAPIRequestRuntime.call(void 0, apiRuntime, run) : run();
1584
1612
  return Promise.resolve(result).catch((error) => {
1585
1613
  console.error(
1586
1614
  `[FARM] Unhandled error while handling ${req.method || "GET"} ${req.url || "/"}:`,
@@ -1590,12 +1618,12 @@ function withFarmRequestTracing(handler, apiRuntime, resolveTraceUrl = (request)
1590
1618
  return;
1591
1619
  }
1592
1620
  if (res.headersSent) {
1593
- _optionalChain([res, 'access', _83 => _83.destroy, 'optionalCall', _84 => _84(error instanceof Error ? error : new Error(String(error)))]);
1621
+ _optionalChain([res, 'access', _81 => _81.destroy, 'optionalCall', _82 => _82(error instanceof Error ? error : new Error(String(error)))]);
1594
1622
  return;
1595
1623
  }
1596
1624
  res.statusCode = 500;
1597
1625
  res.setHeader("Content-Type", "application/json");
1598
- res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
1626
+ res.end(_chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
1599
1627
  });
1600
1628
  };
1601
1629
  }
@@ -1603,10 +1631,10 @@ function sendFarmDevErrorJSON(res) {
1603
1631
  res.statusCode = 500;
1604
1632
  res.setHeader("Content-Type", "application/json");
1605
1633
  res.setHeader("Cache-Control", "private, no-store");
1606
- res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
1634
+ res.end(_chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
1607
1635
  }
1608
1636
  function createFarmDevMiddlewareErrorResponse() {
1609
- return new Response(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY, {
1637
+ return new Response(_chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY, {
1610
1638
  status: 500,
1611
1639
  headers: { "Content-Type": "application/json", "Cache-Control": "private, no-store" }
1612
1640
  });
@@ -1618,15 +1646,15 @@ function setFarmDevRuntimeHookErrorHead(res, json) {
1618
1646
  }
1619
1647
  function sendFarmDevRuntimeHookError(res, json) {
1620
1648
  setFarmDevRuntimeHookErrorHead(res, json);
1621
- res.end(json ? _chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
1649
+ res.end(json ? _chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
1622
1650
  }
1623
1651
  function opensFarmDevRuntimeSession(pm) {
1624
- return pm.hasRuntimeRequestHooks() || _chunkRZI6436Fcjs.hasFarmServerRuntimePlugins.call(void 0, pm.getPlugins());
1652
+ return pm.hasRuntimeRequestHooks() || _chunkADCVSTFVcjs.hasFarmServerRuntimePlugins.call(void 0, pm.getPlugins());
1625
1653
  }
1626
1654
  var FARM_CONFIG_ROUTE_PLUGIN_NAMES = /* @__PURE__ */ new Set([
1627
- _chunkH7OFZJCVcjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
1628
- _chunkH7OFZJCVcjs.FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
1629
- _chunkH7OFZJCVcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME
1655
+ _chunkQBMMQS25cjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
1656
+ _chunkQBMMQS25cjs.FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
1657
+ _chunkQBMMQS25cjs.FARM_CONFIG_REWRITES_PLUGIN_NAME
1630
1658
  ]);
1631
1659
  function isFarmConfigRoutePlugin(plugin) {
1632
1660
  return FARM_CONFIG_ROUTE_PLUGIN_NAMES.has(plugin.name);
@@ -1637,10 +1665,10 @@ async function proxyFarmExternalRewrite(req, res, bodySizeLimit) {
1637
1665
  if (!destination || !/^https?:\/\//i.test(destination)) return false;
1638
1666
  let request = createRequestFromNodeRequest(req, new URL(destination));
1639
1667
  if (request.method !== "GET" && request.method !== "HEAD") {
1640
- const body = await _chunk7Q7UB4TLcjs.readNodeRequestBody.call(void 0, req, bodySizeLimit);
1668
+ const body = await _chunk7GKZDRY2cjs.readNodeRequestBody.call(void 0, req, bodySizeLimit);
1641
1669
  request = new Request(request, { method: request.method, body: toRequestBody(body) });
1642
1670
  }
1643
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, await _chunkJRGR5Z4Kcjs.fetchFarmExternalRewrite.call(void 0, request));
1671
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, await _chunk6VC7NUY3cjs.fetchFarmExternalRewrite.call(void 0, request));
1644
1672
  return true;
1645
1673
  }
1646
1674
  function toRequestBody(body) {
@@ -1677,7 +1705,7 @@ function applyWebResponseToNodeResponse(response, res) {
1677
1705
  for (const name of res.getHeaderNames()) {
1678
1706
  res.removeHeader(name);
1679
1707
  }
1680
- _chunkJRGR5Z4Kcjs.applyWebResponseHeaders.call(void 0, res, response.headers);
1708
+ _chunk6VC7NUY3cjs.applyWebResponseHeaders.call(void 0, res, response.headers);
1681
1709
  }
1682
1710
  function toNodeResponseBuffer(chunk, encoding) {
1683
1711
  if (chunk === void 0 || chunk === null || typeof chunk === "function") return void 0;
@@ -1726,7 +1754,7 @@ function interceptFarmDevPageResponse(options) {
1726
1754
  const originalWrite = res.write.bind(res);
1727
1755
  const originalEnd = res.end.bind(res);
1728
1756
  const originalWriteHead = res.writeHead.bind(res);
1729
- const originalFlushHeaders = _optionalChain([res, 'access', _85 => _85.flushHeaders, 'optionalAccess', _86 => _86.bind, 'call', _87 => _87(res)]);
1757
+ const originalFlushHeaders = _optionalChain([res, 'access', _83 => _83.flushHeaders, 'optionalAccess', _84 => _84.bind, 'call', _85 => _85(res)]);
1730
1758
  let afterResponseCalled = false;
1731
1759
  let interceptedEnd = false;
1732
1760
  const restore = () => {
@@ -1734,7 +1762,7 @@ function interceptFarmDevPageResponse(options) {
1734
1762
  res.end = originalEnd;
1735
1763
  res.writeHead = originalWriteHead;
1736
1764
  if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
1737
- delete res[_chunkVACYUMXWcjs.FARM_NODE_RESPONSE_END_PENDING];
1765
+ delete res[_chunkIGA3OTFYcjs.FARM_NODE_RESPONSE_END_PENDING];
1738
1766
  };
1739
1767
  let runtimeHookFailed = false;
1740
1768
  const endRuntimeRequest = (response) => pm.endRuntimeRequest(runtimeSession, response).catch((error) => {
@@ -1748,7 +1776,7 @@ function interceptFarmDevPageResponse(options) {
1748
1776
  const writeRuntimeHookFailure = () => {
1749
1777
  setFarmDevRuntimeHookErrorHead(res, Boolean(options.jsonError));
1750
1778
  originalWriteHead(500);
1751
- originalWrite(options.jsonError ? _chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
1779
+ originalWrite(options.jsonError ? _chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY : "Internal Server Error");
1752
1780
  };
1753
1781
  const htmlChunks = [];
1754
1782
  const responseChunks = [];
@@ -1788,7 +1816,7 @@ function interceptFarmDevPageResponse(options) {
1788
1816
  ).then(async (runtimeResponse) => {
1789
1817
  applyWebResponseToNodeResponse(runtimeResponse, res);
1790
1818
  if (!res.headersSent) originalWriteHead(res.statusCode);
1791
- _optionalChain([originalFlushHeaders, 'optionalCall', _88 => _88()]);
1819
+ _optionalChain([originalFlushHeaders, 'optionalCall', _86 => _86()]);
1792
1820
  if (!runtimeResponse.body) return;
1793
1821
  const reader = runtimeResponse.body.getReader();
1794
1822
  for (; ; ) {
@@ -1837,7 +1865,7 @@ function interceptFarmDevPageResponse(options) {
1837
1865
  if (streamsThroughRuntime()) {
1838
1866
  streamRuntimeChunk(bufferChunk);
1839
1867
  const callback = args.find((arg) => typeof arg === "function");
1840
- _optionalChain([callback, 'optionalCall', _89 => _89()]);
1868
+ _optionalChain([callback, 'optionalCall', _87 => _87()]);
1841
1869
  return true;
1842
1870
  }
1843
1871
  if (isHtmlResponse && bufferChunk) {
@@ -1849,7 +1877,7 @@ function interceptFarmDevPageResponse(options) {
1849
1877
  const shouldBufferResponse = isHtmlResponse ? bufferPluginResponse : Boolean(runtimeSession && hasRuntimeAfterHook);
1850
1878
  if (shouldBufferResponse) {
1851
1879
  const callback = args.find((arg) => typeof arg === "function");
1852
- _optionalChain([callback, 'optionalCall', _90 => _90()]);
1880
+ _optionalChain([callback, 'optionalCall', _88 => _88()]);
1853
1881
  return true;
1854
1882
  }
1855
1883
  const writeResult = originalWrite(chunk, ...args);
@@ -1858,7 +1886,7 @@ function interceptFarmDevPageResponse(options) {
1858
1886
  });
1859
1887
  res.end = ((...args) => {
1860
1888
  interceptedEnd = true;
1861
- res[_chunkVACYUMXWcjs.FARM_NODE_RESPONSE_END_PENDING] = true;
1889
+ res[_chunkIGA3OTFYcjs.FARM_NODE_RESPONSE_END_PENDING] = true;
1862
1890
  if (afterResponseCalled) return res;
1863
1891
  afterResponseCalled = true;
1864
1892
  options.logResponse(method, urlPath, res.statusCode || 200, Date.now() - startTime, "PAGE");
@@ -1941,7 +1969,7 @@ function interceptFarmDevPageResponse(options) {
1941
1969
  res.end = originalEnd;
1942
1970
  res.writeHead = originalWriteHead;
1943
1971
  if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
1944
- delete res[_chunkVACYUMXWcjs.FARM_NODE_RESPONSE_END_PENDING];
1972
+ delete res[_chunkIGA3OTFYcjs.FARM_NODE_RESPONSE_END_PENDING];
1945
1973
  originalEnd(...originalEndArgs);
1946
1974
  }).catch((error) => {
1947
1975
  reportFailure(error);
@@ -1958,14 +1986,14 @@ function interceptFarmDevPageResponse(options) {
1958
1986
  res.end = originalEnd;
1959
1987
  res.writeHead = originalWriteHead;
1960
1988
  if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
1961
- delete res[_chunkVACYUMXWcjs.FARM_NODE_RESPONSE_END_PENDING];
1989
+ delete res[_chunkIGA3OTFYcjs.FARM_NODE_RESPONSE_END_PENDING];
1962
1990
  originalEnd(body, callback);
1963
1991
  } else {
1964
1992
  res.write = originalWrite;
1965
1993
  res.end = originalEnd;
1966
1994
  res.writeHead = originalWriteHead;
1967
1995
  if (originalFlushHeaders) res.flushHeaders = originalFlushHeaders;
1968
- delete res[_chunkVACYUMXWcjs.FARM_NODE_RESPONSE_END_PENDING];
1996
+ delete res[_chunkIGA3OTFYcjs.FARM_NODE_RESPONSE_END_PENDING];
1969
1997
  originalEnd(...originalEndArgs);
1970
1998
  }
1971
1999
  });
@@ -1993,22 +2021,22 @@ function getEnvDefines(config, configEnv) {
1993
2021
  __FARM_API_BASE_URL__: JSON.stringify(getFarmAPIBaseURLDefine(config)),
1994
2022
  __FARM_PUBLIC_ENV__: JSON.stringify(getPublicEnvDefine(config)),
1995
2023
  __FARM_IMAGE_CONFIG__: JSON.stringify(
1996
- _chunkMCSRMEQVcjs.getPublicFarmImageConfig.call(void 0,
1997
- _chunkMCSRMEQVcjs.resolveFarmImageConfig.call(void 0,
2024
+ _chunkJ2JMESBJcjs.getPublicFarmImageConfig.call(void 0,
2025
+ _chunkJ2JMESBJcjs.resolveFarmImageConfig.call(void 0,
1998
2026
  config.images,
1999
- _chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, config.renderer) ? "none" : void 0
2027
+ _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, config.renderer) ? "none" : void 0
2000
2028
  )
2001
2029
  )
2002
2030
  )
2003
2031
  };
2004
- if (_optionalChain([configEnv, 'optionalAccess', _91 => _91.isSsrBuild])) {
2005
- defines.__FARM_ENV__ = JSON.stringify(_chunk3EIPOTZVcjs.createBundledEnv.call(void 0, getFullEnvDefine(config)));
2032
+ if (_optionalChain([configEnv, 'optionalAccess', _89 => _89.isSsrBuild])) {
2033
+ defines.__FARM_ENV__ = JSON.stringify(_chunkTP7JAC3Tcjs.createBundledEnv.call(void 0, getFullEnvDefine(config)));
2006
2034
  }
2007
2035
  return defines;
2008
2036
  }
2009
2037
  function getFarmAPIBaseURLDefine(config) {
2010
- const baseURL = _optionalChain([config, 'access', _92 => _92.api, 'optionalAccess', _93 => _93.baseURL]);
2011
- return typeof baseURL === "string" && baseURL ? baseURL : _chunkPMJSG4JScjs.DEFAULT_FARM_API_BASE_PATH;
2038
+ const baseURL = _optionalChain([config, 'access', _90 => _90.api, 'optionalAccess', _91 => _91.baseURL]);
2039
+ return typeof baseURL === "string" && baseURL ? baseURL : _chunkG5KGLMPNcjs.DEFAULT_FARM_API_BASE_PATH;
2012
2040
  }
2013
2041
  function isResolvedEnvScope(value) {
2014
2042
  if (!value || typeof value !== "object" || Array.isArray(value)) {
@@ -2026,7 +2054,7 @@ function fileContainsProgrammaticPageRoute(file) {
2026
2054
  return false;
2027
2055
  }
2028
2056
  try {
2029
- return _chunkYUCU6XB4cjs.scanProgrammaticPagePaths.call(void 0, fs2.readFileSync(file, "utf8")).length > 0;
2057
+ return _chunkPYPHM7AScjs.scanProgrammaticPagePaths.call(void 0, fs2.readFileSync(file, "utf8")).length > 0;
2030
2058
  } catch (e15) {
2031
2059
  return false;
2032
2060
  }
@@ -2086,8 +2114,8 @@ function rewriteEarlySsrRelativeImports(options) {
2086
2114
  const sourcePath = suffixIndex === -1 ? source.value : source.value.slice(0, suffixIndex);
2087
2115
  const suffix = suffixIndex === -1 ? "" : source.value.slice(suffixIndex);
2088
2116
  const resolvedPath = path6.resolve(path6.dirname(cleanId), sourcePath);
2089
- const moduleId = _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, resolvedPath, options.root);
2090
- const specifier = moduleId.startsWith("/@fs/") ? _chunk7U4XF76Rcjs.toPosixPath.call(void 0, resolvedPath) : moduleId;
2117
+ const moduleId = _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, resolvedPath, options.root);
2118
+ const specifier = moduleId.startsWith("/@fs/") ? _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, resolvedPath) : moduleId;
2091
2119
  replacements.push({
2092
2120
  start: source.start,
2093
2121
  end: source.end,
@@ -2129,7 +2157,7 @@ function transformIsolatedClientBoundaryModule(options) {
2129
2157
  return null;
2130
2158
  }
2131
2159
  const body = Array.isArray(ast.body) ? ast.body : [];
2132
- const everyExportIsComponent = options.code.includes(_chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_DIRECTORY);
2160
+ const everyExportIsComponent = options.code.includes(_chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_DIRECTORY);
2133
2161
  const replacements = [];
2134
2162
  const wrapperStatements = [];
2135
2163
  const originalEntries = [];
@@ -2148,9 +2176,9 @@ function transformIsolatedClientBoundaryModule(options) {
2148
2176
  transformedExports++;
2149
2177
  };
2150
2178
  for (const node of body) {
2151
- if (_optionalChain([node, 'optionalAccess', _94 => _94.type]) === "ExportDefaultDeclaration" && node.declaration) {
2179
+ if (_optionalChain([node, 'optionalAccess', _92 => _92.type]) === "ExportDefaultDeclaration" && node.declaration) {
2152
2180
  const declaration2 = node.declaration;
2153
- if ((declaration2.type === "FunctionDeclaration" || declaration2.type === "ClassDeclaration") && _optionalChain([declaration2, 'access', _95 => _95.id, 'optionalAccess', _96 => _96.name])) {
2181
+ if ((declaration2.type === "FunctionDeclaration" || declaration2.type === "ClassDeclaration") && _optionalChain([declaration2, 'access', _93 => _93.id, 'optionalAccess', _94 => _94.name])) {
2154
2182
  replacements.push({
2155
2183
  start: node.start,
2156
2184
  end: node.end,
@@ -2168,11 +2196,11 @@ function transformIsolatedClientBoundaryModule(options) {
2168
2196
  }
2169
2197
  continue;
2170
2198
  }
2171
- if (_optionalChain([node, 'optionalAccess', _97 => _97.type]) === "ExportNamedDeclaration" && !node.declaration && node.exportKind !== "type") {
2199
+ if (_optionalChain([node, 'optionalAccess', _95 => _95.type]) === "ExportNamedDeclaration" && !node.declaration && node.exportKind !== "type") {
2172
2200
  const specifiers = (node.specifiers || []).filter(
2173
2201
  (specifier) => specifier.type === "ExportSpecifier" && specifier.exportKind !== "type"
2174
2202
  );
2175
- const specifierName = (name) => _nullishCoalesce(_optionalChain([name, 'optionalAccess', _98 => _98.name]), () => ( String(_nullishCoalesce(_optionalChain([name, 'optionalAccess', _99 => _99.value]), () => ( "")))));
2203
+ const specifierName = (name) => _nullishCoalesce(_optionalChain([name, 'optionalAccess', _96 => _96.name]), () => ( String(_nullishCoalesce(_optionalChain([name, 'optionalAccess', _97 => _97.value]), () => ( "")))));
2176
2204
  const isComponentExport = (specifier) => {
2177
2205
  const exported = specifierName(specifier.exported);
2178
2206
  return everyExportIsComponent || exported === "default" || /^[A-Z]/.test(exported);
@@ -2199,14 +2227,14 @@ function transformIsolatedClientBoundaryModule(options) {
2199
2227
  if (kept.length > 0) wrapperStatements.push(`export { ${kept.join(", ")} };`);
2200
2228
  continue;
2201
2229
  }
2202
- if (_optionalChain([node, 'optionalAccess', _100 => _100.type]) !== "ExportNamedDeclaration" || !node.declaration) continue;
2230
+ if (_optionalChain([node, 'optionalAccess', _98 => _98.type]) !== "ExportNamedDeclaration" || !node.declaration) continue;
2203
2231
  const declaration = node.declaration;
2204
2232
  const declaredNames = [];
2205
- if ((declaration.type === "FunctionDeclaration" || declaration.type === "ClassDeclaration") && _optionalChain([declaration, 'access', _101 => _101.id, 'optionalAccess', _102 => _102.name])) {
2233
+ if ((declaration.type === "FunctionDeclaration" || declaration.type === "ClassDeclaration") && _optionalChain([declaration, 'access', _99 => _99.id, 'optionalAccess', _100 => _100.name])) {
2206
2234
  declaredNames.push(declaration.id.name);
2207
2235
  } else if (declaration.type === "VariableDeclaration") {
2208
2236
  for (const declarator of declaration.declarations || []) {
2209
- if (_optionalChain([declarator, 'access', _103 => _103.id, 'optionalAccess', _104 => _104.type]) === "Identifier") declaredNames.push(declarator.id.name);
2237
+ if (_optionalChain([declarator, 'access', _101 => _101.id, 'optionalAccess', _102 => _102.type]) === "Identifier") declaredNames.push(declarator.id.name);
2210
2238
  }
2211
2239
  }
2212
2240
  const componentNames = declaredNames.filter((name) => /^[A-Z]/.test(name));
@@ -2279,21 +2307,21 @@ async function warnClientBoundaryOnce(context, id, code, config) {
2279
2307
  } catch (e20) {
2280
2308
  return;
2281
2309
  }
2282
- const publicKeys = new Set(Object.keys(_nullishCoalesce(_optionalChain([config, 'access', _105 => _105.env, 'optionalAccess', _106 => _106.public]), () => ( {}))));
2310
+ const publicKeys = new Set(Object.keys(_nullishCoalesce(_optionalChain([config, 'access', _103 => _103.env, 'optionalAccess', _104 => _104.public]), () => ( {}))));
2283
2311
  const findings = [];
2284
2312
  for (const finding of analyzeClientBoundary(program, publicKeys)) {
2285
2313
  if (finding.kind === "builtin" && !finding.name.startsWith("node:")) {
2286
2314
  const resolved = await context.resolve(finding.name, id).catch(() => null);
2287
- if (!_optionalChain([resolved, 'optionalAccess', _107 => _107.id, 'access', _108 => _108.startsWith, 'call', _109 => _109(_chunkRTAWQXMEcjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
2315
+ if (!_optionalChain([resolved, 'optionalAccess', _105 => _105.id, 'access', _106 => _106.startsWith, 'call', _107 => _107(_chunkZCT6B5PQcjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
2288
2316
  }
2289
2317
  findings.push(finding);
2290
2318
  }
2291
2319
  if (findings.length === 0) return;
2292
2320
  warnedClientBoundaryIds.add(id);
2293
- const locate = _chunkRTAWQXMEcjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
2294
- _chunk7U4XF76Rcjs.logger.warn(
2321
+ const locate = _chunkZCT6B5PQcjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
2322
+ _chunk7ZDLE77Pcjs.logger.warn(
2295
2323
  findings.map(
2296
- (finding) => _chunkRTAWQXMEcjs.formatFarmDiagnostic.call(void 0,
2324
+ (finding) => _chunkZCT6B5PQcjs.formatFarmDiagnostic.call(void 0,
2297
2325
  createClientBoundaryDiagnostic(id, finding, locate(finding.start)),
2298
2326
  config.root
2299
2327
  )
@@ -2310,10 +2338,10 @@ function isFarmAppRuntimeFile(file, appDirs, routeModuleExtensions) {
2310
2338
  );
2311
2339
  }
2312
2340
  function shouldEmitFarmClientRootHmr(renderer) {
2313
- return _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, renderer)).reconcilesRerenders;
2341
+ return _chunkLEZJZX4Ccjs.getFarmRendererCapabilities.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, renderer)).reconcilesRerenders;
2314
2342
  }
2315
2343
  function reachesSharedFarmRendererIsland(graph, file, islandModules) {
2316
- const queue = Array.from(_nullishCoalesce(_optionalChain([graph, 'optionalAccess', _110 => _110.getModulesByFile, 'call', _111 => _111(file)]), () => ( [])));
2344
+ const queue = Array.from(_nullishCoalesce(_optionalChain([graph, 'optionalAccess', _108 => _108.getModulesByFile, 'call', _109 => _109(file)]), () => ( [])));
2317
2345
  const seen = new Set(queue);
2318
2346
  for (const node of queue) {
2319
2347
  if (node.file && islandModules.has(path6.resolve(node.file))) {
@@ -2333,7 +2361,7 @@ function toFarmRuntimeModuleId(specifier) {
2333
2361
  return FARM_RUNTIME_MODULE_PREFIX + specifier;
2334
2362
  }
2335
2363
  function getFarmCoreFile() {
2336
- return typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0, _chunkUZM3PDKKcjs.define_import_meta_default.url);
2364
+ return typeof __filename === "string" ? __filename : _url.fileURLToPath.call(void 0, _chunkUGL4BDNBcjs.define_import_meta_default.url);
2337
2365
  }
2338
2366
  var FARM_SOURCE_ALIAS_PROBES = [
2339
2367
  "@/x",
@@ -2357,25 +2385,25 @@ function hasFarmSourceAliasOverride(alias) {
2357
2385
  );
2358
2386
  }
2359
2387
  function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2360
- const rendererDisabled = _chunkT7UC2ORAcjs.isFarmRendererDisabled.call(void 0, options.renderer);
2388
+ const rendererDisabled = _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, options.renderer);
2361
2389
  const imageImports = farmImageImportsPlugin();
2362
- const fontImports = _chunkM4YXD6MDcjs.farmFontImportsPlugin.call(void 0, {
2390
+ const fontImports = _chunkVWPGK6UVcjs.farmFontImportsPlugin.call(void 0, {
2363
2391
  root: options.root,
2364
2392
  basePath: options.basePath,
2365
2393
  publicDir: options.publicDir,
2366
2394
  // A production build never starts the app, so it reads the directories from these options.
2367
- isLayoutModule: (id) => _chunkM4YXD6MDcjs.isFarmLayoutModule.call(void 0, id, _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _112 => _112.getConfig, 'call', _113 => _113()]), () => ( options))))
2395
+ isLayoutModule: (id) => _chunkVWPGK6UVcjs.isFarmLayoutModule.call(void 0, id, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _110 => _110.getConfig, 'call', _111 => _111()]), () => ( options))))
2368
2396
  });
2369
2397
  let farmApp;
2370
2398
  const isFarmGeneratedOutput = (file) => {
2371
- const root = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _114 => _114.getConfig, 'call', _115 => _115(), 'access', _116 => _116.root]), () => ( options.root));
2399
+ const root = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _112 => _112.getConfig, 'call', _113 => _113(), 'access', _114 => _114.root]), () => ( options.root));
2372
2400
  if (!root) return file.includes("/.farm/");
2373
- const output = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, path6.resolve(root, options.distDir || ".farm"));
2401
+ const output = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, path6.resolve(root, options.distDir || ".farm"));
2374
2402
  return file === output || file.startsWith(`${output}/`);
2375
2403
  };
2376
2404
  let serverFnTransformActive = false;
2377
2405
  const getFarmRenderedServerModules = () => {
2378
- const routeManager = _optionalChain([farmApp, 'optionalAccess', _117 => _117.getRouteManager, 'call', _118 => _118()]);
2406
+ const routeManager = _optionalChain([farmApp, 'optionalAccess', _115 => _115.getRouteManager, 'call', _116 => _116()]);
2379
2407
  if (!routeManager) return /* @__PURE__ */ new Set();
2380
2408
  const files = /* @__PURE__ */ new Set();
2381
2409
  for (const entries of [
@@ -2388,15 +2416,15 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2388
2416
  for (const entry of entries.values()) files.add(entry.modulePath);
2389
2417
  }
2390
2418
  const config = farmApp.getConfig();
2391
- const mdxComponents = _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath.call(void 0,
2392
- _chunk2HW5LWAHcjs.resolveMdxConfig.call(void 0, config.mdx),
2419
+ const mdxComponents = _chunkYQ5NVEFScjs.resolveFarmMdxComponentsModulePath.call(void 0,
2420
+ _chunkYQ5NVEFScjs.resolveMdxConfig.call(void 0, config.mdx),
2393
2421
  config.root
2394
2422
  );
2395
2423
  if (mdxComponents) files.add(mdxComponents);
2396
2424
  return files;
2397
2425
  };
2398
- const islxActionsMode = () => _chunkM4YXD6MDcjs.resolveFarmIslxActionsMode.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _119 => _119.getConfig, 'call', _120 => _120()]), () => ( options)));
2399
- const islandsServerFns = () => _chunkM4YXD6MDcjs.farmBrowserServerFnsEnabled.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _121 => _121.getConfig, 'call', _122 => _122()]), () => ( options)));
2426
+ const islxActionsMode = () => _chunkVWPGK6UVcjs.resolveFarmIslxActionsMode.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _117 => _117.getConfig, 'call', _118 => _118()]), () => ( options)));
2427
+ const islandsServerFns = () => _chunkVWPGK6UVcjs.farmBrowserServerFnsEnabled.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _119 => _119.getConfig, 'call', _120 => _120()]), () => ( options)));
2400
2428
  let reactRefreshActive = false;
2401
2429
  let server;
2402
2430
  let deferredGates;
@@ -2416,7 +2444,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2416
2444
  docsMCPServerDisposers.clear();
2417
2445
  };
2418
2446
  const logUpdate = (tag, message) => {
2419
- const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
2447
+ const pc = _chunkCH2JX3CMcjs.createCliColors.call(void 0, );
2420
2448
  const log = [
2421
2449
  pc.dim("[") + pc.bold(pc.blue("FARM")) + pc.dim("]"),
2422
2450
  pc.dim("[") + pc.bold(pc.cyan(tag)) + pc.dim("]"),
@@ -2425,16 +2453,16 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2425
2453
  ].join(" ");
2426
2454
  console.log(log);
2427
2455
  };
2428
- const getProgrammaticClientRoutes = () => _nullishCoalesce(options.programmaticClientRoutes, () => ( _optionalChain([farmApp, 'optionalAccess', _123 => _123.getRouteManager, 'call', _124 => _124(), 'access', _125 => _125.getProgrammaticClientRoutes, 'call', _126 => _126()])));
2429
- const inBuildPackageCache = _chunkRTAWQXMEcjs.bindPackageClientBoundaryCache.call(void 0, );
2456
+ const getProgrammaticClientRoutes = () => _nullishCoalesce(options.programmaticClientRoutes, () => ( _optionalChain([farmApp, 'optionalAccess', _121 => _121.getRouteManager, 'call', _122 => _122(), 'access', _123 => _123.getProgrammaticClientRoutes, 'call', _124 => _124()])));
2457
+ const inBuildPackageCache = _chunkZCT6B5PQcjs.bindPackageClientBoundaryCache.call(void 0, );
2430
2458
  const inspectPackages = (operation) => {
2431
- const routeManager = _optionalChain([farmApp, 'optionalAccess', _127 => _127.getRouteManager, 'call', _128 => _128()]);
2459
+ const routeManager = _optionalChain([farmApp, 'optionalAccess', _125 => _125.getRouteManager, 'call', _126 => _126()]);
2432
2460
  return inBuildPackageCache(
2433
2461
  () => routeManager ? routeManager.inspectPackages(operation) : operation()
2434
2462
  );
2435
2463
  };
2436
2464
  const isOutsideAppRoot = (file) => {
2437
- const root = _optionalChain([farmApp, 'optionalAccess', _129 => _129.getConfig, 'call', _130 => _130(), 'access', _131 => _131.root]) || _optionalChain([server, 'optionalAccess', _132 => _132.config, 'access', _133 => _133.root]) || options.root;
2465
+ const root = _optionalChain([farmApp, 'optionalAccess', _127 => _127.getConfig, 'call', _128 => _128(), 'access', _129 => _129.root]) || _optionalChain([server, 'optionalAccess', _130 => _130.config, 'access', _131 => _131.root]) || options.root;
2438
2466
  if (!root) return false;
2439
2467
  const relative4 = path6.relative(root, file.split("?", 1)[0]);
2440
2468
  return relative4.startsWith("..") || path6.isAbsolute(relative4);
@@ -2448,15 +2476,15 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2448
2476
  config(userConfig, configEnv) {
2449
2477
  isBuild = configEnv.command === "build";
2450
2478
  const farmAliases = {
2451
- ..._chunk52Q4OB4Acjs.getFarmLayerAliases.call(void 0, options.layers),
2452
- ...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _134 => _134.resolve, 'optionalAccess', _135 => _135.alias])) ? {} : _chunkM4YXD6MDcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
2479
+ ..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, options.layers),
2480
+ ...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _132 => _132.resolve, 'optionalAccess', _133 => _133.alias])) ? {} : _chunkVWPGK6UVcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
2453
2481
  };
2454
2482
  if (Object.keys(farmAliases).length > 0) {
2455
2483
  _nullishCoalesce(userConfig.resolve, () => ( (userConfig.resolve = {})));
2456
- userConfig.resolve.alias = _chunkM4YXD6MDcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
2484
+ userConfig.resolve.alias = _chunkVWPGK6UVcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
2457
2485
  }
2458
2486
  const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
2459
- farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _136 => _136.server, 'optionalAccess', _137 => _137.cors]) === void 0;
2487
+ farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _134 => _134.server, 'optionalAccess', _135 => _135.cors]) === void 0;
2460
2488
  return {
2461
2489
  // Honor Farm's publicDir so the dev server serves the same static
2462
2490
  // directory the production client build emits.
@@ -2469,13 +2497,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2469
2497
  ...farmOwnsDevCors ? { cors: false } : {},
2470
2498
  fs: {
2471
2499
  ...layerRoots.length ? { allow: [path6.resolve(options.root || process.cwd()), ...layerRoots] } : {},
2472
- deny: getFarmDevFsDeny(_optionalChain([userConfig, 'access', _138 => _138.server, 'optionalAccess', _139 => _139.fs, 'optionalAccess', _140 => _140.deny]), options)
2500
+ deny: getFarmDevFsDeny(_optionalChain([userConfig, 'access', _136 => _136.server, 'optionalAccess', _137 => _137.fs, 'optionalAccess', _138 => _138.deny]), options)
2473
2501
  }
2474
2502
  }
2475
2503
  };
2476
2504
  },
2477
2505
  configEnvironment(name, environmentConfig, env) {
2478
- if (env.command !== "serve" || name !== "ssr" && name !== "rsc" || _optionalChain([environmentConfig, 'access', _141 => _141.dev, 'optionalAccess', _142 => _142.createEnvironment])) {
2506
+ if (env.command !== "serve" || name !== "ssr" && name !== "rsc" || _optionalChain([environmentConfig, 'access', _139 => _139.dev, 'optionalAccess', _140 => _140.createEnvironment])) {
2479
2507
  return;
2480
2508
  }
2481
2509
  return {
@@ -2493,9 +2521,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2493
2521
  serverFnTransformActive = config.plugins.some(
2494
2522
  (plugin2) => plugin2.name === SERVER_FN_TRANSFORM_PLUGIN
2495
2523
  );
2496
- reactRefreshActive = _chunkY2FEFQAYcjs.isFarmReactRefreshActive.call(void 0, config);
2497
- if (_optionalChain([options, 'access', _143 => _143.experimental, 'optionalAccess', _144 => _144.serverActions]) === true && !serverFnTransformActive && !islandsServerFns()) {
2498
- _chunk7U4XF76Rcjs.logger.warn(
2524
+ reactRefreshActive = _chunkQCVP22KWcjs.isFarmReactRefreshActive.call(void 0, config);
2525
+ if (_optionalChain([options, 'access', _141 => _141.experimental, 'optionalAccess', _142 => _142.serverActions]) === true && !serverFnTransformActive && !islandsServerFns()) {
2526
+ _chunk7ZDLE77Pcjs.logger.warn(
2499
2527
  "experimental.serverActions has no effect without @farm.js/plugin/rsc in the Vite plugins. Server functions stay server-only, and importing one from client code is a build error."
2500
2528
  );
2501
2529
  }
@@ -2503,21 +2531,21 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2503
2531
  async configureServer(viteServer) {
2504
2532
  viteServer.middlewares.use(
2505
2533
  createFarmDevPreviewGuard(viteServer, {
2506
- getSourceRoots: () => _chunk52Q4OB4Acjs.getFarmSourceRoots.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _145 => _145.getConfig, 'call', _146 => _146()]), () => ( options)))
2534
+ getSourceRoots: () => _chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _143 => _143.getConfig, 'call', _144 => _144()]), () => ( options)))
2507
2535
  })
2508
2536
  );
2509
2537
  if (typeof fontImports.configureServer === "function") {
2510
2538
  await fontImports.configureServer.call(this, viteServer);
2511
2539
  }
2512
2540
  server = viteServer;
2513
- const farmMiddlewares = _nullishCoalesce(_optionalChain([deferredGates, 'optionalAccess', _147 => _147.pre, 'access', _148 => _148.target]), () => ( viteServer.middlewares));
2514
- const farmPostMiddlewares = _nullishCoalesce(_optionalChain([deferredGates, 'optionalAccess', _149 => _149.post, 'access', _150 => _150.target]), () => ( viteServer.middlewares));
2541
+ const farmMiddlewares = _nullishCoalesce(_optionalChain([deferredGates, 'optionalAccess', _145 => _145.pre, 'access', _146 => _146.target]), () => ( viteServer.middlewares));
2542
+ const farmPostMiddlewares = _nullishCoalesce(_optionalChain([deferredGates, 'optionalAccess', _147 => _147.post, 'access', _148 => _148.target]), () => ( viteServer.middlewares));
2515
2543
  const pm = initialPluginManager;
2516
2544
  const configRoutePlugins = new Set(
2517
- _optionalChain([pm, 'optionalAccess', _151 => _151.getPlugins, 'call', _152 => _152(), 'access', _153 => _153.filter, 'call', _154 => _154(isFarmConfigRoutePlugin), 'access', _155 => _155.map, 'call', _156 => _156((plugin2) => plugin2.name)])
2545
+ _optionalChain([pm, 'optionalAccess', _149 => _149.getPlugins, 'call', _150 => _150(), 'access', _151 => _151.filter, 'call', _152 => _152(isFarmConfigRoutePlugin), 'access', _153 => _153.map, 'call', _154 => _154((plugin2) => plugin2.name)])
2518
2546
  );
2519
- const configRedirectMatchers = (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _157 => _157.getPlugins, 'call', _158 => _158()]), () => ( []))).flatMap((plugin2) => {
2520
- const matcher = _chunkH7OFZJCVcjs.getConfigRedirectMatcher.call(void 0, plugin2);
2547
+ const configRedirectMatchers = (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _155 => _155.getPlugins, 'call', _156 => _156()]), () => ( []))).flatMap((plugin2) => {
2548
+ const matcher = _chunkQBMMQS25cjs.getConfigRedirectMatcher.call(void 0, plugin2);
2521
2549
  return matcher ? [matcher] : [];
2522
2550
  });
2523
2551
  const emitPluginError = async (phase, error, meta) => {
@@ -2527,7 +2555,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2527
2555
  } catch (e21) {
2528
2556
  }
2529
2557
  };
2530
- farmApp = new (0, _chunkM4YXD6MDcjs.FarmApp)(
2558
+ farmApp = new (0, _chunkVWPGK6UVcjs.FarmApp)(
2531
2559
  {
2532
2560
  ...options,
2533
2561
  root: resolveDevelopmentRoot(options.root, server.config.root)
@@ -2535,7 +2563,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2535
2563
  server
2536
2564
  );
2537
2565
  farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
2538
- _chunkRTAWQXMEcjs.resolvePackageClientBoundaryCacheFile.call(void 0,
2566
+ _chunkZCT6B5PQcjs.resolvePackageClientBoundaryCacheFile.call(void 0,
2539
2567
  farmApp.getConfig().root,
2540
2568
  options.distDir || ".farm"
2541
2569
  )
@@ -2544,17 +2572,17 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2544
2572
  await farmApp.initialize();
2545
2573
  const farmConfig = farmApp.getConfig();
2546
2574
  let farmAppPackages;
2547
- if (_optionalChain([farmConfig, 'access', _159 => _159.agent, 'optionalAccess', _160 => _160.noindexPreviews])) {
2575
+ if (_optionalChain([farmConfig, 'access', _157 => _157.agent, 'optionalAccess', _158 => _158.noindexPreviews])) {
2548
2576
  farmMiddlewares.use((_req, res, next) => {
2549
- if (_chunkEA5HVG45cjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
2550
- res.setHeader("X-Robots-Tag", _chunkEZUTDTFMcjs.FARM_PREVIEW_ROBOTS_TAG);
2577
+ if (_chunkMUQP2APNcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
2578
+ res.setHeader("X-Robots-Tag", _chunkERSLQ4C7cjs.FARM_PREVIEW_ROBOTS_TAG);
2551
2579
  }
2552
2580
  next();
2553
2581
  });
2554
2582
  }
2555
- const apiServerBasePath = _chunk2OF5RPVUcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
2583
+ const apiServerBasePath = _chunkH5AC3XSEcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
2556
2584
  const devBuiltInRoutePaths = new Set(
2557
- _chunkSCE7VWPNcjs.listFarmBuiltInRoutePaths.call(void 0, {
2585
+ _chunkMZG5M4JScjs.listFarmBuiltInRoutePaths.call(void 0, {
2558
2586
  agent: {
2559
2587
  apiCatalog: true,
2560
2588
  mcp: true,
@@ -2565,46 +2593,46 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2565
2593
  openapi: options.openapi
2566
2594
  })
2567
2595
  );
2568
- const serverConfig = _chunk7Q7UB4TLcjs.resolveFarmServerConfig.call(void 0, farmConfig.server);
2569
- globalThis.__FARM_IMAGE_CONFIG__ = _chunkMCSRMEQVcjs.getPublicFarmImageConfig.call(void 0, farmConfig.images);
2596
+ const serverConfig = _chunk7GKZDRY2cjs.resolveFarmServerConfig.call(void 0, farmConfig.server);
2597
+ globalThis.__FARM_IMAGE_CONFIG__ = _chunkJ2JMESBJcjs.getPublicFarmImageConfig.call(void 0, farmConfig.images);
2570
2598
  let imageHandler = null;
2571
2599
  if (farmConfig.images.provider !== "none") {
2572
2600
  const { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } = await import("./image/sharp.cjs");
2573
- imageHandler = _chunkRDADQG5Scjs.createFarmImageHandler.call(void 0, farmConfig.images, {
2601
+ imageHandler = _chunk6QWCFVGLcjs.createFarmImageHandler.call(void 0, farmConfig.images, {
2574
2602
  transform: createSharpImageTransformer(),
2575
2603
  fetchRemote: createNodeImageFetcher(farmConfig.images),
2576
2604
  validateRemoteUrl: createNodeImageUrlValidator(farmConfig.images),
2577
2605
  // Vite owns this address. Unlike request.url, it cannot be replaced by
2578
2606
  // a caller-controlled Host header.
2579
- trustedLocalOrigin: () => _optionalChain([server, 'access', _161 => _161.resolvedUrls, 'optionalAccess', _162 => _162.local, 'access', _163 => _163[0]]),
2607
+ trustedLocalOrigin: () => _optionalChain([server, 'access', _159 => _159.resolvedUrls, 'optionalAccess', _160 => _160.local, 'access', _161 => _161[0]]),
2580
2608
  onError(error) {
2581
- _chunk7U4XF76Rcjs.logger.error(
2609
+ _chunk7ZDLE77Pcjs.logger.error(
2582
2610
  `Image optimization failed: ${error instanceof Error ? error.message : String(error)}`
2583
2611
  );
2584
2612
  }
2585
2613
  });
2586
2614
  }
2587
- const sourceRoots = _chunk52Q4OB4Acjs.getFarmSourceRoots.call(void 0, farmConfig);
2615
+ const sourceRoots = _chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, farmConfig);
2588
2616
  server.watcher.add(sourceRoots.map((source) => path6.join(source.root, source.srcDir)));
2589
2617
  if (farmConfig.i18n.enabled) {
2590
2618
  server.watcher.add(
2591
2619
  farmConfig.i18n.locales.map(
2592
- (locale) => _chunkZMSVKVI3cjs.resolveFarmI18nMessagePath.call(void 0, farmConfig.i18n, locale)
2620
+ (locale) => _chunkB2VSX33Tcjs.resolveFarmI18nMessagePath.call(void 0, farmConfig.i18n, locale)
2593
2621
  )
2594
2622
  );
2595
2623
  }
2596
2624
  const workflowConfig = farmConfig.workflows;
2597
2625
  const farmDocsDevRuntime = farmConfig.docs.enabled ? await loadFarmDocsDevRuntime() : null;
2598
2626
  const getExtraRouteTypes = () => [
2599
- ..._optionalChain([options, 'access', _164 => _164.openapi, 'optionalAccess', _165 => _165.enabled]) && options.openapi.route ? [options.openapi.route] : [],
2600
- ..._nullishCoalesce(_optionalChain([farmDocsDevRuntime, 'optionalAccess', _166 => _166.getFarmDocsRouteTypeEntries, 'call', _167 => _167(farmConfig.docs)]), () => ( []))
2627
+ ..._optionalChain([options, 'access', _162 => _162.openapi, 'optionalAccess', _163 => _163.enabled]) && options.openapi.route ? [options.openapi.route] : [],
2628
+ ..._nullishCoalesce(_optionalChain([farmDocsDevRuntime, 'optionalAccess', _164 => _164.getFarmDocsRouteTypeEntries, 'call', _165 => _165(farmConfig.docs)]), () => ( []))
2601
2629
  ];
2602
2630
  const appDirSlugs = sourceRoots.map(
2603
2631
  (source) => path6.join(source.root, source.srcDir, "app").replace(/\\/g, "/")
2604
2632
  );
2605
2633
  const generateTypeArtifacts = async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
2606
2634
  try {
2607
- const result = await _chunkEXPVSFAGcjs.generateFarmTypeArtifacts.call(void 0, {
2635
+ const result = await _chunkT4VF6BYVcjs.generateFarmTypeArtifacts.call(void 0, {
2608
2636
  root: farmConfig.root,
2609
2637
  srcDir: farmConfig.srcDir,
2610
2638
  layers: farmConfig.layers,
@@ -2635,7 +2663,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2635
2663
  }
2636
2664
  } catch (e) {
2637
2665
  const message = e instanceof Error ? e.message : String(e);
2638
- _chunk7U4XF76Rcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
2666
+ _chunk7ZDLE77Pcjs.logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
2639
2667
  if (pm) {
2640
2668
  await emitPluginError("type-artifact-generation", e, { reason });
2641
2669
  }
@@ -2646,10 +2674,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2646
2674
  (source) => path6.join(source.root, source.srcDir).replace(/\\/g, "/")
2647
2675
  );
2648
2676
  const layerConfigFiles = new Set(
2649
- farmConfig.layers.map((layer) => _optionalChain([layer, 'access', _168 => _168.configFile, 'optionalAccess', _169 => _169.replace, 'call', _170 => _170(/\\/g, "/")])).filter((file) => Boolean(file))
2677
+ farmConfig.layers.map((layer) => _optionalChain([layer, 'access', _166 => _166.configFile, 'optionalAccess', _167 => _167.replace, 'call', _168 => _168(/\\/g, "/")])).filter((file) => Boolean(file))
2650
2678
  );
2651
2679
  const routeModuleExtensions = /* @__PURE__ */ new Set([
2652
- ..._chunkT7UC2ORAcjs.resolveFarmComponentExtensions.call(void 0, farmConfig.renderer.componentExtensions),
2680
+ ..._chunkLEZJZX4Ccjs.resolveFarmComponentExtensions.call(void 0, farmConfig.renderer.componentExtensions),
2653
2681
  ".md",
2654
2682
  ".mdx"
2655
2683
  ]);
@@ -2658,14 +2686,14 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2658
2686
  const match = /\/(?:page|layout|loading|error)(\.[^./]+)$/.exec(normalized);
2659
2687
  return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/`)) && !!match && routeModuleExtensions.has(match[1].toLowerCase());
2660
2688
  };
2661
- const polyroute = _chunkSIECKBNKcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
2689
+ const polyroute = _chunkMNBFSAWFcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
2662
2690
  const isApiRouteFile = (file) => {
2663
2691
  const normalized = file.replace(/\\/g, "/");
2664
- return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/api/`)) && _chunkSIECKBNKcjs.isFarmAPIRouteFileName.call(void 0, path6.posix.basename(normalized), polyroute);
2692
+ return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/api/`)) && _chunkMNBFSAWFcjs.isFarmAPIRouteFileName.call(void 0, path6.posix.basename(normalized), polyroute);
2665
2693
  };
2666
2694
  const isProgrammaticRouteFile = (file) => {
2667
2695
  const normalized = file.replace(/\\/g, "/");
2668
- return srcDirSlugs.some((srcDir) => normalized.startsWith(`${srcDir}/`)) && _chunkYUCU6XB4cjs.isProgrammaticRoutesFileName.call(void 0, normalized);
2696
+ return srcDirSlugs.some((srcDir) => normalized.startsWith(`${srcDir}/`)) && _chunkPYPHM7AScjs.isProgrammaticRoutesFileName.call(void 0, normalized);
2669
2697
  };
2670
2698
  const isProgrammaticRouteSourceFile = (file) => {
2671
2699
  const normalized = file.replace(/\\/g, "/");
@@ -2674,17 +2702,17 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2674
2702
  );
2675
2703
  };
2676
2704
  const isAppRuntimeFile = (file) => isFarmAppRuntimeFile(file, appDirSlugs, routeModuleExtensions);
2677
- const isRendererRouteFile = (file) => routeModuleExtensions.has(path6.extname(file).toLowerCase()) && _optionalChain([farmApp, 'optionalAccess', _171 => _171.getRouteManager, 'call', _172 => _172(), 'access', _173 => _173.isRendererRouteFile, 'call', _174 => _174(file)]) === true;
2705
+ const isRendererRouteFile = (file) => routeModuleExtensions.has(path6.extname(file).toLowerCase()) && _optionalChain([farmApp, 'optionalAccess', _169 => _169.getRouteManager, 'call', _170 => _170(), 'access', _171 => _171.isRendererRouteFile, 'call', _172 => _172(file)]) === true;
2678
2706
  const isStaticMetadataImageFile = (file) => /\/(?:opengraph-image|twitter-image)(?:\.(?:png|jpg|jpeg|gif|webp)|\.alt\.txt)$/.test(
2679
2707
  file.replace(/\\/g, "/")
2680
2708
  );
2681
- const isI18nCatalogFile = (file) => _chunkZMSVKVI3cjs.isFarmI18nCatalogFile.call(void 0, farmConfig.i18n, file);
2709
+ const isI18nCatalogFile = (file) => _chunkB2VSX33Tcjs.isFarmI18nCatalogFile.call(void 0, farmConfig.i18n, file);
2682
2710
  let typeArtifactGenScheduled = null;
2683
2711
  let pendingTypeArtifacts = createEmptyTypeArtifactSelection();
2684
2712
  let pendingTypeArtifactReason = "";
2685
2713
  let queuedRouteFiles;
2686
2714
  const scheduleTypeArtifactGen = (file, event, selection) => {
2687
- const normalizedFile = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, file);
2715
+ const normalizedFile = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, file);
2688
2716
  for (const [artifact, enabled] of Object.entries(selection)) {
2689
2717
  if (enabled) {
2690
2718
  pendingTypeArtifacts[artifact] = true;
@@ -2705,7 +2733,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2705
2733
  ["add", "change", "unlink"].forEach((ev) => {
2706
2734
  server.watcher.on(ev, (file) => {
2707
2735
  if (ev === "add") {
2708
- _chunkI2RBHZF7cjs.invalidateFailedFarmDevModules.call(void 0, server);
2736
+ _chunkVB7P66Q4cjs.invalidateFailedFarmDevModules.call(void 0, server);
2709
2737
  }
2710
2738
  const normalizedFile = file.replace(/\\/g, "/");
2711
2739
  const configChanged = isFarmConfigFile(file, farmConfig.root) || layerConfigFiles.has(normalizedFile);
@@ -2721,7 +2749,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2721
2749
  scheduleTypeArtifactGen(file, ev, typeArtifacts);
2722
2750
  }
2723
2751
  if (isI18nCatalogFile(file)) {
2724
- _optionalChain([farmApp, 'optionalAccess', _175 => _175.getI18nRuntime, 'call', _176 => _176(), 'access', _177 => _177.reload, 'call', _178 => _178(), 'access', _179 => _179.then, 'call', _180 => _180(() => server.ws.send({ type: "full-reload", path: "*" })), 'access', _181 => _181.catch, 'call', _182 => _182((error) => _chunk7U4XF76Rcjs.logger.warn(`i18n catalog reload failed: ${error.message}`))]);
2752
+ _optionalChain([farmApp, 'optionalAccess', _173 => _173.getI18nRuntime, 'call', _174 => _174(), 'access', _175 => _175.reload, 'call', _176 => _176(), 'access', _177 => _177.then, 'call', _178 => _178(() => server.ws.send({ type: "full-reload", path: "*" })), 'access', _179 => _179.catch, 'call', _180 => _180((error) => _chunk7ZDLE77Pcjs.logger.warn(`i18n catalog reload failed: ${error.message}`))]);
2725
2753
  }
2726
2754
  const isRouteRefreshEvent = (ev !== "change" || isStaticMetadataImageFile(file)) && (isAppRuntimeFile(file) || polyroute && isApiRouteFile(file) || isRendererRouteFile(file) || isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file)));
2727
2755
  if (isRouteRefreshEvent) {
@@ -2733,13 +2761,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2733
2761
  queuedRouteFiles = void 0;
2734
2762
  try {
2735
2763
  await Promise.all([
2736
- _optionalChain([refreshRouteDiscovery, 'optionalCall', _183 => _183(`${ev} ${file}`)]),
2737
- [...files].some((path7) => path7.includes("middleware.")) ? _optionalChain([middlewareManager, 'optionalAccess', _184 => _184.reload, 'call', _185 => _185()]) : void 0
2764
+ _optionalChain([refreshRouteDiscovery, 'optionalCall', _181 => _181(`${ev} ${file}`)]),
2765
+ [...files].some((path7) => path7.includes("middleware.")) ? _optionalChain([middlewareManager, 'optionalAccess', _182 => _182.reload, 'call', _183 => _183()]) : void 0
2738
2766
  ]);
2739
2767
  if (pendingRouteReloads.size === 1)
2740
2768
  server.ws.send({ type: "full-reload", path: "*" });
2741
2769
  } catch (error) {
2742
- _chunk7U4XF76Rcjs.logger.warn(
2770
+ _chunk7ZDLE77Pcjs.logger.warn(
2743
2771
  `Route refresh failed: ${error instanceof Error ? error.message : String(error)}`
2744
2772
  );
2745
2773
  } finally {
@@ -2751,7 +2779,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2751
2779
  }
2752
2780
  });
2753
2781
  });
2754
- const appDirs = _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, farmConfig);
2782
+ const appDirs = _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, farmConfig);
2755
2783
  const routeManager = farmApp.getRouteManager();
2756
2784
  const discoveredRoutes = [];
2757
2785
  for (const [pattern, entry] of routeManager.getRoutes()) {
@@ -2778,19 +2806,19 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2778
2806
  layoutCount: discoveredRoutes.filter((r) => r.kind === "layout").length
2779
2807
  });
2780
2808
  }
2781
- const dispatchToDevServer = _chunkBNH53KOTcjs.createFarmDevServerDispatch.call(void 0, server);
2809
+ const dispatchToDevServer = _chunkSZBBBLLScjs.createFarmDevServerDispatch.call(void 0, server);
2782
2810
  if (options.mobileClient) {
2783
2811
  const { FARM_DEV_SERVER_MODULE_LOADER } = await import("./internal/native-server-fns.cjs");
2784
- const load = (file) => _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, server, file);
2812
+ const load = (file) => _chunkVB7P66Q4cjs.loadFarmDevModule.call(void 0, server, file);
2785
2813
  globalThis[FARM_DEV_SERVER_MODULE_LOADER] = load;
2786
- _optionalChain([server, 'access', _186 => _186.httpServer, 'optionalAccess', _187 => _187.once, 'call', _188 => _188("close", () => {
2814
+ _optionalChain([server, 'access', _184 => _184.httpServer, 'optionalAccess', _185 => _185.once, 'call', _186 => _186("close", () => {
2787
2815
  const globals = globalThis;
2788
2816
  if (globals[FARM_DEV_SERVER_MODULE_LOADER] === load) {
2789
2817
  delete globals[FARM_DEV_SERVER_MODULE_LOADER];
2790
2818
  }
2791
2819
  })]);
2792
2820
  }
2793
- apiRouteManager = new (0, _chunkTWFJJPE7cjs.APIRouteManager)(appDirs, server, {
2821
+ apiRouteManager = new (0, _chunkZTNU4XCCcjs.APIRouteManager)(appDirs, server, {
2794
2822
  plugins: farmConfig.plugins,
2795
2823
  i18n: farmApp.getI18nRuntime(),
2796
2824
  bodySizeLimit: serverConfig.bodySizeLimit,
@@ -2799,7 +2827,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2799
2827
  // so the endpoint's middleware and integration guards run for it, as in production.
2800
2828
  dispatch: (request) => {
2801
2829
  const url = new URL(request.url);
2802
- url.pathname = _chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, url.pathname, farmConfig.basePath);
2830
+ url.pathname = _chunkTFCBJFP7cjs.applyFarmBasePath.call(void 0, url.pathname, farmConfig.basePath);
2803
2831
  return dispatchToDevServer(new Request(url, request));
2804
2832
  }
2805
2833
  });
@@ -2814,17 +2842,17 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2814
2842
  discoveredWorkflows = await discoverFarmWorkflows(
2815
2843
  { ...farmConfig, workflows: workflowConfig },
2816
2844
  {
2817
- loadModule: async (filePath) => _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, server, filePath)
2845
+ loadModule: async (filePath) => _chunkVB7P66Q4cjs.loadFarmDevModule.call(void 0, server, filePath)
2818
2846
  }
2819
2847
  );
2820
2848
  if (discoveredWorkflows.length > 0) {
2821
2849
  workflowHandler = createFarmWorkflowRequestHandler({
2822
2850
  workflows: discoveredWorkflows,
2823
2851
  config: workflowConfig,
2824
- loadModule: async (workflow) => _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, server, workflow.filePath),
2852
+ loadModule: async (workflow) => _chunkVB7P66Q4cjs.loadFarmDevModule.call(void 0, server, workflow.filePath),
2825
2853
  server: farmConfig.server
2826
2854
  });
2827
- _chunk7U4XF76Rcjs.logger.success(`\u2705 Discovered ${discoveredWorkflows.length} Farm workflow task(s)`);
2855
+ _chunk7ZDLE77Pcjs.logger.success(`\u2705 Discovered ${discoveredWorkflows.length} Farm workflow task(s)`);
2828
2856
  }
2829
2857
  }
2830
2858
  if (pm) {
@@ -2836,7 +2864,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2836
2864
  });
2837
2865
  }
2838
2866
  }
2839
- middlewareManager = new (0, _chunkUA77C2ZAcjs.MiddlewareManager)(
2867
+ middlewareManager = new (0, _chunkHF3JJPH4cjs.MiddlewareManager)(
2840
2868
  appDirs,
2841
2869
  server,
2842
2870
  farmConfig.middleware,
@@ -2857,11 +2885,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2857
2885
  });
2858
2886
  }
2859
2887
  }
2860
- if (_optionalChain([options, 'access', _189 => _189.openapi, 'optionalAccess', _190 => _190.enabled])) {
2888
+ if (_optionalChain([options, 'access', _187 => _187.openapi, 'optionalAccess', _188 => _188.enabled])) {
2861
2889
  const { OpenAPIManager } = await loadFarmOpenAPIDevRuntime();
2862
2890
  openAPIManager = new OpenAPIManager(appDirs, options.openapi, {
2863
2891
  mode: "development",
2864
- apiBaseURL: typeof _optionalChain([options, 'access', _191 => _191.api, 'optionalAccess', _192 => _192.baseURL]) === "string" ? options.api.baseURL : void 0,
2892
+ apiBaseURL: typeof _optionalChain([options, 'access', _189 => _189.api, 'optionalAccess', _190 => _190.baseURL]) === "string" ? options.api.baseURL : void 0,
2865
2893
  routes: () => apiRouteManager.getRoutes().values(),
2866
2894
  loadModule: (filePath) => apiRouteManager.loadModule(filePath)
2867
2895
  });
@@ -2880,19 +2908,19 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2880
2908
  await openAPIManager.invalidateCache();
2881
2909
  }
2882
2910
  if (process.env.FARM_VERBOSE) {
2883
- _chunk7U4XF76Rcjs.logger.info(`Refreshed routes: ${reason}`);
2911
+ _chunk7ZDLE77Pcjs.logger.info(`Refreshed routes: ${reason}`);
2884
2912
  }
2885
2913
  };
2886
- const farmDocsFontAssetList = farmDocsDevRuntime ? _chunkERMUL73Lcjs.resolveFarmDocsFontAssets.call(void 0, farmConfig.root) : [];
2914
+ const farmDocsFontAssetList = farmDocsDevRuntime ? _chunkQTGYT2DFcjs.resolveFarmDocsFontAssets.call(void 0, farmConfig.root) : [];
2887
2915
  const resolveDocsLayoutFonts = async (pathname) => {
2888
2916
  const layouts = routeManager.matchRoute(pathname).layouts;
2889
2917
  const layoutModules = await Promise.all(
2890
2918
  layouts.map((layout) => routeManager.loadLayoutModule(layout.modulePath))
2891
2919
  );
2892
- return _chunkNDMPGFKLcjs.resolveFarmLayoutFonts.call(void 0, layoutModules);
2920
+ return _chunkSIQPXYBBcjs.resolveFarmLayoutFonts.call(void 0, layoutModules);
2893
2921
  };
2894
2922
  releaseDocsMCPServers();
2895
- const isFarmDocsPathGuarded = (href) => _chunkYSRZSKQBcjs.farmPathGuardCoversPage.call(void 0,
2923
+ const isFarmDocsPathGuarded = (href) => _chunkIGBQSUT5cjs.farmPathGuardCoversPage.call(void 0,
2896
2924
  {
2897
2925
  config: farmConfig,
2898
2926
  middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
@@ -2906,23 +2934,23 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2906
2934
  rendererServer: farmConfig.renderer.server,
2907
2935
  resolveLayoutFonts: resolveDocsLayoutFonts,
2908
2936
  fontStylesheetHref: "/@farm/fonts.css",
2909
- globalStylesheetHref: _chunkM4YXD6MDcjs.resolveDevGlobalStylesheetHref.call(void 0,
2937
+ globalStylesheetHref: _chunkVWPGK6UVcjs.resolveDevGlobalStylesheetHref.call(void 0,
2910
2938
  farmConfig.root,
2911
2939
  farmConfig.srcDir
2912
2940
  ),
2913
2941
  loadModule: async (specifier) => {
2914
2942
  const resolved = await server.environments.ssr.pluginContainer.resolveId(specifier);
2915
- if (specifier === _optionalChain([farmConfig, 'access', _193 => _193.docs, 'access', _194 => _194.adapter, 'optionalAccess', _195 => _195.server]) && _optionalChain([resolved, 'optionalAccess', _196 => _196.id])) {
2943
+ if (specifier === _optionalChain([farmConfig, 'access', _191 => _191.docs, 'access', _192 => _192.adapter, 'optionalAccess', _193 => _193.server]) && _optionalChain([resolved, 'optionalAccess', _194 => _194.id])) {
2916
2944
  const file = resolved.id.split("?", 1)[0];
2917
2945
  return import(
2918
2946
  /* @vite-ignore */
2919
2947
  _url.pathToFileURL.call(void 0, file).href
2920
2948
  );
2921
2949
  }
2922
- return _chunkI2RBHZF7cjs.loadFarmDevModule.call(void 0, server, _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _197 => _197.id]), () => ( specifier)));
2950
+ return _chunkVB7P66Q4cjs.loadFarmDevModule.call(void 0, server, _nullishCoalesce(_optionalChain([resolved, 'optionalAccess', _195 => _195.id]), () => ( specifier)));
2923
2951
  },
2924
2952
  registerMCPServer: (mcpServer) => {
2925
- const dispose = _chunkRKQOMG2Xcjs.registerFarmMCPServer.call(void 0, mcpServer);
2953
+ const dispose = _chunk3ACTVXZGcjs.registerFarmMCPServer.call(void 0, mcpServer);
2926
2954
  docsMCPServerDisposers.add(dispose);
2927
2955
  return () => {
2928
2956
  docsMCPServerDisposers.delete(dispose);
@@ -2934,10 +2962,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2934
2962
  root: farmConfig.root,
2935
2963
  srcDir: farmConfig.srcDir,
2936
2964
  clientEntry: "/@farm/client.js",
2937
- fontAssets: _chunkERMUL73Lcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
2965
+ fontAssets: _chunkQTGYT2DFcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
2938
2966
  resolveLayoutFonts: resolveDocsLayoutFonts,
2939
2967
  fontStylesheetHref: "/@farm/fonts.css",
2940
- globalStylesheetHref: _chunkM4YXD6MDcjs.resolveDevGlobalStylesheetHref.call(void 0,
2968
+ globalStylesheetHref: _chunkVWPGK6UVcjs.resolveDevGlobalStylesheetHref.call(void 0,
2941
2969
  farmConfig.root,
2942
2970
  farmConfig.srcDir
2943
2971
  ),
@@ -2945,7 +2973,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2945
2973
  basePath: farmConfig.basePath
2946
2974
  }) : null;
2947
2975
  const farmDocsListsPages = Boolean(
2948
- farmDocsDevRuntime && _optionalChain([pm, 'optionalAccess', _198 => _198.getPlugins, 'call', _199 => _199(), 'access', _200 => _200.some, 'call', _201 => _201((plugin2) => plugin2.name === "farm:infra-analytics")])
2976
+ farmDocsDevRuntime && _optionalChain([pm, 'optionalAccess', _196 => _196.getPlugins, 'call', _197 => _197(), 'access', _198 => _198.some, 'call', _199 => _199((plugin2) => plugin2.name === "farm:infra-analytics")])
2949
2977
  );
2950
2978
  let farmDocsPagePaths;
2951
2979
  const getFarmDocsPagePaths = () => {
@@ -2957,7 +2985,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2957
2985
  }).then(
2958
2986
  (pages) => new Set(pages),
2959
2987
  (error) => {
2960
- _chunk7U4XF76Rcjs.logger.warn(
2988
+ _chunk7ZDLE77Pcjs.logger.warn(
2961
2989
  `Farm Infra analytics reports docs pages by the docs route, not each page's path: listing them failed (${error instanceof Error ? error.message : String(error)}).`
2962
2990
  );
2963
2991
  return void 0;
@@ -2972,22 +3000,22 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2972
3000
  });
2973
3001
  }
2974
3002
  }
2975
- const farmInfraAnalyticsPlugin = _optionalChain([pm, 'optionalAccess', _202 => _202.getPlugins, 'call', _203 => _203(), 'access', _204 => _204.find, 'call', _205 => _205((plugin2) => plugin2.name === "farm:infra-analytics")]);
3003
+ const farmInfraAnalyticsPlugin = _optionalChain([pm, 'optionalAccess', _200 => _200.getPlugins, 'call', _201 => _201(), 'access', _202 => _202.find, 'call', _203 => _203((plugin2) => plugin2.name === "farm:infra-analytics")]);
2976
3004
  if (farmInfraAnalyticsPlugin) {
2977
- _chunkUGWKNZ4Ucjs._setFarmInfraAnalyticsWebMCPRoute.call(void 0, farmInfraAnalyticsPlugin, async (pathname) => {
3005
+ _chunkO47IT4CScjs._setFarmInfraAnalyticsWebMCPRoute.call(void 0, farmInfraAnalyticsPlugin, async (pathname) => {
2978
3006
  if (farmDocsDevRuntime) {
2979
- const label = _chunkSCE7VWPNcjs.resolveFarmDocsRouteLabel.call(void 0,
2980
- _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname, farmConfig.basePath),
3007
+ const label = _chunkMZG5M4JScjs.resolveFarmDocsRouteLabel.call(void 0,
3008
+ _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname, farmConfig.basePath),
2981
3009
  {
2982
- path: _optionalChain([farmConfig, 'access', _206 => _206.docs, 'optionalAccess', _207 => _207.entry]) || "/docs",
2983
- roots: _optionalChain([farmConfig, 'access', _208 => _208.docs, 'optionalAccess', _209 => _209.roots, 'optionalAccess', _210 => _210.map, 'call', _211 => _211((root) => root.entry)]),
3010
+ path: _optionalChain([farmConfig, 'access', _204 => _204.docs, 'optionalAccess', _205 => _205.entry]) || "/docs",
3011
+ roots: _optionalChain([farmConfig, 'access', _206 => _206.docs, 'optionalAccess', _207 => _207.roots, 'optionalAccess', _208 => _208.map, 'call', _209 => _209((root) => root.entry)]),
2984
3012
  pages: await getFarmDocsPagePaths()
2985
3013
  }
2986
3014
  );
2987
- if (label) return _chunkSCE7VWPNcjs.setFarmRouteLabel.call(void 0, { pathname }, label);
3015
+ if (label) return _chunkMZG5M4JScjs.setFarmRouteLabel.call(void 0, { pathname }, label);
2988
3016
  }
2989
3017
  const match = farmApp.getRouteManager().matchRoute(pathname);
2990
- return { pathname, pattern: _optionalChain([match, 'access', _212 => _212.route, 'optionalAccess', _213 => _213.pattern]) || null };
3018
+ return { pathname, pattern: _optionalChain([match, 'access', _210 => _210.route, 'optionalAccess', _211 => _211.pattern]) || null };
2991
3019
  });
2992
3020
  }
2993
3021
  if (farmDocsDevRuntime && !farmDocsDevRuntime.hasFarmDocsRuntimeAdapter(farmConfig.docs)) {
@@ -2998,7 +3026,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
2998
3026
  server.watcher.add(docsContentDirs);
2999
3027
  for (const event of ["add", "change", "unlink"]) {
3000
3028
  server.watcher.on(event, (file) => {
3001
- const normalizedFile = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, file);
3029
+ const normalizedFile = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, file);
3002
3030
  if (appDirSlugs.some((appDir) => normalizedFile.startsWith(`${appDir}/`))) return;
3003
3031
  const contentDirs = docsContentDirs.filter(
3004
3032
  (contentDir) => farmDocsDevRuntime.isFarmDocsContentFile(contentDir, file)
@@ -3009,7 +3037,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3009
3037
  }
3010
3038
  logUpdate(
3011
3039
  "PAGE",
3012
- `${event === "add" ? "added" : event === "unlink" ? "removed" : "updated"} ${_chunk7U4XF76Rcjs.toPosixPath.call(void 0, path6.relative(farmConfig.root, file))}`
3040
+ `${event === "add" ? "added" : event === "unlink" ? "removed" : "updated"} ${_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, path6.relative(farmConfig.root, file))}`
3013
3041
  );
3014
3042
  server.ws.send({ type: "full-reload", path: "*" });
3015
3043
  });
@@ -3036,7 +3064,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3036
3064
  return;
3037
3065
  }
3038
3066
  logResponse.__last = { key: dedupeKey, ts: now };
3039
- const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
3067
+ const pc = _chunkCH2JX3CMcjs.createCliColors.call(void 0, );
3040
3068
  let statusColor = pc.green;
3041
3069
  if (status >= 500) statusColor = pc.red;
3042
3070
  else if (status >= 400) statusColor = pc.yellow;
@@ -3062,9 +3090,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3062
3090
  }
3063
3091
  },
3064
3092
  (request) => {
3065
- const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _214 => _214.getConfig, 'call', _215 => _215()]), () => ( options));
3066
- const currentServerConfig = _chunk7Q7UB4TLcjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
3067
- return _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, request, {
3093
+ const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _212 => _212.getConfig, 'call', _213 => _213()]), () => ( options));
3094
+ const currentServerConfig = _chunk7GKZDRY2cjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
3095
+ return _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, request, {
3068
3096
  trustProxy: currentServerConfig.trustProxy
3069
3097
  });
3070
3098
  }
@@ -3078,9 +3106,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3078
3106
  withAPIRequestTracing(async function handleFarmDevRequest(req, res, next) {
3079
3107
  const requestUrl = req.url || "/";
3080
3108
  const requestMethod = req.method || "GET";
3081
- const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _216 => _216.getConfig, 'call', _217 => _217()]), () => ( options));
3082
- const currentServerConfig = _chunk7Q7UB4TLcjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
3083
- const parsedRequestUrl = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req, {
3109
+ const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _214 => _214.getConfig, 'call', _215 => _215()]), () => ( options));
3110
+ const currentServerConfig = _chunk7GKZDRY2cjs.resolveFarmServerConfig.call(void 0, currentConfig.server);
3111
+ const parsedRequestUrl = _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, req, {
3084
3112
  trustProxy: currentServerConfig.trustProxy
3085
3113
  });
3086
3114
  const fullUrl = parsedRequestUrl.toString();
@@ -3101,7 +3129,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3101
3129
  }
3102
3130
  }
3103
3131
  if (requestMethod === "OPTIONS" && req.headers.origin && req.headers["access-control-request-method"]) {
3104
- const preflightHeaders = _chunkIIHZ2BEEcjs.resolveRouteRuleCorsPreflightHeaders.call(void 0,
3132
+ const preflightHeaders = _chunkQZRFEHMScjs.resolveRouteRuleCorsPreflightHeaders.call(void 0,
3105
3133
  currentConfig.routeRules,
3106
3134
  requestPathname
3107
3135
  );
@@ -3116,14 +3144,14 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3116
3144
  createRequestFromNodeRequest(req, new URL(fullUrl))
3117
3145
  );
3118
3146
  if (imageResponse) {
3119
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, imageResponse);
3147
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, imageResponse);
3120
3148
  return;
3121
3149
  }
3122
3150
  }
3123
3151
  if (pm && requestMethod !== "GET" && requestMethod !== "HEAD" && pm._hasRuntimeEndpoint(requestPathname)) {
3124
3152
  let body;
3125
3153
  try {
3126
- body = await _chunk7Q7UB4TLcjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
3154
+ body = await _chunk7GKZDRY2cjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
3127
3155
  } catch (error) {
3128
3156
  res.statusCode = _nullishCoalesce(error.status, () => ( 400));
3129
3157
  res.end();
@@ -3142,13 +3170,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3142
3170
  sendFarmDevRuntimeHookError(res, true);
3143
3171
  return;
3144
3172
  }
3145
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3173
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3146
3174
  return;
3147
3175
  }
3148
- if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkEUZFBHPPcjs.FARM_VIDEO_PLAYER_PATH) {
3176
+ if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkO7B6LJWEcjs.FARM_VIDEO_PLAYER_PATH) {
3149
3177
  res.statusCode = 200;
3150
3178
  res.setHeader("Content-Type", "text/html; charset=utf-8");
3151
- res.end(requestMethod === "HEAD" ? void 0 : _chunkM4YXD6MDcjs.FARM_VIDEO_PLAYER_HTML);
3179
+ res.end(requestMethod === "HEAD" ? void 0 : _chunkVWPGK6UVcjs.FARM_VIDEO_PLAYER_HTML);
3152
3180
  return;
3153
3181
  }
3154
3182
  const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
@@ -3160,7 +3188,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3160
3188
  else fs2.createReadStream(farmDocsFontPath).pipe(res);
3161
3189
  return;
3162
3190
  }
3163
- if (requestMethod === "GET" && (requestPathname === _chunkSTF6VDYQcjs.FARM_DEVTOOLS_PATH || requestPathname === `${_chunkSTF6VDYQcjs.FARM_DEVTOOLS_PATH}.json`)) {
3191
+ if (requestMethod === "GET" && (requestPathname === _chunkRQSPBWXJcjs.FARM_DEVTOOLS_PATH || requestPathname === `${_chunkRQSPBWXJcjs.FARM_DEVTOOLS_PATH}.json`)) {
3164
3192
  if (!farmConfig.devtools.enabled) {
3165
3193
  res.statusCode = 404;
3166
3194
  res.setHeader("Content-Type", "text/plain; charset=utf-8");
@@ -3168,19 +3196,19 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3168
3196
  res.end("Farm DevTools are disabled.");
3169
3197
  return;
3170
3198
  }
3171
- if (requestPathname === _chunkSTF6VDYQcjs.FARM_DEVTOOLS_PATH && parsedRequestUrl.searchParams.get("embedded") !== "1" && !rendererDisabled) {
3199
+ if (requestPathname === _chunkRQSPBWXJcjs.FARM_DEVTOOLS_PATH && parsedRequestUrl.searchParams.get("embedded") !== "1" && !rendererDisabled) {
3172
3200
  let launchUrl = new URL(farmConfig.basePath || "/", parsedRequestUrl.origin);
3173
3201
  const referrer = req.headers.referer;
3174
3202
  if (referrer) {
3175
3203
  try {
3176
3204
  const referrerUrl = new URL(referrer);
3177
- if (referrerUrl.origin === parsedRequestUrl.origin && !referrerUrl.pathname.startsWith(_chunkSTF6VDYQcjs.FARM_DEVTOOLS_PATH)) {
3205
+ if (referrerUrl.origin === parsedRequestUrl.origin && !referrerUrl.pathname.startsWith(_chunkRQSPBWXJcjs.FARM_DEVTOOLS_PATH)) {
3178
3206
  launchUrl = referrerUrl;
3179
3207
  }
3180
3208
  } catch (e23) {
3181
3209
  }
3182
3210
  }
3183
- launchUrl.searchParams.set(_chunkSTF6VDYQcjs.FARM_DEVTOOLS_LAUNCH_PARAM, "1");
3211
+ launchUrl.searchParams.set(_chunkRQSPBWXJcjs.FARM_DEVTOOLS_LAUNCH_PARAM, "1");
3184
3212
  res.statusCode = 302;
3185
3213
  res.setHeader(
3186
3214
  "Location",
@@ -3203,7 +3231,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3203
3231
  openapi: options.openapi
3204
3232
  },
3205
3233
  workflows: discoveredWorkflows,
3206
- plugins: _optionalChain([pm, 'optionalAccess', _218 => _218.getSortedPlugins, 'call', _219 => _219()])
3234
+ plugins: _optionalChain([pm, 'optionalAccess', _216 => _216.getSortedPlugins, 'call', _217 => _217()])
3207
3235
  });
3208
3236
  res.statusCode = 200;
3209
3237
  res.setHeader(
@@ -3216,7 +3244,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3216
3244
  } else {
3217
3245
  if (!warnedDeprecatedDevtoolsDashboard) {
3218
3246
  warnedDeprecatedDevtoolsDashboard = true;
3219
- _chunk7U4XF76Rcjs.logger.warn(
3247
+ _chunk7ZDLE77Pcjs.logger.warn(
3220
3248
  "The built-in DevTools dashboard is deprecated. Install @farm.js/devtools and add devtools() to plugins in farm.config.ts."
3221
3249
  );
3222
3250
  }
@@ -3227,7 +3255,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3227
3255
  }
3228
3256
  const isViteOwnedRequest = () => requestUrl.startsWith("/@") || requestUrl.startsWith("/node_modules/") || requestUrl.startsWith("/__farm/") || isViteModuleRequest(parsedRequestUrl, req.headers) || (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname.includes(".") && (devServableFileExists(requestPathname, [server.config.publicDir]) || isViteDevClientRequest(parsedRequestUrl, req.headers) && devServableFileExists(requestPathname, [server.config.root]));
3229
3257
  const configRewriteSource = req[FARM_DEV_CONFIG_REWRITE_SOURCE];
3230
- const runtimeHookErrorAnswersJSON = rendererDisabled || _chunkJYQ6DGPWcjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath);
3258
+ const runtimeHookErrorAnswersJSON = rendererDisabled || _chunk5P3TZGS3cjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath);
3231
3259
  const requestedPagePathname = configRewriteSource === void 0 ? requestPathname : new URL(configRewriteSource).pathname;
3232
3260
  let pageHookRouteMatch;
3233
3261
  const pageHookRoute = () => {
@@ -3238,10 +3266,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3238
3266
  render: {
3239
3267
  pathname: pathname2,
3240
3268
  method: requestMethod,
3241
- routePattern: _optionalChain([match, 'optionalAccess', _220 => _220.route, 'optionalAccess', _221 => _221.pattern]) || null,
3242
- params: _optionalChain([match, 'optionalAccess', _222 => _222.params]) || {}
3269
+ routePattern: _optionalChain([match, 'optionalAccess', _218 => _218.route, 'optionalAccess', _219 => _219.pattern]) || null,
3270
+ params: _optionalChain([match, 'optionalAccess', _220 => _220.params]) || {}
3243
3271
  },
3244
- layoutPatterns: (_optionalChain([match, 'optionalAccess', _223 => _223.layouts]) || []).map((layout) => layout.pattern)
3272
+ layoutPatterns: (_optionalChain([match, 'optionalAccess', _221 => _221.layouts]) || []).map((layout) => layout.pattern)
3245
3273
  };
3246
3274
  return pageHookRouteMatch;
3247
3275
  };
@@ -3276,13 +3304,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3276
3304
  };
3277
3305
  const meetsRequestedURLRoutes = configRewriteSource === void 0 && !deferredDottedRequests.has(req);
3278
3306
  const routeRedirect = meetsRequestedURLRoutes ? farmApp.getRouteManager().matchRedirect(requestPathname, parsedRequestUrl.search) : null;
3279
- if (meetsRequestedURLRoutes && (routeRedirect || pm && (configRoutePlugins.has(_chunkH7OFZJCVcjs.FARM_CONFIG_HEADERS_PLUGIN_NAME) || configRedirectMatchers.length > 0)) && !isViteOwnedRequest()) {
3307
+ if (meetsRequestedURLRoutes && (routeRedirect || pm && (configRoutePlugins.has(_chunkQBMMQS25cjs.FARM_CONFIG_HEADERS_PLUGIN_NAME) || configRedirectMatchers.length > 0)) && !isViteOwnedRequest()) {
3280
3308
  let redirect = routeRedirect;
3281
3309
  try {
3282
3310
  if (pm) {
3283
3311
  await pm.runHookParallelFiltered(
3284
3312
  "beforeRequest",
3285
- (plugin2) => plugin2.name === _chunkH7OFZJCVcjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
3313
+ (plugin2) => plugin2.name === _chunkQBMMQS25cjs.FARM_CONFIG_HEADERS_PLUGIN_NAME,
3286
3314
  req,
3287
3315
  res
3288
3316
  );
@@ -3308,7 +3336,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3308
3336
  const redirectResponse = response;
3309
3337
  try {
3310
3338
  const metadataRoute = matchAppMetadataRoute(requestPathname);
3311
- const kind = metadataRoute ? "asset" : _chunkJYQ6DGPWcjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath) ? "api" : requestMethod === "GET" || requestMethod === "HEAD" ? "page" : "request";
3339
+ const kind = metadataRoute ? "asset" : _chunk5P3TZGS3cjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath) ? "api" : requestMethod === "GET" || requestMethod === "HEAD" ? "page" : "request";
3312
3340
  response = await pm.runRuntimeRequest(
3313
3341
  createRequestFromNodeRequest(req, parsedRequestUrl),
3314
3342
  async () => {
@@ -3323,13 +3351,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3323
3351
  return;
3324
3352
  }
3325
3353
  }
3326
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3354
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3327
3355
  logResponse(requestMethod, requestUrl, res.statusCode, 0, "PAGE");
3328
3356
  return;
3329
3357
  }
3330
3358
  }
3331
3359
  const runAppMiddlewareForContentRoute = async () => {
3332
- if (!_optionalChain([middlewareManager, 'optionalAccess', _224 => _224.hasMiddleware, 'call', _225 => _225()])) return false;
3360
+ if (!_optionalChain([middlewareManager, 'optionalAccess', _222 => _222.hasMiddleware, 'call', _223 => _223()])) return false;
3333
3361
  const middlewareRequest = createRequestFromNodeRequest(req, new URL(fullUrl));
3334
3362
  return runFarmMiddlewareWithNavigation(
3335
3363
  farmApp.getServerRenderer(),
@@ -3363,11 +3391,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3363
3391
  return 500;
3364
3392
  }
3365
3393
  }
3366
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3394
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3367
3395
  return response.status;
3368
3396
  };
3369
3397
  const runAppMiddlewareInRuntimeSession = async (runtimeSession2, logResponse2) => {
3370
- const interceptor = runtimeSession2 && _optionalChain([pm, 'optionalAccess', _226 => _226.hasRuntimeHook, 'call', _227 => _227("after")]) && _optionalChain([middlewareManager, 'optionalAccess', _228 => _228.hasMiddleware, 'call', _229 => _229()]) ? interceptFarmDevPageResponse({
3398
+ const interceptor = runtimeSession2 && _optionalChain([pm, 'optionalAccess', _224 => _224.hasRuntimeHook, 'call', _225 => _225("after")]) && _optionalChain([middlewareManager, 'optionalAccess', _226 => _226.hasMiddleware, 'call', _227 => _227()]) ? interceptFarmDevPageResponse({
3371
3399
  req,
3372
3400
  res,
3373
3401
  pm,
@@ -3380,7 +3408,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3380
3408
  urlPath: requestUrl,
3381
3409
  pathname: requestPathname,
3382
3410
  startTime: Date.now(),
3383
- logResponse: (_method, _path, status) => _optionalChain([logResponse2, 'optionalCall', _230 => _230(status)]),
3411
+ logResponse: (_method, _path, status) => _optionalChain([logResponse2, 'optionalCall', _228 => _228(status)]),
3384
3412
  // The runtime reports a runtime.after failure itself.
3385
3413
  emitError: async () => {
3386
3414
  },
@@ -3391,7 +3419,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3391
3419
  handled = await runAppMiddlewareForContentRoute();
3392
3420
  } catch (error) {
3393
3421
  if (runtimeHookErrorAnswersJSON || res.headersSent) {
3394
- _optionalChain([interceptor, 'optionalAccess', _231 => _231.release, 'call', _232 => _232()]);
3422
+ _optionalChain([interceptor, 'optionalAccess', _229 => _229.release, 'call', _230 => _230()]);
3395
3423
  throw error;
3396
3424
  }
3397
3425
  if (runtimeSession2) await pm.reportRuntimeRequestError(runtimeSession2, error);
@@ -3399,10 +3427,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3399
3427
  return true;
3400
3428
  }
3401
3429
  if (!handled) {
3402
- _optionalChain([interceptor, 'optionalAccess', _233 => _233.release, 'call', _234 => _234()]);
3430
+ _optionalChain([interceptor, 'optionalAccess', _231 => _231.release, 'call', _232 => _232()]);
3403
3431
  return false;
3404
3432
  }
3405
- if (!_optionalChain([interceptor, 'optionalAccess', _235 => _235.isEnded, 'call', _236 => _236()])) _optionalChain([logResponse2, 'optionalCall', _237 => _237(res.statusCode || 200)]);
3433
+ if (!_optionalChain([interceptor, 'optionalAccess', _233 => _233.isEnded, 'call', _234 => _234()])) _optionalChain([logResponse2, 'optionalCall', _235 => _235(res.statusCode || 200)]);
3406
3434
  return true;
3407
3435
  };
3408
3436
  const serveBuiltInRoute = async (respond, {
@@ -3411,7 +3439,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3411
3439
  label
3412
3440
  } = {}) => {
3413
3441
  const discard = async () => {
3414
- await _optionalChain([computed, 'optionalAccess', _238 => _238.body, 'optionalAccess', _239 => _239.cancel, 'call', _240 => _240(), 'access', _241 => _241.catch, 'call', _242 => _242(() => {
3442
+ await _optionalChain([computed, 'optionalAccess', _236 => _236.body, 'optionalAccess', _237 => _237.cancel, 'call', _238 => _238(), 'access', _239 => _239.catch, 'call', _240 => _240(() => {
3415
3443
  })]);
3416
3444
  };
3417
3445
  const sendRuntimeResponse = async (runtimeSession3, response2) => {
@@ -3422,15 +3450,15 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3422
3450
  sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
3423
3451
  return;
3424
3452
  }
3425
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, runtimeResponse);
3453
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, runtimeResponse);
3426
3454
  };
3427
3455
  let runtimeSession2;
3428
3456
  if (pm && opensFarmDevRuntimeSession(pm)) {
3429
3457
  try {
3430
- const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
3431
- const route = _chunkSCE7VWPNcjs.setFarmRouteLabel.call(void 0,
3458
+ const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
3459
+ const route = _chunkMZG5M4JScjs.setFarmRouteLabel.call(void 0,
3432
3460
  { pathname: requestPathname },
3433
- label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkSCE7VWPNcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
3461
+ label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkMZG5M4JScjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
3434
3462
  );
3435
3463
  runtimeSession2 = await pm.beginRuntimeRequest(
3436
3464
  createRequestFromNodeRequest(req, new URL(fullUrl)),
@@ -3468,11 +3496,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3468
3496
  }
3469
3497
  responding = true;
3470
3498
  response = await respond(
3471
- _nullishCoalesce(_optionalChain([runtimeSession2, 'optionalAccess', _243 => _243.request]), () => ( createRequestFromNodeRequest(req, new URL(fullUrl))))
3499
+ _nullishCoalesce(_optionalChain([runtimeSession2, 'optionalAccess', _241 => _241.request]), () => ( createRequestFromNodeRequest(req, new URL(fullUrl))))
3472
3500
  );
3473
3501
  } catch (error) {
3474
3502
  if (!responding && !res.headersSent) {
3475
- _chunk7U4XF76Rcjs.logger.error(`Middleware error: ${error}`);
3503
+ _chunk7ZDLE77Pcjs.logger.error(`Middleware error: ${error}`);
3476
3504
  await discard();
3477
3505
  await sendMiddlewareErrorJSON(runtimeSession2, error);
3478
3506
  return;
@@ -3485,10 +3513,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3485
3513
  }
3486
3514
  if (!response) return;
3487
3515
  if (runtimeSession2) await sendRuntimeResponse(runtimeSession2, response);
3488
- else await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3516
+ else await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3489
3517
  };
3490
- const openAPIRequestPathname = openAPIManager ? _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) : requestPathname;
3491
- if (openAPIManager && _optionalChain([options, 'access', _244 => _244.openapi, 'optionalAccess', _245 => _245.specRoute]) && openAPIRequestPathname === options.openapi.specRoute) {
3518
+ const openAPIRequestPathname = openAPIManager ? _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) : requestPathname;
3519
+ if (openAPIManager && _optionalChain([options, 'access', _242 => _242.openapi, 'optionalAccess', _243 => _243.specRoute]) && openAPIRequestPathname === options.openapi.specRoute) {
3492
3520
  const specManager = openAPIManager;
3493
3521
  await serveBuiltInRoute(async () => {
3494
3522
  if (requestMethod !== "GET" && requestMethod !== "HEAD") {
@@ -3508,7 +3536,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3508
3536
  });
3509
3537
  return;
3510
3538
  }
3511
- if (openAPIManager && openAPIRequestPathname === _optionalChain([options, 'access', _246 => _246.openapi, 'optionalAccess', _247 => _247.route])) {
3539
+ if (openAPIManager && openAPIRequestPathname === _optionalChain([options, 'access', _244 => _244.openapi, 'optionalAccess', _245 => _245.route])) {
3512
3540
  const docsManager = openAPIManager;
3513
3541
  await serveBuiltInRoute(
3514
3542
  async () => {
@@ -3519,8 +3547,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3519
3547
  );
3520
3548
  return;
3521
3549
  }
3522
- if (_optionalChain([options, 'access', _248 => _248.agent, 'optionalAccess', _249 => _249.manifest]) !== false && _chunkSCE7VWPNcjs.isFarmAppManifestPath.call(void 0, _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
3523
- const manifestGuardCoversPath = (path7) => _chunkYSRZSKQBcjs.farmPathGuardCoversEndpoint.call(void 0,
3550
+ if (_optionalChain([options, 'access', _246 => _246.agent, 'optionalAccess', _247 => _247.manifest]) !== false && _chunkMZG5M4JScjs.isFarmAppManifestPath.call(void 0, _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
3551
+ const manifestGuardCoversPath = (path7) => _chunkIGBQSUT5cjs.farmPathGuardCoversEndpoint.call(void 0,
3524
3552
  {
3525
3553
  config: farmConfig,
3526
3554
  middlewareRoutes: middlewareManager.getMiddlewares().filter((entry) => entry.source !== "config")
@@ -3529,25 +3557,25 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3529
3557
  apiServerBasePath
3530
3558
  );
3531
3559
  await serveBuiltInRoute(async () => {
3532
- _nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkM4YXD6MDcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
3533
- const manifest = await _chunkSCE7VWPNcjs.createFarmAppManifestResponse.call(void 0,
3560
+ _nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkVWPGK6UVcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
3561
+ const manifest = await _chunkMZG5M4JScjs.createFarmAppManifestResponse.call(void 0,
3534
3562
  new Request(parsedRequestUrl, {
3535
3563
  method: requestMethod,
3536
3564
  headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
3537
3565
  }),
3538
3566
  {
3539
- ..._chunkSCE7VWPNcjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
3567
+ ..._chunkMZG5M4JScjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
3540
3568
  build: "development",
3541
3569
  packages: farmAppPackages,
3542
3570
  // Read again on each request; unchanged files come from a cache.
3543
- webmcpTools: _optionalChain([farmConfig, 'access', _250 => _250.plugins, 'optionalAccess', _251 => _251.some, 'call', _252 => _252(({ name }) => name === "farm:webmcp")]) ? _chunkM4YXD6MDcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
3571
+ webmcpTools: _optionalChain([farmConfig, 'access', _248 => _248.plugins, 'optionalAccess', _249 => _249.some, 'call', _250 => _250(({ name }) => name === "farm:webmcp")]) ? _chunkVWPGK6UVcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
3544
3572
  }),
3545
3573
  defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
3546
3574
  // A guard written for an MCP server's path keeps its tools out of the public view.
3547
3575
  guardCoversPath: manifestGuardCoversPath,
3548
3576
  // A docs runtime's MCP server lists its tools when asked, read on each request.
3549
3577
  ...farmDocsHandler ? {
3550
- registeredMCP: (request) => _chunk3SPECQXIcjs._listFarmRegisteredMCPServerTools.call(void 0, farmDocsHandler, request, {
3578
+ registeredMCP: (request) => _chunkW4KSV6GXcjs._listFarmRegisteredMCPServerTools.call(void 0, farmDocsHandler, request, {
3551
3579
  basePath: farmConfig.basePath,
3552
3580
  guardCoversPath: manifestGuardCoversPath
3553
3581
  })
@@ -3558,11 +3586,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3558
3586
  });
3559
3587
  return;
3560
3588
  }
3561
- if (_optionalChain([options, 'access', _253 => _253.agent, 'optionalAccess', _254 => _254.apiCatalog]) && _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkSCE7VWPNcjs.FARM_API_CATALOG_PATH) {
3589
+ if (_optionalChain([options, 'access', _251 => _251.agent, 'optionalAccess', _252 => _252.apiCatalog]) && _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkMZG5M4JScjs.FARM_API_CATALOG_PATH) {
3562
3590
  await serveBuiltInRoute(
3563
- () => _chunkSCE7VWPNcjs.createFarmApiCatalogResponse.call(void 0,
3591
+ () => _chunkMZG5M4JScjs.createFarmApiCatalogResponse.call(void 0,
3564
3592
  requestMethod,
3565
- _chunkSCE7VWPNcjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
3593
+ _chunkMZG5M4JScjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
3566
3594
  new Request(parsedRequestUrl, {
3567
3595
  headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
3568
3596
  })
@@ -3570,8 +3598,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3570
3598
  );
3571
3599
  return;
3572
3600
  }
3573
- if (_optionalChain([options, 'access', _255 => _255.agent, 'optionalAccess', _256 => _256.aiCatalog]) !== false) {
3574
- const aiCatalog = _chunkSCE7VWPNcjs.createFarmAiCatalogResponse.call(void 0,
3601
+ if (_optionalChain([options, 'access', _253 => _253.agent, 'optionalAccess', _254 => _254.aiCatalog]) !== false) {
3602
+ const aiCatalog = _chunkMZG5M4JScjs.createFarmAiCatalogResponse.call(void 0,
3575
3603
  new Request(parsedRequestUrl, {
3576
3604
  method: requestMethod,
3577
3605
  headers: {
@@ -3611,15 +3639,15 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3611
3639
  method: requestMethod,
3612
3640
  headers: docsHeaders
3613
3641
  });
3614
- const docsBodyInit = requestMethod === "GET" || requestMethod === "HEAD" ? {} : { body: _chunk7Q7UB4TLcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" };
3642
+ const docsBodyInit = requestMethod === "GET" || requestMethod === "HEAD" ? {} : { body: _chunk7GKZDRY2cjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" };
3615
3643
  const docsHandlerRequest = new Request(docsRequest, docsBodyInit);
3616
- const registeredMCPCalls = await _chunk3SPECQXIcjs._readFarmRegisteredMCPCalls.call(void 0,
3644
+ const registeredMCPCalls = await _chunkW4KSV6GXcjs._readFarmRegisteredMCPCalls.call(void 0,
3617
3645
  docsHandlerRequest,
3618
3646
  farmConfig.basePath
3619
3647
  );
3620
3648
  const docsResponse = await farmDocsHandler(docsHandlerRequest);
3621
3649
  if (docsResponse) {
3622
- const docsPage = _optionalChain([docsResponse, 'access', _257 => _257.headers, 'access', _258 => _258.get, 'call', _259 => _259("content-type"), 'optionalAccess', _260 => _260.toLowerCase, 'call', _261 => _261(), 'access', _262 => _262.includes, 'call', _263 => _263("text/html")]);
3650
+ const docsPage = _optionalChain([docsResponse, 'access', _255 => _255.headers, 'access', _256 => _256.get, 'call', _257 => _257("content-type"), 'optionalAccess', _258 => _258.toLowerCase, 'call', _259 => _259(), 'access', _260 => _260.includes, 'call', _261 => _261("text/html")]);
3623
3651
  await serveBuiltInRoute(
3624
3652
  async (request) => {
3625
3653
  if (!docsPage) {
@@ -3627,20 +3655,20 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3627
3655
  docsRequest,
3628
3656
  docsResponse
3629
3657
  );
3630
- return _chunk2RSVYJT6cjs._runWithCurrentRequest.call(void 0,
3658
+ return _chunkIBZW57NWcjs._runWithCurrentRequest.call(void 0,
3631
3659
  request,
3632
- () => _chunk3SPECQXIcjs._observeFarmRegisteredMCPResponse.call(void 0, response, registeredMCPCalls)
3660
+ () => _chunkW4KSV6GXcjs._observeFarmRegisteredMCPResponse.call(void 0, response, registeredMCPCalls)
3633
3661
  );
3634
3662
  }
3635
- const deploymentMismatch = _chunkNLBHLPEOcjs.getFarmDeploymentMismatch.call(void 0,
3663
+ const deploymentMismatch = _chunkVIDUNAQEcjs.getFarmDeploymentMismatch.call(void 0,
3636
3664
  request,
3637
3665
  farmConfig.deploymentId
3638
3666
  );
3639
3667
  if (deploymentMismatch) {
3640
- await _optionalChain([docsResponse, 'access', _264 => _264.body, 'optionalAccess', _265 => _265.cancel, 'call', _266 => _266()]);
3641
- return _chunkNLBHLPEOcjs.createFarmDeploymentMismatchResponse.call(void 0, deploymentMismatch);
3668
+ await _optionalChain([docsResponse, 'access', _262 => _262.body, 'optionalAccess', _263 => _263.cancel, 'call', _264 => _264()]);
3669
+ return _chunkVIDUNAQEcjs.createFarmDeploymentMismatchResponse.call(void 0, deploymentMismatch);
3642
3670
  }
3643
- const page = _chunkA25FXJ7Dcjs._withFarmResponseHeaders.call(void 0,
3671
+ const page = _chunkSWOJU7LIcjs._withFarmResponseHeaders.call(void 0,
3644
3672
  await wrapFarmDocsResponseWithLayouts(docsRequest, docsResponse),
3645
3673
  (headers) => {
3646
3674
  const vary = (_nullishCoalesce(headers.get("Vary"), () => ( ""))).split(",").map((value) => value.trim()).filter(Boolean);
@@ -3649,7 +3677,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3649
3677
  }
3650
3678
  }
3651
3679
  );
3652
- return _chunkNLBHLPEOcjs.withFarmDeploymentResponse.call(void 0, page, farmConfig.deploymentId, {
3680
+ return _chunkVIDUNAQEcjs.withFarmDeploymentResponse.call(void 0, page, farmConfig.deploymentId, {
3653
3681
  setCookie: request.method.toUpperCase() === "GET",
3654
3682
  cookiePath: farmConfig.basePath || "/",
3655
3683
  secureCookie: new URL(request.url).protocol === "https:"
@@ -3658,11 +3686,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3658
3686
  {
3659
3687
  kind: "docs",
3660
3688
  computed: docsResponse,
3661
- label: _chunkSCE7VWPNcjs.resolveFarmDocsEngineRouteLabel.call(void 0,
3662
- _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
3689
+ label: _chunkMZG5M4JScjs.resolveFarmDocsEngineRouteLabel.call(void 0,
3690
+ _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
3663
3691
  {
3664
- path: _optionalChain([farmConfig, 'access', _267 => _267.docs, 'optionalAccess', _268 => _268.entry]) || "/docs",
3665
- roots: _optionalChain([farmConfig, 'access', _269 => _269.docs, 'optionalAccess', _270 => _270.roots, 'optionalAccess', _271 => _271.map, 'call', _272 => _272((root) => root.entry)]),
3692
+ path: _optionalChain([farmConfig, 'access', _265 => _265.docs, 'optionalAccess', _266 => _266.entry]) || "/docs",
3693
+ roots: _optionalChain([farmConfig, 'access', _267 => _267.docs, 'optionalAccess', _268 => _268.roots, 'optionalAccess', _269 => _269.map, 'call', _270 => _270((root) => root.entry)]),
3666
3694
  pages: await getFarmDocsPagePaths()
3667
3695
  }
3668
3696
  )
@@ -3671,9 +3699,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3671
3699
  return;
3672
3700
  }
3673
3701
  }
3674
- if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && _optionalChain([req, 'access', _273 => _273.headers, 'access', _274 => _274.accept, 'optionalAccess', _275 => _275.includes, 'call', _276 => _276(_chunk3HLQTOVUcjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
3675
- const { createFarmNativeTreeResponse } = await import("./native-tree-52CUAP3N.cjs");
3676
- const treeBodyInit = requestMethod === "POST" ? { body: _chunk7Q7UB4TLcjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
3702
+ if (options.mobileClient && !viteModuleRequest && (requestMethod === "GET" || requestMethod === "HEAD" || requestMethod === "POST") && _optionalChain([req, 'access', _271 => _271.headers, 'access', _272 => _272.accept, 'optionalAccess', _273 => _273.includes, 'call', _274 => _274(_chunkXVD5Y6S4cjs.FARM_NATIVE_TREE_CONTENT_TYPE)])) {
3703
+ const { createFarmNativeTreeResponse } = await import("./native-tree-PHCV43W4.cjs");
3704
+ const treeBodyInit = requestMethod === "POST" ? { body: _chunk7GKZDRY2cjs.createFarmNodeRequestBodyStream.call(void 0, req), duplex: "half" } : {};
3677
3705
  const treeResponse = await createFarmNativeTreeResponse({
3678
3706
  request: new Request(fullUrl, {
3679
3707
  method: requestMethod,
@@ -3681,26 +3709,26 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3681
3709
  ...treeBodyInit
3682
3710
  }),
3683
3711
  // As for the Markdown mirror: this server's own listener, redirects not followed.
3684
- renderPage: (request) => _chunkBNH53KOTcjs.createFarmDevServerDispatch.call(void 0, server)(
3712
+ renderPage: (request) => _chunkSZBBBLLScjs.createFarmDevServerDispatch.call(void 0, server)(
3685
3713
  new Request(request, {
3686
- signal: res.destroyed ? AbortSignal.abort() : _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3714
+ signal: res.destroyed ? AbortSignal.abort() : _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3687
3715
  })
3688
3716
  )
3689
3717
  });
3690
3718
  await serveBuiltInRoute(() => treeResponse, {
3691
3719
  computed: treeResponse,
3692
- label: _nullishCoalesce(_optionalChain([farmApp, 'access', _277 => _277.getRouteManager, 'call', _278 => _278(), 'access', _279 => _279.matchRoute, 'call', _280 => _280(_chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath)), 'access', _281 => _281.route, 'optionalAccess', _282 => _282.pattern]), () => ( null))
3720
+ label: _nullishCoalesce(_optionalChain([farmApp, 'access', _275 => _275.getRouteManager, 'call', _276 => _276(), 'access', _277 => _277.matchRoute, 'call', _278 => _278(_chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath)), 'access', _279 => _279.route, 'optionalAccess', _280 => _280.pattern]), () => ( null))
3693
3721
  });
3694
3722
  return;
3695
3723
  }
3696
3724
  const markdownRouteLabel = () => (
3697
3725
  // On the route path, as production labels it: /fr/index.md is /index.md.
3698
- _chunkSCE7VWPNcjs.resolveFarmMarkdownRouteLabel.call(void 0,
3726
+ _chunkMZG5M4JScjs.resolveFarmMarkdownRouteLabel.call(void 0,
3699
3727
  toRoutePathname(requestPathname),
3700
- (page) => _optionalChain([farmApp, 'access', _283 => _283.getRouteManager, 'call', _284 => _284(), 'access', _285 => _285.matchRoute, 'call', _286 => _286(page), 'access', _287 => _287.route, 'optionalAccess', _288 => _288.pattern])
3728
+ (page) => _optionalChain([farmApp, 'access', _281 => _281.getRouteManager, 'call', _282 => _282(), 'access', _283 => _283.matchRoute, 'call', _284 => _284(page), 'access', _285 => _285.route, 'optionalAccess', _286 => _286.pattern])
3701
3729
  )
3702
3730
  );
3703
- const markdownSourceResponse = viteModuleRequest ? null : await _chunkJDT733EWcjs.createFarmMarkdownSourceResponse.call(void 0, {
3731
+ const markdownSourceResponse = viteModuleRequest ? null : await _chunk27IPPPCVcjs.createFarmMarkdownSourceResponse.call(void 0, {
3704
3732
  request: new Request(fullUrl, {
3705
3733
  method: requestMethod,
3706
3734
  headers: docsHeaders
@@ -3709,28 +3737,28 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3709
3737
  routePathname: toRoutePathname,
3710
3738
  resolveSource: async (pathname2) => {
3711
3739
  const match = farmApp.getRouteManager().matchRoute(pathname2);
3712
- const sourcePath = _optionalChain([match, 'access', _289 => _289.route, 'optionalAccess', _290 => _290.markdownSourcePath]) || (match.route && _chunkJDT733EWcjs.isFarmMarkdownPageFile.call(void 0, match.route.modulePath) ? match.route.modulePath : null);
3740
+ const sourcePath = _optionalChain([match, 'access', _287 => _287.route, 'optionalAccess', _288 => _288.markdownSourcePath]) || (match.route && _chunk27IPPPCVcjs.isFarmMarkdownPageFile.call(void 0, match.route.modulePath) ? match.route.modulePath : null);
3713
3741
  if (!sourcePath) {
3714
3742
  return null;
3715
3743
  }
3716
3744
  return {
3717
3745
  source: await fs2.promises.readFile(sourcePath, "utf8"),
3718
3746
  // Project-relative, as production sends it: never the machine's path.
3719
- filePath: _chunkM4YXD6MDcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
3747
+ filePath: _chunkVWPGK6UVcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
3720
3748
  };
3721
3749
  },
3722
3750
  // The anonymous check goes through this server, so its guards and
3723
3751
  // middleware see the page's own path, as in production. It connects to
3724
3752
  // this server's own listener, never the host the caller's Host names. The
3725
3753
  // page is asked for at the URL it answers at, not through the trailing-slash 308.
3726
- renderPage: async (request) => _chunkBNH53KOTcjs.createFarmDevServerDispatch.call(void 0, server)(
3754
+ renderPage: async (request) => _chunkSZBBBLLScjs.createFarmDevServerDispatch.call(void 0, server)(
3727
3755
  new Request(
3728
- _chunkDVJM55D2cjs.toFarmTrailingSlashPageRequest.call(void 0,
3756
+ _chunk6FIY4KBCcjs.toFarmTrailingSlashPageRequest.call(void 0,
3729
3757
  request,
3730
3758
  farmApp.getConfig().trailingSlash === true
3731
3759
  ),
3732
3760
  {
3733
- signal: res.destroyed ? AbortSignal.abort() : _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3761
+ signal: res.destroyed ? AbortSignal.abort() : _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3734
3762
  }
3735
3763
  )
3736
3764
  )
@@ -3742,7 +3770,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3742
3770
  });
3743
3771
  return;
3744
3772
  }
3745
- const markdownResponse = viteModuleRequest ? null : await _chunk5LJF4KUZcjs.createMarkdownMirrorResponse.call(void 0, {
3773
+ const markdownResponse = viteModuleRequest ? null : await _chunkU2HFXURZcjs.createMarkdownMirrorResponse.call(void 0, {
3746
3774
  request: new Request(fullUrl, {
3747
3775
  method: requestMethod,
3748
3776
  headers: docsHeaders
@@ -3757,9 +3785,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3757
3785
  renderPage: async (request) => {
3758
3786
  const headers = new Headers(request.headers);
3759
3787
  headers.delete("accept-encoding");
3760
- return _chunkBNH53KOTcjs.createFarmDevServerDispatch.call(void 0, server)(
3788
+ return _chunkSZBBBLLScjs.createFarmDevServerDispatch.call(void 0, server)(
3761
3789
  new Request(
3762
- _chunkDVJM55D2cjs.toFarmTrailingSlashPageRequest.call(void 0,
3790
+ _chunk6FIY4KBCcjs.toFarmTrailingSlashPageRequest.call(void 0,
3763
3791
  request,
3764
3792
  farmApp.getConfig().trailingSlash === true
3765
3793
  ),
@@ -3767,7 +3795,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3767
3795
  headers,
3768
3796
  // Only accepted mirrors need disconnect listeners. An earlier
3769
3797
  // close (for example while the docs handler ran) must also abort.
3770
- signal: res.destroyed ? AbortSignal.abort() : _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3798
+ signal: res.destroyed ? AbortSignal.abort() : _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3771
3799
  }
3772
3800
  )
3773
3801
  );
@@ -3781,16 +3809,16 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3781
3809
  });
3782
3810
  return;
3783
3811
  }
3784
- if (!viteModuleRequest && _chunk5LJF4KUZcjs.farmRequestWantsMarkdown.call(void 0, requestPathname, req.headers.accept)) {
3785
- const markdownRoute = farmApp.getRouteManager().matchRoute(_chunkJDT733EWcjs.normalizeFarmMarkdownRoutePath.call(void 0, requestPathname, toRoutePathname));
3812
+ if (!viteModuleRequest && _chunkU2HFXURZcjs.farmRequestWantsMarkdown.call(void 0, requestPathname, req.headers.accept)) {
3813
+ const markdownRoute = farmApp.getRouteManager().matchRoute(_chunk27IPPPCVcjs.normalizeFarmMarkdownRoutePath.call(void 0, requestPathname, toRoutePathname));
3786
3814
  if (!markdownRoute.route) {
3787
3815
  await serveBuiltInRoute(
3788
3816
  () => new Response(
3789
- _chunk5LJF4KUZcjs.createFarmMarkdownErrorBody.call(void 0, 404, requestPathname, farmConfig.basePath || "/"),
3817
+ _chunkU2HFXURZcjs.createFarmMarkdownErrorBody.call(void 0, 404, requestPathname, farmConfig.basePath || "/"),
3790
3818
  {
3791
3819
  status: 404,
3792
3820
  headers: {
3793
- "Content-Type": _chunk5LJF4KUZcjs.FARM_MARKDOWN_CONTENT_TYPE,
3821
+ "Content-Type": _chunkU2HFXURZcjs.FARM_MARKDOWN_CONTENT_TYPE,
3794
3822
  "X-Farm-Markdown-Error": "404",
3795
3823
  "Cache-Control": "no-store"
3796
3824
  }
@@ -3800,7 +3828,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3800
3828
  return;
3801
3829
  }
3802
3830
  }
3803
- const markdownPageTarget = _chunk5LJF4KUZcjs.resolveMarkdownMirrorTarget.call(void 0,
3831
+ const markdownPageTarget = _chunkU2HFXURZcjs.resolveMarkdownMirrorTarget.call(void 0,
3804
3832
  farmApp.getConfig().md,
3805
3833
  requestPathname,
3806
3834
  {
@@ -3825,15 +3853,15 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3825
3853
  let workflowBody;
3826
3854
  try {
3827
3855
  if (requestMethod !== "GET" && requestMethod !== "HEAD") {
3828
- workflowBody = await _chunk7Q7UB4TLcjs.readNodeRequestBody.call(void 0,
3856
+ workflowBody = await _chunk7GKZDRY2cjs.readNodeRequestBody.call(void 0,
3829
3857
  req,
3830
3858
  currentServerConfig.bodySizeLimit
3831
3859
  );
3832
3860
  }
3833
3861
  } catch (error) {
3834
- const response = _chunk7Q7UB4TLcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
3862
+ const response = _chunk7GKZDRY2cjs.createFarmRequestBodyErrorResponse.call(void 0, error);
3835
3863
  if (!response) throw error;
3836
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3864
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3837
3865
  return;
3838
3866
  }
3839
3867
  const workflowResponse = await workflowHandler(
@@ -3841,17 +3869,17 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3841
3869
  method: requestMethod,
3842
3870
  headers: docsHeaders,
3843
3871
  body: toRequestBody(workflowBody),
3844
- signal: _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3872
+ signal: _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3845
3873
  })
3846
3874
  );
3847
3875
  if (workflowResponse) {
3848
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, workflowResponse);
3876
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, workflowResponse);
3849
3877
  return;
3850
3878
  }
3851
3879
  }
3852
3880
  const configuredIntegrations = currentConfig.integrations;
3853
3881
  const tryConfiguredIntegrationRoute = async () => {
3854
- const matchedRoute = _chunkDVAZ53X6cjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
3882
+ const matchedRoute = _chunkN4AM7Q34cjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
3855
3883
  pathname: requestPathname,
3856
3884
  method: requestMethod
3857
3885
  });
@@ -3865,8 +3893,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3865
3893
  await pm.runHookParallelFiltered(
3866
3894
  "beforeRequest",
3867
3895
  (plugin2) => {
3868
- const owner = _chunkDVAZ53X6cjs.getFarmIntegrationPluginOwner.call(void 0, plugin2);
3869
- return !isFarmConfigRoutePlugin(plugin2) && (_optionalChain([owner, 'optionalAccess', _291 => _291.source]) !== "lifecycle" || owner.key !== matchedRoute.key);
3896
+ const owner = _chunkN4AM7Q34cjs.getFarmIntegrationPluginOwner.call(void 0, plugin2);
3897
+ return !isFarmConfigRoutePlugin(plugin2) && (_optionalChain([owner, 'optionalAccess', _289 => _289.source]) !== "lifecycle" || owner.key !== matchedRoute.key);
3870
3898
  },
3871
3899
  req,
3872
3900
  res
@@ -3885,17 +3913,17 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3885
3913
  }
3886
3914
  let body;
3887
3915
  if (req.method !== "GET" && req.method !== "HEAD") {
3888
- body = await _chunk7Q7UB4TLcjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
3916
+ body = await _chunk7GKZDRY2cjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
3889
3917
  }
3890
3918
  const integrationRequest = new Request(fullUrl, {
3891
3919
  method: req.method,
3892
3920
  headers,
3893
3921
  body: toRequestBody(body),
3894
- signal: _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3922
+ signal: _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
3895
3923
  });
3896
3924
  const dispatchIntegration = async (request, runtime) => {
3897
3925
  try {
3898
- const result = await _chunkDVAZ53X6cjs.dispatchIntegrationRequest.call(void 0,
3926
+ const result = await _chunkN4AM7Q34cjs.dispatchIntegrationRequest.call(void 0,
3899
3927
  {
3900
3928
  integration: matchedRoute.integration,
3901
3929
  config: currentConfig,
@@ -3903,16 +3931,16 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3903
3931
  isProd: false
3904
3932
  },
3905
3933
  request,
3906
- { clientAddress: _optionalChain([req, 'access', _292 => _292.socket, 'optionalAccess', _293 => _293.remoteAddress]) }
3934
+ { clientAddress: _optionalChain([req, 'access', _290 => _290.socket, 'optionalAccess', _291 => _291.remoteAddress]) }
3907
3935
  );
3908
3936
  if (!result) {
3909
3937
  throw new Error(`Matched integration route did not return a response`);
3910
3938
  }
3911
3939
  return result;
3912
3940
  } catch (error) {
3913
- _chunk7U4XF76Rcjs.logger.error(`Integration route error: ${error}`);
3914
- await _optionalChain([runtime, 'optionalAccess', _294 => _294.reportError, 'call', _295 => _295(error)]);
3915
- return _chunkJYQ6DGPWcjs.createFarmInternalServerErrorResponse.call(void 0, );
3941
+ _chunk7ZDLE77Pcjs.logger.error(`Integration route error: ${error}`);
3942
+ await _optionalChain([runtime, 'optionalAccess', _292 => _292.reportError, 'call', _293 => _293(error)]);
3943
+ return _chunk5P3TZGS3cjs.createFarmInternalServerErrorResponse.call(void 0, );
3916
3944
  }
3917
3945
  };
3918
3946
  runtimeReportsErrors = Boolean(pm);
@@ -3928,12 +3956,12 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3928
3956
  }
3929
3957
  const duration = Date.now() - startTime2;
3930
3958
  logResponse(requestMethod, requestUrl, response.status, duration, "API");
3931
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
3959
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
3932
3960
  return true;
3933
3961
  } catch (error) {
3934
- const bodyErrorResponse = _chunk7Q7UB4TLcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
3962
+ const bodyErrorResponse = _chunk7GKZDRY2cjs.createFarmRequestBodyErrorResponse.call(void 0, error);
3935
3963
  if (bodyErrorResponse) {
3936
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
3964
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
3937
3965
  return true;
3938
3966
  }
3939
3967
  const duration = Date.now() - startTime2;
@@ -3946,32 +3974,32 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3946
3974
  integration: matchedRoute.key
3947
3975
  });
3948
3976
  }
3949
- _chunk7U4XF76Rcjs.logger.error(`Integration route error: ${error}`);
3977
+ _chunk7ZDLE77Pcjs.logger.error(`Integration route error: ${error}`);
3950
3978
  if (runtimeReportsErrors) {
3951
3979
  if (!res.headersSent) sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
3952
3980
  else if (!res.writableEnded) res.end();
3953
3981
  } else if (!res.writableEnded) {
3954
3982
  res.statusCode = 500;
3955
3983
  res.setHeader("Content-Type", "application/json");
3956
- res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
3984
+ res.end(_chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
3957
3985
  }
3958
3986
  return true;
3959
3987
  }
3960
3988
  };
3961
- if (pm && configRewriteSource === void 0 && configRoutePlugins.has(_chunkH7OFZJCVcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME)) {
3989
+ if (pm && configRewriteSource === void 0 && configRoutePlugins.has(_chunkQBMMQS25cjs.FARM_CONFIG_REWRITES_PLUGIN_NAME)) {
3962
3990
  const hasLocalDevRoute = () => {
3963
3991
  const routeManager3 = farmApp.getRouteManager();
3964
3992
  return Boolean(
3965
- _chunkDVAZ53X6cjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
3993
+ _chunkN4AM7Q34cjs.matchIntegrationRoute.call(void 0, configuredIntegrations, {
3966
3994
  pathname: requestPathname,
3967
3995
  method: requestMethod
3968
- }) || routeManager3.matchRedirect(requestPathname) || apiRouteManager.matchRoute(requestPathname) || farmDocsAPIHandler && _optionalChain([farmDocsDevRuntime, 'optionalAccess', _296 => _296.isFarmDocsAPIRequest, 'call', _297 => _297(requestPathname)]) || routeManager3.matchRoute(requestPathname).route || routeManager3.matchMetadataRoute(requestPathname) || routeManager3.matchMetadataImage(requestPathname)
3996
+ }) || routeManager3.matchRedirect(requestPathname) || apiRouteManager.matchRoute(requestPathname) || farmDocsAPIHandler && _optionalChain([farmDocsDevRuntime, 'optionalAccess', _294 => _294.isFarmDocsAPIRequest, 'call', _295 => _295(requestPathname)]) || routeManager3.matchRoute(requestPathname).route || routeManager3.matchMetadataRoute(requestPathname) || routeManager3.matchMetadataImage(requestPathname)
3969
3997
  );
3970
3998
  };
3971
3999
  try {
3972
4000
  await pm.runHookParallelFiltered(
3973
4001
  "beforeRequest",
3974
- (plugin2) => plugin2.name === _chunkH7OFZJCVcjs.FARM_CONFIG_REWRITES_PLUGIN_NAME,
4002
+ (plugin2) => plugin2.name === _chunkQBMMQS25cjs.FARM_CONFIG_REWRITES_PLUGIN_NAME,
3975
4003
  req,
3976
4004
  res
3977
4005
  );
@@ -3999,11 +4027,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
3999
4027
  }
4000
4028
  const matchedApiRoute = apiRouteManager.matchRoute(requestPathname);
4001
4029
  const hasMatchedApiRoute = Boolean(matchedApiRoute);
4002
- if (hasMatchedApiRoute || _chunkJYQ6DGPWcjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath)) {
4030
+ if (hasMatchedApiRoute || _chunk5P3TZGS3cjs.isFarmAPIPathname.call(void 0, requestPathname, apiServerBasePath)) {
4003
4031
  const startTime2 = Date.now();
4004
4032
  const method2 = req.method || "GET";
4005
4033
  const urlPath2 = req.url || "/";
4006
- const pathname2 = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req, {
4034
+ const pathname2 = _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, req, {
4007
4035
  trustProxy: currentServerConfig.trustProxy
4008
4036
  }).pathname;
4009
4037
  try {
@@ -4025,10 +4053,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4025
4053
  urlPath: urlPath2,
4026
4054
  method: method2
4027
4055
  });
4028
- _chunk7U4XF76Rcjs.logger.error(`Request hook error: ${error}`);
4056
+ _chunk7ZDLE77Pcjs.logger.error(`Request hook error: ${error}`);
4029
4057
  res.statusCode = 500;
4030
4058
  res.setHeader("Content-Type", "application/json");
4031
- res.end(_chunkJYQ6DGPWcjs.FARM_INTERNAL_SERVER_ERROR_BODY);
4059
+ res.end(_chunk5P3TZGS3cjs.FARM_INTERNAL_SERVER_ERROR_BODY);
4032
4060
  return;
4033
4061
  }
4034
4062
  const createAPIRequest = async () => {
@@ -4040,30 +4068,30 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4040
4068
  }
4041
4069
  let body;
4042
4070
  if (req.method !== "GET" && req.method !== "HEAD") {
4043
- body = await _chunk7Q7UB4TLcjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
4071
+ body = await _chunk7GKZDRY2cjs.readNodeRequestBody.call(void 0, req, currentServerConfig.bodySizeLimit);
4044
4072
  }
4045
4073
  return new Request(
4046
- _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req, {
4074
+ _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, req, {
4047
4075
  trustProxy: currentServerConfig.trustProxy
4048
4076
  }),
4049
4077
  {
4050
4078
  method: req.method,
4051
4079
  headers,
4052
4080
  body: toRequestBody(body),
4053
- signal: _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
4081
+ signal: _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
4054
4082
  }
4055
4083
  );
4056
4084
  };
4057
4085
  const isDocsAPIRequest = Boolean(
4058
- farmDocsAPIHandler && _optionalChain([farmDocsDevRuntime, 'optionalAccess', _298 => _298.isFarmDocsAPIRequest, 'call', _299 => _299(pathname2)])
4086
+ farmDocsAPIHandler && _optionalChain([farmDocsDevRuntime, 'optionalAccess', _296 => _296.isFarmDocsAPIRequest, 'call', _297 => _297(pathname2)])
4059
4087
  );
4060
4088
  const docsRuntimeOptions = () => ({
4061
4089
  kind: "docs",
4062
- route: _chunkSCE7VWPNcjs.setFarmRouteLabel.call(void 0,
4090
+ route: _chunkMZG5M4JScjs.setFarmRouteLabel.call(void 0,
4063
4091
  { pathname: pathname2, pattern: urlPath2 },
4064
- _chunkSCE7VWPNcjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
4065
- path: _optionalChain([farmConfig, 'access', _300 => _300.docs, 'optionalAccess', _301 => _301.entry]) || "/docs",
4066
- roots: _optionalChain([farmConfig, 'access', _302 => _302.docs, 'optionalAccess', _303 => _303.roots, 'optionalAccess', _304 => _304.map, 'call', _305 => _305((root) => root.entry)])
4092
+ _chunkMZG5M4JScjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
4093
+ path: _optionalChain([farmConfig, 'access', _298 => _298.docs, 'optionalAccess', _299 => _299.entry]) || "/docs",
4094
+ roots: _optionalChain([farmConfig, 'access', _300 => _300.docs, 'optionalAccess', _301 => _301.roots, 'optionalAccess', _302 => _302.map, 'call', _303 => _303((root) => root.entry)])
4067
4095
  })
4068
4096
  )
4069
4097
  });
@@ -4084,11 +4112,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4084
4112
  runtimeSession2.response
4085
4113
  );
4086
4114
  logResponse(method2, urlPath2, response.status, Date.now() - startTime2, "API");
4087
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
4115
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
4088
4116
  return;
4089
4117
  }
4090
4118
  } catch (error) {
4091
- const bodyErrorResponse = _chunk7Q7UB4TLcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4119
+ const bodyErrorResponse = _chunk7GKZDRY2cjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4092
4120
  if (bodyErrorResponse) {
4093
4121
  logResponse(
4094
4122
  method2,
@@ -4097,10 +4125,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4097
4125
  Date.now() - startTime2,
4098
4126
  "API"
4099
4127
  );
4100
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4128
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4101
4129
  return;
4102
4130
  }
4103
- _chunk7U4XF76Rcjs.logger.error(`API route error: ${error}`);
4131
+ _chunk7ZDLE77Pcjs.logger.error(`API route error: ${error}`);
4104
4132
  sendFarmDevRuntimeHookError(res, true);
4105
4133
  return;
4106
4134
  }
@@ -4120,7 +4148,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4120
4148
  if (runtimeSession2) await pm.failRuntimeRequest(runtimeSession2, error);
4121
4149
  throw error;
4122
4150
  }
4123
- _chunk7U4XF76Rcjs.logger.error(`Middleware error: ${error}`);
4151
+ _chunk7ZDLE77Pcjs.logger.error(`Middleware error: ${error}`);
4124
4152
  const status = await sendMiddlewareErrorJSON(runtimeSession2, error);
4125
4153
  logResponse(method2, urlPath2, status, Date.now() - startTime2, "API");
4126
4154
  return;
@@ -4138,20 +4166,20 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4138
4166
  (_request, runtime) => handler(request, runtime)
4139
4167
  ) : pm ? pm.runRuntimeRequest(request, handler, options2) : handler(request);
4140
4168
  const apiHandler = apiRouteManager.getHandler({ throwOnError: true });
4141
- const routedPathname = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req, {
4169
+ const routedPathname = _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, req, {
4142
4170
  trustProxy: currentServerConfig.trustProxy
4143
4171
  }).pathname;
4144
4172
  const rewritten = routedPathname !== pathname2;
4145
4173
  const routedApiRoute = rewritten ? apiRouteManager.matchRoute(routedPathname) : matchedApiRoute || apiRouteManager.matchRoute(pathname2);
4146
4174
  const hasExplicitAPIRoute = Boolean(routedApiRoute);
4147
4175
  if (apiHandler && hasExplicitAPIRoute) {
4148
- const apiRoutePattern = _optionalChain([routedApiRoute, 'optionalAccess', _306 => _306.route, 'access', _307 => _307.path]) || urlPath2;
4149
- _chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
4176
+ const apiRoutePattern = _optionalChain([routedApiRoute, 'optionalAccess', _304 => _304.route, 'access', _305 => _305.path]) || urlPath2;
4177
+ _chunkRFKPIAOFcjs.emitFarmEvent.call(void 0, {
4150
4178
  type: "route.matched",
4151
4179
  pathname: pathname2,
4152
4180
  route: apiRoutePattern
4153
4181
  });
4154
- _chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
4182
+ _chunkRFKPIAOFcjs.emitFarmEvent.call(void 0, {
4155
4183
  type: "api.request.start",
4156
4184
  pathname: pathname2,
4157
4185
  route: apiRoutePattern,
@@ -4176,7 +4204,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4176
4204
  try {
4177
4205
  response = await apiHandler(handledRequest);
4178
4206
  apiOutcomeReported = true;
4179
- _chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
4207
+ _chunkRFKPIAOFcjs.emitFarmEvent.call(void 0, {
4180
4208
  type: "api.request.complete",
4181
4209
  pathname: pathname2,
4182
4210
  route: apiRoutePattern,
@@ -4186,7 +4214,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4186
4214
  });
4187
4215
  } catch (error) {
4188
4216
  apiOutcomeReported = true;
4189
- _chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
4217
+ _chunkRFKPIAOFcjs.emitFarmEvent.call(void 0, {
4190
4218
  type: "api.error",
4191
4219
  pathname: pathname2,
4192
4220
  route: apiRoutePattern,
@@ -4194,9 +4222,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4194
4222
  durationMs: Date.now() - startTime2,
4195
4223
  error
4196
4224
  });
4197
- _chunk7U4XF76Rcjs.logger.error(`API route error: ${error}`);
4198
- await _optionalChain([runtime, 'optionalAccess', _308 => _308.reportError, 'call', _309 => _309(error)]);
4199
- response = _chunkJYQ6DGPWcjs.createFarmInternalServerErrorResponse.call(void 0, );
4225
+ _chunk7ZDLE77Pcjs.logger.error(`API route error: ${error}`);
4226
+ await _optionalChain([runtime, 'optionalAccess', _306 => _306.reportError, 'call', _307 => _307(error)]);
4227
+ response = _chunk5P3TZGS3cjs.createFarmInternalServerErrorResponse.call(void 0, );
4200
4228
  }
4201
4229
  return pm ? await pm.runHookSerial("afterApiHandler", response, apiLifecyclePayload) : response;
4202
4230
  };
@@ -4209,12 +4237,12 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4209
4237
  });
4210
4238
  const duration = Date.now() - startTime2;
4211
4239
  logResponse(method2, urlPath2, handledResponse.status, duration, "API");
4212
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, handledResponse);
4240
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, handledResponse);
4213
4241
  return;
4214
4242
  } catch (error) {
4215
4243
  const duration = Date.now() - startTime2;
4216
4244
  if (!apiOutcomeReported) {
4217
- _chunkPLJMEUANcjs.emitFarmEvent.call(void 0, {
4245
+ _chunkRFKPIAOFcjs.emitFarmEvent.call(void 0, {
4218
4246
  type: "api.error",
4219
4247
  pathname: pathname2,
4220
4248
  route: apiRoutePattern,
@@ -4223,13 +4251,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4223
4251
  error
4224
4252
  });
4225
4253
  }
4226
- const bodyErrorResponse = _chunk7Q7UB4TLcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4254
+ const bodyErrorResponse = _chunk7GKZDRY2cjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4227
4255
  if (bodyErrorResponse) {
4228
4256
  logResponse(method2, urlPath2, bodyErrorResponse.status, duration, "API");
4229
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4257
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4230
4258
  return;
4231
4259
  }
4232
- _chunk7U4XF76Rcjs.logger.error(`API route error: ${error}`);
4260
+ _chunk7ZDLE77Pcjs.logger.error(`API route error: ${error}`);
4233
4261
  sendFarmDevRuntimeHookError(res, true);
4234
4262
  return;
4235
4263
  }
@@ -4262,16 +4290,16 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4262
4290
  if (docsResponse) {
4263
4291
  const duration = Date.now() - startTime2;
4264
4292
  logResponse(method2, urlPath2, docsResponse.status, duration, "API");
4265
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, docsResponse);
4293
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, docsResponse);
4266
4294
  return;
4267
4295
  }
4268
4296
  } catch (error) {
4269
- const bodyErrorResponse = _chunk7Q7UB4TLcjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4297
+ const bodyErrorResponse = _chunk7GKZDRY2cjs.createFarmRequestBodyErrorResponse.call(void 0, error);
4270
4298
  if (bodyErrorResponse) {
4271
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4299
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, bodyErrorResponse);
4272
4300
  return;
4273
4301
  }
4274
- _chunk7U4XF76Rcjs.logger.error(`Docs API route error: ${error}`);
4302
+ _chunk7ZDLE77Pcjs.logger.error(`Docs API route error: ${error}`);
4275
4303
  sendFarmDevRuntimeHookError(res, true);
4276
4304
  return;
4277
4305
  }
@@ -4293,19 +4321,19 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4293
4321
  })
4294
4322
  );
4295
4323
  logResponse(method2, urlPath2, response.status, Date.now() - startTime2, "API");
4296
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
4324
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
4297
4325
  } catch (error) {
4298
- _chunk7U4XF76Rcjs.logger.error(`API route error: ${error}`);
4326
+ _chunk7ZDLE77Pcjs.logger.error(`API route error: ${error}`);
4299
4327
  sendFarmDevRuntimeHookError(res, true);
4300
4328
  }
4301
4329
  return;
4302
4330
  }
4303
- if (_optionalChain([req, 'access', _310 => _310.url, 'optionalAccess', _311 => _311.startsWith, 'call', _312 => _312("/@")]) || _optionalChain([req, 'access', _313 => _313.url, 'optionalAccess', _314 => _314.startsWith, 'call', _315 => _315("/node_modules")])) {
4331
+ if (_optionalChain([req, 'access', _308 => _308.url, 'optionalAccess', _309 => _309.startsWith, 'call', _310 => _310("/@")]) || _optionalChain([req, 'access', _311 => _311.url, 'optionalAccess', _312 => _312.startsWith, 'call', _313 => _313("/node_modules")])) {
4304
4332
  return next();
4305
4333
  }
4306
4334
  if (!deferredDottedRequests.has(req) && shouldBypassFarmRouterForDottedPath(
4307
4335
  requestPathname,
4308
- _optionalChain([farmApp, 'optionalAccess', _316 => _316.getRouteManager, 'call', _317 => _317()]),
4336
+ _optionalChain([farmApp, 'optionalAccess', _314 => _314.getRouteManager, 'call', _315 => _315()]),
4309
4337
  [server.config.publicDir, server.config.root],
4310
4338
  farmAgentGeneratedPaths(farmConfig),
4311
4339
  requestMethod
@@ -4313,7 +4341,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4313
4341
  if (!viteModuleRequest) deferredDottedRequests.set(req, requestUrl);
4314
4342
  return next();
4315
4343
  }
4316
- if (_optionalChain([req, 'access', _318 => _318.url, 'optionalAccess', _319 => _319.startsWith, 'call', _320 => _320("/__farm/page-data")])) {
4344
+ if (_optionalChain([req, 'access', _316 => _316.url, 'optionalAccess', _317 => _317.startsWith, 'call', _318 => _318("/__farm/page-data")])) {
4317
4345
  const urlObj = parsedRequestUrl;
4318
4346
  const targetPath = urlObj.searchParams.get("path") || "/";
4319
4347
  let renderedRequest;
@@ -4321,16 +4349,16 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4321
4349
  const request = createRequestFromNodeRequest(
4322
4350
  req,
4323
4351
  urlObj,
4324
- _chunk7Q7UB4TLcjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
4352
+ _chunk7GKZDRY2cjs.createFarmNodeRequestAbortSignal.call(void 0, req, res)
4325
4353
  );
4326
- const deploymentMismatch = _chunkNLBHLPEOcjs.getFarmDeploymentMismatch.call(void 0,
4354
+ const deploymentMismatch = _chunkVIDUNAQEcjs.getFarmDeploymentMismatch.call(void 0,
4327
4355
  request,
4328
4356
  farmConfig.deploymentId
4329
4357
  );
4330
4358
  if (deploymentMismatch) {
4331
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0,
4359
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0,
4332
4360
  res,
4333
- _chunkNLBHLPEOcjs.createFarmDeploymentMismatchResponse.call(void 0, deploymentMismatch)
4361
+ _chunkVIDUNAQEcjs.createFarmDeploymentMismatchResponse.call(void 0, deploymentMismatch)
4334
4362
  );
4335
4363
  return;
4336
4364
  }
@@ -4343,7 +4371,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4343
4371
  renderedRequest = targetRequest;
4344
4372
  let middlewareMap = /* @__PURE__ */ new Map();
4345
4373
  let middlewareContext = /* @__PURE__ */ new Map();
4346
- if (_optionalChain([middlewareManager, 'optionalAccess', _321 => _321.hasMiddleware, 'call', _322 => _322()])) {
4374
+ if (_optionalChain([middlewareManager, 'optionalAccess', _319 => _319.hasMiddleware, 'call', _320 => _320()])) {
4347
4375
  const targetNodeRequest = createPageDataMiddlewareRequest(req, targetRequestUrl);
4348
4376
  const targetNodeResponse = createPageDataMiddlewareResponse(res);
4349
4377
  const handled = await runFarmMiddlewareWithNavigation(
@@ -4377,10 +4405,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4377
4405
  if (pm) {
4378
4406
  await pm.runHookParallel("afterRouteMatch", {
4379
4407
  pathname: targetPath,
4380
- matched: !!_optionalChain([match, 'optionalAccess', _323 => _323.route]),
4381
- routePattern: _optionalChain([match, 'optionalAccess', _324 => _324.route, 'optionalAccess', _325 => _325.pattern]) || null,
4382
- params: _optionalChain([match, 'optionalAccess', _326 => _326.params]) || {},
4383
- layoutPatterns: (_optionalChain([match, 'optionalAccess', _327 => _327.layouts]) || []).map((l) => l.pattern)
4408
+ matched: !!_optionalChain([match, 'optionalAccess', _321 => _321.route]),
4409
+ routePattern: _optionalChain([match, 'optionalAccess', _322 => _322.route, 'optionalAccess', _323 => _323.pattern]) || null,
4410
+ params: _optionalChain([match, 'optionalAccess', _324 => _324.params]) || {},
4411
+ layoutPatterns: (_optionalChain([match, 'optionalAccess', _325 => _325.layouts]) || []).map((l) => l.pattern)
4384
4412
  });
4385
4413
  }
4386
4414
  if (!match) {
@@ -4396,7 +4424,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4396
4424
  res.end(JSON.stringify({ error: "Route not found" }));
4397
4425
  return;
4398
4426
  }
4399
- const trailingSlashLocation = _chunkDVJM55D2cjs.resolveFarmTrailingSlashRedirect.call(void 0,
4427
+ const trailingSlashLocation = _chunk6FIY4KBCcjs.resolveFarmTrailingSlashRedirect.call(void 0,
4400
4428
  targetRequestUrl,
4401
4429
  farmApp.getConfig().trailingSlash === true
4402
4430
  );
@@ -4415,7 +4443,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4415
4443
  );
4416
4444
  const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
4417
4445
  const navigationManifest = routeManager3.generateClientManifest(server.config.root);
4418
- const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkRTAWQXMEcjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
4446
+ const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkZCT6B5PQcjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
4419
4447
  const isClientComponent = moduleMetadata.isClientComponent;
4420
4448
  const shouldHydrate = moduleMetadata.shouldHydrate;
4421
4449
  let mergedMetadata = {};
@@ -4426,7 +4454,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4426
4454
  (layout) => _nullishCoalesce(navigationManifest.layouts.find(
4427
4455
  (entry) => entry.pattern === layout.pattern
4428
4456
  ), () => ( {
4429
- ..._chunkRTAWQXMEcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
4457
+ ..._chunkZCT6B5PQcjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
4430
4458
  serverTree: false
4431
4459
  }))
4432
4460
  );
@@ -4439,35 +4467,35 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4439
4467
  (metadata) => metadata.shouldHydrate && metadata.islandStrategy ? [metadata.islandStrategy] : []
4440
4468
  )
4441
4469
  ];
4442
- const hydrationIslandStrategy = _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0,
4443
- _optionalChain([(_nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _328 => _328.getConfig, 'call', _329 => _329()]), () => ( options))), 'access', _330 => _330.experimental, 'optionalAccess', _331 => _331.serverComponents])
4444
- ) === "islands" ? _chunkM4YXD6MDcjs.resolveFarmRouteRootStrategy.call(void 0,
4470
+ const hydrationIslandStrategy = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0,
4471
+ _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _326 => _326.getConfig, 'call', _327 => _327()]), () => ( options)))
4472
+ ) === "islands" ? _chunkVWPGK6UVcjs.resolveFarmRouteRootStrategy.call(void 0,
4445
4473
  route,
4446
4474
  { shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
4447
4475
  layouts.map((layout, index) => ({
4448
4476
  pattern: layout.pattern,
4449
4477
  modulePath: layout.modulePath,
4450
- shouldHydrate: _optionalChain([layoutHydrationMetadata, 'access', _332 => _332[index], 'optionalAccess', _333 => _333.shouldHydrate]) === true,
4478
+ shouldHydrate: _optionalChain([layoutHydrationMetadata, 'access', _328 => _328[index], 'optionalAccess', _329 => _329.shouldHydrate]) === true,
4451
4479
  // Manifest entries carry it; metadata read from source does not.
4452
- hasIsolatedClientBoundaries: _optionalChain([layoutHydrationMetadata, 'access', _334 => _334[index], 'optionalAccess', _335 => _335.hasIsolatedClientBoundaries]) === true,
4453
- islandStrategy: _nullishCoalesce(_optionalChain([layoutHydrationMetadata, 'access', _336 => _336[index], 'optionalAccess', _337 => _337.islandStrategy]), () => ( null))
4480
+ hasIsolatedClientBoundaries: _optionalChain([layoutHydrationMetadata, 'access', _330 => _330[index], 'optionalAccess', _331 => _331.hasIsolatedClientBoundaries]) === true,
4481
+ islandStrategy: _nullishCoalesce(_optionalChain([layoutHydrationMetadata, 'access', _332 => _332[index], 'optionalAccess', _333 => _333.islandStrategy]), () => ( null))
4454
4482
  })),
4455
4483
  server.config.root,
4456
4484
  true
4457
4485
  ) : hydrationStrategies.every((strategy) => strategy === hydrationStrategies[0]) ? _nullishCoalesce(hydrationStrategies[0], () => ( "load")) : "load";
4458
4486
  const targetUrl = new URL(targetPath, "http://localhost");
4459
- const searchParams = _chunkSUCDVKUBcjs.searchParamsToObject.call(void 0, targetUrl.searchParams);
4460
- const routeContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
4487
+ const searchParams = _chunkK6LZMZNBcjs.searchParamsToObject.call(void 0, targetUrl.searchParams);
4488
+ const routeContext = await _chunkYZMSJRM5cjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
4461
4489
  request: targetRequest,
4462
4490
  params,
4463
4491
  search: searchParams,
4464
4492
  path: targetUrl.pathname
4465
4493
  });
4466
4494
  const routeProps = await parseRouteModuleProps(routeModule, {
4467
- props: _chunkX333W5KVcjs.withFarmRouteContext.call(void 0,
4495
+ props: _chunkYZMSJRM5cjs.withFarmRouteContext.call(void 0,
4468
4496
  {
4469
4497
  params,
4470
- searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, searchParams),
4498
+ searchParams: _chunkK6LZMZNBcjs.createFarmSearchParams.call(void 0, searchParams),
4471
4499
  path: targetUrl.pathname,
4472
4500
  middleware: middlewareMap.size > 0 ? { data: middlewareMap } : void 0
4473
4501
  },
@@ -4477,28 +4505,28 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4477
4505
  routePath: route.pattern
4478
4506
  });
4479
4507
  for (const layoutModule of layoutModules) {
4480
- mergedMetadata = _chunkEUZFBHPPcjs.mergeMetadata.call(void 0, mergedMetadata, layoutModule.metadata);
4508
+ mergedMetadata = _chunkO7B6LJWEcjs.mergeMetadata.call(void 0, mergedMetadata, layoutModule.metadata);
4481
4509
  if (typeof layoutModule.generateMetadata === "function") {
4482
- mergedMetadata = _chunkEUZFBHPPcjs.mergeMetadata.call(void 0,
4510
+ mergedMetadata = _chunkO7B6LJWEcjs.mergeMetadata.call(void 0,
4483
4511
  mergedMetadata,
4484
4512
  await layoutModule.generateMetadata({ params: routeProps.params })
4485
4513
  );
4486
4514
  }
4487
- mergedMetadata = await _chunkEUZFBHPPcjs.mergeModuleViewport.call(void 0, mergedMetadata, layoutModule, {
4515
+ mergedMetadata = await _chunkO7B6LJWEcjs.mergeModuleViewport.call(void 0, mergedMetadata, layoutModule, {
4488
4516
  params: routeProps.params
4489
4517
  });
4490
4518
  }
4491
- mergedMetadata = _chunkEUZFBHPPcjs.mergeMetadata.call(void 0, mergedMetadata, routeModule.metadata);
4519
+ mergedMetadata = _chunkO7B6LJWEcjs.mergeMetadata.call(void 0, mergedMetadata, routeModule.metadata);
4492
4520
  if (typeof routeModule.generateMetadata === "function") {
4493
- mergedMetadata = _chunkEUZFBHPPcjs.mergeMetadata.call(void 0,
4521
+ mergedMetadata = _chunkO7B6LJWEcjs.mergeMetadata.call(void 0,
4494
4522
  mergedMetadata,
4495
4523
  await routeModule.generateMetadata(routeProps)
4496
4524
  );
4497
4525
  }
4498
- mergedMetadata = await _chunkEUZFBHPPcjs.mergeModuleViewport.call(void 0, mergedMetadata, routeModule, routeProps);
4499
- mergedMetadata = _chunkEUZFBHPPcjs.addMetadataMarkdownAlternate.call(void 0,
4526
+ mergedMetadata = await _chunkO7B6LJWEcjs.mergeModuleViewport.call(void 0, mergedMetadata, routeModule, routeProps);
4527
+ mergedMetadata = _chunkO7B6LJWEcjs.addMetadataMarkdownAlternate.call(void 0,
4500
4528
  mergedMetadata,
4501
- _chunk5LJF4KUZcjs.getFarmMarkdownAlternatePath.call(void 0, farmApp.getConfig().md, targetRequestUrl.pathname, {
4529
+ _chunkU2HFXURZcjs.getFarmMarkdownAlternatePath.call(void 0, farmApp.getConfig().md, targetRequestUrl.pathname, {
4502
4530
  routePathname: (pathname2) => routeManager3.toRoutePathname(pathname2)
4503
4531
  })
4504
4532
  );
@@ -4507,18 +4535,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4507
4535
  const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
4508
4536
  const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
4509
4537
  (entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
4510
- ), () => ( _chunkRTAWQXMEcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
4511
- const slotContext = await _chunkX333W5KVcjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
4538
+ ), () => ( _chunkZCT6B5PQcjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
4539
+ const slotContext = await _chunkYZMSJRM5cjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
4512
4540
  request: targetRequest,
4513
4541
  params: slot.params,
4514
4542
  search: searchParams,
4515
4543
  path: targetUrl.pathname
4516
4544
  });
4517
4545
  const slotProps = await parseRouteModuleProps(slotModule, {
4518
- props: _chunkX333W5KVcjs.withFarmRouteContext.call(void 0,
4546
+ props: _chunkYZMSJRM5cjs.withFarmRouteContext.call(void 0,
4519
4547
  {
4520
4548
  params: slot.params,
4521
- searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, searchParams),
4549
+ searchParams: _chunkK6LZMZNBcjs.createFarmSearchParams.call(void 0, searchParams),
4522
4550
  path: targetUrl.pathname
4523
4551
  },
4524
4552
  slotContext
@@ -4552,32 +4580,32 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4552
4580
  })
4553
4581
  );
4554
4582
  const projectRoot = server.config.root;
4555
- const toUrlPath = (absolutePath) => _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, absolutePath, projectRoot);
4556
- const renderPlan = _chunkYSRZSKQBcjs.createFarmRouteRenderPlan.call(void 0, {
4583
+ const toUrlPath = (absolutePath) => _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, absolutePath, projectRoot);
4584
+ const renderPlan = _chunkIGBQSUT5cjs.createFarmRouteRenderPlan.call(void 0, {
4557
4585
  pageShouldHydrate: shouldHydrate,
4558
4586
  layoutShouldHydrate: shouldHydrateLayout,
4559
4587
  islandStrategy: hydrationIslandStrategy,
4560
- rendering: _chunkEXPVSFAGcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
4588
+ rendering: _chunkT4VF6BYVcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
4561
4589
  });
4562
4590
  const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
4563
- const layoutStartIndex = _chunkYSRZSKQBcjs.getSharedLayoutPrefixLength.call(void 0,
4564
- _chunkYSRZSKQBcjs.parseFarmLayoutChainHeader.call(void 0, request.headers.get("x-farm-layout-chain")),
4591
+ const layoutStartIndex = _chunkIGBQSUT5cjs.getSharedLayoutPrefixLength.call(void 0,
4592
+ _chunkIGBQSUT5cjs.parseFarmLayoutChainHeader.call(void 0, request.headers.get("x-farm-layout-chain")),
4565
4593
  destinationLayoutPatterns
4566
4594
  );
4567
4595
  const renderer = farmApp.getServerRenderer();
4568
- const fragmentHtml = await _chunkYDXLC4DWcjs._runWithMiddlewareData.call(void 0,
4596
+ const fragmentHtml = await _chunkXZ6L3FUUcjs._runWithMiddlewareData.call(void 0,
4569
4597
  middlewareMap,
4570
- () => _chunkYDXLC4DWcjs._runWithMiddlewareContext.call(void 0,
4598
+ () => _chunkXZ6L3FUUcjs._runWithMiddlewareContext.call(void 0,
4571
4599
  middlewareContext,
4572
4600
  () => renderer.renderNavigationFragment({
4573
4601
  PageComponent: routeModule.default,
4574
- LoadingComponent: _optionalChain([loadingModule, 'optionalAccess', _338 => _338.default]),
4602
+ LoadingComponent: _optionalChain([loadingModule, 'optionalAccess', _334 => _334.default]),
4575
4603
  pageProps: routeProps,
4576
4604
  params,
4577
4605
  layouts: layouts.map((layout, index) => ({
4578
4606
  pattern: layout.pattern,
4579
4607
  module: layoutModules[index],
4580
- serverTree: _optionalChain([layoutHydrationMetadata, 'access', _339 => _339[index], 'optionalAccess', _340 => _340.serverTree])
4608
+ serverTree: _optionalChain([layoutHydrationMetadata, 'access', _335 => _335[index], 'optionalAccess', _336 => _336.serverTree])
4581
4609
  })),
4582
4610
  layoutStartIndex,
4583
4611
  slots: routeSlots.map((slot) => ({
@@ -4634,24 +4662,24 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4634
4662
  from: interceptFromHeader,
4635
4663
  slots: routeSlots.filter((slot) => slot.interception).map((slot) => slot.name)
4636
4664
  } : void 0,
4637
- i18n: _chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, )
4665
+ i18n: _chunkYCIFGYBYcjs.getFarmI18nClientSnapshot.call(void 0, )
4638
4666
  };
4639
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0,
4667
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0,
4640
4668
  res,
4641
- _chunkDBYNZIIQcjs.createDeferredDataResponse.call(void 0,
4669
+ _chunkZ2JQR56Wcjs.createDeferredDataResponse.call(void 0,
4642
4670
  pageData,
4643
4671
  {
4644
4672
  status: 200,
4645
4673
  headers: {
4646
- "Cache-Control": _chunkYSRZSKQBcjs.getFarmFragmentCacheControl.call(void 0, renderPlan),
4674
+ "Cache-Control": _chunkIGBQSUT5cjs.getFarmFragmentCacheControl.call(void 0, renderPlan),
4647
4675
  "X-Farm-Navigation": "html-fragment",
4648
4676
  Vary: "X-Farm-Layout-Chain",
4649
- [_chunkNLBHLPEOcjs.FARM_DEPLOYMENT_ID_HEADER]: farmConfig.deploymentId
4677
+ [_chunkVIDUNAQEcjs.FARM_DEPLOYMENT_ID_HEADER]: farmConfig.deploymentId
4650
4678
  }
4651
4679
  },
4652
4680
  {
4653
4681
  onError(error, id) {
4654
- _chunk7U4XF76Rcjs.logger.error(`Deferred route data ${id} failed: ${error}`);
4682
+ _chunk7ZDLE77Pcjs.logger.error(`Deferred route data ${id} failed: ${error}`);
4655
4683
  }
4656
4684
  }
4657
4685
  )
@@ -4681,33 +4709,33 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4681
4709
  const startTime = Date.now();
4682
4710
  const method = req.method || "GET";
4683
4711
  const urlPath = req.url || "/";
4684
- const requestedPathname = _chunk2RSVYJT6cjs.resolveFarmRequestURL.call(void 0, req, {
4712
+ const requestedPathname = _chunkIBZW57NWcjs.resolveFarmRequestURL.call(void 0, req, {
4685
4713
  trustProxy: currentServerConfig.trustProxy
4686
4714
  }).pathname;
4687
4715
  const routeManager2 = farmApp.getRouteManager();
4688
- const hasBeforeRequestHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _341 => _341.hasHook, 'call', _342 => _342("beforeRequest")]), () => ( false));
4689
- const hasAfterResponseHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _343 => _343.hasHook, 'call', _344 => _344("afterResponse")]), () => ( false));
4690
- const hasHTMLTransformHook = (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _345 => _345.hasHook, 'call', _346 => _346("transformHTML")]), () => ( false))) || (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _347 => _347.hasHook, 'call', _348 => _348("afterRender")]), () => ( false)));
4716
+ const hasBeforeRequestHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _337 => _337.hasHook, 'call', _338 => _338("beforeRequest")]), () => ( false));
4717
+ const hasAfterResponseHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _339 => _339.hasHook, 'call', _340 => _340("afterResponse")]), () => ( false));
4718
+ const hasHTMLTransformHook = (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _341 => _341.hasHook, 'call', _342 => _342("transformHTML")]), () => ( false))) || (_nullishCoalesce(_optionalChain([pm, 'optionalAccess', _343 => _343.hasHook, 'call', _344 => _344("afterRender")]), () => ( false)));
4691
4719
  const opensRuntimeSession = pm ? opensFarmDevRuntimeSession(pm) : false;
4692
- const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _349 => _349.hasRuntimeHook, 'call', _350 => _350("after")]), () => ( false));
4720
+ const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _345 => _345.hasRuntimeHook, 'call', _346 => _346("after")]), () => ( false));
4693
4721
  const pageBuiltInRouteLabel = (pathname2) => {
4694
- const routePathname = _chunkD22BUQKWcjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
4695
- const mcpLabel = _chunkSCE7VWPNcjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
4722
+ const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
4723
+ const mcpLabel = _chunkMZG5M4JScjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
4696
4724
  if (mcpLabel) return mcpLabel;
4697
4725
  if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
4698
- return routePathname === _chunkJH4CDG4Gcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkJH4CDG4Gcjs.FARM_DEFAULT_MCP_PATH : null;
4726
+ return routePathname === _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH : null;
4699
4727
  };
4700
4728
  const pageRuntimeOptions = (pathname2) => {
4701
4729
  const match = routeManager2.matchRoute(pathname2);
4702
4730
  return {
4703
4731
  kind: "page",
4704
- route: _chunkSCE7VWPNcjs.setFarmRouteLabel.call(void 0,
4732
+ route: _chunkMZG5M4JScjs.setFarmRouteLabel.call(void 0,
4705
4733
  {
4706
4734
  pathname: pathname2,
4707
- pattern: _optionalChain([match, 'optionalAccess', _351 => _351.route, 'optionalAccess', _352 => _352.pattern]) || null,
4708
- params: _optionalChain([match, 'optionalAccess', _353 => _353.params]) || {}
4735
+ pattern: _optionalChain([match, 'optionalAccess', _347 => _347.route, 'optionalAccess', _348 => _348.pattern]) || null,
4736
+ params: _optionalChain([match, 'optionalAccess', _349 => _349.params]) || {}
4709
4737
  },
4710
- _optionalChain([match, 'optionalAccess', _354 => _354.route]) ? null : pageBuiltInRouteLabel(pathname2)
4738
+ _optionalChain([match, 'optionalAccess', _350 => _350.route]) ? null : pageBuiltInRouteLabel(pathname2)
4711
4739
  )
4712
4740
  };
4713
4741
  };
@@ -4731,7 +4759,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4731
4759
  ))));
4732
4760
  if (routedRequest instanceof Response) {
4733
4761
  const response = await pm.endRuntimeRequest(runtimeSession, routedRequest);
4734
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0, res, response);
4762
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0, res, response);
4735
4763
  return;
4736
4764
  }
4737
4765
  pm.copyRequestContext(routedRequest, req);
@@ -4787,7 +4815,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4787
4815
  }) : void 0;
4788
4816
  let middlewareFailed = false;
4789
4817
  try {
4790
- if (_optionalChain([middlewareManager, 'optionalAccess', _355 => _355.hasMiddleware, 'call', _356 => _356()])) {
4818
+ if (_optionalChain([middlewareManager, 'optionalAccess', _351 => _351.hasMiddleware, 'call', _352 => _352()])) {
4791
4819
  const middlewareRequest = createRequestFromNodeRequest(req, new URL(fullUrl));
4792
4820
  const handled = await runFarmMiddlewareWithNavigation(
4793
4821
  farmApp.getServerRenderer(),
@@ -4800,7 +4828,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4800
4828
  throw error;
4801
4829
  });
4802
4830
  if (handled) {
4803
- if (!_optionalChain([responseInterceptor, 'optionalAccess', _357 => _357.isEnded, 'call', _358 => _358()])) {
4831
+ if (!_optionalChain([responseInterceptor, 'optionalAccess', _353 => _353.isEnded, 'call', _354 => _354()])) {
4804
4832
  const duration = Date.now() - startTime;
4805
4833
  logResponse(method, urlPath, res.statusCode || 200, duration, "PAGE");
4806
4834
  }
@@ -4815,8 +4843,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4815
4843
  res
4816
4844
  );
4817
4845
  }
4818
- if (res.writableEnded || _optionalChain([responseInterceptor, 'optionalAccess', _359 => _359.isEnded, 'call', _360 => _360()])) {
4819
- if (!_optionalChain([responseInterceptor, 'optionalAccess', _361 => _361.isEnded, 'call', _362 => _362()])) {
4846
+ if (res.writableEnded || _optionalChain([responseInterceptor, 'optionalAccess', _355 => _355.isEnded, 'call', _356 => _356()])) {
4847
+ if (!_optionalChain([responseInterceptor, 'optionalAccess', _357 => _357.isEnded, 'call', _358 => _358()])) {
4820
4848
  const duration = Date.now() - startTime;
4821
4849
  logResponse(method, urlPath, res.statusCode || 200, duration, "PAGE");
4822
4850
  }
@@ -4835,8 +4863,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4835
4863
  await pm.reportRuntimeRequestError(runtimeSession, error);
4836
4864
  } else {
4837
4865
  await pm.failRuntimeRequest(runtimeSession, error);
4838
- if (!res.headersSent && !_optionalChain([responseInterceptor, 'optionalAccess', _363 => _363.isEnded, 'call', _364 => _364()])) {
4839
- _optionalChain([responseInterceptor, 'optionalAccess', _365 => _365.release, 'call', _366 => _366()]);
4866
+ if (!res.headersSent && !_optionalChain([responseInterceptor, 'optionalAccess', _359 => _359.isEnded, 'call', _360 => _360()])) {
4867
+ _optionalChain([responseInterceptor, 'optionalAccess', _361 => _361.release, 'call', _362 => _362()]);
4840
4868
  console.error("[FARM] Page error:", error);
4841
4869
  sendFarmDevRuntimeHookError(res, runtimeHookErrorAnswersJSON);
4842
4870
  return;
@@ -4853,7 +4881,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4853
4881
  }
4854
4882
  })
4855
4883
  );
4856
- const farmRequestMiddleware = _optionalChain([farmMiddlewares, 'access', _367 => _367.stack, 'access', _368 => _368.at, 'call', _369 => _369(-1), 'optionalAccess', _370 => _370.handle]);
4884
+ const farmRequestMiddleware = _optionalChain([farmMiddlewares, 'access', _363 => _363.stack, 'access', _364 => _364.at, 'call', _365 => _365(-1), 'optionalAccess', _366 => _366.handle]);
4857
4885
  if (farmOwnsDevCors && viteServer.config.server.cors === false) {
4858
4886
  farmMiddlewares.use(createFarmDevViteCorsMiddleware());
4859
4887
  }
@@ -4867,7 +4895,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4867
4895
  }
4868
4896
  if (!rendererDisabled) return next();
4869
4897
  const requested = _nullishCoalesce(_nullishCoalesce(req.originalUrl, () => ( req.url)), () => ( "/"));
4870
- const pathname = _chunk2RSVYJT6cjs.parseFarmRequestTarget.call(void 0, requested, "http://localhost").pathname;
4898
+ const pathname = _chunkIBZW57NWcjs.parseFarmRequestTarget.call(void 0, requested, "http://localhost").pathname;
4871
4899
  res.statusCode = 404;
4872
4900
  res.setHeader("Content-Type", "application/json");
4873
4901
  res.end(JSON.stringify({ error: "Not found", pathname }));
@@ -4882,7 +4910,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4882
4910
  });
4883
4911
  }
4884
4912
  if (id.startsWith("@farm.js/core/internal/") && importer && isOutsideAppRoot(importer)) {
4885
- const root = _optionalChain([farmApp, 'optionalAccess', _371 => _371.getConfig, 'call', _372 => _372(), 'access', _373 => _373.root]) || _optionalChain([server, 'optionalAccess', _374 => _374.config, 'access', _375 => _375.root]) || options.root;
4913
+ const root = _optionalChain([farmApp, 'optionalAccess', _367 => _367.getConfig, 'call', _368 => _368(), 'access', _369 => _369.root]) || _optionalChain([server, 'optionalAccess', _370 => _370.config, 'access', _371 => _371.root]) || options.root;
4886
4914
  return this.resolve(id, path6.join(root, "package.json"), {
4887
4915
  ...resolveOptions,
4888
4916
  skipSelf: true
@@ -4896,7 +4924,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4896
4924
  const imageId = await imageImports.resolveId.call(this, id, importer, resolveOptions);
4897
4925
  if (imageId) return imageId;
4898
4926
  }
4899
- if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4927
+ if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4900
4928
  return id;
4901
4929
  }
4902
4930
  if (isFarmClientVirtualId(id) || id === FARM_DEV_CLIENT_BOOT_ID) {
@@ -4910,14 +4938,14 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4910
4938
  }
4911
4939
  },
4912
4940
  async load(id, loadOptions) {
4913
- if (pendingClientSetup && !_optionalChain([loadOptions, 'optionalAccess', _376 => _376.ssr]) && !farmSetupContext.getStore()) {
4941
+ if (pendingClientSetup && !_optionalChain([loadOptions, 'optionalAccess', _372 => _372.ssr]) && !farmSetupContext.getStore()) {
4914
4942
  await pendingClientSetup;
4915
4943
  }
4916
- if (_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && islandsServerFns()) {
4944
+ if (_chunk7O3YJ6NPcjs.isFarmServerFnBoundaryId.call(void 0, id) && islandsServerFns()) {
4917
4945
  const file = id.split("?", 1)[0];
4918
4946
  this.addWatchFile(file);
4919
4947
  const source = await fs2.promises.readFile(file, "utf8");
4920
- return _nullishCoalesce(_chunkPIUTGRDIcjs.createFarmServerFnBoundaryModule.call(void 0, source, file), () => ( "export {};\n"));
4948
+ return _nullishCoalesce(_chunk7O3YJ6NPcjs.createFarmServerFnBoundaryModule.call(void 0, source, file), () => ( "export {};\n"));
4921
4949
  }
4922
4950
  if (typeof fontImports.load === "function") {
4923
4951
  const fontModule = await fontImports.load.call(this, id);
@@ -4927,9 +4955,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4927
4955
  const imageModule = await imageImports.load.call(this, id);
4928
4956
  if (imageModule) return imageModule;
4929
4957
  }
4930
- if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4931
- const renderer = _optionalChain([farmApp, 'optionalAccess', _377 => _377.getConfig, 'call', _378 => _378(), 'access', _379 => _379.renderer]) || _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, options.renderer);
4932
- const root = _optionalChain([server, 'optionalAccess', _380 => _380.config, 'access', _381 => _381.root]) || options.root;
4958
+ if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) {
4959
+ const renderer = _optionalChain([farmApp, 'optionalAccess', _373 => _373.getConfig, 'call', _374 => _374(), 'access', _375 => _375.renderer]) || _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, options.renderer);
4960
+ const root = _optionalChain([server, 'optionalAccess', _376 => _376.config, 'access', _377 => _377.root]) || options.root;
4933
4961
  if (isClientEnvironment(this, loadOptions)) {
4934
4962
  return generateProgrammaticClientRouteModuleForId(
4935
4963
  id,
@@ -4945,63 +4973,63 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
4945
4973
  return FARM_DEV_CLIENT_BOOT_MODULE;
4946
4974
  }
4947
4975
  if (isFarmClientVirtualId(id)) {
4948
- const resolvedConfig = _optionalChain([farmApp, 'optionalAccess', _382 => _382.getConfig, 'call', _383 => _383()]);
4949
- const renderer = _optionalChain([resolvedConfig, 'optionalAccess', _384 => _384.renderer]) || _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, options.renderer);
4950
- const integrations = _optionalChain([resolvedConfig, 'optionalAccess', _385 => _385.integrations]) || options.integrations;
4951
- const root = _optionalChain([resolvedConfig, 'optionalAccess', _386 => _386.root]) || _optionalChain([server, 'optionalAccess', _387 => _387.config, 'access', _388 => _388.root]) || process.cwd();
4952
- const docs = _optionalChain([resolvedConfig, 'optionalAccess', _389 => _389.docs]);
4953
- const adapterOwnsDocsRuntime = _chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs);
4954
- const devtools = _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _390 => _390.devtools]), () => ( _chunkSTF6VDYQcjs.resolveFarmDevtoolsConfig.call(void 0, false, "production")));
4976
+ const resolvedConfig = _optionalChain([farmApp, 'optionalAccess', _378 => _378.getConfig, 'call', _379 => _379()]);
4977
+ const renderer = _optionalChain([resolvedConfig, 'optionalAccess', _380 => _380.renderer]) || _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, options.renderer);
4978
+ const integrations = _optionalChain([resolvedConfig, 'optionalAccess', _381 => _381.integrations]) || options.integrations;
4979
+ const root = _optionalChain([resolvedConfig, 'optionalAccess', _382 => _382.root]) || _optionalChain([server, 'optionalAccess', _383 => _383.config, 'access', _384 => _384.root]) || process.cwd();
4980
+ const docs = _optionalChain([resolvedConfig, 'optionalAccess', _385 => _385.docs]);
4981
+ const adapterOwnsDocsRuntime = _chunkVZ2P6GRCcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs);
4982
+ const devtools = _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _386 => _386.devtools]), () => ( _chunkRQSPBWXJcjs.resolveFarmDevtoolsConfig.call(void 0, false, "production")));
4955
4983
  const [docsRuntime, docsSearchRuntime, devtoolsClientRuntime] = await Promise.all([
4956
- _optionalChain([docs, 'optionalAccess', _391 => _391.enabled]) ? loadFarmDocsDevRuntime() : null,
4957
- _optionalChain([docs, 'optionalAccess', _392 => _392.enabled]) && !adapterOwnsDocsRuntime ? loadFarmDocsSearchDevRuntime() : null,
4984
+ _optionalChain([docs, 'optionalAccess', _387 => _387.enabled]) ? loadFarmDocsDevRuntime() : null,
4985
+ _optionalChain([docs, 'optionalAccess', _388 => _388.enabled]) && !adapterOwnsDocsRuntime ? loadFarmDocsSearchDevRuntime() : null,
4958
4986
  devtools.enabled ? loadFarmDevtoolsClientRuntime() : null
4959
4987
  ]);
4960
- const docsSearchEnabled = _nullishCoalesce(_optionalChain([docsSearchRuntime, 'optionalAccess', _393 => _393.isFarmDocsSearchEnabled, 'call', _394 => _394(docs)]), () => ( false));
4988
+ const docsSearchEnabled = _nullishCoalesce(_optionalChain([docsSearchRuntime, 'optionalAccess', _389 => _389.isFarmDocsSearchEnabled, 'call', _390 => _390(docs)]), () => ( false));
4961
4989
  const generatedDocsSearchRuntime = docsSearchRuntime ? docsSearchRuntime.generateFarmDocsSearchClientRuntime(
4962
4990
  docsSearchEnabled,
4963
4991
  docsSearchEnabled ? docsSearchRuntime.resolveFarmDocsSearchClientModule(root) : void 0
4964
4992
  ) : EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME;
4965
4993
  const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
4966
- const generatedDevIndicatorsClientRuntime = farmApp ? _chunkL2GUEYHRcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
4967
- const integrationProviders = _chunkDVAZ53X6cjs.getIntegrationProviders.call(void 0, integrations);
4968
- const isolatedHydrationMode = _chunkRTAWQXMEcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
4969
- _optionalChain([resolvedConfig, 'optionalAccess', _395 => _395.experimental, 'optionalAccess', _396 => _396.isolatedClientHydration]),
4994
+ const generatedDevIndicatorsClientRuntime = farmApp ? _chunkVZ2P6GRCcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
4995
+ const integrationProviders = _chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, integrations);
4996
+ const isolatedHydrationMode = _chunkZCT6B5PQcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
4997
+ _optionalChain([resolvedConfig, 'optionalAccess', _391 => _391.experimental, 'optionalAccess', _392 => _392.isolatedClientHydration]),
4970
4998
  {
4971
- serverComponents: _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _397 => _397.experimental, 'optionalAccess', _398 => _398.serverComponents])) === "rsc",
4972
- hasUnsupportedIntegrationProvider: integrationProviders.filter((provider) => provider.component || provider.type === "clerk").some((provider) => !_chunkDVAZ53X6cjs.providerSupportsIslands.call(void 0, provider))
4999
+ serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "rsc",
5000
+ hasUnsupportedIntegrationProvider: integrationProviders.filter((provider) => provider.component || provider.type === "clerk").some((provider) => !_chunkN4AM7Q34cjs.providerSupportsIslands.call(void 0, provider))
4973
5001
  }
4974
5002
  );
4975
5003
  return generateClientCode(
4976
5004
  integrationProviders,
4977
5005
  [
4978
- ..._chunkDVAZ53X6cjs.getIntegrationDocumentNavigationMatchers.call(void 0, integrations),
4979
- ..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess', _399 => _399.getFarmDocsDocumentNavigationMatchers, 'call', _400 => _400(docs)]), () => ( []))
5006
+ ..._chunkN4AM7Q34cjs.getIntegrationDocumentNavigationMatchers.call(void 0, integrations),
5007
+ ..._nullishCoalesce(_optionalChain([docsRuntime, 'optionalAccess', _393 => _393.getFarmDocsDocumentNavigationMatchers, 'call', _394 => _394(docs)]), () => ( []))
4980
5008
  ],
4981
5009
  generatedDocsSearchRuntime,
4982
5010
  `${generatedDevtoolsClientRuntime}
4983
5011
  ${generatedDevIndicatorsClientRuntime}`,
4984
- _optionalChain([resolvedConfig, 'optionalAccess', _401 => _401.plugins]) || [],
5012
+ _optionalChain([resolvedConfig, 'optionalAccess', _395 => _395.plugins]) || [],
4985
5013
  root,
4986
- _optionalChain([resolvedConfig, 'optionalAccess', _402 => _402.srcDir]) || options.srcDir || "src",
4987
- _optionalChain([resolvedConfig, 'optionalAccess', _403 => _403.publicRuntimeConfig]) || options.publicRuntimeConfig,
4988
- adapterOwnsDocsRuntime ? _chunkL2GUEYHRcjs.getFarmDocsAdapterUIModule.call(void 0, _optionalChain([docs, 'optionalAccess', _404 => _404.adapter])) : void 0,
5014
+ _optionalChain([resolvedConfig, 'optionalAccess', _396 => _396.srcDir]) || options.srcDir || "src",
5015
+ _optionalChain([resolvedConfig, 'optionalAccess', _397 => _397.publicRuntimeConfig]) || options.publicRuntimeConfig,
5016
+ adapterOwnsDocsRuntime ? _chunkVZ2P6GRCcjs.getFarmDocsAdapterUIModule.call(void 0, _optionalChain([docs, 'optionalAccess', _398 => _398.adapter])) : void 0,
4989
5017
  renderer,
4990
- isolatedHydrationMode === "enabled" || _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _405 => _405.getRouteManager, 'call', _406 => _406(), 'access', _407 => _407.getIsolatedClientBoundaryModules, 'call', _408 => _408(root)])))), 'optionalAccess', _409 => _409.size]) > 0,
4991
- _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _410 => _410.trailingSlash]), () => ( false)),
4992
- _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _411 => _411.basePath]), () => ( "/")),
4993
- _chunkM4YXD6MDcjs.generateClientCachePersistenceCode.call(void 0,
4994
- _chunkM4YXD6MDcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _412 => _412.cache]))
5018
+ isolatedHydrationMode === "enabled" || _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _399 => _399.getRouteManager, 'call', _400 => _400(), 'access', _401 => _401.getIsolatedClientBoundaryModules, 'call', _402 => _402(root)])))), 'optionalAccess', _403 => _403.size]) > 0,
5019
+ _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _404 => _404.trailingSlash]), () => ( false)),
5020
+ _nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _405 => _405.basePath]), () => ( "/")),
5021
+ _chunkVWPGK6UVcjs.generateClientCachePersistenceCode.call(void 0,
5022
+ _chunkVWPGK6UVcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _406 => _406.cache]))
4995
5023
  ),
4996
- adapterOwnsDocsRuntime ? _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
4997
- _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([resolvedConfig, 'optionalAccess', _413 => _413.experimental, 'optionalAccess', _414 => _414.serverComponents])) === "islands"
5024
+ adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
5025
+ _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "islands"
4998
5026
  );
4999
5027
  }
5000
5028
  if (id === "/@farm/server") {
5001
5029
  return generateServerCode();
5002
5030
  }
5003
5031
  if (id === "/@farm/manifest") {
5004
- const routeManager = _optionalChain([farmApp, 'optionalAccess', _415 => _415.getRouteManager, 'call', _416 => _416()]);
5032
+ const routeManager = _optionalChain([farmApp, 'optionalAccess', _407 => _407.getRouteManager, 'call', _408 => _408()]);
5005
5033
  if (!routeManager) {
5006
5034
  return `
5007
5035
  export const getManifest = () => ({
@@ -5013,11 +5041,11 @@ export const getManifest = () => ({
5013
5041
  });
5014
5042
  `;
5015
5043
  }
5016
- const globalStylesheetHref = _chunkM4YXD6MDcjs.resolveDevGlobalStylesheetHref.call(void 0,
5044
+ const globalStylesheetHref = _chunkVWPGK6UVcjs.resolveDevGlobalStylesheetHref.call(void 0,
5017
5045
  server.config.root,
5018
- _optionalChain([farmApp, 'optionalAccess', _417 => _417.getConfig, 'call', _418 => _418(), 'access', _419 => _419.srcDir])
5046
+ _optionalChain([farmApp, 'optionalAccess', _409 => _409.getConfig, 'call', _410 => _410(), 'access', _411 => _411.srcDir])
5019
5047
  );
5020
- const fullManifest = _chunkM4YXD6MDcjs.createFarmDevClientManifest.call(void 0,
5048
+ const fullManifest = _chunkVWPGK6UVcjs.createFarmDevClientManifest.call(void 0,
5021
5049
  routeManager.generateClientManifest(server.config.root),
5022
5050
  {
5023
5051
  sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
@@ -5033,51 +5061,51 @@ export { manifest };
5033
5061
  }
5034
5062
  },
5035
5063
  async transform(code, id, transformOptions) {
5036
- if (pendingClientSetup && !_optionalChain([transformOptions, 'optionalAccess', _420 => _420.ssr]) && !farmSetupContext.getStore()) {
5064
+ if (pendingClientSetup && !_optionalChain([transformOptions, 'optionalAccess', _412 => _412.ssr]) && !farmSetupContext.getStore()) {
5037
5065
  await pendingClientSetup;
5038
5066
  }
5039
- const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _421 => _421.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
5040
- const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _422 => _422.getConfig, 'call', _423 => _423()]), () => ( options));
5067
+ const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _413 => _413.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
5068
+ const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _414 => _414.getConfig, 'call', _415 => _415()]), () => ( options));
5041
5069
  let rewrotePackageImports = false;
5042
- if (_chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([actionConfig, 'access', _424 => _424.experimental, 'optionalAccess', _425 => _425.serverComponents])) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _426 => _426.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkRTAWQXMEcjs.hasUseClientDirective.call(void 0, code)) {
5070
+ if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, actionConfig)) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _416 => _416.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkZCT6B5PQcjs.hasUseClientDirective.call(void 0, code)) {
5043
5071
  const file = id.split("?", 1)[0];
5044
- const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _427 => _427.config, 'access', _428 => _428.root]) || process.cwd();
5072
+ const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _417 => _417.config, 'access', _418 => _418.root]) || process.cwd();
5045
5073
  const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
5046
5074
  const rewrite = () => {
5047
- if (_optionalChain([transformOptions, 'optionalAccess', _429 => _429.ssr]) === true) {
5075
+ if (_optionalChain([transformOptions, 'optionalAccess', _419 => _419.ssr]) === true) {
5048
5076
  if (farmReactServerFiles.has(file)) {
5049
- for (const child of _chunkRTAWQXMEcjs.farmRelativeImportFiles.call(void 0, code, file))
5077
+ for (const child of _chunkZCT6B5PQcjs.farmRelativeImportFiles.call(void 0, code, file))
5050
5078
  farmReactServerFiles.add(child);
5051
5079
  }
5052
- const serverModule = farmReactServerFiles.has(file) || !_chunkRTAWQXMEcjs.getFarmClientReachableModules.call(void 0,
5080
+ const serverModule = farmReactServerFiles.has(file) || !_chunkZCT6B5PQcjs.getFarmClientReachableModules.call(void 0,
5053
5081
  path6.resolve(projectRoot, actionConfig.srcDir || "src"),
5054
5082
  projectRoot
5055
5083
  ).has(path6.resolve(file));
5056
- const reactServer = !serverModule ? null : _chunkRTAWQXMEcjs.rewriteFarmReactServerImports.call(void 0, {
5084
+ const reactServer = !serverModule ? null : _chunkZCT6B5PQcjs.rewriteFarmReactServerImports.call(void 0, {
5057
5085
  code,
5058
5086
  file,
5059
- reference: (specifier, exportName) => _chunkRTAWQXMEcjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
5087
+ reference: (specifier, exportName) => _chunkZCT6B5PQcjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
5060
5088
  onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
5061
5089
  });
5062
5090
  if (reactServer !== null) {
5063
5091
  code = reactServer;
5064
5092
  rewrotePackageImports = true;
5065
5093
  }
5066
- const internal = farmReactServerFiles.has(file) ? _chunkRTAWQXMEcjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
5094
+ const internal = farmReactServerFiles.has(file) ? _chunkZCT6B5PQcjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
5067
5095
  code,
5068
5096
  file,
5069
- reference: (clientFile) => _chunkRTAWQXMEcjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
5097
+ reference: (clientFile) => _chunkZCT6B5PQcjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
5070
5098
  }) : null;
5071
5099
  if (internal !== null) {
5072
5100
  code = internal;
5073
5101
  rewrotePackageImports = true;
5074
5102
  }
5075
5103
  }
5076
- const rewritePackageImports = (source2) => _chunkRTAWQXMEcjs.rewriteFarmPackageClientImports.call(void 0, {
5104
+ const rewritePackageImports = (source2) => _chunkZCT6B5PQcjs.rewriteFarmPackageClientImports.call(void 0, {
5077
5105
  code: source2,
5078
5106
  file,
5079
5107
  root: projectRoot,
5080
- isClientPackage: (specifier) => _chunkRTAWQXMEcjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
5108
+ isClientPackage: (specifier) => _chunkZCT6B5PQcjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
5081
5109
  });
5082
5110
  const source = code;
5083
5111
  const referenced = inspectPackages(() => rewritePackageImports(source));
@@ -5085,11 +5113,11 @@ export { manifest };
5085
5113
  code = referenced;
5086
5114
  rewrotePackageImports = true;
5087
5115
  }
5088
- if (_optionalChain([transformOptions, 'optionalAccess', _430 => _430.ssr]) === true) {
5116
+ if (_optionalChain([transformOptions, 'optionalAccess', _420 => _420.ssr]) === true) {
5089
5117
  const cached = rewriteFarmReactCacheImport(
5090
5118
  code,
5091
5119
  file,
5092
- _optionalChain([runtimeModule, 'optionalCall', _431 => _431(FARM_REACT_CACHE_MODULE)])
5120
+ _optionalChain([runtimeModule, 'optionalCall', _421 => _421(FARM_REACT_CACHE_MODULE)])
5093
5121
  );
5094
5122
  if (cached !== null) {
5095
5123
  code = cached;
@@ -5097,12 +5125,12 @@ export { manifest };
5097
5125
  }
5098
5126
  }
5099
5127
  };
5100
- if (buildSnapshot) _chunkRTAWQXMEcjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
5128
+ if (buildSnapshot) _chunkZCT6B5PQcjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
5101
5129
  else rewrite();
5102
5130
  }
5103
- if (islandsServerFns() && !_chunkPIUTGRDIcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
5104
- const serverFns = _chunkPIUTGRDIcjs.transformFarmServerFns.call(void 0, code, id, {
5105
- environment: _optionalChain([transformOptions, 'optionalAccess', _432 => _432.ssr]) === true ? "rsc" : "client"
5131
+ if (islandsServerFns() && !_chunk7O3YJ6NPcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
5132
+ const serverFns = _chunk7O3YJ6NPcjs.transformFarmServerFns.call(void 0, code, id, {
5133
+ environment: _optionalChain([transformOptions, 'optionalAccess', _422 => _422.ssr]) === true ? "rsc" : "client"
5106
5134
  });
5107
5135
  if (serverFns) {
5108
5136
  if (!serverFns.code.includes("use server")) return { code: serverFns.code, map: null };
@@ -5115,8 +5143,8 @@ export { manifest };
5115
5143
  const actionModule = transformFarmFormActionModule({
5116
5144
  code,
5117
5145
  id,
5118
- root: actionConfig.root || _optionalChain([server, 'optionalAccess', _433 => _433.config, 'access', _434 => _434.root]) || process.cwd(),
5119
- ssr: _optionalChain([transformOptions, 'optionalAccess', _435 => _435.ssr]) === true,
5146
+ root: actionConfig.root || _optionalChain([server, 'optionalAccess', _423 => _423.config, 'access', _424 => _424.root]) || process.cwd(),
5147
+ ssr: _optionalChain([transformOptions, 'optionalAccess', _425 => _425.ssr]) === true,
5120
5148
  // Parsed by file type: page components are TSX.
5121
5149
  parse: (source) => _vite.parseSync.call(void 0, file, source).program,
5122
5150
  runtimeModule,
@@ -5124,21 +5152,21 @@ export { manifest };
5124
5152
  });
5125
5153
  if (actionModule) return { code: actionModule, map: null };
5126
5154
  }
5127
- if (!_optionalChain([transformOptions, 'optionalAccess', _436 => _436.ssr])) {
5128
- const docsConfigModule = _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _437 => _437.getConfig, 'call', _438 => _438(), 'optionalAccess', _439 => _439.docs]));
5129
- if (_chunkM4YXD6MDcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
5130
- const redacted = _chunkM4YXD6MDcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
5155
+ if (!_optionalChain([transformOptions, 'optionalAccess', _426 => _426.ssr])) {
5156
+ const docsConfigModule = _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _427 => _427.getConfig, 'call', _428 => _428(), 'optionalAccess', _429 => _429.docs]));
5157
+ if (_chunkVWPGK6UVcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
5158
+ const redacted = _chunkVWPGK6UVcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
5131
5159
  if (redacted !== null) return { code: redacted, map: null };
5132
5160
  }
5133
5161
  }
5134
- if (!_optionalChain([transformOptions, 'optionalAccess', _440 => _440.ssr])) {
5135
- const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _441 => _441.getConfig, 'call', _442 => _442()]), () => ( options));
5136
- if ((_optionalChain([currentConfig, 'access', _443 => _443.experimental, 'optionalAccess', _444 => _444.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
5162
+ if (!_optionalChain([transformOptions, 'optionalAccess', _430 => _430.ssr])) {
5163
+ const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _431 => _431.getConfig, 'call', _432 => _432()]), () => ( options));
5164
+ if ((_optionalChain([currentConfig, 'access', _433 => _433.experimental, 'optionalAccess', _434 => _434.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
5137
5165
  const violation = findClientServerFnViolation(code, id);
5138
5166
  if (violation) {
5139
- const locate = _chunkRTAWQXMEcjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
5167
+ const locate = _chunkZCT6B5PQcjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
5140
5168
  this.error(
5141
- _chunkRTAWQXMEcjs.formatFarmDiagnostic.call(void 0,
5169
+ _chunkZCT6B5PQcjs.formatFarmDiagnostic.call(void 0,
5142
5170
  createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
5143
5171
  currentConfig.root
5144
5172
  )
@@ -5146,8 +5174,8 @@ export { manifest };
5146
5174
  }
5147
5175
  }
5148
5176
  }
5149
- if (!_optionalChain([transformOptions, 'optionalAccess', _445 => _445.ssr]) && shouldInspectClientBoundary(id, code)) {
5150
- await warnClientBoundaryOnce(this, id, code, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _446 => _446.getConfig, 'call', _447 => _447()]), () => ( options)));
5177
+ if (!_optionalChain([transformOptions, 'optionalAccess', _435 => _435.ssr]) && shouldInspectClientBoundary(id, code)) {
5178
+ await warnClientBoundaryOnce(this, id, code, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _436 => _436.getConfig, 'call', _437 => _437()]), () => ( options)));
5151
5179
  }
5152
5180
  if (typeof imageImports.transform === "function") {
5153
5181
  const imageModule = await imageImports.transform.call(this, code, id, transformOptions);
@@ -5162,13 +5190,13 @@ export { manifest };
5162
5190
  id,
5163
5191
  transformOptions
5164
5192
  );
5165
- const fontCode = typeof fontResult === "string" ? fontResult : _optionalChain([fontResult, 'optionalAccess', _448 => _448.code, 'optionalAccess', _449 => _449.toString, 'call', _450 => _450()]);
5193
+ const fontCode = typeof fontResult === "string" ? fontResult : _optionalChain([fontResult, 'optionalAccess', _438 => _438.code, 'optionalAccess', _439 => _439.toString, 'call', _440 => _440()]);
5166
5194
  if (fontCode) {
5167
5195
  transformedCode = fontCode;
5168
5196
  transformed = true;
5169
5197
  }
5170
5198
  }
5171
- if (_optionalChain([transformOptions, 'optionalAccess', _451 => _451.ssr]) && server) {
5199
+ if (_optionalChain([transformOptions, 'optionalAccess', _441 => _441.ssr]) && server) {
5172
5200
  const rewrittenImports = rewriteEarlySsrRelativeImports({
5173
5201
  code: transformedCode,
5174
5202
  id,
@@ -5180,27 +5208,27 @@ export { manifest };
5180
5208
  transformed = true;
5181
5209
  }
5182
5210
  }
5183
- if (_chunkRTAWQXMEcjs.hasUseClientDirective.call(void 0, transformedCode)) {
5211
+ if (_chunkZCT6B5PQcjs.hasUseClientDirective.call(void 0, transformedCode)) {
5184
5212
  const clientBoundarySource = transformedCode;
5185
5213
  const moduleInfo = this.getModuleInfo(id);
5186
5214
  if (moduleInfo) {
5187
5215
  moduleInfo.isClientComponent = true;
5188
5216
  }
5189
- transformedCode = _chunkRTAWQXMEcjs.stripUseClientDirective.call(void 0, transformedCode);
5217
+ transformedCode = _chunkZCT6B5PQcjs.stripUseClientDirective.call(void 0, transformedCode);
5190
5218
  transformed = true;
5191
- const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _452 => _452.getConfig, 'call', _453 => _453()]), () => ( options));
5219
+ const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _442 => _442.getConfig, 'call', _443 => _443()]), () => ( options));
5192
5220
  let isolatedModuleReference = null;
5193
5221
  let rendererIslandModule = false;
5194
- const root = currentConfig.root || _optionalChain([server, 'optionalAccess', _454 => _454.config, 'access', _455 => _455.root]) || process.cwd();
5222
+ const root = currentConfig.root || _optionalChain([server, 'optionalAccess', _444 => _444.config, 'access', _445 => _445.root]) || process.cwd();
5195
5223
  const cleanId = id.split("?", 1)[0];
5196
- const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _456 => _456.getRouteManager, 'call', _457 => _457(), 'access', _458 => _458.getIsolatedClientBoundaryModules, 'call', _459 => _459(root)])));
5197
- const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _460 => _460.has, 'call', _461 => _461(path6.resolve(cleanId))]) === true;
5198
- if (_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkRTAWQXMEcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
5199
- cleanId.replace(/\\/g, "/").includes(_chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
5200
- isolatedModuleReference = _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, cleanId, root);
5201
- const islandsMode = _chunkT7UC2ORAcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([currentConfig, 'access', _462 => _462.experimental, 'optionalAccess', _463 => _463.serverComponents])) === "islands";
5202
- const explicitStrategy = _chunkRTAWQXMEcjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
5203
- const inference = islandsMode && explicitStrategy === null ? _chunkM4YXD6MDcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
5224
+ const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _446 => _446.getRouteManager, 'call', _447 => _447(), 'access', _448 => _448.getIsolatedClientBoundaryModules, 'call', _449 => _449(root)])));
5225
+ const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _450 => _450.has, 'call', _451 => _451(path6.resolve(cleanId))]) === true;
5226
+ if (_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkZCT6B5PQcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
5227
+ cleanId.replace(/\\/g, "/").includes(_chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
5228
+ isolatedModuleReference = _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root);
5229
+ const islandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, currentConfig)) === "islands";
5230
+ const explicitStrategy = _chunkZCT6B5PQcjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
5231
+ const inference = islandsMode && explicitStrategy === null ? _chunkVWPGK6UVcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
5204
5232
  if (inference) {
5205
5233
  for (const file of inference.files) {
5206
5234
  if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
@@ -5213,8 +5241,8 @@ export { manifest };
5213
5241
  islandStrategy: _nullishCoalesce(explicitStrategy, () => ( "load")),
5214
5242
  parse: (source) => this.parse(source),
5215
5243
  slots: islandsMode,
5216
- browser: _optionalChain([transformOptions, 'optionalAccess', _464 => _464.ssr]) !== true,
5217
- inferredInteraction: _optionalChain([inference, 'optionalAccess', _465 => _465.strategy]) === "interaction",
5244
+ browser: _optionalChain([transformOptions, 'optionalAccess', _452 => _452.ssr]) !== true,
5245
+ inferredInteraction: _optionalChain([inference, 'optionalAccess', _453 => _453.strategy]) === "interaction",
5218
5246
  runtimeModule
5219
5247
  });
5220
5248
  if (!transformedBoundary) {
@@ -5223,14 +5251,14 @@ export { manifest };
5223
5251
  );
5224
5252
  }
5225
5253
  transformedCode = transformedBoundary;
5226
- } else if (selectedForIsolatedHydration && _chunkZ43CIBURcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (_chunkRTAWQXMEcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || cleanId.replace(/\\/g, "/").includes(_chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
5254
+ } else if (selectedForIsolatedHydration && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (_chunkZCT6B5PQcjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || cleanId.replace(/\\/g, "/").includes(_chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
5227
5255
  rendererIslandModule = true;
5228
- if (_optionalChain([transformOptions, 'optionalAccess', _466 => _466.ssr]) === true) {
5229
- const renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, currentConfig.renderer);
5256
+ if (_optionalChain([transformOptions, 'optionalAccess', _454 => _454.ssr]) === true) {
5257
+ const renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer);
5230
5258
  const transformedBoundary = transformIsolatedClientBoundaryModule({
5231
5259
  code: transformedCode,
5232
- moduleReference: _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, cleanId, root),
5233
- islandStrategy: _nullishCoalesce(_chunkRTAWQXMEcjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
5260
+ moduleReference: _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root),
5261
+ islandStrategy: _nullishCoalesce(_chunkZCT6B5PQcjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
5234
5262
  parse: (source) => this.parse(source),
5235
5263
  withIsland: renderer.server
5236
5264
  });
@@ -5263,17 +5291,17 @@ export { manifest };
5263
5291
  );
5264
5292
  return;
5265
5293
  }` : "";
5266
- const rendererIslandHmr = rendererIslandModule && !_optionalChain([transformOptions, 'optionalAccess', _467 => _467.ssr]) && !/\bimport\.meta\.hot\b/.test(transformedCode) && shouldEmitFarmClientRootHmr(currentConfig.renderer);
5294
+ const rendererIslandHmr = rendererIslandModule && !_optionalChain([transformOptions, 'optionalAccess', _455 => _455.ssr]) && !/\bimport\.meta\.hot\b/.test(transformedCode) && shouldEmitFarmClientRootHmr(currentConfig.renderer);
5267
5295
  const hmrCode = rendererIslandHmr ? `
5268
5296
  if (import.meta.hot) {
5269
5297
  import.meta.hot.accept((newModule) => {
5270
5298
  const runtime = window.__FARM_ISOLATED_HYDRATION_RUNTIME__;
5271
- if (!newModule || !runtime?.updateModule?.(${JSON.stringify(_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, cleanId, root))}, newModule)) {
5299
+ if (!newModule || !runtime?.updateModule?.(${JSON.stringify(_chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root))}, newModule)) {
5272
5300
  import.meta.hot.invalidate();
5273
5301
  }
5274
5302
  });
5275
5303
  }
5276
- ` : _optionalChain([transformOptions, 'optionalAccess', _468 => _468.ssr]) || reactRefreshActive || rendererIslandModule || !shouldEmitFarmClientRootHmr(currentConfig.renderer) ? "" : `
5304
+ ` : _optionalChain([transformOptions, 'optionalAccess', _456 => _456.ssr]) || reactRefreshActive || rendererIslandModule || !shouldEmitFarmClientRootHmr(currentConfig.renderer) ? "" : `
5277
5305
  if (import.meta.hot) {
5278
5306
  import.meta.hot.accept((newModule) => {
5279
5307
  ${isolatedHmrUpdate}
@@ -5324,19 +5352,19 @@ if (import.meta.hot) {
5324
5352
  if (!routeManager) return;
5325
5353
  const { ssg: ssgPages, ssr: ssrRoutes } = await routeManager.collectSSGPages();
5326
5354
  if (ssgPages.length === 0) {
5327
- _chunk7U4XF76Rcjs.logger.info("No SSG pages found - all pages will use SSR");
5355
+ _chunk7ZDLE77Pcjs.logger.info("No SSG pages found - all pages will use SSR");
5328
5356
  return;
5329
5357
  }
5330
- _chunk7U4XF76Rcjs.logger.info(`Found ${ssgPages.length} SSG pages, ${ssrRoutes.length} SSR routes`);
5331
- _chunk7U4XF76Rcjs.logger.info("Pre-rendering SSG pages...");
5332
- const outDir = path6.join(_optionalChain([server, 'optionalAccess', _469 => _469.config, 'access', _470 => _470.root]) || process.cwd(), options.outDir || "dist");
5358
+ _chunk7ZDLE77Pcjs.logger.info(`Found ${ssgPages.length} SSG pages, ${ssrRoutes.length} SSR routes`);
5359
+ _chunk7ZDLE77Pcjs.logger.info("Pre-rendering SSG pages...");
5360
+ const outDir = path6.join(_optionalChain([server, 'optionalAccess', _457 => _457.config, 'access', _458 => _458.root]) || process.cwd(), options.outDir || "dist");
5333
5361
  const clientDir = path6.join(outDir, "client");
5334
5362
  for (const page of ssgPages) {
5335
5363
  try {
5336
5364
  const staticRequest = new Request(new URL(page.urlPath, "http://farm.static"));
5337
5365
  await farmApp.getServerRenderer().runWithRequestContext(staticRequest, async () => {
5338
5366
  const mod = await routeManager.loadRouteModule(page.filePath);
5339
- if (!_optionalChain([mod, 'optionalAccess', _471 => _471.default])) return;
5367
+ if (!_optionalChain([mod, 'optionalAccess', _459 => _459.default])) return;
5340
5368
  const { layouts } = routeManager.matchRoute(page.urlPath);
5341
5369
  const layoutModules = await Promise.all(
5342
5370
  layouts.map((l) => routeManager.loadLayoutModule(l.modulePath))
@@ -5346,7 +5374,7 @@ if (import.meta.hot) {
5346
5374
  const PageComponent = mod.default;
5347
5375
  const pageProps = {
5348
5376
  params: page.params,
5349
- searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, {}),
5377
+ searchParams: _chunkK6LZMZNBcjs.createFarmSearchParams.call(void 0, {}),
5350
5378
  path: page.urlPath
5351
5379
  };
5352
5380
  let pageElement = React.createElement(
@@ -5365,10 +5393,10 @@ if (import.meta.hot) {
5365
5393
  );
5366
5394
  }
5367
5395
  const html = renderToString(pageElement);
5368
- const i18nSnapshot = _chunkSXXSQVKKcjs.getFarmI18nClientSnapshot.call(void 0, );
5396
+ const i18nSnapshot = _chunkYCIFGYBYcjs.getFarmI18nClientSnapshot.call(void 0, );
5369
5397
  const i18nHead = renderFarmI18nStaticHead(page.urlPath, i18nSnapshot);
5370
5398
  const fullHtml = `<!DOCTYPE html>
5371
- <html lang="${escapeFarmHtmlAttribute(_optionalChain([i18nSnapshot, 'optionalAccess', _472 => _472.locale]) || "en")}"${i18nSnapshot ? ` dir="${i18nSnapshot.direction}"` : ""}>
5399
+ <html lang="${escapeFarmHtmlAttribute(_optionalChain([i18nSnapshot, 'optionalAccess', _460 => _460.locale]) || "en")}"${i18nSnapshot ? ` dir="${i18nSnapshot.direction}"` : ""}>
5372
5400
  <head>
5373
5401
  <meta charset="utf-8">
5374
5402
  <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -5386,10 +5414,10 @@ if (import.meta.hot) {
5386
5414
  fs2.mkdirSync(path6.dirname(outputPath), { recursive: true });
5387
5415
  fs2.writeFileSync(outputPath, fullHtml);
5388
5416
  const revalidateInfo = page.revalidate ? ` (revalidate: ${page.revalidate}s)` : "";
5389
- _chunk7U4XF76Rcjs.logger.success(` \u2713 ${page.urlPath}${revalidateInfo}`);
5417
+ _chunk7ZDLE77Pcjs.logger.success(` \u2713 ${page.urlPath}${revalidateInfo}`);
5390
5418
  });
5391
5419
  } catch (error) {
5392
- _chunk7U4XF76Rcjs.logger.error(` \u2717 ${page.urlPath}: ${error}`);
5420
+ _chunk7ZDLE77Pcjs.logger.error(` \u2717 ${page.urlPath}: ${error}`);
5393
5421
  }
5394
5422
  }
5395
5423
  const manifestPath = path6.join(outDir, "__ssg_manifest.json");
@@ -5405,19 +5433,19 @@ if (import.meta.hot) {
5405
5433
  2
5406
5434
  )
5407
5435
  );
5408
- _chunk7U4XF76Rcjs.logger.success(`SSG complete: ${ssgPages.length} pages pre-rendered`);
5436
+ _chunk7ZDLE77Pcjs.logger.success(`SSG complete: ${ssgPages.length} pages pre-rendered`);
5409
5437
  } catch (error) {
5410
- _chunk7U4XF76Rcjs.logger.error(`SSG build failed: ${error}`);
5438
+ _chunk7ZDLE77Pcjs.logger.error(`SSG build failed: ${error}`);
5411
5439
  }
5412
5440
  },
5413
5441
  watchChange(id, change) {
5414
- const watched = _chunk7U4XF76Rcjs.toPosixPath.call(void 0, id);
5442
+ const watched = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, id);
5415
5443
  const appSource = !watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched);
5416
- if (appSource) _optionalChain([farmApp, 'optionalAccess', _473 => _473.getRouteManager, 'call', _474 => _474(), 'access', _475 => _475.noteSourceChange, 'call', _476 => _476(id, change.event)]);
5417
- _chunkRTAWQXMEcjs.noteFarmClientReachableModuleChange.call(void 0, id, change.event, { appSource });
5418
- _chunkRTAWQXMEcjs.invalidateFarmClientOnlyScan.call(void 0, id, change.event);
5419
- _chunkM4YXD6MDcjs.invalidateFarmRouteRootInferences.call(void 0, id, change.event);
5420
- _chunkRTAWQXMEcjs.dropLatestPackageClientBoundaryCache.call(void 0, );
5444
+ if (appSource) _optionalChain([farmApp, 'optionalAccess', _461 => _461.getRouteManager, 'call', _462 => _462(), 'access', _463 => _463.noteSourceChange, 'call', _464 => _464(id, change.event)]);
5445
+ _chunkZCT6B5PQcjs.noteFarmClientReachableModuleChange.call(void 0, id, change.event, { appSource });
5446
+ _chunkZCT6B5PQcjs.invalidateFarmClientOnlyScan.call(void 0, id, change.event);
5447
+ _chunkVWPGK6UVcjs.invalidateFarmRouteRootInferences.call(void 0, id, change.event);
5448
+ _chunkZCT6B5PQcjs.dropLatestPackageClientBoundaryCache.call(void 0, );
5421
5449
  },
5422
5450
  async handleHotUpdate(ctx) {
5423
5451
  if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
@@ -5438,11 +5466,11 @@ if (import.meta.hot) {
5438
5466
  }
5439
5467
  for (const island of _nullishCoalesce(farmIslandInferenceDependents.get(path6.resolve(file)), () => ( []))) {
5440
5468
  if (island === path6.resolve(file)) continue;
5441
- for (const mod of _nullishCoalesce(server2.moduleGraph.getModulesByFile(_chunk7U4XF76Rcjs.toPosixPath.call(void 0, island)), () => ( []))) {
5469
+ for (const mod of _nullishCoalesce(server2.moduleGraph.getModulesByFile(_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, island)), () => ( []))) {
5442
5470
  server2.moduleGraph.invalidateModule(mod);
5443
5471
  }
5444
5472
  }
5445
- const currentFarmConfig = _optionalChain([farmApp, 'optionalAccess', _477 => _477.getConfig, 'call', _478 => _478()]);
5473
+ const currentFarmConfig = _optionalChain([farmApp, 'optionalAccess', _465 => _465.getConfig, 'call', _466 => _466()]);
5446
5474
  const normalizedFile = file.replace(/\\/g, "/");
5447
5475
  const reloadAfterEdit = () => {
5448
5476
  for (const files of pendingRouteReloads) {
@@ -5450,31 +5478,31 @@ if (import.meta.hot) {
5450
5478
  }
5451
5479
  server2.ws.send({ type: "full-reload", path: "*" });
5452
5480
  };
5453
- if (normalizedFile.includes(_chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
5481
+ if (normalizedFile.includes(_chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
5454
5482
  path6.posix.join(
5455
- _chunk7U4XF76Rcjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _479 => _479.root]) || options.root || server2.config.root),
5456
- _chunkRTAWQXMEcjs.FARM_CLIENT_REFERENCE_DIRECTORY
5483
+ _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _467 => _467.root]) || options.root || server2.config.root),
5484
+ _chunkZCT6B5PQcjs.FARM_CLIENT_REFERENCE_DIRECTORY
5457
5485
  )
5458
5486
  ))
5459
5487
  return modules;
5460
- if (currentFarmConfig && _chunkSIECKBNKcjs.isFarmAPIRouteFileName.call(void 0,
5488
+ if (currentFarmConfig && _chunkMNBFSAWFcjs.isFarmAPIRouteFileName.call(void 0,
5461
5489
  path6.posix.basename(normalizedFile),
5462
- _chunkSIECKBNKcjs.hasPolyroutePlugin.call(void 0, server2.config.plugins)
5463
- ) && _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, currentFarmConfig).some(
5464
- (appDir) => normalizedFile.startsWith(`${_chunk7U4XF76Rcjs.toPosixPath.call(void 0, appDir)}/api/`)
5490
+ _chunkMNBFSAWFcjs.hasPolyroutePlugin.call(void 0, server2.config.plugins)
5491
+ ) && _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, currentFarmConfig).some(
5492
+ (appDir) => normalizedFile.startsWith(`${_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, appDir)}/api/`)
5465
5493
  )) {
5466
5494
  for (const mod of modules) server2.moduleGraph.invalidateModule(mod);
5467
- await _optionalChain([refreshRouteDiscovery, 'optionalCall', _480 => _480(`updated ${file}`)]);
5495
+ await _optionalChain([refreshRouteDiscovery, 'optionalCall', _468 => _468(`updated ${file}`)]);
5468
5496
  reloadAfterEdit();
5469
5497
  return [];
5470
5498
  }
5471
- const currentSrcRoot = currentFarmConfig ? _chunk52Q4OB4Acjs.getFarmSourceRoots.call(void 0, currentFarmConfig).map((source) => path6.join(source.root, source.srcDir).replace(/\\/g, "/")).find((sourceRoot) => normalizedFile.startsWith(`${sourceRoot}/`)) || null : null;
5472
- if (currentSrcRoot && normalizedFile.startsWith(`${currentSrcRoot}/`) && _chunkYUCU6XB4cjs.isProgrammaticRoutesFileName.call(void 0, normalizedFile)) {
5499
+ const currentSrcRoot = currentFarmConfig ? _chunkPFVNPOKNcjs.getFarmSourceRoots.call(void 0, currentFarmConfig).map((source) => path6.join(source.root, source.srcDir).replace(/\\/g, "/")).find((sourceRoot) => normalizedFile.startsWith(`${sourceRoot}/`)) || null : null;
5500
+ if (currentSrcRoot && normalizedFile.startsWith(`${currentSrcRoot}/`) && _chunkPYPHM7AScjs.isProgrammaticRoutesFileName.call(void 0, normalizedFile)) {
5473
5501
  logUpdate("PAGE", `updated ${path6.basename(file)}`);
5474
5502
  for (const mod of modules) {
5475
5503
  server2.moduleGraph.invalidateModule(mod);
5476
5504
  }
5477
- await _optionalChain([refreshRouteDiscovery, 'optionalCall', _481 => _481(`updated ${file}`)]);
5505
+ await _optionalChain([refreshRouteDiscovery, 'optionalCall', _469 => _469(`updated ${file}`)]);
5478
5506
  reloadAfterEdit();
5479
5507
  return [];
5480
5508
  }
@@ -5484,22 +5512,22 @@ if (import.meta.hot) {
5484
5512
  for (const mod of modules) {
5485
5513
  server2.moduleGraph.invalidateModule(mod);
5486
5514
  }
5487
- await _optionalChain([refreshRouteDiscovery, 'optionalCall', _482 => _482(`updated ${file}`)]);
5515
+ await _optionalChain([refreshRouteDiscovery, 'optionalCall', _470 => _470(`updated ${file}`)]);
5488
5516
  reloadAfterEdit();
5489
5517
  return [];
5490
5518
  }
5491
- if (apiRouteManager && _chunkI2RBHZF7cjs.invalidateFarmDevDependents.call(void 0, server2, file, apiRouteManager.getSourceFiles()).length > 0) {
5492
- await _optionalChain([refreshRouteDiscovery, 'optionalCall', _483 => _483(`updated ${file}`)]);
5519
+ if (apiRouteManager && _chunkVB7P66Q4cjs.invalidateFarmDevDependents.call(void 0, server2, file, apiRouteManager.getSourceFiles()).length > 0) {
5520
+ await _optionalChain([refreshRouteDiscovery, 'optionalCall', _471 => _471(`updated ${file}`)]);
5493
5521
  }
5494
- const isolatedHydrationMode = _optionalChain([currentFarmConfig, 'optionalAccess', _484 => _484.experimental, 'optionalAccess', _485 => _485.isolatedClientHydration]);
5495
- const planRouteManager = _optionalChain([farmApp, 'optionalAccess', _486 => _486.getRouteManager, 'call', _487 => _487()]);
5522
+ const isolatedHydrationMode = _optionalChain([currentFarmConfig, 'optionalAccess', _472 => _472.experimental, 'optionalAccess', _473 => _473.isolatedClientHydration]);
5523
+ const planRouteManager = _optionalChain([farmApp, 'optionalAccess', _474 => _474.getRouteManager, 'call', _475 => _475()]);
5496
5524
  const isHydrationPlanSource = /\.[cm]?[jt]sx?$/.test(normalizedFile) && !normalizedFile.includes("/node_modules/") && !isFarmGeneratedOutput(normalizedFile);
5497
- const tracksAsyncOwnerIslands = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _488 => _488.renderer])) && planRouteManager !== void 0;
5525
+ const tracksAsyncOwnerIslands = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _476 => _476.renderer])) && planRouteManager !== void 0;
5498
5526
  let clientPlanCurrent = false;
5499
5527
  if (isHydrationPlanSource && (isolatedHydrationMode === "enabled" || isolatedHydrationMode === "analyze" || tracksAsyncOwnerIslands)) {
5500
5528
  const routeManager = planRouteManager;
5501
- await _optionalChain([ctx, 'access', _489 => _489.read, 'optionalCall', _490 => _490()]);
5502
- if (_optionalChain([routeManager, 'optionalAccess', _491 => _491.isEditPlanNeutral, 'call', _492 => _492(file)])) {
5529
+ await _optionalChain([ctx, 'access', _477 => _477.read, 'optionalCall', _478 => _478()]);
5530
+ if (_optionalChain([routeManager, 'optionalAccess', _479 => _479.isEditPlanNeutral, 'call', _480 => _480(file)])) {
5503
5531
  clientPlanCurrent = true;
5504
5532
  } else if (routeManager) {
5505
5533
  routeManager.noteSourceChange(file, "update");
@@ -5523,7 +5551,7 @@ if (import.meta.hot) {
5523
5551
  for (const mod of modules) server2.moduleGraph.invalidateModule(mod);
5524
5552
  for (const boundary of /* @__PURE__ */ new Set([...previousBoundaries, ...nextBoundaries])) {
5525
5553
  if (previousBoundaries.has(boundary) === nextBoundaries.has(boundary)) continue;
5526
- for (const mod of _nullishCoalesce(server2.moduleGraph.getModulesByFile(_chunk7U4XF76Rcjs.toPosixPath.call(void 0, boundary)), () => ( []))) {
5554
+ for (const mod of _nullishCoalesce(server2.moduleGraph.getModulesByFile(_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, boundary)), () => ( []))) {
5527
5555
  server2.moduleGraph.invalidateModule(mod);
5528
5556
  }
5529
5557
  }
@@ -5536,19 +5564,19 @@ if (import.meta.hot) {
5536
5564
  }
5537
5565
  clientPlanCurrent = true;
5538
5566
  } catch (error) {
5539
- _chunk7U4XF76Rcjs.logger.warn(
5567
+ _chunk7ZDLE77Pcjs.logger.warn(
5540
5568
  `[Farm.js] Could not refresh the client hydration plan after ${file}: ${error instanceof Error ? error.message : String(error)}`
5541
5569
  );
5542
5570
  return modules;
5543
5571
  }
5544
5572
  }
5545
5573
  }
5546
- const rendererRouteFile = _optionalChain([farmApp, 'optionalAccess', _493 => _493.getRouteManager, 'call', _494 => _494(), 'access', _495 => _495.isRendererRouteModule, 'call', _496 => _496(normalizedFile)]) === true;
5574
+ const rendererRouteFile = _optionalChain([farmApp, 'optionalAccess', _481 => _481.getRouteManager, 'call', _482 => _482(), 'access', _483 => _483.isRendererRouteModule, 'call', _484 => _484(normalizedFile)]) === true;
5547
5575
  if (normalizedFile.includes("/app/") || rendererRouteFile) {
5548
5576
  if (normalizedFile.includes("middleware.")) {
5549
5577
  if (middlewareManager) {
5550
5578
  await middlewareManager.reload();
5551
- _chunk7U4XF76Rcjs.logger.success("\u2705 Middleware reloaded!");
5579
+ _chunk7ZDLE77Pcjs.logger.success("\u2705 Middleware reloaded!");
5552
5580
  if (initialPluginManager) {
5553
5581
  for (const middleware of middlewareManager.getMiddlewares()) {
5554
5582
  await initialPluginManager.runHookParallel("middlewareDiscovered", {
@@ -5561,7 +5589,7 @@ if (import.meta.hot) {
5561
5589
  }
5562
5590
  return [];
5563
5591
  }
5564
- if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess', _497 => _497.getRouteManager, 'call', _498 => _498(), 'access', _499 => _499.invalidateClientManifest, 'call', _500 => _500()]);
5592
+ if (!clientPlanCurrent) _optionalChain([farmApp, 'optionalAccess', _485 => _485.getRouteManager, 'call', _486 => _486(), 'access', _487 => _487.invalidateClientManifest, 'call', _488 => _488()]);
5565
5593
  const manifestModule = server2.moduleGraph.getModuleById("/@farm/manifest");
5566
5594
  if (manifestModule) {
5567
5595
  server2.moduleGraph.invalidateModule(manifestModule);
@@ -5576,15 +5604,15 @@ if (import.meta.hot) {
5576
5604
  return [];
5577
5605
  }
5578
5606
  }
5579
- if (currentFarmConfig && planRouteManager && _chunkZ43CIBURcjs.usesFarmRendererIslands.call(void 0, currentFarmConfig) && shouldEmitFarmClientRootHmr(currentFarmConfig.renderer) && reachesSharedFarmRendererIsland(
5580
- _optionalChain([server2, 'access', _501 => _501.environments, 'access', _502 => _502.client, 'optionalAccess', _503 => _503.moduleGraph]),
5607
+ if (currentFarmConfig && planRouteManager && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentFarmConfig) && shouldEmitFarmClientRootHmr(currentFarmConfig.renderer) && reachesSharedFarmRendererIsland(
5608
+ _optionalChain([server2, 'access', _489 => _489.environments, 'access', _490 => _490.client, 'optionalAccess', _491 => _491.moduleGraph]),
5581
5609
  normalizedFile,
5582
5610
  planRouteManager.getIsolatedClientBoundaryModules(currentFarmConfig.root)
5583
5611
  )) {
5584
5612
  reloadAfterEdit();
5585
5613
  return [];
5586
5614
  }
5587
- if (/\.[cm]?[jt]sx?$/.test(normalizedFile) && !_optionalChain([server2, 'access', _504 => _504.environments, 'access', _505 => _505.client, 'optionalAccess', _506 => _506.moduleGraph, 'access', _507 => _507.getModulesByFile, 'call', _508 => _508(normalizedFile), 'optionalAccess', _509 => _509.size]) && _chunkI2RBHZF7cjs.invalidateFarmDevDependents.call(void 0, server2, file, getFarmRenderedServerModules()).length > 0) {
5615
+ if (/\.[cm]?[jt]sx?$/.test(normalizedFile) && !_optionalChain([server2, 'access', _492 => _492.environments, 'access', _493 => _493.client, 'optionalAccess', _494 => _494.moduleGraph, 'access', _495 => _495.getModulesByFile, 'call', _496 => _496(normalizedFile), 'optionalAccess', _497 => _497.size]) && _chunkVB7P66Q4cjs.invalidateFarmDevDependents.call(void 0, server2, file, getFarmRenderedServerModules()).length > 0) {
5588
5616
  logUpdate("PAGE", `updated ${path6.basename(file)}`);
5589
5617
  reloadAfterEdit();
5590
5618
  return [];
@@ -5657,7 +5685,7 @@ function createPageDataMiddlewareResponse(res) {
5657
5685
  const captures = (status, location) => {
5658
5686
  if (redirect) return true;
5659
5687
  if (passthrough) return false;
5660
- redirect = _chunkRWR7SMD7cjs.getFarmPageDataRedirectFromResponse.call(void 0,
5688
+ redirect = _chunkS2QSTMBEcjs.getFarmPageDataRedirectFromResponse.call(void 0,
5661
5689
  status,
5662
5690
  Array.isArray(location) ? location[0] : typeof location === "string" ? location : null
5663
5691
  );
@@ -5682,7 +5710,7 @@ function createPageDataMiddlewareResponse(res) {
5682
5710
  return (...args) => {
5683
5711
  if (captures(target.statusCode, target.getHeader("location"))) {
5684
5712
  const callback = args.find((arg) => typeof arg === "function");
5685
- _optionalChain([callback, 'optionalCall', _510 => _510()]);
5713
+ _optionalChain([callback, 'optionalCall', _498 => _498()]);
5686
5714
  return property === "write" ? true : response;
5687
5715
  }
5688
5716
  return target[property](...args);
@@ -5715,9 +5743,9 @@ function readWriteHeadLocation(headers) {
5715
5743
  }
5716
5744
  async function sendFarmPageDataRedirect(res, redirect, deploymentId) {
5717
5745
  for (const name of ["location", "content-length", "content-type"]) res.removeHeader(name);
5718
- await _chunkJRGR5Z4Kcjs.sendWebResponse.call(void 0,
5746
+ await _chunk6VC7NUY3cjs.sendWebResponse.call(void 0,
5719
5747
  res,
5720
- _chunkNLBHLPEOcjs.withFarmDeploymentResponse.call(void 0, _chunkRWR7SMD7cjs.createFarmPageDataRedirectResponse.call(void 0, redirect), deploymentId)
5748
+ _chunkVIDUNAQEcjs.withFarmDeploymentResponse.call(void 0, _chunkS2QSTMBEcjs.createFarmPageDataRedirectResponse.call(void 0, redirect), deploymentId)
5721
5749
  );
5722
5750
  }
5723
5751
  function resolveDevelopmentRoot(farmRoot, viteRoot) {
@@ -5746,43 +5774,43 @@ function isFarmClientVirtualId(id) {
5746
5774
  }
5747
5775
  function isClientEnvironment(context, loadOptions) {
5748
5776
  const environment = context.environment;
5749
- if (_optionalChain([environment, 'optionalAccess', _511 => _511.config, 'optionalAccess', _512 => _512.consumer])) return environment.config.consumer === "client";
5750
- if (_optionalChain([environment, 'optionalAccess', _513 => _513.name])) return environment.name === "client";
5751
- return _optionalChain([loadOptions, 'optionalAccess', _514 => _514.ssr]) !== true;
5777
+ if (_optionalChain([environment, 'optionalAccess', _499 => _499.config, 'optionalAccess', _500 => _500.consumer])) return environment.config.consumer === "client";
5778
+ if (_optionalChain([environment, 'optionalAccess', _501 => _501.name])) return environment.name === "client";
5779
+ return _optionalChain([loadOptions, 'optionalAccess', _502 => _502.ssr]) !== true;
5752
5780
  }
5753
5781
  function invalidateProgrammaticClientRouteModules(server) {
5754
- const graph = _optionalChain([server, 'access', _515 => _515.environments, 'optionalAccess', _516 => _516.client, 'optionalAccess', _517 => _517.moduleGraph]);
5782
+ const graph = _optionalChain([server, 'access', _503 => _503.environments, 'optionalAccess', _504 => _504.client, 'optionalAccess', _505 => _505.moduleGraph]);
5755
5783
  if (!graph) return;
5756
5784
  for (const [id, module] of graph.idToModuleMap) {
5757
- if (_chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, id)) graph.invalidateModule(module);
5785
+ if (_chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, id)) graph.invalidateModule(module);
5758
5786
  }
5759
5787
  }
5760
5788
  function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, clientRoutes, watchFile) {
5761
- const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
5789
+ const parsed = _chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
5762
5790
  const routesFile = resolveRealModuleFile(parsed.filePath, root);
5763
5791
  watchFile(routesFile);
5764
- return _chunkRTAWQXMEcjs.generateProgrammaticClientRouteModule.call(void 0, {
5792
+ return _chunkZCT6B5PQcjs.generateProgrammaticClientRouteModule.call(void 0, {
5765
5793
  kind: parsed.kind,
5766
5794
  routePath: parsed.routePath,
5767
5795
  routesFile,
5768
- route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _518 => _518.routes, 'access', _519 => _519.get, 'call', _520 => _520(
5769
- _chunkRTAWQXMEcjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
5796
+ route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _506 => _506.routes, 'access', _507 => _507.get, 'call', _508 => _508(
5797
+ _chunkZCT6B5PQcjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
5770
5798
  )]),
5771
5799
  // React's client module exports no createElement; the main client entry imports React too.
5772
- rendererClient: _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "react" : renderer.client,
5800
+ rendererClient: _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "react" : renderer.client,
5773
5801
  toImportSpecifier: (file) => toProgrammaticRouteImportSpecifier(file, root)
5774
5802
  });
5775
5803
  }
5776
5804
  function resolveRealModuleFile(filePath, root) {
5777
- const resolved = _nullishCoalesce(_chunkRTAWQXMEcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
5805
+ const resolved = _nullishCoalesce(_chunkZCT6B5PQcjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
5778
5806
  try {
5779
- return _chunk7U4XF76Rcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
5807
+ return _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
5780
5808
  } catch (e29) {
5781
- return _chunk7U4XF76Rcjs.toPosixPath.call(void 0, resolved);
5809
+ return _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, resolved);
5782
5810
  }
5783
5811
  }
5784
- function generateProgrammaticRouteModule(moduleId, root, renderer = _chunkT7UC2ORAcjs.REACT_RENDERER) {
5785
- const parsed = _chunkYUCU6XB4cjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
5812
+ function generateProgrammaticRouteModule(moduleId, root, renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER) {
5813
+ const parsed = _chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
5786
5814
  if (!parsed) {
5787
5815
  return "";
5788
5816
  }
@@ -6074,7 +6102,7 @@ export const OPTIONS = __farmRoute.methods.OPTIONS;
6074
6102
  `.trim();
6075
6103
  }
6076
6104
  function toProgrammaticRouteImportSpecifier(filePath, root) {
6077
- return root ? _chunk7U4XF76Rcjs.toViteModuleId.call(void 0, filePath, root) : filePath;
6105
+ return root ? _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, filePath, root) : filePath;
6078
6106
  }
6079
6107
  async function parseRouteModuleProps(routeModule, input) {
6080
6108
  if (typeof routeModule.__farmResolveRouteProps === "function") {
@@ -6088,17 +6116,17 @@ async function parseRouteModuleProps(routeModule, input) {
6088
6116
  }
6089
6117
  const schemas = routeModule.__farmRouteSchemas;
6090
6118
  const params = parseRouteModuleSchema(
6091
- _optionalChain([schemas, 'optionalAccess', _521 => _521.params]),
6119
+ _optionalChain([schemas, 'optionalAccess', _509 => _509.params]),
6092
6120
  input.props.params,
6093
6121
  "params",
6094
6122
  input.routePath
6095
6123
  );
6096
- const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess', _522 => _522.search]), input.search, "search", input.routePath);
6124
+ const search = parseRouteModuleSchema(_optionalChain([schemas, 'optionalAccess', _510 => _510.search]), input.search, "search", input.routePath);
6097
6125
  return {
6098
6126
  ...input.props,
6099
6127
  params,
6100
6128
  search,
6101
- searchParams: _chunkSUCDVKUBcjs.createFarmSearchParams.call(void 0, search)
6129
+ searchParams: _chunkK6LZMZNBcjs.createFarmSearchParams.call(void 0, search)
6102
6130
  };
6103
6131
  }
6104
6132
  function parseRouteModuleSchema(schema, value, label, routePath) {
@@ -6112,20 +6140,20 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
6112
6140
  throw new Error(`Invalid ${label} for route "${routePath}": ${message}`);
6113
6141
  }
6114
6142
  }
6115
- function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = _chunkT7UC2ORAcjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
6116
- const providerClientCode = _chunkM4YXD6MDcjs.generateFarmIntegrationProviderClientCode.call(void 0,
6143
+ function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
6144
+ const providerClientCode = _chunkVWPGK6UVcjs.generateFarmIntegrationProviderClientCode.call(void 0,
6117
6145
  integrationProviders,
6118
6146
  root,
6119
6147
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
6120
6148
  );
6121
- const clientPluginEntry = _chunkRZI6436Fcjs.generateFarmClientPluginEntryCode.call(void 0,
6149
+ const clientPluginEntry = _chunkADCVSTFVcjs.generateFarmClientPluginEntryCode.call(void 0,
6122
6150
  plugins,
6123
6151
  root,
6124
6152
  srcDir,
6125
6153
  publicRuntimeConfig
6126
6154
  );
6127
- const appSetupPath = _chunkT7UC2ORAcjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
6128
- const rendererClientImports = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? `import React from 'react'
6155
+ const appSetupPath = _chunkLEZJZX4Ccjs.resolveFarmRendererAppSetup.call(void 0, root, renderer);
6156
+ const rendererClientImports = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? `import React from 'react'
6129
6157
  import { hydrateRoot, createRoot } from 'react-dom/client'
6130
6158
  import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
6131
6159
  // Named exports only: a renderer's client module needs no default export. `React` is a
@@ -6133,19 +6161,19 @@ import { restorePagePosition } from '@farm.js/core/internal/client-runtime'` : (
6133
6161
  // optional export (`Children`, `markFunctionComponent`) feature-checked on the namespace.
6134
6162
  appSetupPath ? `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
6135
6163
  import { hydrateRoot, createRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)}
6136
- import __farmAppSetup from ${JSON.stringify(_chunk7U4XF76Rcjs.toViteModuleId.call(void 0, appSetupPath, root))}
6164
+ import __farmAppSetup from ${JSON.stringify(_chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, appSetupPath, root))}
6137
6165
  const React = { ...__farmRendererClient }
6138
6166
  __farmConfigureApp(__farmAppSetup)` : `import * as __farmRendererClient from ${JSON.stringify(renderer.client)}
6139
6167
  import { hydrateRoot, createRoot } from ${JSON.stringify(renderer.client)}
6140
6168
  const React = { ...__farmRendererClient }`
6141
6169
  );
6142
- const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) && _chunkT7UC2ORAcjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
6170
+ const rendererIslands = isolatedHydrationEnabled && !islandValues && !_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _chunkLEZJZX4Ccjs.getFarmRendererCapabilities.call(void 0, renderer).islands;
6143
6171
  const isolatedHydrationImport = rendererIslands ? "import { createFarmRendererIslandRuntime } from '@farm.js/core/internal/renderer-islands'" : isolatedHydrationEnabled ? `${islandValues ? "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph, createFarmServerTreeElement, createFarmServerTreeLayout } from '@farm.js/core/internal/islands-runtime'" : "import { createFarmIsolatedHydrationRuntime, createFarmServerPageBoundary, wrapFarmIsolatedClientGraph } from '@farm.js/core/internal/isolated-boundary'\nimport { createFarmServerTreeElement } from '@farm.js/core/internal/server-tree'"}` : "";
6144
- const docsAdapterImportBlock = _chunkXJDB564Acjs.generateFarmDocsAdapterClientRuntime.call(void 0,
6172
+ const docsAdapterImportBlock = _chunkP4ZLFUNBcjs.generateFarmDocsAdapterClientRuntime.call(void 0,
6145
6173
  docsAdapterUI,
6146
6174
  docsConfigModule,
6147
6175
  // Config resolution keeps an adapter to its UI's renderer, so this is the UI's renderer too.
6148
- _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
6176
+ _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? void 0 : renderer.client
6149
6177
  );
6150
6178
  const isolatedHydrationRuntime = rendererIslands ? `const farmIsolatedHydrationRuntime = createFarmRendererIslandRuntime({
6151
6179
  renderer: React,
@@ -6211,7 +6239,7 @@ async function createFarmServerTreePageElement(source, pathname) {
6211
6239
  return null;
6212
6240
  }
6213
6241
  }
6214
- ${islandValues ? `${_chunkM4YXD6MDcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
6242
+ ${islandValues ? `${_chunkVWPGK6UVcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
6215
6243
  let farmLastRouteState = null;
6216
6244
 
6217
6245
  // A hot update to a layout tree's client module renders the route again.
@@ -7052,7 +7080,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
7052
7080
  return loadedLayouts;
7053
7081
  }
7054
7082
 
7055
- ${_chunkM4YXD6MDcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
7083
+ ${_chunkVWPGK6UVcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
7056
7084
  function wrapWithLoadedLayouts(element, loadedLayouts, params) {
7057
7085
  let wrapped = element;
7058
7086
  for (let index = loadedLayouts.length - 1; index >= 0; index--) {
@@ -7131,7 +7159,7 @@ async function buildWrappedHydrationElement(PageComponent, pageProps, layouts =
7131
7159
 
7132
7160
  function hydrateFarmRoute(container, route) {
7133
7161
  farmLastRouteState = route;
7134
- ${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);"}
7162
+ ${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "return hydrateRoot(container, route.element);" : "return route.layouts.length > 0 ? hydrateRoot(container, route.element, route) : hydrateRoot(container, route.element);"}
7135
7163
  }
7136
7164
 
7137
7165
  function renderFarmRoute(root, route) {
@@ -7275,7 +7303,7 @@ async function tryHydrateImportedPage(
7275
7303
  wrap: wrapFarmClientRouteGraph,
7276
7304
  };
7277
7305
  } else if (useHydrate && container?.id === '__farm_page__') {
7278
- wrappedElement = wrapFarmClientRouteGraph(${_chunkT7UC2ORAcjs.isReactRenderer.call(void 0, renderer) ? "restorePagePosition(React, container, pageElement)" : "pageElement"});
7306
+ wrappedElement = wrapFarmClientRouteGraph(${_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "restorePagePosition(React, container, pageElement)" : "pageElement"});
7279
7307
  } else {
7280
7308
  wrappedElement = await buildWrappedHydrationElement(
7281
7309
  currentPageComponent,
@@ -7352,7 +7380,7 @@ function readActiveLayoutPatterns() {
7352
7380
  );
7353
7381
  }
7354
7382
 
7355
- ${_chunkM4YXD6MDcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
7383
+ ${_chunkVWPGK6UVcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
7356
7384
 
7357
7385
  function activateFragmentScripts(root) {
7358
7386
  for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
@@ -7411,7 +7439,7 @@ function getLayoutShell(root, patterns, index, find) {
7411
7439
  return shell.innerHTML;
7412
7440
  }
7413
7441
 
7414
- ${islandValues ? _chunkM4YXD6MDcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
7442
+ ${islandValues ? _chunkVWPGK6UVcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
7415
7443
  container,
7416
7444
  fragment,
7417
7445
  currentPatterns,
@@ -7486,9 +7514,9 @@ ${islandValues ? `
7486
7514
  return nextTarget;
7487
7515
  }
7488
7516
 
7489
- ${islandValues ? `${_chunkM4YXD6MDcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
7517
+ ${islandValues ? `${_chunkVWPGK6UVcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
7490
7518
 
7491
- ${_chunkM4YXD6MDcjs.FARM_EARLY_NAVIGATION_SOURCE}
7519
+ ${_chunkVWPGK6UVcjs.FARM_EARLY_NAVIGATION_SOURCE}
7492
7520
 
7493
7521
  // Islands mode navigates as the production client does: it fetches the page itself, names the
7494
7522
  // layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
@@ -8192,10 +8220,10 @@ function generateClientManifest(bundle) {
8192
8220
  return manifest;
8193
8221
  }
8194
8222
  async function defineConfig(config = {}) {
8195
- const tailwindVitePlugin = await _chunkRZI6436Fcjs.loadTailwindVitePlugin.call(void 0, );
8223
+ const tailwindVitePlugin = await _chunkADCVSTFVcjs.loadTailwindVitePlugin.call(void 0, );
8196
8224
  const appRoot = path6.resolve(config.root || process.cwd());
8197
- if (_optionalChain([config, 'access', _523 => _523.extends, 'optionalAccess', _524 => _524.length])) {
8198
- const { config: layeredConfig } = await import("./layers-XLOMMQP7.cjs").then(
8225
+ if (_optionalChain([config, 'access', _511 => _511.extends, 'optionalAccess', _512 => _512.length])) {
8226
+ const { config: layeredConfig } = await import("./layers-6R55QDT5.cjs").then(
8199
8227
  ({ resolveFarmLayers }) => resolveFarmLayers(config, {
8200
8228
  root: appRoot,
8201
8229
  mode: process.env.NODE_ENV === "production" ? "production" : "development"
@@ -8203,12 +8231,12 @@ async function defineConfig(config = {}) {
8203
8231
  );
8204
8232
  config = layeredConfig;
8205
8233
  }
8206
- config.renderer = _chunkT7UC2ORAcjs.resolveFarmRenderer.call(void 0, config.renderer);
8207
- config.images = _chunkM4YXD6MDcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
8208
- const rendererVitePlugins = await _chunkT7UC2ORAcjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
8234
+ config.renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, config.renderer);
8235
+ config.images = _chunkVWPGK6UVcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
8236
+ const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
8209
8237
  ssr: true
8210
8238
  });
8211
- const reactRefreshPlugins = _chunkT7UC2ORAcjs.isReactRenderer.call(void 0, config.renderer) ? await _chunkY2FEFQAYcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
8239
+ const reactRefreshPlugins = _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, config.renderer) ? await _chunkQCVP22KWcjs.createFarmReactRefreshPlugins.call(void 0, ) : [];
8212
8240
  const nodeBuiltinStubs = {
8213
8241
  "node:string_decoder": "data:text/javascript,export class StringDecoder { write(buf) { return ''; } end() { return ''; } }; export default StringDecoder;",
8214
8242
  "node:buffer": "data:text/javascript,export const Buffer = { from: () => ({}), alloc: () => ({}), isBuffer: () => false }; export default { Buffer };",
@@ -8267,7 +8295,7 @@ async function defineConfig(config = {}) {
8267
8295
  return null;
8268
8296
  }
8269
8297
  };
8270
- const pc = _chunkY3WG64CPcjs.createCliColors.call(void 0, );
8298
+ const pc = _chunkCH2JX3CMcjs.createCliColors.call(void 0, );
8271
8299
  let serverStarted = false;
8272
8300
  let startTime = Date.now();
8273
8301
  const farmLogger = {
@@ -8296,20 +8324,20 @@ async function defineConfig(config = {}) {
8296
8324
  if (!serverStarted) {
8297
8325
  serverStarted = true;
8298
8326
  const elapsed = Date.now() - startTime;
8299
- const address = _optionalChain([server, 'access', _525 => _525.httpServer, 'optionalAccess', _526 => _526.address, 'call', _527 => _527()]);
8327
+ const address = _optionalChain([server, 'access', _513 => _513.httpServer, 'optionalAccess', _514 => _514.address, 'call', _515 => _515()]);
8300
8328
  const resolvedPort = typeof address === "object" && address ? address.port : server.config.server.port || port || 3e3;
8301
8329
  const hostConfig = server.config.server.host;
8302
8330
  const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
8303
8331
  console.log("");
8304
8332
  console.log(
8305
- ` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkNOSLIDSGcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
8333
+ ` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkZ7YIQ7AJcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
8306
8334
  );
8307
8335
  console.log("");
8308
8336
  console.log(
8309
8337
  ` ${pc.dim("\u279C")} ${pc.bold("Local:")} ${pc.cyan(`http://localhost:${resolvedPort}/`)}`
8310
8338
  );
8311
8339
  if (isExposed) {
8312
- const os = _chunkUZM3PDKKcjs.__require.call(void 0, "os");
8340
+ const os = _chunkUGL4BDNBcjs.__require.call(void 0, "os");
8313
8341
  const interfaces = os.networkInterfaces();
8314
8342
  for (const name of Object.keys(interfaces)) {
8315
8343
  for (const iface of interfaces[name] || []) {
@@ -8335,8 +8363,8 @@ async function defineConfig(config = {}) {
8335
8363
  return {
8336
8364
  plugins: [
8337
8365
  // `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
8338
- _chunkY2FEFQAYcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
8339
- _chunkM4YXD6MDcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
8366
+ _chunkQCVP22KWcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
8367
+ _chunkVWPGK6UVcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
8340
8368
  tailwindVitePlugin,
8341
8369
  ...rendererVitePlugins,
8342
8370
  ...reactRefreshPlugins,
@@ -8346,16 +8374,16 @@ async function defineConfig(config = {}) {
8346
8374
  farmNavigationPlugin(config.renderer),
8347
8375
  farmIslandContainersPlugin(config),
8348
8376
  farmPlugin(config),
8349
- _chunkRTAWQXMEcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
8377
+ _chunkZCT6B5PQcjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
8350
8378
  farmBrandingPlugin
8351
8379
  ],
8352
8380
  customLogger: farmLogger,
8353
8381
  clearScreen: false,
8354
8382
  optimizeDeps: {
8355
- ..._chunkM4YXD6MDcjs.createFarmClientOptimizeDepsConfig.call(void 0,
8356
- _chunkM4YXD6MDcjs.createFarmClientOptimizeDepsEntries.call(void 0,
8383
+ ..._chunkVWPGK6UVcjs.createFarmClientOptimizeDepsConfig.call(void 0,
8384
+ _chunkVWPGK6UVcjs.createFarmClientOptimizeDepsEntries.call(void 0,
8357
8385
  appRoot,
8358
- _chunk52Q4OB4Acjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
8386
+ _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
8359
8387
  ),
8360
8388
  config.renderer,
8361
8389
  appRoot
@@ -8396,8 +8424,8 @@ async function defineConfig(config = {}) {
8396
8424
  dedupe: [...config.renderer.dedupe || []],
8397
8425
  // Stub out problematic server-only modules during dev mode
8398
8426
  alias: {
8399
- ..._chunk52Q4OB4Acjs.getFarmLayerAliases.call(void 0, config.layers),
8400
- ..._chunkM4YXD6MDcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
8427
+ ..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, config.layers),
8428
+ ..._chunkVWPGK6UVcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
8401
8429
  // Nitro internals that should not be resolved in browser
8402
8430
  "supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
8403
8431
  "@poppinss/dumper": "data:text/javascript,export default {};",