@farm.js/core 0.1.44 → 0.1.45

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 (31) hide show
  1. package/dist/{chunk-3YJMBQ27.cjs → chunk-2DZOABRK.cjs} +1 -1
  2. package/dist/{chunk-2MKTHHEU.mjs → chunk-2NCY6O6Q.mjs} +3 -3
  3. package/dist/{chunk-XUHIRBXY.mjs → chunk-FDCV5OCT.mjs} +1 -1
  4. package/dist/{chunk-R4J2UOV4.mjs → chunk-FHQZJJQR.mjs} +1 -1
  5. package/dist/{chunk-5GBL2LKD.cjs → chunk-I5IO3ASU.cjs} +66 -66
  6. package/dist/{chunk-QGFKXYC7.mjs → chunk-K5DHVEXC.mjs} +2 -2
  7. package/dist/{chunk-T44ECMEP.cjs → chunk-KVN3YEFF.cjs} +6 -6
  8. package/dist/{chunk-GA6JM4L6.cjs → chunk-SIVK2SRR.cjs} +43 -43
  9. package/dist/{chunk-XPSGGECF.cjs → chunk-UN4B2TXC.cjs} +2 -2
  10. package/dist/{chunk-ERA5RP3L.mjs → chunk-VR64PHNT.mjs} +4 -4
  11. package/dist/{chunk-YFLBG2W3.mjs → chunk-X6YOWNDZ.mjs} +1 -1
  12. package/dist/{chunk-AI3WVJNP.cjs → chunk-YAD64RWI.cjs} +50 -50
  13. package/dist/index.cjs +6 -6
  14. package/dist/index.mjs +5 -5
  15. package/dist/internal/build-runtime.cjs +6 -6
  16. package/dist/internal/build-runtime.mjs +5 -5
  17. package/dist/internal/client-error-overlay.cjs +4 -4
  18. package/dist/internal/client-error-overlay.mjs +1 -1
  19. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  20. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  21. package/dist/internal/production-runtime.cjs +4 -4
  22. package/dist/internal/production-runtime.mjs +3 -3
  23. package/dist/plugin.cjs +5 -5
  24. package/dist/plugin.mjs +4 -4
  25. package/dist/server.cjs +14 -14
  26. package/dist/server.mjs +4 -4
  27. package/dist/version.cjs +2 -2
  28. package/dist/version.mjs +1 -1
  29. package/dist/vite.cjs +5 -5
  30. package/dist/vite.mjs +4 -4
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// package.json
2
- var version = "0.1.44";
2
+ var version = "0.1.45";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -30,7 +30,7 @@ import {
30
30
  resolveFarmIsolatedClientHydrationMode,
31
31
  resolveModuleSourcePath,
32
32
  stripUseClientDirective
33
- } from "./chunk-QGFKXYC7.mjs";
33
+ } from "./chunk-K5DHVEXC.mjs";
34
34
  import {
35
35
  FARM_NODE_RESPONSE_END_PENDING
36
36
  } from "./chunk-FGH3ZXTP.mjs";
@@ -58,7 +58,7 @@ import {
58
58
  resolveFarmApiCatalogInput,
59
59
  resolveFarmAppManifestInput,
60
60
  stripRouteGroups
61
- } from "./chunk-YFLBG2W3.mjs";
61
+ } from "./chunk-X6YOWNDZ.mjs";
62
62
  import {
63
63
  isFarmPreviewDeploymentEnvironment
64
64
  } from "./chunk-BOYNDCZL.mjs";
@@ -218,7 +218,7 @@ import {
218
218
  } from "./chunk-ZZGQD7A4.mjs";
219
219
  import {
220
220
  FARM_VERSION
221
- } from "./chunk-R4J2UOV4.mjs";
221
+ } from "./chunk-FHQZJJQR.mjs";
222
222
  import {
223
223
  DEFAULT_FARM_API_BASE_PATH
224
224
  } from "./chunk-7LTCDQRS.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getRouteGroupScope,
9
9
  isInRouteGroupScope
