@farm.js/core 0.1.81 → 0.1.82

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 (240) hide show
  1. package/dist/{agent-mcp.d-Cxi3214_.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +4 -3
  4. package/dist/agent-runtime.d.mts +1 -1
  5. package/dist/agent-runtime.d.ts +1 -1
  6. package/dist/agent-runtime.mjs +3 -2
  7. package/dist/analyzer-LV23T6QN.cjs +17 -0
  8. package/dist/{analyzer-IC66UJCU.mjs → analyzer-RPU2KG4J.mjs} +2 -2
  9. package/dist/api/node.cjs +5 -4
  10. package/dist/api/node.d.mts +3 -3
  11. package/dist/api/node.d.ts +3 -3
  12. package/dist/api/node.mjs +4 -3
  13. package/dist/api/route-manager.cjs +5 -4
  14. package/dist/api/route-manager.d.mts +3 -3
  15. package/dist/api/route-manager.d.ts +3 -3
  16. package/dist/api/route-manager.mjs +4 -3
  17. package/dist/api/runtime.cjs +4 -3
  18. package/dist/api/runtime.d.mts +2 -2
  19. package/dist/api/runtime.d.ts +2 -2
  20. package/dist/api/runtime.mjs +3 -2
  21. package/dist/api.cjs +7 -6
  22. package/dist/api.d.mts +4 -4
  23. package/dist/api.d.ts +4 -4
  24. package/dist/api.mjs +6 -5
  25. package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
  26. package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
  27. package/dist/app-markdown.d.mts +2 -2
  28. package/dist/app-markdown.d.ts +2 -2
  29. package/dist/{app.d-BJuSurgy.d.mts → app.d-C0ePpuaG.d.mts} +21 -4
  30. package/dist/{app.d-DGIoFt5D.d.ts → app.d-CIoXsAbN.d.ts} +21 -4
  31. package/dist/chunk-3DE6RK7K.cjs +36 -0
  32. package/dist/{chunk-NOYKBGUK.mjs → chunk-47I2MYIR.mjs} +130 -46
  33. package/dist/{chunk-GY63XD6K.mjs → chunk-4X7LSGM6.mjs} +1 -1
  34. package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
  35. package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
  36. package/dist/{chunk-CPZZBCPO.cjs → chunk-5MUFW5UU.cjs} +2 -2
  37. package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
  38. package/dist/{chunk-XOXCQGAF.mjs → chunk-63ZE6B6M.mjs} +1 -1
  39. package/dist/{chunk-XOGCNKB7.cjs → chunk-6BPFIYGY.cjs} +3 -3
  40. package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
  41. package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
  42. package/dist/{chunk-2Y2HRZQY.cjs → chunk-AIPZDBP6.cjs} +312 -228
  43. package/dist/{chunk-CL7BUGVB.cjs → chunk-ARORZ3MH.cjs} +286 -240
  44. package/dist/{chunk-ONSZP5JK.mjs → chunk-AUFEM3FB.mjs} +1 -1
  45. package/dist/{chunk-FYZD7DUS.cjs → chunk-B2PGVHBG.cjs} +4 -4
  46. package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
  47. package/dist/{chunk-M6DAIE4T.cjs → chunk-BCTHOQPP.cjs} +10 -8
  48. package/dist/{chunk-S3IWDDQ3.mjs → chunk-C3VCYOU4.mjs} +1 -1
  49. package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
  50. package/dist/{chunk-W6C3LEXX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
  51. package/dist/{chunk-YH7ENV3K.mjs → chunk-CJDBTTLB.mjs} +4 -4
  52. package/dist/{chunk-5N526T7Q.mjs → chunk-DAXU2NBE.mjs} +74 -18
  53. package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
  54. package/dist/{chunk-46UV2E7I.cjs → chunk-DRO3NXA3.cjs} +9 -9
  55. package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
  56. package/dist/{chunk-HTNJ7A4D.mjs → chunk-EL2Z6YFZ.mjs} +2 -2
  57. package/dist/{chunk-IM3UINTZ.mjs → chunk-GXLNARPO.mjs} +151 -16
  58. package/dist/{chunk-E3HBD2K3.cjs → chunk-HHQEKLZL.cjs} +2 -2
  59. package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
  60. package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
  61. package/dist/{chunk-BJWJP5A4.mjs → chunk-I4DR3HCH.mjs} +3 -3
  62. package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
  63. package/dist/{chunk-NSLRK5DK.cjs → chunk-JK26IMT7.cjs} +1 -1
  64. package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
  65. package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
  66. package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
  67. package/dist/{chunk-MOGRRZMW.cjs → chunk-LM2ZDNDD.cjs} +16 -16
  68. package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
  69. package/dist/{chunk-ZIYJWJV2.cjs → chunk-N2EFMN2K.cjs} +8 -8
  70. package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
  71. package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
  72. package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
  73. package/dist/{chunk-IPG6B25T.mjs → chunk-NRCKBDYP.mjs} +78 -32
  74. package/dist/{chunk-POL5RCVU.mjs → chunk-OMB7UGVW.mjs} +1 -1
  75. package/dist/{chunk-D77OGI6X.mjs → chunk-OP5VI4TP.mjs} +1 -1
  76. package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
  77. package/dist/{chunk-OIWDEDUO.cjs → chunk-Q2VOT3K2.cjs} +392 -336
  78. package/dist/{chunk-RZ6XUEQS.mjs → chunk-QSMUMK7Y.mjs} +2 -2
  79. package/dist/{chunk-2HMSSPCZ.mjs → chunk-RMLR5RMH.mjs} +4 -2
  80. package/dist/{chunk-ADQ2LATR.cjs → chunk-RMPUEH5T.cjs} +2 -2
  81. package/dist/{chunk-AHVF5GI2.cjs → chunk-S7WZUK3B.cjs} +2 -2
  82. package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
  83. package/dist/chunk-U6XYBTUT.mjs +36 -0
  84. package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
  85. package/dist/{chunk-OUDNUFVR.cjs → chunk-VMBIKDKW.cjs} +4 -4
  86. package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
  87. package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
  88. package/dist/{chunk-TLSGRK7E.mjs → chunk-ZIZRIZLP.mjs} +1 -1
  89. package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
  90. package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
  91. package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
  92. package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
  93. package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-C1WM3ieD.d.mts} +6 -1
  94. package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-DcmDzcSC.d.ts} +6 -1
  95. package/dist/client-plugins.d.mts +1 -1
  96. package/dist/client-plugins.d.ts +1 -1
  97. package/dist/client.d.mts +7 -7
  98. package/dist/client.d.ts +7 -7
  99. package/dist/config.d.mts +1 -1
  100. package/dist/config.d.ts +1 -1
  101. package/dist/cron.cjs +2 -2
  102. package/dist/cron.mjs +1 -1
  103. package/dist/desktop.d.mts +2 -2
  104. package/dist/desktop.d.ts +2 -2
  105. package/dist/{devtools-EI5N366Z.cjs → devtools-5B7NZE6F.cjs} +10 -9
  106. package/dist/{devtools-XJHODO5H.mjs → devtools-C5GXZZ7E.mjs} +7 -6
  107. package/dist/docs.cjs +9 -8
  108. package/dist/docs.d.mts +3 -3
  109. package/dist/docs.d.ts +3 -3
  110. package/dist/docs.mjs +8 -7
  111. package/dist/environment/vite.cjs +4 -4
  112. package/dist/environment/vite.mjs +3 -3
  113. package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
  114. package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
  115. package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
  116. package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
  117. package/dist/index.cjs +28 -27
  118. package/dist/{index.d-DzDHOttz.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
  119. package/dist/{index.d-Dhc2scRl.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
  120. package/dist/index.d.mts +22 -22
  121. package/dist/index.d.ts +22 -22
  122. package/dist/index.mjs +27 -26
  123. package/dist/integrations/orm.d.mts +1 -1
  124. package/dist/integrations/orm.d.ts +1 -1
  125. package/dist/integrations.cjs +4 -3
  126. package/dist/integrations.d.mts +1 -1
  127. package/dist/integrations.d.ts +1 -1
  128. package/dist/integrations.mjs +3 -2
  129. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  130. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  131. package/dist/internal/build-runtime.cjs +26 -25
  132. package/dist/internal/build-runtime.d.mts +4 -4
  133. package/dist/internal/build-runtime.d.ts +4 -4
  134. package/dist/internal/build-runtime.mjs +25 -24
  135. package/dist/internal/cli-runtime.cjs +11 -10
  136. package/dist/internal/cli-runtime.d.mts +7 -7
  137. package/dist/internal/cli-runtime.d.ts +7 -7
  138. package/dist/internal/cli-runtime.mjs +10 -9
  139. package/dist/internal/client-error-overlay.cjs +4 -4
  140. package/dist/internal/client-error-overlay.mjs +1 -1
  141. package/dist/internal/client-runtime.d.mts +5 -5
  142. package/dist/internal/client-runtime.d.ts +5 -5
  143. package/dist/internal/compression-runtime.d.mts +1 -1
  144. package/dist/internal/compression-runtime.d.ts +1 -1
  145. package/dist/internal/config-runtime.cjs +9 -8
  146. package/dist/internal/config-runtime.d.mts +3 -3
  147. package/dist/internal/config-runtime.d.ts +3 -3
  148. package/dist/internal/config-runtime.mjs +8 -7
  149. package/dist/internal/infra-analytics-runtime.cjs +8 -6
  150. package/dist/internal/infra-analytics-runtime.d.mts +8 -2
  151. package/dist/internal/infra-analytics-runtime.d.ts +8 -2
  152. package/dist/internal/infra-analytics-runtime.mjs +8 -6
  153. package/dist/internal/islands-boot.cjs +54 -20
  154. package/dist/internal/islands-boot.d.mts +5 -3
  155. package/dist/internal/islands-boot.d.ts +5 -3
  156. package/dist/internal/islands-boot.mjs +49 -15
  157. package/dist/internal/native-server-fns.cjs +4 -4
  158. package/dist/internal/native-server-fns.mjs +3 -3
  159. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  160. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  161. package/dist/internal/production-runtime.cjs +11 -6
  162. package/dist/internal/production-runtime.d.mts +13 -11
  163. package/dist/internal/production-runtime.d.ts +13 -11
  164. package/dist/internal/production-runtime.mjs +10 -5
  165. package/dist/internal/spa-router.d.mts +3 -3
  166. package/dist/internal/spa-router.d.ts +3 -3
  167. package/dist/internal/start-manifest.d.mts +1 -1
  168. package/dist/internal/start-manifest.d.ts +1 -1
  169. package/dist/markdown.d.mts +1 -1
  170. package/dist/markdown.d.ts +1 -1
  171. package/dist/middleware.d.mts +1 -1
  172. package/dist/middleware.d.ts +1 -1
  173. package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
  174. package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
  175. package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
  176. package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
  177. package/dist/navigation.d.mts +4 -4
  178. package/dist/navigation.d.ts +4 -4
  179. package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
  180. package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
  181. package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
  182. package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
  183. package/dist/plugin.cjs +21 -19
  184. package/dist/plugin.d.mts +5 -5
  185. package/dist/plugin.d.ts +5 -5
  186. package/dist/plugin.mjs +20 -18
  187. package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
  188. package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
  189. package/dist/renderer-client.cjs +48 -5
  190. package/dist/renderer-client.d.mts +5 -5
  191. package/dist/renderer-client.d.ts +5 -5
  192. package/dist/renderer-client.mjs +48 -5
  193. package/dist/renderer.cjs +2 -2
  194. package/dist/renderer.d.mts +10 -0
  195. package/dist/renderer.d.ts +10 -0
  196. package/dist/renderer.mjs +1 -1
  197. package/dist/{request.d-Dx82V8bz.d.mts → request.d-BhggxQf3.d.mts} +1 -1
  198. package/dist/{request.d-DUMuWxSN.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
  199. package/dist/request.d.mts +2 -2
  200. package/dist/request.d.ts +2 -2
  201. package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
  202. package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
  203. package/dist/{router.d-CJBSG5jr.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
  204. package/dist/{router.d-BtkKDxUB.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
  205. package/dist/routes.d.mts +1 -1
  206. package/dist/routes.d.ts +1 -1
  207. package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-5AOF64FL.cjs} +10 -9
  208. package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-DNRLYOJ7.mjs} +9 -8
  209. package/dist/{runtime-OJ7FXFUI.mjs → runtime-EHG2FRXZ.mjs} +9 -8
  210. package/dist/{runtime-YWQVBC3V.cjs → runtime-ZVHG5SRB.cjs} +13 -12
  211. package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
  212. package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
  213. package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
  214. package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
  215. package/dist/server-plugins.d.mts +3 -3
  216. package/dist/server-plugins.d.ts +3 -3
  217. package/dist/server.cjs +54 -48
  218. package/dist/server.d.mts +11 -11
  219. package/dist/server.d.ts +11 -11
  220. package/dist/server.mjs +30 -24
  221. package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Bjgl-Osi.d.ts} +2 -2
  222. package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-l3G38xHa.d.mts} +2 -2
  223. package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
  224. package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
  225. package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BZjuC6Zc.d.mts} +11 -3
  226. package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-BaOUOPf7.d.ts} +11 -3
  227. package/dist/testing.cjs +5 -4
  228. package/dist/testing.d.mts +1 -1
  229. package/dist/testing.d.ts +1 -1
  230. package/dist/testing.mjs +4 -3
  231. package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
  232. package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
  233. package/dist/version.cjs +2 -2
  234. package/dist/version.mjs +1 -1
  235. package/dist/vite.cjs +21 -19
  236. package/dist/vite.d.mts +6 -6
  237. package/dist/vite.d.ts +6 -6
  238. package/dist/vite.mjs +20 -18
  239. package/package.json +2 -2
  240. package/dist/analyzer-435DCIQ6.cjs +0 -17
