failproofai 1.0.5 → 1.0.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +5 -5
  3. package/.next/standalone/.next/prerender-manifest.json +5 -5
  4. package/.next/standalone/.next/required-server-files.json +1 -1
  5. package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  6. package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  8. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
  11. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
  12. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  15. package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  16. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  17. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
  20. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
  25. package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
  32. package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
  33. package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/index.html +1 -1
  36. package/.next/standalone/.next/server/app/index.rsc +14 -14
  37. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
  38. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
  39. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  40. package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
  41. package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
  42. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
  45. package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
  46. package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
  49. package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
  50. package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
  53. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
  54. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
  55. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +1 -1
  56. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  58. package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
  59. package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
  60. package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  62. package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
  63. package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -4
  64. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  66. package/.next/standalone/.next/server/chunks/[externals]__0sds_16._.js +3 -0
  67. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
  68. package/.next/standalone/.next/server/chunks/_09dz7xv._.js +3 -3
  69. package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
  70. package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
  71. package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_01r25oi._.js +2 -2
  72. package/.next/standalone/.next/server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js +2 -2
  73. package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
  74. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
  75. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
  76. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
  77. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
  78. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
  79. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
  80. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
  81. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +2 -2
  82. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__15k-dqb._.js → [root-of-the-server]__1i26dsw._.js} +2 -2
  83. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0sz_5na._.js → [root-of-the-server]__1ouobn4._.js} +1 -1
  84. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
  85. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1qapotl._.js +1 -1
  86. package/.next/standalone/.next/server/chunks/ssr/_0-yi74u._.js +1 -1
  87. package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
  88. package/.next/standalone/.next/server/chunks/ssr/{_1b78kcp._.js → _09hs6ms._.js} +1 -1
  89. package/.next/standalone/.next/server/chunks/ssr/{_0guaevg._.js → _0lbwa8m._.js} +2 -2
  90. package/.next/standalone/.next/server/chunks/ssr/_0wso5d3._.js +1 -1
  91. package/.next/standalone/.next/server/chunks/ssr/_1-3unkg._.js +1 -1
  92. package/.next/standalone/.next/server/chunks/ssr/_1ddpc5g._.js +1 -1
  93. package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +3 -3
  94. package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
  95. package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +1 -1
  96. package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +3 -3
  97. package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
  98. package/.next/standalone/.next/server/chunks/ssr/app_components_project-list_tsx_1ke6anr._.js +1 -1
  99. package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
  100. package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +2 -2
  101. package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
  102. package/.next/standalone/.next/server/chunks/ssr/node_modules_1hl81y4._.js +3 -0
  103. package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuzn._.js +2 -2
  104. package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
  105. package/.next/standalone/.next/server/pages/404.html +1 -1
  106. package/.next/standalone/.next/server/pages/500.html +1 -1
  107. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  108. package/.next/standalone/.next/server/server-reference-manifest.json +19 -19
  109. package/.next/standalone/.next/static/chunks/{3w46euc60dx39.js → 03n_qjih7-w6q.js} +1 -1
  110. package/.next/standalone/.next/static/chunks/{2zafgs90r_leq.js → 06jxjnw8bfczc.js} +1 -1
  111. package/.next/standalone/.next/static/chunks/{252xreaecy80h.js → 0vanab2g65op_.js} +1 -1
  112. package/.next/standalone/.next/static/chunks/17pjz_h45j10c.js +1 -0
  113. package/.next/standalone/.next/static/chunks/1ekh-hj_iom84.js +1 -0
  114. package/.next/standalone/.next/static/chunks/{021ydrq6rhpsi.js → 1so_3s0q4c4j1.js} +1 -1
  115. package/.next/standalone/.next/static/chunks/1xacnwjkbekn7.js +1 -0
  116. package/.next/standalone/.next/static/chunks/2hg_bp8z_vm2g.js +1 -0
  117. package/.next/standalone/.next/static/chunks/{3bleyy40s99f2.js → 2u0kol_boahtv.js} +1 -1
  118. package/.next/standalone/.next/static/chunks/{1vb33xa6j9y2q.js → 3_vesf83-0903.js} +1 -1
  119. package/.next/standalone/.next/static/chunks/3d3hzhcnns6ww.js +1 -0
  120. package/.next/standalone/.next/static/chunks/3iasus89n8mg1.js +6 -0
  121. package/.next/standalone/.next/static/chunks/{11s_v03ub6nss.js → 44_cj1_i_aa2z.js} +1 -1
  122. package/.next/standalone/.next/static/chunks/{turbopack-3p73obe0xmrxm.js → turbopack-38nzuvp95_2rv.js} +1 -1
  123. package/.next/standalone/fp-cloud-cli/uv.lock +3 -3
  124. package/.next/standalone/hermes-plugin/README.md +133 -0
  125. package/.next/standalone/hermes-plugin/__init__.py +248 -0
  126. package/.next/standalone/hermes-plugin/client.py +134 -0
  127. package/.next/standalone/hermes-plugin/ledger.py +187 -0
  128. package/.next/standalone/hermes-plugin/plugin.yaml +37 -0
  129. package/.next/standalone/node_modules/@next/env/package.json +1 -1
  130. package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
  131. package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
  132. package/.next/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
  133. package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
  134. package/.next/standalone/node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js +2 -1
  135. package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
  136. package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
  137. package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
  138. package/.next/standalone/node_modules/next/dist/server/image-optimizer.js +14 -0
  139. package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  140. package/.next/standalone/node_modules/next/dist/server/lib/disk-lru-cache.external.js +7 -1
  141. package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
  142. package/.next/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +6 -1
  143. package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  144. package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  145. package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
  146. package/.next/standalone/node_modules/next/package.json +10 -10
  147. package/.next/standalone/node_modules/react/cjs/react.development.js +92 -46
  148. package/.next/standalone/node_modules/react/cjs/react.production.js +112 -89
  149. package/.next/standalone/node_modules/react/package.json +1 -1
  150. package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +1165 -790
  151. package/.next/standalone/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +1171 -791
  152. package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.browser.production.js +1294 -862
  153. package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.edge.production.js +1305 -868
  154. package/.next/standalone/node_modules/react-dom/cjs/react-dom-server.node.production.js +1315 -896
  155. package/.next/standalone/node_modules/react-dom/cjs/react-dom.production.js +24 -5
  156. package/.next/standalone/node_modules/react-dom/package.json +4 -4
  157. package/.next/standalone/package.json +13 -12
  158. package/.next/standalone/sdk/python/uv.lock +18 -18
  159. package/.next/standalone/server.js +1 -1
  160. package/README.md +29 -13
  161. package/bin/failproofai.mjs +3 -1
  162. package/dist/cli.mjs +420 -178
  163. package/dist/worker.mjs +17 -3
  164. package/hermes-plugin/README.md +133 -0
  165. package/hermes-plugin/__init__.py +248 -0
  166. package/hermes-plugin/client.py +134 -0
  167. package/hermes-plugin/ledger.py +187 -0
  168. package/hermes-plugin/plugin.yaml +37 -0
  169. package/package.json +13 -12
  170. package/scripts/translate-docs/validate-translation.ts +48 -0
  171. package/src/hooks/handler.ts +29 -1
  172. package/src/hooks/integrations.ts +264 -73
  173. package/src/hooks/manager.ts +17 -5
  174. package/src/hooks/types.ts +8 -8
  175. package/src/hooks/worker-server.ts +1 -0
  176. package/.next/standalone/.next/server/chunks/[externals]__157pf8j._.js +0 -3
  177. package/.next/standalone/.next/server/chunks/ssr/node_modules_13n822a._.js +0 -3
  178. package/.next/standalone/.next/static/chunks/0y8_1s45gbqmn.js +0 -6
  179. package/.next/standalone/.next/static/chunks/14b3ezufe5411.js +0 -1
  180. package/.next/standalone/.next/static/chunks/1oskk7pdo8aon.js +0 -1
  181. package/.next/standalone/.next/static/chunks/2xycd6mjg00fb.js +0 -1
  182. package/.next/standalone/.next/static/chunks/3l36d73kj18zw.js +0 -1
  183. package/.next/standalone/.next/static/chunks/40lpt2o2b283e.js +0 -1
  184. /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_buildManifest.js +0 -0
  185. /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_clientMiddlewareManifest.js +0 -0
  186. /package/.next/standalone/.next/static/{uFpAs_vIXSo6qBzmkXPWD → -7OT2NwGPxAu-skEL_Xee}/_ssgManifest.js +0 -0
@@ -67,6 +67,7 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
67
67
  REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
68
68
  REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
69
69
  REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
70
+ REACT_RECOVERABLE_TYPE = Symbol.for("react.recoverable"),
70
71
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
71
72
  function getIteratorFn(maybeIterable) {
72
73
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -75,7 +76,8 @@ function getIteratorFn(maybeIterable) {
75
76
  maybeIterable["@@iterator"];
76
77
  return "function" === typeof maybeIterable ? maybeIterable : null;
77
78
  }
78
- var isArrayImpl = Array.isArray;
79
+ var REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic_key"),
80
+ isArrayImpl = Array.isArray;
79
81
  function murmurhash3_32_gc(key, seed) {
80
82
  var remainder = key.length & 3;
81
83
  var bytes = key.length - remainder;
@@ -190,6 +192,7 @@ var unitlessNumbers = new Set(
190
192
  ["markerEnd", "marker-end"],
191
193
  ["markerMid", "marker-mid"],
192
194
  ["markerStart", "marker-start"],
195
+ ["maskType", "mask-type"],
193
196
  ["overlinePosition", "overline-position"],
194
197
  ["overlineThickness", "overline-thickness"],
195
198
  ["paintOrder", "paint-order"],
@@ -389,7 +392,8 @@ function getChildFormatContext(parentContext, type, props) {
389
392
  }
390
393
  return 6 <= parentContext.insertionMode || 2 > parentContext.insertionMode
391
394
  ? createFormatContext(2, null, subtreeScope, null)
392
- : parentContext.tagScope !== subtreeScope
395
+ : null !== parentContext.viewTransition ||
396
+ parentContext.tagScope !== subtreeScope
393
397
  ? createFormatContext(
394
398
  parentContext.insertionMode,
395
399
  parentContext.selectedValue,
@@ -406,6 +410,8 @@ function getSuspenseViewTransition(parentViewTransition) {
406
410
  enter: "none",
407
411
  exit: "none",
408
412
  share: parentViewTransition.update,
413
+ parentEnter: "none",
414
+ parentExit: "none",
409
415
  name: parentViewTransition.autoName,
410
416
  autoName: parentViewTransition.autoName,
411
417
  nameIdx: 0
@@ -433,6 +439,31 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
433
439
  resumableState
434
440
  );
435
441
  }
442
+ function makeId(resumableState, treeId, localId) {
443
+ resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
444
+ 0 < localId && (resumableState += "H" + localId.toString(32));
445
+ return resumableState + "_";
446
+ }
447
+ function pushViewTransitionAttributes(target, formatContext) {
448
+ formatContext = formatContext.viewTransition;
449
+ null !== formatContext &&
450
+ ("auto" !== formatContext.name &&
451
+ (pushStringAttribute(
452
+ target,
453
+ "vt-name",
454
+ 0 === formatContext.nameIdx
455
+ ? formatContext.name
456
+ : formatContext.name + "_" + formatContext.nameIdx
457
+ ),
458
+ formatContext.nameIdx++),
459
+ pushStringAttribute(target, "vt-update", formatContext.update),
460
+ "none" !== formatContext.enter &&
461
+ pushStringAttribute(target, "vt-enter", formatContext.enter),
462
+ "none" !== formatContext.exit &&
463
+ pushStringAttribute(target, "vt-exit", formatContext.exit),
464
+ "none" !== formatContext.share &&
465
+ pushStringAttribute(target, "vt-share", formatContext.share));
466
+ }
436
467
  var styleNameCache = new Map();
437
468
  function pushStyleAttribute(target, style) {
438
469
  if ("object" !== typeof style) throw Error(formatProdErrorMessage(62));
@@ -619,6 +650,7 @@ function pushAttribute(target, name, value) {
619
650
  case "async":
620
651
  case "autoPlay":
621
652
  case "controls":
653
+ case "credentialless":
622
654
  case "default":
623
655
  case "defer":
624
656
  case "disabled":
@@ -740,13 +772,13 @@ function injectFormReplayingRuntime(resumableState, renderState) {
740
772
  pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
741
773
  bootstrapChunks.push(
742
774
  ">",
743
- 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
775
+ 'addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});',
744
776
  "\x3c/script>"
745
777
  ))
746
778
  : bootstrapChunks.unshift(
747
779
  renderState.startInlineScript,
748
780
  ">",
749
- 'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
781
+ 'addEventListener("submit",function(a){if(!a.defaultPrevented){var b=a.target,d=a.submitter,c=b.action,e=d;if(d){var f=d.getAttribute("formAction");null!=f&&(c=f,e=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===c&&(a.preventDefault(),a=new FormData(b,e),c=b.ownerDocument||b,(c.$$reactFormReplay=c.$$reactFormReplay||[]).push(b,d,a))}});',
750
782
  "\x3c/script>"
751
783
  );
752
784
  }
@@ -772,7 +804,7 @@ var styleRegex = /(<\/|<)(s)(tyle)/gi;
772
804
  function styleReplacer(match, prefix, s, suffix) {
773
805
  return "" + prefix + ("s" === s ? "\\73 " : "\\53 ") + suffix;
774
806
  }
775
- function pushSelfClosing(target, props, tag) {
807
+ function pushSelfClosing(target, props, tag, formatContext) {
776
808
  target.push(startChunkForTag(tag));
777
809
  for (var propKey in props)
778
810
  if (hasOwnProperty.call(props, propKey)) {
@@ -786,6 +818,7 @@ function pushSelfClosing(target, props, tag) {
786
818
  pushAttribute(target, propKey, propValue);
787
819
  }
788
820
  }
821
+ pushViewTransitionAttributes(target, formatContext);
789
822
  target.push("/>");
790
823
  return null;
791
824
  }
@@ -851,7 +884,7 @@ function pushScriptImpl(target, props) {
851
884
  target.push(endChunkForTag("script"));
852
885
  return null;
853
886
  }
854
- function pushStartSingletonElement(target, props, tag) {
887
+ function pushStartSingletonElement(target, props, tag, formatContext) {
855
888
  target.push(startChunkForTag(tag));
856
889
  var innerHTML = (tag = null),
857
890
  propKey;
@@ -870,11 +903,12 @@ function pushStartSingletonElement(target, props, tag) {
870
903
  pushAttribute(target, propKey, propValue);
871
904
  }
872
905
  }
906
+ pushViewTransitionAttributes(target, formatContext);
873
907
  target.push(">");
874
908
  pushInnerHTML(target, innerHTML, tag);
875
909
  return tag;
876
910
  }
877
- function pushStartGenericElement(target, props, tag) {
911
+ function pushStartGenericElement(target, props, tag, formatContext) {
878
912
  target.push(startChunkForTag(tag));
879
913
  var innerHTML = (tag = null),
880
914
  propKey;
@@ -893,6 +927,7 @@ function pushStartGenericElement(target, props, tag) {
893
927
  pushAttribute(target, propKey, propValue);
894
928
  }
895
929
  }
930
+ pushViewTransitionAttributes(target, formatContext);
896
931
  target.push(">");
897
932
  pushInnerHTML(target, innerHTML, tag);
898
933
  return "string" === typeof tag
@@ -953,6 +988,7 @@ function pushStartInstance(
953
988
  pushAttribute(target$jscomp$0, propKey, propValue);
954
989
  }
955
990
  }
991
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
956
992
  target$jscomp$0.push(">");
957
993
  pushInnerHTML(target$jscomp$0, innerHTML, children);
958
994
  if ("string" === typeof children) {
@@ -991,6 +1027,7 @@ function pushStartInstance(
991
1027
  );
992
1028
  }
993
1029
  }
1030
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
994
1031
  target$jscomp$0.push(">");
995
1032
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
996
1033
  return children$jscomp$0;
@@ -1078,6 +1115,7 @@ function pushStartInstance(
1078
1115
  null === value$jscomp$0 &&
1079
1116
  null !== defaultValue &&
1080
1117
  (value$jscomp$0 = defaultValue);
1118
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1081
1119
  target$jscomp$0.push(">");
1082
1120
  if (null != children$jscomp$2) {
1083
1121
  if (null != value$jscomp$0) throw Error(formatProdErrorMessage(92));
@@ -1167,6 +1205,7 @@ function pushStartInstance(
1167
1205
  ? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
1168
1206
  : null !== defaultValue$jscomp$0 &&
1169
1207
  pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
1208
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1170
1209
  target$jscomp$0.push("/>");
1171
1210
  null != formData &&
1172
1211
  formData.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1225,6 +1264,7 @@ function pushStartInstance(
1225
1264
  formTarget$jscomp$0,
1226
1265
  name$jscomp$0
1227
1266
  );
1267
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1228
1268
  target$jscomp$0.push(">");
1229
1269
  null != formData$jscomp$0 &&
1230
1270
  formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
@@ -1310,6 +1350,7 @@ function pushStartInstance(
1310
1350
  pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
1311
1351
  null != formTarget$jscomp$1 &&
1312
1352
  pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
1353
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1313
1354
  target$jscomp$0.push(">");
1314
1355
  null !== formActionName &&
1315
1356
  (target$jscomp$0.push('<input type="hidden"'),
@@ -1341,6 +1382,7 @@ function pushStartInstance(
1341
1382
  );
1342
1383
  }
1343
1384
  }
1385
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1344
1386
  target$jscomp$0.push(">");
1345
1387
  return null;
1346
1388
  case "object":
@@ -1378,6 +1420,7 @@ function pushStartInstance(
1378
1420
  );
1379
1421
  }
1380
1422
  }
1423
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1381
1424
  target$jscomp$0.push(">");
1382
1425
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1383
1426
  if ("string" === typeof children$jscomp$5) {
@@ -1649,17 +1692,33 @@ function pushStartInstance(
1649
1692
  var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1650
1693
  target$jscomp$0,
1651
1694
  props,
1652
- "meta"
1695
+ "meta",
1696
+ formatContext
1653
1697
  );
1654
1698
  else
1655
1699
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1656
1700
  (JSCompiler_inline_result$jscomp$7 = isFallback$jscomp$1
1657
1701
  ? null
1658
1702
  : "string" === typeof props.charSet
1659
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1703
+ ? pushSelfClosing(
1704
+ renderState.charsetChunks,
1705
+ props,
1706
+ "meta",
1707
+ formatContext
1708
+ )
1660
1709
  : "viewport" === props.name
1661
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1662
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1710
+ ? pushSelfClosing(
1711
+ renderState.viewportChunks,
1712
+ props,
1713
+ "meta",
1714
+ formatContext
1715
+ )
1716
+ : pushSelfClosing(
1717
+ renderState.hoistableChunks,
1718
+ props,
1719
+ "meta",
1720
+ formatContext
1721
+ ));
1663
1722
  return JSCompiler_inline_result$jscomp$7;
1664
1723
  case "listing":
1665
1724
  case "pre":
@@ -1686,6 +1745,7 @@ function pushStartInstance(
1686
1745
  );
1687
1746
  }
1688
1747
  }
1748
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1689
1749
  target$jscomp$0.push(">");
1690
1750
  if (null != innerHTML$jscomp$7) {
1691
1751
  if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
@@ -1771,7 +1831,7 @@ function pushStartInstance(
1771
1831
  nonce: props.nonce,
1772
1832
  type: props.type,
1773
1833
  fetchPriority: props.fetchPriority,
1774
- referrerPolicy: props.refererPolicy
1834
+ referrerPolicy: props.referrerPolicy
1775
1835
  })),
1776
1836
  0 <= (headers.remainingCapacity -= header.length + 2))
1777
1837
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
@@ -1797,7 +1857,7 @@ function pushStartInstance(
1797
1857
  promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
1798
1858
  }
1799
1859
  }
1800
- return pushSelfClosing(target$jscomp$0, props, "img");
1860
+ return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
1801
1861
  case "base":
1802
1862
  case "area":
1803
1863
  case "br":
@@ -1809,7 +1869,7 @@ function pushStartInstance(
1809
1869
  case "source":
1810
1870
  case "track":
1811
1871
  case "wbr":
1812
- return pushSelfClosing(target$jscomp$0, props, type);
1872
+ return pushSelfClosing(target$jscomp$0, props, type, formatContext);
1813
1873
  case "annotation-xml":
1814
1874
  case "color-profile":
1815
1875
  case "font-face":
@@ -1829,13 +1889,15 @@ function pushStartInstance(
1829
1889
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1830
1890
  preamble.headChunks,
1831
1891
  props,
1832
- "head"
1892
+ "head",
1893
+ formatContext
1833
1894
  );
1834
1895
  } else
1835
1896
  JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1836
1897
  target$jscomp$0,
1837
1898
  props,
1838
- "head"
1899
+ "head",
1900
+ formatContext
1839
1901
  );
