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.
- package/CHANGELOG.md +28 -0
- package/dist/cli/commands/design.d.ts +3 -0
- package/dist/cli/commands/design.d.ts.map +1 -0
- package/dist/cli/commands/design.js +137 -0
- package/dist/cli/commands/design.js.map +1 -0
- package/dist/cli/commands/groups/operations.d.ts.map +1 -1
- package/dist/cli/commands/groups/operations.js +2 -0
- package/dist/cli/commands/groups/operations.js.map +1 -1
- package/dist/dashboard/.vite/manifest.json +1 -1
- package/dist/dashboard/assets/{index-CvQAlBy3.js → index-B-l_941W.js} +2 -2
- package/dist/dashboard/assets/{index-CvQAlBy3.js.map → index-B-l_941W.js.map} +1 -1
- package/dist/dashboard/dashboard-manifest.json +13 -13
- package/dist/dashboard/index.html +1 -1
- package/dist/services/design-artifact-service.d.ts +22 -0
- package/dist/services/design-artifact-service.d.ts.map +1 -1
- package/dist/services/design-artifact-service.js +76 -16
- package/dist/services/design-artifact-service.js.map +1 -1
- package/dist/services/runtime-manager/runtime-package.js +1 -1
- package/dist/services/runtime-manager/runtime-package.js.map +1 -1
- package/docs/CLI.md +29 -0
- package/lib/host-packages/adapter-registry.json +5 -5
- package/lib/host-packages/capability-map.json +1 -1
- package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
- package/lib/host-packages/claude/openplanr/.openplanr-content.json +24 -340
- package/lib/host-packages/claude/openplanr/README.md +8 -8
- package/lib/host-packages/claude/openplanr/skills/artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +23 -12
- package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/claude/openplanr/skills/design/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +78 -38
- package/lib/host-packages/claude/openplanr/skills/design-loop/SKILL.md +15 -7
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +78 -38
- package/lib/host-packages/claude/openplanr/skills/design-review/SKILL.md +25 -5
- package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +2 -2
- package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +3 -3
- package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +6 -6
- package/lib/host-packages/claude/openplanr/skills/design-review/references/team-review.md +3 -4
- package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +78 -38
- package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +7 -3
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +23 -339
- package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +78 -38
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +78 -38
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop.mdc +15 -7
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +2 -2
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +3 -3
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +6 -6
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/team-review.md +3 -4
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +78 -38
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review.mdc +25 -5
- package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +23 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +7 -3
- package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
- package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
- package/lib/host-packages/openai/openplanr/.openplanr-content.json +27 -343
- package/lib/host-packages/openai/openplanr/skills/artifact/references/design-sharing.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +23 -12
- package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +6 -3
- package/lib/host-packages/openai/openplanr/skills/design/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +78 -38
- package/lib/host-packages/openai/openplanr/skills/design-loop/SKILL.md +15 -7
- package/lib/host-packages/openai/openplanr/skills/design-loop/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +78 -38
- package/lib/host-packages/openai/openplanr/skills/design-review/SKILL.md +25 -5
- package/lib/host-packages/openai/openplanr/skills/design-review/openplanr.skill.json +0 -11
- package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +2 -2
- package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +3 -3
- package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +6 -6
- package/lib/host-packages/openai/openplanr/skills/design-review/references/team-review.md +3 -4
- package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +78 -38
- package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +7 -3
- package/lib/host-packages/openai/openplanr/skills/plan/openplanr.skill.json +0 -11
- package/package.json +2 -2
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +0 -1500
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- 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
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
- 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
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +0 -2611
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/claude/openplanr/skills/design/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/claude/openplanr/skills/plan/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-design/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/design.mjs +0 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +0 -1500
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- 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
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
- 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
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +0 -2611
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +0 -1772
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +0 -2937
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +0 -439
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +0 -2370
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-loopback-server.mjs +0 -359
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-parser.mjs +0 -3970
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-parse5-tokenizer.mjs +0 -3501
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review-state-store.mjs +0 -45
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +0 -3376
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -38
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-sandbox-guards.mjs +0 -1102
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +0 -321
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs +0 -1652
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs +0 -1037
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +0 -137
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +0 -1500
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -2023
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +0 -2
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +0 -18
- 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
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +0 -10
- 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
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +0 -60
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +0 -65
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/enhancements.css +0 -388
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/handoff-center.css +0 -81
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.css +0 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +0 -139
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +0 -1159
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +0 -30
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +0 -900
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +0 -17
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +0 -12
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +0 -285
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +0 -2773
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +0 -134
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +0 -2207
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +0 -16
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +0 -8
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +0 -3883
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +0 -966
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/20-studio-shell.js +0 -520
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +0 -1597
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +0 -311
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/registries/artifact-theme.json +0 -64
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.0.0/design-manifest.schema.json +0 -90
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-envelope.schema.json +0 -142
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-bundle.schema.json +0 -584
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-context.schema.json +0 -191
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-handoff.schema.json +0 -407
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.10.0/design-review-metadata-payload.schema.json +0 -106
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-handoff-readiness.schema.json +0 -398
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-implementation-handoff.schema.json +0 -518
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-planning-lineage.schema.json +0 -106
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.11.0/design-review-metadata-payload.schema.json +0 -107
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.14.0/artifact-theme.schema.json +0 -316
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/artifact-envelope.schema.json +0 -408
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.16.0/design-review-bundle.schema.json +0 -590
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-document.schema.json +0 -506
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.22.0/design-review-bundle.schema.json +0 -822
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-bundle.schema.json +0 -346
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +0 -1232
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +0 -2611
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -21
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +0 -163
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-review.schema.json +0 -97
- package/lib/host-packages/openai/openplanr/skills/design/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/design-loop/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/design-review/scripts/design.mjs +0 -12
- package/lib/host-packages/openai/openplanr/skills/plan/scripts/design.mjs +0 -12
|
@@ -1,914 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
var DefaultAsyncDispatcher = {
|
|
3
|
-
getCacheForType: function(resourceType) {
|
|
4
|
-
var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType);
|
|
5
|
-
return cacheForType === void 0 && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)), cacheForType;
|
|
6
|
-
},
|
|
7
|
-
cacheSignal: function() {
|
|
8
|
-
return readContext(CacheContext).controller.signal;
|
|
9
|
-
}
|
|
10
|
-
}, PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = 1 / 0, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, pendingViewTransition = null, pendingViewTransitionEvents = null, pendingTransitionTypes = null, nestedUpdateCount = 0, rootWithNestedUpdates = null;
|
|
11
|
-
function requestUpdateLane() {
|
|
12
|
-
return (executionContext & 2) !== 0 && workInProgressRootRenderLanes !== 0 ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : ReactSharedInternals.T !== null ? requestTransitionLane() : resolveUpdatePriority();
|
|
13
|
-
}
|
|
14
|
-
function requestDeferredLane() {
|
|
15
|
-
if (workInProgressDeferredLane === 0)
|
|
16
|
-
if ((workInProgressRootRenderLanes & 536870912) === 0 || isHydrating) {
|
|
17
|
-
var lane = nextTransitionDeferredLane;
|
|
18
|
-
nextTransitionDeferredLane <<= 1, (nextTransitionDeferredLane & 3932160) === 0 && (nextTransitionDeferredLane = 262144), workInProgressDeferredLane = lane;
|
|
19
|
-
} else workInProgressDeferredLane = 536870912;
|
|
20
|
-
return lane = suspenseHandlerStackCursor.current, lane !== null && (lane.flags |= 32), workInProgressDeferredLane;
|
|
21
|
-
}
|
|
22
|
-
function scheduleViewTransitionEvent(fiber, callback) {
|
|
23
|
-
if (callback != null) {
|
|
24
|
-
var state = fiber.stateNode, instance = state.ref;
|
|
25
|
-
instance === null && (instance = state.ref = createViewTransitionInstance(
|
|
26
|
-
getViewTransitionName(fiber.memoizedProps, state)
|
|
27
|
-
)), pendingViewTransitionEvents === null && (pendingViewTransitionEvents = []), pendingViewTransitionEvents.push(callback.bind(null, instance));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function scheduleUpdateOnFiber(root2, fiber, lane) {
|
|
31
|
-
(root2 === workInProgressRoot && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null) && (prepareFreshStack(root2, 0), markRootSuspended(
|
|
32
|
-
root2,
|
|
33
|
-
workInProgressRootRenderLanes,
|
|
34
|
-
workInProgressDeferredLane,
|
|
35
|
-
!1
|
|
36
|
-
)), markRootUpdated$1(root2, lane), ((executionContext & 2) === 0 || root2 !== workInProgressRoot) && (root2 === workInProgressRoot && ((executionContext & 2) === 0 && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === 4 && markRootSuspended(
|
|
37
|
-
root2,
|
|
38
|
-
workInProgressRootRenderLanes,
|
|
39
|
-
workInProgressDeferredLane,
|
|
40
|
-
!1
|
|
41
|
-
)), ensureRootIsScheduled(root2));
|
|
42
|
-
}
|
|
43
|
-
function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
|
|
44
|
-
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
|
|
45
|
-
var shouldTimeSlice = !forceSync && (lanes & 127) === 0 && (lanes & root$jscomp$0.expiredLanes) === 0 || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), renderWasConcurrent = shouldTimeSlice;
|
|
46
|
-
do {
|
|
47
|
-
if (exitStatus === 0) {
|
|
48
|
-
workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, !1);
|
|
49
|
-
break;
|
|
50
|
-
} else {
|
|
51
|
-
if (forceSync = root$jscomp$0.current.alternate, renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) {
|
|
52
|
-
exitStatus = renderRootSync(root$jscomp$0, lanes, !1), renderWasConcurrent = !1;
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if (exitStatus === 2) {
|
|
56
|
-
if (renderWasConcurrent = lanes, root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
|
|
57
|
-
var JSCompiler_inline_result = 0;
|
|
58
|
-
else
|
|
59
|
-
JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = JSCompiler_inline_result !== 0 ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0;
|
|
60
|
-
if (JSCompiler_inline_result !== 0) {
|
|
61
|
-
lanes = JSCompiler_inline_result;
|
|
62
|
-
a: {
|
|
63
|
-
var root2 = root$jscomp$0;
|
|
64
|
-
exitStatus = workInProgressRootConcurrentErrors;
|
|
65
|
-
var wasRootDehydrated = root2.current.memoizedState.isDehydrated;
|
|
66
|
-
if (wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256), JSCompiler_inline_result = renderRootSync(
|
|
67
|
-
root2,
|
|
68
|
-
JSCompiler_inline_result,
|
|
69
|
-
!1
|
|
70
|
-
), JSCompiler_inline_result !== 2 && JSCompiler_inline_result !== 6) {
|
|
71
|
-
if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
|
|
72
|
-
root2.errorRecoveryDisabledLanes |= renderWasConcurrent, workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent, exitStatus = 4;
|
|
73
|
-
break a;
|
|
74
|
-
}
|
|
75
|
-
renderWasConcurrent = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = exitStatus, renderWasConcurrent !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
|
|
76
|
-
workInProgressRootRecoverableErrors,
|
|
77
|
-
renderWasConcurrent
|
|
78
|
-
));
|
|
79
|
-
}
|
|
80
|
-
exitStatus = JSCompiler_inline_result;
|
|
81
|
-
}
|
|
82
|
-
if (renderWasConcurrent = !1, exitStatus !== 2) continue;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (exitStatus === 1) {
|
|
86
|
-
prepareFreshStack(root$jscomp$0, 0), markRootSuspended(root$jscomp$0, lanes, 0, !0);
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
a: {
|
|
90
|
-
switch (shouldTimeSlice = root$jscomp$0, renderWasConcurrent = exitStatus, renderWasConcurrent) {
|
|
91
|
-
case 0:
|
|
92
|
-
case 1:
|
|
93
|
-
throw Error(formatProdErrorMessage(345));
|
|
94
|
-
case 4:
|
|
95
|
-
if ((lanes & 4194048) !== lanes && (lanes & 62914560) !== lanes)
|
|
96
|
-
break;
|
|
97
|
-
case 6:
|
|
98
|
-
markRootSuspended(
|
|
99
|
-
shouldTimeSlice,
|
|
100
|
-
lanes,
|
|
101
|
-
workInProgressDeferredLane,
|
|
102
|
-
!workInProgressRootDidSkipSuspendedSiblings
|
|
103
|
-
);
|
|
104
|
-
break a;
|
|
105
|
-
case 2:
|
|
106
|
-
workInProgressRootRecoverableErrors = null;
|
|
107
|
-
break;
|
|
108
|
-
case 3:
|
|
109
|
-
case 5:
|
|
110
|
-
break;
|
|
111
|
-
default:
|
|
112
|
-
throw Error(formatProdErrorMessage(329));
|
|
113
|
-
}
|
|
114
|
-
if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) {
|
|
115
|
-
if (markRootSuspended(
|
|
116
|
-
shouldTimeSlice,
|
|
117
|
-
lanes,
|
|
118
|
-
workInProgressDeferredLane,
|
|
119
|
-
!workInProgressRootDidSkipSuspendedSiblings
|
|
120
|
-
), getNextLanes(shouldTimeSlice, 0, !0) !== 0) break a;
|
|
121
|
-
pendingEffectsLanes = lanes, shouldTimeSlice.timeoutHandle = scheduleTimeout(
|
|
122
|
-
completeRootWhenReady.bind(
|
|
123
|
-
null,
|
|
124
|
-
shouldTimeSlice,
|
|
125
|
-
forceSync,
|
|
126
|
-
workInProgressRootRecoverableErrors,
|
|
127
|
-
workInProgressTransitions,
|
|
128
|
-
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
129
|
-
lanes,
|
|
130
|
-
workInProgressDeferredLane,
|
|
131
|
-
workInProgressRootInterleavedUpdatedLanes,
|
|
132
|
-
workInProgressSuspendedRetryLanes,
|
|
133
|
-
workInProgressRootDidSkipSuspendedSiblings,
|
|
134
|
-
renderWasConcurrent,
|
|
135
|
-
"Throttled",
|
|
136
|
-
-0,
|
|
137
|
-
0
|
|
138
|
-
),
|
|
139
|
-
exitStatus
|
|
140
|
-
);
|
|
141
|
-
break a;
|
|
142
|
-
}
|
|
143
|
-
completeRootWhenReady(
|
|
144
|
-
shouldTimeSlice,
|
|
145
|
-
forceSync,
|
|
146
|
-
workInProgressRootRecoverableErrors,
|
|
147
|
-
workInProgressTransitions,
|
|
148
|
-
workInProgressRootDidIncludeRecursiveRenderUpdate,
|
|
149
|
-
lanes,
|
|
150
|
-
workInProgressDeferredLane,
|
|
151
|
-
workInProgressRootInterleavedUpdatedLanes,
|
|
152
|
-
workInProgressSuspendedRetryLanes,
|
|
153
|
-
workInProgressRootDidSkipSuspendedSiblings,
|
|
154
|
-
renderWasConcurrent,
|
|
155
|
-
null,
|
|
156
|
-
-0,
|
|
157
|
-
0
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
break;
|
|
162
|
-
} while (!0);
|
|
163
|
-
ensureRootIsScheduled(root$jscomp$0);
|
|
164
|
-
}
|
|
165
|
-
function completeRootWhenReady(root2, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
|
|
166
|
-
root2.timeoutHandle = -1;
|
|
167
|
-
var subtreeFlags = finishedWork.subtreeFlags, isViewTransitionEligible = (lanes & 335544064) === lanes;
|
|
168
|
-
if (suspendedCommitReason = null, (isViewTransitionEligible || subtreeFlags & 8192 || (subtreeFlags & 16785408) === 16785408) && (suspendedCommitReason = {
|
|
169
|
-
stylesheets: null,
|
|
170
|
-
count: 0,
|
|
171
|
-
imgCount: 0,
|
|
172
|
-
imgBytes: 0,
|
|
173
|
-
suspenseyImages: [],
|
|
174
|
-
waitingForImages: !0,
|
|
175
|
-
waitingForViewTransition: !1,
|
|
176
|
-
unsuspend: noop$1
|
|
177
|
-
}, appearingViewTransitions = null, accumulateSuspenseyCommitOnFiber(
|
|
178
|
-
finishedWork,
|
|
179
|
-
lanes,
|
|
180
|
-
suspendedCommitReason
|
|
181
|
-
), isViewTransitionEligible && (subtreeFlags = suspendedCommitReason, isViewTransitionEligible = root2.containerInfo, isViewTransitionEligible = (isViewTransitionEligible.nodeType === 9 ? isViewTransitionEligible : isViewTransitionEligible.ownerDocument).__reactViewTransition, isViewTransitionEligible != null && (subtreeFlags.count++, subtreeFlags.waitingForViewTransition = !0, subtreeFlags = onUnsuspend.bind(subtreeFlags), isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0, subtreeFlags = waitForCommitToBeReady(
|
|
182
|
-
suspendedCommitReason,
|
|
183
|
-
subtreeFlags
|
|
184
|
-
), subtreeFlags !== null)) {
|
|
185
|
-
pendingEffectsLanes = lanes, root2.cancelPendingCommit = subtreeFlags(
|
|
186
|
-
completeRoot.bind(
|
|
187
|
-
null,
|
|
188
|
-
root2,
|
|
189
|
-
finishedWork,
|
|
190
|
-
lanes,
|
|
191
|
-
recoverableErrors,
|
|
192
|
-
transitions,
|
|
193
|
-
didIncludeRenderPhaseUpdate,
|
|
194
|
-
spawnedLane,
|
|
195
|
-
updatedLanes,
|
|
196
|
-
suspendedRetryLanes,
|
|
197
|
-
didSkipSuspendedSiblings,
|
|
198
|
-
exitStatus,
|
|
199
|
-
suspendedCommitReason,
|
|
200
|
-
null,
|
|
201
|
-
completedRenderStartTime,
|
|
202
|
-
completedRenderEndTime
|
|
203
|
-
)
|
|
204
|
-
), markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
completeRoot(
|
|
208
|
-
root2,
|
|
209
|
-
finishedWork,
|
|
210
|
-
lanes,
|
|
211
|
-
recoverableErrors,
|
|
212
|
-
transitions,
|
|
213
|
-
didIncludeRenderPhaseUpdate,
|
|
214
|
-
spawnedLane,
|
|
215
|
-
updatedLanes,
|
|
216
|
-
suspendedRetryLanes,
|
|
217
|
-
didSkipSuspendedSiblings,
|
|
218
|
-
exitStatus,
|
|
219
|
-
suspendedCommitReason
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
function isRenderConsistentWithExternalStores(finishedWork) {
|
|
223
|
-
for (var node = finishedWork; ; ) {
|
|
224
|
-
var tag = node.tag;
|
|
225
|
-
if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
|
|
226
|
-
for (var i = 0; i < tag.length; i++) {
|
|
227
|
-
var check = tag[i], getSnapshot = check.getSnapshot;
|
|
228
|
-
check = check.value;
|
|
229
|
-
try {
|
|
230
|
-
if (!objectIs(getSnapshot(), check)) return !1;
|
|
231
|
-
} catch {
|
|
232
|
-
return !1;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
if (tag = node.child, node.subtreeFlags & 16384 && tag !== null)
|
|
236
|
-
tag.return = node, node = tag;
|
|
237
|
-
else {
|
|
238
|
-
if (node === finishedWork) break;
|
|
239
|
-
for (; node.sibling === null; ) {
|
|
240
|
-
if (node.return === null || node.return === finishedWork) return !0;
|
|
241
|
-
node = node.return;
|
|
242
|
-
}
|
|
243
|
-
node.sibling.return = node.return, node = node.sibling;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return !0;
|
|
247
|
-
}
|
|
248
|
-
function markRootSuspended(root2, suspendedLanes, spawnedLane, didAttemptEntireTree) {
|
|
249
|
-
suspendedLanes = getEntangledLanes(root2, suspendedLanes), suspendedLanes &= ~workInProgressRootPingedLanes, suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes, root2.suspendedLanes |= suspendedLanes, root2.pingedLanes &= ~suspendedLanes, didAttemptEntireTree && (root2.warmLanes |= suspendedLanes), didAttemptEntireTree = root2.expirationTimes;
|
|
250
|
-
for (var lanes = suspendedLanes; 0 < lanes; ) {
|
|
251
|
-
var index$6 = 31 - clz32(lanes), lane = 1 << index$6;
|
|
252
|
-
didAttemptEntireTree[index$6] = -1, lanes &= ~lane;
|
|
253
|
-
}
|
|
254
|
-
spawnedLane !== 0 && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes);
|
|
255
|
-
}
|
|
256
|
-
function flushSyncWork$1() {
|
|
257
|
-
return (executionContext & 6) === 0 ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0;
|
|
258
|
-
}
|
|
259
|
-
function resetWorkInProgressStack() {
|
|
260
|
-
if (workInProgress !== null) {
|
|
261
|
-
if (workInProgressSuspendedReason === 0)
|
|
262
|
-
var interruptedWork = workInProgress.return;
|
|
263
|
-
else
|
|
264
|
-
interruptedWork = workInProgress, lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress;
|
|
265
|
-
for (; interruptedWork !== null; )
|
|
266
|
-
unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return;
|
|
267
|
-
workInProgress = null;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
function prepareFreshStack(root2, lanes) {
|
|
271
|
-
var timeoutHandle = root2.timeoutHandle;
|
|
272
|
-
return timeoutHandle !== -1 && (root2.timeoutHandle = -1, cancelTimeout(timeoutHandle)), timeoutHandle = root2.cancelPendingCommit, timeoutHandle !== null && (root2.cancelPendingCommit = null, timeoutHandle()), pendingEffectsLanes = 0, resetWorkInProgressStack(), workInProgressRoot = root2, workInProgress = timeoutHandle = createWorkInProgress(root2.current, null), workInProgressRootRenderLanes = lanes, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes), workInProgressRootDidAttachPingListener = !1, workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0, workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, entangledRenderLanes = getEntangledLanes(root2, lanes), finishQueueingConcurrentUpdates(), timeoutHandle;
|
|
273
|
-
}
|
|
274
|
-
function handleThrow(root2, thrownValue) {
|
|
275
|
-
currentlyRenderingFiber = null, ReactSharedInternals.H = ContextOnlyDispatcher, thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : thrownValue !== null && typeof thrownValue == "object" && typeof thrownValue.then == "function" ? 6 : 1, workInProgressThrownValue = thrownValue, workInProgress === null && (workInProgressRootExitStatus = 1, logUncaughtError(
|
|
276
|
-
root2,
|
|
277
|
-
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
278
|
-
));
|
|
279
|
-
}
|
|
280
|
-
function shouldRemainOnPreviousScreen() {
|
|
281
|
-
var handler = suspenseHandlerStackCursor.current;
|
|
282
|
-
return handler === null ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? shellBoundary === null : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || (workInProgressRootRenderLanes & 536870912) !== 0 ? handler === shellBoundary : !1;
|
|
283
|
-
}
|
|
284
|
-
function pushDispatcher() {
|
|
285
|
-
var prevDispatcher = ReactSharedInternals.H;
|
|
286
|
-
return ReactSharedInternals.H = ContextOnlyDispatcher, prevDispatcher === null ? ContextOnlyDispatcher : prevDispatcher;
|
|
287
|
-
}
|
|
288
|
-
function pushAsyncDispatcher() {
|
|
289
|
-
var prevAsyncDispatcher = ReactSharedInternals.A;
|
|
290
|
-
return ReactSharedInternals.A = DefaultAsyncDispatcher, prevAsyncDispatcher;
|
|
291
|
-
}
|
|
292
|
-
function renderDidSuspendDelayIfPossible() {
|
|
293
|
-
workInProgressRootExitStatus = 4, workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && suspenseHandlerStackCursor.current !== null || (workInProgressRootIsPrerendering = !0), (workInProgressRootSkippedLanes & 134217727) === 0 && (workInProgressRootInterleavedUpdatedLanes & 134217727) === 0 || workInProgressRoot === null || markRootSuspended(
|
|
294
|
-
workInProgressRoot,
|
|
295
|
-
workInProgressRootRenderLanes,
|
|
296
|
-
workInProgressDeferredLane,
|
|
297
|
-
!1
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
|
|
301
|
-
var prevExecutionContext = executionContext;
|
|
302
|
-
executionContext |= 2;
|
|
303
|
-
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
|
|
304
|
-
(workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes) && (workInProgressTransitions = null, prepareFreshStack(root2, lanes)), lanes = !1;
|
|
305
|
-
var exitStatus = workInProgressRootExitStatus;
|
|
306
|
-
a: do
|
|
307
|
-
try {
|
|
308
|
-
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
|
|
309
|
-
var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
|
|
310
|
-
switch (workInProgressSuspendedReason) {
|
|
311
|
-
case 8:
|
|
312
|
-
resetWorkInProgressStack(), exitStatus = 6;
|
|
313
|
-
break a;
|
|
314
|
-
case 3:
|
|
315
|
-
case 2:
|
|
316
|
-
case 9:
|
|
317
|
-
case 6:
|
|
318
|
-
suspenseHandlerStackCursor.current === null && (lanes = !0);
|
|
319
|
-
var reason = workInProgressSuspendedReason;
|
|
320
|
-
if (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason), shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
|
|
321
|
-
exitStatus = 0;
|
|
322
|
-
break a;
|
|
323
|
-
}
|
|
324
|
-
break;
|
|
325
|
-
default:
|
|
326
|
-
reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
workLoopSync(), exitStatus = workInProgressRootExitStatus;
|
|
330
|
-
break;
|
|
331
|
-
} catch (thrownValue$184) {
|
|
332
|
-
handleThrow(root2, thrownValue$184);
|
|
333
|
-
}
|
|
334
|
-
while (!0);
|
|
335
|
-
return lanes && root2.shellSuspendCounter++, lastContextDependency = currentlyRenderingFiber$1 = null, executionContext = prevExecutionContext, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, workInProgress === null && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()), exitStatus;
|
|
336
|
-
}
|
|
337
|
-
function workLoopSync() {
|
|
338
|
-
for (; workInProgress !== null; ) performUnitOfWork(workInProgress);
|
|
339
|
-
}
|
|
340
|
-
function renderRootConcurrent(root2, lanes) {
|
|
341
|
-
var prevExecutionContext = executionContext;
|
|
342
|
-
executionContext |= 2;
|
|
343
|
-
var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
|
|
344
|
-
workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes ? (workInProgressTransitions = null, workInProgressRootRenderTargetTime = now() + 500, prepareFreshStack(root2, lanes)) : workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
|
|
345
|
-
root2,
|
|
346
|
-
lanes
|
|
347
|
-
);
|
|
348
|
-
a: do
|
|
349
|
-
try {
|
|
350
|
-
if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
|
|
351
|
-
lanes = workInProgress;
|
|
352
|
-
var thrownValue = workInProgressThrownValue;
|
|
353
|
-
b: switch (workInProgressSuspendedReason) {
|
|
354
|
-
case 1:
|
|
355
|
-
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
|
|
356
|
-
break;
|
|
357
|
-
case 2:
|
|
358
|
-
case 9:
|
|
359
|
-
if (isThenableResolved(thrownValue)) {
|
|
360
|
-
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes);
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
lanes = function() {
|
|
364
|
-
workInProgressSuspendedReason !== 2 && workInProgressSuspendedReason !== 9 || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7), ensureRootIsScheduled(root2);
|
|
365
|
-
}, thrownValue.then(lanes, lanes);
|
|
366
|
-
break a;
|
|
367
|
-
case 3:
|
|
368
|
-
workInProgressSuspendedReason = 7;
|
|
369
|
-
break a;
|
|
370
|
-
case 4:
|
|
371
|
-
workInProgressSuspendedReason = 5;
|
|
372
|
-
break a;
|
|
373
|
-
case 7:
|
|
374
|
-
isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
|
|
375
|
-
break;
|
|
376
|
-
case 5:
|
|
377
|
-
var resource = null;
|
|
378
|
-
switch (workInProgress.tag) {
|
|
379
|
-
case 26:
|
|
380
|
-
resource = workInProgress.memoizedState;
|
|
381
|
-
case 5:
|
|
382
|
-
case 27:
|
|
383
|
-
var hostFiber = workInProgress;
|
|
384
|
-
if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) {
|
|
385
|
-
workInProgressSuspendedReason = 0, workInProgressThrownValue = null;
|
|
386
|
-
var sibling = hostFiber.sibling;
|
|
387
|
-
if (sibling !== null) workInProgress = sibling;
|
|
388
|
-
else {
|
|
389
|
-
var returnFiber = hostFiber.return;
|
|
390
|
-
returnFiber !== null ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
|
|
391
|
-
}
|
|
392
|
-
break b;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
|
|
396
|
-
break;
|
|
397
|
-
case 6:
|
|
398
|
-
workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
|
|
399
|
-
break;
|
|
400
|
-
case 8:
|
|
401
|
-
resetWorkInProgressStack(), workInProgressRootExitStatus = 6;
|
|
402
|
-
break a;
|
|
403
|
-
default:
|
|
404
|
-
throw Error(formatProdErrorMessage(462));
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
workLoopConcurrentByScheduler();
|
|
408
|
-
break;
|
|
409
|
-
} catch (thrownValue$186) {
|
|
410
|
-
handleThrow(root2, thrownValue$186);
|
|
411
|
-
}
|
|
412
|
-
while (!0);
|
|
413
|
-
return lastContextDependency = currentlyRenderingFiber$1 = null, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, executionContext = prevExecutionContext, workInProgress !== null ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates(), workInProgressRootExitStatus);
|
|
414
|
-
}
|
|
415
|
-
function workLoopConcurrentByScheduler() {
|
|
416
|
-
for (; workInProgress !== null && !shouldYield(); )
|
|
417
|
-
performUnitOfWork(workInProgress);
|
|
418
|
-
}
|
|
419
|
-
function performUnitOfWork(unitOfWork) {
|
|
420
|
-
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
|
421
|
-
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
422
|
-
}
|
|
423
|
-
function replaySuspendedUnitOfWork(unitOfWork) {
|
|
424
|
-
var next = unitOfWork, current = next.alternate;
|
|
425
|
-
switch (next.tag) {
|
|
426
|
-
case 15:
|
|
427
|
-
case 0:
|
|
428
|
-
next = replayFunctionComponent(
|
|
429
|
-
current,
|
|
430
|
-
next,
|
|
431
|
-
next.pendingProps,
|
|
432
|
-
next.type,
|
|
433
|
-
void 0,
|
|
434
|
-
workInProgressRootRenderLanes
|
|
435
|
-
);
|
|
436
|
-
break;
|
|
437
|
-
case 11:
|
|
438
|
-
next = replayFunctionComponent(
|
|
439
|
-
current,
|
|
440
|
-
next,
|
|
441
|
-
next.pendingProps,
|
|
442
|
-
next.type.render,
|
|
443
|
-
next.ref,
|
|
444
|
-
workInProgressRootRenderLanes
|
|
445
|
-
);
|
|
446
|
-
break;
|
|
447
|
-
case 5:
|
|
448
|
-
resetHooksOnUnwind(next);
|
|
449
|
-
var fiber = next;
|
|
450
|
-
fiber === hydrationParentFiber && (isHydrating ? (popToNextHostParent(fiber), fiber.tag === 5 && fiber.stateNode != null && (nextHydratableInstance = fiber.stateNode)) : (popToNextHostParent(fiber), isHydrating = !0));
|
|
451
|
-
default:
|
|
452
|
-
unwindInterruptedWork(current, next), next = workInProgress = resetWorkInProgress(next, entangledRenderLanes), next = beginWork(current, next, entangledRenderLanes);
|
|
453
|
-
}
|
|
454
|
-
unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
|
|
455
|
-
}
|
|
456
|
-
function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason) {
|
|
457
|
-
lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(unitOfWork), thenableState$1 = null, thenableIndexCounter$1 = 0;
|
|
458
|
-
var returnFiber = unitOfWork.return;
|
|
459
|
-
try {
|
|
460
|
-
if (throwException(
|
|
461
|
-
root2,
|
|
462
|
-
returnFiber,
|
|
463
|
-
unitOfWork,
|
|
464
|
-
thrownValue,
|
|
465
|
-
workInProgressRootRenderLanes
|
|
466
|
-
)) {
|
|
467
|
-
workInProgressRootExitStatus = 1, logUncaughtError(
|
|
468
|
-
root2,
|
|
469
|
-
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
470
|
-
), workInProgress = null;
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
} catch (error) {
|
|
474
|
-
if (returnFiber !== null) throw workInProgress = returnFiber, error;
|
|
475
|
-
workInProgressRootExitStatus = 1, logUncaughtError(
|
|
476
|
-
root2,
|
|
477
|
-
createCapturedValueAtFiber(thrownValue, root2.current)
|
|
478
|
-
), workInProgress = null;
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
|
-
unitOfWork.flags & 32768 ? (isHydrating || suspendedReason === 1 ? root2 = !0 : workInProgressRootIsPrerendering || (workInProgressRootRenderLanes & 536870912) !== 0 ? root2 = !1 : (workInProgressRootDidSkipSuspendedSiblings = root2 = !0, (suspendedReason === 2 || suspendedReason === 9 || suspendedReason === 3 || suspendedReason === 6) && (suspendedReason = suspenseHandlerStackCursor.current, suspendedReason !== null && suspendedReason.tag === 13 && (suspendedReason.flags |= 16384))), unwindUnitOfWork(unitOfWork, root2)) : completeUnitOfWork(unitOfWork);
|
|
482
|
-
}
|
|
483
|
-
function completeUnitOfWork(unitOfWork) {
|
|
484
|
-
var completedWork = unitOfWork;
|
|
485
|
-
do {
|
|
486
|
-
if ((completedWork.flags & 32768) !== 0) {
|
|
487
|
-
unwindUnitOfWork(
|
|
488
|
-
completedWork,
|
|
489
|
-
workInProgressRootDidSkipSuspendedSiblings
|
|
490
|
-
);
|
|
491
|
-
return;
|
|
492
|
-
}
|
|
493
|
-
unitOfWork = completedWork.return;
|
|
494
|
-
var next = completeWork(
|
|
495
|
-
completedWork.alternate,
|
|
496
|
-
completedWork,
|
|
497
|
-
entangledRenderLanes
|
|
498
|
-
);
|
|
499
|
-
if (next !== null) {
|
|
500
|
-
workInProgress = next;
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
if (completedWork = completedWork.sibling, completedWork !== null) {
|
|
504
|
-
workInProgress = completedWork;
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
workInProgress = completedWork = unitOfWork;
|
|
508
|
-
} while (completedWork !== null);
|
|
509
|
-
workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 5);
|
|
510
|
-
}
|
|
511
|
-
function unwindUnitOfWork(unitOfWork, skipSiblings) {
|
|
512
|
-
do {
|
|
513
|
-
var next = unwindWork(unitOfWork.alternate, unitOfWork);
|
|
514
|
-
if (next !== null) {
|
|
515
|
-
next.flags &= 32767, workInProgress = next;
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
if (next = unitOfWork.return, next !== null && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null), !skipSiblings && (unitOfWork = unitOfWork.sibling, unitOfWork !== null)) {
|
|
519
|
-
workInProgress = unitOfWork;
|
|
520
|
-
return;
|
|
521
|
-
}
|
|
522
|
-
workInProgress = unitOfWork = next;
|
|
523
|
-
} while (unitOfWork !== null);
|
|
524
|
-
workInProgressRootExitStatus = 6, workInProgress = null;
|
|
525
|
-
}
|
|
526
|
-
function completeRoot(root2, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedState) {
|
|
527
|
-
root2.cancelPendingCommit = null;
|
|
528
|
-
do
|
|
529
|
-
flushPendingEffects();
|
|
530
|
-
while (pendingEffectsStatus !== 0);
|
|
531
|
-
if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
|
|
532
|
-
if (finishedWork !== null) {
|
|
533
|
-
if (finishedWork === root2.current) throw Error(formatProdErrorMessage(177));
|
|
534
|
-
root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0), pendingFinishedWork = finishedWork, pendingEffectsRoot = root2, pendingEffectsLanes = lanes, pendingPassiveTransitions = transitions, pendingRecoverableErrors = recoverableErrors, commitRoot(
|
|
535
|
-
root2,
|
|
536
|
-
finishedWork,
|
|
537
|
-
lanes,
|
|
538
|
-
spawnedLane,
|
|
539
|
-
updatedLanes,
|
|
540
|
-
suspendedRetryLanes,
|
|
541
|
-
suspendedState
|
|
542
|
-
);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
function commitRoot(root2, finishedWork, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, suspendedState) {
|
|
546
|
-
var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
|
|
547
|
-
if (pendingEffectsRemainingLanes = remainingLanes, remainingLanes |= concurrentlyUpdatedLanes, markRootFinished(
|
|
548
|
-
root2,
|
|
549
|
-
lanes,
|
|
550
|
-
remainingLanes,
|
|
551
|
-
spawnedLane,
|
|
552
|
-
updatedLanes,
|
|
553
|
-
suspendedRetryLanes
|
|
554
|
-
), pendingViewTransitionEvents = null, (lanes & 335544064) === lanes ? (pendingTransitionTypes = claimQueuedTransitionTypes(root2), spawnedLane = 10262) : (pendingTransitionTypes = null, spawnedLane = 10256), (finishedWork.subtreeFlags & spawnedLane) !== 0 || (finishedWork.flags & spawnedLane) !== 0 ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() {
|
|
555
|
-
return flushPassiveEffects(), null;
|
|
556
|
-
})) : (root2.callbackNode = null, root2.callbackPriority = 0), shouldStartViewTransition = !1, spawnedLane = (finishedWork.flags & 13878) !== 0, (finishedWork.subtreeFlags & 13878) !== 0 || spawnedLane) {
|
|
557
|
-
spawnedLane = ReactSharedInternals.T, ReactSharedInternals.T = null, updatedLanes = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, suspendedRetryLanes = executionContext, executionContext |= 4;
|
|
558
|
-
try {
|
|
559
|
-
commitBeforeMutationEffects(root2, finishedWork, lanes);
|
|
560
|
-
} finally {
|
|
561
|
-
executionContext = suspendedRetryLanes, ReactDOMSharedInternals.p = updatedLanes, ReactSharedInternals.T = spawnedLane;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
pendingEffectsStatus = 1, shouldStartViewTransition ? pendingViewTransition = startViewTransition(
|
|
565
|
-
suspendedState,
|
|
566
|
-
root2.containerInfo,
|
|
567
|
-
pendingTransitionTypes,
|
|
568
|
-
flushMutationEffects,
|
|
569
|
-
flushLayoutEffects,
|
|
570
|
-
flushAfterMutationEffects,
|
|
571
|
-
flushSpawnedWork,
|
|
572
|
-
flushPassiveEffects,
|
|
573
|
-
reportViewTransitionError,
|
|
574
|
-
null,
|
|
575
|
-
null
|
|
576
|
-
) : (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());
|
|
577
|
-
}
|
|
578
|
-
function reportViewTransitionError(error) {
|
|
579
|
-
if (pendingEffectsStatus !== 0) {
|
|
580
|
-
var onRecoverableError = pendingEffectsRoot.onRecoverableError;
|
|
581
|
-
onRecoverableError(error, { componentStack: null });
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
function flushAfterMutationEffects() {
|
|
585
|
-
pendingEffectsStatus === 3 && (pendingEffectsStatus = 0, commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot), pendingEffectsStatus = 4);
|
|
586
|
-
}
|
|
587
|
-
function flushMutationEffects() {
|
|
588
|
-
if (pendingEffectsStatus === 1) {
|
|
589
|
-
pendingEffectsStatus = 0;
|
|
590
|
-
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = (finishedWork.flags & 13878) !== 0;
|
|
591
|
-
if ((finishedWork.subtreeFlags & 13878) !== 0 || rootMutationHasEffect) {
|
|
592
|
-
rootMutationHasEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
|
|
593
|
-
var previousPriority = ReactDOMSharedInternals.p;
|
|
594
|
-
ReactDOMSharedInternals.p = 2;
|
|
595
|
-
var prevExecutionContext = executionContext;
|
|
596
|
-
executionContext |= 4;
|
|
597
|
-
try {
|
|
598
|
-
inUpdateViewTransition = rootViewTransitionAffected = !1, commitMutationEffectsOnFiber(finishedWork, root2, lanes), lanes = selectionInformation;
|
|
599
|
-
var curFocusedElem = getActiveElementDeep(root2.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange;
|
|
600
|
-
if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(
|
|
601
|
-
priorFocusedElem.ownerDocument.documentElement,
|
|
602
|
-
priorFocusedElem
|
|
603
|
-
)) {
|
|
604
|
-
if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
|
|
605
|
-
var start2 = priorSelectionRange.start, end = priorSelectionRange.end;
|
|
606
|
-
if (end === void 0 && (end = start2), "selectionStart" in priorFocusedElem)
|
|
607
|
-
priorFocusedElem.selectionStart = start2, priorFocusedElem.selectionEnd = Math.min(
|
|
608
|
-
end,
|
|
609
|
-
priorFocusedElem.value.length
|
|
610
|
-
);
|
|
611
|
-
else {
|
|
612
|
-
var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window;
|
|
613
|
-
if (win.getSelection) {
|
|
614
|
-
var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = priorSelectionRange.end === void 0 ? start$jscomp$0 : Math.min(priorSelectionRange.end, length);
|
|
615
|
-
!selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem);
|
|
616
|
-
var startMarker = getNodeForCharacterOffset(
|
|
617
|
-
priorFocusedElem,
|
|
618
|
-
start$jscomp$0
|
|
619
|
-
), endMarker = getNodeForCharacterOffset(
|
|
620
|
-
priorFocusedElem,
|
|
621
|
-
end$jscomp$0
|
|
622
|
-
);
|
|
623
|
-
if (startMarker && endMarker && (selection.rangeCount !== 1 || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) {
|
|
624
|
-
var range = doc.createRange();
|
|
625
|
-
range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
for (doc = [], selection = priorFocusedElem; selection = selection.parentNode; )
|
|
631
|
-
selection.nodeType === 1 && doc.push({
|
|
632
|
-
element: selection,
|
|
633
|
-
left: selection.scrollLeft,
|
|
634
|
-
top: selection.scrollTop
|
|
635
|
-
});
|
|
636
|
-
for (typeof priorFocusedElem.focus == "function" && priorFocusedElem.focus(), priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) {
|
|
637
|
-
var info = doc[priorFocusedElem];
|
|
638
|
-
info.element.scrollLeft = info.left, info.element.scrollTop = info.top;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
_enabled = !!eventsEnabled, selectionInformation = eventsEnabled = null;
|
|
642
|
-
} finally {
|
|
643
|
-
executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
root2.current = finishedWork, pendingEffectsStatus = 2;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
function flushLayoutEffects() {
|
|
650
|
-
if (pendingEffectsStatus === 2) {
|
|
651
|
-
pendingEffectsStatus = 0;
|
|
652
|
-
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = (finishedWork.flags & 8772) !== 0;
|
|
653
|
-
if ((finishedWork.subtreeFlags & 8772) !== 0 || rootHasLayoutEffect) {
|
|
654
|
-
rootHasLayoutEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
|
|
655
|
-
var previousPriority = ReactDOMSharedInternals.p;
|
|
656
|
-
ReactDOMSharedInternals.p = 2;
|
|
657
|
-
var prevExecutionContext = executionContext;
|
|
658
|
-
executionContext |= 4;
|
|
659
|
-
try {
|
|
660
|
-
commitLayoutEffectOnFiber(root2, finishedWork.alternate, finishedWork);
|
|
661
|
-
} finally {
|
|
662
|
-
executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootHasLayoutEffect;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
pendingEffectsStatus = 3;
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
function flushSpawnedWork() {
|
|
669
|
-
if (pendingEffectsStatus === 4 || pendingEffectsStatus === 3) {
|
|
670
|
-
pendingEffectsStatus = 0;
|
|
671
|
-
var committedViewTransition = pendingViewTransition;
|
|
672
|
-
pendingViewTransition = null, requestPaint();
|
|
673
|
-
var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors, passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;
|
|
674
|
-
if ((finishedWork.subtreeFlags & passiveSubtreeMask) !== 0 || (finishedWork.flags & passiveSubtreeMask) !== 0 ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes)), passiveSubtreeMask = root2.pendingLanes, passiveSubtreeMask === 0 && (legacyErrorBoundariesThatAlreadyFailed = null), lanesToEventPriority(lanes), finishedWork = finishedWork.stateNode, injectedHook && typeof injectedHook.onCommitFiberRoot == "function")
|
|
675
|
-
try {
|
|
676
|
-
injectedHook.onCommitFiberRoot(
|
|
677
|
-
rendererID,
|
|
678
|
-
finishedWork,
|
|
679
|
-
void 0,
|
|
680
|
-
(finishedWork.current.flags & 128) === 128
|
|
681
|
-
);
|
|
682
|
-
} catch {
|
|
683
|
-
}
|
|
684
|
-
if (recoverableErrors !== null) {
|
|
685
|
-
finishedWork = ReactSharedInternals.T, passiveSubtreeMask = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, ReactSharedInternals.T = null;
|
|
686
|
-
try {
|
|
687
|
-
for (var onRecoverableError = root2.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
|
|
688
|
-
var recoverableError = recoverableErrors[i];
|
|
689
|
-
onRecoverableError(recoverableError.value, {
|
|
690
|
-
componentStack: recoverableError.stack
|
|
691
|
-
});
|
|
692
|
-
}
|
|
693
|
-
} finally {
|
|
694
|
-
ReactSharedInternals.T = finishedWork, ReactDOMSharedInternals.p = passiveSubtreeMask;
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
if (recoverableErrors = pendingViewTransitionEvents, onRecoverableError = pendingTransitionTypes, pendingTransitionTypes = null, recoverableErrors !== null && (pendingViewTransitionEvents = null, onRecoverableError === null && (onRecoverableError = []), committedViewTransition !== null))
|
|
698
|
-
for (recoverableError = 0; recoverableError < recoverableErrors.length; recoverableError++)
|
|
699
|
-
finishedWork = (0, recoverableErrors[recoverableError])(
|
|
700
|
-
onRecoverableError
|
|
701
|
-
), finishedWork !== void 0 && committedViewTransition.finished.finally(finishedWork);
|
|
702
|
-
(pendingEffectsLanes & 3) !== 0 && flushPendingEffects(), ensureRootIsScheduled(root2), passiveSubtreeMask = root2.pendingLanes, (lanes & 261930) !== 0 && (passiveSubtreeMask & 42) !== 0 ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : (nestedUpdateCount = 0, rootWithNestedUpdates = null), flushSyncWorkAcrossRoots_impl(0, !1);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
function releaseRootPooledCache(root2, remainingLanes) {
|
|
706
|
-
(root2.pooledCacheLanes &= remainingLanes) === 0 && (remainingLanes = root2.pooledCache, remainingLanes != null && (root2.pooledCache = null, releaseCache(remainingLanes)));
|
|
707
|
-
}
|
|
708
|
-
function flushPendingEffects() {
|
|
709
|
-
return pendingViewTransition !== null && (pendingViewTransition.skipTransition(), pendingViewTransition = null), flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork(), flushPassiveEffects();
|
|
710
|
-
}
|
|
711
|
-
function flushPassiveEffects() {
|
|
712
|
-
if (pendingEffectsStatus !== 5) return !1;
|
|
713
|
-
var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
|
|
714
|
-
pendingEffectsRemainingLanes = 0;
|
|
715
|
-
var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p;
|
|
716
|
-
try {
|
|
717
|
-
ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority, ReactSharedInternals.T = null, renderPriority = pendingPassiveTransitions, pendingPassiveTransitions = null;
|
|
718
|
-
var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes;
|
|
719
|
-
if (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, pendingEffectsLanes = 0, (executionContext & 6) !== 0) throw Error(formatProdErrorMessage(331));
|
|
720
|
-
var prevExecutionContext = executionContext;
|
|
721
|
-
if (executionContext |= 4, commitPassiveUnmountOnFiber(root$jscomp$0.current), commitPassiveMountOnFiber(
|
|
722
|
-
root$jscomp$0,
|
|
723
|
-
root$jscomp$0.current,
|
|
724
|
-
lanes,
|
|
725
|
-
renderPriority
|
|
726
|
-
), executionContext = prevExecutionContext, flushSyncWorkAcrossRoots_impl(0, !1), injectedHook && typeof injectedHook.onPostCommitFiberRoot == "function")
|
|
727
|
-
try {
|
|
728
|
-
injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
|
|
729
|
-
} catch {
|
|
730
|
-
}
|
|
731
|
-
return !0;
|
|
732
|
-
} finally {
|
|
733
|
-
ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, releaseRootPooledCache(root2, remainingLanes);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
|
|
737
|
-
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2), rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2), rootFiber !== null && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
|
|
738
|
-
}
|
|
739
|
-
function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
|
|
740
|
-
if (sourceFiber.tag === 3)
|
|
741
|
-
captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
|
|
742
|
-
else
|
|
743
|
-
for (; nearestMountedAncestor !== null; ) {
|
|
744
|
-
if (nearestMountedAncestor.tag === 3) {
|
|
745
|
-
captureCommitPhaseErrorOnRoot(
|
|
746
|
-
nearestMountedAncestor,
|
|
747
|
-
sourceFiber,
|
|
748
|
-
error
|
|
749
|
-
);
|
|
750
|
-
break;
|
|
751
|
-
} else if (nearestMountedAncestor.tag === 1) {
|
|
752
|
-
var instance = nearestMountedAncestor.stateNode;
|
|
753
|
-
if (typeof nearestMountedAncestor.type.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
|
|
754
|
-
sourceFiber = createCapturedValueAtFiber(error, sourceFiber), error = createClassErrorUpdate(2), instance = enqueueUpdate(nearestMountedAncestor, error, 2), instance !== null && (initializeClassErrorUpdate(
|
|
755
|
-
error,
|
|
756
|
-
instance,
|
|
757
|
-
nearestMountedAncestor,
|
|
758
|
-
sourceFiber
|
|
759
|
-
), markRootUpdated$1(instance, 2), ensureRootIsScheduled(instance));
|
|
760
|
-
break;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
nearestMountedAncestor = nearestMountedAncestor.return;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
function attachPingListener(root2, wakeable, lanes) {
|
|
767
|
-
var pingCache = root2.pingCache;
|
|
768
|
-
if (pingCache === null) {
|
|
769
|
-
pingCache = root2.pingCache = new PossiblyWeakMap();
|
|
770
|
-
var threadIDs = /* @__PURE__ */ new Set();
|
|
771
|
-
pingCache.set(wakeable, threadIDs);
|
|
772
|
-
} else
|
|
773
|
-
threadIDs = pingCache.get(wakeable), threadIDs === void 0 && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
|
|
774
|
-
threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), root2 = pingSuspendedRoot.bind(null, root2, wakeable, lanes), wakeable.then(root2, root2));
|
|
775
|
-
}
|
|
776
|
-
function pingSuspendedRoot(root2, wakeable, pingedLanes) {
|
|
777
|
-
var pingCache = root2.pingCache;
|
|
778
|
-
pingCache !== null && pingCache.delete(wakeable), root2.pingedLanes |= root2.suspendedLanes & pingedLanes, root2.warmLanes &= ~pingedLanes, workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && ((workInProgressRootExitStatus === 4 || workInProgressRootExitStatus === 3 && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime) && (executionContext & 2) === 0 ? prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)), ensureRootIsScheduled(root2);
|
|
779
|
-
}
|
|
780
|
-
function retryTimedOutBoundary(boundaryFiber, retryLane) {
|
|
781
|
-
retryLane === 0 && (retryLane = claimNextRetryLane()), boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane), boundaryFiber !== null && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
|
|
782
|
-
}
|
|
783
|
-
function retryDehydratedSuspenseBoundary(boundaryFiber) {
|
|
784
|
-
var suspenseState = boundaryFiber.memoizedState, retryLane = 0;
|
|
785
|
-
suspenseState !== null && (retryLane = suspenseState.retryLane), retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
786
|
-
}
|
|
787
|
-
function resolveRetryWakeable(boundaryFiber, wakeable) {
|
|
788
|
-
var retryLane = 0;
|
|
789
|
-
switch (boundaryFiber.tag) {
|
|
790
|
-
case 31:
|
|
791
|
-
case 13:
|
|
792
|
-
var retryCache = boundaryFiber.stateNode, suspenseState = boundaryFiber.memoizedState;
|
|
793
|
-
suspenseState !== null && (retryLane = suspenseState.retryLane);
|
|
794
|
-
break;
|
|
795
|
-
case 19:
|
|
796
|
-
retryCache = boundaryFiber.stateNode;
|
|
797
|
-
break;
|
|
798
|
-
case 22:
|
|
799
|
-
retryCache = boundaryFiber.stateNode._retryCache;
|
|
800
|
-
break;
|
|
801
|
-
default:
|
|
802
|
-
throw Error(formatProdErrorMessage(314));
|
|
803
|
-
}
|
|
804
|
-
retryCache !== null && retryCache.delete(wakeable), retryTimedOutBoundary(boundaryFiber, retryLane);
|
|
805
|
-
}
|
|
806
|
-
function scheduleCallback$1(priorityLevel, callback) {
|
|
807
|
-
return scheduleCallback$3(priorityLevel, callback);
|
|
808
|
-
}
|
|
809
|
-
var firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0;
|
|
810
|
-
function ensureRootIsScheduled(root2) {
|
|
811
|
-
root2 !== lastScheduledRoot && root2.next === null && (lastScheduledRoot === null ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2), mightHavePendingSyncWork = !0, didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask());
|
|
812
|
-
}
|
|
813
|
-
function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
|
|
814
|
-
if (!isFlushingWork && mightHavePendingSyncWork) {
|
|
815
|
-
isFlushingWork = !0;
|
|
816
|
-
do
|
|
817
|
-
for (var didPerformSomeWork = !1, root$190 = firstScheduledRoot; root$190 !== null; ) {
|
|
818
|
-
if (!onlyLegacy)
|
|
819
|
-
if (syncTransitionLanes !== 0) {
|
|
820
|
-
var pendingLanes = root$190.pendingLanes;
|
|
821
|
-
if (pendingLanes === 0) var JSCompiler_inline_result = 0;
|
|
822
|
-
else {
|
|
823
|
-
var suspendedLanes = root$190.suspendedLanes, pingedLanes = root$190.pingedLanes;
|
|
824
|
-
JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes), JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
|
|
825
|
-
}
|
|
826
|
-
JSCompiler_inline_result !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
|
|
827
|
-
} else
|
|
828
|
-
JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(
|
|
829
|
-
root$190,
|
|
830
|
-
root$190 === workInProgressRoot ? JSCompiler_inline_result : 0,
|
|
831
|
-
root$190.cancelPendingCommit !== null || root$190.timeoutHandle !== -1
|
|
832
|
-
), (JSCompiler_inline_result & 3) === 0 || checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
|
|
833
|
-
root$190 = root$190.next;
|
|
834
|
-
}
|
|
835
|
-
while (didPerformSomeWork);
|
|
836
|
-
isFlushingWork = !1;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
function processRootScheduleInImmediateTask() {
|
|
840
|
-
processRootScheduleInMicrotask();
|
|
841
|
-
}
|
|
842
|
-
function processRootScheduleInMicrotask() {
|
|
843
|
-
mightHavePendingSyncWork = didScheduleMicrotask = !1;
|
|
844
|
-
var syncTransitionLanes = 0;
|
|
845
|
-
currentEventTransitionLane !== 0 && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
|
|
846
|
-
for (var currentTime = now(), prev = null, root2 = firstScheduledRoot; root2 !== null; ) {
|
|
847
|
-
var next = root2.next, nextLanes = scheduleTaskForRootDuringMicrotask(root2, currentTime);
|
|
848
|
-
nextLanes === 0 ? (root2.next = null, prev === null ? firstScheduledRoot = next : prev.next = next, next === null && (lastScheduledRoot = prev)) : (prev = root2, (syncTransitionLanes !== 0 || (nextLanes & 3) !== 0) && (mightHavePendingSyncWork = !0)), root2 = next;
|
|
849
|
-
}
|
|
850
|
-
pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5 || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1), currentEventTransitionLane !== 0 && (currentEventTransitionLane = 0);
|
|
851
|
-
}
|
|
852
|
-
function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
|
|
853
|
-
for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) {
|
|
854
|
-
var index$5 = 31 - clz32(lanes), lane = 1 << index$5, expirationTime = expirationTimes[index$5];
|
|
855
|
-
expirationTime === -1 ? ((lane & suspendedLanes) === 0 || (lane & pingedLanes) !== 0) && (expirationTimes[index$5] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root2.expiredLanes |= lane), lanes &= ~lane;
|
|
856
|
-
}
|
|
857
|
-
if (currentTime = workInProgressRoot, suspendedLanes = workInProgressRootRenderLanes, suspendedLanes = getNextLanes(
|
|
858
|
-
root2,
|
|
859
|
-
root2 === currentTime ? suspendedLanes : 0,
|
|
860
|
-
root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
|
|
861
|
-
), pingedLanes = root2.callbackNode, suspendedLanes === 0 || root2 === currentTime && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null)
|
|
862
|
-
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
|
|
863
|
-
if ((suspendedLanes & 3) === 0 || checkIfRootIsPrerendering(root2, suspendedLanes)) {
|
|
864
|
-
if (currentTime = suspendedLanes & -suspendedLanes, currentTime === root2.callbackPriority) return currentTime;
|
|
865
|
-
switch (pingedLanes !== null && cancelCallback$1(pingedLanes), lanesToEventPriority(suspendedLanes)) {
|
|
866
|
-
case 2:
|
|
867
|
-
case 8:
|
|
868
|
-
suspendedLanes = UserBlockingPriority;
|
|
869
|
-
break;
|
|
870
|
-
case 32:
|
|
871
|
-
suspendedLanes = NormalPriority$1;
|
|
872
|
-
break;
|
|
873
|
-
case 268435456:
|
|
874
|
-
suspendedLanes = IdlePriority;
|
|
875
|
-
break;
|
|
876
|
-
default:
|
|
877
|
-
suspendedLanes = NormalPriority$1;
|
|
878
|
-
}
|
|
879
|
-
return pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2), suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes), root2.callbackPriority = currentTime, root2.callbackNode = suspendedLanes, currentTime;
|
|
880
|
-
}
|
|
881
|
-
return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackPriority = 2, root2.callbackNode = null, 2;
|
|
882
|
-
}
|
|
883
|
-
function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
|
|
884
|
-
if (pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5)
|
|
885
|
-
return root2.callbackNode = null, root2.callbackPriority = 0, null;
|
|
886
|
-
var originalCallbackNode = root2.callbackNode;
|
|
887
|
-
if (flushPendingEffects() && root2.callbackNode !== originalCallbackNode)
|
|
888
|
-
return null;
|
|
889
|
-
var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
|
|
890
|
-
return workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
|
|
891
|
-
root2,
|
|
892
|
-
root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
|
|
893
|
-
root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
|
|
894
|
-
), workInProgressRootRenderLanes$jscomp$0 === 0 ? null : (performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout), scheduleTaskForRootDuringMicrotask(root2, now()), root2.callbackNode != null && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null);
|
|
895
|
-
}
|
|
896
|
-
function performSyncWorkOnRoot(root2, lanes) {
|
|
897
|
-
if (flushPendingEffects()) return null;
|
|
898
|
-
performWorkOnRoot(root2, lanes, !0);
|
|
899
|
-
}
|
|
900
|
-
function scheduleImmediateRootScheduleTask() {
|
|
901
|
-
scheduleMicrotask(function() {
|
|
902
|
-
(executionContext & 6) !== 0 ? scheduleCallback$3(
|
|
903
|
-
ImmediatePriority,
|
|
904
|
-
processRootScheduleInImmediateTask
|
|
905
|
-
) : processRootScheduleInMicrotask();
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
function requestTransitionLane() {
|
|
909
|
-
if (currentEventTransitionLane === 0) {
|
|
910
|
-
var actionScopeLane = currentEntangledLane;
|
|
911
|
-
actionScopeLane === 0 && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, (nextTransitionUpdateLane & 261888) === 0 && (nextTransitionUpdateLane = 256)), currentEventTransitionLane = actionScopeLane;
|
|
912
|
-
}
|
|
913
|
-
return currentEventTransitionLane;
|
|
914
|
-
}
|