openplanr 2.2640.8 → 2.2641.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 +14 -0
- package/dist/dashboard/.vite/manifest.json +1 -1
- package/dist/dashboard/assets/{index-COZ36pFn.js → index-D7R6tnlX.js} +2 -2
- package/dist/dashboard/assets/{index-COZ36pFn.js.map → index-D7R6tnlX.js.map} +1 -1
- package/dist/dashboard/dashboard-manifest.json +8 -8
- package/dist/dashboard/index.html +1 -1
- 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 +167 -35
- package/lib/host-packages/claude/openplanr/README.md +22 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-pako-esm.mjs → design-compression.mjs} +2 -1521
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +133 -12
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-planr-home.mjs → design-loopback-server.mjs} +15 -36
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +798 -796
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +138 -765
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-escape.mjs → design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-artifact-sources.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +12 -5
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
- 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 +1121 -0
- 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 +2183 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +240 -5192
- package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
- package/lib/host-packages/claude/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
- package/lib/host-packages/cursor/openplanr/.openplanr-content.json +166 -34
- package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
- package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/backend-diagnostics.mjs +6 -2
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-pako-esm.mjs → cursor/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +133 -12
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-planr-home.mjs → cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +798 -796
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +138 -765
- package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-escape.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-artifact-sources.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-bounded-json-data.mjs → design-shared-protocol-contracts-31a760fc.mjs} +241 -454
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +12 -5
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
- 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 +1121 -0
- 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 +2183 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +240 -5192
- package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
- 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 +166 -34
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-pako-esm.mjs → openai/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +133 -12
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-planr-home.mjs → openai/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +798 -796
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +138 -765
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-escape.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
- package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-artifact-sources.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
- package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +12 -5
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
- 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 +1121 -0
- 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 +2183 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +240 -5192
- package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
- package/lib/host-packages/openai/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
- package/package.json +2 -2
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
- package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
- package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
- package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
|
@@ -0,0 +1,2513 @@
|
|
|
1
|
+
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-dom-client.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Scheduler = require_scheduler();
|
|
13
|
+
var React36 = require_react();
|
|
14
|
+
var ReactDOM4 = require_react_dom();
|
|
15
|
+
function formatProdErrorMessage(code) {
|
|
16
|
+
var url = "https://react.dev/errors/" + code;
|
|
17
|
+
if (1 < arguments.length) {
|
|
18
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
19
|
+
for (var i = 2; i < arguments.length; i++)
|
|
20
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
21
|
+
}
|
|
22
|
+
return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
23
|
+
}
|
|
24
|
+
function isValidContainer(node) {
|
|
25
|
+
return !(!node || 1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType);
|
|
26
|
+
}
|
|
27
|
+
function getNearestMountedFiber(fiber) {
|
|
28
|
+
var node = fiber, nearestMounted = fiber;
|
|
29
|
+
if (fiber.alternate) for (; node.return; ) node = node.return;
|
|
30
|
+
else {
|
|
31
|
+
fiber = node;
|
|
32
|
+
do
|
|
33
|
+
node = fiber, 0 !== (node.flags & 4098) && (nearestMounted = node.return), fiber = node.return;
|
|
34
|
+
while (fiber);
|
|
35
|
+
}
|
|
36
|
+
return 3 === node.tag ? nearestMounted : null;
|
|
37
|
+
}
|
|
38
|
+
function getSuspenseInstanceFromFiber(fiber) {
|
|
39
|
+
if (13 === fiber.tag) {
|
|
40
|
+
var suspenseState = fiber.memoizedState;
|
|
41
|
+
null === suspenseState && (fiber = fiber.alternate, null !== fiber && (suspenseState = fiber.memoizedState));
|
|
42
|
+
if (null !== suspenseState) return suspenseState.dehydrated;
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
function getActivityInstanceFromFiber(fiber) {
|
|
47
|
+
if (31 === fiber.tag) {
|
|
48
|
+
var activityState = fiber.memoizedState;
|
|
49
|
+
null === activityState && (fiber = fiber.alternate, null !== fiber && (activityState = fiber.memoizedState));
|
|
50
|
+
if (null !== activityState) return activityState.dehydrated;
|
|
51
|
+
}
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
function assertIsMounted(fiber) {
|
|
55
|
+
if (getNearestMountedFiber(fiber) !== fiber)
|
|
56
|
+
throw Error(formatProdErrorMessage(188));
|
|
57
|
+
}
|
|
58
|
+
function findCurrentFiberUsingSlowPath(fiber) {
|
|
59
|
+
var alternate = fiber.alternate;
|
|
60
|
+
if (!alternate) {
|
|
61
|
+
alternate = getNearestMountedFiber(fiber);
|
|
62
|
+
if (null === alternate) throw Error(formatProdErrorMessage(188));
|
|
63
|
+
return alternate !== fiber ? null : fiber;
|
|
64
|
+
}
|
|
65
|
+
for (var a = fiber, b = alternate; ; ) {
|
|
66
|
+
var parentA = a.return;
|
|
67
|
+
if (null === parentA) break;
|
|
68
|
+
var parentB = parentA.alternate;
|
|
69
|
+
if (null === parentB) {
|
|
70
|
+
b = parentA.return;
|
|
71
|
+
if (null !== b) {
|
|
72
|
+
a = b;
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
if (parentA.child === parentB.child) {
|
|
78
|
+
for (parentB = parentA.child; parentB; ) {
|
|
79
|
+
if (parentB === a) return assertIsMounted(parentA), fiber;
|
|
80
|
+
if (parentB === b) return assertIsMounted(parentA), alternate;
|
|
81
|
+
parentB = parentB.sibling;
|
|
82
|
+
}
|
|
83
|
+
throw Error(formatProdErrorMessage(188));
|
|
84
|
+
}
|
|
85
|
+
if (a.return !== b.return) a = parentA, b = parentB;
|
|
86
|
+
else {
|
|
87
|
+
for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
|
|
88
|
+
if (child$0 === a) {
|
|
89
|
+
didFindChild = true;
|
|
90
|
+
a = parentA;
|
|
91
|
+
b = parentB;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
if (child$0 === b) {
|
|
95
|
+
didFindChild = true;
|
|
96
|
+
b = parentA;
|
|
97
|
+
a = parentB;
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
child$0 = child$0.sibling;
|
|
101
|
+
}
|
|
102
|
+
if (!didFindChild) {
|
|
103
|
+
for (child$0 = parentB.child; child$0; ) {
|
|
104
|
+
if (child$0 === a) {
|
|
105
|
+
didFindChild = true;
|
|
106
|
+
a = parentB;
|
|
107
|
+
b = parentA;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
if (child$0 === b) {
|
|
111
|
+
didFindChild = true;
|
|
112
|
+
b = parentB;
|
|
113
|
+
a = parentA;
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
child$0 = child$0.sibling;
|
|
117
|
+
}
|
|
118
|
+
if (!didFindChild) throw Error(formatProdErrorMessage(189));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (a.alternate !== b) throw Error(formatProdErrorMessage(190));
|
|
122
|
+
}
|
|
123
|
+
if (3 !== a.tag) throw Error(formatProdErrorMessage(188));
|
|
124
|
+
return a.stateNode.current === a ? fiber : alternate;
|
|
125
|
+
}
|
|
126
|
+
function findCurrentHostFiberImpl(node) {
|
|
127
|
+
var tag = node.tag;
|
|
128
|
+
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;
|
|
129
|
+
for (node = node.child; null !== node; ) {
|
|
130
|
+
tag = findCurrentHostFiberImpl(node);
|
|
131
|
+
if (null !== tag) return tag;
|
|
132
|
+
node = node.sibling;
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
var assign = Object.assign;
|
|
137
|
+
var REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element");
|
|
138
|
+
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
139
|
+
var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
|
|
140
|
+
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
141
|
+
var REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode");
|
|
142
|
+
var REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler");
|
|
143
|
+
var REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer");
|
|
144
|
+
var REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context");
|
|
145
|
+
var REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref");
|
|
146
|
+
var REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense");
|
|
147
|
+
var REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list");
|
|
148
|
+
var REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo");
|
|
149
|
+
var REACT_LAZY_TYPE2 = /* @__PURE__ */ Symbol.for("react.lazy");
|
|
150
|
+
var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
|
|
151
|
+
var REACT_MEMO_CACHE_SENTINEL = /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel");
|
|
152
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
153
|
+
function getIteratorFn(maybeIterable) {
|
|
154
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
155
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
156
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
157
|
+
}
|
|
158
|
+
var REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
159
|
+
function getComponentNameFromType(type) {
|
|
160
|
+
if (null == type) return null;
|
|
161
|
+
if ("function" === typeof type)
|
|
162
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
163
|
+
if ("string" === typeof type) return type;
|
|
164
|
+
switch (type) {
|
|
165
|
+
case REACT_FRAGMENT_TYPE:
|
|
166
|
+
return "Fragment";
|
|
167
|
+
case REACT_PROFILER_TYPE:
|
|
168
|
+
return "Profiler";
|
|
169
|
+
case REACT_STRICT_MODE_TYPE:
|
|
170
|
+
return "StrictMode";
|
|
171
|
+
case REACT_SUSPENSE_TYPE:
|
|
172
|
+
return "Suspense";
|
|
173
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
174
|
+
return "SuspenseList";
|
|
175
|
+
case REACT_ACTIVITY_TYPE:
|
|
176
|
+
return "Activity";
|
|
177
|
+
}
|
|
178
|
+
if ("object" === typeof type)
|
|
179
|
+
switch (type.$$typeof) {
|
|
180
|
+
case REACT_PORTAL_TYPE:
|
|
181
|
+
return "Portal";
|
|
182
|
+
case REACT_CONTEXT_TYPE:
|
|
183
|
+
return type.displayName || "Context";
|
|
184
|
+
case REACT_CONSUMER_TYPE:
|
|
185
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
186
|
+
case REACT_FORWARD_REF_TYPE:
|
|
187
|
+
var innerType = type.render;
|
|
188
|
+
type = type.displayName;
|
|
189
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
190
|
+
return type;
|
|
191
|
+
case REACT_MEMO_TYPE:
|
|
192
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
193
|
+
case REACT_LAZY_TYPE2:
|
|
194
|
+
innerType = type._payload;
|
|
195
|
+
type = type._init;
|
|
196
|
+
try {
|
|
197
|
+
return getComponentNameFromType(type(innerType));
|
|
198
|
+
} catch (x) {
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
var isArrayImpl = Array.isArray;
|
|
204
|
+
var ReactSharedInternals = React36.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
205
|
+
var ReactDOMSharedInternals = ReactDOM4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
206
|
+
var sharedNotPendingObject = {
|
|
207
|
+
pending: false,
|
|
208
|
+
data: null,
|
|
209
|
+
method: null,
|
|
210
|
+
action: null
|
|
211
|
+
};
|
|
212
|
+
var valueStack = [];
|
|
213
|
+
var index2 = -1;
|
|
214
|
+
function createCursor(defaultValue) {
|
|
215
|
+
return { current: defaultValue };
|
|
216
|
+
}
|
|
217
|
+
function pop(cursor) {
|
|
218
|
+
0 > index2 || (cursor.current = valueStack[index2], valueStack[index2] = null, index2--);
|
|
219
|
+
}
|
|
220
|
+
function push(cursor, value) {
|
|
221
|
+
index2++;
|
|
222
|
+
valueStack[index2] = cursor.current;
|
|
223
|
+
cursor.current = value;
|
|
224
|
+
}
|
|
225
|
+
var contextStackCursor = createCursor(null);
|
|
226
|
+
var contextFiberStackCursor = createCursor(null);
|
|
227
|
+
var rootInstanceStackCursor = createCursor(null);
|
|
228
|
+
var hostTransitionProviderCursor = createCursor(null);
|
|
229
|
+
function pushHostContainer(fiber, nextRootInstance) {
|
|
230
|
+
push(rootInstanceStackCursor, nextRootInstance);
|
|
231
|
+
push(contextFiberStackCursor, fiber);
|
|
232
|
+
push(contextStackCursor, null);
|
|
233
|
+
switch (nextRootInstance.nodeType) {
|
|
234
|
+
case 9:
|
|
235
|
+
case 11:
|
|
236
|
+
fiber = (fiber = nextRootInstance.documentElement) ? (fiber = fiber.namespaceURI) ? getOwnHostContext(fiber) : 0 : 0;
|
|
237
|
+
break;
|
|
238
|
+
default:
|
|
239
|
+
if (fiber = nextRootInstance.tagName, nextRootInstance = nextRootInstance.namespaceURI)
|
|
240
|
+
nextRootInstance = getOwnHostContext(nextRootInstance), fiber = getChildHostContextProd(nextRootInstance, fiber);
|
|
241
|
+
else
|
|
242
|
+
switch (fiber) {
|
|
243
|
+
case "svg":
|
|
244
|
+
fiber = 1;
|
|
245
|
+
break;
|
|
246
|
+
case "math":
|
|
247
|
+
fiber = 2;
|
|
248
|
+
break;
|
|
249
|
+
default:
|
|
250
|
+
fiber = 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
pop(contextStackCursor);
|
|
254
|
+
push(contextStackCursor, fiber);
|
|
255
|
+
}
|
|
256
|
+
function popHostContainer() {
|
|
257
|
+
pop(contextStackCursor);
|
|
258
|
+
pop(contextFiberStackCursor);
|
|
259
|
+
pop(rootInstanceStackCursor);
|
|
260
|
+
}
|
|
261
|
+
function pushHostContext(fiber) {
|
|
262
|
+
null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);
|
|
263
|
+
var context = contextStackCursor.current;
|
|
264
|
+
var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);
|
|
265
|
+
context !== JSCompiler_inline_result && (push(contextFiberStackCursor, fiber), push(contextStackCursor, JSCompiler_inline_result));
|
|
266
|
+
}
|
|
267
|
+
function popHostContext(fiber) {
|
|
268
|
+
contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor));
|
|
269
|
+
hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), HostTransitionContext._currentValue = sharedNotPendingObject);
|
|
270
|
+
}
|
|
271
|
+
var prefix;
|
|
272
|
+
var suffix;
|
|
273
|
+
function describeBuiltInComponentFrame(name) {
|
|
274
|
+
if (void 0 === prefix)
|
|
275
|
+
try {
|
|
276
|
+
throw Error();
|
|
277
|
+
} catch (x) {
|
|
278
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
279
|
+
prefix = match && match[1] || "";
|
|
280
|
+
suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
281
|
+
}
|
|
282
|
+
return "\n" + prefix + name + suffix;
|
|
283
|
+
}
|
|
284
|
+
var reentry = false;
|
|
285
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
286
|
+
if (!fn || reentry) return "";
|
|
287
|
+
reentry = true;
|
|
288
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
289
|
+
Error.prepareStackTrace = void 0;
|
|
290
|
+
try {
|
|
291
|
+
var RunInRootFrame = {
|
|
292
|
+
DetermineComponentFrameRoot: function() {
|
|
293
|
+
try {
|
|
294
|
+
if (construct) {
|
|
295
|
+
var Fake = function() {
|
|
296
|
+
throw Error();
|
|
297
|
+
};
|
|
298
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
299
|
+
set: function() {
|
|
300
|
+
throw Error();
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
304
|
+
try {
|
|
305
|
+
Reflect.construct(Fake, []);
|
|
306
|
+
} catch (x) {
|
|
307
|
+
var control = x;
|
|
308
|
+
}
|
|
309
|
+
Reflect.construct(fn, [], Fake);
|
|
310
|
+
} else {
|
|
311
|
+
try {
|
|
312
|
+
Fake.call();
|
|
313
|
+
} catch (x$1) {
|
|
314
|
+
control = x$1;
|
|
315
|
+
}
|
|
316
|
+
fn.call(Fake.prototype);
|
|
317
|
+
}
|
|
318
|
+
} else {
|
|
319
|
+
try {
|
|
320
|
+
throw Error();
|
|
321
|
+
} catch (x$2) {
|
|
322
|
+
control = x$2;
|
|
323
|
+
}
|
|
324
|
+
(Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
} catch (sample) {
|
|
328
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
329
|
+
return [sample.stack, control.stack];
|
|
330
|
+
}
|
|
331
|
+
return [null, null];
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
335
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
336
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
337
|
+
"name"
|
|
338
|
+
);
|
|
339
|
+
namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
|
|
340
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
341
|
+
"name",
|
|
342
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
343
|
+
);
|
|
344
|
+
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
|
|
345
|
+
if (sampleStack && controlStack) {
|
|
346
|
+
var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n");
|
|
347
|
+
for (namePropDescriptor = RunInRootFrame = 0; RunInRootFrame < sampleLines.length && !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); )
|
|
348
|
+
RunInRootFrame++;
|
|
349
|
+
for (; namePropDescriptor < controlLines.length && !controlLines[namePropDescriptor].includes(
|
|
350
|
+
"DetermineComponentFrameRoot"
|
|
351
|
+
); )
|
|
352
|
+
namePropDescriptor++;
|
|
353
|
+
if (RunInRootFrame === sampleLines.length || namePropDescriptor === controlLines.length)
|
|
354
|
+
for (RunInRootFrame = sampleLines.length - 1, namePropDescriptor = controlLines.length - 1; 1 <= RunInRootFrame && 0 <= namePropDescriptor && sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; )
|
|
355
|
+
namePropDescriptor--;
|
|
356
|
+
for (; 1 <= RunInRootFrame && 0 <= namePropDescriptor; RunInRootFrame--, namePropDescriptor--)
|
|
357
|
+
if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
|
|
358
|
+
if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {
|
|
359
|
+
do
|
|
360
|
+
if (RunInRootFrame--, namePropDescriptor--, 0 > namePropDescriptor || sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {
|
|
361
|
+
var frame = "\n" + sampleLines[RunInRootFrame].replace(" at new ", " at ");
|
|
362
|
+
fn.displayName && frame.includes("<anonymous>") && (frame = frame.replace("<anonymous>", fn.displayName));
|
|
363
|
+
return frame;
|
|
364
|
+
}
|
|
365
|
+
while (1 <= RunInRootFrame && 0 <= namePropDescriptor);
|
|
366
|
+
}
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
} finally {
|
|
371
|
+
reentry = false, Error.prepareStackTrace = previousPrepareStackTrace;
|
|
372
|
+
}
|
|
373
|
+
return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(previousPrepareStackTrace) : "";
|
|
374
|
+
}
|
|
375
|
+
function describeFiber(fiber, childFiber) {
|
|
376
|
+
switch (fiber.tag) {
|
|
377
|
+
case 26:
|
|
378
|
+
case 27:
|
|
379
|
+
case 5:
|
|
380
|
+
return describeBuiltInComponentFrame(fiber.type);
|
|
381
|
+
case 16:
|
|
382
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
383
|
+
case 13:
|
|
384
|
+
return fiber.child !== childFiber && null !== childFiber ? describeBuiltInComponentFrame("Suspense Fallback") : describeBuiltInComponentFrame("Suspense");
|
|
385
|
+
case 19:
|
|
386
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
387
|
+
case 0:
|
|
388
|
+
case 15:
|
|
389
|
+
return describeNativeComponentFrame(fiber.type, false);
|
|
390
|
+
case 11:
|
|
391
|
+
return describeNativeComponentFrame(fiber.type.render, false);
|
|
392
|
+
case 1:
|
|
393
|
+
return describeNativeComponentFrame(fiber.type, true);
|
|
394
|
+
case 31:
|
|
395
|
+
return describeBuiltInComponentFrame("Activity");
|
|
396
|
+
default:
|
|
397
|
+
return "";
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function getStackByFiberInDevAndProd(workInProgress2) {
|
|
401
|
+
try {
|
|
402
|
+
var info = "", previous = null;
|
|
403
|
+
do
|
|
404
|
+
info += describeFiber(workInProgress2, previous), previous = workInProgress2, workInProgress2 = workInProgress2.return;
|
|
405
|
+
while (workInProgress2);
|
|
406
|
+
return info;
|
|
407
|
+
} catch (x) {
|
|
408
|
+
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
412
|
+
var scheduleCallback$3 = Scheduler.unstable_scheduleCallback;
|
|
413
|
+
var cancelCallback$1 = Scheduler.unstable_cancelCallback;
|
|
414
|
+
var shouldYield = Scheduler.unstable_shouldYield;
|
|
415
|
+
var requestPaint = Scheduler.unstable_requestPaint;
|
|
416
|
+
var now = Scheduler.unstable_now;
|
|
417
|
+
var getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
|
|
418
|
+
var ImmediatePriority = Scheduler.unstable_ImmediatePriority;
|
|
419
|
+
var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
|
|
420
|
+
var NormalPriority$1 = Scheduler.unstable_NormalPriority;
|
|
421
|
+
var LowPriority = Scheduler.unstable_LowPriority;
|
|
422
|
+
var IdlePriority = Scheduler.unstable_IdlePriority;
|
|
423
|
+
var log$1 = Scheduler.log;
|
|
424
|
+
var unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue;
|
|
425
|
+
var rendererID = null;
|
|
426
|
+
var injectedHook = null;
|
|
427
|
+
function setIsStrictModeForDevtools(newIsStrictMode) {
|
|
428
|
+
"function" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);
|
|
429
|
+
if (injectedHook && "function" === typeof injectedHook.setStrictMode)
|
|
430
|
+
try {
|
|
431
|
+
injectedHook.setStrictMode(rendererID, newIsStrictMode);
|
|
432
|
+
} catch (err) {
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback;
|
|
436
|
+
var log = Math.log;
|
|
437
|
+
var LN2 = Math.LN2;
|
|
438
|
+
function clz32Fallback(x) {
|
|
439
|
+
x >>>= 0;
|
|
440
|
+
return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0;
|
|
441
|
+
}
|
|
442
|
+
var nextTransitionUpdateLane = 256;
|
|
443
|
+
var nextTransitionDeferredLane = 262144;
|
|
444
|
+
var nextRetryLane = 4194304;
|
|
445
|
+
function getHighestPriorityLanes(lanes) {
|
|
446
|
+
var pendingSyncLanes = lanes & 42;
|
|
447
|
+
if (0 !== pendingSyncLanes) return pendingSyncLanes;
|
|
448
|
+
switch (lanes & -lanes) {
|
|
449
|
+
case 1:
|
|
450
|
+
return 1;
|
|
451
|
+
case 2:
|
|
452
|
+
return 2;
|
|
453
|
+
case 4:
|
|
454
|
+
return 4;
|
|
455
|
+
case 8:
|
|
456
|
+
return 8;
|
|
457
|
+
case 16:
|
|
458
|
+
return 16;
|
|
459
|
+
case 32:
|
|
460
|
+
return 32;
|
|
461
|
+
case 64:
|
|
462
|
+
return 64;
|
|
463
|
+
case 128:
|
|
464
|
+
return 128;
|
|
465
|
+
case 256:
|
|
466
|
+
case 512:
|
|
467
|
+
case 1024:
|
|
468
|
+
case 2048:
|
|
469
|
+
case 4096:
|
|
470
|
+
case 8192:
|
|
471
|
+
case 16384:
|
|
472
|
+
case 32768:
|
|
473
|
+
case 65536:
|
|
474
|
+
case 131072:
|
|
475
|
+
return lanes & 261888;
|
|
476
|
+
case 262144:
|
|
477
|
+
case 524288:
|
|
478
|
+
case 1048576:
|
|
479
|
+
case 2097152:
|
|
480
|
+
return lanes & 3932160;
|
|
481
|
+
case 4194304:
|
|
482
|
+
case 8388608:
|
|
483
|
+
case 16777216:
|
|
484
|
+
case 33554432:
|
|
485
|
+
return lanes & 62914560;
|
|
486
|
+
case 67108864:
|
|
487
|
+
return 67108864;
|
|
488
|
+
case 134217728:
|
|
489
|
+
return 134217728;
|
|
490
|
+
case 268435456:
|
|
491
|
+
return 268435456;
|
|
492
|
+
case 536870912:
|
|
493
|
+
return 536870912;
|
|
494
|
+
case 1073741824:
|
|
495
|
+
return 0;
|
|
496
|
+
default:
|
|
497
|
+
return lanes;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
function getNextLanes(root2, wipLanes, rootHasPendingCommit) {
|
|
501
|
+
var pendingLanes = root2.pendingLanes;
|
|
502
|
+
if (0 === pendingLanes) return 0;
|
|
503
|
+
var nextLanes = 0, suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes;
|
|
504
|
+
root2 = root2.warmLanes;
|
|
505
|
+
var nonIdlePendingLanes = pendingLanes & 134217727;
|
|
506
|
+
0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pendingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
|
|
507
|
+
return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || 32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)) ? wipLanes : nextLanes;
|
|
508
|
+
}
|
|
509
|
+
function checkIfRootIsPrerendering(root2, renderLanes2) {
|
|
510
|
+
return 0 === (root2.pendingLanes & ~(root2.suspendedLanes & ~root2.pingedLanes) & renderLanes2);
|
|
511
|
+
}
|
|
512
|
+
function computeExpirationTime(lane, currentTime) {
|
|
513
|
+
switch (lane) {
|
|
514
|
+
case 1:
|
|
515
|
+
case 2:
|
|
516
|
+
case 4:
|
|
517
|
+
case 8:
|
|
518
|
+
case 64:
|
|
519
|
+
return currentTime + 250;
|
|
520
|
+
case 16:
|
|
521
|
+
case 32:
|
|
522
|
+
case 128:
|
|
523
|
+
case 256:
|
|
524
|
+
case 512:
|
|
525
|
+
case 1024:
|
|
526
|
+
case 2048:
|
|
527
|
+
case 4096:
|
|
528
|
+
case 8192:
|
|
529
|
+
case 16384:
|
|
530
|
+
case 32768:
|
|
531
|
+
case 65536:
|
|
532
|
+
case 131072:
|
|
533
|
+
case 262144:
|
|
534
|
+
case 524288:
|
|
535
|
+
case 1048576:
|
|
536
|
+
case 2097152:
|
|
537
|
+
return currentTime + 5e3;
|
|
538
|
+
case 4194304:
|
|
539
|
+
case 8388608:
|
|
540
|
+
case 16777216:
|
|
541
|
+
case 33554432:
|
|
542
|
+
return -1;
|
|
543
|
+
case 67108864:
|
|
544
|
+
case 134217728:
|
|
545
|
+
case 268435456:
|
|
546
|
+
case 536870912:
|
|
547
|
+
case 1073741824:
|
|
548
|
+
return -1;
|
|
549
|
+
default:
|
|
550
|
+
return -1;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function claimNextRetryLane() {
|
|
554
|
+
var lane = nextRetryLane;
|
|
555
|
+
nextRetryLane <<= 1;
|
|
556
|
+
0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);
|
|
557
|
+
return lane;
|
|
558
|
+
}
|
|
559
|
+
function createLaneMap(initial) {
|
|
560
|
+
for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
|
|
561
|
+
return laneMap;
|
|
562
|
+
}
|
|
563
|
+
function markRootUpdated$1(root2, updateLane) {
|
|
564
|
+
root2.pendingLanes |= updateLane;
|
|
565
|
+
268435456 !== updateLane && (root2.suspendedLanes = 0, root2.pingedLanes = 0, root2.warmLanes = 0);
|
|
566
|
+
}
|
|
567
|
+
function markRootFinished(root2, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) {
|
|
568
|
+
var previouslyPendingLanes = root2.pendingLanes;
|
|
569
|
+
root2.pendingLanes = remainingLanes;
|
|
570
|
+
root2.suspendedLanes = 0;
|
|
571
|
+
root2.pingedLanes = 0;
|
|
572
|
+
root2.warmLanes = 0;
|
|
573
|
+
root2.expiredLanes &= remainingLanes;
|
|
574
|
+
root2.entangledLanes &= remainingLanes;
|
|
575
|
+
root2.errorRecoveryDisabledLanes &= remainingLanes;
|
|
576
|
+
root2.shellSuspendCounter = 0;
|
|
577
|
+
var entanglements = root2.entanglements, expirationTimes = root2.expirationTimes, hiddenUpdates = root2.hiddenUpdates;
|
|
578
|
+
for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) {
|
|
579
|
+
var index$7 = 31 - clz32(remainingLanes), lane = 1 << index$7;
|
|
580
|
+
entanglements[index$7] = 0;
|
|
581
|
+
expirationTimes[index$7] = -1;
|
|
582
|
+
var hiddenUpdatesForLane = hiddenUpdates[index$7];
|
|
583
|
+
if (null !== hiddenUpdatesForLane)
|
|
584
|
+
for (hiddenUpdates[index$7] = null, index$7 = 0; index$7 < hiddenUpdatesForLane.length; index$7++) {
|
|
585
|
+
var update = hiddenUpdatesForLane[index$7];
|
|
586
|
+
null !== update && (update.lane &= -536870913);
|
|
587
|
+
}
|
|
588
|
+
remainingLanes &= ~lane;
|
|
589
|
+
}
|
|
590
|
+
0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, 0);
|
|
591
|
+
0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root2.tag && (root2.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
|
|
592
|
+
}
|
|
593
|
+
function markSpawnedDeferredLane(root2, spawnedLane, entangledLanes) {
|
|
594
|
+
root2.pendingLanes |= spawnedLane;
|
|
595
|
+
root2.suspendedLanes &= ~spawnedLane;
|
|
596
|
+
var spawnedLaneIndex = 31 - clz32(spawnedLane);
|
|
597
|
+
root2.entangledLanes |= spawnedLane;
|
|
598
|
+
root2.entanglements[spawnedLaneIndex] = root2.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930;
|
|
599
|
+
}
|
|
600
|
+
function markRootEntangled(root2, entangledLanes) {
|
|
601
|
+
var rootEntangledLanes = root2.entangledLanes |= entangledLanes;
|
|
602
|
+
for (root2 = root2.entanglements; rootEntangledLanes; ) {
|
|
603
|
+
var index$8 = 31 - clz32(rootEntangledLanes), lane = 1 << index$8;
|
|
604
|
+
lane & entangledLanes | root2[index$8] & entangledLanes && (root2[index$8] |= entangledLanes);
|
|
605
|
+
rootEntangledLanes &= ~lane;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
function getBumpedLaneForHydration(root2, renderLanes2) {
|
|
609
|
+
var renderLane = renderLanes2 & -renderLanes2;
|
|
610
|
+
renderLane = 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);
|
|
611
|
+
return 0 !== (renderLane & (root2.suspendedLanes | renderLanes2)) ? 0 : renderLane;
|
|
612
|
+
}
|
|
613
|
+
function getBumpedLaneForHydrationByLane(lane) {
|
|
614
|
+
switch (lane) {
|
|
615
|
+
case 2:
|
|
616
|
+
lane = 1;
|
|
617
|
+
break;
|
|
618
|
+
case 8:
|
|
619
|
+
lane = 4;
|
|
620
|
+
break;
|
|
621
|
+
case 32:
|
|
622
|
+
lane = 16;
|
|
623
|
+
break;
|
|
624
|
+
case 256:
|
|
625
|
+
case 512:
|
|
626
|
+
case 1024:
|
|
627
|
+
case 2048:
|
|
628
|
+
case 4096:
|
|
629
|
+
case 8192:
|
|
630
|
+
case 16384:
|
|
631
|
+
case 32768:
|
|
632
|
+
case 65536:
|
|
633
|
+
case 131072:
|
|
634
|
+
case 262144:
|
|
635
|
+
case 524288:
|
|
636
|
+
case 1048576:
|
|
637
|
+
case 2097152:
|
|
638
|
+
case 4194304:
|
|
639
|
+
case 8388608:
|
|
640
|
+
case 16777216:
|
|
641
|
+
case 33554432:
|
|
642
|
+
lane = 128;
|
|
643
|
+
break;
|
|
644
|
+
case 268435456:
|
|
645
|
+
lane = 134217728;
|
|
646
|
+
break;
|
|
647
|
+
default:
|
|
648
|
+
lane = 0;
|
|
649
|
+
}
|
|
650
|
+
return lane;
|
|
651
|
+
}
|
|
652
|
+
function lanesToEventPriority(lanes) {
|
|
653
|
+
lanes &= -lanes;
|
|
654
|
+
return 2 < lanes ? 8 < lanes ? 0 !== (lanes & 134217727) ? 32 : 268435456 : 8 : 2;
|
|
655
|
+
}
|
|
656
|
+
function resolveUpdatePriority() {
|
|
657
|
+
var updatePriority = ReactDOMSharedInternals.p;
|
|
658
|
+
if (0 !== updatePriority) return updatePriority;
|
|
659
|
+
updatePriority = window.event;
|
|
660
|
+
return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);
|
|
661
|
+
}
|
|
662
|
+
function runWithPriority(priority, fn) {
|
|
663
|
+
var previousPriority = ReactDOMSharedInternals.p;
|
|
664
|
+
try {
|
|
665
|
+
return ReactDOMSharedInternals.p = priority, fn();
|
|
666
|
+
} finally {
|
|
667
|
+
ReactDOMSharedInternals.p = previousPriority;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
var randomKey = Math.random().toString(36).slice(2);
|
|
671
|
+
var internalInstanceKey = "__reactFiber$" + randomKey;
|
|
672
|
+
var internalPropsKey = "__reactProps$" + randomKey;
|
|
673
|
+
var internalContainerInstanceKey = "__reactContainer$" + randomKey;
|
|
674
|
+
var internalEventHandlersKey = "__reactEvents$" + randomKey;
|
|
675
|
+
var internalEventHandlerListenersKey = "__reactListeners$" + randomKey;
|
|
676
|
+
var internalEventHandlesSetKey = "__reactHandles$" + randomKey;
|
|
677
|
+
var internalRootNodeResourcesKey = "__reactResources$" + randomKey;
|
|
678
|
+
var internalHoistableMarker = "__reactMarker$" + randomKey;
|
|
679
|
+
function detachDeletedInstance(node) {
|
|
680
|
+
delete node[internalInstanceKey];
|
|
681
|
+
delete node[internalPropsKey];
|
|
682
|
+
delete node[internalEventHandlersKey];
|
|
683
|
+
delete node[internalEventHandlerListenersKey];
|
|
684
|
+
delete node[internalEventHandlesSetKey];
|
|
685
|
+
}
|
|
686
|
+
function getClosestInstanceFromNode(targetNode) {
|
|
687
|
+
var targetInst = targetNode[internalInstanceKey];
|
|
688
|
+
if (targetInst) return targetInst;
|
|
689
|
+
for (var parentNode = targetNode.parentNode; parentNode; ) {
|
|
690
|
+
if (targetInst = parentNode[internalContainerInstanceKey] || parentNode[internalInstanceKey]) {
|
|
691
|
+
parentNode = targetInst.alternate;
|
|
692
|
+
if (null !== targetInst.child || null !== parentNode && null !== parentNode.child)
|
|
693
|
+
for (targetNode = getParentHydrationBoundary(targetNode); null !== targetNode; ) {
|
|
694
|
+
if (parentNode = targetNode[internalInstanceKey]) return parentNode;
|
|
695
|
+
targetNode = getParentHydrationBoundary(targetNode);
|
|
696
|
+
}
|
|
697
|
+
return targetInst;
|
|
698
|
+
}
|
|
699
|
+
targetNode = parentNode;
|
|
700
|
+
parentNode = targetNode.parentNode;
|
|
701
|
+
}
|
|
702
|
+
return null;
|
|
703
|
+
}
|
|
704
|
+
function getInstanceFromNode(node) {
|
|
705
|
+
if (node = node[internalInstanceKey] || node[internalContainerInstanceKey]) {
|
|
706
|
+
var tag = node.tag;
|
|
707
|
+
if (5 === tag || 6 === tag || 13 === tag || 31 === tag || 26 === tag || 27 === tag || 3 === tag)
|
|
708
|
+
return node;
|
|
709
|
+
}
|
|
710
|
+
return null;
|
|
711
|
+
}
|
|
712
|
+
function getNodeFromInstance(inst) {
|
|
713
|
+
var tag = inst.tag;
|
|
714
|
+
if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;
|
|
715
|
+
throw Error(formatProdErrorMessage(33));
|
|
716
|
+
}
|
|
717
|
+
function getResourcesFromRoot(root2) {
|
|
718
|
+
var resources = root2[internalRootNodeResourcesKey];
|
|
719
|
+
resources || (resources = root2[internalRootNodeResourcesKey] = { hoistableStyles: /* @__PURE__ */ new Map(), hoistableScripts: /* @__PURE__ */ new Map() });
|
|
720
|
+
return resources;
|
|
721
|
+
}
|
|
722
|
+
function markNodeAsHoistable(node) {
|
|
723
|
+
node[internalHoistableMarker] = true;
|
|
724
|
+
}
|
|
725
|
+
var allNativeEvents = /* @__PURE__ */ new Set();
|
|
726
|
+
var registrationNameDependencies = {};
|
|
727
|
+
function registerTwoPhaseEvent(registrationName, dependencies) {
|
|
728
|
+
registerDirectEvent(registrationName, dependencies);
|
|
729
|
+
registerDirectEvent(registrationName + "Capture", dependencies);
|
|
730
|
+
}
|
|
731
|
+
function registerDirectEvent(registrationName, dependencies) {
|
|
732
|
+
registrationNameDependencies[registrationName] = dependencies;
|
|
733
|
+
for (registrationName = 0; registrationName < dependencies.length; registrationName++)
|
|
734
|
+
allNativeEvents.add(dependencies[registrationName]);
|
|
735
|
+
}
|
|
736
|
+
var VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
|
737
|
+
"^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"
|
|
738
|
+
);
|
|
739
|
+
var illegalAttributeNameCache = {};
|
|
740
|
+
var validatedAttributeNameCache = {};
|
|
741
|
+
function isAttributeNameSafe(attributeName) {
|
|
742
|
+
if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))
|
|
743
|
+
return true;
|
|
744
|
+
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return false;
|
|
745
|
+
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
|
|
746
|
+
return validatedAttributeNameCache[attributeName] = true;
|
|
747
|
+
illegalAttributeNameCache[attributeName] = true;
|
|
748
|
+
return false;
|
|
749
|
+
}
|
|
750
|
+
function setValueForAttribute(node, name, value) {
|
|
751
|
+
if (isAttributeNameSafe(name))
|
|
752
|
+
if (null === value) node.removeAttribute(name);
|
|
753
|
+
else {
|
|
754
|
+
switch (typeof value) {
|
|
755
|
+
case "undefined":
|
|
756
|
+
case "function":
|
|
757
|
+
case "symbol":
|
|
758
|
+
node.removeAttribute(name);
|
|
759
|
+
return;
|
|
760
|
+
case "boolean":
|
|
761
|
+
var prefix$10 = name.toLowerCase().slice(0, 5);
|
|
762
|
+
if ("data-" !== prefix$10 && "aria-" !== prefix$10) {
|
|
763
|
+
node.removeAttribute(name);
|
|
764
|
+
return;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
node.setAttribute(name, "" + value);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
function setValueForKnownAttribute(node, name, value) {
|
|
771
|
+
if (null === value) node.removeAttribute(name);
|
|
772
|
+
else {
|
|
773
|
+
switch (typeof value) {
|
|
774
|
+
case "undefined":
|
|
775
|
+
case "function":
|
|
776
|
+
case "symbol":
|
|
777
|
+
case "boolean":
|
|
778
|
+
node.removeAttribute(name);
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
node.setAttribute(name, "" + value);
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
function setValueForNamespacedAttribute(node, namespace, name, value) {
|
|
785
|
+
if (null === value) node.removeAttribute(name);
|
|
786
|
+
else {
|
|
787
|
+
switch (typeof value) {
|
|
788
|
+
case "undefined":
|
|
789
|
+
case "function":
|
|
790
|
+
case "symbol":
|
|
791
|
+
case "boolean":
|
|
792
|
+
node.removeAttribute(name);
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
node.setAttributeNS(namespace, name, "" + value);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
function getToStringValue(value) {
|
|
799
|
+
switch (typeof value) {
|
|
800
|
+
case "bigint":
|
|
801
|
+
case "boolean":
|
|
802
|
+
case "number":
|
|
803
|
+
case "string":
|
|
804
|
+
case "undefined":
|
|
805
|
+
return value;
|
|
806
|
+
case "object":
|
|
807
|
+
return value;
|
|
808
|
+
default:
|
|
809
|
+
return "";
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function isCheckable(elem) {
|
|
813
|
+
var type = elem.type;
|
|
814
|
+
return (elem = elem.nodeName) && "input" === elem.toLowerCase() && ("checkbox" === type || "radio" === type);
|
|
815
|
+
}
|
|
816
|
+
function trackValueOnNode(node, valueField, currentValue) {
|
|
817
|
+
var descriptor = Object.getOwnPropertyDescriptor(
|
|
818
|
+
node.constructor.prototype,
|
|
819
|
+
valueField
|
|
820
|
+
);
|
|
821
|
+
if (!node.hasOwnProperty(valueField) && "undefined" !== typeof descriptor && "function" === typeof descriptor.get && "function" === typeof descriptor.set) {
|
|
822
|
+
var get = descriptor.get, set = descriptor.set;
|
|
823
|
+
Object.defineProperty(node, valueField, {
|
|
824
|
+
configurable: true,
|
|
825
|
+
get: function() {
|
|
826
|
+
return get.call(this);
|
|
827
|
+
},
|
|
828
|
+
set: function(value) {
|
|
829
|
+
currentValue = "" + value;
|
|
830
|
+
set.call(this, value);
|
|
831
|
+
}
|
|
832
|
+
});
|
|
833
|
+
Object.defineProperty(node, valueField, {
|
|
834
|
+
enumerable: descriptor.enumerable
|
|
835
|
+
});
|
|
836
|
+
return {
|
|
837
|
+
getValue: function() {
|
|
838
|
+
return currentValue;
|
|
839
|
+
},
|
|
840
|
+
setValue: function(value) {
|
|
841
|
+
currentValue = "" + value;
|
|
842
|
+
},
|
|
843
|
+
stopTracking: function() {
|
|
844
|
+
node._valueTracker = null;
|
|
845
|
+
delete node[valueField];
|
|
846
|
+
}
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
function track(node) {
|
|
851
|
+
if (!node._valueTracker) {
|
|
852
|
+
var valueField = isCheckable(node) ? "checked" : "value";
|
|
853
|
+
node._valueTracker = trackValueOnNode(
|
|
854
|
+
node,
|
|
855
|
+
valueField,
|
|
856
|
+
"" + node[valueField]
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function updateValueIfChanged(node) {
|
|
861
|
+
if (!node) return false;
|
|
862
|
+
var tracker = node._valueTracker;
|
|
863
|
+
if (!tracker) return true;
|
|
864
|
+
var lastValue = tracker.getValue();
|
|
865
|
+
var value = "";
|
|
866
|
+
node && (value = isCheckable(node) ? node.checked ? "true" : "false" : node.value);
|
|
867
|
+
node = value;
|
|
868
|
+
return node !== lastValue ? (tracker.setValue(node), true) : false;
|
|
869
|
+
}
|
|
870
|
+
function getActiveElement2(doc) {
|
|
871
|
+
doc = doc || ("undefined" !== typeof document ? document : void 0);
|
|
872
|
+
if ("undefined" === typeof doc) return null;
|
|
873
|
+
try {
|
|
874
|
+
return doc.activeElement || doc.body;
|
|
875
|
+
} catch (e) {
|
|
876
|
+
return doc.body;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
var escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g;
|
|
880
|
+
function escapeSelectorAttributeValueInsideDoubleQuotes(value) {
|
|
881
|
+
return value.replace(
|
|
882
|
+
escapeSelectorAttributeValueInsideDoubleQuotesRegex,
|
|
883
|
+
function(ch) {
|
|
884
|
+
return "\\" + ch.charCodeAt(0).toString(16) + " ";
|
|
885
|
+
}
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
function updateInput(element, value, defaultValue, lastDefaultValue, checked, defaultChecked, type, name) {
|
|
889
|
+
element.name = "";
|
|
890
|
+
null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type ? element.type = type : element.removeAttribute("type");
|
|
891
|
+
if (null != value)
|
|
892
|
+
if ("number" === type) {
|
|
893
|
+
if (0 === value && "" === element.value || element.value != value)
|
|
894
|
+
element.value = "" + getToStringValue(value);
|
|
895
|
+
} else
|
|
896
|
+
element.value !== "" + getToStringValue(value) && (element.value = "" + getToStringValue(value));
|
|
897
|
+
else
|
|
898
|
+
"submit" !== type && "reset" !== type || element.removeAttribute("value");
|
|
899
|
+
null != value ? setDefaultValue(element, type, getToStringValue(value)) : null != defaultValue ? setDefaultValue(element, type, getToStringValue(defaultValue)) : null != lastDefaultValue && element.removeAttribute("value");
|
|
900
|
+
null == checked && null != defaultChecked && (element.defaultChecked = !!defaultChecked);
|
|
901
|
+
null != checked && (element.checked = checked && "function" !== typeof checked && "symbol" !== typeof checked);
|
|
902
|
+
null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name ? element.name = "" + getToStringValue(name) : element.removeAttribute("name");
|
|
903
|
+
}
|
|
904
|
+
function initInput(element, value, defaultValue, checked, defaultChecked, type, name, isHydrating2) {
|
|
905
|
+
null != type && "function" !== typeof type && "symbol" !== typeof type && "boolean" !== typeof type && (element.type = type);
|
|
906
|
+
if (null != value || null != defaultValue) {
|
|
907
|
+
if (!("submit" !== type && "reset" !== type || void 0 !== value && null !== value)) {
|
|
908
|
+
track(element);
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : "";
|
|
912
|
+
value = null != value ? "" + getToStringValue(value) : defaultValue;
|
|
913
|
+
isHydrating2 || value === element.value || (element.value = value);
|
|
914
|
+
element.defaultValue = value;
|
|
915
|
+
}
|
|
916
|
+
checked = null != checked ? checked : defaultChecked;
|
|
917
|
+
checked = "function" !== typeof checked && "symbol" !== typeof checked && !!checked;
|
|
918
|
+
element.checked = isHydrating2 ? element.checked : !!checked;
|
|
919
|
+
element.defaultChecked = !!checked;
|
|
920
|
+
null != name && "function" !== typeof name && "symbol" !== typeof name && "boolean" !== typeof name && (element.name = name);
|
|
921
|
+
track(element);
|
|
922
|
+
}
|
|
923
|
+
function setDefaultValue(node, type, value) {
|
|
924
|
+
"number" === type && getActiveElement2(node.ownerDocument) === node || node.defaultValue === "" + value || (node.defaultValue = "" + value);
|
|
925
|
+
}
|
|
926
|
+
function updateOptions(node, multiple, propValue, setDefaultSelected) {
|
|
927
|
+
node = node.options;
|
|
928
|
+
if (multiple) {
|
|
929
|
+
multiple = {};
|
|
930
|
+
for (var i = 0; i < propValue.length; i++)
|
|
931
|
+
multiple["$" + propValue[i]] = true;
|
|
932
|
+
for (propValue = 0; propValue < node.length; propValue++)
|
|
933
|
+
i = multiple.hasOwnProperty("$" + node[propValue].value), node[propValue].selected !== i && (node[propValue].selected = i), i && setDefaultSelected && (node[propValue].defaultSelected = true);
|
|
934
|
+
} else {
|
|
935
|
+
propValue = "" + getToStringValue(propValue);
|
|
936
|
+
multiple = null;
|
|
937
|
+
for (i = 0; i < node.length; i++) {
|
|
938
|
+
if (node[i].value === propValue) {
|
|
939
|
+
node[i].selected = true;
|
|
940
|
+
setDefaultSelected && (node[i].defaultSelected = true);
|
|
941
|
+
return;
|
|
942
|
+
}
|
|
943
|
+
null !== multiple || node[i].disabled || (multiple = node[i]);
|
|
944
|
+
}
|
|
945
|
+
null !== multiple && (multiple.selected = true);
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
function updateTextarea(element, value, defaultValue) {
|
|
949
|
+
if (null != value && (value = "" + getToStringValue(value), value !== element.value && (element.value = value), null == defaultValue)) {
|
|
950
|
+
element.defaultValue !== value && (element.defaultValue = value);
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
element.defaultValue = null != defaultValue ? "" + getToStringValue(defaultValue) : "";
|
|
954
|
+
}
|
|
955
|
+
function initTextarea(element, value, defaultValue, children) {
|
|
956
|
+
if (null == value) {
|
|
957
|
+
if (null != children) {
|
|
958
|
+
if (null != defaultValue) throw Error(formatProdErrorMessage(92));
|
|
959
|
+
if (isArrayImpl(children)) {
|
|
960
|
+
if (1 < children.length) throw Error(formatProdErrorMessage(93));
|
|
961
|
+
children = children[0];
|
|
962
|
+
}
|
|
963
|
+
defaultValue = children;
|
|
964
|
+
}
|
|
965
|
+
null == defaultValue && (defaultValue = "");
|
|
966
|
+
value = defaultValue;
|
|
967
|
+
}
|
|
968
|
+
defaultValue = getToStringValue(value);
|
|
969
|
+
element.defaultValue = defaultValue;
|
|
970
|
+
children = element.textContent;
|
|
971
|
+
children === defaultValue && "" !== children && null !== children && (element.value = children);
|
|
972
|
+
track(element);
|
|
973
|
+
}
|
|
974
|
+
function setTextContent(node, text) {
|
|
975
|
+
if (text) {
|
|
976
|
+
var firstChild = node.firstChild;
|
|
977
|
+
if (firstChild && firstChild === node.lastChild && 3 === firstChild.nodeType) {
|
|
978
|
+
firstChild.nodeValue = text;
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
node.textContent = text;
|
|
983
|
+
}
|
|
984
|
+
var unitlessNumbers = new Set(
|
|
985
|
+
"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
|
|
986
|
+
" "
|
|
987
|
+
)
|
|
988
|
+
);
|
|
989
|
+
function setValueForStyle(style2, styleName, value) {
|
|
990
|
+
var isCustomProperty = 0 === styleName.indexOf("--");
|
|
991
|
+
null == value || "boolean" === typeof value || "" === value ? isCustomProperty ? style2.setProperty(styleName, "") : "float" === styleName ? style2.cssFloat = "" : style2[styleName] = "" : isCustomProperty ? style2.setProperty(styleName, value) : "number" !== typeof value || 0 === value || unitlessNumbers.has(styleName) ? "float" === styleName ? style2.cssFloat = value : style2[styleName] = ("" + value).trim() : style2[styleName] = value + "px";
|
|
992
|
+
}
|
|
993
|
+
function setValueForStyles(node, styles, prevStyles) {
|
|
994
|
+
if (null != styles && "object" !== typeof styles)
|
|
995
|
+
throw Error(formatProdErrorMessage(62));
|
|
996
|
+
node = node.style;
|
|
997
|
+
if (null != prevStyles) {
|
|
998
|
+
for (var styleName in prevStyles)
|
|
999
|
+
!prevStyles.hasOwnProperty(styleName) || null != styles && styles.hasOwnProperty(styleName) || (0 === styleName.indexOf("--") ? node.setProperty(styleName, "") : "float" === styleName ? node.cssFloat = "" : node[styleName] = "");
|
|
1000
|
+
for (var styleName$16 in styles)
|
|
1001
|
+
styleName = styles[styleName$16], styles.hasOwnProperty(styleName$16) && prevStyles[styleName$16] !== styleName && setValueForStyle(node, styleName$16, styleName);
|
|
1002
|
+
} else
|
|
1003
|
+
for (var styleName$17 in styles)
|
|
1004
|
+
styles.hasOwnProperty(styleName$17) && setValueForStyle(node, styleName$17, styles[styleName$17]);
|
|
1005
|
+
}
|
|
1006
|
+
function isCustomElement(tagName) {
|
|
1007
|
+
if (-1 === tagName.indexOf("-")) return false;
|
|
1008
|
+
switch (tagName) {
|
|
1009
|
+
case "annotation-xml":
|
|
1010
|
+
case "color-profile":
|
|
1011
|
+
case "font-face":
|
|
1012
|
+
case "font-face-src":
|
|
1013
|
+
case "font-face-uri":
|
|
1014
|
+
case "font-face-format":
|
|
1015
|
+
case "font-face-name":
|
|
1016
|
+
case "missing-glyph":
|
|
1017
|
+
return false;
|
|
1018
|
+
default:
|
|
1019
|
+
return true;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
var aliases = /* @__PURE__ */ new Map([
|
|
1023
|
+
["acceptCharset", "accept-charset"],
|
|
1024
|
+
["htmlFor", "for"],
|
|
1025
|
+
["httpEquiv", "http-equiv"],
|
|
1026
|
+
["crossOrigin", "crossorigin"],
|
|
1027
|
+
["accentHeight", "accent-height"],
|
|
1028
|
+
["alignmentBaseline", "alignment-baseline"],
|
|
1029
|
+
["arabicForm", "arabic-form"],
|
|
1030
|
+
["baselineShift", "baseline-shift"],
|
|
1031
|
+
["capHeight", "cap-height"],
|
|
1032
|
+
["clipPath", "clip-path"],
|
|
1033
|
+
["clipRule", "clip-rule"],
|
|
1034
|
+
["colorInterpolation", "color-interpolation"],
|
|
1035
|
+
["colorInterpolationFilters", "color-interpolation-filters"],
|
|
1036
|
+
["colorProfile", "color-profile"],
|
|
1037
|
+
["colorRendering", "color-rendering"],
|
|
1038
|
+
["dominantBaseline", "dominant-baseline"],
|
|
1039
|
+
["enableBackground", "enable-background"],
|
|
1040
|
+
["fillOpacity", "fill-opacity"],
|
|
1041
|
+
["fillRule", "fill-rule"],
|
|
1042
|
+
["floodColor", "flood-color"],
|
|
1043
|
+
["floodOpacity", "flood-opacity"],
|
|
1044
|
+
["fontFamily", "font-family"],
|
|
1045
|
+
["fontSize", "font-size"],
|
|
1046
|
+
["fontSizeAdjust", "font-size-adjust"],
|
|
1047
|
+
["fontStretch", "font-stretch"],
|
|
1048
|
+
["fontStyle", "font-style"],
|
|
1049
|
+
["fontVariant", "font-variant"],
|
|
1050
|
+
["fontWeight", "font-weight"],
|
|
1051
|
+
["glyphName", "glyph-name"],
|
|
1052
|
+
["glyphOrientationHorizontal", "glyph-orientation-horizontal"],
|
|
1053
|
+
["glyphOrientationVertical", "glyph-orientation-vertical"],
|
|
1054
|
+
["horizAdvX", "horiz-adv-x"],
|
|
1055
|
+
["horizOriginX", "horiz-origin-x"],
|
|
1056
|
+
["imageRendering", "image-rendering"],
|
|
1057
|
+
["letterSpacing", "letter-spacing"],
|
|
1058
|
+
["lightingColor", "lighting-color"],
|
|
1059
|
+
["markerEnd", "marker-end"],
|
|
1060
|
+
["markerMid", "marker-mid"],
|
|
1061
|
+
["markerStart", "marker-start"],
|
|
1062
|
+
["overlinePosition", "overline-position"],
|
|
1063
|
+
["overlineThickness", "overline-thickness"],
|
|
1064
|
+
["paintOrder", "paint-order"],
|
|
1065
|
+
["panose-1", "panose-1"],
|
|
1066
|
+
["pointerEvents", "pointer-events"],
|
|
1067
|
+
["renderingIntent", "rendering-intent"],
|
|
1068
|
+
["shapeRendering", "shape-rendering"],
|
|
1069
|
+
["stopColor", "stop-color"],
|
|
1070
|
+
["stopOpacity", "stop-opacity"],
|
|
1071
|
+
["strikethroughPosition", "strikethrough-position"],
|
|
1072
|
+
["strikethroughThickness", "strikethrough-thickness"],
|
|
1073
|
+
["strokeDasharray", "stroke-dasharray"],
|
|
1074
|
+
["strokeDashoffset", "stroke-dashoffset"],
|
|
1075
|
+
["strokeLinecap", "stroke-linecap"],
|
|
1076
|
+
["strokeLinejoin", "stroke-linejoin"],
|
|
1077
|
+
["strokeMiterlimit", "stroke-miterlimit"],
|
|
1078
|
+
["strokeOpacity", "stroke-opacity"],
|
|
1079
|
+
["strokeWidth", "stroke-width"],
|
|
1080
|
+
["textAnchor", "text-anchor"],
|
|
1081
|
+
["textDecoration", "text-decoration"],
|
|
1082
|
+
["textRendering", "text-rendering"],
|
|
1083
|
+
["transformOrigin", "transform-origin"],
|
|
1084
|
+
["underlinePosition", "underline-position"],
|
|
1085
|
+
["underlineThickness", "underline-thickness"],
|
|
1086
|
+
["unicodeBidi", "unicode-bidi"],
|
|
1087
|
+
["unicodeRange", "unicode-range"],
|
|
1088
|
+
["unitsPerEm", "units-per-em"],
|
|
1089
|
+
["vAlphabetic", "v-alphabetic"],
|
|
1090
|
+
["vHanging", "v-hanging"],
|
|
1091
|
+
["vIdeographic", "v-ideographic"],
|
|
1092
|
+
["vMathematical", "v-mathematical"],
|
|
1093
|
+
["vectorEffect", "vector-effect"],
|
|
1094
|
+
["vertAdvY", "vert-adv-y"],
|
|
1095
|
+
["vertOriginX", "vert-origin-x"],
|
|
1096
|
+
["vertOriginY", "vert-origin-y"],
|
|
1097
|
+
["wordSpacing", "word-spacing"],
|
|
1098
|
+
["writingMode", "writing-mode"],
|
|
1099
|
+
["xmlnsXlink", "xmlns:xlink"],
|
|
1100
|
+
["xHeight", "x-height"]
|
|
1101
|
+
]);
|
|
1102
|
+
var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
|
|
1103
|
+
function sanitizeURL(url) {
|
|
1104
|
+
return isJavaScriptProtocol.test("" + url) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : url;
|
|
1105
|
+
}
|
|
1106
|
+
function noop$1() {
|
|
1107
|
+
}
|
|
1108
|
+
var currentReplayingEvent = null;
|
|
1109
|
+
function getEventTarget(nativeEvent) {
|
|
1110
|
+
nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;
|
|
1111
|
+
nativeEvent.correspondingUseElement && (nativeEvent = nativeEvent.correspondingUseElement);
|
|
1112
|
+
return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;
|
|
1113
|
+
}
|
|
1114
|
+
var restoreTarget = null;
|
|
1115
|
+
var restoreQueue = null;
|
|
1116
|
+
function restoreStateOfTarget(target) {
|
|
1117
|
+
var internalInstance = getInstanceFromNode(target);
|
|
1118
|
+
if (internalInstance && (target = internalInstance.stateNode)) {
|
|
1119
|
+
var props = target[internalPropsKey] || null;
|
|
1120
|
+
a: switch (target = internalInstance.stateNode, internalInstance.type) {
|
|
1121
|
+
case "input":
|
|
1122
|
+
updateInput(
|
|
1123
|
+
target,
|
|
1124
|
+
props.value,
|
|
1125
|
+
props.defaultValue,
|
|
1126
|
+
props.defaultValue,
|
|
1127
|
+
props.checked,
|
|
1128
|
+
props.defaultChecked,
|
|
1129
|
+
props.type,
|
|
1130
|
+
props.name
|
|
1131
|
+
);
|
|
1132
|
+
internalInstance = props.name;
|
|
1133
|
+
if ("radio" === props.type && null != internalInstance) {
|
|
1134
|
+
for (props = target; props.parentNode; ) props = props.parentNode;
|
|
1135
|
+
props = props.querySelectorAll(
|
|
1136
|
+
'input[name="' + escapeSelectorAttributeValueInsideDoubleQuotes(
|
|
1137
|
+
"" + internalInstance
|
|
1138
|
+
) + '"][type="radio"]'
|
|
1139
|
+
);
|
|
1140
|
+
for (internalInstance = 0; internalInstance < props.length; internalInstance++) {
|
|
1141
|
+
var otherNode = props[internalInstance];
|
|
1142
|
+
if (otherNode !== target && otherNode.form === target.form) {
|
|
1143
|
+
var otherProps = otherNode[internalPropsKey] || null;
|
|
1144
|
+
if (!otherProps) throw Error(formatProdErrorMessage(90));
|
|
1145
|
+
updateInput(
|
|
1146
|
+
otherNode,
|
|
1147
|
+
otherProps.value,
|
|
1148
|
+
otherProps.defaultValue,
|
|
1149
|
+
otherProps.defaultValue,
|
|
1150
|
+
otherProps.checked,
|
|
1151
|
+
otherProps.defaultChecked,
|
|
1152
|
+
otherProps.type,
|
|
1153
|
+
otherProps.name
|
|
1154
|
+
);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
for (internalInstance = 0; internalInstance < props.length; internalInstance++)
|
|
1158
|
+
otherNode = props[internalInstance], otherNode.form === target.form && updateValueIfChanged(otherNode);
|
|
1159
|
+
}
|
|
1160
|
+
break a;
|
|
1161
|
+
case "textarea":
|
|
1162
|
+
updateTextarea(target, props.value, props.defaultValue);
|
|
1163
|
+
break a;
|
|
1164
|
+
case "select":
|
|
1165
|
+
internalInstance = props.value, null != internalInstance && updateOptions(target, !!props.multiple, internalInstance, false);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
var isInsideEventHandler = false;
|
|
1170
|
+
function batchedUpdates$1(fn, a, b) {
|
|
1171
|
+
if (isInsideEventHandler) return fn(a, b);
|
|
1172
|
+
isInsideEventHandler = true;
|
|
1173
|
+
try {
|
|
1174
|
+
var JSCompiler_inline_result = fn(a);
|
|
1175
|
+
return JSCompiler_inline_result;
|
|
1176
|
+
} finally {
|
|
1177
|
+
if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) {
|
|
1178
|
+
if (flushSyncWork$1(), restoreTarget && (a = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a), fn))
|
|
1179
|
+
for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
function getListener(inst, registrationName) {
|
|
1184
|
+
var stateNode = inst.stateNode;
|
|
1185
|
+
if (null === stateNode) return null;
|
|
1186
|
+
var props = stateNode[internalPropsKey] || null;
|
|
1187
|
+
if (null === props) return null;
|
|
1188
|
+
stateNode = props[registrationName];
|
|
1189
|
+
a: switch (registrationName) {
|
|
1190
|
+
case "onClick":
|
|
1191
|
+
case "onClickCapture":
|
|
1192
|
+
case "onDoubleClick":
|
|
1193
|
+
case "onDoubleClickCapture":
|
|
1194
|
+
case "onMouseDown":
|
|
1195
|
+
case "onMouseDownCapture":
|
|
1196
|
+
case "onMouseMove":
|
|
1197
|
+
case "onMouseMoveCapture":
|
|
1198
|
+
case "onMouseUp":
|
|
1199
|
+
case "onMouseUpCapture":
|
|
1200
|
+
case "onMouseEnter":
|
|
1201
|
+
(props = !props.disabled) || (inst = inst.type, props = !("button" === inst || "input" === inst || "select" === inst || "textarea" === inst));
|
|
1202
|
+
inst = !props;
|
|
1203
|
+
break a;
|
|
1204
|
+
default:
|
|
1205
|
+
inst = false;
|
|
1206
|
+
}
|
|
1207
|
+
if (inst) return null;
|
|
1208
|
+
if (stateNode && "function" !== typeof stateNode)
|
|
1209
|
+
throw Error(
|
|
1210
|
+
formatProdErrorMessage(231, registrationName, typeof stateNode)
|
|
1211
|
+
);
|
|
1212
|
+
return stateNode;
|
|
1213
|
+
}
|
|
1214
|
+
var canUseDOM2 = !("undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement);
|
|
1215
|
+
var passiveBrowserEventsSupported = false;
|
|
1216
|
+
if (canUseDOM2)
|
|
1217
|
+
try {
|
|
1218
|
+
options2 = {};
|
|
1219
|
+
Object.defineProperty(options2, "passive", {
|
|
1220
|
+
get: function() {
|
|
1221
|
+
passiveBrowserEventsSupported = true;
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
window.addEventListener("test", options2, options2);
|
|
1225
|
+
window.removeEventListener("test", options2, options2);
|
|
1226
|
+
} catch (e) {
|
|
1227
|
+
passiveBrowserEventsSupported = false;
|
|
1228
|
+
}
|
|
1229
|
+
var options2;
|
|
1230
|
+
var root = null;
|
|
1231
|
+
var startText = null;
|
|
1232
|
+
var fallbackText = null;
|
|
1233
|
+
function getData() {
|
|
1234
|
+
if (fallbackText) return fallbackText;
|
|
1235
|
+
var start2, startValue = startText, startLength = startValue.length, end, endValue = "value" in root ? root.value : root.textContent, endLength = endValue.length;
|
|
1236
|
+
for (start2 = 0; start2 < startLength && startValue[start2] === endValue[start2]; start2++) ;
|
|
1237
|
+
var minEnd = startLength - start2;
|
|
1238
|
+
for (end = 1; end <= minEnd && startValue[startLength - end] === endValue[endLength - end]; end++) ;
|
|
1239
|
+
return fallbackText = endValue.slice(start2, 1 < end ? 1 - end : void 0);
|
|
1240
|
+
}
|
|
1241
|
+
function getEventCharCode(nativeEvent) {
|
|
1242
|
+
var keyCode = nativeEvent.keyCode;
|
|
1243
|
+
"charCode" in nativeEvent ? (nativeEvent = nativeEvent.charCode, 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13)) : nativeEvent = keyCode;
|
|
1244
|
+
10 === nativeEvent && (nativeEvent = 13);
|
|
1245
|
+
return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;
|
|
1246
|
+
}
|
|
1247
|
+
function functionThatReturnsTrue() {
|
|
1248
|
+
return true;
|
|
1249
|
+
}
|
|
1250
|
+
function functionThatReturnsFalse() {
|
|
1251
|
+
return false;
|
|
1252
|
+
}
|
|
1253
|
+
function createSyntheticEvent(Interface) {
|
|
1254
|
+
function SyntheticBaseEvent(reactName, reactEventType, targetInst, nativeEvent, nativeEventTarget) {
|
|
1255
|
+
this._reactName = reactName;
|
|
1256
|
+
this._targetInst = targetInst;
|
|
1257
|
+
this.type = reactEventType;
|
|
1258
|
+
this.nativeEvent = nativeEvent;
|
|
1259
|
+
this.target = nativeEventTarget;
|
|
1260
|
+
this.currentTarget = null;
|
|
1261
|
+
for (var propName in Interface)
|
|
1262
|
+
Interface.hasOwnProperty(propName) && (reactName = Interface[propName], this[propName] = reactName ? reactName(nativeEvent) : nativeEvent[propName]);
|
|
1263
|
+
this.isDefaultPrevented = (null != nativeEvent.defaultPrevented ? nativeEvent.defaultPrevented : false === nativeEvent.returnValue) ? functionThatReturnsTrue : functionThatReturnsFalse;
|
|
1264
|
+
this.isPropagationStopped = functionThatReturnsFalse;
|
|
1265
|
+
return this;
|
|
1266
|
+
}
|
|
1267
|
+
assign(SyntheticBaseEvent.prototype, {
|
|
1268
|
+
preventDefault: function() {
|
|
1269
|
+
this.defaultPrevented = true;
|
|
1270
|
+
var event = this.nativeEvent;
|
|
1271
|
+
event && (event.preventDefault ? event.preventDefault() : "unknown" !== typeof event.returnValue && (event.returnValue = false), this.isDefaultPrevented = functionThatReturnsTrue);
|
|
1272
|
+
},
|
|
1273
|
+
stopPropagation: function() {
|
|
1274
|
+
var event = this.nativeEvent;
|
|
1275
|
+
event && (event.stopPropagation ? event.stopPropagation() : "unknown" !== typeof event.cancelBubble && (event.cancelBubble = true), this.isPropagationStopped = functionThatReturnsTrue);
|
|
1276
|
+
},
|
|
1277
|
+
persist: function() {
|
|
1278
|
+
},
|
|
1279
|
+
isPersistent: functionThatReturnsTrue
|
|
1280
|
+
});
|
|
1281
|
+
return SyntheticBaseEvent;
|
|
1282
|
+
}
|
|
1283
|
+
var EventInterface = {
|
|
1284
|
+
eventPhase: 0,
|
|
1285
|
+
bubbles: 0,
|
|
1286
|
+
cancelable: 0,
|
|
1287
|
+
timeStamp: function(event) {
|
|
1288
|
+
return event.timeStamp || Date.now();
|
|
1289
|
+
},
|
|
1290
|
+
defaultPrevented: 0,
|
|
1291
|
+
isTrusted: 0
|
|
1292
|
+
};
|
|
1293
|
+
var SyntheticEvent = createSyntheticEvent(EventInterface);
|
|
1294
|
+
var UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 });
|
|
1295
|
+
var SyntheticUIEvent = createSyntheticEvent(UIEventInterface);
|
|
1296
|
+
var lastMovementX;
|
|
1297
|
+
var lastMovementY;
|
|
1298
|
+
var lastMouseEvent;
|
|
1299
|
+
var MouseEventInterface = assign({}, UIEventInterface, {
|
|
1300
|
+
screenX: 0,
|
|
1301
|
+
screenY: 0,
|
|
1302
|
+
clientX: 0,
|
|
1303
|
+
clientY: 0,
|
|
1304
|
+
pageX: 0,
|
|
1305
|
+
pageY: 0,
|
|
1306
|
+
ctrlKey: 0,
|
|
1307
|
+
shiftKey: 0,
|
|
1308
|
+
altKey: 0,
|
|
1309
|
+
metaKey: 0,
|
|
1310
|
+
getModifierState: getEventModifierState,
|
|
1311
|
+
button: 0,
|
|
1312
|
+
buttons: 0,
|
|
1313
|
+
relatedTarget: function(event) {
|
|
1314
|
+
return void 0 === event.relatedTarget ? event.fromElement === event.srcElement ? event.toElement : event.fromElement : event.relatedTarget;
|
|
1315
|
+
},
|
|
1316
|
+
movementX: function(event) {
|
|
1317
|
+
if ("movementX" in event) return event.movementX;
|
|
1318
|
+
event !== lastMouseEvent && (lastMouseEvent && "mousemove" === event.type ? (lastMovementX = event.screenX - lastMouseEvent.screenX, lastMovementY = event.screenY - lastMouseEvent.screenY) : lastMovementY = lastMovementX = 0, lastMouseEvent = event);
|
|
1319
|
+
return lastMovementX;
|
|
1320
|
+
},
|
|
1321
|
+
movementY: function(event) {
|
|
1322
|
+
return "movementY" in event ? event.movementY : lastMovementY;
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
var SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface);
|
|
1326
|
+
var DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 });
|
|
1327
|
+
var SyntheticDragEvent = createSyntheticEvent(DragEventInterface);
|
|
1328
|
+
var FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 });
|
|
1329
|
+
var SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface);
|
|
1330
|
+
var AnimationEventInterface = assign({}, EventInterface, {
|
|
1331
|
+
animationName: 0,
|
|
1332
|
+
elapsedTime: 0,
|
|
1333
|
+
pseudoElement: 0
|
|
1334
|
+
});
|
|
1335
|
+
var SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface);
|
|
1336
|
+
var ClipboardEventInterface = assign({}, EventInterface, {
|
|
1337
|
+
clipboardData: function(event) {
|
|
1338
|
+
return "clipboardData" in event ? event.clipboardData : window.clipboardData;
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
var SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface);
|
|
1342
|
+
var CompositionEventInterface = assign({}, EventInterface, { data: 0 });
|
|
1343
|
+
var SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface);
|
|
1344
|
+
var normalizeKey = {
|
|
1345
|
+
Esc: "Escape",
|
|
1346
|
+
Spacebar: " ",
|
|
1347
|
+
Left: "ArrowLeft",
|
|
1348
|
+
Up: "ArrowUp",
|
|
1349
|
+
Right: "ArrowRight",
|
|
1350
|
+
Down: "ArrowDown",
|
|
1351
|
+
Del: "Delete",
|
|
1352
|
+
Win: "OS",
|
|
1353
|
+
Menu: "ContextMenu",
|
|
1354
|
+
Apps: "ContextMenu",
|
|
1355
|
+
Scroll: "ScrollLock",
|
|
1356
|
+
MozPrintableKey: "Unidentified"
|
|
1357
|
+
};
|
|
1358
|
+
var translateToKey = {
|
|
1359
|
+
8: "Backspace",
|
|
1360
|
+
9: "Tab",
|
|
1361
|
+
12: "Clear",
|
|
1362
|
+
13: "Enter",
|
|
1363
|
+
16: "Shift",
|
|
1364
|
+
17: "Control",
|
|
1365
|
+
18: "Alt",
|
|
1366
|
+
19: "Pause",
|
|
1367
|
+
20: "CapsLock",
|
|
1368
|
+
27: "Escape",
|
|
1369
|
+
32: " ",
|
|
1370
|
+
33: "PageUp",
|
|
1371
|
+
34: "PageDown",
|
|
1372
|
+
35: "End",
|
|
1373
|
+
36: "Home",
|
|
1374
|
+
37: "ArrowLeft",
|
|
1375
|
+
38: "ArrowUp",
|
|
1376
|
+
39: "ArrowRight",
|
|
1377
|
+
40: "ArrowDown",
|
|
1378
|
+
45: "Insert",
|
|
1379
|
+
46: "Delete",
|
|
1380
|
+
112: "F1",
|
|
1381
|
+
113: "F2",
|
|
1382
|
+
114: "F3",
|
|
1383
|
+
115: "F4",
|
|
1384
|
+
116: "F5",
|
|
1385
|
+
117: "F6",
|
|
1386
|
+
118: "F7",
|
|
1387
|
+
119: "F8",
|
|
1388
|
+
120: "F9",
|
|
1389
|
+
121: "F10",
|
|
1390
|
+
122: "F11",
|
|
1391
|
+
123: "F12",
|
|
1392
|
+
144: "NumLock",
|
|
1393
|
+
145: "ScrollLock",
|
|
1394
|
+
224: "Meta"
|
|
1395
|
+
};
|
|
1396
|
+
var modifierKeyToProp = {
|
|
1397
|
+
Alt: "altKey",
|
|
1398
|
+
Control: "ctrlKey",
|
|
1399
|
+
Meta: "metaKey",
|
|
1400
|
+
Shift: "shiftKey"
|
|
1401
|
+
};
|
|
1402
|
+
function modifierStateGetter(keyArg) {
|
|
1403
|
+
var nativeEvent = this.nativeEvent;
|
|
1404
|
+
return nativeEvent.getModifierState ? nativeEvent.getModifierState(keyArg) : (keyArg = modifierKeyToProp[keyArg]) ? !!nativeEvent[keyArg] : false;
|
|
1405
|
+
}
|
|
1406
|
+
function getEventModifierState() {
|
|
1407
|
+
return modifierStateGetter;
|
|
1408
|
+
}
|
|
1409
|
+
var KeyboardEventInterface = assign({}, UIEventInterface, {
|
|
1410
|
+
key: function(nativeEvent) {
|
|
1411
|
+
if (nativeEvent.key) {
|
|
1412
|
+
var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
|
|
1413
|
+
if ("Unidentified" !== key) return key;
|
|
1414
|
+
}
|
|
1415
|
+
return "keypress" === nativeEvent.type ? (nativeEvent = getEventCharCode(nativeEvent), 13 === nativeEvent ? "Enter" : String.fromCharCode(nativeEvent)) : "keydown" === nativeEvent.type || "keyup" === nativeEvent.type ? translateToKey[nativeEvent.keyCode] || "Unidentified" : "";
|
|
1416
|
+
},
|
|
1417
|
+
code: 0,
|
|
1418
|
+
location: 0,
|
|
1419
|
+
ctrlKey: 0,
|
|
1420
|
+
shiftKey: 0,
|
|
1421
|
+
altKey: 0,
|
|
1422
|
+
metaKey: 0,
|
|
1423
|
+
repeat: 0,
|
|
1424
|
+
locale: 0,
|
|
1425
|
+
getModifierState: getEventModifierState,
|
|
1426
|
+
charCode: function(event) {
|
|
1427
|
+
return "keypress" === event.type ? getEventCharCode(event) : 0;
|
|
1428
|
+
},
|
|
1429
|
+
keyCode: function(event) {
|
|
1430
|
+
return "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
|
|
1431
|
+
},
|
|
1432
|
+
which: function(event) {
|
|
1433
|
+
return "keypress" === event.type ? getEventCharCode(event) : "keydown" === event.type || "keyup" === event.type ? event.keyCode : 0;
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
var SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface);
|
|
1437
|
+
var PointerEventInterface = assign({}, MouseEventInterface, {
|
|
1438
|
+
pointerId: 0,
|
|
1439
|
+
width: 0,
|
|
1440
|
+
height: 0,
|
|
1441
|
+
pressure: 0,
|
|
1442
|
+
tangentialPressure: 0,
|
|
1443
|
+
tiltX: 0,
|
|
1444
|
+
tiltY: 0,
|
|
1445
|
+
twist: 0,
|
|
1446
|
+
pointerType: 0,
|
|
1447
|
+
isPrimary: 0
|
|
1448
|
+
});
|
|
1449
|
+
var SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface);
|
|
1450
|
+
var TouchEventInterface = assign({}, UIEventInterface, {
|
|
1451
|
+
touches: 0,
|
|
1452
|
+
targetTouches: 0,
|
|
1453
|
+
changedTouches: 0,
|
|
1454
|
+
altKey: 0,
|
|
1455
|
+
metaKey: 0,
|
|
1456
|
+
ctrlKey: 0,
|
|
1457
|
+
shiftKey: 0,
|
|
1458
|
+
getModifierState: getEventModifierState
|
|
1459
|
+
});
|
|
1460
|
+
var SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface);
|
|
1461
|
+
var TransitionEventInterface = assign({}, EventInterface, {
|
|
1462
|
+
propertyName: 0,
|
|
1463
|
+
elapsedTime: 0,
|
|
1464
|
+
pseudoElement: 0
|
|
1465
|
+
});
|
|
1466
|
+
var SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface);
|
|
1467
|
+
var WheelEventInterface = assign({}, MouseEventInterface, {
|
|
1468
|
+
deltaX: function(event) {
|
|
1469
|
+
return "deltaX" in event ? event.deltaX : "wheelDeltaX" in event ? -event.wheelDeltaX : 0;
|
|
1470
|
+
},
|
|
1471
|
+
deltaY: function(event) {
|
|
1472
|
+
return "deltaY" in event ? event.deltaY : "wheelDeltaY" in event ? -event.wheelDeltaY : "wheelDelta" in event ? -event.wheelDelta : 0;
|
|
1473
|
+
},
|
|
1474
|
+
deltaZ: 0,
|
|
1475
|
+
deltaMode: 0
|
|
1476
|
+
});
|
|
1477
|
+
var SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface);
|
|
1478
|
+
var ToggleEventInterface = assign({}, EventInterface, {
|
|
1479
|
+
newState: 0,
|
|
1480
|
+
oldState: 0
|
|
1481
|
+
});
|
|
1482
|
+
var SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface);
|
|
1483
|
+
var END_KEYCODES = [9, 13, 27, 32];
|
|
1484
|
+
var canUseCompositionEvent = canUseDOM2 && "CompositionEvent" in window;
|
|
1485
|
+
var documentMode = null;
|
|
1486
|
+
canUseDOM2 && "documentMode" in document && (documentMode = document.documentMode);
|
|
1487
|
+
var canUseTextInputEvent = canUseDOM2 && "TextEvent" in window && !documentMode;
|
|
1488
|
+
var useFallbackCompositionData = canUseDOM2 && (!canUseCompositionEvent || documentMode && 8 < documentMode && 11 >= documentMode);
|
|
1489
|
+
var SPACEBAR_CHAR = String.fromCharCode(32);
|
|
1490
|
+
var hasSpaceKeypress = false;
|
|
1491
|
+
function isFallbackCompositionEnd(domEventName, nativeEvent) {
|
|
1492
|
+
switch (domEventName) {
|
|
1493
|
+
case "keyup":
|
|
1494
|
+
return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);
|
|
1495
|
+
case "keydown":
|
|
1496
|
+
return 229 !== nativeEvent.keyCode;
|
|
1497
|
+
case "keypress":
|
|
1498
|
+
case "mousedown":
|
|
1499
|
+
case "focusout":
|
|
1500
|
+
return true;
|
|
1501
|
+
default:
|
|
1502
|
+
return false;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
function getDataFromCustomEvent(nativeEvent) {
|
|
1506
|
+
nativeEvent = nativeEvent.detail;
|
|
1507
|
+
return "object" === typeof nativeEvent && "data" in nativeEvent ? nativeEvent.data : null;
|
|
1508
|
+
}
|
|
1509
|
+
var isComposing = false;
|
|
1510
|
+
function getNativeBeforeInputChars(domEventName, nativeEvent) {
|
|
1511
|
+
switch (domEventName) {
|
|
1512
|
+
case "compositionend":
|
|
1513
|
+
return getDataFromCustomEvent(nativeEvent);
|
|
1514
|
+
case "keypress":
|
|
1515
|
+
if (32 !== nativeEvent.which) return null;
|
|
1516
|
+
hasSpaceKeypress = true;
|
|
1517
|
+
return SPACEBAR_CHAR;
|
|
1518
|
+
case "textInput":
|
|
1519
|
+
return domEventName = nativeEvent.data, domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName;
|
|
1520
|
+
default:
|
|
1521
|
+
return null;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
function getFallbackBeforeInputChars(domEventName, nativeEvent) {
|
|
1525
|
+
if (isComposing)
|
|
1526
|
+
return "compositionend" === domEventName || !canUseCompositionEvent && isFallbackCompositionEnd(domEventName, nativeEvent) ? (domEventName = getData(), fallbackText = startText = root = null, isComposing = false, domEventName) : null;
|
|
1527
|
+
switch (domEventName) {
|
|
1528
|
+
case "paste":
|
|
1529
|
+
return null;
|
|
1530
|
+
case "keypress":
|
|
1531
|
+
if (!(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) || nativeEvent.ctrlKey && nativeEvent.altKey) {
|
|
1532
|
+
if (nativeEvent.char && 1 < nativeEvent.char.length)
|
|
1533
|
+
return nativeEvent.char;
|
|
1534
|
+
if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);
|
|
1535
|
+
}
|
|
1536
|
+
return null;
|
|
1537
|
+
case "compositionend":
|
|
1538
|
+
return useFallbackCompositionData && "ko" !== nativeEvent.locale ? null : nativeEvent.data;
|
|
1539
|
+
default:
|
|
1540
|
+
return null;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
var supportedInputTypes = {
|
|
1544
|
+
color: true,
|
|
1545
|
+
date: true,
|
|
1546
|
+
datetime: true,
|
|
1547
|
+
"datetime-local": true,
|
|
1548
|
+
email: true,
|
|
1549
|
+
month: true,
|
|
1550
|
+
number: true,
|
|
1551
|
+
password: true,
|
|
1552
|
+
range: true,
|
|
1553
|
+
search: true,
|
|
1554
|
+
tel: true,
|
|
1555
|
+
text: true,
|
|
1556
|
+
time: true,
|
|
1557
|
+
url: true,
|
|
1558
|
+
week: true
|
|
1559
|
+
};
|
|
1560
|
+
function isTextInputElement(elem) {
|
|
1561
|
+
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
|
1562
|
+
return "input" === nodeName ? !!supportedInputTypes[elem.type] : "textarea" === nodeName ? true : false;
|
|
1563
|
+
}
|
|
1564
|
+
function createAndAccumulateChangeEvent(dispatchQueue, inst, nativeEvent, target) {
|
|
1565
|
+
restoreTarget ? restoreQueue ? restoreQueue.push(target) : restoreQueue = [target] : restoreTarget = target;
|
|
1566
|
+
inst = accumulateTwoPhaseListeners(inst, "onChange");
|
|
1567
|
+
0 < inst.length && (nativeEvent = new SyntheticEvent(
|
|
1568
|
+
"onChange",
|
|
1569
|
+
"change",
|
|
1570
|
+
null,
|
|
1571
|
+
nativeEvent,
|
|
1572
|
+
target
|
|
1573
|
+
), dispatchQueue.push({ event: nativeEvent, listeners: inst }));
|
|
1574
|
+
}
|
|
1575
|
+
var activeElement$1 = null;
|
|
1576
|
+
var activeElementInst$1 = null;
|
|
1577
|
+
function runEventInBatch(dispatchQueue) {
|
|
1578
|
+
processDispatchQueue(dispatchQueue, 0);
|
|
1579
|
+
}
|
|
1580
|
+
function getInstIfValueChanged(targetInst) {
|
|
1581
|
+
var targetNode = getNodeFromInstance(targetInst);
|
|
1582
|
+
if (updateValueIfChanged(targetNode)) return targetInst;
|
|
1583
|
+
}
|
|
1584
|
+
function getTargetInstForChangeEvent(domEventName, targetInst) {
|
|
1585
|
+
if ("change" === domEventName) return targetInst;
|
|
1586
|
+
}
|
|
1587
|
+
var isInputEventSupported = false;
|
|
1588
|
+
if (canUseDOM2) {
|
|
1589
|
+
if (canUseDOM2) {
|
|
1590
|
+
isSupported$jscomp$inline_427 = "oninput" in document;
|
|
1591
|
+
if (!isSupported$jscomp$inline_427) {
|
|
1592
|
+
element$jscomp$inline_428 = document.createElement("div");
|
|
1593
|
+
element$jscomp$inline_428.setAttribute("oninput", "return;");
|
|
1594
|
+
isSupported$jscomp$inline_427 = "function" === typeof element$jscomp$inline_428.oninput;
|
|
1595
|
+
}
|
|
1596
|
+
JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_427;
|
|
1597
|
+
} else JSCompiler_inline_result$jscomp$286 = false;
|
|
1598
|
+
isInputEventSupported = JSCompiler_inline_result$jscomp$286 && (!document.documentMode || 9 < document.documentMode);
|
|
1599
|
+
}
|
|
1600
|
+
var JSCompiler_inline_result$jscomp$286;
|
|
1601
|
+
var isSupported$jscomp$inline_427;
|
|
1602
|
+
var element$jscomp$inline_428;
|
|
1603
|
+
function stopWatchingForValueChange() {
|
|
1604
|
+
activeElement$1 && (activeElement$1.detachEvent("onpropertychange", handlePropertyChange), activeElementInst$1 = activeElement$1 = null);
|
|
1605
|
+
}
|
|
1606
|
+
function handlePropertyChange(nativeEvent) {
|
|
1607
|
+
if ("value" === nativeEvent.propertyName && getInstIfValueChanged(activeElementInst$1)) {
|
|
1608
|
+
var dispatchQueue = [];
|
|
1609
|
+
createAndAccumulateChangeEvent(
|
|
1610
|
+
dispatchQueue,
|
|
1611
|
+
activeElementInst$1,
|
|
1612
|
+
nativeEvent,
|
|
1613
|
+
getEventTarget(nativeEvent)
|
|
1614
|
+
);
|
|
1615
|
+
batchedUpdates$1(runEventInBatch, dispatchQueue);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
function handleEventsForInputEventPolyfill(domEventName, target, targetInst) {
|
|
1619
|
+
"focusin" === domEventName ? (stopWatchingForValueChange(), activeElement$1 = target, activeElementInst$1 = targetInst, activeElement$1.attachEvent("onpropertychange", handlePropertyChange)) : "focusout" === domEventName && stopWatchingForValueChange();
|
|
1620
|
+
}
|
|
1621
|
+
function getTargetInstForInputEventPolyfill(domEventName) {
|
|
1622
|
+
if ("selectionchange" === domEventName || "keyup" === domEventName || "keydown" === domEventName)
|
|
1623
|
+
return getInstIfValueChanged(activeElementInst$1);
|
|
1624
|
+
}
|
|
1625
|
+
function getTargetInstForClickEvent(domEventName, targetInst) {
|
|
1626
|
+
if ("click" === domEventName) return getInstIfValueChanged(targetInst);
|
|
1627
|
+
}
|
|
1628
|
+
function getTargetInstForInputOrChangeEvent(domEventName, targetInst) {
|
|
1629
|
+
if ("input" === domEventName || "change" === domEventName)
|
|
1630
|
+
return getInstIfValueChanged(targetInst);
|
|
1631
|
+
}
|
|
1632
|
+
function is(x, y) {
|
|
1633
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
1634
|
+
}
|
|
1635
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
1636
|
+
function shallowEqual2(objA, objB) {
|
|
1637
|
+
if (objectIs(objA, objB)) return true;
|
|
1638
|
+
if ("object" !== typeof objA || null === objA || "object" !== typeof objB || null === objB)
|
|
1639
|
+
return false;
|
|
1640
|
+
var keysA = Object.keys(objA), keysB = Object.keys(objB);
|
|
1641
|
+
if (keysA.length !== keysB.length) return false;
|
|
1642
|
+
for (keysB = 0; keysB < keysA.length; keysB++) {
|
|
1643
|
+
var currentKey = keysA[keysB];
|
|
1644
|
+
if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
|
|
1645
|
+
return false;
|
|
1646
|
+
}
|
|
1647
|
+
return true;
|
|
1648
|
+
}
|
|
1649
|
+
function getLeafNode(node) {
|
|
1650
|
+
for (; node && node.firstChild; ) node = node.firstChild;
|
|
1651
|
+
return node;
|
|
1652
|
+
}
|
|
1653
|
+
function getNodeForCharacterOffset(root2, offset4) {
|
|
1654
|
+
var node = getLeafNode(root2);
|
|
1655
|
+
root2 = 0;
|
|
1656
|
+
for (var nodeEnd; node; ) {
|
|
1657
|
+
if (3 === node.nodeType) {
|
|
1658
|
+
nodeEnd = root2 + node.textContent.length;
|
|
1659
|
+
if (root2 <= offset4 && nodeEnd >= offset4)
|
|
1660
|
+
return { node, offset: offset4 - root2 };
|
|
1661
|
+
root2 = nodeEnd;
|
|
1662
|
+
}
|
|
1663
|
+
a: {
|
|
1664
|
+
for (; node; ) {
|
|
1665
|
+
if (node.nextSibling) {
|
|
1666
|
+
node = node.nextSibling;
|
|
1667
|
+
break a;
|
|
1668
|
+
}
|
|
1669
|
+
node = node.parentNode;
|
|
1670
|
+
}
|
|
1671
|
+
node = void 0;
|
|
1672
|
+
}
|
|
1673
|
+
node = getLeafNode(node);
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
function containsNode(outerNode, innerNode) {
|
|
1677
|
+
return outerNode && innerNode ? outerNode === innerNode ? true : outerNode && 3 === outerNode.nodeType ? false : innerNode && 3 === innerNode.nodeType ? containsNode(outerNode, innerNode.parentNode) : "contains" in outerNode ? outerNode.contains(innerNode) : outerNode.compareDocumentPosition ? !!(outerNode.compareDocumentPosition(innerNode) & 16) : false : false;
|
|
1678
|
+
}
|
|
1679
|
+
function getActiveElementDeep(containerInfo) {
|
|
1680
|
+
containerInfo = null != containerInfo && null != containerInfo.ownerDocument && null != containerInfo.ownerDocument.defaultView ? containerInfo.ownerDocument.defaultView : window;
|
|
1681
|
+
for (var element = getActiveElement2(containerInfo.document); element instanceof containerInfo.HTMLIFrameElement; ) {
|
|
1682
|
+
try {
|
|
1683
|
+
var JSCompiler_inline_result = "string" === typeof element.contentWindow.location.href;
|
|
1684
|
+
} catch (err) {
|
|
1685
|
+
JSCompiler_inline_result = false;
|
|
1686
|
+
}
|
|
1687
|
+
if (JSCompiler_inline_result) containerInfo = element.contentWindow;
|
|
1688
|
+
else break;
|
|
1689
|
+
element = getActiveElement2(containerInfo.document);
|
|
1690
|
+
}
|
|
1691
|
+
return element;
|
|
1692
|
+
}
|
|
1693
|
+
function hasSelectionCapabilities(elem) {
|
|
1694
|
+
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
|
|
1695
|
+
return nodeName && ("input" === nodeName && ("text" === elem.type || "search" === elem.type || "tel" === elem.type || "url" === elem.type || "password" === elem.type) || "textarea" === nodeName || "true" === elem.contentEditable);
|
|
1696
|
+
}
|
|
1697
|
+
var skipSelectionChangeEvent = canUseDOM2 && "documentMode" in document && 11 >= document.documentMode;
|
|
1698
|
+
var activeElement = null;
|
|
1699
|
+
var activeElementInst = null;
|
|
1700
|
+
var lastSelection = null;
|
|
1701
|
+
var mouseDown = false;
|
|
1702
|
+
function constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {
|
|
1703
|
+
var doc = nativeEventTarget.window === nativeEventTarget ? nativeEventTarget.document : 9 === nativeEventTarget.nodeType ? nativeEventTarget : nativeEventTarget.ownerDocument;
|
|
1704
|
+
mouseDown || null == activeElement || activeElement !== getActiveElement2(doc) || (doc = activeElement, "selectionStart" in doc && hasSelectionCapabilities(doc) ? doc = { start: doc.selectionStart, end: doc.selectionEnd } : (doc = (doc.ownerDocument && doc.ownerDocument.defaultView || window).getSelection(), doc = {
|
|
1705
|
+
anchorNode: doc.anchorNode,
|
|
1706
|
+
anchorOffset: doc.anchorOffset,
|
|
1707
|
+
focusNode: doc.focusNode,
|
|
1708
|
+
focusOffset: doc.focusOffset
|
|
1709
|
+
}), lastSelection && shallowEqual2(lastSelection, doc) || (lastSelection = doc, doc = accumulateTwoPhaseListeners(activeElementInst, "onSelect"), 0 < doc.length && (nativeEvent = new SyntheticEvent(
|
|
1710
|
+
"onSelect",
|
|
1711
|
+
"select",
|
|
1712
|
+
null,
|
|
1713
|
+
nativeEvent,
|
|
1714
|
+
nativeEventTarget
|
|
1715
|
+
), dispatchQueue.push({ event: nativeEvent, listeners: doc }), nativeEvent.target = activeElement)));
|
|
1716
|
+
}
|
|
1717
|
+
function makePrefixMap(styleProp, eventName) {
|
|
1718
|
+
var prefixes = {};
|
|
1719
|
+
prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
|
|
1720
|
+
prefixes["Webkit" + styleProp] = "webkit" + eventName;
|
|
1721
|
+
prefixes["Moz" + styleProp] = "moz" + eventName;
|
|
1722
|
+
return prefixes;
|
|
1723
|
+
}
|
|
1724
|
+
var vendorPrefixes = {
|
|
1725
|
+
animationend: makePrefixMap("Animation", "AnimationEnd"),
|
|
1726
|
+
animationiteration: makePrefixMap("Animation", "AnimationIteration"),
|
|
1727
|
+
animationstart: makePrefixMap("Animation", "AnimationStart"),
|
|
1728
|
+
transitionrun: makePrefixMap("Transition", "TransitionRun"),
|
|
1729
|
+
transitionstart: makePrefixMap("Transition", "TransitionStart"),
|
|
1730
|
+
transitioncancel: makePrefixMap("Transition", "TransitionCancel"),
|
|
1731
|
+
transitionend: makePrefixMap("Transition", "TransitionEnd")
|
|
1732
|
+
};
|
|
1733
|
+
var prefixedEventNames = {};
|
|
1734
|
+
var style = {};
|
|
1735
|
+
canUseDOM2 && (style = document.createElement("div").style, "AnimationEvent" in window || (delete vendorPrefixes.animationend.animation, delete vendorPrefixes.animationiteration.animation, delete vendorPrefixes.animationstart.animation), "TransitionEvent" in window || delete vendorPrefixes.transitionend.transition);
|
|
1736
|
+
function getVendorPrefixedEventName(eventName) {
|
|
1737
|
+
if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];
|
|
1738
|
+
if (!vendorPrefixes[eventName]) return eventName;
|
|
1739
|
+
var prefixMap = vendorPrefixes[eventName], styleProp;
|
|
1740
|
+
for (styleProp in prefixMap)
|
|
1741
|
+
if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)
|
|
1742
|
+
return prefixedEventNames[eventName] = prefixMap[styleProp];
|
|
1743
|
+
return eventName;
|
|
1744
|
+
}
|
|
1745
|
+
var ANIMATION_END = getVendorPrefixedEventName("animationend");
|
|
1746
|
+
var ANIMATION_ITERATION = getVendorPrefixedEventName("animationiteration");
|
|
1747
|
+
var ANIMATION_START = getVendorPrefixedEventName("animationstart");
|
|
1748
|
+
var TRANSITION_RUN = getVendorPrefixedEventName("transitionrun");
|
|
1749
|
+
var TRANSITION_START = getVendorPrefixedEventName("transitionstart");
|
|
1750
|
+
var TRANSITION_CANCEL = getVendorPrefixedEventName("transitioncancel");
|
|
1751
|
+
var TRANSITION_END = getVendorPrefixedEventName("transitionend");
|
|
1752
|
+
var topLevelEventsToReactNames = /* @__PURE__ */ new Map();
|
|
1753
|
+
var simpleEventPluginEvents = "abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(
|
|
1754
|
+
" "
|
|
1755
|
+
);
|
|
1756
|
+
simpleEventPluginEvents.push("scrollEnd");
|
|
1757
|
+
function registerSimpleEvent(domEventName, reactName) {
|
|
1758
|
+
topLevelEventsToReactNames.set(domEventName, reactName);
|
|
1759
|
+
registerTwoPhaseEvent(reactName, [domEventName]);
|
|
1760
|
+
}
|
|
1761
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1762
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1763
|
+
var event = new window.ErrorEvent("error", {
|
|
1764
|
+
bubbles: true,
|
|
1765
|
+
cancelable: true,
|
|
1766
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1767
|
+
error
|
|
1768
|
+
});
|
|
1769
|
+
if (!window.dispatchEvent(event)) return;
|
|
1770
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1771
|
+
process.emit("uncaughtException", error);
|
|
1772
|
+
return;
|
|
1773
|
+
}
|
|
1774
|
+
console.error(error);
|
|
1775
|
+
};
|
|
1776
|
+
var concurrentQueues = [];
|
|
1777
|
+
var concurrentQueuesIndex = 0;
|
|
1778
|
+
var concurrentlyUpdatedLanes = 0;
|
|
1779
|
+
function finishQueueingConcurrentUpdates() {
|
|
1780
|
+
for (var endIndex = concurrentQueuesIndex, i = concurrentlyUpdatedLanes = concurrentQueuesIndex = 0; i < endIndex; ) {
|
|
1781
|
+
var fiber = concurrentQueues[i];
|
|
1782
|
+
concurrentQueues[i++] = null;
|
|
1783
|
+
var queue = concurrentQueues[i];
|
|
1784
|
+
concurrentQueues[i++] = null;
|
|
1785
|
+
var update = concurrentQueues[i];
|
|
1786
|
+
concurrentQueues[i++] = null;
|
|
1787
|
+
var lane = concurrentQueues[i];
|
|
1788
|
+
concurrentQueues[i++] = null;
|
|
1789
|
+
if (null !== queue && null !== update) {
|
|
1790
|
+
var pending = queue.pending;
|
|
1791
|
+
null === pending ? update.next = update : (update.next = pending.next, pending.next = update);
|
|
1792
|
+
queue.pending = update;
|
|
1793
|
+
}
|
|
1794
|
+
0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
function enqueueUpdate$1(fiber, queue, update, lane) {
|
|
1798
|
+
concurrentQueues[concurrentQueuesIndex++] = fiber;
|
|
1799
|
+
concurrentQueues[concurrentQueuesIndex++] = queue;
|
|
1800
|
+
concurrentQueues[concurrentQueuesIndex++] = update;
|
|
1801
|
+
concurrentQueues[concurrentQueuesIndex++] = lane;
|
|
1802
|
+
concurrentlyUpdatedLanes |= lane;
|
|
1803
|
+
fiber.lanes |= lane;
|
|
1804
|
+
fiber = fiber.alternate;
|
|
1805
|
+
null !== fiber && (fiber.lanes |= lane);
|
|
1806
|
+
}
|
|
1807
|
+
function enqueueConcurrentHookUpdate(fiber, queue, update, lane) {
|
|
1808
|
+
enqueueUpdate$1(fiber, queue, update, lane);
|
|
1809
|
+
return getRootForUpdatedFiber(fiber);
|
|
1810
|
+
}
|
|
1811
|
+
function enqueueConcurrentRenderForLane(fiber, lane) {
|
|
1812
|
+
enqueueUpdate$1(fiber, null, null, lane);
|
|
1813
|
+
return getRootForUpdatedFiber(fiber);
|
|
1814
|
+
}
|
|
1815
|
+
function markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {
|
|
1816
|
+
sourceFiber.lanes |= lane;
|
|
1817
|
+
var alternate = sourceFiber.alternate;
|
|
1818
|
+
null !== alternate && (alternate.lanes |= lane);
|
|
1819
|
+
for (var isHidden2 = false, parent = sourceFiber.return; null !== parent; )
|
|
1820
|
+
parent.childLanes |= lane, alternate = parent.alternate, null !== alternate && (alternate.childLanes |= lane), 22 === parent.tag && (sourceFiber = parent.stateNode, null === sourceFiber || sourceFiber._visibility & 1 || (isHidden2 = true)), sourceFiber = parent, parent = parent.return;
|
|
1821
|
+
return 3 === sourceFiber.tag ? (parent = sourceFiber.stateNode, isHidden2 && null !== update && (isHidden2 = 31 - clz32(lane), sourceFiber = parent.hiddenUpdates, alternate = sourceFiber[isHidden2], null === alternate ? sourceFiber[isHidden2] = [update] : alternate.push(update), update.lane = lane | 536870912), parent) : null;
|
|
1822
|
+
}
|
|
1823
|
+
function getRootForUpdatedFiber(sourceFiber) {
|
|
1824
|
+
if (50 < nestedUpdateCount)
|
|
1825
|
+
throw nestedUpdateCount = 0, rootWithNestedUpdates = null, Error(formatProdErrorMessage(185));
|
|
1826
|
+
for (var parent = sourceFiber.return; null !== parent; )
|
|
1827
|
+
sourceFiber = parent, parent = sourceFiber.return;
|
|
1828
|
+
return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;
|
|
1829
|
+
}
|
|
1830
|
+
var emptyContextObject = {};
|
|
1831
|
+
function FiberNode(tag, pendingProps, key, mode) {
|
|
1832
|
+
this.tag = tag;
|
|
1833
|
+
this.key = key;
|
|
1834
|
+
this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
|
|
1835
|
+
this.index = 0;
|
|
1836
|
+
this.refCleanup = this.ref = null;
|
|
1837
|
+
this.pendingProps = pendingProps;
|
|
1838
|
+
this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
|
|
1839
|
+
this.mode = mode;
|
|
1840
|
+
this.subtreeFlags = this.flags = 0;
|
|
1841
|
+
this.deletions = null;
|
|
1842
|
+
this.childLanes = this.lanes = 0;
|
|
1843
|
+
this.alternate = null;
|
|
1844
|
+
}
|
|
1845
|
+
function createFiberImplClass(tag, pendingProps, key, mode) {
|
|
1846
|
+
return new FiberNode(tag, pendingProps, key, mode);
|
|
1847
|
+
}
|
|
1848
|
+
function shouldConstruct(Component) {
|
|
1849
|
+
Component = Component.prototype;
|
|
1850
|
+
return !(!Component || !Component.isReactComponent);
|
|
1851
|
+
}
|
|
1852
|
+
function createWorkInProgress(current, pendingProps) {
|
|
1853
|
+
var workInProgress2 = current.alternate;
|
|
1854
|
+
null === workInProgress2 ? (workInProgress2 = createFiberImplClass(
|
|
1855
|
+
current.tag,
|
|
1856
|
+
pendingProps,
|
|
1857
|
+
current.key,
|
|
1858
|
+
current.mode
|
|
1859
|
+
), workInProgress2.elementType = current.elementType, workInProgress2.type = current.type, workInProgress2.stateNode = current.stateNode, workInProgress2.alternate = current, current.alternate = workInProgress2) : (workInProgress2.pendingProps = pendingProps, workInProgress2.type = current.type, workInProgress2.flags = 0, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null);
|
|
1860
|
+
workInProgress2.flags = current.flags & 65011712;
|
|
1861
|
+
workInProgress2.childLanes = current.childLanes;
|
|
1862
|
+
workInProgress2.lanes = current.lanes;
|
|
1863
|
+
workInProgress2.child = current.child;
|
|
1864
|
+
workInProgress2.memoizedProps = current.memoizedProps;
|
|
1865
|
+
workInProgress2.memoizedState = current.memoizedState;
|
|
1866
|
+
workInProgress2.updateQueue = current.updateQueue;
|
|
1867
|
+
pendingProps = current.dependencies;
|
|
1868
|
+
workInProgress2.dependencies = null === pendingProps ? null : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };
|
|
1869
|
+
workInProgress2.sibling = current.sibling;
|
|
1870
|
+
workInProgress2.index = current.index;
|
|
1871
|
+
workInProgress2.ref = current.ref;
|
|
1872
|
+
workInProgress2.refCleanup = current.refCleanup;
|
|
1873
|
+
return workInProgress2;
|
|
1874
|
+
}
|
|
1875
|
+
function resetWorkInProgress(workInProgress2, renderLanes2) {
|
|
1876
|
+
workInProgress2.flags &= 65011714;
|
|
1877
|
+
var current = workInProgress2.alternate;
|
|
1878
|
+
null === current ? (workInProgress2.childLanes = 0, workInProgress2.lanes = renderLanes2, workInProgress2.child = null, workInProgress2.subtreeFlags = 0, workInProgress2.memoizedProps = null, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.dependencies = null, workInProgress2.stateNode = null) : (workInProgress2.childLanes = current.childLanes, workInProgress2.lanes = current.lanes, workInProgress2.child = current.child, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.memoizedProps = current.memoizedProps, workInProgress2.memoizedState = current.memoizedState, workInProgress2.updateQueue = current.updateQueue, workInProgress2.type = current.type, renderLanes2 = current.dependencies, workInProgress2.dependencies = null === renderLanes2 ? null : {
|
|
1879
|
+
lanes: renderLanes2.lanes,
|
|
1880
|
+
firstContext: renderLanes2.firstContext
|
|
1881
|
+
});
|
|
1882
|
+
return workInProgress2;
|
|
1883
|
+
}
|
|
1884
|
+
function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) {
|
|
1885
|
+
var fiberTag = 0;
|
|
1886
|
+
owner = type;
|
|
1887
|
+
if ("function" === typeof type) shouldConstruct(type) && (fiberTag = 1);
|
|
1888
|
+
else if ("string" === typeof type)
|
|
1889
|
+
fiberTag = isHostHoistableType(
|
|
1890
|
+
type,
|
|
1891
|
+
pendingProps,
|
|
1892
|
+
contextStackCursor.current
|
|
1893
|
+
) ? 26 : "html" === type || "head" === type || "body" === type ? 27 : 5;
|
|
1894
|
+
else
|
|
1895
|
+
a: switch (type) {
|
|
1896
|
+
case REACT_ACTIVITY_TYPE:
|
|
1897
|
+
return type = createFiberImplClass(31, pendingProps, key, mode), type.elementType = REACT_ACTIVITY_TYPE, type.lanes = lanes, type;
|
|
1898
|
+
case REACT_FRAGMENT_TYPE:
|
|
1899
|
+
return createFiberFromFragment(pendingProps.children, mode, lanes, key);
|
|
1900
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1901
|
+
fiberTag = 8;
|
|
1902
|
+
mode |= 24;
|
|
1903
|
+
break;
|
|
1904
|
+
case REACT_PROFILER_TYPE:
|
|
1905
|
+
return type = createFiberImplClass(12, pendingProps, key, mode | 2), type.elementType = REACT_PROFILER_TYPE, type.lanes = lanes, type;
|
|
1906
|
+
case REACT_SUSPENSE_TYPE:
|
|
1907
|
+
return type = createFiberImplClass(13, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_TYPE, type.lanes = lanes, type;
|
|
1908
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1909
|
+
return type = createFiberImplClass(19, pendingProps, key, mode), type.elementType = REACT_SUSPENSE_LIST_TYPE, type.lanes = lanes, type;
|
|
1910
|
+
default:
|
|
1911
|
+
if ("object" === typeof type && null !== type)
|
|
1912
|
+
switch (type.$$typeof) {
|
|
1913
|
+
case REACT_CONTEXT_TYPE:
|
|
1914
|
+
fiberTag = 10;
|
|
1915
|
+
break a;
|
|
1916
|
+
case REACT_CONSUMER_TYPE:
|
|
1917
|
+
fiberTag = 9;
|
|
1918
|
+
break a;
|
|
1919
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1920
|
+
fiberTag = 11;
|
|
1921
|
+
break a;
|
|
1922
|
+
case REACT_MEMO_TYPE:
|
|
1923
|
+
fiberTag = 14;
|
|
1924
|
+
break a;
|
|
1925
|
+
case REACT_LAZY_TYPE2:
|
|
1926
|
+
fiberTag = 16;
|
|
1927
|
+
owner = null;
|
|
1928
|
+
break a;
|
|
1929
|
+
}
|
|
1930
|
+
fiberTag = 29;
|
|
1931
|
+
pendingProps = Error(
|
|
1932
|
+
formatProdErrorMessage(130, null === type ? "null" : typeof type, "")
|
|
1933
|
+
);
|
|
1934
|
+
owner = null;
|
|
1935
|
+
}
|
|
1936
|
+
key = createFiberImplClass(fiberTag, pendingProps, key, mode);
|
|
1937
|
+
key.elementType = type;
|
|
1938
|
+
key.type = owner;
|
|
1939
|
+
key.lanes = lanes;
|
|
1940
|
+
return key;
|
|
1941
|
+
}
|
|
1942
|
+
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
1943
|
+
elements = createFiberImplClass(7, elements, key, mode);
|
|
1944
|
+
elements.lanes = lanes;
|
|
1945
|
+
return elements;
|
|
1946
|
+
}
|
|
1947
|
+
function createFiberFromText(content, mode, lanes) {
|
|
1948
|
+
content = createFiberImplClass(6, content, null, mode);
|
|
1949
|
+
content.lanes = lanes;
|
|
1950
|
+
return content;
|
|
1951
|
+
}
|
|
1952
|
+
function createFiberFromDehydratedFragment(dehydratedNode) {
|
|
1953
|
+
var fiber = createFiberImplClass(18, null, null, 0);
|
|
1954
|
+
fiber.stateNode = dehydratedNode;
|
|
1955
|
+
return fiber;
|
|
1956
|
+
}
|
|
1957
|
+
function createFiberFromPortal(portal, mode, lanes) {
|
|
1958
|
+
mode = createFiberImplClass(
|
|
1959
|
+
4,
|
|
1960
|
+
null !== portal.children ? portal.children : [],
|
|
1961
|
+
portal.key,
|
|
1962
|
+
mode
|
|
1963
|
+
);
|
|
1964
|
+
mode.lanes = lanes;
|
|
1965
|
+
mode.stateNode = {
|
|
1966
|
+
containerInfo: portal.containerInfo,
|
|
1967
|
+
pendingChildren: null,
|
|
1968
|
+
implementation: portal.implementation
|
|
1969
|
+
};
|
|
1970
|
+
return mode;
|
|
1971
|
+
}
|
|
1972
|
+
var CapturedStacks = /* @__PURE__ */ new WeakMap();
|
|
1973
|
+
function createCapturedValueAtFiber(value, source) {
|
|
1974
|
+
if ("object" === typeof value && null !== value) {
|
|
1975
|
+
var existing = CapturedStacks.get(value);
|
|
1976
|
+
if (void 0 !== existing) return existing;
|
|
1977
|
+
source = {
|
|
1978
|
+
value,
|
|
1979
|
+
source,
|
|
1980
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
1981
|
+
};
|
|
1982
|
+
CapturedStacks.set(value, source);
|
|
1983
|
+
return source;
|
|
1984
|
+
}
|
|
1985
|
+
return {
|
|
1986
|
+
value,
|
|
1987
|
+
source,
|
|
1988
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
var forkStack = [];
|
|
1992
|
+
var forkStackIndex = 0;
|
|
1993
|
+
var treeForkProvider = null;
|
|
1994
|
+
var treeForkCount = 0;
|
|
1995
|
+
var idStack = [];
|
|
1996
|
+
var idStackIndex = 0;
|
|
1997
|
+
var treeContextProvider = null;
|
|
1998
|
+
var treeContextId = 1;
|
|
1999
|
+
var treeContextOverflow = "";
|
|
2000
|
+
function pushTreeFork(workInProgress2, totalChildren) {
|
|
2001
|
+
forkStack[forkStackIndex++] = treeForkCount;
|
|
2002
|
+
forkStack[forkStackIndex++] = treeForkProvider;
|
|
2003
|
+
treeForkProvider = workInProgress2;
|
|
2004
|
+
treeForkCount = totalChildren;
|
|
2005
|
+
}
|
|
2006
|
+
function pushTreeId(workInProgress2, totalChildren, index3) {
|
|
2007
|
+
idStack[idStackIndex++] = treeContextId;
|
|
2008
|
+
idStack[idStackIndex++] = treeContextOverflow;
|
|
2009
|
+
idStack[idStackIndex++] = treeContextProvider;
|
|
2010
|
+
treeContextProvider = workInProgress2;
|
|
2011
|
+
var baseIdWithLeadingBit = treeContextId;
|
|
2012
|
+
workInProgress2 = treeContextOverflow;
|
|
2013
|
+
var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
|
|
2014
|
+
baseIdWithLeadingBit &= ~(1 << baseLength);
|
|
2015
|
+
index3 += 1;
|
|
2016
|
+
var length = 32 - clz32(totalChildren) + baseLength;
|
|
2017
|
+
if (30 < length) {
|
|
2018
|
+
var numberOfOverflowBits = baseLength - baseLength % 5;
|
|
2019
|
+
length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32);
|
|
2020
|
+
baseIdWithLeadingBit >>= numberOfOverflowBits;
|
|
2021
|
+
baseLength -= numberOfOverflowBits;
|
|
2022
|
+
treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index3 << baseLength | baseIdWithLeadingBit;
|
|
2023
|
+
treeContextOverflow = length + workInProgress2;
|
|
2024
|
+
} else
|
|
2025
|
+
treeContextId = 1 << length | index3 << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2;
|
|
2026
|
+
}
|
|
2027
|
+
function pushMaterializedTreeId(workInProgress2) {
|
|
2028
|
+
null !== workInProgress2.return && (pushTreeFork(workInProgress2, 1), pushTreeId(workInProgress2, 1, 0));
|
|
2029
|
+
}
|
|
2030
|
+
function popTreeContext(workInProgress2) {
|
|
2031
|
+
for (; workInProgress2 === treeForkProvider; )
|
|
2032
|
+
treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null;
|
|
2033
|
+
for (; workInProgress2 === treeContextProvider; )
|
|
2034
|
+
treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null;
|
|
2035
|
+
}
|
|
2036
|
+
function restoreSuspendedTreeContext(workInProgress2, suspendedContext) {
|
|
2037
|
+
idStack[idStackIndex++] = treeContextId;
|
|
2038
|
+
idStack[idStackIndex++] = treeContextOverflow;
|
|
2039
|
+
idStack[idStackIndex++] = treeContextProvider;
|
|
2040
|
+
treeContextId = suspendedContext.id;
|
|
2041
|
+
treeContextOverflow = suspendedContext.overflow;
|
|
2042
|
+
treeContextProvider = workInProgress2;
|
|
2043
|
+
}
|
|
2044
|
+
var hydrationParentFiber = null;
|
|
2045
|
+
var nextHydratableInstance = null;
|
|
2046
|
+
var isHydrating = false;
|
|
2047
|
+
var hydrationErrors = null;
|
|
2048
|
+
var rootOrSingletonContext = false;
|
|
2049
|
+
var HydrationMismatchException = Error(formatProdErrorMessage(519));
|
|
2050
|
+
function throwOnHydrationMismatch(fiber) {
|
|
2051
|
+
var error = Error(
|
|
2052
|
+
formatProdErrorMessage(
|
|
2053
|
+
418,
|
|
2054
|
+
1 < arguments.length && void 0 !== arguments[1] && arguments[1] ? "text" : "HTML",
|
|
2055
|
+
""
|
|
2056
|
+
)
|
|
2057
|
+
);
|
|
2058
|
+
queueHydrationError(createCapturedValueAtFiber(error, fiber));
|
|
2059
|
+
throw HydrationMismatchException;
|
|
2060
|
+
}
|
|
2061
|
+
function prepareToHydrateHostInstance(fiber) {
|
|
2062
|
+
var instance = fiber.stateNode, type = fiber.type, props = fiber.memoizedProps;
|
|
2063
|
+
instance[internalInstanceKey] = fiber;
|
|
2064
|
+
instance[internalPropsKey] = props;
|
|
2065
|
+
switch (type) {
|
|
2066
|
+
case "dialog":
|
|
2067
|
+
listenToNonDelegatedEvent("cancel", instance);
|
|
2068
|
+
listenToNonDelegatedEvent("close", instance);
|
|
2069
|
+
break;
|
|
2070
|
+
case "iframe":
|
|
2071
|
+
case "object":
|
|
2072
|
+
case "embed":
|
|
2073
|
+
listenToNonDelegatedEvent("load", instance);
|
|
2074
|
+
break;
|
|
2075
|
+
case "video":
|
|
2076
|
+
case "audio":
|
|
2077
|
+
for (type = 0; type < mediaEventTypes.length; type++)
|
|
2078
|
+
listenToNonDelegatedEvent(mediaEventTypes[type], instance);
|
|
2079
|
+
break;
|
|
2080
|
+
case "source":
|
|
2081
|
+
listenToNonDelegatedEvent("error", instance);
|
|
2082
|
+
break;
|
|
2083
|
+
case "img":
|
|
2084
|
+
case "image":
|
|
2085
|
+
case "link":
|
|
2086
|
+
listenToNonDelegatedEvent("error", instance);
|
|
2087
|
+
listenToNonDelegatedEvent("load", instance);
|
|
2088
|
+
break;
|
|
2089
|
+
case "details":
|
|
2090
|
+
listenToNonDelegatedEvent("toggle", instance);
|
|
2091
|
+
break;
|
|
2092
|
+
case "input":
|
|
2093
|
+
listenToNonDelegatedEvent("invalid", instance);
|
|
2094
|
+
initInput(
|
|
2095
|
+
instance,
|
|
2096
|
+
props.value,
|
|
2097
|
+
props.defaultValue,
|
|
2098
|
+
props.checked,
|
|
2099
|
+
props.defaultChecked,
|
|
2100
|
+
props.type,
|
|
2101
|
+
props.name,
|
|
2102
|
+
true
|
|
2103
|
+
);
|
|
2104
|
+
break;
|
|
2105
|
+
case "select":
|
|
2106
|
+
listenToNonDelegatedEvent("invalid", instance);
|
|
2107
|
+
break;
|
|
2108
|
+
case "textarea":
|
|
2109
|
+
listenToNonDelegatedEvent("invalid", instance), initTextarea(instance, props.value, props.defaultValue, props.children);
|
|
2110
|
+
}
|
|
2111
|
+
type = props.children;
|
|
2112
|
+
"string" !== typeof type && "number" !== typeof type && "bigint" !== typeof type || instance.textContent === "" + type || true === props.suppressHydrationWarning || checkForUnmatchedText(instance.textContent, type) ? (null != props.popover && (listenToNonDelegatedEvent("beforetoggle", instance), listenToNonDelegatedEvent("toggle", instance)), null != props.onScroll && listenToNonDelegatedEvent("scroll", instance), null != props.onScrollEnd && listenToNonDelegatedEvent("scrollend", instance), null != props.onClick && (instance.onclick = noop$1), instance = true) : instance = false;
|
|
2113
|
+
instance || throwOnHydrationMismatch(fiber, true);
|
|
2114
|
+
}
|
|
2115
|
+
function popToNextHostParent(fiber) {
|
|
2116
|
+
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
|
2117
|
+
switch (hydrationParentFiber.tag) {
|
|
2118
|
+
case 5:
|
|
2119
|
+
case 31:
|
|
2120
|
+
case 13:
|
|
2121
|
+
rootOrSingletonContext = false;
|
|
2122
|
+
return;
|
|
2123
|
+
case 27:
|
|
2124
|
+
case 3:
|
|
2125
|
+
rootOrSingletonContext = true;
|
|
2126
|
+
return;
|
|
2127
|
+
default:
|
|
2128
|
+
hydrationParentFiber = hydrationParentFiber.return;
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
function popHydrationState(fiber) {
|
|
2132
|
+
if (fiber !== hydrationParentFiber) return false;
|
|
2133
|
+
if (!isHydrating) return popToNextHostParent(fiber), isHydrating = true, false;
|
|
2134
|
+
var tag = fiber.tag, JSCompiler_temp;
|
|
2135
|
+
if (JSCompiler_temp = 3 !== tag && 27 !== tag) {
|
|
2136
|
+
if (JSCompiler_temp = 5 === tag)
|
|
2137
|
+
JSCompiler_temp = fiber.type, JSCompiler_temp = !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) || shouldSetTextContent(fiber.type, fiber.memoizedProps);
|
|
2138
|
+
JSCompiler_temp = !JSCompiler_temp;
|
|
2139
|
+
}
|
|
2140
|
+
JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);
|
|
2141
|
+
popToNextHostParent(fiber);
|
|
2142
|
+
if (13 === tag) {
|
|
2143
|
+
fiber = fiber.memoizedState;
|
|
2144
|
+
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
2145
|
+
if (!fiber) throw Error(formatProdErrorMessage(317));
|
|
2146
|
+
nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber);
|
|
2147
|
+
} else if (31 === tag) {
|
|
2148
|
+
fiber = fiber.memoizedState;
|
|
2149
|
+
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
2150
|
+
if (!fiber) throw Error(formatProdErrorMessage(317));
|
|
2151
|
+
nextHydratableInstance = getNextHydratableInstanceAfterHydrationBoundary(fiber);
|
|
2152
|
+
} else
|
|
2153
|
+
27 === tag ? (tag = nextHydratableInstance, isSingletonScope(fiber.type) ? (fiber = previousHydratableOnEnteringScopedSingleton, previousHydratableOnEnteringScopedSingleton = null, nextHydratableInstance = fiber) : nextHydratableInstance = tag) : nextHydratableInstance = hydrationParentFiber ? getNextHydratable(fiber.stateNode.nextSibling) : null;
|
|
2154
|
+
return true;
|
|
2155
|
+
}
|
|
2156
|
+
function resetHydrationState() {
|
|
2157
|
+
nextHydratableInstance = hydrationParentFiber = null;
|
|
2158
|
+
isHydrating = false;
|
|
2159
|
+
}
|
|
2160
|
+
function upgradeHydrationErrorsToRecoverable() {
|
|
2161
|
+
var queuedErrors = hydrationErrors;
|
|
2162
|
+
null !== queuedErrors && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = queuedErrors : workInProgressRootRecoverableErrors.push.apply(
|
|
2163
|
+
workInProgressRootRecoverableErrors,
|
|
2164
|
+
queuedErrors
|
|
2165
|
+
), hydrationErrors = null);
|
|
2166
|
+
return queuedErrors;
|
|
2167
|
+
}
|
|
2168
|
+
function queueHydrationError(error) {
|
|
2169
|
+
null === hydrationErrors ? hydrationErrors = [error] : hydrationErrors.push(error);
|
|
2170
|
+
}
|
|
2171
|
+
var valueCursor = createCursor(null);
|
|
2172
|
+
var currentlyRenderingFiber$1 = null;
|
|
2173
|
+
var lastContextDependency = null;
|
|
2174
|
+
function pushProvider(providerFiber, context, nextValue) {
|
|
2175
|
+
push(valueCursor, context._currentValue);
|
|
2176
|
+
context._currentValue = nextValue;
|
|
2177
|
+
}
|
|
2178
|
+
function popProvider(context) {
|
|
2179
|
+
context._currentValue = valueCursor.current;
|
|
2180
|
+
pop(valueCursor);
|
|
2181
|
+
}
|
|
2182
|
+
function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
|
|
2183
|
+
for (; null !== parent; ) {
|
|
2184
|
+
var alternate = parent.alternate;
|
|
2185
|
+
(parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, null !== alternate && (alternate.childLanes |= renderLanes2)) : null !== alternate && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2);
|
|
2186
|
+
if (parent === propagationRoot) break;
|
|
2187
|
+
parent = parent.return;
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
|
|
2191
|
+
var fiber = workInProgress2.child;
|
|
2192
|
+
null !== fiber && (fiber.return = workInProgress2);
|
|
2193
|
+
for (; null !== fiber; ) {
|
|
2194
|
+
var list = fiber.dependencies;
|
|
2195
|
+
if (null !== list) {
|
|
2196
|
+
var nextFiber = fiber.child;
|
|
2197
|
+
list = list.firstContext;
|
|
2198
|
+
a: for (; null !== list; ) {
|
|
2199
|
+
var dependency = list;
|
|
2200
|
+
list = fiber;
|
|
2201
|
+
for (var i = 0; i < contexts.length; i++)
|
|
2202
|
+
if (dependency.context === contexts[i]) {
|
|
2203
|
+
list.lanes |= renderLanes2;
|
|
2204
|
+
dependency = list.alternate;
|
|
2205
|
+
null !== dependency && (dependency.lanes |= renderLanes2);
|
|
2206
|
+
scheduleContextWorkOnParentPath(
|
|
2207
|
+
list.return,
|
|
2208
|
+
renderLanes2,
|
|
2209
|
+
workInProgress2
|
|
2210
|
+
);
|
|
2211
|
+
forcePropagateEntireTree || (nextFiber = null);
|
|
2212
|
+
break a;
|
|
2213
|
+
}
|
|
2214
|
+
list = dependency.next;
|
|
2215
|
+
}
|
|
2216
|
+
} else if (18 === fiber.tag) {
|
|
2217
|
+
nextFiber = fiber.return;
|
|
2218
|
+
if (null === nextFiber) throw Error(formatProdErrorMessage(341));
|
|
2219
|
+
nextFiber.lanes |= renderLanes2;
|
|
2220
|
+
list = nextFiber.alternate;
|
|
2221
|
+
null !== list && (list.lanes |= renderLanes2);
|
|
2222
|
+
scheduleContextWorkOnParentPath(nextFiber, renderLanes2, workInProgress2);
|
|
2223
|
+
nextFiber = null;
|
|
2224
|
+
} else nextFiber = fiber.child;
|
|
2225
|
+
if (null !== nextFiber) nextFiber.return = fiber;
|
|
2226
|
+
else
|
|
2227
|
+
for (nextFiber = fiber; null !== nextFiber; ) {
|
|
2228
|
+
if (nextFiber === workInProgress2) {
|
|
2229
|
+
nextFiber = null;
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
fiber = nextFiber.sibling;
|
|
2233
|
+
if (null !== fiber) {
|
|
2234
|
+
fiber.return = nextFiber.return;
|
|
2235
|
+
nextFiber = fiber;
|
|
2236
|
+
break;
|
|
2237
|
+
}
|
|
2238
|
+
nextFiber = nextFiber.return;
|
|
2239
|
+
}
|
|
2240
|
+
fiber = nextFiber;
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
function propagateParentContextChanges(current, workInProgress2, renderLanes2, forcePropagateEntireTree) {
|
|
2244
|
+
current = null;
|
|
2245
|
+
for (var parent = workInProgress2, isInsidePropagationBailout = false; null !== parent; ) {
|
|
2246
|
+
if (!isInsidePropagationBailout) {
|
|
2247
|
+
if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = true;
|
|
2248
|
+
else if (0 !== (parent.flags & 262144)) break;
|
|
2249
|
+
}
|
|
2250
|
+
if (10 === parent.tag) {
|
|
2251
|
+
var currentParent = parent.alternate;
|
|
2252
|
+
if (null === currentParent) throw Error(formatProdErrorMessage(387));
|
|
2253
|
+
currentParent = currentParent.memoizedProps;
|
|
2254
|
+
if (null !== currentParent) {
|
|
2255
|
+
var context = parent.type;
|
|
2256
|
+
objectIs(parent.pendingProps.value, currentParent.value) || (null !== current ? current.push(context) : current = [context]);
|
|
2257
|
+
}
|
|
2258
|
+
} else if (parent === hostTransitionProviderCursor.current) {
|
|
2259
|
+
currentParent = parent.alternate;
|
|
2260
|
+
if (null === currentParent) throw Error(formatProdErrorMessage(387));
|
|
2261
|
+
currentParent.memoizedState.memoizedState !== parent.memoizedState.memoizedState && (null !== current ? current.push(HostTransitionContext) : current = [HostTransitionContext]);
|
|
2262
|
+
}
|
|
2263
|
+
parent = parent.return;
|
|
2264
|
+
}
|
|
2265
|
+
null !== current && propagateContextChanges(
|
|
2266
|
+
workInProgress2,
|
|
2267
|
+
current,
|
|
2268
|
+
renderLanes2,
|
|
2269
|
+
forcePropagateEntireTree
|
|
2270
|
+
);
|
|
2271
|
+
workInProgress2.flags |= 262144;
|
|
2272
|
+
}
|
|
2273
|
+
function checkIfContextChanged(currentDependencies) {
|
|
2274
|
+
for (currentDependencies = currentDependencies.firstContext; null !== currentDependencies; ) {
|
|
2275
|
+
if (!objectIs(
|
|
2276
|
+
currentDependencies.context._currentValue,
|
|
2277
|
+
currentDependencies.memoizedValue
|
|
2278
|
+
))
|
|
2279
|
+
return true;
|
|
2280
|
+
currentDependencies = currentDependencies.next;
|
|
2281
|
+
}
|
|
2282
|
+
return false;
|
|
2283
|
+
}
|
|
2284
|
+
function prepareToReadContext(workInProgress2) {
|
|
2285
|
+
currentlyRenderingFiber$1 = workInProgress2;
|
|
2286
|
+
lastContextDependency = null;
|
|
2287
|
+
workInProgress2 = workInProgress2.dependencies;
|
|
2288
|
+
null !== workInProgress2 && (workInProgress2.firstContext = null);
|
|
2289
|
+
}
|
|
2290
|
+
function readContext(context) {
|
|
2291
|
+
return readContextForConsumer(currentlyRenderingFiber$1, context);
|
|
2292
|
+
}
|
|
2293
|
+
function readContextDuringReconciliation(consumer, context) {
|
|
2294
|
+
null === currentlyRenderingFiber$1 && prepareToReadContext(consumer);
|
|
2295
|
+
return readContextForConsumer(consumer, context);
|
|
2296
|
+
}
|
|
2297
|
+
function readContextForConsumer(consumer, context) {
|
|
2298
|
+
var value = context._currentValue;
|
|
2299
|
+
context = { context, memoizedValue: value, next: null };
|
|
2300
|
+
if (null === lastContextDependency) {
|
|
2301
|
+
if (null === consumer) throw Error(formatProdErrorMessage(308));
|
|
2302
|
+
lastContextDependency = context;
|
|
2303
|
+
consumer.dependencies = { lanes: 0, firstContext: context };
|
|
2304
|
+
consumer.flags |= 524288;
|
|
2305
|
+
} else lastContextDependency = lastContextDependency.next = context;
|
|
2306
|
+
return value;
|
|
2307
|
+
}
|
|
2308
|
+
var AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() {
|
|
2309
|
+
var listeners = [], signal = this.signal = {
|
|
2310
|
+
aborted: false,
|
|
2311
|
+
addEventListener: function(type, listener) {
|
|
2312
|
+
listeners.push(listener);
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
this.abort = function() {
|
|
2316
|
+
signal.aborted = true;
|
|
2317
|
+
listeners.forEach(function(listener) {
|
|
2318
|
+
return listener();
|
|
2319
|
+
});
|
|
2320
|
+
};
|
|
2321
|
+
};
|
|
2322
|
+
var scheduleCallback$2 = Scheduler.unstable_scheduleCallback;
|
|
2323
|
+
var NormalPriority = Scheduler.unstable_NormalPriority;
|
|
2324
|
+
var CacheContext = {
|
|
2325
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
2326
|
+
Consumer: null,
|
|
2327
|
+
Provider: null,
|
|
2328
|
+
_currentValue: null,
|
|
2329
|
+
_currentValue2: null,
|
|
2330
|
+
_threadCount: 0
|
|
2331
|
+
};
|
|
2332
|
+
function createCache() {
|
|
2333
|
+
return {
|
|
2334
|
+
controller: new AbortControllerLocal(),
|
|
2335
|
+
data: /* @__PURE__ */ new Map(),
|
|
2336
|
+
refCount: 0
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
function releaseCache(cache) {
|
|
2340
|
+
cache.refCount--;
|
|
2341
|
+
0 === cache.refCount && scheduleCallback$2(NormalPriority, function() {
|
|
2342
|
+
cache.controller.abort();
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
var currentEntangledListeners = null;
|
|
2346
|
+
var currentEntangledPendingCount = 0;
|
|
2347
|
+
var currentEntangledLane = 0;
|
|
2348
|
+
var currentEntangledActionThenable = null;
|
|
2349
|
+
function entangleAsyncAction(transition, thenable) {
|
|
2350
|
+
if (null === currentEntangledListeners) {
|
|
2351
|
+
var entangledListeners = currentEntangledListeners = [];
|
|
2352
|
+
currentEntangledPendingCount = 0;
|
|
2353
|
+
currentEntangledLane = requestTransitionLane();
|
|
2354
|
+
currentEntangledActionThenable = {
|
|
2355
|
+
status: "pending",
|
|
2356
|
+
value: void 0,
|
|
2357
|
+
then: function(resolve) {
|
|
2358
|
+
entangledListeners.push(resolve);
|
|
2359
|
+
}
|
|
2360
|
+
};
|
|
2361
|
+
}
|
|
2362
|
+
currentEntangledPendingCount++;
|
|
2363
|
+
thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);
|
|
2364
|
+
return thenable;
|
|
2365
|
+
}
|
|
2366
|
+
function pingEngtangledActionScope() {
|
|
2367
|
+
if (0 === --currentEntangledPendingCount && null !== currentEntangledListeners) {
|
|
2368
|
+
null !== currentEntangledActionThenable && (currentEntangledActionThenable.status = "fulfilled");
|
|
2369
|
+
var listeners = currentEntangledListeners;
|
|
2370
|
+
currentEntangledListeners = null;
|
|
2371
|
+
currentEntangledLane = 0;
|
|
2372
|
+
currentEntangledActionThenable = null;
|
|
2373
|
+
for (var i = 0; i < listeners.length; i++) (0, listeners[i])();
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
function chainThenableValue(thenable, result) {
|
|
2377
|
+
var listeners = [], thenableWithOverride = {
|
|
2378
|
+
status: "pending",
|
|
2379
|
+
value: null,
|
|
2380
|
+
reason: null,
|
|
2381
|
+
then: function(resolve) {
|
|
2382
|
+
listeners.push(resolve);
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
thenable.then(
|
|
2386
|
+
function() {
|
|
2387
|
+
thenableWithOverride.status = "fulfilled";
|
|
2388
|
+
thenableWithOverride.value = result;
|
|
2389
|
+
for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);
|
|
2390
|
+
},
|
|
2391
|
+
function(error) {
|
|
2392
|
+
thenableWithOverride.status = "rejected";
|
|
2393
|
+
thenableWithOverride.reason = error;
|
|
2394
|
+
for (error = 0; error < listeners.length; error++)
|
|
2395
|
+
(0, listeners[error])(void 0);
|
|
2396
|
+
}
|
|
2397
|
+
);
|
|
2398
|
+
return thenableWithOverride;
|
|
2399
|
+
}
|
|
2400
|
+
var prevOnStartTransitionFinish = ReactSharedInternals.S;
|
|
2401
|
+
ReactSharedInternals.S = function(transition, returnValue) {
|
|
2402
|
+
globalMostRecentTransitionTime = now();
|
|
2403
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue);
|
|
2404
|
+
null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue);
|
|
2405
|
+
};
|
|
2406
|
+
var resumedCache = createCursor(null);
|
|
2407
|
+
function peekCacheFromPool() {
|
|
2408
|
+
var cacheResumedFromPreviousRender = resumedCache.current;
|
|
2409
|
+
return null !== cacheResumedFromPreviousRender ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache;
|
|
2410
|
+
}
|
|
2411
|
+
function pushTransition(offscreenWorkInProgress, prevCachePool) {
|
|
2412
|
+
null === prevCachePool ? push(resumedCache, resumedCache.current) : push(resumedCache, prevCachePool.pool);
|
|
2413
|
+
}
|
|
2414
|
+
function getSuspendedCache() {
|
|
2415
|
+
var cacheFromPool = peekCacheFromPool();
|
|
2416
|
+
return null === cacheFromPool ? null : { parent: CacheContext._currentValue, pool: cacheFromPool };
|
|
2417
|
+
}
|
|
2418
|
+
var SuspenseException = Error(formatProdErrorMessage(460));
|
|
2419
|
+
var SuspenseyCommitException = Error(formatProdErrorMessage(474));
|
|
2420
|
+
var SuspenseActionException = Error(formatProdErrorMessage(542));
|
|
2421
|
+
var noopSuspenseyCommitThenable = { then: function() {
|
|
2422
|
+
} };
|
|
2423
|
+
function isThenableResolved(thenable) {
|
|
2424
|
+
thenable = thenable.status;
|
|
2425
|
+
return "fulfilled" === thenable || "rejected" === thenable;
|
|
2426
|
+
}
|
|
2427
|
+
function trackUsedThenable(thenableState2, thenable, index3) {
|
|
2428
|
+
index3 = thenableState2[index3];
|
|
2429
|
+
void 0 === index3 ? thenableState2.push(thenable) : index3 !== thenable && (thenable.then(noop$1, noop$1), thenable = index3);
|
|
2430
|
+
switch (thenable.status) {
|
|
2431
|
+
case "fulfilled":
|
|
2432
|
+
return thenable.value;
|
|
2433
|
+
case "rejected":
|
|
2434
|
+
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
|
|
2435
|
+
default:
|
|
2436
|
+
if ("string" === typeof thenable.status) thenable.then(noop$1, noop$1);
|
|
2437
|
+
else {
|
|
2438
|
+
thenableState2 = workInProgressRoot;
|
|
2439
|
+
if (null !== thenableState2 && 100 < thenableState2.shellSuspendCounter)
|
|
2440
|
+
throw Error(formatProdErrorMessage(482));
|
|
2441
|
+
thenableState2 = thenable;
|
|
2442
|
+
thenableState2.status = "pending";
|
|
2443
|
+
thenableState2.then(
|
|
2444
|
+
function(fulfilledValue) {
|
|
2445
|
+
if ("pending" === thenable.status) {
|
|
2446
|
+
var fulfilledThenable = thenable;
|
|
2447
|
+
fulfilledThenable.status = "fulfilled";
|
|
2448
|
+
fulfilledThenable.value = fulfilledValue;
|
|
2449
|
+
}
|
|
2450
|
+
},
|
|
2451
|
+
function(error) {
|
|
2452
|
+
if ("pending" === thenable.status) {
|
|
2453
|
+
var rejectedThenable = thenable;
|
|
2454
|
+
rejectedThenable.status = "rejected";
|
|
2455
|
+
rejectedThenable.reason = error;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
);
|
|
2459
|
+
}
|
|
2460
|
+
switch (thenable.status) {
|
|
2461
|
+
case "fulfilled":
|
|
2462
|
+
return thenable.value;
|
|
2463
|
+
case "rejected":
|
|
2464
|
+
throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
|
|
2465
|
+
}
|
|
2466
|
+
suspendedThenable = thenable;
|
|
2467
|
+
throw SuspenseException;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
function resolveLazy(lazyType) {
|
|
2471
|
+
try {
|
|
2472
|
+
var init = lazyType._init;
|
|
2473
|
+
return init(lazyType._payload);
|
|
2474
|
+
} catch (x) {
|
|
2475
|
+
if (null !== x && "object" === typeof x && "function" === typeof x.then)
|
|
2476
|
+
throw suspendedThenable = x, SuspenseException;
|
|
2477
|
+
throw x;
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
var suspendedThenable = null;
|
|
2481
|
+
function getSuspendedThenable() {
|
|
2482
|
+
if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));
|
|
2483
|
+
var thenable = suspendedThenable;
|
|
2484
|
+
suspendedThenable = null;
|
|
2485
|
+
return thenable;
|
|
2486
|
+
}
|
|
2487
|
+
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
|
|
2488
|
+
if (rejectedReason === SuspenseException || rejectedReason === SuspenseActionException)
|
|
2489
|
+
throw Error(formatProdErrorMessage(483));
|
|
2490
|
+
}
|
|
2491
|
+
var thenableState$1 = null;
|
|
2492
|
+
var thenableIndexCounter$1 = 0;
|
|
2493
|
+
function unwrapThenable(thenable) {
|
|
2494
|
+
var index3 = thenableIndexCounter$1;
|
|
2495
|
+
thenableIndexCounter$1 += 1;
|
|
2496
|
+
null === thenableState$1 && (thenableState$1 = []);
|
|
2497
|
+
return trackUsedThenable(thenableState$1, thenable, index3);
|
|
2498
|
+
}
|
|
2499
|
+
function coerceRef(workInProgress2, element) {
|
|
2500
|
+
element = element.props.ref;
|
|
2501
|
+
workInProgress2.ref = void 0 !== element ? element : null;
|
|
2502
|
+
}
|
|
2503
|
+
function throwOnInvalidObjectTypeImpl(returnFiber, newChild) {
|
|
2504
|
+
if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)
|
|
2505
|
+
throw Error(formatProdErrorMessage(525));
|
|
2506
|
+
returnFiber = Object.prototype.toString.call(newChild);
|
|
2507
|
+
throw Error(
|
|
2508
|
+
formatProdErrorMessage(
|
|
2509
|
+
31,
|
|
2510
|
+
"[object Object]" === returnFiber ? "object with keys {" + Object.keys(newChild).join(", ") + "}" : returnFiber
|
|
2511
|
+
)
|
|
2512
|
+
);
|
|
2513
|
+
}
|