openplanr 3.4.0 → 3.5.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 (336) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/cli/commands/design.d.ts +3 -0
  3. package/dist/cli/commands/design.d.ts.map +1 -0
  4. package/dist/cli/commands/design.js +137 -0
  5. package/dist/cli/commands/design.js.map +1 -0
  6. package/dist/cli/commands/groups/operations.d.ts.map +1 -1
  7. package/dist/cli/commands/groups/operations.js +2 -0
  8. package/dist/cli/commands/groups/operations.js.map +1 -1
  9. package/dist/dashboard/.vite/manifest.json +1 -1
  10. package/dist/dashboard/assets/{index-CvQAlBy3.js → index-B-l_941W.js} +2 -2
  11. package/dist/dashboard/assets/{index-CvQAlBy3.js.map → index-B-l_941W.js.map} +1 -1
  12. package/dist/dashboard/dashboard-manifest.json +13 -13
  13. package/dist/dashboard/index.html +1 -1
  14. package/dist/services/design-artifact-service.d.ts +22 -0
  15. package/dist/services/design-artifact-service.d.ts.map +1 -1
  16. package/dist/services/design-artifact-service.js +76 -16
  17. package/dist/services/design-artifact-service.js.map +1 -1
  18. package/dist/services/runtime-manager/runtime-package.js +1 -1
  19. package/dist/services/runtime-manager/runtime-package.js.map +1 -1
  20. package/docs/CLI.md +29 -0
  21. package/lib/host-packages/adapter-registry.json +5 -5
  22. package/lib/host-packages/capability-map.json +1 -1
  23. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  24. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  25. package/lib/host-packages/claude/openplanr/.openplanr-content.json +24 -340
  26. package/lib/host-packages/claude/openplanr/README.md +8 -8
  27. package/lib/host-packages/claude/openplanr/skills/artifact/references/design-sharing.md +2 -2
  28. package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +23 -12
  29. package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +2 -2
  30. package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +3 -3
  31. package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +6 -3
  32. package/lib/host-packages/claude/openplanr/skills/design/references/review.md +6 -6
  33. package/lib/host-packages/claude/openplanr/skills/design/references/team-review.md +3 -4
  34. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +78 -38
  35. package/lib/host-packages/claude/openplanr/skills/design-loop/SKILL.md +15 -7
  36. package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +2 -2
  37. package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +3 -3
  38. package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +6 -6
  39. package/lib/host-packages/claude/openplanr/skills/design-loop/references/team-review.md +3 -4
  40. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +78 -38
  41. package/lib/host-packages/claude/openplanr/skills/design-review/SKILL.md +25 -5
  42. package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +2 -2
  43. package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +3 -3
  44. package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +6 -6
  45. package/lib/host-packages/claude/openplanr/skills/design-review/references/team-review.md +3 -4
  46. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +78 -38
  47. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +7 -3
  48. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +23 -339
  49. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  50. package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/design-sharing.md +2 -2
  51. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +2 -2
  52. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +3 -3
  53. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +6 -3
  54. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +6 -6
  55. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/team-review.md +3 -4
  56. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +78 -38
  57. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +2 -2
  58. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +3 -3
  59. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +6 -6
  60. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/team-review.md +3 -4
  61. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +78 -38
  62. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop.mdc +15 -7
  63. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +2 -2
  64. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +3 -3
  65. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +6 -6
  66. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/team-review.md +3 -4
  67. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +78 -38
  68. package/lib/host-packages/cursor/openplanr/rules/planr-design-review.mdc +25 -5
  69. package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +23 -12
  70. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +7 -3
  71. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  72. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  73. package/lib/host-packages/openai/openplanr/.openplanr-content.json +27 -343
  74. package/lib/host-packages/openai/openplanr/skills/artifact/references/design-sharing.md +2 -2
  75. package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +23 -12
  76. package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +0 -11
  77. package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +2 -2
  78. package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +3 -3
  79. package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +6 -3
  80. package/lib/host-packages/openai/openplanr/skills/design/references/review.md +6 -6
  81. package/lib/host-packages/openai/openplanr/skills/design/references/team-review.md +3 -4
  82. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +78 -38
  83. package/lib/host-packages/openai/openplanr/skills/design-loop/SKILL.md +15 -7
  84. package/lib/host-packages/openai/openplanr/skills/design-loop/openplanr.skill.json +0 -11
  85. package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +2 -2
  86. package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +3 -3
  87. package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +6 -6
  88. package/lib/host-packages/openai/openplanr/skills/design-loop/references/team-review.md +3 -4
  89. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +78 -38
  90. package/lib/host-packages/openai/openplanr/skills/design-review/SKILL.md +25 -5
  91. package/lib/host-packages/openai/openplanr/skills/design-review/openplanr.skill.json +0 -11
  92. package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +2 -2
  93. package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +3 -3
  94. package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +6 -6
  95. package/lib/host-packages/openai/openplanr/skills/design-review/references/team-review.md +3 -4
  96. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +78 -38
  97. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +7 -3
  98. package/lib/host-packages/openai/openplanr/skills/plan/openplanr.skill.json +0 -11
  99. package/package.json +2 -2
  100. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
  101. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
  102. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
  103. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
  104. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
  105. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
  106. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
  107. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
  108. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
  109. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
  110. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
  111. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
  112. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
  113. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
  114. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
  115. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +0 -1500
  116. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
  117. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
  118. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
  119. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -814
  120. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
  121. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +0 -2568
  122. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
  123. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
  124. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
  125. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
  126. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
  127. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
  128. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
  129. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
  130. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
  131. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
  132. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
  133. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
  134. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
  135. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
  136. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
  137. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
  138. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
  139. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
  140. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
  141. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
  142. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
  143. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
  144. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
  145. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
  146. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
  147. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
  148. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
  149. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
  150. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
  151. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
  152. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
  153. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
  154. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
  155. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  156. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
  157. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
  158. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
  159. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
  160. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
  161. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
  162. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
  163. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
  164. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
  165. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
  166. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
  167. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
  168. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
  169. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
  170. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
  171. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +0 -2611
  172. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
  173. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
  174. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  175. package/lib/host-packages/claude/openplanr/skills/design/scripts/design.mjs +0 -12
  176. package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/design.mjs +0 -12
  177. package/lib/host-packages/claude/openplanr/skills/design-review/scripts/design.mjs +0 -12
  178. package/lib/host-packages/claude/openplanr/skills/plan/scripts/design.mjs +0 -12
  179. package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/design.mjs +0 -12
  180. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/design.mjs +0 -12
  181. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/design.mjs +0 -12
  182. package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/design.mjs +0 -12
  183. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
  184. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
  185. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
  186. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
  187. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
  188. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
  189. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
  190. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
  191. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
  192. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
  193. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
  194. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
  195. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
  196. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
  197. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
  198. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +0 -1500
  199. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
  200. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
  201. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
  202. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -814
  203. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
  204. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +0 -2568
  205. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
  206. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
  207. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
  208. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
  209. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
  210. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
  211. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
  212. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
  213. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
  214. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
  215. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
  216. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
  217. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
  218. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
  219. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
  220. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
  221. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
  222. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
  223. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
  224. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
  225. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
  226. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
  227. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
  228. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
  229. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
  230. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
  231. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
  232. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
  233. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
  234. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
  235. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
  236. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
  237. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
  238. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  239. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
  240. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
  241. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
  242. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
  243. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
  244. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
  245. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
  246. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
  247. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
  248. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
  249. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
  250. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
  251. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
  252. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
  253. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
  254. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +0 -2611
  255. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
  256. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
  257. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  258. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
  259. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
  260. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
  261. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
  262. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
  263. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
  264. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
  265. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
  266. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
  267. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
  268. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
  269. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
  270. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
  271. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
  272. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
  273. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +0 -1500
  274. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
  275. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
  276. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
  277. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +0 -814
  278. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
  279. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +0 -2568
  280. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
  281. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
  282. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
  283. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
  284. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
  285. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
  286. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
  287. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
  288. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
  289. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +0 -2261
  290. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +0 -1595
  291. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +0 -1467
  292. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +0 -1860
  293. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +0 -914
  294. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +0 -2578
  295. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +0 -582
  296. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
  297. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
  298. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
  299. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
  300. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
  301. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
  302. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
  303. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
  304. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
  305. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
  306. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
  307. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
  308. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
  309. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
  310. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
  311. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
  312. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
  313. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  314. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
  315. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
  316. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
  317. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
  318. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
  319. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
  320. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
  321. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
  322. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
  323. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
  324. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
  325. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
  326. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
  327. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
  328. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
  329. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +0 -2611
  330. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
  331. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
  332. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
  333. package/lib/host-packages/openai/openplanr/skills/design/scripts/design.mjs +0 -12
  334. package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/design.mjs +0 -12
  335. package/lib/host-packages/openai/openplanr/skills/design-review/scripts/design.mjs +0 -12
  336. package/lib/host-packages/openai/openplanr/skills/plan/scripts/design.mjs +0 -12