@@ -3,13 +3,13 @@ export { i as installChunkErrorRecovery } from '../chunk-recovery.d-lnQFzcQP.js'
3
3
  import { F as FarmIslandStrategy } from '../island.d-CfGru1MO.js';
4
4
  import { a as FarmClientNavigationSession, b as FarmClientPlugin } from '../lifecycle.d-OtGWAvJT.js';
5
5
  export { c as createClientPluginManager } from '../lifecycle.d-OtGWAvJT.js';
6
- export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-qWp8hNwd.js';
7
- import { b as FarmViewTransitionMode } from '../spa-router.d-DMKiBsHH.js';
8
- export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-DMKiBsHH.js';
6
+ export { bD as createFarmSearchParams, bE as searchParamsToObject } from '../client-plugins.d-DcmDzcSC.js';
7
+ import { b as FarmViewTransitionMode } from '../spa-router.d-Bjgl-Osi.js';
8
+ export { g as getHashTargetElement, i as isFarmBlockedNavigationURL, d as isFarmExternalNavigationURL } from '../spa-router.d-Bjgl-Osi.js';
9
9
  import '../types.d-euATAbE4.js';
10
10
  export { g as getFarmIslandValueHeaders, k as keepFarmIslandValues } from '../island-value-protocol.d-fEoc1m8e.js';
