qalita 2.5.4__py3-none-any.whl → 2.6.1__py3-none-any.whl

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 (213) hide show
  1. qalita/_frontend/.next/static/_0oyfpC7N2IGDMa04TT9R/_clientMiddlewareManifest.json +6 -0
  2. qalita/_frontend/.next/static/chunks/236f7e5abd6f09ff.js +4 -0
  3. qalita/_frontend/.next/static/chunks/30ea11065999f7ac.js +1 -0
  4. qalita/_frontend/.next/static/chunks/4dd28bc3f722184a.js +2 -0
  5. qalita/_frontend/.next/static/chunks/711d597b816a80c1.js +1 -0
  6. qalita/_frontend/.next/static/chunks/7340adf74ff47ec0.js +1 -0
  7. qalita/_frontend/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  8. qalita/_frontend/.next/static/chunks/{e393fec0d8ba175d.js → ecf559101be0ae12.js} +3 -3
  9. qalita/_frontend/.next/static/chunks/turbopack-25186fc8e1264445.js +4 -0
  10. qalita/_frontend/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  11. qalita/_frontend/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  12. qalita/_frontend/node_modules/@next/env/package.json +4 -4
  13. qalita/_frontend/node_modules/next/dist/build/analyze/index.js +242 -0
  14. qalita/_frontend/node_modules/next/dist/build/define-env.js +22 -13
  15. qalita/_frontend/node_modules/next/dist/build/entries.js +5 -5
  16. qalita/_frontend/node_modules/next/dist/build/generate-routes-manifest.js +91 -0
  17. qalita/_frontend/node_modules/next/dist/build/index.js +172 -223
  18. qalita/_frontend/node_modules/next/dist/build/output/log.js +4 -7
  19. qalita/_frontend/node_modules/next/dist/build/segment-config/app/app-segments.js +23 -99
  20. qalita/_frontend/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +3 -3
  21. qalita/_frontend/node_modules/next/dist/build/spinner.js +3 -3
  22. qalita/_frontend/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +137 -0
  23. qalita/_frontend/node_modules/next/dist/build/static-paths/app.js +69 -210
  24. qalita/_frontend/node_modules/next/dist/build/static-paths/utils.js +83 -11
  25. qalita/_frontend/node_modules/next/dist/build/swc/index.js +10 -6
  26. qalita/_frontend/node_modules/next/dist/build/templates/app-page.js +21 -14
  27. qalita/_frontend/node_modules/next/dist/build/templates/app-route.js +8 -10
  28. qalita/_frontend/node_modules/next/dist/build/templates/edge-app-route.js +7 -10
  29. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr-app.js +16 -20
  30. qalita/_frontend/node_modules/next/dist/build/templates/edge-ssr.js +20 -14
  31. qalita/_frontend/node_modules/next/dist/build/templates/edge-wrapper.js +24 -0
  32. qalita/_frontend/node_modules/next/dist/build/templates/middleware.js +7 -6
  33. qalita/_frontend/node_modules/next/dist/build/templates/pages-edge-api.js +3 -2
  34. qalita/_frontend/node_modules/next/dist/build/turbopack-analyze/index.js +116 -0
  35. qalita/_frontend/node_modules/next/dist/build/turbopack-build/impl.js +2 -1
  36. qalita/_frontend/node_modules/next/dist/build/type-check.js +7 -8
  37. qalita/_frontend/node_modules/next/dist/build/utils.js +45 -4
  38. qalita/_frontend/node_modules/next/dist/build/validate-app-paths.js +242 -0
  39. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js +20 -2
  40. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js +2 -5
  41. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js +4 -11
  42. qalita/_frontend/node_modules/next/dist/build/webpack/loaders/next-root-params-loader.js +1 -1
  43. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +1 -1
  44. qalita/_frontend/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +3 -0
  45. qalita/_frontend/node_modules/next/dist/build/webpack-build/impl.js +1 -0
  46. qalita/_frontend/node_modules/next/dist/build/webpack-config.js +35 -3
  47. qalita/_frontend/node_modules/next/dist/cli/next-test.js +3 -5
  48. qalita/_frontend/node_modules/next/dist/client/components/app-router-headers.js +5 -0
  49. qalita/_frontend/node_modules/next/dist/client/components/app-router-instance.js +3 -11
  50. qalita/_frontend/node_modules/next/dist/client/components/app-router.js +8 -28
  51. qalita/_frontend/node_modules/next/dist/client/components/navigation-devtools.js +5 -7
  52. qalita/_frontend/node_modules/next/dist/client/components/navigation.js +4 -3
  53. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +3 -22
  54. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +6 -18
  55. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/ppr-navigations.js +844 -590
  56. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +4 -76
  57. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +21 -18
  58. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +48 -85
  59. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +25 -10
  60. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +126 -113
  61. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +30 -39
  62. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -1
  63. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -2
  64. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache-map.js +13 -18
  65. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/cache.js +27 -14
  66. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/lru.js +3 -1
  67. qalita/_frontend/node_modules/next/dist/client/components/segment-cache/navigation.js +176 -133
  68. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +12 -12
  69. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +12 -12
  70. qalita/_frontend/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +3 -3
  71. qalita/_frontend/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
  72. qalita/_frontend/node_modules/next/dist/compiled/react-is/package.json +1 -1
  73. qalita/_frontend/node_modules/next/dist/lib/build-custom-route.js +4 -4
  74. qalita/_frontend/node_modules/next/dist/lib/constants.js +0 -5
  75. qalita/_frontend/node_modules/next/dist/lib/default-transpiled-packages.json +1 -0
  76. qalita/_frontend/node_modules/next/dist/lib/generate-interception-routes-rewrites.js +0 -1
  77. qalita/_frontend/node_modules/next/dist/lib/helpers/get-npx-command.js +3 -3
  78. qalita/_frontend/node_modules/next/dist/lib/inline-static-env.js +1 -1
  79. qalita/_frontend/node_modules/next/dist/lib/known-edge-safe-packages.json +1 -0
  80. qalita/_frontend/node_modules/next/dist/lib/metadata/metadata.js +17 -11
  81. qalita/_frontend/node_modules/next/dist/lib/needs-experimental-react.js +2 -2
  82. qalita/_frontend/node_modules/next/dist/lib/resolve-build-paths.js +44 -76
  83. qalita/_frontend/node_modules/next/dist/lib/server-external-packages.jsonc +103 -0
  84. qalita/_frontend/node_modules/next/dist/lib/static-env.js +6 -6
  85. qalita/_frontend/node_modules/next/dist/lib/turbopack-warning.js +3 -5
  86. qalita/_frontend/node_modules/next/dist/lib/typescript/runTypeCheck.js +61 -5
  87. qalita/_frontend/node_modules/next/dist/lib/typescript/type-paths.js +56 -0
  88. qalita/_frontend/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +6 -17
  89. qalita/_frontend/node_modules/next/dist/lib/verify-typescript-setup.js +10 -2
  90. qalita/_frontend/node_modules/next/dist/lib/worker.js +17 -9
  91. qalita/_frontend/node_modules/next/dist/server/app-render/action-handler.js +113 -77
  92. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +36 -15
  93. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-render-utils.js +36 -15
  94. qalita/_frontend/node_modules/next/dist/server/app-render/app-render-scheduling.js +188 -0
  95. qalita/_frontend/node_modules/next/dist/server/app-render/app-render.js +804 -748
  96. qalita/_frontend/node_modules/next/dist/server/app-render/collect-segment-data.js +8 -2
  97. qalita/_frontend/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +1 -1
  98. qalita/_frontend/node_modules/next/dist/server/app-render/create-error-handler.js +42 -75
  99. qalita/_frontend/node_modules/next/dist/server/app-render/dynamic-rendering.js +127 -14
  100. qalita/_frontend/node_modules/next/dist/server/app-render/encryption-utils.js +3 -108
  101. qalita/_frontend/node_modules/next/dist/server/app-render/encryption.js +4 -3
  102. qalita/_frontend/node_modules/next/dist/server/app-render/flight-render-result.js +3 -2
  103. qalita/_frontend/node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js +9 -8
  104. qalita/_frontend/node_modules/next/dist/server/app-render/get-layer-assets.js +1 -1
  105. qalita/_frontend/node_modules/next/dist/server/app-render/manifests-singleton.js +257 -0
  106. qalita/_frontend/node_modules/next/dist/server/app-render/prospective-render-utils.js +25 -8
  107. qalita/_frontend/node_modules/next/dist/server/app-render/staged-rendering.js +161 -15
  108. qalita/_frontend/node_modules/next/dist/server/app-render/use-flight-response.js +67 -20
  109. qalita/_frontend/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +2 -2
  110. qalita/_frontend/node_modules/next/dist/server/async-storage/work-store.js +2 -1
  111. qalita/_frontend/node_modules/next/dist/server/base-server.js +32 -23
  112. qalita/_frontend/node_modules/next/dist/server/capsize-font-metrics.json +181516 -0
  113. qalita/_frontend/node_modules/next/dist/server/config-schema.js +8 -1
  114. qalita/_frontend/node_modules/next/dist/server/config-shared.js +83 -2
  115. qalita/_frontend/node_modules/next/dist/server/config.js +24 -17
  116. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-rspack.js +171 -0
  117. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +37 -25
  118. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-types.js +1 -0
  119. qalita/_frontend/node_modules/next/dist/server/dev/hot-reloader-webpack.js +62 -57
  120. qalita/_frontend/node_modules/next/dist/server/dev/log-requests.js +11 -3
  121. qalita/_frontend/node_modules/next/dist/server/dev/messages.js +10 -0
  122. qalita/_frontend/node_modules/next/dist/server/dev/serialized-errors.js +67 -0
  123. qalita/_frontend/node_modules/next/dist/server/dev/static-paths-worker.js +10 -0
  124. qalita/_frontend/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  125. qalita/_frontend/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +2 -2
  126. qalita/_frontend/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -10
  127. qalita/_frontend/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +4 -4
  128. qalita/_frontend/node_modules/next/dist/server/lib/lazy-result.js +1 -1
  129. qalita/_frontend/node_modules/next/dist/server/lib/patch-fetch.js +9 -9
  130. qalita/_frontend/node_modules/next/dist/server/lib/router-server.js +43 -29
  131. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/build-prefetch-segment-data-route.js +0 -21
  132. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/filesystem.js +2 -7
  133. qalita/_frontend/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +8 -4
  134. qalita/_frontend/node_modules/next/dist/server/lib/start-server.js +3 -3
  135. qalita/_frontend/node_modules/next/dist/server/lib/trace/tracer.js +4 -0
  136. qalita/_frontend/node_modules/next/dist/server/load-components.js +3 -9
  137. qalita/_frontend/node_modules/next/dist/server/next-server.js +19 -18
  138. qalita/_frontend/node_modules/next/dist/server/next.js +1 -1
  139. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +570 -0
  140. qalita/_frontend/node_modules/next/dist/server/node-environment-extensions/utils.js +60 -3
  141. qalita/_frontend/node_modules/next/dist/server/node-environment.js +1 -0
  142. qalita/_frontend/node_modules/next/dist/server/patch-error-inspect.js +7 -4
  143. qalita/_frontend/node_modules/next/dist/server/request/fallback-params.js +23 -66
  144. qalita/_frontend/node_modules/next/dist/server/route-modules/app-route/module.js +2 -2
  145. qalita/_frontend/node_modules/next/dist/server/route-modules/pages/pages-handler.js +6 -3
  146. qalita/_frontend/node_modules/next/dist/server/route-modules/route-module.js +79 -18
  147. qalita/_frontend/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +28 -4
  148. qalita/_frontend/node_modules/next/dist/server/typescript/rules/config.js +50 -6
  149. qalita/_frontend/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +68 -23
  150. qalita/_frontend/node_modules/next/dist/server/web/edge-route-module-wrapper.js +7 -5
  151. qalita/_frontend/node_modules/next/dist/server/web/sandbox/context.js +8 -9
  152. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +2 -1
  153. qalita/_frontend/node_modules/next/dist/server/web/spec-extension/revalidate.js +7 -3
  154. qalita/_frontend/node_modules/next/dist/shared/lib/action-revalidation-kind.js +31 -0
  155. qalita/_frontend/node_modules/next/dist/shared/lib/constants.js +6 -1
  156. qalita/_frontend/node_modules/next/dist/shared/lib/deployment-id.js +36 -0
  157. qalita/_frontend/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  158. qalita/_frontend/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +5 -0
  159. qalita/_frontend/node_modules/next/dist/shared/lib/router/routes/app.js +122 -0
  160. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +20 -49
  161. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +6 -6
  162. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +33 -0
  163. qalita/_frontend/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +116 -0
  164. qalita/_frontend/node_modules/next/dist/shared/lib/segment-cache/output-export-prefetch-encoding.js +3 -24
  165. qalita/_frontend/node_modules/next/dist/shared/lib/segment.js +5 -0
  166. qalita/_frontend/node_modules/next/dist/shared/lib/turbopack/utils.js +6 -5
  167. qalita/_frontend/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  168. qalita/_frontend/node_modules/next/dist/telemetry/events/build.js +11 -0
  169. qalita/_frontend/node_modules/next/dist/telemetry/events/version.js +2 -2
  170. qalita/_frontend/node_modules/next/package.json +20 -18
  171. qalita/_frontend/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  172. qalita/_frontend/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  173. qalita/_frontend/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  174. qalita/_frontend/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  175. qalita/_frontend/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  176. qalita/_frontend/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  177. qalita/_frontend/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  178. qalita/_frontend/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  179. qalita/_frontend/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  180. qalita/_frontend/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  181. qalita/_frontend/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  182. qalita/_frontend/node_modules/typescript/lib/typesMap.json +497 -0
  183. qalita/_frontend/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  184. qalita/_frontend/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  185. qalita/_frontend/package.json +3 -3
  186. qalita/_frontend/server.js +1 -1
  187. qalita/commands/pack.py +3 -3
  188. qalita/commands/source.py +1 -1
  189. qalita/internal/utils.py +11 -7
  190. qalita/web/app.py +20 -4
  191. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/METADATA +1 -1
  192. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/RECORD +197 -168
  193. qalita/_frontend/.next/static/chunks/023d923a37d494fc.js +0 -1
  194. qalita/_frontend/.next/static/chunks/247eb132b7f7b574.js +0 -1
  195. qalita/_frontend/.next/static/chunks/bba035711c7e37a2.js +0 -4
  196. qalita/_frontend/.next/static/chunks/c903f9580a4b6572.js +0 -2
  197. qalita/_frontend/.next/static/chunks/cbd55ab9639e1e66.js +0 -1
  198. qalita/_frontend/.next/static/chunks/turbopack-1ad58da399056f41.js +0 -3
  199. qalita/_frontend/node_modules/next/dist/build/deployment-id.js +0 -18
  200. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js +0 -53
  201. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js +0 -105
  202. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js +0 -110
  203. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js +0 -131
  204. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js +0 -25
  205. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js +0 -32
  206. qalita/_frontend/node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js +0 -104
  207. qalita/_frontend/node_modules/next/dist/server/app-render/action-utils.js +0 -90
  208. qalita/_frontend/node_modules/next/dist/server/normalizers/request/prefetch-rsc.js +0 -31
  209. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_buildManifest.js +0 -0
  210. /qalita/_frontend/.next/static/{X4_AlYMbCyee-ZVLjCYMg → _0oyfpC7N2IGDMa04TT9R}/_ssgManifest.js +0 -0
  211. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/WHEEL +0 -0
  212. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/entry_points.txt +0 -0
  213. {qalita-2.5.4.dist-info → qalita-2.6.1.dist-info}/licenses/LICENSE +0 -0