1840
1902
  return JSCompiler_inline_result$jscomp$9;
1841
1903
  case "body":
@@ -1848,13 +1910,15 @@ function pushStartInstance(
1848
1910
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1849
1911
  preamble$jscomp$0.bodyChunks,
1850
1912
  props,
1851
- "body"
1913
+ "body",
1914
+ formatContext
1852
1915
  );
1853
1916
  } else
1854
1917
  JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1855
1918
  target$jscomp$0,
1856
1919
  props,
1857
- "body"
1920
+ "body",
1921
+ formatContext
1858
1922
  );
1859
1923
  return JSCompiler_inline_result$jscomp$10;
1860
1924
  case "html":
@@ -1867,13 +1931,15 @@ function pushStartInstance(
1867
1931
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1868
1932
  preamble$jscomp$1.htmlChunks,
1869
1933
  props,
1870
- "html"
1934
+ "html",
1935
+ formatContext
1871
1936
  );
1872
1937
  } else
1873
1938
  JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1874
1939
  target$jscomp$0,
1875
1940
  props,
1876
- "html"
1941
+ "html",
1942
+ formatContext
1877
1943
  );
1878
1944
  return JSCompiler_inline_result$jscomp$11;
1879
1945
  default:
@@ -1923,12 +1989,13 @@ function pushStartInstance(
1923
1989
  }
1924
1990
  }
1925
1991
  }
1992
+ pushViewTransitionAttributes(target$jscomp$0, formatContext);
1926
1993
  target$jscomp$0.push(">");
1927
1994
  pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1928
1995
  return children$jscomp$9;
1929
1996
  }
1930
1997
  }
1931
- return pushStartGenericElement(target$jscomp$0, props, type);
1998
+ return pushStartGenericElement(target$jscomp$0, props, type, formatContext);
1932
1999
  }
1933
2000
  var endTagCache = new Map();
1934
2001
  function endChunkForTag(tag) {
@@ -2536,7 +2603,7 @@ function preloadModule(href, options) {
2536
2603
  break;
2537
2604
  default:
2538
2605
  if (resumableState.moduleUnknownResources.hasOwnProperty(as)) {
2539
- var resources = resumableState.unknownResources[as];
2606
+ var resources = resumableState.moduleUnknownResources[as];
2540
2607
  if (resources.hasOwnProperty(href)) return;
2541
2608
  } else
2542
2609
  (resources = {}),
@@ -2733,16 +2800,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2733
2800
  "\x3c/script>"
2734
2801
  ));
2735
2802
  bootstrapScriptContent = idPrefix + "P:";
2736
- var JSCompiler_object_inline_segmentPrefix_1673 = idPrefix + "S:";
2803
+ var JSCompiler_object_inline_segmentPrefix_1724 = idPrefix + "S:";
2737
2804
  idPrefix += "B:";