11
11
  export { applyFarmCacheInvalidations } from '../cache.js';
12
- export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-o3pPd9VI.js';
12
+ export { r as runFarmNavigationDelegates } from '../navigation-delegate.d-BLM-8Q3Z.js';
13
13
  import 'react';
14
14
  import '../route.d-Cd4Fi6BA.js';
15
15
  import '../endpoint.d-Dx_1k6Du.js';
@@ -45,7 +45,7 @@ import '../image-config.d-ByhQ0TT7.js';
45
45
  import '../config.d-BKIhJtmr.js';
46
46
  import '../types.d-DQnyD3VD.js';
47
47
  import '../font.js';
48
- import '../render-plan.d-BD06tqFA.js';
48
+ import '../render-plan.d-BSTjTH8h.js';
49
49
 
50
50
  interface ScheduleFarmIslandHydrationOptions<T> {
51
51
  container: Element;
@@ -1,4 +1,4 @@
1
- import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-BflSNO-b.mjs';
1
+ import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-C1WM3ieD.mjs';
2
2
  import '../lifecycle.d-OtGWAvJT.mjs';
3
3
  import '../route.d-ShmtqqVQ.mjs';
4
4
  import '../endpoint.d-BXbBpKoh.mjs';
@@ -1,4 +1,4 @@
1
- import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-qWp8hNwd.js';
1
+ import { E as FarmRequest, G as FarmResponse, I as FarmPluginContext, F as FarmPlugin } from '../client-plugins.d-DcmDzcSC.js';
2
2
  import '../lifecycle.d-OtGWAvJT.js';
3
3
  import '../route.d-Cd4Fi6BA.js';
4
4
  import '../endpoint.d-Dx_1k6Du.js';
@@ -5,7 +5,7 @@ var _chunkMF3IA2AWcjs = require('../chunk-MF3IA2AW.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkMOGRRZMWcjs = require('../chunk-MOGRRZMW.cjs');
8
+ var _chunkLM2ZDNDDcjs = require('../chunk-LM2ZDNDD.cjs');
9
9
  require('../chunk-OZC2JPW6.cjs');
10
10
 
11
11
 
@@ -21,15 +21,15 @@ require('../chunk-UVV3I5QA.cjs');
21
21
  require('../chunk-IIHZ2BEE.cjs');
22
22
  require('../chunk-LSHX2H5G.cjs');
23
23
  require('../chunk-STF6VDYQ.cjs');
24
- require('../chunk-4OFWG4IK.cjs');
24
+ require('../chunk-EACD6ND7.cjs');
25
25
  require('../chunk-6JHZPB52.cjs');
26
26
  require('../chunk-BTVDYS4B.cjs');
27
27
  require('../chunk-OLKYHTLN.cjs');
28
28
  require('../chunk-RE5E2G5S.cjs');
29
29
  require('../chunk-52Q4OB4A.cjs');
30
- require('../chunk-M6DAIE4T.cjs');
30
+ require('../chunk-BCTHOQPP.cjs');
31
31
  require('../chunk-MCSRMEQV.cjs');
32
- require('../chunk-5ZHC6QGD.cjs');
32
+ require('../chunk-HQKCSJEH.cjs');
33
33
  require('../chunk-XRFGOYXG.cjs');
34
34
  require('../chunk-3EIPOTZV.cjs');
35
35
  require('../chunk-2HW5LWAH.cjs');
@@ -39,7 +39,7 @@ require('../chunk-BSX5OGSD.cjs');
39
39
  require('../chunk-2KMIJDY6.cjs');
40
40
  require('../chunk-SHIWRBFI.cjs');
41
41
  require('../chunk-WT6RAN2I.cjs');
42
- require('../chunk-WGWWRV2M.cjs');
42
+ require('../chunk-B3HQTGXS.cjs');
43
43
  require('../chunk-DUIP64BF.cjs');
44
44
  require('../chunk-QKW6DLDT.cjs');
45
45
  require('../chunk-UUQNJDGH.cjs');
@@ -47,7 +47,8 @@ require('../chunk-J6TZRYCO.cjs');
47
47
  require('../chunk-XRRHPBG2.cjs');
48
48
  require('../chunk-5DX3O6TT.cjs');
49
49
  require('../chunk-RKQOMG2X.cjs');
50
- require('../chunk-RHI67C2V.cjs');
50
+ require('../chunk-3DE6RK7K.cjs');
51
+ require('../chunk-HUGPJFOC.cjs');
51
52
  require('../chunk-CEVXKJKF.cjs');
52
53
  require('../chunk-IUKBPBM7.cjs');
53
54
  require('../chunk-JRGR5Z4K.cjs');
@@ -80,7 +81,7 @@ require('../chunk-UZM3PDKK.cjs');
80
81
 
81
82
  // src/config-runtime.ts
82
83
  function loadFarmMobileRuntime() {
83
- return import("../runtime-YWQVBC3V.cjs");
84
+ return import("../runtime-ZVHG5SRB.cjs");
84
85
  }
85
86
 
86
87
 
@@ -96,4 +97,4 @@ function loadFarmMobileRuntime() {
96
97
 
97
98
 
98
99
 
99
- exports.createFarmDesktopContext = _chunkAQLHD6HZcjs.createFarmDesktopContext; exports.getFarmDesktopOutputDirs = _chunkAQLHD6HZcjs.getFarmDesktopOutputDirs; exports.installFarmDesktopSetup = _chunkAQLHD6HZcjs.installFarmDesktopSetup; exports.loadConfig = _chunkMOGRRZMWcjs.loadConfig; exports.loadFarmMobileRuntime = loadFarmMobileRuntime; exports.loadFarmProductionVite = _chunkMF3IA2AWcjs.loadFarmProductionVite; exports.logger = _chunk7U4XF76Rcjs.logger; exports.resolveConfig = _chunkMOGRRZMWcjs.resolveConfig; exports.resolveDeployConfig = _chunkMOGRRZMWcjs.resolveDeployConfig; exports.resolveFarmDesktopBlock = _chunkAQLHD6HZcjs.resolveFarmDesktopBlock; exports.resolveFarmDesktopConfig = _chunkAQLHD6HZcjs.resolveFarmDesktopConfig; exports.setFarmDesktopDevSession = _chunkAQLHD6HZcjs.setFarmDesktopDevSession; exports.validateFarmDesktopConfig = _chunkAQLHD6HZcjs.validateFarmDesktopConfig;
100
+ exports.createFarmDesktopContext = _chunkAQLHD6HZcjs.createFarmDesktopContext; exports.getFarmDesktopOutputDirs = _chunkAQLHD6HZcjs.getFarmDesktopOutputDirs; exports.installFarmDesktopSetup = _chunkAQLHD6HZcjs.installFarmDesktopSetup; exports.loadConfig = _chunkLM2ZDNDDcjs.loadConfig; exports.loadFarmMobileRuntime = loadFarmMobileRuntime; exports.loadFarmProductionVite = _chunkMF3IA2AWcjs.loadFarmProductionVite; exports.logger = _chunk7U4XF76Rcjs.logger; exports.resolveConfig = _chunkLM2ZDNDDcjs.resolveConfig; exports.resolveDeployConfig = _chunkLM2ZDNDDcjs.resolveDeployConfig; exports.resolveFarmDesktopBlock = _chunkAQLHD6HZcjs.resolveFarmDesktopBlock; exports.resolveFarmDesktopConfig = _chunkAQLHD6HZcjs.resolveFarmDesktopConfig; exports.setFarmDesktopDevSession = _chunkAQLHD6HZcjs.setFarmDesktopDevSession; exports.validateFarmDesktopConfig = _chunkAQLHD6HZcjs.validateFarmDesktopConfig;
@@ -1,11 +1,11 @@
1
- import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-BflSNO-b.mjs';
2
- export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-BflSNO-b.mjs';
1
+ import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-C1WM3ieD.mjs';
2
+ export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-C1WM3ieD.mjs';
3
3
  import { P as PlatformRouteFiles } from '../generate-route-types.d-CaGMIaNI.mjs';
4
4
  import { F as FarmMobileOS, i as FarmMobileNativeEngine, g as FarmMobileNativeAuto, o as FarmMobileRouteScreen, p as FarmMobileScreen, e as FarmMobileContext, R as ResolvedFarmMobileConfig, a as FarmMobileAppModules, x as FarmMobileBlockCache, c as FarmMobileBudgets, d as FarmMobileConfigInput, y as FarmMobileContextOptions, h as FarmMobileNativeConfig, j as FarmMobileNativeRouteConfig, k as FarmMobilePageConfig, l as FarmMobilePrefetch, m as FarmMobilePresentation, z as FarmMobileResolveOptions, n as FarmMobileRouteConfig, q as FarmMobileTab, r as FarmMobileUserConfig, A as ResolvedFarmMobileNativeConfig, B as createFarmMobileContext, C as resolveFarmMobileBlock, D as resolveFarmMobileConfig, E as resolveFarmMobileServer, G as validateFarmMobileConfig, H as validateFarmMobilePageConfig } from '../config.d-BKIhJtmr.mjs';
5
5
  import { c as FarmMobileTier, d as FarmMobileScreenSource, e as FarmMobileRouteAnalysis, f as FarmMobileScreenDecision, g as FarmMobileAnalyzerStats, b as FarmMobileShellManifest, F as FarmMobileRouteManifest, h as FarmMobileBlocker, i as FarmMobileBlockerRule, j as FarmMobilePageExport, k as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, l as FarmMobileScreens, m as FarmMobileScreensOptions, n as FarmUiNode, o as createFarmMobileModuleId, p as createFarmMobileRouteManifest, q as createFarmMobileRoutePattern, r as readFarmMobilePageExport, s as resolveFarmMobileScreens } from '../routes.d-CCccJRrp.mjs';
6
6
  import { F as FARM_SHELL_PARAM_SEGMENT, a as FARM_SHELL_RENDER_HEADER, b as FARM_SHELL_ROUTE_HEADER, c as createFarmMobileShellRenderPath } from '../shell-render.d-CG6bPiiA.mjs';
7
7
  export { F as FarmProductionViteRuntime, l as loadFarmProductionVite } from '../production-vite.d-BQFAlG7n.mjs';
8
- export { l as logger } from '../utils.d-BEKLWa0Z.mjs';
8
+ export { l as logger } from '../utils.d-tdzw0_zQ.mjs';
9
9
  import '../lifecycle.d-OtGWAvJT.mjs';
10
10
  import '../route.d-ShmtqqVQ.mjs';
11
11
  import '../endpoint.d-BXbBpKoh.mjs';
@@ -1,11 +1,11 @@
1
- import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-qWp8hNwd.js';
2
- export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-qWp8hNwd.js';
1
+ import { J as ResolvedFarmConfig, x as FarmUserConfig } from '../client-plugins.d-DcmDzcSC.js';
2
+ export { bu as FarmDesktopDevSession, bv as FarmDesktopSetupOptions, bw as createFarmDesktopContext, bx as getFarmDesktopOutputDirs, by as installFarmDesktopSetup, K as loadConfig, N as resolveConfig, O as resolveDeployConfig, bz as resolveFarmDesktopBlock, bA as resolveFarmDesktopConfig, bB as setFarmDesktopDevSession, bC as validateFarmDesktopConfig } from '../client-plugins.d-DcmDzcSC.js';
3
3
  import { P as PlatformRouteFiles } from '../generate-route-types.d-B76M5R11.js';
4
4
  import { F as FarmMobileOS, i as FarmMobileNativeEngine, g as FarmMobileNativeAuto, o as FarmMobileRouteScreen, p as FarmMobileScreen, e as FarmMobileContext, R as ResolvedFarmMobileConfig, a as FarmMobileAppModules, x as FarmMobileBlockCache, c as FarmMobileBudgets, d as FarmMobileConfigInput, y as FarmMobileContextOptions, h as FarmMobileNativeConfig, j as FarmMobileNativeRouteConfig, k as FarmMobilePageConfig, l as FarmMobilePrefetch, m as FarmMobilePresentation, z as FarmMobileResolveOptions, n as FarmMobileRouteConfig, q as FarmMobileTab, r as FarmMobileUserConfig, A as ResolvedFarmMobileNativeConfig, B as createFarmMobileContext, C as resolveFarmMobileBlock, D as resolveFarmMobileConfig, E as resolveFarmMobileServer, G as validateFarmMobileConfig, H as validateFarmMobilePageConfig } from '../config.d-BKIhJtmr.js';
5
5
  import { c as FarmMobileTier, d as FarmMobileScreenSource, e as FarmMobileRouteAnalysis, f as FarmMobileScreenDecision, g as FarmMobileAnalyzerStats, b as FarmMobileShellManifest, F as FarmMobileRouteManifest, h as FarmMobileBlocker, i as FarmMobileBlockerRule, j as FarmMobilePageExport, k as FarmMobileRouteManifestOptions, a as FarmMobileRouteRule, l as FarmMobileScreens, m as FarmMobileScreensOptions, n as FarmUiNode, o as createFarmMobileModuleId, p as createFarmMobileRouteManifest, q as createFarmMobileRoutePattern, r as readFarmMobilePageExport, s as resolveFarmMobileScreens } from '../routes.d-b7khoRoU.js';
6
6
  import { F as FARM_SHELL_PARAM_SEGMENT, a as FARM_SHELL_RENDER_HEADER, b as FARM_SHELL_ROUTE_HEADER, c as createFarmMobileShellRenderPath } from '../shell-render.d-CG6bPiiA.js';
7
7
  export { F as FarmProductionViteRuntime, l as loadFarmProductionVite } from '../production-vite.d-BQFAlG7n.js';
8
- export { l as logger } from '../utils.d-BdjHKDuT.js';
8
+ export { l as logger } from '../utils.d-D8TWmpWo.js';
9
9
  import '../lifecycle.d-OtGWAvJT.js';
10
10
  import '../route.d-Cd4Fi6BA.js';
11
11
  import '../endpoint.d-Dx_1k6Du.js';
@@ -5,7 +5,7 @@ import {
5
5
  loadConfig,
6
6
  resolveConfig,
7
7
  resolveDeployConfig
8
- } from "../chunk-YH7ENV3K.mjs";
8
+ } from "../chunk-CJDBTTLB.mjs";
9
9
  import "../chunk-VISQDC6W.mjs";
10
10
  import {
11
11
  createFarmDesktopContext,
@@ -21,15 +21,15 @@ import "../chunk-TPA2PV5J.mjs";
21
21
  import "../chunk-YVVY276M.mjs";
22
22
  import "../chunk-XR2ZIBQK.mjs";
23
23
  import "../chunk-CU5SYTJG.mjs";
24
- import "../chunk-SLEHAGGV.mjs";
24
+ import "../chunk-NQ3Y6E2T.mjs";
25
25
  import "../chunk-22W4FNTG.mjs";
26
26
  import "../chunk-SQ5O7I3L.mjs";
27
27
  import "../chunk-XGL42MQ7.mjs";
28
28
  import "../chunk-4QENVMG7.mjs";
29
29
  import "../chunk-Z3RM3VA2.mjs";
30
- import "../chunk-2HMSSPCZ.mjs";
30
+ import "../chunk-RMLR5RMH.mjs";
31
31
  import "../chunk-AOIUYHPH.mjs";
32
- import "../chunk-ATISIC6G.mjs";
32
+ import "../chunk-7VJXYB6S.mjs";
33
33
  import "../chunk-NLATR3T3.mjs";
34
34
  import "../chunk-N33DLJBC.mjs";
35
35
  import "../chunk-UIJOLBUL.mjs";
@@ -39,7 +39,7 @@ import "../chunk-LTOT5KVJ.mjs";
39
39
  import "../chunk-WXFY5JIY.mjs";
40
40
  import "../chunk-YP7YO3S3.mjs";
41
41
  import "../chunk-YWPNIYUP.mjs";
42
- import "../chunk-6JWXHPVR.mjs";
42
+ import "../chunk-XRSNW4IU.mjs";
43
43
  import "../chunk-H4WUWLQR.mjs";
44
44
  import "../chunk-CZOXZ6WQ.mjs";
45
45
  import "../chunk-VZBAW44S.mjs";
@@ -47,7 +47,8 @@ import "../chunk-K63OWRY2.mjs";
47
47
  import "../chunk-DS2KZ5BT.mjs";
48
48
  import "../chunk-EDPENAVO.mjs";
49
49
  import "../chunk-F7MJWW6A.mjs";
50
- import "../chunk-7VCLTNED.mjs";
50
+ import "../chunk-U6XYBTUT.mjs";
51
+ import "../chunk-PNMAD3OS.mjs";
51
52
  import "../chunk-UJWRXBVP.mjs";
52
53
  import "../chunk-PKMUQ7LM.mjs";
53
54
  import "../chunk-O5QUJEWT.mjs";
@@ -80,7 +81,7 @@ import "../chunk-TIZJYHB7.mjs";
80
81
 
81
82
  // src/config-runtime.ts
82
83
  function loadFarmMobileRuntime() {
83
- return import("../runtime-OJ7FXFUI.mjs");
84
+ return import("../runtime-EHG2FRXZ.mjs");
84
85
  }
85
86
  export {
86
87
  createFarmDesktopContext,
@@ -1,20 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkW6C3LEXXcjs = require('../chunk-W6C3LEXX.cjs');
5
- require('../chunk-FYZD7DUS.cjs');
4
+ var _chunkCD5Z7RR5cjs = require('../chunk-CD5Z7RR5.cjs');
5
+ require('../chunk-B2PGVHBG.cjs');
6
6
  require('../chunk-W53Z4WDI.cjs');
7
- require('../chunk-ADQ2LATR.cjs');
7
+ require('../chunk-RMPUEH5T.cjs');
8
8
  require('../chunk-BTVDYS4B.cjs');
9
9
  require('../chunk-OLKYHTLN.cjs');
10
10
  require('../chunk-2NOHVIJ3.cjs');
11
11
  require('../chunk-2KMIJDY6.cjs');
12
12
  require('../chunk-RKQOMG2X.cjs');
13
+ require('../chunk-HUGPJFOC.cjs');
14
+ require('../chunk-CEVXKJKF.cjs');
13
15
  require('../chunk-2OF5RPVU.cjs');
14
16
  require('../chunk-7Q7UB4TL.cjs');
15
17
  require('../chunk-JYT7AN37.cjs');
16
18
  require('../chunk-PLJMEUAN.cjs');
17
- require('../chunk-NSLRK5DK.cjs');
19
+ require('../chunk-JK26IMT7.cjs');
18
20
  require('../chunk-L6E5BSNU.cjs');
19
21
  require('../chunk-PMJSG4JS.cjs');
20
22
  require('../chunk-NLBHLPEO.cjs');
@@ -28,8 +30,8 @@ require('../chunk-3BIASUGR.cjs');
28
30
  require('../chunk-UZM3PDKK.cjs');
29
31
 
30
32
  // src/infra-analytics-runtime.ts
31
- var createFarmInfraAnalyticsPlugin2 = _chunkW6C3LEXXcjs.createFarmInfraAnalyticsPlugin;
32
- var createFarmInfraAnalyticsRecorder2 = _chunkW6C3LEXXcjs.createFarmInfraAnalyticsRecorder;
33
+ var createFarmInfraAnalyticsPlugin2 = (options) => _chunkCD5Z7RR5cjs.createFarmInfraAnalyticsPlugin.call(void 0, void 0, void 0, options);
34
+ var createFarmInfraAnalyticsRecorder2 = (options) => _chunkCD5Z7RR5cjs.createFarmInfraAnalyticsRecorder.call(void 0, void 0, void 0, options);
33
35
 
34
36
 
35
37
 
@@ -1,9 +1,15 @@
1
+ /** Accepting the WebMCP tool calls the app's pages report; see FarmInfraAnalyticsWebMCPOptions. */
2
+ interface RuntimeOptions {
3
+ webmcp?: {
4
+ route?(pathname: string): object | null | undefined;
5
+ };
6
+ }
1
7
  /** Farm's analytics plugin when the environment links the app to Farm Infra, else null. */
2
- declare const createFarmInfraAnalyticsPlugin: () => {
8
+ declare const createFarmInfraAnalyticsPlugin: (options?: RuntimeOptions) => {
3
9
  name: string;
4
10
  } | null;
5
11
  /** The same reporting for a server without a plugin runtime, else null. */
6
- declare const createFarmInfraAnalyticsRecorder: () => {
12
+ declare const createFarmInfraAnalyticsRecorder: (options?: RuntimeOptions) => {
7
13
  record(request: Request, options: {
8
14
  kind?: string;
9
15
  route?: {
@@ -1,9 +1,15 @@
1
+ /** Accepting the WebMCP tool calls the app's pages report; see FarmInfraAnalyticsWebMCPOptions. */
2
+ interface RuntimeOptions {
3
+ webmcp?: {
4
+ route?(pathname: string): object | null | undefined;
5
+ };
6
+ }
1
7
  /** Farm's analytics plugin when the environment links the app to Farm Infra, else null. */
2
- declare const createFarmInfraAnalyticsPlugin: () => {
8
+ declare const createFarmInfraAnalyticsPlugin: (options?: RuntimeOptions) => {
3
9
  name: string;
4
10
  } | null;
5
11
  /** The same reporting for a server without a plugin runtime, else null. */
6
- declare const createFarmInfraAnalyticsRecorder: () => {
12
+ declare const createFarmInfraAnalyticsRecorder: (options?: RuntimeOptions) => {
7
13
  record(request: Request, options: {
8
14
  kind?: string;
9
15
  route?: {
@@ -1,20 +1,22 @@
1
1
  import {
2
2
  createFarmInfraAnalyticsPlugin,
3
3
  createFarmInfraAnalyticsRecorder
4
- } from "../chunk-IM3UINTZ.mjs";
5
- import "../chunk-RZ6XUEQS.mjs";
4
+ } from "../chunk-GXLNARPO.mjs";
5
+ import "../chunk-QSMUMK7Y.mjs";
6
6
  import "../chunk-HR4N2K4V.mjs";
7
- import "../chunk-GY63XD6K.mjs";
7
+ import "../chunk-4X7LSGM6.mjs";
8
8
  import "../chunk-SQ5O7I3L.mjs";
9
9
  import "../chunk-XGL42MQ7.mjs";
10
10
  import "../chunk-YU2MNIIY.mjs";
11
11
  import "../chunk-WXFY5JIY.mjs";
12
12
  import "../chunk-F7MJWW6A.mjs";
13
+ import "../chunk-PNMAD3OS.mjs";
14
+ import "../chunk-UJWRXBVP.mjs";
13
15
  import "../chunk-2I6PUKWJ.mjs";
14
16
  import "../chunk-YT2ZMLXK.mjs";
15
17
  import "../chunk-D2LCAV6L.mjs";
16
18
  import "../chunk-EILUVBKS.mjs";
17
- import "../chunk-D77OGI6X.mjs";
19
+ import "../chunk-OP5VI4TP.mjs";
18
20
  import "../chunk-GLVDXRG2.mjs";
19
21
  import "../chunk-W6QLRQ3V.mjs";
20
22
  import "../chunk-IWJONXPF.mjs";
@@ -28,8 +30,8 @@ import "../chunk-VIXTAVEA.mjs";
28
30
  import "../chunk-TIZJYHB7.mjs";
29
31
 
30
32
  // src/infra-analytics-runtime.ts
31
- var createFarmInfraAnalyticsPlugin2 = createFarmInfraAnalyticsPlugin;
32
- var createFarmInfraAnalyticsRecorder2 = createFarmInfraAnalyticsRecorder;
33
+ var createFarmInfraAnalyticsPlugin2 = (options) => createFarmInfraAnalyticsPlugin(void 0, void 0, options);
34
+ var createFarmInfraAnalyticsRecorder2 = (options) => createFarmInfraAnalyticsRecorder(void 0, void 0, options);
33
35
  export {
34
36
  createFarmInfraAnalyticsPlugin2 as createFarmInfraAnalyticsPlugin,
35
37
  createFarmInfraAnalyticsRecorder2 as createFarmInfraAnalyticsRecorder
@@ -4,6 +4,7 @@
4
4
  var FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = 'button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]';
5
5
  var FARM_ISLANDS_BOOT_VISIBLE_MARGIN = "200px";
6
6
  var FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = "x-farm-deployment-id";
7
+ var FARM_ISLANDS_BOOT_PREFETCHING_LINK = 'a[data-farm-link]:not([data-farm-prefetch="none"])';
7
8
  var ISLAND = "f-island";
8
9
  var HYDRATED_ISLAND = '[data-farm-island-hydrated="true"]';
9
10
  function submitsForm(target, kind) {
@@ -60,18 +61,19 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
60
61
  const rootId = _optionalChain([script, 'optionalAccess', _11 => _11.dataset, 'access', _12 => _12.farmRoot]);
61
62
  const root = rootId ? document.getElementById(rootId) : null;
62
63
  const preloaded = /* @__PURE__ */ new Set();
64
+ const runtime = new URL(_nullishCoalesce(_optionalChain([script, 'optionalAccess', _13 => _13.dataset, 'access', _14 => _14.farmRuntime]), () => ( "")), document.baseURI);
65
+ const modulepreload = (file) => {
66
+ const link = document.createElement("link");
67
+ link.rel = "modulepreload";
68
+ link.href = new URL(file, runtime).href;
69
+ if (_optionalChain([script, 'optionalAccess', _15 => _15.nonce])) link.nonce = script.nonce;
70
+ document.head.append(link);
71
+ };
63
72
  const preload = (group) => {
64
- const files = _optionalChain([script, 'optionalAccess', _13 => _13.dataset, 'access', _14 => _14[group]]);
73
+ const files = _optionalChain([script, 'optionalAccess', _16 => _16.dataset, 'access', _17 => _17[group]]);
65
74
  if (!script || !files || preloaded.has(group)) return;
66
75
  preloaded.add(group);
67
- const base = new URL(_nullishCoalesce(script.dataset.farmRuntime, () => ( "")), document.baseURI);
68
- for (const file of files.split(" ")) {
69
- const link = document.createElement("link");
70
- link.rel = "modulepreload";
71
- link.href = new URL(file, base).href;
72
- if (script.nonce) link.nonce = script.nonce;
73
- document.head.append(link);
74
- }
76
+ for (const file of files.split(" ")) modulepreload(file);
75
77
  };
76
78
  const release = () => {
77
79
  for (const cleanup of cleanups.splice(0)) cleanup();
@@ -144,6 +146,10 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
144
146
  };
145
147
  for (const type of ["pointerdown", "focusin", "mouseover"]) listen(type, observe, true);
146
148
  const requestPage = (href) => {
149
+ const scope = window;
150
+ const early = scope.__FARM_EARLY_NAVIGATION__;
151
+ if (_optionalChain([early, 'optionalAccess', _18 => _18.url]) === href && Date.now() - early.at <= 3e4) return;
152
+ _optionalChain([early, 'optionalAccess', _19 => _19.controller, 'access', _20 => _20.abort, 'call', _21 => _21()]);
147
153
  const headers = { accept: "text/html" };
148
154
  const content = _nullishCoalesce(document.getElementById("root"), () => ( document.body));
149
155
  const held = new Set(
@@ -159,7 +165,6 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
159
165
  ).filter(Boolean);
160
166
  if (layouts.length) headers["f-layouts"] = JSON.stringify(layouts);
161
167
  if (rootId !== "root") headers["f-stream"] = "flush";
162
- const scope = window;
163
168
  if (scope.__FARM_DEPLOYMENT_ID__) {
164
169
  headers[FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER] = scope.__FARM_DEPLOYMENT_ID__;
165
170
  }
@@ -169,6 +174,18 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
169
174
  });
170
175
  scope.__FARM_EARLY_NAVIGATION__ = { url: href, headers, response, at: Date.now(), controller };
171
176
  };
177
+ listen(
178
+ "pointerdown",
179
+ (event) => {
180
+ const press = event;
181
+ const anchor = routedLink(press.target);
182
+ if (press.button || isModified(press) || !_optionalChain([anchor, 'optionalAccess', _22 => _22.matches, 'call', _23 => _23(FARM_ISLANDS_BOOT_PREFETCHING_LINK)])) {
183
+ return;
184
+ }
185
+ requestPage(anchor.href);
186
+ },
187
+ true
188
+ );
172
189
  listen(
173
190
  "click",
174
191
  (event) => {
@@ -197,19 +214,22 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
197
214
  { rootMargin: FARM_ISLANDS_BOOT_VISIBLE_MARGIN }
198
215
  ) : null;
199
216
  if (visibility) cleanups.push(() => visibility.disconnect());
200
- let idle = false;
201
- const startWhenIdle = () => {
202
- if (idle) return;
203
- idle = true;
217
+ const whenIdle = (callback) => {
204
218
  const idleWindow = window;
205
219
  if (typeof idleWindow.requestIdleCallback === "function") {
206
- const handle = idleWindow.requestIdleCallback(() => void start(), { timeout: 2e3 });
207
- cleanups.push(() => _optionalChain([idleWindow, 'access', _15 => _15.cancelIdleCallback, 'optionalCall', _16 => _16(handle)]));
220
+ const handle = idleWindow.requestIdleCallback(callback, { timeout: 2e3 });
221
+ cleanups.push(() => _optionalChain([idleWindow, 'access', _24 => _24.cancelIdleCallback, 'optionalCall', _25 => _25(handle)]));
208
222
  } else {
209
- const handle = window.setTimeout(() => void start(), 1);
223
+ const handle = window.setTimeout(callback, 1);
210
224
  cleanups.push(() => window.clearTimeout(handle));
211
225
  }
212
226
  };
227
+ let idle = false;
228
+ const startWhenIdle = () => {
229
+ if (idle) return;
230
+ idle = true;
231
+ whenIdle(() => void start());
232
+ };
213
233
  const parsedVisible = [];
214
234
  const observeVisible = (island) => {
215
235
  const targets = island.getClientRects().length > 0 ? [island] : Array.from(island.children);
@@ -217,7 +237,7 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
217
237
  else for (const target of targets) visibility.observe(target);
218
238
  };
219
239
  const considerIsland = (island) => {
220
- if (_optionalChain([island, 'access', _17 => _17.parentElement, 'optionalAccess', _18 => _18.closest, 'call', _19 => _19(ISLAND)])) return;
240
+ if (_optionalChain([island, 'access', _26 => _26.parentElement, 'optionalAccess', _27 => _27.closest, 'call', _28 => _28(ISLAND)])) return;
221
241
  const strategy = island.getAttribute("strategy");
222
242
  if (strategy === "interaction") return;
223
243
  if (strategy === "idle") startWhenIdle();
@@ -240,7 +260,7 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
240
260
  consider(document.documentElement);
241
261
  if (rootId && !root) void start();
242
262
  else if (root && !loading) {
243
- const strategy = _optionalChain([script, 'optionalAccess', _20 => _20.dataset, 'access', _21 => _21.farmRootStrategy]);
263
+ const strategy = _optionalChain([script, 'optionalAccess', _29 => _29.dataset, 'access', _30 => _30.farmRootStrategy]);
244
264
  if (strategy === "idle") startWhenIdle();
245
265
  else if (strategy === "visible") observeVisible(root);
246
266
  else if (strategy !== "interaction") void start();
@@ -262,10 +282,24 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
262
282
  document.removeEventListener("DOMContentLoaded", parsed);
263
283
  });
264
284
  }
285
+ const prefetch = () => {
286
+ const connection = navigator.connection;
287
+ if (loading || !_optionalChain([script, 'optionalAccess', _31 => _31.dataset, 'access', _32 => _32.farmRuntime]) || _optionalChain([connection, 'optionalAccess', _33 => _33.saveData])) return;
288
+ modulepreload(runtime.href);
289
+ preload("farmPreload");
290
+ preload("farmPreloadRouter");
291
+ };
292
+ const prefetchWhenIdle = () => whenIdle(prefetch);
293
+ if (document.readyState === "complete") prefetchWhenIdle();
294
+ else {
295
+ window.addEventListener("load", prefetchWhenIdle, { once: true });
296
+ cleanups.push(() => window.removeEventListener("load", prefetchWhenIdle));
297
+ }
265
298
  }
266
299
 
267
300
 
268
301
 
269
302
 
270
303
 
271
- exports.FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER; exports.FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR; exports.FARM_ISLANDS_BOOT_VISIBLE_MARGIN = FARM_ISLANDS_BOOT_VISIBLE_MARGIN; exports.startFarmIslandsBoot = startFarmIslandsBoot;
304
+
305
+ exports.FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER; exports.FARM_ISLANDS_BOOT_PREFETCHING_LINK = FARM_ISLANDS_BOOT_PREFETCHING_LINK; exports.FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR; exports.FARM_ISLANDS_BOOT_VISIBLE_MARGIN = FARM_ISLANDS_BOOT_VISIBLE_MARGIN; exports.startFarmIslandsBoot = startFarmIslandsBoot;
@@ -3,8 +3,8 @@ declare const FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = "button,[role=\"button\"],
3
3
  /** Kept equal to the island scheduler's visibility margin (island-triggers.ts). */
4
4
  declare const FARM_ISLANDS_BOOT_VISIBLE_MARGIN = "200px";
5
5
  /**
6
- * @internal The request for a link clicked before the runtime ran, which the boot sends with the
7
- * click (`window.__FARM_EARLY_NAVIGATION__`). The router's next navigation request takes the
6
+ * @internal The request for a link pressed or clicked before the runtime ran, which the boot sends
7
+ * then (`window.__FARM_EARLY_NAVIGATION__`). The router's next navigation request takes the
8
8
  * response when it would send the same request, and drops it otherwise.
9
9
  */
10
10
  interface FarmEarlyNavigation {
@@ -20,7 +20,9 @@ interface FarmEarlyNavigation {
20
20
  }
21
21
  /** Kept equal to the routers' deployment header (FARM_DEPLOYMENT_ID_HEADER); a test compares them. */
22
22
  declare const FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = "x-farm-deployment-id";
23
+ /** A `Link` that prefetches, as its attributes say (resolveLinkAttributes); a test compares them. */
24
+ declare const FARM_ISLANDS_BOOT_PREFETCHING_LINK = "a[data-farm-link]:not([data-farm-prefetch=\"none\"])";
23
25
  /** Starts the runtime when the page first needs it. `load` runs it; it starts as it runs. */
24
26
  declare function startFarmIslandsBoot(load?: () => Promise<unknown>): void;
25
27
 
26
- export { FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER, FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR, FARM_ISLANDS_BOOT_VISIBLE_MARGIN, type FarmEarlyNavigation, startFarmIslandsBoot };
28
+ export { FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER, FARM_ISLANDS_BOOT_PREFETCHING_LINK, FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR, FARM_ISLANDS_BOOT_VISIBLE_MARGIN, type FarmEarlyNavigation, startFarmIslandsBoot };
@@ -3,8 +3,8 @@ declare const FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = "button,[role=\"button\"],
3
3
  /** Kept equal to the island scheduler's visibility margin (island-triggers.ts). */
4
4
  declare const FARM_ISLANDS_BOOT_VISIBLE_MARGIN = "200px";
5
5
  /**
6
- * @internal The request for a link clicked before the runtime ran, which the boot sends with the
7
- * click (`window.__FARM_EARLY_NAVIGATION__`). The router's next navigation request takes the
6
+ * @internal The request for a link pressed or clicked before the runtime ran, which the boot sends
7
+ * then (`window.__FARM_EARLY_NAVIGATION__`). The router's next navigation request takes the
8
8
  * response when it would send the same request, and drops it otherwise.
9
9
  */
10
10
  interface FarmEarlyNavigation {
@@ -20,7 +20,9 @@ interface FarmEarlyNavigation {
20
20
  }
21
21
  /** Kept equal to the routers' deployment header (FARM_DEPLOYMENT_ID_HEADER); a test compares them. */
22
22
  declare const FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = "x-farm-deployment-id";
23
+ /** A `Link` that prefetches, as its attributes say (resolveLinkAttributes); a test compares them. */
24
+ declare const FARM_ISLANDS_BOOT_PREFETCHING_LINK = "a[data-farm-link]:not([data-farm-prefetch=\"none\"])";
23
25
  /** Starts the runtime when the page first needs it. `load` runs it; it starts as it runs. */
24
26
  declare function startFarmIslandsBoot(load?: () => Promise<unknown>): void;
25
27
 
26
- export { FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER, FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR, FARM_ISLANDS_BOOT_VISIBLE_MARGIN, type FarmEarlyNavigation, startFarmIslandsBoot };
28
+ export { FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER, FARM_ISLANDS_BOOT_PREFETCHING_LINK, FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR, FARM_ISLANDS_BOOT_VISIBLE_MARGIN, type FarmEarlyNavigation, startFarmIslandsBoot };
@@ -4,6 +4,7 @@ import "../chunk-TIZJYHB7.mjs";
4
4
  var FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR = 'button,[role="button"],input[type="button"],input[type="submit"],input[type="reset"]';
5
5
  var FARM_ISLANDS_BOOT_VISIBLE_MARGIN = "200px";
6
6
  var FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER = "x-farm-deployment-id";
7
+ var FARM_ISLANDS_BOOT_PREFETCHING_LINK = 'a[data-farm-link]:not([data-farm-prefetch="none"])';
7
8
  var ISLAND = "f-island";
8
9
  var HYDRATED_ISLAND = '[data-farm-island-hydrated="true"]';
9
10
  function submitsForm(target, kind) {
@@ -60,18 +61,19 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
60
61
  const rootId = script?.dataset.farmRoot;
61
62
  const root = rootId ? document.getElementById(rootId) : null;
62
63
  const preloaded = /* @__PURE__ */ new Set();
64
+ const runtime = new URL(script?.dataset.farmRuntime ?? "", document.baseURI);
65
+ const modulepreload = (file) => {
66
+ const link = document.createElement("link");
67
+ link.rel = "modulepreload";
68
+ link.href = new URL(file, runtime).href;
69
+ if (script?.nonce) link.nonce = script.nonce;
70
+ document.head.append(link);
71
+ };
63
72
  const preload = (group) => {
64
73
  const files = script?.dataset[group];
65
74
  if (!script || !files || preloaded.has(group)) return;
66
75
  preloaded.add(group);
67
- const base = new URL(script.dataset.farmRuntime ?? "", document.baseURI);
68
- for (const file of files.split(" ")) {
69
- const link = document.createElement("link");
70
- link.rel = "modulepreload";
71
- link.href = new URL(file, base).href;
72
- if (script.nonce) link.nonce = script.nonce;
73
- document.head.append(link);
74
- }
76
+ for (const file of files.split(" ")) modulepreload(file);
75
77
  };
76
78
  const release = () => {
77
79
  for (const cleanup of cleanups.splice(0)) cleanup();
@@ -144,6 +146,10 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
144
146
  };
145
147
  for (const type of ["pointerdown", "focusin", "mouseover"]) listen(type, observe, true);
146
148
  const requestPage = (href) => {
149
+ const scope = window;
150
+ const early = scope.__FARM_EARLY_NAVIGATION__;
151
+ if (early?.url === href && Date.now() - early.at <= 3e4) return;
152
+ early?.controller.abort();
147
153
  const headers = { accept: "text/html" };
148
154
  const content = document.getElementById("root") ?? document.body;
149
155
  const held = new Set(
@@ -159,7 +165,6 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
159
165
  ).filter(Boolean);
160
166
  if (layouts.length) headers["f-layouts"] = JSON.stringify(layouts);
161
167
  if (rootId !== "root") headers["f-stream"] = "flush";
162
- const scope = window;
163
168
  if (scope.__FARM_DEPLOYMENT_ID__) {
164
169
  headers[FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER] = scope.__FARM_DEPLOYMENT_ID__;
165
170
  }
@@ -169,6 +174,18 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
169
174
  });
170
175
  scope.__FARM_EARLY_NAVIGATION__ = { url: href, headers, response, at: Date.now(), controller };
171
176
  };
177
+ listen(
178
+ "pointerdown",
179
+ (event) => {
180
+ const press = event;
181
+ const anchor = routedLink(press.target);
182
+ if (press.button || isModified(press) || !anchor?.matches(FARM_ISLANDS_BOOT_PREFETCHING_LINK)) {
183
+ return;
184
+ }
185
+ requestPage(anchor.href);
186
+ },
187
+ true
188
+ );
172
189
  listen(
173
190
  "click",
174
191
  (event) => {
@@ -197,19 +214,22 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
197
214
  { rootMargin: FARM_ISLANDS_BOOT_VISIBLE_MARGIN }
198
215
  ) : null;
199
216
  if (visibility) cleanups.push(() => visibility.disconnect());
200
- let idle = false;
201
- const startWhenIdle = () => {
202
- if (idle) return;
203
- idle = true;
217
+ const whenIdle = (callback) => {
204
218
  const idleWindow = window;
205
219
  if (typeof idleWindow.requestIdleCallback === "function") {
206
- const handle = idleWindow.requestIdleCallback(() => void start(), { timeout: 2e3 });
220
+ const handle = idleWindow.requestIdleCallback(callback, { timeout: 2e3 });
207
221
  cleanups.push(() => idleWindow.cancelIdleCallback?.(handle));
208
222
  } else {
209
- const handle = window.setTimeout(() => void start(), 1);
223
+ const handle = window.setTimeout(callback, 1);
210
224
  cleanups.push(() => window.clearTimeout(handle));
211
225
  }
212
226
  };
227
+ let idle = false;
228
+ const startWhenIdle = () => {
229
+ if (idle) return;
230
+ idle = true;
231
+ whenIdle(() => void start());
232
+ };
213
233
  const parsedVisible = [];
214
234
  const observeVisible = (island) => {
215
235
  const targets = island.getClientRects().length > 0 ? [island] : Array.from(island.children);
@@ -262,9 +282,23 @@ function startFarmIslandsBoot(load = loadFarmClientEntry) {
262
282
  document.removeEventListener("DOMContentLoaded", parsed);
263
283
  });
264
284
  }
285
+ const prefetch = () => {
286
+ const connection = navigator.connection;
287
+ if (loading || !script?.dataset.farmRuntime || connection?.saveData) return;
288
+ modulepreload(runtime.href);
289
+ preload("farmPreload");
290
+ preload("farmPreloadRouter");
291
+ };
292
+ const prefetchWhenIdle = () => whenIdle(prefetch);
293
+ if (document.readyState === "complete") prefetchWhenIdle();
294
+ else {
295
+ window.addEventListener("load", prefetchWhenIdle, { once: true });
296
+ cleanups.push(() => window.removeEventListener("load", prefetchWhenIdle));
297
+ }
265
298
  }
266
299
  export {
267
300
  FARM_ISLANDS_BOOT_DEPLOYMENT_HEADER,
301
+ FARM_ISLANDS_BOOT_PREFETCHING_LINK,
268
302
  FARM_ISLANDS_BOOT_REPLAYABLE_SELECTOR,
269
303
  FARM_ISLANDS_BOOT_VISIBLE_MARGIN,
270
304
  startFarmIslandsBoot