@@ -8,15 +8,16 @@ Object.defineProperty(exports, "getLinkAndScriptTags", {
8
8
  return getLinkAndScriptTags;
9
9
  }
10
10
  });
11
- function getLinkAndScriptTags(clientReferenceManifest, filePath, injectedCSS, injectedScripts, collectNewImports) {
12
- var _clientReferenceManifest_entryJSFiles;
11
+ const _manifestssingleton = require("./manifests-singleton");
12
+ function getLinkAndScriptTags(filePath, injectedCSS, injectedScripts, collectNewImports) {
13
13
  const filePathWithoutExt = filePath.replace(/\.[^.]+$/, '');
14
14
  const cssChunks = new Set();
15
15
  const jsChunks = new Set();
16
- const entryCSSFiles = clientReferenceManifest.entryCSSFiles[filePathWithoutExt];
17
- const entryJSFiles = ((_clientReferenceManifest_entryJSFiles = clientReferenceManifest.entryJSFiles) == null ? void 0 : _clientReferenceManifest_entryJSFiles[filePathWithoutExt]) ?? [];
18
- if (entryCSSFiles) {
19
- for (const css of entryCSSFiles){
16
+ const { entryCSSFiles, entryJSFiles } = (0, _manifestssingleton.getClientReferenceManifest)();
17
+ const cssFiles = entryCSSFiles[filePathWithoutExt];
18
+ const jsFiles = entryJSFiles == null ? void 0 : entryJSFiles[filePathWithoutExt];
19
+ if (cssFiles) {
20
+ for (const css of cssFiles){
20
21
  if (!injectedCSS.has(css.path)) {
21
22
  if (collectNewImports) {
22
23
  injectedCSS.add(css.path);
@@ -25,8 +26,8 @@ function getLinkAndScriptTags(clientReferenceManifest, filePath, injectedCSS, in
25
26
  }
26
27
  }
27
28
  }
28
- if (entryJSFiles) {
29
- for (const file of entryJSFiles){
29
+ if (jsFiles) {
30
+ for (const file of jsFiles){
30
31
  if (!injectedScripts.has(file)) {
31
32
  if (collectNewImports) {
32
33
  injectedScripts.add(file);
@@ -15,7 +15,7 @@ const _encodeuripath = require("../../shared/lib/encode-uri-path");
15
15
  const _rendercssresource = require("./render-css-resource");
16
16
  function getLayerAssets({ ctx, layoutOrPagePath, injectedCSS: injectedCSSWithCurrentLayout, injectedJS: injectedJSWithCurrentLayout, injectedFontPreloadTags: injectedFontPreloadTagsWithCurrentLayout, preloadCallbacks }) {
17
17
  const { componentMod: { createElement } } = ctx;
18
- const { styles: styleTags, scripts: scriptTags } = layoutOrPagePath ? (0, _getcssinlinedlinktags.getLinkAndScriptTags)(ctx.clientReferenceManifest, layoutOrPagePath, injectedCSSWithCurrentLayout, injectedJSWithCurrentLayout, true) : {
18
+ const { styles: styleTags, scripts: scriptTags } = layoutOrPagePath ? (0, _getcssinlinedlinktags.getLinkAndScriptTags)(layoutOrPagePath, injectedCSSWithCurrentLayout, injectedJSWithCurrentLayout, true) : {
19
19
  styles: [],
20
20
  scripts: []
21
21
  };
@@ -0,0 +1,257 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ 0 && (module.exports = {
6
+ getClientReferenceManifest: null,
7
+ getServerActionsManifest: null,
8
+ getServerModuleMap: null,
9
+ selectWorkerForForwarding: null,
10
+ setManifestsSingleton: null
11
+ });
12
+ function _export(target, all) {
13
+ for(var name in all)Object.defineProperty(target, name, {
14
+ enumerable: true,
15
+ get: all[name]
16
+ });
17
+ }
18
+ _export(exports, {
19
+ getClientReferenceManifest: function() {
20
+ return getClientReferenceManifest;
21
+ },
22
+ getServerActionsManifest: function() {
23
+ return getServerActionsManifest;
24
+ },
25
+ getServerModuleMap: function() {
26
+ return getServerModuleMap;
27
+ },
28
+ selectWorkerForForwarding: function() {
29
+ return selectWorkerForForwarding;
30
+ },
31
+ setManifestsSingleton: function() {
32
+ return setManifestsSingleton;
33
+ }
34
+ });
35
+ const _invarianterror = require("../../shared/lib/invariant-error");
36
+ const _apppaths = require("../../shared/lib/router/utils/app-paths");
37
+ const _pathhasprefix = require("../../shared/lib/router/utils/path-has-prefix");
38
+ const _removepathprefix = require("../../shared/lib/router/utils/remove-path-prefix");
39
+ const _workasyncstorageexternal = require("./work-async-storage.external");
40
+ // This is a global singleton that is, among other things, also used to
41
+ // encode/decode bound args of server function closures. This can't be using a
42
+ // AsyncLocalStorage as it might happen at the module level.
43
+ const MANIFESTS_SINGLETON = Symbol.for('next.server.manifests');
44
+ const globalThisWithManifests = globalThis;
45
+ function createProxiedClientReferenceManifest(clientReferenceManifestsPerRoute) {
46
+ const createMappingProxy = (prop)=>{
47
+ return new Proxy({}, {
48
+ get (_, id) {
49
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
50
+ if (workStore) {
51
+ const currentManifest = clientReferenceManifestsPerRoute.get(workStore.route);
52
+ if (currentManifest == null ? void 0 : currentManifest[prop][id]) {
53
+ return currentManifest[prop][id];
54
+ }
55
+ // In development, we also check all other manifests to see if the
56
+ // module exists there. This is to support a scenario where React's
57
+ // I/O tracking (dev-only) creates a connection from one page to
58
+ // another through an emitted async I/O node that references client
59
+ // components from the other page, e.g. in owner props.
60
+ // TODO: Maybe we need to add a `debugBundlerConfig` option to React
61
+ // to avoid this workaround. The current workaround has the
62
+ // disadvantage that one might accidentally or intentionally share
63
+ // client references across pages (e.g. by storing them in a global
64
+ // variable), which would then only be caught in production.
65
+ if (process.env.NODE_ENV !== 'production') {
66
+ for (const [route, manifest] of clientReferenceManifestsPerRoute){
67
+ if (route === workStore.route) {
68
+ continue;
69
+ }
70
+ const entry = manifest[prop][id];
71
+ if (entry !== undefined) {
72
+ return entry;
73
+ }
74
+ }
75
+ }
76
+ } else {
77
+ // If there's no work store defined, we can assume that a client
78
+ // reference manifest is needed during module evaluation, e.g. to
79
+ // create a server function using a higher-order function. This
80
+ // might also use client components which need to be serialized by
81
+ // Flight, and therefore client references need to be resolvable. In
82
+ // that case we search all page manifests to find the module.
83
+ for (const manifest of clientReferenceManifestsPerRoute.values()){
84
+ const entry = manifest[prop][id];
85
+ if (entry !== undefined) {
86
+ return entry;
87
+ }
88
+ }
89
+ }
90
+ return undefined;
91
+ }
92
+ });
93
+ };
94
+ const mappingProxies = new Map();
95
+ return new Proxy({}, {
96
+ get (_, prop) {
97
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
98
+ switch(prop){
99
+ case 'moduleLoading':
100
+ case 'entryCSSFiles':
101
+ case 'entryJSFiles':
102
+ {
103
+ if (!workStore) {
104
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Cannot access "${prop}" without a work store.`), "__NEXT_ERROR_CODE", {
105
+ value: "E952",
106
+ enumerable: false,
107
+ configurable: true
108
+ });
109
+ }
110
+ const currentManifest = clientReferenceManifestsPerRoute.get(workStore.route);
111
+ if (!currentManifest) {
112
+ throw Object.defineProperty(new _invarianterror.InvariantError(`The client reference manifest for route "${workStore.route}" does not exist.`), "__NEXT_ERROR_CODE", {
113
+ value: "E951",
114
+ enumerable: false,
115
+ configurable: true
116
+ });
117
+ }
118
+ return currentManifest[prop];
119
+ }
120
+ case 'clientModules':
121
+ case 'rscModuleMapping':
122
+ case 'edgeRscModuleMapping':
123
+ case 'ssrModuleMapping':
124
+ case 'edgeSSRModuleMapping':
125
+ {
126
+ let proxy = mappingProxies.get(prop);
127
+ if (!proxy) {
128
+ proxy = createMappingProxy(prop);
129
+ mappingProxies.set(prop, proxy);
130
+ }
131
+ return proxy;
132
+ }
133
+ default:
134
+ {
135
+ throw Object.defineProperty(new _invarianterror.InvariantError(`This is a proxied client reference manifest. The property "${String(prop)}" is not handled.`), "__NEXT_ERROR_CODE", {
136
+ value: "E953",
137
+ enumerable: false,
138
+ configurable: true
139
+ });
140
+ }
141
+ }
142
+ }
143
+ });
144
+ }
145
+ /**
146
+ * This function creates a Flight-acceptable server module map proxy from our
147
+ * Server Reference Manifest similar to our client module map. This is because
148
+ * our manifest contains a lot of internal Next.js data that are relevant to the
149
+ * runtime, workers, etc. that React doesn't need to know.
150
+ */ function createServerModuleMap() {
151
+ return new Proxy({}, {
152
+ get: (_, id)=>{
153
+ var _getServerActionsManifest__id, _getServerActionsManifest_;
154
+ const workers = (_getServerActionsManifest_ = getServerActionsManifest()[process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node']) == null ? void 0 : (_getServerActionsManifest__id = _getServerActionsManifest_[id]) == null ? void 0 : _getServerActionsManifest__id.workers;
155
+ if (!workers) {
156
+ return undefined;
157
+ }
158
+ const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
159
+ let workerEntry;
160
+ if (workStore) {
161
+ workerEntry = workers[normalizeWorkerPageName(workStore.page)];
162
+ } else {
163
+ // If there's no work store defined, we can assume that a server
164
+ // module map is needed during module evaluation, e.g. to create a
165
+ // server action using a higher-order function. Therefore it should be
166
+ // safe to return any entry from the manifest that matches the action
167
+ // ID. They all refer to the same module ID, which must also exist in
168
+ // the current page bundle. TODO: This is currently not guaranteed in
169
+ // Turbopack, and needs to be fixed.
170
+ workerEntry = Object.values(workers).at(0);
171
+ }
172
+ if (!workerEntry) {
173
+ return undefined;
174
+ }
175
+ const { moduleId, async } = workerEntry;
176
+ return {
177
+ id: moduleId,
178
+ name: id,
179
+ chunks: [],
180
+ async
181
+ };
182
+ }
183
+ });
184
+ }
185
+ /**
186
+ * The flight entry loader keys actions by bundlePath. bundlePath corresponds
187
+ * with the relative path (including 'app') to the page entrypoint.
188
+ */ function normalizeWorkerPageName(pageName) {
189
+ if ((0, _pathhasprefix.pathHasPrefix)(pageName, 'app')) {
190
+ return pageName;
191
+ }
192
+ return 'app' + pageName;
193
+ }
194
+ /**
195
+ * Converts a bundlePath (relative path to the entrypoint) to a routable page
196
+ * name.
197
+ */ function denormalizeWorkerPageName(bundlePath) {
198
+ return (0, _apppaths.normalizeAppPath)((0, _removepathprefix.removePathPrefix)(bundlePath, 'app'));
199
+ }
200
+ function selectWorkerForForwarding(actionId, pageName) {
201
+ var _serverActionsManifest__actionId;
202
+ const serverActionsManifest = getServerActionsManifest();
203
+ const workers = (_serverActionsManifest__actionId = serverActionsManifest[process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node'][actionId]) == null ? void 0 : _serverActionsManifest__actionId.workers;
204
+ // There are no workers to handle this action, nothing to forward to.
205
+ if (!workers) {
206
+ return;
207
+ }
208
+ // If there is an entry for the current page, we don't need to forward.
209
+ if (workers[normalizeWorkerPageName(pageName)]) {
210
+ return;
211
+ }
212
+ // Otherwise, grab the first worker that has a handler for this action id.
213
+ return denormalizeWorkerPageName(Object.keys(workers)[0]);
214
+ }
215
+ function setManifestsSingleton({ page, clientReferenceManifest, serverActionsManifest }) {
216
+ const existingSingleton = globalThisWithManifests[MANIFESTS_SINGLETON];
217
+ if (existingSingleton) {
218
+ existingSingleton.clientReferenceManifestsPerRoute.set((0, _apppaths.normalizeAppPath)(page), clientReferenceManifest);
219
+ existingSingleton.serverActionsManifest = serverActionsManifest;
220
+ } else {
221
+ const clientReferenceManifestsPerRoute = new Map([
222
+ [
223
+ (0, _apppaths.normalizeAppPath)(page),
224
+ clientReferenceManifest
225
+ ]
226
+ ]);
227
+ const proxiedClientReferenceManifest = createProxiedClientReferenceManifest(clientReferenceManifestsPerRoute);
228
+ globalThisWithManifests[MANIFESTS_SINGLETON] = {
229
+ clientReferenceManifestsPerRoute,
230
+ proxiedClientReferenceManifest,
231
+ serverActionsManifest,
232
+ serverModuleMap: createServerModuleMap()
233
+ };
234
+ }
235
+ }
236
+ function getManifestsSingleton() {
237
+ const manifestSingleton = globalThisWithManifests[MANIFESTS_SINGLETON];
238
+ if (!manifestSingleton) {
239
+ throw Object.defineProperty(new _invarianterror.InvariantError('The manifests singleton was not initialized.'), "__NEXT_ERROR_CODE", {
240
+ value: "E950",
241
+ enumerable: false,
242
+ configurable: true
243
+ });
244
+ }
245
+ return manifestSingleton;
246
+ }
247
+ function getClientReferenceManifest() {
248
+ return getManifestsSingleton().proxiedClientReferenceManifest;
249
+ }
250
+ function getServerActionsManifest() {
251
+ return getManifestsSingleton().serverActionsManifest;
252
+ }
253
+ function getServerModuleMap() {
254
+ return getManifestsSingleton().serverModuleMap;
255
+ }
256
+
257
+ //# sourceMappingURL=manifests-singleton.js.map
@@ -2,15 +2,32 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "printDebugThrownValueForProspectiveRender", {
6
- enumerable: true,
7
- get: function() {
5
+ 0 && (module.exports = {
6
+ Phase: null,
7
+ printDebugThrownValueForProspectiveRender: null
8
+ });
9
+ function _export(target, all) {
10
+ for(var name in all)Object.defineProperty(target, name, {
11
+ enumerable: true,
12
+ get: all[name]
13
+ });
14
+ }
15
+ _export(exports, {
16
+ Phase: function() {
17
+ return Phase;
18
+ },
19
+ printDebugThrownValueForProspectiveRender: function() {
8
20
  return printDebugThrownValueForProspectiveRender;
9
21
  }
10
22
  });
11
23
  const _createerrorhandler = require("./create-error-handler");
12
24
  const _reactlargeshellerror = require("./react-large-shell-error");
13
- function printDebugThrownValueForProspectiveRender(thrownValue, route) {
25
+ var Phase = /*#__PURE__*/ function(Phase) {
26
+ Phase["ProspectiveRender"] = "the prospective render";
27
+ Phase["SegmentCollection"] = "segment collection";
28
+ return Phase;
29
+ }({});
30
+ function printDebugThrownValueForProspectiveRender(thrownValue, route, phase) {
14
31
  // We don't need to print well-known Next.js errors.
15
32
  if ((0, _createerrorhandler.getDigestForWellKnownError)(thrownValue)) {
16
33
  return;
@@ -27,10 +44,10 @@ function printDebugThrownValueForProspectiveRender(thrownValue, route) {
27
44
  const originalErrorStack = thrownValue.stack;
28
45
  const stackStart = originalErrorStack.indexOf('\n');
29
46
  if (stackStart > -1) {
30
- const error = Object.defineProperty(new Error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.
47
+ const error = Object.defineProperty(new Error(`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled.
31
48
 
32
49
  Original Error: ${message}`), "__NEXT_ERROR_CODE", {
33
- value: "E362",
50
+ value: "E949",
34
51
  enumerable: false,
35
52
  configurable: true
36
53
  });
@@ -43,12 +60,12 @@ Original Error: ${message}`), "__NEXT_ERROR_CODE", {
43
60
  message = thrownValue;
44
61
  }
45
62
  if (message) {
46
- console.error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
63
+ console.error(`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. No stack was provided.
47
64
 
48
65
  Original Message: ${message}`);
49
66
  return;
50
67
  }
51
- console.error(`Route ${route} errored during the prospective render. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`);
68
+ console.error(`Route ${route} errored during ${phase}. These errors are normally ignored and may not prevent the route from prerendering but are logged here because build debugging is enabled. The thrown value is logged just following this message`);
52
69
  console.error(thrownValue);
53
70
  return;
54
71
  }
@@ -23,26 +23,36 @@ _export(exports, {
23
23
  const _invarianterror = require("../../shared/lib/invariant-error");
24
24
  const _promisewithresolvers = require("../../shared/lib/promise-with-resolvers");
25
25
  var RenderStage = /*#__PURE__*/ function(RenderStage) {
26
- RenderStage[RenderStage["Static"] = 1] = "Static";
27
- RenderStage[RenderStage["Runtime"] = 2] = "Runtime";
28
- RenderStage[RenderStage["Dynamic"] = 3] = "Dynamic";
26
+ RenderStage[RenderStage["Before"] = 1] = "Before";
27
+ RenderStage[RenderStage["Static"] = 2] = "Static";
28
+ RenderStage[RenderStage["Runtime"] = 3] = "Runtime";
29
+ RenderStage[RenderStage["Dynamic"] = 4] = "Dynamic";
30
+ RenderStage[RenderStage["Abandoned"] = 5] = "Abandoned";
29
31
  return RenderStage;
30
32
  }({});
31
33
  class StagedRenderingController {
32
- constructor(abortSignal = null){
34
+ constructor(abortSignal = null, hasRuntimePrefetch){
33
35
  this.abortSignal = abortSignal;
36
+ this.hasRuntimePrefetch = hasRuntimePrefetch;
34
37
  this.currentStage = 1;
38
+ this.staticInterruptReason = null;
39
+ this.runtimeInterruptReason = null;
40
+ this.staticStageEndTime = Infinity;
41
+ this.runtimeStageEndTime = Infinity;
42
+ this.runtimeStageListeners = [];
43
+ this.dynamicStageListeners = [];
35
44
  this.runtimeStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
36
45
  this.dynamicStagePromise = (0, _promisewithresolvers.createPromiseWithResolvers)();
46
+ this.mayAbandon = false;
37
47
  if (abortSignal) {
38
48
  abortSignal.addEventListener('abort', ()=>{
39
49
  const { reason } = abortSignal;
40
- if (this.currentStage < 2) {
50
+ if (this.currentStage < 3) {
41
51
  this.runtimeStagePromise.promise.catch(ignoreReject) // avoid unhandled rejections
42
52
  ;
43
53
  this.runtimeStagePromise.reject(reason);
44
54
  }
45
- if (this.currentStage < 3) {
55
+ if (this.currentStage < 4 || this.currentStage === 5) {
46
56
  this.dynamicStagePromise.promise.catch(ignoreReject) // avoid unhandled rejections
47
57
  ;
48
58
  this.dynamicStagePromise.reject(reason);
@@ -50,31 +60,167 @@ class StagedRenderingController {
50
60
  }, {
51
61
  once: true
52
62
  });
63
+ this.mayAbandon = true;
64
+ }
65
+ }
66
+ onStage(stage, callback) {
67
+ if (this.currentStage >= stage) {
68
+ callback();
69
+ } else if (stage === 3) {
70
+ this.runtimeStageListeners.push(callback);
71
+ } else if (stage === 4) {
72
+ this.dynamicStageListeners.push(callback);
73
+ } else {
74
+ // This should never happen
75
+ throw Object.defineProperty(new _invarianterror.InvariantError(`Invalid render stage: ${stage}`), "__NEXT_ERROR_CODE", {
76
+ value: "E881",
77
+ enumerable: false,
78
+ configurable: true
79
+ });
80
+ }
81
+ }
82
+ canSyncInterrupt() {
83
+ // If we haven't started the render yet, it can't be interrupted.
84
+ if (this.currentStage === 1) {
85
+ return false;
86
+ }
87
+ const boundaryStage = this.hasRuntimePrefetch ? 4 : 3;
88
+ return this.currentStage < boundaryStage;
89
+ }
90
+ syncInterruptCurrentStageWithReason(reason) {
91
+ if (this.currentStage === 1) {
92
+ return;
93
+ }
94
+ // If Sync IO occurs during the initial (abandonable) render, we'll retry it,
95
+ // so we want a slightly different flow.
96
+ // See the implementation of `abandonRenderImpl` for more explanation.
97
+ if (this.mayAbandon) {
98
+ return this.abandonRenderImpl();
99
+ }
100
+ // If we're in the final render, we cannot abandon it. We need to advance to the Dynamic stage
101
+ // and capture the interruption reason.
102
+ switch(this.currentStage){
103
+ case 2:
104
+ {
105
+ this.staticInterruptReason = reason;
106
+ this.advanceStage(4);
107
+ return;
108
+ }
109
+ case 3:
110
+ {
111
+ // We only error for Sync IO in the runtime stage if the route
112
+ // is configured to use runtime prefetching.
113
+ // We do this to reflect the fact that during a runtime prefetch,
114
+ // Sync IO aborts aborts the render.
115
+ // Note that `canSyncInterrupt` should prevent us from getting here at all
116
+ // if runtime prefetching isn't enabled.
117
+ if (this.hasRuntimePrefetch) {
118
+ this.runtimeInterruptReason = reason;
119
+ this.advanceStage(4);
120
+ }
121
+ return;
122
+ }
123
+ case 4:
124
+ case 5:
125
+ default:
126
+ }
127
+ }
128
+ getStaticInterruptReason() {
129
+ return this.staticInterruptReason;
130
+ }
131
+ getRuntimeInterruptReason() {
132
+ return this.runtimeInterruptReason;
133
+ }
134
+ getStaticStageEndTime() {
135
+ return this.staticStageEndTime;
136
+ }
137
+ getRuntimeStageEndTime() {
138
+ return this.runtimeStageEndTime;
139
+ }
140
+ abandonRender() {
141
+ if (!this.mayAbandon) {
142
+ throw Object.defineProperty(new _invarianterror.InvariantError('`abandonRender` called on a stage controller that cannot be abandoned.'), "__NEXT_ERROR_CODE", {
143
+ value: "E938",
144
+ enumerable: false,
145
+ configurable: true
146
+ });
147
+ }
148
+ this.abandonRenderImpl();
149
+ }
150
+ abandonRenderImpl() {
151
+ // In staged rendering, only the initial render is abandonable.
152
+ // We can abandon the initial render if
153
+ // 1. We notice a cache miss, and need to wait for caches to fill
154
+ // 2. A sync IO error occurs, and the render should be interrupted
155
+ // (this might be a lazy intitialization of a module,
156
+ // so we still want to restart in this case and see if it still occurs)
157
+ // In either case, we'll be doing another render after this one,
158
+ // so we only want to unblock the Runtime stage, not Dynamic, because
159
+ // unblocking the dynamic stage would likely lead to wasted (uncached) IO.
160
+ const { currentStage } = this;
161
+ switch(currentStage){
162
+ case 2:
163
+ {
164
+ this.currentStage = 5;
165
+ this.resolveRuntimeStage();
166
+ return;
167
+ }
168
+ case 3:
169
+ {
170
+ this.currentStage = 5;
171
+ return;
172
+ }
173
+ case 4:
174
+ case 1:
175
+ case 5:
176
+ break;
177
+ default:
178
+ {
179
+ currentStage;
180
+ }
53
181
  }
54
182
  }
55
183
  advanceStage(stage) {
56
184
  // If we're already at the target stage or beyond, do nothing.
57
185
  // (this can happen e.g. if sync IO advanced us to the dynamic stage)
58
- if (this.currentStage >= stage) {
186
+ if (stage <= this.currentStage) {
59
187
  return;
60
188
  }
189
+ let currentStage = this.currentStage;
61
190
  this.currentStage = stage;
62
- // Note that we might be going directly from Static to Dynamic,
63
- // so we need to resolve the runtime stage as well.
64
- if (stage >= 2) {
65
- this.runtimeStagePromise.resolve();
191
+ if (currentStage < 3 && stage >= 3) {
192
+ this.staticStageEndTime = performance.now() + performance.timeOrigin;
193
+ this.resolveRuntimeStage();
66
194
  }
67
- if (stage >= 3) {
68
- this.dynamicStagePromise.resolve();
195
+ if (currentStage < 4 && stage >= 4) {
196
+ this.runtimeStageEndTime = performance.now() + performance.timeOrigin;
197
+ this.resolveDynamicStage();
198
+ return;
199
+ }
200
+ }
201
+ /** Fire the `onStage` listeners for the runtime stage and unblock any promises waiting for it. */ resolveRuntimeStage() {
202
+ const runtimeListeners = this.runtimeStageListeners;
203
+ for(let i = 0; i < runtimeListeners.length; i++){
204
+ runtimeListeners[i]();
69
205
  }
206
+ runtimeListeners.length = 0;
207
+ this.runtimeStagePromise.resolve();
208
+ }
209
+ /** Fire the `onStage` listeners for the dynamic stage and unblock any promises waiting for it. */ resolveDynamicStage() {
210
+ const dynamicListeners = this.dynamicStageListeners;
211
+ for(let i = 0; i < dynamicListeners.length; i++){
212
+ dynamicListeners[i]();
213
+ }
214
+ dynamicListeners.length = 0;
215
+ this.dynamicStagePromise.resolve();
70
216
  }
71
217
  getStagePromise(stage) {
72
218
  switch(stage){
73
- case 2:
219
+ case 3:
74
220
  {
75
221
  return this.runtimeStagePromise.promise;
76
222
  }
77
- case 3:
223
+ case 4:
78
224
  {
79
225
  return this.dynamicStagePromise.promise;
80
226
  }