10
- } from "./chunk-YFLBG2W3.mjs";
10
+ } from "./chunk-X6YOWNDZ.mjs";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-LPEX4YW6.mjs";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.1.44";
2
+ var version = "0.1.45";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -11,7 +11,7 @@ var _chunkCGR525MJcjs = require('./chunk-CGR525MJ.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkT44ECMEPcjs = require('./chunk-T44ECMEP.cjs');
14
+ var _chunkKVN3YEFFcjs = require('./chunk-KVN3YEFF.cjs');
15
15
 
16
16
 
17
17
 
@@ -82,7 +82,7 @@ var _chunk2SJ4RQ6Pcjs = require('./chunk-2SJ4RQ6P.cjs');
82
82
 
83
83
 
84
84
 
85
- var _chunkGA6JM4L6cjs = require('./chunk-GA6JM4L6.cjs');
85
+ var _chunkSIVK2SRRcjs = require('./chunk-SIVK2SRR.cjs');
86
86
 
87
87
 
88
88
  var _chunk45QJHGZMcjs = require('./chunk-45QJHGZM.cjs');
@@ -109,7 +109,7 @@ var _chunk3XEMGDBFcjs = require('./chunk-3XEMGDBF.cjs');
109
109
 
110
110
 
111
111
 
112
- var _chunkXPSGGECFcjs = require('./chunk-XPSGGECF.cjs');
112
+ var _chunkUN4B2TXCcjs = require('./chunk-UN4B2TXC.cjs');
113
113
 
114
114
 
115
115
  var _chunkTI7UANHIcjs = require('./chunk-TI7UANHI.cjs');
@@ -224,7 +224,7 @@ var _chunk5QIKR7RRcjs = require('./chunk-5QIKR7RR.cjs');
224
224
  var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
225
225
 
226
226
 
227
- var _chunk3YJMBQ27cjs = require('./chunk-3YJMBQ27.cjs');
227
+ var _chunk2DZOABRKcjs = require('./chunk-2DZOABRK.cjs');
228
228
 
229
229
 
230
230
  var _chunkC5GUTBZKcjs = require('./chunk-C5GUTBZK.cjs');
@@ -1965,7 +1965,7 @@ async function mergeBuiltFontCss(outputDir, fontCssSource) {
1965
1965
  }
1966
1966
  const normalizedFontCss = typeof fontCss === "string" ? fontCss : Buffer.from(fontCss).toString("utf8");
1967
1967
  await fs4.writeFile(fontCssPath, normalizedFontCss);
1968
- await fs4.writeFile(clientCssPath, _chunkGA6JM4L6cjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1968
+ await fs4.writeFile(clientCssPath, _chunkSIVK2SRRcjs.mergeFarmFontCss.call(void 0, clientCss, normalizedFontCss));
1969
1969
  }
1970
1970
  _chunkS3JO3N4Hcjs.__name.call(void 0, mergeBuiltFontCss, "mergeBuiltFontCss");
1971
1971
  var _IncompleteClientBuildOutputError = class _IncompleteClientBuildOutputError extends Error {
@@ -2015,7 +2015,7 @@ function getCachedClientModuleHydrationPlan(modulePath, root, mode, cache, optio
2015
2015
  const key = `${_path2.default.resolve(root)}\0${mode}\0${options.asyncOwnerIslands === true}\0${options.serverOwners === true}\0${_path2.default.resolve(modulePath)}`;
2016
2016
  let plan = cache.get(key);
2017
2017
  if (!plan) {
2018
- plan = _chunkGA6JM4L6cjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
2018
+ plan = _chunkSIVK2SRRcjs.getClientModuleHydrationPlan.call(void 0, modulePath, root, mode, options);
2019
2019
  cache.set(key, plan);
2020
2020
  }
2021
2021
  return { ...plan, isolatedBoundaries: [...plan.isolatedBoundaries] };
@@ -2044,14 +2044,14 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2044
2044
  `[Farm.js] isolated hydration kept route-wide because integration provider "${unsupportedIntegrationProvider.name}" does not declare supportsIsolatedHydration: true.`
2045
2045
  );
2046
2046
  }
2047
- const isolatedMode = _chunkGA6JM4L6cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
2047
+ const isolatedMode = _chunkSIVK2SRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
2048
2048
  _optionalChain([config, 'access', _39 => _39.experimental, 'optionalAccess', _40 => _40.isolatedClientHydration]),
2049
2049
  {
2050
2050
  serverComponents: _chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _41 => _41.experimental, 'optionalAccess', _42 => _42.serverComponents])) === "rsc",
2051
2051
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
2052
2052
  }
2053
2053
  );
2054
- const planOptions = _chunkGA6JM4L6cjs.getFarmClientHydrationPlanOptions.call(void 0,
2054
+ const planOptions = _chunkSIVK2SRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
2055
2055
  config.renderer,
2056
2056
  Boolean(unsupportedIntegrationProvider)
2057
2057
  );
@@ -2102,7 +2102,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2102
2102
  };
2103
2103
  }
2104
2104
  });
2105
- const layoutAppliesToRoute = _chunkXPSGGECFcjs.routeBoundaryCoversDirectory;
2105
+ const layoutAppliesToRoute = _chunkUN4B2TXCcjs.routeBoundaryCoversDirectory;
2106
2106
  const routeDirectory = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (route) => _nullishCoalesce(route.directory, () => ( route.pattern)), "routeDirectory");
2107
2107
  const adapterOwnsDocsRuntime = Boolean(
2108
2108
  _chunkPSV6XKPOcjs.isReactRenderer.call(void 0, config.renderer) && _optionalChain([config, 'access', _45 => _45.docs, 'optionalAccess', _46 => _46.enabled]) && _optionalChain([config, 'access', _47 => _47.docs, 'access', _48 => _48.adapter, 'optionalAccess', _49 => _49.server]) && config.docs.adapter.react
@@ -2113,7 +2113,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2113
2113
  ), "isAdapterDocsRoute");
2114
2114
  const syntheticDocsEntry = _optionalChain([config, 'access', _52 => _52.docs, 'optionalAccess', _53 => _53.enabled]) && !adapterOwnsDocsRuntime ? adapterDocsEntry : null;
2115
2115
  const syntheticDocsPatterns = syntheticDocsEntry ? syntheticDocsEntry === "/" ? ["/", "/[...slug]"] : [syntheticDocsEntry, `${syntheticDocsEntry}/[...slug]`] : [];
2116
- const markdownPagePlan = _chunkGA6JM4L6cjs.createMarkdownPageHydrationPlanner.call(void 0,
2116
+ const markdownPagePlan = _chunkSIVK2SRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
2117
2117
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), root),
2118
2118
  root,
2119
2119
  isolatedMode,
@@ -2129,7 +2129,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2129
2129
  pagePlanOptions
2130
2130
  )
2131
2131
  }));