@@ -1,1467 +0,0 @@
1
-
2
- var classComponentUpdater = {
3
- enqueueSetState: function(inst, payload, callback) {
4
- inst = inst._reactInternals;
5
- var lane = requestUpdateLane(), update = createUpdate(lane);
6
- update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
7
- },
8
- enqueueReplaceState: function(inst, payload, callback) {
9
- inst = inst._reactInternals;
10
- var lane = requestUpdateLane(), update = createUpdate(lane);
11
- update.tag = 1, update.payload = payload, callback != null && (update.callback = callback), payload = enqueueUpdate(inst, update, lane), payload !== null && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
12
- },
13
- enqueueForceUpdate: function(inst, callback) {
14
- inst = inst._reactInternals;
15
- var lane = requestUpdateLane(), update = createUpdate(lane);
16
- update.tag = 2, callback != null && (update.callback = callback), callback = enqueueUpdate(inst, update, lane), callback !== null && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
17
- }
18
- };
19
- function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
20
- return workInProgress2 = workInProgress2.stateNode, typeof workInProgress2.shouldComponentUpdate == "function" ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual2(oldProps, newProps) || !shallowEqual2(oldState, newState) : !0;
21
- }
22
- function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
23
- workInProgress2 = instance.state, typeof instance.componentWillReceiveProps == "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps == "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
24
- }
25
- function resolveClassComponentProps(Component, baseProps) {
26
- var newProps = baseProps;
27
- if ("ref" in baseProps) {
28
- newProps = {};
29
- for (var propName in baseProps)
30
- propName !== "ref" && (newProps[propName] = baseProps[propName]);
31
- }
32
- if (Component = Component.defaultProps) {
33
- newProps === baseProps && (newProps = assign({}, newProps));
34
- for (var propName$77 in Component)
35
- newProps[propName$77] === void 0 && (newProps[propName$77] = Component[propName$77]);
36
- }
37
- return newProps;
38
- }
39
- function defaultOnUncaughtError(error) {
40
- reportGlobalError(error);
41
- }
42
- function defaultOnCaughtError(error) {
43
- console.error(error);
44
- }
45
- function defaultOnRecoverableError(error) {
46
- reportGlobalError(error);
47
- }
48
- function logUncaughtError(root2, errorInfo) {
49
- try {
50
- var onUncaughtError = root2.onUncaughtError;
51
- onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
52
- } catch (e$78) {
53
- setTimeout(function() {
54
- throw e$78;
55
- });
56
- }
57
- }
58
- function logCaughtError(root2, boundary, errorInfo) {
59
- try {
60
- var onCaughtError = root2.onCaughtError;
61
- onCaughtError(errorInfo.value, {
62
- componentStack: errorInfo.stack,
63
- errorBoundary: boundary.tag === 1 ? boundary.stateNode : null
64
- });
65
- } catch (e$79) {
66
- setTimeout(function() {
67
- throw e$79;
68
- });
69
- }
70
- }
71
- function createRootErrorUpdate(root2, errorInfo, lane) {
72
- return lane = createUpdate(lane), lane.tag = 3, lane.payload = { element: null }, lane.callback = function() {
73
- logUncaughtError(root2, errorInfo);
74
- }, lane;
75
- }
76
- function createClassErrorUpdate(lane) {
77
- return lane = createUpdate(lane), lane.tag = 3, lane;
78
- }
79
- function initializeClassErrorUpdate(update, root2, fiber, errorInfo) {
80
- var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
81
- if (typeof getDerivedStateFromError == "function") {
82
- var error = errorInfo.value;
83
- update.payload = function() {
84
- return getDerivedStateFromError(error);
85
- }, update.callback = function() {
86
- logCaughtError(root2, fiber, errorInfo);
87
- };
88
- }
89
- var inst = fiber.stateNode;
90
- inst !== null && typeof inst.componentDidCatch == "function" && (update.callback = function() {
91
- logCaughtError(root2, fiber, errorInfo), typeof getDerivedStateFromError != "function" && (legacyErrorBoundariesThatAlreadyFailed === null ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
92
- var stack = errorInfo.stack;
93
- this.componentDidCatch(errorInfo.value, {
94
- componentStack: stack !== null ? stack : ""
95
- });
96
- });
97
- }
98
- function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes) {
99
- if (sourceFiber.flags |= 32768, value !== null && typeof value == "object" && typeof value.then == "function") {
100
- if (returnFiber = sourceFiber.alternate, returnFiber !== null && propagateParentContextChanges(
101
- returnFiber,
102
- sourceFiber,
103
- rootRenderLanes,
104
- !0
105
- ), sourceFiber = suspenseHandlerStackCursor.current, sourceFiber !== null) {
106
- switch (sourceFiber.tag) {
107
- case 31:
108
- case 13:
109
- case 19:
110
- return shellBoundary === null ? renderDidSuspendDelayIfPossible() : sourceFiber.alternate === null && workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), !1;
111
- case 22:
112
- return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, returnFiber === null ? (returnFiber = {
113
- transitions: null,
114
- markerInstances: null,
115
- retryQueue: /* @__PURE__ */ new Set([value])
116
- }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, sourceFiber === null ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRenderLanes)), !1;
117
- }
118
- throw Error(formatProdErrorMessage(435, sourceFiber.tag));
119
- }
120
- return attachPingListener(root2, value, rootRenderLanes), renderDidSuspendDelayIfPossible(), !1;
121
- }
122
- if (isHydrating)
123
- return returnFiber = suspenseHandlerStackCursor.current, returnFiber !== null ? ((returnFiber.flags & 65536) === 0 && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root2 = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(createCapturedValueAtFiber(root2, sourceFiber)))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
124
- cause: value
125
- }), queueHydrationError(
126
- createCapturedValueAtFiber(returnFiber, sourceFiber)
127
- )), root2 = root2.current.alternate, root2.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root2.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
128
- root2.stateNode,
129
- value,
130
- rootRenderLanes
131
- ), enqueueCapturedUpdate(root2, rootRenderLanes), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2)), !1;
132
- var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
133
- if (wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber), workInProgressRootConcurrentErrors === null ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError), workInProgressRootExitStatus !== 4 && (workInProgressRootExitStatus = 2), returnFiber === null) return !0;
134
- value = createCapturedValueAtFiber(value, sourceFiber), sourceFiber = returnFiber;
135
- do {
136
- switch (sourceFiber.tag) {
137
- case 3:
138
- return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate(sourceFiber.stateNode, value, root2), enqueueCapturedUpdate(sourceFiber, root2), !1;
139
- case 1:
140
- if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, (sourceFiber.flags & 128) === 0 && (typeof returnFiber.getDerivedStateFromError == "function" || wrapperError !== null && typeof wrapperError.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))
141
- return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
142
- rootRenderLanes,
143
- root2,
144
- sourceFiber,
145
- value
146
- ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), !1;
147
- break;
148
- case 22:
149
- if (sourceFiber.memoizedState !== null)
150
- return sourceFiber.flags |= 65536, !1;
151
- }
152
- sourceFiber = sourceFiber.return;
153
- } while (sourceFiber !== null);
154
- return !1;
155
- }
156
- var SelectiveHydrationException = Error(formatProdErrorMessage(461)), didReceiveUpdate = !1;
157
- function reconcileChildren(current, workInProgress2, nextChildren, renderLanes2) {
158
- workInProgress2.child = current === null ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
159
- workInProgress2,
160
- current.child,
161
- nextChildren,
162
- renderLanes2
163
- );
164
- }
165
- function updateForwardRef(current, workInProgress2, Component, nextProps, renderLanes2) {
166
- Component = Component.render;
167
- var ref = workInProgress2.ref;
168
- if ("ref" in nextProps) {
169
- var propsWithoutRef = {};
170
- for (var key in nextProps)
171
- key !== "ref" && (propsWithoutRef[key] = nextProps[key]);
172
- } else propsWithoutRef = nextProps;
173
- return prepareToReadContext(workInProgress2), nextProps = renderWithHooks(
174
- current,
175
- workInProgress2,
176
- Component,
177
- propsWithoutRef,
178
- ref,
179
- renderLanes2
180
- ), key = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && key && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
181
- }
182
- function updateMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
183
- if (current === null) {
184
- var type = Component.type;
185
- return typeof type == "function" && !shouldConstruct(type) && type.defaultProps === void 0 && Component.compare === null ? (workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
186
- current,
187
- workInProgress2,
188
- type,
189
- nextProps,
190
- renderLanes2
191
- )) : (current = createFiberFromTypeAndProps(
192
- Component.type,
193
- null,
194
- nextProps,
195
- workInProgress2,
196
- workInProgress2.mode,
197
- renderLanes2
198
- ), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current);
199
- }
200
- if (type = current.child, !checkScheduledUpdateOrContext(current, renderLanes2)) {
201
- var prevProps = type.memoizedProps;
202
- if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual2, Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
203
- return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
204
- }
205
- return workInProgress2.flags |= 1, current = createWorkInProgress(type, nextProps), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current;
206
- }
207
- function updateSimpleMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
208
- if (current !== null) {
209
- var prevProps = current.memoizedProps;
210
- if (shallowEqual2(prevProps, nextProps) && current.ref === workInProgress2.ref)
211
- if (didReceiveUpdate = !1, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
212
- (current.flags & 131072) !== 0 && (didReceiveUpdate = !0);
213
- else
214
- return workInProgress2.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
215
- }
216
- return updateFunctionComponent(
217
- current,
218
- workInProgress2,
219
- Component,
220
- nextProps,
221
- renderLanes2
222
- );
223
- }
224
- function updateOffscreenComponent(current, workInProgress2, renderLanes2, nextProps) {
225
- var nextChildren = nextProps.children, prevState = current !== null ? current.memoizedState : null;
226
- if (current === null && workInProgress2.stateNode === null && (workInProgress2.stateNode = {
227
- _visibility: 1,
228
- _pendingMarkers: null,
229
- _retryCache: null,
230
- _transitions: null
231
- }), nextProps.mode === "hidden") {
232
- if ((workInProgress2.flags & 128) !== 0) {
233
- if (prevState = prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, current !== null) {
234
- for (nextProps = workInProgress2.child = current.child, nextChildren = 0; nextProps !== null; )
235
- nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
236
- nextProps = nextChildren & ~prevState;
237
- } else nextProps = 0, workInProgress2.child = null;
238
- return deferHiddenOffscreenComponent(
239
- current,
240
- workInProgress2,
241
- prevState,
242
- renderLanes2,
243
- nextProps
244
- );
245
- }
246
- if ((renderLanes2 & 536870912) !== 0)
247
- workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, current !== null && pushTransition(
248
- workInProgress2,
249
- prevState !== null ? prevState.cachePool : null
250
- ), prevState !== null ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
251
- else
252
- return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(
253
- current,
254
- workInProgress2,
255
- prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2,
256
- renderLanes2,
257
- nextProps
258
- );
259
- } else
260
- prevState !== null ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(), workInProgress2.memoizedState = null) : (current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack());
261
- return reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
262
- }
263
- function bailoutOffscreenComponent(current, workInProgress2) {
264
- return current !== null && current.tag === 22 || workInProgress2.stateNode !== null || (workInProgress2.stateNode = {
265
- _visibility: 1,
266
- _pendingMarkers: null,
267
- _retryCache: null,
268
- _transitions: null
269
- }), workInProgress2.sibling;
270
- }
271
- function deferHiddenOffscreenComponent(current, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
272
- var JSCompiler_inline_result = peekCacheFromPool();
273
- return JSCompiler_inline_result = JSCompiler_inline_result === null ? null : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result }, workInProgress2.memoizedState = {
274
- baseLanes: nextBaseLanes,
275
- cachePool: JSCompiler_inline_result
276
- }, current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2), current !== null && propagateParentContextChanges(current, workInProgress2, renderLanes2, !0), workInProgress2.childLanes = remainingChildLanes, null;
277
- }
278
- function mountActivityChildren(workInProgress2, nextProps) {
279
- return nextProps = mountWorkInProgressOffscreenFiber(
280
- { mode: nextProps.mode, children: nextProps.children },
281
- workInProgress2.mode
282
- ), nextProps.ref = workInProgress2.ref, workInProgress2.child = nextProps, nextProps.return = workInProgress2, nextProps;
283
- }
284
- function retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
285
- return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountActivityChildren(workInProgress2, workInProgress2.pendingProps), current.flags |= 2, popSuspenseHandler(workInProgress2), workInProgress2.memoizedState = null, current;
286
- }
287
- function updateActivityComponent(current, workInProgress2, renderLanes2) {
288
- var nextProps = workInProgress2.pendingProps, didSuspend = (workInProgress2.flags & 128) !== 0;
289
- if (workInProgress2.flags &= -129, current === null) {
290
- if (isHydrating) {
291
- if (nextProps.mode === "hidden")
292
- return current = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, current.memoizedState = { baseLanes: 0, cachePool: null }, bailoutOffscreenComponent(null, current);
293
- if (pushDehydratedActivitySuspenseHandler(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
294
- current,
295
- rootOrSingletonContext
296
- ), current = current !== null && current.data === "&" ? current : null, current !== null && (workInProgress2.memoizedState = {
297
- dehydrated: current,
298
- treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
299
- retryLane: 536870912,
300
- hydrationErrors: null
301
- }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
302
- return workInProgress2.lanes = 536870912, null;
303
- }
304
- return mountActivityChildren(workInProgress2, nextProps);
305
- }
306
- var prevState = current.memoizedState;
307
- if (prevState !== null) {
308
- var dehydrated = prevState.dehydrated;
309
- if (pushDehydratedActivitySuspenseHandler(workInProgress2), didSuspend)
310
- if (workInProgress2.flags & 256)
311
- workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(
312
- current,
313
- workInProgress2,
314
- renderLanes2
315
- );
316
- else if (workInProgress2.memoizedState !== null)
317
- workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null;
318
- else throw Error(formatProdErrorMessage(558));
319
- else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), didSuspend = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didSuspend) {
320
- if (currentTreeHiddenStackCursor.current === null) {
321
- if (nextProps = workInProgressRoot, nextProps !== null && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), dehydrated !== 0 && dehydrated !== prevState.retryLane))
322
- throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException;
323
- renderDidSuspendDelayIfPossible();
324
- }
325
- workInProgress2 = retryActivityComponentWithoutHydrating(
326
- current,
327
- workInProgress2,
328
- renderLanes2
329
- );
330
- } else
331
- current = prevState.treeContext, nextHydratableInstance = getNextHydratable(dehydrated.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 134221824;
332
- return workInProgress2;
333
- }
334
- return current = createWorkInProgress(current.child, {
335
- mode: nextProps.mode,
336
- children: nextProps.children
337
- }), current.ref = workInProgress2.ref, workInProgress2.child = current, current.return = workInProgress2, current;
338
- }
339
- function markRef(current, workInProgress2) {
340
- var ref = workInProgress2.ref;
341
- if (ref === null)
342
- current !== null && current.ref !== null && (workInProgress2.flags |= 4194816);
343
- else {
344
- if (typeof ref != "function" && typeof ref != "object")
345
- throw Error(formatProdErrorMessage(284));
346
- (current === null || current.ref !== ref) && (workInProgress2.flags |= 4194816);
347
- }
348
- }
349
- function updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
350
- return prepareToReadContext(workInProgress2), Component = renderWithHooks(
351
- current,
352
- workInProgress2,
353
- Component,
354
- nextProps,
355
- void 0,
356
- renderLanes2
357
- ), nextProps = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && nextProps && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.child);
358
- }
359
- function replayFunctionComponent(current, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
360
- return prepareToReadContext(workInProgress2), workInProgress2.updateQueue = null, nextProps = renderWithHooksAgain(
361
- workInProgress2,
362
- Component,
363
- nextProps,
364
- secondArg
365
- ), finishRenderingHooks(current), Component = checkDidRenderIdHook(), current !== null && !didReceiveUpdate ? (bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2)) : (isHydrating && Component && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child);
366
- }
367
- function updateClassComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
368
- if (prepareToReadContext(workInProgress2), workInProgress2.stateNode === null) {
369
- var context = emptyContextObject, contextType = Component.contextType;
370
- typeof contextType == "object" && contextType !== null && (context = readContext(contextType)), context = new Component(nextProps, context), workInProgress2.memoizedState = context.state !== null && context.state !== void 0 ? context.state : null, context.updater = classComponentUpdater, workInProgress2.stateNode = context, context._reactInternals = workInProgress2, context = workInProgress2.stateNode, context.props = nextProps, context.state = workInProgress2.memoizedState, context.refs = {}, initializeUpdateQueue(workInProgress2), contextType = Component.contextType, context.context = typeof contextType == "object" && contextType !== null ? readContext(contextType) : emptyContextObject, context.state = workInProgress2.memoizedState, contextType = Component.getDerivedStateFromProps, typeof contextType == "function" && (applyDerivedStateFromProps(
371
- workInProgress2,
372
- Component,
373
- contextType,
374
- nextProps
375
- ), context.state = workInProgress2.memoizedState), typeof Component.getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function" || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (contextType = context.state, typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !0;
376
- } else if (current === null) {
377
- context = workInProgress2.stateNode;
378
- var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
379
- context.props = oldProps;
380
- var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
381
- contextType = emptyContextObject, typeof contextType$jscomp$0 == "object" && contextType$jscomp$0 !== null && (contextType = readContext(contextType$jscomp$0));
382
- var getDerivedStateFromProps = Component.getDerivedStateFromProps;
383
- contextType$jscomp$0 = typeof getDerivedStateFromProps == "function" || typeof context.getSnapshotBeforeUpdate == "function", unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps, contextType$jscomp$0 || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
384
- workInProgress2,
385
- context,
386
- nextProps,
387
- contextType
388
- ), hasForceUpdate = !1;
389
- var oldState = workInProgress2.memoizedState;
390
- context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress2.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof getDerivedStateFromProps == "function" && (applyDerivedStateFromProps(
391
- workInProgress2,
392
- Component,
393
- getDerivedStateFromProps,
394
- nextProps
395
- ), oldContext = workInProgress2.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(
396
- workInProgress2,
397
- Component,
398
- oldProps,
399
- nextProps,
400
- oldState,
401
- oldContext,
402
- contextType
403
- )) ? (contextType$jscomp$0 || typeof context.UNSAFE_componentWillMount != "function" && typeof context.componentWillMount != "function" || (typeof context.componentWillMount == "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount == "function" && context.UNSAFE_componentWillMount()), typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308)) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : (typeof context.componentDidMount == "function" && (workInProgress2.flags |= 4194308), nextProps = !1);
404
- } else {
405
- context = workInProgress2.stateNode, cloneUpdateQueue(current, workInProgress2), contextType = workInProgress2.memoizedProps, contextType$jscomp$0 = resolveClassComponentProps(Component, contextType), context.props = contextType$jscomp$0, getDerivedStateFromProps = workInProgress2.pendingProps, oldState = context.context, oldContext = Component.contextType, oldProps = emptyContextObject, typeof oldContext == "object" && oldContext !== null && (oldProps = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps == "function" || typeof context.getSnapshotBeforeUpdate == "function") || typeof context.UNSAFE_componentWillReceiveProps != "function" && typeof context.componentWillReceiveProps != "function" || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
406
- workInProgress2,
407
- context,
408
- nextProps,
409
- oldProps
410
- ), hasForceUpdate = !1, oldState = workInProgress2.memoizedState, context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction();
411
- var newState = workInProgress2.memoizedState;
412
- contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies) ? (typeof unresolvedOldProps == "function" && (applyDerivedStateFromProps(
413
- workInProgress2,
414
- Component,
415
- unresolvedOldProps,
416
- nextProps
417
- ), newState = workInProgress2.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(
418
- workInProgress2,
419
- Component,
420
- contextType$jscomp$0,
421
- nextProps,
422
- oldState,
423
- newState,
424
- oldProps
425
- ) || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies)) ? (oldContext || typeof context.UNSAFE_componentWillUpdate != "function" && typeof context.componentWillUpdate != "function" || (typeof context.componentWillUpdate == "function" && context.componentWillUpdate(nextProps, newState, oldProps), typeof context.UNSAFE_componentWillUpdate == "function" && context.UNSAFE_componentWillUpdate(
426
- nextProps,
427
- newState,
428
- oldProps
429
- )), typeof context.componentDidUpdate == "function" && (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate == "function" && (workInProgress2.flags |= 1024)) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : (typeof context.componentDidUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate != "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = !1);
430
- }
431
- return context = nextProps, markRef(current, workInProgress2), nextProps = (workInProgress2.flags & 128) !== 0, context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && typeof Component.getDerivedStateFromError != "function" ? null : context.render(), workInProgress2.flags |= 1, current !== null && nextProps ? (workInProgress2.child = reconcileChildFibers(
432
- workInProgress2,
433
- current.child,
434
- null,
435
- renderLanes2
436
- ), workInProgress2.child = reconcileChildFibers(
437
- workInProgress2,
438
- null,
439
- Component,
440
- renderLanes2
441
- )) : reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.memoizedState = context.state, current = workInProgress2.child) : current = bailoutOnAlreadyFinishedWork(
442
- current,
443
- workInProgress2,
444
- renderLanes2
445
- ), current;
446
- }
447
- function mountHostRootWithoutHydrating(current, workInProgress2, nextChildren, renderLanes2) {
448
- return resetHydrationState(), workInProgress2.flags |= 256, reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
449
- }
450
- var SUSPENDED_MARKER = {
451
- dehydrated: null,
452
- treeContext: null,
453
- retryLane: 0,
454
- hydrationErrors: null
455
- };
456
- function mountSuspenseOffscreenState(renderLanes2) {
457
- return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
458
- }
459
- function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes2) {
460
- return current = current !== null ? current.childLanes & ~renderLanes2 : 0, primaryTreeDidDefer && (current |= workInProgressDeferredLane), current;
461
- }
462
- function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
463
- var nextProps = workInProgress2.pendingProps, showFallback = !1, didSuspend = (workInProgress2.flags & 128) !== 0, JSCompiler_temp;
464
- if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current !== null && current.memoizedState === null ? !1 : (suspenseStackCursor.current & 2) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress2.flags &= -129), JSCompiler_temp = (workInProgress2.flags & 32) !== 0, workInProgress2.flags &= -33, current === null) {
465
- if (isHydrating) {
466
- if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(), (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
467
- current,
468
- rootOrSingletonContext
469
- ), current = current !== null && current.data !== "&" ? current : null, current !== null && (workInProgress2.memoizedState = {
470
- dehydrated: current,
471
- treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
472
- retryLane: 536870912,
473
- hydrationErrors: null
474
- }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null) throw throwOnHydrationMismatch(workInProgress2);
475
- return isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null;
476
- }
477
- return didSuspend = nextProps.children, nextProps = nextProps.fallback, showFallback ? (reuseSuspenseHandlerOnStack(), showFallback = workInProgress2.mode, didSuspend = mountWorkInProgressOffscreenFiber(
478
- { mode: "hidden", children: didSuspend },
479
- showFallback
480
- ), nextProps = createFiberFromFragment(
481
- nextProps,
482
- showFallback,
483
- renderLanes2,
484
- null
485
- ), didSuspend.return = workInProgress2, nextProps.return = workInProgress2, didSuspend.sibling = nextProps, workInProgress2.child = didSuspend, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
486
- current,
487
- JSCompiler_temp,
488
- renderLanes2
489
- ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), mountSuspensePrimaryChildren(workInProgress2, didSuspend));
490
- }
491
- var prevState = current.memoizedState;
492
- if (prevState !== null) {
493
- var dehydrated$96 = prevState.dehydrated;
494
- if (dehydrated$96 !== null)
495
- return updateDehydratedSuspenseComponent(
496
- current,
497
- workInProgress2,
498
- didSuspend,
499
- JSCompiler_temp,
500
- nextProps,
501
- dehydrated$96,
502
- prevState,
503
- renderLanes2
504
- );
505
- }
506
- return showFallback ? (reuseSuspenseHandlerOnStack(), showFallback = nextProps.fallback, didSuspend = workInProgress2.mode, prevState = current.child, dehydrated$96 = prevState.sibling, nextProps = createWorkInProgress(prevState, {
507
- mode: "hidden",
508
- children: nextProps.children
509
- }), nextProps.subtreeFlags = prevState.subtreeFlags & 1206910976, dehydrated$96 !== null ? showFallback = createWorkInProgress(dehydrated$96, showFallback) : (showFallback = createFiberFromFragment(
510
- showFallback,
511
- didSuspend,
512
- renderLanes2,
513
- null
514
- ), showFallback.flags |= 2), showFallback.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = showFallback, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, showFallback = current.child.memoizedState, showFallback === null ? showFallback = mountSuspenseOffscreenState(renderLanes2) : (didSuspend = showFallback.cachePool, didSuspend !== null ? (prevState = CacheContext._currentValue, didSuspend = didSuspend.parent !== prevState ? { parent: prevState, pool: prevState } : didSuspend) : didSuspend = getSuspendedCache(), showFallback = {
515
- baseLanes: showFallback.baseLanes | renderLanes2,
516
- cachePool: didSuspend
517
- }), nextProps.memoizedState = showFallback, nextProps.childLanes = getRemainingWorkInPrimaryTree(
518
- current,
519
- JSCompiler_temp,
520
- renderLanes2
521
- ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps)) : (pushPrimaryTreeSuspenseHandler(workInProgress2), renderLanes2 = current.child, current = renderLanes2.sibling, renderLanes2 = createWorkInProgress(renderLanes2, {
522
- mode: "visible",
523
- children: nextProps.children
524
- }), renderLanes2.return = workInProgress2, renderLanes2.sibling = null, current !== null && (JSCompiler_temp = workInProgress2.deletions, JSCompiler_temp === null ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current)), workInProgress2.child = renderLanes2, workInProgress2.memoizedState = null, renderLanes2);
525
- }
526
- function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
527
- return primaryChildren = mountWorkInProgressOffscreenFiber(
528
- { mode: "visible", children: primaryChildren },
529
- workInProgress2.mode
530
- ), primaryChildren.return = workInProgress2, workInProgress2.child = primaryChildren;
531
- }
532
- function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
533
- return offscreenProps = createFiberImplClass(22, offscreenProps, null, mode), offscreenProps.lanes = 0, offscreenProps;
534
- }
535
- function retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
536
- return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountSuspensePrimaryChildren(
537
- workInProgress2,
538
- workInProgress2.pendingProps.children
539
- ), current.flags |= 2, workInProgress2.memoizedState = null, current;
540
- }
541
- function updateDehydratedSuspenseComponent(current, workInProgress2, didSuspend, didPrimaryChildrenDefer, nextProps, suspenseInstance, suspenseState, renderLanes2) {
542
- if (didSuspend)
543
- return workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, retrySuspenseComponentWithoutHydrating(
544
- current,
545
- workInProgress2,
546
- renderLanes2
547
- )) : workInProgress2.memoizedState !== null ? (reuseSuspenseHandlerOnStack(), workInProgress2.child = current.child, workInProgress2.flags |= 128, null) : (reuseSuspenseHandlerOnStack(), suspenseInstance = nextProps.fallback, suspenseState = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber(
548
- { mode: "visible", children: nextProps.children },
549
- suspenseState
550
- ), suspenseInstance = createFiberFromFragment(
551
- suspenseInstance,
552
- suspenseState,
553
- renderLanes2,
554
- null
555
- ), suspenseInstance.flags |= 2, nextProps.return = workInProgress2, suspenseInstance.return = workInProgress2, nextProps.sibling = suspenseInstance, workInProgress2.child = nextProps, reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
556
- current,
557
- didPrimaryChildrenDefer,
558
- renderLanes2
559
- ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps));
560
- if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(suspenseInstance)) {
561
- if (didPrimaryChildrenDefer = suspenseInstance.nextSibling && suspenseInstance.nextSibling.dataset, didPrimaryChildrenDefer) var digest = didPrimaryChildrenDefer.dgst;
562
- return didPrimaryChildrenDefer = digest, didPrimaryChildrenDefer !== "" && (nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = didPrimaryChildrenDefer, queueHydrationError({ value: nextProps, source: null, stack: null })), retrySuspenseComponentWithoutHydrating(
563
- current,
564
- workInProgress2,
565
- renderLanes2
566
- );
567
- }
568
- if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), didPrimaryChildrenDefer = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didPrimaryChildrenDefer) {
569
- if (currentTreeHiddenStackCursor.current !== null)
570
- return retrySuspenseComponentWithoutHydrating(
571
- current,
572
- workInProgress2,
573
- renderLanes2
574
- );
575
- if (didPrimaryChildrenDefer = workInProgressRoot, didPrimaryChildrenDefer !== null && (nextProps = getBumpedLaneForHydration(
576
- didPrimaryChildrenDefer,
577
- renderLanes2
578
- ), nextProps !== 0 && nextProps !== suspenseState.retryLane))
579
- throw suspenseState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(didPrimaryChildrenDefer, current, nextProps), SelectiveHydrationException;
580
- return isSuspenseInstancePending(suspenseInstance) || renderDidSuspendDelayIfPossible(), retrySuspenseComponentWithoutHydrating(
581
- current,
582
- workInProgress2,
583
- renderLanes2
584
- );
585
- }
586
- return isSuspenseInstancePending(suspenseInstance) ? (workInProgress2.flags |= 192, workInProgress2.child = current.child, null) : (current = suspenseState.treeContext, nextHydratableInstance = getNextHydratable(suspenseInstance.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountSuspensePrimaryChildren(
587
- workInProgress2,
588
- nextProps.children
589
- ), workInProgress2.flags |= 134221824, workInProgress2);
590
- }
591
- function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
592
- fiber.lanes |= renderLanes2;
593
- var alternate = fiber.alternate;
594
- alternate !== null && (alternate.lanes |= renderLanes2), scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
595
- }
596
- function findLastContentRow(firstChild) {
597
- for (var lastContentRow = null; firstChild !== null; ) {
598
- var currentRow = firstChild.alternate;
599
- currentRow !== null && findFirstSuspended(currentRow) === null && (lastContentRow = firstChild), firstChild = firstChild.sibling;
600
- }
601
- return lastContentRow;
602
- }
603
- function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
604
- var renderState = workInProgress2.memoizedState;
605
- renderState === null ? workInProgress2.memoizedState = {
606
- isBackwards,
607
- rendering: null,
608
- renderingStartTime: 0,
609
- last: lastContentRow,
610
- tail,
611
- tailMode,
612
- treeForkCount: treeForkCount2
613
- } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
614
- }
615
- function reverseChildren(fiber) {
616
- var row = fiber.child;
617
- for (fiber.child = null; row !== null; ) {
618
- var nextRow = row.sibling;
619
- row.sibling = fiber.child, fiber.child = row, row = nextRow;
620
- }
621
- }
622
- function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
623
- var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail;
624
- nextProps = nextProps.children;
625
- var suspenseContext = suspenseStackCursor.current;
626
- if (workInProgress2.flags & 128)
627
- return pushSuspenseListContext(workInProgress2, suspenseContext), null;
628
- var shouldForceFallback = (suspenseContext & 2) !== 0;
629
- if (shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1, pushSuspenseListContext(workInProgress2, suspenseContext), revealOrder === "backwards" && current !== null ? (reverseChildren(current), reconcileChildren(current, workInProgress2, nextProps, renderLanes2), reverseChildren(current)) : reconcileChildren(current, workInProgress2, nextProps, renderLanes2), nextProps = isHydrating ? treeForkCount : 0, !shouldForceFallback && current !== null && (current.flags & 128) !== 0)
630
- a: for (current = workInProgress2.child; current !== null; ) {
631
- if (current.tag === 13)
632
- current.memoizedState !== null && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
633
- else if (current.tag === 19)
634
- scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
635
- else if (current.child !== null) {
636
- current.child.return = current, current = current.child;
637
- continue;
638
- }
639
- if (current === workInProgress2) break a;
640
- for (; current.sibling === null; ) {
641
- if (current.return === null || current.return === workInProgress2)
642
- break a;
643
- current = current.return;
644
- }
645
- current.sibling.return = current.return, current = current.sibling;
646
- }
647
- switch (revealOrder) {
648
- case "backwards":
649
- renderLanes2 = findLastContentRow(workInProgress2.child), renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null, reverseChildren(workInProgress2)), initSuspenseListRenderState(
650
- workInProgress2,
651
- !0,
652
- revealOrder,
653
- null,
654
- tailMode,
655
- nextProps
656
- );
657
- break;
658
- case "unstable_legacy-backwards":
659
- for (renderLanes2 = null, revealOrder = workInProgress2.child, workInProgress2.child = null; revealOrder !== null; ) {
660
- if (current = revealOrder.alternate, current !== null && findFirstSuspended(current) === null) {
661
- workInProgress2.child = revealOrder;
662
- break;
663
- }
664
- current = revealOrder.sibling, revealOrder.sibling = renderLanes2, renderLanes2 = revealOrder, revealOrder = current;
665
- }
666
- initSuspenseListRenderState(
667
- workInProgress2,
668
- !0,
669
- renderLanes2,
670
- null,
671
- tailMode,
672
- nextProps
673
- );
674
- break;
675
- case "together":
676
- initSuspenseListRenderState(
677
- workInProgress2,
678
- !1,
679
- null,
680
- null,
681
- void 0,
682
- nextProps
683
- );
684
- break;
685
- case "independent":
686
- workInProgress2.memoizedState = null;
687
- break;
688
- default:
689
- renderLanes2 = findLastContentRow(workInProgress2.child), renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(
690
- workInProgress2,
691
- !1,
692
- revealOrder,
693
- renderLanes2,
694
- tailMode,
695
- nextProps
696
- );
697
- }
698
- return workInProgress2.child;
699
- }
700
- function updateContextProvider(current, workInProgress2, renderLanes2) {
701
- var newProps = workInProgress2.pendingProps;
702
- return pushProvider(workInProgress2, workInProgress2.type, newProps.value), reconcileChildren(current, workInProgress2, newProps.children, renderLanes2), workInProgress2.child;
703
- }
704
- function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
705
- if (current !== null && (workInProgress2.dependencies = current.dependencies), workInProgressRootSkippedLanes |= workInProgress2.lanes, (renderLanes2 & workInProgress2.childLanes) === 0)
706
- if (current !== null) {
707
- if (propagateParentContextChanges(
708
- current,
709
- workInProgress2,
710
- renderLanes2,
711
- !1
712
- ), (renderLanes2 & workInProgress2.childLanes) === 0)
713
- return null;
714
- } else return null;
715
- if (current !== null && workInProgress2.child !== current.child)
716
- throw Error(formatProdErrorMessage(153));
717
- if (workInProgress2.child !== null) {
718
- for (current = workInProgress2.child, renderLanes2 = createWorkInProgress(current, current.pendingProps), workInProgress2.child = renderLanes2, renderLanes2.return = workInProgress2; current.sibling !== null; )
719
- current = current.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current, current.pendingProps), renderLanes2.return = workInProgress2;
720
- renderLanes2.sibling = null;
721
- }
722
- return workInProgress2.child;
723
- }
724
- function checkScheduledUpdateOrContext(current, renderLanes2) {
725
- return (current.lanes & renderLanes2) !== 0 ? !0 : (current = current.dependencies, !!(current !== null && checkIfContextChanged(current)));
726
- }
727
- function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2) {
728
- switch (workInProgress2.tag) {
729
- case 3:
730
- pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo), pushProvider(workInProgress2, CacheContext, current.memoizedState.cache), resetHydrationState();
731
- break;
732
- case 27:
733
- case 5:
734
- pushHostContext(workInProgress2);
735
- break;
736
- case 4:
737
- pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo);
738
- break;
739
- case 10:
740
- pushProvider(
741
- workInProgress2,
742
- workInProgress2.type,
743
- workInProgress2.memoizedProps.value
744
- );
745
- break;
746
- case 31:
747
- if (workInProgress2.memoizedState !== null)
748
- return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
749
- break;
750
- case 13:
751
- var state$108 = workInProgress2.memoizedState;
752
- if (state$108 !== null) {
753
- if (state$108.dehydrated !== null)
754
- return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null;
755
- state$108 = propagateParentContextChanges(
756
- current,
757
- workInProgress2,
758
- renderLanes2,
759
- !1
760
- );
761
- var primaryChildLanes = workInProgress2.child.childLanes;
762
- return state$108 || (renderLanes2 & primaryChildLanes) !== 0 ? updateSuspenseComponent(current, workInProgress2, renderLanes2) : (pushPrimaryTreeSuspenseHandler(workInProgress2), current = bailoutOnAlreadyFinishedWork(
763
- current,
764
- workInProgress2,
765
- renderLanes2
766
- ), current !== null ? current.sibling : null);
767
- }
768
- pushPrimaryTreeSuspenseHandler(workInProgress2);
769
- break;
770
- case 19:
771
- if (workInProgress2.flags & 128)
772
- return updateSuspenseListComponent(
773
- current,
774
- workInProgress2,
775
- renderLanes2
776
- );
777
- if (primaryChildLanes = (current.flags & 128) !== 0, state$108 = (renderLanes2 & workInProgress2.childLanes) !== 0, state$108 || (propagateParentContextChanges(
778
- current,
779
- workInProgress2,
780
- renderLanes2,
781
- !1
782
- ), state$108 = (renderLanes2 & workInProgress2.childLanes) !== 0), primaryChildLanes) {
783
- if (state$108)
784
- return updateSuspenseListComponent(
785
- current,
786
- workInProgress2,
787
- renderLanes2
788
- );
789
- workInProgress2.flags |= 128;
790
- }
791
- if (primaryChildLanes = workInProgress2.memoizedState, primaryChildLanes !== null && (primaryChildLanes.rendering = null, primaryChildLanes.tail = null, primaryChildLanes.lastEffect = null), pushSuspenseListContext(workInProgress2, suspenseStackCursor.current), state$108) break;
792
- return null;
793
- case 22:
794
- return workInProgress2.lanes = 0, updateOffscreenComponent(
795
- current,
796
- workInProgress2,
797
- renderLanes2,
798
- workInProgress2.pendingProps
799
- );
800
- case 24:
801
- pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
802
- }
803
- return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
804
- }
805
- function beginWork(current, workInProgress2, renderLanes2) {
806
- if (current !== null)
807
- if (current.memoizedProps !== workInProgress2.pendingProps)
808
- didReceiveUpdate = !0;
809
- else {
810
- if (!checkScheduledUpdateOrContext(current, renderLanes2) && (workInProgress2.flags & 128) === 0)
811
- return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(
812
- current,
813
- workInProgress2,
814
- renderLanes2
815
- );
816
- didReceiveUpdate = (current.flags & 131072) !== 0;
817
- }
818
- else
819
- didReceiveUpdate = !1, isHydrating && (workInProgress2.flags & 1048576) !== 0 && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
820
- switch (workInProgress2.lanes = 0, workInProgress2.tag) {
821
- case 16:
822
- a: {
823
- var props = workInProgress2.pendingProps;
824
- if (current = resolveLazy(workInProgress2.elementType), workInProgress2.type = current, typeof current == "function")
825
- shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress2.tag = 1, workInProgress2 = updateClassComponent(
826
- null,
827
- workInProgress2,
828
- current,
829
- props,
830
- renderLanes2
831
- )) : (workInProgress2.tag = 0, workInProgress2 = updateFunctionComponent(
832
- null,
833
- workInProgress2,
834
- current,
835
- props,
836
- renderLanes2
837
- ));
838
- else {
839
- if (current != null) {
840
- var $$typeof = current.$$typeof;
841
- if ($$typeof === REACT_FORWARD_REF_TYPE) {
842
- workInProgress2.tag = 11, workInProgress2 = updateForwardRef(
843
- null,
844
- workInProgress2,
845
- current,
846
- props,
847
- renderLanes2
848
- );
849
- break a;
850
- } else if ($$typeof === REACT_MEMO_TYPE) {
851
- workInProgress2.tag = 14, workInProgress2 = updateMemoComponent(
852
- null,
853
- workInProgress2,
854
- current,
855
- props,
856
- renderLanes2
857
- );
858
- break a;
859
- } else if ($$typeof === REACT_CONTEXT_TYPE) {
860
- workInProgress2.tag = 10, workInProgress2.type = current, workInProgress2 = updateContextProvider(
861
- null,
862
- workInProgress2,
863
- renderLanes2
864
- );
865
- break a;
866
- }
867
- }
868
- throw workInProgress2 = getComponentNameFromType(current) || current, Error(formatProdErrorMessage(306, workInProgress2, ""));
869
- }
870
- }
871
- return workInProgress2;
872
- case 0:
873
- return updateFunctionComponent(
874
- current,
875
- workInProgress2,
876
- workInProgress2.type,
877
- workInProgress2.pendingProps,
878
- renderLanes2
879
- );
880
- case 1:
881
- return props = workInProgress2.type, $$typeof = resolveClassComponentProps(
882
- props,
883
- workInProgress2.pendingProps
884
- ), updateClassComponent(
885
- current,
886
- workInProgress2,
887
- props,
888
- $$typeof,
889
- renderLanes2
890
- );
891
- case 3:
892
- a: {
893
- if (pushHostContainer(
894
- workInProgress2,
895
- workInProgress2.stateNode.containerInfo
896
- ), current === null) throw Error(formatProdErrorMessage(387));
897
- props = workInProgress2.pendingProps;
898
- var prevState = workInProgress2.memoizedState;
899
- $$typeof = prevState.element, cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, props, null, renderLanes2);
900
- var nextState = workInProgress2.memoizedState;
901
- if (props = nextState.cache, pushProvider(workInProgress2, CacheContext, props), props !== prevState.cache && propagateContextChanges(
902
- workInProgress2,
903
- [CacheContext],
904
- renderLanes2,
905
- !0
906
- ), suspendIfUpdateReadFromEntangledAsyncAction(), props = nextState.element, prevState.isDehydrated)
907
- if (prevState = {
908
- element: props,
909
- isDehydrated: !1,
910
- cache: nextState.cache
911
- }, workInProgress2.updateQueue.baseState = prevState, workInProgress2.memoizedState = prevState, workInProgress2.flags & 256) {
912
- workInProgress2 = mountHostRootWithoutHydrating(
913
- current,
914
- workInProgress2,
915
- props,
916
- renderLanes2
917
- );
918
- break a;
919
- } else if (props !== $$typeof) {
920
- $$typeof = createCapturedValueAtFiber(
921
- Error(formatProdErrorMessage(424)),
922
- workInProgress2
923
- ), queueHydrationError($$typeof), workInProgress2 = mountHostRootWithoutHydrating(
924
- current,
925
- workInProgress2,
926
- props,
927
- renderLanes2
928
- );
929
- break a;
930
- } else
931
- for (current = workInProgress2.stateNode.containerInfo, current.nodeType === 9 ? current = current.body : current = current.nodeName === "HTML" ? current.ownerDocument.body : current, nextHydratableInstance = getNextHydratable(current.firstChild), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0, renderLanes2 = mountChildFibers(
932
- workInProgress2,
933
- null,
934
- props,
935
- renderLanes2
936
- ), workInProgress2.child = renderLanes2; renderLanes2; )
937
- renderLanes2.flags = renderLanes2.flags & -3 | 134221824, renderLanes2 = renderLanes2.sibling;
938
- else {
939
- if (resetHydrationState(), props === $$typeof) {
940
- workInProgress2 = bailoutOnAlreadyFinishedWork(
941
- current,
942
- workInProgress2,
943
- renderLanes2
944
- );
945
- break a;
946
- }
947
- reconcileChildren(current, workInProgress2, props, renderLanes2);
948
- }
949
- workInProgress2 = workInProgress2.child;
950
- }
951
- return workInProgress2;
952
- case 26:
953
- return markRef(current, workInProgress2), current === null ? (renderLanes2 = getResource(
954
- workInProgress2.type,
955
- null,
956
- workInProgress2.pendingProps,
957
- null
958
- )) ? workInProgress2.memoizedState = renderLanes2 : isHydrating || (workInProgress2.stateNode = createHoistableInstance(
959
- workInProgress2.type,
960
- workInProgress2.pendingProps,
961
- rootInstanceStackCursor.current,
962
- workInProgress2
963
- )) : workInProgress2.memoizedState = getResource(
964
- workInProgress2.type,
965
- current.memoizedProps,
966
- workInProgress2.pendingProps,
967
- current.memoizedState
968
- ), null;
969
- case 27:
970
- return pushHostContext(workInProgress2), current === null && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(
971
- workInProgress2.type,
972
- workInProgress2.pendingProps,
973
- rootInstanceStackCursor.current
974
- ), hydrationParentFiber = workInProgress2, rootOrSingletonContext = !0, $$typeof = nextHydratableInstance, isSingletonScope(workInProgress2.type) ? (previousHydratableOnEnteringScopedSingleton = $$typeof, nextHydratableInstance = getNextHydratable(props.firstChild)) : nextHydratableInstance = $$typeof), reconcileChildren(
975
- current,
976
- workInProgress2,
977
- workInProgress2.pendingProps.children,
978
- renderLanes2
979
- ), markRef(current, workInProgress2), current === null && (workInProgress2.flags |= 4194304), workInProgress2.child;
980
- case 5:
981
- return current === null && isHydrating && (($$typeof = props = nextHydratableInstance) && (props = canHydrateInstance(
982
- props,
983
- workInProgress2.type,
984
- workInProgress2.pendingProps,
985
- rootOrSingletonContext
986
- ), props !== null ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getNextHydratable(props.firstChild), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1), $$typeof || throwOnHydrationMismatch(workInProgress2)), pushHostContext(workInProgress2), $$typeof = workInProgress2.type, prevState = workInProgress2.pendingProps, nextState = current !== null ? current.memoizedProps : null, props = prevState.children, shouldSetTextContent($$typeof, prevState) ? props = null : nextState !== null && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32), workInProgress2.memoizedState !== null && ($$typeof = renderWithHooks(
987
- current,
988
- workInProgress2,
989
- TransitionAwareHostComponent,
990
- null,
991
- null,
992
- renderLanes2
993
- ), HostTransitionContext._currentValue = $$typeof), markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
994
- case 6:
995
- return current === null && isHydrating && ((current = renderLanes2 = nextHydratableInstance) && (renderLanes2 = canHydrateTextInstance(
996
- renderLanes2,
997
- workInProgress2.pendingProps,
998
- rootOrSingletonContext
999
- ), renderLanes2 !== null ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = !0) : current = !1), current || throwOnHydrationMismatch(workInProgress2)), null;
1000
- case 13:
1001
- return updateSuspenseComponent(current, workInProgress2, renderLanes2);
1002
- case 4:
1003
- return pushHostContainer(
1004
- workInProgress2,
1005
- workInProgress2.stateNode.containerInfo
1006
- ), props = workInProgress2.pendingProps, current === null ? workInProgress2.child = reconcileChildFibers(
1007
- workInProgress2,
1008
- null,
1009
- props,
1010
- renderLanes2
1011
- ) : reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1012
- case 11:
1013
- return updateForwardRef(
1014
- current,
1015
- workInProgress2,
1016
- workInProgress2.type,
1017
- workInProgress2.pendingProps,
1018
- renderLanes2
1019
- );
1020
- case 7:
1021
- return props = workInProgress2.pendingProps, markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1022
- case 8:
1023
- return reconcileChildren(
1024
- current,
1025
- workInProgress2,
1026
- workInProgress2.pendingProps.children,
1027
- renderLanes2
1028
- ), workInProgress2.child;
1029
- case 12:
1030
- return reconcileChildren(
1031
- current,
1032
- workInProgress2,
1033
- workInProgress2.pendingProps.children,
1034
- renderLanes2
1035
- ), workInProgress2.child;
1036
- case 10:
1037
- return updateContextProvider(current, workInProgress2, renderLanes2);
1038
- case 9:
1039
- return $$typeof = workInProgress2.type._context, props = workInProgress2.pendingProps.children, prepareToReadContext(workInProgress2), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1040
- case 14:
1041
- return updateMemoComponent(
1042
- current,
1043
- workInProgress2,
1044
- workInProgress2.type,
1045
- workInProgress2.pendingProps,
1046
- renderLanes2
1047
- );
1048
- case 15:
1049
- return updateSimpleMemoComponent(
1050
- current,
1051
- workInProgress2,
1052
- workInProgress2.type,
1053
- workInProgress2.pendingProps,
1054
- renderLanes2
1055
- );
1056
- case 19:
1057
- return updateSuspenseListComponent(current, workInProgress2, renderLanes2);
1058
- case 31:
1059
- return updateActivityComponent(current, workInProgress2, renderLanes2);
1060
- case 22:
1061
- return updateOffscreenComponent(
1062
- current,
1063
- workInProgress2,
1064
- renderLanes2,
1065
- workInProgress2.pendingProps
1066
- );
1067
- case 24:
1068
- return prepareToReadContext(workInProgress2), props = readContext(CacheContext), current === null ? ($$typeof = peekCacheFromPool(), $$typeof === null && ($$typeof = workInProgressRoot, prevState = createCache(), $$typeof.pooledCache = prevState, prevState.refCount++, prevState !== null && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = prevState), workInProgress2.memoizedState = { parent: props, cache: $$typeof }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : ((current.lanes & renderLanes2) !== 0 && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, prevState = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, workInProgress2.lanes === 0 && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = prevState.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(
1069
- workInProgress2,
1070
- [CacheContext],
1071
- renderLanes2,
1072
- !0
1073
- ))), reconcileChildren(
1074
- current,
1075
- workInProgress2,
1076
- workInProgress2.pendingProps.children,
1077
- renderLanes2
1078
- ), workInProgress2.child;
1079
- case 30:
1080
- return workInProgress2.stateNode === null && (workInProgress2.stateNode = {
1081
- autoName: null,
1082
- paired: null,
1083
- clones: null,
1084
- ref: null
1085
- }), props = workInProgress2.pendingProps, props.name != null && props.name !== "auto" ? workInProgress2.flags |= current === null ? 18882560 : 18874368 : isHydrating && pushMaterializedTreeId(workInProgress2), current !== null && current.memoizedProps.name !== props.name ? workInProgress2.flags |= 4194816 : markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props.children, renderLanes2), workInProgress2.child;
1086
- case 29:
1087
- throw workInProgress2.pendingProps;
1088
- }
1089
- throw Error(formatProdErrorMessage(156, workInProgress2.tag));
1090
- }
1091
- function markUpdate(workInProgress2) {
1092
- workInProgress2.flags |= 4;
1093
- }
1094
- function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
1095
- var JSCompiler_temp;
1096
- if ((JSCompiler_temp = (workInProgress2.mode & 32) !== 0) && (JSCompiler_temp = oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommit(type, newProps) && (newProps.src !== oldProps.src || newProps.srcSet !== oldProps.srcSet)), JSCompiler_temp) {
1097
- if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2)
1098
- if (workInProgress2.stateNode.complete) workInProgress2.flags |= 8192;
1099
- else if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
1100
- else
1101
- throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
1102
- } else workInProgress2.flags &= -16777217;
1103
- }
1104
- function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
1105
- if (resource.type !== "stylesheet" || (resource.state.loading & 4) !== 0)
1106
- workInProgress2.flags &= -16777217;
1107
- else if (workInProgress2.flags |= 16777216, !preloadResource(resource))
1108
- if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
1109
- else
1110
- throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
1111
- }
1112
- function scheduleRetryEffect(workInProgress2, retryQueue) {
1113
- retryQueue !== null && (workInProgress2.flags |= 4), workInProgress2.flags & 16384 && (retryQueue = workInProgress2.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
1114
- }
1115
- function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
1116
- if (!isHydrating)
1117
- switch (renderState.tailMode) {
1118
- case "visible":
1119
- break;
1120
- case "collapsed":
1121
- for (var tailNode = renderState.tail, lastTailNode = null; tailNode !== null; )
1122
- tailNode.alternate !== null && (lastTailNode = tailNode), tailNode = tailNode.sibling;
1123
- lastTailNode === null ? hasRenderedATailFallback || renderState.tail === null ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode.sibling = null;
1124
- break;
1125
- default:
1126
- for (hasRenderedATailFallback = renderState.tail, tailNode = null; hasRenderedATailFallback !== null; )
1127
- hasRenderedATailFallback.alternate !== null && (tailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
1128
- tailNode === null ? renderState.tail = null : tailNode.sibling = null;
1129
- }
1130
- }
1131
- function bubbleProperties(completedWork) {
1132
- var didBailout = completedWork.alternate !== null && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
1133
- if (didBailout)
1134
- for (var child$113 = completedWork.child; child$113 !== null; )
1135
- newChildLanes |= child$113.lanes | child$113.childLanes, subtreeFlags |= child$113.subtreeFlags & 1206910976, subtreeFlags |= child$113.flags & 1206910976, child$113.return = completedWork, child$113 = child$113.sibling;
1136
- else
1137
- for (child$113 = completedWork.child; child$113 !== null; )
1138
- newChildLanes |= child$113.lanes | child$113.childLanes, subtreeFlags |= child$113.subtreeFlags, subtreeFlags |= child$113.flags, child$113.return = completedWork, child$113 = child$113.sibling;
1139
- return completedWork.subtreeFlags |= subtreeFlags, completedWork.childLanes = newChildLanes, didBailout;
1140
- }
1141
- function completeWork(current, workInProgress2, renderLanes2) {
1142
- var newProps = workInProgress2.pendingProps;
1143
- switch (popTreeContext(workInProgress2), workInProgress2.tag) {
1144
- case 16:
1145
- case 15:
1146
- case 0:
1147
- case 11:
1148
- case 7:
1149
- case 8:
1150
- case 12:
1151
- case 9:
1152
- case 14:
1153
- return bubbleProperties(workInProgress2), null;
1154
- case 1:
1155
- return bubbleProperties(workInProgress2), null;
1156
- case 3:
1157
- return renderLanes2 = workInProgress2.stateNode, newProps = null, current !== null && (newProps = current.memoizedState.cache), workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048), popProvider(CacheContext), popHostContainer(), renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null), (current === null || current.child === null) && (popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : current === null || current.memoizedState.isDehydrated && (workInProgress2.flags & 256) === 0 || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable())), bubbleProperties(workInProgress2), null;
1158
- case 26:
1159
- var type = workInProgress2.type, nextResource = workInProgress2.memoizedState;
1160
- return current === null ? (markUpdate(workInProgress2), nextResource !== null ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1161
- workInProgress2,
1162
- type,
1163
- null,
1164
- newProps,
1165
- renderLanes2
1166
- ))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (current = current.memoizedProps, current !== newProps && markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1167
- workInProgress2,
1168
- type,
1169
- current,
1170
- newProps,
1171
- renderLanes2
1172
- )), null;
1173
- case 27:
1174
- if (popHostContext(workInProgress2), renderLanes2 = rootInstanceStackCursor.current, type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
1175
- current.memoizedProps !== newProps && markUpdate(workInProgress2);
1176
- else {
1177
- if (!newProps) {
1178
- if (workInProgress2.stateNode === null)
1179
- throw Error(formatProdErrorMessage(166));
1180
- return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1181
- }
1182
- current = contextStackCursor.current, popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(type, newProps, renderLanes2), workInProgress2.stateNode = current, markUpdate(workInProgress2));
1183
- }
1184
- return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1185
- case 5:
1186
- if (popHostContext(workInProgress2), type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
1187
- current.memoizedProps !== newProps && markUpdate(workInProgress2);
1188
- else {
1189
- if (!newProps) {
1190
- if (workInProgress2.stateNode === null)
1191
- throw Error(formatProdErrorMessage(166));
1192
- return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, null;
1193
- }
1194
- if (nextResource = contextStackCursor.current, popHydrationState(workInProgress2))
1195
- prepareToHydrateHostInstance(workInProgress2, nextResource);
1196
- else {
1197
- var ownerDocument = getOwnerDocumentFromRootContainer(
1198
- rootInstanceStackCursor.current
1199
- );
1200
- switch (nextResource) {
1201
- case 1:
1202
- nextResource = ownerDocument.createElementNS(
1203
- "http://www.w3.org/2000/svg",
1204
- type
1205
- );
1206
- break;
1207
- case 2:
1208
- nextResource = ownerDocument.createElementNS(
1209
- "http://www.w3.org/1998/Math/MathML",
1210
- type
1211
- );
1212
- break;
1213
- default:
1214
- switch (type) {
1215
- case "svg":
1216
- nextResource = ownerDocument.createElementNS(
1217
- "http://www.w3.org/2000/svg",
1218
- type
1219
- );
1220
- break;
1221
- case "math":
1222
- nextResource = ownerDocument.createElementNS(
1223
- "http://www.w3.org/1998/Math/MathML",
1224
- type
1225
- );
1226
- break;
1227
- case "script":
1228
- nextResource = ownerDocument.createElement("div"), nextResource.innerHTML = "<script><\/script>", nextResource = nextResource.removeChild(
1229
- nextResource.firstChild
1230
- );
1231
- break;
1232
- case "select":
1233
- nextResource = typeof newProps.is == "string" ? ownerDocument.createElement("select", {
1234
- is: newProps.is
1235
- }) : ownerDocument.createElement("select"), newProps.multiple ? nextResource.multiple = !0 : newProps.size && (nextResource.size = newProps.size);
1236
- break;
1237
- default:
1238
- nextResource = typeof newProps.is == "string" ? ownerDocument.createElement(type, { is: newProps.is }) : ownerDocument.createElement(type);
1239
- }
1240
- }
1241
- nextResource[internalInstanceKey] = workInProgress2, nextResource[internalPropsKey] = newProps;
1242
- a: for (ownerDocument = workInProgress2.child; ownerDocument !== null; ) {
1243
- if (ownerDocument.tag === 5 || ownerDocument.tag === 6)
1244
- nextResource.appendChild(ownerDocument.stateNode);
1245
- else if (ownerDocument.tag !== 4 && ownerDocument.tag !== 27 && ownerDocument.child !== null) {
1246
- ownerDocument.child.return = ownerDocument, ownerDocument = ownerDocument.child;
1247
- continue;
1248
- }
1249
- if (ownerDocument === workInProgress2) break a;
1250
- for (; ownerDocument.sibling === null; ) {
1251
- if (ownerDocument.return === null || ownerDocument.return === workInProgress2)
1252
- break a;
1253
- ownerDocument = ownerDocument.return;
1254
- }
1255
- ownerDocument.sibling.return = ownerDocument.return, ownerDocument = ownerDocument.sibling;
1256
- }
1257
- workInProgress2.stateNode = nextResource;
1258
- a: switch (setInitialProperties(nextResource, type, newProps), type) {
1259
- case "button":
1260
- case "input":
1261
- case "select":
1262
- case "textarea":
1263
- newProps = !!newProps.autoFocus;
1264
- break a;
1265
- case "img":
1266
- newProps = !0;
1267
- break a;
1268
- default:
1269
- newProps = !1;
1270
- }
1271
- newProps && markUpdate(workInProgress2);
1272
- }
1273
- }
1274
- return bubbleProperties(workInProgress2), workInProgress2.subtreeFlags &= -33554433, preloadInstanceAndSuspendIfNeeded(
1275
- workInProgress2,
1276
- workInProgress2.type,
1277
- current === null ? null : current.memoizedProps,
1278
- workInProgress2.pendingProps,
1279
- renderLanes2
1280
- ), null;
1281
- case 6:
1282
- if (current && workInProgress2.stateNode != null)
1283
- current.memoizedProps !== newProps && markUpdate(workInProgress2);
1284
- else {
1285
- if (typeof newProps != "string" && workInProgress2.stateNode === null)
1286
- throw Error(formatProdErrorMessage(166));
1287
- if (current = rootInstanceStackCursor.current, popHydrationState(workInProgress2)) {
1288
- if (current = workInProgress2.stateNode, renderLanes2 = workInProgress2.memoizedProps, newProps = null, type = hydrationParentFiber, type !== null)
1289
- switch (type.tag) {
1290
- case 27:
1291
- case 5:
1292
- newProps = type.memoizedProps;
1293
- }
1294
- current[internalInstanceKey] = workInProgress2, current = !!(current.nodeValue === renderLanes2 || newProps !== null && newProps.suppressHydrationWarning === !0 || checkForUnmatchedText(current.nodeValue, renderLanes2)), current || throwOnHydrationMismatch(workInProgress2, !0);
1295
- } else
1296
- current = getOwnerDocumentFromRootContainer(current).createTextNode(
1297
- newProps
1298
- ), current[internalInstanceKey] = workInProgress2, workInProgress2.stateNode = current;
1299
- }
1300
- return bubbleProperties(workInProgress2), null;
1301
- case 31:
1302
- if (renderLanes2 = workInProgress2.memoizedState, current === null || current.memoizedState !== null) {
1303
- if (newProps = popHydrationState(workInProgress2), renderLanes2 !== null) {
1304
- if (current === null) {
1305
- if (!newProps) throw Error(formatProdErrorMessage(318));
1306
- if (current = workInProgress2.memoizedState, current = current !== null ? current.dehydrated : null, !current) throw Error(formatProdErrorMessage(557));
1307
- current[internalInstanceKey] = workInProgress2;
1308
- } else
1309
- resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1310
- bubbleProperties(workInProgress2), current = !1;
1311
- } else
1312
- renderLanes2 = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = renderLanes2), current = !0;
1313
- if (!current)
1314
- return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
1315
- if ((workInProgress2.flags & 128) !== 0)
1316
- throw Error(formatProdErrorMessage(558));
1317
- }
1318
- return bubbleProperties(workInProgress2), null;
1319
- case 13:
1320
- if (newProps = workInProgress2.memoizedState, current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
1321
- if (type = popHydrationState(workInProgress2), newProps !== null && newProps.dehydrated !== null) {
1322
- if (current === null) {
1323
- if (!type) throw Error(formatProdErrorMessage(318));
1324
- if (type = workInProgress2.memoizedState, type = type !== null ? type.dehydrated : null, !type) throw Error(formatProdErrorMessage(317));
1325
- type[internalInstanceKey] = workInProgress2;
1326
- } else
1327
- resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1328
- bubbleProperties(workInProgress2), type = !1;
1329
- } else
1330
- type = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = type), type = !0;
1331
- if (!type)
1332
- return workInProgress2.flags & 256 ? (popSuspenseHandler(workInProgress2), workInProgress2) : (popSuspenseHandler(workInProgress2), null);
1333
- }
1334
- return popSuspenseHandler(workInProgress2), (workInProgress2.flags & 128) !== 0 ? (workInProgress2.lanes = renderLanes2, workInProgress2) : (renderLanes2 = newProps !== null, current = current !== null && current.memoizedState !== null, renderLanes2 && (newProps = workInProgress2.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192), scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue), bubbleProperties(workInProgress2), null);
1335
- case 4:
1336
- return popHostContainer(), current === null && listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo), workInProgress2.flags |= 67108864, bubbleProperties(workInProgress2), null;
1337
- case 10:
1338
- return popProvider(workInProgress2.type), bubbleProperties(workInProgress2), null;
1339
- case 19:
1340
- if (popSuspenseListContext(workInProgress2), newProps = workInProgress2.memoizedState, newProps === null) return bubbleProperties(workInProgress2), null;
1341
- if (type = (workInProgress2.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
1342
- if (type) cutOffTailIfNeeded(newProps, !1);
1343
- else {
1344
- if (workInProgressRootExitStatus !== 0 || current !== null && (current.flags & 128) !== 0)
1345
- for (current = workInProgress2.child; current !== null; ) {
1346
- if (nextResource = findFirstSuspended(current), nextResource !== null) {
1347
- for (workInProgress2.flags |= 128, cutOffTailIfNeeded(newProps, !1), current = nextResource.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), workInProgress2.subtreeFlags = 0, current = renderLanes2, renderLanes2 = workInProgress2.child; renderLanes2 !== null; )
1348
- resetWorkInProgress(renderLanes2, current), renderLanes2 = renderLanes2.sibling;
1349
- return pushSuspenseListContext(
1350
- workInProgress2,
1351
- suspenseStackCursor.current & 1 | 2
1352
- ), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), workInProgress2.child;
1353
- }
1354
- current = current.sibling;
1355
- }
1356
- newProps.tail !== null && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
1357
- }
1358
- else {
1359
- if (!type)
1360
- if (current = findFirstSuspended(nextResource), current !== null) {
1361
- if (workInProgress2.flags |= 128, type = !0, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode !== "collapsed" && newProps.tailMode !== "visible" && !nextResource.alternate && !isHydrating)
1362
- return bubbleProperties(workInProgress2), null;
1363
- } else
1364
- 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes2 !== 536870912 && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
1365
- newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, current !== null ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
1366
- }
1367
- if (newProps.tail !== null) {
1368
- current = newProps.tail;
1369
- a: {
1370
- for (renderLanes2 = current; renderLanes2 !== null; ) {
1371
- if (renderLanes2.alternate !== null) {
1372
- renderLanes2 = !1;
1373
- break a;
1374
- }
1375
- renderLanes2 = renderLanes2.sibling;
1376
- }
1377
- renderLanes2 = !0;
1378
- }
1379
- return newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, nextResource = suspenseStackCursor.current, nextResource = type ? nextResource & 1 | 2 : nextResource & 1, newProps.tailMode === "visible" || newProps.tailMode === "collapsed" || !renderLanes2 || isHydrating ? pushSuspenseListContext(workInProgress2, nextResource) : (renderLanes2 = nextResource, push(suspenseHandlerStackCursor, workInProgress2), push(suspenseStackCursor, renderLanes2), shellBoundary === null && (shellBoundary = workInProgress2)), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current;
1380
- }
1381
- return bubbleProperties(workInProgress2), null;
1382
- case 22:
1383
- case 23:
1384
- return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = workInProgress2.memoizedState !== null, current !== null ? current.memoizedState !== null !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? (renderLanes2 & 536870912) !== 0 && (workInProgress2.flags & 128) === 0 && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, renderLanes2 !== null && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, workInProgress2.memoizedState !== null && workInProgress2.memoizedState.cachePool !== null && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), current !== null && pop(resumedCache), null;
1385
- case 24:
1386
- return renderLanes2 = null, current !== null && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
1387
- case 25:
1388
- return null;
1389
- case 30:
1390
- return workInProgress2.flags |= 33554432, bubbleProperties(workInProgress2), null;
1391
- }
1392
- throw Error(formatProdErrorMessage(156, workInProgress2.tag));
1393
- }
1394
- function unwindWork(current, workInProgress2) {
1395
- switch (popTreeContext(workInProgress2), workInProgress2.tag) {
1396
- case 1:
1397
- return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1398
- case 3:
1399
- return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, (current & 65536) !== 0 && (current & 128) === 0 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1400
- case 26:
1401
- case 27:
1402
- case 5:
1403
- return popHostContext(workInProgress2), null;
1404
- case 31:
1405
- if (workInProgress2.memoizedState !== null) {
1406
- if (popSuspenseHandler(workInProgress2), workInProgress2.alternate === null)
1407
- throw Error(formatProdErrorMessage(340));
1408
- resetHydrationState();
1409
- }
1410
- return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1411
- case 13:
1412
- if (popSuspenseHandler(workInProgress2), current = workInProgress2.memoizedState, current !== null && current.dehydrated !== null) {
1413
- if (workInProgress2.alternate === null)
1414
- throw Error(formatProdErrorMessage(340));
1415
- resetHydrationState();
1416
- }
1417
- return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1418
- case 19:
1419
- return popSuspenseListContext(workInProgress2), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, current = workInProgress2.memoizedState, current !== null && (current.rendering = null, current.tail = null), workInProgress2.flags |= 4, workInProgress2) : null;
1420
- case 4:
1421
- return popHostContainer(), null;
1422
- case 10:
1423
- return popProvider(workInProgress2.type), null;
1424
- case 22:
1425
- case 23:
1426
- return popSuspenseHandler(workInProgress2), popHiddenContext(), current !== null && pop(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1427
- case 24:
1428
- return popProvider(CacheContext), null;
1429
- case 25:
1430
- return null;
1431
- default:
1432
- return null;
1433
- }
1434
- }
1435
- function unwindInterruptedWork(current, interruptedWork) {
1436
- switch (popTreeContext(interruptedWork), interruptedWork.tag) {
1437
- case 3:
1438
- popProvider(CacheContext), popHostContainer();
1439
- break;
1440
- case 26:
1441
- case 27:
1442
- case 5:
1443
- popHostContext(interruptedWork);
1444
- break;
1445
- case 4:
1446
- popHostContainer();
1447
- break;
1448
- case 31:
1449
- interruptedWork.memoizedState !== null && popSuspenseHandler(interruptedWork);
1450
- break;
1451
- case 13:
1452
- popSuspenseHandler(interruptedWork);
1453
- break;
1454
- case 19:
1455
- popSuspenseListContext(interruptedWork);
1456
- break;
1457
- case 10:
1458
- popProvider(interruptedWork.type);
1459
- break;
1460
- case 22:
1461
- case 23:
1462
- popSuspenseHandler(interruptedWork), popHiddenContext(), current !== null && pop(resumedCache);
1463
- break;
1464
- case 24:
1465
- popProvider(CacheContext);
1466
- }
1467
- }