2738
- var JSCompiler_object_inline_preconnects_1687 = new Set(),
2739
- JSCompiler_object_inline_fontPreloads_1688 = new Set(),
2740
- JSCompiler_object_inline_highImagePreloads_1689 = new Set(),
2741
- JSCompiler_object_inline_styles_1690 = new Map(),
2742
- JSCompiler_object_inline_bootstrapScripts_1691 = new Set(),
2743
- JSCompiler_object_inline_scripts_1692 = new Set(),
2744
- JSCompiler_object_inline_bulkPreloads_1693 = new Set(),
2745
- JSCompiler_object_inline_preloads_1694 = {
2805
+ var JSCompiler_object_inline_preconnects_1738 = new Set(),
2806
+ JSCompiler_object_inline_fontPreloads_1739 = new Set(),
2807
+ JSCompiler_object_inline_highImagePreloads_1740 = new Set(),
2808
+ JSCompiler_object_inline_styles_1741 = new Map(),
2809
+ JSCompiler_object_inline_bootstrapScripts_1742 = new Set(),
2810
+ JSCompiler_object_inline_scripts_1743 = new Set(),
2811
+ JSCompiler_object_inline_bulkPreloads_1744 = new Set(),
2812
+ JSCompiler_object_inline_preloads_1745 = {
2746
2813
  images: new Map(),
2747
2814
  stylesheets: new Map(),
2748
2815
  scripts: new Map(),
@@ -2779,7 +2846,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2779
2846
  scriptConfig.moduleScriptResources[href] = null;
2780
2847
  scriptConfig = [];
2781
2848
  pushLinkImpl(scriptConfig, props);
2782
- JSCompiler_object_inline_bootstrapScripts_1691.add(scriptConfig);
2849
+ JSCompiler_object_inline_bootstrapScripts_1742.add(scriptConfig);
2783
2850
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
2784
2851
  "string" === typeof integrity &&
2785
2852
  bootstrapChunks.push(
@@ -2826,7 +2893,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2826
2893
  (props.moduleScriptResources[scriptConfig] = null),
2827
2894
  (props = []),
2828
2895
  pushLinkImpl(props, integrity),
2829
- JSCompiler_object_inline_bootstrapScripts_1691.add(props),
2896
+ JSCompiler_object_inline_bootstrapScripts_1742.add(props),
2830
2897
  bootstrapChunks.push(
2831
2898
  '<script type="module" src="',
2832
2899
  escapeTextForBrowser(i),
@@ -2848,7 +2915,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2848
2915
  bootstrapChunks.push(' async="">\x3c/script>');
2849
2916
  return {
2850
2917
  placeholderPrefix: bootstrapScriptContent,
2851
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1673,
2918
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1724,
2852
2919
  boundaryPrefix: idPrefix,
2853
2920
  startInlineScript: "<script",
2854
2921
  startInlineStyle: "<style",
@@ -2868,14 +2935,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2868
2935
  charsetChunks: [],
2869
2936
  viewportChunks: [],
2870
2937
  hoistableChunks: [],
2871
- preconnects: JSCompiler_object_inline_preconnects_1687,
2872
- fontPreloads: JSCompiler_object_inline_fontPreloads_1688,
2873
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1689,
2874
- styles: JSCompiler_object_inline_styles_1690,
2875
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1691,
2876
- scripts: JSCompiler_object_inline_scripts_1692,
2877
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1693,
2878
- preloads: JSCompiler_object_inline_preloads_1694,
2938
+ preconnects: JSCompiler_object_inline_preconnects_1738,
2939
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1739,
2940
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1740,
2941
+ styles: JSCompiler_object_inline_styles_1741,
2942
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1742,
2943
+ scripts: JSCompiler_object_inline_scripts_1743,
2944
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1744,
2945
+ preloads: JSCompiler_object_inline_preloads_1745,
2879
2946
  nonce: { script: void 0, style: void 0 },
2880
2947
  stylesToHoist: !1,
2881
2948
  generateStaticMarkup: generateStaticMarkup
@@ -2917,6 +2984,8 @@ function getComponentNameFromType(type) {
2917
2984
  return "SuspenseList";
2918
2985
  case REACT_ACTIVITY_TYPE:
2919
2986
  return "Activity";
2987
+ case REACT_VIEW_TRANSITION_TYPE:
2988
+ return "ViewTransition";
2920
2989
  }
2921
2990
  if ("object" === typeof type)
2922
2991
  switch (type.$$typeof) {
@@ -3018,6 +3087,11 @@ var classComponentUpdater = {
3018
3087
  enqueueForceUpdate: function () {}
3019
3088
  },
3020
3089
  emptyTreeContext = { id: 1, overflow: "" };
3090
+ function getTreeId(context) {
3091
+ var overflow = context.overflow;
3092
+ context = context.id;
3093
+ return (context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow;
3094
+ }
3021
3095
  function pushTreeContext(baseContext, totalChildren, index) {
3022
3096
  var baseIdWithLeadingBit = baseContext.id;
3023
3097
  baseContext = baseContext.overflow;
@@ -3064,7 +3138,10 @@ function trackUsedThenable(thenableState, thenable, index) {
3064
3138
  case "fulfilled":
3065
3139
  return thenable.value;
3066
3140
  case "rejected":
3067
- throw thenable.reason;
3141
+ thenableState = thenable.reason;
3142
+ if (void 0 === thenableState && !("reason" in thenable))
3143
+ throw Error(formatProdErrorMessage(600));
3144
+ throw thenableState;
3068
3145
  default:
3069
3146
  "string" === typeof thenable.status
3070
3147
  ? thenable.then(noop, noop)
@@ -3119,8 +3196,50 @@ var objectIs = "function" === typeof Object.is ? Object.is : is,
3119
3196
  actionStateCounter = 0,
3120
3197
  actionStateMatchingIndex = -1,
3121
3198
  thenableIndexCounter = 0,
3122
- thenableState = null,
3123
- renderPhaseUpdates = null,
3199
+ thenableState = null;
3200
+ function createRecoverableError(recoverable) {
3201
+ recoverable = recoverable._reason;
3202
+ if ("function" === typeof recoverable)
3203
+ try {
3204
+ var initializedReason = recoverable();
3205
+ } catch ($jscomp$unused$catch) {
3206
+ initializedReason =
3207
+ "The reason for browser-only rendering could not be determined because its initializer threw.";
3208
+ }
3209
+ else initializedReason = recoverable;
3210
+ initializedReason = Error(
3211
+ formatProdErrorMessage(603),
3212
+ void 0 === recoverable ? void 0 : { cause: initializedReason }
3213
+ );
3214
+ Object.defineProperty(initializedReason, REACT_RECOVERABLE_TYPE, {
3215
+ value: !0
3216
+ });
3217
+ return initializedReason;
3218
+ }
3219
+ function isRecoverableError(error) {
3220
+ return "object" !== typeof error || null === error
3221
+ ? !1
3222
+ : !0 === error[REACT_RECOVERABLE_TYPE];
3223
+ }
3224
+ function cloneRecoverableErrorAsFatal(recoverableError) {
3225
+ var fatalRecoverableError = Error(
3226
+ formatProdErrorMessage(604),
3227
+ hasOwnProperty.call(recoverableError, "cause")
3228
+ ? { cause: recoverableError.cause }
3229
+ : void 0
3230
+ );
3231
+ recoverableError = recoverableError.stack;
3232
+ if (void 0 !== recoverableError) {
3233
+ var frameStart = recoverableError.indexOf("\n");
3234
+ fatalRecoverableError.stack =
3235
+ fatalRecoverableError.name +
3236
+ ": " +
3237
+ fatalRecoverableError.message +
3238
+ (-1 === frameStart ? "" : recoverableError.slice(frameStart));
3239
+ } else fatalRecoverableError.stack = void 0;
3240
+ return fatalRecoverableError;
3241
+ }
3242
+ var renderPhaseUpdates = null,
3124
3243
  numberOfReRenders = 0;
3125
3244
  function resolveCurrentlyRenderingComponent() {
3126
3245
  if (null === currentlyRenderingComponent)
@@ -3325,6 +3444,8 @@ var HooksDispatcher = {
3325
3444
  use: function (usable) {
3326
3445
  if (null !== usable && "object" === typeof usable) {
3327
3446
  if ("function" === typeof usable.then) return unwrapThenable(usable);
3447
+ if (usable.$$typeof === REACT_RECOVERABLE_TYPE)
3448
+ throw createRecoverableError(usable);
3328
3449
  if (usable.$$typeof === REACT_CONTEXT_TYPE)
3329
3450
  return usable._currentValue2;
3330
3451
  }
@@ -3367,21 +3488,11 @@ var HooksDispatcher = {
3367
3488
  return [!1, unsupportedStartTransition];
3368
3489
  },
3369
3490
  useId: function () {
3370
- var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
3371
- var overflow = JSCompiler_inline_result.overflow;
3372
- JSCompiler_inline_result = JSCompiler_inline_result.id;
3373
- JSCompiler_inline_result =
3374
- (
3375
- JSCompiler_inline_result &
3376
- ~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
3377
- ).toString(32) + overflow;
3378
- var resumableState = currentResumableState;
3491
+ var treeId = getTreeId(currentlyRenderingTask.treeContext),
3492
+ resumableState = currentResumableState;
3379
3493
  if (null === resumableState) throw Error(formatProdErrorMessage(404));
3380
- overflow = localIdCounter++;
3381
- JSCompiler_inline_result =
3382
- "_" + resumableState.idPrefix + "R_" + JSCompiler_inline_result;
3383
- 0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
3384
- return JSCompiler_inline_result + "_";
3494
+ var localId = localIdCounter++;
3495
+ return makeId(resumableState, treeId, localId);
3385
3496
  },
3386
3497
  useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {
3387
3498
  if (void 0 === getServerSnapshot)
@@ -3469,7 +3580,26 @@ function describeNativeComponentFrame(fn, construct) {
3469
3580
  } catch (x$24) {
3470
3581
  control = x$24;
3471
3582
  }
3472
- fn.call(Fake.prototype);
3583
+ Fake = !1;
3584
+ try {
3585
+ var prevProps = Object.getOwnPropertyDescriptor(
3586
+ fn.prototype,
3587
+ "props"
3588
+ );
3589
+ Object.defineProperty(fn.prototype, "props", {
3590
+ configurable: !0,
3591
+ set: function () {
3592
+ throw Error();
3593
+ }
3594
+ });
3595
+ Fake = !0;
3596
+ new fn();
3597
+ } finally {
3598
+ Fake &&
3599
+ (void 0 !== prevProps
3600
+ ? Object.defineProperty(fn.prototype, "props", prevProps)
3601
+ : delete fn.prototype.props);
3602
+ }
3473
3603
  }
3474
3604
  } else {
3475
3605
  try {
@@ -3631,11 +3761,15 @@ function describeComponentStackByType(type) {
3631
3761
  return describeBuiltInComponentFrame("SuspenseList");
3632
3762
  case REACT_SUSPENSE_TYPE:
3633
3763
  return describeBuiltInComponentFrame("Suspense");
3764
+ case REACT_VIEW_TRANSITION_TYPE:
3765
+ return describeBuiltInComponentFrame("ViewTransition");
3634
3766
  }
3635
3767
  return "";
3636
3768
  }
3637
3769
  function isEligibleForOutlining(request, boundary) {
3638
- return (500 < boundary.byteSize || !1) && null === boundary.contentPreamble;
3770
+ return (
3771
+ (500 < boundary.byteSize || boundary.defer) && null === boundary.preamble
3772
+ );
3639
3773
  }
3640
3774
  function defaultErrorHandler(error) {
3641
3775
  if (
@@ -3665,11 +3799,11 @@ function RequestInstance(
3665
3799
  rootFormatContext,
3666
3800
  progressiveChunkSize,
3667
3801
  onError,
3802
+ onBrowserBailout,
3668
3803
  onAllReady,
3669
3804
  onShellReady,
3670
3805
  onShellError,
3671
3806
  onFatalError,
3672
- onPostpone,
3673
3807
  formState
3674
3808
  ) {
3675
3809
  var abortSet = new Set();
@@ -3682,21 +3816,24 @@ function RequestInstance(
3682
3816
  void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3683
3817
  this.status = 10;
3684
3818
  this.fatalError = null;
3819
+ this.aborted = !1;
3685
3820
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3686
3821
  this.completedPreambleSegments = this.completedRootSegment = null;
3687
3822
  this.byteSize = 0;
3688
3823
  this.abortableTasks = abortSet;
3689
3824
  this.pingedTasks = [];
3825
+ this.currentTask = null;
3690
3826
  this.clientRenderedBoundaries = [];
3691
3827
  this.completedBoundaries = [];
3692
3828
  this.partialBoundaries = [];
3693
- this.trackedPostpones = null;
3829
+ this.postponedState = this.trackedPostpones = null;
3694
3830
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
3695
- this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3831
+ this.onBrowserBailout = void 0 === onBrowserBailout ? noop : onBrowserBailout;
3696
3832
  this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3697
3833
  this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3698
3834
  this.onShellError = void 0 === onShellError ? noop : onShellError;
3699
3835
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3836
+ this.renderLifetimeController = null;
3700
3837
  this.formState = void 0 === formState ? null : formState;
3701
3838
  }
3702
3839
  function createRequest(
@@ -3706,11 +3843,11 @@ function createRequest(
3706
3843
  rootFormatContext,
3707
3844
  progressiveChunkSize,
3708
3845
  onError,
3846
+ onBrowserBailout,
3709
3847
  onAllReady,
3710
3848
  onShellReady,
3711
3849
  onShellError,
3712
3850
  onFatalError,
3713
- onPostpone,
3714
3851
  formState
3715
3852
  ) {
3716
3853
  resumableState = new RequestInstance(
@@ -3719,11 +3856,11 @@ function createRequest(
3719
3856
  rootFormatContext,
3720
3857
  progressiveChunkSize,
3721
3858
  onError,
3859
+ onBrowserBailout,
3722
3860
  onAllReady,
3723
3861
  onShellReady,
3724
3862
  onShellError,
3725
3863
  onFatalError,
3726
- onPostpone,
3727
3864
  formState
3728
3865
  );
3729
3866
  renderState = createPendingSegment(
@@ -3767,8 +3904,8 @@ function createSuspenseBoundary(
3767
3904
  request,
3768
3905
  row,
3769
3906
  fallbackAbortableTasks,
3770
- contentPreamble,
3771
- fallbackPreamble
3907
+ preamble,
3908
+ defer
3772
3909
  ) {
3773
3910
  fallbackAbortableTasks = {
3774
3911
  status: 0,
@@ -3778,22 +3915,21 @@ function createSuspenseBoundary(
3778
3915
  row: row,
3779
3916
  completedSegments: [],
3780
3917
  byteSize: 0,
3918
+ defer: defer,
3781
3919
  fallbackAbortableTasks: fallbackAbortableTasks,
3782
3920
  errorDigest: null,
3783
3921
  contentState: createHoistableState(),
3784
3922
  fallbackState: createHoistableState(),
3785
- contentPreamble: contentPreamble,
3786
- fallbackPreamble: fallbackPreamble,
3787
- trackedContentKeyPath: null,
3788
- trackedFallbackNode: null
3923
+ preamble: preamble,
3924
+ tracked: null
3789
3925
  };
3790
3926
  null !== row &&
3791
3927
  (row.pendingTasks++,
3792
- (contentPreamble = row.boundaries),
3793
- null !== contentPreamble &&
3928
+ (preamble = row.boundaries),
3929
+ null !== preamble &&
3794
3930
  (request.allPendingTasks++,
3795
3931
  fallbackAbortableTasks.pendingTasks++,
3796
- contentPreamble.push(fallbackAbortableTasks)),
3932
+ preamble.push(fallbackAbortableTasks)),
3797
3933
  (request = row.inheritedHoistables),
3798
3934
  null !== request &&
3799
3935
  hoistHoistables(fallbackAbortableTasks.contentState, request));
@@ -3825,8 +3961,16 @@ function createRenderTask(
3825
3961
  replay: null,
3826
3962
  node: node,
3827
3963
  childIndex: childIndex,
3828
- ping: function () {
3829
- return pingTask(request, task);
3964
+ ping: {
3965
+ resolve: function () {
3966
+ return pingTask(request, task);
3967
+ },
3968
+ reject: function (error) {
3969
+ request.aborted
3970
+ ? task.abortSet.delete(task) &&
3971
+ finishAbortedTask(task, request, error)
3972
+ : pingTask(request, task);
3973
+ }
3830
3974
  },
3831
3975
  blockedBoundary: blockedBoundary,
3832
3976
  blockedSegment: blockedSegment,
@@ -3870,8 +4014,16 @@ function createReplayTask(
3870
4014
  replay: replay,
3871
4015
  node: node,
3872
4016
  childIndex: childIndex,
3873
- ping: function () {
3874
- return pingTask(request, task);
4017
+ ping: {
4018
+ resolve: function () {
4019
+ return pingTask(request, task);
4020
+ },
4021
+ reject: function (error) {
4022
+ request.aborted
4023
+ ? task.abortSet.delete(task) &&
4024
+ finishAbortedTask(task, request, error)
4025
+ : pingTask(request, task);
4026
+ }
3875
4027
  },
3876
4028
  blockedBoundary: blockedBoundary,
3877
4029
  blockedSegment: null,
@@ -3954,18 +4106,22 @@ function getThrownInfo(node$jscomp$0) {
3954
4106
  return errorInfo;
3955
4107
  }
3956
4108
  function logRecoverableError(request, error, errorInfo) {
4109
+ if (isRecoverableError(error))
4110
+ return (request = request.onBrowserBailout), request(error, errorInfo), "";
3957
4111
  request = request.onError;
3958
4112
  error = request(error, errorInfo);
3959
- if (null == error || "string" === typeof error) return error;
4113
+ if (null == error || "string" === typeof error)
4114
+ return "" === error ? void 0 : error;
3960
4115
  }
3961
4116
  function fatalError(request, error) {
3962
4117
  var onShellError = request.onShellError,
3963
4118
  onFatalError = request.onFatalError;
3964
- onShellError(error);
4119
+ 0 !== request.pendingRootTasks && onShellError(error);
3965
4120
  onFatalError(error);
4121
+ endRenderLifetime(request);
3966
4122
  null !== request.destination
3967
- ? ((request.status = 14), request.destination.destroy(error))
3968
- : ((request.status = 13), (request.fatalError = error));
4123
+ ? ((request.status = 13), request.destination.destroy(error))
4124
+ : ((request.status = 12), request.aborted || (request.fatalError = error));
3969
4125
  }
3970
4126
  function finishSuspenseListRow(request, row) {
3971
4127
  unblockSuspenseListRow(request, row.next, row.hoistables);
@@ -4085,45 +4241,48 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4085
4241
  0 === --previousSuspenseListRow.pendingTasks &&
4086
4242
  finishSuspenseListRow(request, previousSuspenseListRow);
4087
4243
  else {
4088
- revealOrder = task.blockedSegment;
4089
- resumeSlots = revealOrder.children.length;
4090
- n = revealOrder.chunks.length;
4091
- for (i = keyPath - 1; 0 <= i; i--) {
4092
- node = rows[i];
4244
+ resumeSlots = task.blockedSegment;
4245
+ n = resumeSlots.children.length;
4246
+ i = resumeSlots.chunks.length;
4247
+ for (node = 0; node < keyPath; node++) {
4248
+ resumeSegmentID =
4249
+ "unstable_legacy-backwards" === revealOrder ? keyPath - 1 - node : node;
4250
+ var node$39 = rows[resumeSegmentID];
4093
4251
  task.row = previousSuspenseListRow = createSuspenseListRow(
4094
4252
  previousSuspenseListRow
4095
4253
  );
4096
- task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
4097
- resumeSegmentID = createPendingSegment(
4254
+ task.treeContext = pushTreeContext(
4255
+ prevTreeContext,
4256
+ keyPath,
4257
+ resumeSegmentID
4258
+ );
4259
+ var newSegment = createPendingSegment(
4098
4260
  request,
4099
- n,
4261
+ i,
4100
4262
  null,
4101
4263
  task.formatContext,
4102
- 0 === i ? revealOrder.lastPushedText : !0,
4264
+ 0 === resumeSegmentID ? resumeSlots.lastPushedText : !0,
4103
4265
  !0
4104
4266
  );
4105
- revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
4106
- task.blockedSegment = resumeSegmentID;
4267
+ resumeSlots.children.splice(n, 0, newSegment);
4268
+ task.blockedSegment = newSegment;
4107
4269
  try {
4108
- renderNode(request, task, node, i),
4270
+ renderNode(request, task, node$39, resumeSegmentID),
4109
4271
  pushSegmentFinale(
4110
- resumeSegmentID.chunks,
4272
+ newSegment.chunks,
4111
4273
  request.renderState,
4112
- resumeSegmentID.lastPushedText,
4113
- resumeSegmentID.textEmbedded
4274
+ newSegment.lastPushedText,
4275
+ newSegment.textEmbedded
4114
4276
  ),
4115
- (resumeSegmentID.status = 1),
4277
+ (newSegment.status = 1),
4116
4278
  0 === --previousSuspenseListRow.pendingTasks &&
4117
4279
  finishSuspenseListRow(request, previousSuspenseListRow);
4118
4280
  } catch (thrownValue) {
4119
- throw (
4120
- ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
4121
- thrownValue)
4122
- );
4281
+ throw ((newSegment.status = request.aborted ? 3 : 4), thrownValue);
4123
4282
  }
4124
4283
  }
4125
- task.blockedSegment = revealOrder;
4126
- revealOrder.lastPushedText = !1;
4284
+ task.blockedSegment = resumeSlots;
4285
+ resumeSlots.lastPushedText = !1;
4127
4286
  }
4128
4287
  null !== prevRow &&
4129
4288
  null !== previousSuspenseListRow &&
@@ -4200,113 +4359,143 @@ function renderElement(request, task, keyPath, type, props, ref) {
4200
4359
  var defaultProps = type.defaultProps;
4201
4360
  if (defaultProps) {
4202
4361
  newProps === props && (newProps = assign({}, newProps, props));
4203
- for (var propName$43 in defaultProps)
4204
- void 0 === newProps[propName$43] &&
4205
- (newProps[propName$43] = defaultProps[propName$43]);
4362
+ for (var propName$44 in defaultProps)
4363
+ void 0 === newProps[propName$44] &&
4364
+ (newProps[propName$44] = defaultProps[propName$44]);
4206
4365
  }
4207
- props = newProps;
4208
- newProps = emptyContextObject;
4209
- defaultProps = type.contextType;
4210
- "object" === typeof defaultProps &&
4211
- null !== defaultProps &&
4212
- (newProps = defaultProps._currentValue2);
4213
- newProps = new type(props, newProps);
4214
- var initialState = void 0 !== newProps.state ? newProps.state : null;
4215
- newProps.updater = classComponentUpdater;
4216
- newProps.props = props;
4217
- newProps.state = initialState;
4218
- defaultProps = { queue: [], replace: !1 };
4219
- newProps._reactInternals = defaultProps;
4220
- ref = type.contextType;
4221
- newProps.context =
4222
- "object" === typeof ref && null !== ref
4223
- ? ref._currentValue2
4366
+ var JSCompiler_inline_result = newProps;
4367
+ var context = emptyContextObject,
4368
+ contextType = type.contextType;
4369
+ "object" === typeof contextType &&
4370
+ null !== contextType &&
4371
+ (context = contextType._currentValue2);
4372
+ var JSCompiler_inline_result$jscomp$0 = new type(
4373
+ JSCompiler_inline_result,
4374
+ context
4375
+ );
4376
+ var initialState =
4377
+ void 0 !== JSCompiler_inline_result$jscomp$0.state
4378
+ ? JSCompiler_inline_result$jscomp$0.state
4379
+ : null;
4380
+ JSCompiler_inline_result$jscomp$0.updater = classComponentUpdater;
4381
+ JSCompiler_inline_result$jscomp$0.props = JSCompiler_inline_result;
4382
+ JSCompiler_inline_result$jscomp$0.state = initialState;
4383
+ var internalInstance = { queue: [], replace: !1 };
4384
+ JSCompiler_inline_result$jscomp$0._reactInternals = internalInstance;
4385
+ var contextType$jscomp$0 = type.contextType;
4386
+ JSCompiler_inline_result$jscomp$0.context =
4387
+ "object" === typeof contextType$jscomp$0 &&
4388
+ null !== contextType$jscomp$0
4389
+ ? contextType$jscomp$0._currentValue2
4224
4390
  : emptyContextObject;
4225
- ref = type.getDerivedStateFromProps;
4226
- "function" === typeof ref &&
4227
- ((ref = ref(props, initialState)),
4228
- (initialState =
4229
- null === ref || void 0 === ref
4391
+ var getDerivedStateFromProps = type.getDerivedStateFromProps;
4392
+ if ("function" === typeof getDerivedStateFromProps) {
4393
+ var partialState = getDerivedStateFromProps(
4394
+ JSCompiler_inline_result,
4395
+ initialState
4396
+ );
4397
+ var JSCompiler_inline_result$jscomp$1 =
4398
+ null === partialState || void 0 === partialState
4230
4399
  ? initialState
4231
- : assign({}, initialState, ref)),
4232
- (newProps.state = initialState));
4400
+ : assign({}, initialState, partialState);
4401
+ JSCompiler_inline_result$jscomp$0.state =
4402
+ JSCompiler_inline_result$jscomp$1;
4403
+ }
4233
4404
  if (
4234
4405
  "function" !== typeof type.getDerivedStateFromProps &&
4235
- "function" !== typeof newProps.getSnapshotBeforeUpdate &&
4236
- ("function" === typeof newProps.UNSAFE_componentWillMount ||
4237
- "function" === typeof newProps.componentWillMount)
4238
- )
4406
+ "function" !==
4407
+ typeof JSCompiler_inline_result$jscomp$0.getSnapshotBeforeUpdate &&
4408
+ ("function" ===
4409
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount ||
4410
+ "function" ===
4411
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount)
4412
+ ) {
4413
+ var oldState = JSCompiler_inline_result$jscomp$0.state;
4414
+ "function" ===
4415
+ typeof JSCompiler_inline_result$jscomp$0.componentWillMount &&
4416
+ JSCompiler_inline_result$jscomp$0.componentWillMount();
4417
+ "function" ===
4418
+ typeof JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount &&
4419
+ JSCompiler_inline_result$jscomp$0.UNSAFE_componentWillMount();
4420
+ oldState !== JSCompiler_inline_result$jscomp$0.state &&
4421
+ classComponentUpdater.enqueueReplaceState(
4422
+ JSCompiler_inline_result$jscomp$0,
4423
+ JSCompiler_inline_result$jscomp$0.state,
4424
+ null
4425
+ );
4239
4426
  if (
4240
- ((type = newProps.state),
4241
- "function" === typeof newProps.componentWillMount &&
4242
- newProps.componentWillMount(),
4243
- "function" === typeof newProps.UNSAFE_componentWillMount &&
4244
- newProps.UNSAFE_componentWillMount(),
4245
- type !== newProps.state &&
4246
- classComponentUpdater.enqueueReplaceState(
4247
- newProps,
4248
- newProps.state,
4249
- null
4250
- ),
4251
- null !== defaultProps.queue && 0 < defaultProps.queue.length)
4252
- )
4253
- if (
4254
- ((type = defaultProps.queue),
4255
- (ref = defaultProps.replace),
4256
- (defaultProps.queue = null),
4257
- (defaultProps.replace = !1),
4258
- ref && 1 === type.length)
4259
- )
4260
- newProps.state = type[0];
4427
+ null !== internalInstance.queue &&
4428
+ 0 < internalInstance.queue.length
4429
+ ) {
4430
+ var oldQueue = internalInstance.queue,
4431
+ oldReplace = internalInstance.replace;
4432
+ internalInstance.queue = null;
4433
+ internalInstance.replace = !1;
4434
+ if (oldReplace && 1 === oldQueue.length)
4435
+ JSCompiler_inline_result$jscomp$0.state = oldQueue[0];
4261
4436
  else {
4262
- defaultProps = ref ? type[0] : newProps.state;
4263
- initialState = !0;
4264
- for (ref = ref ? 1 : 0; ref < type.length; ref++)
4265
- (propName$43 = type[ref]),
4266
- (propName$43 =
4267
- "function" === typeof propName$43
4268
- ? propName$43.call(newProps, defaultProps, props, void 0)
4269
- : propName$43),
4270
- null != propName$43 &&
4271
- (initialState
4272
- ? ((initialState = !1),
4273
- (defaultProps = assign({}, defaultProps, propName$43)))
4274
- : assign(defaultProps, propName$43));
4275
- newProps.state = defaultProps;
4437
+ for (
4438
+ var nextState = oldReplace
4439
+ ? oldQueue[0]
4440
+ : JSCompiler_inline_result$jscomp$0.state,
4441
+ dontMutate = !0,
4442
+ i = oldReplace ? 1 : 0;
4443
+ i < oldQueue.length;
4444
+ i++
4445
+ ) {
4446
+ var partial = oldQueue[i],
4447
+ partialState$jscomp$0 =
4448
+ "function" === typeof partial
4449
+ ? partial.call(
4450
+ JSCompiler_inline_result$jscomp$0,
4451
+ nextState,
4452
+ JSCompiler_inline_result,
4453
+ void 0
4454
+ )
4455
+ : partial;
4456
+ null != partialState$jscomp$0 &&
4457
+ (dontMutate
4458
+ ? ((dontMutate = !1),
4459
+ (nextState = assign({}, nextState, partialState$jscomp$0)))
4460
+ : assign(nextState, partialState$jscomp$0));
4461
+ }
4462
+ JSCompiler_inline_result$jscomp$0.state = nextState;
4276
4463
  }
4277
- else defaultProps.queue = null;
4278
- type = newProps.render();
4279
- if (12 === request.status) throw null;
4280
- props = task.keyPath;
4464
+ } else internalInstance.queue = null;
4465
+ }
4466
+ var nextChildren = JSCompiler_inline_result$jscomp$0.render();
4467
+ if (request.aborted) throw null;
4468
+ var prevKeyPath = task.keyPath;
4281
4469
  task.keyPath = keyPath;
4282
- renderNodeDestructive(request, task, type, -1);
4283
- task.keyPath = props;
4470
+ renderNodeDestructive(request, task, nextChildren, -1);
4471
+ task.keyPath = prevKeyPath;
4284
4472
  } else {
4285
- type = renderWithHooks(request, task, keyPath, type, props, void 0);
4286
- if (12 === request.status) throw null;
4473
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
4474
+ if (request.aborted) throw null;
4287
4475
  finishFunctionComponent(
4288
4476
  request,
4289
4477
  task,
4290
4478
  keyPath,
4291
- type,
4479
+ value,
4292
4480
  0 !== localIdCounter,
4293
4481
  actionStateCounter,
4294
4482
  actionStateMatchingIndex
4295
4483
  );
4296
4484
  }
4297
- else if ("string" === typeof type)
4298
- if (((newProps = task.blockedSegment), null === newProps))
4299
- (newProps = props.children),
4300
- (defaultProps = task.formatContext),
4301
- (initialState = task.keyPath),
4302
- (task.formatContext = getChildFormatContext(defaultProps, type, props)),
4303
- (task.keyPath = keyPath),
4304
- renderNode(request, task, newProps, -1),
4305
- (task.formatContext = defaultProps),
4306
- (task.keyPath = initialState);
4307
- else {
4308
- initialState = pushStartInstance(
4309
- newProps.chunks,
4485
+ else if ("string" === typeof type) {
4486
+ var segment = task.blockedSegment;
4487
+ if (null === segment) {
4488
+ var children = props.children,
4489
+ prevContext = task.formatContext,
4490
+ prevKeyPath$jscomp$0 = task.keyPath;
4491
+ task.formatContext = getChildFormatContext(prevContext, type, props);
4492
+ task.keyPath = keyPath;
4493
+ renderNode(request, task, children, -1);
4494
+ task.formatContext = prevContext;
4495
+ task.keyPath = prevKeyPath$jscomp$0;
4496
+ } else {
4497
+ var children$41 = pushStartInstance(
4498
+ segment.chunks,
4310
4499
  type,
4311
4500
  props,
4312
4501
  request.resumableState,
@@ -4314,18 +4503,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
4314
4503
  task.blockedPreamble,
4315
4504
  task.hoistableState,
4316
4505
  task.formatContext,
4317
- newProps.lastPushedText
4506
+ segment.lastPushedText
4318
4507
  );
4319
- newProps.lastPushedText = !1;
4320
- defaultProps = task.formatContext;
4321
- ref = task.keyPath;
4508
+ segment.lastPushedText = !1;
4509
+ var prevContext$42 = task.formatContext,
4510
+ prevKeyPath$43 = task.keyPath;
4322
4511
  task.keyPath = keyPath;
4323
4512
  if (
4324
4513
  3 ===
4325
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4326
- .insertionMode
4514
+ (task.formatContext = getChildFormatContext(
4515
+ prevContext$42,
4516
+ type,
4517
+ props
4518
+ )).insertionMode
4327
4519
  ) {
4328
- keyPath = createPendingSegment(
4520
+ var preambleSegment = createPendingSegment(
4329
4521
  request,
4330
4522
  0,
4331
4523
  null,
@@ -4333,27 +4525,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
4333
4525
  !1,
4334
4526
  !1
4335
4527
  );
4336
- newProps.preambleChildren.push(keyPath);
4337
- task.blockedSegment = keyPath;
4528
+ segment.preambleChildren.push(preambleSegment);
4529
+ task.blockedSegment = preambleSegment;
4338
4530
  try {
4339
- (keyPath.status = 6),
4340
- renderNode(request, task, initialState, -1),
4531
+ renderNode(request, task, children$41, -1),
4341
4532
  pushSegmentFinale(
4342
- keyPath.chunks,
4533
+ preambleSegment.chunks,
4343
4534
  request.renderState,
4344
- keyPath.lastPushedText,
4345
- keyPath.textEmbedded
4535
+ preambleSegment.lastPushedText,
4536
+ preambleSegment.textEmbedded
4346
4537
  ),
4347
- (keyPath.status = 1);
4538
+ (preambleSegment.status = 1);
4348
4539
  } finally {
4349
- task.blockedSegment = newProps;
4540
+ task.blockedSegment = segment;
4350
4541
  }
4351
- } else renderNode(request, task, initialState, -1);
4352
- task.formatContext = defaultProps;
4353
- task.keyPath = ref;
4542
+ } else renderNode(request, task, children$41, -1);
4543
+ task.formatContext = prevContext$42;
4544
+ task.keyPath = prevKeyPath$43;
4354
4545
  a: {
4355
- task = newProps.chunks;
4356
- request = request.resumableState;
4546
+ var target = segment.chunks,
4547
+ resumableState = request.resumableState;
4357
4548
  switch (type) {
4358
4549
  case "title":
4359
4550
  case "style":
@@ -4375,152 +4566,185 @@ function renderElement(request, task, keyPath, type, props, ref) {
4375
4566
  case "wbr":
4376
4567
  break a;
4377
4568
  case "body":
4378
- if (1 >= defaultProps.insertionMode) {
4379
- request.hasBody = !0;
4569
+ if (1 >= prevContext$42.insertionMode) {
4570
+ resumableState.hasBody = !0;
4380
4571
  break a;
4381
4572
  }
4382
4573
  break;
4383
4574
  case "html":
4384
- if (0 === defaultProps.insertionMode) {
4385
- request.hasHtml = !0;
4575
+ if (0 === prevContext$42.insertionMode) {
4576
+ resumableState.hasHtml = !0;
4386
4577
  break a;
4387
4578
  }
4388
4579
  break;
4389
4580
  case "head":
4390
- if (1 >= defaultProps.insertionMode) break a;
4581
+ if (1 >= prevContext$42.insertionMode) break a;
4391
4582
  }
4392
- task.push(endChunkForTag(type));
4583
+ target.push(endChunkForTag(type));
4393
4584
  }
4394
- newProps.lastPushedText = !1;
4585
+ segment.lastPushedText = !1;
4395
4586
  }
4396
- else {
4587
+ } else {
4397
4588
  switch (type) {
4398
4589
  case REACT_LEGACY_HIDDEN_TYPE:
4399
4590
  case REACT_STRICT_MODE_TYPE:
4400
4591
  case REACT_PROFILER_TYPE:
4401
4592
  case REACT_FRAGMENT_TYPE:
4402
- type = task.keyPath;
4593
+ var prevKeyPath$jscomp$1 = task.keyPath;
4403
4594
  task.keyPath = keyPath;
4404
4595
  renderNodeDestructive(request, task, props.children, -1);
4405
- task.keyPath = type;
4596
+ task.keyPath = prevKeyPath$jscomp$1;
4406
4597
  return;
4407
4598
  case REACT_ACTIVITY_TYPE:
4408
- type = task.blockedSegment;
4409
- null === type
4410
- ? "hidden" !== props.mode &&
4411
- ((type = task.keyPath),
4412
- (task.keyPath = keyPath),
4413
- renderNode(request, task, props.children, -1),
4414
- (task.keyPath = type))
4415
- : "hidden" !== props.mode &&
4416
- (request.renderState.generateStaticMarkup ||
4417
- type.chunks.push("\x3c!--&--\x3e"),
4418
- (type.lastPushedText = !1),
4419
- (newProps = task.keyPath),
4420
- (task.keyPath = keyPath),
4421
- renderNode(request, task, props.children, -1),
4422
- (task.keyPath = newProps),
4423
- request.renderState.generateStaticMarkup ||
4424
- type.chunks.push("\x3c!--/&--\x3e"),
4425
- (type.lastPushedText = !1));
4599
+ var segment$jscomp$0 = task.blockedSegment;
4600
+ if (null === segment$jscomp$0) {
4601
+ if ("hidden" !== props.mode) {
4602
+ var prevKeyPath$jscomp$2 = task.keyPath;
4603
+ task.keyPath = keyPath;
4604
+ renderNode(request, task, props.children, -1);
4605
+ task.keyPath = prevKeyPath$jscomp$2;
4606
+ }
4607
+ } else if ("hidden" !== props.mode) {
4608
+ request.renderState.generateStaticMarkup ||
4609
+ segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
4610
+ segment$jscomp$0.lastPushedText = !1;
4611
+ var prevKeyPath$46 = task.keyPath;
4612
+ task.keyPath = keyPath;
4613
+ renderNode(request, task, props.children, -1);
4614
+ task.keyPath = prevKeyPath$46;
4615
+ request.renderState.generateStaticMarkup ||
4616
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
4617
+ segment$jscomp$0.lastPushedText = !1;
4618
+ }
4426
4619
  return;
4427
4620
  case REACT_SUSPENSE_LIST_TYPE:
4428
4621
  a: {
4429
- type = props.children;
4430
- props = props.revealOrder;
4431
- if (
4432
- "forwards" === props ||
4433
- "backwards" === props ||
4434
- "unstable_legacy-backwards" === props
4435
- ) {
4436
- if (isArrayImpl(type)) {
4437
- renderSuspenseListRows(request, task, keyPath, type, props);
4622
+ var children$jscomp$0 = props.children,
4623
+ revealOrder = props.revealOrder;
4624
+ if ("independent" !== revealOrder && "together" !== revealOrder) {
4625
+ if (isArrayImpl(children$jscomp$0)) {
4626
+ renderSuspenseListRows(
4627
+ request,
4628
+ task,
4629
+ keyPath,
4630
+ children$jscomp$0,
4631
+ revealOrder
4632
+ );
4438
4633
  break a;
4439
4634
  }
4440
- if ((newProps = getIteratorFn(type)))
4441
- if ((newProps = newProps.call(type))) {
4442
- defaultProps = newProps.next();
4443
- if (!defaultProps.done) {
4444
- do defaultProps = newProps.next();
4445
- while (!defaultProps.done);
4446
- renderSuspenseListRows(request, task, keyPath, type, props);
4635
+ var iteratorFn = getIteratorFn(children$jscomp$0);
4636
+ if (iteratorFn) {
4637
+ var iterator = iteratorFn.call(children$jscomp$0);
4638
+ if (iterator) {
4639
+ var step = iterator.next();
4640
+ if (!step.done) {
4641
+ do step = iterator.next();
4642
+ while (!step.done);
4643
+ renderSuspenseListRows(
4644
+ request,
4645
+ task,
4646
+ keyPath,
4647
+ children$jscomp$0,
4648
+ revealOrder
4649
+ );
4447
4650
  }
4448
4651
  break a;
4449
4652
  }
4653
+ }
4654
+ }
4655
+ if ("together" === revealOrder) {
4656
+ var prevKeyPath$40 = task.keyPath,
4657
+ prevRow = task.row,
4658
+ newRow = (task.row = createSuspenseListRow(null));
4659
+ newRow.boundaries = [];
4660
+ newRow.together = !0;
4661
+ task.keyPath = keyPath;
4662
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4663
+ 0 === --newRow.pendingTasks &&
4664
+ finishSuspenseListRow(request, newRow);
4665
+ task.keyPath = prevKeyPath$40;
4666
+ task.row = prevRow;
4667
+ null !== prevRow &&
4668
+ 0 < newRow.pendingTasks &&
4669
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
4670
+ } else {
4671
+ var prevKeyPath$jscomp$3 = task.keyPath;
4672
+ task.keyPath = keyPath;
4673
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
4674
+ task.keyPath = prevKeyPath$jscomp$3;
4450
4675
  }
4451
- "together" === props
4452
- ? ((props = task.keyPath),
4453
- (newProps = task.row),
4454
- (defaultProps = task.row = createSuspenseListRow(null)),
4455
- (defaultProps.boundaries = []),
4456
- (defaultProps.together = !0),
4457
- (task.keyPath = keyPath),
4458
- renderNodeDestructive(request, task, type, -1),
4459
- 0 === --defaultProps.pendingTasks &&
4460
- finishSuspenseListRow(request, defaultProps),
4461
- (task.keyPath = props),
4462
- (task.row = newProps),
4463
- null !== newProps &&
4464
- 0 < defaultProps.pendingTasks &&
4465
- (newProps.pendingTasks++, (defaultProps.next = newProps)))
4466
- : ((props = task.keyPath),
4467
- (task.keyPath = keyPath),
4468
- renderNodeDestructive(request, task, type, -1),
4469
- (task.keyPath = props));
4470
4676
  }
4471
4677
  return;
4472
4678
  case REACT_VIEW_TRANSITION_TYPE:
4679
+ var prevContext$jscomp$0 = task.formatContext,
4680
+ prevKeyPath$jscomp$4 = task.keyPath;
4681
+ var resumableState$jscomp$0 = request.resumableState;
4682
+ if (null == props.name || "auto" === props.name) {
4683
+ var treeId = getTreeId(task.treeContext);
4684
+ makeId(resumableState$jscomp$0, treeId, 0);
4685
+ }
4686
+ task.formatContext = prevContext$jscomp$0;
4687
+ task.keyPath = keyPath;
4688
+ if (null != props.name && "auto" !== props.name)
4689
+ renderNodeDestructive(request, task, props.children, -1);
4690
+ else {
4691
+ var prevTreeContext = task.treeContext;
4692
+ task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
4693
+ renderNode(request, task, props.children, -1);
4694
+ task.treeContext = prevTreeContext;
4695
+ }
4696
+ task.formatContext = prevContext$jscomp$0;
4697
+ task.keyPath = prevKeyPath$jscomp$4;
4698
+ return;
4473
4699
  case REACT_SCOPE_TYPE:
4474
4700
  throw Error(formatProdErrorMessage(343));
4475
4701
  case REACT_SUSPENSE_TYPE:
4476
4702
  a: if (null !== task.replay) {
4477
- type = task.keyPath;
4478
- newProps = task.formatContext;
4479
- defaultProps = task.row;
4703
+ var prevKeyPath$26 = task.keyPath,
4704
+ prevContext$27 = task.formatContext,
4705
+ prevRow$28 = task.row;
4480
4706
  task.keyPath = keyPath;
4481
4707
  task.formatContext = getSuspenseContentFormatContext(
4482
4708
  request.resumableState,
4483
- newProps
4709
+ prevContext$27
4484
4710
  );
4485
4711
  task.row = null;
4486
- keyPath = props.children;
4712
+ var content$29 = props.children;
4487
4713
  try {
4488
- renderNode(request, task, keyPath, -1);
4714
+ renderNode(request, task, content$29, -1);
4489
4715
  } finally {
4490
- (task.keyPath = type),
4491
- (task.formatContext = newProps),
4492
- (task.row = defaultProps);
4716
+ (task.keyPath = prevKeyPath$26),
4717
+ (task.formatContext = prevContext$27),
4718
+ (task.row = prevRow$28);
4493
4719
  }
4494
4720
  } else {
4495
- type = task.keyPath;
4496
- ref = task.formatContext;
4497
- var prevRow = task.row,
4498
- parentBoundary = task.blockedBoundary;
4499
- propName$43 = task.blockedPreamble;
4500
- var parentHoistableState = task.hoistableState;
4501
- propName = task.blockedSegment;
4502
- var fallback = props.fallback;
4503
- props = props.children;
4504
- var fallbackAbortSet = new Set();
4505
- var newBoundary = createSuspenseBoundary(
4506
- request,
4507
- task.row,
4508
- fallbackAbortSet,
4509
- null,
4510
- null
4511
- );
4512
- null !== request.trackedPostpones &&
4513
- (newBoundary.trackedContentKeyPath = keyPath);
4514
- var boundarySegment = createPendingSegment(
4515
- request,
4516
- propName.chunks.length,
4517
- newBoundary,
4518
- task.formatContext,
4519
- !1,
4520
- !1
4521
- );
4522
- propName.children.push(boundarySegment);
4523
- propName.lastPushedText = !1;
4721
+ var prevKeyPath$jscomp$5 = task.keyPath,
4722
+ prevContext$jscomp$1 = task.formatContext,
4723
+ prevRow$jscomp$0 = task.row,
4724
+ parentBoundary = task.blockedBoundary,
4725
+ parentPreamble = task.blockedPreamble,
4726
+ parentHoistableState = task.hoistableState,
4727
+ parentSegment = task.blockedSegment,
4728
+ fallback = props.fallback,
4729
+ content = props.children,
4730
+ fallbackAbortSet = new Set(),
4731
+ newBoundary = createSuspenseBoundary(
4732
+ request,
4733
+ task.row,
4734
+ fallbackAbortSet,
4735
+ null,
4736
+ !1
4737
+ ),
4738
+ boundarySegment = createPendingSegment(
4739
+ request,
4740
+ parentSegment.chunks.length,
4741
+ newBoundary,
4742
+ task.formatContext,
4743
+ !1,
4744
+ !1
4745
+ );
4746
+ parentSegment.children.push(boundarySegment);
4747
+ parentSegment.lastPushedText = !1;
4524
4748
  var contentRootSegment = createPendingSegment(
4525
4749
  request,
4526
4750
  0,
@@ -4530,22 +4754,40 @@ function renderElement(request, task, keyPath, type, props, ref) {
4530
4754
  !1
4531
4755
  );
4532
4756
  contentRootSegment.parentFlushed = !0;
4533
- if (null !== request.trackedPostpones) {
4534
- newProps = task.componentStack;
4535
- defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4536
- initialState = [defaultProps[1], defaultProps[2], [], null];
4537
- request.trackedPostpones.workingMap.set(defaultProps, initialState);
4538
- newBoundary.trackedFallbackNode = initialState;
4757
+ var trackedPostpones = request.trackedPostpones;
4758
+ if (null !== trackedPostpones) {
4759
+ var suspenseComponentStack = task.componentStack,
4760
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]];
4761
+ if (null !== trackedPostpones) {
4762
+ var fallbackReplayNode = [
4763
+ fallbackKeyPath[1],
4764
+ fallbackKeyPath[2],
4765
+ [],
4766
+ null
4767
+ ];
4768
+ trackedPostpones.workingMap.set(
4769
+ fallbackKeyPath,
4770
+ fallbackReplayNode
4771
+ );
4772
+ newBoundary.tracked = {
4773
+ contentKeyPath: keyPath,
4774
+ fallbackNode: fallbackReplayNode
4775
+ };
4776
+ }
4539
4777
  task.blockedSegment = boundarySegment;
4540
- task.blockedPreamble = newBoundary.fallbackPreamble;
4541
- task.keyPath = defaultProps;
4778
+ task.blockedPreamble =
4779
+ null === newBoundary.preamble
4780
+ ? null
4781
+ : newBoundary.preamble.fallback;
4782
+ task.keyPath = fallbackKeyPath;
4542
4783
  task.formatContext = getSuspenseFallbackFormatContext(
4543
4784
  request.resumableState,
4544
- ref
4785
+ prevContext$jscomp$1
4545
4786
  );
4546
4787
  task.componentStack =
4547
- replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4548
- boundarySegment.status = 6;
4788
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4789
+ suspenseComponentStack
4790
+ );
4549
4791
  try {
4550
4792
  renderNode(request, task, fallback, -1),
4551
4793
  pushSegmentFinale(
@@ -4557,23 +4799,25 @@ function renderElement(request, task, keyPath, type, props, ref) {
4557
4799
  (boundarySegment.status = 1);
4558
4800
  } catch (thrownValue) {
4559
4801
  throw (
4560
- ((boundarySegment.status = 12 === request.status ? 3 : 4),
4802
+ ((boundarySegment.status = request.aborted ? 3 : 4),
4561
4803
  thrownValue)
4562
4804
  );
4563
4805
  } finally {
4564
- (task.blockedSegment = propName),
4565
- (task.blockedPreamble = propName$43),
4566
- (task.keyPath = type),
4567
- (task.formatContext = ref);
4806
+ (task.blockedSegment = parentSegment),
4807
+ (task.blockedPreamble = parentPreamble),
4808
+ (task.keyPath = prevKeyPath$jscomp$5),
4809
+ (task.formatContext = prevContext$jscomp$1);
4568
4810
  }
4569
- task = createRenderTask(
4811
+ var suspendedPrimaryTask = createRenderTask(
4570
4812
  request,
4571
4813
  null,
4572
- props,
4814
+ content,
4573
4815
  -1,
4574
4816
  newBoundary,
4575
4817
  contentRootSegment,
4576
- newBoundary.contentPreamble,
4818
+ null === newBoundary.preamble
4819
+ ? null
4820
+ : newBoundary.preamble.content,
4577
4821
  newBoundary.contentState,
4578
4822
  task.abortSet,
4579
4823
  keyPath,
@@ -4584,25 +4828,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
4584
4828
  task.context,
4585
4829
  task.treeContext,
4586
4830
  null,
4587
- newProps
4831
+ suspenseComponentStack
4588
4832
  );
4589
- pushComponentStack(task);
4590
- request.pingedTasks.push(task);
4833
+ pushComponentStack(suspendedPrimaryTask);
4834
+ request.pingedTasks.push(suspendedPrimaryTask);
4591
4835
  } else {
4592
4836
  task.blockedBoundary = newBoundary;
4593
- task.blockedPreamble = newBoundary.contentPreamble;
4837
+ task.blockedPreamble =
4838
+ null === newBoundary.preamble
4839
+ ? null
4840
+ : newBoundary.preamble.content;
4594
4841
  task.hoistableState = newBoundary.contentState;
4595
4842
  task.blockedSegment = contentRootSegment;
4596
4843
  task.keyPath = keyPath;
4597
4844
  task.formatContext = getSuspenseContentFormatContext(
4598
4845
  request.resumableState,
4599
- ref
4846
+ prevContext$jscomp$1
4600
4847
  );
4601
4848
  task.row = null;
4602
- contentRootSegment.status = 6;
4603
4849
  try {
4604
4850
  if (
4605
- (renderNode(request, task, props, -1),
4851
+ (renderNode(request, task, content, -1),
4606
4852
  pushSegmentFinale(
4607
4853
  contentRootSegment.chunks,
4608
4854
  request.renderState,
@@ -4617,50 +4863,47 @@ function renderElement(request, task, keyPath, type, props, ref) {
4617
4863
  ((newBoundary.status = 1),
4618
4864
  !isEligibleForOutlining(request, newBoundary))
4619
4865
  ) {
4620
- null !== prevRow &&
4621
- 0 === --prevRow.pendingTasks &&
4622
- finishSuspenseListRow(request, prevRow);
4866
+ null !== prevRow$jscomp$0 &&
4867
+ 0 === --prevRow$jscomp$0.pendingTasks &&
4868
+ finishSuspenseListRow(request, prevRow$jscomp$0);
4623
4869
  0 === request.pendingRootTasks &&
4624
4870
  task.blockedPreamble &&
4625
4871
  preparePreamble(request);
4626
4872
  break a;
4627
4873
  }
4628
4874
  } else
4629
- null !== prevRow &&
4630
- prevRow.together &&
4631
- tryToResolveTogetherRow(request, prevRow);
4875
+ null !== prevRow$jscomp$0 &&
4876
+ prevRow$jscomp$0.together &&
4877
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
4632
4878
  } catch (thrownValue$30) {
4633
- (newBoundary.status = 4),
4634
- 12 === request.status
4635
- ? ((contentRootSegment.status = 3),
4636
- (newProps = request.fatalError))
4637
- : ((contentRootSegment.status = 4),
4638
- (newProps = thrownValue$30)),
4639
- (defaultProps = getThrownInfo(task.componentStack)),
4640
- (initialState = logRecoverableError(
4641
- request,
4642
- newProps,
4643
- defaultProps
4644
- )),
4645
- (newBoundary.errorDigest = initialState),
4646
- untrackBoundary(request, newBoundary);
4879
+ newBoundary.status = 4;
4880
+ if (request.aborted) {
4881
+ contentRootSegment.status = 3;
4882
+ var error = request.fatalError;
4883
+ } else (contentRootSegment.status = 4), (error = thrownValue$30);
4884
+ var thrownInfo = getThrownInfo(task.componentStack),
4885
+ errorDigest = logRecoverableError(request, error, thrownInfo);
4886
+ newBoundary.errorDigest = errorDigest;
4887
+ untrackBoundary(request, newBoundary);
4647
4888
  } finally {
4648
4889
  (task.blockedBoundary = parentBoundary),
4649
- (task.blockedPreamble = propName$43),
4890
+ (task.blockedPreamble = parentPreamble),
4650
4891
  (task.hoistableState = parentHoistableState),
4651
- (task.blockedSegment = propName),
4652
- (task.keyPath = type),
4653
- (task.formatContext = ref),
4654
- (task.row = prevRow);
4892
+ (task.blockedSegment = parentSegment),
4893
+ (task.keyPath = prevKeyPath$jscomp$5),
4894
+ (task.formatContext = prevContext$jscomp$1),
4895
+ (task.row = prevRow$jscomp$0);
4655
4896
  }
4656
- task = createRenderTask(
4897
+ var suspendedFallbackTask = createRenderTask(
4657
4898
  request,
4658
4899
  null,
4659
4900
  fallback,
4660
4901
  -1,
4661
4902
  parentBoundary,
4662
4903
  boundarySegment,
4663
- newBoundary.fallbackPreamble,
4904
+ null === newBoundary.preamble
4905
+ ? null
4906
+ : newBoundary.preamble.fallback,
4664
4907
  newBoundary.fallbackState,
4665
4908
  fallbackAbortSet,
4666
4909
  [keyPath[0], "Suspense Fallback", keyPath[2]],
@@ -4675,8 +4918,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4675
4918
  task.componentStack
4676
4919
  )
4677
4920
  );
4678
- pushComponentStack(task);
4679
- request.pingedTasks.push(task);
4921
+ pushComponentStack(suspendedFallbackTask);
4922
+ request.pingedTasks.push(suspendedFallbackTask);
4680
4923
  }
4681
4924
  }
4682
4925
  return;
@@ -4684,23 +4927,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
4684
4927
  if ("object" === typeof type && null !== type)
4685
4928
  switch (type.$$typeof) {
4686
4929
  case REACT_FORWARD_REF_TYPE:
4687
- if ("ref" in props)
4688
- for (fallback in ((newProps = {}), props))
4689
- "ref" !== fallback && (newProps[fallback] = props[fallback]);
4690
- else newProps = props;
4691
- type = renderWithHooks(
4930
+ if ("ref" in props) {
4931
+ var propsWithoutRef = {};
4932
+ for (var key in props)
4933
+ "ref" !== key && (propsWithoutRef[key] = props[key]);
4934
+ } else propsWithoutRef = props;
4935
+ var children$jscomp$1 = renderWithHooks(
4692
4936
  request,
4693
4937
  task,
4694
4938
  keyPath,
4695
4939
  type.render,
4696
- newProps,
4940
+ propsWithoutRef,
4697
4941
  ref
4698
4942
  );
4699
4943
  finishFunctionComponent(
4700
4944
  request,
4701
4945
  task,
4702
4946
  keyPath,
4703
- type,
4947
+ children$jscomp$1,
4704
4948
  0 !== localIdCounter,
4705
4949
  actionStateCounter,
4706
4950
  actionStateMatchingIndex
@@ -4710,42 +4954,44 @@ function renderElement(request, task, keyPath, type, props, ref) {
4710
4954
  renderElement(request, task, keyPath, type.type, props, ref);
4711
4955
  return;
4712
4956
  case REACT_CONTEXT_TYPE:
4713
- defaultProps = props.children;
4714
- newProps = task.keyPath;
4715
- props = props.value;
4716
- initialState = type._currentValue2;
4717
- type._currentValue2 = props;
4718
- ref = currentActiveSnapshot;
4719
- currentActiveSnapshot = type = {
4720
- parent: ref,
4721
- depth: null === ref ? 0 : ref.depth + 1,
4722
- context: type,
4723
- parentValue: initialState,
4724
- value: props
4725
- };
4726
- task.context = type;
4957
+ var children$jscomp$2 = props.children,
4958
+ prevKeyPath$jscomp$6 = task.keyPath,
4959
+ nextValue = props.value;
4960
+ var prevValue = type._currentValue2;
4961
+ type._currentValue2 = nextValue;
4962
+ var prevNode = currentActiveSnapshot,
4963
+ newNode = {
4964
+ parent: prevNode,
4965
+ depth: null === prevNode ? 0 : prevNode.depth + 1,
4966
+ context: type,
4967
+ parentValue: prevValue,
4968
+ value: nextValue
4969
+ };
4970
+ currentActiveSnapshot = newNode;
4971
+ task.context = newNode;
4727
4972
  task.keyPath = keyPath;
4728
- renderNodeDestructive(request, task, defaultProps, -1);
4729
- request = currentActiveSnapshot;
4730
- if (null === request) throw Error(formatProdErrorMessage(403));
4731
- request.context._currentValue2 = request.parentValue;
4732
- request = currentActiveSnapshot = request.parent;
4733
- task.context = request;
4734
- task.keyPath = newProps;
4973
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
4974
+ var prevSnapshot = currentActiveSnapshot;
4975
+ if (null === prevSnapshot) throw Error(formatProdErrorMessage(403));
4976
+ prevSnapshot.context._currentValue2 = prevSnapshot.parentValue;
4977
+ var JSCompiler_inline_result$jscomp$2 = (currentActiveSnapshot =
4978
+ prevSnapshot.parent);
4979
+ task.context = JSCompiler_inline_result$jscomp$2;
4980
+ task.keyPath = prevKeyPath$jscomp$6;
4735
4981
  return;
4736
4982
  case REACT_CONSUMER_TYPE:
4737
- props = props.children;
4738
- type = props(type._context._currentValue2);
4739
- props = task.keyPath;
4983
+ var render = props.children,
4984
+ newChildren = render(type._context._currentValue2),
4985
+ prevKeyPath$jscomp$7 = task.keyPath;
4740
4986
  task.keyPath = keyPath;
4741
- renderNodeDestructive(request, task, type, -1);
4742
- task.keyPath = props;
4987
+ renderNodeDestructive(request, task, newChildren, -1);
4988
+ task.keyPath = prevKeyPath$jscomp$7;
4743
4989
  return;
4744
4990
  case REACT_LAZY_TYPE:
4745
- newProps = type._init;
4746
- type = newProps(type._payload);
4747
- if (12 === request.status) throw null;
4748
- renderElement(request, task, keyPath, type, props, ref);
4991
+ var init = type._init;
4992
+ var Component = init(type._payload);
4993
+ if (request.aborted) throw null;
4994
+ renderElement(request, task, keyPath, Component, props, ref);
4749
4995
  return;
4750
4996
  }
4751
4997
  throw Error(
@@ -4804,7 +5050,11 @@ function retryNode(request, task) {
4804
5050
  var ref = void 0 !== node ? node : null,
4805
5051
  name = getComponentNameFromType(type),
4806
5052
  keyOrIndex =
4807
- null == key ? (-1 === childIndex ? 0 : childIndex) : key;
5053
+ null == key || key === REACT_OPTIMISTIC_KEY
5054
+ ? -1 === childIndex
5055
+ ? 0
5056
+ : childIndex
5057
+ : key;
4808
5058
  key = [task.keyPath, name, keyOrIndex];
4809
5059
  if (null !== task.replay)
4810
5060
  a: {
@@ -4818,12 +5068,12 @@ function retryNode(request, task) {
4818
5068
  throw Error(
4819
5069
  formatProdErrorMessage(490, node$jscomp$0[0], name)
4820
5070
  );
4821
- var childNodes = node$jscomp$0[2];
4822
- name = node$jscomp$0[3];
4823
- keyOrIndex = task.node;
5071
+ var childNodes = node$jscomp$0[2],
5072
+ childSlots = node$jscomp$0[3],
5073
+ currentNode = task.node;
4824
5074
  task.replay = {
4825
5075
  nodes: childNodes,
4826
- slots: name,
5076
+ slots: childSlots,
4827
5077
  pendingTasks: 1
4828
5078
  };
4829
5079
  try {
@@ -4839,27 +5089,28 @@ function retryNode(request, task) {
4839
5089
  "object" === typeof x &&
4840
5090
  null !== x &&
4841
5091
  (x === SuspenseException ||
4842
- "function" === typeof x.then)
5092
+ "function" === typeof x.then ||
5093
+ "Maximum call stack size exceeded" === x.message)
4843
5094
  )
4844
5095
  throw (
4845
- (task.node === keyOrIndex
5096
+ (task.node === currentNode
4846
5097
  ? (task.replay = replay)
4847
5098
  : childIndex.splice(node, 1),
4848
5099
  x)
4849
5100
  );
4850
5101
  task.replay.pendingTasks--;
4851
- props = getThrownInfo(task.componentStack);
4852
- key = request;
4853
- request = task.blockedBoundary;
4854
- type = x;
4855
- props = logRecoverableError(key, type, props);
5102
+ key = getThrownInfo(task.componentStack);
5103
+ currentNode = request;
5104
+ props = task.blockedBoundary;
5105
+ request = request.aborted ? request.fatalError : x;
5106
+ key = logRecoverableError(currentNode, request, key);
4856
5107
  abortRemainingReplayNodes(
4857
- key,
4858
- request,
5108
+ currentNode,
5109
+ props,
4859
5110
  childNodes,
4860
- name,
4861
- type,
4862
- props
5111
+ childSlots,
5112
+ request,
5113
+ key
4863
5114
  );
4864
5115
  }
4865
5116
  task.replay = replay;
@@ -4873,34 +5124,33 @@ function retryNode(request, task) {
4873
5124
  )
4874
5125
  );
4875
5126
  b: {
4876
- replay = void 0;
4877
- type = node$jscomp$0[5];
4878
- ref = node$jscomp$0[2];
4879
- name = node$jscomp$0[3];
4880
- keyOrIndex =
5127
+ replay = node$jscomp$0[5];
5128
+ type = node$jscomp$0[2];
5129
+ ref = node$jscomp$0[3];
5130
+ name =
4881
5131
  null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4882
5132
  node$jscomp$0 =
4883
5133
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4884
- var prevKeyPath = task.keyPath,
4885
- prevContext = task.formatContext,
5134
+ keyOrIndex = task.keyPath;
5135
+ var prevContext = task.formatContext,
4886
5136
  prevRow = task.row,
4887
5137
  previousReplaySet = task.replay,
4888
5138
  parentBoundary = task.blockedBoundary,
4889
5139
  parentHoistableState = task.hoistableState,
4890
- content = props.children,
4891
- fallback = props.fallback,
4892
- fallbackAbortSet = new Set();
4893
- props = createSuspenseBoundary(
4894
- request,
4895
- task.row,
4896
- fallbackAbortSet,
4897
- null,
4898
- null
4899
- );
4900
- props.parentFlushed = !0;
4901
- props.rootSegmentID = type;
4902
- task.blockedBoundary = props;
4903
- task.hoistableState = props.contentState;
5140
+ content = props.children;
5141
+ props = props.fallback;
5142
+ var fallbackAbortSet = new Set(),
5143
+ resumedBoundary = createSuspenseBoundary(
5144
+ request,
5145
+ task.row,
5146
+ fallbackAbortSet,
5147
+ null,
5148
+ !1
5149
+ );
5150
+ resumedBoundary.parentFlushed = !0;
5151
+ resumedBoundary.rootSegmentID = replay;
5152
+ task.blockedBoundary = resumedBoundary;
5153
+ task.hoistableState = resumedBoundary.contentState;
4904
5154
  task.keyPath = key;
4905
5155
  task.formatContext = getSuspenseContentFormatContext(
4906
5156
  request.resumableState,
@@ -4908,8 +5158,8 @@ function retryNode(request, task) {
4908
5158
  );
4909
5159
  task.row = null;
4910
5160
  task.replay = {
4911
- nodes: ref,
4912
- slots: name,
5161
+ nodes: type,
5162
+ slots: ref,
4913
5163
  pendingTasks: 1
4914
5164
  };
4915
5165
  try {
@@ -4920,42 +5170,46 @@ function retryNode(request, task) {
4920
5170
  )
4921
5171
  throw Error(formatProdErrorMessage(488));
4922
5172
  task.replay.pendingTasks--;
4923
- if (0 === props.pendingTasks && 0 === props.status) {
4924
- props.status = 1;
4925
- request.completedBoundaries.push(props);
5173
+ if (
5174
+ 0 === resumedBoundary.pendingTasks &&
5175
+ 0 === resumedBoundary.status
5176
+ ) {
5177
+ resumedBoundary.status = 1;
5178
+ request.completedBoundaries.push(resumedBoundary);
4926
5179
  break b;
4927
5180
  }
4928
- } catch (error) {
4929
- (props.status = 4),
4930
- (childNodes = getThrownInfo(task.componentStack)),
4931
- (replay = logRecoverableError(
5181
+ } catch (thrownValue) {
5182
+ (resumedBoundary.status = 4),
5183
+ (childNodes = request.aborted
5184
+ ? request.fatalError
5185
+ : thrownValue),
5186
+ (childSlots = getThrownInfo(task.componentStack)),
5187
+ (currentNode = logRecoverableError(
4932
5188
  request,
4933
- error,
4934
- childNodes
5189
+ childNodes,
5190
+ childSlots
4935
5191
  )),
4936
- (props.errorDigest = replay),
5192
+ (resumedBoundary.errorDigest = currentNode),
4937
5193
  task.replay.pendingTasks--,
4938
- request.clientRenderedBoundaries.push(props);
5194
+ request.clientRenderedBoundaries.push(
5195
+ resumedBoundary
5196
+ );
4939
5197
  } finally {
4940
5198
  (task.blockedBoundary = parentBoundary),
4941
5199
  (task.hoistableState = parentHoistableState),
4942
5200
  (task.replay = previousReplaySet),
4943
- (task.keyPath = prevKeyPath),
5201
+ (task.keyPath = keyOrIndex),
4944
5202
  (task.formatContext = prevContext),
4945
5203
  (task.row = prevRow);
4946
5204
  }
4947
5205
  childNodes = createReplayTask(
4948
5206
  request,
4949
5207
  null,
4950
- {
4951
- nodes: keyOrIndex,
4952
- slots: node$jscomp$0,
4953
- pendingTasks: 0
4954
- },
4955
- fallback,
5208
+ { nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
5209
+ props,
4956
5210
  -1,
4957
5211
  parentBoundary,
4958
- props.fallbackState,
5212
+ resumedBoundary.fallbackState,
4959
5213
  fallbackAbortSet,
4960
5214
  [key[0], "Suspense Fallback", key[2]],
4961
5215
  getSuspenseFallbackFormatContext(
@@ -4985,7 +5239,7 @@ function retryNode(request, task) {
4985
5239
  case REACT_LAZY_TYPE:
4986
5240
  childNodes = node._init;
4987
5241
  node = childNodes(node._payload);
4988
- if (12 === request.status) throw null;
5242
+ if (request.aborted) throw null;
4989
5243
  renderNodeDestructive(request, task, node, childIndex);
4990
5244
  return;
4991
5245
  }
@@ -4997,10 +5251,10 @@ function retryNode(request, task) {
4997
5251
  if ((childNodes = childNodes.call(node))) {
4998
5252
  node = childNodes.next();
4999
5253
  if (!node.done) {
5000
- props = [];
5001
- do props.push(node.value), (node = childNodes.next());
5254
+ childSlots = [];
5255
+ do childSlots.push(node.value), (node = childNodes.next());
5002
5256
  while (!node.done);
5003
- renderChildrenArray(request, task, props, childIndex);
5257
+ renderChildrenArray(request, task, childSlots, childIndex);
5004
5258
  }
5005
5259
  return;
5006
5260
  }
@@ -5076,17 +5330,18 @@ function renderChildrenArray(request, task, children, childIndex) {
5076
5330
  )
5077
5331
  throw x;
5078
5332
  task.replay.pendingTasks--;
5079
- children = getThrownInfo(task.componentStack);
5080
- var boundary = task.blockedBoundary,
5081
- error = x;
5082
- children = logRecoverableError(request, error, children);
5333
+ var thrownInfo = getThrownInfo(task.componentStack);
5334
+ children = request;
5335
+ var boundary = task.blockedBoundary;
5336
+ request = request.aborted ? request.fatalError : x;
5337
+ thrownInfo = logRecoverableError(children, request, thrownInfo);
5083
5338
  abortRemainingReplayNodes(
5084
- request,
5339
+ children,
5085
5340
  boundary,
5086
5341
  childIndex,
5087
5342
  node,
5088
- error,
5089
- children
5343
+ request,
5344
+ thrownInfo
5090
5345
  );
5091
5346
  }
5092
5347
  task.replay = replay;
@@ -5125,10 +5380,12 @@ function renderChildrenArray(request, task, children, childIndex) {
5125
5380
  function trackPostponedBoundary(request, trackedPostpones, boundary) {
5126
5381
  boundary.status = 5;
5127
5382
  boundary.rootSegmentID = request.nextSegmentId++;
5128
- request = boundary.trackedContentKeyPath;
5383
+ var tracked = boundary.tracked;
5384
+ if (null === tracked) throw Error(formatProdErrorMessage(486));
5385
+ request = tracked.contentKeyPath;
5129
5386
  if (null === request) throw Error(formatProdErrorMessage(486));
5130
- var fallbackReplayNode = boundary.trackedFallbackNode,
5131
- children = [],
5387
+ tracked = tracked.fallbackNode;
5388
+ var children = [],
5132
5389
  boundaryNode = trackedPostpones.workingMap.get(request);
5133
5390
  if (void 0 === boundaryNode)
5134
5391
  return (
@@ -5137,14 +5394,14 @@ function trackPostponedBoundary(request, trackedPostpones, boundary) {
5137
5394
  request[2],
5138
5395
  children,
5139
5396
  null,
5140
- fallbackReplayNode,
5397
+ tracked,
5141
5398
  boundary.rootSegmentID
5142
5399
  ]),
5143
5400
  trackedPostpones.workingMap.set(request, boundary),
5144
5401
  addToReplayParent(boundary, request[0], trackedPostpones),
5145
5402
  boundary
5146
5403
  );
5147
- boundaryNode[4] = fallbackReplayNode;
5404
+ boundaryNode[4] = tracked;
5148
5405
  boundaryNode[5] = boundary.rootSegmentID;
5149
5406
  return boundaryNode;
5150
5407
  }
@@ -5165,7 +5422,8 @@ function trackPostpone(request, trackedPostpones, task, segment) {
5165
5422
  boundary
5166
5423
  );
5167
5424
  if (
5168
- boundary.trackedContentKeyPath === keyPath &&
5425
+ null !== boundary.tracked &&
5426
+ boundary.tracked.contentKeyPath === keyPath &&
5169
5427
  -1 === task.childIndex
5170
5428
  ) {
5171
5429
  -1 === segment.id &&
@@ -5217,11 +5475,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
5217
5475
  function untrackBoundary(request, boundary) {
5218
5476
  request = request.trackedPostpones;
5219
5477
  null !== request &&
5220
- ((boundary = boundary.trackedContentKeyPath),
5478
+ ((boundary = boundary.tracked),
5221
5479
  null !== boundary &&
5222
- ((boundary = request.workingMap.get(boundary)),
5223
- void 0 !== boundary &&
5224
- ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
5480
+ ((boundary = boundary.contentKeyPath),
5481
+ null !== boundary &&
5482
+ ((request = request.workingMap.get(boundary)),
5483
+ void 0 !== request &&
5484
+ ((request.length = 4), (request[2] = []), (request[3] = null)))));
5225
5485
  }
5226
5486
  function spawnNewSuspendedReplayTask(request, task, thenableState) {
5227
5487
  return createReplayTask(
@@ -5289,7 +5549,7 @@ function renderNode(request, task, node, childIndex) {
5289
5549
  thrownValue === SuspenseException
5290
5550
  ? getSuspendedThenable()
5291
5551
  : thrownValue),
5292
- 12 !== request.status && "object" === typeof node && null !== node)
5552
+ !request.aborted && "object" === typeof node && null !== node)
5293
5553
  ) {
5294
5554
  if ("function" === typeof node.then) {
5295
5555
  childIndex =
@@ -5297,7 +5557,7 @@ function renderNode(request, task, node, childIndex) {
5297
5557
  ? getThenableStateAfterSuspending()
5298
5558
  : null;
5299
5559
  request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
5300
- node.then(request, request);
5560
+ node.then(request.resolve, request.reject);
5301
5561
  task.formatContext = previousFormatContext;
5302
5562
  task.context = previousContext;
5303
5563
  task.keyPath = previousKeyPath;
@@ -5330,25 +5590,25 @@ function renderNode(request, task, node, childIndex) {
5330
5590
  chunkLength = segment.chunks.length;
5331
5591
  try {
5332
5592
  return renderNodeDestructive(request, task, node, childIndex);
5333
- } catch (thrownValue$62) {
5593
+ } catch (thrownValue$63) {
5334
5594
  if (
5335
5595
  (resetHooksState(),
5336
5596
  (segment.children.length = childrenLength),
5337
5597
  (segment.chunks.length = chunkLength),
5338
5598
  (node =
5339
- thrownValue$62 === SuspenseException
5599
+ thrownValue$63 === SuspenseException
5340
5600
  ? getSuspendedThenable()
5341
- : thrownValue$62),
5342
- 12 !== request.status && "object" === typeof node && null !== node)
5601
+ : thrownValue$63),
5602
+ !request.aborted && "object" === typeof node && null !== node)
5343
5603
  ) {
5344
5604
  if ("function" === typeof node.then) {
5345
5605
  segment = node;
5346
5606
  node =
5347
- thrownValue$62 === SuspenseException
5607
+ thrownValue$63 === SuspenseException
5348
5608
  ? getThenableStateAfterSuspending()
5349
5609
  : null;
5350
5610
  request = spawnNewSuspendedRenderTask(request, task, node).ping;
5351
- segment.then(request, request);
5611
+ segment.then(request.resolve, request.reject);
5352
5612
  task.formatContext = previousFormatContext;
5353
5613
  task.context = previousContext;
5354
5614
  task.keyPath = previousKeyPath;
@@ -5359,7 +5619,7 @@ function renderNode(request, task, node, childIndex) {
5359
5619
  }
5360
5620
  if ("Maximum call stack size exceeded" === node.message) {
5361
5621
  segment =
5362
- thrownValue$62 === SuspenseException
5622
+ thrownValue$63 === SuspenseException
5363
5623
  ? getThenableStateAfterSuspending()
5364
5624
  : null;
5365
5625
  segment = spawnNewSuspendedRenderTask(request, task, segment);
@@ -5416,7 +5676,7 @@ function abortRemainingReplayNodes(
5416
5676
  null,
5417
5677
  new Set(),
5418
5678
  null,
5419
- null
5679
+ !1
5420
5680
  );
5421
5681
  resumedBoundary.parentFlushed = !0;
5422
5682
  resumedBoundary.rootSegmentID = node;
@@ -5437,78 +5697,104 @@ function abortRemainingReplayNodes(
5437
5697
  if ("object" === typeof slots) for (var index in slots) delete slots[index];
5438
5698
  }
5439
5699
  }
5440
- function abortTask(task, request, error) {
5441
- var boundary = task.blockedBoundary,
5442
- segment = task.blockedSegment;
5443
- if (null !== segment) {
5444
- if (6 === segment.status) return;
5445
- segment.status = 3;
5700
+ function abortTask(task, request) {
5701
+ if (task !== request.currentTask) {
5702
+ var boundary = task.blockedBoundary;
5703
+ task = task.blockedSegment;
5704
+ null !== task && (task.status = 3);
5705
+ null !== boundary &&
5706
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5707
+ return abortTask(fallbackTask, request);
5708
+ });
5446
5709
  }
5447
- var errorInfo = getThrownInfo(task.componentStack);
5448
- if (null === boundary) {
5449
- if (13 !== request.status && 14 !== request.status) {
5450
- boundary = task.replay;
5710
+ }
5711
+ function finishAbortedTask(task, request, error) {
5712
+ if (task !== request.currentTask) {
5713
+ var boundary = task.blockedBoundary,
5714
+ segment = task.blockedSegment;
5715
+ if (null === segment || 3 === segment.status) {
5716
+ var errorInfo = getThrownInfo(task.componentStack),
5717
+ isRecoverableReason = isRecoverableError(error);
5451
5718
  if (null === boundary) {
5452
- null !== request.trackedPostpones && null !== segment
5453
- ? ((boundary = request.trackedPostpones),
5454
- logRecoverableError(request, error, errorInfo),
5455
- trackPostpone(request, boundary, task, segment),
5456
- finishedTask(request, null, task.row, segment))
5457
- : (logRecoverableError(request, error, errorInfo),
5458
- fatalError(request, error));
5459
- return;
5719
+ boundary = task.replay;
5720
+ if (null === boundary) {
5721
+ isRecoverableReason ||
5722
+ null === request.trackedPostpones ||
5723
+ null === segment
5724
+ ? isRecoverableReason
5725
+ ? ((task = cloneRecoverableErrorAsFatal(error)),
5726
+ logRecoverableError(request, task, errorInfo),
5727
+ 12 !== request.status &&
5728
+ 13 !== request.status &&
5729
+ fatalError(request, task))
5730
+ : (logRecoverableError(request, error, errorInfo),
5731
+ 12 !== request.status &&
5732
+ 13 !== request.status &&
5733
+ fatalError(request, error))
5734
+ : ((boundary = request.trackedPostpones),
5735
+ logRecoverableError(request, error, errorInfo),
5736
+ trackPostpone(request, boundary, task, segment),
5737
+ finishedTask(request, null, task.row, segment));
5738
+ return;
5739
+ }
5740
+ 12 !== request.status &&
5741
+ 13 !== request.status &&
5742
+ (boundary.pendingTasks--,
5743
+ 0 === boundary.pendingTasks &&
5744
+ 0 < boundary.nodes.length &&
5745
+ ((errorInfo = logRecoverableError(request, error, errorInfo)),
5746
+ abortRemainingReplayNodes(
5747
+ request,
5748
+ null,
5749
+ boundary.nodes,
5750
+ boundary.slots,
5751
+ error,
5752
+ errorInfo
5753
+ )),
5754
+ request.pendingRootTasks--,
5755
+ 0 === request.pendingRootTasks && completeShell(request));
5756
+ } else {
5757
+ var trackedPostpones$64 = request.trackedPostpones;
5758
+ if (4 !== boundary.status) {
5759
+ if (
5760
+ !isRecoverableReason &&
5761
+ null !== trackedPostpones$64 &&
5762
+ null !== segment
5763
+ )
5764
+ return (
5765
+ logRecoverableError(request, error, errorInfo),
5766
+ trackPostpone(request, trackedPostpones$64, task, segment),
5767
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5768
+ return finishAbortedTask(fallbackTask, request, error);
5769
+ }),
5770
+ boundary.fallbackAbortableTasks.clear(),
5771
+ finishedTask(request, boundary, task.row, segment)
5772
+ );
5773
+ boundary.status = 4;
5774
+ errorInfo = logRecoverableError(request, error, errorInfo);
5775
+ boundary.errorDigest = errorInfo;
5776
+ untrackBoundary(request, boundary);
5777
+ boundary.parentFlushed &&
5778
+ request.clientRenderedBoundaries.push(boundary);
5779
+ }
5780
+ boundary.pendingTasks--;
5781
+ errorInfo = boundary.row;
5782
+ null !== errorInfo &&
5783
+ 0 === --errorInfo.pendingTasks &&
5784
+ finishSuspenseListRow(request, errorInfo);
5785
+ boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5786
+ return finishAbortedTask(fallbackTask, request, error);
5787
+ });
5788
+ boundary.fallbackAbortableTasks.clear();
5460
5789
  }
5461
- boundary.pendingTasks--;
5462
- 0 === boundary.pendingTasks &&
5463
- 0 < boundary.nodes.length &&
5464
- ((segment = logRecoverableError(request, error, errorInfo)),
5465
- abortRemainingReplayNodes(
5466
- request,
5467
- null,
5468
- boundary.nodes,
5469
- boundary.slots,
5470
- error,
5471
- segment
5472
- ));
5473
- request.pendingRootTasks--;
5474
- 0 === request.pendingRootTasks && completeShell(request);
5790
+ task = task.row;
5791
+ null !== task &&
5792
+ 0 === --task.pendingTasks &&
5793
+ finishSuspenseListRow(request, task);
5794
+ request.allPendingTasks--;
5795
+ 0 === request.allPendingTasks && completeAll(request);
5475
5796
  }
5476
- } else {
5477
- var trackedPostpones$63 = request.trackedPostpones;
5478
- if (4 !== boundary.status) {
5479
- if (null !== trackedPostpones$63 && null !== segment)
5480
- return (
5481
- logRecoverableError(request, error, errorInfo),
5482
- trackPostpone(request, trackedPostpones$63, task, segment),
5483
- boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5484
- return abortTask(fallbackTask, request, error);
5485
- }),
5486
- boundary.fallbackAbortableTasks.clear(),
5487
- finishedTask(request, boundary, task.row, segment)
5488
- );
5489
- boundary.status = 4;
5490
- segment = logRecoverableError(request, error, errorInfo);
5491
- boundary.status = 4;
5492
- boundary.errorDigest = segment;
5493
- untrackBoundary(request, boundary);
5494
- boundary.parentFlushed && request.clientRenderedBoundaries.push(boundary);
5495
- }
5496
- boundary.pendingTasks--;
5497
- segment = boundary.row;
5498
- null !== segment &&
5499
- 0 === --segment.pendingTasks &&
5500
- finishSuspenseListRow(request, segment);
5501
- boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
5502
- return abortTask(fallbackTask, request, error);
5503
- });
5504
- boundary.fallbackAbortableTasks.clear();
5505
5797
  }
5506
- task = task.row;
5507
- null !== task &&
5508
- 0 === --task.pendingTasks &&
5509
- finishSuspenseListRow(request, task);
5510
- request.allPendingTasks--;
5511
- 0 === request.allPendingTasks && completeAll(request);
5512
5798
  }
5513
5799
  function safelyEmitEarlyPreloads(request, shellComplete) {
5514
5800
  try {
@@ -5574,7 +5860,6 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
5574
5860
  function completeShell(request) {
5575
5861
  null === request.trackedPostpones && safelyEmitEarlyPreloads(request, !0);
5576
5862
  null === request.trackedPostpones && preparePreamble(request);
5577
- request.onShellError = noop;
5578
5863
  request = request.onShellReady;
5579
5864
  request();
5580
5865
  }
@@ -5635,14 +5920,16 @@ function finishedTask(request, boundary, row, segment) {
5635
5920
  null !== row &&
5636
5921
  hoistHoistables(row.hoistables, boundary.contentState),
5637
5922
  isEligibleForOutlining(request, boundary) ||
5638
- (boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
5923
+ (request.allPendingTasks++,
5924
+ boundary.fallbackAbortableTasks.forEach(abortTaskSoft, request),
5639
5925
  boundary.fallbackAbortableTasks.clear(),
5640
5926
  null !== row &&
5641
5927
  0 === --row.pendingTasks &&
5642
- finishSuspenseListRow(request, row)),
5928
+ finishSuspenseListRow(request, row),
5929
+ request.allPendingTasks--),
5643
5930
  0 === request.pendingRootTasks &&
5644
5931
  null === request.trackedPostpones &&
5645
- null !== boundary.contentPreamble &&
5932
+ null !== boundary.preamble &&
5646
5933
  preparePreamble(request);
5647
5934
  else {
5648
5935
  if (
@@ -5666,8 +5953,10 @@ function finishedTask(request, boundary, row, segment) {
5666
5953
  finishedTask(request, postponedBoundary, null, null);
5667
5954
  }
5668
5955
  }
5956
+ request.allPendingTasks++;
5669
5957
  0 === --boundary.pendingTasks &&
5670
5958
  finishSuspenseListRow(request, boundary);
5959
+ request.allPendingTasks--;
5671
5960
  }
5672
5961
  }
5673
5962
  else
@@ -5684,209 +5973,253 @@ function finishedTask(request, boundary, row, segment) {
5684
5973
  tryToResolveTogetherRow(request, boundary);
5685
5974
  0 === request.allPendingTasks && completeAll(request);
5686
5975
  }
5687
- function performWork(request$jscomp$2) {
5688
- if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
5976
+ function performWork(request$jscomp$1) {
5977
+ if (!(request$jscomp$1.aborted || 11 < request$jscomp$1.status)) {
5689
5978
  var prevContext = currentActiveSnapshot,
5690
5979
  prevDispatcher = ReactSharedInternals.H;
5691
5980
  ReactSharedInternals.H = HooksDispatcher;
5692
5981
  var prevAsyncDispatcher = ReactSharedInternals.A;
5693
5982
  ReactSharedInternals.A = DefaultAsyncDispatcher;
5694
5983
  var prevRequest = currentRequest;
5695
- currentRequest = request$jscomp$2;
5984
+ currentRequest = request$jscomp$1;
5696
5985
  var prevResumableState = currentResumableState;
5697
- currentResumableState = request$jscomp$2.resumableState;
5986
+ currentResumableState = request$jscomp$1.resumableState;
5698
5987
  try {
5699
- var pingedTasks = request$jscomp$2.pingedTasks,
5988
+ var pingedTasks = request$jscomp$1.pingedTasks,
5700
5989
  i;
5701
5990
  for (i = 0; i < pingedTasks.length; i++) {
5702
5991
  var task = pingedTasks[i],
5703
- request = request$jscomp$2,
5992
+ request = request$jscomp$1,
5704
5993
  segment = task.blockedSegment;
5705
- if (null === segment) {
5706
- var request$jscomp$0 = request;
5707
- if (0 !== task.replay.pendingTasks) {
5994
+ if (null === segment)
5995
+ a: {
5996
+ if (0 !== task.replay.pendingTasks) {
5997
+ var prevTask = request.currentTask;
5998
+ request.currentTask = task;
5999
+ switchContext(task.context);
6000
+ var startNode = task.node;
6001
+ try {
6002
+ "number" === typeof task.replay.slots
6003
+ ? resumeNode(
6004
+ request,
6005
+ task,
6006
+ task.replay.slots,
6007
+ task.node,
6008
+ task.childIndex
6009
+ )
6010
+ : retryNode(request, task);
6011
+ if (
6012
+ 1 === task.replay.pendingTasks &&
6013
+ 0 < task.replay.nodes.length
6014
+ )
6015
+ throw Error(formatProdErrorMessage(488));
6016
+ task.replay.pendingTasks--;
6017
+ task.abortSet.delete(task);
6018
+ finishedTask(request, task.blockedBoundary, task.row, null);
6019
+ } catch (thrownValue) {
6020
+ resetHooksState();
6021
+ var x =
6022
+ thrownValue === SuspenseException
6023
+ ? getSuspendedThenable()
6024
+ : thrownValue;
6025
+ if (request.aborted) {
6026
+ thrownValue === SuspenseException &&
6027
+ (task.thenableState = getThenableStateAfterSuspending());
6028
+ request.currentTask = prevTask;
6029
+ var request$jscomp$0 = request;
6030
+ abortTask(task, request$jscomp$0);
6031
+ task.abortSet.delete(task);
6032
+ finishAbortedTask(
6033
+ task,
6034
+ request$jscomp$0,
6035
+ request$jscomp$0.fatalError
6036
+ );
6037
+ } else {
6038
+ if ("object" === typeof x && null !== x) {
6039
+ if ("function" === typeof x.then) {
6040
+ var ping = task.ping;
6041
+ x.then(ping.resolve, ping.reject);
6042
+ task.thenableState =
6043
+ thrownValue === SuspenseException
6044
+ ? getThenableStateAfterSuspending()
6045
+ : null;
6046
+ break a;
6047
+ }
6048
+ if (
6049
+ "Maximum call stack size exceeded" === x.message &&
6050
+ task.node !== startNode
6051
+ ) {
6052
+ task.thenableState = null;
6053
+ request.pingedTasks.push(task);
6054
+ break a;
6055
+ }
6056
+ }
6057
+ task.replay.pendingTasks--;
6058
+ task.abortSet.delete(task);
6059
+ var errorInfo = getThrownInfo(task.componentStack);
6060
+ request$jscomp$0 = request;
6061
+ var boundary = task.blockedBoundary,
6062
+ error$jscomp$0 = request.aborted ? request.fatalError : x,
6063
+ replayNodes = task.replay.nodes,
6064
+ resumeSlots = task.replay.slots,
6065
+ errorDigest = logRecoverableError(
6066
+ request$jscomp$0,
6067
+ error$jscomp$0,
6068
+ errorInfo
6069
+ );
6070
+ abortRemainingReplayNodes(
6071
+ request$jscomp$0,
6072
+ boundary,
6073
+ replayNodes,
6074
+ resumeSlots,
6075
+ error$jscomp$0,
6076
+ errorDigest
6077
+ );
6078
+ request.pendingRootTasks--;
6079
+ 0 === request.pendingRootTasks && completeShell(request);
6080
+ request.allPendingTasks--;
6081
+ 0 === request.allPendingTasks && completeAll(request);
6082
+ }
6083
+ } finally {
6084
+ request.currentTask = prevTask;
6085
+ }
6086
+ }
6087
+ }
6088
+ else
6089
+ a: if (
6090
+ ((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
6091
+ ) {
6092
+ var prevTask$jscomp$0 = request.currentTask;
6093
+ request.currentTask = task;
5708
6094
  switchContext(task.context);
6095
+ var childrenLength = request$jscomp$0.children.length,
6096
+ chunkLength = request$jscomp$0.chunks.length,
6097
+ startNode$jscomp$0 = task.node;
5709
6098
  try {
5710
- "number" === typeof task.replay.slots
5711
- ? resumeNode(
5712
- request$jscomp$0,
5713
- task,
5714
- task.replay.slots,
5715
- task.node,
5716
- task.childIndex
5717
- )
5718
- : retryNode(request$jscomp$0, task);
5719
- if (
5720
- 1 === task.replay.pendingTasks &&
5721
- 0 < task.replay.nodes.length
5722
- )
5723
- throw Error(formatProdErrorMessage(488));
5724
- task.replay.pendingTasks--;
5725
- task.abortSet.delete(task);
5726
- finishedTask(
5727
- request$jscomp$0,
5728
- task.blockedBoundary,
5729
- task.row,
5730
- null
5731
- );
6099
+ retryNode(request, task),
6100
+ pushSegmentFinale(
6101
+ request$jscomp$0.chunks,
6102
+ request.renderState,
6103
+ request$jscomp$0.lastPushedText,
6104
+ request$jscomp$0.textEmbedded
6105
+ ),
6106
+ task.abortSet.delete(task),
6107
+ (request$jscomp$0.status = 1),
6108
+ finishedTask(
6109
+ request,
6110
+ task.blockedBoundary,
6111
+ task.row,
6112
+ request$jscomp$0
6113
+ );
5732
6114
  } catch (thrownValue) {
5733
6115
  resetHooksState();
5734
- var x =
6116
+ request$jscomp$0.children.length = childrenLength;
6117
+ request$jscomp$0.chunks.length = chunkLength;
6118
+ var x$jscomp$0 =
5735
6119
  thrownValue === SuspenseException
5736
6120
  ? getSuspendedThenable()
5737
6121
  : thrownValue;
5738
- if (
5739
- "object" === typeof x &&
5740
- null !== x &&
5741
- "function" === typeof x.then
5742
- ) {
5743
- var ping = task.ping;
5744
- x.then(ping, ping);
5745
- task.thenableState =
5746
- thrownValue === SuspenseException
5747
- ? getThenableStateAfterSuspending()
5748
- : null;
5749
- } else {
5750
- task.replay.pendingTasks--;
6122
+ if (request.aborted)
6123
+ thrownValue === SuspenseException &&
6124
+ (task.thenableState = getThenableStateAfterSuspending()),
6125
+ (request.currentTask = prevTask$jscomp$0),
6126
+ (request$jscomp$0 = request),
6127
+ abortTask(task, request$jscomp$0),
6128
+ task.abortSet.delete(task),
6129
+ finishAbortedTask(
6130
+ task,
6131
+ request$jscomp$0,
6132
+ request$jscomp$0.fatalError
6133
+ );
6134
+ else {
6135
+ if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
6136
+ if ("function" === typeof x$jscomp$0.then) {
6137
+ request$jscomp$0.status = 0;
6138
+ task.thenableState =
6139
+ thrownValue === SuspenseException
6140
+ ? getThenableStateAfterSuspending()
6141
+ : null;
6142
+ var ping$jscomp$0 = task.ping;
6143
+ x$jscomp$0.then(
6144
+ ping$jscomp$0.resolve,
6145
+ ping$jscomp$0.reject
6146
+ );
6147
+ break a;
6148
+ }
6149
+ if (
6150
+ "Maximum call stack size exceeded" === x$jscomp$0.message &&
6151
+ task.node !== startNode$jscomp$0
6152
+ ) {
6153
+ request$jscomp$0.status = 0;
6154
+ task.thenableState = null;
6155
+ request.pingedTasks.push(task);
6156
+ break a;
6157
+ }
6158
+ }
6159
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5751
6160
  task.abortSet.delete(task);
5752
- var errorInfo = getThrownInfo(task.componentStack);
5753
- request = void 0;
5754
- var request$jscomp$1 = request$jscomp$0,
5755
- boundary = task.blockedBoundary,
5756
- error$jscomp$0 =
5757
- 12 === request$jscomp$0.status
5758
- ? request$jscomp$0.fatalError
5759
- : x,
5760
- replayNodes = task.replay.nodes,
5761
- resumeSlots = task.replay.slots;
5762
- request = logRecoverableError(
5763
- request$jscomp$1,
5764
- error$jscomp$0,
5765
- errorInfo
5766
- );
5767
- abortRemainingReplayNodes(
5768
- request$jscomp$1,
5769
- boundary,
5770
- replayNodes,
5771
- resumeSlots,
5772
- error$jscomp$0,
5773
- request
5774
- );
5775
- request$jscomp$0.pendingRootTasks--;
5776
- 0 === request$jscomp$0.pendingRootTasks &&
5777
- completeShell(request$jscomp$0);
5778
- request$jscomp$0.allPendingTasks--;
5779
- 0 === request$jscomp$0.allPendingTasks &&
5780
- completeAll(request$jscomp$0);
6161
+ request$jscomp$0.status = 4;
6162
+ var boundary$jscomp$0 = task.blockedBoundary,
6163
+ row = task.row;
6164
+ null !== row &&
6165
+ 0 === --row.pendingTasks &&
6166
+ finishSuspenseListRow(request, row);
6167
+ request.allPendingTasks--;
6168
+ if (null === boundary$jscomp$0)
6169
+ if (isRecoverableError(x$jscomp$0)) {
6170
+ var fatalRecoverableError =
6171
+ cloneRecoverableErrorAsFatal(x$jscomp$0);
6172
+ logRecoverableError(
6173
+ request,
6174
+ fatalRecoverableError,
6175
+ errorInfo$jscomp$0
6176
+ );
6177
+ fatalError(request, fatalRecoverableError);
6178
+ } else
6179
+ logRecoverableError(
6180
+ request,
6181
+ x$jscomp$0,
6182
+ errorInfo$jscomp$0
6183
+ ),
6184
+ fatalError(request, x$jscomp$0);
6185
+ else {
6186
+ var errorDigest$jscomp$0 = logRecoverableError(
6187
+ request,
6188
+ x$jscomp$0,
6189
+ errorInfo$jscomp$0
6190
+ );
6191
+ boundary$jscomp$0.pendingTasks--;
6192
+ if (4 !== boundary$jscomp$0.status) {
6193
+ boundary$jscomp$0.status = 4;
6194
+ boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
6195
+ untrackBoundary(request, boundary$jscomp$0);
6196
+ var boundaryRow = boundary$jscomp$0.row;
6197
+ null !== boundaryRow &&
6198
+ (request.allPendingTasks++,
6199
+ 0 === --boundaryRow.pendingTasks &&
6200
+ finishSuspenseListRow(request, boundaryRow),
6201
+ request.allPendingTasks--);
6202
+ boundary$jscomp$0.parentFlushed &&
6203
+ request.clientRenderedBoundaries.push(boundary$jscomp$0);
6204
+ 0 === request.pendingRootTasks &&
6205
+ null === request.trackedPostpones &&
6206
+ null !== boundary$jscomp$0.preamble &&
6207
+ preparePreamble(request);
6208
+ }
6209
+ 0 === request.allPendingTasks && completeAll(request);
6210
+ }
5781
6211
  }
5782
6212
  } finally {
6213
+ request.currentTask = prevTask$jscomp$0;
5783
6214
  }
5784
6215
  }
5785
- } else if (
5786
- ((request$jscomp$0 = void 0),
5787
- (request$jscomp$1 = segment),
5788
- 0 === request$jscomp$1.status)
5789
- ) {
5790
- request$jscomp$1.status = 6;
5791
- switchContext(task.context);
5792
- var childrenLength = request$jscomp$1.children.length,
5793
- chunkLength = request$jscomp$1.chunks.length;
5794
- try {
5795
- retryNode(request, task),
5796
- pushSegmentFinale(
5797
- request$jscomp$1.chunks,
5798
- request.renderState,
5799
- request$jscomp$1.lastPushedText,
5800
- request$jscomp$1.textEmbedded
5801
- ),
5802
- task.abortSet.delete(task),
5803
- (request$jscomp$1.status = 1),
5804
- finishedTask(
5805
- request,
5806
- task.blockedBoundary,
5807
- task.row,
5808
- request$jscomp$1
5809
- );
5810
- } catch (thrownValue) {
5811
- resetHooksState();
5812
- request$jscomp$1.children.length = childrenLength;
5813
- request$jscomp$1.chunks.length = chunkLength;
5814
- var x$jscomp$0 =
5815
- thrownValue === SuspenseException
5816
- ? getSuspendedThenable()
5817
- : 12 === request.status
5818
- ? request.fatalError
5819
- : thrownValue;
5820
- if (12 === request.status && null !== request.trackedPostpones) {
5821
- var trackedPostpones = request.trackedPostpones,
5822
- thrownInfo = getThrownInfo(task.componentStack);
5823
- task.abortSet.delete(task);
5824
- logRecoverableError(request, x$jscomp$0, thrownInfo);
5825
- trackPostpone(request, trackedPostpones, task, request$jscomp$1);
5826
- finishedTask(
5827
- request,
5828
- task.blockedBoundary,
5829
- task.row,
5830
- request$jscomp$1
5831
- );
5832
- } else if (
5833
- "object" === typeof x$jscomp$0 &&
5834
- null !== x$jscomp$0 &&
5835
- "function" === typeof x$jscomp$0.then
5836
- ) {
5837
- request$jscomp$1.status = 0;
5838
- task.thenableState =
5839
- thrownValue === SuspenseException
5840
- ? getThenableStateAfterSuspending()
5841
- : null;
5842
- var ping$jscomp$0 = task.ping;
5843
- x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
5844
- } else {
5845
- var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5846
- task.abortSet.delete(task);
5847
- request$jscomp$1.status = 4;
5848
- var boundary$jscomp$0 = task.blockedBoundary,
5849
- row = task.row;
5850
- null !== row &&
5851
- 0 === --row.pendingTasks &&
5852
- finishSuspenseListRow(request, row);
5853
- request.allPendingTasks--;
5854
- request$jscomp$0 = logRecoverableError(
5855
- request,
5856
- x$jscomp$0,
5857
- errorInfo$jscomp$0
5858
- );
5859
- if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
5860
- else if (
5861
- (boundary$jscomp$0.pendingTasks--,
5862
- 4 !== boundary$jscomp$0.status)
5863
- ) {
5864
- boundary$jscomp$0.status = 4;
5865
- boundary$jscomp$0.errorDigest = request$jscomp$0;
5866
- untrackBoundary(request, boundary$jscomp$0);
5867
- var boundaryRow = boundary$jscomp$0.row;
5868
- null !== boundaryRow &&
5869
- 0 === --boundaryRow.pendingTasks &&
5870
- finishSuspenseListRow(request, boundaryRow);
5871
- boundary$jscomp$0.parentFlushed &&
5872
- request.clientRenderedBoundaries.push(boundary$jscomp$0);
5873
- 0 === request.pendingRootTasks &&
5874
- null === request.trackedPostpones &&
5875
- null !== boundary$jscomp$0.contentPreamble &&
5876
- preparePreamble(request);
5877
- }
5878
- 0 === request.allPendingTasks && completeAll(request);
5879
- }
5880
- } finally {
5881
- }
5882
- }
5883
6216
  }
5884
6217
  pingedTasks.splice(0, i);
5885
- null !== request$jscomp$2.destination &&
5886
- flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
6218
+ null !== request$jscomp$1.destination &&
6219
+ flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
5887
6220
  } catch (error) {
5888
- logRecoverableError(request$jscomp$2, error, {}),
5889
- fatalError(request$jscomp$2, error);
6221
+ logRecoverableError(request$jscomp$1, error, {}),
6222
+ fatalError(request$jscomp$1, error);
5890
6223
  } finally {
5891
6224
  (currentResumableState = prevResumableState),
5892
6225
  (ReactSharedInternals.H = prevDispatcher),
@@ -5924,12 +6257,11 @@ function preparePreambleFromSegment(
5924
6257
  segment,
5925
6258
  collectedPreambleSegments
5926
6259
  );
5927
- var preamble = boundary.contentPreamble,
5928
- fallbackPreamble = boundary.fallbackPreamble;
5929
- if (null === preamble || null === fallbackPreamble) return !1;
6260
+ var preamble = boundary.preamble;
6261
+ if (null === preamble) return !1;
5930
6262
  switch (boundary.status) {
5931
6263
  case 1:
5932
- hoistPreambleState(request.renderState, preamble);
6264
+ hoistPreambleState(request.renderState, preamble.content);
5933
6265
  request.byteSize += boundary.byteSize;
5934
6266
  segment = boundary.completedSegments[0];
5935
6267
  if (!segment) throw Error(formatProdErrorMessage(391));
@@ -5943,7 +6275,7 @@ function preparePreambleFromSegment(
5943
6275
  case 4:
5944
6276
  if (1 === segment.status)
5945
6277
  return (
5946
- hoistPreambleState(request.renderState, fallbackPreamble),
6278
+ hoistPreambleState(request.renderState, preamble.fallback),
5947
6279
  preparePreambleFromSubtree(
5948
6280
  request,
5949
6281
  segment,
@@ -6015,6 +6347,7 @@ function flushSegment(request, destination, segment, hoistableState) {
6015
6347
  var boundary = segment.boundary;
6016
6348
  if (null === boundary)
6017
6349
  return flushSubtree(request, destination, segment, hoistableState);
6350
+ segment.boundary = null;
6018
6351
  boundary.parentFlushed = !0;
6019
6352
  if (4 === boundary.status) {
6020
6353
  var row = boundary.row;
@@ -6025,7 +6358,7 @@ function flushSegment(request, destination, segment, hoistableState) {
6025
6358
  ((boundary = boundary.errorDigest),
6026
6359
  destination.push("\x3c!--$!--\x3e"),
6027
6360
  destination.push("<template"),
6028
- boundary &&
6361
+ null != boundary &&
6029
6362
  (destination.push(' data-dgst="'),
6030
6363
  (boundary = escapeTextForBrowser(boundary)),
6031
6364
  destination.push(boundary),
@@ -6055,7 +6388,8 @@ function flushSegment(request, destination, segment, hoistableState) {
6055
6388
  if (
6056
6389
  !flushingPartialBoundaries &&
6057
6390
  isEligibleForOutlining(request, boundary) &&
6058
- flushedByteSize + boundary.byteSize > request.progressiveChunkSize
6391
+ (flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
6392
+ boundary.defer)
6059
6393
  )
6060
6394
  return (
6061
6395
  (boundary.rootSegmentID = request.nextSegmentId++),
@@ -6123,7 +6457,8 @@ function flushCompletedBoundary(request, destination, boundary) {
6123
6457
  request = request.renderState;
6124
6458
  i = boundary.rootSegmentID;
6125
6459
  boundary = boundary.contentState;
6126
- var requiresStyleInsertion = request.stylesToHoist;
6460
+ var requiresStyleInsertion = request.stylesToHoist,
6461
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
6127
6462
  request.stylesToHoist = !1;
6128
6463
  destination.push(request.startInlineScript);
6129
6464
  destination.push(">");
@@ -6131,13 +6466,19 @@ function flushCompletedBoundary(request, destination, boundary) {
6131
6466
  ? (0 === (completedSegments.instructions & 4) &&
6132
6467
  ((completedSegments.instructions |= 4),
6133
6468
  destination.push(
6134
- '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
6469
+ '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'
6135
6470
  )),
6136
6471
  0 === (completedSegments.instructions & 2) &&
6137
6472
  ((completedSegments.instructions |= 2),
6138
6473
  destination.push(
6139
6474
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6140
6475
  )),
6476
+ requiresViewTransitions &&
6477
+ 0 === (completedSegments.instructions & 256) &&
6478
+ ((completedSegments.instructions |= 256),
6479
+ destination.push(
6480
+ '$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),\nz=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");\nM&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&\nq.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});\nA.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);'
6481
+ )),
6141
6482
  0 === (completedSegments.instructions & 8)
6142
6483
  ? ((completedSegments.instructions |= 8),
6143
6484
  destination.push(
@@ -6149,6 +6490,12 @@ function flushCompletedBoundary(request, destination, boundary) {
6149
6490
  destination.push(
6150
6491
  '$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
6151
6492
  )),
6493
+ requiresViewTransitions &&
6494
+ 0 === (completedSegments.instructions & 256) &&
6495
+ ((completedSegments.instructions |= 256),
6496
+ destination.push(
6497
+ '$RV=function(B,g){function h(a,c){var e=a.getAttribute(c);e&&(c=a.style,l.push(a,c.viewTransitionName,c.viewTransitionClass),"auto"!==e&&(c.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+N++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,c.viewTransitionName=a,C=!0)}var C=!1,N=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var k=g[f].querySelectorAll("[vt-share]"),d=0;d<k.length;d++){var b=k[d];m.set(b.getAttribute("vt-name"),b)}var u=[];for(k=0;k<g.length;k+=2){var D=g[k],x=D.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){b=D;for(f=0;b;){if(8===b.nodeType){var t=b.data;if("/$"===t)if(0===f)break;else f--;else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||f++}else if(1===b.nodeType){d=b;var E=d.getAttribute("vt-name"),y=m.get(E);h(d,y?"vt-share":"vt-exit");y&&(h(y,"vt-share"),m.set(E,null));for(var F=d.querySelectorAll("[vt-share]"),\nz=0;z<F.length;z++){var G=F[z],H=G.getAttribute("vt-name"),I=m.get(H);I&&(h(G,"vt-share"),h(I,"vt-share"),m.set(H,null))}var J=d.querySelectorAll("[vt-parent-exit]");for(d=0;d<J.length;d++)h(J[d],"vt-parent-exit")}b=b.nextSibling}for(var K=g[k+1],n=K.firstElementChild;n;){null!==m.get(n.getAttribute("vt-name"))&&h(n,"vt-enter");var L=n.querySelectorAll("[vt-parent-enter]");for(b=0;b<L.length;b++)h(L[b],"vt-parent-enter");n=n.nextElementSibling}b=x;do for(var p=b.firstElementChild;p;){var M=p.getAttribute("vt-update");\nM&&"none"!==M&&!l.includes(p)&&h(p,"vt-update");p=p.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"));u.push.apply(u,K.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(C){var A=document.__reactViewTransition=document.startViewTransition({update:function(){B(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],c={},e=0;e<u.length;c={g:c.g},e++)if(c.g=u[e],!c.g.complete){var q=c.g.getBoundingClientRect();0<q.bottom&&0<q.right&&\nq.top<window.innerHeight&&q.left<window.innerWidth&&(q=new Promise(function(w){return function(r){w.g.addEventListener("load",r);w.g.addEventListener("error",r)}}(c)),a.push(q))}return Promise.race([Promise.all(a),new Promise(function(w){var r=performance.now();setTimeout(w,2300>r&&2E3<r?2300-r:500)})])},types:[]});A.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var c=l[a],e=c.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===c.getAttribute("style")&&c.removeAttribute("style")}});\nA.finished.finally(function(){document.__reactViewTransition===A&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}B(g)}.bind(null,$RV);'
6498
+ )),
6152
6499
  destination.push('$RC("'));
6153
6500
  completedSegments = i.toString(16);
6154
6501
  destination.push(request.boundaryPrefix);
@@ -6360,20 +6707,21 @@ function flushCompletedQueues(request, destination) {
6360
6707
  0 === (resumableState$jscomp$1.instructions & 4)
6361
6708
  ? ((resumableState$jscomp$1.instructions |= 4),
6362
6709
  renderState$jscomp$1.push(
6363
- '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
6710
+ '$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,null!=c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'
6364
6711
  ))
6365
6712
  : renderState$jscomp$1.push('$RX("');
6366
6713
  renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
6367
6714
  var chunk$jscomp$2 = id.toString(16);
6368
6715
  renderState$jscomp$1.push(chunk$jscomp$2);
6369
6716
  renderState$jscomp$1.push('"');
6370
- if (errorDigest) {
6371
- renderState$jscomp$1.push(",");
6372
- var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
6373
- errorDigest || ""
6374
- );
6375
- renderState$jscomp$1.push(chunk$jscomp$3);
6376
- }
6717
+ if (null != errorDigest)
6718
+ if ((renderState$jscomp$1.push(","), null == errorDigest))
6719
+ renderState$jscomp$1.push("null");
6720
+ else {
6721
+ var chunk$jscomp$3 =
6722
+ escapeJSStringsForInstructionScripts(errorDigest);
6723
+ renderState$jscomp$1.push(chunk$jscomp$3);
6724
+ }
6377
6725
  var JSCompiler_inline_result =
6378
6726
  renderState$jscomp$1.push(")\x3c/script>");
6379
6727
  if (!JSCompiler_inline_result) {
@@ -6398,12 +6746,12 @@ function flushCompletedQueues(request, destination) {
6398
6746
  flushingPartialBoundaries = !0;
6399
6747
  var partialBoundaries = request.partialBoundaries;
6400
6748
  for (i = 0; i < partialBoundaries.length; i++) {
6401
- var boundary$69 = partialBoundaries[i];
6749
+ var boundary$70 = partialBoundaries[i];
6402
6750
  a: {
6403
6751
  clientRenderedBoundaries = request;
6404
6752
  boundary = destination;
6405
- flushedByteSize = boundary$69.byteSize;
6406
- var completedSegments = boundary$69.completedSegments;
6753
+ flushedByteSize = boundary$70.byteSize;
6754
+ var completedSegments = boundary$70.completedSegments;
6407
6755
  for (
6408
6756
  JSCompiler_inline_result = 0;
6409
6757
  JSCompiler_inline_result < completedSegments.length;
@@ -6413,7 +6761,7 @@ function flushCompletedQueues(request, destination) {
6413
6761
  !flushPartiallyCompletedSegment(
6414
6762
  clientRenderedBoundaries,
6415
6763
  boundary,
6416
- boundary$69,
6764
+ boundary$70,
6417
6765
  completedSegments[JSCompiler_inline_result]
6418
6766
  )
6419
6767
  ) {
@@ -6423,10 +6771,10 @@ function flushCompletedQueues(request, destination) {
6423
6771
  break a;
6424
6772
  }
6425
6773
  completedSegments.splice(0, JSCompiler_inline_result);
6426
- var row = boundary$69.row;
6774
+ var row = boundary$70.row;
6427
6775
  null !== row &&
6428
6776
  row.together &&
6429
- 1 === boundary$69.pendingTasks &&
6777
+ 1 === boundary$70.pendingTasks &&
6430
6778
  (1 === row.pendingTasks
6431
6779
  ? unblockSuspenseListRow(
6432
6780
  clientRenderedBoundaries,
@@ -6436,7 +6784,7 @@ function flushCompletedQueues(request, destination) {
6436
6784
  : row.pendingTasks--);
6437
6785
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
6438
6786
  boundary,
6439
- boundary$69.contentState,
6787
+ boundary$70.contentState,
6440
6788
  clientRenderedBoundaries.renderState
6441
6789
  );
6442
6790
  }
@@ -6461,6 +6809,8 @@ function flushCompletedQueues(request, destination) {
6461
6809
  }
6462
6810
  } finally {
6463
6811
  (flushingPartialBoundaries = !1),
6812
+ (i = request.postponedState),
6813
+ null !== i && (i.nextSegmentId = request.nextSegmentId),
6464
6814
  0 === request.allPendingTasks &&
6465
6815
  0 === request.clientRenderedBoundaries.length &&
6466
6816
  0 === request.completedBoundaries.length &&
@@ -6470,7 +6820,8 @@ function flushCompletedQueues(request, destination) {
6470
6820
  ((partialBoundaries = endChunkForTag("body")),
6471
6821
  destination.push(partialBoundaries)),
6472
6822
  i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
6473
- (request.status = 14),
6823
+ endRenderLifetime(request),
6824
+ (request.status = 13),
6474
6825
  destination.push(null),
6475
6826
  (request.destination = null));
6476
6827
  }
@@ -6489,40 +6840,63 @@ function enqueueFlush(request) {
6489
6840
  }
6490
6841
  }
6491
6842
  function startFlowing(request, destination) {
6492
- if (13 === request.status)
6493
- (request.status = 14), destination.destroy(request.fatalError);
6494
- else if (14 !== request.status && null === request.destination) {
6843
+ if (12 === request.status)
6844
+ (request.status = 13),
6845
+ (request = request.fatalError),
6846
+ isRecoverableError(request) &&
6847
+ (request = cloneRecoverableErrorAsFatal(request)),
6848
+ destination.destroy(request);
6849
+ else if (13 !== request.status && null === request.destination) {
6495
6850
  request.destination = destination;
6496
6851
  try {
6497
6852
  flushCompletedQueues(request, destination);
6498
- } catch (error) {
6499
- logRecoverableError(request, error, {}), fatalError(request, error);
6853
+ } catch (error$72) {
6854
+ logRecoverableError(request, error$72, {}), fatalError(request, error$72);
6500
6855
  }
6501
6856
  }
6502
6857
  }
6503
- function abort(request, reason) {
6504
- if (11 === request.status || 10 === request.status) request.status = 12;
6858
+ function finishAbort(request, abortableTasks) {
6505
6859
  try {
6506
- var abortableTasks = request.abortableTasks;
6507
6860
  if (0 < abortableTasks.size) {
6508
- var error =
6509
- void 0 === reason
6510
- ? Error(formatProdErrorMessage(432))
6511
- : "object" === typeof reason &&
6512
- null !== reason &&
6513
- "function" === typeof reason.then
6514
- ? Error(formatProdErrorMessage(530))
6515
- : reason;
6516
- request.fatalError = error;
6861
+ var error = request.fatalError;
6517
6862
  abortableTasks.forEach(function (task) {
6518
- return abortTask(task, request, error);
6863
+ return finishAbortedTask(task, request, error);
6519
6864
  });
6520
6865
  abortableTasks.clear();
6521
6866
  }
6522
6867
  null !== request.destination &&
6523
6868
  flushCompletedQueues(request, request.destination);
6524
- } catch (error$71) {
6525
- logRecoverableError(request, error$71, {}), fatalError(request, error$71);
6869
+ } catch (error$73) {
6870
+ logRecoverableError(request, error$73, {}), fatalError(request, error$73);
6871
+ }
6872
+ }
6873
+ function endRenderLifetime(request) {
6874
+ request = request.renderLifetimeController;
6875
+ null !== request && request.abort("The render ended.");
6876
+ }
6877
+ function abort(request, reason) {
6878
+ if (!(request.aborted || (11 !== request.status && 10 !== request.status))) {
6879
+ endRenderLifetime(request);
6880
+ var isRecoverableReason =
6881
+ "object" === typeof reason &&
6882
+ null !== reason &&
6883
+ reason.$$typeof === REACT_RECOVERABLE_TYPE;
6884
+ request.aborted = !0;
6885
+ reason = isRecoverableReason
6886
+ ? createRecoverableError(reason)
6887
+ : void 0 === reason
6888
+ ? Error(formatProdErrorMessage(432))
6889
+ : "object" === typeof reason &&
6890
+ null !== reason &&
6891
+ "function" === typeof reason.then
6892
+ ? Error(formatProdErrorMessage(530))
6893
+ : reason;
6894
+ request.fatalError = reason;
6895
+ reason = request.abortableTasks;
6896
+ reason.forEach(function (task) {
6897
+ return abortTask(task, request);
6898
+ });
6899
+ finishAbort(request, reason);
6526
6900
  }
6527
6901
  }
6528
6902
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -6557,6 +6931,7 @@ function renderToStringImpl(
6557
6931
  Infinity,
6558
6932
  onError,
6559
6933
  void 0,
6934
+ void 0,
6560
6935
  function () {
6561
6936
  readyToStream = !0;
6562
6937
  },
@@ -6600,4 +6975,4 @@ exports.renderToString = function (children, options) {
6600
6975
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
6601
6976
  );
6602
6977
  };
6603
- exports.version = "19.2.8";
6978
+ exports.version = "19.3.0";