2132
- _chunkGA6JM4L6cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2132
+ _chunkSIVK2SRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
2133
2133
  clientLayouts.map((layout) => ({
2134
2134
  pattern: layout.pattern,
2135
2135
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -2138,7 +2138,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2138
2138
  [
2139
2139
  ...routePlans.map(({ route, metadata }) => ({
2140
2140
  pattern: routeDirectory(route),
2141
- depth: _chunkXPSGGECFcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
2141
+ depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, routeDirectory(route)),
2142
2142
  metadata
2143
2143
  })),
2144
2144
  ...syntheticDocsPatterns.map((pattern) => ({
@@ -2161,7 +2161,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2161
2161
  for (const layout of clientLayouts) {
2162
2162
  const matchesBuiltRoute = pageRoutes.some((route) => layoutAppliesToRoute(layout.pattern, routeDirectory(route))) || Boolean(adapterDocsEntry && layoutAppliesToRoute(layout.pattern, adapterDocsEntry));
2163
2163
  if (matchesBuiltRoute && layout.suppressedAsyncHydration) {
2164
- _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkGA6JM4L6cjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2164
+ _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F ${_chunkSIVK2SRRcjs.describeSuppressedAsyncHydration.call(void 0, layout.pattern, layout.fallbackReason)}`);
2165
2165
  }
2166
2166
  }
2167
2167
  if (isolatedMode === "analyze") {
@@ -2185,7 +2185,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2185
2185
  );
2186
2186
  if (metadata.suppressedAsyncHydration) {
2187
2187
  _chunk5QIKR7RRcjs.logger.warn(
2188
- `\u26A0\uFE0F ${_chunkGA6JM4L6cjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2188
+ `\u26A0\uFE0F ${_chunkSIVK2SRRcjs.describeSuppressedAsyncHydration.call(void 0, route.pattern, metadata.fallbackReason)}`
2189
2189
  );
2190
2190
  }
2191
2191
  if (metadata.shouldHydrate || metadata.hasIsolatedClientBoundaries || applicableClientLayouts.length > 0) {
@@ -2210,7 +2210,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2210
2210
  ...applicableClientLayouts.filter((layout) => layout.hasIsolatedClientBoundaries).flatMap((layout) => layout.isolatedBoundaries)
2211
2211
  ],
2212
2212
  // The server renders a server tree only below a hydrating layout.
2213
- ..._chunkGA6JM4L6cjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
2213
+ ..._chunkSIVK2SRRcjs.usesFarmServerTree.call(void 0, metadata) && applicableClientLayouts.some((layout) => layout.shouldHydrate) ? { serverTree: true } : {}
2214
2214
  });
2215
2215
  _chunk5QIKR7RRcjs.logger.info(`\u{1F4F1} Found hydratable route: ${route.pattern} -> ${route.modulePath}`);
2216
2216
  }
@@ -2246,7 +2246,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2246
2246
  }
2247
2247
  const clientRouteSlots = routeSlots.filter((slot) => {
2248
2248
  try {
2249
- return _chunkGA6JM4L6cjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2249
+ return _chunkSIVK2SRRcjs.getClientModuleMetadata.call(void 0, slot.modulePath, root).shouldHydrate;
2250
2250
  } catch (error) {
2251
2251
  _chunk5QIKR7RRcjs.logger.warn(`\u26A0\uFE0F Could not inspect route slot ${slot.modulePath}: ${error}`);
2252
2252
  return false;
@@ -2276,7 +2276,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2276
2276
  config.trailingSlash,
2277
2277
  _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations),
2278
2278
  config.basePath,
2279
- _chunkGA6JM4L6cjs.generateClientCachePersistenceCode.call(void 0, _chunkGA6JM4L6cjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2279
+ _chunkSIVK2SRRcjs.generateClientCachePersistenceCode.call(void 0, _chunkSIVK2SRRcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, config.cache)),
2280
2280
  adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0,
2281
2281
  _chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _59 => _59.experimental, 'optionalAccess', _60 => _60.serverComponents])) === "islands"
2282
2282
  );
@@ -2365,7 +2365,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2365
2365
  }
2366
2366
  },
2367
2367
  plugins: [
2368
- _chunkGA6JM4L6cjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2368
+ _chunkSIVK2SRRcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
2369
2369
  createFarmPrivateClientSourcemapsPlugin({
2370
2370
  outDir: _path2.default.join(_path2.default.dirname(outputDir), FARM_CLIENT_SOURCEMAPS_DIR)
2371
2371
  }),
@@ -2390,7 +2390,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2390
2390
  ...rendererVitePlugins,
2391
2391
  ...config.vite.plugins || [],
2392
2392
  farmServerOnlyEntriesPlugin(),
2393
- _chunkGA6JM4L6cjs.farmDocsClientConfigPlugin.call(void 0,
2393
+ _chunkSIVK2SRRcjs.farmDocsClientConfigPlugin.call(void 0,
2394
2394
  adapterOwnsDocsRuntime ? _chunkCY2ZQ5C6cjs.getFarmDocsAdapterConfigModule.call(void 0, config.docs) : void 0
2395
2395
  ),
2396
2396
  // Plugin to redirect @farm.js/core imports to client-only exports
@@ -2452,7 +2452,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2452
2452
  } : void 0,
2453
2453
  // Ensure React is bundled for client
2454
2454
  resolve: {
2455
- alias: _chunkGA6JM4L6cjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2455
+ alias: _chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
2456
2456
  dedupe: [...config.renderer.dedupe || []]
2457
2457
  },
2458
2458
  // Optimize dependencies - exclude server-side code from client bundle
@@ -2465,7 +2465,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
2465
2465
  ]
2466
2466
  }
2467
2467
  };
2468
- await viteBuild(_chunkGA6JM4L6cjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2468
+ await viteBuild(_chunkSIVK2SRRcjs.mergeFarmProductionViteConfig.call(void 0, clientViteConfig, config.vite));
2469
2469
  await mergeBuiltFontCss(outputDir);
2470
2470
  await validateClientBuildOutput(root, srcDir, outputDir);
2471
2471
  } finally {
@@ -3260,7 +3260,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3260
3260
  direction: {}
3261
3261
  }, plugins = [], renderer = _chunkPSV6XKPOcjs.REACT_RENDERER, publicRuntimeConfig = void 0, trailingSlash = false, integrationProviders = [], basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
3262
3262
  const toImportPath = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (targetPath) => targetPath.replace(/\\/g, "/"), "toImportPath");
3263
- const clientPluginEntry = _chunkGA6JM4L6cjs.generateFarmClientPluginEntryCode.call(void 0,
3263
+ const clientPluginEntry = _chunkSIVK2SRRcjs.generateFarmClientPluginEntryCode.call(void 0,
3264
3264
  plugins,
3265
3265
  root,
3266
3266
  srcDir,
@@ -3271,7 +3271,7 @@ function generateClientHydrationEntry(clientPages, layoutRoutes, clientRouteSlot
3271
3271
  import { createRoot, hydrateRoot } from "react-dom/client";` : appSetupPath ? `import React, { createRoot, hydrateRoot, configureApp as __farmConfigureApp } from ${JSON.stringify(renderer.client)};
3272
3272
  import __farmAppSetup from ${JSON.stringify(_chunk5QIKR7RRcjs.toPosixPath.call(void 0, appSetupPath))};
3273
3273
  __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot } from ${JSON.stringify(renderer.client)};`;
3274
- const providerClientCode = _chunkGA6JM4L6cjs.generateFarmIntegrationProviderClientCode.call(void 0,
3274
+ const providerClientCode = _chunkSIVK2SRRcjs.generateFarmIntegrationProviderClientCode.call(void 0,
3275
3275
  integrationProviders,
3276
3276
  root,
3277
3277
  _nullishCoalesce(renderer.componentExtensions, () => ( []))
@@ -3283,12 +3283,12 @@ __farmConfigureApp(__farmAppSetup);` : `import React, { createRoot, hydrateRoot
3283
3283
  const hydratingLayoutPatterns = layoutRoutes.filter((layout) => layout.shouldHydrate).map((layout) => layout.pattern);
3284
3284
  layoutRoutes.forEach((layout, index) => {
3285
3285
  const relativePath = toImportPath(layout.modulePath);
3286
- const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunkT44ECMEPcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
3286
+ const rendersOnClient = !layout.hasIsolatedClientBoundaries && hydratingLayoutPatterns.some((pattern) => _chunkKVN3YEFFcjs.layoutsCanCoverSamePage.call(void 0, layout.pattern, pattern));
3287
3287
  if (rendersOnClient) {
3288
3288
  layoutImportStatements.push(`import Layout${index} from "${relativePath}";`);
3289
3289
  }
3290
- const groupScope = _chunkXPSGGECFcjs.getRouteGroupScope.call(void 0, layout.pattern);
3291
- const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkXPSGGECFcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
3290
+ const groupScope = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, layout.pattern);
3291
+ const groupFields = groupScope ? `, urlPattern: ${JSON.stringify(_chunkUN4B2TXCcjs.stripRouteGroups.call(void 0, layout.pattern))}, groupScope: ${JSON.stringify(groupScope)}` : "";
3292
3292
  layoutRegistrations.push(
3293
3293
  ` { pattern: ${JSON.stringify(layout.pattern)}${groupFields}, Component: ${rendersOnClient ? `Layout${index}` : "null"}, shouldHydrate: ${JSON.stringify(layout.shouldHydrate)}, islandStrategy: ${JSON.stringify(layout.islandStrategy)} }`
3294
3294
  );
@@ -3791,7 +3791,7 @@ function hasHydratableLayout(pathname) {
3791
3791
  });
3792
3792
  }
3793
3793
 
3794
- ${_chunkGA6JM4L6cjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3794
+ ${_chunkSIVK2SRRcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
3795
3795
  // Wrap a page element with applicable layouts
3796
3796
  function wrapWithLayouts(pageElement, pathname, params) {
3797
3797
  const layouts = getApplicableLayouts(pathname);
@@ -4938,7 +4938,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4938
4938
  }
4939
4939
  const middlewareRoutes = await discoverMiddlewareRoutes(appDirs);
4940
4940
  const instrumentationPath = _chunkKCMTCM6Icjs.resolveFarmInstrumentationFile.call(void 0, root, config.srcDir || "src");
4941
- const notFoundPath = _chunkGA6JM4L6cjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4941
+ const notFoundPath = _chunkSIVK2SRRcjs.resolveFarmNotFoundComponentPath.call(void 0, config, appDirs);
4942
4942
  if (notFoundPath) _chunk5QIKR7RRcjs.logger.info(`\u{1F4CB} Found custom 404 page: ${notFoundPath}`);
4943
4943
  layoutRoutes.sort((a, b) => {
4944
4944
  const depthA = a.pattern.split("/").filter(Boolean).length;
@@ -4960,7 +4960,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
4960
4960
  );
4961
4961
  const hasObservabilityHandler = !!config.observability && typeof config.observability === "object" && "onEvent" in config.observability;
4962
4962
  const hasMdxComponentConfig = Boolean(_optionalChain([config, 'access', _67 => _67.mdx, 'optionalAccess', _68 => _68.components]));
4963
- const hasMiddlewareConfig = _chunkXPSGGECFcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
4963
+ const hasMiddlewareConfig = _chunkUN4B2TXCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
4964
4964
  const hasRouteContextConfig = _chunkLPE3ED4Rcjs.hasCustomFarmRouteContext.call(void 0, config);
4965
4965
  const hasServerRuntimePlugins = hasFarmServerRuntimePlugins(config);
4966
4966
  const hasPluginRoutes = hasFarmPluginRoutes(config);
@@ -5144,7 +5144,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
5144
5144
  __FARM_PUBLIC_ENV__: JSON.stringify(_optionalChain([config, 'access', _79 => _79.env, 'optionalAccess', _80 => _80.public]) || {})
5145
5145
  },
5146
5146
  plugins: [
5147
- _chunkGA6JM4L6cjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
5147
+ _chunkSIVK2SRRcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
5148
5148
  ...tailwindVitePlugin ? [tailwindVitePlugin] : [],
5149
5149
  ...rendererVitePlugins,
5150
5150
  ...config.vite.plugins || [],
@@ -5197,7 +5197,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
5197
5197
  resolve: {
5198
5198
  alias: [
5199
5199
  ...shouldAliasReactServerToWebBuild(config.renderer, preset) ? [createFarmReactWebServerAlias(hasReactDomEdgeServerBuild(root))] : [],
5200
- ...Object.entries(_chunkGA6JM4L6cjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
5200
+ ...Object.entries(_chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir)).map(
5201
5201
  ([find, replacement]) => ({ find, replacement })
5202
5202
  )
5203
5203
  ],
@@ -5205,7 +5205,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
5205
5205
  dedupe: [...config.renderer.dedupe || []]
5206
5206
  }
5207
5207
  };
5208
- await viteBuild(_chunkGA6JM4L6cjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
5208
+ await viteBuild(_chunkSIVK2SRRcjs.mergeFarmProductionViteConfig.call(void 0, serverViteConfig, config.vite));
5209
5209
  } finally {
5210
5210
  if (postcssConfigDir) {
5211
5211
  try {
@@ -5253,7 +5253,7 @@ function getFarmDocsGuardedPaths(config, middlewareRoutes) {
5253
5253
  config: { middleware: config.middleware, integrations: config.integrations },
5254
5254
  middlewareRoutes
5255
5255
  };
5256
- return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkXPSGGECFcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
5256
+ return _chunkMY5PZYADcjs.discoverFarmDocsPages.call(void 0, contentDir, config.docs).flatMap((page) => [page.href, _chunkMY5PZYADcjs.getFarmDocsMarkdownPath.call(void 0, page.href)]).filter((pathname) => _chunkUN4B2TXCcjs.farmPathGuardCoversPage.call(void 0, guards, pathname));
5257
5257
  }
5258
5258
  _chunkS3JO3N4Hcjs.__name.call(void 0, getFarmDocsGuardedPaths, "getFarmDocsGuardedPaths");
5259
5259
  function getFarmAppOwnedDocsEnginePaths(agent, applicationMetadataRoutes) {
@@ -5655,7 +5655,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5655
5655
  const hasGeneratedMetadataImages = metadataImageRoutes.some(
5656
5656
  (image) => image.sourceType === "module"
5657
5657
  );
5658
- const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkXPSGGECFcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
5658
+ const hasMiddlewareRuntime = middlewareRoutes.length > 0 || _chunkUN4B2TXCcjs.hasFarmMiddlewareConfig.call(void 0, config.middleware);
5659
5659
  const farmDocsFontAssets = _optionalChain([config, 'access', _108 => _108.docs, 'optionalAccess', _109 => _109.enabled]) ? _chunkHREOKQWTcjs.toFarmDocsPublicFontAssets.call(void 0, _chunkHREOKQWTcjs.resolveFarmDocsFontAssets.call(void 0, config.root)) : [];
5660
5660
  const integrationProviders = _chunkB6XAA7V6cjs.getIntegrationProviders.call(void 0, config.integrations);
5661
5661
  const renderedIntegrationProviders = integrationProviders.filter(
@@ -5666,7 +5666,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5666
5666
  `Integration provider components are not supported by the "${config.renderer.name}" renderer.`
5667
5667
  );
5668
5668
  }
5669
- const providerServerModules = _chunkGA6JM4L6cjs.generateFarmIntegrationProviderServerModules.call(void 0,
5669
+ const providerServerModules = _chunkSIVK2SRRcjs.generateFarmIntegrationProviderServerModules.call(void 0,
5670
5670
  renderedIntegrationProviders,
5671
5671
  config.root,
5672
5672
  _nullishCoalesce(config.renderer.componentExtensions, () => ( []))
@@ -5686,14 +5686,14 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5686
5686
  const unsupportedIntegrationProvider = renderedIntegrationProviders.find(
5687
5687
  (provider) => provider.supportsIsolatedHydration !== true
5688
5688
  );
5689
- const isolatedHydrationMode = _chunkGA6JM4L6cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5689
+ const isolatedHydrationMode = _chunkSIVK2SRRcjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
5690
5690
  _optionalChain([config, 'access', _112 => _112.experimental, 'optionalAccess', _113 => _113.isolatedClientHydration]),
5691
5691
  {
5692
5692
  serverComponents: _chunkPDU4P2ICcjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'access', _114 => _114.experimental, 'optionalAccess', _115 => _115.serverComponents])) === "rsc",
5693
5693
  hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
5694
5694
  }
5695
5695
  );
5696
- const hydrationPlanOptions = _chunkGA6JM4L6cjs.getFarmClientHydrationPlanOptions.call(void 0,
5696
+ const hydrationPlanOptions = _chunkSIVK2SRRcjs.getFarmClientHydrationPlanOptions.call(void 0,
5697
5697
  config.renderer,
5698
5698
  Boolean(unsupportedIntegrationProvider)
5699
5699
  );
@@ -5711,7 +5711,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5711
5711
  hydrationPlanOptions
5712
5712
  )
5713
5713
  }));
5714
- const markdownPagePlan = _chunkGA6JM4L6cjs.createMarkdownPageHydrationPlanner.call(void 0,
5714
+ const markdownPagePlan = _chunkSIVK2SRRcjs.createMarkdownPageHydrationPlanner.call(void 0,
5715
5715
  _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath.call(void 0, _chunkOHY2ZWUGcjs.resolveMdxConfig.call(void 0, config.mdx), config.root),
5716
5716
  config.root,
5717
5717
  isolatedHydrationMode,
@@ -5729,7 +5729,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5729
5729
  )
5730
5730
  ])
5731
5731
  );
5732
- _chunkGA6JM4L6cjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5732
+ _chunkSIVK2SRRcjs.enforceFarmIsolatedHydrationRouteBudget.call(void 0,
5733
5733
  layoutHydrationPlans.map((layout) => ({
5734
5734
  pattern: layout.pattern,
5735
5735
  depth: layout.pattern.split("/").filter(Boolean).length,
@@ -5738,10 +5738,10 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5738
5738
  pageRoutes.map((route) => ({
5739
5739
  // Compared by directory so a grouped layout applies only inside its group.
5740
5740
  pattern: _nullishCoalesce(route.directory, () => ( route.pattern)),
5741
- depth: _chunkXPSGGECFcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
5741
+ depth: _chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, _nullishCoalesce(route.directory, () => ( route.pattern))),
5742
5742
  metadata: pageHydrationPlans.get(route.modulePath)
5743
5743
  })),
5744
- _chunkXPSGGECFcjs.routeBoundaryCoversDirectory
5744
+ _chunkUN4B2TXCcjs.routeBoundaryCoversDirectory
5745
5745
  );
5746
5746
  const providerServerImports = [
5747
5747
  providerServerModules.hasClerkProvider ? `import { ClerkProvider as FarmClerkProvider } from "@clerk/react";` : "",
@@ -5803,7 +5803,7 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5803
5803
  module: ${varName},
5804
5804
  shouldHydrate: ${JSON.stringify(clientMetadata.shouldHydrate)},${clientMetadata.shouldHydrate ? `
5805
5805
  clientModule: ${JSON.stringify(_chunk5QIKR7RRcjs.toViteModuleId.call(void 0, route.modulePath, config.root))},` : ""}
5806
- islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkGA6JM4L6cjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
5806
+ islandStrategy: ${JSON.stringify(clientMetadata.islandStrategy)},${_chunkSIVK2SRRcjs.usesFarmServerTree.call(void 0, clientMetadata) ? "\n serverTree: true," : ""}${renderingDirective ? `
5807
5807
  rendering: ${JSON.stringify(renderingDirective)},` : ""}
5808
5808
  ${route.source !== void 0 ? `markdownSource: {
5809
5809
  source: ${JSON.stringify(route.source)},
@@ -5860,12 +5860,12 @@ function renderFarmRouteServerTree(element, extra) { return element; }`;
5860
5860
  errorImports.push(
5861
5861
  `import * as ${varName} from ${toVirtualEntryImportSpecifier(errorRoute.modulePath)};`
5862
5862
  );
5863
- const groupScope = _chunkXPSGGECFcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
5863
+ const groupScope = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, errorRoute.pattern);
5864
5864
  errorRegistrations.push(`
5865
5865
  {
5866
- pattern: ${JSON.stringify(_chunkXPSGGECFcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
5866
+ pattern: ${JSON.stringify(_chunkUN4B2TXCcjs.stripRouteGroups.call(void 0, errorRoute.pattern))},${groupScope ? `
5867
5867
  groupScope: ${JSON.stringify(groupScope)},
5868
- directoryDepth: ${_chunkXPSGGECFcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
5868
+ directoryDepth: ${_chunkUN4B2TXCcjs.getRouteDirectoryDepth.call(void 0, errorRoute.pattern)},` : ""}
5869
5869
  module: ${varName},
5870
5870
  }`);
5871
5871
  });
@@ -6061,7 +6061,7 @@ import { fileURLToPath as farmDocsFileURLToPath } from "node:url";` : "";
6061
6061
  const integrationRuntimeImport = integrationRuntimeExports.length ? `import { ${integrationRuntimeExports.join(", ")} } from "@farm.js/core/integrations";` : "";
6062
6062
  const instrumentationImport = instrumentationPath ? `import * as FarmInstrumentationModule from ${toVirtualEntryImportSpecifier(instrumentationPath)};` : "";
6063
6063
  const nativeAuth = generateNativeAuthIntegrationSource(config.auth);
6064
- const nativeMCP = _chunkT44ECMEPcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
6064
+ const nativeMCP = _chunkKVN3YEFFcjs.generateNativeMCPPluginSource.call(void 0, config.mcp);
6065
6065
  const integrationImports = `
6066
6066
  ${configModulePath ? `import * as FarmUserConfigModule from ${toVirtualEntryImportSpecifier(configModulePath)};` : ""}
6067
6067
  ${layerConfigImports}
@@ -6069,7 +6069,7 @@ ${integrationRuntimeImport}
6069
6069
  ${nativeAuth.importSource}
6070
6070
  ${nativeMCP.importSource}
6071
6071
  `;
6072
- const imageRuntime = _chunkGA6JM4L6cjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
6072
+ const imageRuntime = _chunkSIVK2SRRcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
6073
6073
  const imageRuntimeImport = imageRuntime === "none" ? "" : `import { _withFarmImageSourceClientAddress, createCloudflareImageTransformer, createFarmImageHandler } from "@farm.js/core/image/server";`;
6074
6074
  const imageNodeRuntimeImport = imageRuntime === "node" ? `import { createNodeImageFetcher, createNodeImageUrlValidator, createSharpImageTransformer } from "@farm.js/core/image/sharp";` : "";
6075
6075
  const apiHandlerCode = apiRoutes.length > 0 ? `
@@ -6248,7 +6248,7 @@ const farmResolvedRuntimeConfig = Object.assign({}, ...farmRuntimeConfigs);
6248
6248
 
6249
6249
  function FarmDefault404Page() {
6250
6250
  return React.createElement(React.Fragment, null,
6251
- React.createElement("style", null, ${JSON.stringify(_chunkGA6JM4L6cjs.DEFAULT_NOT_FOUND_STYLES)}),
6251
+ React.createElement("style", null, ${JSON.stringify(_chunkSIVK2SRRcjs.DEFAULT_NOT_FOUND_STYLES)}),
6252
6252
  React.createElement("main", {
6253
6253
  className: "farm-default-not-found",
6254
6254
  "aria-labelledby": "farm-default-not-found-title",
@@ -6551,12 +6551,12 @@ function fetchFarmInnerRequest(request, context) {
6551
6551
  }
6552
6552
  const farmLocalAPIBasePath = ${JSON.stringify(_chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath.call(void 0, config.api))};
6553
6553
  const farmOpenAPIReference = ${JSON.stringify(openAPIReference)};
6554
- ${_optionalChain([config, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkXPSGGECFcjs.resolveFarmApiCatalogInput.call(void 0, config))};
6554
+ ${_optionalChain([config, 'access', _147 => _147.agent, 'optionalAccess', _148 => _148.apiCatalog]) ? `const farmApiCatalogInput = ${JSON.stringify(_chunkUN4B2TXCcjs.resolveFarmApiCatalogInput.call(void 0, config))};
6555
6555
  ` : ""}${_optionalChain([config, 'access', _149 => _149.agent, 'optionalAccess', _150 => _150.manifest]) !== false ? `const farmAppManifestInput = ${JSON.stringify(
6556
- _chunkXPSGGECFcjs.resolveFarmAppManifestInput.call(void 0, config, {
6556
+ _chunkUN4B2TXCcjs.resolveFarmAppManifestInput.call(void 0, config, {
6557
6557
  build: config.deploymentId,
6558
- packages: _chunkGA6JM4L6cjs.resolveFarmAppPackages.call(void 0, config.root),
6559
- webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkGA6JM4L6cjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
6558
+ packages: _chunkSIVK2SRRcjs.resolveFarmAppPackages.call(void 0, config.root),
6559
+ webmcpTools: config.plugins.some(({ name }) => name === "farm:webmcp") ? _chunkSIVK2SRRcjs.collectFarmWebMCPTools.call(void 0, config.root, config.srcDir) : []
6560
6560
  })
6561
6561
  )};
6562
6562
  ${servesDefaultMCP ? "farmAppManifestInput.defaultMCP = getFarmDefaultMCPServer;\n" : ""}// A guard written for an MCP server's path keeps its tools out of the public view.
@@ -7031,7 +7031,7 @@ function peelFarmDocumentPrefix(markup) {
7031
7031
  let inner = markup.replace(/^\\s+/, "");
7032
7032
  let hoisted = "";
7033
7033
  const wrapper = /^<div\\b[^>]*style=["']display\\s*:\\s*contents;?\\s*["'][^>]*>/i;
7034
- const hoistable = /${_chunkXPSGGECFcjs.HOISTED_HEAD_ELEMENT.source}/i;
7034
+ const hoistable = /${_chunkUN4B2TXCcjs.HOISTED_HEAD_ELEMENT.source}/i;
7035
7035
  let match;
7036
7036
  while ((match = wrapper.exec(inner) || hoistable.exec(inner))) {
7037
7037
  if (!/^<div/i.test(match[0])) hoisted += match[0];
@@ -7562,7 +7562,7 @@ function createFarmAgentRobotsResponse(request) {
7562
7562
  // a route guard.
7563
7563
  const farmAgentGuardedPages = new Set(${JSON.stringify(
7564
7564
  pageRoutes.map((route) => route.pattern).filter(
7565
- (pattern) => !pattern.includes("[") && _chunkXPSGGECFcjs.farmPathGuardCoversPage.call(void 0,
7565
+ (pattern) => !pattern.includes("[") && _chunkUN4B2TXCcjs.farmPathGuardCoversPage.call(void 0,
7566
7566
  {
7567
7567
  config: { middleware: config.middleware, integrations: config.integrations },
7568
7568
  middlewareRoutes
@@ -7609,7 +7609,7 @@ ${servesDefaultMCP ? `// agent.mcp: the default read-only MCP server at /mcp, as
7609
7609
  // aside for a page route that answers /mcp and for any MCP server published or
7610
7610
  // registered at runtime, such as the docs engine's.
7611
7611
  const farmDefaultMCPServer = ${JSON.stringify(
7612
- _chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunk3YJMBQ27cjs.FARM_VERSION)
7612
+ _chunkBMOBTMDRcjs.createFarmDefaultMCPServer.call(void 0, readFarmAppPackageIdentity(config.root), _chunk2DZOABRKcjs.FARM_VERSION)
7613
7613
  )};
7614
7614
  let farmDefaultMCPRouteFree;
7615
7615
  function getFarmDefaultMCPServer() {
@@ -8646,7 +8646,7 @@ ${hasServerRuntimeIntegrations ? `
8646
8646
  // agent.manifest: /.well-known/farmjs.json (and 0.1.34's /.well-known/farmjs), the app's
8647
8647
  // public manifest, the same document for every request.
8648
8648
  if (
8649
- [${JSON.stringify(_chunkXPSGGECFcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkXPSGGECFcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
8649
+ [${JSON.stringify(_chunkUN4B2TXCcjs.FARM_APP_MANIFEST_PATH)}, ${JSON.stringify(_chunkUN4B2TXCcjs.FARM_APP_MANIFEST_LEGACY_PATH)}].includes(
8650
8650
  normalizeRuntimePath(routePathname),
8651
8651
  )
8652
8652
  ) {
@@ -8658,7 +8658,7 @@ ${hasServerRuntimeIntegrations ? `
8658
8658
  ` : ""}
8659
8659
  ${_optionalChain([config, 'access', _167 => _167.agent, 'optionalAccess', _168 => _168.apiCatalog]) ? `
8660
8660
  // agent.apiCatalog: list the OpenAPI and MCP surfaces at the RFC 9727 path.
8661
- if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkXPSGGECFcjs.FARM_API_CATALOG_PATH)}) {
8661
+ if (normalizeRuntimePath(routePathname) === ${JSON.stringify(_chunkUN4B2TXCcjs.FARM_API_CATALOG_PATH)}) {
8662
8662
  return applyProductionMiddlewareHeaders(
8663
8663
  createFarmApiCatalogResponse(request.method, farmApiCatalogInput, request),
8664
8664
  middlewareHeaders,
@@ -10109,8 +10109,8 @@ function getPhysicalPrerenderBypassReason(options) {
10109
10109
  if (rewriteSources.some((source) => middlewarePatternMatches(source, pathname))) {
10110
10110
  return "rewrite";
10111
10111
  }
10112
- if (_chunkXPSGGECFcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
10113
- if (_chunkXPSGGECFcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
10112
+ if (_chunkUN4B2TXCcjs.appMiddlewareMayHandlePath.call(void 0, middlewareRoutes, pathname)) return "app middleware";
10113
+ if (_chunkUN4B2TXCcjs.configMiddlewareMayHandlePath.call(void 0, config.middleware, pathname)) return "configured middleware";
10114
10114
  if (_chunkLPE3ED4Rcjs.hasCustomFarmRouteContext.call(void 0, config)) return "request context";
10115
10115
  if (farmServerRuntimePluginsMayHandlePath(config, pathname)) return "server runtime plugin";
10116
10116
  const manifestEntry = getManifestPageEntry(routeRuntimeManifest, pathname);
@@ -10149,7 +10149,7 @@ async function buildNitroUniversal(config, routeManager, apiRouteManager, server
10149
10149
  const outputDir = _chunkLPE3ED4Rcjs.resolveDeployOutputPath.call(void 0, root, config.deploy.outputDir);
10150
10150
  const runtimeServerOutputDir = isVercel ? _path2.default.join(outputDir, "functions", "__nitro.func") : _path2.default.join(outputDir, "server");
10151
10151
  const ssrOutputDir = _path2.default.join(root, distDir, "ssr");
10152
- const imageRuntime = _chunkGA6JM4L6cjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
10152
+ const imageRuntime = _chunkSIVK2SRRcjs.resolveFarmImageServerRuntime.call(void 0, config.images, preset);
10153
10153
  const hasGeneratedMetadataImages = Array.from(routeManager.getMetadataImages().values()).some(
10154
10154
  (image) => image.sourceType === "module"
10155
10155
  );
@@ -11011,7 +11011,7 @@ async function stageSharpRuntime(config, root, distDir, fs4, preset) {
11011
11011
  try {
11012
11012
  await copyPackage("sharp", sharpRequire);
11013
11013
  if (!copiedPackages.has("sharp")) {
11014
- throw new Error(`Farm image optimization requires sharp. ${_chunkGA6JM4L6cjs.SHARP_INSTALL_HINT}`);
11014
+ throw new Error(`Farm image optimization requires sharp. ${_chunkSIVK2SRRcjs.SHARP_INSTALL_HINT}`);
11015
11015
  }
11016
11016
  } catch (error) {
11017
11017
  await fs4.rm(stageDir, { recursive: true, force: true });
@@ -11312,7 +11312,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
11312
11312
  };
11313
11313
  config = {
11314
11314
  ...config,
11315
- images: _chunkGA6JM4L6cjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
11315
+ images: _chunkSIVK2SRRcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, {
11316
11316
  root: targets.root,
11317
11317
  preset: targets.preset
11318
11318
  })
@@ -11340,7 +11340,7 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
11340
11340
  root,
11341
11341
  rendererBuild.signal
11342
11342
  );
11343
- const farmApp = _chunkGA6JM4L6cjs.createFarmApp.call(void 0, config, projectModuleServer);
11343
+ const farmApp = _chunkSIVK2SRRcjs.createFarmApp.call(void 0, config, projectModuleServer);
11344
11344
  await farmApp.initialize();
11345
11345
  const routeManager = farmApp.getRouteManager();
11346
11346
  const serverRenderer = farmApp.getServerRenderer();
@@ -11447,7 +11447,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
11447
11447
  ssr: true,
11448
11448
  buildLifetime
11449
11449
  });
11450
- const viteConfig = _chunkGA6JM4L6cjs.mergeFarmViteConfig.call(void 0,
11450
+ const viteConfig = _chunkSIVK2SRRcjs.mergeFarmViteConfig.call(void 0,
11451
11451
  {
11452
11452
  root,
11453
11453
  appType: "custom",
@@ -11459,7 +11459,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
11459
11459
  },
11460
11460
  plugins: [
11461
11461
  ...rendererVitePlugins,
11462
- _chunkGA6JM4L6cjs.farmFontImportsPlugin.call(void 0, {
11462
+ _chunkSIVK2SRRcjs.farmFontImportsPlugin.call(void 0, {
11463
11463
  root,
11464
11464
  basePath: config.basePath,
11465
11465
  publicDir: config.publicDir
@@ -11471,7 +11471,7 @@ async function createProjectModuleServer(createViteServer, config, root, buildLi
11471
11471
  hmr: false
11472
11472
  },
11473
11473
  resolve: {
11474
- alias: _chunkGA6JM4L6cjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
11474
+ alias: _chunkSIVK2SRRcjs.createFarmSourceAlias.call(void 0, root, config.srcDir),
11475
11475
  dedupe: [...config.renderer.dedupe || []]
11476
11476
  },
11477
11477
  optimizeDeps: {
@@ -25,7 +25,7 @@ import {
25
25
  renderFarmLocaleAlternateLinks,
26
26
  resolveDefaultErrorStatus,
27
27
  routeBoundaryCoversDirectory
28
- } from "./chunk-YFLBG2W3.mjs";
28
+ } from "./chunk-X6YOWNDZ.mjs";
29
29
  import {
30
30
  FARM_DEFAULT_MCP_PATH,
31
31
  collectFarmDefaultMCPPages,
@@ -244,7 +244,7 @@ import {
244
244
  } from "./chunk-P7XDC7UJ.mjs";
245
245
  import {
246
246
  FARM_VERSION
247
- } from "./chunk-R4J2UOV4.mjs";
247
+ } from "./chunk-FHQZJJQR.mjs";
248
248
  import {
249
249
  resolveFarmTrailingSlashRedirect,
250
250
  setFarmTrailingSlashPreference
@@ -7,7 +7,7 @@ var _chunkPCOTGFSMcjs = require('./chunk-PCOTGFSM.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkXPSGGECFcjs = require('./chunk-XPSGGECF.cjs');
10
+ var _chunkUN4B2TXCcjs = require('./chunk-UN4B2TXC.cjs');
11
11
 
12
12
 
13
13
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -59,7 +59,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
59
59
  return {
60
60
  layout,
61
61
  segments: segments.length === 0 ? null : segments,
62
- groupScope: _chunkXPSGGECFcjs.getRouteGroupScope.call(void 0, layout.pattern)
62
+ groupScope: _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, layout.pattern)
63
63
  };
64
64
  });
65
65
  return (pathname, routeDirectory) => {
@@ -73,7 +73,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
73
73
  }
74
74
  if (groupScope !== null) {
75
75
  if (directory === void 0) directory = _nullishCoalesce(_optionalChain([resolveRouteDirectory, 'optionalCall', _2 => _2(pathname)]), () => ( null));
76
- if (!_chunkXPSGGECFcjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
76
+ if (!_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
77
77
  }
78
78
  applicable.push(layout);
79
79
  }
@@ -82,9 +82,9 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
82
82
  }
83
83
  _chunkS3JO3N4Hcjs.__name.call(void 0, createFarmLayoutSelector, "createFarmLayoutSelector");
84
84
  function layoutsCanCoverSamePage(a, b) {
85
- const scopeA = _chunkXPSGGECFcjs.getRouteGroupScope.call(void 0, a);
86
- const scopeB = _chunkXPSGGECFcjs.getRouteGroupScope.call(void 0, b);
87
- if (scopeA !== null && scopeB !== null && !_chunkXPSGGECFcjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkXPSGGECFcjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
85
+ const scopeA = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, a);
86
+ const scopeB = _chunkUN4B2TXCcjs.getRouteGroupScope.call(void 0, b);
87
+ if (scopeA !== null && scopeB !== null && !_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkUN4B2TXCcjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
88
88
  return false;
89
89
  }
90
90
  const segmentsA = a === "/" ? [] : _chunkPCOTGFSMcjs.parseRoutePattern.call(void 0, a);