openplanr 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/cli/commands/artifact-design-share.d.ts +9 -0
  3. package/dist/cli/commands/artifact-design-share.d.ts.map +1 -0
  4. package/dist/cli/commands/artifact-design-share.js +200 -0
  5. package/dist/cli/commands/artifact-design-share.js.map +1 -0
  6. package/dist/cli/commands/artifact.d.ts.map +1 -1
  7. package/dist/cli/commands/artifact.js +5 -18
  8. package/dist/cli/commands/artifact.js.map +1 -1
  9. package/dist/cli/commands/ship.d.ts.map +1 -1
  10. package/dist/cli/commands/ship.js +2 -0
  11. package/dist/cli/commands/ship.js.map +1 -1
  12. package/dist/dashboard/.vite/manifest.json +2 -2
  13. package/dist/dashboard/assets/index-Cv4Vwhuw.css +2 -0
  14. package/dist/dashboard/assets/index-CvQAlBy3.js +75 -0
  15. package/dist/dashboard/assets/index-CvQAlBy3.js.map +1 -0
  16. package/dist/dashboard/dashboard-manifest.json +14 -14
  17. package/dist/dashboard/index.html +2 -2
  18. package/dist/services/design-artifact-service.d.ts +20 -1
  19. package/dist/services/design-artifact-service.d.ts.map +1 -1
  20. package/dist/services/design-artifact-service.js +137 -18
  21. package/dist/services/design-artifact-service.js.map +1 -1
  22. package/dist/services/ship-checks/contract.d.ts +3 -1
  23. package/dist/services/ship-checks/contract.d.ts.map +1 -1
  24. package/dist/services/ship-checks/contract.js +1 -1
  25. package/dist/services/ship-checks/contract.js.map +1 -1
  26. package/dist/services/ship-checks/discover.d.ts.map +1 -1
  27. package/dist/services/ship-checks/discover.js +2 -1
  28. package/dist/services/ship-checks/discover.js.map +1 -1
  29. package/dist/services/ship-checks/package-contents.d.ts +4 -0
  30. package/dist/services/ship-checks/package-contents.d.ts.map +1 -0
  31. package/dist/services/ship-checks/package-contents.js +91 -0
  32. package/dist/services/ship-checks/package-contents.js.map +1 -0
  33. package/dist/services/ship-checks/packages.d.ts +2 -0
  34. package/dist/services/ship-checks/packages.d.ts.map +1 -1
  35. package/dist/services/ship-checks/packages.js +4 -0
  36. package/dist/services/ship-checks/packages.js.map +1 -1
  37. package/dist/services/ship-checks/scope.js +2 -1
  38. package/dist/services/ship-checks/scope.js.map +1 -1
  39. package/dist/utils/splice-managed-block.js +1 -1
  40. package/dist/utils/splice-managed-block.js.map +1 -1
  41. package/docs/CLI.md +38 -1
  42. package/lib/host-packages/adapter-registry.json +5 -5
  43. package/lib/host-packages/capability-map.json +1 -1
  44. package/lib/host-packages/claude/.claude-plugin/marketplace.json +3 -3
  45. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +6 -6
  46. package/lib/host-packages/claude/openplanr/.openplanr-content.json +67 -123
  47. package/lib/host-packages/claude/openplanr/README.md +12 -12
  48. package/lib/host-packages/claude/openplanr/references/agents/shared/modes/shared/task-context-resolution.md +4 -4
  49. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  50. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +26 -26
  51. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +850 -56
  52. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  53. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  54. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  55. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  56. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs} +762 -223
  57. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  58. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  59. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +107 -37
  60. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -27
  61. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  62. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5684
  63. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  64. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  65. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  66. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  67. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  68. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +545 -4781
  69. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +219 -452
  70. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  71. package/lib/host-packages/claude/openplanr/skills/delegate/SKILL.md +2 -1
  72. package/lib/host-packages/claude/openplanr/skills/delegate/references/integration-review.md +26 -20
  73. package/lib/host-packages/claude/openplanr/skills/delegate/references/operator-guide.md +25 -1
  74. package/lib/host-packages/claude/openplanr/skills/delegate/references/run-handoff.md +2 -2
  75. package/lib/host-packages/claude/openplanr/skills/delegate/references/worktree-custody.md +17 -9
  76. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
  77. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
  78. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
  79. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/custody.mjs +217 -10
  80. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
  81. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
  82. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
  83. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
  84. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
  85. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
  86. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
  87. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
  88. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
  89. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +14 -8
  90. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +14 -8
  91. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +14 -8
  92. package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +1 -0
  93. package/lib/host-packages/claude/openplanr/skills/investigate/references/fail-first.md +40 -0
  94. package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +22 -10
  95. package/lib/host-packages/claude/openplanr/skills/ship/references/fail-first.md +40 -0
  96. package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +7 -3
  97. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +65 -121
  98. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  99. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/integration-review.md +26 -20
  100. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/operator-guide.md +25 -1
  101. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/run-handoff.md +2 -2
  102. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/references/worktree-custody.md +17 -9
  103. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/claude.mjs +15 -3
  104. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/codex.mjs +38 -2
  105. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/adapters/native.mjs +5 -0
  106. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/custody.mjs +217 -10
  107. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/handoff.mjs +1080 -0
  108. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integrate.mjs +96 -201
  109. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-files.mjs +3 -382
  110. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/presentation.mjs +29 -12
  111. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-contract.mjs +11 -0
  112. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-execution.mjs +1 -1
  113. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-lifecycle.mjs +14 -10
  114. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-preparation.mjs +4 -0
  115. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/run-record.mjs +2 -2
  116. package/lib/host-packages/cursor/openplanr/rules/planr-delegate.mdc +2 -1
  117. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +14 -8
  118. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +14 -8
  119. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +14 -8
  120. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/fail-first.md +40 -0
  121. package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +1 -0
  122. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/fail-first.md +40 -0
  123. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +7 -3
  124. package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +22 -10
  125. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  126. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +26 -26
  127. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +850 -56
  128. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  129. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  130. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  131. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  132. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs → design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs} +762 -223
  133. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  134. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  135. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +107 -37
  136. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -27
  137. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  138. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5684
  139. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  140. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  141. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  142. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  143. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  144. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +545 -4781
  145. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +219 -452
  146. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  147. package/lib/host-packages/openai/.claude-plugin/marketplace.json +3 -3
  148. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +2 -2
  149. package/lib/host-packages/openai/openplanr/.openplanr-content.json +68 -124
  150. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +2 -4
  151. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +26 -26
  152. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +850 -56
  153. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review-state-store.mjs +45 -0
  154. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +65 -74
  155. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +0 -1
  156. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share-cli-bridge.mjs +321 -0
  157. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-d707e49b.mjs} +762 -223
  158. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-9f6918b0.mjs} +537 -5
  159. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-design-support-0bac378d.mjs +137 -0
  160. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +107 -37
  161. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +0 -27
  162. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +138 -133
  163. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +1 -5684
  164. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-artifact-review-ui.js +2568 -0
  165. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +10 -74
  166. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  167. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/share.js +8 -2
  168. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  169. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +545 -4781
  170. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +219 -452
  171. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  172. package/lib/host-packages/openai/openplanr/skills/delegate/SKILL.md +2 -1
  173. package/lib/host-packages/openai/openplanr/skills/delegate/openplanr.skill.json +1 -1
  174. package/lib/host-packages/openai/openplanr/skills/delegate/references/integration-review.md +26 -20
  175. package/lib/host-packages/openai/openplanr/skills/delegate/references/operator-guide.md +25 -1
  176. package/lib/host-packages/openai/openplanr/skills/delegate/references/run-handoff.md +2 -2
  177. package/lib/host-packages/openai/openplanr/skills/delegate/references/worktree-custody.md +17 -9
  178. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/claude.mjs +15 -3
  179. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/codex.mjs +38 -2
  180. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/adapters/native.mjs +5 -0
  181. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/custody.mjs +217 -10
  182. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/handoff.mjs +1080 -0
  183. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integrate.mjs +96 -201
  184. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-files.mjs +3 -382
  185. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/presentation.mjs +29 -12
  186. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-contract.mjs +11 -0
  187. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-execution.mjs +1 -1
  188. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-lifecycle.mjs +14 -10
  189. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-preparation.mjs +4 -0
  190. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/run-record.mjs +2 -2
  191. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +14 -8
  192. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +14 -8
  193. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +14 -8
  194. package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +1 -0
  195. package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +12 -1
  196. package/lib/host-packages/openai/openplanr/skills/investigate/references/fail-first.md +40 -0
  197. package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +22 -10
  198. package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +12 -1
  199. package/lib/host-packages/openai/openplanr/skills/ship/references/fail-first.md +40 -0
  200. package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +7 -3
  201. package/package.json +8 -8
  202. package/dist/dashboard/assets/index-BU5fzjyz.css +0 -1
  203. package/dist/dashboard/assets/index-B_96uzCl.js +0 -572
  204. package/dist/dashboard/assets/index-B_96uzCl.js.map +0 -1
  205. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  206. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  207. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  208. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  209. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  210. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
  211. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  212. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  213. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
  214. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  215. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  216. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  217. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  218. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  219. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  220. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  221. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  222. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  223. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  224. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  225. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
  226. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/integration-transaction.mjs +0 -958
  227. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  228. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  229. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  230. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  231. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  232. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
  233. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  234. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  235. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
  236. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  237. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  238. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  239. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  240. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  241. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  242. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  243. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  244. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  245. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  246. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  247. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +0 -555
  248. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-compression.mjs +0 -4180
  249. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +0 -647
  250. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +0 -129
  251. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +0 -698
  252. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-25485dbf1cb2.mjs +0 -24
  253. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +0 -1993
  254. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +0 -222
  255. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs +0 -5907
  256. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +0 -198
  257. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +0 -4175
  258. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +0 -65
  259. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +0 -1755
  260. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +0 -62
  261. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +0 -2633
  262. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.1.0/artifact-paste.schema.json +0 -49
  263. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-review-workspace.schema.json +0 -108
  264. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-create.schema.json +0 -170
  265. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-event.schema.json +0 -97
  266. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0/design-workspace-revision.schema.json +0 -56
  267. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/integration-transaction.mjs +0 -958
@@ -1,572 +0,0 @@
1
- var NN=Object.defineProperty;var nw=e=>{throw TypeError(e)};var RN=(e,t,i)=>t in e?NN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var xu=(e,t,i)=>RN(e,typeof t!="symbol"?t+"":t,i),Cg=(e,t,i)=>t.has(e)||nw("Cannot "+i);var J=(e,t,i)=>(Cg(e,t,"read from private field"),i?i.call(e):t.get(e)),ze=(e,t,i)=>t.has(e)?nw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),je=(e,t,i,s)=>(Cg(e,t,"write to private field"),s?s.call(e,i):t.set(e,i),i),gn=(e,t,i)=>(Cg(e,t,"access private method"),i);var ju=(e,t,i,s)=>({set _(c){je(e,t,c,i)},get _(){return J(e,t,s)}});function DN(e,t){for(var i=0;i<t.length;i++){const s=t[i];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in e)){const d=Object.getOwnPropertyDescriptor(s,c);d&&Object.defineProperty(e,c,d.get?d:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function i(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(c){if(c.ep)return;c.ep=!0;const d=i(c);fetch(c.href,d)}})();function TN(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sg={exports:{}},ll={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var aw;function kN(){if(aw)return ll;aw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,c,d){var u=null;if(d!==void 0&&(u=""+d),c.key!==void 0&&(u=""+c.key),"key"in c){d={};for(var p in c)p!=="key"&&(d[p]=c[p])}else d=c;return c=d.ref,{$$typeof:e,type:s,key:u,ref:c!==void 0?c:null,props:d}}return ll.Fragment=t,ll.jsx=i,ll.jsxs=i,ll}var iw;function MN(){return iw||(iw=1,Sg.exports=kN()),Sg.exports}var r=MN(),Og={exports:{}},Ce={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var rw;function GN(){if(rw)return Ce;rw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),E=Symbol.for("react.view_transition"),b=Symbol.iterator;function w(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,Q={};function S(k,ae,Ae){this.props=k,this.context=ae,this.refs=Q,this.updater=Ae||j}S.prototype.isReactComponent={},S.prototype.setState=function(k,ae){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,ae,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=S.prototype;function _(k,ae,Ae){this.props=k,this.context=ae,this.refs=Q,this.updater=Ae||j}var O=_.prototype=new C;O.constructor=_,I(O,S.prototype),O.isPureReactComponent=!0;var T=Array.isArray;function N(){}var $={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function U(k,ae,Ae){var R=Ae.ref;return{$$typeof:e,type:k,key:ae,ref:R!==void 0?R:null,props:Ae}}function Z(k,ae){return U(k.type,ae,k.props)}function q(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function de(k){var ae={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Ae){return ae[Ae]})}var re=/\/+/g;function pe(k,ae){return typeof k=="object"&&k!==null&&k.key!=null?de(""+k.key):ae.toString(36)}function K(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(N,N):(k.status="pending",k.then(function(ae){k.status==="pending"&&(k.status="fulfilled",k.value=ae)},function(ae){k.status==="pending"&&(k.status="rejected",k.reason=ae)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function ie(k,ae,Ae,R,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case y:return fe=k._init,ie(fe(k._payload),ae,Ae,R,F)}}if(fe)return F=F(k),fe=R===""?"."+pe(k,0):R,T(F)?(Ae="",fe!=null&&(Ae=fe.replace(re,"$&/")+"/"),ie(F,ae,Ae,"",function(Ge){return Ge})):F!=null&&(q(F)&&(F=Z(F,Ae+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(re,"$&/")+"/")+fe)),ae.push(F)),1;fe=0;var se=R===""?".":R+":";if(T(k))for(var ce=0;ce<k.length;ce++)R=k[ce],X=se+pe(R,ce),fe+=ie(R,ae,Ae,X,F);else if(ce=w(k),typeof ce=="function")for(k=ce.call(k),ce=0;!(R=k.next()).done;)R=R.value,X=se+pe(R,ce++),fe+=ie(R,ae,Ae,X,F);else if(X==="object"){if(typeof k.then=="function")return ie(K(k),ae,Ae,R,F);throw ae=String(k),Error("Objects are not valid as a React child (found: "+(ae==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":ae)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,ae,Ae){if(k==null)return k;var R=[],F=0;return ie(k,R,"","",function(X){return ae.call(Ae,X,F++)}),R}function le(k){if(k._status===-1){var ae=k._result,Ae=ae();Ae.then(function(R){(k._status===0||k._status===-1)&&(k._status=1,k._result=R,Ae.status===void 0&&(Ae.status="fulfilled",Ae.value=R))},function(R){(k._status===0||k._status===-1)&&(k._status=2,k._result=R,Ae.status===void 0&&(Ae.status="rejected",Ae.reason=R))}),k._status===-1&&(k._status=0,k._result=Ae)}if(k._status===1)return k._result.default;throw k._result}var oe=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ae=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(ae))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function xe(k){var ae=$.T,Ae={};Ae.types=ae!==null?ae.types:null,$.T=Ae;try{var R=k(),F=$.S;F!==null&&F(Ae,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(N,oe)}catch(X){oe(X)}finally{ae!==null&&Ae.types!==null&&(ae.types=Ae.types),$.T=ae}}function Me(k){var ae=$.T;if(ae!==null){var Ae=ae.types;Ae===null?ae.types=[k]:Ae.indexOf(k)===-1&&Ae.push(k)}else xe(Me.bind(null,k))}var _e={map:W,forEach:function(k,ae,Ae){W(k,function(){ae.apply(this,arguments)},Ae)},count:function(k){var ae=0;return W(k,function(){ae++}),ae},toArray:function(k){return W(k,function(ae){return ae})||[]},only:function(k){if(!q(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ce.Activity=A,Ce.Children=_e,Ce.Component=S,Ce.Fragment=i,Ce.Profiler=c,Ce.PureComponent=_,Ce.StrictMode=s,Ce.Suspense=g,Ce.ViewTransition=E,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(k){return $.H.useMemoCache(k)}},Ce.addTransitionType=Me,Ce.cache=function(k){return function(){return k.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(k,ae,Ae){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var R=I({},k.props),F=k.key;if(ae!=null)for(X in ae.key!==void 0&&(F=""+ae.key),ae)!G.call(ae,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&ae.ref===void 0||(R[X]=ae[X]);var X=arguments.length-2;if(X===1)R.children=Ae;else if(1<X){for(var fe=Array(X),se=0;se<X;se++)fe[se]=arguments[se+2];R.children=fe}return U(k.type,F,R)},Ce.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:d,_context:k},k},Ce.createElement=function(k,ae,Ae){var R,F={},X=null;if(ae!=null)for(R in ae.key!==void 0&&(X=""+ae.key),ae)G.call(ae,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(F[R]=ae[R]);var fe=arguments.length-2;if(fe===1)F.children=Ae;else if(1<fe){for(var se=Array(fe),ce=0;ce<fe;ce++)se[ce]=arguments[ce+2];F.children=se}if(k&&k.defaultProps)for(R in fe=k.defaultProps,fe)F[R]===void 0&&(F[R]=fe[R]);return U(k,X,F)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(k){return{$$typeof:p,render:k}},Ce.isValidElement=q,Ce.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:le}},Ce.memo=function(k,ae){return{$$typeof:m,type:k,compare:ae===void 0?null:ae}},Ce.startTransition=xe,Ce.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},Ce.use=function(k){return $.H.use(k)},Ce.useActionState=function(k,ae,Ae){return $.H.useActionState(k,ae,Ae)},Ce.useCallback=function(k,ae){return $.H.useCallback(k,ae)},Ce.useContext=function(k){return $.H.useContext(k)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(k,ae){return $.H.useDeferredValue(k,ae)},Ce.useEffect=function(k,ae){return $.H.useEffect(k,ae)},Ce.useEffectEvent=function(k){return $.H.useEffectEvent(k)},Ce.useId=function(){return $.H.useId()},Ce.useImperativeHandle=function(k,ae,Ae){return $.H.useImperativeHandle(k,ae,Ae)},Ce.useInsertionEffect=function(k,ae){return $.H.useInsertionEffect(k,ae)},Ce.useLayoutEffect=function(k,ae){return $.H.useLayoutEffect(k,ae)},Ce.useMemo=function(k,ae){return $.H.useMemo(k,ae)},Ce.useOptimistic=function(k,ae){return $.H.useOptimistic(k,ae)},Ce.useReducer=function(k,ae,Ae){return $.H.useReducer(k,ae,Ae)},Ce.useRef=function(k){return $.H.useRef(k)},Ce.useState=function(k){return $.H.useState(k)},Ce.useSyncExternalStore=function(k,ae,Ae){return $.H.useSyncExternalStore(k,ae,Ae)},Ce.useTransition=function(){return $.H.useTransition()},Ce.version="19.3.1",Ce}var sw;function ym(){return sw||(sw=1,Og.exports=GN()),Og.exports}var B=ym();const YN=TN(B),Gs=DN({__proto__:null,default:YN},[B]);var _g={exports:{}},dl={},Ng={exports:{}},Rg={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var ow;function HN(){return ow||(ow=1,(function(e){function t(K,ie){var W=K.length;K.push(ie);e:for(;0<W;){var le=W-1>>>1,oe=K[le];if(0<c(oe,ie))K[le]=ie,K[W]=oe,W=le;else break e}}function i(K){return K.length===0?null:K[0]}function s(K){if(K.length===0)return null;var ie=K[0],W=K.pop();if(W!==ie){K[0]=W;e:for(var le=0,oe=K.length,xe=oe>>>1;le<xe;){var Me=2*(le+1)-1,_e=K[Me],k=Me+1,ae=K[k];if(0>c(_e,W))k<oe&&0>c(ae,_e)?(K[le]=ae,K[k]=W,le=k):(K[le]=_e,K[Me]=W,le=Me);else if(k<oe&&0>c(ae,W))K[le]=ae,K[k]=W,le=k;else break e}}return ie}function c(K,ie){var W=K.sortIndex-ie.sortIndex;return W!==0?W:K.id-ie.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,p=u.now();e.unstable_now=function(){return u.now()-p}}var g=[],m=[],y=1,A=null,E=3,b=!1,w=!1,j=!1,I=!1,Q=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function _(K){for(var ie=i(m);ie!==null;){if(ie.callback===null)s(m);else if(ie.startTime<=K)s(m),ie.sortIndex=ie.expirationTime,t(g,ie);else break;ie=i(m)}}function O(K){if(j=!1,_(K),!w)if(i(g)!==null)w=!0,T||(T=!0,q());else{var ie=i(m);ie!==null&&pe(O,ie.startTime-K)}}var T=!1,N=-1,$=5,G=-1;function U(){return I?!0:!(e.unstable_now()-G<$)}function Z(){if(I=!1,T){var K=e.unstable_now();G=K;var ie=!0;try{e:{w=!1,j&&(j=!1,S(N),N=-1),b=!0;var W=E;try{t:{for(_(K),A=i(g);A!==null&&!(A.expirationTime>K&&U());){var le=A.callback;if(typeof le=="function"){A.callback=null,E=A.priorityLevel;var oe=le(A.expirationTime<=K);if(K=e.unstable_now(),typeof oe=="function"){A.callback=oe,_(K),ie=!0;break t}A===i(g)&&s(g),_(K)}else s(g);A=i(g)}if(A!==null)ie=!0;else{var xe=i(m);xe!==null&&pe(O,xe.startTime-K),ie=!1}}break e}finally{A=null,E=W,b=!1}ie=void 0}}finally{ie?q():T=!1}}}var q;if(typeof C=="function")q=function(){C(Z)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,re=de.port2;de.port1.onmessage=Z,q=function(){re.postMessage(null)}}else q=function(){Q(Z,0)};function pe(K,ie){N=Q(function(){K(e.unstable_now())},ie)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(K){switch(E){case 1:case 2:case 3:var ie=3;break;default:ie=E}var W=E;E=ie;try{return K()}finally{E=W}},e.unstable_requestPaint=function(){I=!0},e.unstable_runWithPriority=function(K,ie){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var W=E;E=K;try{return ie()}finally{E=W}},e.unstable_scheduleCallback=function(K,ie,W){var le=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?le+W:le):W=le,K){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=W+oe,K={id:y++,callback:ie,priorityLevel:K,startTime:W,expirationTime:oe,sortIndex:-1},W>le?(K.sortIndex=W,t(m,K),i(g)===null&&K===i(m)&&(j?(S(N),N=-1):j=!0,pe(O,W-le))):(K.sortIndex=oe,t(g,K),w||b||(w=!0,T||(T=!0,q()))),K},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(K){var ie=E;return function(){var W=E;E=ie;try{return K.apply(this,arguments)}finally{E=W}}}})(Rg)),Rg}var cw;function zN(){return cw||(cw=1,Ng.exports=HN()),Ng.exports}var Dg={exports:{}},dn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var lw;function UN(){if(lw)return dn;lw=1;var e=ym();function t(y){var A="https://react.dev/errors/"+y;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)A+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+y+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},c=Symbol.for("react.portal"),d=Symbol.for("react.recoverable"),u=Symbol.for("react.optimistic_key");function p(y,A,E){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:b===u?u:""+b,children:y,containerInfo:A,implementation:E}}var g=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,A){if(y==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,dn.browser=function(y){return{$$typeof:d,_reason:y}},dn.createPortal=function(y,A){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return p(y,A,null,E)},dn.flushSync=function(y){var A=g.T,E=s.p;try{if(g.T=null,s.p=2,y)return y()}finally{g.T=A,s.p=E,s.d.f()}},dn.preconnect=function(y,A){typeof y=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,s.d.C(y,A))},dn.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},dn.preinit=function(y,A){if(typeof y=="string"&&A&&typeof A.as=="string"){var E=A.as,b=m(E,A.crossOrigin),w=typeof A.integrity=="string"?A.integrity:void 0,j=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;E==="style"?s.d.S(y,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:j}):E==="script"&&s.d.X(y,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},dn.preinitModule=function(y,A){if(typeof y=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var E=m(A.as,A.crossOrigin);s.d.M(y,{crossOrigin:E,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0})}}else A==null&&s.d.M(y)},dn.preload=function(y,A){if(typeof y=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var E=A.as,b=m(E,A.crossOrigin);s.d.L(y,E,{crossOrigin:b,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},dn.preloadModule=function(y,A){if(typeof y=="string")if(A){var E=m(A.as,A.crossOrigin);s.d.m(y,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:E,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0})}else s.d.m(y)},dn.requestFormReset=function(y){s.d.r(y)},dn.unstable_batchedUpdates=function(y,A){return y(A)},dn.useFormState=function(y,A,E){return g.H.useFormState(y,A,E)},dn.useFormStatus=function(){return g.H.useHostTransitionStatus()},dn.version="19.3.1",dn}var dw;function Sj(){if(dw)return Dg.exports;dw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dg.exports=UN(),Dg.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var uw;function $N(){if(uw)return dl;uw=1;var e=zN(),t=ym(),i=Sj();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function d(n){for(var a=n,o=a;o&&!o.alternate;)a=o,(a.flags&4098)!==0&&(n=a.return),o=a.return;for(;a.return;)a=a.return;return a.tag===3?n:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function g(n){if(d(n)!==n)throw Error(s(188))}function m(n){var a=n.alternate;if(!a){if(a=d(n),a===null)throw Error(s(188));return a!==n?null:n}for(var o=n,l=a;;){var f=o.return;if(f===null)break;var h=f.alternate;if(h===null){if(l=f.return,l!==null){o=l;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===o)return g(f),n;if(h===l)return g(f),a;h=h.sibling}throw Error(s(188))}if(o.return!==l.return)o=f,l=h;else{for(var v=!1,x=f.child;x;){if(x===o){v=!0,o=f,l=h;break}if(x===l){v=!0,l=f,o=h;break}x=x.sibling}if(!v){for(x=h.child;x;){if(x===o){v=!0,o=h,l=f;break}if(x===l){v=!0,l=h,o=f;break}x=x.sibling}if(!v)throw Error(s(189))}}if(o.alternate!==l)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}function A(n,a,o,l,f,h){for(;n!==null;){if((n.tag===5||n.tag===27||n.tag===6)&&o(n,l,f,h)||(n.tag!==22||n.memoizedState===null)&&(a||n.tag!==5&&n.tag!==27)&&A(n.child,a,o,l,f,h))return!0;n=n.sibling}return!1}function E(n){for(n=n.return;n!==null;){if(n.tag===3||n.tag===5||n.tag===27)return n;n=n.return}return null}function b(n){var a=!1;for(n=n.return;n!==null&&(n.tag===4&&(a=!0),!(n.tag===3||n.tag===5||n.tag===27));)n=n.return;return a}function w(n){var a=[null,null],o=E(n);return o===null||j(a,n,o.child,{foundSelf:!1}),a}function j(n,a,o,l){for(;o!==null;){if(o===a)l.foundSelf=!0;else if(o.tag===5||o.tag===27||o.tag===6){if(l.foundSelf)return n[1]=o,!0;n[0]=o}else if((o.tag!==22||o.memoizedState===null)&&j(n,a,o.child,l))return!0;o=o.sibling}return!1}function I(n){switch(n.tag){case 5:case 27:case 6:return n.stateNode;case 3:return n.stateNode.containerInfo;default:throw Error(s(559))}}var Q=null,S=null;function C(n,a,o){return n===o?!0:n===a?(Q=n,!0):!1}function _(n,a,o){return n===o?(S=n,!1):n===a?(S!==null&&(Q=n),!0):!1}function O(n){if(n===null)return null;do n=n===null?null:n.return;while(n&&n.tag!==5&&n.tag!==27&&n.tag!==3);return n||null}function T(n,a,o){for(var l=0,f=n;f;f=o(f))l++;f=0;for(var h=a;h;h=o(h))f++;for(;0<l-f;)n=o(n),l--;for(;0<f-l;)a=o(a),f--;for(;l--;){if(n===a||a!==null&&n===a.alternate)return n;n=o(n),a=o(a)}return null}var N=Object.assign,$=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),Me=Symbol.for("react.legacy_hidden"),_e=Symbol.for("react.memo_cache_sentinel"),k=Symbol.for("react.view_transition"),ae=Symbol.for("react.recoverable"),Ae=Symbol.iterator;function R(n){return n===null||typeof n!="object"?null:(n=Ae&&n[Ae]||n["@@iterator"],typeof n=="function"?n:null)}var F=Symbol.for("react.client.reference");function X(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===F?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Z:return"Fragment";case de:return"Profiler";case q:return"StrictMode";case ie:return"Suspense";case W:return"SuspenseList";case xe:return"Activity";case k:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case U:return"Portal";case pe:return n.displayName||"Context";case re:return(n._context.displayName||"Context")+".Consumer";case K:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case le:return a=n.displayName||null,a!==null?a:X(n.type)||"Memo";case oe:a=n._payload,n=n._init;try{return X(n(a))}catch{}}return null}var fe=Array.isArray,se=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ge={pending:!1,data:null,method:null,action:null},Ne=[],ue=-1;function Qe(n){return{current:n}}function ve(n){0>ue||(n.current=Ne[ue],Ne[ue]=null,ue--)}function Se(n,a){ue++,Ne[ue]=n.current,n.current=a}var nt=Qe(null),Tt=Qe(null),In=Qe(null),yn=Qe(null);function Bt(n,a){switch(Se(In,a),Se(Tt,n),Se(nt,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?ub(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=ub(a),n=fb(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ve(nt),Se(nt,n)}function bt(){ve(nt),ve(Tt),ve(In)}function zr(n){var a=n.memoizedState;a!==null&&(So._currentValue=a.memoizedState,Se(yn,n)),a=nt.current;var o=fb(a,n.type);a!==o&&(Se(Tt,n),Se(nt,o))}function fi(n){Tt.current===n&&(ve(nt),ve(Tt)),yn.current===n&&(ve(yn),So._currentValue=Ge)}var Ur,Ny;function Fi(n){if(Ur===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Ur=a&&a[1]||"",Ny=-1<o.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ur+n+Ny}var Jf=!1;function Zf(n,a){if(!n||Jf)return"";Jf=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(ge){var Y=ge}Reflect.construct(n,[],ne)}else{try{ne.call()}catch(ge){Y=ge}ne=!1;try{var P=Object.getOwnPropertyDescriptor(n.prototype,"props");Object.defineProperty(n.prototype,"props",{configurable:!0,set:function(){throw Error()}}),ne=!0,new n}finally{ne&&(P!==void 0?Object.defineProperty(n.prototype,"props",P):delete n.prototype.props)}}}else{try{throw Error()}catch(ge){Y=ge}(ne=n())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(ge){if(ge&&Y&&typeof ge.stack=="string")return[ge.stack,Y.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),v=h[0],x=h[1];if(v&&x){var D=v.split(`
44
- `),z=x.split(`
45
- `);for(f=l=0;l<D.length&&!D[l].includes("DetermineComponentFrameRoot");)l++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(l===D.length||f===z.length)for(l=D.length-1,f=z.length-1;1<=l&&0<=f&&D[l]!==z[f];)f--;for(;1<=l&&0<=f;l--,f--)if(D[l]!==z[f]){if(l!==1||f!==1)do if(l--,f--,0>f||D[l]!==z[f]){var V=`
46
- `+D[l].replace(" at new "," at ");return n.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",n.displayName)),V}while(1<=l&&0<=f);break}}}finally{Jf=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Fi(o):""}function kO(n,a){switch(n.tag){case 26:case 27:case 5:return Fi(n.type);case 16:return Fi("Lazy");case 13:return n.child!==a&&a!==null?Fi("Suspense Fallback"):Fi("Suspense");case 19:return Fi("SuspenseList");case 0:case 15:return Zf(n.type,!1);case 11:return Zf(n.type.render,!1);case 1:return Zf(n.type,!0);case 31:return Fi("Activity");case 30:return Fi("ViewTransition");default:return""}}function Ry(n){try{var a="",o=null;do a+=kO(n,o),o=n,n=n.return;while(n);return a}catch(l){return`
47
- Error generating stack: `+l.message+`
48
- `+l.stack}}var Xf=Object.prototype.hasOwnProperty,Wf=e.unstable_scheduleCallback,ep=e.unstable_cancelCallback,MO=e.unstable_shouldYield,GO=e.unstable_requestPaint,zn=e.unstable_now,YO=e.unstable_getCurrentPriorityLevel,Dy=e.unstable_ImmediatePriority,Ty=e.unstable_UserBlockingPriority,Zl=e.unstable_NormalPriority,HO=e.unstable_LowPriority,ky=e.unstable_IdlePriority,zO=e.log,UO=e.unstable_setDisableYieldValue,Ac=null,Un=null;function Vi(n){if(typeof zO=="function"&&UO(n),Un&&typeof Un.setStrictMode=="function")try{Un.setStrictMode(Ac,n)}catch{}}var $n=Math.clz32?Math.clz32:PO,$O=Math.log,LO=Math.LN2;function PO(n){return n>>>=0,n===0?32:31-($O(n)/LO|0)|0}var Xl=256,Wl=262144,ed=4194304;function $r(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&-n;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function td(n,a,o){var l=n.pendingLanes;if(l===0)return 0;var f=0,h=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var x=l&134217727;return x!==0?(l=x&~h,l!==0?f=$r(l):(v&=x,v!==0?f=$r(v):o||(o=x&~n,o!==0&&(f=$r(o))))):(x=l&~h,x!==0?f=$r(x):v!==0?f=$r(v):o||(o=l&~n,o!==0&&(f=$r(o)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,o=a&-a,h>=o||h===32&&(o&4194048)!==0)?a:f}function mc(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function My(n,a){(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var l=31-$n(o),f=1<<l;a|=n[l],o&=~f}return a}function FO(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gy(){var n=ed;return ed<<=1,(ed&62914560)===0&&(ed=4194304),n}function tp(n){for(var a=[],o=0;31>o;o++)a.push(n);return a}function yc(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function VO(n,a,o,l,f,h){var v=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var x=n.entanglements,D=n.expirationTimes,z=n.hiddenUpdates;for(o=v&~o;0<o;){var V=31-$n(o),ne=1<<V;x[V]=0,D[V]=-1;var Y=z[V];if(Y!==null)for(z[V]=null,V=0;V<Y.length;V++){var P=Y[V];P!==null&&(P.lane&=-536870913)}o&=~ne}l!==0&&Yy(n,l,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(v&~a))}function Yy(n,a,o){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-$n(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|o&261930}function Hy(n,a){var o=n.entangledLanes|=a;for(n=n.entanglements;o;){var l=31-$n(o),f=1<<l;f&a|n[l]&a&&(n[l]|=a),o&=~f}}function zy(n,a){var o=a&-a;return o=(o&42)!==0?1:np(o),(o&(n.suspendedLanes|a))!==0?0:o}function np(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function ap(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Uy(){var n=ce.p;return n!==0?n:(n=window.event,n===void 0?32:Kb(n.type))}function $y(n,a){var o=ce.p;try{return ce.p=n,a()}finally{ce.p=o}}var pi=Math.random().toString(36).slice(2),an="__reactFiber$"+pi,Qn="__reactProps$"+pi,Us="__reactContainer$"+pi,Ly="__reactEvents$"+pi,qO="__reactListeners$"+pi,KO="__reactHandles$"+pi,Py="__reactResources$"+pi,Ec="__reactMarker$"+pi,nd="__reactLoad$"+pi;function ad(n){delete n[an],delete n[Qn],delete n[qO],delete n[KO]}function Lr(n){var a;if(a=n[an])return a;for(var o=n.parentNode;o;){if(a=o[Us]||o[an]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(n=Sb(n);n!==null;){if(o=n[an])return o;n=Sb(n)}return a}n=o,o=n.parentNode}return null}function $s(n){if(n=n[an]||n[Us]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function vc(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function Ls(n){var a=n[Py];return a||(a=n[Py]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Pt(n){n[Ec]=!0}function Fy(n){n[nd]=void 0}var Vy=new Set,qy={};function Pr(n,a){Ps(n,a),Ps(n+"Capture",a)}function Ps(n,a){for(qy[n]=a,n=0;n<a.length;n++)Vy.add(a[n])}var JO=RegExp("^[: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]*$"),Ky={},Jy={};function ZO(n){return Xf.call(Jy,n)?!0:Xf.call(Ky,n)?!1:JO.test(n)?Jy[n]=!0:(Ky[n]=!0,!1)}var Xe=!1;function Zy(){var n=Xe;return Xe=!1,n}function id(n,a,o){if(ZO(a))if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,o)}}function rd(n,a,o){if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,o)}}function hi(n,a,o,l){if(l===null)n.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(a,o,l)}}function Ln(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Xy(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function XO(n,a,o){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,h=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(v){o=""+v,h.call(this,v)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function ip(n){if(!n._valueTracker){var a=Xy(n)?"checked":"value";n._valueTracker=XO(n,a,""+n[a])}}function Wy(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var o=a.getValue(),l="";return n&&(l=Xy(n)?n.checked?"true":"false":n.value),n=l,n!==o?(a.setValue(n),!0):!1}var WO=/[\n"\\]/g;function oa(n){return n.replace(WO,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function rp(n,a,o,l,f,h,v,x){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),a!=null?v==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Ln(a)):n.value!==""+Ln(a)&&(n.value=""+Ln(a)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),a!=null?v==="number"&&n.value==a?sp(n,Ln(n.value)):sp(n,Ln(a)):o!=null?sp(n,Ln(o)):l!=null&&n.removeAttribute("value"),f==null&&h!=null&&(n.defaultChecked=!!h),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.name=""+Ln(x):n.removeAttribute("name")}function eE(n,a,o,l,f,h,v,x){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),a!=null||o!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){ip(n);return}o=o!=null?""+Ln(o):"",a=a!=null?""+Ln(a):o,x||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=x?n.checked:!!l,n.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),ip(n)}function sp(n,a){n.defaultValue!==""+a&&(n.defaultValue=""+a)}function Fs(n,a,o,l){if(n=n.options,a){a={};for(var f=0;f<o.length;f++)a["$"+o[f]]=!0;for(o=0;o<n.length;o++)f=a.hasOwnProperty("$"+n[o].value),n[o].selected!==f&&(n[o].selected=f),f&&l&&(n[o].defaultSelected=!0)}else{for(o=""+Ln(o),a=null,f=0;f<n.length;f++){if(n[f].value===o){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function tE(n,a,o){if(a!=null&&(a=""+Ln(a),a!==n.value&&(n.value=a),o==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=o!=null?""+Ln(o):""}function nE(n,a,o,l){if(a==null){if(l!=null){if(o!=null)throw Error(s(92));if(fe(l)){if(1<l.length)throw Error(s(93));l=l[0]}o=l}o==null&&(o=""),a=o}o=Ln(a),n.defaultValue=o,l=n.textContent,l===o&&l!==""&&l!==null&&(n.value=l),ip(n)}function Vs(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=a;return}}n.textContent=a}var e1=new Set("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(" "));function aE(n,a,o){var l=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,o):typeof o!="number"||o===0||e1.has(a)?a==="float"?n.cssFloat=o:n[a]=(""+o).trim():n[a]=o+"px"}function iE(n,a,o){if(a!=null&&typeof a!="object")throw Error(s(62));if(n=n.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="",Xe=!0);for(var f in a)l=a[f],a.hasOwnProperty(f)&&o[f]!==l&&(aE(n,f,l),Xe=!0)}else for(var h in a)a.hasOwnProperty(h)&&aE(n,h,a[h])}function op(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var t1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),n1=/^[\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;function sd(n){return n1.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ga(){}var cp=null;function lp(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var qs=null,Ks=null;function rE(n){var a=$s(n);if(a&&(n=a.stateNode)){var o=n[Qn]||null;e:switch(n=a.stateNode,a.type){case"input":if(rp(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+oa(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var l=o[a];if(l!==n&&l.form===n.form){var f=l[Qn]||null;if(!f)throw Error(s(90));rp(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<o.length;a++)l=o[a],l.form===n.form&&Wy(l)}break e;case"textarea":tE(n,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Fs(n,!!o.multiple,a,!1)}}}var dp=!1;function sE(n,a,o){if(dp)return n(a,o);dp=!0;try{var l=n(a);return l}finally{if(dp=!1,(qs!==null||Ks!==null)&&(su(),qs&&(a=qs,n=Ks,Ks=qs=null,rE(a),n)))for(a=0;a<n.length;a++)rE(n[a])}}function Bc(n,a){var o=n.stateNode;if(o===null)return null;var l=o[Qn]||null;if(l===null)return null;o=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(s(231,a,typeof o));return o}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),up=!1;if(gi)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){up=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch{up=!1}var qi=null,fp=null,od=null;function oE(){if(od)return od;var n,a=fp,o=a.length,l,f="value"in qi?qi.value:qi.textContent,h=f.length;for(n=0;n<o&&a[n]===f[n];n++);var v=o-n;for(l=1;l<=v&&a[o-l]===f[h-l];l++);return od=f.slice(n,1<l?1-l:void 0)}function cd(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function ld(){return!0}function cE(){return!1}function En(n){function a(o,l,f,h,v){this._reactName=o,this._targetInst=f,this.type=l,this.nativeEvent=h,this.target=v,this.currentTarget=null;for(var x in n)n.hasOwnProperty(x)&&(o=n[x],this[x]=o?o(h):h[x]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?ld:cE,this.isPropagationStopped=cE,this}return N(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ld)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ld)},persist:function(){},isPersistent:ld}),a}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dd=En(Ki),wc=N({},Ki,{view:0,detail:0}),a1=En(wc),pp,hp,xc,ud=N({},wc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ap,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==xc&&(xc&&n.type==="mousemove"?(pp=n.screenX-xc.screenX,hp=n.screenY-xc.screenY):hp=pp=0,xc=n),pp)},movementY:function(n){return"movementY"in n?n.movementY:hp}}),lE=En(ud),i1=N({},ud,{dataTransfer:0}),r1=En(i1),s1=N({},wc,{relatedTarget:0}),gp=En(s1),o1=N({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),c1=En(o1),l1=N({},Ki,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),d1=En(l1),u1=N({},Ki,{data:0}),dE=En(u1),f1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},h1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g1(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=h1[n])?!!a[n]:!1}function Ap(){return g1}var A1=N({},wc,{key:function(n){if(n.key){var a=f1[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=cd(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?p1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ap,charCode:function(n){return n.type==="keypress"?cd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?cd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),m1=En(A1),y1=N({},ud,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uE=En(y1),E1=N({},Ki,{submitter:0}),v1=En(E1),B1=N({},wc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ap}),b1=En(B1),w1=N({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=En(w1),j1=N({},ud,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),I1=En(j1),Q1=N({},Ki,{newState:0,oldState:0,source:0}),C1=En(Q1),S1=[9,13,27,32],mp=gi&&"CompositionEvent"in window,jc=null;gi&&"documentMode"in document&&(jc=document.documentMode);var O1=gi&&"TextEvent"in window&&!jc,fE=gi&&(!mp||jc&&8<jc&&11>=jc),pE=" ",hE=!1;function gE(n,a){switch(n){case"keyup":return S1.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AE(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Js=!1;function _1(n,a){switch(n){case"compositionend":return AE(a);case"keypress":return a.which!==32?null:(hE=!0,pE);case"textInput":return n=a.data,n===pE&&hE?null:n;default:return null}}function N1(n,a){if(Js)return n==="compositionend"||!mp&&gE(n,a)?(n=oE(),od=fp=qi=null,Js=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return fE&&a.locale!=="ko"?null:a.data;default:return null}}var R1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function mE(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!R1[n.type]:a==="textarea"}function yE(n,a,o,l){qs?Ks?Ks.push(l):Ks=[l]:qs=l,a=fu(a,"onChange"),0<a.length&&(o=new dd("onChange","change",null,o,l),n.push({event:o,listeners:a}))}var Ic=null,Qc=null;function D1(n){rb(n,0)}function fd(n){var a=vc(n);if(Wy(a))return n}function EE(n,a){if(n==="change")return a}var vE=!1;if(gi){var yp;if(gi){var Ep="oninput"in document;if(!Ep){var BE=document.createElement("div");BE.setAttribute("oninput","return;"),Ep=typeof BE.oninput=="function"}yp=Ep}else yp=!1;vE=yp&&(!document.documentMode||9<document.documentMode)}function bE(){Ic&&(Ic.detachEvent("onpropertychange",wE),Qc=Ic=null)}function wE(n){if(n.propertyName==="value"&&fd(Qc)){var a=[];yE(a,Qc,n,lp(n)),sE(D1,a)}}function T1(n,a,o){n==="focusin"?(bE(),Ic=a,Qc=o,Ic.attachEvent("onpropertychange",wE)):n==="focusout"&&bE()}function k1(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return fd(Qc)}function M1(n,a){if(n==="click")return fd(a)}function G1(n,a){if(n==="input"||n==="change")return fd(a)}function Y1(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Pn=typeof Object.is=="function"?Object.is:Y1;function Cc(n,a){if(Pn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),l=Object.keys(a);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var f=o[l];if(!Xf.call(a,f)||!Pn(n[f],a[f]))return!1}return!0}function vp(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function xE(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function jE(n,a){var o=xE(n);n=0;for(var l;o;){if(o.nodeType===3){if(l=n+o.textContent.length,n<=a&&l>=a)return{node:o,offset:a-n};n=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=xE(o)}}function IE(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?IE(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function QE(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=vp(n.document);a instanceof n.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)n=a.contentWindow;else break;a=vp(n.document)}return a}function Bp(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var H1=gi&&"documentMode"in document&&11>=document.documentMode,Zs=null,bp=null,Sc=null,wp=!1;function CE(n,a,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;wp||Zs==null||Zs!==vp(l)||(l=Zs,"selectionStart"in l&&Bp(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Sc&&Cc(Sc,l)||(Sc=l,l=fu(bp,"onSelect"),0<l.length&&(a=new dd("onSelect","select",null,a,o),n.push({event:a,listeners:l}),a.target=Zs)))}function Fr(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var Xs={animationend:Fr("Animation","AnimationEnd"),animationiteration:Fr("Animation","AnimationIteration"),animationstart:Fr("Animation","AnimationStart"),transitionrun:Fr("Transition","TransitionRun"),transitionstart:Fr("Transition","TransitionStart"),transitioncancel:Fr("Transition","TransitionCancel"),transitionend:Fr("Transition","TransitionEnd")},xp={},SE={};gi&&(SE=document.createElement("div").style,"AnimationEvent"in window||(delete Xs.animationend.animation,delete Xs.animationiteration.animation,delete Xs.animationstart.animation),"TransitionEvent"in window||delete Xs.transitionend.transition);function Vr(n){if(xp[n])return xp[n];if(!Xs[n])return n;var a=Xs[n],o;for(o in a)if(a.hasOwnProperty(o)&&o in SE)return xp[n]=a[o];return n}var OE=Vr("animationend"),_E=Vr("animationiteration"),NE=Vr("animationstart"),z1=Vr("transitionrun"),U1=Vr("transitionstart"),$1=Vr("transitioncancel"),RE=Vr("transitionend"),DE=new Map,jp="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");jp.push("scrollEnd");function xa(n,a){DE.set(n,a),Pr(a,[n])}var L1=0;function Ai(n,a){if(n.name!=null&&n.name!=="auto")return n.name;if(a.autoName!==null)return a.autoName;n=Ca.identifierPrefix;var o=L1++;return n="_"+n+"t_"+o.toString(32)+"_",a.autoName=n}function TE(n){if(n==null||typeof n=="string")return n;var a=null,o=Eo;if(o!==null)for(var l=0;l<o.length;l++){var f=n[o[l]];if(f!=null){if(f==="none")return"none";a=a==null?f:a+(" "+f)}}return a??n.default}function mi(n,a){return n=TE(n),a=TE(a),a==null?n==="auto"?null:n:a==="auto"?null:a}var pd=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ca=[],Ws=0,Ip=0;function hd(){for(var n=Ws,a=Ip=Ws=0;a<n;){var o=ca[a];ca[a++]=null;var l=ca[a];ca[a++]=null;var f=ca[a];ca[a++]=null;var h=ca[a];if(ca[a++]=null,l!==null&&f!==null){var v=l.pending;v===null?f.next=f:(f.next=v.next,v.next=f),l.pending=f}h!==0&&kE(o,f,h)}}function gd(n,a,o,l){ca[Ws++]=n,ca[Ws++]=a,ca[Ws++]=o,ca[Ws++]=l,Ip|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Qp(n,a,o,l){return gd(n,a,o,l),Ad(n)}function qr(n,a){return gd(n,null,null,a),Ad(n)}function kE(n,a,o){n.lanes|=o;var l=n.alternate;l!==null&&(l.lanes|=o);for(var f=!1,h=n.return;h!==null;)h.childLanes|=o,l=h.alternate,l!==null&&(l.childLanes|=o),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(f=!0)),n=h,h=h.return;return n.tag===3?(h=n.stateNode,f&&a!==null&&(f=31-$n(o),n=h.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=o|536870912),h):null}function Ad(n){if(50<Zc)throw Zc=0,ru=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var eo={};function P1(n,a,o,l){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(n,a,o,l){return new P1(n,a,o,l)}function Cp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function yi(n,a){var o=n.alternate;return o===null?(o=Cn(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&1206910976,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,a=n.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function ME(n,a){n.flags&=1206910978;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,a=o.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function md(n,a,o,l,f,h){var v=0;if(l=n,typeof l=="function")Cp(l)&&(v=1);else if(typeof l=="string")v=EN(n,o,nt.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(l){case xe:return n=Cn(31,o,a,f),n.elementType=xe,n.lanes=h,n;case Z:return Kr(o.children,f,h,a);case q:v=8,f|=24;break;case de:return n=Cn(12,o,a,f|2),n.elementType=de,n.lanes=h,n;case ie:return n=Cn(13,o,a,f),n.elementType=ie,n.lanes=h,n;case W:return n=Cn(19,o,a,f),n.elementType=W,n.lanes=h,n;case Me:case k:return n=f|32,n=Cn(30,o,a,n),n.elementType=k,n.lanes=h,n.stateNode={autoName:null,paired:null,clones:null,ref:null},n;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case pe:v=10;break e;case re:v=9;break e;case K:v=11;break e;case le:v=14;break e;case oe:v=16,l=null;break e}v=29,o=Error(s(130,n===null?"null":typeof n,"")),l=null}return a=Cn(v,o,a,f),a.elementType=n,a.type=l,a.lanes=h,a}function Kr(n,a,o,l){return n=Cn(7,n,l,a),n.lanes=o,n}function Sp(n,a,o){return n=Cn(6,n,null,a),n.lanes=o,n}function GE(n){var a=Cn(18,null,null,0);return a.stateNode=n,a}function Op(n,a,o){return a=Cn(4,n.children!==null?n.children:[],n.key,a),a.lanes=o,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var YE=new WeakMap;function la(n,a){if(typeof n=="object"&&n!==null){var o=YE.get(n);return o!==void 0?o:(a={value:n,source:a,stack:Ry(a)},YE.set(n,a),a)}return{value:n,source:a,stack:Ry(a)}}var to=[],no=0,yd=null,Oc=0,da=[],ua=0,Ji=null,Ya=1,Ha="";function Ei(n,a){to[no++]=Oc,to[no++]=yd,yd=n,Oc=a}function HE(n,a,o){da[ua++]=Ya,da[ua++]=Ha,da[ua++]=Ji,Ji=n;var l=Ya;n=Ha;var f=32-$n(l)-1;l&=~(1<<f),o+=1;var h=32-$n(a)+f;if(30<h){var v=f-f%5;h=(l&(1<<v)-1).toString(32),l>>=v,f-=v,Ya=1<<32-$n(a)+f|o<<f|l,Ha=h+n}else Ya=1<<h|o<<f|l,Ha=n}function Ed(n){n.return!==null&&(Ei(n,1),HE(n,1,0))}function _p(n){for(;n===yd;)yd=to[--no],to[no]=null,Oc=to[--no],to[no]=null;for(;n===Ji;)Ji=da[--ua],da[ua]=null,Ha=da[--ua],da[ua]=null,Ya=da[--ua],da[ua]=null}function zE(n,a){da[ua++]=Ya,da[ua++]=Ha,da[ua++]=Ji,Ya=a.id,Ha=a.overflow,Ji=n}var Ft=null,dt=null,ke=!1,Zi=null,fa=!1,Np=Error(s(519));function Xi(n){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _c(la(a,n)),Np}function UE(n){var a=n.stateNode,o=n.type,l=n.memoizedProps;switch(a[an]=n,a[Qn]=l,o){case"dialog":He("cancel",a),He("close",a);break;case"iframe":case"object":case"embed":He("load",a);break;case"video":case"audio":for(o=0;o<Wc.length;o++)He(Wc[o],a);break;case"source":He("error",a);break;case"img":case"image":case"link":He("error",a),He("load",a);break;case"details":He("toggle",a);break;case"input":He("invalid",a),eE(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":He("invalid",a);break;case"textarea":He("invalid",a),nE(a,l.value,l.defaultValue,l.children)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||l.suppressHydrationWarning===!0||lb(a.textContent,o)?(l.popover!=null&&(He("beforetoggle",a),He("toggle",a)),l.onScroll!=null&&He("scroll",a),l.onScrollEnd!=null&&He("scrollend",a),l.onClick!=null&&(a.onclick=Ga),a=!0):a=!1,a||Xi(n,!0)}function vd(n){for(Ft=n.return;Ft;)switch(Ft.tag){case 5:case 31:case 13:fa=!1;return;case 27:case 3:fa=!0;return;default:Ft=Ft.return}}function ao(n){if(n!==Ft)return!1;if(!ke)return vd(n),ke=!0,!1;var a=n.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||cg(n.type,n.memoizedProps)),o=!o),o&&dt&&Xi(n),vd(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));dt=Cb(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));dt=Cb(n)}else a===27?(a=dt,hr(n.type)?(n=mg,mg=null,dt=n):dt=a):dt=Ft?ha(n.stateNode.nextSibling):null;return!0}function Jr(){dt=Ft=null,ke=!1}function Rp(){var n=Zi;return n!==null&&(_n===null?_n=n:_n.push.apply(_n,n),Zi=null),n}function _c(n){Zi===null?Zi=[n]:Zi.push(n)}var Dp=Qe(null),Zr=null,vi=null;function Wi(n,a,o){Se(Dp,a._currentValue),a._currentValue=o}function Bi(n){n._currentValue=Dp.current,ve(Dp)}function Bd(n,a,o){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===o)break;n=n.return}}function Tp(n,a,o,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var h=f.dependencies;if(h!==null){var v=f.child;h=h.firstContext;e:for(;h!==null;){var x=h;h=f;for(var D=0;D<a.length;D++)if(x.context===a[D]){h.lanes|=o,x=h.alternate,x!==null&&(x.lanes|=o),Bd(h.return,o,n),l||(v=null);break e}h=x.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(s(341));v.lanes|=o,h=v.alternate,h!==null&&(h.lanes|=o),Bd(v,o,n),v=null}else f.tag===13&&f.memoizedState!==null&&f.memoizedState.dehydrated===null?(f.lanes|=o,v=f.alternate,v!==null&&(v.lanes|=o),Bd(f.return,o,n),v=f.child,v=v!==null?v.sibling:null):v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===n){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function Xr(n,a,o,l){n=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var x=f.type;Pn(f.pendingProps.value,v.value)||(n!==null?n.push(x):n=[x])}}else if(f===yn.current){if(v=f.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(So):n=[So])}f=f.return}return n!==null&&Tp(a,n,o,l),a.flags|=262144,n!==null}function bd(n){for(n=n.firstContext;n!==null;){if(!Pn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Wr(n){Zr=n,vi=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function rn(n){return $E(Zr,n)}function wd(n,a){return Zr===null&&Wr(n),$E(n,a)}function $E(n,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},vi===null){if(n===null)throw Error(s(308));vi=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else vi=vi.next=a;return o}var F1=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(o,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(o){return o()})}},V1=e.unstable_scheduleCallback,q1=e.unstable_NormalPriority,Ct={$$typeof:pe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kp(){return{controller:new F1,data:new Map,refCount:0}}function Nc(n){n.refCount--,n.refCount===0&&V1(q1,function(){n.controller.abort()})}function LE(n,a){if((n.pendingLanes&4194048)!==0){var o=n.transitionTypes;for(o===null&&(o=n.transitionTypes=[]),n=0;n<a.length;n++){var l=a[n];o.indexOf(l)===-1&&o.push(l)}}}var Rc=null;function K1(n){var a=n.transitionTypes;return n.transitionTypes=null,a}var Dc=null,Mp=0,es=0,io=null;function J1(n,a){if(Dc===null){var o=Dc=[];Mp=0,es=Wh(),io={status:"pending",value:void 0,then:function(l){o.push(l)}}}return Mp++,a.then(PE,PE),a}function PE(){if(--Mp===0&&(Rc=null,Dc!==null)){io!==null&&(io.status="fulfilled");var n=Dc;Dc=null,es=0,io=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Z1(n,a){var o=[],l={status:"pending",value:null,reason:null,then:function(f){o.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<o.length;f++)(0,o[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<o.length;f++)(0,o[f])(void 0)}),l}var FE=se.S;se.S=function(n,a){if(GB=zn(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&J1(n,a),Rc!==null)for(var o=wo;o!==null;)LE(o,Rc),o=o.next;if(o=n.types,o!==null){for(var l=wo;l!==null;)LE(l,o),l=l.next;if(es!==0){l=Rc,l===null&&(l=Rc=[]);for(var f=0;f<o.length;f++){var h=o[f];l.indexOf(h)===-1&&l.push(h)}}}FE!==null&&FE(n,a)};var ts=Qe(null);function Gp(){var n=ts.current;return n!==null?n:lt.pooledCache}function xd(n,a){a===null?Se(ts,ts.current):Se(ts,a.pool)}function VE(){var n=Gp();return n===null?null:{parent:Ct._currentValue,pool:n}}var ro=Error(s(460)),Yp=Error(s(474)),jd=Error(s(542)),Id={then:function(){}};function qE(n){return n=n.status,n==="fulfilled"||n==="rejected"}function KE(n,a,o){switch(o=n[o],o===void 0?n.push(a):o!==a&&(a.then(Ga,Ga),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ZE(n),n===void 0&&!("reason"in a)?Error(s(600)):n;default:if(typeof a.status=="string")a.then(Ga,Ga);else{if(n=lt,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,ZE(n),n}throw as=a,ro}}function ns(n){try{var a=n._init;return a(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(as=o,ro):o}}var as=null;function JE(){if(as===null)throw Error(s(459));var n=as;return as=null,n}function ZE(n){if(n===ro||n===jd)throw Error(s(483))}var so=null,Tc=0;function Qd(n){var a=Tc;return Tc+=1,so===null&&(so=[]),KE(so,n,a)}function er(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Cd(n,a){throw a.$$typeof===$?Error(s(525)):(n=Object.prototype.toString.call(a),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function XE(n){function a(H,M){if(n){var L=H.deletions;L===null?(H.deletions=[M],H.flags|=16):L.push(M)}}function o(H,M){if(!n)return null;for(;M!==null;)a(H,M),M=M.sibling;return null}function l(H){for(var M=new Map;H!==null;)H.key===null?M.set(H.index,H):M.set(H.key,H),H=H.sibling;return M}function f(H,M){return H=yi(H,M),H.index=0,H.sibling=null,H}function h(H,M,L){return H.index=L,n?(L=H.alternate,L!==null?(L=L.index,L<M?(H.flags|=2,M):L):(H.flags|=134217730,M)):(H.flags|=1048576,M)}function v(H){return n&&H.alternate===null&&(H.flags|=134217730),H}function x(H,M,L,te){return M===null||M.tag!==6?(M=Sp(L,H.mode,te),M.return=H,M):(M=f(M,L),M.return=H,M)}function D(H,M,L,te){var ye=L.type;return ye===Z?(H=V(H,M,L.props.children,te,L.key),er(H,L),H):M!==null&&(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===oe&&ns(ye)===M.type)?(M=f(M,L.props),er(M,L),M.return=H,M):(M=md(L.type,L.key,L.props,null,H.mode,te),er(M,L),M.return=H,M)}function z(H,M,L,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==L.containerInfo||M.stateNode.implementation!==L.implementation?(M=Op(L,H.mode,te),M.return=H,M):(M=f(M,L.children||[]),M.return=H,M)}function V(H,M,L,te,ye){return M===null||M.tag!==7?(M=Kr(L,H.mode,te,ye),M.return=H,M):(M=f(M,L),M.return=H,M)}function ne(H,M,L){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Sp(""+M,H.mode,L),M.return=H,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case G:return L=md(M.type,M.key,M.props,null,H.mode,L),er(L,M),L.return=H,L;case U:return M=Op(M,H.mode,L),M.return=H,M;case oe:return M=ns(M),ne(H,M,L)}if(fe(M)||R(M))return M=Kr(M,H.mode,L,null),M.return=H,M;if(typeof M.then=="function")return ne(H,Qd(M),L);if(M.$$typeof===pe)return ne(H,wd(H,M),L);Cd(H,M)}return null}function Y(H,M,L,te){var ye=M!==null?M.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ye!==null?null:x(H,M,""+L,te);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case G:return L.key===ye?D(H,M,L,te):null;case U:return L.key===ye?z(H,M,L,te):null;case oe:return L=ns(L),Y(H,M,L,te)}if(fe(L)||R(L))return ye!==null?null:V(H,M,L,te,null);if(typeof L.then=="function")return Y(H,M,Qd(L),te);if(L.$$typeof===pe)return Y(H,M,wd(H,L),te);Cd(H,L)}return null}function P(H,M,L,te,ye){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return H=H.get(L)||null,x(M,H,""+te,ye);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case G:return H=H.get(te.key===null?L:te.key)||null,D(M,H,te,ye);case U:return H=H.get(te.key===null?L:te.key)||null,z(M,H,te,ye);case oe:return te=ns(te),P(H,M,L,te,ye)}if(fe(te)||R(te))return H=H.get(L)||null,V(M,H,te,ye,null);if(typeof te.then=="function")return P(H,M,L,Qd(te),ye);if(te.$$typeof===pe)return P(H,M,L,wd(M,te),ye);Cd(M,te)}return null}function ge(H,M,L,te){for(var ye=null,Pe=null,Be=M,Ie=M=0,_t=null;Be!==null&&Ie<L.length;Ie++){Be.index>Ie?(_t=Be,Be=null):_t=Be.sibling;var qe=Y(H,Be,L[Ie],te);if(qe===null){Be===null&&(Be=_t);break}n&&Be&&qe.alternate===null&&a(H,Be),M=h(qe,M,Ie),Pe===null?ye=qe:Pe.sibling=qe,Pe=qe,Be=_t}if(Ie===L.length)return o(H,Be),ke&&Ei(H,Ie),ye;if(Be===null){for(;Ie<L.length;Ie++)Be=ne(H,L[Ie],te),Be!==null&&(M=h(Be,M,Ie),Pe===null?ye=Be:Pe.sibling=Be,Pe=Be);return ke&&Ei(H,Ie),ye}for(Be=l(Be);Ie<L.length;Ie++)_t=P(Be,H,Ie,L[Ie],te),_t!==null&&(n&&(qe=_t.alternate,qe!==null&&Be.delete(qe.key===null?Ie:qe.key)),M=h(_t,M,Ie),Pe===null?ye=_t:Pe.sibling=_t,Pe=_t);return n&&Be.forEach(function(Er){return a(H,Er)}),ke&&Ei(H,Ie),ye}function Ee(H,M,L,te){if(L==null)throw Error(s(151));for(var ye=null,Pe=null,Be=M,Ie=M=0,_t=null,qe=L.next();Be!==null&&!qe.done;Ie++,qe=L.next()){Be.index>Ie?(_t=Be,Be=null):_t=Be.sibling;var Er=Y(H,Be,qe.value,te);if(Er===null){Be===null&&(Be=_t);break}n&&Be&&Er.alternate===null&&a(H,Be),M=h(Er,M,Ie),Pe===null?ye=Er:Pe.sibling=Er,Pe=Er,Be=_t}if(qe.done)return o(H,Be),ke&&Ei(H,Ie),ye;if(Be===null){for(;!qe.done;Ie++,qe=L.next())qe=ne(H,qe.value,te),qe!==null&&(M=h(qe,M,Ie),Pe===null?ye=qe:Pe.sibling=qe,Pe=qe);return ke&&Ei(H,Ie),ye}for(Be=l(Be);!qe.done;Ie++,qe=L.next())qe=P(Be,H,Ie,qe.value,te),qe!==null&&(n&&(_t=qe.alternate,_t!==null&&Be.delete(_t.key===null?Ie:_t.key)),M=h(qe,M,Ie),Pe===null?ye=qe:Pe.sibling=qe,Pe=qe);return n&&Be.forEach(function(_N){return a(H,_N)}),ke&&Ei(H,Ie),ye}function De(H,M,L,te){if(typeof L=="object"&&L!==null&&L.type===Z&&L.key===null&&L.props.ref===void 0&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case G:e:{for(var ye=L.key;M!==null;){if(M.key===ye){if(ye=L.type,ye===Z){if(M.tag===7){o(H,M.sibling),te=f(M,L.props.children),er(te,L),te.return=H,H=te;break e}}else if(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===oe&&ns(ye)===M.type){o(H,M.sibling),te=f(M,L.props),er(te,L),te.return=H,H=te;break e}o(H,M);break}else a(H,M);M=M.sibling}L.type===Z?(te=Kr(L.props.children,H.mode,te,L.key),er(te,L),te.return=H,H=te):(te=md(L.type,L.key,L.props,null,H.mode,te),er(te,L),te.return=H,H=te)}return v(H);case U:e:{for(ye=L.key;M!==null;){if(M.key===ye)if(M.tag===4&&M.stateNode.containerInfo===L.containerInfo&&M.stateNode.implementation===L.implementation){o(H,M.sibling),te=f(M,L.children||[]),te.return=H,H=te;break e}else{o(H,M);break}else a(H,M);M=M.sibling}te=Op(L,H.mode,te),te.return=H,H=te}return v(H);case oe:return L=ns(L),De(H,M,L,te)}if(fe(L))return ge(H,M,L,te);if(R(L)){if(ye=R(L),typeof ye!="function")throw Error(s(150));return L=ye.call(L),Ee(H,M,L,te)}if(typeof L.then=="function")return De(H,M,Qd(L),te);if(L.$$typeof===pe)return De(H,M,wd(H,L),te);Cd(H,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,M!==null&&M.tag===6?(o(H,M.sibling),te=f(M,L),te.return=H,H=te):(o(H,M),te=Sp(L,H.mode,te),te.return=H,H=te),v(H)):o(H,M)}return function(H,M,L,te){try{Tc=0;var ye=De(H,M,L,te);return so=null,ye}catch(Be){if(Be===ro||Be===jd)throw Be;var Pe=Cn(29,Be,null,H.mode);return Pe.lanes=te,Pe.return=H,Pe}finally{}}}var is=XE(!0),WE=XE(!1),tr=!1;function Hp(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zp(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function nr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ar(n,a,o){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(We&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=Ad(n),kE(n,null,o),a}return gd(n,l,a,o),Ad(n)}function kc(n,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,o|=l,a.lanes=o,Hy(n,o)}}function Up(n,a){var o=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var f=null,h=null;if(o=o.firstBaseUpdate,o!==null){do{var v={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};h===null?f=h=v:h=h.next=v,o=o.next}while(o!==null);h===null?f=h=a:h=h.next=a}else f=h=a;o={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=a:n.next=a,o.lastBaseUpdate=a}var $p=!1;function Mc(){if($p){var n=io;if(n!==null)throw n}}function Gc(n,a,o,l){$p=!1;var f=n.updateQueue;tr=!1;var h=f.firstBaseUpdate,v=f.lastBaseUpdate,x=f.shared.pending;if(x!==null){f.shared.pending=null;var D=x,z=D.next;D.next=null,v===null?h=z:v.next=z,v=D;var V=n.alternate;V!==null&&(V=V.updateQueue,x=V.lastBaseUpdate,x!==v&&(x===null?V.firstBaseUpdate=z:x.next=z,V.lastBaseUpdate=D))}if(h!==null){var ne=f.baseState;v=0,V=z=D=null,x=h;do{var Y=x.lane&-536870913,P=Y!==x.lane;if(P?(Le&Y)===Y:(l&Y)===Y){Y!==0&&Y===es&&($p=!0),V!==null&&(V=V.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ge=n,Ee=x;Y=a;var De=o;switch(Ee.tag){case 1:if(ge=Ee.payload,typeof ge=="function"){ne=ge.call(De,ne,Y);break e}ne=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=Ee.payload,Y=typeof ge=="function"?ge.call(De,ne,Y):ge,Y==null)break e;ne=N({},ne,Y);break e;case 2:tr=!0}}Y=x.callback,Y!==null&&(n.flags|=64,P&&(n.flags|=8192),P=f.callbacks,P===null?f.callbacks=[Y]:P.push(Y))}else P={lane:Y,tag:x.tag,payload:x.payload,callback:x.callback,next:null},V===null?(z=V=P,D=ne):V=V.next=P,v|=Y;if(x=x.next,x===null){if(x=f.shared.pending,x===null)break;P=x,x=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);V===null&&(D=ne),f.baseState=D,f.firstBaseUpdate=z,f.lastBaseUpdate=V,h===null&&(f.shared.lanes=0),dr|=v,n.lanes=v,n.memoizedState=ne}}function ev(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function tv(n,a){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)ev(o[n],a)}var ir=Qe(null),Sd=Qe(0);function nv(n,a){n=Ii,Se(Sd,n),Se(ir,a),Ii=n|a.baseLanes}function Lp(){Se(Sd,Ii),Se(ir,ir.current)}function Pp(){Ii=Sd.current,ve(ir),ve(Sd)}var sn=Qe(null),hn=null;function rr(n){var a=n.alternate;Se(on,on.current&1),Se(sn,n),hn===null&&(a===null||ir.current!==null||a.memoizedState!==null)&&(hn=n)}function Fp(n){Se(on,on.current),Se(sn,n),hn===null&&(hn=n)}function av(n){n.tag===22?(Se(on,on.current),Se(sn,n),hn===null&&(hn=n)):sr()}function sr(){Se(on,on.current),Se(sn,sn.current)}function Fn(n){ve(sn),hn===n&&(hn=null),ve(on)}var on=Qe(0);function Yc(n,a){Se(sn,sn.current),Se(on,a)}function Vp(n){ve(on),ve(sn),hn===n&&(hn=null)}function Od(n){for(var a=n;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||gg(o)||Ag(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!=="independent"){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var bi=0,Re=null,st=null,St=null,_d=!1,oo=!1,rs=!1,Nd=0,Hc=0,co=null,X1=0;function wt(){throw Error(s(321))}function qp(n,a){if(a===null)return!1;for(var o=0;o<a.length&&o<n.length;o++)if(!Pn(n[o],a[o]))return!1;return!0}function Kp(n,a,o,l,f,h){return bi=h,Re=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,se.H=n===null||n.memoizedState===null?Hv:zv,rs=!1,h=o(l,f),rs=!1,oo&&(h=rv(a,o,l,f)),iv(n),h}function iv(n){se.H=Yd;var a=st!==null&&st.next!==null;if(bi=0,St=st=Re=null,_d=!1,Hc=0,co=null,a)throw Error(s(300));n===null||Ot||(n=n.dependencies,n!==null&&bd(n)&&(Ot=!0))}function rv(n,a,o,l){Re=n;var f=0;do{if(oo&&(co=null),Hc=0,oo=!1,25<=f)throw Error(s(301));if(f+=1,St=st=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}se.H=s_,h=a(o,l)}while(oo);return h}function W1(){var n=se.H,a=n.useState()[0];return a=typeof a.then=="function"?zc(a):a,n=n.useState()[0],(st!==null?st.memoizedState:null)!==n&&(Re.flags|=1024),a}function Jp(){var n=Nd!==0;return Nd=0,n}function Zp(n,a,o){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~o}function Xp(n){if(_d){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}_d=!1}bi=0,St=st=Re=null,oo=!1,Hc=Nd=0,co=null}function vn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?Re.memoizedState=St=n:St=St.next=n,St}function jt(){if(st===null){var n=Re.alternate;n=n!==null?n.memoizedState:null}else n=st.next;var a=St===null?Re.memoizedState:St.next;if(a!==null)St=a,st=n;else{if(n===null)throw Re.alternate===null?Error(s(467)):Error(s(310));st=n,n={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},St===null?Re.memoizedState=St=n:St=St.next=n}return St}function Rd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zc(n){var a=Hc;return Hc+=1,co===null&&(co=[]),n=KE(co,n,a),a=Re,(St===null?a.memoizedState:St.next)===null&&(a=a.alternate,se.H=a===null||a.memoizedState===null?Hv:zv),n}function Dd(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return zc(n);if(n.$$typeof===ae)return;if(n.$$typeof===pe)return rn(n)}throw Error(s(438,String(n)))}function Wp(n){var a=null,o=Re.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Rd(),Re.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(n),l=0;l<n;l++)o[l]=_e;return a.index++,o}function wi(n,a){return typeof a=="function"?a(n):a}function Td(n){var a=jt();return eh(a,st,n)}function eh(n,a,o){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=o;var f=n.baseQueue,h=l.pending;if(h!==null){if(f!==null){var v=f.next;f.next=h.next,h.next=v}a.baseQueue=f=h,l.pending=null}if(h=n.baseState,f===null)n.memoizedState=h;else{a=f.next;var x=v=null,D=null,z=a,V=!1;do{var ne=z.lane&-536870913;if(ne!==z.lane?(Le&ne)===ne:(bi&ne)===ne){var Y=z.revertLane;if(Y===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),ne===es&&(V=!0);else if((bi&Y)===Y){z=z.next,Y===es&&(V=!0);continue}else ne={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},D===null?(x=D=ne,v=h):D=D.next=ne,Re.lanes|=Y,dr|=Y;ne=z.action,rs&&o(h,ne),h=z.hasEagerState?z.eagerState:o(h,ne)}else Y={lane:ne,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},D===null?(x=D=Y,v=h):D=D.next=Y,Re.lanes|=ne,dr|=ne;z=z.next}while(z!==null&&z!==a);if(D===null?v=h:D.next=x,!Pn(h,n.memoizedState)&&(Ot=!0,V&&(o=io,o!==null)))throw o;n.memoizedState=h,n.baseState=v,n.baseQueue=D,l.lastRenderedState=h}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function th(n){var a=jt(),o=a.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var l=o.dispatch,f=o.pending,h=a.memoizedState;if(f!==null){o.pending=null;var v=f=f.next;do h=n(h,v.action),v=v.next;while(v!==f);Pn(h,a.memoizedState)||(Ot=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),o.lastRenderedState=h}return[h,l]}function sv(n,a,o){var l=Re,f=jt(),h=ke;if(h){if(o===void 0)throw Error(s(407));o=o()}else o=a();var v=!Pn((st||f).memoizedState,o);if(v&&(f.memoizedState=o,Ot=!0),f=f.queue,ih(lv.bind(null,l,f,n),[n]),n=f.getSnapshot!==a||v||St!==null&&(St.memoizedState.tag&1)!==0,lo(n?9:8,{destroy:void 0},cv.bind(null,l,f,o,a),null),n){if(l.flags|=2048,lt===null)throw Error(s(349));h||(bi&127)!==0||ov(l,a,o)}return o}function ov(n,a,o){n.flags|=16384,n={getSnapshot:a,value:o},a=Re.updateQueue,a===null?(a=Rd(),Re.updateQueue=a,a.stores=[n]):(o=a.stores,o===null?a.stores=[n]:o.push(n))}function cv(n,a,o,l){a.value=o,a.getSnapshot=l,dv(a)&&uv(n)}function lv(n,a,o){return o(function(){dv(a)&&uv(n)})}function dv(n){var a=n.getSnapshot;n=n.value;try{var o=a();return!Pn(n,o)}catch{return!0}}function uv(n){var a=qr(n,2);a!==null&&Nn(a,n,2)}function nh(n){var a=vn();if(typeof n=="function"){var o=n;if(n=o(),rs){Vi(!0);try{o()}finally{Vi(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:n},a}function fv(n,a,o,l){return n.baseState=o,eh(n,st,typeof l=="function"?l:wi)}function e_(n,a,o,l,f){if(Gd(n))throw Error(s(485));if(n=a.action,n!==null){var h={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){h.listeners.push(v)}};se.T!==null?o(!0):h.isTransition=!1,l(h),o=a.pending,o===null?(h.next=a.pending=h,pv(a,h)):(h.next=o.next,a.pending=o.next=h)}}function pv(n,a){var o=a.action,l=a.payload,f=n.state;if(a.isTransition){var h=se.T,v={};v.types=h!==null?h.types:null,se.T=v;try{var x=o(f,l),D=se.S;D!==null&&D(v,x),hv(n,a,x)}catch(z){ah(n,a,z)}finally{h!==null&&v.types!==null&&(h.types=v.types),se.T=h}}else try{h=o(f,l),hv(n,a,h)}catch(z){ah(n,a,z)}}function hv(n,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){gv(n,a,l)},function(l){return ah(n,a,l)}):gv(n,a,o)}function gv(n,a,o){a.status="fulfilled",a.value=o,Av(a),n.state=o,a=n.pending,a!==null&&(o=a.next,o===a?n.pending=null:(o=o.next,a.next=o,pv(n,o)))}function ah(n,a,o){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=o,Av(a),a=a.next;while(a!==l)}n.action=null}function Av(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function mv(n,a){return a}function yv(n,a){if(ke){var o=lt.formState;if(o!==null){e:{var l=Re;if(ke){if(dt){t:{for(var f=dt,h=fa;f.nodeType!==8;){if(!h){f=null;break t}if(f=ha(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){dt=ha(f.nextSibling),l=f.data==="F!";break e}}Xi(l)}l=!1}l&&(a=o[0])}}return o=vn(),o.memoizedState=o.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mv,lastRenderedState:a},o.queue=l,o=Mv.bind(null,Re,l),l.dispatch=o,l=nh(!1),h=lh.bind(null,Re,!1,l.queue),l=vn(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,o=e_.bind(null,Re,f,h,o),f.dispatch=o,l.memoizedState=n,[a,o,!1]}function Ev(n){var a=jt();return vv(a,st,n)}function vv(n,a,o){if(a=eh(n,a,mv)[0],n=Td(wi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=zc(a)}catch(v){throw v===ro?jd:v}else l=a;a=jt();var f=a.queue,h=f.dispatch;return o!==a.memoizedState&&(Re.flags|=2048,lo(9,{destroy:void 0},t_.bind(null,f,o),null)),[l,h,n]}function t_(n,a){n.action=a}function Bv(n){var a=jt(),o=st;if(o!==null)return vv(a,o,n);jt(),a=a.memoizedState,o=jt();var l=o.queue.dispatch;return o.memoizedState=n,[a,l,!1]}function lo(n,a,o,l){return n={tag:n,create:o,deps:l,inst:a,next:null},a=Re.updateQueue,a===null&&(a=Rd(),Re.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=n.next=n:(l=o.next,o.next=n,n.next=l,a.lastEffect=n),n}function bv(){return jt().memoizedState}function kd(n,a,o,l){var f=vn();Re.flags|=n,f.memoizedState=lo(1|a,{destroy:void 0},o,l===void 0?null:l)}function Md(n,a,o,l){var f=jt();l=l===void 0?null:l;var h=f.memoizedState.inst;st!==null&&l!==null&&qp(l,st.memoizedState.deps)?f.memoizedState=lo(a,h,o,l):(Re.flags|=n,f.memoizedState=lo(1|a,h,o,l))}function wv(n,a){kd(8390656,8,n,a)}function ih(n,a){Md(2048,8,n,a)}function n_(n){Re.flags|=4;var a=Re.updateQueue;if(a===null)a=Rd(),Re.updateQueue=a,a.events=[n];else{var o=a.events;o===null?a.events=[n]:o.push(n)}}function xv(n){var a=jt().memoizedState;return n_({ref:a,nextImpl:n}),function(){if((We&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function jv(n,a){return Md(4,2,n,a)}function Iv(n,a){return Md(4,4,n,a)}function Qv(n,a){if(typeof a=="function"){n=n();var o=a(n);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Cv(n,a,o){o=o!=null?o.concat([n]):null,Md(4,4,Qv.bind(null,a,n),o)}function rh(){}function Sv(n,a){var o=jt();a=a===void 0?null:a;var l=o.memoizedState;return a!==null&&qp(a,l[1])?l[0]:(o.memoizedState=[n,a],n)}function Ov(n,a){var o=jt();a=a===void 0?null:a;var l=o.memoizedState;if(a!==null&&qp(a,l[1]))return l[0];if(l=n(),rs){Vi(!0);try{n()}finally{Vi(!1)}}return o.memoizedState=[l,a],l}function sh(n,a,o){return o===void 0||(bi&1073741824)!==0&&(Le&261930)===0?n.memoizedState=a:(n.memoizedState=o,n=HB(),Re.lanes|=n,dr|=n,o)}function _v(n,a,o,l){return Pn(o,a)?o:ir.current!==null?(n=sh(n,o,l),Pn(n,a)||(Ot=!0),n):(bi&106)===0||(bi&1073741824)!==0&&(Le&261930)===0?(Ot=!0,n.memoizedState=o):(n=HB(),Re.lanes|=n,dr|=n,a)}function Nv(n,a,o,l,f){var h=ce.p;ce.p=h!==0&&8>h?h:8;var v=se.T,x={};x.types=v!==null?v.types:null,se.T=x,lh(n,!1,a,o);try{var D=f(),z=se.S;if(z!==null&&z(x,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var V=Z1(D,l);Uc(n,a,V,Jn(n))}else Uc(n,a,l,Jn(n))}catch(ne){Uc(n,a,{then:function(){},status:"rejected",reason:ne},Jn())}finally{ce.p=h,v!==null&&x.types!==null&&(v.types=x.types),se.T=v}}function a_(){}function oh(n,a,o,l){if(n.tag!==5)throw Error(s(476));var f=Rv(n).queue;Nv(n,f,a,Ge,o===null?a_:function(){return Dv(n),o(l)})}function Rv(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Ge,baseState:Ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:Ge},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wi,lastRenderedState:o},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Dv(n){var a=Rv(n);a.next===null&&(a=n.alternate.memoizedState),Uc(n,a.next.queue,{},Jn())}function ch(){return rn(So)}function Tv(){return jt().memoizedState}function kv(){return jt().memoizedState}function i_(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var o=Jn();n=nr(o);var l=ar(a,n,o);l!==null&&(Nn(l,a,o),kc(l,a,o)),a={cache:kp()},n.payload=a;return}a=a.return}}function r_(n,a,o){var l=Jn();o={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Gd(n)?Gv(a,o):(o=Qp(n,a,o,l),o!==null&&(Nn(o,n,l),Yv(o,a,l)))}function Mv(n,a,o){var l=Jn();Uc(n,a,o,l)}function Uc(n,a,o,l){var f={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gd(n))Gv(a,f);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var v=a.lastRenderedState,x=h(v,o);if(f.hasEagerState=!0,f.eagerState=x,Pn(x,v))return gd(n,a,f,0),lt===null&&hd(),!1}catch{}finally{}if(o=Qp(n,a,f,l),o!==null)return Nn(o,n,l),Yv(o,a,l),!0}return!1}function lh(n,a,o,l){if(l={lane:2,revertLane:Wh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gd(n)){if(a)throw Error(s(479))}else a=Qp(n,o,l,2),a!==null&&Nn(a,n,2)}function Gd(n){var a=n.alternate;return n===Re||a!==null&&a===Re}function Gv(n,a){oo=_d=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function Yv(n,a,o){if((o&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,o|=l,a.lanes=o,Hy(n,o)}}var Yd={readContext:rn,use:Dd,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt,useEffectEvent:wt},Hv={readContext:rn,use:Dd,useCallback:function(n,a){return vn().memoizedState=[n,a===void 0?null:a],n},useContext:rn,useEffect:wv,useImperativeHandle:function(n,a,o){o=o!=null?o.concat([n]):null,kd(4194308,4,Qv.bind(null,a,n),o)},useLayoutEffect:function(n,a){return kd(4194308,4,n,a)},useInsertionEffect:function(n,a){kd(4,2,n,a)},useMemo:function(n,a){var o=vn();a=a===void 0?null:a;var l=n();if(rs){Vi(!0);try{n()}finally{Vi(!1)}}return o.memoizedState=[l,a],l},useReducer:function(n,a,o){var l=vn();if(o!==void 0){var f=o(a);if(rs){Vi(!0);try{o(a)}finally{Vi(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=r_.bind(null,Re,n),[l.memoizedState,n]},useRef:function(n){var a=vn();return n={current:n},a.memoizedState=n},useState:function(n){n=nh(n);var a=n.queue,o=Mv.bind(null,Re,a);return a.dispatch=o,[n.memoizedState,o]},useDebugValue:rh,useDeferredValue:function(n,a){var o=vn();return sh(o,n,a)},useTransition:function(){var n=nh(!1);return n=Nv.bind(null,Re,n.queue,!0,!1),vn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,o){var l=Re,f=vn();if(ke){if(o===void 0)throw Error(s(407));o=o()}else{if(o=a(),lt===null)throw Error(s(349));(Le&127)!==0||ov(l,a,o)}f.memoizedState=o;var h={value:o,getSnapshot:a};return f.queue=h,wv(lv.bind(null,l,h,n),[n]),l.flags|=2048,lo(9,{destroy:void 0},cv.bind(null,l,h,o,a),null),o},useId:function(){var n=vn(),a=lt.identifierPrefix;if(ke){var o=Ha,l=Ya;o=(l&~(1<<32-$n(l)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Nd++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=X1++,a="_"+a+"r_"+o.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:ch,useFormState:yv,useActionState:yv,useOptimistic:function(n){var a=vn();a.memoizedState=a.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=lh.bind(null,Re,!0,o),o.dispatch=a,[n,a]},useMemoCache:Wp,useCacheRefresh:function(){return vn().memoizedState=i_.bind(null,Re)},useEffectEvent:function(n){var a=vn(),o={impl:n};return a.memoizedState=o,function(){if((We&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},zv={readContext:rn,use:Dd,useCallback:Sv,useContext:rn,useEffect:ih,useImperativeHandle:Cv,useInsertionEffect:jv,useLayoutEffect:Iv,useMemo:Ov,useReducer:Td,useRef:bv,useState:function(){return Td(wi)},useDebugValue:rh,useDeferredValue:function(n,a){var o=jt();return _v(o,st.memoizedState,n,a)},useTransition:function(){var n=Td(wi)[0],a=jt().memoizedState;return[typeof n=="boolean"?n:zc(n),a]},useSyncExternalStore:sv,useId:Tv,useHostTransitionStatus:ch,useFormState:Ev,useActionState:Ev,useOptimistic:function(n,a){var o=jt();return fv(o,st,n,a)},useMemoCache:Wp,useCacheRefresh:kv,useEffectEvent:xv},s_={readContext:rn,use:Dd,useCallback:Sv,useContext:rn,useEffect:ih,useImperativeHandle:Cv,useInsertionEffect:jv,useLayoutEffect:Iv,useMemo:Ov,useReducer:th,useRef:bv,useState:function(){return th(wi)},useDebugValue:rh,useDeferredValue:function(n,a){var o=jt();return st===null?sh(o,n,a):_v(o,st.memoizedState,n,a)},useTransition:function(){var n=th(wi)[0],a=jt().memoizedState;return[typeof n=="boolean"?n:zc(n),a]},useSyncExternalStore:sv,useId:Tv,useHostTransitionStatus:ch,useFormState:Bv,useActionState:Bv,useOptimistic:function(n,a){var o=jt();return st!==null?fv(o,st,n,a):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:Wp,useCacheRefresh:kv,useEffectEvent:xv};function dh(n,a,o,l){a=n.memoizedState,o=o(l,a),o=o==null?a:N({},a,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var uh={enqueueSetState:function(n,a,o){n=n._reactInternals;var l=Jn(),f=nr(l);f.payload=a,o!=null&&(f.callback=o),a=ar(n,f,l),a!==null&&(Nn(a,n,l),kc(a,n,l))},enqueueReplaceState:function(n,a,o){n=n._reactInternals;var l=Jn(),f=nr(l);f.tag=1,f.payload=a,o!=null&&(f.callback=o),a=ar(n,f,l),a!==null&&(Nn(a,n,l),kc(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var o=Jn(),l=nr(o);l.tag=2,a!=null&&(l.callback=a),a=ar(n,l,o),a!==null&&(Nn(a,n,o),kc(a,n,o))}};function Uv(n,a,o,l,f,h,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,h,v):a.prototype&&a.prototype.isPureReactComponent?!Cc(o,l)||!Cc(f,h):!0}function $v(n,a,o,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,l),a.state!==n&&uh.enqueueReplaceState(a,a.state,null)}function ss(n,a){var o=a;if("ref"in a){o={};for(var l in a)l!=="ref"&&(o[l]=a[l])}if(n=n.defaultProps){o===a&&(o=N({},o));for(var f in n)o[f]===void 0&&(o[f]=n[f])}return o}function Lv(n){pd(n)}function Pv(n){console.error(n)}function Fv(n){pd(n)}function Hd(n,a){try{var o=n.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function Vv(n,a,o){try{var l=n.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function fh(n,a,o){return o=nr(o),o.tag=3,o.payload={element:null},o.callback=function(){Hd(n,a)},o}function qv(n){return n=nr(n),n.tag=3,n}function Kv(n,a,o,l){var f=o.type.getDerivedStateFromError;if(typeof f=="function"){var h=l.value;n.payload=function(){return f(h)},n.callback=function(){Vv(a,o,l)}}var v=o.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Vv(a,o,l),typeof f!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function o_(n,a,o,l,f){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=o.alternate,a!==null&&Xr(a,o,f,!0),o=sn.current,o!==null){switch(o.tag){case 31:case 13:case 19:return hn===null?ou():o.alternate===null&&xt===0&&(xt=3),o.flags&=-257,o.flags|=65536,o.lanes=f,l===Id?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([l]):a.add(l),Jh(n,l,f)),!1;case 22:return o.flags|=65536,l===Id?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([l]):o.add(l)),Jh(n,l,f)),!1}throw Error(s(435,o.tag))}return Jh(n,l,f),ou(),!1}if(ke)return a=sn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Np&&(n=Error(s(422),{cause:l}),_c(la(n,o)))):(l!==Np&&(a=Error(s(423),{cause:l}),_c(la(a,o))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=la(l,o),f=fh(n.stateNode,l,f),Up(n,f),xt!==4&&(xt=2)),!1;var h=Error(s(520),{cause:l});if(h=la(h,o),Jc===null?Jc=[h]:Jc.push(h),xt!==4&&(xt=2),a===null)return!0;l=la(l,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,n=f&-f,o.lanes|=n,n=fh(o.stateNode,l,n),Up(o,n),!1;case 1:if(a=o.type,h=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ur===null||!ur.has(h))))return o.flags|=65536,f&=-f,o.lanes|=f,f=qv(f),Kv(f,n,o,l),Up(o,f),!1;break;case 22:if(o.memoizedState!==null)return o.flags|=65536,!1}o=o.return}while(o!==null);return!1}var ph=Error(s(461)),Ot=!1;function kt(n,a,o,l){a.child=n===null?WE(a,null,o,l):is(a,n.child,o,l)}function Jv(n,a,o,l,f){o=o.render;var h=a.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Wr(a),l=Kp(n,a,o,v,h,f),x=Jp(),n!==null&&!Ot?(Zp(n,a,f),xi(n,a,f)):(ke&&x&&Ed(a),a.flags|=1,kt(n,a,l,f),a.child)}function Zv(n,a,o,l,f){if(n===null){var h=o.type;return typeof h=="function"&&!Cp(h)&&h.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=h,Xv(n,a,h,l,f)):(n=md(o.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!Bh(n,f)){var v=h.memoizedProps;if(o=o.compare,o=o!==null?o:Cc,o(v,l)&&n.ref===a.ref)return xi(n,a,f)}return a.flags|=1,n=yi(h,l),n.ref=a.ref,n.return=a,a.child=n}function Xv(n,a,o,l,f){if(n!==null){var h=n.memoizedProps;if(Cc(h,l)&&n.ref===a.ref)if(Ot=!1,a.pendingProps=l=h,Bh(n,f))(n.flags&131072)!==0&&(Ot=!0);else return a.lanes=n.lanes,xi(n,a,f)}return hh(n,a,o,l,f)}function Wv(n,a,o,l){var f=l.children,h=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|o:o,n!==null){for(l=a.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~h}else l=0,a.child=null;return eB(n,a,h,o,l)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&xd(a,h!==null?h.cachePool:null),h!==null?nv(a,h):Lp(),av(a);else return l=a.lanes=536870912,eB(n,a,h!==null?h.baseLanes|o:o,o,l)}else h!==null?(xd(a,h.cachePool),nv(a,h),sr(),a.memoizedState=null):(n!==null&&xd(a,null),Lp(),sr());return kt(n,a,f,o),a.child}function $c(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function eB(n,a,o,l,f){var h=Gp();return h=h===null?null:{parent:Ct._currentValue,pool:h},a.memoizedState={baseLanes:o,cachePool:h},n!==null&&xd(a,null),Lp(),av(a),n!==null&&Xr(n,a,l,!0),a.childLanes=f,null}function zd(n,a){return a=Ud({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function tB(n,a,o){return is(a,n.child,null,o),n=zd(a,a.pendingProps),n.flags|=2,Fn(a),a.memoizedState=null,n}function c_(n,a,o){var l=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(ke){if(l.mode==="hidden")return n=zd(a,l),a.lanes=536870912,n.memoizedState={baseLanes:0,cachePool:null},$c(null,n);if(Fp(a),(n=dt)?(n=Qb(n,fa),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Ji!==null?{id:Ya,overflow:Ha}:null,retryLane:536870912,hydrationErrors:null},o=GE(n),o.return=a,a.child=o,Ft=a,dt=null)):n=null,n===null)throw Xi(a);return a.lanes=536870912,null}return zd(a,l)}var h=n.memoizedState;if(h!==null){var v=h.dehydrated;if(Fp(a),f)if(a.flags&256)a.flags&=-257,a=tB(n,a,o);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(s(558));else if(Ot||Xr(n,a,o,!1),f=(o&n.childLanes)!==0,Ot||f){if(ir.current===null){if(l=lt,l!==null&&(v=zy(l,o),v!==0&&v!==h.retryLane))throw h.retryLane=v,qr(n,v),Nn(l,n,v),ph;ou()}a=tB(n,a,o)}else n=h.treeContext,dt=ha(v.nextSibling),Ft=a,ke=!0,Zi=null,fa=!1,n!==null&&zE(a,n),a=zd(a,l),a.flags|=134221824;return a}return n=yi(n.child,{mode:l.mode,children:l.children}),n.ref=a.ref,a.child=n,n.return=a,n}function uo(n,a){var o=a.ref;if(o===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(n===null||n.ref!==o)&&(a.flags|=4194816)}}function hh(n,a,o,l,f){return Wr(a),o=Kp(n,a,o,l,void 0,f),l=Jp(),n!==null&&!Ot?(Zp(n,a,f),xi(n,a,f)):(ke&&l&&Ed(a),a.flags|=1,kt(n,a,o,f),a.child)}function nB(n,a,o,l,f,h){return Wr(a),a.updateQueue=null,o=rv(a,l,o,f),iv(n),l=Jp(),n!==null&&!Ot?(Zp(n,a,h),xi(n,a,h)):(ke&&l&&Ed(a),a.flags|=1,kt(n,a,o,h),a.child)}function aB(n,a,o,l,f){if(Wr(a),a.stateNode===null){var h=eo,v=o.contextType;typeof v=="object"&&v!==null&&(h=rn(v)),h=new o(l,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=uh,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=l,h.state=a.memoizedState,h.refs={},Hp(a),v=o.contextType,h.context=typeof v=="object"&&v!==null?rn(v):eo,h.state=a.memoizedState,v=o.getDerivedStateFromProps,typeof v=="function"&&(dh(a,o,v,l),h.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(v=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),v!==h.state&&uh.enqueueReplaceState(h,h.state,null),Gc(a,l,h,f),Mc(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){h=a.stateNode;var x=a.memoizedProps,D=ss(o,x);h.props=D;var z=h.context,V=o.contextType;v=eo,typeof V=="object"&&V!==null&&(v=rn(V));var ne=o.getDerivedStateFromProps;V=typeof ne=="function"||typeof h.getSnapshotBeforeUpdate=="function",x=a.pendingProps!==x,V||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x||z!==v)&&$v(a,h,l,v),tr=!1;var Y=a.memoizedState;h.state=Y,Gc(a,l,h,f),Mc(),z=a.memoizedState,x||Y!==z||tr?(typeof ne=="function"&&(dh(a,o,ne,l),z=a.memoizedState),(D=tr||Uv(a,o,D,l,Y,z,v))?(V||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=z),h.props=l,h.state=z,h.context=v,l=D):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{h=a.stateNode,zp(n,a),v=a.memoizedProps,V=ss(o,v),h.props=V,ne=a.pendingProps,Y=h.context,z=o.contextType,D=eo,typeof z=="object"&&z!==null&&(D=rn(z)),x=o.getDerivedStateFromProps,(z=typeof x=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v!==ne||Y!==D)&&$v(a,h,l,D),tr=!1,Y=a.memoizedState,h.state=Y,Gc(a,l,h,f),Mc();var P=a.memoizedState;v!==ne||Y!==P||tr||n!==null&&n.dependencies!==null&&bd(n.dependencies)?(typeof x=="function"&&(dh(a,o,x,l),P=a.memoizedState),(V=tr||Uv(a,o,V,l,Y,P,D)||n!==null&&n.dependencies!==null&&bd(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,P,D),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,P,D)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&Y===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&Y===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=P),h.props=l,h.state=P,h.context=D,l=V):(typeof h.componentDidUpdate!="function"||v===n.memoizedProps&&Y===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&Y===n.memoizedState||(a.flags|=1024),l=!1)}return h=l,uo(n,a),l=(a.flags&128)!==0,h||l?(h=a.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,n!==null&&l?(a.child=is(a,n.child,null,f),a.child=is(a,null,o,f)):kt(n,a,o,f),a.memoizedState=h.state,n=a.child):n=xi(n,a,f),n}function iB(n,a,o,l){return Jr(),a.flags|=256,kt(n,a,o,l),a.child}var gh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ah(n){return{baseLanes:n,cachePool:VE()}}function mh(n,a,o){return n=n!==null?n.childLanes&~o:0,a&&(n|=Kn),n}function rB(n,a,o){var l=a.pendingProps,f=!1,h=(a.flags&128)!==0,v;if((v=h)||(v=n!==null&&n.memoizedState===null?!1:(on.current&2)!==0),v&&(f=!0,a.flags&=-129),v=(a.flags&32)!==0,a.flags&=-33,n===null){if(ke){if(f?rr(a):sr(),(n=dt)?(n=Qb(n,fa),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Ji!==null?{id:Ya,overflow:Ha}:null,retryLane:536870912,hydrationErrors:null},o=GE(n),o.return=a,a.child=o,Ft=a,dt=null)):n=null,n===null)throw Xi(a);return Ag(n)?a.lanes=32:a.lanes=536870912,null}return h=l.children,l=l.fallback,f?(sr(),f=a.mode,h=Ud({mode:"hidden",children:h},f),l=Kr(l,f,o,null),h.return=a,l.return=a,h.sibling=l,a.child=h,l=a.child,l.memoizedState=Ah(o),l.childLanes=mh(n,v,o),a.memoizedState=gh,$c(null,l)):(rr(a),yh(a,h))}var x=n.memoizedState;if(x!==null){var D=x.dehydrated;if(D!==null)return l_(n,a,h,v,l,D,x,o)}return f?(sr(),f=l.fallback,h=a.mode,x=n.child,D=x.sibling,l=yi(x,{mode:"hidden",children:l.children}),l.subtreeFlags=x.subtreeFlags&1206910976,D!==null?f=yi(D,f):(f=Kr(f,h,o,null),f.flags|=2),f.return=a,l.return=a,l.sibling=f,a.child=l,$c(null,l),l=a.child,f=n.child.memoizedState,f===null?f=Ah(o):(h=f.cachePool,h!==null?(x=Ct._currentValue,h=h.parent!==x?{parent:x,pool:x}:h):h=VE(),f={baseLanes:f.baseLanes|o,cachePool:h}),l.memoizedState=f,l.childLanes=mh(n,v,o),a.memoizedState=gh,$c(n.child,l)):(rr(a),o=n.child,n=o.sibling,o=yi(o,{mode:"visible",children:l.children}),o.return=a,o.sibling=null,n!==null&&(v=a.deletions,v===null?(a.deletions=[n],a.flags|=16):v.push(n)),a.child=o,a.memoizedState=null,o)}function yh(n,a){return a=Ud({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Ud(n,a){return n=Cn(22,n,null,a),n.lanes=0,n}function $d(n,a,o){return is(a,n.child,null,o),n=yh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function l_(n,a,o,l,f,h,v,x){if(o)return a.flags&256?(rr(a),a.flags&=-257,$d(n,a,x)):a.memoizedState!==null?(sr(),a.child=n.child,a.flags|=128,null):(sr(),h=f.fallback,v=a.mode,f=Ud({mode:"visible",children:f.children},v),h=Kr(h,v,x,null),h.flags|=2,f.return=a,h.return=a,f.sibling=h,a.child=f,is(a,n.child,null,x),f=a.child,f.memoizedState=Ah(x),f.childLanes=mh(n,l,x),a.memoizedState=gh,$c(null,f));if(rr(a),Ag(h)){if(l=h.nextSibling&&h.nextSibling.dataset,l)var D=l.dgst;return l=D,l!==""&&(f=Error(s(419)),f.stack="",f.digest=l,_c({value:f,source:null,stack:null})),$d(n,a,x)}if(Ot||Xr(n,a,x,!1),l=(x&n.childLanes)!==0,Ot||l){if(ir.current!==null)return $d(n,a,x);if(l=lt,l!==null&&(f=zy(l,x),f!==0&&f!==v.retryLane))throw v.retryLane=f,qr(n,f),Nn(l,n,f),ph;return gg(h)||ou(),$d(n,a,x)}return gg(h)?(a.flags|=192,a.child=n.child,null):(n=v.treeContext,dt=ha(h.nextSibling),Ft=a,ke=!0,Zi=null,fa=!1,n!==null&&zE(a,n),a=yh(a,f.children),a.flags|=134221824,a)}function sB(n,a,o){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),Bd(n.return,a,o)}function oB(n){for(var a=null;n!==null;){var o=n.alternate;o!==null&&Od(o)===null&&(a=n),n=n.sibling}return a}function Ld(n,a,o,l,f,h){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:f,treeForkCount:h}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=o,v.tailMode=f,v.treeForkCount=h)}function Eh(n){var a=n.child;for(n.child=null;a!==null;){var o=a.sibling;a.sibling=n.child,n.child=a,a=o}}function vh(n,a,o){var l=a.pendingProps,f=l.revealOrder,h=l.tail;l=l.children;var v=on.current;if(a.flags&128)return Yc(a,v),null;var x=(v&2)!==0;if(x?(v=v&1|2,a.flags|=128):v&=1,Yc(a,v),f==="backwards"&&n!==null?(Eh(n),kt(n,a,l,o),Eh(n)):kt(n,a,l,o),l=ke?Oc:0,!x&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&sB(n,o,a);else if(n.tag===19)sB(n,o,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"backwards":o=oB(a.child),o===null?(f=a.child,a.child=null):(f=o.sibling,o.sibling=null,Eh(a)),Ld(a,!0,f,null,h,l);break;case"unstable_legacy-backwards":for(o=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Od(n)===null){a.child=f;break}n=f.sibling,f.sibling=o,o=f,f=n}Ld(a,!0,o,null,h,l);break;case"together":Ld(a,!1,null,null,void 0,l);break;case"independent":a.memoizedState=null;break;default:o=oB(a.child),o===null?(f=a.child,a.child=null):(f=o.sibling,o.sibling=null),Ld(a,!1,f,o,h,l)}return a.child}function cB(n,a,o){var l=a.pendingProps;return Wi(a,a.type,l.value),kt(n,a,l.children,o),a.child}function xi(n,a,o){if(n!==null&&(a.dependencies=n.dependencies),dr|=a.lanes,(o&a.childLanes)===0)if(n!==null){if(Xr(n,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(s(153));if(a.child!==null){for(n=a.child,o=yi(n,n.pendingProps),a.child=o,o.return=a;n.sibling!==null;)n=n.sibling,o=o.sibling=yi(n,n.pendingProps),o.return=a;o.sibling=null}return a.child}function Bh(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&bd(n)))}function d_(n,a,o){switch(a.tag){case 3:Bt(a,a.stateNode.containerInfo),Wi(a,Ct,n.memoizedState.cache),Jr();break;case 27:case 5:zr(a);break;case 4:Bt(a,a.stateNode.containerInfo);break;case 10:Wi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Fp(a),null;break;case 13:var l=a.memoizedState;if(l!==null){if(l.dehydrated!==null)return rr(a),a.flags|=128,null;l=Xr(n,a,o,!1);var f=a.child.childLanes;return l||(o&f)!==0?rB(n,a,o):(rr(a),n=xi(n,a,o),n!==null?n.sibling:null)}rr(a);break;case 19:if(a.flags&128)return vh(n,a,o);if(f=(n.flags&128)!==0,l=(o&a.childLanes)!==0,l||(Xr(n,a,o,!1),l=(o&a.childLanes)!==0),f){if(l)return vh(n,a,o);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Yc(a,on.current),l)break;return null;case 22:return a.lanes=0,Wv(n,a,o,a.pendingProps);case 24:Wi(a,Ct,n.memoizedState.cache)}return xi(n,a,o)}function lB(n,a,o){if(n!==null)if(n.memoizedProps!==a.pendingProps)Ot=!0;else{if(!Bh(n,o)&&(a.flags&128)===0)return Ot=!1,d_(n,a,o);Ot=(n.flags&131072)!==0}else Ot=!1,ke&&(a.flags&1048576)!==0&&HE(a,Oc,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(n=ns(a.elementType),a.type=n,typeof n=="function")Cp(n)?(l=ss(n,l),a.tag=1,a=aB(null,a,n,l,o)):(a.tag=0,a=hh(null,a,n,l,o));else{if(n!=null){var f=n.$$typeof;if(f===K){a.tag=11,a=Jv(null,a,n,l,o);break e}else if(f===le){a.tag=14,a=Zv(null,a,n,l,o);break e}else if(f===pe){a.tag=10,a.type=n,a=cB(null,a,o);break e}}throw a=X(n)||n,Error(s(306,a,""))}}return a;case 0:return hh(n,a,a.type,a.pendingProps,o);case 1:return l=a.type,f=ss(l,a.pendingProps),aB(n,a,l,f,o);case 3:e:{if(Bt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));l=a.pendingProps;var h=a.memoizedState;f=h.element,zp(n,a),Gc(a,l,null,o);var v=a.memoizedState;if(l=v.cache,Wi(a,Ct,l),l!==h.cache&&Tp(a,[Ct],o,!0),Mc(),l=v.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:v.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=iB(n,a,l,o);break e}else if(l!==f){f=la(Error(s(424)),a),_c(f),a=iB(n,a,l,o);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(dt=ha(n.firstChild),Ft=a,ke=!0,Zi=null,fa=!0,o=WE(a,null,l,o),a.child=o;o;)o.flags=o.flags&-3|134221824,o=o.sibling}else{if(Jr(),l===f){a=xi(n,a,o);break e}kt(n,a,l,o)}a=a.child}return a;case 26:return uo(n,a),n===null?(o=Db(a.type,null,a.pendingProps,null))?a.memoizedState=o:ke||(a.stateNode=pb(a.type,a.pendingProps,In.current,a)):a.memoizedState=Db(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return zr(a),n===null&&ke&&(l=a.stateNode=Ob(a.type,a.pendingProps,In.current),Ft=a,fa=!0,f=dt,hr(a.type)?(mg=f,dt=ha(l.firstChild)):dt=f),kt(n,a,a.pendingProps.children,o),uo(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&ke&&((f=l=dt)&&(l=iN(l,a.type,a.pendingProps,fa),l!==null?(a.stateNode=l,Ft=a,dt=ha(l.firstChild),fa=!1,f=!0):f=!1),f||Xi(a)),zr(a),f=a.type,h=a.pendingProps,v=n!==null?n.memoizedProps:null,l=h.children,cg(f,h)?l=null:v!==null&&cg(f,v)&&(a.flags|=32),a.memoizedState!==null&&(f=Kp(n,a,W1,null,null,o),So._currentValue=f),uo(n,a),kt(n,a,l,o),a.child;case 6:return n===null&&ke&&((n=o=dt)&&(o=rN(o,a.pendingProps,fa),o!==null?(a.stateNode=o,Ft=a,dt=null,n=!0):n=!1),n||Xi(a)),null;case 13:return rB(n,a,o);case 4:return Bt(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=is(a,null,l,o):kt(n,a,l,o),a.child;case 11:return Jv(n,a,a.type,a.pendingProps,o);case 7:return l=a.pendingProps,uo(n,a),kt(n,a,l,o),a.child;case 8:return kt(n,a,a.pendingProps.children,o),a.child;case 12:return kt(n,a,a.pendingProps.children,o),a.child;case 10:return cB(n,a,o);case 9:return f=a.type._context,l=a.pendingProps.children,Wr(a),f=rn(f),l=l(f),a.flags|=1,kt(n,a,l,o),a.child;case 14:return Zv(n,a,a.type,a.pendingProps,o);case 15:return Xv(n,a,a.type,a.pendingProps,o);case 19:return vh(n,a,o);case 31:return c_(n,a,o);case 22:return Wv(n,a,o,a.pendingProps);case 24:return Wr(a),l=rn(Ct),n===null?(f=Gp(),f===null&&(f=lt,h=kp(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=o),f=h),a.memoizedState={parent:l,cache:f},Hp(a),Wi(a,Ct,f)):((n.lanes&o)!==0&&(zp(n,a),Gc(a,null,null,o),Mc()),f=n.memoizedState,h=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Wi(a,Ct,l)):(l=h.cache,Wi(a,Ct,l),l!==f.cache&&Tp(a,[Ct],o,!0))),kt(n,a,a.pendingProps.children,o),a.child;case 30:return a.stateNode===null&&(a.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=a.pendingProps,l.name!=null&&l.name!=="auto"?a.flags|=n===null?18882560:18874368:ke&&Ed(a),n!==null&&n.memoizedProps.name!==l.name?a.flags|=4194816:uo(n,a),kt(n,a,l.children,o),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function ji(n){n.flags|=4}function bh(n,a,o,l,f){var h;if((h=(n.mode&32)!==0)&&(h=o===null?Gb(a,l):Gb(a,l)&&(l.src!==o.src||l.srcSet!==o.srcSet)),h){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(LB())n.flags|=8192;else throw as=Id,Yp}else n.flags&=-16777217}function dB(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Yb(a))if(LB())n.flags|=8192;else throw as=Id,Yp}function Pd(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Gy():536870912,n.lanes|=a,Ao|=a)}function Lc(n,a){if(!ke)switch(n.tailMode){case"visible":break;case"collapsed":for(var o=n.tail,l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null;break;default:for(a=n.tail,o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n.tail=null:o.sibling=null}}function ut(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=0,l=0;if(a)for(var f=n.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags&1206910976,l|=f.flags&1206910976,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)o|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=o,a}function u_(n,a,o){var l=a.pendingProps;switch(_p(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(a),null;case 1:return ut(a),null;case 3:return o=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Bi(Ct),bt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(ao(a)?ji(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Rp())),ut(a),null;case 26:var f=a.type,h=a.memoizedState;return n===null?(ji(a),h!==null?(ut(a),dB(a,h)):(ut(a),bh(a,f,null,l,o))):h?h!==n.memoizedState?(ji(a),ut(a),dB(a,h)):(ut(a),a.flags&=-16777217):(n=n.memoizedProps,n!==l&&ji(a),ut(a),bh(a,f,n,l,o)),null;case 27:if(fi(a),o=In.current,f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ji(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return ut(a),a.subtreeFlags&=-33554433,null}n=nt.current,ao(a)?UE(a):(n=Ob(f,l,o),a.stateNode=n,ji(a))}return ut(a),a.subtreeFlags&=-33554433,null;case 5:if(fi(a),f=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ji(a);else{if(!l){if(a.stateNode===null)throw Error(s(166));return ut(a),a.subtreeFlags&=-33554433,null}if(h=nt.current,ao(a))UE(a);else{var v=tl(In.current);switch(h){case 1:h=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=v.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?v.createElement(f,{is:l.is}):v.createElement(f)}}h[an]=a,h[Qn]=l;e:for(v=a.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===a)break e;for(;v.sibling===null;){if(v.return===null||v.return===a)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}a.stateNode=h;e:switch(ln(h,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ji(a)}}return ut(a),a.subtreeFlags&=-33554433,bh(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,o),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&ji(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(s(166));if(n=In.current,ao(a)){if(n=a.stateNode,o=a.memoizedProps,l=null,f=Ft,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[an]=a,n=!!(n.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||lb(n.nodeValue,o)),n||Xi(a,!0)}else n=tl(n).createTextNode(l),n[an]=a,a.stateNode=n}return ut(a),null;case 31:if(o=a.memoizedState,n===null||n.memoizedState!==null){if(l=ao(a),o!==null){if(n===null){if(!l)throw Error(s(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[an]=a}else Jr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ut(a),n=!1}else o=Rp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return a.flags&256?(Fn(a),a):(Fn(a),null);if((a.flags&128)!==0)throw Error(s(558))}return ut(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=ao(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(s(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[an]=a}else Jr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ut(a),f=!1}else f=Rp(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(Fn(a),a):(Fn(a),null)}return Fn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=l!==null,n=n!==null&&n.memoizedState!==null,o&&(l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==f&&(l.flags|=2048)),o!==n&&o&&(a.child.flags|=8192),Pd(a,a.updateQueue),ut(a),null);case 4:return bt(),n===null&&ag(a.stateNode.containerInfo),a.flags|=67108864,ut(a),null;case 10:return Bi(a.type),ut(a),null;case 19:if(Vp(a),l=a.memoizedState,l===null)return ut(a),null;if(f=(a.flags&128)!==0,h=l.rendering,h===null)if(f)Lc(l,!1);else{if(xt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(h=Od(n),h!==null){for(a.flags|=128,Lc(l,!1),n=h.updateQueue,a.updateQueue=n,Pd(a,n),a.subtreeFlags=0,n=o,o=a.child;o!==null;)ME(o,n),o=o.sibling;return Yc(a,on.current&1|2),ke&&Ei(a,l.treeForkCount),a.child}n=n.sibling}l.tail!==null&&zn()>au&&(a.flags|=128,f=!0,Lc(l,!1),a.lanes=4194304)}else{if(!f)if(n=Od(h),n!==null){if(a.flags|=128,f=!0,n=n.updateQueue,a.updateQueue=n,Pd(a,n),Lc(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!h.alternate&&!ke)return ut(a),null}else 2*zn()-l.renderingStartTime>au&&o!==536870912&&(a.flags|=128,f=!0,Lc(l,!1),a.lanes=4194304);l.isBackwards?(h.sibling=a.child,a.child=h):(n=l.last,n!==null?n.sibling=h:a.child=h,l.last=h)}if(l.tail!==null){n=l.tail;e:{for(o=n;o!==null;){if(o.alternate!==null){o=!1;break e}o=o.sibling}o=!0}return l.rendering=n,l.tail=n.sibling,l.renderingStartTime=zn(),n.sibling=null,h=on.current,h=f?h&1|2:h&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!o||ke?Yc(a,h):(o=h,Se(sn,a),Se(on,o),hn===null&&(hn=a)),ke&&Ei(a,l.treeForkCount),n}return ut(a),null;case 22:case 23:return Fn(a),Pp(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(o&536870912)!==0&&(a.flags&128)===0&&(ut(a),a.subtreeFlags&6&&(a.flags|=8192)):ut(a),o=a.updateQueue,o!==null&&Pd(a,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(a.flags|=2048),n!==null&&ve(ts),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Bi(Ct),ut(a),null;case 25:return null;case 30:return a.flags|=33554432,ut(a),null}throw Error(s(156,a.tag))}function f_(n,a){switch(_p(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Bi(Ct),bt(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return fi(a),null;case 31:if(a.memoizedState!==null){if(Fn(a),a.alternate===null)throw Error(s(340));Jr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Fn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Jr()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return Vp(a),n=a.flags,n&65536?(a.flags=n&-65537|128,n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null),a.flags|=4,a):null;case 4:return bt(),null;case 10:return Bi(a.type),null;case 22:case 23:return Fn(a),Pp(),n!==null&&ve(ts),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Bi(Ct),null;case 25:return null;default:return null}}function uB(n,a){switch(_p(a),a.tag){case 3:Bi(Ct),bt();break;case 26:case 27:case 5:fi(a);break;case 4:bt();break;case 31:a.memoizedState!==null&&Fn(a);break;case 13:Fn(a);break;case 19:Vp(a);break;case 10:Bi(a.type);break;case 22:case 23:Fn(a),Pp(),n!==null&&ve(ts);break;case 24:Bi(Ct)}}function Pc(n,a){try{var o=a.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var f=l.next;o=f;do{if((o.tag&n)===n){l=void 0;var h=o.create,v=o.inst;l=h(),v.destroy=l}o=o.next}while(o!==f)}}catch(x){it(a,a.return,x)}}function or(n,a,o){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var h=f.next;l=h;do{if((l.tag&n)===n){var v=l.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,f=a;var D=o,z=x;try{z()}catch(V){it(f,D,V)}}}l=l.next}while(l!==h)}}catch(V){it(a,a.return,V)}}function fB(n){var a=n.updateQueue;if(a!==null){var o=n.stateNode;try{tv(a,o)}catch(l){it(n,n.return,l)}}}function pB(n,a,o){o.props=ss(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(l){it(n,a,l)}}function za(n,a){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:var f=n.stateNode,h=Ai(n.memoizedProps,f);(f.ref===null||f.ref.name!==h)&&(f.ref=vb(h)),l=f.ref;break;case 7:if(n.stateNode===null){var v=new Zn(n);A(n.child,!1,nN,v,void 0,void 0),n.stateNode=v}l=n.stateNode;break;default:l=n.stateNode}typeof o=="function"?n.refCleanup=o(l):o.current=l}}catch(x){it(n,a,x)}}function cn(n,a){var o=n.ref,l=n.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(f){it(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(f){it(n,a,f)}else o.current=null}function Fd(n,a){if((n.tag===5||n.tag===27||n.tag===6)&&n.alternate===null&&a!==null)for(var o=0;o<a.length;o++)Ib(n.stateNode,a[o])}function hB(n){for(var a=n.return;a!==null&&(xh(a)&&Ib(n.stateNode,a.stateNode),!wh(a));)a=a.return}function Fc(n){for(var a=n.return;a!==null&&(xh(a)&&aN(n.stateNode,a.stateNode),!wh(a));)a=a.return}function wh(n){return n.tag===5||n.tag===3||n.tag===27}function xh(n){return n&&n.tag===7&&n.stateNode!==null}function jh(n){var a=n.type,o=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(f){it(n,n.return,f)}}function Ih(n,a,o){try{var l=n.stateNode;G_(l,n.type,o,a),l[Qn]=a}catch(f){it(n,n.return,f)}}function gB(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&hr(n.type)||n.tag===4}function Qh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gB(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&hr(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ch(n,a,o,l){var f=n.tag;if(f===5||f===6)f=n.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(f,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(f),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Ga)),Fd(n,l),Xe=!0;else if(f!==4&&(f===27&&(Fd(n,l),l=null,hr(n.type)&&(o=n.stateNode,a=null)),n=n.child,n!==null))for(Ch(n,a,o,l),n=n.sibling;n!==null;)Ch(n,a,o,l),n=n.sibling}function Vd(n,a,o,l){var f=n.tag;if(f===5||f===6)f=n.stateNode,a?o.insertBefore(f,a):o.appendChild(f),Fd(n,l),Xe=!0;else if(f!==4&&(f===27&&(Fd(n,l),l=null,hr(n.type)&&(o=n.stateNode)),n=n.child,n!==null))for(Vd(n,a,o,l),n=n.sibling;n!==null;)Vd(n,a,o,l),n=n.sibling}function AB(n){var a=n.stateNode,o=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);ln(a,l,o),a[an]=n,a[Qn]=o}catch(h){it(n,n.return,h)}}var qd=!1,Vn=null;function mB(n){(n.tag===30||(n.subtreeFlags&33554432)!==0)&&(qd=!0)}var Ua=null;function yB(){var n=Ua;return Ua=null,n}var Sn=0;function fo(n,a,o,l,f){return Sn=0,EB(n.child,a,o,l,f)}function EB(n,a,o,l,f){for(var h=!1;n!==null;){if(n.tag===5){var v=n.stateNode;if(l!==null){var x=ug(v);l.push(x),x.view&&(h=!0)}else h||ug(v).view&&(h=!0);qd=!0,yb(v,Sn===0?a:a+"_"+Sn,o),Sn++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&f||EB(n.child,a,o,l,f)&&(h=!0));n=n.sibling}return h}function $a(n,a){for(;n!==null;)n.tag===5?Eb(n.stateNode,n.memoizedProps):(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&a||$a(n.child,a)),n=n.sibling}function Kd(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if((n.tag!==22||n.memoizedState===null)&&(Kd(n),n.tag===30&&(n.flags&18874368)!==0&&n.stateNode.paired)){var a=n.memoizedProps;if(a.name==null||a.name==="auto")throw Error(s(544));var o=a.name;a=mi(a.default,a.share),a!=="none"&&(fo(n,o,a,null,!1)||$a(n.child,!1))}n=n.sibling}}function Sh(n,a){if(n.tag===30){var o=n.stateNode,l=n.memoizedProps,f=Ai(l,o),h=mi(l.default,o.paired?l.share:l.enter);h!=="none"?fo(n,f,h,null,!1)?(Kd(n),o.paired||a||vo(n,l.onEnter)):$a(n.child,!1):Kd(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Sh(n,a),n=n.sibling;else Kd(n)}function Oh(n){if(Vn!==null&&Vn.size!==0){var a=Vn;if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var o=n.memoizedProps,l=o.name;if(l!=null&&l!=="auto"){var f=a.get(l);if(f!==void 0){var h=mi(o.default,o.share);if(h!=="none"&&(fo(n,l,h,null,!1)?(h=n.stateNode,f.paired=h,h.paired=f,vo(n,o.onShare)):$a(n.child,!1)),a.delete(l),a.size===0)break}}}Oh(n)}n=n.sibling}}}function _h(n){if(n.tag===30){var a=n.memoizedProps,o=Ai(a,n.stateNode),l=Vn!==null?Vn.get(o):void 0,f=mi(a.default,l!==void 0?a.share:a.exit);f!=="none"&&(fo(n,o,f,null,!1)?l!==void 0?(f=n.stateNode,l.paired=f,f.paired=l,Vn.delete(o),vo(n,a.onShare)):vo(n,a.onExit):$a(n.child,!1)),Vn!==null&&Oh(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)_h(n),n=n.sibling;else Vn!==null&&Oh(n)}function vB(n){for(n=n.child;n!==null;){if(n.tag===30){var a=n.memoizedProps,o=Ai(a,n.stateNode);a=mi(a.default,a.update),n.flags&=-5,a!=="none"&&fo(n,o,a,n.memoizedState=[],!1)}else(n.subtreeFlags&33554432)!==0&&vB(n);n=n.sibling}}function Nh(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var a=n.stateNode;a.paired!==null&&(a.paired=null,$a(n.child,!1))}Nh(n)}n=n.sibling}}function Jd(n){if(n.tag===30)n.stateNode.paired=null,$a(n.child,!1),Nh(n);else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Jd(n),n=n.sibling;else Nh(n)}function BB(n){for(n=n.child;n!==null;)n.tag===30?$a(n.child,!1):(n.subtreeFlags&33554432)!==0&&BB(n),n=n.sibling}function Rh(n,a,o,l,f,h,v){for(var x=!1;a!==null;){if(a.tag===5){var D=a.stateNode;if(h!==null&&Sn<h.length){var z=h[Sn],V=ug(D);(z.view||V.view)&&(x=!0);var ne;if(ne=(n.flags&4)===0)if(V.clip)ne=!0;else{ne=z.rect;var Y=V.rect;ne=ne.y!==Y.y||ne.x!==Y.x||ne.height!==Y.height||ne.width!==Y.width}ne&&(n.flags|=4),V.abs?V=!z.abs:(z=z.rect,V=V.rect,V=z.height!==V.height||z.width!==V.width),V&&(n.flags|=32)}else n.flags|=32;(n.flags&4)!==0&&yb(D,Sn===0?o:o+"_"+Sn,f),x&&(n.flags&4)!==0||(Ua===null&&(Ua=[]),Ua.push(D,Sn===0?l:l+"_"+Sn,a.memoizedProps)),Sn++}else(a.tag!==22||a.memoizedState===null)&&(a.tag===30&&v?n.flags|=a.flags&32:Rh(n,a.child,o,l,f,h,v)&&(x=!0));a=a.sibling}return x}function bB(n,a){for(n=n.child;n!==null;){if(n.tag===30){var o=n.memoizedProps,l=n.stateNode,f=Ai(o,l),h=mi(o.default,o.update),v;v=n.memoizedState,n.memoizedState=null,l=n;var x=n.child;Sn=0,f=Rh(l,x,f,f,h,v,!1),(n.flags&4)!==0&&f&&vo(n,o.onUpdate)}else(n.subtreeFlags&33554432)!==0&&bB(n);n=n.sibling}}var Vt=!1,et=!1,La=!1,Dh=!1,wB=typeof WeakSet=="function"?WeakSet:Set,qt=null,Pa=!1,Vc=!1,Zd=!1,Th=!1;function p_(n,a,o){if(n=n.containerInfo,sg=Oo,n=QE(n),Bp(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var h=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var x=0,D=-1,z=-1,V=0,ne=0,Y=n,P=null;t:for(;;){for(var ge;Y!==l||h!==0&&Y.nodeType!==3||(D=x+h),Y!==v||f!==0&&Y.nodeType!==3||(z=x+f),Y.nodeType===3&&(x+=Y.nodeValue.length),(ge=Y.firstChild)!==null;)P=Y,Y=ge;for(;;){if(Y===n)break t;if(P===l&&++V===h&&(D=x),P===v&&++ne===f&&(z=x),(ge=Y.nextSibling)!==null)break;Y=P,P=Y.parentNode}Y=ge}l=D===-1||z===-1?null:{start:D,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(og={focusedElem:n,selectionRange:l},Oo=!1,o=(o&335544064)===o,qt=a,a=o?9270:1024;qt!==null;){if(n=qt,o&&(l=n.deletions,l!==null))for(h=0;h<l.length;h++)o&&_h(l[h]);if(n.alternate===null&&(n.flags&2)!==0)o&&mB(n),Xd(o);else{if(n.tag===22){if(l=n.alternate,n.memoizedState!==null){l!==null&&l.memoizedState===null&&o&&_h(l),Xd(o);continue}else if(l!==null&&l.memoizedState!==null){o&&mB(n),Xd(o);continue}}l=n.child,(n.subtreeFlags&a)!==0&&l!==null?(l.return=n,qt=l):(o&&vB(n),Xd(o))}}Vn=null}function Xd(n){for(;qt!==null;){var a=qt,o=n,l=a.alternate,f=a.flags;switch(a.tag){case 0:case 11:case 15:break;case 1:if((f&1024)!==0&&l!==null){o=void 0,f=l.memoizedProps,l=l.memoizedState;var h=a.stateNode;try{var v=ss(a.type,f);o=h.getSnapshotBeforeUpdate(v,l),h.__reactInternalSnapshotBeforeUpdate=o}catch(x){it(a,a.return,x)}}break;case 3:if((f&1024)!==0){if(l=a.stateNode.containerInfo,o=l.nodeType,o===9)hg(l);else if(o===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":hg(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:o&&l!==null&&(o=Ai(l.memoizedProps,l.stateNode),f=a.memoizedProps,f=mi(f.default,f.update),f!=="none"&&fo(l,o,f,l.memoizedState=[],!0));break;default:if((f&1024)!==0)throw Error(s(163))}if(l=a.sibling,l!==null){l.return=a.return,qt=l;break}qt=a.return}}function xB(n,a,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:Fa(n,o),l&4&&Pc(5,o);break;case 1:if(Fa(n,o),l&4)if(n=o.stateNode,a===null)try{n.componentDidMount()}catch(v){it(o,o.return,v)}else{var f=ss(o.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){it(o,o.return,v)}}l&64&&fB(o),l&512&&za(o,o.return);break;case 3:if(Fa(n,o),l&64&&(n=o.updateQueue,n!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{tv(n,a)}catch(v){it(o,o.return,v)}}break;case 27:a===null&&l&4&&AB(o);case 26:case 5:Fa(n,o),a===null&&l&4&&jh(o),l&512&&za(o,o.return);break;case 12:Fa(n,o);break;case 31:Fa(n,o),l&4&&CB(n,o);break;case 13:Fa(n,o),l&4&&SB(n,o),l&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=j_.bind(null,o),sN(n,o))));break;case 22:if(l=o.memoizedState!==null||Vt,!l){var h=a!==null&&a.memoizedState!==null||et;a=Vt,f=et,Vt=l,(et=h)&&!f?(l=2,(o.subtreeFlags&8772)!==0&&(l|=1),Qa(n,o,l)):Fa(n,o),Vt=a,et=f}break;case 30:Fa(n,o),l&512&&za(o,o.return);break;case 7:l&512&&za(o,o.return);default:Fa(n,o)}}function kh(n,a){for(n=n.child;n!==null;)jB(n,a),n=n.sibling}function jB(n,a){switch(n.tag){case 5:case 26:try{var o=n.stateNode;if(a){var l=o.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var f=n.stateNode,h=n.memoizedProps.style,v=h!=null&&h.hasOwnProperty("display")?h.display:null;f.style.display=v==null||typeof v=="boolean"?"":(""+v).trim()}}catch(D){it(n,n.return,D)}Mh(n,a);break;case 6:try{n.stateNode.nodeValue=a?"":n.memoizedProps,Xe=!0}catch(D){it(n,n.return,D)}break;case 18:try{var x=n.stateNode;a?mb(x,!0):mb(n.stateNode,!1)}catch(D){it(n,n.return,D)}break;case 22:case 23:n.memoizedState===null&&kh(n,a);break;default:kh(n,a)}}function Mh(n,a){if(n.subtreeFlags&67108864)for(n=n.child;n!==null;){e:{var o=n,l=a;switch(o.tag){case 4:jB(o,l);break e;case 22:o.memoizedState===null&&Mh(o,l);break e;default:Mh(o,l)}}n=n.sibling}}function IB(n){var a=n.alternate;a!==null&&(n.alternate=null,IB(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&ad(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ht=null,On=!1;function ja(n,a,o){for(o=o.child;o!==null;)QB(n,a,o),o=o.sibling}function QB(n,a,o){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(Ac,o)}catch{}switch(o.tag){case 26:et||cn(o,a),ja(n,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&!et&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:et||cn(o,a),Fc(o);var l=ht,f=On;hr(o.type)&&(ht=o.stateNode,On=!1),ja(n,a,o),_b(o.stateNode,o.type,o.memoizedProps),ht=l,On=f;break;case 5:et||cn(o,a),Fc(o);case 6:if(o.tag===6&&Fc(o),l=ht,f=On,ht=null,ja(n,a,o),ht=l,On=f,ht!==null)if(On)try{(ht.nodeType===9?ht.body:ht.nodeName==="HTML"?ht.ownerDocument.body:ht).removeChild(o.stateNode),Xe=!0}catch(h){it(o,a,h)}else try{ht.removeChild(o.stateNode),Xe=!0}catch(h){it(o,a,h)}break;case 18:ht!==null&&(On?(n=ht,Ab(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),_o(n)):Ab(ht,o.stateNode));break;case 4:l=ht,f=On,ht=o.stateNode.containerInfo,On=!0,ja(n,a,o),ht=l,On=f;break;case 0:case 11:case 14:case 15:or(2,o,a),et||or(4,o,a),ja(n,a,o);break;case 1:et||(cn(o,a),l=o.stateNode,typeof l.componentWillUnmount=="function"&&pB(o,a,l)),ja(n,a,o);break;case 21:ja(n,a,o);break;case 22:et=(l=et)||o.memoizedState!==null,ja(n,a,o),et=l;break;case 30:cn(o,a),ja(n,a,o);break;case 7:et||cn(o,a),ja(n,a,o);break;default:ja(n,a,o)}}function CB(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{_o(n)}catch(o){it(a,a.return,o)}}}function SB(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{_o(n)}catch(o){it(a,a.return,o)}}function h_(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new wB),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new wB),a;default:throw Error(s(435,n.tag))}}function Wd(n,a){var o=h_(n);a.forEach(function(l){if(!o.has(l)){o.add(l);var f=I_.bind(null,n,l);l.then(f,f)}})}function Bn(n,a,o){var l=a.deletions;if(l!==null)for(var f=0;f<l.length;f++){var h=l[f],v=n,x=a,D=x;e:for(;D!==null;){switch(D.tag){case 27:if(hr(D.type)){ht=D.stateNode,On=!1;break e}break;case 5:ht=D.stateNode,On=!1;break e;case 3:case 4:ht=D.stateNode.containerInfo,On=!0;break e}D=D.return}if(ht===null)throw Error(s(160));QB(v,x,h),ht=null,On=!1,v=h.alternate,v!==null&&(v.return=null),h.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)OB(a,n,o),a=a.sibling}var Ia=null;function OB(n,a,o){var l=n.alternate,f=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(f&4&&(l=n.updateQueue,l=l!==null?l.events:null,l!==null))for(var h=0;h<l.length;h++){var v=l[h];v.ref.impl=v.nextImpl}Bn(a,n,o),bn(n),f&4&&(or(3,n,n.return),Pc(3,n),or(5,n,n.return));break;case 1:Bn(a,n,o),bn(n),f&512&&(et||l===null||cn(l,l.return)),f&64&&Vt&&(n=n.updateQueue,n!==null&&(a=n.callbacks,a!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?a:o.concat(a))));break;case 26:if(h=Ia,Bn(a,n,o),bn(n),f&512&&(et||l===null||cn(l,l.return)),f&4)if(f=l!==null?l.memoizedState:null,o=n.memoizedState,l===null)if(o===null)if(n.stateNode===null)if(Vt)n.stateNode=pb(n.type,n.memoizedProps,a.containerInfo,n);else{e:{a=n.type,o=n.memoizedProps,f=h.ownerDocument||h;t:switch(a){case"title":l=f.getElementsByTagName("title")[0],(!l||l[Ec]||l[an]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=f.createElement(a),f.head.insertBefore(l,f.querySelector("head > title"))),ln(l,a,o),l[an]=n,Pt(l),a=l;break e;case"link":if(h=Mb("link","href",f).get(a+(o.href||""))){for(v=0;v<h.length;v++)if(l=h[v],l.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&l.getAttribute("rel")===(o.rel==null?null:o.rel)&&l.getAttribute("title")===(o.title==null?null:o.title)&&l.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){h.splice(v,1);break t}}l=f.createElement(a),ln(l,a,o),f.head.appendChild(l);break;case"meta":if(h=Mb("meta","content",f).get(a+(o.content||""))){for(v=0;v<h.length;v++)if(l=h[v],l.getAttribute("content")===(o.content==null?null:""+o.content)&&l.getAttribute("name")===(o.name==null?null:o.name)&&l.getAttribute("property")===(o.property==null?null:o.property)&&l.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute("charset")===(o.charSet==null?null:o.charSet)){h.splice(v,1);break t}}l=f.createElement(a),ln(l,a,o),f.head.appendChild(l);break;default:throw Error(s(468,a))}l[an]=n,Pt(l),a=l}n.stateNode=a}else Vt||Bg(h,n.type,n.stateNode);else n.stateNode=kb(h,o,n.memoizedProps);else f!==o?(f===null?(a=l.stateNode,a===null||et||a.parentNode.removeChild(a)):f.count--,o===null?Vt||Bg(h,n.type,n.stateNode):kb(h,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Ih(n,n.memoizedProps,l.memoizedProps);break;case 27:Bn(a,n,o),bn(n),f&512&&(et||l===null||cn(l,l.return)),l!==null&&f&4&&Ih(n,n.memoizedProps,l.memoizedProps);break;case 5:if(h=La,La=!1,Bn(a,n,o),La=h,bn(n),f&512&&(et||l===null||cn(l,l.return)),n.flags&32){a=n.stateNode;try{Vs(a,""),Xe=!0}catch(V){it(n,n.return,V)}}f&4&&n.stateNode!=null&&(a=n.memoizedProps,Ih(n,a,l!==null?l.memoizedProps:a)),f&1024&&(Dh=!0);break;case 6:if(Bn(a,n,o),bn(n),f&4){if(n.stateNode===null)throw Error(s(162));a=n.memoizedProps,o=n.stateNode;try{o.nodeValue=a,Xe=!0}catch(V){it(n,n.return,V)}}break;case 3:if(Xe=!1,hu=null,h=Ia,Ia=nl(a.containerInfo),Bn(a,n,o),Ia=h,bn(n),f&4&&l!==null&&l.memoizedState.isDehydrated)try{_o(a.containerInfo)}catch(V){it(n,n.return,V)}Dh&&(Dh=!1,_B(n)),Xe=!1;break;case 4:f=La,La=Vt,l=Zy(),h=Ia,Ia=nl(n.stateNode.containerInfo),Bn(a,n,o),bn(n),Ia=h,Xe&&Vc&&(Zd=!0),Xe=l,La=f;break;case 12:Bn(a,n,o),bn(n);break;case 31:Bn(a,n,o),bn(n),f&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Wd(n,a)));break;case 13:Bn(a,n,o),bn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nu=zn()),f&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Wd(n,a)));break;case 22:h=n.memoizedState!==null,v=l!==null&&l.memoizedState!==null;var x=Vt,D=et,z=La;Vt=x||h,La=z||h,et=D||v,Bn(a,n,o),et=D,La=z,Vt=x,bn(n),f&8192&&(a=n.stateNode,a._visibility=h?a._visibility&-2:a._visibility|1,!h||l===null||v||Vt||et||(a=v||et,o=Vt,l=et,Vt=h||Vt,et=a,cr(n,2),Vt=o,et=l),!h&&La||kh(n,h)),f&4&&(a=n.updateQueue,a!==null&&(o=a.retryQueue,o!==null&&(a.retryQueue=null,Wd(n,o))));break;case 19:Bn(a,n,o),bn(n),f&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Wd(n,a)));break;case 30:f&512&&(et||l===null||cn(l,l.return)),f=Zy(),h=Vc,v=(o&335544064)===o,x=n.memoizedProps,Vc=v&&mi(x.default,x.update)!=="none",Bn(a,n,o),bn(n),v&&l!==null&&Xe&&(n.flags|=4),Vc=h,Xe=f;break;case 21:break;case 7:f&512&&(et||l===null||cn(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=n);default:Bn(a,n,o),bn(n)}}function bn(n){var a=n.flags;if(a&2){try{for(var o,l=n.return;l!==null;){if(gB(l)){o=l;break}l=l.return}l=null;for(var f=n.return;f!==null;){if(xh(f)){var h=f.stateNode;l===null?l=[h]:l.push(h)}if(wh(f))break;f=f.return}var v=l;if(o==null)throw Error(s(160));switch(o.tag){case 27:var x=o.stateNode,D=Qh(n);Vd(n,D,x,v);break;case 5:var z=o.stateNode;o.flags&32&&(Vs(z,""),o.flags&=-33);var V=Qh(n);Vd(n,V,z,v);break;case 3:case 4:var ne=o.stateNode.containerInfo,Y=Qh(n);Ch(n,Y,ne,v);break;default:throw Error(s(161))}}catch(P){it(n,n.return,P)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function _B(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;_B(a),a.tag===5&&a.flags&1024&&(a=a.stateNode,Oo=!0,a.reset(),Oo=!1),n=n.sibling}}function po(n,a){if(a.subtreeFlags&9270)for(a=a.child;a!==null;)NB(a,n),a=a.sibling;else bB(a)}function NB(n,a){var o=n.alternate;if(o===null)Sh(n,!1);else switch(n.tag){case 3:if(Th=Pa=!1,yB(),po(a,n),!Pa&&!Zd){if(n=Ua,n!==null)for(var l=0;l<n.length;l+=3){o=n[l];var f=n[l+1];Eb(o,n[l+2]),o=o.ownerDocument.documentElement,o!==null&&o.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+f+")"})}n=a.containerInfo,n=n.nodeType===9?n.documentElement:n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName===""&&(n.style.viewTransitionName="none",n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),n.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Th=!0}Ua=null;break;case 5:po(a,n);break;case 4:l=Pa,Pa=!1,po(a,n),Pa&&(Zd=!0),Pa=l;break;case 22:n.memoizedState===null&&(o.memoizedState!==null?Sh(n,!1):po(a,n));break;case 30:l=Pa,f=yB(),Pa=!1,po(a,n),Pa&&(n.flags|=4);var h=n.memoizedProps,v=n.stateNode;a=Ai(h,v),v=Ai(o.memoizedProps,v);var x=mi(h.default,h.update);x==="none"?a=!1:(h=o.memoizedState,o.memoizedState=null,o=n.child,Sn=0,a=Rh(n,o,a,v,x,h,!0),Sn!==(h===null?0:h.length)&&(n.flags|=32)),(n.flags&4)!==0&&a?(vo(n,n.memoizedProps.onUpdate),Ua=f):f!==null&&(f.push.apply(f,Ua),Ua=f),Pa=(n.flags&32)!==0?!0:l;break;default:po(a,n)}}function Fa(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)xB(n,a.alternate,a),a=a.sibling}function cr(n,a){for(n=n.child;n!==null;){var o=n,l=a;switch(o.tag){case 0:case 11:case 14:case 15:or(4,o,o.return),cr(o,l);break;case 1:cn(o,o.return);var f=o.stateNode;typeof f.componentWillUnmount=="function"&&pB(o,o.return,f),cr(o,l);break;case 27:(l&2)!==0&&_b(o.stateNode,o.type,o.memoizedProps);case 5:cn(o,o.return),o.tag!==5&&o.tag!==27||Fc(o),cr(o,l);break;case 6:Fc(o);break;case 26:cn(o,o.return),f=o.stateNode,o.memoizedState!==null||f===null||et||f.parentNode.removeChild(f),cr(o,l);break;case 22:o.memoizedState===null&&cr(o,l);break;case 30:cn(o,o.return),cr(o,l);break;case 7:cn(o,o.return);default:cr(o,l)}n=n.sibling}}function Qa(n,a,o){for(o=(a.subtreeFlags&8772)!==0?o:o&-2,a=a.child;a!==null;){var l=a.alternate,f=n,h=a,v=h.flags,x=(o&1)!==0;switch(h.tag){case 0:case 11:case 15:Qa(f,h,o),Pc(4,h);break;case 1:if(Qa(f,h,o),l=h,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(V){it(l,l.return,V)}if(l=h,f=l.updateQueue,f!==null){var D=l.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)ev(z[f],D)}catch(V){it(l,l.return,V)}}x&&v&64&&fB(h),za(h,h.return);break;case 27:(o&2)!==0&&AB(h);case 5:h.tag!==5&&h.tag!==27||hB(h),Qa(f,h,o),x&&l===null&&v&4&&jh(h),za(h,h.return);break;case 6:hB(h);break;case 26:D=h.stateNode,h.memoizedState!==null||D===null||Vt||Bg(nl(D.ownerDocument),h.type,D),Qa(f,h,o),x&&l===null&&v&4&&jh(h),za(h,h.return);break;case 12:Qa(f,h,o);break;case 31:Qa(f,h,o),x&&v&4&&CB(f,h);break;case 13:Qa(f,h,o),x&&v&4&&SB(f,h);break;case 22:h.memoizedState===null&&Qa(f,h,o),za(h,h.return);break;case 30:Qa(f,h,o),za(h,h.return);break;case 7:za(h,h.return);default:Qa(f,h,o)}a=a.sibling}}function Gh(n,a){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Nc(o))}function Yh(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Nc(n))}function pa(n,a,o,l){var f=(o&335544064)===o;if(a.subtreeFlags&(f?10262:10256))for(a=a.child;a!==null;)RB(n,a,o,l),a=a.sibling;else f&&BB(a)}function RB(n,a,o,l){var f=(o&335544064)===o;f&&a.alternate===null&&a.return!==null&&a.return.alternate!==null&&Jd(a);var h=a.flags;switch(a.tag){case 0:case 11:case 15:pa(n,a,o,l),h&2048&&Pc(9,a);break;case 1:pa(n,a,o,l);break;case 3:pa(n,a,o,l),f&&Th&&(n=n.containerInfo,n=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,n.style.viewTransitionName==="root"&&(n.style.viewTransitionName=""),n=n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName==="none"&&(n.style.viewTransitionName="")),h&2048&&(h=null,a.alternate!==null&&(h=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==h&&(a.refCount++,h!=null&&Nc(h)));break;case 12:if(h&2048){pa(n,a,o,l),h=a.stateNode;try{var v=a.memoizedProps,x=v.id,D=v.onPostCommit;typeof D=="function"&&D(x,a.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(z){it(a,a.return,z)}}else pa(n,a,o,l);break;case 31:pa(n,a,o,l);break;case 13:pa(n,a,o,l);break;case 23:break;case 22:v=a.stateNode,x=a.alternate,a.memoizedState!==null?(f&&x!==null&&x.memoizedState===null&&Jd(x),v._visibility&2?pa(n,a,o,l):qc(n,a)):(f&&x!==null&&x.memoizedState!==null&&Jd(a),v._visibility&2?pa(n,a,o,l):(v._visibility|=2,ho(n,a,o,l,(a.subtreeFlags&10256)!==0||!1))),h&2048&&Gh(x,a);break;case 24:pa(n,a,o,l),h&2048&&Yh(a.alternate,a);break;case 30:f&&(h=a.alternate,h!==null&&($a(h.child,!0),$a(a.child,!0))),pa(n,a,o,l);break;default:pa(n,a,o,l)}}function ho(n,a,o,l,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=n,v=a,x=o,D=l,z=v.flags;switch(v.tag){case 0:case 11:case 15:ho(h,v,x,D,f),Pc(8,v);break;case 23:break;case 22:var V=v.stateNode;v.memoizedState!==null?V._visibility&2?ho(h,v,x,D,f):qc(h,v):(V._visibility|=2,ho(h,v,x,D,f)),f&&z&2048&&Gh(v.alternate,v);break;case 24:ho(h,v,x,D,f),f&&z&2048&&Yh(v.alternate,v);break;default:ho(h,v,x,D,f)}a=a.sibling}}function qc(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=n,l=a,f=l.flags;switch(l.tag){case 22:qc(o,l),f&2048&&Gh(l.alternate,l);break;case 24:qc(o,l),f&2048&&Yh(l.alternate,l);break;default:qc(o,l)}a=a.sibling}}var os=8192;function cs(n,a,o){if(n.subtreeFlags&os)for(n=n.child;n!==null;)DB(n,a,o),n=n.sibling}function DB(n,a,o){switch(n.tag){case 26:cs(n,a,o),n.flags&os&&(n.memoizedState!==null?vN(o,Ia,n.memoizedState,n.memoizedProps):(n=n.stateNode,(a&335544128)===a&&zb(o,n)));break;case 5:cs(n,a,o),n.flags&os&&(n=n.stateNode,(a&335544128)===a&&zb(o,n));break;case 3:case 4:var l=Ia;Ia=nl(n.stateNode.containerInfo),cs(n,a,o),Ia=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=os,os=16777216,cs(n,a,o),os=l):cs(n,a,o));break;case 30:if((n.flags&os)!==0&&(l=n.memoizedProps.name,l!=null&&l!=="auto")){var f=n.stateNode;f.paired=null,Vn===null&&(Vn=new Map),Vn.set(l,f)}cs(n,a,o);break;default:cs(n,a,o)}}function TB(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Kc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];qt=l,MB(l,n)}TB(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)kB(n),n=n.sibling}function kB(n){switch(n.tag){case 0:case 11:case 15:Kc(n),n.flags&2048&&or(9,n,n.return);break;case 3:Kc(n);break;case 12:Kc(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,eu(n)):Kc(n);break;default:Kc(n)}}function eu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];qt=l,MB(l,n)}TB(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:or(8,a,a.return),eu(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,eu(a));break;default:eu(a)}n=n.sibling}}function MB(n,a){for(;qt!==null;){var o=qt;switch(o.tag){case 0:case 11:case 15:or(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Nc(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,qt=l;else e:for(o=n;qt!==null;){l=qt;var f=l.sibling,h=l.return;if(IB(l),l===o){qt=null;break e}if(f!==null){f.return=h,qt=f;break e}qt=h}}}var g_={getCacheForType:function(n){var a=rn(Ct),o=a.data.get(n);return o===void 0&&(o=n(),a.data.set(n,o)),o},cacheSignal:function(){return rn(Ct).controller.signal}},A_=typeof WeakMap=="function"?WeakMap:Map,We=0,lt=null,Ye=null,Le=0,at=0,qn=null,lr=!1,go=!1,Hh=!1,Ii=0,xt=0,dr=0,ls=0,tu=0,Kn=0,Ao=0,Jc=null,_n=null,zh=!1,nu=0,GB=0,au=1/0,iu=null,ur=null,yt=0,Ca=null,ds=null,Va=0,Uh=0,$h=null,YB=null,mo=null,yo=null,Eo=null,Zc=0,ru=null;function Jn(){return(We&2)!==0&&Le!==0?Le&-Le:se.T!==null?Wh():Uy()}function HB(){if(Kn===0)if((Le&536870912)===0||ke){var n=Wl;Wl<<=1,(Wl&3932160)===0&&(Wl=262144),Kn=n}else Kn=536870912;return n=sn.current,n!==null&&(n.flags|=32),Kn}function vo(n,a){if(a!=null){var o=n.stateNode,l=o.ref;l===null&&(l=o.ref=vb(Ai(n.memoizedProps,o))),yo===null&&(yo=[]),yo.push(a.bind(null,l))}}function Nn(n,a,o){(n===lt&&(at===2||at===9)||n.cancelPendingCommit!==null)&&(Bo(n,0),fr(n,Le,Kn,!1)),yc(n,o),((We&2)===0||n!==lt)&&(n===lt&&((We&2)===0&&(ls|=o),xt===4&&fr(n,Le,Kn,!1)),qa(n))}function zB(n,a,o){if((We&6)!==0)throw Error(s(327));var l=!o&&(a&127)===0&&(a&n.expiredLanes)===0||mc(n,a),f=l?E_(n,a):Ph(n,a,!0),h=l;do{if(f===0){go&&!l&&fr(n,a,0,!1);break}else{if(o=n.current.alternate,h&&!m_(o)){f=Ph(n,a,!1),h=!1;continue}if(f===2){if(h=a,n.errorRecoveryDisabledLanes&h)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){a=v;e:{var x=n;f=Jc;var D=x.current.memoizedState.isDehydrated;if(D&&(Bo(x,v).flags|=256),v=Ph(x,v,!1),v!==2&&v!==6){if(Hh&&!D){x.errorRecoveryDisabledLanes|=h,ls|=h,f=4;break e}h=_n,_n=f,h!==null&&(_n===null?_n=h:_n.push.apply(_n,h))}f=v}if(h=!1,f!==2)continue}}if(f===1){Bo(n,0),fr(n,a,0,!0);break}e:{switch(l=n,h=f,h){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a&&(a&62914560)!==a)break;case 6:fr(l,a,Kn,!lr);break e;case 2:_n=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(f=nu+300-zn(),10<f)){if(fr(l,a,Kn,!lr),td(l,0,!0)!==0)break e;Va=a,l.timeoutHandle=dg(UB.bind(null,l,o,_n,iu,zh,a,Kn,ls,Ao,lr,h,"Throttled",-0,0),f);break e}UB(l,o,_n,iu,zh,a,Kn,ls,Ao,lr,h,null,-0,0)}}break}while(!0);qa(n)}function UB(n,a,o,l,f,h,v,x,D,z,V,ne,Y,P){n.timeoutHandle=-1;var ge=a.subtreeFlags,Ee=(h&335544064)===h;if(ne=null,(Ee||ge&8192||(ge&16785408)===16785408)&&(ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ga},Vn=null,DB(a,h,ne),Ee&&(ge=ne,Ee=n.containerInfo,Ee=(Ee.nodeType===9?Ee:Ee.ownerDocument).__reactViewTransition,Ee!=null&&(ge.count++,ge.waitingForViewTransition=!0,ge=rl.bind(ge),Ee.finished.then(ge,ge))),ge=(h&62914560)===h?nu-zn():(h&4194048)===h?GB-zn():0,ge=BN(ne,ge),ge!==null)){Va=h,n.cancelPendingCommit=ge(JB.bind(null,n,a,h,o,l,f,v,x,D,z,V,ne,null,Y,P)),fr(n,h,v,!z);return}JB(n,a,h,o,l,f,v,x,D,z,V,ne)}function m_(n){for(var a=n;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var l=0;l<o.length;l++){var f=o[l],h=f.getSnapshot;f=f.value;try{if(!Pn(h(),f))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function fr(n,a,o,l){a=My(n,a),a&=~tu,a&=~ls,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var h=31-$n(f),v=1<<h;l[h]=-1,f&=~v}o!==0&&Yy(n,o,a)}function su(){return(We&6)===0?(Xc(0),!1):!0}function Lh(){if(Ye!==null){if(at===0)var n=Ye.return;else n=Ye,vi=Zr=null,Xp(n),so=null,Tc=0,n=Ye;for(;n!==null;)uB(n.alternate,n),n=n.return;Ye=null}}function Bo(n,a){var o=n.timeoutHandle;return o!==-1&&(n.timeoutHandle=-1,z_(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),Va=0,Lh(),lt=n,Ye=o=yi(n.current,null),Le=a,at=0,qn=null,lr=!1,go=mc(n,a),Hh=!1,Ao=Kn=tu=ls=dr=xt=0,_n=Jc=null,zh=!1,Ii=My(n,a),hd(),o}function $B(n,a){Re=null,se.H=Yd,a===ro||a===jd?(a=JE(),at=3):a===Yp?(a=JE(),at=4):at=a===ph?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,qn=a,Ye===null&&(xt=1,Hd(n,la(a,n.current)))}function LB(){var n=sn.current;return n===null?!0:(Le&4194048)===Le?hn===null:(Le&62914560)===Le||(Le&536870912)!==0?n===hn:!1}function PB(){var n=se.H;return se.H=Yd,n===null?Yd:n}function FB(){var n=se.A;return se.A=g_,n}function ou(){xt=4,lr||(Le&4194048)!==Le&&sn.current!==null||(go=!0),(dr&134217727)===0&&(ls&134217727)===0||lt===null||fr(lt,Le,Kn,!1)}function Ph(n,a,o){var l=We;We|=2;var f=PB(),h=FB();(lt!==n||Le!==a)&&(iu=null,Bo(n,a)),a=!1;var v=xt;e:do try{if(at!==0&&Ye!==null){var x=Ye,D=qn;switch(at){case 8:Lh(),v=6;break e;case 3:case 2:case 9:case 6:sn.current===null&&(a=!0);var z=at;if(at=0,qn=null,bo(n,x,D,z),o&&go){v=0;break e}break;default:z=at,at=0,qn=null,bo(n,x,D,z)}}y_(),v=xt;break}catch(V){$B(n,V)}while(!0);return a&&n.shellSuspendCounter++,vi=Zr=null,We=l,se.H=f,se.A=h,Ye===null&&(lt=null,Le=0,hd()),v}function y_(){for(;Ye!==null;)VB(Ye)}function E_(n,a){var o=We;We|=2;var l=PB(),f=FB();lt!==n||Le!==a?(iu=null,au=zn()+500,Bo(n,a)):go=mc(n,a);e:do try{if(at!==0&&Ye!==null){a=Ye;var h=qn;t:switch(at){case 1:at=0,qn=null,bo(n,a,h,1);break;case 2:case 9:if(qE(h)){at=0,qn=null,qB(a);break}a=function(){at!==2&&at!==9||lt!==n||(at=7),qa(n)},h.then(a,a);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:qE(h)?(at=0,qn=null,qB(a)):(at=0,qn=null,bo(n,a,h,7));break;case 5:var v=null;switch(Ye.tag){case 26:v=Ye.memoizedState;case 5:case 27:var x=Ye;if(v?Yb(v):x.stateNode.complete){at=0,qn=null;var D=x.sibling;if(D!==null)Ye=D;else{var z=x.return;z!==null?(Ye=z,cu(z)):Ye=null}break t}}at=0,qn=null,bo(n,a,h,5);break;case 6:at=0,qn=null,bo(n,a,h,6);break;case 8:Lh(),xt=6;break e;default:throw Error(s(462))}}v_();break}catch(V){$B(n,V)}while(!0);return vi=Zr=null,se.H=l,se.A=f,We=o,Ye!==null?0:(lt=null,Le=0,hd(),xt)}function v_(){for(;Ye!==null&&!MO();)VB(Ye)}function VB(n){var a=lB(n.alternate,n,Ii);n.memoizedProps=n.pendingProps,a===null?cu(n):Ye=a}function qB(n){var a=n,o=a.alternate;switch(a.tag){case 15:case 0:a=nB(o,a,a.pendingProps,a.type,void 0,Le);break;case 11:a=nB(o,a,a.pendingProps,a.type.render,a.ref,Le);break;case 5:Xp(a);var l=a;l===Ft&&(ke?(vd(l),l.tag===5&&l.stateNode!=null&&(dt=l.stateNode)):(vd(l),ke=!0));default:uB(o,a),a=Ye=ME(a,Ii),a=lB(o,a,Ii)}n.memoizedProps=n.pendingProps,a===null?cu(n):Ye=a}function bo(n,a,o,l){vi=Zr=null,Xp(a),so=null,Tc=0;var f=a.return;try{if(o_(n,f,a,o,Le)){xt=1,Hd(n,la(o,n.current)),Ye=null;return}}catch(h){if(f!==null)throw Ye=f,h;xt=1,Hd(n,la(o,n.current)),Ye=null;return}a.flags&32768?(ke||l===1?n=!0:go||(Le&536870912)!==0?n=!1:(lr=n=!0,(l===2||l===9||l===3||l===6)&&(l=sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),KB(a,n)):cu(a)}function cu(n){var a=n;do{if((a.flags&32768)!==0){KB(a,lr);return}n=a.return;var o=u_(a.alternate,a,Ii);if(o!==null){Ye=o;return}if(a=a.sibling,a!==null){Ye=a;return}Ye=a=n}while(a!==null);xt===0&&(xt=5)}function KB(n,a){do{var o=f_(n.alternate,n);if(o!==null){o.flags&=32767,Ye=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(n=n.sibling,n!==null)){Ye=n;return}Ye=n=o}while(n!==null);xt=6,Ye=null}function JB(n,a,o,l,f,h,v,x,D,z,V,ne){n.cancelPendingCommit=null;do lu();while(yt!==0);if((We&6)!==0)throw Error(s(327));if(a!==null){if(a===n.current)throw Error(s(177));n===lt&&(Ye=lt=null,Le=0),ds=a,Ca=n,Va=o,$h=f,YB=l,B_(n,a,o,v,x,D,ne)}}function B_(n,a,o,l,f,h,v){var x=a.lanes|a.childLanes;if(Uh=x,x|=Ip,VO(n,o,x,l,f,h),yo=null,(o&335544064)===o?(Eo=K1(n),l=10262):(Eo=null,l=10256),(a.subtreeFlags&l)!==0||(a.flags&l)!==0?(n.callbackNode=null,n.callbackPriority=0,Q_(Zl,function(){return Kh(),null})):(n.callbackNode=null,n.callbackPriority=0),qd=!1,l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=se.T,se.T=null,f=ce.p,ce.p=2,h=We,We|=4;try{p_(n,a,o)}finally{We=h,ce.p=f,se.T=l}}yt=1,qd?mo=V_(v,n.containerInfo,Eo,Fh,Vh,w_,qh,Kh,b_):(Fh(),Vh(),qh())}function b_(n){if(yt!==0){var a=Ca.onRecoverableError;a(n,{componentStack:null})}}function w_(){yt===3&&(yt=0,NB(ds,Ca),yt=4)}function Fh(){if(yt===1){yt=0;var n=Ca,a=ds,o=Va,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=se.T,se.T=null;var f=ce.p;ce.p=2;var h=We;We|=4;try{Vc=Zd=!1,OB(a,n,o),o=og;var v=QE(n.containerInfo),x=o.focusedElem,D=o.selectionRange;if(v!==x&&x&&x.ownerDocument&&IE(x.ownerDocument.documentElement,x)){if(D!==null&&Bp(x)){var z=D.start,V=D.end;if(V===void 0&&(V=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(V,x.value.length);else{var ne=x.ownerDocument||document,Y=ne&&ne.defaultView||window;if(Y.getSelection){var P=Y.getSelection(),ge=x.textContent.length,Ee=Math.min(D.start,ge),De=D.end===void 0?Ee:Math.min(D.end,ge);!P.extend&&Ee>De&&(v=De,De=Ee,Ee=v);var H=jE(x,Ee),M=jE(x,De);if(H&&M&&(P.rangeCount!==1||P.anchorNode!==H.node||P.anchorOffset!==H.offset||P.focusNode!==M.node||P.focusOffset!==M.offset)){var L=ne.createRange();L.setStart(H.node,H.offset),P.removeAllRanges(),Ee>De?(P.addRange(L),P.extend(M.node,M.offset)):(L.setEnd(M.node,M.offset),P.addRange(L))}}}}for(ne=[],P=x;P=P.parentNode;)P.nodeType===1&&ne.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ne.length;x++){var te=ne[x];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Oo=!!sg,og=sg=null}finally{We=h,ce.p=f,se.T=l}}n.current=a,yt=2}}function Vh(){if(yt===2){yt=0;var n=Ca,a=ds,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=se.T,se.T=null;var l=ce.p;ce.p=2;var f=We;We|=4;try{xB(n,a.alternate,a)}finally{We=f,ce.p=l,se.T=o}}yt=3}}function qh(){if(yt===4||yt===3){yt=0;var n=mo;mo=null,GO();var a=Ca,o=ds,l=Va,f=YB,h=(l&335544064)===l?10262:10256;if((o.subtreeFlags&h)!==0||(o.flags&h)!==0?yt=5:(yt=0,ds=Ca=null,ZB(a,a.pendingLanes)),h=a.pendingLanes,h===0&&(ur=null),ap(l),o=o.stateNode,Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(Ac,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=se.T,h=ce.p,ce.p=2,se.T=null;try{for(var v=a.onRecoverableError,x=0;x<f.length;x++){var D=f[x];v(D.value,{componentStack:D.stack})}}finally{se.T=o,ce.p=h}}if(f=yo,v=Eo,Eo=null,f!==null&&(yo=null,v===null&&(v=[]),n!==null))for(D=0;D<f.length;D++)o=(0,f[D])(v),o!==void 0&&n.finished.finally(o);(Va&3)!==0&&lu(),qa(a),h=a.pendingLanes,(l&261930)!==0&&(h&42)!==0?a===ru?Zc++:(Zc=0,ru=a):(Zc=0,ru=null),Xc(0)}}function ZB(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Nc(a)))}function lu(){return mo!==null&&(mo.skipTransition(),mo=null),Fh(),Vh(),qh(),Kh()}function Kh(){if(yt!==5)return!1;var n=Ca,a=Uh;Uh=0;var o=ap(Va),l=se.T,f=ce.p;try{ce.p=32>o?32:o,se.T=null,o=$h,$h=null;var h=Ca,v=Va;if(yt=0,ds=Ca=null,Va=0,(We&6)!==0)throw Error(s(331));var x=We;if(We|=4,kB(h.current),RB(h,h.current,v,o),We=x,Xc(0,!1),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(Ac,h)}catch{}return!0}finally{ce.p=f,se.T=l,ZB(n,a)}}function XB(n,a,o){a=la(o,a),a=fh(n.stateNode,a,2),n=ar(n,a,2),n!==null&&(yc(n,2),qa(n))}function it(n,a,o){if(n.tag===3)XB(n,n,o);else for(;a!==null;){if(a.tag===3){XB(a,n,o);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ur===null||!ur.has(l))){n=la(o,n),o=qv(2),l=ar(a,o,2),l!==null&&(Kv(o,l,a,n),yc(l,2),qa(l));break}}a=a.return}}function Jh(n,a,o){var l=n.pingCache;if(l===null){l=n.pingCache=new A_;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(o)||(Hh=!0,f.add(o),n=x_.bind(null,n,a,o),a.then(n,n))}function x_(n,a,o){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,lt===n&&(Le&o)===o&&((xt===4||xt===3&&(Le&62914560)===Le&&300>zn()-nu)&&(We&2)===0?Bo(n,0):tu|=o,Ao===Le&&(Ao=0)),qa(n)}function WB(n,a){a===0&&(a=Gy()),n=qr(n,a),n!==null&&(yc(n,a),qa(n))}function j_(n){var a=n.memoizedState,o=0;a!==null&&(o=a.retryLane),WB(n,o)}function I_(n,a){var o=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(o=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(a),WB(n,o)}function Q_(n,a){return Wf(n,a)}var wo=null,xo=null,Zh=!1,du=!1,Xh=!1,pr=0;function qa(n){n!==xo&&n.next===null&&(xo===null?wo=xo=n:xo=xo.next=n),du=!0,Zh||(Zh=!0,S_())}function Xc(n,a){if(!Xh&&du){Xh=!0;do for(var o=!1,l=wo;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var h=0;else{var v=l.suspendedLanes,x=l.pingedLanes;h=(1<<31-$n(42|n)+1)-1,h&=f&~(v&~x),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(o=!0,ab(l,h))}else h=Le,h=td(l,l===lt?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||mc(l,h)||(o=!0,ab(l,h));l=l.next}while(o);Xh=!1}}function C_(){eb()}function eb(){du=Zh=!1;var n=0;pr!==0&&H_()&&(n=pr);for(var a=zn(),o=null,l=wo;l!==null;){var f=l.next,h=tb(l,a);h===0?(l.next=null,o===null?wo=f:o.next=f,f===null&&(xo=o)):(o=l,(n!==0||(h&3)!==0)&&(du=!0)),l=f}yt!==0&&yt!==5||Xc(n),pr!==0&&(pr=0)}function tb(n,a){for(var o=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var v=31-$n(h),x=1<<v,D=f[v];D===-1?((x&o)===0||(x&l)!==0)&&(f[v]=FO(x,a)):D<=a&&(n.expiredLanes|=x),h&=~x}if(a=lt,o=Le,o=td(n,n===a?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,o===0||n===a&&(at===2||at===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&ep(l),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||mc(n,o)){if(a=o&-o,a===n.callbackPriority)return a;switch(l!==null&&ep(l),ap(o)){case 2:case 8:o=Ty;break;case 32:o=Zl;break;case 268435456:o=ky;break;default:o=Zl}return l=nb.bind(null,n),o=Wf(o,l),n.callbackPriority=a,n.callbackNode=o,a}return l!==null&&l!==null&&ep(l),n.callbackPriority=2,n.callbackNode=null,2}function nb(n,a){if(yt!==0&&yt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(lu()&&n.callbackNode!==o)return null;var l=Le;return l=td(n,n===lt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(zB(n,l,a),tb(n,zn()),n.callbackNode!=null&&n.callbackNode===o?nb.bind(null,n):null)}function ab(n,a){if(lu())return null;zB(n,a,!0)}function S_(){U_(function(){(We&6)!==0?Wf(Dy,C_):eb()})}function Wh(){if(pr===0){var n=es;n===0&&(n=Xl,Xl<<=1,(Xl&261888)===0&&(Xl=256)),pr=n}return pr}function ib(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:sd(n)}function O_(n,a,o,l,f){if(a==="submit"&&o&&o.stateNode===f){var h=ib((f[Qn]||null).action),v=l.submitter;v&&(a=(a=v[Qn]||null)?ib(a.formAction):v.getAttribute("formAction"),a!==null&&(h=a,v=null));var x=new dd("action","action",null,l,f);n.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(pr!==0){var D=new FormData(f,v);oh(o,{pending:!0,data:D,method:f.method,action:h},null,D)}}else typeof h=="function"&&(x.preventDefault(),D=new FormData(f,v),oh(o,{pending:!0,data:D,method:f.method,action:h},h,D))},currentTarget:f}]})}}for(var eg=0;eg<jp.length;eg++){var tg=jp[eg],__=tg.toLowerCase(),N_=tg[0].toUpperCase()+tg.slice(1);xa(__,"on"+N_)}xa(OE,"onAnimationEnd"),xa(_E,"onAnimationIteration"),xa(NE,"onAnimationStart"),xa("dblclick","onDoubleClick"),xa("focusin","onFocus"),xa("focusout","onBlur"),xa(z1,"onTransitionRun"),xa(U1,"onTransitionStart"),xa($1,"onTransitionCancel"),xa(RE,"onTransitionEnd"),Ps("onMouseEnter",["mouseout","mouseover"]),Ps("onMouseLeave",["mouseout","mouseover"]),Ps("onPointerEnter",["pointerout","pointerover"]),Ps("onPointerLeave",["pointerout","pointerover"]),Pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),R_=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wc));function rb(n,a){a=(a&4)!==0;for(var o=0;o<n.length;o++){var l=n[o],f=l.event;l=l.listeners;e:{var h=void 0;if(a)for(var v=l.length-1;0<=v;v--){var x=l[v],D=x.instance,z=x.currentTarget;if(x=x.listener,D!==h&&f.isPropagationStopped())break e;h=x,f.currentTarget=z;try{h(f)}catch(V){pd(V)}f.currentTarget=null,h=D}else for(v=0;v<l.length;v++){if(x=l[v],D=x.instance,z=x.currentTarget,x=x.listener,D!==h&&f.isPropagationStopped())break e;h=x,f.currentTarget=z;try{h(f)}catch(V){pd(V)}f.currentTarget=null,h=D}}}}function He(n,a){var o=a[Ly];o===void 0&&(o=a[Ly]=new Set);var l=n+"__bubble";o.has(l)||(sb(a,n,2,!1),o.add(l))}function ng(n,a,o){var l=0;a&&(l|=4),sb(o,n,l,a)}var uu="_reactListening"+Math.random().toString(36).slice(2);function ag(n){if(!n[uu]){n[uu]=!0,Vy.forEach(function(o){o!=="selectionchange"&&(R_.has(o)||ng(o,!1,n),ng(o,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[uu]||(a[uu]=!0,ng("selectionchange",!1,a))}}function sb(n,a,o,l){switch(Kb(a)){case 2:var f=jN;break;case 8:f=IN;break;default:f=wg}o=f.bind(null,a,o,n),f=void 0,!up||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,o,{capture:!0,passive:f}):n.addEventListener(a,o,!0):f!==void 0?n.addEventListener(a,o,{passive:f}):n.addEventListener(a,o,!1)}function ig(n,a,o,l,f){var h=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var x=l.stateNode.containerInfo;if(x===f)break;if(v===4)for(v=l.return;v!==null;){var D=v.tag;if((D===3||D===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;x!==null;){if(v=Lr(x),v===null)return;if(D=v.tag,D===5||D===6||D===26||D===27){l=h=v;continue e}x=x.parentNode}}l=l.return}sE(function(){var z=h,V=lp(o),ne=[];e:{var Y=DE.get(n);if(Y!==void 0){var P=dd,ge=n;switch(n){case"keypress":if(cd(o)===0)break e;case"keydown":case"keyup":P=m1;break;case"focusin":ge="focus",P=gp;break;case"focusout":ge="blur",P=gp;break;case"beforeblur":case"afterblur":P=gp;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=lE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=r1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=b1;break;case OE:case _E:case NE:P=c1;break;case RE:P=x1;break;case"scroll":case"scrollend":P=a1;break;case"wheel":P=I1;break;case"copy":case"cut":case"paste":P=d1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=uE;break;case"submit":P=v1;break;case"toggle":case"beforetoggle":P=C1}var Ee=(a&4)!==0,De=!Ee&&(n==="scroll"||n==="scrollend"),H=Ee?Y!==null?Y+"Capture":null:Y;Ee=[];for(var M=z,L;M!==null;){var te=M;if(L=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||L===null||H===null||(te=Bc(M,H),te!=null&&Ee.push(el(M,te,L))),De)break;M=M.return}0<Ee.length&&(Y=new P(Y,ge,null,o,V),ne.push({event:Y,listeners:Ee}))}}if((a&7)===0){e:{if(P=n==="mouseover"||n==="pointerover",Y=n==="mouseout"||n==="pointerout",P&&o!==cp&&(ge=o.relatedTarget||o.fromElement)&&(Lr(ge)||ge[Us]))break e;(Y||P)&&(ge=V.window===V?V:(P=V.ownerDocument)?P.defaultView||P.parentWindow:window,Y?(P=o.relatedTarget||o.toElement,Y=z,P=P?Lr(P):null,P!==null&&(De=d(P),Ee=P.tag,P!==De||Ee!==5&&Ee!==27&&Ee!==6)&&(P=null)):(Y=null,P=z),Y!==P&&(Ee=lE,te="onMouseLeave",H="onMouseEnter",M="mouse",(n==="pointerout"||n==="pointerover")&&(Ee=uE,te="onPointerLeave",H="onPointerEnter",M="pointer"),De=Y==null?ge:vc(Y),L=P==null?ge:vc(P),ge=new Ee(te,M+"leave",Y,o,V),ge.target=De,ge.relatedTarget=L,te=null,Lr(V)===z&&(Ee=new Ee(H,M+"enter",P,o,V),Ee.target=L,Ee.relatedTarget=De,te=Ee),De=te,Ee=Y&&P?T(Y,P,D_):null,Y!==null&&ob(ne,ge,Y,Ee,!1),P!==null&&De!==null&&ob(ne,De,P,Ee,!0)))}e:{if(Y=z?vc(z):window,P=Y.nodeName&&Y.nodeName.toLowerCase(),P==="select"||P==="input"&&Y.type==="file")var ye=EE;else if(mE(Y))if(vE)ye=G1;else{ye=k1;var Pe=T1}else P=Y.nodeName,!P||P.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?z&&op(z.elementType)&&(ye=EE):ye=M1;if(ye&&(ye=ye(n,z))){yE(ne,ye,o,V);break e}Pe&&Pe(n,Y,z)}switch(Pe=z?vc(z):window,n){case"focusin":(mE(Pe)||Pe.contentEditable==="true")&&(Zs=Pe,bp=z,Sc=null);break;case"focusout":Sc=bp=Zs=null;break;case"mousedown":wp=!0;break;case"contextmenu":case"mouseup":case"dragend":wp=!1,CE(ne,o,V);break;case"selectionchange":if(H1)break;case"keydown":case"keyup":CE(ne,o,V)}var Be;if(mp)e:{switch(n){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Js?gE(n,o)&&(Ie="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(Ie="onCompositionStart");Ie&&(fE&&o.locale!=="ko"&&(Js||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Js&&(Be=oE()):(qi=V,fp="value"in qi?qi.value:qi.textContent,Js=!0)),Pe=fu(z,Ie),0<Pe.length&&(Ie=new dE(Ie,n,null,o,V),ne.push({event:Ie,listeners:Pe}),Be?Ie.data=Be:(Be=AE(o),Be!==null&&(Ie.data=Be)))),(Be=O1?_1(n,o):N1(n,o))&&(Ie=fu(z,"onBeforeInput"),0<Ie.length&&(Pe=new dE("onBeforeInput","beforeinput",null,o,V),ne.push({event:Pe,listeners:Ie}),Pe.data=Be)),O_(ne,n,z,o,V)}rb(ne,a)})}function el(n,a,o){return{instance:n,listener:a,currentTarget:o}}function fu(n,a){for(var o=a+"Capture",l=[];n!==null;){var f=n,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Bc(n,o),f!=null&&l.unshift(el(n,f,h)),f=Bc(n,a),f!=null&&l.push(el(n,f,h))),n.tag===3)return l;n=n.return}return[]}function D_(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ob(n,a,o,l,f){for(var h=a._reactName,v=[];o!==null&&o!==l;){var x=o,D=x.alternate,z=x.stateNode;if(x=x.tag,D!==null&&D===l)break;x!==5&&x!==26&&x!==27||z===null||(D=z,f?(z=Bc(o,h),z!=null&&v.unshift(el(o,z,D))):f||(z=Bc(o,h),z!=null&&v.push(el(o,z,D)))),o=o.return}v.length!==0&&n.push({event:a,listeners:v})}var T_=/\r\n?/g,k_=/\u0000|\uFFFD/g;function cb(n){return(typeof n=="string"?n:""+n).replace(T_,`
49
- `).replace(k_,"")}function lb(n,a){return a=cb(a),cb(n)===a}function rt(n,a,o,l,f,h){switch(o){case"children":if(typeof l=="string")a==="body"||a==="textarea"&&l===""||Vs(n,l);else if(typeof l=="number"||typeof l=="bigint")a!=="body"&&Vs(n,""+l);else return;break;case"className":rd(n,"class",l);break;case"tabIndex":rd(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":rd(n,o,l);break;case"style":iE(n,l,h);return;case"data":if(a!=="object"){rd(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||o!=="href")){n.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=sd(l),n.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(o==="formAction"?(a!=="input"&&rt(n,a,"name",f.name,f,null),rt(n,a,"formEncType",f.formEncType,f,null),rt(n,a,"formMethod",f.formMethod,f,null),rt(n,a,"formTarget",f.formTarget,f,null)):(rt(n,a,"encType",f.encType,f,null),rt(n,a,"method",f.method,f,null),rt(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=sd(l),n.setAttribute(o,l);break;case"onClick":l!=null&&(n.onclick=Ga);return;case"onScroll":l!=null&&He("scroll",n);return;case"onScrollEnd":l!=null&&He("scrollend",n);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(o=l.__html,o!=null){if(f.children!=null)throw Error(s(60));(h!=null?h.__html:void 0)!==o&&(n.innerHTML=o)}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}o=sd(l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,l):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":l===!0?n.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,l):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(o,l):n.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(o):n.setAttribute(o,l);break;case"popover":He("beforetoggle",n),He("toggle",n),id(n,"popover",l);break;case"xlinkActuate":hi(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":hi(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":hi(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":hi(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":hi(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":hi(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":hi(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":hi(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":hi(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":id(n,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")o=t1.get(o)||o,id(n,o,l);else return}Xe=!0}function rg(n,a,o,l,f,h){switch(o){case"style":iE(n,l,h);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(o=l.__html,o!=null){if(f.children!=null)throw Error(s(60));(h!=null?h.__html:void 0)!==o&&(n.innerHTML=o)}}break;case"children":if(typeof l=="string")Vs(n,l);else if(typeof l=="number"||typeof l=="bigint")Vs(n,""+l);else return;break;case"onScroll":l!=null&&He("scroll",n);return;case"onScrollEnd":l!=null&&He("scrollend",n);return;case"onClick":l!=null&&(n.onclick=Ga);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!qy.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(f=o.endsWith("Capture"),h=o.slice(2,f?o.length-7:void 0),a=n[Qn]||null,a=a!=null?a[o]:null,typeof a=="function"&&n.removeEventListener(h,a,f),typeof l=="function")){typeof a!="function"&&a!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(h,l,f);break e}Xe=!0,o in n?n[o]=l:l===!0?n.setAttribute(o,""):id(n,o,l)}return}Xe=!0}function ln(n,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",n),He("load",n);var l=!1,f=!1,h;for(h in o)if(o.hasOwnProperty(h)){var v=o[h];if(v!=null)switch(h){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:rt(n,a,h,v,o,null)}}f&&rt(n,a,"srcSet",o.srcSet,o,null),l&&rt(n,a,"src",o.src,o,null);return;case"input":He("invalid",n);var x=h=v=f=null,D=null,z=null;for(l in o)if(o.hasOwnProperty(l)){var V=o[l];if(V!=null)switch(l){case"name":f=V;break;case"type":v=V;break;case"checked":D=V;break;case"defaultChecked":z=V;break;case"value":h=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,a));break;default:rt(n,a,l,V,o,null)}}eE(n,h,x,D,z,v,f,!1);return;case"select":He("invalid",n),l=v=h=null;for(f in o)if(o.hasOwnProperty(f)&&(x=o[f],x!=null))switch(f){case"value":h=x;break;case"defaultValue":v=x;break;case"multiple":l=x;default:rt(n,a,f,x,o,null)}a=h,o=v,n.multiple=!!l,a!=null?Fs(n,!!l,a,!1):o!=null&&Fs(n,!!l,o,!0);return;case"textarea":He("invalid",n),h=f=l=null;for(v in o)if(o.hasOwnProperty(v)&&(x=o[v],x!=null))switch(v){case"value":l=x;break;case"defaultValue":f=x;break;case"children":h=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:rt(n,a,v,x,o,null)}nE(n,l,f,h);return;case"option":for(D in o)if(o.hasOwnProperty(D)&&(l=o[D],l!=null))switch(D){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:rt(n,a,D,l,o,null)}return;case"dialog":He("beforetoggle",n),He("toggle",n),He("cancel",n),He("close",n);break;case"iframe":case"object":He("load",n);break;case"video":case"audio":for(l=0;l<Wc.length;l++)He(Wc[l],n);break;case"image":He("error",n),He("load",n);break;case"details":He("toggle",n);break;case"embed":case"source":case"link":He("error",n),He("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in o)if(o.hasOwnProperty(z)&&(l=o[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:rt(n,a,z,l,o,null)}return;default:if(op(a)){for(V in o)o.hasOwnProperty(V)&&(l=o[V],l!==void 0&&rg(n,a,V,l,o,void 0));return}}for(x in o)o.hasOwnProperty(x)&&(l=o[x],l!=null&&rt(n,a,x,l,o,null))}var M_={};function G_(n,a,o,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,v=null,x=null,D=null,z=null,V=null;for(P in o){var ne=o[P];if(o.hasOwnProperty(P)&&ne!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":D=ne;default:l.hasOwnProperty(P)||rt(n,a,P,null,l,ne)}}for(var Y in l){var P=l[Y];if(ne=o[Y],l.hasOwnProperty(Y)&&(P!=null||ne!=null))switch(Y){case"type":P!==ne&&(Xe=!0),h=P;break;case"name":P!==ne&&(Xe=!0),f=P;break;case"checked":P!==ne&&(Xe=!0),z=P;break;case"defaultChecked":P!==ne&&(Xe=!0),V=P;break;case"value":P!==ne&&(Xe=!0),v=P;break;case"defaultValue":P!==ne&&(Xe=!0),x=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(s(137,a));break;default:P!==ne&&rt(n,a,Y,P,l,ne)}}rp(n,v,x,D,z,V,h,f);return;case"select":P=v=x=Y=null;for(h in o)if(D=o[h],o.hasOwnProperty(h)&&D!=null)switch(h){case"value":break;case"multiple":P=D;default:l.hasOwnProperty(h)||rt(n,a,h,null,l,D)}for(f in l)if(h=l[f],D=o[f],l.hasOwnProperty(f)&&(h!=null||D!=null))switch(f){case"value":h!==D&&(Xe=!0),Y=h;break;case"defaultValue":h!==D&&(Xe=!0),x=h;break;case"multiple":h!==D&&(Xe=!0),v=h;default:h!==D&&rt(n,a,f,h,l,D)}a=x,o=v,l=P,Y!=null?Fs(n,!!o,Y,!1):!!l!=!!o&&(a!=null?Fs(n,!!o,a,!0):Fs(n,!!o,o?[]:"",!1));return;case"textarea":P=Y=null;for(x in o)if(f=o[x],o.hasOwnProperty(x)&&f!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:rt(n,a,x,null,l,f)}for(v in l)if(f=l[v],h=o[v],l.hasOwnProperty(v)&&(f!=null||h!=null))switch(v){case"value":f!==h&&(Xe=!0),Y=f;break;case"defaultValue":f!==h&&(Xe=!0),P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==h&&rt(n,a,v,f,l,h)}tE(n,Y,P);return;case"option":for(var ge in o)if(Y=o[ge],o.hasOwnProperty(ge)&&Y!=null&&!l.hasOwnProperty(ge))switch(ge){case"selected":n.selected=!1;break;default:rt(n,a,ge,null,l,Y)}for(D in l)if(Y=l[D],P=o[D],l.hasOwnProperty(D)&&Y!==P&&(Y!=null||P!=null))switch(D){case"selected":Y!==P&&(Xe=!0),n.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:rt(n,a,D,Y,l,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in o)Y=o[Ee],o.hasOwnProperty(Ee)&&Y!=null&&!l.hasOwnProperty(Ee)&&rt(n,a,Ee,null,l,Y);for(z in l)if(Y=l[z],P=o[z],l.hasOwnProperty(z)&&Y!==P&&(Y!=null||P!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,a));break;default:rt(n,a,z,Y,l,P)}return;default:if(op(a)){for(var De in o)Y=o[De],o.hasOwnProperty(De)&&Y!==void 0&&!l.hasOwnProperty(De)&&rg(n,a,De,void 0,l,Y);for(V in l)Y=l[V],P=o[V],!l.hasOwnProperty(V)||Y===P||Y===void 0&&P===void 0||rg(n,a,V,Y,l,P);return}}for(var H in o)Y=o[H],o.hasOwnProperty(H)&&Y!=null&&!l.hasOwnProperty(H)&&rt(n,a,H,null,l,Y);for(ne in l)Y=l[ne],P=o[ne],!l.hasOwnProperty(ne)||Y===P||Y==null&&P==null||rt(n,a,ne,Y,l,P)}function db(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Y_(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,o=performance.getEntriesByType("resource"),l=0;l<o.length;l++){var f=o[l],h=f.transferSize,v=f.initiatorType,x=f.duration;if(h&&x&&db(v)){for(v=0,x=f.responseEnd,l+=1;l<o.length;l++){var D=o[l],z=D.startTime;if(z>x)break;var V=D.transferSize,ne=D.initiatorType;V&&db(ne)&&(D=D.responseEnd,v+=V*(D<x?1:(x-z)/(D-z)))}if(--l,a+=8*(h+v)/(f.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var sg=null,og=null;function tl(n){return n.nodeType===9?n:n.ownerDocument}function ub(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fb(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function pb(n,a,o,l){return o=tl(o).createElement(n),o[an]=l,o[Qn]=a,ln(o,n,a),Pt(o),o}function cg(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var lg=null;function H_(){var n=window.event;return n&&n.type==="popstate"?n===lg?!1:(lg=n,!0):(lg=null,!1)}var dg=typeof setTimeout=="function"?setTimeout:void 0,z_=typeof clearTimeout=="function"?clearTimeout:void 0,hb=typeof Promise=="function"?Promise:void 0,gb=typeof requestAnimationFrame=="function"?requestAnimationFrame:dg,U_=typeof queueMicrotask=="function"?queueMicrotask:typeof hb<"u"?function(n){return hb.resolve(null).then(n).catch($_)}:dg;function $_(n){setTimeout(function(){throw n})}function hr(n){return n==="head"}function Ab(n,a){var o=a,l=0;do{var f=o.nextSibling;if(n.removeChild(o),f&&f.nodeType===8)if(o=f.data,o==="/$"||o==="/&"){if(l===0){n.removeChild(f),_o(a);return}l--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")l++;else if(o==="html")yg(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,yg(o);for(var h=o.firstChild;h;){var v=h.nextSibling,x=h.nodeName;h[Ec]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&h.rel.toLowerCase()==="stylesheet"||o.removeChild(h),h=v}}else o==="body"&&yg(n.ownerDocument.body);o=f}while(o);_o(a)}function mb(n,a){var o=n;n=0;do{var l=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=l}while(o)}function yb(n,a,o){if(a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,n.style.viewTransitionName=a,o!=null&&(n.style.viewTransitionClass=o),o=getComputedStyle(n),o.display==="inline"){if(a=n.getClientRects(),a.length===1)var l=1;else for(var f=l=0;f<a.length;f++){var h=a[f];0<h.width&&0<h.height&&l++}l===1&&(n=n.style,n.display=a.length===1?"inline-block":"block",n.marginTop="-"+o.paddingTop,n.marginBottom="-"+o.paddingBottom)}}function Eb(n,a){n=n.style,a=a.style;var o=a!=null?a.hasOwnProperty("viewTransitionName")?a.viewTransitionName:a.hasOwnProperty("view-transition-name")?a["view-transition-name"]:null:null;n.viewTransitionName=o==null||typeof o=="boolean"?"":(""+o).trim(),o=a!=null?a.hasOwnProperty("viewTransitionClass")?a.viewTransitionClass:a.hasOwnProperty("view-transition-class")?a["view-transition-class"]:null:null,n.viewTransitionClass=o==null||typeof o=="boolean"?"":(""+o).trim(),n.display==="inline-block"&&(a==null?n.display=n.margin="":(o=a.display,n.display=o==null||typeof o=="boolean"?"":o,o=a.margin,o!=null?n.margin=o:(o=a.hasOwnProperty("marginTop")?a.marginTop:a["margin-top"],n.marginTop=o==null||typeof o=="boolean"?"":o,a=a.hasOwnProperty("marginBottom")?a.marginBottom:a["margin-bottom"],n.marginBottom=a==null||typeof a=="boolean"?"":a)))}function L_(n,a,o){return o=o.ownerDocument.defaultView,{rect:n,abs:a.position==="absolute"||a.position==="fixed",clip:a.clipPath!=="none"||a.overflow!=="visible"||a.filter!=="none"||a.mask!=="none"||a.mask!=="none"||a.borderRadius!=="0px",view:0<=n.bottom&&0<=n.right&&n.top<=o.innerHeight&&n.left<=o.innerWidth}}function ug(n){var a=n.getBoundingClientRect(),o=getComputedStyle(n);return L_(a,o,n)}function P_(n){return n.documentElement.clientHeight}function F_(n){this.addEventListener("load",n),this.addEventListener("error",n)}function V_(n,a,o,l,f,h,v,x,D){var z=a.nodeType===9?a:a.ownerDocument;try{var V=z.startViewTransition({update:function(){var Y=z.defaultView,P=Y.navigation&&Y.navigation.transition,ge=z.fonts.status;l();var Ee=[];if(ge==="loaded"&&(P_(z),z.fonts.status==="loading"&&Ee.push(z.fonts.ready)),ge=Ee.length,n!==null)for(var De=n.suspenseyImages,H=0,M=0;M<De.length;M++){var L=De[M];if(!L.complete){var te=L.getBoundingClientRect();if(0<te.bottom&&0<te.right&&te.top<Y.innerHeight&&te.left<Y.innerWidth){if(H+=Hb(L),H>gu){Ee.length=ge;break}L=new Promise(F_.bind(L)),Ee.push(L)}}}if(0<Ee.length)return Y=Promise.race([Promise.all(Ee),new Promise(function(ye){return setTimeout(ye,500)})]).then(f,f),(P?Promise.allSettled([P.finished,Y]):Y).then(h,h);if(f(),P)return P.finished.then(h,h);h()},types:o});z.__reactViewTransition=V;var ne=[];return V.ready.then(function(){for(var Y=z.documentElement.getAnimations({subtree:!0}),P=0;P<Y.length;P++){var ge=Y[P],Ee=ge.effect,De=Ee.pseudoElement;if(De!=null&&De.startsWith("::view-transition")){ne.push(ge),ge=Ee.getKeyframes();for(var H=De=void 0,M=!0,L=0;L<ge.length;L++){var te=ge[L],ye=te.width;if(De===void 0)De=ye;else if(De!==ye){M=!1;break}if(ye=te.height,H===void 0)H=ye;else if(H!==ye){M=!1;break}delete te.width,delete te.height,te.transform==="none"&&delete te.transform}M&&De!==void 0&&H!==void 0&&(Ee.setKeyframes(ge),M=getComputedStyle(Ee.target,Ee.pseudoElement),M.width!==De||M.height!==H)&&(M=ge[0],M.width=De,M.height=H,M=ge[ge.length-1],M.width=De,M.height=H,Ee.setKeyframes(ge))}}v()},function(Y){z.__reactViewTransition===V&&(z.__reactViewTransition=null);try{if(typeof Y=="object"&&Y!==null)switch(Y.name){case"InvalidStateError":(Y.message==="View transition was skipped because document visibility state is hidden."||Y.message==="Skipping view transition because document visibility state has become hidden."||Y.message==="Skipping view transition because viewport size changed."||Y.message==="Transition was aborted because of invalid state")&&(Y=null)}Y!==null&&D(Y)}finally{l(),f(),v()}}),V.finished.finally(function(){for(var Y=0;Y<ne.length;Y++)ne[Y].cancel();z.__reactViewTransition===V&&(z.__reactViewTransition=null),x()}),V}catch{return l(),f(),v(),null}}function us(n,a){this._scope=document.documentElement,this._selector="::view-transition-"+n+"("+a+")"}us.prototype.animate=function(n,a){return a=typeof a=="number"?{duration:a}:N({},a),a.pseudoElement=this._selector,this._scope.animate(n,a)},us.prototype.getAnimations=function(){for(var n=this._scope,a=this._selector,o=n.getAnimations({subtree:!0}),l=[],f=0;f<o.length;f++){var h=o[f].effect;h!==null&&h.target===n&&h.pseudoElement===a&&l.push(o[f])}return l},us.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function vb(n){return{name:n,group:new us("group",n),imagePair:new us("image-pair",n),old:new us("old",n),new:new us("new",n)}}function Zn(n){this._fragmentFiber=n,this._observers=this._eventListeners=null}Zn.prototype.addEventListener=function(n,a,o){var l=null,f=null;if(!(o!=null&&typeof o!="boolean"&&(l=o.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var h=this._eventListeners;if(bb(h,n,a,o)===-1){var v=this,x=a;o!=null&&typeof o!="boolean"&&o.once===!0&&(x=function(D){v.removeEventListener(n,a,o),typeof a=="function"?a.call(this,D):a.handleEvent(D)}),l!==null&&(f=v.removeEventListener.bind(v,n,a,o),l.addEventListener("abort",f,{once:!0}),f=l.removeEventListener.bind(l,"abort",f)),l=jo(o),h.push({type:n,listener:a,optionsOrUseCapture:o,attachedListener:x,cleanup:f}),A(this._fragmentFiber.child,!1,q_,n,x,l)}this._eventListeners=h}};function q_(n,a,o,l){return I(n).addEventListener(a,o,l),!1}Zn.prototype.removeEventListener=function(n,a,o){var l=this._eventListeners;if(l!==null&&(a=bb(l,n,a,o),a!==-1)){var f=l[a];o=f.attachedListener;var h=f.cleanup;f=jo(f.optionsOrUseCapture),A(this._fragmentFiber.child,!1,K_,n,o,f),l.splice(a,1),h!==null&&h()}};function K_(n,a,o,l){return I(n).removeEventListener(a,o,l),!1}function jo(n){return n!=null&&typeof n!="boolean"&&(n.once===!0||n.signal instanceof AbortSignal)?{capture:n.capture,passive:n.passive}:n}function Bb(n){return n==null?"c=0":typeof n=="boolean"?"c="+(n?"1":"0"):"c="+(n.capture?"1":"0")}function bb(n,a,o,l){if(n.length===0)return-1;l=Bb(l);for(var f=0;f<n.length;f++){var h=n[f];if(h.type===a&&h.listener===o&&Bb(h.optionsOrUseCapture)===l)return f}return-1}Zn.prototype.dispatchEvent=function(n){var a=E(this._fragmentFiber);if(a===null)return!0;a=I(a);var o=this._eventListeners;if(o!==null&&0<o.length||!n.bubbles){var l=a.nodeType===9?a.createComment(""):document.createTextNode("");if(o)for(var f=0;f<o.length;f++){var h=o[f];l.addEventListener(h.type,h.attachedListener,jo(h.optionsOrUseCapture))}if(a.appendChild(l),n=l.dispatchEvent(n),o)for(f=0;f<o.length;f++)h=o[f],l.removeEventListener(h.type,h.attachedListener,jo(h.optionsOrUseCapture));return a.removeChild(l),n}return a.dispatchEvent(n)},Zn.prototype.focus=function(n){A(this._fragmentFiber.child,!0,wb,n,void 0,void 0)};function wb(n,a){return n.tag===6?!1:(n=I(n),oN(n,a))}Zn.prototype.focusLast=function(n){var a=[];A(this._fragmentFiber.child,!0,fg,a,void 0,void 0);for(var o=a.length-1;0<=o&&!wb(a[o],n);o--);};function fg(n,a){return a.push(n),!1}Zn.prototype.blur=function(){var n=E(this._fragmentFiber);n!==null&&(n=I(n),n=tl(n).activeElement,n!==null&&A(this._fragmentFiber.child,!1,J_,n,void 0,void 0))};function J_(n,a){return n.tag===6?!1:(n=I(n),n===a||n.contains(a)?(a.blur(),!0):!1)}Zn.prototype.observeUsing=function(n){this._observers===null&&(this._observers=new Set),this._observers.add(n),A(this._fragmentFiber.child,!1,Z_,n,void 0,void 0)};function Z_(n,a){return n.tag===6||(n=I(n),a.observe(n)),!1}Zn.prototype.unobserveUsing=function(n){var a=this._observers;if(a!==null&&a.has(n)){a.delete(n),A(this._fragmentFiber.child,!1,X_,n,void 0,void 0);for(var o=a=0;o<Sa.length;o++){var l=Sa[o];l.fragmentInstance===this&&l.observer===n?n.unobserve(l.instance):Sa[a++]=l}Sa.length=a}};function X_(n,a){return n.tag===6||(n=I(n),a.unobserve(n)),!1}var Sa=[],pg=!1;function W_(n,a,o){Sa.push({fragmentInstance:n,observer:a,instance:o}),pg||(pg=!0,cN(function(){pg=!1;var l=Sa;Sa=[];for(var f=0;f<l.length;f++){var h=l[f];h.observer.unobserve(h.instance)}}))}Zn.prototype.getClientRects=function(){var n=[];return A(this._fragmentFiber.child,!1,eN,n,void 0,void 0),n};function eN(n,a){if(n.tag===6){n=n.stateNode;var o=n.ownerDocument.createRange();o.selectNodeContents(n),a.push.apply(a,o.getClientRects())}else n=I(n),a.push.apply(a,n.getClientRects());return!1}Zn.prototype.getRootNode=function(n){var a=E(this._fragmentFiber);return a===null?this:I(a).getRootNode(n)},Zn.prototype.compareDocumentPosition=function(n){var a=E(this._fragmentFiber);if(a===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var o=[];A(this._fragmentFiber.child,!1,fg,o,void 0,void 0);var l=I(a);if(o.length===0){if(o=l,b(this._fragmentFiber)){e:{for(a=this._fragmentFiber.return;a!==null;){if(a.tag===4){a=a.stateNode.containerInfo;break e}if(a.tag===3||a.tag===5||a.tag===27)break;a=a.return}a=null}a!=null&&(o=a)}a=this._fragmentFiber;var f=l=o.compareDocumentPosition(n);return o===n?f=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(o=w(a)[1],o===null?f=Node.DOCUMENT_POSITION_PRECEDING:(n=I(o).compareDocumentPosition(n),f=n===0||n&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),f|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}a=I(o[0]),f=I(o[o.length-1]);var h=b(this._fragmentFiber)?a.parentElement:l;if(h==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=h.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,h=h.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY;var v=a.compareDocumentPosition(n),x=f.compareDocumentPosition(n),D=v&Node.DOCUMENT_POSITION_CONTAINED_BY||x&Node.DOCUMENT_POSITION_CONTAINED_BY;return x=l&&h&&v&Node.DOCUMENT_POSITION_FOLLOWING&&x&Node.DOCUMENT_POSITION_PRECEDING,a=l&&a===n||h&&f===n||D||x?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&a===n||!h&&f===n?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:v,a&Node.DOCUMENT_POSITION_DISCONNECTED||a&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tN(a,this._fragmentFiber,o[0],o[o.length-1],n)?a:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tN(n,a,o,l,f){var h=Lr(f);if(n&Node.DOCUMENT_POSITION_CONTAINED_BY){if(o=!!h)e:{for(;h!==null;){if(h.tag===7&&(h===a||h.alternate===a)){o=!0;break e}h=h.return}o=!1}return o}if(n&Node.DOCUMENT_POSITION_CONTAINS){if(h===null)return h=f.ownerDocument,f===h||f===h.documentElement||f===h.body;e:{for(h=a,a=E(a);h!==null;){if(!(h.tag!==5&&h.tag!==3&&h.tag!==27||h!==a&&h.alternate!==a)){h=!0;break e}h=h.return}h=!1}return h}return n&Node.DOCUMENT_POSITION_PRECEDING?((a=!!h)&&!(a=h===o)&&(a=T(o,h,O),a===null?a=!1:(A(a,!0,C,h,o),h=Q,Q=null,a=h!==null)),a):n&Node.DOCUMENT_POSITION_FOLLOWING?((a=!!h)&&!(a=h===l)&&(a=T(l,h,O),a===null?a=!1:(A(a,!0,_,h,l),h=Q,S=Q=null,a=h!==null)),a):!1}function xb(n,a){var o=n.ownerDocument.createRange();o.selectNodeContents(n),n=o.getBoundingClientRect(),window.scrollTo(window.scrollX+n.left,a?window.scrollY+n.top:window.scrollY+n.bottom-window.innerHeight)}Zn.prototype.scrollIntoView=function(n){if(typeof n=="object")throw Error(s(566));var a=[];A(this._fragmentFiber.child,!1,fg,a,void 0,void 0);var o=n!==!1;if(a.length===0){var l=w(this._fragmentFiber);if(l=o?l[1]||l[0]||E(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){n=I(l),xb(n,o);return}if(l=I(l),l.nodeType!==9){if(l.nodeType===11){o="host"in l?l.host:null,o!==null&&o.scrollIntoView(n);return}l.scrollIntoView(n)}}for(l=o?a.length-1:0;l!==(o?-1:a.length);){var f=a[l];f.tag===6?(f=I(f),xb(f,o)):I(f).scrollIntoView(n),l+=o?-1:1}};function nN(n,a){return n=I(n),jb(n,a),!1}function jb(n,a){n.reactFragments==null&&(n.reactFragments=new Set),n.reactFragments.add(a)}function Ib(n,a){var o=a._eventListeners;if(o!==null)for(var l=0;l<o.length;l++){var f=o[l];n.addEventListener(f.type,f.attachedListener,jo(f.optionsOrUseCapture))}n.nodeType!==3&&(o=a._observers,o!==null&&o.forEach(function(h){for(var v=0,x=0;x<Sa.length;x++){var D=Sa[x];(D.fragmentInstance!==a||D.observer!==h||D.instance!==n)&&(Sa[v++]=D)}Sa.length=v,h.observe(n)}),jb(n,a))}function aN(n,a){var o=a._eventListeners;if(o!==null)for(var l=0;l<o.length;l++){var f=o[l];n.removeEventListener(f.type,f.attachedListener,jo(f.optionsOrUseCapture))}n.nodeType!==3&&(o=a._observers,o!==null&&o.forEach(function(h){typeof h.rootMargin=="string"?W_(a,h,n):h.unobserve(n)}),n.reactFragments!=null&&n.reactFragments.delete(a))}function hg(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":hg(o),ad(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function iN(n,a,o,l){for(;n.nodeType===1;){var f=o;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Ec])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=ha(n.nextSibling),n===null)break}return null}function rN(n,a,o){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=ha(n.nextSibling),n===null))return null;return n}function Qb(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=ha(n.nextSibling),n===null))return null;return n}function gg(n){return n.data==="$?"||n.data==="$~"}function Ag(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function sN(n,a){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||o.readyState!=="loading")a();else{var l=function(){a(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function ha(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var mg=null;function Cb(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(a===0)return ha(n.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}n=n.nextSibling}return null}function Sb(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return n;a--}else o!=="/$"&&o!=="/&"||a++}n=n.previousSibling}return null}function oN(n,a){function o(){l=!0}if(n.ownerDocument.activeElement===n)return!0;var l=!1;try{n.ownerDocument.addEventListener("focus",o,!0),(n.focus||HTMLElement.prototype.focus).call(n,a)}finally{n.ownerDocument.removeEventListener("focus",o,!0)}return l}function cN(n){gb(function(){gb(function(a){return n(a)})})}function Ob(n,a,o){switch(a=tl(o),n){case"html":if(n=a.documentElement,!n)throw Error(s(452));return n;case"head":if(n=a.head,!n)throw Error(s(453));return n;case"body":if(n=a.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function _b(n,a,o){for(var l in o){var f=o[l];o.hasOwnProperty(l)&&f!=null&&rt(n,a,l,null,M_,f)}o.dangerouslySetInnerHTML!=null&&(n.textContent=""),n.onclick===Ga&&(n.onclick=null),ad(n)}function yg(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);ad(n)}var ga=new Map,Nb=new Set;function nl(n){if(typeof n.getRootNode=="function"){var a=n.getRootNode();if(a.nodeType===9||a.nodeType===11)return a}return n.nodeType===9?n:n.ownerDocument}var Qi=ce.d;ce.d={f:lN,r:dN,D:uN,C:fN,L:pN,m:hN,X:AN,S:gN,M:mN};function lN(){var n=Qi.f(),a=su();return n||a}function dN(n){var a=$s(n);a!==null&&a.tag===5&&a.type==="form"?Dv(a):Qi.r(n)}var Io=typeof document>"u"?null:document;function Rb(n,a,o){var l=Io;if(l&&typeof a=="string"&&a){var f=oa(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof o=="string"&&(f+='[crossorigin="'+o+'"]'),Nb.has(f)||(Nb.add(f),n={rel:n,crossOrigin:o,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),ln(a,"link",n),Pt(a),l.head.appendChild(a)))}}function uN(n){Qi.D(n),Rb("dns-prefetch",n,null)}function fN(n,a){Qi.C(n,a),Rb("preconnect",n,a)}function pN(n,a,o){Qi.L(n,a,o);var l=Io;if(l&&n&&a){var f='link[rel="preload"][as="'+oa(a)+'"]';a==="image"&&o&&o.imageSrcSet?(f+='[imagesrcset="'+oa(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(f+='[imagesizes="'+oa(o.imageSizes)+'"]')):f+='[href="'+oa(n)+'"]';var h=f;switch(a){case"style":h=Qo(n);break;case"script":h=Co(n)}if(!(ga.has(h)||(n=N({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:n,as:a},o),ga.set(h,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(al(h))||a==="script"&&l.querySelector(il(h))))){var v=l.createElement("link");ln(v,"link",n),a==="style"&&(v[nd]=!0,v.onload=v.onerror=function(){Fy(v)}),Pt(v),l.head.appendChild(v)}}}function hN(n,a){Qi.m(n,a);var o=Io;if(o&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+oa(l)+'"][href="'+oa(n)+'"]',h=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Co(n)}if(!ga.has(h)&&(n=N({rel:"modulepreload",href:n},a),ga.set(h,n),o.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(il(h)))return}l=o.createElement("link"),ln(l,"link",n),Pt(l),o.head.appendChild(l)}}}function gN(n,a,o){Qi.S(n,a,o);var l=Io;if(l&&n){var f=Ls(l).hoistableStyles,h=Qo(n);a=a||"default";var v=f.get(h);if(!v){var x={loading:0,preload:null};if(v=l.querySelector(al(h)))x.loading=5;else{n=N({rel:"stylesheet",href:n,"data-precedence":a},o),(o=ga.get(h))&&Eg(n,o);var D=v=l.createElement("link");Pt(D),ln(D,"link",n),D._p=new Promise(function(z,V){D.onload=z,D.onerror=V}),D.addEventListener("load",function(){x.loading|=1}),D.addEventListener("error",function(){x.loading|=2}),x.loading|=4,pu(v,a,l)}v={type:"stylesheet",instance:v,count:1,state:x},f.set(h,v)}}}function AN(n,a){Qi.X(n,a);var o=Io;if(o&&n){var l=Ls(o).hoistableScripts,f=Co(n),h=l.get(f);h||(h=o.querySelector(il(f)),h||(n=N({src:n,async:!0},a),(a=ga.get(f))&&vg(n,a),h=o.createElement("script"),Pt(h),ln(h,"link",n),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function mN(n,a){Qi.M(n,a);var o=Io;if(o&&n){var l=Ls(o).hoistableScripts,f=Co(n),h=l.get(f);h||(h=o.querySelector(il(f)),h||(n=N({src:n,async:!0,type:"module"},a),(a=ga.get(f))&&vg(n,a),h=o.createElement("script"),Pt(h),ln(h,"link",n),o.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(f,h))}}function Db(n,a,o,l){var f=(f=In.current)?nl(f):null;if(!f)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=Qo(o.href),a=Ls(f).hoistableStyles,l=a.get(o),l||(l={type:"style",instance:null,count:0,state:null},a.set(o,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Qo(o.href);var h=Ls(f).hoistableStyles,v=h.get(n);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,v),(h=f.querySelector(al(n)))?h._p||(v.instance=h,v.state.loading=5):(h=ga.get(n),h||(h={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ga.set(n,h)),yN(f,n,h,v.state))),a&&l===null)throw Error(s(528,""));return v}if(a&&l!==null)throw Error(s(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(o=Co(o),a=Ls(f).hoistableScripts,l=a.get(o),l||(l={type:"script",instance:null,count:0,state:null},a.set(o,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Qo(n){return'href="'+oa(n)+'"'}function al(n){return'link[rel="stylesheet"]['+n+"]"}function Tb(n){return N({},n,{"data-precedence":n.precedence,precedence:null})}function yN(n,a,o,l){if(a=n.querySelector('link[rel="preload"][as="style"]['+a+"]")){if(a[nd]!==!0){l.loading=1;return}}else a=n.createElement("link"),a[nd]=!0,a.onload=a.onerror=Fy.bind(null,a),ln(a,"link",o),Pt(a),n.head.appendChild(a);l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2})}function Co(n){return'[src="'+oa(n)+'"]'}function il(n){return"script[async]"+n}function kb(n,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+oa(o.href)+'"]');if(l)return a.instance=l,Pt(l),l;var f=N({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),Pt(l),ln(l,"style",f),pu(l,o.precedence,n),a.instance=l;case"stylesheet":f=Qo(o.href);var h=n.querySelector(al(f));if(h)return a.state.loading|=4,a.instance=h,Pt(h),h;l=Tb(o),(f=ga.get(f))&&Eg(l,f),h=(n.ownerDocument||n).createElement("link"),Pt(h);var v=h;return v._p=new Promise(function(x,D){v.onload=x,v.onerror=D}),ln(h,"link",l),a.state.loading|=4,pu(h,o.precedence,n),a.instance=h;case"script":return h=Co(o.src),(f=n.querySelector(il(h)))?(a.instance=f,Pt(f),f):(l=o,(f=ga.get(h))&&(l=N({},o),vg(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),Pt(f),ln(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,pu(l,o.precedence,n));return a.instance}function pu(n,a,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,h=f,v=0;v<l.length;v++){var x=l[v];if(x.dataset.precedence===a)h=x;else if(h!==f)break}h?h.parentNode.insertBefore(n,h.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(n,a.firstChild))}function Eg(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function vg(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var hu=null;function Mb(n,a,o){if(hu===null){var l=new Map,f=hu=new Map;f.set(o,l)}else f=hu,l=f.get(o),l||(l=new Map,f.set(o,l));if(l.has(n))return l;for(l.set(n,null),o=o.getElementsByTagName(n),f=0;f<o.length;f++){var h=o[f];if(!(h[Ec]||h[an]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var v=h.getAttribute(a)||"";v=n+v;var x=l.get(v);x?x.push(h):l.set(v,[h])}}return l}function Bg(n,a,o){n=n.ownerDocument||n,n.head.insertBefore(o,a==="title"?n.querySelector("head > title"):null)}function EN(n,a,o){if(o===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Gb(n,a){return n==="img"&&a.src!=null&&a.src!==""&&a.onLoad==null&&a.loading!=="lazy"}function Yb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Hb(n){return(n.width||100)*(n.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function zb(n,a){typeof a.decode=="function"&&(n.imgCount++,a.complete||(n.imgBytes+=Hb(a),n.suspenseyImages.push(a)),n=bN.bind(n),a.decode().then(n,n))}function vN(n,a,o,l){if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var f=Qo(l.href),h=a.querySelector(al(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=rl.bind(n),a.then(n,n)),o.state.loading|=4,o.instance=h,Pt(h);return}h=a.ownerDocument||a,l=Tb(l),(f=ga.get(f))&&Eg(l,f),h=h.createElement("link"),Pt(h);var v=h;v._p=new Promise(function(x,D){v.onload=x,v.onerror=D}),ln(h,"link",l),o.instance=h}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=rl.bind(n),a.addEventListener("load",o),a.addEventListener("error",o))}}var gu=0;function BN(n,a){return n.stylesheets&&n.count===0&&mu(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var l=setTimeout(function(){if(n.stylesheets&&mu(n,n.stylesheets),n.unsuspend){var h=n.unsuspend;n.unsuspend=null,h()}},6e4+a);0<n.imgBytes&&gu===0&&(gu=62500*Y_());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&mu(n,n.stylesheets),n.unsuspend)){var h=n.unsuspend;n.unsuspend=null,h()}},(n.imgBytes>gu?50:800)+a);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function Ub(n){if(n.count===0&&(n.imgCount===0||!n.waitingForImages)){if(n.stylesheets)mu(n,n.stylesheets);else if(n.unsuspend){var a=n.unsuspend;n.unsuspend=null,a()}}}function rl(){this.count--,Ub(this)}function bN(){this.imgCount--,Ub(this)}var Au=null;function mu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Au=new Map,a.forEach(wN,n),Au=null,rl.call(n))}function wN(n,a){if(!(a.state.loading&4)){var o=Au.get(n);if(o)var l=o.get(null);else{o=new Map,Au.set(n,o);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var v=f[h];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(o.set(v.dataset.precedence,v),l=v)}l&&o.set(null,l)}f=a.instance,v=f.getAttribute("data-precedence"),h=o.get(v)||l,h===l&&o.set(null,f),o.set(v,f),this.count++,l=rl.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),h?h.parentNode.insertBefore(f,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var So={$$typeof:pe,Provider:null,Consumer:null,_currentValue:Ge,_currentValue2:Ge,_threadCount:0};function xN(n,a,o,l,f,h,v,x,D){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tp(0),this.hiddenUpdates=tp(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.transitionTypes=null,this.incompleteTransitions=new Map}function $b(n,a,o,l,f,h,v,x,D,z,V,ne){return n=new xN(n,a,o,v,D,z,V,ne,x),a=1,h===!0&&(a|=24),h=Cn(3,null,null,a),n.current=h,h.stateNode=n,a=kp(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:l,isDehydrated:o,cache:a},Hp(h),n}function Lb(n){return n?(n=eo,n):eo}function Pb(n,a,o,l,f,h){f=Lb(f),l.context===null?l.context=f:l.pendingContext=f,l=nr(a),l.payload={element:o},h=h===void 0?null:h,h!==null&&(l.callback=h),o=ar(n,l,a),o!==null&&(Nn(o,n,a),kc(o,n,a))}function Fb(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<a?o:a}}function bg(n,a){Fb(n,a),(n=n.alternate)&&Fb(n,a)}function Vb(n){if(n.tag===13||n.tag===31){var a=qr(n,67108864);a!==null&&Nn(a,n,67108864),bg(n,67108864)}}function qb(n){if(n.tag===13||n.tag===31){var a=Jn();a=np(a);var o=qr(n,a);o!==null&&Nn(o,n,a),bg(n,a)}}var Oo=!0;function jN(n,a,o,l){var f=se.T;se.T=null;var h=ce.p;try{ce.p=2,wg(n,a,o,l)}finally{ce.p=h,se.T=f}}function IN(n,a,o,l){var f=se.T;se.T=null;var h=ce.p;try{ce.p=8,wg(n,a,o,l)}finally{ce.p=h,se.T=f}}function wg(n,a,o,l){if(Oo){var f=xg(l);if(f===null)ig(n,a,l,yu,o),Jb(n,l);else if(CN(f,n,a,o,l))l.stopPropagation();else if(Jb(n,l),a&4&&-1<QN.indexOf(n)){for(;f!==null;){var h=$s(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var v=$r(h.pendingLanes);if(v!==0){var x=h;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var D=1<<31-$n(v);x.entanglements[1]|=D,v&=~D}qa(h),(We&6)===0&&(au=zn()+500,Xc(0))}}break;case 31:case 13:x=qr(h,2),x!==null&&Nn(x,h,2),su(),bg(h,2)}if(h=xg(l),h===null&&ig(n,a,l,yu,o),h===f)break;f=h}f!==null&&l.stopPropagation()}else ig(n,a,l,null,o)}}function xg(n){return n=lp(n),jg(n)}var yu=null;function jg(n){if(yu=null,n=Lr(n),n!==null){var a=d(n);if(a===null)n=null;else{var o=a.tag;if(o===13){if(n=u(a),n!==null)return n;n=null}else if(o===31){if(n=p(a),n!==null)return n;n=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return yu=n,null}function Kb(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(YO()){case Dy:return 2;case Ty:return 8;case Zl:case HO:return 32;case ky:return 268435456;default:return 32}default:return 32}}var Ig=!1,gr=null,Ar=null,mr=null,sl=new Map,ol=new Map,yr=[],QN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Jb(n,a){switch(n){case"focusin":case"focusout":gr=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":sl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ol.delete(a.pointerId)}}function cl(n,a,o,l,f,h){return n===null||n.nativeEvent!==h?(n={blockedOn:a,domEventName:o,eventSystemFlags:l,nativeEvent:h,targetContainers:[f]},a!==null&&(a=$s(a),a!==null&&Vb(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function CN(n,a,o,l,f){switch(a){case"focusin":return gr=cl(gr,n,a,o,l,f),!0;case"dragenter":return Ar=cl(Ar,n,a,o,l,f),!0;case"mouseover":return mr=cl(mr,n,a,o,l,f),!0;case"pointerover":var h=f.pointerId;return sl.set(h,cl(sl.get(h)||null,n,a,o,l,f)),!0;case"gotpointercapture":return h=f.pointerId,ol.set(h,cl(ol.get(h)||null,n,a,o,l,f)),!0}return!1}function Zb(n){var a=Lr(n.target);if(a!==null){var o=d(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){n.blockedOn=a,$y(n.priority,function(){qb(o)});return}}else if(a===31){if(a=p(o),a!==null){n.blockedOn=a,$y(n.priority,function(){qb(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Eu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var o=xg(n.nativeEvent);if(o===null){o=n.nativeEvent;var l=new o.constructor(o.type,o);cp=l,o.target.dispatchEvent(l),cp=null}else return a=$s(o),a!==null&&Vb(a),n.blockedOn=o,!1;a.shift()}return!0}function Xb(n,a,o){Eu(n)&&o.delete(a)}function SN(){Ig=!1,gr!==null&&Eu(gr)&&(gr=null),Ar!==null&&Eu(Ar)&&(Ar=null),mr!==null&&Eu(mr)&&(mr=null),sl.forEach(Xb),ol.forEach(Xb)}function vu(n,a){n.blockedOn===a&&(n.blockedOn=null,Ig||(Ig=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,SN)))}var Bu=null;function Wb(n){Bu!==n&&(Bu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bu===n&&(Bu=null);for(var a=0;a<n.length;a+=3){var o=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(jg(l||o)===null)continue;break}var h=$s(o);h!==null&&(n.splice(a,3),a-=3,oh(h,{pending:!0,data:f,method:o.method,action:l},l,f))}}))}function _o(n){function a(D){return vu(D,n)}gr!==null&&vu(gr,n),Ar!==null&&vu(Ar,n),mr!==null&&vu(mr,n),sl.forEach(a),ol.forEach(a);for(var o=0;o<yr.length;o++){var l=yr[o];l.blockedOn===n&&(l.blockedOn=null)}for(;0<yr.length&&(o=yr[0],o.blockedOn===null);)Zb(o),o.blockedOn===null&&yr.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var f=o[l],h=o[l+1],v=f[Qn]||null;if(typeof h=="function")v||Wb(o);else if(v){var x=null;if(h&&h.hasAttribute("formAction")){if(f=h,v=h[Qn]||null)x=v.formAction;else if(jg(f)!==null)continue}else x=v.action;typeof x=="function"?o[l+1]=x:(o.splice(l,3),l-=3),Wb(o)}}}function ew(){function n(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),l||setTimeout(o,20)}function o(){if(!l&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function Qg(n){this._internalRoot=n}bu.prototype.render=Qg.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var o=a.current,l=Jn();Pb(o,l,n,a,null,null)},bu.prototype.unmount=Qg.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Pb(n.current,2,null,n,null,null),su(),a[Us]=null}};function bu(n){this._internalRoot=n}bu.prototype.unstable_scheduleHydration=function(n){if(n){var a=Uy();n={blockedOn:null,target:n,priority:a};for(var o=0;o<yr.length&&a!==0&&a<yr[o].priority;o++);yr.splice(o,0,n),o===0&&Zb(n)}};var tw=t.version;if(tw!=="19.3.1")throw Error(s(527,tw,"19.3.1"));ce.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=m(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var ON={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:se,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wu.isDisabled&&wu.supportsFiber)try{Ac=wu.inject(ON),Un=wu}catch{}}return dl.createRoot=function(n,a){if(!c(n))throw Error(s(299));var o=!1,l="",f=Lv,h=Pv,v=Fv;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError)),a=$b(n,1,!1,null,null,o,l,null,f,h,v,ew),n[Us]=a.current,ag(n),new Qg(a)},dl.hydrateRoot=function(n,a,o){if(!c(n))throw Error(s(299));var l=!1,f="",h=Lv,v=Pv,x=Fv,D=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(h=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(x=o.onRecoverableError),o.formState!==void 0&&(D=o.formState)),a=$b(n,1,!0,a,o??null,l,f,D,h,v,x,ew),a.context=Lb(null),o=a.current,l=Jn(),l=np(l),f=nr(l),f.callback=null,ar(o,f,l),o=l,a.current.lanes=o,yc(a,o),qa(a),n[Us]=a.current,ag(n),new bu(a)},dl.version="19.3.1",dl}var fw;function LN(){if(fw)return _g.exports;fw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_g.exports=$N(),_g.exports}var PN=LN();const Oj=[{kind:"planning.overview",product:"planning",label:"Overview",description:"Project progress and the highest planning attention.",href:"#/overview",navigation:"primary"},{kind:"planning.graph",product:"planning",label:"Graph",description:"Relationships, dependencies, and an accessible structural view.",href:"#/graph",navigation:"primary"},{kind:"planning.board",product:"planning",label:"Board",description:"Planning work grouped for comparison without losing project context.",href:"#/board",navigation:"primary"},{kind:"planning.list",product:"planning",label:"List",description:"A dense, filterable inventory of project work.",href:"#/list",navigation:"primary"},{kind:"planning.sprints",product:"planning",label:"Sprints",description:"Delivery cadence and current sprint context.",href:"#/sprints",navigation:"primary"},{kind:"planning.activity",product:"planning",label:"Activity",description:"Durable project changes in chronological order.",href:"#/activity",navigation:"primary"},{kind:"planning.search",product:"planning",label:"Search",description:"Callable Planning and Operate destinations from access-safe projections.",href:"#/search",navigation:"primary"},{kind:"planning.console",product:"planning",label:"Console",description:"Every planr-* capability, its dashboard home, and how to run it.",href:"#/console",navigation:"primary"},{kind:"planning.detail",product:"planning",label:"Artifact detail",description:"Exact planning artifact identity and delivery trace.",href:"#/detail/:subjectId",navigation:"hidden"},{kind:"planning.spec",product:"planning",label:"SPEC trace",description:"The exact SPEC, operating origin, and delivery trace.",href:"#/plan/specs/:subjectId",navigation:"hidden"},{kind:"system.diagnostics",product:null,label:"Diagnostics",description:"Compatibility, package, and API checks.",href:"#/diagnostics",navigation:"hidden"},{kind:"operate.today",product:"operate",label:"Today",description:"Material change, highest-priority attention, active Cycle, evidence, and the exact continuation.",href:"#/operate/today",navigation:"primary"},{kind:"operate.cycles",product:"operate",label:"Cycles",description:"Operating cycles from Observe through Learn.",href:"#/operate/cycles",navigation:"primary"},{kind:"operate.cycle",product:"operate",label:"Cycle detail",description:"Exact stages, assignments, gates, blockers, and proof.",href:"#/operate/cycles/:subjectId",navigation:"hidden"},{kind:"operate.review",product:"operate",label:"Review",description:"Evidence-backed owner choices, consequences, and immutable disposition.",href:"#/operate/cycles/:cycleId/reviews/:reviewId",navigation:"hidden"},{kind:"operate.inbox",product:"operate",label:"Inbox",description:"Decisions, approvals, and verification that need attention.",href:"#/operate/inbox",navigation:"primary"},{kind:"operate.inbox-item",product:"operate",label:"Inbox item",description:"An exact projected decision, approval, or verification item.",href:"#/operate/inbox/:subjectId",navigation:"hidden"},{kind:"operate.actions",product:"operate",label:"Actions",description:"Proposed, approved, active, blocked, and verified action work.",href:"#/operate/actions",navigation:"primary"},{kind:"operate.action",product:"operate",label:"Action detail",description:"Exact proposal, authority, execution, verification, and recovery context.",href:"#/operate/actions/:subjectId",navigation:"hidden"},{kind:"operate.action-planning",product:"operate",label:"Planning handoff",description:"Review the exact governed bridge into Planning without starting PLAN or SHIP.",href:"#/operate/actions/:subjectId/planning",navigation:"hidden"},{kind:"operate.evidence",product:"operate",label:"Evidence",description:"Claims, support, contradiction, access, freshness, and limitations.",href:"#/operate/evidence",navigation:"primary"},{kind:"operate.evidence-item",product:"operate",label:"Evidence detail",description:"An exact access-safe evidence identity.",href:"#/operate/evidence/:subjectId",navigation:"hidden"},{kind:"operate.outcomes",product:"operate",label:"Outcomes",description:"Observed effects, metrics, outcomes, and durable learning.",href:"#/operate/outcomes",navigation:"primary"},{kind:"operate.outcome",product:"operate",label:"Outcome detail",description:"An exact outcome and its projected learning.",href:"#/operate/outcomes/:subjectId",navigation:"hidden"},{kind:"operate.history",product:"operate",label:"History",description:"Causality, event history, checkpoint, tail, and replay proof.",href:"#/operate/history",navigation:"primary"},{kind:"operate.recovery",product:"operate",label:"Recovery",description:"Proven state, unknown state, and only canonical next steps.",href:"#/operate/recovery",navigation:"contextual"}],_j=Oj,Nj=new Map(Oj.map(e=>[e.kind,e]));function Tg(e,t){return{kind:e,product:t,subjectId:null}}function Iu(e,t,i){return{kind:e,product:t,subjectId:i}}function FN(e,t){return{kind:"operate.review",product:"operate",cycleId:e,subjectId:t}}const Rj=Object.freeze({kind:"system.diagnostics",product:null,subjectId:null});function qu(e){return!(e==="."||e===".."||e.length===0||e.length>256||[...e].some(t=>{const i=t.codePointAt(0)??0;return i<=31||i===127||t==="/"||t==="\\"}))}function No(e){if(!e||/%(?:2f|5c)/iu.test(e))return null;try{const t=decodeURIComponent(e);return qu(t)?t:null}catch{return null}}const Oa=Object.freeze({kind:"not-found",product:null,subjectId:null});function si(e){if(e===""||e==="#")return Tg("planning.overview","planning");if(!e.startsWith("#/")||e.includes("?")||e.indexOf("#",1)!==-1)return Oa;const t=e.slice(2);if(!t||t.endsWith("/")||t.includes("//"))return Oa;const i=t.split("/");if(i.length===1){if(i[0]==="diagnostics")return Rj;const s=new Map([["overview","planning.overview"],["graph","planning.graph"],["board","planning.board"],["list","planning.list"],["sprints","planning.sprints"],["activity","planning.activity"],["search","planning.search"],["console","planning.console"]]).get(i[0]);if(s)return Tg(s,"planning")}if(i.length===2&&i[0]==="detail"){const s=No(i[1]);return s?Iu("planning.detail","planning",s):Oa}if(i.length===3&&i[0]==="plan"&&i[1]==="specs"){const s=No(i[2]);return s?Iu("planning.spec","planning",s):Oa}if(i[0]!=="operate")return Oa;if(i.length===2){const s=new Map([["today","operate.today"],["cycles","operate.cycles"],["inbox","operate.inbox"],["actions","operate.actions"],["evidence","operate.evidence"],["outcomes","operate.outcomes"],["history","operate.history"],["recovery","operate.recovery"]]).get(i[1]);return s?Tg(s,"operate"):Oa}if(i.length===3){const s=No(i[2]);if(!s)return Oa;const c=new Map([["cycles","operate.cycle"],["inbox","operate.inbox-item"],["actions","operate.action"],["evidence","operate.evidence-item"],["outcomes","operate.outcome"]]).get(i[1]);return c?Iu(c,"operate",s):Oa}if(i.length===4&&i[1]==="actions"&&i[3]==="planning"){const s=No(i[2]);return s?Iu("operate.action-planning","operate",s):Oa}if(i.length===5&&i[1]==="cycles"&&i[3]==="reviews"){const s=No(i[2]),c=No(i[4]);return s&&c?FN(s,c):Oa}return Oa}function ui(e){const t=Nj.get(e.kind);if(!t)throw new Error(`Unknown dashboard route kind: ${String(e.kind)}`);if(e.kind==="operate.review"){if(!qu(e.cycleId)||!qu(e.subjectId))throw new Error("Dashboard Review routes require valid opaque Cycle and Review identities.");return t.href.replace(":cycleId",encodeURIComponent(e.cycleId)).replace(":reviewId",encodeURIComponent(e.subjectId))}if(t.href.includes(":subjectId")){const i=e.subjectId;if(typeof i!="string"||!qu(i))throw new Error("Dashboard detail routes require a valid opaque subject identity.");return t.href.replace(":subjectId",encodeURIComponent(i))}return t.href}function oc(e){return e.kind==="not-found"?null:Nj.get(e.kind)??null}function cc(e){const t=si(e);return t.kind==="not-found"?null:ui(t)===e?e:null}function VN(e){return e.kind==="not-found"?"not-found":e.kind==="operate.review"?`${e.product}:${e.kind}:${e.cycleId}:${e.subjectId}`:`${e.product??"system"}:${e.kind}:${e.subjectId??"collection"}`}const pw=Object.freeze({kind:"current",subjectId:null}),qN=B.createContext(null);function KN(e){return e?[e.productArea,e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId??"no-cycle",e.subjectId??"collection",String(e.generation)].join(""):"unbound"}function hw(e){e.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const t of e.querySelectorAll("[data-live-unsafe-control]"))t instanceof HTMLDetailsElement&&(t.open=!1),t instanceof HTMLDialogElement&&t.open&&t.close()}function gw(e){return e.querySelector("[data-live-successor]")??e.querySelector("[data-live-focus-return]")??e}function JN({children:e,route:t,binding:i,transition:s=pw,trackedSubjectId:c=null}){const d=B.useRef(null),[u,p]=B.useState(!1),g=`${VN(t)}${KN(i)}`,m=B.useRef(g),y=(i==null?void 0:i.subjectId)??t.subjectId??c,A=s.kind==="current"||s.subjectId!==null&&s.subjectId===y?s:pw,E=`${A.kind}:${A.subjectId??""}:${A.successorHref??""}`;B.useLayoutEffect(()=>{const S=d.current;!S||m.current===g||(hw(S),p(!1),gw(S).focus({preventScroll:!0}),m.current=g)},[g]),B.useLayoutEffect(()=>{const S=d.current;!S||E.startsWith("current:")||(hw(S),p(!1),gw(S).focus({preventScroll:!0}))},[E]),B.useEffect(()=>{if(!u||typeof window>"u")return;const S=()=>p(!1);return window.addEventListener("pointerup",S,{capture:!0,once:!0}),window.addEventListener("pointercancel",S,{capture:!0,once:!0}),()=>{window.removeEventListener("pointerup",S,{capture:!0}),window.removeEventListener("pointercancel",S,{capture:!0})}},[u]);const b=A.successorHref?cc(A.successorHref):null,w=b?oc(si(b)):null,j=B.useMemo(()=>Object.freeze({routeScopeKey:g,pointerActive:u,mutationSafe:A.kind==="current",transition:A}),[A,u,g]),I=S=>{S.isPrimary&&p(!0)},Q=S=>{S.isPrimary&&p(!1)};return r.jsx(qN.Provider,{value:j,children:r.jsxs("div",{ref:d,tabIndex:-1,"data-live-state-boundary":A.kind,"data-live-route-scope":g,onPointerDownCapture:I,onPointerUpCapture:Q,onPointerCancelCapture:Q,children:[A.kind!=="current"?r.jsxs("div",{className:"op-projection-boundary__notice",role:"status","aria-live":"polite",children:[r.jsx("strong",{children:A.kind==="deleted"?"This item is no longer available":"This item has a newer successor"}),r.jsx("span",{children:A.kind==="deleted"?"The current public projection no longer includes this item. Unsafe controls were closed.":"A newer public subject is available. Unsafe controls were closed before continuing."}),b&&w?r.jsxs("a",{className:"op-inline-action","data-live-successor":!0,href:b,children:["Open ",w.label]}):null]}):null,e]})})}class ee extends Error{constructor(i,s){super(`${i}: ${s}`);xu(this,"code","DASHBOARD_RESPONSE_INVALID");this.path=i,this.name="DashboardValidationError"}}const ZN=96,XN=25e4;function Dj(e,t){const i=new WeakSet;let s=0;const c=(d,u)=>{if(d===null||typeof d!="object"&&typeof d!="function")return;if(typeof d=="function")throw new ee(t,"contains an executable value");if(s+=1,u>ZN||s>XN)throw new ee(t,"contains an over-complex object graph");if(i.has(d))throw new ee(t,"contains a repeated or cyclic object reference");i.add(d);const p=Object.getPrototypeOf(d),g=Array.isArray(d)?Array.prototype:Object.prototype;if(p!==g&&p!==null)throw new ee(t,"contains a non-plain nested object");const m=Object.getOwnPropertyDescriptors(d);for(const y of Reflect.ownKeys(m)){if(typeof y!="string")throw new ee(t,"contains a symbol field");const A=m[y];if((A==null?void 0:A.get)!==void 0||(A==null?void 0:A.set)!==void 0)throw new ee(t,"contains a nested accessor field");c(A==null?void 0:A.value,u+1)}};c(e,0)}function At(e,t,i){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(i,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new ee(i,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(p=>{var g,m;return typeof p!="string"||((g=c[p])==null?void 0:g.get)!==void 0||((m=c[p])==null?void 0:m.set)!==void 0}))throw new ee(i,"contains an accessor or symbol field");const d=Object.keys(c).sort(),u=[...t].sort();if(JSON.stringify(d)!==JSON.stringify(u))throw new ee(i,"contains missing or unknown fields");return Dj(e,i),structuredClone(e),Object.fromEntries(Object.entries(c).map(([p,g])=>[p,g.value]))}catch(s){throw s instanceof ee?s:new ee(i,"could not be inspected safely")}}function WN(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new ee(t,"expected an object");try{const i=Object.getPrototypeOf(e);if(i!==Object.prototype&&i!==null)throw new ee(t,"expected a plain object");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(s).some(c=>{var d,u;return typeof c!="string"||((d=s[c])==null?void 0:d.get)!==void 0||((u=s[c])==null?void 0:u.set)!==void 0}))throw new ee(t,"contains an accessor or symbol field");return Dj(e,t),structuredClone(e),Object.fromEntries(Object.entries(s).map(([c,d])=>[c,d.value]))}catch(i){throw i instanceof ee?i:new ee(t,"could not be inspected safely")}}function Je(e,t,i){if(typeof e!="string"||!i.test(e))throw new ee(t,"contains an invalid string");return e}function kg(e,t,i){return e===null?null:Je(e,t,i)}function xl(e,t){if(typeof e!="boolean")throw new ee(t,"expected a boolean");return e}const eR=64*1024,tR=64,nR=4096;function Tj(e){try{if(typeof e!="string")throw new ee("$","expected a JSON string");if(new TextEncoder().encode(e).byteLength>eR)throw new ee("$","response exceeds the dashboard JSON limit");let t=0,i=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')throw new ee("$","invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else if(e[t]==='"'){t+=1;try{return JSON.parse(e.slice(u,t))}catch{throw new ee("$","invalid JSON string")}}else t+=1;throw new ee("$","unterminated JSON string")},d=u=>{var p;if(i+=1,u>tR||i>nR)throw new ee("$","response exceeds the dashboard JSON complexity limit");if(s(),e[t]==="{"){t+=1,s();const g=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const m=c();if(g.has(m))throw new ee("$","response contains duplicate object members");if(g.add(m),s(),e[t]!==":")throw new ee("$","invalid JSON object");if(t+=1,d(u+1),s(),e[t]==="}"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON object");t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(d(u+1),s(),e[t]==="]"){t+=1;return}if(e[t]!==",")throw new ee("$","invalid JSON array");t+=1}}else if(e[t]==='"'){c();return}else{const g=(p=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:p[0];if(!g)throw new ee("$","invalid JSON value");t+=g.length;return}throw new ee("$","unterminated JSON value")};if(d(0),s(),t!==e.length)throw new ee("$","trailing JSON bytes");return JSON.parse(e)}catch(t){throw t instanceof ee?t:new ee("$","invalid JSON response")}}const Al=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,yA=/^sha256:[a-f0-9]{64}$/u,kj=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","eventHead","viewHash","generation"];function Aw(e,t){return e===null?null:Je(e,t,Al)}function aR(e){if(e===null)return null;const t=At(e,["sequence","hash"],"$.eventHead");if(!Number.isSafeInteger(t.sequence)||t.sequence<0)throw new ee("$.eventHead.sequence","expected a non-negative safe integer");const i=t.hash===null?null:Je(t.hash,"$.eventHead.hash",yA);if(t.sequence===0!=(i===null))throw new ee("$.eventHead","sequence and hash are inconsistent");return Object.freeze({sequence:t.sequence,hash:i})}function Ze(e){const t=At(e,kj,"$");if(t.productArea!=="planning"&&t.productArea!=="operate")throw new ee("$.productArea","expected planning or operate");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.generation","expected a non-negative safe integer");const i=Je(t.route,"$.route",/^#.{1,512}$/u),s=si(i);if(s.kind==="not-found"||ui(s)!==i)throw new ee("$.route","must be a canonical closed dashboard route");if(s.product!==t.productArea)throw new ee("$.route","does not belong to the selected product area");const c=Aw(t.cycleId,"$.cycleId"),d=Aw(t.subjectId,"$.subjectId");if(s.subjectId!==d)throw new ee("$.subjectId","does not equal the canonical route subject");if(s.kind==="operate.review"&&s.cycleId!==c)throw new ee("$.cycleId","does not equal the canonical Review route Cycle");return Object.freeze({productArea:t.productArea,route:i,actorId:Je(t.actorId,"$.actorId",Al),projectId:Je(t.projectId,"$.projectId",yA),scopeId:Je(t.scopeId,"$.scopeId",Al),domainId:Je(t.domainId,"$.domainId",Al),domainVersion:Je(t.domainVersion,"$.domainVersion",Al),cycleId:c,subjectId:d,eventHead:aR(t.eventHead),viewHash:t.viewHash===null?null:Je(t.viewHash,"$.viewHash",yA),generation:t.generation})}function EA(e){return Object.freeze(["dashboard-projection",Ze(e)])}function $e(e,t){return kj.every(i=>{var s,c,d,u;return i==="eventHead"?((s=e.eventHead)==null?void 0:s.sequence)===((c=t.eventHead)==null?void 0:c.sequence)&&((d=e.eventHead)==null?void 0:d.hash)===((u=t.eventHead)==null?void 0:u.hash):e[i]===t[i]})}const iR=Object.freeze(["DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_LOOPBACK_HOST_INVALID","DASHBOARD_BOOTSTRAP_INVALID","CAPABILITY_DENIED","DASHBOARD_BUILD_MISMATCH","DASHBOARD_RESPONSE_INVALID","CONCURRENT_MODIFICATION","OPERATION_UNCERTAIN","DASHBOARD_ASSET_MISSING","DASHBOARD_MANIFEST_INVALID","DASHBOARD_MANIFEST_MISSING","DASHBOARD_READ_FAILED","DASHBOARD_STALE_RESPONSE","OPERATION_CONFLICT"]),rR=new Set(iR),Mj=Object.freeze(["operation","cycleId","assignmentId","submissionId","submissionState","reviewId","state","maxBytes"]),vA=Mj,sR=new Set(vA),oR=/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:-[a-z0-9]+)*){1,7}$/u,cR=new Set(["private","secret"]),lR=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,dR=/^[a-z][a-z0-9]*(?:[_-][a-z0-9]+){0,7}$/u,Gj=160,uR=16*1024*1024;function fR(e,t){if(typeof e!="string"||e.length>Gj)throw new ee(t,"contains an overlong public operation");const i=Je(e,t,oR);if(i.split(/[.-]/u).some(s=>cR.has(s)))throw new ee(t,"contains a non-public operation segment");return i}function pR(e,t){if(typeof e!="string"||e.length>Gj)throw new ee(t,"contains an overlong public state");return Je(e,t,dR)}function hR(e){const t=WN(e,"$.context"),i=Object.keys(t);if(i.length>vA.length)throw new ee("$.context","contains too many fields");if(i.some(c=>!sR.has(c)))throw new ee("$.context","contains a non-public field");const s={};for(const c of vA){if(!Object.hasOwn(t,c))continue;const d=t[c];if(c==="maxBytes"){if(!Number.isSafeInteger(d)||d<0||d>uR)throw new ee("$.context.maxBytes","expected a bounded byte count");s[c]=d}else{const u=`$.context.${c}`;c==="operation"?s[c]=fR(d,u):c.endsWith("State")||c==="state"?s[c]=pR(d,u):s[c]=Je(d,u,lR)}}return Object.freeze(s)}function Yj(e){const t=At(e,["code","retryable","context"],"$");if(typeof t.code!="string"||!rR.has(t.code))throw new ee("$.code","contains an unsupported public error code");return Object.freeze({code:t.code,retryable:xl(t.retryable,"$.retryable"),context:hR(t.context)})}function gR(e){return Object.freeze({blindRetry:!1,requiresReconciliation:!0,retryableAfterReconciliation:e.retryable})}const Hj=Object.freeze(["booting","loading","first-use","ready","empty","read-only","refreshing","stale","degraded","blocked","unavailable","unauthorized","offline","incompatible","corrupt","conflict","partial","uncertain","recovering"]),zj=Object.freeze({booting:Mt("booting","disabled","route-heading","wait"),loading:Mt("loading","disabled","route-heading","wait"),"first-use":Mt("first-use","disabled","state-heading","server-action-only"),ready:Mt("ready","server-validated","route-heading","none"),empty:Mt("empty","disabled","state-heading","server-action-only"),"read-only":Mt("read-only","disabled","route-heading","inspect"),refreshing:Mt("refreshing","disabled","route-heading","wait"),stale:Mt("stale","disabled","state-heading","reconcile"),degraded:Mt("degraded","disabled","state-heading","inspect"),blocked:Mt("blocked","disabled","state-heading","canonical-recovery-only"),unavailable:Mt("unavailable","disabled","state-heading","inspect"),unauthorized:Mt("unauthorized","disabled","state-heading","request-access"),offline:Mt("offline","disabled","state-heading","restore-connection"),incompatible:Mt("incompatible","disabled","recovery-heading","reinstall"),corrupt:Mt("corrupt","disabled","recovery-heading","canonical-recovery-only"),conflict:Mt("conflict","disabled","recovery-heading","reconcile"),partial:Mt("partial","disabled","recovery-heading","reconcile"),uncertain:Mt("uncertain","disabled","recovery-heading","canonical-recovery-only"),recovering:Mt("recovering","disabled","recovery-heading","wait")});function Mt(e,t,i,s){return Object.freeze({state:e,mutation:t,focus:i,recovery:s,blindRetry:!1})}const AR=/^[A-Z][A-Z0-9_]{0,127}$/u,mw=new Set(["ready","read-only","refreshing","stale","degraded","blocked","partial","uncertain","recovering"]),mR=new Set(["booting","unauthorized","offline","incompatible","corrupt"]),yR=new Set(["unauthorized","incompatible","corrupt","conflict","uncertain"]),Mg=new Set(["booting","loading","ready"]),Gt=(...e)=>new Set(e),ER=Object.freeze({booting:Gt(),loading:Gt(),"first-use":Gt(),ready:Gt(),empty:Gt(),"read-only":Gt(),refreshing:Gt(),stale:Gt("DASHBOARD_STALE_RESPONSE","DASHBOARD_READ_FAILED"),degraded:Gt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),blocked:Gt(),unavailable:Gt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),unauthorized:Gt("CAPABILITY_DENIED"),offline:Gt("DASHBOARD_ERROR_UNAVAILABLE","DASHBOARD_READ_FAILED"),incompatible:Gt("DASHBOARD_BUILD_MISMATCH","DASHBOARD_ASSET_MISSING","DASHBOARD_MANIFEST_MISSING"),corrupt:Gt("DASHBOARD_RESPONSE_INVALID","DASHBOARD_MANIFEST_INVALID","DASHBOARD_BOOTSTRAP_INVALID"),conflict:Gt("CONCURRENT_MODIFICATION","OPERATION_CONFLICT"),partial:Gt("DASHBOARD_READ_FAILED"),uncertain:Gt("OPERATION_UNCERTAIN"),recovering:Gt()}),vR=new Set(Hj.map(e=>Uj(e))),Em=new WeakSet;function Uj(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function BR(e){if(typeof e!="string"||!Hj.includes(e))throw new ee("$.kind","contains an unsupported product state");return e}function bR(e,t){if(!Array.isArray(e)||e.length>16)throw new ee("$.reasonCodes","expected a bounded reason array");const i=e.map((s,c)=>Je(s,`$.reasonCodes[${c}]`,AR));if(new Set(i).size!==i.length)throw new ee("$.reasonCodes","contains duplicate reasons");if(Mg.has(t)&&i.length!==0)throw new ee("$.reasonCodes","is not valid for this product state");if(!Mg.has(t)&&i.length===0)throw new ee("$.reasonCodes","requires a certified reason");if(!Mg.has(t)&&i[0]!==Uj(t))throw new ee("$.reasonCodes","does not begin with the tagged presentation-state reason");if(i.slice(1).some(s=>vR.has(s)))throw new ee("$.reasonCodes","contains a secondary presentation-state substitution");return Object.freeze(i)}function wR(e,t){const i=At(e,["state","mutation","focus","recovery","blindRetry"],"$.policy"),s=zj[t];if(i.state!==s.state||i.mutation!==s.mutation||i.focus!==s.focus||i.recovery!==s.recovery||i.blindRetry!==!1)throw new ee("$.policy","does not match the tagged product state");return s}function _s(e){let t;try{t=structuredClone(e)}catch{throw new ee("$.data","cannot be cloned safely")}const i=new WeakSet,s=c=>{if(!(c===null||typeof c!="object"||i.has(c))){i.add(c);for(const d of Object.values(c))s(d);Object.freeze(c)}};return s(t),t}function xR(e,t,i){if(e===null){if(yR.has(t))throw new ee("$.error","is required for this product state");return null}const s=ER[t];if(s.size===0)throw new ee("$.error","is not valid for this product state");const c=Yj(e);if(!s.has(c.code))throw new ee("$.error.code","does not match the tagged product state");if(i===null&&Object.keys(c.context).length!==0)throw new ee("$.error.context","must not disclose owner-bound identifiers in this product state");if(c.context.cycleId!==void 0&&((i==null?void 0:i.cycleId)===null||(i==null?void 0:i.cycleId)===void 0||c.context.cycleId!==i.cycleId))throw new ee("$.error.context.cycleId","does not match exact custody");for(const d of["assignmentId","submissionId","reviewId"])if(c.context[d]!==void 0&&((i==null?void 0:i.subjectId)===null||(i==null?void 0:i.subjectId)===void 0||c.context[d]!==i.subjectId))throw new ee(`$.error.context.${d}`,"does not match exact custody");return c}function $j(e){if(e==null)return e;try{return Ze(e)}catch{throw new ee("$.currentBinding","does not satisfy the exact current-binding contract")}}function Ho(e,t={}){const i=At(e,["kind","binding","data","reasonCodes","error","mutationEnabled","policy"],"$"),s=BR(i.kind),c=wR(i.policy,s),d=xl(i.mutationEnabled,"$.mutationEnabled");if(s!=="ready"&&d)throw new ee("$.mutationEnabled","is default-denied for this state");const u=i.binding===null?null:Ze(i.binding),p=$j(t.currentBinding);if(!mR.has(s)&&u===null)throw new ee("$.binding","is required for this product state");if(["booting","unauthorized","incompatible","corrupt"].includes(s)&&u!==null)throw new ee("$.binding","must not disclose a bound subject in this state");if(u&&(!p||!$e(u,p)))throw new ee("$.binding","requires an explicitly supplied non-null exact current binding");let g=null;if(i.data!==null){if(!t.validateData)throw new ee("$.data","requires an owner-boundary validator");const y=_s(i.data);try{if(!t.validateData(y))throw new ee("$.data","failed its owner-boundary contract")}catch(A){throw A instanceof ee?A:new ee("$.data","failed its owner-boundary contract")}g=y}if(mw.has(s)&&g===null)throw new ee("$.data","is required for this product state");if(!mw.has(s)&&s!=="offline"&&g!==null)throw new ee("$.data","is forbidden for this state");if(s==="offline"&&u===null!=(g===null))throw new ee("$.data","offline cache requires its exact binding");if(d&&(s!=="ready"||!u||p===void 0||p===null||!$e(u,p)))throw new ee("$.mutationEnabled","requires current validated ready data and exact custody");const m=Object.freeze({kind:s,binding:u,data:g,reasonCodes:bR(i.reasonCodes,s),error:xR(i.error,s,u),mutationEnabled:d,policy:c});return Em.add(m),m}function vm(e,t){if(!Em.has(e))return!1;try{const i=$j(t);return e.kind==="ready"&&e.mutationEnabled&&e.data!==null&&e.binding!==null&&i!==null&&i!==void 0&&$e(e.binding,i)}catch{return!1}}function Ke(e){return typeof e=="object"&&e!==null&&Em.has(e)}function zo(e){return zj[e]}const jR=Object.freeze({projectName:"OpenPlanr",projectDetail:"Project context pending",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}),IR=Object.freeze({state:"booting",label:"Checking local dashboard",reason:"Waiting for OpenPlanr to return a validated project projection."}),QR=()=>Promise.reject(new Error("No exact dashboard refetch is available.")),Lj=B.createContext(null);function yw(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function CR(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function Gg(e){return e.state==="offline"?Ho({kind:"offline",binding:null,data:null,reasonCodes:["DASHBOARD_OFFLINE"],error:null,mutationEnabled:!1,policy:zo("offline")}):e.state==="incompatible"?Ho({kind:"incompatible",binding:null,data:null,reasonCodes:["DASHBOARD_INCOMPATIBLE"],error:Object.freeze({code:"DASHBOARD_BUILD_MISMATCH",retryable:!1,context:Object.freeze({})}),mutationEnabled:!1,policy:zo("incompatible")}):Ho({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:zo("booting")})}function SR({children:e,initialHash:t,identity:i=jR,connection:s=IR,buildId:c,binding:d=null,projection:u,planningProjection:p,operateCyclesProjection:g,operateSearchBindings:m=Object.freeze([]),operateReviewNavigation:y=null,refetchCurrent:A=QR,bootstrap:E=null,bootPhase:b="checking",bootDetail:w=null,liveTransition:j,liveSubjectId:I}){const Q=B.useSyncExternalStore(N=>CR(t,N),()=>yw(t),()=>yw(t)),S=B.useMemo(()=>si(Q),[Q]),C=B.useMemo(()=>u??Gg(s),[s,u]),_=B.useMemo(()=>p??((d==null?void 0:d.productArea)==="planning"?C:Gg(s)),[d==null?void 0:d.productArea,s,C,p]),O=B.useMemo(()=>g??((d==null?void 0:d.route)==="#/operate/cycles"?C:Gg(s)),[d==null?void 0:d.route,s,C,g]),T=B.useMemo(()=>Object.freeze({route:S,identity:i,connection:s,buildId:c,binding:d,projection:C,planningProjection:_,operateCyclesProjection:O,operateSearchBindings:m,operateReviewNavigation:y,refetchCurrent:A,bootstrap:E,bootPhase:b,bootDetail:w}),[S,i,s,c,d,C,_,O,m,y,A,E,b,w]);return r.jsx(Lj.Provider,{value:T,children:r.jsx(JN,{route:S,binding:d,transition:j,trackedSubjectId:I,children:e})})}function Bm(){const e=B.useContext(Lj);if(!e)throw new Error("useDashboard must be used inside DashboardProviders.");return e}function OR(e){if(e.kind==="not-found")return"not-found";if(e.kind==="operate.review")return`${e.kind}:${e.cycleId}:${e.subjectId}`;const t=e.subjectId;return`${e.kind}:${t??""}`}function _R(){const{route:e}=Bm(),t=B.useMemo(()=>{if(e.kind==="not-found")return"";const i=oc(e);if(!i)return"";const s=e.kind==="operate.review"?` · ${e.cycleId} · ${e.subjectId}`:e.subjectId?` · ${e.subjectId}`:"";return`${i.label}${s}. ${i.description}`},[e]);return t?r.jsx("div",{className:"op-route-announcer",role:"status","aria-live":"polite","aria-atomic":"true",children:t},OR(e)):null}const NR=Object.freeze(["boot","incompatible-installation","missing-asset","stale-package","api-version","watcher-gap","optional-dependency"]),RR=Object.freeze({DASHBOARD_MANIFEST_MISSING:"incompatible-installation",DASHBOARD_MANIFEST_INVALID:"api-version",DASHBOARD_ASSET_MISSING:"missing-asset",DASHBOARD_BUILD_MISMATCH:"stale-package"});function xf(e,t,i,s,c){return Object.freeze({category:e,status:t,title:i,detail:s,remediation:c})}function Ew(e,t){return xf("boot",e==="checking"?"pending":"fail",e==="checking"?"Verifying dashboard bootstrap":"Bootstrap could not be certified",t,e==="checking"?"Wait for OpenPlanr to publish the public bootstrap envelope.":"Restore the loopback connection, then reopen diagnostics without mutation.")}function fs(e,t,i){return xf(e,"pass",t,i,"No remediation is required for this check.")}function Qu(e,t,i,s){return xf(e,"fail",t,i,s)}function vw(e,t,i,s){return xf(e,"warn",t,i,s)}function DR(e){const t=new Map;e.bootPhase==="checking"?t.set("boot",Ew("checking",e.bootDetail??"Bootstrap request is in flight.")):e.bootPhase==="unavailable"?t.set("boot",Ew("failed",e.bootDetail??"OpenPlanr did not return a validated bootstrap envelope.")):t.set("boot",fs("boot","Bootstrap envelope validated","The public bootstrap response matched the installed dashboard build contract."));const i=e.bootstrap,s=(i==null?void 0:i.compatibility.reasonCodes)??[],c=new Set(s.map(g=>RR[g]));!i||i.compatibility.status==="incompatible"||s.length>0?t.set("incompatible-installation",Qu("incompatible-installation","Dashboard installation is incompatible",s.length>0?`Certified reason codes: ${s.join(" · ")}.`:"OpenPlanr refused the installed dashboard before presenting project data.","Install matching OpenPlanr dashboard assets, then verify compatibility again.")):t.set("incompatible-installation",fs("incompatible-installation","Installation contract is compatible","The UI, server, and packaged assets satisfy one compatible build contract.")),t.set("missing-asset",c.has("missing-asset")?Qu("missing-asset","Packaged asset is missing","At least one dashboard asset required by the build manifest is absent.","Reinstall the dashboard package or rebuild the embedded asset manifest."):fs("missing-asset","Packaged assets resolve","Every asset entry required by the certified manifest is present."));const d=c.has("stale-package")||i!==null&&i.ui.buildId!==null&&i.ui.expectedBuildId!==null&&i.ui.buildId!==i.ui.expectedBuildId;t.set("stale-package",d?Qu("stale-package","Installed build does not match the server expectation",i?`Embedded build ${e.embeddedBuildId} differs from the served build ${i.ui.buildId??"unknown"}.`:"The embedded dashboard build identity could not be reconciled with the server.","Install the dashboard build expected by this OpenPlanr server, then reload diagnostics."):fs("stale-package","Build custody matches",`Embedded and served builds both report ${e.embeddedBuildId}.`)),t.set("api-version",c.has("api-version")?Qu("api-version","API or manifest version is unsupported","The dashboard manifest or protocol envelope failed semantic validation.","Upgrade OpenPlanr to a release that publishes a supported dashboard contract."):fs("api-version","API versions are supported",i?`Protocol ${i.protocolVersion} with Operate ${i.capabilities.operateExperience.protocolVersion} and Planning graph ${i.capabilities.planningGraph.schemaVersion}.`:"Protocol versions remain unproven until bootstrap succeeds."));const u=e.connection.state==="stale"||e.connection.state==="offline"||e.connection.reason.toLowerCase().includes("watch");t.set("watcher-gap",u?vw("watcher-gap","Live reconciliation may be unavailable",e.connection.reason,"Restore the loopback connection or restart the dashboard without --no-watch before relying on live updates."):fs("watcher-gap","Live update channel is available",e.connection.label));const p=i!==null&&(!i.capabilities.diagnostics.available||!i.capabilities.operateCommands.available);return t.set("optional-dependency",p?vw("optional-dependency","Optional capability is unavailable",[i!=null&&i.capabilities.diagnostics.available?null:"diagnostics unavailable",i!=null&&i.capabilities.operateCommands.available?null:"operate commands unavailable"].filter(g=>g!==null).join(" · "),"Reinstall OpenPlanr with optional dependencies enabled. Global navigation and diagnostics remain available."):fs("optional-dependency","Optional dependencies are present","Diagnostics and governed Operate command transport are both advertised.")),Object.freeze(NR.map(g=>{const m=t.get(g);if(!m)throw new Error(`Missing compatibility finding for ${g}`);return m}))}function TR(e,t,i){return e?e.compatibility.status!=="compatible"||e.ui.buildId!==t||e.ui.expectedBuildId!==t?Object.freeze({state:"incompatible",label:"Dashboard installation is incompatible",reason:e.compatibility.reasonCodes.length>0?e.compatibility.reasonCodes.join(" · "):"Install matching OpenPlanr dashboard assets before relying on current operating state."}):e.capabilities.operateCommands.available?Object.freeze({state:"connected",label:"Connected to local OpenPlanr",reason:"Validated projection channel is available."}):Object.freeze({state:"read-only",label:"Connected in read-only mode",reason:"Governed Operate commands are unavailable. Planning inspection and diagnostics remain available."}):Object.freeze({state:"booting",label:"Checking local dashboard",reason:i??"Waiting for OpenPlanr to return a validated project projection."})}function kR(e){return e?{projectName:e.project.name,projectDetail:e.project.products.length>1?"Planning and operations":"Project workspace",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}:{projectName:"OpenPlanr",projectDetail:"Project context pending",actorLabel:"Actor binding pending",bindingLabel:"Scope and domain pending"}}var bm=Sj(),MR=Object.defineProperty,wm=(e,t)=>MR(e,"name",{value:t,configurable:!0});function BA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}wm(BA,"setRef");function Pj(...e){return t=>{let i=!1;const s=e.map(c=>{const d=BA(c,t);return!i&&typeof d=="function"&&(i=!0),d});if(i)return()=>{for(let c=0;c<s.length;c++){const d=s[c];typeof d=="function"?d():BA(e[c],null)}}}}wm(Pj,"composeRefs");function Dt(...e){return B.useCallback(Pj(...e),e)}wm(Dt,"useComposedRefs");var GR=Object.defineProperty,sa=(e,t)=>GR(e,"name",{value:t,configurable:!0});function Ns(e){const t=B.forwardRef((i,s)=>{let{children:c,...d}=i,u=null,p=!1;const g=[];c=Xj(c),B.Children.forEach(c,E=>{var b;if(Jj(E)){p=!0;const w=E;let j="child"in w.props?w.props.child:w.props.children;for(;xm(j)&&typeof sf=="function";)j=sf(j._payload);u=YR(w,j),g.push((b=u==null?void 0:u.props)==null?void 0:b.children)}else g.push(E)}),u?u=B.cloneElement(u,void 0,g):!p&&B.Children.count(c)===1&&B.isValidElement(c)&&(u=c);const m=u?Kj(u):void 0,y=Dt(s,m);if(!u){if(c||c===0)throw new Error(p?UR(e):zR(e));return c}const A=qj(d,u.props??{});return u.type!==B.Fragment&&(A.ref=s?y:m),B.cloneElement(u,A)});return t.displayName=`${e}.Slot`,t}sa(Ns,"createSlot");var Fj=Symbol.for("radix.slottable");function Vj(e){const t=sa(i=>"child"in i?i.children(i.child):i.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Fj,t}sa(Vj,"createSlottable");var YR=sa((e,t)=>"child"in e.props?B.isValidElement(t)?B.cloneElement(t,void 0,e.props.children(t.props.children)):null:B.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function qj(e,t){const i={...t};for(const s in t){const c=e[s],d=t[s];/^on[A-Z]/.test(s)?c&&d?i[s]=(...p)=>{const g=d(...p);return c(...p),g}:c&&(i[s]=c):s==="style"?i[s]={...c,...d}:s==="className"?i[s]=[c,d].filter(Boolean).join(" "):s==="aria-describedby"&&(i[s]=Wj(d,c))}return{...e,...i}}sa(qj,"mergeProps");function Kj(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}sa(Kj,"getElementRef");function Jj(e){return B.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fj}sa(Jj,"isSlottable");var HR=Symbol.for("react.lazy");function xm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===HR&&"_payload"in e&&Zj(e._payload)}sa(xm,"isLazyComponent");function Zj(e){return typeof e=="object"&&e!==null&&"then"in e}sa(Zj,"isPromiseLike");function Xj(e){let t=e;for(;xm(t)&&typeof sf=="function";)t=sf(t._payload);return t}sa(Xj,"useUnwrappedLazy");function Wj(...e){const t=new Set;for(const i of e)if(typeof i=="string")for(const s of String(i).trim().split(/\s+/))s&&t.add(s);return t.size>0?Array.from(t).join(" "):void 0}sa(Wj,"concatAriaDescribedby");var zR=sa(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),UR=sa(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),sf=Gs[" use ".trim().toString()],$R=Object.defineProperty,LR=(e,t)=>$R(e,"name",{value:t,configurable:!0}),PR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=PR.reduce((e,t)=>{const i=Ns(`Primitive.${t}`),s=B.forwardRef((c,d)=>{const{asChild:u,...p}=c,g=u?i:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(g,{...p,ref:d})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function eI(e,t){e&&bm.flushSync(()=>e.dispatchEvent(t))}LR(eI,"dispatchDiscreteCustomEvent");var FR=Object.defineProperty,VR=(e,t)=>FR(e,"name",{value:t,configurable:!0}),qR=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),KR=B.forwardRef(VR(function(t,i){return r.jsx(nn.span,{...t,ref:i,style:{...qR,...t.style}})},"VisuallyHidden")),JR=Object.defineProperty,Ea=(e,t)=>JR(e,"name",{value:t,configurable:!0});function ZR(e,t){const i=B.createContext(t);i.displayName=e+"Context";const s=Ea(d=>{const{children:u,...p}=d,g=B.useMemo(()=>p,Object.values(p));return r.jsx(i.Provider,{value:g,children:u})},"Provider");s.displayName=e+"Provider";function c(d,u={}){const{optional:p=!1}=u,g=B.useContext(i);if(g)return g;if(t!==void 0)return t;if(!p)throw new Error(`\`${d}\` must be used within \`${e}\``)}return Ea(c,"useContext"),[s,c]}Ea(ZR,"createContext");function Ui(e,t=[]){let i=[];function s(d,u){const p=B.createContext(u);p.displayName=d+"Context";const g=i.length;i=[...i,u];const m=Ea(A=>{var Q;const{scope:E,children:b,...w}=A,j=((Q=E==null?void 0:E[e])==null?void 0:Q[g])||p,I=B.useMemo(()=>w,Object.values(w));return r.jsx(j.Provider,{value:I,children:b})},"Provider");m.displayName=d+"Provider";function y(A,E,b={}){var Q;const{optional:w=!1}=b,j=((Q=E==null?void 0:E[e])==null?void 0:Q[g])||p,I=B.useContext(j);if(I)return I;if(u!==void 0)return u;if(!w)throw new Error(`\`${A}\` must be used within \`${d}\``)}return Ea(y,"useContext"),[m,y]}Ea(s,"createContext");const c=Ea(()=>{const d=i.map(u=>B.createContext(u));return Ea(function(p){const g=(p==null?void 0:p[e])||d;return B.useMemo(()=>({[`__scope${e}`]:{...p,[e]:g}}),[p,g])},"useScope")},"createScope");return c.scopeName=e,[s,tI(c,...t)]}Ea(Ui,"createContextScope");function tI(...e){const t=e[0];if(e.length===1)return t;const i=Ea(()=>{const s=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return Ea(function(d){const u=s.reduce((p,{useScope:g,scopeName:m})=>{const A=g(d)[`__scope${m}`];return{...p,...A}},{});return B.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])},"useComposedScopes")},"createScope");return i.scopeName=t.scopeName,i}Ea(tI,"composeContextScopes");var mn=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},XR=Object.defineProperty,Ut=(e,t)=>XR(e,"name",{value:t,configurable:!0});function nI(e){const t=e+"CollectionProvider",[i,s]=Ui(t),[c,d]=i(t,{collectionRef:{current:null},itemMap:new Map}),u=Ut(j=>{const{scope:I,children:Q}=j,S=B.useRef(null),C=B.useRef(new Map).current;return r.jsx(c,{scope:I,itemMap:C,collectionRef:S,children:Q})},"CollectionProvider");u.displayName=t;const p=e+"CollectionSlot",g=Ns(p),m=B.forwardRef((j,I)=>{const{scope:Q,children:S}=j,C=d(p,Q),_=Dt(I,C.collectionRef);return r.jsx(g,{ref:_,children:S})});m.displayName=p;const y=e+"CollectionItemSlot",A="data-radix-collection-item",E=Ns(y),b=B.forwardRef((j,I)=>{const{scope:Q,children:S,...C}=j,_=B.useRef(null),O=Dt(I,_),T=d(y,Q);return B.useEffect(()=>(T.itemMap.set(_,{ref:_,...C}),()=>void T.itemMap.delete(_))),r.jsx(E,{[A]:"",ref:O,children:S})});b.displayName=y;function w(j){const I=d(e+"CollectionConsumer",j);return B.useCallback(()=>{const S=I.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${A}]`));return Array.from(I.itemMap.values()).sort((T,N)=>C.indexOf(T.ref.current)-C.indexOf(N.ref.current))},[I.collectionRef,I.itemMap])}return Ut(w,"useCollection"),[{Provider:u,Slot:m,ItemSlot:b},w,s]}Ut(nI,"createCollection");var Bw=new WeakMap,It,ea,Cu=(ea=class extends Map{constructor(i){super(i);ze(this,It);je(this,It,[...super.keys()]),Bw.set(this,!0)}set(i,s){return Bw.get(this)&&!this.has(i)&&J(this,It).push(i),super.set(i,s),this}insert(i,s,c){const d=this.has(s),u=d?this.size:this.size+1,p=jm(i),g=p>=0?Math.min(p,u-1):Math.max(u+p,0);if(d?J(this,It).indexOf(s)===g:g===this.size)return this.set(s,c),this;const m=J(this,It).filter(A=>A!==s);m.splice(g,0,s);const y=m.map(A=>[A,A===s?c:this.get(A)]);this.clear();for(const[A,E]of y)this.set(A,E);return this}with(i,s,c){const d=new ea(this);return d.insert(i,s,c),d}before(i){const s=J(this,It).indexOf(i)-1;if(!(s<0))return this.entryAt(s)}setBefore(i,s,c){const d=J(this,It).indexOf(i);if(d===-1)return this;const u=J(this,It).indexOf(s),p=u!==-1&&u<d?d-1:d;return this.insert(p,s,c)}after(i){let s=J(this,It).indexOf(i);if(s=s===-1||s===this.size-1?-1:s+1,s!==-1)return this.entryAt(s)}setAfter(i,s,c){const d=J(this,It).indexOf(i);if(d===-1)return this;const u=J(this,It).indexOf(s),p=u!==-1&&u<=d?d:d+1;return this.insert(p,s,c)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return je(this,It,[]),super.clear()}delete(i){const s=super.delete(i);return s&&J(this,It).splice(J(this,It).indexOf(i),1),s}deleteAt(i){const s=this.keyAt(i);return s!==void 0?this.delete(s):!1}at(i){const s=Ku(J(this,It),i);if(s!==void 0)return this.get(s)}entryAt(i){const s=Ku(J(this,It),i);if(s!==void 0)return[s,this.get(s)]}indexOf(i){return J(this,It).indexOf(i)}keyAt(i){return Ku(J(this,It),i)}from(i,s){const c=this.indexOf(i);if(c===-1)return;let d=c+s;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.at(d)}keyFrom(i,s){const c=this.indexOf(i);if(c===-1)return;let d=c+s;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(i,s){let c=0;for(const d of this){if(Reflect.apply(i,s,[d,c,this]))return d;c++}}findIndex(i,s){let c=0;for(const d of this){if(Reflect.apply(i,s,[d,c,this]))return c;c++}return-1}filter(i,s){const c=[];let d=0;for(const u of this)Reflect.apply(i,s,[u,d,this])&&c.push(u),d++;return new ea(c)}map(i,s){const c=[];let d=0;for(const u of this)c.push([u[0],Reflect.apply(i,s,[u,d,this])]),d++;return new ea(c)}reduce(...i){const[s,c]=i,d=i.length>1;if(!d&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let u=0,p=c;for(const g of this)u===0&&!d?p=g:p=Reflect.apply(s,this,[p,g,u,this]),u++;return p}reduceRight(...i){const[s,c]=i,d=i.length>1;if(!d&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let u=c;for(let p=this.size-1;p>=0;p--){const g=this.entryAt(p);p===this.size-1&&!d?u=g:u=Reflect.apply(s,this,[u,g,p,this])}return u}sort(i){if(typeof i!="function")throw new TypeError("OrderedDict.sort requires a compare function");const s=[...this.entries()].sort(i);this.clear();for(const[c,d]of s)this.set(c,d);return this}toSorted(i){if(typeof i!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");const s=[...this.entries()].sort(i);return new ea(s)}toReversed(){const i=new ea;for(let s=this.size-1;s>=0;s--){const c=this.keyAt(s),d=this.get(c);i.set(c,d)}return i}toSpliced(...i){const s=[...this.entries()];return s.splice(...i),new ea(s)}slice(i,s){const c=new ea;for(const d of J(this,It).slice(i,s))c.set(d,this.get(d));return c}every(i,s){let c=0;for(const d of this){if(!Reflect.apply(i,s,[d,c,this]))return!1;c++}return!0}some(i,s){let c=0;for(const d of this){if(Reflect.apply(i,s,[d,c,this]))return!0;c++}return!1}},It=new WeakMap,Ut(ea,"OrderedDict"),ea);function Ku(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const i=aI(e,t);return i===-1?void 0:e[i]}Ut(Ku,"at");function aI(e,t){const i=e.length,s=jm(t),c=s>=0?s:i+s;return c<0||c>=i?-1:c}Ut(aI,"toSafeIndex");function jm(e){return e!==e||e===0?0:Math.trunc(e)}Ut(jm,"toSafeInteger");function WR(e){const t=e+"CollectionProvider",[i,s]=Ui(t),[c,d]=i(t);c.displayName=e+"CollectionStableContextProvider";const[u,p]=i(t);u.displayName=e+"CollectionStatefulContextProvider";const g=Ut(({state:T,...N})=>T?r.jsx(y,{...N,state:T}):r.jsx(m,{...N}),"CollectionProvider");g.displayName=t;const m=Ut(T=>{const N=S();return r.jsx(y,{...T,state:N})},"CollectionInit");m.displayName=e+"CollectionInit";const y=Ut(T=>{const{scope:N,children:$,state:G}=T,U=B.useRef(null),[Z,q]=B.useState(null),de=Dt(U,q),[re,pe]=G,K=B.useRef(new Cu),ie=B.useCallback(()=>{const W=K.current;return sI(W)||W.sort(Ju),W},[]);return B.useEffect(()=>{if(!Z)return;const W=oI(()=>{pe(le=>{const oe=le.toSorted(Ju);return oe.some(([Me],_e)=>le.keyAt(_e)!==Me)?oe:le})});return W.observe(Z,{childList:!0,subtree:!0}),()=>{W.disconnect()}},[Z,pe]),r.jsx(c,{scope:N,collectionElementRef:de,collectionElementRefObject:U,getCollection:ie,setCollection:pe,registryRef:K,children:r.jsx(u,{scope:N,collectionElement:Z,collection:re,children:$})})},"CollectionProviderImpl");y.displayName=e+"CollectionProviderImpl";const A=e+"CollectionSlot",E=Ns(A),b=B.forwardRef((T,N)=>{const{scope:$,children:G}=T,U=d(A,$),Z=Dt(N,U.collectionElementRef);return r.jsx(E,{ref:Z,children:G})});b.displayName=A;const w=e+"CollectionItemSlot",j="data-radix-collection-item",I=Ns(w),Q=B.forwardRef((T,N)=>{const{scope:$,children:G,...U}=T,Z=B.useRef(null),q=d(w,$),{setCollection:de,registryRef:re}=q,pe=B.useRef(U);iI(pe.current,U)||(pe.current=U);const K=pe.current,ie=B.useCallback(oe=>{const xe=re.current;oe?xe.set(oe,{...pe.current,element:oe}):Z.current&&xe.delete(Z.current)},[re]),W=Dt(N,ie,Z);mn(()=>{const oe=Z.current,xe=re.current;oe&&xe.has(oe)&&xe.set(oe,{...K,element:oe})},[K,re]);const le=B.useRef(null);return B.useEffect(()=>{const oe=Z.current,xe=le.current;((xe==null?void 0:xe.element)??null)===oe&&(!oe||(xe==null?void 0:xe.itemData)===K)||(le.current=oe?{element:oe,itemData:K}:null,de(Me=>{const _e=new Cu(Me);return xe&&xe.element!==oe&&_e.delete(xe.element),oe&&_e.set(oe,{...K,element:oe}),_e.sort(Ju)}))}),B.useEffect(()=>()=>{const oe=le.current;le.current=null,oe&&de(xe=>{if(!xe.has(oe.element))return xe;const Me=new Cu(xe);return Me.delete(oe.element),Me})},[de]),r.jsx(I,{[j]:"",ref:W,children:G})});Q.displayName=w;function S(){return B.useState(new Cu)}Ut(S,"useInitCollection");function C(T){const{collection:N}=p(e+"CollectionConsumer",T);return N}Ut(C,"useCollection");function _(T){const{getCollection:N}=d(e+"CollectionConsumer",T);return N}return Ut(_,"useGetCollection"),[{Provider:g,Slot:b,ItemSlot:Q},{createCollectionScope:s,useCollection:C,useGetCollection:_,useInitCollection:S}]}Ut(WR,"createCollection");function iI(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const c of i)if(!Object.prototype.hasOwnProperty.call(t,c)||e[c]!==t[c])return!1;return!0}Ut(iI,"shallowEqual");function rI(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ut(rI,"isElementPreceding");function sI(e){let t;for(const i of e.keys()){if(t){const s=t.compareDocumentPosition(i);if(!(s&Node.DOCUMENT_POSITION_DISCONNECTED)&&s&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=i}return!0}Ut(sI,"isInDocumentOrder");function Ju(e,t){return!e[1].element||!t[1].element?0:rI(e[1].element,t[1].element)?-1:1}Ut(Ju,"sortByDocumentPosition");function oI(e){return new MutationObserver(i=>{for(const s of i)if(s.type==="childList"){e();return}})}Ut(oI,"getChildListObserver");var eD=Object.defineProperty,lc=(e,t)=>eD(e,"name",{value:t,configurable:!0}),cI=!!(typeof window<"u"&&window.document&&window.document.createElement);function pt(e,t,{checkForDefaultPrevented:i=!0}={}){return lc(function(c){if(e==null||e(c),i===!1||!c||!c.defaultPrevented)return t==null?void 0:t(c)},"handleEvent")}lc(pt,"composeEventHandlers");function tD(e){var t;if(!cI)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}lc(tD,"getOwnerWindow");function bA(e){if(!cI)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}lc(bA,"getOwnerDocument");function lI(e,t=!1){const{activeElement:i}=bA(e);if(!(i!=null&&i.nodeName))return null;if(dI(i)&&i.contentDocument)return lI(i.contentDocument.body,t);if(t){const s=i.getAttribute("aria-activedescendant");if(s){const c=bA(i).getElementById(s);if(c)return c}}return i}lc(lI,"getActiveElement");function dI(e){return e.tagName==="IFRAME"}lc(dI,"isFrame");var nD=Object.defineProperty,aD=(e,t)=>nD(e,"name",{value:t,configurable:!0}),bw=Gs[" useEffectEvent ".trim().toString()],ww=Gs[" useInsertionEffect ".trim().toString()];function uI(e){if(typeof bw=="function")return bw(e);const t=B.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof ww=="function"?ww(()=>{t.current=e}):mn(()=>{t.current=e}),B.useMemo(()=>((...i)=>{var s;return(s=t.current)==null?void 0:s.call(t,...i)}),[])}aD(uI,"useEffectEvent");var iD=Object.defineProperty,Pl=(e,t)=>iD(e,"name",{value:t,configurable:!0}),rD=Gs[" useInsertionEffect ".trim().toString()]||mn;function Fl({prop:e,defaultProp:t,onChange:i=Pl(()=>{},"onChange"),caller:s}){const[c,d,u]=fI({defaultProp:t,onChange:i}),p=e!==void 0,g=p?e:c,m=B.useCallback(y=>{var A;if(p){const E=pI(y)?y(e):y;E!==e&&((A=u.current)==null||A.call(u,E))}else d(y)},[p,e,d,u]);return[g,m]}Pl(Fl,"useControllableState");function fI({defaultProp:e,onChange:t}){const[i,s]=B.useState(e),c=B.useRef(i),d=B.useRef(t);return rD(()=>{d.current=t},[t]),B.useEffect(()=>{var u;c.current!==i&&((u=d.current)==null||u.call(d,i),c.current=i)},[i,c]),[i,s,d]}Pl(fI,"useUncontrolledState");function pI(e){return typeof e=="function"}Pl(pI,"isFunction");var xw=Symbol("RADIX:SYNC_STATE");function sD(e,t,i,s){const{prop:c,defaultProp:d,onChange:u,caller:p}=t,g=c!==void 0,m=uI(u),y=[{...i,state:d}];s&&y.push(s);const[A,E]=B.useReducer((I,Q)=>{if(Q.type===xw)return{...I,state:Q.state};const S=e(I,Q);return g&&!Object.is(S.state,I.state)&&m(S.state),S},...y),b=A.state,w=B.useRef(b);B.useEffect(()=>{w.current!==b&&(w.current=b,g||m(b))},[b,w,g]);const j=B.useMemo(()=>c!==void 0?{...A,state:c}:A,[A,c]);return B.useEffect(()=>{g&&!Object.is(c,A.state)&&E({type:xw,state:c})},[c,A.state,g]),[j,E]}Pl(sD,"useControllableStateReducer");var oD=Object.defineProperty,Yi=(e,t)=>oD(e,"name",{value:t,configurable:!0});function hI(e,t){return B.useReducer((i,s)=>t[i][s]??i,e)}Yi(hI,"useStateMachine");var dc=Yi(e=>{const{present:t,children:i}=e,s=gI(t),c=typeof i=="function"?i({present:s.isPresent}):B.Children.only(i),d=AI(s.ref,mI(c));return typeof i=="function"||s.isPresent?B.cloneElement(c,{ref:d}):null},"Presence");function gI(e){const[t,i]=B.useState(),s=B.useRef(null),c=B.useRef(e),d=B.useRef("none"),u=B.useRef(void 0),p=e?"mounted":"unmounted",[g,m]=hI(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B.useEffect(()=>{g==="mounted"?(d.current=u.current??Go(s.current),u.current=void 0):d.current="none"},[g]),mn(()=>{const y=s.current,A=c.current;if(A!==e){const b=d.current,w=Go(y);e?(u.current=w,m("MOUNT")):w==="none"||(y==null?void 0:y.display)==="none"?m("UNMOUNT"):m(A&&b!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,m]),mn(()=>{if(t){let y;const A=t.ownerDocument.defaultView??window,E=Yi(w=>{const I=Go(s.current).includes(CSS.escape(w.animationName));if(w.target===t&&I&&(m("ANIMATION_END"),!c.current)){const Q=t.style.animationFillMode;t.style.animationFillMode="forwards",y=A.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=Q)})}},"handleAnimationEnd"),b=Yi(w=>{w.target===t&&(d.current=Go(s.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{A.clearTimeout(y),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:B.useCallback(y=>{if(y){const A=getComputedStyle(y);s.current=A,u.current=Go(A)}else s.current=null;i(y)},[])}}Yi(gI,"usePresence");function wA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Yi(wA,"setRef");function AI(...e){const t=B.useRef(e);return t.current=e,B.useCallback(i=>{const s=t.current;let c=!1;const d=s.map(u=>{const p=wA(u,i);return!c&&typeof p=="function"&&(c=!0),p});if(c)return()=>{for(let u=0;u<d.length;u++){const p=d[u];typeof p=="function"?p():wA(s[u],null)}}},[])}Yi(AI,"useStableComposedRefs");function Go(e){return(e==null?void 0:e.animationName)||"none"}Yi(Go,"getAnimationName");function mI(e){var s,c;let t=(s=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:s.get,i=t&&"isReactWarning"in t&&t.isReactWarning;return i?e.ref:(t=(c=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:c.get,i=t&&"isReactWarning"in t&&t.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}Yi(mI,"getElementRef");var cD=Object.defineProperty,lD=(e,t)=>cD(e,"name",{value:t,configurable:!0}),dD=Gs[" useId ".trim().toString()]||(()=>{}),uD=0;function Os(e){const[t,i]=B.useState(dD());return mn(()=>{e||i(s=>s??String(uD++))},[e]),e||(t?`radix-${t}`:"")}lD(Os,"useId");var fD=Object.defineProperty,pD=(e,t)=>fD(e,"name",{value:t,configurable:!0}),hD={LTR:"ltr"},gD=B.createContext(void 0);function Im(e){const t=B.useContext(gD);return e||t||hD.LTR}pD(Im,"useDirection");var AD=Object.defineProperty,mD=(e,t)=>AD(e,"name",{value:t,configurable:!0}),jw=Gs[" useInsertionEffect ".trim().toString()];function Dr(e){const t=B.useRef(e);return typeof jw=="function"?jw(()=>{t.current=e}):mn(()=>{t.current=e}),B.useMemo(()=>((...i)=>{var s;return(s=t.current)==null?void 0:s.call(t,...i)}),[])}mD(Dr,"useCallbackRef");var yD=Object.defineProperty,Kt=(e,t)=>yD(e,"name",{value:t,configurable:!0}),xA="dismissableLayer.update",ED="dismissableLayer.pointerDownOutside",vD="dismissableLayer.focusOutside",Iw,yI=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),EI=B.forwardRef(Kt(function(t,i){const{disableOutsidePointerEvents:s=!1,deferPointerDownOutside:c=!1,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:g,onDismiss:m,...y}=t,A=B.useContext(yI),[E,b]=B.useState(null),w=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=B.useState({}),I=Dt(i,b),Q=Array.from(A.layers),[S]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?Q.indexOf(S):-1,_=E?Q.indexOf(E):-1,O=A.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,N=B.useRef(!1),$=BI(q=>{u==null||u(q),g==null||g(q),q.defaultPrevented||m==null||m()},{ownerDocument:w,deferPointerDownOutside:c,isDeferredPointerDownOutsideRef:N,dismissableSurfaces:A.dismissableSurfaces,shouldHandlePointerDownOutside:B.useCallback(q=>{if(!(q instanceof Node))return!1;const de=[...A.branches].some(re=>re.contains(q));return T&&!de},[A.branches,T])}),G=bI(q=>{if(c&&N.current)return;const de=q.target;[...A.branches].some(pe=>pe.contains(de))||(p==null||p(q),g==null||g(q),q.defaultPrevented||m==null||m())},w),U=E?_===Q.length-1:!1,Z=Dr(q=>{q.key==="Escape"&&(d==null||d(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))});return B.useEffect(()=>{if(U)return w.addEventListener("keydown",Z,{capture:!0}),()=>w.removeEventListener("keydown",Z,{capture:!0})},[w,U,Z]),B.useEffect(()=>{if(E)return s&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(Iw=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(E)),A.layers.add(E),jA(),()=>{s&&(A.layersWithOutsidePointerEventsDisabled.delete(E),A.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=Iw))}},[E,w,s,A]),B.useEffect(()=>()=>{E&&(A.layers.delete(E),A.layersWithOutsidePointerEventsDisabled.delete(E),jA())},[E,A]),B.useEffect(()=>{const q=Kt(()=>j({}),"handleUpdate");return document.addEventListener(xA,q),()=>document.removeEventListener(xA,q)},[]),r.jsx(nn.div,{...y,ref:I,style:{pointerEvents:O?T?"auto":"none":void 0,...t.style},onFocusCapture:pt(t.onFocusCapture,G.onFocusCapture),onBlurCapture:pt(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:pt(t.onPointerDownCapture,$.onPointerDownCapture)})},"DismissableLayer"));function vI(){const e=B.useContext(yI),[t,i]=B.useState(null);return B.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),i}Kt(vI,"useDismissableLayerSurface");var BD=Kt(()=>!0,"IS_TRUE");function BI(e,t){const{ownerDocument:i=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:s=!1,isDeferredPointerDownOutsideRef:c,dismissableSurfaces:d,shouldHandlePointerDownOutside:u=BD}=t,p=Dr(e),g=B.useRef(!1),m=B.useRef(!1),y=B.useRef(new Map),A=B.useRef(()=>{});return B.useEffect(()=>{function E(){m.current=!1,c.current=!1,y.current.clear()}Kt(E,"resetOutsideInteraction");function b(){return Array.from(y.current.values()).some(Boolean)}Kt(b,"isOutsideInteractionIntercepted");function w(C){if(!m.current)return;const _=C.target;_ instanceof Node&&[...d].some(T=>T.contains(_))||y.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{m.current&&A.current()},0)}Kt(w,"handleInteractionCapture");function j(C){m.current&&y.current.set(C.type,!1)}Kt(j,"handleInteractionBubble");const I=Kt(C=>{if(C.target&&!g.current){let _=function(){i.removeEventListener("click",A.current);const T=b();E(),T||Qm(ED,p,O,{discrete:!0})};if(Kt(_,"handleAndDispatchPointerDownOutsideEvent"),!u(C.target)){i.removeEventListener("click",A.current),E(),g.current=!1;return}const O={originalEvent:C};m.current=!0,c.current=s&&C.button===0,y.current.clear(),!s||C.button!==0?_():(i.removeEventListener("click",A.current),A.current=_,i.addEventListener("click",A.current,{once:!0}))}else i.removeEventListener("click",A.current),E();g.current=!1},"handlePointerDown"),Q=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of Q)i.addEventListener(C,w,!0),i.addEventListener(C,j);const S=window.setTimeout(()=>{i.addEventListener("pointerdown",I)},0);return()=>{window.clearTimeout(S),i.removeEventListener("pointerdown",I),i.removeEventListener("click",A.current);for(const C of Q)i.removeEventListener(C,w,!0),i.removeEventListener(C,j)}},[i,p,s,c,d,u]),{onPointerDownCapture:Kt(()=>g.current=!0,"onPointerDownCapture")}}Kt(BI,"usePointerDownOutside");function bI(e,t=globalThis==null?void 0:globalThis.document){const i=Dr(e),s=B.useRef(!1);return B.useEffect(()=>{const c=Kt(d=>{d.target&&!s.current&&Qm(vD,i,{originalEvent:d},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",c),()=>t.removeEventListener("focusin",c)},[t,i]),{onFocusCapture:Kt(()=>s.current=!0,"onFocusCapture"),onBlurCapture:Kt(()=>s.current=!1,"onBlurCapture")}}Kt(bI,"useFocusOutside");function jA(){const e=new CustomEvent(xA);document.dispatchEvent(e)}Kt(jA,"dispatchUpdate");function Qm(e,t,i,{discrete:s}){const c=i.originalEvent.target,d=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});t&&c.addEventListener(e,t,{once:!0}),s?eI(c,d):c.dispatchEvent(d)}Kt(Qm,"handleAndDispatchCustomEvent");var bD=Object.defineProperty,Rt=(e,t)=>bD(e,"name",{value:t,configurable:!0}),Yg="focusScope.autoFocusOnMount",Hg="focusScope.autoFocusOnUnmount",Qw={bubbles:!1,cancelable:!0},wD=B.forwardRef(Rt(function(t,i){const{loop:s=!1,trapped:c=!1,branches:d,onMountAutoFocus:u,onUnmountAutoFocus:p,...g}=t,[m,y]=B.useState(null),A=Dr(u),E=Dr(p),b=B.useRef(null),w=Dt(i,y),j=B.useRef(d);B.useEffect(()=>{j.current=d});const I=B.useCallback(C=>{var _;return C?m!=null&&m.contains(C)?!0:!!((_=j.current)!=null&&_.some(O=>O.contains(C))):!1},[m]),Q=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect(()=>{if(c){let C=function(N){if(Q.paused||!m)return;const $=N.target;I($)?b.current=$:Oi(b.current,{select:!0})},_=function(N){if(Q.paused||!m)return;const $=N.relatedTarget;$!==null&&(I($)||Oi(b.current,{select:!0}))},O=function(N){if(document.activeElement===document.body)for(const G of N)G.removedNodes.length>0&&Oi(m)};Rt(C,"handleFocusIn"),Rt(_,"handleFocusOut"),Rt(O,"handleMutations"),document.addEventListener("focusin",C),document.addEventListener("focusout",_);const T=new MutationObserver(O);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",_),T.disconnect()}}},[c,m,Q.paused,I]),B.useEffect(()=>{if(m){Cw.add(Q);const C=document.activeElement;if(!m.contains(C)){const O=new CustomEvent(Yg,Qw);m.addEventListener(Yg,A),m.dispatchEvent(O),O.defaultPrevented||(QI(NI(Cm(m)),{select:!0}),document.activeElement===C&&Oi(m))}return()=>{m.removeEventListener(Yg,A);const O=m.ownerDocument,T=CustomEvent;setTimeout(()=>{const N=new T(Hg,Qw);m.addEventListener(Hg,E),m.dispatchEvent(N),N.defaultPrevented||Oi(C??O.body,{select:!0}),m.removeEventListener(Hg,E),Cw.remove(Q)},0)}}},[m,A,E,Q]);const S=B.useCallback(C=>{if(!s&&!c||Q.paused)return;const _=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,O=document.activeElement;if(_&&O){const T=C.currentTarget,[N,$]=CI(T);N&&$?!C.shiftKey&&O===$?(C.preventDefault(),s&&Oi(N,{select:!0})):C.shiftKey&&O===N&&(C.preventDefault(),s&&Oi($,{select:!0})):O===T&&C.preventDefault()}},[s,c,Q.paused]);return r.jsx(nn.div,{tabIndex:-1,...g,ref:w,onKeyDown:S})},"FocusScope")),wI=B.createContext(null);function xI({registry:e,children:t}){return e?r.jsx(wI.Provider,{value:e,children:t}):t}Rt(xI,"FocusScopeBranchProvider");function jI(){const[e,t]=B.useState([]),i=B.useMemo(()=>({add:Rt(s=>t(c=>c.includes(s)?c:[...c,s]),"add"),remove:Rt(s=>t(c=>c.filter(d=>d!==s)),"remove")}),[]);return{nodes:e,registry:i}}Rt(jI,"useFocusScopeBranchRegistry");function II(e){const t=B.useContext(wI);B.useEffect(()=>{if(!(!e||!t))return t.add(e),()=>t.remove(e)},[e,t])}Rt(II,"useFocusScopeBranch");function QI(e,{select:t=!1}={}){const i=document.activeElement;for(const s of e)if(Oi(s,{select:t}),document.activeElement!==i)return}Rt(QI,"focusFirst");function CI(e){const t=Cm(e),i=IA(t,e),s=IA(t.reverse(),e);return[i,s]}Rt(CI,"getTabbableEdges");function Cm(e){const t=[],s=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Rt(c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;s.nextNode();)t.push(s.currentNode);return t}Rt(Cm,"getTabbableCandidates");function IA(e,t){const i=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const s of e)if(!(i?!s.checkVisibility({checkVisibilityCSS:!0}):SI(s,{upTo:t})))return s}Rt(IA,"findVisible");function SI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Rt(SI,"isHidden");function OI(e){return e.tagName==="INPUT"&&typeof e.select=="function"}Rt(OI,"isSelectableInput");function Oi(e,{select:t=!1}={}){if(e&&e.focus){const s=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==s&&OI(e)&&t&&e.select()}}Rt(Oi,"focus");var Cw=_I();function _I(){let e=[];return{add(t){const i=e[0];t!==i&&(i==null||i.pause()),e=QA(e,t),e.unshift(t)},remove(t){var i;e=QA(e,t),(i=e[0])==null||i.resume()}}}Rt(_I,"createFocusScopesStack");function QA(e,t){const i=[...e],s=i.indexOf(t);return s!==-1&&i.splice(s,1),i}Rt(QA,"arrayRemove");function NI(e){return e.filter(t=>t.tagName!=="A")}Rt(NI,"removeLinks");var xD=Object.defineProperty,jD=(e,t)=>xD(e,"name",{value:t,configurable:!0}),RI=B.forwardRef(jD(function(t,i){var g;const{container:s,...c}=t,[d,u]=B.useState(!1);mn(()=>u(!0),[]);const p=s||d&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return p?bm.createPortal(r.jsx(nn.div,{...c,ref:i}),p):null},"Portal")),ID=Object.defineProperty,Sm=(e,t)=>ID(e,"name",{value:t,configurable:!0}),Su=0,Ka=null;function QD(e){return Om(),e.children}Sm(QD,"FocusGuards");function Om(){B.useEffect(()=>{Ka||(Ka={start:CA(),end:CA()});const{start:e,end:t}=Ka;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Su++,()=>{Su===1&&(Ka==null||Ka.start.remove(),Ka==null||Ka.end.remove(),Ka=null),Su=Math.max(0,Su-1)}},[])}Sm(Om,"useFocusGuards");function CA(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Sm(CA,"createFocusGuard");var ai=function(){return ai=Object.assign||function(t){for(var i,s=1,c=arguments.length;s<c;s++){i=arguments[s];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(t[d]=i[d])}return t},ai.apply(this,arguments)};function DI(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(e);c<s.length;c++)t.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(e,s[c])&&(i[s[c]]=e[s[c]]);return i}function CD(e,t,i){if(i||arguments.length===2)for(var s=0,c=t.length,d;s<c;s++)(d||!(s in t))&&(d||(d=Array.prototype.slice.call(t,0,s)),d[s]=t[s]);return e.concat(d||Array.prototype.slice.call(t))}var Zu="right-scroll-bar-position",Xu="width-before-scroll-bar",SD="with-scroll-bars-hidden",OD="--removed-body-scroll-bar-size";function zg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _D(e,t){var i=B.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(s){var c=i.value;c!==s&&(i.value=s,i.callback(s,c))}}}})[0];return i.callback=t,i.facade}var ND=typeof window<"u"?B.useLayoutEffect:B.useEffect,Sw=new WeakMap;function RD(e,t){var i=_D(null,function(s){return e.forEach(function(c){return zg(c,s)})});return ND(function(){var s=Sw.get(i);if(s){var c=new Set(s),d=new Set(e),u=i.current;c.forEach(function(p){d.has(p)||zg(p,null)}),d.forEach(function(p){c.has(p)||zg(p,u)})}Sw.set(i,e)},[e]),i}function DD(e){return e}function TD(e,t){t===void 0&&(t=DD);var i=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(d){var u=t(d,s);return i.push(u),function(){i=i.filter(function(p){return p!==u})}},assignSyncMedium:function(d){for(s=!0;i.length;){var u=i;i=[],u.forEach(d)}i={push:function(p){return d(p)},filter:function(){return i}}},assignMedium:function(d){s=!0;var u=[];if(i.length){var p=i;i=[],p.forEach(d),u=i}var g=function(){var y=u;u=[],y.forEach(d)},m=function(){return Promise.resolve().then(g)};m(),i={push:function(y){u.push(y),m()},filter:function(y){return u=u.filter(y),i}}}};return c}function kD(e){e===void 0&&(e={});var t=TD(null);return t.options=ai({async:!0,ssr:!1},e),t}var TI=function(e){var t=e.sideCar,i=DI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return B.createElement(s,ai({},i))};TI.isSideCarExport=!0;function MD(e,t){return e.useMedium(t),TI}var kI=kD(),Ug=function(){},jf=B.forwardRef(function(e,t){var i=B.useRef(null),s=B.useState({onScrollCapture:Ug,onWheelCapture:Ug,onTouchMoveCapture:Ug}),c=s[0],d=s[1],u=e.forwardProps,p=e.children,g=e.className,m=e.removeScrollBar,y=e.enabled,A=e.shards,E=e.sideCar,b=e.noRelative,w=e.noIsolation,j=e.inert,I=e.allowPinchZoom,Q=e.as,S=Q===void 0?"div":Q,C=e.gapMode,_=DI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=E,T=RD([i,t]),N=ai(ai({},_),c);return B.createElement(B.Fragment,null,y&&B.createElement(O,{sideCar:kI,removeScrollBar:m,shards:A,noRelative:b,noIsolation:w,inert:j,setCallbacks:d,allowPinchZoom:!!I,lockRef:i,gapMode:C}),u?B.cloneElement(B.Children.only(p),ai(ai({},N),{ref:T})):B.createElement(S,ai({},N,{className:g,ref:T}),p))});jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jf.classNames={fullWidth:Xu,zeroRight:Zu};var GD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=GD();return t&&e.setAttribute("nonce",t),e}function HD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UD=function(){var e=0,t=null;return{add:function(i){e==0&&(t=YD())&&(HD(t,i),zD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$D=function(){var e=UD();return function(t,i){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},MI=function(){var e=$D(),t=function(i){var s=i.styles,c=i.dynamic;return e(s,c),null};return t},LD={left:0,top:0,right:0,gap:0},$g=function(e){return parseInt(e||"",10)||0},PD=function(e){var t=window.getComputedStyle(document.body),i=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[$g(i),$g(s),$g(c)]},FD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LD;var t=PD(e),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-i+t[2]-t[0])}},VD=MI(),Uo="data-scroll-locked",qD=function(e,t,i,s){var c=e.left,d=e.top,u=e.right,p=e.gap;return i===void 0&&(i="margin"),`
50
- .`.concat(SD,` {
51
- overflow: hidden `).concat(s,`;
52
- padding-right: `).concat(p,"px ").concat(s,`;
53
- }
54
- body[`).concat(Uo,`] {
55
- overflow: hidden `).concat(s,`;
56
- overscroll-behavior: contain;
57
- `).concat([t&&"position: relative ".concat(s,";"),i==="margin"&&`
58
- padding-left: `.concat(c,`px;
59
- padding-top: `).concat(d,`px;
60
- padding-right: `).concat(u,`px;
61
- margin-left:0;
62
- margin-top:0;
63
- margin-right: `).concat(p,"px ").concat(s,`;
64
- `),i==="padding"&&"padding-right: ".concat(p,"px ").concat(s,";")].filter(Boolean).join(""),`
65
- }
66
-
67
- .`).concat(Zu,` {
68
- right: `).concat(p,"px ").concat(s,`;
69
- }
70
-
71
- .`).concat(Xu,` {
72
- margin-right: `).concat(p,"px ").concat(s,`;
73
- }
74
-
75
- .`).concat(Zu," .").concat(Zu,` {
76
- right: 0 `).concat(s,`;
77
- }
78
-
79
- .`).concat(Xu," .").concat(Xu,` {
80
- margin-right: 0 `).concat(s,`;
81
- }
82
-
83
- body[`).concat(Uo,`] {
84
- `).concat(OD,": ").concat(p,`px;
85
- }
86
- `)},Ow=function(){var e=parseInt(document.body.getAttribute(Uo)||"0",10);return isFinite(e)?e:0},KD=function(){B.useEffect(function(){return document.body.setAttribute(Uo,(Ow()+1).toString()),function(){var e=Ow()-1;e<=0?document.body.removeAttribute(Uo):document.body.setAttribute(Uo,e.toString())}},[])},JD=function(e){var t=e.noRelative,i=e.noImportant,s=e.gapMode,c=s===void 0?"margin":s;KD();var d=B.useMemo(function(){return FD(c)},[c]);return B.createElement(VD,{styles:qD(d,!t,c,i?"":"!important")})},SA=!1;if(typeof window<"u")try{var Ou=Object.defineProperty({},"passive",{get:function(){return SA=!0,!0}});window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch{SA=!1}var Ro=SA?{passive:!1}:!1,ZD=function(e){return e.tagName==="TEXTAREA"},GI=function(e,t){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[t]!=="hidden"&&!(i.overflowY===i.overflowX&&!ZD(e)&&i[t]==="visible")},XD=function(e){return GI(e,"overflowY")},WD=function(e){return GI(e,"overflowX")},_w=function(e,t){var i=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var c=YI(e,s);if(c){var d=HI(e,s),u=d[1],p=d[2];if(u>p)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},eT=function(e){var t=e.scrollTop,i=e.scrollHeight,s=e.clientHeight;return[t,i,s]},tT=function(e){var t=e.scrollLeft,i=e.scrollWidth,s=e.clientWidth;return[t,i,s]},YI=function(e,t){return e==="v"?XD(t):WD(t)},HI=function(e,t){return e==="v"?eT(t):tT(t)},nT=function(e,t){return e==="h"&&t==="rtl"?-1:1},aT=function(e,t,i,s,c){var d=nT(e,window.getComputedStyle(t).direction),u=d*s,p=i.target,g=t.contains(p),m=!1,y=u>0,A=0,E=0;do{if(!p)break;var b=HI(e,p),w=b[0],j=b[1],I=b[2],Q=j-I-d*w;(w||Q)&&YI(e,p)&&(A+=Q,E+=w);var S=p.parentNode;p=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!g&&p!==document.body||g&&(t.contains(p)||t===p));return(y&&Math.abs(A)<1||!y&&Math.abs(E)<1)&&(m=!0),m},_u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Nw=function(e){return[e.deltaX,e.deltaY]},Rw=function(e){return e&&"current"in e?e.current:e},iT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rT=function(e){return`
87
- .block-interactivity-`.concat(e,` {pointer-events: none;}
88
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
89
- `)},sT=0,Do=[];function oT(e){var t=B.useRef([]),i=B.useRef([0,0]),s=B.useRef(),c=B.useState(sT++)[0],d=B.useState(MI)[0],u=B.useRef(e);B.useEffect(function(){u.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var j=CD([e.lockRef.current],(e.shards||[]).map(Rw),!0).filter(Boolean);return j.forEach(function(I){return I.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),j.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var p=B.useCallback(function(j,I){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!u.current.allowPinchZoom;var Q=_u(j),S=i.current,C="deltaX"in j?j.deltaX:S[0]-Q[0],_="deltaY"in j?j.deltaY:S[1]-Q[1],O,T=j.target,N=Math.abs(C)>Math.abs(_)?"h":"v";if("touches"in j&&N==="h"&&T.type==="range")return!1;var $=window.getSelection(),G=$&&$.anchorNode,U=G?G===T||G.contains(T):!1;if(U)return!1;var Z=_w(N,T);if(!Z)return!0;if(Z?O=N:(O=N==="v"?"h":"v",Z=_w(N,T)),!Z)return!1;if(!s.current&&"changedTouches"in j&&(C||_)&&(s.current=O),!O)return!0;var q=s.current||O;return aT(q,I,j,q==="h"?C:_)},[]),g=B.useCallback(function(j){var I=j;if(!(!Do.length||Do[Do.length-1]!==d)){var Q="deltaY"in I?Nw(I):_u(I),S=t.current.filter(function(O){return O.name===I.type&&(O.target===I.target||I.target===O.shadowParent)&&iT(O.delta,Q)})[0];if(S&&S.should){I.cancelable&&I.preventDefault();return}if(!S){var C=(u.current.shards||[]).map(Rw).filter(Boolean).filter(function(O){return O.contains(I.target)}),_=C.length>0?p(I,C[0]):!u.current.noIsolation;_&&I.cancelable&&I.preventDefault()}}},[]),m=B.useCallback(function(j,I,Q,S){var C={name:j,delta:I,target:Q,should:S,shadowParent:cT(Q)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(_){return _!==C})},1)},[]),y=B.useCallback(function(j){i.current=_u(j),s.current=void 0},[]),A=B.useCallback(function(j){m(j.type,Nw(j),j.target,p(j,e.lockRef.current))},[]),E=B.useCallback(function(j){m(j.type,_u(j),j.target,p(j,e.lockRef.current))},[]);B.useEffect(function(){return Do.push(d),e.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:E}),document.addEventListener("wheel",g,Ro),document.addEventListener("touchmove",g,Ro),document.addEventListener("touchstart",y,Ro),function(){Do=Do.filter(function(j){return j!==d}),document.removeEventListener("wheel",g,Ro),document.removeEventListener("touchmove",g,Ro),document.removeEventListener("touchstart",y,Ro)}},[]);var b=e.removeScrollBar,w=e.inert;return B.createElement(B.Fragment,null,w?B.createElement(d,{styles:rT(c)}):null,b?B.createElement(JD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lT=MD(kI,oT);var zI=B.forwardRef(function(e,t){return B.createElement(jf,ai({},e,{ref:t,sideCar:lT}))});zI.classNames=jf.classNames;var dT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},To=new WeakMap,Nu=new WeakMap,Ru={},Lg=0,UI=function(e){return e&&(e.host||UI(e.parentNode))},uT=function(e,t){return t.map(function(i){if(e.contains(i))return i;var s=UI(i);return s&&e.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},fT=function(e,t,i,s){var c=uT(t,Array.isArray(e)?e:[e]);Ru[i]||(Ru[i]=new WeakMap);var d=Ru[i],u=[],p=new Set,g=new Set(c),m=function(A){!A||p.has(A)||(p.add(A),m(A.parentNode))};c.forEach(m);var y=function(A){!A||g.has(A)||Array.prototype.forEach.call(A.children,function(E){if(p.has(E))y(E);else try{var b=E.getAttribute(s),w=b!==null&&b!=="false",j=(To.get(E)||0)+1,I=(d.get(E)||0)+1;To.set(E,j),d.set(E,I),u.push(E),j===1&&w&&Nu.set(E,!0),I===1&&E.setAttribute(i,"true"),w||E.setAttribute(s,"true")}catch(Q){console.error("aria-hidden: cannot operate on ",E,Q)}})};return y(t),p.clear(),Lg++,function(){u.forEach(function(A){var E=To.get(A)-1,b=d.get(A)-1;To.set(A,E),d.set(A,b),E||(Nu.has(A)||A.removeAttribute(s),Nu.delete(A)),b||A.removeAttribute(i)}),Lg--,Lg||(To=new WeakMap,To=new WeakMap,Nu=new WeakMap,Ru={})}},pT=function(e,t,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),c=dT(e);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live], script"))),fT(s,c,i,"aria-hidden")):function(){return null}},hT=Object.defineProperty,Hn=(e,t)=>hT(e,"name",{value:t,configurable:!0}),_m="Dialog",[$I,LI]=Ui(_m),[gT,ka]=$I(_m),AT=Hn(e=>{const{__scopeDialog:t,children:i,open:s,defaultOpen:c,onOpenChange:d,modal:u=!0}=e,p=B.useRef(null),g=B.useRef(null),{nodes:m,registry:y}=jI(),[A,E]=Fl({prop:s,defaultProp:c??!1,onChange:d,caller:_m}),[b,w]=B.useState(0),[j,I]=B.useState(0);return r.jsx(gT,{scope:t,triggerRef:p,contentRef:g,contentId:Os(),titleId:Os(),descriptionId:Os(),titlePresent:b>0,descriptionPresent:j>0,setTitleCount:w,setDescriptionCount:I,open:A,onOpenChange:E,onOpenToggle:B.useCallback(()=>E(Q=>!Q),[E]),modal:u,branchNodes:m,branchRegistry:y,children:i})},"Dialog"),mT="DialogTrigger",yT=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,...c}=t,d=ka(mT,s),u=Dt(i,d.triggerRef);return r.jsx(nn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":If(d.open),...c,ref:u,onClick:pt(t.onClick,d.onOpenToggle)})},"DialogTrigger")),PI="DialogPortal",[ET,FI]=$I(PI,{forceMount:void 0}),vT=Hn(e=>{const{__scopeDialog:t,forceMount:i,children:s,container:c}=e,d=ka(PI,t);return r.jsx(ET,{scope:t,forceMount:i,children:B.Children.map(s,u=>r.jsx(dc,{present:i||d.open,children:r.jsx(RI,{asChild:!0,container:c,children:u})}))})},"DialogPortal"),OA="DialogOverlay",BT=B.forwardRef(Hn(function(t,i){const s=FI(OA,t.__scopeDialog),{forceMount:c=s.forceMount,...d}=t,u=ka(OA,t.__scopeDialog);return u.modal?r.jsx(dc,{present:c||u.open,children:r.jsx(wT,{...d,ref:i})}):null},"DialogOverlay")),bT=Ns("DialogOverlay.RemoveScroll"),wT=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,...c}=t,d=ka(OA,s),u=vI(),p=Dt(i,u);return r.jsx(zI,{as:bT,allowPinchZoom:!0,shards:B.useMemo(()=>[d.contentRef,...d.branchNodes.map(g=>({current:g}))],[d.contentRef,d.branchNodes]),children:r.jsx(nn.div,{"data-state":If(d.open),...c,ref:p,style:{pointerEvents:"auto",...c.style}})})},"DialogOverlayImpl")),jl="DialogContent",xT=B.forwardRef(Hn(function(t,i){const s=FI(jl,t.__scopeDialog),{forceMount:c=s.forceMount,...d}=t,u=ka(jl,t.__scopeDialog);return r.jsx(dc,{present:c||u.open,children:u.modal?r.jsx(jT,{...d,ref:i}):r.jsx(IT,{...d,ref:i})})},"DialogContent")),jT=B.forwardRef(Hn(function(t,i){const s=ka(jl,t.__scopeDialog),c=B.useRef(null),d=Dt(i,s.contentRef,c);return B.useEffect(()=>{const u=c.current;if(u)return pT(u)},[]),r.jsx(VI,{...t,ref:d,trapFocus:s.open,disableOutsidePointerEvents:s.open,onCloseAutoFocus:pt(t.onCloseAutoFocus,u=>{var p;u.preventDefault(),(p=s.triggerRef.current)==null||p.focus()}),onPointerDownOutside:pt(t.onPointerDownOutside,u=>{const p=u.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0;(p.button===2||g)&&u.preventDefault()}),onFocusOutside:pt(t.onFocusOutside,u=>u.preventDefault())})},"DialogContentModal")),IT=B.forwardRef(Hn(function(t,i){const s=ka(jl,t.__scopeDialog),c=B.useRef(!1),d=B.useRef(!1);return r.jsx(VI,{...t,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var p,g;(p=t.onCloseAutoFocus)==null||p.call(t,u),u.defaultPrevented||(c.current||(g=s.triggerRef.current)==null||g.focus(),u.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:u=>{var m,y;(m=t.onInteractOutside)==null||m.call(t,u),u.defaultPrevented||(c.current=!0,u.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const p=u.target;((y=s.triggerRef.current)==null?void 0:y.contains(p))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&d.current&&u.preventDefault()}})},"DialogContentNonModal")),VI=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:u,"aria-describedby":p,children:g,...m}=t,y=ka(jl,s);return Om(),r.jsx(xI,{registry:y.branchRegistry,children:r.jsx(wD,{asChild:!0,loop:!0,trapped:c,branches:y.branchNodes,onMountAutoFocus:d,onUnmountAutoFocus:u,children:r.jsx(EI,{role:"dialog",id:y.contentId,"aria-labelledby":y.titlePresent?y.titleId:void 0,"aria-describedby":y.descriptionPresent?KI(p,y.descriptionId):p,"data-state":If(y.open),...m,ref:i,deferPointerDownOutside:!0,onDismiss:()=>y.onOpenChange(!1),children:g})})})},"DialogContentImpl")),QT=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,...c}=t,d=ka("DialogTitle",s),{setTitleCount:u}=d;return mn(()=>(u(p=>p+1),()=>u(p=>p-1)),[u]),r.jsx(nn.h2,{id:d.titleId,...c,ref:i})},"DialogTitle")),CT=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,...c}=t,d=ka("DialogDescription",s),{setDescriptionCount:u}=d;return mn(()=>(u(p=>p+1),()=>u(p=>p-1)),[u]),r.jsx(nn.p,{id:d.descriptionId,...c,ref:i})},"DialogDescription")),ST="DialogClose",qI=B.forwardRef(Hn(function(t,i){const{__scopeDialog:s,...c}=t,d=ka(ST,s);return r.jsx(nn.button,{type:"button",...c,ref:i,onClick:pt(t.onClick,()=>d.onOpenChange(!1))})},"DialogClose"));function KI(...e){const t=new Set;for(const i of e)if(typeof i=="string")for(const s of String(i).trim().split(/\s+/))s&&t.add(s);return t.size>0?Array.from(t).join(" "):void 0}Hn(KI,"concatAriaDescribedby");function If(e){return e?"open":"closed"}Hn(If,"getState");var OT=Object.defineProperty,$i=(e,t)=>OT(e,"name",{value:t,configurable:!0}),_T="AlertDialog",[NT,A8]=Ui(_T,[LI]),Li=LI(),RT=$i(e=>{const{__scopeAlertDialog:t,...i}=e,s=Li(t);return r.jsx(AT,{...s,...i,modal:!0})},"AlertDialog");B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,d=Li(s);return r.jsx(yT,{...d,...c,ref:i})},"AlertDialogTrigger"));var DT=$i(e=>{const{__scopeAlertDialog:t,...i}=e,s=Li(t);return r.jsx(vT,{...s,...i})},"AlertDialogPortal"),TT=B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,d=Li(s);return r.jsx(BT,{...d,...c,ref:i})},"AlertDialogOverlay")),kT="AlertDialogContent",[MT,GT]=NT(kT),YT=B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,children:c,...d}=t,u=Li(s),p=B.useRef(null),g=Dt(i,p),m=B.useRef(null);return r.jsx(MT,{scope:s,cancelRef:m,children:r.jsx(xT,{role:"alertdialog",...u,...d,ref:g,onOpenAutoFocus:pt(d.onOpenAutoFocus,y=>{var A;y.preventDefault(),(A=m.current)==null||A.focus({preventScroll:!0})}),onPointerDownOutside:y=>y.preventDefault(),onInteractOutside:y=>y.preventDefault(),children:c})})},"AlertDialogContent")),HT=B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,d=Li(s);return r.jsx(QT,{...d,...c,ref:i})},"AlertDialogTitle")),zT=B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,d=Li(s);return r.jsx(CT,{...d,...c,ref:i})},"AlertDialogDescription"));B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,d=Li(s);return r.jsx(qI,{...d,...c,ref:i})},"AlertDialogAction"));var UT="AlertDialogCancel",$T=B.forwardRef($i(function(t,i){const{__scopeAlertDialog:s,...c}=t,{cancelRef:d}=GT(UT,s),u=Li(s),p=Dt(i,d);return r.jsx(qI,{...u,...c,ref:p})},"AlertDialogCancel")),LT=Object.defineProperty,PT=(e,t)=>LT(e,"name",{value:t,configurable:!0});function JI(e){const[t,i]=B.useState(void 0);return mn(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let s=0;const c=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const u=d[0];window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{let p,g;if("borderBoxSize"in u){const m=u.borderBoxSize,y=Array.isArray(m)?m[0]:m;p=y.inlineSize,g=y.blockSize}else p=e.offsetWidth,g=e.offsetHeight;i({width:p,height:g})})});return c.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(s),c.unobserve(e)}}else i(void 0)},[e]),t}PT(JI,"useSize");const FT=["top","right","bottom","left"],Tr=Math.min,ki=Math.max,of=Math.round,Du=Math.floor,Mi=e=>({x:e,y:e}),VT={left:"right",right:"left",bottom:"top",top:"bottom"};function ZI(e,t,i){return ki(e,Tr(t,i))}function Hi(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function uc(e){return e.split("-")[1]}function Nm(e){return e==="x"?"y":"x"}function Rm(e){return e==="y"?"height":"width"}function ii(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Dm(e){return Nm(ii(e))}function qT(e,t,i){i===void 0&&(i=!1);const s=uc(e),c=Dm(e),d=Rm(c);let u=c==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[d]>t.floating[d]&&(u=cf(u)),[u,cf(u)]}function KT(e){const t=cf(e);return[_A(e),t,_A(t)]}function _A(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dw=["left","right"],Tw=["right","left"],JT=["top","bottom"],ZT=["bottom","top"];function XT(e,t,i){switch(e){case"top":case"bottom":return i?t?Tw:Dw:t?Dw:Tw;case"left":case"right":return t?JT:ZT;default:return[]}}function WT(e,t,i,s){const c=uc(e);let d=XT(kr(e),i==="start",s);return c&&(d=d.map(u=>u+"-"+c),t&&(d=d.concat(d.map(_A)))),d}function cf(e){const t=kr(e);return VT[t]+e.slice(t.length)}function e2(e){var t,i,s,c;return{top:(t=e.top)!=null?t:0,right:(i=e.right)!=null?i:0,bottom:(s=e.bottom)!=null?s:0,left:(c=e.left)!=null?c:0}}function XI(e){return typeof e!="number"?e2(e):{top:e,right:e,bottom:e,left:e}}function lf(e){const{x:t,y:i,width:s,height:c}=e;return{width:s,height:c,top:i,left:t,right:t+s,bottom:i+c,x:t,y:i}}function kw(e,t,i){let{reference:s,floating:c}=e;const d=ii(t),u=Dm(t),p=Rm(u),g=kr(t),m=d==="y",y=s.x+s.width/2-c.width/2,A=s.y+s.height/2-c.height/2,E=s[p]/2-c[p]/2;let b;switch(g){case"top":b={x:y,y:s.y-c.height};break;case"bottom":b={x:y,y:s.y+s.height};break;case"right":b={x:s.x+s.width,y:A};break;case"left":b={x:s.x-c.width,y:A};break;default:b={x:s.x,y:s.y}}const w=uc(t);return w&&(b[u]+=E*(w==="end"?1:-1)*(i&&m?-1:1)),b}async function t2(e,t){var i;t===void 0&&(t={});const{x:s,y:c,platform:d,rects:u,elements:p,strategy:g}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:A="floating",altBoundary:E=!1,padding:b=0}=Hi(t,e),w=XI(b),I=p[E?A==="floating"?"reference":"floating":A],Q=lf(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(I)))==null||i?I:I.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:m,rootBoundary:y,strategy:g})),S=A==="floating"?{x:s,y:c,width:u.floating.width,height:u.floating.height}:u.reference,C=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),_=await(d.isElement==null?void 0:d.isElement(C))&&await(d.getScale==null?void 0:d.getScale(C))||{x:1,y:1},O=lf(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:S,offsetParent:C,strategy:g}):S);return{top:(Q.top-O.top+w.top)/_.y,bottom:(O.bottom-Q.bottom+w.bottom)/_.y,left:(Q.left-O.left+w.left)/_.x,right:(O.right-Q.right+w.right)/_.x}}const n2=50,a2=async(e,t,i)=>{const{placement:s="bottom",strategy:c="absolute",middleware:d=[],platform:u}=i,p=u.detectOverflow?u:{...u,detectOverflow:t2},g=await(u.isRTL==null?void 0:u.isRTL(t));let m=await u.getElementRects({reference:e,floating:t,strategy:c}),{x:y,y:A}=kw(m,s,g),E=s,b=0;const w={};for(let j=0;j<d.length;j++){const I=d[j];if(!I)continue;const{name:Q,fn:S}=I,{x:C,y:_,data:O,reset:T}=await S({x:y,y:A,initialPlacement:s,placement:E,strategy:c,middlewareData:w,rects:m,platform:p,elements:{reference:e,floating:t}});y=C??y,A=_??A,w[Q]={...w[Q],...O},T&&b<n2&&(b++,typeof T=="object"&&(T.placement&&(E=T.placement),T.rects&&(m=T.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:c}):T.rects),{x:y,y:A}=kw(m,E,g)),j=-1)}return{x:y,y:A,placement:E,strategy:c,middlewareData:w}},i2=e=>({name:"arrow",options:e,async fn(t){const{x:i,y:s,placement:c,rects:d,platform:u,elements:p,middlewareData:g}=t,{element:m,padding:y=0}=Hi(e,t)||{};if(m==null)return{};const A=XI(y),E={x:i,y:s},b=Dm(c),w=Rm(b),j=await u.getDimensions(m),I=b==="y",Q=I?"top":"left",S=I?"bottom":"right",C=I?"clientHeight":"clientWidth",_=d.reference[w]+d.reference[b]-E[b]-d.floating[w],O=E[b]-d.reference[b],T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let N=T?T[C]:0;(!N||!await(u.isElement==null?void 0:u.isElement(T)))&&(N=p.floating[C]||d.floating[w]);const $=_/2-O/2,G=N/2-j[w]/2-1,U=Tr(A[Q],G),Z=Tr(A[S],G),q=N-j[w]-Z,de=N/2-j[w]/2+$,re=ZI(U,de,q),pe=!g.arrow&&uc(c)!=null&&de!==re&&d.reference[w]/2-(de<U?U:Z)-j[w]/2<0,K=pe?de<U?de-U:de-q:0;return{[b]:E[b]+K,data:{[b]:re,centerOffset:de-re-K,...pe&&{alignmentOffset:K}},reset:pe}}}),r2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i,s;const{placement:c,middlewareData:d,rects:u,initialPlacement:p,platform:g,elements:m}=t,{mainAxis:y=!0,crossAxis:A=!0,fallbackPlacements:E,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:j=!0,...I}=Hi(e,t);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const Q=kr(c),S=ii(p),C=kr(p)===p,_=await(g.isRTL==null?void 0:g.isRTL(m.floating)),O=E||(C||!j?[cf(p)]:KT(p)),T=w!=="none";!E&&T&&O.push(...WT(p,j,w,_));const N=[p,...O],$=await g.detectOverflow(t,I),G=[];let U=((s=d.flip)==null?void 0:s.overflows)||[];if(y&&G.push($[Q]),A){const re=qT(c,u,_);G.push($[re[0]],$[re[1]])}if(U=[...U,{placement:c,overflows:G}],!G.every(re=>re<=0)){var Z,q;const re=(((Z=d.flip)==null?void 0:Z.index)||0)+1,pe=N[re];if(pe&&(!(A==="alignment"?S!==ii(pe):!1)||U.every(W=>ii(W.placement)===S?W.overflows[0]>0:!0)))return{data:{index:re,overflows:U},reset:{placement:pe}};let K=(q=U.filter(ie=>ie.overflows[0]<=0).sort((ie,W)=>ie.overflows[1]-W.overflows[1])[0])==null?void 0:q.placement;if(!K)switch(b){case"bestFit":{var de;const ie=(de=U.filter(W=>{if(T){const le=ii(W.placement);return le===S||le==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(le=>le>0).reduce((le,oe)=>le+oe,0)]).sort((W,le)=>W[1]-le[1])[0])==null?void 0:de[0];ie&&(K=ie);break}case"initialPlacement":K=p;break}if(c!==K)return{reset:{placement:K}}}return{}}}};function Mw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gw(e){return FT.some(t=>e[t]>=0)}const s2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:i,platform:s}=t,{strategy:c="referenceHidden",...d}=Hi(e,t);switch(c){case"referenceHidden":{const u=await s.detectOverflow(t,{...d,elementContext:"reference"}),p=Mw(u,i.reference);return{data:{referenceHiddenOffsets:p,referenceHidden:Gw(p)}}}case"escaped":{const u=await s.detectOverflow(t,{...d,altBoundary:!0}),p=Mw(u,i.floating);return{data:{escapedOffsets:p,escaped:Gw(p)}}}default:return{}}}}},WI=new Set(["left","top"]);async function o2(e,t){const{placement:i,platform:s,elements:c}=e,d=await(s.isRTL==null?void 0:s.isRTL(c.floating)),u=kr(i),p=uc(i),g=ii(i)==="y",m=WI.has(u)?-1:1,y=d&&g?-1:1,A=Hi(t,e);let{mainAxis:E,crossAxis:b,alignmentAxis:w}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return p&&typeof w=="number"&&(b=p==="end"?w*-1:w),g?{x:b*y,y:E*m}:{x:E*m,y:b*y}}const c2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var i,s;const{x:c,y:d,placement:u,middlewareData:p}=t,g=await o2(t,e);return u===((i=p.offset)==null?void 0:i.placement)&&(s=p.arrow)!=null&&s.alignmentOffset?{}:{x:c+g.x,y:d+g.y,data:{...g,placement:u}}}}},l2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:s,placement:c,platform:d}=t,{mainAxis:u=!0,crossAxis:p=!1,limiter:g={fn:S=>{let{x:C,y:_}=S;return{x:C,y:_}}},...m}=Hi(e,t),y={x:i,y:s},A=await d.detectOverflow(t,m),E=ii(c),b=Nm(E);let w=y[b],j=y[E];const I=(S,C)=>ZI(C+A[S==="y"?"top":"left"],C,C-A[S==="y"?"bottom":"right"]);u&&(w=I(b,w)),p&&(j=I(E,j));const Q=g.fn({...t,[b]:w,[E]:j});return{...Q,data:{x:Q.x-i,y:Q.y-s,enabled:{[b]:u,[E]:p}}}}}},d2=function(e){return e===void 0&&(e={}),{options:e,fn(t){var i,s;const{x:c,y:d,placement:u,rects:p,middlewareData:g}=t,{offset:m=0,mainAxis:y=!0,crossAxis:A=!0}=Hi(e,t),E={x:c,y:d},b=ii(u),w=Nm(b);let j=E[w],I=E[b];const Q=Hi(m,t),S=typeof Q=="number"?{mainAxis:Q,crossAxis:0}:{mainAxis:(i=Q.mainAxis)!=null?i:0,crossAxis:(s=Q.crossAxis)!=null?s:0};if(y){const O=w==="y"?"height":"width",T=p.reference[w]-p.floating[O]+S.mainAxis,N=p.reference[w]+p.reference[O]-S.mainAxis;j<T?j=T:j>N&&(j=N)}if(A){var C,_;const O=w==="y"?"width":"height",T=WI.has(kr(u)),N=p.reference[b]-p.floating[O]+(T&&((C=g.offset)==null?void 0:C[b])||0)+(T?0:S.crossAxis),$=p.reference[b]+p.reference[O]+(T?0:((_=g.offset)==null?void 0:_[b])||0)-(T?S.crossAxis:0);I<N?I=N:I>$&&(I=$)}return{[w]:j,[b]:I}}}},u2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:i,rects:s,platform:c,elements:d}=t,{apply:u=()=>{},...p}=Hi(e,t),g=await c.detectOverflow(t,p),m=kr(i),y=uc(i),A=ii(i)==="y",{width:E,height:b}=s.floating;let w,j;m==="top"||m==="bottom"?(w=m,j=y===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(j=m,w=y==="end"?"top":"bottom");const I=b-g.top-g.bottom,Q=E-g.left-g.right,S=Tr(b-g[w],I),C=Tr(E-g[j],Q),_=t.middlewareData.shift,O=!_;let T=S,N=C;_!=null&&_.enabled.x&&(N=Q),_!=null&&_.enabled.y&&(T=I),O&&!y&&(A?N=E-2*ki(g.left,g.right):T=b-2*ki(g.top,g.bottom)),await u({...t,availableWidth:N,availableHeight:T});const $=await c.getDimensions(d.floating);return E!==$.width||b!==$.height?{reset:{rects:!0}}:{}}}};function Qf(){return typeof window<"u"}function fc(e){return eQ(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pi(e){var t;return(t=(eQ(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eQ(e){return Qf()?e instanceof Node||e instanceof Gn(e).Node:!1}function oi(e){return Qf()?e instanceof Element||e instanceof Gn(e).Element:!1}function Yr(e){return Qf()?e instanceof HTMLElement||e instanceof Gn(e).HTMLElement:!1}function Yw(e){return!Qf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot}function Cf(e){const{overflow:t,overflowX:i,overflowY:s,display:c}=ci(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+i)&&c!=="inline"&&c!=="contents"}function f2(e){return/^(table|td|th)$/.test(fc(e))}function Sf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const p2=/transform|translate|scale|rotate|perspective|filter/,h2=/paint|layout|strict|content/,ps=e=>!!e&&e!=="none";let Pg;function Tm(e){const t=oi(e)?ci(e):e;return ps(t.transform)||ps(t.translate)||ps(t.scale)||ps(t.rotate)||ps(t.perspective)||!km()&&(ps(t.backdropFilter)||ps(t.filter))||p2.test(t.willChange||"")||h2.test(t.contain||"")}function g2(e){let t=Rs(e);for(;Yr(t)&&!Il(t);){if(Tm(t))return t;if(Sf(t))return null;t=Rs(t)}return null}function km(){return Pg==null&&(Pg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pg}function Il(e){return/^(html|body|#document)$/.test(fc(e))}function ci(e){return Gn(e).getComputedStyle(e)}function Of(e){return oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rs(e){if(fc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yw(e)&&e.host||Pi(e);return Yw(t)?t.host:t}function tQ(e){const t=Rs(e);return Il(t)?(e.ownerDocument||e).body:Yr(t)&&Cf(t)?t:tQ(t)}function Ql(e,t,i){var s;t===void 0&&(t=[]),i===void 0&&(i=!0);const c=tQ(e),d=c===((s=e.ownerDocument)==null?void 0:s.body),u=Gn(c);if(d){const p=NA(u);return t.concat(u,u.visualViewport||[],Cf(c)?c:[],p&&i?Ql(p):[])}else return t.concat(c,Ql(c,[],i))}function NA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function nQ(e){const t=ci(e);let i=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const c=Yr(e),d=c?e.offsetWidth:i,u=c?e.offsetHeight:s,p=of(i)!==d||of(s)!==u;return p&&(i=d,s=u),{width:i,height:s,$:p}}function Mm(e){return oi(e)?e:e.contextElement}function $o(e){const t=Mm(e);if(!Yr(t))return Mi(1);const i=t.getBoundingClientRect(),{width:s,height:c,$:d}=nQ(t);let u=(d?of(i.width):i.width)/s,p=(d?of(i.height):i.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!p||!Number.isFinite(p))&&(p=1),{x:u,y:p}}const A2=Mi(0);function aQ(e){const t=Gn(e);return!km()||!t.visualViewport?A2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m2(e,t,i){return t===void 0&&(t=!1),!!i&&t&&i===Gn(e)}function Ds(e,t,i,s){t===void 0&&(t=!1),i===void 0&&(i=!1);const c=e.getBoundingClientRect(),d=Mm(e);let u=Mi(1);t&&(s?oi(s)&&(u=$o(s)):u=$o(e));const p=m2(d,i,s)?aQ(d):Mi(0);let g=(c.left+p.x)/u.x,m=(c.top+p.y)/u.y,y=c.width/u.x,A=c.height/u.y;if(d&&s){const E=Gn(d),b=oi(s)?Gn(s):s;let w=E,j=NA(w);for(;j&&b!==w;){const I=$o(j),Q=j.getBoundingClientRect(),S=ci(j),C=Q.left+(j.clientLeft+parseFloat(S.paddingLeft))*I.x,_=Q.top+(j.clientTop+parseFloat(S.paddingTop))*I.y;g*=I.x,m*=I.y,y*=I.x,A*=I.y,g+=C,m+=_,w=Gn(j),j=NA(w)}}return lf({width:y,height:A,x:g,y:m})}function _f(e,t){const i=Of(e).scrollLeft;return t?t.left+i:Ds(Pi(e)).left+i}function iQ(e,t){const i=e.getBoundingClientRect(),s=i.left+t.scrollLeft-_f(e,i),c=i.top+t.scrollTop;return{x:s,y:c}}function y2(e){let{elements:t,rect:i,offsetParent:s,strategy:c}=e;const d=c==="fixed",u=Pi(s),p=t?Sf(t.floating):!1;if(s===u||p&&d)return i;let g={scrollLeft:0,scrollTop:0},m=Mi(1);const y=Mi(0),A=Yr(s);if((A||!d)&&((fc(s)!=="body"||Cf(u))&&(g=Of(s)),A)){const b=Ds(s);m=$o(s),y.x=b.x+s.clientLeft,y.y=b.y+s.clientTop}const E=u&&!A&&!d?iQ(u,g):Mi(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-g.scrollLeft*m.x+y.x+E.x,y:i.y*m.y-g.scrollTop*m.y+y.y+E.y}}function E2(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function v2(e){const t=Of(e),i=e.ownerDocument.body,s=ki(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),c=ki(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let d=-t.scrollLeft+_f(e);const u=-t.scrollTop;return ci(i).direction==="rtl"&&(d+=ki(e.clientWidth,i.clientWidth)-s),{width:s,height:c,x:d,y:u}}const B2=25;function b2(e,t,i){i===void 0&&(i="viewport");const s=i==="layoutViewport",c=Gn(e),d=Pi(e),u=c.visualViewport;let p=d.clientWidth,g=d.clientHeight,m=0,y=0;if(u){const E=!km()||t==="fixed";s?E||(m=-u.offsetLeft,y=-u.offsetTop):(p=u.width,g=u.height,E&&(m=u.offsetLeft,y=u.offsetTop))}if(_f(d)<=0){const E=d.ownerDocument,b=E.body,w=getComputedStyle(b),j=E.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,I=Math.abs(d.clientWidth-b.clientWidth-j),Q=getComputedStyle(d).scrollbarGutter==="stable both-edges"?I/2:I;Q<=B2&&(p-=Q)}return{width:p,height:g,x:m,y}}function w2(e,t){const i=Ds(e,!0,t==="fixed"),s=i.top+e.clientTop,c=i.left+e.clientLeft,d=$o(e),u=e.clientWidth*d.x,p=e.clientHeight*d.y,g=c*d.x,m=s*d.y;return{width:u,height:p,x:g,y:m}}function Hw(e,t,i){let s;if(t==="viewport"||t==="layoutViewport")s=b2(e,i,t);else if(t==="document")s=v2(Pi(e));else if(oi(t))s=w2(t,i);else{const c=aQ(e);s={x:t.x-c.x,y:t.y-c.y,width:t.width,height:t.height}}return lf(s)}function x2(e,t){const i=t.get(e);if(i)return i;let s=Ql(e,[],!1).filter(p=>oi(p)&&fc(p)!=="body"),c=null;const d=ci(e).position==="fixed";let u=d?Rs(e):e;for(;oi(u)&&!Il(u);){const p=ci(u),g=Tm(u),m=c?c.position:d?"fixed":"";!g&&(m==="fixed"||m==="absolute"&&p.position==="static")?s=s.filter(A=>A!==u):c=p,u=Rs(u)}return t.set(e,s),s}function j2(e){let{element:t,boundary:i,rootBoundary:s,strategy:c}=e;const u=[...i==="clippingAncestors"?Sf(t)?[]:x2(t,this._c):[].concat(i),s],p=Hw(t,u[0],c);let g=p.top,m=p.right,y=p.bottom,A=p.left;for(let E=1;E<u.length;E++){const b=Hw(t,u[E],c);g=ki(b.top,g),m=Tr(b.right,m),y=Tr(b.bottom,y),A=ki(b.left,A)}return{width:m-A,height:y-g,x:A,y:g}}function I2(e){const{width:t,height:i}=nQ(e);return{width:t,height:i}}function Q2(e,t,i){const s=Yr(t),c=Pi(t),d=i==="fixed",u=Ds(e,!0,d,t);let p={scrollLeft:0,scrollTop:0};const g=Mi(0);if((s||!d)&&((fc(t)!=="body"||Cf(c))&&(p=Of(t)),s)){const E=Ds(t,!0,d,t);g.x=E.x+t.clientLeft,g.y=E.y+t.clientTop}!s&&c&&(g.x=_f(c));const m=c&&!s&&!d?iQ(c,p):Mi(0),y=u.left+p.scrollLeft-g.x-m.x,A=u.top+p.scrollTop-g.y-m.y;return{x:y,y:A,width:u.width,height:u.height}}function Fg(e){return ci(e).position==="static"}function zw(e,t){if(!Yr(e)||ci(e).position==="fixed")return null;if(t)return t(e);let i=e.offsetParent;return Pi(e)===i&&(i=i.ownerDocument.body),i}function rQ(e,t){const i=Gn(e);if(Sf(e))return i;if(!Yr(e)){let c=Rs(e);for(;c&&!Il(c);){if(oi(c)&&!Fg(c))return c;c=Rs(c)}return i}let s=zw(e,t);for(;s&&f2(s)&&Fg(s);)s=zw(s,t);return s&&Il(s)&&Fg(s)&&!Tm(s)?i:s||g2(e)||i}const C2=async function(e){const t=this.getOffsetParent||rQ,i=this.getDimensions,s=await i(e.floating);return{reference:Q2(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function S2(e){return ci(e).direction==="rtl"}const O2={convertOffsetParentRelativeRectToViewportRelativeRect:y2,getDocumentElement:Pi,getClippingRect:j2,getOffsetParent:rQ,getElementRects:C2,getClientRects:E2,getDimensions:I2,getScale:$o,isElement:oi,isRTL:S2};function sQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _2(e,t,i){let s=null,c;const d=Pi(e);function u(){var y;clearTimeout(c),(y=s)==null||y.disconnect(),s=null}function p(y,A){y===void 0&&(y=!1),A===void 0&&(A=1),u();const E=e.getBoundingClientRect(),{left:b,top:w,width:j,height:I}=E;if(y||t(),!j||!I)return;const Q=Du(w),S=Du(d.clientWidth-(b+j)),C=Du(d.clientHeight-(w+I)),_=Du(b),T={rootMargin:-Q+"px "+-S+"px "+-C+"px "+-_+"px",threshold:ki(0,Tr(1,A))||1};let N=!0;function $(G){const U=G[0].intersectionRatio;if(!sQ(E,e.getBoundingClientRect()))return p();if(U!==A){if(!N)return p();U?p(!1,U):c=setTimeout(()=>{p(!1,1e-7)},1e3)}N=!1}try{s=new IntersectionObserver($,{...T,root:d.ownerDocument})}catch{s=new IntersectionObserver($,T)}s.observe(e)}const g=Gn(e),m=()=>p(i);return g.addEventListener("resize",m),p(!0),()=>{g.removeEventListener("resize",m),u()}}function N2(e,t,i,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:g=!1}=s,m=Mm(e),y=c||d?[...m?Ql(m):[],...t?Ql(t):[]]:[];y.forEach(Q=>{c&&Q.addEventListener("scroll",i),d&&Q.addEventListener("resize",i)});const A=m&&p?_2(m,i,d):null;let E=-1,b=null;u&&(b=new ResizeObserver(Q=>{let[S]=Q;S&&S.target===m&&b&&t&&(b.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var C;(C=b)==null||C.observe(t)})),i()}),m&&!g&&b.observe(m),t&&b.observe(t));let w,j=g?Ds(e):null;g&&I();function I(){const Q=Ds(e);j&&!sQ(j,Q)&&i(),j=Q,w=requestAnimationFrame(I)}return i(),()=>{var Q;y.forEach(S=>{c&&S.removeEventListener("scroll",i),d&&S.removeEventListener("resize",i)}),A==null||A(),(Q=b)==null||Q.disconnect(),b=null,g&&cancelAnimationFrame(w)}}const R2=c2,D2=l2,T2=r2,k2=u2,M2=s2,Uw=i2,G2=d2,Y2=(e,t,i)=>{const s=new Map,c=i??{},d={...O2,...c.platform,_c:s};return a2(e,t,{...c,platform:d})};var H2=typeof document<"u",z2=function(){},Wu=H2?B.useLayoutEffect:z2;function df(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let i,s,c;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==t.length)return!1;for(s=i;s--!==0;)if(!df(e[s],t[s]))return!1;return!0}if(c=Object.keys(e),i=c.length,i!==Object.keys(t).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(t,c[s]))return!1;for(s=i;s--!==0;){const d=c[s];if(!(d==="_owner"&&e.$$typeof)&&!df(e[d],t[d]))return!1}return!0}return e!==e&&t!==t}function oQ(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $w(e,t){const i=oQ(e);return Math.round(t*i)/i}function Vg(e){const t=B.useRef(e);return Wu(()=>{t.current=e}),t}function U2(e){e===void 0&&(e={});const{placement:t="bottom",strategy:i="absolute",middleware:s=[],platform:c,elements:{reference:d,floating:u}={},transform:p=!0,whileElementsMounted:g,open:m}=e,[y,A]=B.useState({x:0,y:0,strategy:i,placement:t,middlewareData:{},isPositioned:!1}),[E,b]=B.useState(s);df(E,s)||b(s);const[w,j]=B.useState(null),[I,Q]=B.useState(null),S=B.useCallback(W=>{W!==T.current&&(T.current=W,j(W))},[]),C=B.useCallback(W=>{W!==N.current&&(N.current=W,Q(W))},[]),_=d||w,O=u||I,T=B.useRef(null),N=B.useRef(null),$=B.useRef(y),G=g!=null,U=Vg(g),Z=Vg(c),q=Vg(m),de=B.useCallback(()=>{if(!T.current||!N.current)return;const W={placement:t,strategy:i,middleware:E};Z.current&&(W.platform=Z.current),Y2(T.current,N.current,W).then(le=>{const oe={...le,isPositioned:q.current!==!1};re.current&&!df($.current,oe)&&($.current=oe,bm.flushSync(()=>{A(oe)}))})},[E,t,i,Z,q]);Wu(()=>{m===!1&&$.current.isPositioned&&($.current.isPositioned=!1,A(W=>({...W,isPositioned:!1})))},[m]);const re=B.useRef(!1);Wu(()=>(re.current=!0,()=>{re.current=!1}),[]),Wu(()=>{if(_&&(T.current=_),O&&(N.current=O),_&&O){if(U.current)return U.current(_,O,de);de()}},[_,O,de,U,G]);const pe=B.useMemo(()=>({reference:T,floating:N,setReference:S,setFloating:C}),[S,C]),K=B.useMemo(()=>({reference:_,floating:O}),[_,O]),ie=B.useMemo(()=>{const W={position:i,left:0,top:0};if(!K.floating)return W;const le=$w(K.floating,y.x),oe=$w(K.floating,y.y);return p?{...W,transform:"translate("+le+"px, "+oe+"px)",...oQ(K.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:le,top:oe}},[i,p,K.floating,y.x,y.y]);return B.useMemo(()=>({...y,update:de,refs:pe,elements:K,floatingStyles:ie}),[y,de,pe,K,ie])}const $2=e=>{function t(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:s,padding:c}=typeof e=="function"?e(i):e;return s&&t(s)?s.current!=null?Uw({element:s.current,padding:c}).fn(i):{}:s?Uw({element:s,padding:c}).fn(i):{}}}},L2=(e,t)=>{const i=R2(e);return{name:i.name,fn:i.fn,options:[e,t]}},P2=(e,t)=>{const i=D2(e);return{name:i.name,fn:i.fn,options:[e,t]}},F2=(e,t)=>({fn:G2(e).fn,options:[e,t]}),V2=(e,t)=>{const i=T2(e);return{name:i.name,fn:i.fn,options:[e,t]}},q2=(e,t)=>{const i=k2(e);return{name:i.name,fn:i.fn,options:[e,t]}},K2=(e,t)=>{const i=M2(e);return{name:i.name,fn:i.fn,options:[e,t]}},J2=(e,t)=>{const i=$2(e);return{name:i.name,fn:i.fn,options:[e,t]}};var Z2=Object.defineProperty,Nr=(e,t)=>Z2(e,"name",{value:t,configurable:!0}),Lw={Partial:"partial"},Pw={Optimized:"optimized",Always:"always"},cQ="Popper",[lQ,dQ]=Ui(cQ),[X2,uQ]=lQ(cQ),W2=Nr(e=>{const{__scopePopper:t,children:i}=e,[s,c]=B.useState(null),[d,u]=B.useState(void 0);return r.jsx(X2,{scope:t,anchor:s,onAnchorChange:c,placementState:d,setPlacementState:u,children:i})},"Popper"),ek="PopperAnchor",tk=B.forwardRef(Nr(function(t,i){const{__scopePopper:s,virtualRef:c,...d}=t,u=uQ(ek,s),p=B.useRef(null),g=u.onAnchorChange,m=B.useCallback(j=>{p.current=j,j&&g(j)},[g]),y=Dt(i,m),A=B.useRef(null);B.useEffect(()=>{if(!c)return;const j=A.current;A.current=c.current,j!==A.current&&g(A.current)});const E=u.placementState&&Nf(u.placementState),b=E==null?void 0:E[0],w=E==null?void 0:E[1];return c?null:r.jsx(nn.div,{"data-radix-popper-side":b,"data-radix-popper-align":w,...d,ref:y})},"PopperAnchor")),fQ="PopperContent",[nk,m8]=lQ(fQ),ak=B.forwardRef(Nr(function(t,i){var X,fe,se,ce,Ge,Ne,ue;const{__scopePopper:s,side:c="bottom",sideOffset:d=0,align:u="center",alignOffset:p=0,arrowPadding:g=0,avoidCollisions:m=!0,collisionBoundary:y=[],collisionPadding:A=0,sticky:E=Lw.Partial,hideWhenDetached:b=!1,updatePositionStrategy:w=Pw.Optimized,onPlaced:j,...I}=t,Q=uQ(fQ,s),[S,C]=B.useState(null),_=Dt(i,C),[O,T]=B.useState(null),N=JI(O),$=(N==null?void 0:N.width)??0,G=(N==null?void 0:N.height)??0,U=c+(u!=="center"?"-"+u:""),Z=typeof A=="number"?A:{top:0,right:0,bottom:0,left:0,...A},q=Array.isArray(y)?y:[y],de=q.length>0,re={padding:Z,boundary:q.filter(pQ),altBoundary:de},{refs:pe,floatingStyles:K,placement:ie,isPositioned:W,middlewareData:le}=U2({strategy:"fixed",placement:U,whileElementsMounted:Nr((...Qe)=>N2(...Qe,{animationFrame:w===Pw.Always}),"whileElementsMounted"),elements:{reference:Q.anchor},middleware:[L2({mainAxis:d+G,alignmentAxis:p}),m&&P2({mainAxis:!0,crossAxis:!1,...E===Lw.Partial?{limiter:F2()}:{},...re}),m&&V2({...re}),q2({...re,apply:Nr(({elements:Qe,rects:ve,availableWidth:Se,availableHeight:nt})=>{const{width:Tt,height:In}=ve.reference,yn=Qe.floating.style;yn.setProperty("--radix-popper-available-width",`${Se}px`),yn.setProperty("--radix-popper-available-height",`${nt}px`),yn.setProperty("--radix-popper-anchor-width",`${Tt}px`),yn.setProperty("--radix-popper-anchor-height",`${In}px`)},"apply")}),O&&J2({element:O,padding:g}),ik({arrowWidth:$,arrowHeight:G}),b&&K2(de?{strategy:"referenceHidden",...re}:{strategy:"referenceHidden",padding:re.padding,altBoundary:re.altBoundary})]}),oe=Q.setPlacementState;mn(()=>(oe(ie),()=>{oe(void 0)}),[ie,oe]);const[xe,Me]=Nf(ie),_e=Dr(j);mn(()=>{W&&(_e==null||_e())},[W,_e]);const k=(X=le.arrow)==null?void 0:X.x,ae=(fe=le.arrow)==null?void 0:fe.y,Ae=((se=le.arrow)==null?void 0:se.centerOffset)!==0,[R,F]=B.useState();return mn(()=>{S&&F(window.getComputedStyle(S).zIndex)},[S]),r.jsx("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:W?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:R,"--radix-popper-transform-origin":[(ce=le.transformOrigin)==null?void 0:ce.x,(Ge=le.transformOrigin)==null?void 0:Ge.y].join(" "),...((Ne=le.hide)==null?void 0:Ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:r.jsx(nk,{scope:s,placedSide:xe,placedAlign:Me,onArrowChange:T,arrowX:k,arrowY:ae,shouldHideArrow:Ae,children:r.jsx(nn.div,{"data-side":xe,"data-align":Me,...I,ref:_,style:{...I.style,animation:W?(ue=I.style)==null?void 0:ue.animation:"none"}})})})},"PopperContent"));function pQ(e){return e!==null}Nr(pQ,"isNotNull");var ik=Nr(e=>({name:"transformOrigin",options:e,fn(t){var I,Q,S;const{placement:i,rects:s,middlewareData:c}=t,u=((I=c.arrow)==null?void 0:I.centerOffset)!==0,p=u?0:e.arrowWidth,g=u?0:e.arrowHeight,[m,y]=Nf(i),A={start:"0%",center:"50%",end:"100%"}[y],E=(((Q=c.arrow)==null?void 0:Q.x)??0)+p/2,b=(((S=c.arrow)==null?void 0:S.y)??0)+g/2;let w="",j="";return m==="bottom"?(w=u?A:`${E}px`,j=`${-g}px`):m==="top"?(w=u?A:`${E}px`,j=`${s.floating.height+g}px`):m==="right"?(w=`${-g}px`,j=u?A:`${b}px`):m==="left"&&(w=`${s.floating.width+g}px`,j=u?A:`${b}px`),{data:{x:w,y:j}}}}),"transformOrigin");function Nf(e){const[t,i="center"]=e.split("-");return[t,i]}Nr(Nf,"getSideAndAlignFromPlacement");var rk=Object.defineProperty,Gm=(e,t)=>rk(e,"name",{value:t,configurable:!0}),qg=!1;function hQ(){const[e,t]=B.useState(qg);return B.useEffect(()=>{qg||(qg=!0,t(!0))},[]),e}Gm(hQ,"useIsHydrated");var gQ=Gs[" useSyncExternalStore ".trim().toString()];function AQ(){return()=>{}}Gm(AQ,"subscribe");function mQ(){return gQ(AQ,()=>!0,()=>!1)}Gm(mQ,"useIsHydratedModern");var sk=typeof gQ=="function"?mQ:hQ,ok=Object.defineProperty,Ys=(e,t)=>ok(e,"name",{value:t,configurable:!0}),Kg="rovingFocusGroup.onEntryFocus",ck={bubbles:!1,cancelable:!0},Rf="RovingFocusGroup",[RA,yQ,lk]=nI(Rf),[dk,EQ]=Ui(Rf,[lk]),Fw={Vertical:"vertical",Horizontal:"horizontal"},uk={RTL:"rtl"},[fk,pk]=dk(Rf),hk=B.forwardRef(Ys(function(t,i){return r.jsx(RA.Provider,{scope:t.__scopeRovingFocusGroup,children:r.jsx(RA.Slot,{scope:t.__scopeRovingFocusGroup,children:r.jsx(gk,{...t,ref:i})})})},"RovingFocusGroup")),gk=B.forwardRef(Ys(function(t,i){const{__scopeRovingFocusGroup:s,orientation:c,loop:d=!1,dir:u,currentTabStopId:p,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:m,onEntryFocus:y,preventScrollOnEntryFocus:A=!1,...E}=t,b=B.useRef(null),w=Dt(i,b),j=Im(u),[I,Q]=Fl({prop:p,defaultProp:g??null,onChange:m,caller:Rf}),[S,C]=B.useState(!1),_=Dr(y),O=yQ(s),T=B.useRef(!1),[N,$]=B.useState(0);return B.useEffect(()=>{const G=b.current;if(G)return G.addEventListener(Kg,_),()=>G.removeEventListener(Kg,_)},[_]),r.jsx(fk,{scope:s,orientation:c,dir:j,loop:d,currentTabStopId:I,onItemFocus:B.useCallback(G=>Q(G),[Q]),onItemShiftTab:B.useCallback(()=>C(!0),[]),onFocusableItemAdd:B.useCallback(()=>$(G=>G+1),[]),onFocusableItemRemove:B.useCallback(()=>$(G=>G-1),[]),children:r.jsx(nn.div,{tabIndex:S||N===0?-1:0,"data-orientation":c,...E,ref:w,style:{outline:"none",...t.style},onMouseDown:pt(t.onMouseDown,()=>{T.current=!0}),onFocus:pt(t.onFocus,G=>{const U=!T.current;if(G.target===G.currentTarget&&U&&!S){const Z=new CustomEvent(Kg,ck);if(G.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const q=O().filter(ie=>ie.focusable),de=q.find(ie=>ie.active),re=q.find(ie=>ie.id===I),K=[de,re,...q].filter(Boolean).map(ie=>ie.ref.current);Ym(K,A)}}T.current=!1}),onBlur:pt(t.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),Ak="RovingFocusGroupItem",mk=B.forwardRef(Ys(function(t,i){const{__scopeRovingFocusGroup:s,focusable:c=!0,active:d=!1,tabStopId:u,children:p,...g}=t,m=Os(),y=u||m,A=pk(Ak,s),E=A.currentTabStopId===y,b=yQ(s),{onFocusableItemAdd:w,onFocusableItemRemove:j,currentTabStopId:I}=A,Q=sk();return mn(()=>{if(!(!Q||!c))return w(),()=>j()},[Q,c,w,j]),B.useEffect(()=>{if(!(Q||!c))return w(),()=>j()},[Q,c,w,j]),r.jsx(RA.ItemSlot,{scope:s,id:y,focusable:c,active:d,children:r.jsx(nn.span,{tabIndex:E?0:-1,"data-orientation":A.orientation,...g,ref:i,onMouseDown:pt(t.onMouseDown,S=>{c?A.onItemFocus(y):S.preventDefault()}),onFocus:pt(t.onFocus,()=>A.onItemFocus(y)),onKeyDown:pt(t.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){A.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const C=BQ(S,A.orientation,A.dir);if(C!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let O=b().filter(T=>T.focusable).map(T=>T.ref.current);if(C==="last")O.reverse();else if(C==="prev"||C==="next"){C==="prev"&&O.reverse();const T=O.indexOf(S.currentTarget);O=A.loop?bQ(O,T+1):O.slice(T+1)}setTimeout(()=>Ym(O))}}),children:typeof p=="function"?p({isCurrentTabStop:E,hasTabStop:I!=null}):p})})},"RovingFocusGroupItem")),yk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vQ(e,t){return t!==uk.RTL?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Ys(vQ,"getDirectionAwareKey");function BQ(e,t,i){const s=vQ(e.key,i);if(!(t===Fw.Vertical&&["ArrowLeft","ArrowRight"].includes(s))&&!(t===Fw.Horizontal&&["ArrowUp","ArrowDown"].includes(s)))return yk[s]}Ys(BQ,"getFocusIntent");function Ym(e,t=!1){const i=document.activeElement;for(const s of e)if(s===i||(s.focus({preventScroll:t}),document.activeElement!==i))return}Ys(Ym,"focusFirst");function bQ(e,t){return e.map((i,s)=>e[(t+s)%e.length])}Ys(bQ,"wrapArray");var Ek=Object.defineProperty,pc=(e,t)=>Ek(e,"name",{value:t,configurable:!0}),wQ={Automatic:"automatic",Manual:"manual"},Hm="Tabs",[vk,y8]=Ui(Hm,[EQ]),xQ=EQ(),[Bk,zm]=vk(Hm),bk=B.forwardRef(pc(function(t,i){const{__scopeTabs:s,value:c,onValueChange:d,defaultValue:u,orientation:p="horizontal",dir:g,activationMode:m=wQ.Automatic,...y}=t,A=Im(g),[E,b]=Fl({prop:c,onChange:d,defaultProp:u??"",caller:Hm});return r.jsx(Bk,{scope:s,baseId:Os(),value:E,onValueChange:b,orientation:p,dir:A,activationMode:m,children:r.jsx(nn.div,{dir:A,"data-orientation":p,...y,ref:i})})},"Tabs")),wk="TabsList",xk=B.forwardRef(pc(function(t,i){const{__scopeTabs:s,loop:c=!0,...d}=t,u=zm(wk,s),p=xQ(s);return r.jsx(hk,{asChild:!0,...p,orientation:u.orientation,dir:u.dir,loop:c,children:r.jsx(nn.div,{role:"tablist","aria-orientation":u.orientation,...d,ref:i})})},"TabsList")),jk="TabsTrigger",Ik=B.forwardRef(pc(function(t,i){const{__scopeTabs:s,value:c,disabled:d=!1,...u}=t,p=zm(jk,s),g=xQ(s),m=Um(p.baseId,c),y=$m(p.baseId,c),A=c===p.value;return r.jsx(mk,{asChild:!0,...g,focusable:!d,active:A,children:r.jsx(nn.button,{type:"button",role:"tab","aria-selected":A,"aria-controls":y,"data-state":A?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:m,...u,ref:i,onMouseDown:pt(t.onMouseDown,E=>{!d&&E.button===0&&E.ctrlKey===!1?(E.currentTarget.focus(),p.onValueChange(c)):E.preventDefault()}),onKeyDown:pt(t.onKeyDown,E=>{d||E.target!==E.currentTarget||[" ","Enter"].includes(E.key)&&p.onValueChange(c)}),onFocus:pt(t.onFocus,()=>{const E=p.activationMode!==wQ.Manual;!A&&!d&&E&&p.onValueChange(c)})})})},"TabsTrigger")),Qk="TabsContent",Ck=B.forwardRef(pc(function(t,i){const{__scopeTabs:s,value:c,forceMount:d,children:u,...p}=t,g=zm(Qk,s),m=Um(g.baseId,c),y=$m(g.baseId,c),A=c===g.value,E=B.useRef(A);return B.useEffect(()=>{const b=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(dc,{present:d||A,children:({present:b})=>r.jsx(nn.div,{"data-state":A?"active":"inactive","data-orientation":g.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:y,tabIndex:0,...p,ref:i,style:{...t.style,animationDuration:E.current?"0s":void 0},children:b&&u})})},"TabsContent"));function Um(e,t){return`${e}-trigger-${t}`}pc(Um,"makeTriggerId");function $m(e,t){return`${e}-content-${t}`}pc($m,"makeContentId");var Sk=Object.defineProperty,$t=(e,t)=>Sk(e,"name",{value:t,configurable:!0}),[Lm,E8]=Ui("Tooltip",[dQ]),Pm=dQ(),Ok="TooltipProvider",_k=700,DA="tooltip.open",[Nk,Fm]=Lm(Ok),Rk=$t(e=>{const{__scopeTooltip:t,delayDuration:i=_k,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:d}=e,u=B.useRef(!0),p=B.useRef(!1),g=B.useRef(0);return B.useEffect(()=>{const m=g.current;return()=>window.clearTimeout(m)},[]),r.jsx(Nk,{scope:t,isOpenDelayedRef:u,delayDuration:i,onOpen:B.useCallback(()=>{s<=0||(window.clearTimeout(g.current),u.current=!1)},[s]),onClose:B.useCallback(()=>{s<=0||(window.clearTimeout(g.current),g.current=window.setTimeout(()=>u.current=!0,s))},[s]),isPointerInTransitRef:p,onPointerInTransitChange:B.useCallback(m=>{p.current=m},[]),disableHoverableContent:c,children:d})},"TooltipProvider"),TA="Tooltip",[Dk,Vl]=Lm(TA),Tk=$t(e=>{const{__scopeTooltip:t,children:i,open:s,defaultOpen:c,onOpenChange:d,disableHoverableContent:u,delayDuration:p}=e,g=Fm(TA,e.__scopeTooltip),m=Pm(t),[y,A]=B.useState(null),[E,b]=B.useState(void 0),w=Os(),j=B.useRef(0),I=u??g.disableHoverableContent,Q=p??g.delayDuration,S=B.useRef(!1),[C,_]=Fl({prop:s,defaultProp:c??!1,onChange:$t(U=>{U?(g.onOpen(),document.dispatchEvent(new CustomEvent(DA))):g.onClose(),d==null||d(U)},"onChange"),caller:TA}),O=B.useMemo(()=>C?S.current?"delayed-open":"instant-open":"closed",[C]),T=B.useCallback(()=>{window.clearTimeout(j.current),j.current=0,S.current=!1,_(!0)},[_]),N=B.useCallback(()=>{window.clearTimeout(j.current),j.current=0,_(!1)},[_]),$=B.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{S.current=!0,_(!0),j.current=0},Q)},[Q,_]);B.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]);const G=E??w;return r.jsx(W2,{...m,children:r.jsx(Dk,{scope:t,contentId:G,setContentId:b,open:C,stateAttribute:O,trigger:y,onTriggerChange:A,onTriggerEnter:B.useCallback(()=>{g.isOpenDelayedRef.current?$():T()},[g.isOpenDelayedRef,$,T]),onTriggerLeave:B.useCallback(()=>{I?N():(window.clearTimeout(j.current),j.current=0)},[N,I]),onOpen:T,onClose:N,disableHoverableContent:I,children:i})})},"Tooltip"),Vw="TooltipTrigger",kk=B.forwardRef($t(function(t,i){const{__scopeTooltip:s,"aria-describedby":c,...d}=t,u=Vl(Vw,s),p=Fm(Vw,s),g=Pm(s),m=B.useRef(null),y=Dt(i,m,u.onTriggerChange),A=B.useRef(!1),E=B.useRef(!1),b=B.useCallback(()=>A.current=!1,[]);return B.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),r.jsx(tk,{asChild:!0,...g,children:r.jsx(nn.button,{"aria-describedby":u.open?RQ(c,u.contentId):c,"data-state":u.stateAttribute,...d,ref:y,onPointerMove:pt(t.onPointerMove,w=>{w.pointerType!=="touch"&&!E.current&&!p.isPointerInTransitRef.current&&(u.onTriggerEnter(),E.current=!0)}),onPointerLeave:pt(t.onPointerLeave,()=>{u.onTriggerLeave(),E.current=!1}),onPointerDown:pt(t.onPointerDown,()=>{u.open&&u.onClose(),A.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:pt(t.onFocus,()=>{A.current||u.onOpen()}),onBlur:pt(t.onBlur,u.onClose),onClick:pt(t.onClick,u.onClose)})})},"TooltipTrigger")),jQ="TooltipPortal",[Mk,Gk]=Lm(jQ,{forceMount:void 0}),Yk=$t(e=>{const{__scopeTooltip:t,forceMount:i,children:s,container:c}=e,d=Vl(jQ,t);return r.jsx(Mk,{scope:t,forceMount:i,children:r.jsx(dc,{present:i||d.open,children:r.jsx(RI,{asChild:!0,container:c,children:s})})})},"TooltipPortal"),Cl="TooltipContent",Hk=B.forwardRef($t(function(t,i){const s=Gk(Cl,t.__scopeTooltip),{forceMount:c=s.forceMount,side:d="top",...u}=t,p=Vl(Cl,t.__scopeTooltip);return r.jsx(dc,{present:c||p.open,children:p.disableHoverableContent?r.jsx(IQ,{side:d,...u,ref:i}):r.jsx(zk,{side:d,...u,ref:i})})},"TooltipContent")),zk=B.forwardRef($t(function(t,i){const s=Vl(Cl,t.__scopeTooltip),c=Fm(Cl,t.__scopeTooltip),d=B.useRef(null),u=Dt(i,d),[p,g]=B.useState(null),{trigger:m,onClose:y}=s,A=d.current,{onPointerInTransitChange:E}=c,b=B.useCallback(()=>{g(null),E(!1)},[E]),w=B.useCallback((j,I)=>{const Q=j.currentTarget,S={x:j.clientX,y:j.clientY},C=QQ(S,Q.getBoundingClientRect()),_=CQ(S,C),O=SQ(I.getBoundingClientRect()),T=_Q([..._,...O]);g(T),E(!0)},[E]);return B.useEffect(()=>()=>b(),[b]),B.useEffect(()=>{if(m&&A){const j=$t(Q=>w(Q,A),"handleTriggerLeave"),I=$t(Q=>w(Q,m),"handleContentLeave");return m.addEventListener("pointerleave",j),A.addEventListener("pointerleave",I),()=>{m.removeEventListener("pointerleave",j),A.removeEventListener("pointerleave",I)}}},[m,A,w,b]),B.useEffect(()=>{if(p){const j=$t(I=>{const Q=I.target,S={x:I.clientX,y:I.clientY},C=(m==null?void 0:m.contains(Q))||(A==null?void 0:A.contains(Q)),_=!OQ(S,p);C?b():_&&(b(),y())},"handleTrackPointerGrace");return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[m,A,p,y,b]),r.jsx(IQ,{...t,ref:u})},"TooltipContentHoverable")),Uk=Vj("TooltipContent"),IQ=B.forwardRef($t(function(t,i){const{__scopeTooltip:s,children:c,"aria-label":d,id:u,onEscapeKeyDown:p,onPointerDownOutside:g,...m}=t,y=Vl(Cl,s),A=Pm(s),{onClose:E}=y,[b,w]=B.useState(null),j=Dt(i,w);II(b),B.useEffect(()=>(document.addEventListener(DA,E),()=>document.removeEventListener(DA,E)),[E]),B.useEffect(()=>{if(y.trigger){const Q=$t(S=>{S.target instanceof Node&&S.target.contains(y.trigger)&&E()},"handleScroll");return window.addEventListener("scroll",Q,{capture:!0}),()=>window.removeEventListener("scroll",Q,{capture:!0})}},[y.trigger,E]);const{setContentId:I}=y;return mn(()=>(I(u),()=>{I(void 0)}),[u,I]),r.jsx(EI,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:p,onPointerDownOutside:g,onFocusOutside:Q=>Q.preventDefault(),onDismiss:E,children:r.jsxs(ak,{"data-state":y.stateAttribute,role:d?void 0:"tooltip",id:d?void 0:y.contentId,...A,...m,ref:j,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(Uk,{children:c}),d?r.jsx(KR,{id:y.contentId,role:"tooltip",children:d}):null]})})},"TooltipContentImpl"));function QQ(e,t){const i=Math.abs(t.top-e.y),s=Math.abs(t.bottom-e.y),c=Math.abs(t.right-e.x),d=Math.abs(t.left-e.x);switch(Math.min(i,s,c,d)){case d:return"left";case c:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}$t(QQ,"getExitSideFromRect");function CQ(e,t,i=5){const s=[];switch(t){case"top":s.push({x:e.x-i,y:e.y+i},{x:e.x+i,y:e.y+i});break;case"bottom":s.push({x:e.x-i,y:e.y-i},{x:e.x+i,y:e.y-i});break;case"left":s.push({x:e.x+i,y:e.y-i},{x:e.x+i,y:e.y+i});break;case"right":s.push({x:e.x-i,y:e.y-i},{x:e.x-i,y:e.y+i});break}return s}$t(CQ,"getPaddedExitPoints");function SQ(e){const{top:t,right:i,bottom:s,left:c}=e;return[{x:c,y:t},{x:i,y:t},{x:i,y:s},{x:c,y:s}]}$t(SQ,"getPointsFromRect");function OQ(e,t){const{x:i,y:s}=e;let c=!1;for(let d=0,u=t.length-1;d<t.length;u=d++){const p=t[d],g=t[u],m=p.x,y=p.y,A=g.x,E=g.y;y>s!=E>s&&i<(A-m)*(s-y)/(E-y)+m&&(c=!c)}return c}$t(OQ,"isPointInPolygon");function _Q(e){const t=e.slice();return t.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),NQ(t)}$t(_Q,"getHull");function NQ(e){if(e.length<=1)return e.slice();const t=[];for(let s=0;s<e.length;s++){const c=e[s];for(;t.length>=2;){const d=t[t.length-1],u=t[t.length-2];if((d.x-u.x)*(c.y-u.y)>=(d.y-u.y)*(c.x-u.x))t.pop();else break}t.push(c)}t.pop();const i=[];for(let s=e.length-1;s>=0;s--){const c=e[s];for(;i.length>=2;){const d=i[i.length-1],u=i[i.length-2];if((d.x-u.x)*(c.y-u.y)>=(d.y-u.y)*(c.x-u.x))i.pop();else break}i.push(c)}return i.pop(),t.length===1&&i.length===1&&t[0].x===i[0].x&&t[0].y===i[0].y?t:t.concat(i)}$t(NQ,"getHullPresorted");function RQ(...e){const t=new Set;for(const i of e)if(typeof i=="string")for(const s of String(i).trim().split(/\s+/))s&&t.add(s);return t.size>0?Array.from(t).join(" "):void 0}$t(RQ,"concatAriaDescribedby");const ot=Object.freeze({Root:RT,Portal:DT,Overlay:TT,Content:YT,Title:HT,Description:zT,Cancel:$T}),Tu=Object.freeze({Root:bk,List:xk,Trigger:Ik,Content:Ck});/**
90
- * @license lucide-react v1.61.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const $k=e=>e==null?void 0:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
95
- * @license lucide-react v1.61.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */function Lk(e,t,i=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:$k(e),size:24,node:t,...i.length>0?{aliases:i}:{}}}/**
100
- * @license lucide-react v1.61.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const Pk=e=>{let t="",i=!1;for(const s of e){if(s==="-"||s==="_"||s<=" "){i=t.length>0;continue}t.length===0?t+=s.toLowerCase():t+=i?s.toUpperCase():s,i=!1}return t};/**
105
- * @license lucide-react v1.61.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const Fk=e=>{const t=Pk(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
110
- * @license lucide-react v1.61.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const kA=(...e)=>e.filter((t,i,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===i).join(" ").trim();/**
115
- * @license lucide-react v1.61.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const hs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
120
- * @license lucide-react v1.61.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */function Jg(e){return e!=null}function Vk(e,t={}){var E,b;const i=t.attributeNames??{},s=w=>i[w]??w,c=e.size??e.width??hs.width,d=e.size??e.height??hs.height,u=((E=e.aliases)==null?void 0:E.filter(w=>typeof w=="string"&&w.trim()!=="").map(w=>`lucide-${w}`))??[],p=[...e.name?[`lucide-${e.name}`]:[],...u],g=((b=t.className)==null?void 0:b.split(" ").filter(Boolean))??[],m=t.includeDefaultClasses===!1?kA(...g):kA("lucide",...p,...g),y=t.absoluteStrokeWidth?Number(t.strokeWidth??hs["stroke-width"])*Number(e.size??e.width??hs.width)/Number(t.size??t.width??hs.width):t.strokeWidth??hs["stroke-width"];return["svg",{...Object.entries(hs).reduce((w,[j,I])=>(w[s(j)]=I,w),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&Jg(t.size)&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&Jg(t.width)&&{[s("width")]:t.width},..."height"in t&&Jg(t.height)&&{[s("height")]:t.height},[s("stroke-width")]:y,...m&&{[s("class")]:m},[s("viewBox")]:`0 0 ${c} ${d}`,...t.hasA11yProp===!1?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(w=>{const[j,I,Q]=w,S=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...I}:I;return Q?[j,S,Q]:[j,S]})]}/**
125
- * @license lucide-react v1.61.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */function qk(e,t={}){return Vk(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
130
- * @license lucide-react v1.61.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const Kk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Jk=B.createContext({}),Zk=()=>B.useContext(Jk),Xk=B.forwardRef(({color:e,size:t,width:i,height:s,strokeWidth:c,absoluteStrokeWidth:d,nonScalingStroke:u,className:p="",children:g,iconNode:m=[],icon:y={node:m,aliases:[],size:24},...A},E)=>{const{size:b=24,strokeWidth:w=2,absoluteStrokeWidth:j=!1,nonScalingStroke:I=!1,color:Q="currentColor",className:S=""}=Zk()??{},C=!!g||Kk(A),[_,O,T=[]]=qk(y,{color:e??Q,width:i??t??b,height:s??t??b,strokeWidth:c??w,absoluteStrokeWidth:d??j,nonScalingStroke:u??I,className:kA(S,p),hasA11yProp:C,attributes:A});return B.createElement(_,{ref:E,...O},[...T.map(([N,$])=>B.createElement(N,$)),...Array.isArray(g)?g:[g]])});/**
135
- * @license lucide-react v1.61.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */function he(e,t=[],i=[]){const s=typeof e=="string"?Lk(e,t,i):e,c=B.forwardRef(({className:d,...u},p)=>B.createElement(Xk,{ref:p,icon:s,className:d,...u}));return s.name&&(c.displayName=Fk(s.name)),c}/**
140
- * @license lucide-react v1.61.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const DQ={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};DQ.node;const Wk=he(DQ);/**
145
- * @license lucide-react v1.61.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const TQ={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};TQ.node;const eM=he(TQ);/**
150
- * @license lucide-react v1.61.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const kQ={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};kQ.node;const tM=he(kQ);/**
155
- * @license lucide-react v1.61.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const MQ={name:"bookmark",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};MQ.node;const nM=he(MQ);/**
160
- * @license lucide-react v1.61.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const GQ={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};GQ.node;const aM=he(GQ);/**
165
- * @license lucide-react v1.61.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const YQ={name:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};YQ.node;const iM=he(YQ);/**
170
- * @license lucide-react v1.61.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const HQ={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};HQ.node;const rM=he(HQ);/**
175
- * @license lucide-react v1.61.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const zQ={name:"cable",size:24,node:[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]]};zQ.node;const sM=he(zQ);/**
180
- * @license lucide-react v1.61.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const UQ={name:"calendar-days",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]]};UQ.node;const oM=he(UQ);/**
185
- * @license lucide-react v1.61.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const $Q={name:"calendar-range",size:24,node:[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M16 2v3",key:"otl347"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M17 13h-6",key:"1qbiup"}],["path",{d:"M13 17H7",key:"1x38vv"}],["path",{d:"M7 13h.01",key:"1vezk1"}],["path",{d:"M17 17h.01",key:"1sd3ek"}]]};$Q.node;const cM=he($Q);/**
190
- * @license lucide-react v1.61.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const LQ={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};LQ.node;const lM=he(LQ);/**
195
- * @license lucide-react v1.61.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const PQ={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]};PQ.node;const dM=he(PQ);/**
200
- * @license lucide-react v1.61.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const FQ={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};FQ.node;const uM=he(FQ);/**
205
- * @license lucide-react v1.61.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const VQ={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};VQ.node;const fM=he(VQ);/**
210
- * @license lucide-react v1.61.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const qQ={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};qQ.node;const pM=he(qQ);/**
215
- * @license lucide-react v1.61.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const KQ={name:"chevron-up",size:24,node:[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]};KQ.node;const hM=he(KQ);/**
220
- * @license lucide-react v1.61.0 - ISC
221
- *
222
- * This source code is licensed under the ISC license.
223
- * See the LICENSE file in the root directory of this source tree.
224
- */const JQ={name:"chevrons-up-down",size:24,node:[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]};JQ.node;const gM=he(JQ);/**
225
- * @license lucide-react v1.61.0 - ISC
226
- *
227
- * This source code is licensed under the ISC license.
228
- * See the LICENSE file in the root directory of this source tree.
229
- */const ZQ={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};ZQ.node;const AM=he(ZQ);/**
230
- * @license lucide-react v1.61.0 - ISC
231
- *
232
- * This source code is licensed under the ISC license.
233
- * See the LICENSE file in the root directory of this source tree.
234
- */const XQ={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};XQ.node;const mM=he(XQ);/**
235
- * @license lucide-react v1.61.0 - ISC
236
- *
237
- * This source code is licensed under the ISC license.
238
- * See the LICENSE file in the root directory of this source tree.
239
- */const WQ={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};WQ.node;const yM=he(WQ);/**
240
- * @license lucide-react v1.61.0 - ISC
241
- *
242
- * This source code is licensed under the ISC license.
243
- * See the LICENSE file in the root directory of this source tree.
244
- */const e0={name:"circle-dot-dashed",size:24,node:[["path",{d:"M10.1 2.18a9.93 9.93 0 0 1 3.8 0",key:"1qdqn0"}],["path",{d:"M17.6 3.71a9.95 9.95 0 0 1 2.69 2.7",key:"1bq7p6"}],["path",{d:"M21.82 10.1a9.93 9.93 0 0 1 0 3.8",key:"1rlaqf"}],["path",{d:"M20.29 17.6a9.95 9.95 0 0 1-2.7 2.69",key:"1xk03u"}],["path",{d:"M13.9 21.82a9.94 9.94 0 0 1-3.8 0",key:"l7re25"}],["path",{d:"M6.4 20.29a9.95 9.95 0 0 1-2.69-2.7",key:"1v18p6"}],["path",{d:"M2.18 13.9a9.93 9.93 0 0 1 0-3.8",key:"xdo6bj"}],["path",{d:"M3.71 6.4a9.95 9.95 0 0 1 2.7-2.69",key:"1jjmaz"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};e0.node;const EM=he(e0);/**
245
- * @license lucide-react v1.61.0 - ISC
246
- *
247
- * This source code is licensed under the ISC license.
248
- * See the LICENSE file in the root directory of this source tree.
249
- */const t0={name:"circle-minus",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],aliases:["minus-circle"]};t0.node;const vM=he(t0);/**
250
- * @license lucide-react v1.61.0 - ISC
251
- *
252
- * This source code is licensed under the ISC license.
253
- * See the LICENSE file in the root directory of this source tree.
254
- */const n0={name:"circle-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]};n0.node;const BM=he(n0);/**
255
- * @license lucide-react v1.61.0 - ISC
256
- *
257
- * This source code is licensed under the ISC license.
258
- * See the LICENSE file in the root directory of this source tree.
259
- */const a0={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};a0.node;const bM=he(a0);/**
260
- * @license lucide-react v1.61.0 - ISC
261
- *
262
- * This source code is licensed under the ISC license.
263
- * See the LICENSE file in the root directory of this source tree.
264
- */const i0={name:"circle-play",size:24,node:[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["play-circle"]};i0.node;const wM=he(i0);/**
265
- * @license lucide-react v1.61.0 - ISC
266
- *
267
- * This source code is licensed under the ISC license.
268
- * See the LICENSE file in the root directory of this source tree.
269
- */const r0={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};r0.node;const xM=he(r0);/**
270
- * @license lucide-react v1.61.0 - ISC
271
- *
272
- * This source code is licensed under the ISC license.
273
- * See the LICENSE file in the root directory of this source tree.
274
- */const s0={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};s0.node;const jM=he(s0);/**
275
- * @license lucide-react v1.61.0 - ISC
276
- *
277
- * This source code is licensed under the ISC license.
278
- * See the LICENSE file in the root directory of this source tree.
279
- */const o0={name:"circle",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]};o0.node;const IM=he(o0);/**
280
- * @license lucide-react v1.61.0 - ISC
281
- *
282
- * This source code is licensed under the ISC license.
283
- * See the LICENSE file in the root directory of this source tree.
284
- */const c0={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};c0.node;const QM=he(c0);/**
285
- * @license lucide-react v1.61.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const l0={name:"columns-3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],aliases:["panels-left-right"]};l0.node;const CM=he(l0);/**
290
- * @license lucide-react v1.61.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */const d0={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};d0.node;const SM=he(d0);/**
295
- * @license lucide-react v1.61.0 - ISC
296
- *
297
- * This source code is licensed under the ISC license.
298
- * See the LICENSE file in the root directory of this source tree.
299
- */const u0={name:"corner-down-right",size:24,node:[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]]};u0.node;const OM=he(u0);/**
300
- * @license lucide-react v1.61.0 - ISC
301
- *
302
- * This source code is licensed under the ISC license.
303
- * See the LICENSE file in the root directory of this source tree.
304
- */const f0={name:"dot",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]};f0.node;const _M=he(f0);/**
305
- * @license lucide-react v1.61.0 - ISC
306
- *
307
- * This source code is licensed under the ISC license.
308
- * See the LICENSE file in the root directory of this source tree.
309
- */const p0={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};p0.node;const NM=he(p0);/**
310
- * @license lucide-react v1.61.0 - ISC
311
- *
312
- * This source code is licensed under the ISC license.
313
- * See the LICENSE file in the root directory of this source tree.
314
- */const h0={name:"file-check",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]};h0.node;const RM=he(h0);/**
315
- * @license lucide-react v1.61.0 - ISC
316
- *
317
- * This source code is licensed under the ISC license.
318
- * See the LICENSE file in the root directory of this source tree.
319
- */const g0={name:"file-diff",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]};g0.node;const DM=he(g0);/**
320
- * @license lucide-react v1.61.0 - ISC
321
- *
322
- * This source code is licensed under the ISC license.
323
- * See the LICENSE file in the root directory of this source tree.
324
- */const A0={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};A0.node;const TM=he(A0);/**
325
- * @license lucide-react v1.61.0 - ISC
326
- *
327
- * This source code is licensed under the ISC license.
328
- * See the LICENSE file in the root directory of this source tree.
329
- */const m0={name:"flag",size:24,node:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]]};m0.node;const kM=he(m0);/**
330
- * @license lucide-react v1.61.0 - ISC
331
- *
332
- * This source code is licensed under the ISC license.
333
- * See the LICENSE file in the root directory of this source tree.
334
- */const y0={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};y0.node;const MM=he(y0);/**
335
- * @license lucide-react v1.61.0 - ISC
336
- *
337
- * This source code is licensed under the ISC license.
338
- * See the LICENSE file in the root directory of this source tree.
339
- */const E0={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};E0.node;const GM=he(E0);/**
340
- * @license lucide-react v1.61.0 - ISC
341
- *
342
- * This source code is licensed under the ISC license.
343
- * See the LICENSE file in the root directory of this source tree.
344
- */const v0={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};v0.node;const YM=he(v0);/**
345
- * @license lucide-react v1.61.0 - ISC
346
- *
347
- * This source code is licensed under the ISC license.
348
- * See the LICENSE file in the root directory of this source tree.
349
- */const B0={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};B0.node;const HM=he(B0);/**
350
- * @license lucide-react v1.61.0 - ISC
351
- *
352
- * This source code is licensed under the ISC license.
353
- * See the LICENSE file in the root directory of this source tree.
354
- */const b0={name:"git-commit-horizontal",size:24,node:[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],aliases:["git-commit"]};b0.node;const zM=he(b0);/**
355
- * @license lucide-react v1.61.0 - ISC
356
- *
357
- * This source code is licensed under the ISC license.
358
- * See the LICENSE file in the root directory of this source tree.
359
- */const w0={name:"git-pull-request",size:24,node:[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]]};w0.node;const UM=he(w0);/**
360
- * @license lucide-react v1.61.0 - ISC
361
- *
362
- * This source code is licensed under the ISC license.
363
- * See the LICENSE file in the root directory of this source tree.
364
- */const x0={name:"hash",size:24,node:[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]};x0.node;const $M=he(x0);/**
365
- * @license lucide-react v1.61.0 - ISC
366
- *
367
- * This source code is licensed under the ISC license.
368
- * See the LICENSE file in the root directory of this source tree.
369
- */const j0={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};j0.node;const LM=he(j0);/**
370
- * @license lucide-react v1.61.0 - ISC
371
- *
372
- * This source code is licensed under the ISC license.
373
- * See the LICENSE file in the root directory of this source tree.
374
- */const I0={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};I0.node;const PM=he(I0);/**
375
- * @license lucide-react v1.61.0 - ISC
376
- *
377
- * This source code is licensed under the ISC license.
378
- * See the LICENSE file in the root directory of this source tree.
379
- */const Q0={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};Q0.node;const FM=he(Q0);/**
380
- * @license lucide-react v1.61.0 - ISC
381
- *
382
- * This source code is licensed under the ISC license.
383
- * See the LICENSE file in the root directory of this source tree.
384
- */const C0={name:"life-buoy",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]};C0.node;const VM=he(C0);/**
385
- * @license lucide-react v1.61.0 - ISC
386
- *
387
- * This source code is licensed under the ISC license.
388
- * See the LICENSE file in the root directory of this source tree.
389
- */const S0={name:"list-tree",size:24,node:[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]};S0.node;const qM=he(S0);/**
390
- * @license lucide-react v1.61.0 - ISC
391
- *
392
- * This source code is licensed under the ISC license.
393
- * See the LICENSE file in the root directory of this source tree.
394
- */const O0={name:"list",size:24,node:[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]};O0.node;const KM=he(O0);/**
395
- * @license lucide-react v1.61.0 - ISC
396
- *
397
- * This source code is licensed under the ISC license.
398
- * See the LICENSE file in the root directory of this source tree.
399
- */const _0={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};_0.node;const JM=he(_0);/**
400
- * @license lucide-react v1.61.0 - ISC
401
- *
402
- * This source code is licensed under the ISC license.
403
- * See the LICENSE file in the root directory of this source tree.
404
- */const N0={name:"lock",size:24,node:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]};N0.node;const ZM=he(N0);/**
405
- * @license lucide-react v1.61.0 - ISC
406
- *
407
- * This source code is licensed under the ISC license.
408
- * See the LICENSE file in the root directory of this source tree.
409
- */const R0={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};R0.node;const XM=he(R0);/**
410
- * @license lucide-react v1.61.0 - ISC
411
- *
412
- * This source code is licensed under the ISC license.
413
- * See the LICENSE file in the root directory of this source tree.
414
- */const D0={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};D0.node;const WM=he(D0);/**
415
- * @license lucide-react v1.61.0 - ISC
416
- *
417
- * This source code is licensed under the ISC license.
418
- * See the LICENSE file in the root directory of this source tree.
419
- */const T0={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};T0.node;const eG=he(T0);/**
420
- * @license lucide-react v1.61.0 - ISC
421
- *
422
- * This source code is licensed under the ISC license.
423
- * See the LICENSE file in the root directory of this source tree.
424
- */const k0={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};k0.node;const tG=he(k0);/**
425
- * @license lucide-react v1.61.0 - ISC
426
- *
427
- * This source code is licensed under the ISC license.
428
- * See the LICENSE file in the root directory of this source tree.
429
- */const M0={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],aliases:["sidebar-close"]};M0.node;const nG=he(M0);/**
430
- * @license lucide-react v1.61.0 - ISC
431
- *
432
- * This source code is licensed under the ISC license.
433
- * See the LICENSE file in the root directory of this source tree.
434
- */const G0={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]};G0.node;const aG=he(G0);/**
435
- * @license lucide-react v1.61.0 - ISC
436
- *
437
- * This source code is licensed under the ISC license.
438
- * See the LICENSE file in the root directory of this source tree.
439
- */const Y0={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Y0.node;const iG=he(Y0);/**
440
- * @license lucide-react v1.61.0 - ISC
441
- *
442
- * This source code is licensed under the ISC license.
443
- * See the LICENSE file in the root directory of this source tree.
444
- */const H0={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};H0.node;const rG=he(H0);/**
445
- * @license lucide-react v1.61.0 - ISC
446
- *
447
- * This source code is licensed under the ISC license.
448
- * See the LICENSE file in the root directory of this source tree.
449
- */const z0={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};z0.node;const sG=he(z0);/**
450
- * @license lucide-react v1.61.0 - ISC
451
- *
452
- * This source code is licensed under the ISC license.
453
- * See the LICENSE file in the root directory of this source tree.
454
- */const U0={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};U0.node;const $0=he(U0);/**
455
- * @license lucide-react v1.61.0 - ISC
456
- *
457
- * This source code is licensed under the ISC license.
458
- * See the LICENSE file in the root directory of this source tree.
459
- */const L0={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};L0.node;const oG=he(L0);/**
460
- * @license lucide-react v1.61.0 - ISC
461
- *
462
- * This source code is licensed under the ISC license.
463
- * See the LICENSE file in the root directory of this source tree.
464
- */const P0={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};P0.node;const cG=he(P0);/**
465
- * @license lucide-react v1.61.0 - ISC
466
- *
467
- * This source code is licensed under the ISC license.
468
- * See the LICENSE file in the root directory of this source tree.
469
- */const F0={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};F0.node;const lG=he(F0);/**
470
- * @license lucide-react v1.61.0 - ISC
471
- *
472
- * This source code is licensed under the ISC license.
473
- * See the LICENSE file in the root directory of this source tree.
474
- */const V0={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};V0.node;const dG=he(V0);/**
475
- * @license lucide-react v1.61.0 - ISC
476
- *
477
- * This source code is licensed under the ISC license.
478
- * See the LICENSE file in the root directory of this source tree.
479
- */const q0={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};q0.node;const uG=he(q0);/**
480
- * @license lucide-react v1.61.0 - ISC
481
- *
482
- * This source code is licensed under the ISC license.
483
- * See the LICENSE file in the root directory of this source tree.
484
- */const K0={name:"square-check-big",size:24,node:[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-square"]};K0.node;const fG=he(K0);/**
485
- * @license lucide-react v1.61.0 - ISC
486
- *
487
- * This source code is licensed under the ISC license.
488
- * See the LICENSE file in the root directory of this source tree.
489
- */const J0={name:"square-dashed",size:24,node:[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]],aliases:["box-select"]};J0.node;const pG=he(J0);/**
490
- * @license lucide-react v1.61.0 - ISC
491
- *
492
- * This source code is licensed under the ISC license.
493
- * See the LICENSE file in the root directory of this source tree.
494
- */const Z0={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};Z0.node;const hG=he(Z0);/**
495
- * @license lucide-react v1.61.0 - ISC
496
- *
497
- * This source code is licensed under the ISC license.
498
- * See the LICENSE file in the root directory of this source tree.
499
- */const X0={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};X0.node;const gG=he(X0);/**
500
- * @license lucide-react v1.61.0 - ISC
501
- *
502
- * This source code is licensed under the ISC license.
503
- * See the LICENSE file in the root directory of this source tree.
504
- */const W0={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};W0.node;const AG=he(W0);/**
505
- * @license lucide-react v1.61.0 - ISC
506
- *
507
- * This source code is licensed under the ISC license.
508
- * See the LICENSE file in the root directory of this source tree.
509
- */const eC={name:"table",size:24,node:[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]};eC.node;const mG=he(eC);/**
510
- * @license lucide-react v1.61.0 - ISC
511
- *
512
- * This source code is licensed under the ISC license.
513
- * See the LICENSE file in the root directory of this source tree.
514
- */const tC={name:"target",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]};tC.node;const yG=he(tC);/**
515
- * @license lucide-react v1.61.0 - ISC
516
- *
517
- * This source code is licensed under the ISC license.
518
- * See the LICENSE file in the root directory of this source tree.
519
- */const nC={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};nC.node;const EG=he(nC);/**
520
- * @license lucide-react v1.61.0 - ISC
521
- *
522
- * This source code is licensed under the ISC license.
523
- * See the LICENSE file in the root directory of this source tree.
524
- */const aC={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};aC.node;const iC=he(aC);/**
525
- * @license lucide-react v1.61.0 - ISC
526
- *
527
- * This source code is licensed under the ISC license.
528
- * See the LICENSE file in the root directory of this source tree.
529
- */const rC={name:"unplug",size:24,node:[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]]};rC.node;const vG=he(rC);/**
530
- * @license lucide-react v1.61.0 - ISC
531
- *
532
- * This source code is licensed under the ISC license.
533
- * See the LICENSE file in the root directory of this source tree.
534
- */const sC={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};sC.node;const BG=he(sC);/**
535
- * @license lucide-react v1.61.0 - ISC
536
- *
537
- * This source code is licensed under the ISC license.
538
- * See the LICENSE file in the root directory of this source tree.
539
- */const oC={name:"workflow",size:24,node:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]};oC.node;const bG=he(oC);/**
540
- * @license lucide-react v1.61.0 - ISC
541
- *
542
- * This source code is licensed under the ISC license.
543
- * See the LICENSE file in the root directory of this source tree.
544
- */const cC={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};cC.node;const wG=he(cC),xG=Object.freeze({activity:Wk,"arrow-right":eM,ban:tM,bookmark:nM,bot:aM,box:iM,braces:rM,"calendar-days":oM,"calendar-range":cM,check:lM,"check-check":dM,"chevron-down":uM,"chevron-left":fM,"chevron-right":pM,"chevron-up":hM,"chevrons-up-down":gM,circle:IM,"circle-alert":AM,"circle-check":mM,"circle-dashed":yM,"circle-minus":vM,"circle-pause":bM,"circle-play":wM,"circle-slash":xM,"circle-x":jM,clock:QM,"columns-3":CM,copy:SM,"corner-down-right":OM,dot:_M,"external-link":NM,"file-check":RM,"file-diff":DM,"file-text":TM,filter:GM,flag:kM,folder:MM,gauge:YM,"git-branch":HM,"git-commit":zM,"git-pull-request":UM,hash:$M,history:sG,inbox:LM,info:PM,layers:FM,"life-buoy":VM,list:KM,"list-tree":qM,"loader-circle":JM,lock:ZM,minus:XM,monitor:WM,moon:eG,"octagon-alert":tG,"panel-left-close":nG,"panel-right-close":aG,plus:iG,"refresh-cw":rG,"rotate-ccw":$0,"scroll-text":oG,search:cG,shield:dG,sparkles:uG,square:hG,"square-check-big":fG,"square-dashed":pG,star:gG,sun:AG,table:mG,target:yG,terminal:EG,"triangle-alert":iC,unplug:vG,user:BG,workflow:bG,x:wG});function be({name:e,size:t=16,color:i="currentColor",strokeWidth:s=1.75,title:c,spin:d=!1,pulse:u=!1}){const p=xG[e];return r.jsx(p,{className:"pc-icon","data-icon":e,"data-spin":d||void 0,"data-pulse":u||void 0,size:t,color:i,strokeWidth:s,"aria-hidden":c?void 0:!0,role:c?"img":void 0,"aria-label":c})}const Zg={sm:13,md:14,lg:16};function ba({children:e,variant:t="secondary",size:i="md",icon:s,iconAfter:c,disabled:d=!1,loading:u=!1,fullWidth:p=!1,shortcut:g,type:m="button",onClick:y,ariaLabel:A}){return r.jsxs("button",{type:m,className:"pc-button","data-variant":t,"data-size":i,"data-full":p||void 0,disabled:d||u,"aria-label":A,onClick:y,children:[u?r.jsx(be,{name:"loader-circle",size:Zg[i],spin:!0}):s?r.jsx(be,{name:s,size:Zg[i]}):null,e,c?r.jsx(be,{name:c,size:Zg[i]}):null,g?r.jsx("span",{className:"pc-button__shortcut",children:g}):null]})}const jG={sm:13,md:15,lg:17};function lC({icon:e,label:t,size:i="md",active:s=!1,disabled:c=!1,tone:d="default",onClick:u}){return r.jsx("button",{type:"button",className:"pc-icon-button","data-size":i,"data-tone":d,"data-active":s||void 0,title:t,"aria-label":t,"aria-pressed":s||void 0,disabled:c,onClick:u,children:r.jsx(be,{name:e,size:jG[i]})})}function Or({children:e,size:t="md"}){return r.jsx("kbd",{className:"pc-kbd","data-size":t,children:e})}function ra({children:e,tone:t="neutral",variant:i="soft",icon:s,mono:c=!1}){return r.jsxs("span",{className:"pc-badge","data-tone":t,"data-variant":i,"data-mono":c||void 0,children:[s?r.jsx(be,{name:s,size:11}):null,e]})}function vt({children:e,title:t,meta:i,actions:s,padding:c=14,elevated:d=!1}){return r.jsxs("section",{className:"pc-card","data-elevated":d||void 0,children:[t||s?r.jsxs("header",{className:"pc-card__head",children:[t?r.jsx("h2",{className:"pc-card__title",children:t}):null,i?r.jsx("span",{className:"pc-card__meta",children:i}):null,s?r.jsx("div",{className:"pc-card__actions",children:s}):null]}):null,r.jsx("div",{className:"pc-card__body",style:{padding:c},children:e})]})}function tn({icon:e="inbox",title:t,description:i,action:s}){return r.jsxs("div",{className:"pc-empty",children:[r.jsx("span",{className:"pc-empty__glyph","aria-hidden":"true",children:r.jsx(be,{name:e,size:17})}),r.jsx("span",{className:"pc-empty__title",children:t}),i?r.jsx("p",{className:"pc-empty__desc",children:i}):null,s?r.jsx("div",{className:"pc-empty__action",children:s}):null]})}function dC({tabs:e,value:t,onChange:i,size:s="md",label:c}){return r.jsx("div",{className:"pc-tabs","data-size":s,role:"tablist","aria-label":c,children:e.map(d=>{const u=d.id===t;return r.jsxs("button",{type:"button",role:"tab",className:"pc-tabs__tab","aria-selected":u,"data-active":u||void 0,onClick:()=>i(d.id),children:[d.icon?r.jsx(be,{name:d.icon,size:13}):null,d.label,d.count!==void 0?r.jsx("span",{className:"pc-tabs__count",children:d.count}):null]},d.id)})})}function pn({w:e="100%",h:t=10,radius:i,delay:s=0}){return r.jsx("span",{className:"pc-skeleton","aria-hidden":"true",style:{width:e,height:t,borderRadius:i,animationDelay:`${s}ms`}})}const qw=160;function MA({columns:e,rows:t=6,label:i}){const s=24+12*Math.max(e.length-1,0)+e.reduce((u,p)=>u+(p.width??qw),0),c=u=>({flex:u.width?`0 0 ${u.width}px`:`1 0 ${qw}px`}),d=Array.from({length:t},(u,p)=>({id:`row-${p}`,row:p}));return r.jsxs("output",{className:"pc-skeleton-table","aria-busy":"true","aria-label":i??"Loading",children:[r.jsx("div",{className:"pc-skeleton-table__head",style:{minWidth:s},children:e.map(u=>r.jsx("span",{style:c(u),children:u.label},u.label))}),d.map(({id:u,row:p})=>r.jsx("div",{className:"pc-skeleton-table__row",style:{minWidth:s},children:e.map((g,m)=>r.jsx("span",{style:c(g),children:r.jsx(pn,{w:g.fill??(m===0?"72%":"56%"),delay:(p*e.length+m)*40})},g.label))},u))]})}function Lo({count:e=4,height:t=148,min:i=360,label:s}){const c=Array.from({length:e},(d,u)=>({id:`card-${u}`,index:u}));return r.jsx("output",{className:"pc-skeleton-cards","aria-busy":"true","aria-label":s??"Loading",style:{gridTemplateColumns:`repeat(auto-fill, minmax(${i}px, 1fr))`},children:c.map(({id:d,index:u})=>r.jsxs("div",{className:"pc-skeleton-cards__card",style:{height:t},children:[r.jsxs("div",{className:"pc-skeleton-cards__row",children:[r.jsx(pn,{w:84,h:16,delay:u*60}),r.jsx(pn,{w:104,h:18,radius:"999px",delay:u*60+40})]}),r.jsx(pn,{w:"82%",h:13,delay:u*60+80}),r.jsx(pn,{w:"94%",delay:u*60+120}),r.jsx(pn,{w:"66%",delay:u*60+160}),r.jsx("span",{className:"pc-skeleton-cards__foot",children:r.jsx(pn,{w:"46%",h:22,delay:u*60+200})})]},d))})}function Df({children:e,right:t}){return r.jsxs("div",{className:"pc-toolbar-bar",children:[e,t?r.jsx("div",{className:"pc-toolbar-bar__right",children:t}):null]})}function Vm(){return r.jsx("span",{className:"pc-toolbar-bar__divider","aria-hidden":"true"})}function ct({eyebrow:e,title:t,count:i,description:s,actions:c,sticky:d=!1,headingLevel:u=1}){const p=u===1?"h1":u===2?"h2":"h3";return r.jsxs("header",{className:"pc-section-header","data-sticky":d||void 0,children:[r.jsxs("div",{className:"pc-section-header__text",children:[e?r.jsx("span",{className:"pc-section-header__eyebrow",children:e}):null,r.jsxs("div",{className:"pc-section-header__row",children:[r.jsx(p,{className:"pc-section-header__title",children:t}),i!==void 0?r.jsx("span",{className:"pc-section-header__count",children:i}):null]}),s?r.jsx("p",{className:"pc-section-header__desc",children:s}):null]}),c?r.jsx("div",{className:"pc-section-header__actions",children:c}):null]})}function qm({value:e,onChange:t,ariaLabel:i,placeholder:s,icon:c,suffix:d,size:u="md",mono:p=!1,width:g}){return r.jsxs("span",{className:"pc-input","data-size":u,style:{width:g},children:[c?r.jsx(be,{name:c,size:14,color:"var(--pc-text-tertiary)"}):null,r.jsx("input",{className:"pc-input__field","data-mono":p||void 0,type:"text",value:e,placeholder:s,"aria-label":i,onChange:m=>t(m.target.value)}),d?r.jsx("span",{className:"pc-input__suffix",children:d}):null]})}function Sl({value:e,onChange:t,options:i,ariaLabel:s,size:c="md",width:d}){return r.jsxs("span",{className:"pc-select","data-size":c,style:{width:d},children:[r.jsx("select",{className:"pc-select__field",value:e,"aria-label":s,onChange:u=>t(u.target.value),children:i.map(u=>{const p=typeof u=="string"?{value:u,label:u}:u;return r.jsx("option",{value:p.value,children:p.label},p.value)})}),r.jsx(be,{name:"chevron-down",size:13,color:"var(--pc-text-tertiary)"})]})}function IG({checked:e,onChange:t,label:i,ariaLabel:s,disabled:c=!1,size:d="md"}){return r.jsxs("label",{className:"pc-switch","data-size":d,"data-disabled":c||void 0,children:[r.jsx("input",{type:"checkbox",role:"switch",className:"pc-switch__input",checked:e,"aria-checked":e,disabled:c,"aria-label":i?void 0:s,onChange:u=>t(u.target.checked)}),r.jsx("span",{className:"pc-switch__track","aria-hidden":"true",children:r.jsx("span",{className:"pc-switch__thumb"})}),i?r.jsx("span",{className:"pc-switch__label",children:i}):null]})}const QG=Object.freeze({warn:"triangle-alert",danger:"octagon-alert",info:"info",success:"circle-check"});function Wt({tone:e="warn",title:t,children:i,actions:s}){const c=e==="warning"?"warn":e;return r.jsxs("div",{className:"pc-alert","data-tone":c,role:"note",children:[r.jsx(be,{name:QG[c],size:14}),r.jsxs("div",{className:"pc-alert__body",children:[t?r.jsx("span",{className:"pc-alert__title",children:t}):null,i?r.jsx("span",{className:"pc-alert__text",children:i}):null]}),s?r.jsx("div",{className:"pc-alert__actions",children:s}):null]})}function Ma({command:e,label:t,size:i="md"}){const[s,c]=B.useState("idle");B.useEffect(()=>{if(s==="idle")return;const p=window.setTimeout(()=>c("idle"),1400);return()=>window.clearTimeout(p)},[s]);const d=()=>{if(!navigator.clipboard){c("blocked");return}navigator.clipboard.writeText(e).then(()=>c("copied"),()=>c("blocked"))},u=s==="copied"?"Command copied":s==="blocked"?"Copy was blocked":"Copy command";return r.jsxs("div",{className:"pc-command-hint","data-size":i,children:[t?r.jsx("span",{className:"pc-command-hint__label",children:t}):null,r.jsxs("div",{className:"pc-command-hint__row",children:[r.jsxs("span",{className:"pc-command-hint__command",children:[r.jsx(be,{name:"terminal",size:12,color:"var(--pc-text-tertiary)"}),e]}),r.jsxs("button",{type:"button",className:"pc-command-hint__copy","data-state":s,"aria-label":u,onClick:d,children:[r.jsx(be,{name:s==="copied"?"check":s==="blocked"?"x":"copy",size:12}),s==="idle"?null:s]})]})]})}function CG(e,t){const i=e[t];return i==null?null:String(i)}function zi({columns:e,rows:t,compact:i=!1,caption:s,emptyMessage:c="Nothing here yet.",selectedId:d,sort:u,onSort:p,onRowClick:g}){const m=A=>g==null?void 0:g(A),y=(A,E)=>{g&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),m(E))};return r.jsx("div",{className:"pc-table-wrap",children:r.jsxs("table",{className:"pc-table","data-compact":i||void 0,"data-interactive":g?!0:void 0,children:[s?r.jsx("caption",{className:"pc-visually-hidden",children:s}):null,r.jsx("thead",{children:r.jsx("tr",{children:e.map(A=>{const E=(u==null?void 0:u.key)===A.key,b=r.jsxs("span",{className:"pc-table__heading",children:[A.label,A.sortable?r.jsx(be,{name:E?(u==null?void 0:u.dir)==="asc"?"chevron-up":"chevron-down":"chevrons-up-down",size:12,color:E?"var(--pc-text-primary)":"var(--pc-text-tertiary)"}):null]});return r.jsx("th",{scope:"col","data-align":A.align??"left",style:{width:A.width},"aria-sort":E?(u==null?void 0:u.dir)==="asc"?"ascending":"descending":void 0,children:A.sortable&&p?r.jsx("button",{type:"button",className:"pc-table__sort",onClick:()=>p(A.key),children:b}):b},A.key)})})}),r.jsx("tbody",{children:t.length===0?r.jsx("tr",{children:r.jsx("td",{className:"pc-table__empty",colSpan:e.length,children:c})}):t.map(A=>r.jsx("tr",{"data-selected":d!==void 0&&A.id===d?!0:void 0,tabIndex:g?0:void 0,onClick:g?()=>m(A):void 0,onKeyDown:g?E=>y(E,A):void 0,children:e.map(E=>r.jsx("td",{"data-align":E.align??"left","data-mono":E.mono||void 0,style:{maxWidth:E.width},children:E.render?E.render(A):CG(A,E.key)},E.key))},A.id))})]})})}const ql=Object.freeze(["outstanding","in-progress","blocked","addressed","done"]),Kw=Object.freeze({done:"done","in-progress":"in progress",blocked:"blocked",outstanding:"outstanding",addressed:"addressed"});function Gi({status:e,size:t="md",showLabel:i=!0,count:s}){const c=e in Kw?e:"outstanding",d=Kw[c]??e;return r.jsxs("span",{className:"pc-artifact","data-status":c,"data-size":t,children:[r.jsx("span",{className:"pc-artifact__dot","aria-hidden":"true"}),r.jsx("span",{className:i?"pc-artifact__label":"pc-visually-hidden",children:d}),s!==void 0?r.jsx("span",{className:"pc-artifact__count",children:s}):null]})}const Jw=Object.freeze({proposed:{label:"proposed",icon:"circle-dashed",family:"pre",dash:!0},approved:{label:"approved",icon:"circle-check",family:"pre"},queued:{label:"queued",icon:"clock",family:"pre"},in_progress:{label:"in progress",icon:"circle-play",family:"active",live:!0},completed:{label:"completed",icon:"circle-check",family:"good"},blocked:{label:"blocked",icon:"circle-slash",family:"bad"},rejected:{label:"rejected",icon:"circle-x",family:"bad",double:!0},deferred:{label:"deferred",icon:"circle-pause",family:"inert",dash:!0},cancelled:{label:"cancelled",icon:"ban",family:"inert"}}),SG=Object.freeze({succeeded:{label:"succeeded",icon:"check-check",family:"good"},failed:{label:"failed",icon:"triangle-alert",family:"bad",double:!0},partial:{label:"partial",icon:"circle-minus",family:"pre"},uncertain:{label:"uncertain",icon:"circle-alert",family:"inert",dash:!0}}),uC=Object.freeze({running:"in_progress",closed:"completed","in-progress":"in_progress"});function GA({state:e,size:t="md",showLabel:i=!0,label:s}){const c=uC[e]??e,d=Jw[c]??SG[c]??Jw.proposed,u=s??d.label;return r.jsxs("span",{className:"pc-state-badge",role:"status","aria-label":`State: ${u}`,"data-state":c,"data-family":d.family,"data-dash":d.dash||void 0,"data-double":d.double||void 0,"data-size":t,children:[r.jsx(be,{name:d.icon,size:t==="sm"?11:13,pulse:d.live}),i?u:null]})}const Zw=Object.freeze({epic:{icon:"layers",prefix:"EPC"},feature:{icon:"box",prefix:"FTR"},story:{icon:"bookmark",prefix:"STY"},task:{icon:"square-check-big",prefix:"TSK"},spec:{icon:"file-text",prefix:"SPC"},backlog:{icon:"inbox",prefix:"BKL"},quick:{icon:"flag",prefix:"QCK"},sprint:{icon:"calendar-range",prefix:"SPR"},adr:{icon:"shield",prefix:"ADR"}});function Ts({type:e,id:t,title:i,blocked:s=!1,interactive:c=!1,onClick:d}){const u=e in Zw?e:"task",p=Zw[u],g=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-work-item__type","data-type":u,"aria-hidden":"true",children:r.jsx(be,{name:p.icon,size:12})}),r.jsx("span",{className:"pc-work-item__id",children:t}),i?r.jsx("span",{className:"pc-work-item__title",children:i}):null,s?r.jsx(be,{name:"circle-slash",size:13,color:"var(--pc-astate-failed-fg)",title:"Blocked"}):null]});return d?r.jsx("button",{type:"button",className:"pc-work-item","data-interactive":!0,onClick:d,children:g}):r.jsx("span",{className:"pc-work-item","data-interactive":c||void 0,children:g})}const OG=Object.freeze({"planr-plan":{family:"plan",icon:"list-tree"},"planr-plan-review":{family:"plan",icon:"list-tree"},"planr-spec":{family:"plan",icon:"file-text"},"planr-ship":{family:"ship",icon:"git-branch"},"planr-land":{family:"ship",icon:"git-pull-request"},"planr-operate":{family:"operate",icon:"gauge"},"planr-ceo-review":{family:"operate",icon:"scroll-text"},"planr-cpo-review":{family:"operate",icon:"scroll-text"},"planr-cto-review":{family:"operate",icon:"scroll-text"},"planr-cmo-review":{family:"operate",icon:"scroll-text"},"planr-coo-review":{family:"operate",icon:"scroll-text"},"planr-challenger-review":{family:"operate",icon:"scroll-text"},"planr-chair-review":{family:"operate",icon:"scroll-text"},"planr-diagram":{family:"diagram",icon:"workflow"},"planr-design":{family:"diagram",icon:"sparkles"},"planr-design-loop":{family:"diagram",icon:"sparkles"},"planr-design-review":{family:"diagram",icon:"sparkles"},"planr-artifact":{family:"diagram",icon:"file-check"},"planr-status":{family:"status",icon:"activity"},"planr-investigate":{family:"status",icon:"search"},"planr-browser-qa":{family:"status",icon:"shield"},"planr-doctor":{family:"status",icon:"life-buoy"},"planr-sync":{family:"status",icon:"refresh-cw"},"planr-dashboard":{family:"status",icon:"gauge"}});function fC({name:e,showIcon:t=!0,size:i="md",muted:s=!1}){const c=OG[e];return r.jsxs("span",{className:"pc-capability","data-family":(c==null?void 0:c.family)??"status","data-size":i,"data-muted":s||void 0,children:[t?r.jsx(be,{name:(c==null?void 0:c.icon)??"square-dashed",size:i==="sm"?11:13}):r.jsx("span",{className:"pc-capability__dot","aria-hidden":"true"}),e]})}const _G=Object.freeze({proposed:"pre",approved:"pre",queued:"pre",in_progress:"active",completed:"good",blocked:"bad",rejected:"bad",deferred:"inert",cancelled:"inert"});function NG({actionId:e,state:t,capability:i,title:s,headingLevel:c=3,summary:d,scope:u,revision:p,route:g,execution:m,deepLink:y,command:A,error:E,compact:b=!1}){const w=c===2?"h2":"h3",j=uC[t]??t,I=_G[j]??"pre",Q=j==="blocked"||j==="rejected",S=j==="completed"||j==="cancelled";return r.jsxs("article",{className:"pc-action-card","data-action":e,"data-family":I,"data-adverse":Q||void 0,"data-faded":S||void 0,"data-live":j==="in_progress"||void 0,"data-compact":b||void 0,children:[r.jsx("div",{className:"pc-action-card__rail","aria-hidden":"true"}),r.jsxs("div",{className:"pc-action-card__body",children:[r.jsxs("div",{className:"pc-action-card__head",children:[r.jsx(GA,{state:j,size:"sm"}),i?r.jsx(fC,{name:i,size:"sm",muted:!0}):null,e?r.jsx("span",{className:"pc-action-card__id",children:e}):null,p!==void 0?r.jsxs("span",{className:"pc-action-card__rev",title:"Protocol revision",children:[r.jsx(be,{name:"git-commit",size:11}),"rev ",p]}):null]}),r.jsxs("div",{className:"pc-action-card__text",children:[r.jsx(w,{className:"pc-action-card__title",children:s}),d?r.jsx("p",{className:"pc-action-card__summary",children:d}):null]}),u&&u.length>0?r.jsx("ul",{className:"pc-action-card__scope",children:u.map(C=>r.jsx("li",{className:"pc-action-card__chip",children:C},C))}):null,m?r.jsxs("div",{className:"pc-action-card__execution",children:[r.jsx("span",{className:"pc-action-card__label",children:"latest execution"}),r.jsx(GA,{state:m,size:"sm"})]}):null,E?r.jsxs("div",{className:"pc-action-card__error",children:[r.jsx(be,{name:"triangle-alert",size:13}),r.jsx("span",{children:E})]}):null,A?r.jsx(Ma,{command:A,size:"sm"}):null,g||y?r.jsxs("div",{className:"pc-action-card__foot",children:[g?r.jsxs("span",{className:"pc-action-card__route",title:"Delivery route",children:[r.jsx(be,{name:"corner-down-right",size:11}),g]}):null,y?r.jsxs("a",{className:"pc-action-card__open",href:y,"aria-label":`Open ${s}`,children:["open",r.jsx(be,{name:"external-link",size:11})]}):null]}):null]})]})}const ku=["epic","feature","story","task","spec","adr","backlog","quick","sprint"],RG=220,Xg=52,Xw=184,Wg=34,Ww=1e3;function uf(e,t){const i=ku.indexOf(e.type),s=ku.indexOf(t.type);return(i<0?ku.length:i)-(s<0?ku.length:s)||e.id.localeCompare(t.id,void 0,{numeric:!0})}function DG(e,t){var Q,S,C;const i=new Set(e.map(_=>_.id)),s=new Map;for(const _ of e)s.set(_.id,[]);for(const _ of t)i.has(_.from)&&i.has(_.to)&&((Q=s.get(_.from))==null||Q.push(_.to));let c=0;const d=new Map,u=new Map,p=[],g=new Set,m=[],y=_=>{d.set(_,c),u.set(_,c),c+=1,p.push(_),g.add(_);for(const T of s.get(_)??[])d.has(T)?g.has(T)&&u.set(_,Math.min(u.get(_)??0,d.get(T)??0)):(y(T),u.set(_,Math.min(u.get(_)??0,u.get(T)??0)));if(u.get(_)!==d.get(_))return;const O=[];for(;p.length>0;){const T=p.pop();if(T===void 0||(g.delete(T),O.push(T),T===_))break}m.push(O)};for(const _ of[...e].sort(uf))d.has(_.id)||y(_.id);const A=new Map;m.forEach((_,O)=>{for(const T of _)A.set(T,O)});const E=m.map(()=>new Set),b=m.map(()=>0);for(const _ of t){const O=A.get(_.from),T=A.get(_.to);O===void 0||T===void 0||O===T||(S=E[O])!=null&&S.has(T)||((C=E[O])==null||C.add(T),b[T]=(b[T]??0)+1)}const w=_=>[...m[_]??[]].sort((O,T)=>O.localeCompare(T,void 0,{numeric:!0}))[0]??"",j=m.map((_,O)=>O).filter(_=>b[_]===0).sort((_,O)=>w(_).localeCompare(w(O),void 0,{numeric:!0})),I=m.map(()=>0);for(;j.length>0;){const _=j.shift();if(_===void 0)break;for(const O of E[_]??[])I[O]=Math.max(I[O]??0,(I[_]??0)+1),b[O]=(b[O]??0)-1,b[O]===0&&(j.push(O),j.sort((T,N)=>w(T).localeCompare(w(N),void 0,{numeric:!0})))}return new Map(e.map(_=>[_.id,I[A.get(_.id)??0]??0]))}function TG(e,t,i){const s=e.map(p=>[...p]),c=new Map,d=p=>{const g=s[p]??[],m=Math.max(1,g.length-1);g.forEach((y,A)=>{c.set(y.id,A/m)})},u=(p,g)=>{const y=(s[p]??[]).map(A=>{const E=t.filter(b=>g==="parents"?b.to===A.id:b.from===A.id).map(b=>g==="parents"?b.from:b.to).filter(b=>{const w=i.get(b);return w!==void 0&&(g==="parents"?w<p:w>p)}).map(b=>c.get(b)).filter(b=>b!==void 0);return{node:A,score:E.length>0?E.reduce((b,w)=>b+w,0)/E.length:null}});y.sort((A,E)=>A.score===null&&E.score===null?uf(A.node,E.node):A.score===null?1:E.score===null?-1:A.score-E.score||uf(A.node,E.node)),s[p]=y.map(({node:A})=>A),d(p)};for(let p=0;p<2;p+=1){s.forEach((g,m)=>{d(m)});for(let g=1;g<s.length;g+=1)u(g,"parents");for(let g=s.length-2;g>=0;g-=1)u(g,"children")}return s}function pC({node:e,depth:t,byId:i,edges:s,selectedId:c,onSelect:d}){const u=s.filter(g=>g.from===e.id).map(g=>i.get(g.to)).filter(g=>g!==void 0),p=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"pc-graph-outline__dot","data-type":e.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-outline__id",children:e.id}),r.jsx("span",{className:"pc-graph-outline__label",children:e.label}),e.blocked?r.jsx("span",{className:"pc-graph-outline__blocked",children:"blocked"}):null]});return r.jsxs("li",{className:"pc-graph-outline__item","data-depth":t===0?"root":void 0,children:[d?r.jsx("button",{type:"button",className:"pc-graph-outline__row","data-selected":c===e.id||void 0,onClick:()=>d(e.id),children:p}):r.jsx("span",{className:"pc-graph-outline__row",children:p}),u.length>0?r.jsx("ul",{className:"pc-graph-outline__list",children:u.map(g=>r.jsx(pC,{node:g,depth:t+1,byId:i,edges:s,selectedId:c,onSelect:d},g.id))}):null]})}function kG({nodes:e,edges:t,view:i="graph",flow:s="source-to-target",selectedId:c,onSelect:d,height:u}){const p=new Map(e.map(Q=>[Q.id,Q])),g=s==="target-to-source"?t.map(Q=>({...Q,from:Q.to,to:Q.from})):t;if(i==="outline"){const Q=e.filter(S=>!g.some(C=>C.to===S.id));return r.jsx("div",{className:"pc-graph-outline",children:r.jsx("ul",{className:"pc-graph-outline__list",children:Q.map(S=>r.jsx(pC,{node:S,depth:0,byId:p,edges:g,selectedId:c,onSelect:d},S.id))})})}const m=DG(e,g),y=Math.max(0,...m.values())+1,A=TG(Array.from({length:y},(Q,S)=>[...e].filter(C=>m.get(C.id)===S).sort(uf)),g,m),E=Math.max(1,...A.map(Q=>Q.length)),b=Math.max(u??0,E*Xg+78),w=Math.max(680,y*RG+48),j=new Set(g.filter(Q=>Q.active).flatMap(Q=>[Q.from,Q.to])),I=new Map;return A.forEach((Q,S)=>{const C=y===1?50:7+S/(y-1)*86,_=48+(E-Q.length)*Xg/2;Q.forEach((O,T)=>{I.set(O.id,{x:C/100*Ww,xPercent:C,y:_+T*Xg})})}),r.jsx("figure",{className:"pc-graph","aria-label":"Dependency graph","data-tracing":j.size>0||void 0,style:{height:u},children:r.jsxs("div",{className:"pc-graph__canvas",style:{minWidth:w,height:b},children:[r.jsx("div",{className:"pc-graph__ranks","aria-hidden":"true",children:A.map((Q,S)=>{const C=y===1?50:7+S/(y-1)*86;return r.jsxs("span",{className:"pc-graph__rank",style:{left:`${C}%`},children:[S===0?"foundation":`stage ${S+1}`," · ",Q.length]},S)})}),r.jsxs("svg",{className:"pc-graph__edges",viewBox:`0 0 ${Ww} ${b}`,preserveAspectRatio:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Dependency edges"}),g.map(Q=>{const S=I.get(Q.from),C=I.get(Q.to);if(!S||!C)return null;const _=S.x,O=S.y+Wg/2,T=C.x,N=C.y+Wg/2,$=(_+T)/2;return r.jsx("path",{className:"pc-graph__edge","data-blocked":Q.blocked||void 0,"data-active":Q.active||void 0,d:`M${_},${O} C${$},${O} ${$},${N} ${T},${N}`,vectorEffect:"non-scaling-stroke"},`${Q.from}-${Q.to}`)})]}),e.map(Q=>{const S=I.get(Q.id);return S?r.jsxs("button",{type:"button",className:"pc-graph-node","data-selected":c===Q.id||void 0,"data-related":j.has(Q.id)||void 0,"data-blocked":Q.blocked||void 0,style:{left:`calc(${S.xPercent}% - ${Xw/2}px)`,top:S.y,width:Xw,height:Wg},onClick:d?()=>d(Q.id):void 0,title:`${Q.id} · ${Q.label}`,"aria-label":`${Q.id}: ${Q.label}${Q.blocked?", blocked":""}`,children:[r.jsx("span",{className:"pc-graph-node__dot","data-type":Q.type,"aria-hidden":"true"}),r.jsx("span",{className:"pc-graph-node__code",children:Q.id}),r.jsx("span",{className:"pc-graph-node__label",children:Q.label}),Q.blocked?r.jsx(be,{name:"circle-slash",size:11,color:"var(--pc-astate-failed-fg)"}):null]},Q.id):null})]})})}function MG({name:e,segments:t,day:i,days:s,compact:c=!1}){const d=t.reduce((p,g)=>p+g.count,0),u=d||1;return r.jsxs("div",{className:"pc-sprint","data-compact":c||void 0,children:[r.jsxs("div",{className:"pc-sprint__head",children:[r.jsx("span",{className:"pc-sprint__name",children:e}),s?r.jsxs("span",{className:"pc-sprint__day",children:["day ",i,"/",s]}):null,r.jsxs("span",{className:"pc-sprint__total",children:[d," items"]})]}),r.jsx("div",{className:"pc-sprint__bar",role:"img","aria-label":`${e} progress`,children:t.map(p=>r.jsx("span",{className:"pc-sprint__seg","data-state":p.state,style:{width:`${p.count/u*100}%`},title:`${p.label??p.state}: ${p.count}`},p.state))}),c?null:r.jsx("div",{className:"pc-sprint__legend",children:t.map(p=>r.jsxs("span",{className:"pc-sprint__legend-item",children:[r.jsx("span",{className:"pc-sprint__dot","data-state":p.state}),p.label??p.state," ",r.jsx("span",{className:"pc-sprint__count",children:p.count})]},p.state))})]})}function GG({children:e,tone:t="default"}){return r.jsx("span",{className:"pc-prose","data-tone":t,children:e})}function mt({children:e}){return r.jsx("span",{className:"pc-absent",children:e??"—"})}function Qt({label:e,children:t,mono:i=!1}){return r.jsxs("div",{className:"pc-field",children:[r.jsx("span",{className:"pc-field__label",children:e}),r.jsx("span",{className:"pc-field__value","data-mono":i||void 0,children:t})]})}function YG({counts:e,total:t,active:i,onPick:s}){return r.jsxs("div",{className:"pc-tally",children:[r.jsx("div",{className:"pc-tally__cells",children:ql.map(c=>s?r.jsxs("button",{type:"button",className:"pc-tally__cell","data-active":i===c||void 0,onClick:()=>s(c),children:[r.jsx(Gi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c):r.jsxs("span",{className:"pc-tally__cell",children:[r.jsx(Gi,{status:c,size:"sm"}),r.jsx("span",{className:"pc-tally__value",children:e[c]??0})]},c))}),r.jsxs("div",{className:"pc-tally__total",children:[r.jsx("span",{className:"pc-tally__label",children:"total"}),r.jsx("span",{className:"pc-tally__value",children:t})]})]})}const Lt=B.forwardRef(function({children:t,className:i,disabled:s=!1,disabledReason:c,id:d,onInvoke:u,pendingLabel:p="Waiting for durable acceptance",tabIndex:g,title:m,variant:y="primary","aria-label":A,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w},j){const I=B.useId(),Q=B.useRef(!1),S=B.useRef(!0),[C,_]=B.useState(!1);B.useEffect(()=>(S.current=!0,()=>{S.current=!1}),[]);const O=C?p:c,T=s||C;async function N(){if(!(T||Q.current||!u)){Q.current=!0,_(!0);try{await u()}finally{Q.current=!1,S.current&&_(!1)}}}const $=r.jsxs("button",{ref:j,type:"button",id:d,className:`op-governed-button${i?` ${i}`:""}`,"data-variant":y,title:m,tabIndex:g,disabled:T,"aria-label":A,"aria-controls":E,"aria-expanded":b,"aria-haspopup":w,"aria-busy":C||void 0,"aria-describedby":O?I:void 0,onClick:N,children:[C?r.jsx("span",{className:"op-governed-button__spinner","aria-hidden":"true"}):null,r.jsx("span",{children:C?p:t})]});return r.jsxs("div",{className:"op-governed-action","data-governed-action-state":C?"pending":"idle",children:[O?r.jsx(Rk,{delayDuration:300,children:r.jsxs(Tk,{children:[r.jsx(kk,{asChild:!0,children:r.jsx("span",{children:$})}),r.jsx(Yk,{children:r.jsx(Hk,{className:"op-governed-tooltip",sideOffset:8,children:O})})]})}):$,O?r.jsx("p",{className:"op-governed-reason",id:I,children:O}):null]})}),HG=Object.freeze({proposed:"pending",approved:"active",queued:"pending",in_progress:"active",completed:"settled",blocked:"alert",rejected:"alert",deferred:"neutral",cancelled:"neutral",succeeded:"settled",failed:"alert",partial:"pending",uncertain:"pending",created:"neutral",observing:"active",advising:"active",challenging:"active",synthesizing:"active",awaiting_review:"pending",executing:"active",verifying:"active",closed:"settled",current:"active",available:"neutral",complete:"settled",skipped:"neutral",revisited:"pending",waiting:"pending",normal:"active",quiet:"neutral",custody:"pending",divergent:"alert",corrupt:"alert",incompatible:"alert",restored:"settled","not-required":"neutral",verified:"settled",unverified:"pending","insufficient-evidence":"pending",open:"pending",accepted:"active",resolved:"settled",superseded:"neutral",supported:"settled",contradicted:"alert",unknown:"neutral",restricted:"neutral",ready:"active","read-only":"neutral",stale:"pending",offline:"alert"});function zG(e){return e.replaceAll("_"," ").replaceAll("-"," ")}function wa({state:e,label:t}){return r.jsx("span",{className:"pc-state","data-tone":HG[e]??"neutral","data-state":e,children:t??zG(e)})}function Da({label:e,value:t,tone:i="default",icon:s,delta:c,trend:d}){return r.jsxs("li",{className:"pc-metric","data-tone":i,children:[r.jsxs("span",{className:"pc-metric__label",children:[s?r.jsx("span",{className:"pc-metric__icon","aria-hidden":"true",children:s}):null,e]}),r.jsxs("span",{className:"pc-metric__row",children:[r.jsx("span",{className:"pc-metric__value",children:t}),c?r.jsx("span",{className:"pc-metric__delta","data-trend":d??"up",children:c}):null]})]})}function ks({items:e}){return r.jsx("dl",{className:"pc-def-grid",children:e.map(t=>r.jsxs("div",{className:"pc-def-grid__row",children:[r.jsx("dt",{className:"pc-def-grid__term",children:t.term}),r.jsx("dd",{className:"pc-def-grid__desc","data-mono":t.mono??!1,children:t.description})]},t.term))})}const UG={booting:EM,"first-use":sM,"ready-to-resume":lG,unavailable:BM,incompatible:iC,offline:$0};function we({state:e,eyebrow:t,title:i,description:s,detail:c,actions:d,headingId:u}){const p=UG[e],g=e==="offline"||e==="incompatible",m=B.useId(),y=u??`dashboard-state-panel-${m}`;return r.jsxs("section",{className:"op-state-panel","data-state":e,"aria-labelledby":y,role:g?"alert":"status","aria-live":g?"assertive":"polite",children:[r.jsx("span",{className:"op-state-panel__signal","aria-hidden":"true"}),r.jsxs("div",{className:"op-state-panel__body",children:[r.jsx("p",{className:"op-eyebrow",children:t}),r.jsxs("div",{className:"op-state-panel__heading",children:[r.jsx(p,{"aria-hidden":"true"}),r.jsx("h2",{id:y,children:i})]}),r.jsx("p",{children:s}),c?r.jsx("p",{className:"op-state-panel__detail",children:c}):null]}),d?r.jsx("div",{className:"op-state-panel__actions",children:d}):null]})}const $G=/(?:^|[\s"'`])\/(?:Users|home|opt|var|private|tmp)\//iu;function Aa(e){return e==null||e.length===0?"Not returned":$G.test(e)?"Redacted":e}function LG({embeddedBuildId:e,bootstrap:t}){const i=[["Embedded dashboard build",e],["Served dashboard build",Aa(t==null?void 0:t.ui.buildId)],["Expected dashboard build",Aa(t==null?void 0:t.ui.expectedBuildId)],["Asset manifest hash",Aa(t==null?void 0:t.ui.assetManifestHash)],["OpenPlanr package version",Aa(t==null?void 0:t.server.packageVersion)],["Bootstrap protocol",Aa(t==null?void 0:t.protocolVersion)],["Planning graph schema",Aa(t==null?void 0:t.capabilities.planningGraph.schemaVersion)],["Operate experience protocol",Aa(t==null?void 0:t.capabilities.operateExperience.protocolVersion)],["Operate commands transport",Aa(t==null?void 0:t.capabilities.operateCommands.transportVersion)],["Diagnostics capability",t!=null&&t.capabilities.diagnostics.available?"available":"unavailable"],["Operate commands capability",t!=null&&t.capabilities.operateCommands.available?"available":"unavailable"],["Compatibility status",Aa(t==null?void 0:t.compatibility.status)],["Compatibility reasons",t!=null&&t.compatibility.reasonCodes.length?t.compatibility.reasonCodes.join(" · "):"None"],["Project name",Aa(t==null?void 0:t.project.name)],["Project branch",Aa(t==null?void 0:t.project.branch)],["Loopback origin",Aa(t==null?void 0:t.origin)]],s=i.map(([c,d])=>`${c}: ${d}`).join(`
545
- `);return r.jsxs("section",{className:"op-diagnostics__summary","aria-labelledby":"dashboard-support-summary-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Support bundle"}),r.jsx("h2",{id:"dashboard-support-summary-title",children:"Access-safe installation summary"})]}),r.jsx("p",{children:"Only public bootstrap fields appear here. Private paths, bodies, and credentials never do."})]}),r.jsx("dl",{"aria-label":"Support summary fields",children:i.map(([c,d])=>r.jsxs("div",{children:[r.jsx("dt",{children:c}),r.jsx("dd",{children:r.jsx("code",{children:d})})]},c))}),r.jsx("textarea",{className:"op-diagnostics__bundle",readOnly:!0,"aria-label":"Support bundle text",value:s})]})}function PG(e){return e==="pass"?"Pass":e==="warn"?"Attention":e==="pending"?"Checking":"Fail"}function FG(e){return e.some(t=>t.status==="fail")?{state:"incompatible",title:"Dashboard compatibility needs attention",description:"OpenPlanr certified at least one installation, package, or API problem. Mutation and durable work remain unavailable until remediation."}:e.some(t=>t.status==="pending")?{state:"booting",title:"Checking dashboard compatibility",description:"Diagnostics remain read-only while bootstrap custody is verified."}:e.some(t=>t.status==="warn")?{state:"ready-to-resume",title:"Dashboard is usable with certified limitations",description:"Core navigation remains available, but one or more optional capabilities or live-update channels need attention."}:{state:"ready-to-resume",title:"Dashboard compatibility is certified",description:"Installed assets, API versions, and optional dependencies match the served bootstrap contract."}}function VG({embeddedBuildId:e,bootstrap:t,bootPhase:i,bootDetail:s,connection:c,onReturn:d}){const u=DR({embeddedBuildId:e,bootstrap:t,bootPhase:i,bootDetail:s,connection:c}),p=FG(u);return r.jsxs("section",{className:"op-workspace op-diagnostics","data-route-kind":"system.diagnostics","aria-labelledby":"dashboard-diagnostics-title",children:[r.jsxs("header",{className:"op-diagnostics__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Diagnostics"}),r.jsx("h1",{id:"dashboard-diagnostics-title",children:"Compatibility and installation checks"}),r.jsx("p",{children:"These checks explain why the dashboard can or cannot present durable Planning and Operate state. They never infer authority, repair packages, or expose private installation paths."})]}),d?r.jsx("button",{type:"button",className:"op-inline-action",onClick:d,children:"Return to dashboard"}):null]}),r.jsx(we,{state:p.state,eyebrow:"Current posture",title:p.title,description:p.description}),r.jsxs("section",{className:"op-diagnostics__findings","aria-labelledby":"dashboard-diagnostics-findings-title",children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Certified checks"}),r.jsx("h2",{id:"dashboard-diagnostics-findings-title",children:"Boot through optional dependencies"})]}),r.jsx("p",{children:"Each row is derived only from the public bootstrap envelope and current connection state."})]}),r.jsx("ol",{className:"op-diagnostics__list",children:u.map(g=>r.jsx("li",{"data-diagnostic":g.category,"data-status":g.status,children:r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("p",{className:"op-eyebrow",children:g.category.replaceAll("-"," ")}),r.jsx("h3",{children:g.title}),r.jsx("span",{className:"op-diagnostics__status",children:PG(g.status)})]}),r.jsx("p",{children:g.detail}),r.jsxs("p",{className:"op-diagnostics__remediation",children:[r.jsx("strong",{children:"Next safe step:"})," ",g.remediation]})]})},g.category))})]}),r.jsx(LG,{embeddedBuildId:e,bootstrap:t}),r.jsx("p",{className:"op-authority-note",children:"Diagnostics do not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const qG=Object.freeze({kind:"local-operate-review-index",schemaVersion:"1.0.0",readOnly:!0,pagination:Object.freeze({page:1,pageSize:12,pageCount:1,total:0}),items:Object.freeze([])});function Ni(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function KG(e,t){return t.every(i=>typeof e[i]=="string")}function hC(e){if(!Ni(e)||!Ni(e.counts))return!1;const t=e.counts;return KG(e,["cycleId","title","summary","signal","updatedAt","href"])&&["decisions","actions","gaps","issues"].every(i=>Number.isSafeInteger(t[i]))}function JG(e){if(!Ni(e)||e.kind!=="local-operate-review-index"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!Ni(e.pagination)||!Array.isArray(e.items)||!e.items.every(hC))throw new Error("OpenPlanr returned an invalid local review index.");if(!["page","pageSize","pageCount","total"].every(t=>Number.isSafeInteger(e.pagination[t])))throw new Error("OpenPlanr returned invalid local review pagination.");return e}function ZG(e){const t=Ni(e)&&Ni(e.item)?e.item:null,i=["decisions","actions","gaps","risks","issues","lenses","evidence"],s=t!==null&&typeof t.markdown=="string"&&Ni(t.scope)&&Ni(t.recovery)&&i.every(c=>Array.isArray(t[c]));if(!Ni(e)||e.kind!=="local-operate-review"||e.schemaVersion!=="1.0.0"||e.readOnly!==!0||!t||!s||!hC(t))throw new Error("OpenPlanr returned an invalid local review.");return e}async function gC(e,t){const i=await fetch(e,{headers:{accept:"application/json"},signal:t});if(!i.ok)throw new Error(`OpenPlanr could not read this report (${i.status}).`);return i.json()}function XG(e,t){const[i,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{const c=new AbortController;let d=!0;const u=async()=>{try{const g=new URL("/api/operate/local-reviews",e);g.searchParams.set("page",String(t)),g.searchParams.set("pageSize","12");const m=JG(await gC(g,c.signal));d&&s({status:"ready",data:m,error:null})}catch(g){d&&!c.signal.aborted&&s(m=>({status:"failed",data:m.data,error:g instanceof Error?g.message:"Review index unavailable."}))}};u();const p=window.setInterval(()=>void u(),2e3);return()=>{d=!1,c.abort(),window.clearInterval(p)}},[e,t]),i}function WG(e,t){const[i,s]=B.useState({status:"loading",data:null,error:null});return B.useEffect(()=>{if(!t){s({status:"loading",data:null,error:null});return}const c=new AbortController;let d=!0;const u=async()=>{try{const g=new URL(`/api/operate/local-reviews/${encodeURIComponent(t)}`,e),m=ZG(await gC(g,c.signal));d&&s({status:"ready",data:m,error:null})}catch(g){d&&!c.signal.aborted&&s(m=>({status:"failed",data:m.data,error:g instanceof Error?g.message:"Review unavailable."}))}};u();const p=window.setInterval(()=>void u(),2e3);return()=>{d=!1,c.abort(),window.clearInterval(p)}},[t,e]),i}function eY(e){const t=new Date(e);return Number.isNaN(t.valueOf())?"Updated recently":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(t)}function ml(e,t){const i=new Map;return e.map(s=>{const c=t(s),d=(i.get(c)??0)+1;return i.set(c,d),Object.freeze({key:`${c}:${d}`,value:s})})}function gs({text:e}){const t=ml(e.split(/(\*\*[^*]+\*\*|`[^`]+`)/gu),i=>i);return r.jsx(r.Fragment,{children:t.map(({key:i,value:s})=>s.startsWith("**")&&s.endsWith("**")?r.jsx("strong",{children:s.slice(2,-2)},i):s.startsWith("`")&&s.endsWith("`")?r.jsx("code",{children:s.slice(1,-1)},i):r.jsx(B.Fragment,{children:s},i))})}function tY(e){var c;const t=e.replace(/\r\n?/gu,`
546
- `).split(`
547
- `),i=[];let s=0;for(;s<t.length;){const d=t[s].trim();if(!d){s+=1;continue}const u=/^(#{1,3})\s+(.+)$/u.exec(d);if(u){i.push({kind:"heading",depth:u[1].length,text:u[2]}),s+=1;continue}if(d.startsWith("|")&&((c=t[s+1])!=null&&c.trim().match(/^\|?\s*:?-{3,}/u))){const g=[],m=y=>y.replace(/^\||\|$/gu,"").split("|").map(A=>A.trim());for(g.push(m(d)),s+=2;s<t.length&&t[s].trim().startsWith("|");)g.push(m(t[s].trim())),s+=1;i.push({kind:"table",rows:g});continue}if(/^[-*]\s+/u.test(d)){const g=[];for(;s<t.length&&/^[-*]\s+/u.test(t[s].trim());)g.push(t[s].trim().replace(/^[-*]\s+/u,"")),s+=1;i.push({kind:"list",items:g});continue}if(d.startsWith(">")){const g=[];for(;s<t.length&&t[s].trim().startsWith(">");)g.push(t[s].trim().replace(/^>\s?/u,"")),s+=1;i.push({kind:"quote",text:g.join(" ")});continue}const p=[d];for(s+=1;s<t.length&&t[s].trim()&&!/^(#{1,3})\s+/u.test(t[s].trim())&&!/^[-*]\s+/u.test(t[s].trim())&&!t[s].trim().startsWith("|")&&!t[s].trim().startsWith(">");)p.push(t[s].trim()),s+=1;i.push({kind:"paragraph",text:p.join(" ")})}return i}function nY({markdown:e}){const t=B.useMemo(()=>ml(tY(e),i=>JSON.stringify(i)),[e]);return r.jsx("article",{className:"pc-local-review__report",children:t.map(({key:i,value:s})=>{if(s.kind==="heading")return s.depth===1?null:s.depth===2?r.jsx("h2",{children:r.jsx(gs,{text:s.text})},i):r.jsx("h3",{children:r.jsx(gs,{text:s.text})},i);if(s.kind==="paragraph")return r.jsx("p",{children:r.jsx(gs,{text:s.text})},i);if(s.kind==="quote")return r.jsx("blockquote",{children:r.jsx(gs,{text:s.text})},i);if(s.kind==="list")return r.jsx("ul",{children:s.items.map(u=>r.jsx("li",{children:r.jsx(gs,{text:u})},u))},i);const[c,...d]=s.rows;return r.jsx("section",{className:"pc-local-review__table-wrap","aria-label":"Scrollable report table",children:r.jsxs("table",{children:[r.jsx("thead",{children:r.jsx("tr",{children:ml(c,u=>u).map(({key:u,value:p})=>r.jsx("th",{children:r.jsx(gs,{text:p})},u))})}),r.jsx("tbody",{children:ml(d,u=>u.join("|")).map(({key:u,value:p})=>r.jsx("tr",{children:ml(p,g=>g).map(({key:g,value:m})=>r.jsx("td",{children:r.jsx(gs,{text:m})},g))},u))})]})},i)})})}function Km(e){return e.toUpperCase()==="P0"?"danger":e.toUpperCase()==="P1"?"warn":e.toUpperCase()==="P2"?"info":"neutral"}function aY({counts:e}){return r.jsxs("span",{className:"pc-local-review__counts",children:[r.jsxs("span",{children:[e.decisions," decisions"]}),r.jsxs("span",{children:[e.actions," actions"]}),r.jsxs("span",{children:[e.gaps," gaps"]}),r.jsxs("span",{children:[e.issues," issues"]})]})}function AC({item:e}){const t=[["Decision queue",e.counts.decisions,"inbox"],["Proposed actions",e.counts.actions,"git-pull-request"],["Evidence gaps",e.counts.gaps,"circle-alert"],["Lenses reported",e.lenses.filter(i=>i.present).length,"layers"]];return r.jsx("section",{className:"pc-local-review__metrics","aria-label":"Cycle summary",children:t.map(([i,s,c])=>r.jsxs("div",{className:"pc-local-review__metric",children:[r.jsxs("span",{children:[r.jsx(be,{name:c,size:14}),i]}),r.jsx("strong",{children:s})]},i))})}function mC({item:e}){const t=e.decisions[0];return r.jsxs("section",{className:"pc-local-review__signal","aria-labelledby":"local-signal-title",children:[r.jsxs("div",{className:"pc-local-review__signal-copy",children:[r.jsxs("span",{className:"pc-local-review__kicker",children:[r.jsx("span",{className:"pc-local-review__signal-dot"}),"Board signal · ",e.signal]}),r.jsx("h2",{id:"local-signal-title",children:(t==null?void 0:t.title)??"Review the latest operating cycle"}),r.jsx("p",{children:(t==null?void 0:t.whyNow)||e.summary})]}),r.jsxs("div",{className:"pc-local-review__next-step",children:[r.jsx("span",{children:"First verified move"}),r.jsx("strong",{children:(t==null?void 0:t.firstStep)||"Open the cycle record and assign its next decision."}),r.jsxs("a",{href:"#/operate/inbox",children:["Open decision inbox ",r.jsx(be,{name:"arrow-right",size:13})]})]})]})}function iY({decision:e,compact:t=!1}){return r.jsxs("article",{className:"pc-local-review__decision","data-priority":e.priority.toLowerCase(),children:[r.jsxs("div",{className:"pc-local-review__decision-head",children:[r.jsx("span",{className:"pc-local-review__item-id",children:e.id}),r.jsx(ra,{tone:Km(e.priority),variant:"outline",mono:!0,children:e.priority}),r.jsx("h3",{children:e.title})]}),r.jsx("p",{children:e.recommendation||e.whyNow}),r.jsxs("div",{className:"pc-local-review__decision-meta",children:[r.jsxs("span",{children:[r.jsx("b",{children:"Owner"}),e.owner]}),r.jsxs("span",{children:[r.jsx("b",{children:"Depends on"}),e.dependencies]})]}),t?null:r.jsxs("details",{children:[r.jsx("summary",{children:"Rationale and verification"}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Why now"}),r.jsx("dd",{children:e.whyNow||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:e.firstStep||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:e.expectedResult||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Check"}),r.jsx("dd",{children:e.check||"Not recorded"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsx("dd",{children:e.confidence})]}),e.dissent?r.jsxs("div",{children:[r.jsx("dt",{children:"Dissent"}),r.jsx("dd",{children:e.dissent})]}):null]})]})]})}function Jm({decisions:e,limit:t}){const i=typeof t=="number"?e.slice(0,t):e;return i.length===0?r.jsx(tn,{icon:"inbox",title:"No decisions recorded",description:"This cycle did not produce a decision queue."}):r.jsx("div",{className:"pc-local-review__decision-grid",children:i.map(s=>r.jsx(iY,{decision:s,compact:typeof t=="number"},s.id))})}function Zm({actions:e,limit:t}){const i=typeof t=="number"?e.slice(0,t):e;return i.length===0?r.jsx(tn,{icon:"git-pull-request",title:"No actions recorded",description:"No action rows were found in this cycle."}):r.jsx("div",{className:"pc-local-review__action-list",children:i.map(s=>r.jsxs("a",{className:"pc-local-review__action",href:`#/operate/actions/${encodeURIComponent(s.id)}`,children:[r.jsx("span",{className:"pc-local-review__item-id",children:s.id}),r.jsxs("span",{className:"pc-local-review__action-copy",children:[r.jsx("strong",{children:s.action}),r.jsx("span",{children:s.firstStep}),r.jsx("small",{children:s.owner})]}),r.jsxs("span",{className:"pc-local-review__action-status",children:[r.jsx(ra,{tone:Km(s.priority),variant:"outline",mono:!0,children:s.priority}),r.jsx(ra,{tone:s.state==="needs-owner"?"warn":"neutral",children:s.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx(be,{name:"chevron-right",size:14})]},s.id))})}function yC({lenses:e}){return r.jsx("div",{className:"pc-local-review__lenses",children:e.map(t=>r.jsxs("article",{className:"pc-local-review__lens","data-present":t.present||void 0,children:[r.jsxs("div",{children:[r.jsx("span",{className:"pc-local-review__lens-mark",children:t.name.slice(0,2)}),r.jsxs("span",{children:[r.jsx("strong",{children:t.name}),r.jsxs("small",{children:[t.findings," ",t.name==="Challenger"?"exceptions":t.name==="Chair"?"decisions":"findings"]})]})]}),r.jsx(ra,{tone:t.signal.includes("insufficient")||!t.present?"warn":t.name==="Challenger"?"info":"success",children:t.signal}),t.informed?r.jsx("p",{children:t.informed}):null]},t.name))})}function Tf({items:e,icon:t="circle-alert"}){return e.length===0?r.jsx(tn,{icon:t,title:"Nothing recorded",description:"No items were found in this section."}):r.jsx("div",{className:"pc-local-review__named-list",children:e.map(i=>r.jsxs("article",{children:[r.jsxs("span",{children:[r.jsx(be,{name:t,size:14}),i.id]}),r.jsxs("div",{children:[r.jsx("h3",{children:i.title}),i.detail?r.jsx("p",{children:i.detail}):null]})]},i.id))})}function rY({evidence:e}){const[t,i]=B.useState(1),s=20,c=Math.max(1,Math.ceil(e.length/s)),d=Math.min(t,c),u=e.slice((d-1)*s,d*s);return e.length===0?r.jsx(tn,{icon:"file-check",title:"No source references extracted",description:"The board report did not include path-addressable evidence."}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-local-review__evidence-list",children:u.map(p=>r.jsxs("article",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:p.id}),r.jsx("code",{children:p.reference}),r.jsx("span",{children:p.kind}),r.jsx(ra,{tone:"success",icon:"check",children:p.freshness})]},p.id))}),c>1?r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Evidence pages",children:[r.jsx(ba,{size:"sm",icon:"chevron-left",disabled:d===1,onClick:()=>i(d-1),children:"Previous"}),r.jsxs("span",{children:[e.length," references · page ",d," of ",c]}),r.jsx(ba,{size:"sm",iconAfter:"chevron-right",disabled:d===c,onClick:()=>i(d+1),children:"Next"})]}):null]})}function sY({items:e,history:t=!1}){return r.jsx("div",{className:"pc-local-review__list","data-history":t||void 0,children:e.map((i,s)=>{const c=e[s+1];return r.jsxs("a",{className:"pc-local-review__item",href:i.href,children:[r.jsx("span",{className:"pc-local-review__item-glyph",children:r.jsx(be,{name:t?"history":"calendar-days",size:15})}),r.jsxs("span",{className:"pc-local-review__item-copy",children:[r.jsxs("span",{className:"pc-local-review__item-title",children:[r.jsx("strong",{children:i.title}),r.jsx(ra,{tone:i.signal.includes("act")?"warn":"info",children:i.signal})]}),r.jsx("span",{children:i.summary}),r.jsx(aY,{counts:i.counts}),t&&c?r.jsxs("small",{children:[i.counts.actions-c.counts.actions>=0?"+":"",i.counts.actions-c.counts.actions," actions ·"," ",i.counts.gaps-c.counts.gaps>=0?"+":"",i.counts.gaps-c.counts.gaps," gaps from prior cycle"]}):null]}),r.jsx("span",{className:"pc-local-review__item-time",children:eY(i.updatedAt)}),r.jsx(be,{name:"chevron-right",size:14})]},i.cycleId)})})}function oY({index:e,onPage:t}){return e.pagination.pageCount<=1?null:r.jsxs("nav",{className:"pc-local-review__pagination","aria-label":"Operating review pages",children:[r.jsx(ba,{size:"sm",icon:"chevron-left",disabled:e.pagination.page===1,onClick:()=>t(e.pagination.page-1),children:"Previous"}),r.jsxs("span",{children:["Page ",e.pagination.page," of ",e.pagination.pageCount]}),r.jsx(ba,{size:"sm",iconAfter:"chevron-right",disabled:e.pagination.page===e.pagination.pageCount,onClick:()=>t(e.pagination.page+1),children:"Next"})]})}function va({title:e,description:t,action:i,children:s}){return r.jsxs("section",{className:"pc-local-review__section",children:[r.jsxs("header",{children:[r.jsxs("div",{children:[r.jsx("h2",{children:e}),t?r.jsx("p",{children:t}):null]}),i]}),s]})}function ex({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(mC,{item:e}),r.jsx(AC,{item:e}),r.jsxs("div",{className:"pc-local-review__split",children:[r.jsx(va,{title:"Priority decisions",description:"Recommendations waiting for owner disposition.",action:r.jsx("a",{href:"#/operate/inbox",children:"View all"}),children:r.jsx(Jm,{decisions:e.decisions,limit:2})}),r.jsx(va,{title:"Lens coverage",description:"Independent perspectives and where they converged.",children:r.jsx(yC,{lenses:e.lenses})})]}),r.jsx(va,{title:"Next actions",description:"Concrete first steps extracted from the Chair action plan.",action:r.jsx("a",{href:"#/operate/actions",children:"Open register"}),children:r.jsx(Zm,{actions:e.actions,limit:4})}),r.jsx(va,{title:"Uncertainty to resolve",description:"Evidence gaps that can change the decision order.",action:r.jsx("a",{href:"#/operate/evidence",children:"Inspect evidence"}),children:r.jsx(Tf,{items:e.gaps.slice(0,3)})})]})}function cY({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(Wt,{tone:"info",title:"Recommendations require human disposition",children:"This local cycle can inform a choice, but it cannot approve work or run commands. Assign and decide through the governed Operate gateway when available."}),r.jsxs("div",{className:"pc-local-review__inbox-summary",children:[r.jsxs("span",{children:[r.jsx("b",{children:e.decisions.length})," decisions waiting"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.actions.filter(t=>t.state==="needs-owner").length})," ownership gaps"]}),r.jsxs("span",{children:[r.jsx("b",{children:e.gaps.length})," evidence gaps"]})]}),r.jsx(Jm,{decisions:e.decisions}),r.jsx(va,{title:"Decision-changing gaps",description:"Resolve these before confidence is treated as durable.",children:r.jsx(Tf,{items:e.gaps})})]})}function lY({item:e,actionId:t}){const i=e.actions.find(s=>s.id===t);return i?r.jsx(vt,{padding:0,children:r.jsxs("article",{className:"pc-local-review__action-detail",children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:i.id}),r.jsx(ra,{tone:Km(i.priority),variant:"outline",children:i.priority}),r.jsx(ra,{tone:i.state==="needs-owner"?"warn":"neutral",children:i.state==="needs-owner"?"Needs owner":"Proposed"})]}),r.jsx("h2",{children:i.action}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Suggested owner"}),r.jsx("dd",{children:i.owner})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"First step"}),r.jsx("dd",{children:i.firstStep})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Success measure"}),r.jsx("dd",{children:i.successMeasure})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verification"}),r.jsx("dd",{children:i.check})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Dependencies"}),r.jsx("dd",{children:i.dependencies})]})]}),r.jsx(Wt,{tone:"info",title:"Read-only proposal",children:"Execution state begins only after this proposal is accepted through an actor-bound Operate session."})]})}):r.jsxs(Wt,{tone:"warn",title:"Action not found",children:["This cycle does not contain ",t,"."]})}function dY({item:e}){return r.jsxs(r.Fragment,{children:[r.jsx(Wt,{tone:"info",title:"Expected outcomes, awaiting observed evidence",children:"The local review defines success and checks. It does not claim these outcomes occurred."}),r.jsx("div",{className:"pc-local-review__outcomes",children:e.decisions.map(t=>r.jsxs("article",{children:[r.jsxs("header",{children:[r.jsx("span",{className:"pc-local-review__item-id",children:t.id}),r.jsx(ra,{tone:"neutral",children:"Awaiting evidence"})]}),r.jsx("h3",{children:t.expectedResult||t.title}),r.jsxs("div",{children:[r.jsx("span",{children:"Verification"}),r.jsx("p",{children:t.check||"No check recorded."})]})]},t.id))})]})}function uY({item:e}){const{recovery:t}=e;return r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"pc-local-review__integrity","data-complete":t.complete||void 0,children:[r.jsx("span",{children:r.jsx(be,{name:t.complete?"shield":"triangle-alert",size:20})}),r.jsxs("div",{children:[r.jsx("small",{children:"Local cycle integrity"}),r.jsx("h2",{children:t.complete?"Complete review bundle detected":"Review bundle is incomplete"}),r.jsxs("p",{children:[t.presentFiles.length," readable files · ",Math.ceil(t.totalBytes/1024)," ","KB · ",t.custody]})]}),r.jsx(ra,{tone:t.complete?"success":"warn",children:t.complete?"Complete":"Attention"})]}),r.jsxs("div",{className:"pc-local-review__recovery-grid",children:[r.jsx(va,{title:"Present records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.presentFiles.map(i=>r.jsxs("span",{children:[r.jsx(be,{name:"file-check",size:13}),i]},i))})}),r.jsx(va,{title:"Missing records",children:r.jsx("div",{className:"pc-local-review__file-grid",children:t.missingFiles.length?t.missingFiles.map(i=>r.jsxs("span",{children:[r.jsx(be,{name:"circle-alert",size:13}),i]},i)):r.jsx("p",{className:"pc-local-review__muted",children:"No required review records are missing."})})})]}),r.jsx(va,{title:"Recorded issues",description:"Cycle limitations and tooling defects preserved with the report.",children:r.jsx(Tf,{items:e.issues,icon:"triangle-alert"})})]})}function fY({item:e}){return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-local-review__cycle-nav","aria-label":"Cycle sections",children:[r.jsxs("a",{href:"#/operate/inbox",children:[r.jsx(be,{name:"inbox",size:13}),"Decisions"]}),r.jsxs("a",{href:"#/operate/actions",children:[r.jsx(be,{name:"git-pull-request",size:13}),"Actions"]}),r.jsxs("a",{href:"#/operate/evidence",children:[r.jsx(be,{name:"file-check",size:13}),"Evidence"]}),r.jsxs("a",{href:"#/operate/outcomes",children:[r.jsx(be,{name:"flag",size:13}),"Outcomes"]})]}),r.jsx(mC,{item:e}),r.jsx(AC,{item:e}),r.jsx(va,{title:"Review coverage",description:"What each lens contributed to the Chair synthesis.",children:r.jsx(yC,{lenses:e.lenses})}),r.jsx(va,{title:"Decision record",children:r.jsx(Jm,{decisions:e.decisions})}),r.jsx(va,{title:"Action plan",children:r.jsx(Zm,{actions:e.actions})}),r.jsx(va,{title:"Risks and dissent",description:"Challenges retained rather than flattened into consensus.",children:r.jsx(Tf,{items:e.risks,icon:"circle-alert"})}),r.jsxs("details",{className:"pc-local-review__full-report",children:[r.jsxs("summary",{children:[r.jsxs("span",{children:[r.jsx(be,{name:"scroll-text",size:15}),"Full board report"]}),r.jsx("span",{children:"Audit record"})]}),r.jsx(nY,{markdown:e.markdown})]})]})}function pY({item:e,evidenceId:t}){const i=e.evidence.find(s=>s.id===t);return i?r.jsx(vt,{children:r.jsxs("article",{className:"pc-local-review__evidence-detail",children:[r.jsx(ra,{tone:"success",icon:"check",children:i.freshness}),r.jsxs("h2",{children:[i.id," · ",i.kind]}),r.jsx("code",{children:i.reference}),r.jsx("p",{children:"This source reference was captured by the completed local cycle. OpenPlanr has not re-read the target to claim current freshness."})]})}):r.jsxs(Wt,{tone:"warn",title:"Evidence not found",children:["This cycle does not contain ",t,"."]})}function hY({route:e,item:t}){switch(e.kind){case"operate.today":return r.jsx(ex,{item:t});case"operate.inbox":return r.jsx(cY,{item:t});case"operate.actions":return r.jsx(Zm,{actions:t.actions});case"operate.action":return r.jsx(lY,{item:t,actionId:e.subjectId});case"operate.evidence":return r.jsx(rY,{evidence:t.evidence});case"operate.evidence-item":return r.jsx(pY,{item:t,evidenceId:e.subjectId});case"operate.outcomes":return r.jsx(dY,{item:t});case"operate.recovery":return r.jsx(uY,{item:t});case"operate.cycle":case"operate.review":return r.jsx(fY,{item:t});default:return r.jsx(ex,{item:t})}}function tx(){return r.jsx(vt,{children:r.jsx(tn,{icon:"calendar-days",title:"No completed local reviews yet",description:"Complete an Operate review in your agent host. This read-only console refreshes when a board report is completed."})})}const gY={"operate.today":["Operate today","The current signal, priority choices, action load, and independent lens coverage."],"operate.inbox":["Decision inbox","Recommendations, ownership gaps, and evidence questions waiting for attention."],"operate.actions":["Action register","Proposed work with owners, first steps, success measures, and verification."],"operate.cycles":["Operating cycles","Completed local reviews, grouped as durable read-only records."],"operate.evidence":["Evidence register","Source locations captured by the current cycle, with explicit freshness."],"operate.outcomes":["Outcome tracking","Expected effects and verification checks, separated from observed results."],"operate.history":["Operating history","Cycle chronology and change from the prior review."],"operate.recovery":["Cycle integrity","Readable records, missing inputs, custody, and known review issues."],"operate.action":["Action detail","The exact local proposal, owner, first step, measure, and check."],"operate.evidence-item":["Evidence detail","The exact source reference and its freshness boundary."]};function AY({route:e,origin:t}){var b,w;const[i,s]=B.useState(1),c=XG(t,i),d=c.data??qG,u=e.kind==="operate.cycles"||e.kind==="operate.history",p=e.kind==="operate.cycle"||e.kind==="operate.review"?e.kind==="operate.review"?e.cycleId:e.subjectId:u?null:((b=d.items[0])==null?void 0:b.cycleId)??null,g=WG(t,p),m=((w=g.data)==null?void 0:w.item)??null,y=gY[e.kind],A=e.kind==="operate.cycle"||e.kind==="operate.review"?(m==null?void 0:m.title)??(e.kind==="operate.review"?e.cycleId:e.subjectId):(y==null?void 0:y[0])??"Operate",E=e.kind==="operate.cycle"||e.kind==="operate.review"?"Structured decisions, action plan, lens coverage, dissent, and the full audit record.":(y==null?void 0:y[1])??"Completed local operating review.";return r.jsxs("div",{className:"pc-shell__scroll pc-local-review","data-route-kind":e.kind,children:[r.jsx(ct,{eyebrow:"planr-operate · local",title:A,count:u?d.pagination.total:void 0,description:E,actions:r.jsx(ra,{tone:"info",variant:"outline",icon:"lock",children:"Read-only"})}),c.status==="failed"?r.jsx(Wt,{tone:"warn",title:"Local reviews could not refresh",children:c.error}):null,u?c.status==="loading"&&!c.data?r.jsx(Lo,{count:3}):d.items.length?r.jsxs(r.Fragment,{children:[r.jsx(sY,{items:d.items,history:e.kind==="operate.history"}),r.jsx(oY,{index:d,onPage:s})]}):r.jsx(tx,{}):!p&&c.status==="loading"?r.jsx(Lo,{count:2}):p?g.status==="loading"&&!m?r.jsx(Lo,{count:3}):m?r.jsxs(r.Fragment,{children:[g.status==="failed"?r.jsx(Wt,{tone:"warn",title:"Showing the last readable review",children:g.error}):null,r.jsx(hY,{route:e,item:m})]}):r.jsx(Wt,{tone:"warn",title:"This local review is unavailable",children:g.error??"The report was not found."}):r.jsx(tx,{}),r.jsxs("div",{className:"pc-local-review__footnote",children:[r.jsx(be,{name:"lock",size:12})," Local projections are review records. Approval and execution require an actor-bound Operate session."]})]})}const mY=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"}),yY=Object.freeze({"read-only":"This plan is available to review, but changes are not available here.",stale:"This plan may be out of date.",partial:"Some planning information is unavailable.",blocked:"Planning information is temporarily unavailable.",offline:"You’re viewing the last available Planning information. Reconnect before checking again."}),EY=Object.freeze(["#/overview","#/graph","#/board","#/list","#/sprints","#/activity","#/search"]);function vY(e){try{const t=Ze(e),i=EY.includes(t.route),s=t.subjectId!==null&&(t.route===`#/detail/${encodeURIComponent(t.subjectId)}`||t.route===`#/plan/specs/${encodeURIComponent(t.subjectId)}`);return t.productArea==="planning"&&(i||s)&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function EC(e){if(typeof e!="object"||e===null||!Object.isFrozen(e))return null;const t=Reflect.get(e,"kind"),i=Reflect.get(e,"graph");if(t!=="planning-graph-snapshot"||typeof i!="object"||i===null)return null;const s=Reflect.get(i,"nodes"),c=Reflect.get(i,"edges");return!Array.isArray(s)||!Array.isArray(c)?null:e}function vC(e){if(!Ke(e)||e.data===null)return Object.freeze([]);const t=EC(e.data);return Object.freeze(t?[...t.graph.nodes]:[])}function Hr(e,t){const i=vY(t);if(!i||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i))return null;const s=e.kind==="refreshing"?"ready":mY[e.kind],c=EC(e.data);return s===void 0||c===null?null:Object.freeze({envelope:c,graph:c.graph,presentation:s,binding:e.binding,readOnly:!0,mutationEnabled:!1})}function Hs({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"op-planning-notice",role:"status",children:[yY[e]," ",r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Open Planning overview"})]})}function zs({routeKind:e,title:t}){return r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e,children:r.jsx(we,{state:"incompatible",eyebrow:"Planning unavailable",title:t,description:"We could not verify the Planning information for this view, so it is not shown.",actions:r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})})})}const BY=Object.freeze(["route","planning","operate"]),nx=Object.freeze({route:"Go to",planning:"Planning work",operate:"Operate items"}),bY=Object.freeze({route:"chevron-right",planning:"corner-down-right",operate:"gauge"});function ax(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function wY(e){const t={route:[],planning:[],operate:[]};for(const i of e)t[i.source].push(i);return Object.freeze({route:Object.freeze(t.route),planning:Object.freeze(t.planning),operate:Object.freeze(t.operate)})}function BC({hits:e,unsupported:t=Object.freeze([]),activeHref:i,listId:s,onSelect:c}){const d=wY(e),u=e.length>0,p=t.length>0;return!u&&!p?r.jsx("p",{className:"pc-palette__empty",role:"status",children:"No matches. Try a view name or an item id like US-001."}):r.jsxs("div",{className:"pc-palette__results",children:[BY.map(g=>{const m=d[g];return m.length===0?null:r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-${g}-heading`,children:[r.jsx("h2",{id:`${s}-${g}-heading`,className:"pc-palette__group-title",children:nx[g]}),r.jsx("ol",{className:"pc-palette__list","aria-label":nx[g],children:m.map((y,A)=>{const E=y.href===i;return r.jsx("li",{children:r.jsxs("button",{type:"button",className:"pc-palette__row","data-active":E?"true":"false","aria-current":E?"true":void 0,onClick:()=>c(y),children:[r.jsx(be,{name:bY[g],size:14}),r.jsx("span",{className:"pc-palette__row-title",children:y.title}),r.jsx("span",{className:"pc-palette__row-hint",children:ax(y.kind)})]})},`${y.id}:${A}`)})})]},g)}),p?r.jsxs("section",{className:"pc-palette__group","aria-labelledby":`${s}-unsupported-heading`,children:[r.jsx("h2",{id:`${s}-unsupported-heading`,className:"pc-palette__group-title",children:"Unavailable destinations"}),r.jsx("ol",{className:"pc-palette__list","aria-label":"Unavailable destinations",children:t.map((g,m)=>r.jsx("li",{children:r.jsxs("div",{className:"pc-palette__row","aria-disabled":"true",children:[r.jsx(be,{name:"circle-slash",size:14}),r.jsx("span",{className:"pc-palette__row-title",children:g.title}),r.jsxs("span",{className:"pc-palette__row-hint",children:[ax(g.kind)," · ",g.reason]})]})},`${g.id}:${m}`))})]}):null]})}function xY(e){return cc(e)}function jY(){return Object.freeze(_j.filter(e=>e.navigation!=="hidden").map(e=>{const t=cc(e.href);return t===null?null:Object.freeze({kind:e.kind,product:e.product,title:e.label,href:t})}).filter(e=>e!==null))}const Ol=".planr",IY="openplanr",kf=Object.freeze([Object.freeze({id:"epic",label:"Epic",plural:"Epics"}),Object.freeze({id:"feature",label:"Feature",plural:"Features"}),Object.freeze({id:"story",label:"Story",plural:"Stories"}),Object.freeze({id:"task",label:"Task",plural:"Tasks"}),Object.freeze({id:"spec",label:"Spec",plural:"Specs"}),Object.freeze({id:"backlog",label:"Backlog",plural:"Backlog"}),Object.freeze({id:"quick",label:"Quick",plural:"Quick tasks"}),Object.freeze({id:"sprint",label:"Sprint",plural:"Sprints"}),Object.freeze({id:"adr",label:"ADR",plural:"ADRs"})]),QY=new Map(kf.map((e,t)=>[e.id,t])),CY=new Map(kf.map(e=>[e.id,e.label])),SY=new Map(kf.map(e=>[e.id,e.plural])),OY=Object.freeze([Object.freeze({id:"outstanding",label:"Outstanding"}),Object.freeze({id:"in-progress",label:"In progress"}),Object.freeze({id:"blocked",label:"Blocked"}),Object.freeze({id:"done",label:"Done"}),Object.freeze({id:"addressed",label:"Addressed"})]),_Y=new Map(OY.map(e=>[e.id,e.label])),YA=Object.freeze(["outstanding","in-progress","blocked","done"]),NY=Object.freeze({blocked:"blocked",done:"done","in-progress":"in progress",outstanding:"outstanding",addressed:"addressed"});function bC(e){const t=e.trim();return t?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:"Item"}function ix(e){return QY.get(e)??kf.length}function RY(e){return CY.get(e)??bC(e)}function DY(e){return SY.get(e)??RY(e)}function wC(e){return _Y.get(e)??(e||"Unknown")}function Jt(e){if(e==null)return"";if(typeof e=="string"){const s=e.lastIndexOf("/");return s>=0?e.slice(s+1):e}const t=e.frontmatter.id;if(t!=null&&t!=="")return String(t);const i=e.id.lastIndexOf("/");return i>=0?e.id.slice(i+1):e.id}function xC(e){return e.frontmatter.sprintId??e.frontmatter.sprint??""}function TY(e,t=Object.freeze({})){const i=t.typeFilter??[],s=t.statusFilter??null,c=typeof t.search=="string"?t.search.trim().toLowerCase():"";return Object.freeze(e.filter(d=>!(i.length>0&&!i.includes(d.type)||s!==null&&d.status!==s||c&&!`${d.id} ${Jt(d)} ${d.title}`.toLowerCase().includes(c))))}function rx(e,t){switch(t){case"id":return e.id;case"title":return e.title;case"type":return e.type;case"status":return NY[e.status]??e.status;case"sprint":return String(xC(e))}}function kY(e,t="id",i="asc"){const s=i==="desc"?-1:1;return Object.freeze(e.map((c,d)=>({node:c,index:d})).sort((c,d)=>{const u=rx(c.node,t).localeCompare(rx(d.node,t),void 0,{numeric:!0,sensitivity:"base"});return u!==0?u*s:c.index-d.index}).map(({node:c})=>c))}function jC(e){let t=0,i=0,s=0,c=0;for(const d of e)d.status==="done"||d.status==="addressed"?c+=1:d.status==="in-progress"?i+=1:d.status==="blocked"?s+=1:t+=1;return Object.freeze({outstanding:t,inProgress:i,blocked:s,done:c})}function IC(e){const{frontmatter:t}=e;if(typeof t.specScope=="string"&&t.specScope)return t.specScope;if(typeof t.specId=="string"&&t.specId)return t.specId;const i=e.id.indexOf("/");if(i>=0){const s=e.id.slice(0,i);if(/^SPEC-/iu.test(s))return s}if(e.type==="spec"){const s=t.id!=null&&t.id!==""?t.id:e.id;return s==null||s===""?null:String(s)}return null}function MY(e){const t=new Set;for(const i of e){const s=IC(i);s&&t.add(s)}return Object.freeze([...t].sort((i,s)=>i.localeCompare(s,void 0,{numeric:!0,sensitivity:"base"})))}function QC(e){return e==="addressed"?"done":YA.includes(e)?e:"outstanding"}function CC(e,t){const{frontmatter:i}=e;switch(t){case"status":return QC(e.status);case"type":return e.type||"unknown";case"sprint":return String(xC(e)||"");case"feature":return i.featureId==null?"":String(i.featureId);case"epic":return i.epicId==null?"":String(i.epicId);case"spec":return IC(e)??"";default:return i[t]==null?"":String(i[t])}}function GY(e){switch(e){case"status":return"Status";case"type":return"Type";case"sprint":return"Sprint";case"feature":return"Feature";case"epic":return"Epic";case"spec":return"Spec";default:return bC(e||"Group")}}function YY(e){const t=[];e.length>0&&(t.push(Object.freeze({key:"status",label:"Status"})),t.push(Object.freeze({key:"type",label:"Type"})));const i=s=>e.some(c=>CC(c,s)!=="");return i("sprint")&&t.push(Object.freeze({key:"sprint",label:"Sprint"})),i("feature")&&t.push(Object.freeze({key:"feature",label:"Feature"})),i("epic")&&t.push(Object.freeze({key:"epic",label:"Epic"})),MY(e).length>0&&t.push(Object.freeze({key:"spec",label:"Spec"})),Object.freeze(t)}function HY(e,t){return t?e==="status"?wC(t):e==="type"?DY(t):t:`No ${GY(e).toLowerCase()}`}function zY(e,t){var c;if(t==="status"){const d=new Map(YA.map(u=>[u,[]]));for(const u of e)(c=d.get(QC(u.status)))==null||c.push(u);return Object.freeze(YA.map(u=>Object.freeze({key:u,label:wC(u),nodes:Object.freeze(d.get(u)??[])})))}const i=new Map;for(const d of e){const u=CC(d,t),p=i.get(u);p?p.push(d):i.set(u,[d])}let s;return t==="type"?s=[...i.keys()].sort((d,u)=>ix(d)-ix(u)||d.localeCompare(u)):(s=[...i.keys()].filter(d=>d!=="").sort((d,u)=>d.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"})),i.has("")&&s.push("")),Object.freeze(s.map(d=>Object.freeze({key:d,label:HY(t,d),nodes:Object.freeze(i.get(d)??[])})))}function ef(e){return String(e??"").toLowerCase().replace(/\s+/gu," ").trim()}function HA(e){const t=ef(e);if(!t)return Object.freeze([]);if(t.length<3)return Object.freeze([t]);const i=[];for(let s=0;s<=t.length-3;s+=1)i.push(t.slice(s,s+3));return Object.freeze(i)}function SC(e){const t=new Map,i=new Map;for(const c of e){t.set(c.id,c);const d=new Set([...HA(c.id),...HA(c.title)]);for(const u of d){const p=i.get(u);p?p.add(c.id):i.set(u,new Set([c.id]))}}const s=new Map([...i].map(([c,d])=>[c,new Set(d)]));return Object.freeze({nodes:Object.freeze([...e]),byId:t,postings:s})}function OC(e,t,i=20){const s=ef(t);if(!s||!Number.isSafeInteger(i)||i<0)return Object.freeze([]);const c=HA(s),d=new Map;for(const u of c){const p=e.postings.get(u);if(p)for(const g of p)d.set(g,(d.get(g)??0)+1)}for(const u of e.nodes)`${ef(u.id)} ${ef(u.title)}`.includes(s)&&d.set(u.id,(d.get(u.id)??0)+c.length+1);return Object.freeze([...d].sort(([u,p],[g,m])=>m-p||u.localeCompare(g)).slice(0,i).map(([u])=>e.byId.get(u)).filter(u=>u!==void 0))}function UY(e){for(let t=0;t<e.length;t+=1){const i=e.charCodeAt(t);if(i>=55296&&i<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(i>=56320&&i<=57343)return!0}return!1}function _C(e){const t=typeof e=="string"?e:e.id;if(!t||UY(t))return null;let i="";for(const s of new TextEncoder().encode(t)){const c=String.fromCharCode(s);i+=/^[A-Za-z0-9._-]$/u.test(c)?c:`:${s.toString(16).toUpperCase().padStart(2,"0")}`}return i}function $Y(e){const t=[];for(let i=0;i<e.length;i+=1){const s=e[i];if(s!==":"){if(!/^[A-Za-z0-9._-]$/u.test(s))return null;t.push(s.charCodeAt(0));continue}const c=e.slice(i+1,i+3);if(!/^[0-9A-F]{2}$/u.test(c))return null;t.push(Number.parseInt(c,16)),i+=2}try{const i=new TextDecoder("utf-8",{fatal:!0}).decode(new Uint8Array(t));return i&&_C(i)===e?i:null}catch{return null}}function Mf(e){const t=_C(e);return t===null?null:cc(`#/detail/${encodeURIComponent(t)}`)}function LY(e){const t=[];for(const i of String(e??"").split(`
548
- `)){const s=i.match(/^\s*[-*+]\s+\[([ xX])\]\s+(.*)$/u);s&&t.push(Object.freeze({text:s[2].trim(),done:s[1].toLowerCase()==="x"}))}return Object.freeze(t)}function PY(e){const t=[];let i=!1;for(const s of String(e??"").split(`
549
- `)){const c=s.match(/^#{2,6}\s+(.*)$/u);if(c){i=/acceptance criteria/iu.test(c[1]);continue}if(!i||/^\s*[-*+]\s+\[[ xX]\]/u.test(s))continue;const d=s.match(/^\s*[-*+]\s+(.*)$/u);d!=null&&d[1].trim()&&t.push(d[1].trim())}return Object.freeze(t)}function FY(e){if(Array.isArray(e))return e.map(t=>String(t)).join(", ");if(e!==null&&typeof e=="object")try{return JSON.stringify(e)}catch{return String(e)}return String(e)}const VY=new Set(["id","title","type","status","body"]);function qY(e){const t={};for(const[u,p]of Object.entries(e.frontmatter))VY.has(u)||p==null||(t[u]=FY(p));const i=e.frontmatter.dependsOn,s=Array.isArray(i)?i.map(u=>String(u)):[],c=e.frontmatter.shipRef,d=e.frontmatter.qaRef;return Object.freeze({header:Object.freeze({id:e.id,title:e.title,type:e.type,status:e.status}),meta:Object.freeze(t),criteria:PY(e.body),subtasks:LY(e.body),depIds:Object.freeze(s),...c!=null&&c!==""?{shipRef:String(c)}:{},...d!=null&&d!==""?{qaRef:String(d)}:{}})}function zA(e,t,i,s,c){if(i==null)return null;const d=xY(i);return d===null?null:Object.freeze({id:e,title:t,href:d,source:s,kind:c})}function KY(e){if(!e)return Object.freeze([]);const t=[];for(const i of e){const s=zA(`operate:${i.kind}:${i.subjectId}`,i.title,i.deepLink,"operate",i.kind);s&&t.push(s)}return Object.freeze(t)}function JY(e=Object.freeze({})){const t=Object.freeze([...e.planningNodes??[]]),i=KY(e.operateResults);return Object.freeze({routes:jY(),planningNodes:t,operateHits:i})}function sx(e,t){return e.toLowerCase().includes(t)}function ZY(e,t,i=20){const s=t.trim().toLowerCase();if(!s||!Number.isSafeInteger(i)||i<0)return Object.freeze([]);const c=[];for(const u of e.routes)if(sx(`${u.title} ${u.kind} ${u.href}`,s)){const p=zA(`route:${u.kind}`,u.title,u.href,"route",u.kind);p&&c.push(p)}for(const u of OC(SC(e.planningNodes),t,i)){const p=zA(`planning:${u.id}`,u.title,Mf(u),"planning",u.type);p&&c.push(p)}for(const u of e.operateHits)sx(`${u.title} ${u.kind} ${u.id}`,s)&&c.push(u);const d=new Set;return Object.freeze(c.filter(u=>d.has(u.href)?!1:(d.add(u.href),!0)).slice(0,i))}function XY(e,t,i=20){if(!t.trim().toLowerCase()||!Number.isSafeInteger(i)||i<0)return Object.freeze([]);const c=[];for(const d of OC(SC(e.planningNodes),t,i))Mf(d)===null&&c.push(Object.freeze({id:d.id,title:d.title,kind:d.type,reason:"This artifact identity cannot be opened through the closed dashboard grammar."}));return Object.freeze(c.slice(0,i))}function ff(e){const t=Object.freeze([...e]);return Object.freeze({items:t,activeIndex:-1,moveDown(){const s=this.activeIndex<this.items.length-1?this.activeIndex+1:this.activeIndex;return pf(this.items,s)},moveUp(){const s=this.activeIndex>0?this.activeIndex-1:this.activeIndex;return pf(this.items,s)},reset(s){return ff(s)},getActive(){return this.activeIndex>=0&&this.activeIndex<this.items.length?this.items[this.activeIndex]??null:null}})}function pf(e,t){const i=Object.freeze([...e]);return Object.freeze({items:i,activeIndex:t,moveDown(){const s=t<i.length-1?t+1:t;return pf(i,s)},moveUp(){const s=t>0?t-1:t;return pf(i,s)},reset(s){return ff(s)},getActive(){return t>=0&&t<i.length?i[t]??null:null}})}const UA=e=>e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e=="number"?"number":typeof e,WY=(e,t)=>t==="integer"?Number.isInteger(e):t==="number"?typeof e=="number":t==="string"?typeof e=="string":t==="boolean"?typeof e=="boolean":t==="null"?e===null:t==="array"?Array.isArray(e):t==="object"?e!==null&&typeof e=="object"&&!Array.isArray(e):!1,eH=/^\d{4}-\d{2}-\d{2}$/,tH=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/,nH=new Set(["date","date-time"]),aH=["$schema","$id","$defs","$comment","title","description","default","examples","deprecated","readOnly","writeOnly"],iH=["$ref","type","const","enum","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","minItems","maxItems","prefixItems","items","uniqueItems","contains","minContains","maxContains","required","properties","propertyNames","additionalProperties","maxProperties","dependentRequired","unevaluatedProperties","oneOf","anyOf","allOf","if","then","else","not"],rH=new Set([...aH,...iH]),ox=new Set(["array","boolean","integer","null","number","object","string"]),Rn=e=>typeof e=="boolean"||e!==null&&typeof e=="object"&&!Array.isArray(e),Xm=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),As=e=>Number.isSafeInteger(e)&&e>=0,eA=e=>Array.isArray(e)&&e.every(t=>typeof t=="string")&&new Set(e).size===e.length,Mu=e=>Array.isArray(e)&&e.length>0&&e.every(Rn),cx=e=>Xm(e)&&Object.values(e).every(Rn),ul=new Map,sH=1024,oH=e=>{try{return new RegExp(e)}catch(t){if(t instanceof SyntaxError)return null;throw t}},NC=e=>(ul.has(e)||(ul.size>=sH&&ul.clear(),ul.set(e,oH(e))),ul.get(e)??null),cH=e=>{const t=String(JSON.stringify(e));return t.length>80?`${t.slice(0,77)}...`:t},lH={$ref:["a string",e=>typeof e=="string"],$defs:["an object of schemas",cx],type:["a type name or a non-empty array of unique type names",e=>typeof e=="string"&&ox.has(e)||eA(e)&&e.length>0&&e.every(t=>ox.has(t))],enum:["an array",Array.isArray],minLength:["a non-negative integer",As],maxLength:["a non-negative integer",As],pattern:["a valid regular expression string",e=>typeof e=="string"&&NC(e)!==null],minimum:["a finite number",Number.isFinite],maximum:["a finite number",Number.isFinite],exclusiveMinimum:["a finite number",Number.isFinite],minItems:["a non-negative integer",As],maxItems:["a non-negative integer",As],prefixItems:["a non-empty array of schemas",Mu],items:["a schema",Rn],uniqueItems:["a boolean",e=>typeof e=="boolean"],contains:["a schema",Rn],minContains:["a non-negative integer",As],maxContains:["a non-negative integer",As],required:["an array of unique strings",eA],properties:["an object of schemas",cx],propertyNames:["a schema",Rn],additionalProperties:["a schema",Rn],maxProperties:["a non-negative integer",As],dependentRequired:["an object of unique string arrays",e=>Xm(e)&&Object.values(e).every(eA)],unevaluatedProperties:["a schema",Rn],oneOf:["a non-empty array of schemas",Mu],anyOf:["a non-empty array of schemas",Mu],allOf:["a non-empty array of schemas",Mu],if:["a schema",Rn],then:["a schema",Rn],else:["a schema",Rn],not:["a schema",Rn]};function dH(e,t){return t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}const lx=new WeakSet,uH=e=>Object.isFrozen(e)&&Object.values(e).every(Object.isFrozen)&&(!Xm(e.dependentRequired)||Object.values(e.dependentRequired).every(Object.isFrozen)),fH=(e,t,i)=>{if(lx.has(e)||i.checkedSchemas.has(e))return;i.checkedSchemas.add(e);const s=i.schemaErrors.length;for(const c of Object.keys(e))!rH.has(c)&&!c.startsWith("x-")&&i.schemaErrors.push({path:t,rule:"unsupported-keyword",detail:`schema keyword '${c}' is not supported by this validator`});Object.hasOwn(e,"format")&&!nH.has(e.format)&&i.schemaErrors.push({path:t,rule:"unsupported-format",detail:`schema format ${JSON.stringify(e.format)} is not supported by this validator`});for(const[c,[d,u]]of Object.entries(lH))Object.hasOwn(e,c)&&!u(e[c])&&i.schemaErrors.push({path:t,rule:"schema",detail:`schema keyword '${c}' must be ${d}, got ${cH(e[c])}`});i.schemaErrors.length===s&&uH(e)&&lx.add(e)},dx=(e,t,i,s)=>{s.reportedReferences.has(e)||(s.reportedReferences.add(e),s.schemaErrors.push({path:t,rule:"$ref",detail:i}))},wn=(e,t,i,s,c)=>{const d=new Set;if(t===!0)return d;if(t===!1)return s.push({path:i,rule:"schema:false",detail:"value not allowed"}),d;if(!Rn(t))return d;if(fH(t,i,c),typeof(t==null?void 0:t.$ref)=="string"){const u=t.$ref;let p,g=c.rootSchema,m=c.base;if(u.startsWith("#"))p=dH(c.rootSchema,u);else if(typeof c.resolveRef=="function"){const E=c.resolveRef(u,{base:c.base});p=(E==null?void 0:E.schema)??E,g=(E==null?void 0:E.rootSchema)??p,m=(E==null?void 0:E.base)??(p==null?void 0:p.$id)??c.base}if(!Rn(p)){const E=p==null?`could not resolve schema reference ${u}`:`schema reference ${u} resolved to ${UA(p)}, not a schema`;return dx(t,i,E,c),d}const y=`${i} ${c.base??"<root>"}:${u}`;if(c.referenceStack.includes(y))return dx(t,i,`circular schema reference ${u}`,c),d;const A=wn(e,p,i,s,{...c,rootSchema:g,base:m,referenceStack:[...c.referenceStack,y]});for(const E of A)d.add(E)}if(t.type!==void 0){const u=Array.isArray(t.type)?t.type:[t.type];if(!u.some(p=>WY(e,p)))return s.push({path:i,rule:"type",detail:`expected ${u.join("|")}, got ${UA(e)}`}),d}if(t.const!==void 0&&e!==t.const&&s.push({path:i,rule:"const",detail:`expected ${JSON.stringify(t.const)}, got ${JSON.stringify(e)}`}),Array.isArray(t.enum)&&(t.enum.includes(e)||s.push({path:i,rule:"enum",detail:`value ${JSON.stringify(e)} not in enum [${t.enum.map(u=>JSON.stringify(u)).join(", ")}]`})),typeof e=="string"){typeof t.minLength=="number"&&e.length<t.minLength&&s.push({path:i,rule:"minLength",detail:`length ${e.length} < ${t.minLength}`}),typeof t.maxLength=="number"&&e.length>t.maxLength&&s.push({path:i,rule:"maxLength",detail:`length ${e.length} > ${t.maxLength}`});const u=typeof t.pattern=="string"?NC(t.pattern):null;u&&!u.test(e)&&s.push({path:i,rule:"pattern",detail:`value ${JSON.stringify(e)} does not match /${t.pattern}/`}),typeof t.format=="string"&&(t.format==="date"&&!eH.test(e)?s.push({path:i,rule:"format:date",detail:`value ${JSON.stringify(e)} is not YYYY-MM-DD`}):t.format==="date-time"&&!tH.test(e)&&s.push({path:i,rule:"format:date-time",detail:`value ${JSON.stringify(e)} is not ISO 8601 date-time`}))}if(typeof e=="number"&&(typeof t.minimum=="number"&&e<t.minimum&&s.push({path:i,rule:"minimum",detail:`value ${e} < ${t.minimum}`}),typeof t.maximum=="number"&&e>t.maximum&&s.push({path:i,rule:"maximum",detail:`value ${e} > ${t.maximum}`}),typeof t.exclusiveMinimum=="number"&&e<=t.exclusiveMinimum&&s.push({path:i,rule:"exclusiveMinimum",detail:`value ${e} <= ${t.exclusiveMinimum}`})),Array.isArray(e)){typeof t.minItems=="number"&&e.length<t.minItems&&s.push({path:i,rule:"minItems",detail:`length ${e.length} < ${t.minItems}`}),typeof t.maxItems=="number"&&e.length>t.maxItems&&s.push({path:i,rule:"maxItems",detail:`length ${e.length} > ${t.maxItems}`});const u=Array.isArray(t.prefixItems)?t.prefixItems.length:0;if(u>0)for(let p=0;p<Math.min(e.length,u);p++)wn(e[p],t.prefixItems[p],`${i}[${p}]`,s,c);if(t.items!==void 0)for(let p=u;p<e.length;p++)wn(e[p],t.items,`${i}[${p}]`,s,c);if(t.uniqueItems===!0){const p=new Set;for(const g of e){const m=JSON.stringify(g);if(p.has(m)){s.push({path:i,rule:"uniqueItems",detail:`duplicate item ${m}`});break}p.add(m)}}if(t.contains!==void 0){let p=0;for(let y=0;y<e.length;y+=1){const A=[];wn(e[y],t.contains,`${i}[${y}]`,A,c),A.length===0&&(p+=1)}const g=Number.isSafeInteger(t.minContains)?t.minContains:1,m=Number.isSafeInteger(t.maxContains)?t.maxContains:null;p<g&&s.push({path:i,rule:"contains",detail:`matched ${p} contained items; expected at least ${g}`}),m!==null&&p>m&&s.push({path:i,rule:"contains",detail:`matched ${p} contained items; expected at most ${m}`})}}if(e!==null&&typeof e=="object"&&!Array.isArray(e)){if(Array.isArray(t.required))for(const p of t.required)Object.hasOwn(e,p)||s.push({path:i,rule:"required",detail:`missing required property '${p}'`});if(typeof t.maxProperties=="number"&&Object.keys(e).length>t.maxProperties&&s.push({path:i,rule:"maxProperties",detail:`property count ${Object.keys(e).length} > ${t.maxProperties}`}),t.dependentRequired!==null&&typeof t.dependentRequired=="object"){for(const[p,g]of Object.entries(t.dependentRequired))if(!(!Object.hasOwn(e,p)||!Array.isArray(g)))for(const m of g)Object.hasOwn(e,m)||s.push({path:i,rule:"dependentRequired",detail:`property '${p}' requires property '${m}'`})}const u=t.properties||{};for(const[p,g]of Object.entries(e))t.propertyNames!==void 0&&wn(p,t.propertyNames,`${i}.${p}`,s,c),(Object.hasOwn(u,p)||t.additionalProperties!==void 0)&&d.add(p),Object.hasOwn(u,p)||(t.additionalProperties===!1?s.push({path:i,rule:"additionalProperties",detail:`unknown property '${p}'`}):(t.additionalProperties===!0||t.additionalProperties!==null&&typeof t.additionalProperties=="object")&&wn(g,t.additionalProperties,`${i}.${p}`,s,c));for(const[p,g]of Object.entries(e))Object.hasOwn(u,p)&&wn(g,u[p],`${i}.${p}`,s,c)}if(Array.isArray(t.oneOf)){let u=0;for(const p of t.oneOf){const g=[],m=wn(e,p,i,g,c);if(g.length===0){u++;for(const y of m)d.add(y)}}if(u!==1){const p=t.oneOf.map(g=>g.title||"(unnamed)").join(" | ");s.push({path:i,rule:"oneOf",detail:`matched ${u}/${t.oneOf.length} branches (expected exactly 1). Branches: ${p}`})}}if(Array.isArray(t.anyOf)){let u=0;for(const p of t.anyOf){const g=[],m=wn(e,p,i,g,c);if(g.length===0){u+=1;for(const y of m)d.add(y)}}if(u===0){const p=t.anyOf.map(g=>g.title||"(unnamed)").join(" | ");s.push({path:i,rule:"anyOf",detail:`matched 0/${t.anyOf.length} branches (expected at least 1). Branches: ${p}`})}}if(Array.isArray(t.allOf))for(const u of t.allOf)for(const p of wn(e,u,i,s,c))d.add(p);if(t.if!==void 0){const u=[],p=wn(e,t.if,i,u,c),g=u.length===0;if(g)for(const y of p)d.add(y);const m=g?t.then:t.else;if(m!==void 0){const y=[],A=wn(e,m,i,y,c);if(s.push(...y),y.length===0)for(const E of A)d.add(E)}}if(t.not!==void 0){const u=[];wn(e,t.not,i,u,c),u.length===0&&s.push({path:i,rule:"not",detail:"value matched a forbidden subschema"})}if(t.unevaluatedProperties!==void 0&&e!==null&&typeof e=="object"&&!Array.isArray(e))for(const[u,p]of Object.entries(e))d.has(u)||(t.unevaluatedProperties===!1?s.push({path:i,rule:"unevaluatedProperties",detail:`unevaluated property '${u}'`}):wn(p,t.unevaluatedProperties,`${i}.${u}`,s,c),d.add(u));return d},hc=(e,t,{resolveRef:i,base:s=(t==null?void 0:t.$id)??null}={})=>{const c=[],d=[];return Rn(t)?(wn(e,t,"$",c,{rootSchema:t,resolveRef:i,base:s,referenceStack:[],schemaErrors:d,checkedSchemas:new WeakSet,reportedReferences:new WeakSet}),[...d,...c]):[{path:"$",rule:"schema",detail:`expected a schema object or boolean, got ${UA(t)}`}]},pH=(e,t)=>Object.hasOwn(e,t);function ux(e,t){for(let i=0;i<e.length;i+=1){const s=e.charCodeAt(i);if(s>=55296&&s<=56319){const c=e.charCodeAt(i+1);if(!(c>=56320&&c<=57343))throw new TypeError(`JCS cannot canonicalize a lone high surrogate at ${t}.`);i+=1}else if(s>=56320&&s<=57343)throw new TypeError(`JCS cannot canonicalize a lone low surrogate at ${t}.`)}}function $A(e,t,i){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ux(e,t),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError(`JCS requires a finite number at ${t}.`);return JSON.stringify(e)}if(typeof e!="object")throw new TypeError(`JCS cannot canonicalize ${typeof e} at ${t}.`);if(i.has(e))throw new TypeError(`JCS cannot canonicalize a cycle at ${t}.`);i.add(e);try{if(Array.isArray(e)){const d=[];for(let u=0;u<e.length;u+=1){if(!pH(e,u))throw new TypeError(`JCS cannot canonicalize a sparse array at ${t}[${u}].`);d.push($A(e[u],`${t}[${u}]`,i))}return`[${d.join(",")}]`}const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)throw new TypeError(`JCS requires a plain JSON object at ${t}.`);return`{${Object.keys(e).sort().map(d=>(ux(d,`${t} key`),`${JSON.stringify(d)}:${$A(e[d],`${t}.${d}`,i)}`)).join(",")}}`}finally{i.delete(e)}}function hH(e){return $A(e,"$",new Set)}const gH=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ja=(e,t)=>e>>>t|e<<32-t;function Wm(e){const t=typeof e=="string"?new TextEncoder().encode(e):e;if(!ArrayBuffer.isView(t)||Object.prototype.toString.call(t)!=="[object Uint8Array]")throw new TypeError("sha256Hex expects a string or Uint8Array.");const i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=Math.ceil((i.length+9)/64)*64,c=new Uint8Array(s);c.set(i),c[i.length]=128;const d=new DataView(c.buffer),u=BigInt(i.length)*8n;d.setUint32(s-8,Number(u>>32n&0xffffffffn)),d.setUint32(s-4,Number(u&0xffffffffn));let p=1779033703,g=3144134277,m=1013904242,y=2773480762,A=1359893119,E=2600822924,b=528734635,w=1541459225;const j=new Int32Array(64);for(let I=0;I<c.length;I+=64){for(let G=0;G<16;G+=1)j[G]=d.getUint32(I+G*4);for(let G=16;G<64;G+=1){const U=Ja(j[G-15],7)^Ja(j[G-15],18)^j[G-15]>>>3,Z=Ja(j[G-2],17)^Ja(j[G-2],19)^j[G-2]>>>10;j[G]=j[G-16]+U+j[G-7]+Z|0}let Q=p,S=g,C=m,_=y,O=A,T=E,N=b,$=w;for(let G=0;G<64;G+=1){const U=Ja(O,6)^Ja(O,11)^Ja(O,25),Z=O&T^~O&N,q=$+U+Z+gH[G]+j[G]|0,de=Ja(Q,2)^Ja(Q,13)^Ja(Q,22),re=Q&S^Q&C^S&C,pe=de+re|0;$=N,N=T,T=O,O=_+q|0,_=C,C=S,S=Q,Q=q+pe|0}p=p+Q|0,g=g+S|0,m=m+C|0,y=y+_|0,A=A+O|0,E=E+T|0,b=b+N|0,w=w+$|0}return[p,g,m,y,A,E,b,w].map(I=>(I>>>0).toString(16).padStart(8,"0")).join("")}function kn(e){return`sha256:${Wm(hH(e))}`}function RC(e){if(e&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))RC(t);Object.freeze(e)}return e}const DC=(e,t)=>Object.hasOwn(e,t);function TC(e,t=new Set){if(e===null||typeof e!="object"||t.has(e))return e;t.add(e);for(const i of Object.values(e))TC(i,t);return Object.freeze(e)}function li(e){return _l(e),structuredClone(e)}function fx(e){for(let t=0;t<e.length;t+=1){const i=e.charCodeAt(t);if(i>=55296&&i<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))throw new TypeError("JCS requires Unicode scalar strings.");t+=1}else if(i>=56320&&i<=57343)throw new TypeError("JCS requires Unicode scalar strings.")}}function LA(e,t){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return fx(e),JSON.stringify(e);if(typeof e=="number"){if(!Number.isFinite(e))throw new TypeError("JCS requires finite numbers.");return JSON.stringify(e)}if(typeof e!="object")throw new TypeError("JCS requires JSON data.");if(t.has(e))throw new TypeError("JCS cannot canonicalize a cycle.");t.add(e);try{if(Array.isArray(e)){if(Reflect.ownKeys(e).some(p=>{if(p==="length")return!1;if(typeof p!="string")return!0;const g=Number(p);return!Number.isSafeInteger(g)||g<0||g>=e.length||String(g)!==p}))throw new TypeError("JCS requires plain JSON arrays.");const u=[];for(let p=0;p<e.length;p+=1){const g=Object.getOwnPropertyDescriptor(e,String(p));if(!g||!g.enumerable||g.get||g.set)throw new TypeError("JCS cannot canonicalize a sparse array.");u.push(LA(g.value,t))}return`[${u.join(",")}]`}const i=Object.getPrototypeOf(e);if(i!==Object.prototype&&i!==null)throw new TypeError("JCS requires plain JSON objects.");const s=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(e).some(d=>{if(typeof d!="string")return!0;const u=s[d];return!(u!=null&&u.enumerable)||typeof u.get=="function"||typeof u.set=="function"}))throw new TypeError("JCS requires enumerable data properties only.");return`{${Object.keys(s).sort().map(d=>(fx(d),`${JSON.stringify(d)}:${LA(s[d].value,t)}`)).join(",")}}`}finally{t.delete(e)}}function _l(e){return LA(e,new Set)}function ey(e,t){return`sha256:${Wm(`${t}\0${_l(e)}`)}`}function Mr(e){return`sha256:${Wm(_l(e))}`}function kC(e){const t=li(e);return delete t.integrity.contentHash,t}function en(e,t){return _l(e)===_l(t)}function jn(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}const AH=Object.freeze(["type","$ref","properties","string","required","const","object","additionalProperties","array","items","null","pattern","1","#/$defs/id","enum","maxLength","minimum","kind","integer","0","maxItems","128","uniqueItems","minLength","title","oneOf","id","schemaVersion","state","format","version","status","date-time","protocolVersion","if","then","2.0.0","#/$defs/text","minItems","data","#/$defs/hash","domainId","domainVersion","reason","scopeId","surface","1.0.0","cycleId","action","hash","actorId","allOf","eventHead","subjectId","outcome","reasonCodes","#/$defs/version","deepLink","ownerActorId","scope","artifactId","origin","sequence","^sha256:[a-f0-9]{64}$","rejected","$id","$schema","https://json-schema.org/draft/2020-12/schema","x-openplanr-contract","$defs","../v2.0.0/operate-experience-view.schema.json#/$defs/id","confidence","not","number","roleId","#/$defs/identifier","256","maximum","actions","evidence","recoveryDisposition","revision","stale","assignmentId","assignmentKind","available","mutationEnabled","restricted","accessLevel","actionId","disposition","rationale","statement","#/$defs/nonPlaceholder","../v2.0.0/operate-experience-view.schema.json#/$defs/hash","boolean","evidenceRefIds","integrity","2048","blocked","decision","generatedAt","mediaType","sourceArtifactId","sourceViewHash","^art_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceId","actor","target","verification","4096","64","accessReason","code","createdAt","effect","ok","rawHash","read-only","roleKind","tool","failed","payload","reviewId","roleVersion","#/$defs/nullableText","512","arguments","canonicalHash","cycle","evidenceRefId","history","operation","total","viewHash","8192","dissent","gaps","outcomes","review","schemaId","#/$defs/deepLink","16","algorithm","approved","cancelled","contentHash","current","domain","learnings","observedAt","producer","readOnly","requirementId","runtime","uncertain","description","evidenceKind","findings","partial","sourceAssignmentId","summary","#/$defs/shortText","#/$defs/successBase","absenceCode","actionHash","allowedActions","encoding","error","inbox","label","metricId","outputContract","uncertainty","verificationPlanId","workDispositions","^asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","claims","contradicted","contradictingEvidenceRefIds","decisions","findingType","pending","replay","resolved","severity","supportingEvidenceRefIds","unknown","#/$defs/artifactId","#/$defs/scope","abandoned","advisor","capability","chair","challenger","changes_requested","claim","classification","deferred","dueAt","evidenceArtifactId","freshness","inputArtifactIds","operating-intelligence","persistent-work","relation","resolvedAt","reversibility","rollbackPlanId","source","#/$defs/accessLevel","#/$defs/evidenceRefId","#/$defs/title","1024","^[\\s\\S]*\\S[\\s\\S]*$","absence","accepted","artifact","cycles","entityId","filesystem","git","governedOperationId","historical","offline","operate-artifact","planr","project-write","ready","revisitAt","subject","terminal","utf-8","#/$defs/absenceId","#/$defs/accessReason","#/$defs/eventHead","#/$defs/objectArray","^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absent","accessState","actorKind","anyOf","application/json","assignment","baseline","causalLinks","choiceHash","choiceId","completedAt","consequence","context","dissentIds","domainMetrics","errors","expectedResult","findingId","message","omissions","operate-experience-view.schema.json#/$defs/hash","operationKind","provenance","representation","retryable","sensitivity","sourceArtifactKind","sourceContract","sourceContracts","subjectKind","submitArguments","truthSummary","updatedAt","validated","#/$defs/integrity","#/$defs/safeToken","../v2.0.0/operate-experience-view.schema.json#/$defs/eventHead","../v2.0.0/operate-experience-view.schema.json#/$defs/version","^(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)$","^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$","^cyc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rev_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","attention","contentBase64","export","human","operate-experience-view.schema.json#/$defs/id","requestBinding","resolutionId","sha-256-jcs","supported","targets","text","#/$defs/contractRef","#/$defs/producer","(?:<[^>]+>|\\{\\{[^}]+\\}\\})","../v2.0.0/operate-experience-view.schema.json#/$defs/accessLevel","^[A-Z][A-Z0-9_]{0,127}$","^evr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^op_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","advisorArtifactId","analysisProfile","appliedChoiceHash","appliedChoiceId","approvalIds","claimId","corrupt","cycleLinks","decisionId","deltaId","dependsOn","evaluationId","eventReplayIndexHash","execution","executor","expectedDownside","expectedUpside","expiresAt","generation","grantId","incompatible","intelligenceContext","localDissentId","machine-local-write","metadata","operating-review-read","operating-review.schema.json#/$defs/workDisposition","operationId","outputArtifactIds","projectId","provider","query","question","recommendation","redacted","resolutionCondition","resolver","resultId","revisitConditions","role","rollback","seatStatus","sizeBytes","sourceEventHead","threshold","unavailableReason","unverified","verificationMethod","verificationWindow","verified","window","#/$defs/humanActor","#/$defs/nullableShortText","#/$defs/omission","#/$defs/rubricClauses","32768","^cgr_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","actionLocator","active","analysisRubric","capabilityGrantId","complete","confidential","contentJson","correctionCondition","effectSummary","entityKind","evidenceRequirements","identifier","internal","mandate","maxBytes","operate-allowed-action.schema.json","operate-experience-view.schema.json#/$defs/eventHead","operate.action.approve","operate.action.execute","operate.action.rollback","operate.artifact.get","operate.assignment.claim","operate.assignment.submit","operate.cycle.get","operate.cycle.resume","operate.cycle.start","operate.recovery.inspect","operate.review.get","operate.review.submit","operating-review-receipt","proof","public","result","resultRequirements","revisited","search","skipped","sourceLocalFindingId","submissionId","superseded","terminalDisposition","waiting","#/$defs/action","#/$defs/artifactIds","#/$defs/causalLink","#/$defs/cycleId","#/$defs/implementationRef","#/$defs/resolutionError","#/$defs/result","#/$defs/sourceContract","#/$defs/versionedId","../v2.0.0/operate-experience-view.schema.json#/$defs/action","../v2.0.0/operate-experience-view.schema.json#/$defs/outcome","4","7","^\\S(?:[\\s\\S]*\\S)?$","^dissent:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rbp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","absenceIds","actionCount","actionDigest","allowedCapabilities","appliedWorkDispositions","approval","artifactType","assignmentState","authority","blockers","blocking","change","changed","choices","claimStatus","committedAt","connector","contains","content","contradictClaimIds","contradictEvidenceRefIds","correlated-reasoning","count","critical","currentSnapshotId","decisionCount","decisionIds","delta","dependencies","destructive","dispositionChoices","dissentCount","effectClass","epistemicStatus","eventId","evidenceKinds","executiveBoard","executorId","executorVersion","findingCount","focus","gapCount","high","html","informs","intelligencePlanId","irreversibility-mismatch","json","low","medium","metricHash","missing-alternative","navigationLocator","next","open","operate.recovery.clear-stale-lock","operate.recovery.restore","operating-review.schema.json","originalOperationId","outcomeId","overconfidence","parentOperationId","partyId","persistentActionIds","persistentWork","priorSnapshotId","progress","readEventHead","reasonCode","receiptId","recorded","redactions","requestFingerprint","requiredCapability","results","revisit","running","scope-violation","seats","snapshot","snapshotId","sourceArtifactHash","sourceArtifactIds","sourceClaimRefs","sourceDecisionId","sourceEventId","sourceEventIds","sourceEvidenceRefIds","sourceStateHash","stages","supportClaimIds","supportEvidenceRefIds","targetAfterHash","targetBeforeHash","traceMatrix","typedAbsences","unit","unpriced-downside","unsupported","#/$defs/actionIdentity","#/$defs/assignmentId","#/$defs/cycleView","#/$defs/nodeId","#/$defs/nodeKind","#/$defs/nonBlankText","#/$defs/payload","#/$defs/publicActor","#/$defs/reviewSubmitArguments","#/$defs/target","#/$defs/workspace","../v2.0.0/operate-experience-view.schema.json#/$defs/cycle","../v2.0.0/operate-experience-view.schema.json#/$defs/history","../v2.0.0/operate-experience-view.schema.json#/$defs/inbox","../v2.0.0/operate-experience-view.schema.json#/$defs/learning","../v2.0.0/operate-experience-view.schema.json#/$defs/replay","../v2.0.0/operate-review-display-workspace.schema.json#/$defs/sharedTruthSummary","^#/operate/(?:cycles|inbox|actions|evidence|outcomes|history)/","^abs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tre_[a-f0-9]{32}$","access-denied","agent","analysisIds","beforeAfter","binary","candidateId","canonical","claimIds","completed","contradiction","decoded-json","deliveryRoute","dependencyPolicy","dueVerification","evaluates","execute","executiveSummary","external-effect","finding","humanActor","inputBundle","issuedEvidence","learning","localClaimId","localRecommendationId","locator","measurementIds","nextObservation","nodeId","nonPlaceholder","not-applicable","not-required","observationRequest","omission","omitted","operate-experience-surface","operate-experience-view","operating-assignment","operating-evidence-resolution","operating-finding","operating-review","operating-review-read.schema.json#/$defs/dispositionChoice/properties/choiceId","operating-review-read.schema.json#/$defs/eventHead","operating-review-read.schema.json#/$defs/hash","operating-review-read.schema.json#/$defs/text","parityProof","policyBinding","proposed","provider-call","raw","recommendationIds","replayCheckpoint","reversible","reviewSubmitArguments","riskIds","rollbackClass","safeErrorContext","submitted","support","terminalOutcome","today","transition","unavailable","workspace","#/$defs/analysisProfile","#/$defs/artifactMetadata","#/$defs/artifactProvenance","#/$defs/assignmentDependency","#/$defs/cycleIdentityArguments","#/$defs/deltaRef","#/$defs/digest","#/$defs/effect","#/$defs/endpoint","#/$defs/evidenceData","#/$defs/evidenceGapSummary","#/$defs/evidenceKind","#/$defs/evidenceProvenance","#/$defs/evidenceRefIds","#/$defs/evidenceRequirement","#/$defs/evidenceSource","#/$defs/executiveBoardArtifact","#/$defs/executiveBoardClaimRef","#/$defs/executiveBoardDissent","#/$defs/executor","#/$defs/exportData","#/$defs/historyData","#/$defs/inboxActionLocator","#/$defs/inboxNavigationLocator","#/$defs/inboxUnavailableReason","#/$defs/intelligenceContext","#/$defs/nextAction","#/$defs/outcomeData","#/$defs/outcomesData","#/$defs/replayCheckpoint","#/$defs/resultRequirement","#/$defs/roleGapSummary","#/$defs/safeError","#/$defs/safeErrorContext","#/$defs/searchData","#/$defs/snapshotRef","#/$defs/subject","#/$defs/terminalDisposition","#/$defs/unavailableReason","../v2.0.0/operate-allowed-action.schema.json","../v2.0.0/operate-experience-view.schema.json#/$defs/boundAllowedAction","../v2.0.0/operate-experience-view.schema.json#/$defs/deepLink","../v2.0.0/operate-experience-view.schema.json#/$defs/domainMetric","2","32","8","ANCESTRY_MISMATCH","ARTIFACT_HASH_MISMATCH","ARTIFACT_NOT_FOUND","CAPABILITY_DENIED","CONSENT_REQUIRED","EVIDENCE_LOCATOR_INVALID","EVIDENCE_PROVIDER_UNAVAILABLE","EVIDENCE_RESOLVER_UNAVAILABLE","EVIDENCE_RESOLVER_UNREGISTERED","EVIDENCE_RESOLVER_VERSION_UNSUPPORTED","EVIDENCE_SOURCE_SCOPE_MISMATCH","LINE_RANGE_INVALID","OBJECT_TYPE_MISMATCH","OpenPlanr Operate 2.0 Phase 1 operating assignment","OpenPlanr Operate 2.0 evidence resolution outcome","OpenPlanr Operate 2.0 owner-bound review read","OpenPlanr Operate access-safe product experience","PATH_NOT_FOUND","REVISION_NOT_FOUND","Runtime-owned outcome envelope. A rejection contains safe structured context only; a resolution binds one immutable evidence Artifact.","Runtime-projected pre-commit Review data for the exact immutable human owner. The runtime owns readAt.","SECRET_DETECTED","SENSITIVITY_BLOCKED","SOURCE_NOT_FOUND","SOURCE_STALE","SOURCE_UNTRACKED","UNSUPPORTED_EVIDENCE_KIND","^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$","^(?:fnd|dec|act)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^.*\\S.*$","^aprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evt_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^met_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^pevl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^rrc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^sub_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^vfy_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xres_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","acceptedArtifactIds","acceptedArtifacts","acceptedEvidenceKinds","acceptedFreshness","acceptedSourceContracts","accessSafe","accountabilityDisposition","act","actionHypotheses","actionSummary","actionable","activeCycle","actorMatchesOwner","added","advisorArtifactIds","affectedTargetIds","allowedAction","allowedEvidence","allowedRecovery","allowedTerminalOutcomes","alternativeDispositions","appliesToOutcomes","approvalExecution","approvals","artifact.read","artifact.submit","artifactIds","artifactMetadata","artifactProvenance","artifactQualityBar","assignments","assumptionIds","attempt","attemptPolicy","attentionId","authenticity","authoritativeForMutation","authorityBoundary","availableAssignments","availableAt","baselineArtifactId","baselineHash","blockingSubjectIds","boardId","boundAllowedAction","boundSubmission","boundSubmissionHash","boundaries","bundleArtifactId","bundleCanonicalHash","bundleId","bundleRawHash","byStage","capabilities","capabilityCeiling","causalLink","causationId","chairSynthesis","challengerArtifactId","challengerFindingIds","challengerFindings","checkpoint","checkpointVerified","conditions","conflict","contained-execution","context-capture","contract","contractRef","contradictedClaims","correlationId","currentGeneration","currentValue","decide","decisionOwnerActorId","decisionSummary","deepLinks","deltaValue","dependencyActionIds","dependsOnActionHypothesisIds","derivedAt","detects","dispositionChoice","dissentSummary","edgeId","edges","else","endSequence","engine","entityType","evaluation","evaluationRules","eventCount","eventHash","eventIds","evidenceData","evidenceGapIds","evidenceGapSummary","evidenceInputAbsence","evidenceProvenance","evidenceSource","executionResultId","executions","expectedReadEventHead","expectedTargetHash","exportData","externalEffectsAuthorized","failureModes","filterDimensions","finalEventHashMatches","finalHead","findingSummary","forbiddenEffects","formats","from","future-analysis","future-observation","futureRequirement","gapSummary","gates","generationCount","govern","health","historyData","https://openplanr.dev/schemas/v2.0.0/operate-experience-view.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-assignment.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-evidence-resolution.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-read.schema.json","human-external","implementationRef","in_progress","inboundEdgeIds","incidentEdgeCount","inputAbsences","inspection","insufficientEvidence","integrityBoundary","intentEventId","issuedAt","itemId","known","learn","learningId","ledger","lensAbsences","limits","linked","linkedEvidence","liveAccessUsed","local-claim","localActionHypothesisId","localAlternativeId","localDecisionId","lock","manual","materializedEventId","matrixHash","matrixId","maxAttempts","maxEdges","maxNodes","maximumEvidenceRefs","maximumItems","method","metric","minimumEvidenceRefs","minimumItems","minimumSatisfied","mode","model","necessity","nextState","nodes","nonce","none","not-authorized","not-available","notRequired","note","nullableText","objective","objectiveId","observationIds","observe","observe-only","observed","omissionId","operate-action-display-workspace","operate-cycle-display-workspace","operate-executive-board-display-surface","operate-experience-audit-display-surface","operate-experience-display-surface","operate-experience-preview","operate-recovery-display-surface","operate-review-bound-submission","operate-review-bound-submission.schema.json","operate-review-display-workspace","operating-action.schema.json","operating-advisor-result","operating-artifact.schema.json","operating-assignment.schema.json","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/evidenceInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/reason","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/recoveryDisposition","operating-assignment.schema.json#/$defs/roleInputAbsence/properties/roleId","operating-challenger-review","operating-cycle.schema.json","operating-decision-ledger","operating-delivery-route","operating-evidence-candidate.schema.json#/$defs/implementationRef","operating-evidence-resolution.schema.json#/$defs/safeErrorContext","operating-execution-result","operating-governed-operation","operating-governed-operation.schema.json","operating-governed-operation.schema.json#/$defs/versionedId","operating-review-read.schema.json","operating-review-read.schema.json#/$defs/cycleId","operating-review-read.schema.json#/$defs/decisionSummary","operating-review-read.schema.json#/$defs/dissentSummary","operating-review-read.schema.json#/$defs/findingSummary","operating-review-read.schema.json#/$defs/gapSummary","operating-review-read.schema.json#/$defs/reviewSubmitArguments","operating-review-read.schema.json#/$defs/title","operating-trace-matrix","operating-trace-matrix.schema.json","operating-work-ledger","operationHash","outOfScope","outboundEdgeIds","outcomeData","outcomesData","outsideBoundary","ownerCycle","ownerLabel","ownerPid","parties","planHash","planId","planning-work","preconditionArtifactIds","previewHash","previewId","previousEventHash","prior","priorValue","priority","probable","projectionMode","proofState","questionIds","queued","read","readActionDigest","readAt","reader","recoverableGeneration","recoveryState","recoveryVersion","redactionCount","remaining","removed","repositoryId","requiredDispositions","requiredEvidence","requiredParties","requiredQuestions","requirements","resolution-failed","resolutionError","resolvedClaims","resolverId","restrictedEvidence","restrictedNodes","resultArtifactId","resultHash","retry","roleGapSummary","roleInputAbsence","rollbacks","rolled-back","route","routeHash","routeId","runtimeStateHash","safeError","searchData","seat","semanticHash","skillId","sourceBoardHash","sourceCycleId","sourceFindingIds","sourceId","sourceKind","sourceReadEventHead","sourceRecommendationRefs","sourceRootId","speculative","staleEvidence","startSequence","stateParityVerified","strongly-supported","subjectIds","succeeded","supportedClaims","tail","terminalAssignments","text/html; charset=utf-8","timeoutMs","timestamp","to","trigger","truncated","uncertaintyCount","uncertaintyId","uncertaintyIds","understand","unresolvedClaims","unresolvedGaps","unverifiedClaims","unverifiedOutcomes","value","verificationPlanHash","verifiedActions","verifiedEvidence","verifiedOutcomes","verify","versionedId","viewId","why","whyNow","#/$defs/actionApproval","#/$defs/actionApproveArguments","#/$defs/actionApproveSuccess","#/$defs/actionData","#/$defs/actionDependency","#/$defs/actionExecuteArguments","#/$defs/actionExecuteSuccess","#/$defs/actionRollbackArguments","#/$defs/actionRollbackSuccess","#/$defs/actionSummary","#/$defs/actionsData","#/$defs/advisorOutputContract","#/$defs/analysisRubric","#/$defs/artifactGetArguments","#/$defs/artifactGetSuccess","#/$defs/artifactRepresentation","#/$defs/assignment","#/$defs/assignmentClaim","#/$defs/assignmentClaimArguments","#/$defs/assignmentClaimSuccess","#/$defs/assignmentSubmitArguments","#/$defs/assignmentSubmitSuccess","#/$defs/attention","#/$defs/attentionCounts","#/$defs/beforeAfter","#/$defs/blockedReasons","#/$defs/blocker","#/$defs/boundAllowedAction","#/$defs/candidateId","#/$defs/capability","#/$defs/chairOutputContract","#/$defs/challengerOutputContract","#/$defs/choice","#/$defs/claim","#/$defs/claimCounts","#/$defs/contextCaptureOutputContract","#/$defs/corruptReasons","#/$defs/cycle","#/$defs/cycleData","#/$defs/cycleGetSuccess","#/$defs/cycleLink","#/$defs/cycleResumeSuccess","#/$defs/cycleStartArguments","#/$defs/cycleStartSuccess","#/$defs/cyclesData","#/$defs/data","#/$defs/decisionRef","#/$defs/decisionSummary","#/$defs/dependency","#/$defs/dependencyPolicy","#/$defs/dispositionChoice","#/$defs/dissentSummary","#/$defs/domainMetric","#/$defs/dueVerification","#/$defs/edge","#/$defs/effectSummary","#/$defs/error","#/$defs/errorCode","#/$defs/evidence","#/$defs/evidenceCounts","#/$defs/evidenceInputAbsence","#/$defs/executiveBoard","#/$defs/executiveBoardActionHypothesis","#/$defs/executiveBoardAlternativeDisposition","#/$defs/executiveBoardChairArtifact","#/$defs/executiveBoardChairDecision","#/$defs/executiveBoardChairSynthesis","#/$defs/executiveBoardChallengerFinding","#/$defs/executiveBoardChallengerFindings","#/$defs/executiveBoardEvidenceGap","#/$defs/executiveBoardGap","#/$defs/executiveBoardRecommendationRef","#/$defs/executiveBoardRoleGap","#/$defs/executiveBoardSeat","#/$defs/executiveBoardSeatAbsence","#/$defs/executiveSummary","#/$defs/findingSummary","#/$defs/gapSummary","#/$defs/gate","#/$defs/history","#/$defs/historyAuthority","#/$defs/historyChange","#/$defs/historyPrior","#/$defs/historyResult","#/$defs/inbox","#/$defs/inboxData","#/$defs/inboxEvidence","#/$defs/inboxParty","#/$defs/incompatibleReasons","#/$defs/inputAbsence","#/$defs/inputBundle","#/$defs/intelligenceInputBundleOutputContract","#/$defs/issuedEvidence","#/$defs/learning","#/$defs/lensAbsence","#/$defs/localAnalysisId","#/$defs/localClaimId","#/$defs/localFindingId","#/$defs/localMeasurementId","#/$defs/localRecommendationId","#/$defs/localRiskId","#/$defs/locator","#/$defs/mandate","#/$defs/mandateCapability","#/$defs/mandateForbiddenEffect","#/$defs/metricChange","#/$defs/nextObservation","#/$defs/node","#/$defs/nullableDeepLink","#/$defs/observationRequest","#/$defs/offlineReasons","#/$defs/outcome","#/$defs/outcomeMetric","#/$defs/parityProof","#/$defs/partialReasons","#/$defs/party","#/$defs/policyBinding","#/$defs/proof","#/$defs/proofCounts","#/$defs/rationale","#/$defs/readOnlyReasons","#/$defs/recommendation","#/$defs/recoveryInspectSuccess","#/$defs/recoveryInspection","#/$defs/replay","#/$defs/replayTail","#/$defs/requestBinding","#/$defs/resolutionId","#/$defs/reviewGetSuccess","#/$defs/reviewIdentityArguments","#/$defs/reviewSubmitSuccess","#/$defs/revisit","#/$defs/roleInputAbsence","#/$defs/searchResult","#/$defs/seatCounts","#/$defs/seatStatus","#/$defs/sharedTruthSummary","#/$defs/stage","#/$defs/stageCounts","#/$defs/staleReasons","#/$defs/submissionAcceptance","#/$defs/summary","#/$defs/summaryOmissions","#/$defs/terminalAbsence","#/$defs/terminalOutcome","#/$defs/threshold","#/$defs/todayData","#/$defs/toolName","#/$defs/transition","#/$defs/transitionTarget","#/$defs/uncertainty","#/$defs/verification","#/$defs/verificationCounts","#/$defs/workDisposition","#/properties/appliedChoiceHash","#/properties/appliedChoiceId","../v2.0.0/operate-api-envelope.schema.json#/$defs/cycleView/properties/progress","../v2.0.0/operate-experience-view.schema.json#/$defs/attention","../v2.0.0/operate-experience-view.schema.json#/$defs/claim","../v2.0.0/operate-experience-view.schema.json#/$defs/evidence","../v2.0.0/operate-experience-view.schema.json#/$defs/executiveBoard","../v2.0.0/operate-experience-view.schema.json#/$defs/rationale","1000","3","5","ACTION_NOT_FOUND","ACTION_REVISION_MISMATCH","APPROVAL_EXPIRED","APPROVAL_INVALID","APPROVAL_REQUIRED","ASSIGNMENT_ALREADY_CLAIMED","ASSIGNMENT_ALREADY_SUBMITTED","ASSIGNMENT_NOT_AVAILABLE","Access-safe identity graph joining operating requirements and absences to seats, accepted work, proof, decisions, governed actions, and verification. Every edge is listed once and reciprocally indexed by both endpoint nodes.","Access-safe, content-hashed projection over either one verified pending operating-review-read or one immutable terminal operating-review-receipt and its exact actor-bound experience view.","Additive wrapper that binds one exact advertised Review choice and optional owner note to the source Event head without changing the legacy operate.review.submit tool arguments.","CAPABILITY_GRANT_CONSUMED","CAPABILITY_GRANT_INVALID","CAPABILITY_PROVIDER_UNAVAILABLE","CAPABILITY_UNAVAILABLE","CONCURRENT_MODIFICATION","CONTRACT_VERSION_UNSUPPORTED","CYCLE_NOT_FOUND","CYCLE_TERMINAL","DOMAIN_CONTRACT_UNSUPPORTED","EVIDENCE_RESOLUTION_FAILED","EXECUTOR_UNAVAILABLE","OPERATE_CONTRACT_INCOMPATIBLE","OPERATE_OFFLINE","OPERATE_PROJECTION_BLOCKED","OPERATE_PROJECTION_PARTIAL","OPERATE_PROJECTION_STALE","OPERATE_READ_ONLY","OPERATE_STATE_CORRUPT","OPERATE_TRACE_ACCESS_RESTRICTED","OPERATE_TRACE_ROLE_NOT_SELECTED","OPERATE_TRACE_TYPED_ABSENCE","OPERATING_PROVIDER_INPUT_INVALID","OPERATING_PROVIDER_UNAVAILABLE","OPERATING_SCOPE_INVALID","OPERATION_CONFLICT","OPERATION_UNCERTAIN","OpenPlanr Operate 2.0 API envelope","OpenPlanr Operate 2.0 allowed action","OpenPlanr Operate 2.0 bounded reciprocal trace matrix","OpenPlanr Operate 2.0 cycle-scoped review","OpenPlanr Operate 2.0 execution result","OpenPlanr Operate 2.0 governed operation","OpenPlanr Operate 2.0 owner-bound review receipt","OpenPlanr Operate 2.0 persistent finding","OpenPlanr Operate 2.0 rebuildable persistent-work ledger","OpenPlanr Operate delivery route","OpenPlanr Operate governed experience preview","OpenPlanr browser-verifiable Operate display surface","OpenPlanr browser-verifiable access-safe audit display surface","OpenPlanr browser-verifiable executive board display surface","OpenPlanr browser-verifiable owner Review display workspace","OpenPlanr browser-verifiable recovery display surface","OpenPlanr browser-verifiable sanitized Action workspace","OpenPlanr browser-verifiable sanitized Cycle workspace","OpenPlanr dashboard Operate experience surface","OpenPlanr owner-bound Review submission","POLICY_EVALUATION_DEFERRED","POLICY_EVALUATION_REJECTED","POLICY_PROHIBITED","POLICY_PROVIDER_UNAVAILABLE","Post-commit proof of the exact human owner's Review disposition. The runtime owns receiptId and committedAt.","RESULT_CONTRACT_INVALID","REVIEW_NOT_AUTHORIZED","REVIEW_NOT_FOUND","REVIEW_NOT_PENDING","REVIEW_TERMINAL","ROLLBACK_NOT_ELIGIBLE","Runtime-owned pre-commit Review read and exact applied choice proof retained for byte-identical receipt replay. Receipt identity, post-commit Event head, and commit time derive from the committed Event and are intentionally excluded to avoid a hash cycle.","STATE_TRANSITION_INVALID","SUBMISSION_ID_CONFLICT","^(?:ceiling_[a-f0-9]{24}|grant-[A-Za-z0-9][A-Za-z0-9._-]{2,127})$","^(?:xres|rbres)_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^[0-9]+\\.[0-9]+\\.[0-9]+$","^[A-Z][A-Z0-9_]*$","^analysis:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^claim:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^droute_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evc_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^evs_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^finding:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^ibd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^ipl_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^measurement:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^recommendation:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:1$","^risk:asg_[A-Za-z0-9][A-Za-z0-9._-]{7,127}:[1-9][0-9]*$","^snp_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^tro_[a-f0-9]{32}$","^trx_[a-f0-9]{32}$","^xbr_[a-f0-9]{32}$","^xprv_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","^xview_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$","action.approve success","action.execute success","action.rollback success","actionApproval","actionApproveArguments","actionApproveSuccess","actionData","actionDependency","actionExecuteArguments","actionExecuteSuccess","actionIdentity","actionRollbackArguments","actionRollbackSuccess","actionsData","advisorOutputContract","all-required","allowed","alternatives","always","analysis","approved review","artifact.get success","artifactGetArguments","artifactGetSuccess","artifactRepresentation","assigned-to","assignment.claim success","assignment.submit success","assignmentClaim","assignmentClaimArguments","assignmentClaimSuccess","assignmentDependency","assignmentSubmitArguments","assignmentSubmitSuccess","attentionCounts","authorized","blockedReasons","blocker","body-never-projected","cancelled review","canonical bytes","carried-forward","chairOutputContract","challenge","challengerOutputContract","challenges","changes requested review","choice","claimCounts","claimed","clear-stale-lock","compatibility","compensating","contested","contextCaptureOutputContract","contradicted-by","corruptReasons","custody","customer-contact","cycle.get success","cycle.resume success","cycle.start success","cycleData","cycleGetSuccess","cycleIdentityArguments","cycleLink","cycleResumeSuccess","cycleStartArguments","cycleStartSuccess","cycleView","cyclesData","date","decides","decisionRef","declares","deltaRef","dependency","dependentRequired","digest","dispatching","disposes","divergent","domainMetric","edge","empty","endpoint","errorCode","event-type","evidence-ref","evidenceCounts","evidenceRequirement","executiveBoardActionHypothesis","executiveBoardAlternativeDisposition","executiveBoardArtifact","executiveBoardChairArtifact","executiveBoardChairDecision","executiveBoardChairSynthesis","executiveBoardChallengerFinding","executiveBoardChallengerFindings","executiveBoardClaimRef","executiveBoardDissent","executiveBoardEvidenceGap","executiveBoardGap","executiveBoardRecommendationRef","executiveBoardRoleGap","executiveBoardSeat","executiveBoardSeatAbsence","failure","gap","gate","git.read","governed","governed-by","governed-execution","healthy","historyAuthority","historyChange","historyPrior","historyResult","https://openplanr.dev/schemas/v1.2.0/operate-action-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-cycle-display-workspace.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-executive-board-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-audit-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-display-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-experience-surface.schema.json","https://openplanr.dev/schemas/v1.2.0/operate-recovery-display-surface.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-allowed-action.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-api-envelope.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-experience-preview.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-bound-submission.schema.json","https://openplanr.dev/schemas/v2.0.0/operate-review-display-workspace.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-delivery-route.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-execution-result.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-finding.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-governed-operation.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review-receipt.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-review.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-trace-matrix.schema.json","https://openplanr.dev/schemas/v2.0.0/operating-work-ledger.schema.json","identity-redacted","immutable-review-event","inboxActionLocator","inboxData","inboxEvidence","inboxNavigationLocator","inboxParty","inboxUnavailableReason","incompatibleReasons","inputAbsence","insufficient","intelligenceInputBundleOutputContract","intent-recorded","issued-as","lens","lensAbsence","localAnalysisId","localFindingId","localMeasurementId","localRiskId","locked","mandateCapability","mandateForbiddenEffect","materialized","measurements","metadata only","metricChange","nextAction","node","nodeKind","nonBlankText","nullableDeepLink","nullableShortText","objectArray","observed-as","offlineReasons","openplanr:operate-action-display-workspace:1.0.0","openplanr:operate-cycle-display-workspace:1.0.0","openplanr:operate-executive-board-display-surface:1.0.0","openplanr:operate-experience-audit-display-surface:1.0.0","openplanr:operate-experience-display-surface:1.0.0","openplanr:operate-recovery-display-surface:1.0.0","openplanr:operate-review-display-workspace:1.0.0","operate-action-workspace","operate-allowed-action","operate-api-envelope","operate-cycle-workspace","operate-executive-board","operate-experience-surface.schema.json","operate-experience-view.schema.json#/$defs/accessLevel","operate-experience-view.schema.json#/$defs/boundAllowedAction","operate-experience-view.schema.json#/$defs/claim","operate-experience-view.schema.json#/$defs/evidence","operate-experience-view.schema.json#/$defs/version","operate-planning-decision-revisit","operate-planning-delivery-verifier","operate-recovery","operate-review-workspace","operate-shared-truth-summary","operating-action","operating-approval-record.schema.json","operating-approval-requirement.schema.json","operating-context-capture","operating-decision","operating-decision.schema.json","operating-delivery-route.schema.json","operating-execution-result.schema.json#/$defs/effectSummary","operating-finding.schema.json","operating-finding.schema.json#/$defs/target","operating-intelligence-input-bundle","operating-policy-evaluation.schema.json","operating-review-read.schema.json#/$defs/actionSummary","operating-review-read.schema.json#/$defs/dispositionChoice","operating-review-read.schema.json#/$defs/humanActor","operating-review-read.schema.json#/$defs/scope","operating-review-read.schema.json#/$defs/seatStatus","operating-review-receipt.schema.json","operating-work-ledger.schema.json","operating-work-ledger.schema.json#/$defs/cycleLink","outcomeMetric","partialReasons","party","payment.change","pending review","planr.read","preferred","preview","produces","production.deploy","proofCounts","proposes","publicActor","publish","question-coverage","quiet","raw bytes","readOnlyReasons","records","recovery.inspect success","recoveryInspectSuccess","recoveryInspection","refused","rejected review","repairable","replayProjection","replayTail","repository.read","repository.write","requirement","restore-generation","restored","resultRequirement","review-only","review.get success","review.submit success","reviewGetSuccess","reviewIdentityArguments","reviewSubmit","reviewSubmitSuccess","risks","rubricClauses","safeToken","searchResult","seatCounts","separately-governed-follow-on","sharedTruthSummary","ship","shortText","snapshotRef","source-dispositions","spend","stage","stageCounts","staleReasons","standard","submissionAcceptance","submissionState","successBase","summaryOmissions","supported-by","synthesis","terminalAbsence","todayData","toolName","touched","transitionTarget","unowned","verificationCounts","verified decoded JSON","verified-by","workDisposition"]),mH=1e6,tA=5e5,yH=256,EH=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u,vH=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/u;function un(){const e=new TypeError("Dashboard schema token payload is invalid.");return Object.defineProperty(e,"code",{value:"E_DASHBOARD_SCHEMA_TOKEN_INVALID",enumerable:!0,configurable:!1,writable:!1}),e}function BH(e){if(typeof e!="string"||e.length===0||e.length>mH||e.length%4!==0||!EH.test(e))throw un();let t;try{if(t=globalThis.atob(e),globalThis.btoa(t)!==e)throw un()}catch{throw un()}const i=new Uint8Array(t.length);for(let s=0;s<t.length;s+=1){const c=t.charCodeAt(s);if(c>255)throw un();i[s]=c}return i}function ft(e){const t=BH(e);let i=0,s=0;const c=()=>{if(i>=t.length)throw un();const m=t[i];return i+=1,m},d=()=>{let m=0,y=1;for(let A=0;A<5;A+=1){const E=c();if(m+=(E&127)*y,m>4294967295)throw un();if((E&128)===0){if(A>0&&E===0)throw un();return m}y*=128}throw un()},u=()=>{const m=AH[d()];if(typeof m!="string")throw un();return m},p=m=>{if(s+=1,s>tA||m>yH)throw un();switch(c()){case 0:return null;case 1:return!1;case 2:return!0;case 3:{const y=u();if(!vH.test(y))throw un();const A=Number(y);if(!Number.isFinite(A)||JSON.stringify(A)!==y)throw un();return A}case 4:return u();case 5:{const y=d();if(y>tA-s)throw un();const A=new Array(y);for(let E=0;E<y;E+=1)A[E]=p(m+1);return A}case 6:{const y=d();if(y>tA-s)throw un();const A={};for(let E=0;E<y;E+=1){const b=u();if(Object.hasOwn(A,b))throw un();Object.defineProperty(A,b,{value:p(m+1),enumerable:!0,configurable:!0,writable:!0})}return A}default:throw un()}},g=p(0);if(i!==t.length||!g||typeof g!="object"||Array.isArray(g))throw un();return g}const ty=ft("BgpCBENBBPYKRAYCGgSvCx4EJBgEwgkABAYHAQQFBAR4BH8EqgEEcwIGBHgGAgAEAw4FDgT9AgT7AgT8AgT5AgT6AgT4AgT/AgSAAwT1AgT2AgT3AgT+AgTXAwTWA38GAKoBBgQABAMXAwwPA0xIBgELBKUCcwYCAAQDDgUGBHYEwQIE4wEExwQEqAQEvAMZBQ4GAhgE/QICBgN4BgEFBP0CfwYBAQShCHMGAQUE4wEGAhgE+wICBgN4BgEFBPsCfwYBAQTbBHMGAQUEdgYCGAT8AgIGA3gGAQUE/AJ/BgEBBNsEcwYBBQTjAQYCGAT5AgIGA3gGAQUE+QJ/BgEBBIkIcwYBBQTBAgYCGAT6AgIGA3gGAQUE+gJ/BgEBBIsIcwYBBQTBAgYCGAT4AgIGA3gGAQUE+AJ/BgEBBIQIcwYBBQR2BgIYBP8CAgYDeAYBBQT/An8GAQEE+AhzBgEFBHYGAhgEgAMCBgN4BgEFBIADfwYBAQSKBHMGAQUE4wEGAhgE9QICBgN4BgEFBPUCfwYBAQT4B3MGAQUE4wEGAhgE9gICBgN4BgEFBPYCfwYBAQT8B3MGAQUE4wEGAhgE9wICBgN4BgEFBPcCfwYBAQT+B3MGAQUE4wEGAhgE/gICBgN4BgEFBP4CfwYCAAQGBwFzBgEFBHYGAhgE1wMCBgN4BgEFBNcDfwYEAAQGBwEEBQEEvAICBgG8AgYBAQRdcwYBBQS8AwYCGATWAwIGA3gGAQUE1gN/BgIABAYHAXMGAQUEwQJFBg+7CgYEAAQGBwEEBQUEOwTHAwTjBwTTBgQ6AgYGOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBF0pBgEBBF0qBgEzBQIGAQEEXQYBDwNvxwMGAwAECBYCCQYBAQRd4wcGBAAEBgcBBAUBBBECBgERBgEFBMUG0wYGAgAEAw4FAgSJDATZCzoGAQEEXaIEBgIABAMOBQQE7AUEmgcEqwYE4wa4CgYEAAQGBwEEBQEELwIGAS8GAQEEXZUKBgQABAYHAQQFAgRTBGsCBgJTBgIABAMLBLABawYBAQSJBJgKBgQABAYHAQQFBgRTBIoDBGsEZgSnAQSZAgIGBlMGAgAEAwsEsAGKAwYCAAQDCwSoBWsGAQEEiQRmBgEBBF2nAQYCAAQDDgUCBOgBBJsEmQIGAgAEAwsEoAWOCgYFAAQGBwEEBQUEPASFAgRrBDsEUwIGBTwGAgAEAwsEaYUCBgIABAMOBQQEyAQEnQQEwgIEoQRrBgEBBIkEOwYBAQS9AVMGAgAFAgQDBAoLBLABMwUBBgIiBgICBgFrBgICBgERBgEFBJgEBAUBBBEEBQEEayMGAQIGAVMGAQAEA/cLBgQABAYHAQQFBAR7BC8EawQ7AgYEewYCAAQDCwSXAi8GAgAEAwsElgJrBgEBBN0COwYBAQS9AcwEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYCAAQDCwSWAmsGAQEE3QI7BgEBBL0BWgYCAAQDDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAoIKBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAgAEAwsEP/wJBgQABAYHAQQFAgQwBGQCBgMwBgEBBIIEZAYBDgUDBJABBEAExgHSAgYEAAQGBwEEBQUE0AEEmAcE2QMEkAYEkwYCBgXQAQYCAAQDCwSeA5gHBgIABAMLBD/ZAwYCAAQDCwSpApAGBgIABAMLBKoFkwYGAgAEAwsEP4AKBgQABAYHAQQFAQQwAgYBMAYBAQSCBIMKBgQABAYHAQQFAwQwBNkDBNABAgYDMAYBAQSCBNkDBgIABAMLBKkC0AEGAgAEAwsEngPeCwYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQRdEQYCAAQDDgUCBJgEBJsCmgEGAQEEXaoEBgQABAYHAQQFAwQyBBEEmgECBgMyBgEBBF0RBgEFBJsCmgEGAQEEXTsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db7QEBgQABAMXAwwPAxVIBgELBKUC"),bH=ft("BgVCBENBBKcGRAYCGgS7BB4ELhgElQVFBhVYBgEOBQQEgwME8AIE6QIEV3AGAgAFAgQDBAoOBQIElwQAxgUGBAAEBgcBBAUGBDwEpQMElwEElgEEdQSAAQIGBjwGAQEEDaUDBgEBBA2XAQYBAQSkApYBBgIABAMdBCB1BgEBBCiAAQYCAAUCBAMECgsEP8cFBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYCAAUCBAMECgsEP9cFBgQABAYHAQQFAgQ1BDACBgI1BgEBBA0wBgEBBPMC4gUGBAAEBgcBBAUEBBEENQTNAQQ5AgYEEQYBDgUFBMQBBMAGBGQEMAQ2NQYBAQQNzQEGAQ4FBATRBASgBATLAwSlBDkGAQEEjQHEAQYEAAQGBwEEBRIErwIEHwTAAwRcBPoDBLMDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhKvAgYBAQQNHwYBDgUFBKACBLIBBJsBBLsBBFfAAwYBDgUFBLcGBNkHBKIHBNUHBLsBXAYBAQR9+gMGAwAECBYCCQYBAQQNswMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBNgElwEGARkFAgYBAAQKBgEBBKQClgEGAgAEAx0EIDsGAQEEvQGHAgYBAQTSAYQCBgEZBQIGAQAECgYBAQTZBEcGAwAFAgRJBAoQAxNNAwyJAQYDAAQIFgIJBgEBBA39AQYCAAQICQYBAQSTA3AGAQEE6gH1AQYCAAQICQYBAQSQAzkGAQEEjQE5BgIABAMLBJMENAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKE8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BjgYGBAAEBgcBBAUHBGcEyAEEdQSAAQTUAgRmBFgCBgdnBgEBBA3IAQYBAQQNdQYBAQQogAEGAgAFAgQDBAoLBD/UAgYCAAQSEAMTZgYBAQQNWAYBAQTSAY8GBgQABAYHAQQFAwSdAQTIAgTOAgIGA50BBgEOBQQE3QEE3AEE4gEE4QHIAgYBAQSSA84CBgEBBJIDMQYCAAQDCwQ/GgYDAAQDFwMMDwMVrAYGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEON4GBgQABQIEAwQKFwMMDwNuCwTWAZcBBgQABAYHAQQFAwQyBEoEmgECBgMyBgEBBA1KBgEBBA2aAQYBAQQNuAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BjsGBAAEBgcBBAUDBCwEKQQqAgYDLAYBAQQNKQYBAQQNKgYBAQQ4HgYDAAQDFwMMDwNv"),MC=ft("BglCBENBBPkKRAYCGgTtBh4ELhgE1AmcAQSmCQAEBgcBBAUJBBEEGwQhBJIGBPcBBPYBBIwCBN0GBNkFAgYJEQYBBQTtBhsGAQUELiEGAQUEJJIGBgEBBMEE9wEGAQEEwAT2AQYBAQTCBIwCBgEBBIkH3QYGARkFAgYBAAQKBgQABAMXAwwPA2ILBJsD2QUGAQEEwgQ="),gc=ft("BgpCBENBBPoKRAYCGgTvBh4ELhgEzwmcAQSlCQAEBgcBBAUFBBEEGwQhBHoEYQIGBREGAQUE7wYbBgEFBC4hBgEFBCR6BgEBBIwEYQYBAQSQAkUGFdYEBgUABAYHAQQFFgR0BBEEGwQhBJgBBFYELAQpBCoELwR7BDIEWARlBIgCBPADBNUCBNIHBGgEHwQ3BCcCBhZ0BgEFAhEGAQUEvAsbBgEFBC4hBgEFBCSYAQYBBQJWBgEABF8sBgEBBJwCKQYBAQScAioGAQEEuAsvBgEBBIQHewYCAAQDCwSXAjIGAQEEnAJYBgEBBLQLZQYCAAQDHQQgiAIGAQ4FAgTDAgSBA/ADBgEBBIIC1QIGAQEE9ALSBwYBAQT0AmgGAQEEggIfBgEOBQcE5AEEdgRSBJ8BBGME4AEE5wE3BgQABAgUAxUWAgkGAgAEAwsEpwInBgEBBKQIMwUCBgIiBgICBgGIAgYBBQTDAgQFAQSIAiMGAQIGAh8GAUgGAQUE5wEnBgECBgOLAQYCAgYCHAYBBQS2AVoGAQAECgQFAgQcBFqsAwYBJgMMjAMGAQAECgYCIgYCAgYBiAIGAQUEgQMEBQEEiAIjBgECBgQfBgEFBOcBVgYBBQE3BgGwAwYBBQTeCScGAQIGBIsBBgICBgEcBgEOBQQEkAEEwwEEQASRAQQFAQQcrAMGARQDE4wDBgEBBPwEwAEGAgIGAlUGAQUBTgYBFAMTBAUCBFUETicGBAAEBgcBBAUQBIsBBMUEBKcEBMsCBKwDBJ4BBIgBBK0BBIkBBLEBBE8EgQIE/QMEjQIEjAMEwAECBhCLAQYBAQTYA8UEBgEBBOsIpwQGAQEEwgjLAgYBAQTwCKwDBgMABAgUAxUJBgEBBJcIngEGAwAECBQDTAkGAQEEhweIAQYDAAQIFANMCQYBAQSGB60BBgMABAgUA2IJBgEBBI0JiQEGAwAECBQDYgkGAQEEiAexAQYDAAQIFANuCQYBAQS2C08GAwAECBQDbgkGAQEEtwuBAgYDAAQIFANuCQYBAQTfAv0DBgEZBQIGAQAECgYBAQSMB40CBgEBBP8IjAMGARkFAgYBAAQKBgEBBPwEwAEGAQEElAjFBAYEAAQGBwEEBQUEiQIEOgS3BQTQBQSVBgIGBYkCBgQABAYHAQQFAgQaBB4CBgIaBgEFBL8EHgYBBQQkOgYBAQScArcFBgEABF/QBQYBBQTzC5UGBgEFAacEBgQABAYHAQQFBwSiAgS4AwSgAwTGAwS+AwTIAwTlBwIGB6ICBgEBBMMEuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxPlBwYCAAQSEAMTywIGARkFAgYEAAQGBwEEBQMEHwQJBNcBAgYDHwYBBQRVCQYEAAQIJgMMFANMCQYBAQSFB9cBBgEABAoGBAAEBgcBBAUDBB8ECQTXAQIGAx8GAQUE7gEJBgIABAgUAxPXAQYBAQT9BKcKBgQABAYHAQQFBwT3AQT2AQSqAQSMAgT5AQTPAQSyBwIGB/cBBgEBBMAE9gEGAQEEggKqAQYBAQSKB4wCBgEBBIkH+QEGAQEEwwTPAQYBDgUCBIQLBP8LsgcGBAAECBQD1QEWAgkGAQEExAKtAQYEAAQGBwEEBQQE5gcE0QcE0AcEXAIGBOYHBgEBBJwC0QcGAQ4FBARkBMQBBE8E5ArQBwYBAQScAlwGAQEEwwS4BAYEAAQGBwEEBQUEEQTmAQS1AwTaBwTjAwIGBREGAQ4FAgRXBO4B5gEGAQ4FBARPBMQBBMoHBNEBtQMGAgAEEhADDNoHBgQABAgUA24WAgkGAQEEnALjAwYCAAQDCwSnAoAMBgQABAYHAQQFDAQRBBsE1QIEaAT4AwSCAwTtAwRPBLEBBG0EmAIEgQICBgwRBgEFBL0LGwYBBQQu1QIGAQEE9AJoBgEBBIIC+AMGAQEEgQmCAwYBAQTtCO0DBgEBBP0ITwYBAQSyCLEBBgEBBJkIbQYBAQSPCZgCBgEBBI4IgQIGAQEEhQmHDAYEAAQGBwEEBQwE2gEEhQEE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgME3wUCBgzaAQYCAAQSEAMThQEGAgAEEhADE+gCBgIABBIQAxOTAQYCAAQSEAMTVQYCAAQSEAMTjQMGAgAEEhADE2MGAgAEEhADE3kGAgAEEhADE4gDBgIABBIQAxObAQYCAAQSEAMThgMGAgAEEhADE98FBgQABAgmA5oDFAOaAwkGBAAEBgcBBAUKBBoE6AIEkwEEVQSNAwRjBHkEiAMEmwEEhgMCBgoaBgEOBQcE4gYE6AcE9AUEpAYEsgUE8gcEuAboAgYCAAQSEAMTkwEGAgAEEhADE1UGAgAEEhADE40DBgIABBIQAxNjBgIABBIQAxN5BgIABBIQAxOIAwYCAAQSEAMTmwEGAgAEEhADE4YDBgIABBIQAxPcCwYEAAQGBwEEBQgEHwS+BgS7BwS5BwTpBwTxBwTsBwQ3AgYIHwYBDgUEBNsCBNgCBJ8BBLYEvgYGAgAEEhADE7sHBgIABBIQAxO5BwYCAAQSEAMT6QcGAgAEEhADE/EHBgIABBIQAxPsBwYCAAQSEAMTNwYEAAQIFAMVFgIJBgIABAMLBKcC/gsGBAAEBgcBBAUJBIUBBOcBBI8CBEAEeQS+AQTlAgS2AQT+AwIGCYUBBgIABBIQAxPnAQYCAAQSEAMTjwIGAgAEEhADE0AGAgAEEhADE3kGAgAEEhADE74BBgIABBIQAxPlAgYCAAQSEAMTtgEGAgAEEhADE/4DBgIABBIQAxPRCgYEAAQGBwEEBQgEhQEEVQRXBJMBBN8BBFIEvQYEuQQCBgiFAQYCAAQSEAMTVQYCAAQSEAMTVwYCAAQSEAMTkwEGAgAEEhADE98BBgIABBIQAxNSBgIABBIQAxO9BgYCAAQSEAMTuQQGAgAEEhADE6gKBgQABAYHAQQFBgSFAQSgAgSyAQSbAQS7AQRXAgYGhQEGAgAEEhADE6ACBgIABBIQAxOyAQYCAAQSEAMTmwEGAgAEEhADE7sBBgIABBIQAxNXBgIABBIQAxOWDAYEAAQGBwEEBQUEhQEE2wIE2AIE3AYEsgYCBgWFAQYCAAQSEAMT2wIGAgAEEhADE9gCBgIABBIQAxPcBgYCAAQSEAMTsgYGAgAEEhADE5oKBgQABAYHAQQFBASFAQSpAwS1BQTVBAIGBIUBBgIABBIQAxOpAwYCAAQSEAMTtQUGAgAEEhADE9UEBgIABBIQAxONDAYEAAQGBwEEBQQEhQEEVwTuAQQ3AgYEhQEGAgAEEhADE1cGAgAEEhADE+4BBgIABBIQAxM3BgQABAgUAxUWAgkGAgAEAwsEpwKMAwYEAAQGBwEEBQgE5AMEZAStAgSsAgSjAwTiAwQ0BK4DAgYI5AMGAgAEAwsEpwVkBgEOBQQEkAEEwwEEQASRAa0CBgEBBMAErAIGAQEEggKjAwYEAAQIFAPVARYCCQYBAQTEAuIDBgEBBPQCNAYBAQT0Aq4DBgIABAMdBCDAAQYBGQUCBgQABAYHAQQFAwRVBE4EKwIGA1UGAQUCTgYEAAQIJgMMFAMVCQYBAQS1CysGAQAECgYEAAQGBwEEBQMEVQROBCsCBgNVBgEFAU4GAgAECBQDEysGAQEE/QTXAgYEAAQGBwEEBQIEcQSAAgIGAnEGAgAEAwsEpwKAAgYBAQSKB2EGBAAEBgcBBAUGBI8BBJQBBIgCBGgE8AMEkgECBgaPAQYBBQSfApQBBgEFBK0LiAIGAQ4FAgTDAgSBA2gGAQEEggLwAwYBAQSCApIBBgEBBIIC"),GC=ft("BgVCBENBBKgGRAYCGgS8BB4EJBgEkgVFBgKNBgYBAgYCKwYDAAQDFwMMDwNiUAYDAAQDFwMMDwMVwQcGAQIGAysGAwAEAxcDDA8DYlAGAwAEAxcDDA8DFUoGAwAEAxcDDA8DFQ=="),wH=ft("BgZCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBUUGAzwGAgAEAwsEae8CBgIABAMLBJUCzwQGAwAEBgcBAgYGnQEGAQ4FBATdAQTcAQTiAQThAbEHBgEBBEvUBwYBAQRLxwIGAQEESzwGAQEEvAG6BwYBAQRL"),YC=ft("BgZCBENBBKoGRAYCGgTDAh4EJBgElAWcAQSZBUUGGGoGAgAEAwsElAS0BQYEAAQGBwEEBQsEWQQYBBwEOgTzAwT+AQSrAQT0AQRsBNoCBNkCAgYLWQYCAAQDCwTtARgGAQEE1AEcBgEOBQkExgQEkAEEpgcErQYEnwQEYwRABMYBBJEBOgYDAAUCBAMEChcDDA8DFfMDBgIABQIEAwQKCwTjAv4BBgEBBCWrAQYCAAUCBAMECgsEpQX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQQl2QIGAQEEJTwGAgAEAwsEaVMGAgAEAwsEsAEvBgIABAMLBJYC9gUGBQAEBgcBBAUNBD0EsgIEGATKAgQ2BFsERwQ6BLoCBLkCBNACBIgBBGACBhA9BgEOBQIEzAEEywGyAgYCAAQDCwTjAhgGAQEE1AHKAgYBAQQlNgYBGQUCBgEABAoGAQEEJVsGAQEEJUcGAwAESRADE00DDDoGAQEEDboCBgEBBCW5AgYBAQQlrQEGAQEEJc8BBgEBBCXQAgYEAAQIJgMMFAODBQkGAQEEJfsBBgQABAgUAxUWAgkGAgAEAwsEnAOIAQYDAAQIFAMVCQYBAQQlYAYFAAQIJgMMFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUDBgEEBQEErQEGAQQFAQTPAQYBBAUBBPsBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQMErQEEzwEE+wH9BQYEAAQGBwEEBQQE9wEE9gEEqgEEjAICBgT3AQYCAAQDCwSVBPYBBgEBBCiqAQYBAQTUAYwCBgEBBIoE/gUGBAAEBgcBBAUEBGcEwAIEXATNAgIGBGcGAQEEvAHAAgYCAAQDCwScA1wGAQEEJc0CBgEBBCU0BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiMBgYEAAQGBwEEBQYEagQRBJkBBIoCBCsEUAIGBmoGAQEE6QERBgEFBE+ZAQYBAQRLigIGBQAECCYDDBQDjgEWAgkGBAAEBgcBBAUCBBoEHgIGAhoGAQEESx4GAQEEOCsGAQEE9AZQBgEBBPUGggEGAgAEAwsEqAKaBgYFAAQGBwEEBQcEPQT/AQQYBFwEHAQ6BOUBAgYMPQYBDgUCBMwBBMsB/wEGAgAEAwsEnQMYBgEBBNQBXAYBAQQltQEGAQ4FCASBBASyAQS0AwTSAwSABATNAwTbAwTsA7kBBgEOBQQEzwME0AMEyQMEtgNHBgMABEkQAxNNAwwcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAwAFAgQDBAoXAwwPAxXlAQYCAAUCBAMECh0EILoBBgQABAgUAxUWAgkGAQEE0wGzAQYEAAQIFAMVFgIJBgEBBNMBMwUCBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUFBgEEBQEEtQEGAQQFAQS5AQYBBAUBBEcGAQQFAQS6AQYBBAUBBLMBBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQUEtQEEuQEERwS6AQSzAaEGBgEZBQIGAQEE9gQGAQEE4QQxBgIABAMLBD+qBAYEAAQGBwEEBQMEMgQRBJoBAgYDMgYBAQQNEQYBBQSbApoBBgEBBA0aBgMABAMXAwwPAxXvAgYCAAQDCwSVAswEBgQABAYHAQQFBgR7BC8EawQ7BFoErwECBgZ7BgIABAMLBJcCLwYBAQSRA2sGAQEE3QI7BgEBBL0BWgYBDgUEBJABBMMBBEAEkQGvAQYEAAQIFAPVARYCCQYBAQTEAsAHBgQABAYHAQQFCARqBBEESgR3BHwEoAEEKwRQAgYIagYBAQTpAREGAQUE0QJKBgEBBPgGdwYBDgUDBL8BBMIBBMEBfAYBAQQ4oAEGARkFAgYBAAQKBgEBBIMEKwYBAQT2BlAGAQEE9wY7BgQABAYHAQQFAwQsBCkEKgIGAywGAQEEDSkGAQEESyoGAQEEONMCBgQABAYHAQQFBgRKBHcEfAQcBDwEnwMCBgZKBgEBBEt3BgEOBQMEvwEEwgEEwQF8BgEBBDgcBgEOBQcEtgEEVQTrAwSPAgRABL4BBHk8BgIABQIEAwQKCwRpnwMGBAAECBQDYhYCCQYBAQTpAaICBgQABAMXAwwPA24LBNYBGAYEAAQDFwMMDwNMCwSbAx4GAgAEAwsElAI="),ny=ft("BgpCBENBBP8KRAYCGgSBAx4EJBgExwmcAQTZCQAEBgcBBAUXBBEEGwQhBOQDBC8E4gMENAQ7BGsEiwEEZATTAgS0AQROBJ4BBIgBBIkBBL0DBK0CBKwCBKMDBKEBBK4DAgYYEQYBBQSBAxsGAQUELiEGAQUEJOQDBgIABAMLBKcFLwYBAQSEB+IDBgEBBMEENAYBAQTBBDsGAQEEzQtrBgEBBMwLiwEGAQEE2ANkBgEOBQQEkAEEwwEEQASRAdMCBgMABAgUA44BCQYBAQTOC7QBBgMABAgUA0wJBgEBBIUHTgYDAAQIFAN+CQYBAQTKC54BBgMABAgUA0wJBgEBBIcHiAEGAwAECBQDTAkGAQEEhgeJAQYDAAQIFANiCQYBAQSIB70DBgQABAgmAwwUAxUJBgEBBMsLrQIGAgAEAwsElQSsAgYBAQTCBKMDBgQABAgUA9UBFgIJBgEBBMQC2AUGAQEE7gahAQYBAQSECa4DBgIABAMdBCBFBgLrCwYFAAQGBwGcAQTgCQQFAwSnBwStAgSsAgIGBKcHBgEBBIMHrQIGAQEEkgmsAgYBAQSRCdgFBgEBBO4GoQEGBAAEBgcBBAUGBLgDBKADBMYDBL4DBMgDBIACAgYGuAMGAgAEEhADE6ADBgIABBIQAxPGAwYCAAQSEAMTvgMGAgAEEhADE8gDBgIABBIQAxOAAgYEAAQDFwMMDwNuCwSiBQ=="),Gf=ft("BgpCBENBBIALRAYCGgS/BB4EJBgExAkABAYHAQQFCwQRBBsEIQR7BC8EOgQcBFoErwEEcgSOAgIGDBEGAQUEvwQbBgEFBC4hBgEFBCR7BgIABAMLBJcCLwYDAAQDFwMMDwMV5gEGAQEE+wQ6BgMABAMXAwwPAxUcBgIABAMOBQUEtgEEkAEEwwEEQASRAVoGAgAFAgQDBAoOBQUABJABBMMBBEAEkQGvAQYDAAQIFgIJBgEBBJAJcgYCAAQDHQQgjgIGAgAEAx0EIBkFBQYCGATWCwIGAxwGAQUEtgFaBgEFAK8BBgEUAxMGAhgEjAoCBgIcBgEFBJABWgYBBQSQAQYCGASmCgIGAxwGAQUEwwFaBgEFBMMBrwEGARQDEwYCGATpCwIGAxwGAQUEQFoGAQUEQK8BBgEUAxMGAhgEnwoCBgMcBgEFBJEBWgYBBQSRAa8BBgEUAxNFBgLmAQYBGQUCBgQABAYHAQQFAgQABC8CBgIABgEFBIEBLwYDAAQDFwMMDwMVBgQABAYHAQQFBAQABFkEUQSlAQIGBAAGAQUEMFkGAgAEAwsE7QFRBgIABBIQAwylAQYCAAQDCwQ/mQwGBAAEBgcBBAUDBIQGBNsBBFoCBgOEBgYCAAQDDgUDBL4EBMILBL4L2wEGAgAEAwsEoQVaBgIABAMOBQcE2AEEkAEEQAS4AQTGAQSLAwSRAQ=="),Yf=ft("BgpCBENBBIELRAYCGgSLBx4EJBgEwwmcAQSkCQAEBgcBBAUPBBEEGwQhBMgGBCwEKQQqBC8ENAS8BgTXBgSABgSBAgSCAwTHBgIGDxEGAQUEiwcbBgEFBC4hBgEFBCTIBgYCAAQDCwT0CSwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDTQGAQEE6wG8BgYEAAQGBwEEBQMEywYEygYE5AcCBgPLBgYBBQOHAcoGBgEFA+EC5AcGAQUB1wYGAwAECBQDhwEJBgEBBOIIgAYGAwAECBQD4QIJBgEBBK0IgQIGAwAECBQDhwEJBgEBBN8CggMGAQEE7AjHBgYBAQQoRQYMGgYDAAQDFwMMDwMVswQGAwAEAxcDDA8Dfh4GAgAEAwsElAIxBgIABAMLBD80BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQUABgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCigCwYBDgUNBO8LBNcBBMoHBPMBBNkBBMQBBNAKBKkEBGQEMARaBG0ENrAEBgQABAYHAQQFBwQRBBoE7gUELAQpBCoELwIGBxEGAQEEhgQaBgEBBIUE7gUGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOCwGAQEEDSkGAQEEDSoGAQEEOC8GAQEEDZ8LBgQABAYHAQQFBQSwBATvAQSkBwSuBgSQBwIGBbAEBgEBBNwI7wEGAQ4FAwRVBFcE7gGkBwYBDgUTBLUEBLYBBOcBBNgBBEAEeQS+AQTbAgRSBKACBLIBBK0KBNgCBO4BBFcExgQE5woEnwQEjQuuBgYEAAQIFAPhAhYCCQYCAAQDCwSWBJAHBgQABAgUA+ECFgIJBgIABAMLBJYEzQoGBAAEBgcBBAUCBBEEGgIGAhEGAQEEhgQaBgEBBIUEywoGBAAEBgcBBAUEBP8FBM0BBJ0GBOIHAgYE/wUGAgAEAwsElgTNAQYBDgUQBMIKBJEKBJALBOQLBNoLBLADBI4MBK8KBMsDBKUKBMAKBN0LBMgKBOgKBJgMBKULnQYGAQEE3wTiBwYBAQTfBLgEBgQABAYHAQQFBgTlBgQRBOYBBDUE4wMErwYCBgblBgYCAAQDCwTzCREGAQ4FAgRXBO4B5gEGAQEEhgQ1BgEBBIUE4wMGAQ4FAwS5CQS7CQS6Ca8GBgMABBIQAxNNA+ECggMGBAAEBgcBBAUKBN4HBKwFBPAHBNYHBNwHBPAFBOsHBLwHBP4DBO8HAgYK3gcGAwAEEhADE00DhwGsBQYDAAQSEAMTTQOHAfAHBgMABBIQAxNNA4cB1gcGAwAEEhADE00DhwHcBwYDAAQSEAMTTQOHAfAFBgMABBIQAxNNA4cB6wcGAwAEEhADE00DhwG8BwYDAAQSEAMTTQOHAf4DBgMABBIQAxNNA4cB7wcGAwAEEhADE00DhwE="),ay=ft("BglCBENBBO8KRAYCGgTmBh4ELhgE0QkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOYGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBREEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEHwQ3BCcCBhF0BgEFAhEGAQUErgsbBgEFBC4hBgEFBCSYAQYBAARfVgYBAARfLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQkEMAQ2BJUBBKkBBIMBBLcBBG0E2gUEpgECBgkwBgEBBJcDNgYBGQUCBgEABAoGAQEEmAOVAQYCAAQICQYBAQSQBKkBBgIABAgJBgEBBI8EgwEGAgAECAkGAQEEjgS3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD2gUGBAAEBgcBBAUDBMEFBG0EvwcCBgPBBQYDAAQDFwMMDwN+bQYDAAQDFwMMDwN+vwcGAwAEAxcDDA8DfqYBBgIABAgJBgEBBP8EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEpwtoBgEBBF6SAQYBAQRe"),iy=ft("BglCBENBBPAKRAYCGgTnBh4ELhgE0gkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOcGGwYBBQQuIQYBBQQkegYBAQSMBGEGAQEEkAJFBgLWBAYEAAQGBwEEBRIEdAQRBBsEIQSYAQRWBCwEKQQqBDIEWARlBDQEhgEEjQIEHwQ3BCcCBhJ0BgEFAhEGAQUEsQsbBgEFBC4hBgEFBCSYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQcElAcEgQEE4QMEtwEEbQTfAwSmAQIGB5QHBgEABAaBAQYBAAQG4QMGAQEEkwm3AQYBAQSRBG0GBAAEBgcBBAUCBB8ENwIGAh8GAQ4FAwS2BATbAgTYAjcGAwAECBYCCQYBAAQD3wMGBAAEBgcBBAUGBJ4BBLQBBE4EigEElQEEsQICBgaeAQYBAAQItAEGAQAECE4GAQAECIoBBgEABAiVAQYBAAQIsQIGAQAECKYBBgQABAgmAwwUAwwJBgEBBP4EYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqAtoBgEBBF6SAQYBAQRe"),ry=ft("BglCBENBBPUKRAYCGgTsBh4ELhgE0AkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOwGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQS7CxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQQEsQYEgwEEpgEErAcCBgSxBgYBAAQGgwEGAgAECAkGAQEEjgSmAQYCAAQICQYBAQT+BKwHBgEOBQcEYwSbAQSxCgTJCgSwAgS+AgTxC2EGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKwLaAYBAQRekgEGAQEEXg=="),sy=ft("BglCBENBBPEKRAYCGgToBh4ELhgEzgkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOgGGwYBBQQuIQYBBQQkegYBAQSIBGEGAQEEkAJFBgJ6BgQABAYHAQQFEQR0BBEEGwQhBJgBBFYELAQpBCoEMgRYBGUENASGAQQfBDcEJwIGEXQGAQUCEQYBBQSyCxsGAQUELiEGAQUEJJgBBgEFAlYGAQUBLAYBAQRGKQYBAQRGKgYBAQSTAjIGAQEERlgGAQEEpgJlBgIABAMdBCA0BgEBBJIChgEGAQEEXh8GAQ4FBgTkAQR2BFIEnwEEYwTgATcGAwAECBYCCQYBAAQDJwYEAAQGBwEEBQIELwTDAwIGAi8GAQEERsMDBgEBBJcJYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqQtoBgEBBF6SAQYBAQRe"),oy=ft("BglCBENBBPMKRAYCGgTqBh4ELhgEzAkABAYHAQQFBQQRBBsEIQR6BGECBgURBgEFBOoGGwYBBQQuIQYBBQQkegYBMwUCBgEBBLMLBgICBgEtBgEOBQUE0wQEqQEE2gEEgQEETgQFAQQtYQYBAQSQAkUGAWEGBAAEBgcBBAUEBI8BBJQBBGgEkgECBgSPAQYBBQSfApQBBgEFBKsLaAYBAQRekgEGAQEEXg=="),cy=ft("BglCBENBBPIKRAYCGgTpBh4ELhgEzQkABAYHAQQFBgQRBBsEIQSdAgR6BGECBgYRBgEFBOkGGwYBBQQuIQYBBQQknQIGAQEE9Qh6BgEBBIgEYQYBAQSQAkUGCp0CBgQABAYHAQQFDAQyBCwEKQQqBC8ENQQtBMkCBB0EZQQ0BIYBAgYMMgYBAQRGLAYBAQRGKQYBAQRGKgYBAQSTAi8GAQEERjUGARkFAgYBAAQKBgEBBEYtBgEOBQYETwSKAQQ2BIMBBIcDBJoCyQIGAgAFAgQDBAoPA34dBgIABQIEAwQKDgUDAATOAwTKA2UGAgAEAx0EIDQGAQEEkgKGAQYBAQReegYFAAQGBwEEBRMEdAQRBBsEIQQtBJgBBFYELAQpBCoEMgRYBGUENASGAQSNAgQfBDcEJwIGE3QGAQUCEQYBBQS6BBsGAQUELiEGAQUEJC0GAQ4FBgRPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEFASwGAQEERikGAQEERioGAQEEkwIyBgEBBEZYBgEBBKYCZQYCAAQDHQQgNAYBAQSSAoYBBgEBBF6NAgYBAQSSBB8GAQ4FCATkAQR2BFIEnwEEYwTgAQS+AgSwAjcGAwAECBYCCQYBAAQDJwYBAAQGMwUGBgIiBgICBgEtBgEFBE8EBQEELSMGAQIGAScGAQEE4AQGAiIGAgIGAS0GAQUEigEEBQEELSMGAQIGAScGAQEE8wQGAiIGAgIGAS0GAQUENgQFAQQtIwYBAgYBJwYBAQTyBAYCIgYCAgYBLQYBBQSDAQQFAQQtIwYBAgYBJwYBAQTsBAYCIgYCAgYBLQYBBQSHAwQFAQQtIwYBAgYBJwYBAQT5BAYCIgYCAgYBLQYBBQSaAgQFAQQtIwYBAgYBJwYBAQTrBKQLBgIABAgJBgEABAaKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYBAQTsAbEBBgEBBOwBWwYBAQTsAZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgEBBOwBigEGAQEE7AGVAQYBAQTsAZEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAAQGlQEGAQEE7AGmBgYEAAQGBwEEBQIEgwEEtwECBgKDAQYBAQTsAbcBBgEABAbJBwYEAAQGBwEEBQIEyQIE6QMCBgLJAgYCAAQDDwN+6QMGAgAECAkGBAAEBgcBBAUFBBEENQQYBKEBBBwCBgYRBgMABAMXAwwPAxU1BgEBBEYYBgMABAMXAwwPA26hAQYCAAQDDwNuHAYDAAQDFwMMDwMVOQYBAQSABZQGBgQABAYHAQQFAwQdBGYEsQMCBgMdBgEOBQIEzgMEygNmBgEOBQIE8gEE3wexAwYBAAQDYQYEAAQGBwEEBQQEjwEElAEEaASSAQIGBI8BBgEFBJ8ClAEGAQUEqgtoBgEBBF6SAQYBAQRe"),Hf=ft("BgpCBENBBPQKRAYCGgS6BB4ELhgE0wkABAYHAQQFEwR0BBEEGwQhBC0EmAEEVgQsBCkEKgQyBFgEZQQ0BIYBBI0CBB8ENwQnAgYTdAYBBQIRBgEFBLoEGwYBBQQuIQYBBQQkLQYBDgUMBNMEBKkBBNoBBIEBBE4EMARPBIoBBDYEgwEEhwMEmgKYAQYBBQJWBgEABF8sBgEBBEYpBgEBBEYqBgEBBJMCMgYBAQRGWAYBAQSmAmUGAgAEAx0EIDQGAQEEkgKGAQYBAQRejQIGAQEEkgQfBgEOBQgE5AEEdgRSBJ8BBGME4AEEvgIEsAI3BgMABAgWAgkGAQAEAycGADMFFAYCIgYCAgYBLQYBBQTTBAQFAQQtIwYBAgYBJwYBAQSJCQYCIgYCAgYBLQYBBQSpAQQFAQQtIwYBAgYBJwYBAQTMCAYCIgYCAgYBLQYBBQTaAQQFAQQtIwYBAgYBJwYBAQSjCAYCIgYCAgYBLQYBBQSBAQQFAQQtIwYBAgYBJwYBAQSdCAYCIgYCAgYBLQYBBQROBAUBBC0jBgECBgEnBgEBBIEIBgIiBgICBgEtBgEFBDAEBQEELSMGAQIGAScGAQEE+gcGAiIGAgIGAS0GAQUETwQFAQQtIwYBAgYBJwYBAQTgBAYCIgYCAgYBLQYBBQSKAQQFAQQtIwYBAgYBJwYBAQTzBAYCIgYCAgYBLQYBBQQ2BAUBBC0jBgECBgEnBgEBBPIEBgIiBgICBgEtBgEFBIMBBAUBBC0jBgECBgEnBgEBBOwEBgIiBgICBgEtBgEFBIcDBAUBBC0jBgECBgEnBgEBBPkEBgIiBgICBgEtBgEFBJoCBAUBBC0jBgECBgEnBgEBBOsEBgIiBgICBgEfBgEFBOQBBAUBBB8jBgECBgJWBgEFAjcGAgAECBQDEwYCIgYCAgYBHwYBBQR2BAUBBB8jBgECBgJWBgEFATcGAQEE7wgGAiIGAgIGAR8GAQUEUgQFAQQfIwYBAgYCVgYBBQE3BgEBBIIJBgIiBgICBgEfBgEFBJ8BBAUBBB8jBgECBgJWBgEFATcGAQEE6QgGAiIGAgIGAR8GAQUEYwQFAQQfIwYBAgYCVgYBBQE3BgEBBJAIBgIiBgICBgEfBgEFBOABBAUBBB8jBgECBgJWBgEFATcGAQEE5QgGAiIGAgIGAR8GAQUEvgIEBQEEHyMGAQIGAlYGAQUBNwYBAQTPCAYCIgYCAgYBHwYBBQSwAgQFAQQfIwYBAgYCVgYBBQE3BgEBBJsIRQYUhgsGBAAEBgcBBAUCBKkBBJ0CAgYCqQEGAgAECAkGAQEEjwSdAgYEAAQGBwEEBQMExwIEvAIENQIGA8cCBgEBBF68AgYCAAQSEAMTNQYBGQUCBgEABAoGAQEERpEMBgQABAYHAQQFBwSYAgT8AQS2BQSpAQROBIoBBKYBAgYHmAIGAgAECAkGAQEElAn8AQYCAAQICQYBAQSBBbYFBgEZBQIGAQAECgYBAQSNBKkBBgIABAgJBgEBBI8ETgYCAAQICQYBAQSXA4oBBgIABAgJBgEBBJgDpgEGAgAECAkGAQEE/wS+CgYEAAQGBwEEBQEE2gECBgHaAQYCAAQICQYBAQSNBLYKBgQABAYHAQQFAQSBAQIGAYEBBgEBBI0EhQoGBAAEBgcBBAUCBE4EnQICBgJOBgIABAgJBgEBBJcDnQIGBAAEBgcBBAUCBMcCBLwCAgYCxwIGAQEEXrwCBgIABBIQAxP+CQYEAAQGBwEEBQEEMAIGATAGAQEElwOKBgYEAAQGBwEEBQMETwSxAQRbAgYDTwYCAAQICQYBAQSWCbEBBgIABAgJBgEBBJUJWwYCAAQICQYBAQSYCZIHBgQABAYHAQQFAwT8AQSKAQSVAQIGA/wBBgIABAgJBgEBBIEFigEGAgAECAkGAQEEmAOVAQYCAAQICQYBAQSQBJEHBgQABAYHAQQFAgQ2BJUBAgYCNgYBAQSYA5UBBgIABAgJBgEBBJAEpgYGBAAEBgcBBAUCBIMBBLcBAgYCgwEGAgAECAkGAQEEjgS3AQYBAQSRBMkHBgQABAYHAQQFAgTJAgTpAwIGAskCBgIABAMPA37pAwYCAAQICQYBAQT8CP0LBgQABAYHAQQFBQQRBDUEGAShAQQcAgYGEQYDAAQDFwMMDwMVNQYBAQRGGAYDAAQDFwMMDwNuoQEGAgAEAw8DbhwGAwAEAxcDDA8DFTkGAQEEgAWUBgYEAAQGBwEEBQMEHQRmBLEDAgYDHQYBDgUCBM4DBMoDZgYBDgUCBPIBBN8HsQMGAQAEA+MLBgQABAgmAwwUAwwJBgEFBLcJiAwGBAAECCYDDBQDDAkGAQUEtgnTCwYEAAQIJgMMFAMMCQYBBQS1CZwKBgQABAgmAwwUAwwJBgEFBLQJpgsGBAAECCYDDBQDDAkGAQUEswmLCwYEAAQIJgMMFAMMCQYBBQSyCbAKBgQABAgmAwwUAwwJBgEFBLgJ"),xH=ft("BgpCBENBBPcKRAYCGgSwCx4EJBgEwQkABAYHAQQFAwR0BIQBBKYBAgYFdAYBAARfhAEGAQEEigknBgCoAQYBAQSvCKYBBgIABAgJBgEBBPMCGQUNBgIYBLUKAQSiCAYCGASzCgEEnggGAhgEtAoBBKAIBgIYBJIKAQSKCAYCGASTCgEEjAgGAhgEjQoBBIUIBgIYBPQLAQT3CAYCGAT1CwEE+QgGAhgE+AkBBPkHBgIYBPkJAQT9BwYCGAT6CQEE/wcGAhgE5QsBBPEIBgQYBOMKBAUBBKgBAgYBdAYBBQFIBgEEBQEEJ0UGGZIMBgIABAMOBQ4E/QIE+wIE/AIE+QIE+gIE+AIE/wIEgAME9QIE9gIE9wIE/gIE1wME1gOoAQYEAAQGBwEEBQQEcQSAAgSGAgT6AQIGBHEGAgAEAw4FOASHBQSGBQSFBQShCQSiCQSjCQSIBQSrCQSsCQSJBQStCQSuCQSvCQSKBQSLBQSwCQSMBQSNBQSOBQSPBQSQBQSRBQS8CQS9CQS+CQSWBQTbCQTcCQTdCQTaCQSXBQSaBQSbBQScBQSdBQSeBQThCQTiCQSfBQScCQSdCQTWCQTVCQTXCQSgCQSfCQSeCQSqCQSoCQSnCQSpCQTYCQSxCQS/CQTACQTfCYACBgMABAMXAwwPA2KGAgYBAARf+gEGAQEE+ASMDAYDBAUBBCcCBgF0BgEFAkgGAQQFAQSoAbwKBgEzBQIGAQEEowEGAQIGAoQBBgEFBP0CJwYBAQSEBLcKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPsCJwYBAQSEBLoKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPwCJwYBAQSEBJYKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPkCJwYBAQSICJkKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPoCJwYBAQSDCY8KBgEzBQIGAQEEowEGAQIGAoQBBgEFBPgCJwYBAQSGCPYLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP8CJwYBAQSDB/kLBgEzBQIGAQEEowEGAQIGAoQBBgEFBIADJwYBAQTPC/0JBgEzBQIGAQEEowEGAQIGAoQBBgEFBPUCJwYBAQT3B4EKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPYCJwYBAQSBB4QKBgEzBQIGAQEEowEGAQIGAoQBBgEFBPcCJwYBAQSBB+YLBgEzBQIGAQEEowEGAQIGAoQBBgEFBP4CJwYBAQTyCPsJBgQABAYHAQQFBAQwBIUGBLYHBMIFAgYEMAYBAQTwBoUGBgEBBMkLtgcGAgAECAkGAQEEwAvCBQYCAAQICQYBAQS/C70KBgQABAYHAQQFBgSBAQThAwTRBQSrBQTfAwROAgYGgQEGAQEE+gbhAwYEAAQGBwEEBQgEhQEEtgEEVQTlAgTQBASPAgRABOcBAgYIhQEGAgAEEhADE7YBBgIABBIQAxNVBgIABBIQAxPlAgYCAAQSEAMT0AQGAgAEEhADE48CBgIABBIQAxNABgIABBIQAxPnAQYCAAQSEAMT0QUGAgAECAkGAQEE8warBQYDAAQIFgIJBgIABAMLBGnfAwYEAAQGBwEEBQIEugYEsQICBgK6BgYBAQTQC7ECBgIABAgJBgEBBNELTgYCAAQICQYBAQTzAvgLBgQABAYHAQQFAgSLAQSBAQIGAosBBgEBBNgDgQEGAQEE+gaUCgYEAAQGBwEEBQME8wEEigME4AUCBgPzAQYBMwUCBgEBBPMGBgICBgEcBgEFBOsDBAUBBBzgBQYDAAQIFgIJBgMABAMXAwwPAxWKAwYCAAQDCwSoBYoMBgQABAYHAQQFBQTYAQQ8BHUE1AIEpgMCBgXYAQYBBQI8BgIABAMLBGl1BgIABAMLBD/UAgYCAAQSEAMTpgMGAQUEjwLvBQYEAAQGBwEEBQUEjAEEGwRmBKcBBPICAgYFjAEGAwAEAxcDDA8DTBsGAwAEAxcDDA8Db2YGAwAEAxcDDA8DFacBBgIABAMOBQIE6AEEmwTyAgYCAAQSEAMMzwQGAwAEBgcBAgYIhAEGAQEEkQIvBgEBBJECUwYBAQSRAooDBgEBBJECiwwGAQEEkQJ7BgEBBJECHAYBAQSRAvICBgIABBIQAxP8CwYEAAQDFwMMDwNMSAYBCwSlApAKBgUABAYHAQQFAgTCAgSFAgIGBMICBgEBBPIGhQIGAgAEAw4FBATIBASdBATCAgShBJkCBgIABAMLBKAF6gIGABkFBAYEGATiCwQFAQSZAgIGAYUCBgEFBMgESAYBBAUBBOoCBgQYBKAKBAUBBJkCAgYBhQIGAQUEnQRIBgEEBQEE6gIGAxgEnAsCBgGFAgYBBQTCAkgGAfEBBQIGAQQFAQSZAgYBBAUBBOoCBgQYBJcMBAUBBOoCAgYChQIGAQUEoQTCAgYBMwUCBgEBBPIGBgECBgJmBgEFBPIBpwEGAQUE6AFIBgEEBQEEmQLnCwYEAAQGBwEEBQgEHwTyBQSrBwSjBgQrBL0FBMQGBLMGAgYIHwYCAAQDDgUGBOoKBMwKBLACBL4CBJcLBOoL8gUGAgAEAxcDDKsHBgIABQIEAwQKFwMMowYGAgAEEhADEysGAwAEAxcDDA8DYr0FBgIABAMOBQME2QYEqgoE8AvEBgYEAAQGBwEEBQUEHwSWBwTYBgS7AgQrAgYFHwYCAAQDDgUDBO4BBOUCBFKWBwYCAAUCBBIEChADE9gGBgIABQIEAwQKFwMMuwIGAgAFAgQDBAodBCArBgIABAMPA2KzBgYEAAQGBwEEBQUE1AYE/AUEzgUEkwcEoAYCBgXUBgYCAAQDFwMM/AUGAgAECAkGAgAEAxcDDM4FBgIABAMXAwyTBwYCAAQICQYCAAQDFwMMoAYGAgAEAxcDDA=="),ly=ft("BglCBENBBKcGRAYCGgS7BB4ELhgElQUABAYHAQQFHQQRBBsEIQT0BwQsBCkEKgQyBFgEZQQ0BPcDBB8EmAIE/AEE2gEEqQEETgRPBLEBBFsEigEElQEEgwEEtwEEpgEEgQIEmgIEhgECBh0RBgEFBLsEGwYBBQQuIQYBBQQk9AcGAgAEAwsE9wksBgEBBA0pBgEBBA0qBgEBBDgyBgEBBA1YBgEOBQQEgwME8AIE6QIEV2UGAgAEAx0EIDQGAQEE6wH3AwYBAQQoHwYBDgUIBOQBBHYEUgSfAQRjBOABBL4CBLACmAIGAgAECAkGAQEEjQj8AQYCAAQICQYBAQSrCNoBBgIABAgJBgEBBJwIqQEGAgAECAkGAQEEywhOBgIABAgJBgEBBI4DTwYCAAQICQYBAQSxCLEBBgIABAgJBgEBBJgIWwYCAAQICQYBAQTuCIoBBgIABAgJBgEBBOYIlQEGAgAECAkGAQEE1AiDAQYCAAQICQYBAQTGCLcBBgEBBPMIpgEGAgAECAkGAQEEkgiBAgYCAAQICQYBAQTfApoCBgQABAYHAQQFAwScBgSwBQSuBwIGA5wGBgMABAgWAgkGAQ4FAgTOAwTKA7AFBgEFAq4HBgIABBIQAxOGAQYBAQQoRQZXGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DbgsE1gGCDAYEAAQDFwMMDwN+CwTWAd4GBgQABQIEAwQKFwMMDwNuCwTWAaMLBgQABQIEAwQKFwMMDwN+CwTWAVgGAQ4FBASDAwTwAgTpAgRXcAYCAAUCBAMECg4FAgSXBAA5BgIABAMLBJMEogsGAgAFAgQDBAoLBJMEOwYEAAQGBwEEBQMELAQpBCoCBgMsBgEBBA0pBgEBBA0qBgEBBDiXAQYEAAQGBwEEBQMEMgRKBJoBAgYDMgYBAQQNSgYBAQQNmgEGAQEEDawGBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDiDDAYEAAQGBwEEBQIE7wMEcgIGAu8DBgEBBA1yBgIABAMdBCDDCgYEAAQGBwEEBQQEswIE4AMEtwME+wUCBgSzAgYBAQQN4AMGAgAFAgQDBAoPAxW3AwYBAQQN+wUGAgAEAx0EIJ4LBgQABAYHAQQFAgSqAQR4AgYCqgEGAQEEogF4BgEBBA00BgEZBQIGBAAEBgcBBAUCBD4EMQIGAj4GAQUDEzEGAQAECgYEAAQGBwEEBQIEPgQxAgYCPgYCAAQSEAMMMQYBAQQomAIGBAAEBgcBBAUKBM0FBBEENQShBwQYBPYHBPkBBBwExwEEYAIGCs0FBgEBBA0RBgEOBQYEZASkAwQwBG0ENgStATUGAQEEDaEHBgMABBIQAxNNA5kJGAYBAQSiAfYHBgEBBKIB+QEGAQEEJRwGAQEEDccBBgIABQIEAwQKHQQgYAYDAAQIFgIJBgEBBA3KCgYEAAQGBwEEBQ8EqwEEGATtBwT/AwSqAwTcAgTJAQQcBGwE1gIEYATuAwS6AwSkBARwAgYPqwEGAQEEDRgGAQEE3gLtBwYBAAUCBEkECv8DBgIABQIEAwQKDwMVqgMGARkFAgYBAAQKBgEBBOAI3AIGAgAFAgQDBAoPA37JAQYBDgUEBJMBBN8BBFIEuwEcBgEOBQYEkwEE3wEEUgS7AQTVBARXbAYBAAUCBEkECtYCBgEABQIESQQKYAYDAAQIFgIJBgEBBA3uAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ASkBAYCAAQICQYBAQSsCHAGAQEE6gGdCwYEAAQGBwEEBQUEEQSgBwTzBQT4BQSzAgIGBREGAQ4FBQS4BQSwBwSrAwRSBOsFoAcGAQAFAgRJBArzBQYBAAUCBEkECvgFBgEABQIESQQKswIGAgAFAgQDBAoPAxWkBAYEAAQGBwEEBQYErgEEWQQcBMcBBNwCBDkCBgauAQYBAQQNWQYBAQQNHAYCAAUCBAMECg8DFccBBgIABQIEAwQKHQQg3AIGAgAFAgQDBAoPA345BgEBBOMIgQEGBAAEBgcBBAUOBC8EHASlBgTHAwRyBI4CBPgDBMkFBLsGBLsDBKgDBN4DBMoEBDkCBg8vBgEBBA0cBgEBBA2lBgYBAQQNxwMGAgAECAkGAQEEogFyBgIABAMdBCCOAgYCAAQDHQQg+AMGBAAECCYDmgMUA5oDCQYBAQSACckFBgIABAgJBgEBBIcIuwYGAgAECAkGAQEE1QjDAwYBGQUCBgEABAoGAQEEtAi7AwYCAAQICQYBAQSnCKgDBgIABAgJBgEBBJEI3gMGAwAECBYCCQYBAQQNygQGARkFAgYBAAQKBgEBBPQEOQYBAQSNAYYMBgQABAYHAQQFCQQaBBwEKwTKAQTGAgSiBgSLBgTnBwTeAwIGCRoGAQ4FBwTiBgToBwT0BQSkBgSyBQTyBwS4BhwGAQ4FCQToAgSTAQRVBGMEiAMEeQSbAQSGAwSNAysGAgAFAgQDBAoPA37KAQYDAAQIFgIJBgEBBA3GAgYDAAQIFgIJBgEBBA2iBgYCAAQICQYBAQTFCIsGBgMABAgWAgkGAQEEDecHBgMABAgWAgkGAQEEDd4DBgMABAgWAgkGAQEEDfMBBgQABAYHAQQFDQRTBBgE0QIElQcEHATXAQTHAQTUAwQ5BLsDBKgDBMoBBMYCAgYNUwYBAQQNGAYBAQTeAtECBgIABQIEAwQKDwMVlQcGAgAFAgQDBAoPAxUcBgEBBA3XAQYBGQUCBgEABAoGAQEEhgnHAQYCAAUCBAMECh0EINQDBgEZBQIGAQAECgYBAQTxBDkGAQEEjQG7AwYCAAQICQYBAQTaBKgDBgMABAgWAgkGAQEEDcoBBgMABAgWAgkGAQEEDcYCBgMABAgWAgkGAQEEDZcKBgQABAYHAQQFAwRTBBwEuAECBgNTBgEBBA0cBgIABQIEAwQKDwMVuAEGAQAEX5AMBgQABAYHAQQFBAQ2BHEEKwRQAgYENgYBDgUCBL4BBHlxBgIABAMPAxUrBgEBBKIBUAYCAAQDDwMVkgsGBAAEBgcBBAUEBEoEdwSkAQQrAgYESgYBAQQNdwYCAAQDDwMVpAEGAgAEAw8DFSsGAQEEJdUKBgQABAYHAQQFAwQ8BHUEgAECBgM8BgEBBA11BgEBBCiAAQYBAQQo4goGARkFAwYEAAQGBwEEBQUEEQQ2BHEEKwRQAgYFEQYBBQTnATYGAQ4FAgS+AQR5cQYCAAQDDwMVKwYBAQSiAVAGAgAEAw8DFQYEAAQGBwEEBQUEEQRKBHcEpAEEKwIGBREGAQUEkQtKBgEBBA13BgIABAMPAxWkAQYCAAQDDwMVKwYBAQQlBgQABAYHAQQFAgQRBCsCBgIRBgEFBLkEKwYBAQQl4QoGBAAEBgcBBAUIBEoEqgEEdwR8BFMEpgME2QEE1wECBghKBgEBBA2qAQYBAQSiAXcGAgAEAw8DFXwGAQEEOFMGAgAFAgQDBAoPAxWmAwYCAAUCBAMECg8DFdkBBgEZBQIGAQAECgYBAQTnBNcBBgEZBQIGAQAECgYBAQTBCMMDBgUABAYHAQQFBQQvBJkHBO0DBOcFBOQFAgYOLwYBAQQNmQcGAQEEDdYFBgIABAMLBPUJewYBAQQNowcGAQ4FAgSaCwSrCs8FBgEABF/GBgYCAAUCBAMECg8DFdUCBgEBBOsBzQcGAQEEKMsHBgEBBCj9AwYBAQSMB+0DBgMABAgUA44BCQYBAQTACOcFBgEZBQIGAQAECgYBAQS7COQFBgEZBQIGAQAECgYBAQS5CMUKBgHWBQUIBHsEowcEzwUExgYE1QIEzQcEywcE/QPaCgYEAAQGBwEEBQME2QEEngEEiAECBgPZAQYBGQUCBgEABAoGAQEE5wSeAQYDAAQIFANMCQYBAQS6CIgBBgMABAgUA0wJBgEBBOkE2QoGBAAEBgcBBAURBP8BBGcEoAEEiQMEtQEEuQEERwShAgS6AQSzAQQYBFwEWwTrAgQcBDoE5QECBhH/AQYBAQQNZwYBAQQNoAEGAQEEDYkDBgEBBA21AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBMcLugEGBAAECBQDFRYCCQYBAQQNswEGBAAECBQDFRYCCQYBAQQNGAYBAQSiAVwGAQEEJVsGAQEEJesCBgEBBCUcBgEOBQYE1QME2AEEuAEEQATGAQSLAzoGAgAFAgQDBAoPAxXlAQYCAAUCBAMECh0EINwKBgQABAYHAQQFBARnBMACBFwEzQICBgRnBgEBBA3AAgYBAQQNXAYBAQQlzQIGAQEEJdgKBgQABAYHAQQFBATZAQS0AQSIAQTqBwIGBNkBBgEBBLcItAEGAwAECBQDTAkGAQEEuAiIAQYDAAQIFANMCQYBAQTpBOoHBgMABAgUA2IJBgEBBL0I1goGBAAEBgcBBAUEBDwEzAMEuQUE5QUCBgQ8BgEBBA3MAwYBAQQNuQUGBAAECBQDjgEWAgkGAQEEDeUFBgIABQIEAwQKDwMV2woGBAAEBgcBBAUCBKoCBK4EAgYCqgIGAQEEDa4EBgEBBA3fCgYEAAQGBwEEBQIEqgIErwQCBgKqAgYBAQQNrwQGAQEEDdQKBgQABAYHAQQFBQRnBMIGBBgEWgRbAgYFZwYBAQQNwgYGAQEEDRgGAQEE3gJaBgEOBQME2AEEQATGAVsGAQEEfdcKBgQABAYHAQQFFATDBgQYBMoCBDYEWwTyAwTTBwTmBQRgBEcEygUEugIEuQIErQEEzwEEOgTQAgT7AQS/BQSzBQIGFMMGBgEBBA0YBgEBBN4CygIGAQEEfTYGAQEEfVsGAQEEffIDBgQABAgmAwwUAxUJBgEBBOgE0wcGAwAECBQDjgEJBgEBBL4I5gUGBAAECBQDTBYCCQYBAQQNYAYFAAQIJgMMFAMVFgIJBgEBBA1HBgMABQIESQQKEAMTTQMMygUGBAAECBQDFRYCCQYBAQQNugIGAQEEfbkCBgEBBH2tAQYBAQR9zwEGAQEEfToGAgAFAgQDBAoPAxXQAgYEAAQIJgMMFANvCQYBAQQl+wEGBAAECBQDFRYCCQYBAQQNvwUGAwAECBQDbwkGAQEEtgizBQYDAAQIFANMCQYBAQS1CNMKBgQABAYHAQQFDgTBBgQYBOAGBDoEsQUE/gEEqwEE9AEEbATaAgTZAgTyAwTPBwT6BQIGDsEGBgEBBA0YBgEBBN4C4AYGAgAFAgQDBAoPAxU6BgIABQIEAwQKDwMVsQUGAgAFAgQDBAoOBQMABJUMBGP+AQYBAQR9qwEGAgAFAgQDBAoPAxX0AQYBAAUCBEkECmwGAQAFAgRJBAraAgYBAQR92QIGAQEEffIDBgMABAgUAxUJBgEBBOgEzwcGBAAECBQDTBYCCQYBAQQN+gUGBAAECBQDTBYCCQYBAQQN3goGARkFAgYBAQS/CAYBAQS8COAKBgQABAYHAQQFCgRqBBEESgR3BHwEpAEEKwRQBKABBPQDAgYKagYCAAUCBAMECg8DFREGAQUE0QJKBgEBBA13BgEOBQMEvwEEwgEEwQF8BgIABQIEAwQKDwNvpAEGAQEEDSsGAQEEJVAGAgAFAgQDBAoPAxWgAQYCAAUCBAMECg8DFfQDBgIABQIEAwQKDwMV3QoGBAAEBgcBBAUKBGoEEQSZAQTCAwSKAgSkAQQrBFAE9gME9QMCBgpqBgEBBA0RBgEFBE+ZAQYBAQQNwgMGBQAECCYDDBQDmQMWAgkGAQ4FBATdAQTcAQTiAQThAYoCBgUABAgmAwwUA44BFgIJBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBA2kAQYBDgUEBNsGBNoGBLcHBFIrBgEBBCVQBgEBBA32AwYEAAQIFAMVFgIJBgEBBA31AwYEAAQIFANiFgIJBgEBBA3/CQYEAAQGBwEEBQMEWQQcBLgBAgYDWQYBAQQNHAYCAAUCBAMECg8DFbgBBgEABF/ECgYBGQUCBgQABAYHAQQFAwSLAgQ1BLQCAgYDiwIGAQUE8wE1BgEBBA20AgYCAAQICQYBAQTaBAYEAAQGBwEEBQMEiwIENQS0AgIGA4sCBgEFBDA1BgEBBA20AgYCAAQICQYBAQT7B50KBgQABAYHAQQFAwSLAgQ1BNUFAgYDiwIGAQ4FAgTzAQQwNQYBAQQN1QUGBAAECCYDDBYCCQYBAQQN5QoGBAAEBgcBBAUDBBEENQQcAgYDEQYBDgUFBIsBBKQDBLcCBG0ErQQ1BgEBBA0cBgEBBA2pAQYFAAQGBwEEBQ8EtgYEEQQ1BDoEHAQYBPkBBLsCBKkDBE8EtAcE5gME5AIE0wME1wICBg+2BgYBAQQNEQYBDgUDBGQEpAMEbTUGAQEEDToGAQEEDRwGAQEEDRgGAQEEogH5AQYBAQSiAbsCBgIABQIEAwQKHQQgqQMGAQAEX08GAgAECAkGAQEEzQi0BwYCAAQICQYBAQTOCOYDBgIABAgJBgEBBN8C5AIGARkFAgYBAAQKBgEBBO0E0wMGARkFAgYBAAQKBgEBBO4E1wIGARkFAgYBAAQKBgEBBO8EGQUDBgECBgLkAgYBAQTtBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAQTuBNcCBgEABAoGAQIGA+QCBgEABArTAwYBAAQK1wIGAQEE7wSHCwYEAAQGBwEEBQQEggEExQEE7wEEzQECBgSCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV80BBgEOBQQE0QQEoAQEywMEpQSJCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGAQEEggccBgEOBQMEBATlAwTMAswCBgEABF+FCwYEAAQGBwEEBQIENQShAwIGAjUGAQEEDaEDBgEBBCiICwYEAAQGBwEEBQUEEQQvBHsEOQSoBwIGBREGAQUEiwEvBgIABAMLBJYCewYCAAQDCwSXAjkGAQEEjQGoBwYBAQQoigsGBAAEBgcBBAUCBHEEgAICBgJxBgIABAMLBKcCgAIGAQEEogEwBgQABAYHAQQFDQRZBFEEpQEEGAQcBDoE/gEErgEEogQE+QUEkQYEwgcEOQIGDVkGAQEEDVEGAgAEEhADDKUBBgEBBCgYBgEBBKIBHAYBAQQNOgYCAAUCBAMECg8DFf4BBgEBBCWuAQYBAQQNogQGAQEExAv5BQYDAAQIFgIJBgEBBA2RBgYCAAQICQYBAQSUA8IHBgIABAgJBgEBBJQDOQYBAQSNAU8GBAAEBgcBBAUVBIIBBMUBBO8BBMkBBJ0BBM4BBK0DBPkDBLIDBNEBBJcBBJYBBDsEhwIEhAIERwSJAQT9AQRwBPUBBDkCBhWCAQYBAQQNxQEGAQEE0gHvAQYBDgUCBFUEV8kBBgEOBQMEkwEE3wEEUp0BBgIABQIEAwQKDgUFBN0BBNwBBOIBBOEBAM4BBgIABQIEAwQKHQQgrQMGAQ4FBQSgAgSyAQSbAQS7AQRX+QMGAwAECBYCCQYBAQQNsgMGAwAECBYCCQYBAQQN0QEGARkFAgYBAAQKBgEBBOYElwEGARkFAgYBAAQKBgEBBKQClgEGAgAFAgQDBAodBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE4wRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BxAEGBAAEBgcBBAUSBK8CBB8EwAMEXAT6AwSzAwTRAQSXAQSWAQQ7BIcCBIQCBEcEiQEE/QEEcAT1AQQ5AgYSrwIGAQEEDR8GAQ4FBQSgAgSyAQSbAQS7AQRXwAMGAQ4FBQS3BgTZBwSiBwTVBwS7AVwGAQEEffoDBgMABAgWAgkGAQEEDbMDBgMABAgWAgkGAQEEDdEBBgEZBQIGAQAECgYBAQTYBJcBBgEZBQIGAQAECgYBAQSkApYBBgIABAMdBCA7BgEBBL0BhwIGAQEE0gGEAgYBGQUCBgEABAoGAQEE2QRHBgMABQIESQQKEAMTTQMMiQEGAwAECBYCCQYBAQQN/QEGAgAECAkGAQEEkwNwBgEBBOoB9QEGAgAECAkGAQEEkAM5BgEBBI0BWwYEAAQGBwEEBQYEswQEEQQ1BKEBBDwEYAIGBrMEBgEBBA0RBgEOBQoExAEEywIEowoEjwwEZAQwBIQDBDYErQQE6gM1BgEBBA2hAQYBAQQlPAYCAAUCBAMECg8DFWAGAwAECBYCCQYBAQQNNgYEAAQGBwEEBRIE2gMEWQSuAQQfBM8GBOEGBGAElgEEZAS3AgTSAgRtBLIEBOoDBO4DBLoDBHAEOQIGEtoDBgEBBA1ZBgEBBA2uAQYBAQQNHwYBAQQNzwYGARkFAgYBAAQKBgEBBOcI4QYGAwAECBYCCQYBAQQNYAYDAAQIFgIJBgEBBA2WAQYCAAQDHQQgZAYBGQUCBgEABAoGAQEEpQi3AgYCAAQICQYBAQSUA9ICBgIABAgJBgEBBJQDbQYBGQUCBgEABAoGAQEEjgmyBAYBGQUCBgEABAoGAQEE4QjqAwYBGQUCBgEABAoGAQEE+gjuAwYBGQUCBgEABAoGAQEE+gS6AwYBGQUCBgEABAoGAQEE3ARwBgEBBOoBOQYBAQSNAa0EBgQABAYHAQQFBgS5BgTaAwRcBLkDBGAEcgIGBrkGBgEBBA3aAwYBAQQNXAYBAQQluQMGAgAECAkGAQEEDWAGAgAECAkGAQEEDXIGAgAEAx0EIIMBBgQABAYHAQQFEgTBAwQ+BAAE2wEE8AEEMgThBwTxBQSIBgSqAwT1BwSnAwRgBJ8HBIQDBNQDBPcFBJoEAgYSwQMGAQEEDT4GAgAEEhADDAAGAQEEDdsBBgEBBA3wAQYBAQQNMgYDAAUCBAMEChcDDA8DFeEHBgIABAMdBCDxBQYBAQQNiAYGAQEEKKoDBgEBBMgI9QcGAQEEfacDBgEZBQIGAQAECgYBAQTHCGAGAwAECBYCCQYBAQQNnwcGAQEEyQiEAwYBGQUCBgEABAoGAQEEygjUAwYBGQUCBgEABAoGAQEE8QT3BQYDAAQIFgIJBgEBBI0BmgQGARkFAgYBAAQKBgEBBI8ItwEGBAAEBgcBBAUHBOgFBN0HBJkGBL8GBMQEBJcGBOYDAgYH6AUGARkFAgYBAAQKBgEBBPQE3QcGAQEE9AiZBgYBAQTrAb8GBgEFAcQEBgEBBOgIlwYGAwAECBYCCQYBDgUIBIEBBDAEZARrBIQBBIQDBM8KBL8K5gMGAgAECAkGAQEE3wKPBgYEAAQGBwEEBQMEnQEEyAIEzgICBgOdAQYBDgUEBN0BBNwBBOIBBOEByAIGAQEEkgPOAgYBAQSSA44GBgQABAYHAQQFBwRnBMgBBHUEgAEE1AIEZgRYAgYHZwYBAQQNyAEGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/1AIGAgAEEhADE2YGAQEEDVgGAQEE0gHGBQYEAAQGBwEEBQYEPASlAwSXAQSWAQR1BIABAgYGPAYBAQQNpQMGAQEEDZcBBgEBBKQClgEGAgAEAx0EIHUGAQEEKIABBgIABQIEAwQKCwQ/xwUGBAAEBgcBBAUDBDwEdQSAAQIGAzwGAQEEDXUGAQEEKIABBgIABQIEAwQKCwQ/uAcGBAAEBgcBBAUDBJ4CBKgBBM4BAgYDngIGAQEEDagBBgEZBQIGAQAECgYBAQT3BM4BBgIABAMdBCDIBwYEAAQGBwEEBQMEcQSGAgT6AQIGA3EGAQEEDYYCBgEABF/6AQYBAQT+BuIFBgQABAYHAQQFBAQRBDUEzQEEOQIGBBEGAQ4FBQTEAQTABgRkBDAENjUGAQEEDc0BBgEOBQQE0QQEoAQEywMEpQQ5BgEBBI0BhAMGBAAEBgcBBAUJBM8CBMUCBB8E+AEE7AIE/AME+wMEcAQ5AgYJzwIGAQEEDcUCBgEBBA0fBgEBBA34AQYCAAQDHQQg7AIGARkFAgYBAAQKBgEBBMUL/AMGAgAFAgQDBAoLBD/7AwYCAAUCBAMECgsEP3AGAQEE6gE5BgEBBI0B0gsGBAAEBgcBBAUKBKsBBNEDBPQBBGwE5AYE/wME3AIExwEEyQEERwIGCqsBBgEBBA3RAwYBAQQo9AEGAQAFAgRJBApsBgEABQIESQQK5AYGAQAFAgRJBAr/AwYCAAUCBAMECg8DFdwCBgIABQIEAwQKDwN+xwEGAgAFAgQDBAodBCDJAQYBDgUEBJMBBN8BBFIEuwFHBgMABQIESQQKEAMTTQMMwQoGBAAEBgcBBAUEBLICBFEEHAQ5AgYEsgIGAQEEDVEGAgAEEhADDBwGAQEEDTkGAQEEjQFtBgQABAYHAQQFCASuAQTuBwSrAQTRAwTOBgSGBgS3BARwAgYIrgEGAQEEDe4HBgEBBCirAQYBAQQN0QMGAQEEKM4GBgEBBH2GBgYCAAQICQYBAQQltwQGARkFAgYBAAQKBgEBBOQIcAYBAQTqAbcEBgQABAYHAQQFAgQRBCsCBgIRBgEOBQIEnwYEngYrBgEBBCWyBAYEAAQGBwEEBQMEEQQrBMcBAgYDEQYBDgUCBJ8GBJ4GKwYBAQQlxwEGAgAFAgQDBAodBCDqAwYEAAQGBwEEBQIEuQME6gUCBgK5AwYDAAQIFgIJBgEBBA3qBQYCAAQICQYBAQQl7AoGBAAEBgcBBAUCBIsCBKEBAgYCiwIGAgAFAgQDBAoPAxWhAQYBAQR96woGBAAEBgcBBAUEBLUCBK4CBL0CBMABAgYEtQIGAQEEDa4CBgMABAgWAgkGAQEEDb0CBgEBBA3AAQYBAQSCB+0KBgQABAYHAQQFAgSeBwTjBQIGAp4HBgIABQIEAwQKCwQ/4wUGAgAFAgQDBAoPAxXuCgYEAAQGBwEEBQIEHwT4AQIGAh8GAQEEDfgBBgIABQIEAwQKHQQgmgQGBAAEBgcBBAUEBLMCBBEE4AMEtwMCBgSzAgYBAQQNEQYBDgUFBLgFBLAHBKsDBFIE6wXgAwYCAAUCBAMECg8DFbcDBgEBBA3KBAYEAAQGBwEEBQUEcgQ0BMcHBLYCBK0HAgYFcgYCAAQDHQQgNAYBAQTrAccHBgEBBCi2AgYBAQQorQcGAQEEOOwLBgQABAYHAQQFBATXBwSCBgSHBgS2AgIGBNcHBgIABQIEEgQKEAMMggYGAgAFAgQSBAoQAwyHBgYCAAQSEAMTtgIGAQEEKMQEBgQABAYHAQQFBQT3AwS2AgTpBQSYBgTYBwIGBfcDBgEBBCi2AgYBAQQo6QUGAQAEX5gGBgEABF/YBwYBAARf1wUGBAAEBgcBBAUCBDUEMAIGAjUGAQEEDTAGAQEE8wK4BAYEAAQGBwEEBQMExQEEtQMEKwIGA8UBBgEOBQQEgwME8AIE6QIEV7UDBgIABBIQAwwrBgEOBQMElwQEngoEgws="),HC=ft("BgpCBENBBP0KRAYCGgS+BB4EJBgEyAkABAYHAQQFEQQRBBsEIQT/AQQsBCkEKgQ9BM4HBGcEGARcBBwEOgTlAQRyBI4CAgYbEQYBBQS+BBsGAQUELiEGAQUEJP8BBgIABAMLBJ0DLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Dbz0GAQ4FAgTMAQTLAc4HBgEBBJEDZwYBAQS8AaABBgEBBIMEiQMGAQEE2Ai1AQYBDgUIBIEEBLIBBLQDBNIDBIAEBM0DBNsDBOwDuQEGAQ4FBATPAwTQAwTJAwS2A0cGAwAESRADE00DDKECBgQABAgmAwwUA28JBgEBBIsEugEGAQEE5ASzAQYBAQTkBBgGAQEE1AFcBgEBBIcEWwYBAQSHBOsCBgEBBIcEHAYCAAQDDgUGBNUDBNgBBLgBBEAExgEEiwM6BgMABQIEAwQKFwMMDwMV5QEGAgAFAgQDBAodBCByBgIABAMdBCCOAgYCAAQDHQQgMwUDBgIiBgICBgE9BgEFBMwBBAUBBD0jBgFIBgHxAQUKBgEEBQEEoAEGAQQFAQSJAwYBBAUBBLUBBgEEBQEEuQEGAQQFAQRHBgEEBQEEoQIGAQQFAQS6AQYBBAUBBLMBBgEEBQEEWwYBBAUBBOsCBgIiBgICBgE9BgEFBMsBBAUBBD0jBgEEBQoEoAEEiQMEtQEEuQEERwShAgS6AQSzAQRbBOsCBgIiBgECBgEcBgEFBMYBIwYB8QEFAgYBAgYBOgYBAAQDBgECBgHlAQYCAAQDHQQgRQYPUwYCAAQDCwSwATwGAgAEAwsEaS8GAgAEAwsElgKCAQYCAAQDCwSoApQLBgIABAMLBOwJkwsGAgAEAwsE5wmuBAYCAAQDCwToCZULBgIABAMLBO8JlgsGAgAEAwsE8QmvBAYCAAQDCwTwCWAGBAAECBQDFRYCCQYBAQTTAWwGBQAEBgcBBAUGBKoCBJkEBJ4EBLEEBM0EBMkEAgYGqgIGAQEEvAGZBAYEAAQIFAMVFgIJBgEBBNYIngQGBAAECBQDFRYCCQYBAQTXCLEEBgQABAgUAxUWAgkGAQEE2QjNBAYEAAQIFAMVFgIJBgEBBNsIyQQGBAAECBQDDBYCCQYBAQTaCPEBBQUGAQIGAZkEBgEmAwwGAQIGAZ4EBgEmAwwGAQIGAbEEBgEmAwwGAQIGAc0EBgEmAwwGAQIGAckEBgEmAwyhCwYEAAQDFwMMDwNuCwTWAbQEBgQABAMXAwwPAxVIBgELBKUCGAYFAAQDFwMMDwNMCwSbA0gGAQsEpQI="),zC=ft("BglCBENBBPgKRAYCGgTrBh4ELhgEywkABAYHAQQFFAQRBBsEIQSdBwQsBCkEKgQyBOYBBDQEaAShAwS7BQSnAwT5AQQ3BNQEBLUGBLsCBJwHAgYUEQYBBQTrBhsGAQUELiEGAQUEJJ0HBgIABAMLBPYJLAYBAQQNKQYBAQQNKgYBAQQ4MgYBAQQN5gEGAQEE+wQ0BgEBBOsBaAYBAQQooQMGAQEEKLsFBgEBBPMCpwMGAQ4FAwSICgToCwR2+QEGAQEEJTcGAwAECBYCCQYCAAQDCwTmCdQEBgEBBIsJtQYGAgAEAx0EILsCBgIABAMdBCCcBwYBAQQoRQYKGgYDAAQDFwMMDwMVHgYDAAQDFwMMDwNvMQYCAAQDCwQ/ogIGBAAEAxcDDA8DhwELBNYB5gEGBQAEBgcBBAUEBBEEGgRRBDECBgQRBgEOBQYEgQEE8wEE2QEEZASLAQQwGgYBAQQNUQYCAAUCBBIEChADDDEGAQEEKDMFAgYCIgYCAgYBEQYBDgUCBGQEMAQFAQQRIwYBAgYBUQYCAAQSEAMMBgIiBgICBgERBgEOBQQEgQEE8wEE2QEEiwEEBQEEESMGAQIGAVEGAQAECjQGARkFAgYEAAQGBwEEBQIEPgQxAgYCPgYBBQMTMQYBAAQKBgQABAYHAQQFAgQ+BDECBgI+BgIABBIQAwwxBgEBBCiUDAYEAAQGBwEEBQUEEQQaBFEEMQRaAgYFEQYBAQQNGgYBAQQNUQYEAAUDBBIEAwQKEAMMFwMMDwMVMQYCAAUCBAMECgsEP1oGAwAFAgQDBAoXAwwPAxXUCwYEAAQGBwEEBQYE3QME8AEEMgToAwQcBMwCAgYG3QMGAQEEDfABBgEOBQIEmwIEgwYyBgMABQIEAwQKFwMMDwMV6AMGBAAEBgcBBAUCBBoEHgIGAhoGAQEEDR4GAQEEOBwGAQ4FAwQEBOUDBMwCzAIGAQAEX9YCBgQABAYHAQQFBAQEBOUDBK8HBJcHAgYEBAYCAAQSEAMM5QMGAgAEEhADE68HBgIABBIQAxOXBwYCAAQICQYBAQTqCNQEBgQABAYHAQQFBQQRBKECBMsEBNYGBNYCAgYFEQYBDgUFBIsBBKQDBG0EtwIE0gKhAgYDAAQIJgMMCQYBAQSMCcsEBgEABF/WBgYBAQQN1gIGARkFAgYBAAQKBgEBBIgJ"),jH=ft("BglCBENBBIILRAYCGgSNBx4EJBgEyQkABAYHAQQFCwQRBBsEIQQsBCkEKgRlBJ4BBLQBBE4EsQICBgsRBgEFBI0HGwYBBQQuIQYBBQQkLAYBAQRdKQYBAQRdKgYBMwUCBgEBBF0GAQ8Db2UGAgAEAx0EIJ4BBgIABAgJBgEBBMYLtAEGAgAECAkGAQEEwwtOBgIABAgJBgEBBPAGsQIGAgAECAkGAQEEnwhFBgK5CgYFAAQGBwEEBQQE7QIE2wEELwTNAQIGBO0CBgIABAMOBQMEqQQEZAQw2wEGAgAEAwsEoQUvBgIABAMLBJYCzQEGAgAEAw4FAwTRAQSTDAShChkFAwYBAgYC7QIGAQUEqQTbAQYBCwSdAwYBAgYC7QIGAQUEZNsBBgELBOMCBgECBgLtAgYBBQQw2wEGAQsE7QG0BAYEAAQDFwMMDwMVSAYBCwSlAg=="),UC=ft("BglCBENBBPsKRAYCGgT8Bh4ELhgEygkABAYHAQQFDQQRBBsEIQTGBwQsBCkEKgQwBDQExAcEWwRyBMUHAgYNEQYBBQT8BhsGAQUELiEGAQUEJMYHBgIABAMLBOkJLAYBAQQNKQYBAQQNKgYBAQQ4MAYBAQSOAzQGAQEE6wHEBwYBDgUEBOwFBJoHBKsGBOMGWwYBAQQlcgYCAAQDHQQgxQcGAQEEKEUGBhoGAwAEAxcDDA8DFR4GAgAEAwsElAIxBgIABAMLBD+iAgYEAAQDFwMMDwNuCwSiBTAGBAAEBgcBBAUDBFkEUQSlAQIGA1kGAgAEAwsE7QFRBgIABBIQAwylAQYBAQQoNAYBGQUCBgQABAYHAQQFAgQ+BDECBgI+BgEFAxMxBgEABAoGBAAEBgcBBAUCBD4EMQIGAj4GAgAEEhADDDEGAQEEKA=="),$C=ft("BgtCBENBBKkGRAYCGgS9BB4EJBgEkwWcAQSYBQAEBgcBBAUSBBEEGwQhBJ4CBJwEBCwEKQQqBGcEnQEEiQIEyAIEzgIENgSCAQTIAQSoAQTOAQIGEhEGAQUEvQQbBgEFBC4hBgEFBCSeAgYBAQT2CJwEBgEBBJMILAYBAQRLKQYBAQRLKgYBAQQ4ZwYBAQS8AZ0BBgEOBQQE3QEE3AEE4gEE4QGJAgYBGQUCBgEABAoGAQEElQPIAgYBAQT9Bs4CBgEBBP0GNgYBDgUCBLgBBECCAQYCAAUCBAMECgsEqALIAQYCAAUCBAMECgsEaagBBgQABQIEBgQKBwEEBQMEcQSGAgT6AQIGA3EGAQEEsAiGAgYBAARf+gEGAQEE+ATOAQYCAAQDHQQgMwUCBgIiBgECBgE2BgEFBLgBIwYBAgYEiQIGAQEElQOCAQYBAAQDyAEGAQAEA6gBBgEFAAYCIgYBAgYBNgYBBQRAIwYBAgYEiQIGAQUAggEGAQUAyAEGAQUAqAEGAQAEBkUGCO8CBgIABAMLBJUCHgYCAAQDCwSUAp4CBgIABAMLBOsJnAQGAgAEAwsE6gk8BgIABAMLBGmJAgYEAAQGBwEEBQIEGgQeAgYCGgYBAQRLHgYBAQQ4zgoGAQ4FFQScBQSXBQSRBQSWBQSQBQSFBQSHBQSGBQSeBQSdBQSIBQSJBQSbBQSaBQSfBQSLBQSNBQSMBQSOBQSPBQSKBc8EBgMABAYHAQIGBp0BBgEOBQQE3QEE3AEE4gEE4QGxBwYBAQRL1AcGAQEES8cCBgEBBEs8BgEBBLwBugcGAQEESw=="),LC=ft("BglCBENBBPwKRAYCGgT/Bh4EJBgExQkABAYHAQQFHwQRBBsEIQTPAgTFAgSDAgTnAwQwBFMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwQfBPwDBPsDBNMFBNQFBMoBBMYCBOwCBL0HBK4BBNABBIkGBPgBBL4HAgYfEQYBBQT/BhsGAQUELiEGAQUEJM8CBgIABAMLBKoFxQIGAgAEAwsEqQKDAgYBBQSmBOcDBgEBBCgwBgEBBI4DUwYCAAQDCwSwAbUCBgIABAMLBKYFrgIGAwAECBYCCQYCAAQDCwSjBb0CBgIABAMLBOICwAEGAQEElgNsBgEBBIsEvwMGAQEE3gS4AgYBAQTqBK8DBgEZBQIGAQAECgYBAQSWAx8GAQ4FBQTbBwR5BJ8BBJsBBGP8AwYBAQQo+wMGAgAFAgQDBAoLBD/TBQYCAAUCBAMECgsEadQFBgIABQIEAwQKCwQ/ygEGAQEEjwPGAgYBAQSPA+wCBgEBBK4IvQcGAgAEAwsEaa4BBgIABAMLBKkF0AEGAgAFAgQDBAoLBJ4DiQYGBAAECCYDDBYCCQYCAAQDCwSkBfgBBgIABAMdBCC+BwYBAQQoRQYKGgYCAAQDCwSVAh4GAgAEAwsElAIxBgIABAMLBD9zBgEOBQYEdgTBAgTjAQTHBASoBAS8A/MHBgQABAYHAQQFAgQaBB4CBgIaBgEBBA0eBgEBBDjFBQYDAAQIFgIJBgIABAMLBGkwBgQABAYHAQQFAwRZBFEEpQECBgNZBgIABAMLBO0BUQYCAAQSEAMMpQEGAQEEKGwGBAAEBgcBBAUDBBEEGgRRAgYDEQYBAQQNGgYDAAQDFwMMDwMVUQYDAAQDFwMMDwMVuAIGBAAEBgcBBAUCBMQDBMUDAgYCxAMGAQEEDcUDBgEBBDjsAgYEAAQGBwEEBQMEqwMEoQEEugUCBgOrAwYBAARfoQEGAwAEAxcDDA8DYroFBgMABAgWAgkGAwAEAxcDDA8DFQ=="),PC=ft("BgpCBENBBP4KRAYCGgSABx4EJBgExgkABAYHAQQFHAQRBBsEIQTFAgSDAgQwBFME5wMEtQIErgIEvQIEwAEEbAS/AwS4AgSvAwSbBwTKAQSuAQTOBAQcBLQGBM8CBNABBNwDBHIEjgIEjgcCBhwRBgEFBIAHGwYBBQQuIQYBBQQkxQIGAgAEAwsEqQKDAgYBDgUCBKYEBNICMAYBAQSOA1MGAgAEAwsEsAHnAwYBAQQotQIGAgAEAwsEpgWuAgYDAAQIFgIJBgIABAMLBKMFvQIGAgAEAwsE4gLAAQYBAQSWA2wGAQEEiwS/AwYBAQTeBLgCBgEBBOoErwMGARkFAgYBAAQKBgEBBJYDmwcGAQEEjwPKAQYBAQSPA64BBgIABAMLBKkFzgQGAQ4FBAS1BATLBASsCgTFBhwGAQ4FCgSbCgSPCwTHCgTbBwR5BJ8BBJsBBGMEkQEEwwe0BgYCAAQDCwSkBc8CBgIABQIEAwQKCwTkCdABBgIABQIEAwQKCwSeA9wDBgIABQIEAwQKCwSpAnIGAgAEAx0EII4CBgIABAMdBCCOBwYBAQQoMwUCBgIiBgICBgGDAgYBBQSmBAQFAQSDAiMGAQIGA9ABBgEFANwDBgEFABwGAUgGAQUEwwcGAiIGAgIGAYMCBgEFBNICBAUBBIMCIwYBAgYD0AEGAQAEA9wDBgEABAPOBAYBSAYBBQS1BEUGCRoGAgAEAwsElQIeBgIABAMLBJQCMQYCAAQDCwQ/cwYBDgUGBHYEwQIE4wEExwQEqAQEvAPzBwYEAAQGBwEEBQIEGgQeAgYCGgYBAQQNHgYBAQQ4xQUGAwAECBYCCQYCAAQDCwRpMAYEAAQGBwEEBQMEWQRRBKUBAgYDWQYCAAQDCwTtAVEGAgAEEhADDKUBBgEBBChsBgQABAYHAQQFAwQRBBoEUQIGAxEGAQEEDRoGAwAEAxcDDA8DFVEGAwAEAxcDDA8DFbgCBgQABAYHAQQFAgTEAwTFAwIGAsQDBgEBBA3FAwYBAQQ4"),IH=new Map([["operate-experience-view.schema.json",ly],["operating-finding.schema.json",HC],["operate-allowed-action.schema.json",ty],["operating-delivery-route.schema.json",UC],["operating-evidence-resolution.schema.json",$C],["operating-execution-result.schema.json",LC],["operating-governed-operation.schema.json",PC],["operating-review.schema.json",Gf],["operating-trace-matrix.schema.json",Yf],["operate-review-display-workspace.schema.json",gc]]);function QH(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}function CH(e){const[t,i=""]=e.split("#"),s=t.split("/").at(-1),c=IH.get(s);return c?{schema:QH(c,i?`#${i}`:"#"),rootSchema:c,base:s}:null}function SH(e){const t=hc(e,Hf,{base:"schemas/v1.2.0/operate-experience-surface.schema.json",resolveRef:CH});if(t.length>0)return t;const i=e.truthSummary;return i.sourceViewHash!==e.viewHash||i.sourceEventHead.sequence!==e.eventHead.sequence||i.sourceEventHead.hash!==e.eventHead.hash||i.stages.total!==i.stages.cycles*7||i.evidence.linked>i.evidence.total||i.proof.linkedEvidence!==i.evidence.linked||i.seats.total!==i.seats.terminal+i.seats.active+i.seats.pending?[{path:"$.truthSummary",rule:"sharedTruth",detail:"does not bind one internally consistent shared truth summary"}]:[]}function tf(e){const t=SH(e);if(t.length>0){const i=new TypeError(`operate-experience-surface: ${t[0].path} ${t[0].detail}`);throw i.code="E_OPERATE_EXPERIENCE_SURFACE_INVALID",i}return e}Object.freeze(structuredClone(Hf));const OH=new Set(["evidence","outcomes","outcome","history","search","export"]),_H=new Map([["operate-experience-audit-display-surface.schema.json",cy],["operate-experience-surface.schema.json",Hf],["operate-experience-view.schema.json",ly],["operate-review-display-workspace.schema.json",gc],["operating-trace-matrix.schema.json",Yf]]);function NH(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}function RH(e){const[t,i=""]=e.split("#"),s=t.split("/").at(-1),c=_H.get(s);return c?{schema:NH(c,i?`#${i}`:"#"),rootSchema:c,base:s}:null}function nA(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed audit display contract"}]}function nf(e){try{const t=decodeURIComponent(e);return t.length>0&&t!=="."&&t!==".."&&!t.includes("/")&&!t.includes("\\")&&encodeURIComponent(t)===e}catch{return!1}}function px(e){return e===null?!0:FC(e)!==null}function _r(e,t,i){return e===null?!0:typeof i!="string"?!1:t==="action"?e===`#/operate/actions/${encodeURIComponent(i)}`:t==="cycle"?e===`#/operate/cycles/${encodeURIComponent(i)}`:e===`#/operate/${t==="evidence"?"evidence":"outcomes"}/${encodeURIComponent(i)}`}function FC(e){if(typeof e!="string")return null;const t=/^#\/operate\/(evidence|outcomes)\/([^/?#]+)$/u.exec(e);if(t!==null&&nf(t[2]))return{surface:t[1]==="evidence"?"evidence":"outcome",subjectId:decodeURIComponent(t[2])};const i=/^#\/operate\/actions\/([^/?#]+)$/u.exec(e);if(i!==null&&nf(i[1]))return{surface:"action",subjectId:decodeURIComponent(i[1])};const s=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(e);return s!==null&&nf(s[1])?{surface:"cycle",subjectId:decodeURIComponent(s[1])}:null}function hf(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(i=>hf(i,t));for(const[i,s]of Object.entries(e)){if(i==="deepLink"){if(!px(s))return!1;continue}if(i==="deepLinks"){if(!Array.isArray(s)||!s.every(px))return!1;continue}if(!hf(s,t))return!1}return!0}finally{t.delete(e)}}function PA(e,t=new Set){if(!(e===null||typeof e!="object"||t.has(e))){if(t.add(e),Array.isArray(e)){for(const i of e)PA(i,t);return}for(const[i,s]of Object.entries(e)){if(i==="deepLink"&&s===null){e[i]="#/operate/history/redacted";continue}PA(s,t)}}}function DH(e){return{...e,results:e.results.map(t=>{if(!["evidence","claim","outcome"].includes(t.kind)&&DC(t,"deepLink")){const{deepLink:i,...s}=t;return s}return t})}}function TH(e){try{const t=li(e);return t.mutationEnabled=t.status==="ready",t.surface==="search"&&(t.data=DH(t.data)),PA(t.data),tf(t),!0}catch{return!1}}function Nl(e,t){const i=e.map(s=>s[t]);return i.every(s=>typeof s=="string")&&new Set(i).size===i.length}function kH(e){return e.accessState==="available"?e.accessReason===null:e.accessState==="restricted"&&e.claimStatus==="restricted"&&e.evidenceKind===null&&e.resolvedAt===null&&e.source===null&&e.producer===null&&e.observedAt===null&&e.provenance===null&&e.confidence===null&&e.accessReason==="access-denied"&&e.supportClaimIds.length===0&&e.contradictClaimIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function MH(e){return e.accessReason===null?e.statement!==null:e.status==="restricted"&&e.accessReason==="access-denied"&&e.statement===null&&e.source===null&&e.producer===null&&e.provenance===null&&e.confidence===null&&e.supportEvidenceRefIds.length===0&&e.contradictEvidenceRefIds.length===0&&e.gaps.length===0&&e.errors.length===0&&e.causalLinks.length===0}function hx(e){return e.kind==="outcome"?_r(e.deepLink,"outcome",e.subjectId):e.deepLink===null}function GH(e){const t=new Map(e.evidence.map(s=>[s.evidenceRefId,s])),i=new Map(e.claims.map(s=>[s.claimId,s]));if(!Nl(e.evidence,"evidenceRefId")||!Nl(e.claims,"claimId")||!e.evidence.every(s=>kH(s)&&_r(s.deepLink,"evidence",s.evidenceRefId)&&s.causalLinks.every(hx))||!e.claims.every(s=>MH(s)&&_r(s.deepLink,"evidence",s.claimId)&&s.causalLinks.every(hx)))return!1;for(const s of e.evidence)if(!s.supportClaimIds.every(c=>{var d;return(d=i.get(c))==null?void 0:d.supportEvidenceRefIds.includes(s.evidenceRefId)})||!s.contradictClaimIds.every(c=>{var d;return(d=i.get(c))==null?void 0:d.contradictEvidenceRefIds.includes(s.evidenceRefId)}))return!1;return e.claims.every(s=>s.supportEvidenceRefIds.every(c=>{var d;return(d=t.get(c))==null?void 0:d.supportClaimIds.includes(s.claimId)})&&s.contradictEvidenceRefIds.every(c=>{var d;return(d=t.get(c))==null?void 0:d.contradictClaimIds.includes(s.claimId)}))}function YH(e){return e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&e.metric.observed!==null&&e.metric.freshness==="current"&&e.verification.accessReason===null}function VC(e){return e.accessReason==="access-denied"&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.metric.baseline===null&&e.metric.target===null&&e.metric.observed===null&&e.metric.unit===null&&e.metric.window===null&&e.metric.confidence===null&&e.verification.accessReason==="access-denied"&&e.verification.method===null&&e.verification.evaluationRules.length===0&&e.verification.observationRequest===null&&e.nextObservation===null&&e.revisit===null}function HH(e){return["succeeded","failed"].includes(e.status)&&VC(e)}function zH(e){const t=e.metric,i=e.verification;return t===null||i===null||e.verificationPlanId!==i.verificationPlanId||t.metricId!==i.metricId||t.metricHash!==i.metricHash||!_r(e.deepLink,"outcome",e.outcomeId)||e.decision!==null&&e.decision.deepLink!==null||!e.execution.every(s=>s.deepLink===null)||!e.rollback.every(s=>s.deepLink===null)||(e.accessReason==="access-denied"||i.accessReason==="access-denied")&&!VC(e)?!1:e.status==="insufficient-evidence"?t.observed===null&&e.observationIds.length===0&&e.evidenceRefIds.length===0&&e.snapshot===null&&e.delta===null:!["succeeded","failed"].includes(e.status)||YH(e)||HH(e)}function gx(e,t=!1){const i=t?[e.outcome]:e.outcomes;if(!Nl(i,"outcomeId")||!i.every(zH)||!t&&!e.domainMetrics.every(c=>c.dueVerification.every(d=>d.deepLink===null)))return!1;const s=new Set(i.map(c=>c.outcomeId));return Nl(e.learnings,"learningId")&&e.learnings.every(c=>s.has(c.outcomeId))}function UH(e,t){return Nl(e.history,"eventId")&&e.history.every(i=>i.deepLinks.every(s=>{const c=FC(s);return(c==null?void 0:c.surface)==="evidence"?c.subjectId===i.entityId||i.evidenceRefIds.includes(c.subjectId):(c==null?void 0:c.surface)==="outcome"&&c.subjectId===i.entityId}))&&e.replay.liveAccessUsed===!1&&jn(e.replay.finalHead,t)&&e.replay.parityProof.finalEventHashMatches===!0}function $H(e){return e.results.every(t=>{if(!DC(t,"deepLink"))return!0;if(t.kind==="evidence"||t.kind==="claim")return _r(t.deepLink,"evidence",t.subjectId);if(t.kind==="outcome")return _r(t.deepLink,"outcome",t.subjectId);if(t.kind==="action")return _r(t.deepLink,"action",t.subjectId);if(t.kind==="cycle")return _r(t.deepLink,"cycle",t.subjectId);if(t.kind==="assignment"){if(t.deepLink===null)return!0;const i=/^#\/operate\/cycles\/([^/?#]+)$/u.exec(t.deepLink);return i!==null&&nf(i[1])}return!1})}const LH=["kind","schemaVersion","protocolVersion","scopeId","domainId","domainVersion","generatedAt","eventHead","status","attention","domainMetrics","cycles","inbox","actions","evidence","claims","rationale","outcomes","learnings","history","replay","omissions"].sort(),PH=new Set(["ownerActorId","actorId","partyId","requiredCapability","source","producer","provenance","authority","actionLocator","rawHash","canonicalHash"]);function FA(e,t=new Set){if(e===null||typeof e!="object")return!0;if(t.has(e))return!1;t.add(e);try{if(Array.isArray(e))return e.every(i=>FA(i,t));for(const[i,s]of Object.entries(e))if(PH.has(i)||i==="errors"&&(!Array.isArray(s)||s.length!==0)||!FA(s,t))return!1;return!0}finally{t.delete(e)}}function Ax(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function FH(e){return e.replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&amp;","&")}function mx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&en(Object.keys(e).sort(),LH)&&FA(e)&&hf(e)}function gf(e){return Array.isArray(e)?e.map(t=>gf(t)):e===null||typeof e!="object"?e:Object.fromEntries(Object.keys(e).sort().map(t=>[t,gf(e[t])]))}function VH(e){try{if(e.format==="json"){if(e.mediaType!=="application/json")return!1;const m=JSON.parse(e.content);return mx(m)&&JSON.stringify(gf(m))===e.content}if(e.mediaType!=="text/html; charset=utf-8")return!1;const t='<!doctype html><html lang="en"><meta charset="utf-8"><title>OpenPlanr Operate audit export</title><body><main><h1>Operate audit export</h1><p>',i="</p><pre>",s="</pre></main></body></html>";if(!e.content.startsWith(t)||!e.content.endsWith(s))return!1;const c=e.content.indexOf(i,t.length);if(c<0)return!1;const d=e.content.slice(c+i.length,-s.length),u=JSON.parse(FH(d));if(!mx(u))return!1;const p=gf(u),g=`${t}${Ax(`${p.domainId} / ${p.scopeId}`)}${i}${Ax(JSON.stringify(p,null,2))}${s}`;return e.content===g}catch{return!1}}function qH(e){return e.surface==="evidence"?GH(e.data):e.surface==="outcomes"?gx(e.data):e.surface==="outcome"?gx(e.data,!0):e.surface==="history"?UH(e.data,e.eventHead):e.surface==="search"?$H(e.data):e.surface==="export"?VH(e.data):!1}function KH(e,t){var i,s,c;return e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||e.surface!==t.surface||!jn(e.eventHead,t.eventHead)?!1:e.surface==="outcome"?typeof e.subjectId=="string"&&e.query===null&&e.format===null&&((i=t.data.outcome)==null?void 0:i.outcomeId)===e.subjectId:e.surface==="evidence"?(e.subjectId===null||((s=t.data.evidence)==null?void 0:s.some(u=>u.evidenceRefId===e.subjectId))||((c=t.data.claims)==null?void 0:c.some(u=>u.claimId===e.subjectId)))&&e.query===null&&e.format===null:e.surface==="search"?e.subjectId===null&&typeof e.query=="string"&&e.query===t.data.query&&e.format===null:e.surface==="export"?e.subjectId===null&&e.query===null&&e.format===t.data.format:e.subjectId===null&&e.query===null&&e.format===null}function JH(e,t){return OH.has(e.payload.surface)&&e.payload.readOnly===!0&&e.payload.mutationEnabled===!1&&e.integrity.sourceViewHash===e.payload.viewHash&&e.integrity.sourceViewHash===e.requestBinding.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&jn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&KH(e.requestBinding,e.payload)&&(t===void 0||en(e.requestBinding,t))&&hf(e.payload.data)&&qH(e.payload)&&TH(e.payload)}function ZH(e,t){try{const i=li(e),s=hc(i,cy,{base:"schemas/v1.2.0/operate-experience-audit-display-surface.schema.json",resolveRef:RH});return s.length>0||!JH(i,t)?s.length>0?s:nA():i.integrity.contentHash===ey(kC(i),i.integrity.domain)?[]:nA()}catch{return nA()}}function di(e,t){if(ZH(e,t).length>0){const i=new TypeError("The Operate audit display surface does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_EXPERIENCE_AUDIT_DISPLAY_INVALID",i}return e}Object.freeze(structuredClone(cy));function XH(e){if(!Array.isArray(e))return Object.freeze([]);const t=[];for(const i of e){if(typeof i!="object"||i===null)continue;const s=Reflect.get(i,"kind"),c=Reflect.get(i,"subjectId"),d=Reflect.get(i,"title"),u=Reflect.get(i,"summary"),p=Reflect.get(i,"state"),g=Reflect.get(i,"deepLink");typeof s!="string"||typeof c!="string"||typeof d!="string"||t.push(Object.freeze({kind:s,subjectId:c,title:d,summary:typeof u=="string"?u:null,state:typeof p=="string"?p:null,deepLink:typeof g=="string"&&g.startsWith("#/operate/")?g:null}))}return Object.freeze(t)}function zf(e){return e===null||e.hash===null?null:Object.freeze({sequence:e.sequence,hash:e.hash})}const WH=4*1024*1024;function ez(e){let t;try{t=new URL(e)}catch{throw new Error("OPERATE_ORIGIN_INVALID")}if(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))throw new Error("OPERATE_ORIGIN_INVALID");return t.origin}async function tz(e){const{identity:t}=e;if(t.productArea!=="operate"||t.cycleId===null||t.viewHash===null)return Object.freeze([]);const i=ez(e.origin),s=e.query??"";if(s.length>512)return Object.freeze([]);const c=new URL("/api/operate/search",i);c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c.searchParams.set("cycleId",t.cycleId),c.searchParams.set("q",s);const d=await(e.fetcher??fetch)(c,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),u=await d.text();if(new TextEncoder().encode(u).byteLength>WH)throw new Error("Search response exceeds the dashboard JSON limit.");let p;try{p=JSON.parse(u)}catch{throw new Error("Search response is not JSON.")}if(!d.ok)return Object.freeze([]);try{const g=di(p),m=g.payload,y=zf(t.eventHead);if(m.surface!=="search"||y===null)return Object.freeze([]);const A=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:null,surface:"search",query:s,format:null,generatedAt:m.generatedAt,eventHead:y,viewHash:t.viewHash});return di(g,A),XH(m.data.results)}catch{return Object.freeze([])}}const nz=200;function az(e){const[t,i]=B.useState([]),{binding:s,connectionState:c,query:d}=e;return B.useEffect(()=>{const u=d.trim();if(typeof window>"u"||!s||s.productArea!=="operate"||s.cycleId===null||c!=="connected"||u.length===0){i([]);return}const p=new AbortController,g=setTimeout(()=>{tz({origin:window.location.origin,identity:s,query:u,signal:p.signal}).then(m=>{p.signal.aborted||i(m)}).catch(()=>{p.signal.aborted||i([])})},nz);return()=>{clearTimeout(g),p.abort()}},[s,c,d]),t}const qC=Object.freeze([]),KC="Jump to a view or an artifact…";function iz(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function rz(e,t){const[i,s]=B.useState(t);B.useEffect(()=>{if(t&&e.some(d=>d.cycleId===t)){s(t);return}s(d=>d&&e.some(u=>u.cycleId===d)?d:null)},[e,t]);const c=B.useMemo(()=>e.find(d=>d.cycleId===i)??null,[e,i]);return Object.freeze({binding:c,selectedCycleId:i,setSelectedCycleId:s})}function JC({bindings:e,selectedCycleId:t,onSelect:i}){return e.length===0?null:r.jsxs("div",{className:"pc-palette__cycle",children:[r.jsx("span",{children:"operate cycle"}),r.jsx(Sl,{size:"sm",ariaLabel:"Operate Cycle for search results",value:t??"",onChange:s=>i(s||null),options:[{value:"",label:"Select a cycle"},...e.map((s,c)=>({value:s.cycleId??"",label:`${iz(s.domainId)} cycle${e.length>1?` ${c+1}`:""}`}))]})]})}function ZC(e){typeof window>"u"||(window.location.hash=e)}function XC(e,t,i,s,c){const[d,u]=B.useState(t),[p,g]=B.useState(()=>ff([])),m=rz(i,s),y=az({binding:m.binding,connectionState:c,query:d}),A=B.useMemo(()=>Object.freeze({...e,operateResults:y}),[e,y]),E=B.useMemo(()=>JY(A),[A]),b=B.useMemo(()=>ZY(E,d),[E,d]),w=B.useMemo(()=>XY(E,d),[E,d]);B.useEffect(()=>{g(ff(b))},[b]);const j=(I,Q)=>{if(I.key==="ArrowDown")I.preventDefault(),g(S=>S.moveDown());else if(I.key==="ArrowUp")I.preventDefault(),g(S=>S.moveUp());else if(I.key==="Enter"){I.preventDefault();const S=p.getActive()??b[0]??null;S&&Q(S)}};return{query:d,setQuery:u,hits:b,unsupported:w,active:p.getActive(),selectedOperate:m,onKeyDown:j}}function sz({open:e,onClose:t,sources:i=Object.freeze({}),initialQuery:s="",operateBindings:c=qC,preferredOperateCycleId:d=null,connectionState:u="disconnected"}){var b;const p=B.useRef(null),g=B.useRef(null),m=B.useId(),y=XC(i,s,c,d,u),{setQuery:A}=y;B.useEffect(()=>{e&&A(s)},[e,s,A]),B.useEffect(()=>{var j,I;const w=p.current;if(w){if(e){typeof w.showModal=="function"&&!w.open?w.showModal():w.setAttribute("open",""),(j=g.current)==null||j.focus(),(I=g.current)==null||I.select();return}typeof w.close=="function"&&w.open?w.close():w.removeAttribute("open")}},[e]),B.useEffect(()=>{const w=p.current;if(!w)return;const j=()=>t();return w.addEventListener("close",j),()=>w.removeEventListener("close",j)},[t]);function E(w){ZC(w.href),t()}return r.jsx("dialog",{ref:p,className:"pc-palette","aria-labelledby":`${m}-label`,onCancel:w=>{w.preventDefault(),t()},onMouseDown:w=>{w.target===p.current&&t()},children:r.jsxs("div",{className:"pc-palette__panel",role:"document",children:[r.jsxs("div",{className:"pc-palette__input-row",children:[r.jsx(be,{name:"search",size:15,color:"var(--pc-text-tertiary)"}),r.jsx("span",{id:`${m}-label`,className:"pc-visually-hidden",children:"Command palette"}),r.jsx("input",{ref:g,id:`${m}-input`,className:"pc-palette__input",type:"search",value:y.query,placeholder:KC,"aria-label":"Search views and artifacts",autoComplete:"off",spellCheck:!1,onChange:w=>A(w.target.value),onKeyDown:w=>{if(w.key==="Escape"){w.preventDefault(),t();return}y.onKeyDown(w,E)}}),r.jsx(Or,{size:"sm",children:"esc"})]}),r.jsx(JC,{bindings:c,selectedCycleId:y.selectedOperate.selectedCycleId,onSelect:y.selectedOperate.setSelectedCycleId}),r.jsx(BC,{hits:y.hits,unsupported:y.unsupported,activeHref:((b=y.active)==null?void 0:b.href)??null,listId:m,onSelect:E}),r.jsxs("div",{className:"pc-palette__foot","aria-hidden":"true",children:[r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(Or,{size:"sm",children:"↑"}),r.jsx(Or,{size:"sm",children:"↓"})," move"]}),r.jsxs("span",{className:"pc-palette__key",children:[r.jsx(Or,{size:"sm",children:"⏎"})," open"]}),r.jsxs("span",{className:"pc-palette__count",children:[y.hits.length," results"]})]})]})})}function oz({sources:e=Object.freeze({}),initialQuery:t="",operateBindings:i=qC,preferredOperateCycleId:s=null,connectionState:c="disconnected"}){var p;const d=B.useId(),u=XC(e,t,i,s,c);return r.jsxs("section",{className:"op-workspace pc-search-page","data-route-kind":"planning.search",children:[r.jsx(ct,{eyebrow:"planr-status · search",title:"Search",count:`${u.hits.length} ${u.hits.length===1?"result":"results"}`,description:"Planning work and Operate items, from access-safe projections."}),r.jsx("div",{className:"pc-search-page__query",children:r.jsx(qm,{value:u.query,onChange:u.setQuery,ariaLabel:"Search query",placeholder:KC,icon:"search",size:"lg",width:560})}),r.jsx(JC,{bindings:i,selectedCycleId:u.selectedOperate.selectedCycleId,onSelect:u.selectedOperate.setSelectedCycleId}),r.jsx(BC,{hits:u.hits,unsupported:u.unsupported,activeHref:((p=u.active)==null?void 0:p.href)??null,listId:d,onSelect:g=>ZC(g.href)})]})}function cz(e){return Object.freeze({planningNodes:vC(e)})}function lz(e){const[t,i]=B.useState(!1),s=B.useMemo(()=>cz(e),[e]);return B.useEffect(()=>{const c=d=>{(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k"&&(d.preventDefault(),i(!0))};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[]),Object.freeze({open:t,sources:s,show:()=>i(!0),close:()=>i(!1)})}let Af=Object.freeze({selection:null,openTick:0});const VA=new Set;function dz(){for(const e of VA)e()}function uz(e){Af=Object.freeze({selection:e,openTick:Af.openTick+1}),dz()}function fz(e){return VA.add(e),()=>{VA.delete(e)}}function dy(){return B.useSyncExternalStore(fz,()=>Af,()=>Af)}const pz=Object.freeze({wait:Object.freeze({instruction:"Wait for OpenPlanr to publish another validated state. No action is inferred."}),none:Object.freeze({instruction:"Continue only with exact allowed actions returned for the current binding."}),"server-action-only":Object.freeze({instruction:"Use only an exact action returned by OpenPlanr for this state."}),inspect:Object.freeze({instruction:"Inspect access-safe history. Inspection does not change durable state.",href:"#/operate/history",linkLabel:"Inspect History"}),reconcile:Object.freeze({instruction:"Reconcile against the current projection before considering another action.",href:"#/operate/recovery",linkLabel:"Open Recovery"}),"request-access":Object.freeze({instruction:"Request access through the project owner. This dashboard cannot grant authority."}),"restore-connection":Object.freeze({instruction:"Restore the loopback connection, then wait for exact current reconciliation."}),reinstall:Object.freeze({instruction:"Install matching OpenPlanr dashboard assets, then verify compatibility again.",href:"#/diagnostics",linkLabel:"Open diagnostics"}),"canonical-recovery-only":Object.freeze({instruction:"Use only the canonical reconciliation or recovery path returned by OpenPlanr.",href:"#/operate/recovery",linkLabel:"Open Recovery"})});function hz(e){return{operation:"Operation",cycleId:"Cycle",assignmentId:"Assignment",submissionId:"Submission",submissionState:"Submission state",reviewId:"Review",state:"State",maxBytes:"Maximum bytes"}[e]}function gz({state:e,proven:t,notProven:i,headingId:s}){var y;const c=B.useId(),d=s??`dashboard-recovery-${c}`,u=pz[e.policy.recovery],p=u.href==="#/diagnostics"||((y=e.binding)==null?void 0:y.productArea)==="operate"?u.href:void 0,g=e.error?gR(e.error):null,m=e.error?Mj.flatMap(A=>{var b;const E=(b=e.error)==null?void 0:b.context[A];return E===void 0?[]:[[A,E]]}):[];return r.jsxs("section",{className:"op-ready-truth","data-recovery-guidance":e.policy.recovery,"aria-labelledby":d,children:[r.jsxs("div",{className:"op-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Recovery posture"}),r.jsx("h2",{id:d,tabIndex:-1,"data-product-state-recovery-heading":!0,children:"Known, unknown, and next safe step"})]}),r.jsx("p",{children:u.instruction})]}),r.jsxs("dl",{"aria-label":"Recovery truth",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proven"}),r.jsx("dd",{children:t})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Not proven"}),r.jsx("dd",{children:i})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next safe step"}),r.jsx("dd",{children:u.instruction})]})]}),e.error?r.jsxs("section",{"data-safe-error":!0,"aria-labelledby":`${d}-diagnostic`,children:[r.jsx("h3",{id:`${d}-diagnostic`,children:"Certified diagnostic"}),r.jsxs("dl",{"aria-label":"Certified diagnostic fields",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Code"}),r.jsx("dd",{children:r.jsx("code",{children:e.error.code})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Recovery classification"}),r.jsx("dd",{children:e.kind==="uncertain"?"Reconciliation is required before any further instruction.":g!=null&&g.retryableAfterReconciliation?"Eligible for a new instruction only after current reconciliation.":"No repeated instruction is certified by this diagnostic."})]}),m.map(([A,E])=>r.jsxs("div",{children:[r.jsx("dt",{children:hz(A)}),r.jsx("dd",{children:r.jsx("code",{children:String(E)})})]},A))]})]}):null,p&&u.linkLabel?r.jsx("a",{className:"op-inline-action",href:p,children:u.linkLabel}):null,r.jsx("p",{className:"op-authority-note",children:"This view does not create arguments, authority, effects, repeated instructions, PLAN runs, or SHIP runs."})]})}const Az=Object.freeze({booting:Yt("Compatibility check","Verifying this dashboard","OpenPlanr has not yet published a complete compatible context.","The requested dashboard route is mounted.","Package compatibility, binding, and durable state are not yet proven."),loading:Yt("Bound read","Loading the exact projection","The current public binding is known while its projection is loading.","The actor, project, scope, domain, subject, and generation are exact.","No current projection data or mutation authority is proven yet."),"first-use":Yt("First durable context","Choose the first durable context","The server proved that this exact binding has no established operating state.","This is a validated first-use state for the current binding.","No Cycle, continuation, or browser-created start action is implied."),ready:Yt("Current projection","Current state is ready","The projection passed its owner-boundary contract for the exact current binding.","The displayed data is current and validated for this binding.","No authority exists beyond exact runtime-issued allowed actions."),empty:Yt("Exact empty result","Nothing is present in this view","The server returned an empty result for this exact binding.","The empty result belongs to the current route and binding.","No missing Cycle, hidden item, or first-use state is inferred."),"read-only":Yt("Observer projection","Current state is read-only","Access-safe current data is available without mutation authority.","The displayed projection is validated for this exact binding.","No approval, execution, recovery, or write authority is available here."),refreshing:Yt("Reconciliation","Refreshing current state","A new exact projection is required before controls can become available.","The retained projection still belongs to the current binding.","The latest Event head and mutation safety are not yet reconciled."),stale:Yt("Stale projection","Current view is stale","Validated retained data is visible, but it is not the proven current head.","The retained data belongs to this exact binding.","Current Event-head parity and mutation safety are not proven."),degraded:Yt("Degraded projection","Some current data is unavailable","Only the access-safe validated portion of this bound projection is shown.","The displayed portion passed its exact presentation contract.","Completeness and mutation safety are not proven."),blocked:Yt("Blocked work","Current work is blocked","The projection proves a blocker without inventing a way around it.","The blocker and retained data belong to the exact current binding.","No bypass, completion, or recovery authority is implied."),unavailable:Yt("Unavailable projection","This view is unavailable","OpenPlanr could not provide this exact view in the current context.","The unavailable result belongs to the exact current binding.","No empty result, private cause, or mutation authority is inferred."),unauthorized:Yt("Access boundary","Access is not available","The public capability boundary refused this view without disclosing bound data.","The capability refusal is certified and access-safe.","No subject identity, private reason, or authority is disclosed."),offline:Yt("Connection state","OpenPlanr is offline","Only a validated same-binding projection may remain visible while disconnected.","Any displayed retained data belongs to the exact current binding.","Freshness, server continuity, and mutation safety are not proven."),incompatible:Yt("Installation boundary","Dashboard installation is incompatible","The UI, server, or packaged assets do not satisfy one compatible build contract.","The compatibility refusal is certified without presenting project data.","This is not an empty project, offline state, or partial projection."),corrupt:Yt("Integrity boundary","Projection cannot be trusted","Contradictory or invalid public state was rejected before presentation.","The integrity refusal is certified and contains no partial project truth.","No retained data, lifecycle result, or mutation authority is trusted."),conflict:Yt("Current-state conflict","Current state changed","The prior instruction no longer matches the current durable state.","A certified conflict was returned for this exact binding.","No prior confirmation, result, or successor is assumed to remain current."),partial:Yt("Partial projection","Only part of the state is proven","The displayed portion is validated, but completeness is not established.","The access-safe displayed portion belongs to the exact current binding.","Completion, outcome, and mutation safety are not proven."),uncertain:Yt("Effect custody","Effect state is uncertain","OpenPlanr cannot prove whether the external effect occurred.","The uncertainty is certified for the exact current binding.","No effect outcome or repeated instruction is proven."),recovering:Yt("Recovery progress","Recovery is in progress","OpenPlanr is reconciling durable state through its canonical recovery path.","The recovery projection belongs to the exact current binding.","No terminal recovery result or new mutation authority is proven yet.")});function Yt(e,t,i,s,c){return Object.freeze({eyebrow:e,title:t,description:i,proven:s,notProven:c})}function mz(e){return e==="booting"||e==="loading"||e==="refreshing"?"booting":e==="first-use"||e==="empty"?"first-use":e==="ready"?"ready-to-resume":e==="offline"?"offline":e==="incompatible"||e==="corrupt"||e==="conflict"||e==="uncertain"?"incompatible":"unavailable"}function yz(e){const t=e.closest("[data-live-state-boundary]")??e;t.dispatchEvent(new CustomEvent("openplanr-live-state-close",{bubbles:!1}));for(const i of t.querySelectorAll("[data-live-unsafe-control]"))i instanceof HTMLDetailsElement&&(i.open=!1),typeof HTMLDialogElement<"u"&&i instanceof HTMLDialogElement&&i.open&&i.close()}function Ez(e,t){var i;return t==="recovery-heading"?e.querySelector("[data-product-state-recovery-heading]"):t==="state-heading"?e.querySelector(".op-state-panel h2"):((i=e.closest("main"))==null?void 0:i.querySelector("h1"))??e.closest("main")}function vz(e,t){if(e===null)return!0;if(t===null)return!1;try{return $e(e,Ze(t))}catch{return!1}}function Bz(e){var t,i;return e.kind==="first-use"?((t=e.binding)==null?void 0:t.cycleId)===null:!(e.kind==="empty"&&((i=e.binding)==null?void 0:i.route)==="#/operate/today"&&e.binding.cycleId!==null)}function bz({state:e,currentBinding:t,children:i}){const s=B.useRef(null),c=B.useId(),d=`dashboard-product-state-${c}`,u=`dashboard-product-recovery-${c}`,p=Ke(e),g=p&&Bz(e),m=p&&g,y=m&&vz(e.binding,t),A=m&&y&&vm(e,t),E=B.useRef(null),b=B.useRef(null),w=m&&y?e.policy.focus:"state-heading",j=`${m&&y?e.kind:"state-rejected"}:${w}:${A?"mutable":"safe"}`;if(B.useEffect(()=>{const Q=s.current;if(!Q||(!A&&b.current!==!1&&yz(Q),b.current=A,E.current===j))return;const S=Ez(Q,w);S&&(S.hasAttribute("tabindex")||S.setAttribute("tabindex","-1"),S.focus({preventScroll:!0})),E.current=j},[w,j,A]),!m||!y)return r.jsx("div",{ref:s,"data-product-state":"incompatible","data-product-state-custody":"rejected",children:r.jsx(we,{state:"incompatible",eyebrow:"Validation boundary",title:p&&!g?"Product state contradicts durable context":m?"Projection does not match the current context":"Product state could not be validated",description:"OpenPlanr rejected untrusted or foreign data before it reached this route.",detail:"No foreign actor, project, scope, domain, Cycle, subject, head, view, or generation is displayed.",headingId:d})});if(e.kind==="ready")return r.jsxs("div",{ref:s,"data-product-state":"ready","data-product-state-mutation":A?"allowed":"disabled",children:[e.data!==null&&i?i(e.data,e.kind,A):null,r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:A?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]});const I=Az[e.kind];return r.jsxs("div",{ref:s,"data-product-state":e.kind,"data-product-state-mutation":A?"allowed":"disabled",children:[r.jsx(we,{state:mz(e.kind),eyebrow:I.eyebrow,title:I.title,description:I.description,detail:e.reasonCodes.length>0?e.reasonCodes.join(" · "):void 0,headingId:d}),e.data!==null&&i?i(e.data,e.kind,A):null,r.jsx(gz,{state:e,proven:I.proven,notProven:I.notProven,headingId:u}),r.jsx("p",{className:"op-authority-note","data-product-state-authority":!0,children:A?"Mutation remains limited to exact runtime-issued allowed actions for this binding.":"Mutation controls remain disabled in this presentation state."})]})}function wz({currentBinding:e,route:t,state:i,children:s}){const c=!t||e===null||t.kind!=="not-found"&&e.route===ui(t)&&e.productArea===t.product&&e.subjectId===t.subjectId;return Ke(i)?r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":i.kind,"aria-label":"Current product state",children:r.jsx(bz,{state:i,currentBinding:c?e:null,children:s})}):r.jsx("section",{className:"op-projection-boundary","data-projection-boundary":"incompatible","aria-label":"Current product state",children:r.jsx(we,{state:"incompatible",eyebrow:"State boundary",title:"Product state could not be validated",description:"OpenPlanr rejected an unverified state before presenting any product data."})})}const xz=Object.freeze({approvalExecution:"Named approval satisfies only its exact version-bound requirement. Execution receives a fresh authority check.",verification:"Outcome verification remains separate. No success claim appears before accepted evidence.",retry:"An effect may have occurred. Only Inspect, Reconcile, custody restoration, or an explicit runtime recovery route is legal."}),jz=new Set(["today","inbox","cycles","cycle","actions"]),yx=Object.freeze(["observe","understand","decide","govern","act","verify","learn"]),WC=Object.freeze({created:0,observing:0,advising:1,challenging:1,synthesizing:1,awaiting_review:2,approved:3,executing:4,verifying:5,closed:6,blocked:0,failed:0,cancelled:0}),Iz=new Set([...Object.keys(WC),"closed","blocked","failed","cancelled"]),Qz=new Set(["normal","quiet","partial","blocked"]),qA=Object.freeze(["source","touched","carried-forward"]),eS=Object.freeze({finding:/^fnd_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,decision:/^dec_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,action:/^act_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u}),Cz=Object.freeze({finding:new Set(["open","accepted","resolved","rejected","deferred","superseded"]),decision:new Set(["proposed","approved","rejected","deferred","superseded"]),action:new Set(["proposed","approved","queued","in_progress","completed","blocked","rejected","deferred","cancelled"])}),Sz=new Map([["operate-experience-display-surface.schema.json",oy],["operate-action-display-workspace.schema.json",ay],["operate-cycle-display-workspace.schema.json",iy],["operate-executive-board-display-surface.schema.json",sy],["operate-recovery-display-surface.schema.json",ry],["operate-experience-surface.schema.json",Hf],["operate-experience-view.schema.json",ly],["operate-review-display-workspace.schema.json",gc],["operating-finding.schema.json",HC],["operate-experience-preview.schema.json",zC],["operate-api-envelope.schema.json",xH],["operate-allowed-action.schema.json",ty],["operating-work-ledger.schema.json",jH],["operating-delivery-route.schema.json",UC],["operating-evidence-resolution.schema.json",$C],["operating-execution-result.schema.json",LC],["operating-governed-operation.schema.json",PC],["operating-review.schema.json",Gf],["operating-trace-matrix.schema.json",Yf]]);function Oz(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}function tS(e){const[t,i=""]=e.split("#"),s=t.split("/").at(-1),c=Sz.get(s);return c?{schema:Oz(c,i?`#${i}`:"#"),rootSchema:c,base:s}:null}function Po(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed display contract"}]}function Rl(e,t){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const i=Object.keys(e);return i.length===t.length&&t.every(s=>i.includes(s))}function Kl(e,t,{workspace:i=!1,executiveBoard:s=!1,action:c=!1,recovery:d=!1}={}){if(!t)return!0;if(e.actorId!==t.actorId||e.scopeId!==t.scopeId||e.domainId!==t.domainId||e.domainVersion!==t.domainVersion||e.generatedAt!==t.generatedAt||e.viewHash!==t.viewHash||!jn(e.eventHead,t.eventHead))return!1;if(!i){if(t.surface!==void 0&&e.surface!==t.surface)return!1;if(e.surface==="inbox"||e.surface==="actions")return t.surface===e.surface&&typeof t.projectId=="string"&&Number.isSafeInteger(t.generation)&&e.data.requestBinding.projectId===t.projectId&&e.data.requestBinding.generation===t.generation&&(e.surface!=="inbox"||e.data.requestBinding.subjectId===t.subjectId)&&(e.surface!=="actions"||t.subjectId===null&&typeof t.cycleId=="string"&&t.cycleId.length>0);if(e.surface==="cycle"){const u=e.data.cycle.cycleId;if(typeof t.subjectId!="string"||typeof t.cycleId!="string"||t.subjectId!==u||t.cycleId!==u)return!1}return!0}return s?t.cycleId===e.data.cycleId&&t.subjectId===e.data.cycleId:c?t.subjectId===e.data.action.actionId&&t.actionId===e.data.action.actionId:d?!0:t.cycleId===e.data.cycle.cycleId&&t.subjectId===e.data.cycle.cycleId}function nS(e){if(!e||typeof e!="object"||!Iz.has(e.state)||!Qz.has(e.health)||!Array.isArray(e.stages)||e.stages.length!==yx.length||!e.stages.every((i,s)=>i.id===yx[s]))return!1;const t=WC[e.state];return e.stages.every((i,s)=>{let c=s<t?"complete":s===t?"current":"waiting";e.state==="closed"&&(c="complete"),s===t&&["blocked","failed"].includes(e.state)&&(c=e.state),s===t&&e.state==="cancelled"&&(c="skipped");const d=["blocked","failed","skipped"].includes(c)?`Cycle is ${e.state}.`:null;return i.state===c&&i.reason===d})}function _z(e,t){const i=e.payload;if(!jz.has(i.surface)||e.integrity.sourceViewHash!==i.viewHash||i.truthSummary.sourceViewHash!==i.viewHash||!jn(i.truthSummary.sourceEventHead,i.eventHead)||!Kl(i,t))return!1;if(i.surface==="inbox"){const c=i.data.inbox,d=i.data.requestBinding.subjectId;return Array.isArray(c)&&new Set(c.map(u=>u.itemId)).size===c.length&&(d===null||c.length===1&&c[0].itemId===d)&&c.every((u,p)=>p===0||Number(c[p-1].blocking)>Number(u.blocking)||Number(c[p-1].blocking)===Number(u.blocking)&&c[p-1].itemId.localeCompare(u.itemId)<0)}if(i.surface==="actions"){const c=i.data.actions;return Array.isArray(c)&&new Set(c.map(d=>d.actionId)).size===c.length}const s=i.surface==="today"?i.data.activeCycle===null?[]:[i.data.activeCycle]:i.surface==="cycles"?i.data.cycles:[i.data.cycle];return new Set(s.map(c=>c.cycleId)).size===s.length&&s.every(nS)}function aA(e,t){return Rl(e,["kind","subjectId","state","relations"])&&e.kind===t&&typeof e.subjectId=="string"&&eS[t].test(e.subjectId)&&typeof e.state=="string"&&Cz[t].has(e.state)&&Array.isArray(e.relations)&&e.relations.length>=1&&e.relations.length<=qA.length&&e.relations.every(i=>qA.includes(i))&&new Set(e.relations).size===e.relations.length}function Nz(e){var t;return Rl(e,["entityKind","entityId","cycleId","relation"])&&((t=eS[e.entityKind])==null?void 0:t.test(e.entityId))===!0&&typeof e.cycleId=="string"&&qA.includes(e.relation)}function Rz(e,t){const i=[...e.findings,...e.decisions,...e.actions],s=i.map(d=>`${d.kind}:${d.subjectId}`),c=e.cycleLinks.map(d=>`${d.entityKind}:${d.entityId}:${d.cycleId}:${d.relation}`);return new Set(s).size!==s.length||new Set(c).size!==c.length||e.cycleLinks.some(d=>d.cycleId!==t||!i.some(u=>u.kind===d.entityKind&&u.subjectId===d.entityId))?!1:i.every(d=>en(d.relations,e.cycleLinks.filter(u=>u.entityKind===d.kind&&u.entityId===d.subjectId).map(u=>u.relation)))}function Dz(e,t){return Rl(e,["tool","arguments","label","effect"])&&e.tool==="operate.cycle.get"&&Rl(e.arguments,["cycleId"])&&e.arguments.cycleId===t&&typeof e.label=="string"&&e.label.length>0&&e.label.length<=256&&!/(?:<[^>]+>|\{\{[^}]+\}\})/u.test(e.label)&&e.effect==="read-only"}function Tz(e){const t=e.verification,i=e.metric;return["succeeded","failed"].includes(e.status)&&e.accessReason===null&&e.observationIds.length>0&&e.evidenceRefIds.length>0&&i!==null&&i.observed!==null&&i.freshness==="current"&&t!==null&&t.accessReason===null&&e.verificationPlanId===t.verificationPlanId&&i.metricId===t.metricId&&i.metricHash===t.metricHash}function kz(e,t,i,s){const c=e.actions.map(m=>m.subjectId),d=e.outcomes.map(m=>m.outcomeId),u=e.learnings.map(m=>m.learningId);if(new Set(d).size!==d.length||new Set(u).size!==u.length||e.outcomes.some(m=>!c.includes(m.actionId))||e.learnings.some(m=>!d.includes(m.outcomeId)))return!1;const p=s.proof.status==="verified"?"verified":s.proof.status==="not-required"?"not-required":"unverified",g=p==="unverified"?s.proof.reasonCodes.length>0?s.proof.reasonCodes:["OPERATE_VERIFICATION_EVIDENCE_MISSING"]:[];return i.status===p&&en(i.reasonCodes,g)}function iA(e,t,i){return{ok:!0,kind:"operate-experience-surface",schemaVersion:"1.0.0",protocolVersion:e.protocolVersion,surface:t,readOnly:!0,mutationEnabled:e.status==="ready",scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,actorId:e.actorId,accessLevel:e.accessLevel,generatedAt:e.generatedAt,eventHead:e.eventHead,viewHash:e.viewHash,truthSummary:e.truthSummary,status:e.status,reasonCodes:e.reasonCodes,data:i}}function Mz(e){const t=e.data;if(!Rl(t.ownerCycle,["cycleId","scopeId","domainId","domainVersion","state","health","focus","createdAt","updatedAt"])||!Array.isArray(t.persistentWork.findings)||!t.persistentWork.findings.every(i=>aA(i,"finding"))||!Array.isArray(t.persistentWork.decisions)||!t.persistentWork.decisions.every(i=>aA(i,"decision"))||!Array.isArray(t.persistentWork.actions)||!t.persistentWork.actions.every(i=>aA(i,"action"))||!Array.isArray(t.persistentWork.cycleLinks)||!t.persistentWork.cycleLinks.every(Nz)||!Array.isArray(t.persistentWork.outcomes)||!Array.isArray(t.persistentWork.learnings)||t.allowedActions.length!==1)return!1;try{const i=t.cycle,s={...i,assignments:i.assignments.map(u=>u.deepLink===null?{...u,deepLink:i.deepLink}:u)},c=t.persistentWork.outcomes.map(u=>u.deepLink===null?{...u,deepLink:`#/operate/outcomes/${encodeURIComponent(u.outcomeId)}`}:u);tf(iA(e,"cycle",{cycle:s})),tf(iA(e,"outcomes",{domainMetrics:[],outcomes:c,learnings:t.persistentWork.learnings})),tf(iA(e,"history",{history:[],replay:t.replay}));const d=t.persistentWork.actions.filter(u=>u.relations.includes("source")).map(u=>u.subjectId);return nS(i)&&t.ownerCycle.cycleId===i.cycleId&&t.ownerCycle.scopeId===e.scopeId&&t.ownerCycle.domainId===e.domainId&&t.ownerCycle.domainVersion===e.domainVersion&&t.ownerCycle.state===i.state&&t.ownerCycle.health===i.health&&en(t.ownerCycle.focus,i.focus)&&t.ownerCycle.createdAt===i.createdAt&&t.ownerCycle.updatedAt===i.updatedAt&&i.deepLink===`#/operate/cycles/${encodeURIComponent(i.cycleId)}`&&jn(t.replay.finalHead,e.eventHead)&&en(i.replayCheckpoint,t.replay.checkpoint)&&en(i.persistentActionIds,d)&&Rz(t.persistentWork,i.cycleId)&&kz(t.persistentWork,i,t.verification,e.truthSummary)&&Dz(t.allowedActions[0],i.cycleId)}catch{return!1}}function Gz(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&e.payload.truthSummary.sourceViewHash===e.payload.viewHash&&jn(e.payload.truthSummary.sourceEventHead,e.payload.eventHead)&&Kl(e.payload,t,{workspace:!0})&&Mz(e.payload)}function Jl(e,t,i,s,c){try{const d=li(e);if(hc(d,t,{base:i,resolveRef:tS}).length>0||!s(d,c))return Po();const p=ey(kC(d),d.integrity.domain);return d.integrity.contentHash===p?[]:Po()}catch{return Po()}}function Yz(e,t){return Jl(e,oy,"schemas/v1.2.0/operate-experience-display-surface.schema.json",_z,t)}function Yn(e,t){if(Yz(e,t).length>0){const i=new TypeError("The Operate display surface does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_EXPERIENCE_DISPLAY_INVALID",i}return e}function Hz(e,t){return t?e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&jn(e.eventHead,t.eventHead)&&e.sourceViewHash===t.sourceViewHash&&e.subject.id===t.subjectId&&e.actionDigest===t.actionDigest:!0}function zz(e){if(new Set(e.targets.map(i=>`${i.kind}:${i.id}`)).size!==e.targets.length)return!1;if(e.kind!=="approval")return e.threshold===null;const t=e.threshold;return t===null||t.recorded>t.required||t.remaining!==t.required-t.recorded?!1:t.remaining===0?e.nextState==="threshold-satisfied":e.nextState==="recorded-parties-remain"}function Uz(e,t){try{const i=li(e),s=hc(i,zC,{base:"schemas/v2.0.0/operate-experience-preview.schema.json",resolveRef:tS});if(s.length>0||!Hz(i,t)||!zz(i.transition))return s.length>0?s:Po();const c=li(i);return delete c.previewHash,i.actionDigest!==Mr(i.allowedAction)||i.previewHash!==Mr(c)?Po():[]}catch{return Po()}}function $z(e,t){if(Uz(e,t).length>0){const i=new TypeError("The Operate preview does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_EXPERIENCE_PREVIEW_INVALID",i}return TC(li(e))}function Lz(e,t){return Jl(e,iy,"schemas/v1.2.0/operate-cycle-display-workspace.schema.json",Gz,t)}function mf(e,t){if(Lz(e,t).length>0){const i=new TypeError("The Cycle display workspace does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_CYCLE_DISPLAY_INVALID",i}return e}function Pz(e){return e===null?!0:typeof e!="object"||Array.isArray(e)?!1:e.kind==="omitted"?typeof e.reason=="string"&&e.reason.length>0:e.kind==="lens"?typeof e.roleId=="string"&&typeof e.roleKind=="string"&&typeof e.absenceCode=="string"&&typeof e.reason=="string":e.kind==="terminal"?(e.outcome==="abandoned"||e.outcome==="failed")&&typeof e.code=="string"&&typeof e.reason=="string"&&typeof e.recoveryDisposition=="string":!1}function Fz(e){return typeof(e==null?void 0:e.roleId)=="string"&&typeof(e==null?void 0:e.label)=="string"&&e.roleId!==e.label&&typeof(e==null?void 0:e.roleKind)=="string"&&typeof(e==null?void 0:e.roleVersion)=="string"&&Pz((e==null?void 0:e.absence)??null)}function Vz(e){var i;const t=(i=e==null?void 0:e.data)==null?void 0:i.executiveBoard;return!t||!Array.isArray(t.seats)?!1:t.seats.every(Fz)}function qz(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&Kl(e.payload,t,{executiveBoard:!0})&&Vz(e.payload)}function Kz(e,t){return Jl(e,sy,"schemas/v1.2.0/operate-executive-board-display-surface.schema.json",qz,t)}function KA(e,t){if(Kz(e,t).length>0){const i=new TypeError("The executive board display surface does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_EXECUTIVE_BOARD_DISPLAY_INVALID",i}return e}function Jz(e){return`#/operate/actions/${encodeURIComponent(e)}`}function Zz(e){return e===null?Object.freeze({status:"not-required",reasonCodes:Object.freeze([])}):e.status==="insufficient-evidence"?Object.freeze({status:"unverified",reasonCodes:Object.freeze(["OPERATE_VERIFICATION_EVIDENCE_MISSING"])}):["succeeded","failed"].includes(e.status)&&Tz(e)?Object.freeze({status:"verified",reasonCodes:Object.freeze([])}):Object.freeze({status:"unverified",reasonCodes:Object.freeze(["OPERATE_VERIFICATION_EVIDENCE_MISSING"])})}function Xz(e){const t=e==null?void 0:e.status;return t==="healthy"||t==="empty"?"restored":t==="corrupt"?"corrupt":t==="incompatible"?"incompatible":t==="locked"?"blocked":t==="repairable"?e.allowedRecovery==="clear-stale-lock"?"blocked":(e.allowedRecovery==="restore-generation","uncertain"):"blocked"}function Wz(e){const t=e.data,i=t.action,s=Jz(i.actionId),c=t.allowedActions,d=t.outcome,u=Zz(d),p=c.some(g=>g.action.effect!=="read-only");return!(e.readOnly===e.mutationEnabled||e.mutationEnabled&&(e.status!=="ready"||!p)||i.deepLink!==s||!en(t.boundaries,xz)||!en(t.verification,u)||!en(t.replay.finalHead,e.eventHead)||c.some(g=>g.subjectId!==i.actionId)||t.inbox.some(g=>g.subjectId!==i.actionId)||t.learnings.some(g=>d===null||g.outcomeId!==d.outcomeId)||d!==null&&d.actionId!==i.actionId)}function eU(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&Kl(e.payload,t,{workspace:!0,action:!0})&&Wz(e.payload)}function tU(e,t){return Jl(e,ay,"schemas/v1.2.0/operate-action-display-workspace.schema.json",eU,t)}function JA(e,t){if(tU(e,t).length>0){const i=new TypeError("The Action display workspace does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_ACTION_DISPLAY_INVALID",i}return e}function nU(e){const t=e.data;return!("integrityBoundary"in t.inspection||t.recoveryState!==Xz(t.inspection))}function aU(e,t){return e.integrity.sourceViewHash===e.payload.viewHash&&Kl(e.payload,t,{workspace:!0,recovery:!0})&&nU(e.payload)}function iU(e,t){return Jl(e,ry,"schemas/v1.2.0/operate-recovery-display-surface.schema.json",aU,t)}function ZA(e,t){if(iU(e,t).length>0){const i=new TypeError("The recovery display surface does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_RECOVERY_DISPLAY_INVALID",i}return e}Object.freeze(structuredClone(ay));Object.freeze(structuredClone(ry));Object.freeze(structuredClone(sy));Object.freeze(structuredClone(oy));Object.freeze(structuredClone(iy));const rU=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Ex=/^[A-Za-z0-9_-]{16,256}$/u,sU=/^[A-Za-z0-9_-]{43,256}$/u,aS=/^sha256:[a-f0-9]{64}$/u,oU=256*1024;function cU(){let e=0,t=!1,i=!1;const s=new Set,c=()=>{e+=1;for(const d of s)d.abort();s.clear()};return Object.freeze({isDisposed:()=>t,isUncertain:()=>i,invalidate:c,markUncertain(){i=!0,c()},reconcile(){i=!1,c()},start(){if(t)throw new DOMException("Cancelled","AbortError");i&&Oe("OPERATION_UNCERTAIN"),s.size>0&&Oe("OPERATE_COMMAND_IN_FLIGHT");const d=new AbortController;s.add(d);let u=!0;return Object.freeze({controller:d,epoch:e,release(){u&&(u=!1,s.delete(d))}})},assert(d,u,p){if(t||u.aborted||d!==e||!p)throw new DOMException("Cancelled","AbortError")},dispose(){t||(t=!0,c())}})}function iS(e){const t=new Set(e.routeKinds),i=cU();let s=null,c=null,d=null,u=null;const p=(m,y)=>s!==null&&c!==null&&$e(m,s)&&e.sameLocator(y,c),g=(m,y)=>m.productArea===y.productArea&&m.route===y.route&&m.actorId===y.actorId&&m.projectId===y.projectId&&m.scopeId===y.scopeId&&m.domainId===y.domainId&&m.domainVersion===y.domainVersion&&m.cycleId===y.cycleId&&m.subjectId===y.subjectId&&m.generation===y.generation;return Object.freeze({bind(m,y){i.isDisposed()&&Oe("OPERATE_ADAPTER_DISPOSED");const A=Ze(m);(A.productArea!=="operate"||!t.has(si(A.route).kind))&&Oe(e.routeErrorCode);const E=e.parseLocator(y);p(A,E)||(d=null,u=null,i.invalidate(),s=A,c=E)},async run(m,y={}){i.isDisposed()&&Oe("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Oe("OPERATE_BINDING_REQUIRED");const A=s,E=c,b=i.start(),w=()=>{i.assert(b.epoch,b.controller.signal,p(A,E))},j=async I=>{try{const Q=await I;return w(),Q}catch(Q){throw w(),Q}};try{const I=d??await j(e.issueSession({identity:A,locator:E,signal:b.controller.signal,assertCurrent:w,waitForCurrent:j}));return d=I,await j(m({identity:A,locator:E,session:I,signal:b.controller.signal,assertCurrent:w,waitForCurrent:j}))}catch(I){throw y.uncertainOnFailure&&I instanceof Error&&I.name==="OPERATION_UNCERTAIN"&&(d=null,i.markUncertain()),I}finally{b.release()}},retainPreviewProof(m){(i.isDisposed()||i.isUncertain())&&Oe("OPERATION_UNCERTAIN"),u=structuredClone(m)},requirePreviewProof(m){return i.isDisposed()&&Oe("OPERATE_ADAPTER_DISPOSED"),m(u)||Oe("OPERATE_BINDING_MISMATCH"),structuredClone(u)},clearPreviewProof(){u=null},cancel(){d=null,u=null,i.invalidate()},reconcile(m,y){d=null,u=null,i.isDisposed()&&Oe("OPERATE_ADAPTER_DISPOSED"),(s===null||c===null)&&Oe("OPERATE_BINDING_REQUIRED");const A=Ze(m);(A.productArea!=="operate"||!t.has(si(A.route).kind)||!g(s,A))&&Oe("OPERATE_BINDING_MISMATCH");const E=y===void 0?c:e.parseLocator(y);e.sameLocator(c,E)||Oe("OPERATE_BINDING_MISMATCH"),s=A,c=E,i.reconcile()},dispose(){i.isDisposed()||(d=null,u=null,s=null,c=null,i.dispose())}})}class yl extends Error{constructor(t){super("The governed command was refused without effect."),this.code=t,this.name=t}}function Oe(e="OPERATE_COMMAND_INVALID"){throw new yl(e)}function ia(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Oe(),e}function Ta(e,t){const i=Object.keys(e).sort(),s=[...t].sort();(i.length!==s.length||i.some((c,d)=>c!==s[d]))&&Oe()}function Fo(e,t){return(typeof e!="string"||!t.test(e))&&Oe(),e}function XA(e){const t=ia(e);Ta(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Oe();const i=t.hash===null?null:Fo(t.hash,aS);return t.sequence===0!=(i===null)&&Oe(),Object.freeze({sequence:t.sequence,hash:i})}function rS(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Gu(e){const t=ia(e);return Ta(t,["subjectId","actionDigest"]),Object.freeze({subjectId:Fo(t.subjectId,rU),actionDigest:Fo(t.actionDigest,aS)})}function lU(e){let t;try{t=new URL(e)}catch{Oe("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Oe("OPERATE_ORIGIN_INVALID"),t.origin}function dU(e,t,i){const s=new URL(t,e);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s.toString()}function uU(e){try{const t=ia(e);Ta(t,["ok","error"]);const i=ia(t.error);Ta(i,["reasonCode","message","retryable"]);const s=i.reasonCode;return t.ok===!1&&typeof s=="string"&&/^[A-Z][A-Z0-9_]{0,127}$/u.test(s)&&typeof i.message=="string"&&i.retryable===!1?s:null}catch{return null}}function fU(e,t){Ta(e,["ok","operation","error","allowedActions"]);const i=ia(e.error);Ta(i,["code","message","retryable","context"]);const s=ia(i.context);Ta(s,[]),(e.ok!==!1||e.operation!==t||i.code!=="OPERATION_UNCERTAIN"||typeof i.message!="string"||i.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Oe("OPERATE_COMMAND_REFUSED")}function pU(e,t,i,s){Ta(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!==t||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Oe("OPERATE_RESPONSE_INVALID");const c=XA(e.eventHead),d=ia(e.data),u=XA(d.eventHead);return(d.kind!=="operate-experience-view"||d.schemaVersion!=="1.0.0"||d.protocolVersion!=="2.0.0"||d.actorId!==i.actorId||d.scopeId!==i.scopeId||d.domainId!==i.domainId||d.domainVersion!==i.domainVersion||!rS(u,c)||c.sequence<=s.sequence||c.hash===null)&&Oe("OPERATE_RESPONSE_INVALID"),c}async function hU(e,t){const i=e.headers.get("content-type");(!i||!/^application\/json(?:\s*;\s*charset=utf-8)?$/iu.test(i))&&Oe("OPERATE_RESPONSE_INVALID");const s=e.text(),c=t?await t.waitForCurrent(s):await s;t==null||t.assertCurrent(),c.length>oU&&Oe("OPERATE_RESPONSE_INVALID");let d;try{d=JSON.parse(c)}catch{Oe("OPERATE_RESPONSE_INVALID")}if(!e.ok){const u=uU(d);u===null&&Oe("OPERATE_RESPONSE_INVALID"),Oe(u)}return d}function sS(e,t,i,s){const c=ia(e);Ta(c,["kind","schemaVersion","protocolVersion","sessionId","sessionCapability","issuedAt","expiresAt","binding","allowedActions","readOnly"]),(c.kind!=="operate-command-session"||c.schemaVersion!=="1.0.0"||c.protocolVersion!=="2.0.0"||c.readOnly!==!1||typeof c.issuedAt!="string"||typeof c.expiresAt!="string")&&Oe("OPERATE_SESSION_INVALID");const d=ia(c.binding);Ta(d,["actorId","scopeId","domainId","domainVersion","cycleId","eventHead","sourceViewHash","actionLocator"]);const u=s.parseLocator(d.actionLocator),p=XA(d.eventHead);(d.actorId!==t.actorId||d.scopeId!==t.scopeId||d.domainId!==t.domainId||d.domainVersion!==t.domainVersion||d.cycleId!==t.cycleId||t.eventHead===null||!rS(p,t.eventHead)||d.sourceViewHash!==t.viewHash||!s.sameLocator(u,i))&&Oe("OPERATE_BINDING_MISMATCH"),Array.isArray(c.allowedActions)||Oe("OPERATE_ACTION_REFERENCE_INVALID");let g=null;if(s.allowedActions.kind==="none")c.allowedActions.length!==0&&Oe("OPERATE_ACTION_REFERENCE_INVALID");else{c.allowedActions.length!==1&&Oe("OPERATE_ACTION_REFERENCE_INVALID");const m=ia(c.allowedActions[0]),y=s.allowedActions.parseLocator(m);s.sameLocator(y,i)||Oe("OPERATE_BINDING_MISMATCH"),g=Fo(m.actionReference,Ex)}return Object.freeze({sessionId:Fo(c.sessionId,Ex),capability:Fo(c.sessionCapability,sU),actionReference:g})}function gU(e,t,i,s){const c={"content-type":"application/json","x-openplanr-actor":e.actorId};return i&&(c.origin=t),s!==void 0&&(c.authorization=`Bearer ${s}`),c}async function rA(e,t,i,s,c,d,u,p,g){const m=e(dU(t,i,s),{method:"POST",credentials:"same-origin",headers:gU(s,t,u,p),body:JSON.stringify(c),signal:d}),y=g?await g.waitForCurrent(m):await m;return g==null||g.assertCurrent(),hU(y,g)}function uy(e){const t=lU(e.origin),i=e.fetcher??globalThis.fetch.bind(globalThis),s=new Set(e.routeKinds),c=e.includeOriginHeader??!1;let d=null;const u=iS({routeKinds:e.routeKinds,routeErrorCode:e.routeErrorCode,parseLocator:Gu,sameLocator:(m,y)=>m.subjectId===y.subjectId&&m.actionDigest===y.actionDigest,async issueSession({identity:m,locator:y,signal:A,assertCurrent:E,waitForCurrent:b}){(m.cycleId===null||m.eventHead===null||m.viewHash===null)&&Oe("OPERATE_BINDING_REQUIRED");const w=await rA(i,t,"/api/operate/session",m,{cycleId:m.cycleId,eventHead:m.eventHead,sourceViewHash:m.viewHash,actionLocator:y},A,c,void 0,{assertCurrent:E,waitForCurrent:b});return E(),sS(w,m,y,{parseLocator:Gu,sameLocator:(j,I)=>j.subjectId===I.subjectId&&j.actionDigest===I.actionDigest,allowedActions:{kind:"single-reference",parseLocator(j){return Ta(j,["actionReference","subjectId","actionDigest"]),Gu({subjectId:j.subjectId,actionDigest:j.actionDigest})}}})}});return Object.freeze({bind:m=>{const y=Ze(m),A=si(y.route);(y.productArea!=="operate"||!s.has(A.kind))&&Oe(e.routeErrorCode),!(d!==null&&$e(d,y))&&(u.cancel(),d=y)},preview:async m=>{(d===null||d.productArea!=="operate"||d.cycleId===null||d.eventHead===null||d.viewHash===null)&&Oe("OPERATE_BINDING_REQUIRED");const y=Gu(m),A=d,E=d.eventHead,b=d.viewHash;u.bind(A,y);const w=await u.run(async({session:C,signal:_,assertCurrent:O,waitForCurrent:T})=>{C.actionReference===null&&Oe("OPERATE_ACTION_REFERENCE_INVALID");let N;try{N=await rA(i,t,"/api/operate/commands/preview",A,{sessionId:C.sessionId,actionReference:C.actionReference},_,c,C.capability,{assertCurrent:O,waitForCurrent:T}),O()}catch($){if(_.aborted&&$ instanceof DOMException&&$.name==="AbortError"||$ instanceof yl&&$.code!=="OPERATE_RESPONSE_INVALID"&&$.code!=="OPERATION_UNCERTAIN")throw $;Oe("OPERATION_UNCERTAIN")}try{const $=$z(N,{actorId:A.actorId,scopeId:A.scopeId,domainId:A.domainId,domainVersion:A.domainVersion,eventHead:E,sourceViewHash:b,subjectId:y.subjectId,actionDigest:y.actionDigest});return u.retainPreviewProof($),$}catch{Oe("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});let j=!0,I=null;return Object.freeze({preview:w,confirm:C=>(I!==null||(I=(async()=>{if(!j)throw new DOMException("Cancelled","AbortError");try{const _=await u.run(async({session:O,signal:T,assertCurrent:N,waitForCurrent:$})=>{var Z;const G=u.requirePreviewProof(q=>ia(q).previewId===w.previewId&&ia(q).previewHash===w.previewHash);let U;try{U=await rA(i,t,"/api/operate/commands/confirm",A,{sessionId:O.sessionId,previewId:G.previewId,previewHash:G.previewHash,...((Z=e.confirmation)==null?void 0:Z.additionalBody(G,C))??{}},T,c,O.capability,{assertCurrent:N,waitForCurrent:$}),N()}catch(q){if(T.aborted&&q instanceof DOMException&&q.name==="AbortError"||q instanceof yl&&q.code!=="OPERATION_UNCERTAIN"&&q.code!=="OPERATE_RESPONSE_INVALID")throw q;Oe("OPERATION_UNCERTAIN")}try{if(e.confirmation)return e.confirmation.parse({value:U,preview:G,identity:A,previousHead:E,input:C});const q=ia(U);return q.ok!==!0&&(fU(q,G.allowedAction.tool),Oe("OPERATION_UNCERTAIN")),pU(q,G.allowedAction.tool,A,E)}catch(q){if(q instanceof yl&&q.code==="OPERATION_UNCERTAIN")throw q;Oe("OPERATION_UNCERTAIN")}},{uncertainOnFailure:!0});return u.clearPreviewProof(),e.confirmation?_:Object.freeze({ok:!0,eventHead:_})}catch(_){if(_ instanceof yl&&_.code==="OPERATION_UNCERTAIN")return Object.freeze({ok:!1,reasonCode:"OPERATION_UNCERTAIN"});throw _}finally{j=!1}})()),I),cancel:()=>{j&&(j=!1,u.cancel())}})},reconcile(m){d===null&&Oe("OPERATE_BINDING_REQUIRED");const y=Ze(m);u.reconcile(y),d=y},cancel:u.cancel,dispose(){u.dispose(),d=null}})}function AU(e){return uy({...e,routeKinds:["operate.action"],routeErrorCode:"OPERATE_ACTION_ROUTE_REQUIRED",includeOriginHeader:!0})}const mU=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function oS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Uf(e){const t=oS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=JA(i),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId});return JA(s,d),!0}catch{return!1}}}function vx(e,t){const i=oS(t);if(i===null||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i)||!Uf(i)(e.data))return null;const s=e.data,c=s.payload,d=mU[e.kind];return d===void 0||c.status!==d||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({kind:"action",presentation:d,binding:e.binding,display:s,workspace:c,action:c.data.action,outcome:c.data.outcome,learnings:c.data.learnings,inbox:c.data.inbox,history:c.data.history,replay:c.data.replay,verification:c.data.verification,boundaries:c.data.boundaries,allowedActions:c.data.allowedActions,mutationEnabled:d==="ready"&&c.mutationEnabled})}const yU=2147e6;function cS(e){var i,s;const t=((i=e==null?void 0:e.action)==null?void 0:i.tool)??"";return t.endsWith(".approve")?"approval":t.endsWith(".execute")?"execute":t.endsWith(".rollback")?"rollback":t.includes("recovery")||t.includes("reconcile")?"reconcile":((s=e==null?void 0:e.action)==null?void 0:s.effect)==="read-only"?"inspect":"governed"}function Za(e){var t,i;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((i=e.eventHead)==null?void 0:i.hash)??null,e.viewHash,e.subjectId])}function lS(e){return e.presentation==="offline"?"Changes are unavailable offline. Reconnect and refresh before continuing.":e.presentation==="stale"?"This workspace is out of date. Refresh before reviewing a new action.":e.workspace.reasonCodes.includes("OPERATE_EVENT_GAP")?"This workspace is missing an update. Refresh before continuing.":e.presentation==="read-only"||!e.mutationEnabled?"You do not currently have permission to make changes here.":null}function Bx(e){return e instanceof DOMException&&e.name==="AbortError"}function Yu(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function EU(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function dS(e){return Date.parse(e.custody.preview.expiresAt)}function bx(e,t=Date.now()){const i=dS(e);return!Number.isFinite(i)||i<=t}function ko(e,t){return t!==null&&e.contextKey===Za(t.binding)&&$e(e.binding,t.binding)&&e.locator.subjectId===t.action.actionId}function aa({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function Tn({label:e,value:t}){const i=t==null||t===""?"Not available":t;return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:r.jsx("code",{children:i})})]})}function fy(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function py(e){const t=new Date(e);return Number.isFinite(t.valueOf())?new Intl.DateTimeFormat("en",{day:"numeric",hour:"numeric",minute:"2-digit",month:"short",timeZone:"UTC",timeZoneName:"short",year:"numeric"}).format(t):e}function Dl(e,t,i=`${t}s`){return`${e} ${e===1?t:i}`}function wx(e){return e==="insufficient-evidence"?"More evidence is needed":e==="verified"?"Outcome confirmed":e==="not-required"?"No further verification is needed":fy(e)}function xx({kind:e,result:t}){var s;const i=t.targetBeforeHash===t.targetAfterHash;return r.jsxs("section",{className:"op-action-result","aria-labelledby":`op-action-${e.toLowerCase()}-title`,"data-result-kind":e.toLowerCase(),children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"op-eyebrow",children:[e," result"]}),r.jsx("h2",{id:`op-action-${e.toLowerCase()}-title`,children:((s=t.effectSummary)==null?void 0:s.summary)??`${e} result is access-restricted`})]}),r.jsx("p",{children:"A recorded change still needs evidence before its result can be confirmed."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(aa,{label:"Status",value:fy(t.status)}),r.jsx(aa,{label:"Completed",value:py(t.completedAt)}),r.jsx(aa,{label:"Change",value:i?"No change recorded":"Change recorded"}),r.jsx(aa,{label:"Access",value:t.accessReason??"Current actor may inspect the projected summary"})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Tn,{label:"Target before digest",value:t.targetBeforeHash}),r.jsx(Tn,{label:"Target after digest",value:t.targetAfterHash})]})]})]})}function vU({outcome:e}){return r.jsxs("section",{className:"op-action-outcome","aria-labelledby":"op-action-outcome-title","data-result-kind":"outcome",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Outcome"}),r.jsx("h2",{id:"op-action-outcome-title",children:wx(e.status)})]}),r.jsx("p",{children:"This is where the expected result is checked against real evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(aa,{label:"Status",value:wx(e.status)}),r.jsx(aa,{label:"Last checked",value:py(e.observedAt)}),r.jsx(aa,{label:"Observations",value:Dl(e.observationIds.length,"observation")}),r.jsx(aa,{label:"Evidence",value:Dl(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Tn,{label:"Outcome ID",value:e.outcomeId}),r.jsx(Tn,{label:"Verification plan",value:e.verificationPlanId})]})]})]})}function BU({learning:e}){return r.jsxs("section",{className:"op-action-learning","aria-labelledby":`op-learning-${e.learningId}`,"data-result-kind":"learning",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"What we learned"}),r.jsx("h2",{id:`op-learning-${e.learningId}`,children:e.statement})]}),r.jsx("p",{children:"This insight is based on the work and its evidence."})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(aa,{label:"Recorded",value:py(e.createdAt)}),r.jsx(aa,{label:"Related decisions",value:Dl(e.decisionIds.length,"decision")}),r.jsx(aa,{label:"Evidence",value:Dl(e.evidenceRefIds.length,"reference")})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Tn,{label:"Learning ID",value:e.learningId}),r.jsx(Tn,{label:"Outcome ID",value:e.outcomeId})]})]})]})}function Hu({entry:e,model:t,variant:i,fallbackLabel:s,fallbackReason:c,pending:d,onInvoke:u}){var m,y,A;const p=lS(t),g=`op-action-control-${cS(e)}`;return e&&!p&&((m=e.action)==null?void 0:m.effect)!=="read-only"?r.jsx(Lt,{id:g,variant:i,...d?{disabled:!0,disabledReason:"A governed preview is already in flight."}:{onInvoke:()=>u(e,g)},children:((y=e.action)==null?void 0:y.label)??s}):r.jsx(Lt,{id:g,disabled:!0,disabledReason:p??c,children:((A=e==null?void 0:e.action)==null?void 0:A.label)??s})}function bU({model:e,pending:t,onInvoke:i}){var I,Q;const{action:s,outcome:c,learnings:d,boundaries:u}=e,p=e.allowedActions.filter(S=>S.subjectId===s.actionId),g=new Map(p.map(S=>[cS(S),S])),m=s.executions.at(-1)??null,y=s.rollbacks.at(-1)??null,A=(m==null?void 0:m.status)==="uncertain"||(y==null?void 0:y.status)==="uncertain"||s.state==="uncertain",E=(m==null?void 0:m.status)==="succeeded",b=(c==null?void 0:c.status)==="insufficient-evidence",w=((I=s.deliveryRoute)==null?void 0:I.route)==="planning-work"?`#/operate/actions/${encodeURIComponent(s.actionId)}/planning`:null,j=s.dependencyActionIds.length===0?"No dependencies":Dl(s.dependencyActionIds.length,"dependency","dependencies");return r.jsxs("article",{className:"op-action-detail__workspace","data-action-state":s.state,"aria-labelledby":"op-action-title",children:[r.jsxs("header",{className:"op-action-detail__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · action"}),r.jsx("h1",{id:"op-action-title",children:s.title}),r.jsx("p",{children:s.expectedResult}),r.jsx(wa,{state:s.state})]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(aa,{label:"Status",value:fy(s.state)}),r.jsx(aa,{label:"Related work",value:j})]})]}),r.jsxs("details",{className:"op-action-detail__technical-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Tn,{label:"Action ID",value:s.actionId}),r.jsx(Tn,{label:"Revision",value:s.revision}),r.jsx(Tn,{label:"Action digest",value:s.actionHash}),r.jsx(Tn,{label:"Verification plan",value:s.verificationPlanId}),r.jsx(Tn,{label:"Delivery route",value:(Q=s.deliveryRoute)==null?void 0:Q.route}),r.jsx(Tn,{label:"Dependencies",value:s.dependencyActionIds.length>0?s.dependencyActionIds.join(" · "):"None"})]})]}),r.jsxs("section",{className:"op-action-boundaries","aria-labelledby":"op-action-boundaries-title",children:[r.jsx("div",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Before you continue"}),r.jsx("h2",{id:"op-action-boundaries-title",children:"Review each step separately"})]})}),r.jsx(we,{state:"unavailable",eyebrow:"Approval",title:"Approval does not make a change",description:u.approvalExecution}),E?r.jsx(we,{state:"incompatible",eyebrow:"Recorded change",title:"The change is complete; its result is still being checked",description:u.verification}):null,b?r.jsx(we,{state:"incompatible",eyebrow:"Evidence",title:"More evidence is needed",description:"The change is recorded, but the expected result is not proven yet. Review the next observation or revisit the work."}):null,A?r.jsx(we,{state:"offline",eyebrow:"Uncertainty",title:"Do not retry this Action",description:u.retry}):null]}),r.jsxs("section",{className:"op-action-detail__controls","aria-label":`Available actions for ${s.title}`,children:[w?r.jsx("a",{className:"op-cycle-link",href:w,children:"Review Planning handoff"}):null,g.has("approval")?r.jsx(Hu,{entry:g.get("approval"),model:e,pending:t,onInvoke:i,fallbackLabel:"Approve",fallbackReason:"OpenPlanr returned no approval action for the current authority and state."}):null,g.has("execute")?r.jsx(Hu,{entry:g.get("execute"),model:e,pending:t,onInvoke:i,fallbackLabel:"Execute",fallbackReason:"OpenPlanr returned no execute action for the current authority and state."}):r.jsx(Lt,{disabled:!0,disabledReason:E?"This execution already has a durable terminal result. It cannot be dispatched again.":A?"Uncertain effect state prohibits blind retry.":"OpenPlanr returned no execute action for the current authority and state.",children:"Execute unavailable"}),g.has("rollback")?r.jsx(Hu,{entry:g.get("rollback"),model:e,variant:"danger",pending:t,onInvoke:i,fallbackLabel:"Rollback",fallbackReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline."}):r.jsx(Lt,{disabled:!0,disabledReason:"Rollback requires its own runtime-issued plan, current policy evaluation, named approval, and exact baseline.",children:"Rollback unavailable"}),g.has("reconcile")?r.jsx(Hu,{entry:g.get("reconcile"),model:e,pending:t,onInvoke:i,fallbackLabel:"Reconcile",fallbackReason:"OpenPlanr returned no reconcile action for the current state."}):null]}),m?r.jsx(xx,{kind:"Execution",result:m}):r.jsx(we,{state:"unavailable",eyebrow:"Change",title:"No change has been recorded",description:"Approval alone does not make a change."}),y?r.jsx(xx,{kind:"Rollback",result:y}):r.jsx(we,{state:"unavailable",eyebrow:"Rollback",title:"A rollback is a separate action",description:"Restoring a prior setting creates a separate record and a new check."}),c?r.jsx(vU,{outcome:c}):r.jsx(we,{state:"unavailable",eyebrow:"Outcome",title:"No outcome has been confirmed yet",description:"A recorded change still needs evidence of the expected result."}),d.length>0?d.map(S=>r.jsx(BU,{learning:S},S.learningId)):r.jsx(we,{state:"unavailable",eyebrow:"What we learned",title:"No shared insight has been recorded yet",description:"Insights are added after the result has enough supporting evidence."}),A?r.jsx(we,{state:"offline",eyebrow:"Recovery",title:"Reconciliation is required",description:"Use Recovery inspection or an explicit runtime recovery route. Blind retry is prohibited."}):null,r.jsx("p",{className:"op-action-detail__history-link",children:r.jsx("a",{className:"op-cycle-link",href:"#/operate/history",children:"View activity and recovery details"})})]})}function wU({currentBinding:e,current:t,actions:i,onRefetch:s}){const c=B.useMemo(()=>vx(t,e),[t,e]),[d,u]=B.useState(!1),[p,g]=B.useState(null),[m,y]=B.useState(!1),[A,E]=B.useState(!1),[b,w]=B.useState(null),[j,I]=B.useState(null),[Q,S]=B.useState(!1),C=B.useRef(i??null),_=B.useRef(null),O=B.useRef(0),T=B.useRef(!1),N=B.useRef(!1),$=B.useRef(null),G=B.useRef(null),U=B.useRef(null),Z=B.useRef(null),q=B.useRef(null),de=B.useRef(!0),re=B.useCallback(R=>{const F=X=>{if(!de.current||R===null||typeof document>"u")return;const fe=document.getElementById(R);if(!(fe instanceof HTMLButtonElement)||!fe.isConnected){X>0&&typeof window<"u"&&window.setTimeout(()=>F(X-1),16);return}if(fe.disabled){X>0&&typeof window<"u"&&window.setTimeout(()=>F(X-1),16);return}fe.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?F(4):window.setTimeout(()=>F(4),0)})},[]),pe=B.useCallback(async()=>{if(s){const R=await s();return R&&typeof R=="object"?R:null}return EU(),null},[s]),K=B.useCallback(async(R=_.current)=>{if(!(!R||Q)){S(!0);try{const F=await pe(),X=F!=null&&F.binding?vx(F,F.binding):null;if(!X||!C.current)throw new Error("Exact reconciliation failed.");C.current.reconcile(X.binding),_.current=null,I(null),w({contextKey:Za(X.binding),tone:"verified",text:"The current action status is confirmed. Review a new preview to continue."})}catch{w({contextKey:Za(R),tone:"attention",text:"We could not confirm the current action status. Do not retry yet."})}finally{de.current&&S(!1)}}},[Q,pe]),ie=B.useCallback(()=>{const R=Z.current;R!==null&&(clearTimeout(R),Z.current=null)},[]),W=B.useCallback(()=>{var X;ie();const R=U.current;U.current=null,O.current+=1;const F=$.current;F==null||F.custody.cancel(),(X=C.current)==null||X.cancel(),$.current=null,T.current=!1,N.current=!1,u(!1),g(null),E(!1),y(!1),re(R)},[ie,re]),le=B.useCallback(R=>{!de.current||!ko(R,q.current)||(W(),w({contextKey:R.contextKey,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),pe())},[W,pe]),oe=B.useCallback(R=>{ie();const F=()=>{if(!de.current||$.current!==R)return;const X=dS(R)-Date.now();if(!Number.isFinite(X)||X<=0){Z.current=null,le(R);return}Z.current=setTimeout(F,Math.min(X,yU))};F()},[ie,le]);B.useEffect(()=>(de.current=!0,i&&(C.current=i),!C.current&&typeof window<"u"&&(C.current=AU({origin:window.location.origin})),()=>{var F;de.current=!1,O.current+=1,ie();const R=C.current;(F=$.current)==null||F.custody.cancel(),R==null||R.cancel(),$.current=null,T.current=!1,N.current=!1,queueMicrotask(()=>{!de.current&&C.current===R&&(R==null||R.dispose(),C.current=null)})}),[i,ie]),B.useLayoutEffect(()=>{const R=q.current;q.current=c;const F=c?Za(c.binding):null;w(se=>se!==null&&se.contextKey!==F?null:se),c&&C.current&&C.current.bind(c.binding);const X=$.current,fe=R&&c?Za(R.binding)!==Za(c.binding):R!==c;(fe||X!==null&&!ko(X,c)||fe&&(T.current||N.current))&&W()},[c,W]);const xe=B.useCallback(async(R,F)=>{if(!c||T.current||N.current)return;U.current=F;const X=C.current;if(!X){U.current=null;return}const fe=Object.freeze({subjectId:R.subjectId,actionDigest:kn(R.action)}),se=c.binding,ce=Za(se);T.current=!0,u(!0);const Ge=O.current;try{X.bind(se);const Ne=await X.preview(fe);if(!(de.current&&Ge===O.current&&q.current!==null&&Za(q.current.binding)===ce&&$e(se,q.current.binding))){Ne.cancel();return}if(Ne.preview.authority!=="allowed"){Ne.cancel(),X.cancel(),w({contextKey:ce,tone:"refusal",text:Ne.preview.reasonCodes.length>0?Ne.preview.reasonCodes.join(" · "):`Preview authority: ${Ne.preview.authority}.`}),await pe();return}const Qe=Object.freeze({locator:fe,binding:se,contextKey:ce,custody:Ne});if(bx(Qe)){Ne.cancel(),W(),w({contextKey:ce,tone:"attention",text:"This review expired before confirmation. The action is refreshing."}),await pe();return}$.current=Qe,g(Qe),y(!0),oe(Qe)}catch(Ne){!Bx(Ne)&&de.current&&Ge===O.current&&q.current&&Za(q.current.binding)===ce&&(X.cancel(),Yu(Ne)&&(_.current=se,I(se)),w({contextKey:ce,tone:Yu(Ne)?"attention":"refusal",text:Yu(Ne)?"We could not confirm whether this action ran. Check the current status before trying again.":"This action was not accepted. The workspace is refreshing."}),Yu(Ne)?await K(se):await pe())}finally{Ge===O.current&&(T.current=!1,de.current&&u(!1))}},[c,W,K,pe,oe]),Me=B.useCallback(async()=>{const R=$.current;if(!R||N.current)return;if(!ko(R,q.current)){W();return}if(bx(R)){le(R);return}N.current=!0;const F=O.current;E(!0);try{const X=await R.custody.confirm();if(!de.current||F!==O.current||!ko(R,q.current))return;X.ok?w({contextKey:R.contextKey,tone:"verified",text:"Your action was accepted. The workspace is refreshing."}):(_.current=R.binding,I(R.binding),w({contextKey:R.contextKey,tone:"attention",text:"The command outcome is uncertain. Refresh before retrying."})),W(),X.ok?await pe():await K(R.binding)}catch(X){!Bx(X)&&de.current&&F===O.current&&ko(R,q.current)&&(w({contextKey:R.contextKey,tone:"refusal",text:"This action was not accepted. The workspace is refreshing."}),W(),await pe())}finally{F===O.current&&(N.current=!1,de.current&&E(!1))}},[W,le,K,pe]);if(!c)return r.jsx("div",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action",children:r.jsx(we,{state:"incompatible",eyebrow:"Action projection",title:"Action cannot be trusted",description:"The owner-issued display workspace did not pass exact binding and integrity verification."})});const _e=lS(c),k=j!==null,ae=(b==null?void 0:b.contextKey)===Za(c.binding)?b:null,Ae=p!==null&&ko(p,c)?p.custody.preview:null;return r.jsxs("section",{className:"op-workspace op-action-detail pc-operate","data-route-kind":"operate.action","data-action-presentation":c.presentation,"aria-label":"Operate Action detail",children:[_e?r.jsx(we,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Actions",title:"Actions are unavailable",description:_e}):null,ae?r.jsx("p",{className:"pc-operate__notice","data-tone":ae.tone,role:"status",children:ae.text}):null,k?r.jsx(we,{state:"incompatible",eyebrow:"Action status",title:"This action is locked until its current status is confirmed",description:"A request may have taken effect. You cannot retry until the current status is confirmed.",actions:r.jsx(Lt,{disabled:!s||Q,disabledReason:"A parser-verified current Action projection is required.",onInvoke:()=>void K(),children:Q?"Reconciling current Action…":"Reconcile current Action"})}):null,r.jsx(bU,{model:c,pending:d||k||Q,onInvoke:xe}),Ae?r.jsx(ot.Root,{open:m,onOpenChange:R=>{!R&&!N.current&&W()},children:r.jsxs(ot.Portal,{children:[r.jsx(ot.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsxs(ot.Content,{className:"op-inbox-dialog__content",onOpenAutoFocus:R=>{var F;R.preventDefault(),(F=G.current)==null||F.focus({preventScroll:!0})},onCloseAutoFocus:R=>{R.preventDefault()},children:[r.jsxs(ot.Title,{children:["Confirm ",Ae.allowedAction.label]}),r.jsx(ot.Description,{children:`You are about to ${Ae.allowedAction.label}. ${Ae.consequence??"Review the prepared change before confirming."}`}),r.jsxs("details",{className:"op-action-detail__technical-details op-action-detail__dialog-details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Tn,{label:"Tool",value:Ae.allowedAction.tool}),r.jsx(Tn,{label:"Digest",value:Ae.actionDigest})]})]}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(ot.Cancel,{asChild:!0,children:r.jsx(Lt,{ref:G,variant:"secondary",...A?{disabled:!0,disabledReason:"Confirmation in progress."}:{onInvoke:()=>W()},children:"Cancel"})}),r.jsx(Lt,{disabled:A,onInvoke:()=>void Me(),children:A?`Confirming ${Ae.allowedAction.label}…`:`Confirm ${Ae.allowedAction.label}`})]})]})]})}):null]})}const xU=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function uS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.route==="#/operate/actions"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function hy(e){const t=uS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=Yn(i),c=s.payload;if(c.surface!=="actions"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId});return Yn(s,d),!0}catch{return!1}}}function jU(e,t){const i=uS(t);if(i===null||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i)||!hy(i)(e.data))return null;const s=e.data,c=s.payload;if(c.surface!=="actions")return null;const d=xU[e.kind];return d===void 0||c.status!==d||c.mutationEnabled!==e.mutationEnabled||c.data.requestBinding.projectId!==i.projectId||c.data.requestBinding.generation!==i.generation?null:Object.freeze({kind:"actions",presentation:d,binding:e.binding,display:s,surface:c,actions:Object.freeze(c.data.actions),mutationEnabled:e.mutationEnabled})}const IU=new Set(["blocked","failed","rejected"]);function QU(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function CU({currentBinding:e,current:t}){const i=jU(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions",children:r.jsx(we,{state:"incompatible",eyebrow:"Action projection",title:"Actions cannot be trusted",description:"The owner-issued experience surface did not pass exact binding and integrity verification."})});const{presentation:s}=i,c=i.actions.map((p,g)=>({...p,id:`${p.actionId}:${g}`})),d=[],u=new Map;for(const p of i.actions)u.has(p.state)||d.push(p.state),u.set(p.state,(u.get(p.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-action-list pc-operate","data-route-kind":"operate.actions","data-action-presentation":s,children:[s!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s," projection. Durable Action identity remains visible; no command is inferred."]}):null,d.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Action states",children:d.map(p=>r.jsx(Da,{label:QU(p),value:u.get(p)??0,tone:IU.has(p)?"attention":"default"},p))}):null,r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · actions",title:"Actions",count:`${i.actions.length} ${i.actions.length===1?"action":"actions"}`,description:"Review approved work, its outcome, and the next safe step."}),i.actions.length===0?r.jsx(we,{state:"unavailable",eyebrow:"Actions",title:"No actions yet",description:"There are no saved actions in this workspace."}):r.jsx("div",{className:"pc-action-queue",children:c.map(p=>{var m;const g=p.executions.at(-1);return r.jsx(NG,{actionId:p.actionId,state:p.state,title:p.title,headingLevel:2,revision:p.revision,route:(m=p.deliveryRoute)==null?void 0:m.route,execution:g==null?void 0:g.status,deepLink:p.deepLink},p.id)})})]})}function Xn(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function fS(e){return Array.isArray(e)?e:[]}function Fe(e,t=null){return typeof e=="string"&&e.trim()?e:t}function SU(e){return ui({kind:"planning.detail",subjectId:e})}function pS(e){return ui({kind:"operate.action-planning",subjectId:e})}function OU(e){const t=Fe(e.href),i=Fe(e.subjectId);if(!t||!i)return null;const s=SU(i);if(t===s||t===`#detail/${encodeURIComponent(i)}`)return s;const c=pS(i);return t===c?c:null}function jx(e){const t=Xn(e);return Object.freeze({kind:Fe(t.kind,"unknown")??"unknown",label:Fe(t.label,Fe(t.kind,"Trace step")??"Trace step")??"Trace step",state:Fe(t.state,"unknown")??"unknown",owner:Fe(t.owner,"OpenPlanr")??"OpenPlanr",reason:Fe(t.reason),time:Fe(t.time),subjectId:Fe(t.subjectId),href:OU(t)})}function _U(e){const t=Xn(e),i=Xn(t.decision),s=Xn(t.action),c=Xn(t.spec),d=Xn(t.transaction),u=Xn(t.eventHead);return Object.freeze({kind:Fe(t.kind),status:Fe(t.status,Fe(c.status,"unknown")??"unknown")??"unknown",correlationId:Fe(t.correlationId),proposalId:Fe(t.proposalId),proposalRevision:typeof t.proposalRevision=="number"?t.proposalRevision:null,proposalHash:Fe(t.proposalHash),scopeId:Fe(t.scopeId),domainId:Fe(t.domainId),domainVersion:Fe(t.domainVersion),cycleId:Fe(t.cycleId),eventHead:Object.freeze({sequence:typeof u.sequence=="number"?u.sequence:null,hash:Fe(u.hash)}),decision:Object.freeze({id:Fe(i.id),revision:typeof i.revision=="number"?i.revision:null,hash:Fe(i.hash)}),action:Object.freeze({id:Fe(s.id),revision:typeof s.revision=="number"?s.revision:null,hash:Fe(s.hash)}),metric:Object.freeze({...Xn(t.metric)}),verification:Object.freeze({...Xn(t.verification)}),evidence:Object.freeze(fS(t.evidence).map(p=>Object.freeze(Xn(p)))),spec:Object.freeze({specId:Fe(c.specId),slug:Fe(c.slug),contentHash:Fe(c.contentHash),status:Fe(c.status,"unknown")??"unknown"}),actor:Object.freeze({actorId:Fe(Xn(t.actor).actorId),kind:Fe(Xn(t.actor).kind)}),transaction:Object.freeze({transactionId:Fe(d.transactionId),receiptHash:Fe(d.receiptHash),planningProvenanceEventId:Fe(d.planningProvenanceEventId)}),createdAt:Fe(t.createdAt),originHash:Fe(t.originHash)})}function NU(e,t={}){const i=Xn(e),s=fS(i.nodes).map(jx);return s.length>0?Object.freeze(s):Object.freeze([jx({kind:"trace",label:t.label??"Delivery trace unavailable",state:"unknown",owner:"OpenPlanr",reason:t.reason??"No ledger-owned Planning progress projection is available."})])}function RU(e){return e.action.id?pS(e.action.id):null}function DU({node:e}){const t=r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"op-planning-trace__label",children:e.label}),r.jsxs("span",{className:"op-planning-trace__meta",children:[e.owner," · ",e.state]}),e.reason?r.jsx("span",{className:"op-planning-trace__reason",children:e.reason}):null]});return r.jsx("li",{"data-kind":e.kind,"data-state":e.state,children:e.href?r.jsx("a",{className:"op-cycle-link op-planning-trace__link",href:e.href,children:t}):r.jsx("div",{className:"op-planning-trace__static",children:t})})}function hS({progress:e,label:t,reason:i}){const s=NU(e,{label:t,reason:i});return r.jsx("ol",{className:"op-planning-trace operate-delivery-trace","aria-label":t??"Delivery trace",children:s.map(c=>r.jsx(DU,{node:c},`${c.kind}:${c.subjectId??"none"}`))})}const TU=Object.freeze([["title","SPEC title","text"],["slug","SPEC slug","text"],["problem","Problem","textarea"],["objective","Objective","textarea"],["users","Users","list"],["scope","In scope","list"],["nonScope","Out of scope","list"],["risks","Risks","list"],["constraints","Constraints","list"],["requirements","Requirements","list"],["acceptanceOutcomes","Acceptance outcomes","list"]]);function kU(e){try{const t=Ze(e);return t.productArea==="operate"&&t.subjectId!==null&&t.cycleId!==null&&t.route===`#/operate/actions/${encodeURIComponent(t.subjectId)}/planning`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function MU(e){if(e.subjectId===null)throw new Error("Planning handoff requires a subject identity.");return Ze({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function ni(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function ms(e){return Array.isArray(e)?e:[]}function zu(e,t=""){return typeof e=="string"?e:t}function GU(e,t){return JSON.stringify(e)===JSON.stringify(t)}function Ix(e,t){return(e==null?void 0:e.sequence)===(t==null?void 0:t.sequence)&&(e==null?void 0:e.hash)===(t==null?void 0:t.hash)}function YU(e,t){return!!(e!=null&&e.actionId&&e.actionId===(t==null?void 0:t.actionId)&&e.revision===(t==null?void 0:t.revision)&&e.actionHash===(t==null?void 0:t.actionHash))}function HU(e,t=Date.now()){const i=Date.parse(String(e??""));return Number.isFinite(i)&&i>t}function gS(e,t,i,s=Date.now()){const c=ni(e.preview);return!!(e.proposalId&&e.proposalHash&&c.digest&&t.contentHash&&i.actorId&&ni(e.actor).actorId===i.actorId&&e.scopeId===i.scopeId&&e.domainId===i.domainId&&e.domainVersion===i.domainVersion&&YU(ni(e.action),i.action)&&Ix(ni(e.eventHead),i.eventHead)&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.previewDigest===c.digest&&Ix(ni(t.eventHead),ni(e.eventHead))&&HU(c.expiresAt,s))}function Bl(e){const t=ni(e);return Object.freeze({title:zu(t.title),slug:zu(t.slug),problem:zu(t.problem),objective:zu(t.objective),users:Object.freeze(ms(t.users).map(String)),scope:Object.freeze(ms(t.scope).map(String)),nonScope:Object.freeze(ms(t.nonScope).map(String)),risks:Object.freeze(ms(t.risks).map(String)),constraints:Object.freeze(ms(t.constraints).map(String)),requirements:Object.freeze(ms(t.requirements).map(String)),acceptanceOutcomes:Object.freeze(ms(t.acceptanceOutcomes).map(String))})}function zU(e,t){return GU(Bl(e),Bl(t))}function UU(e,t){const i=String(e.specId),s=[`${IY} spec show ${i}`,`$planr:plan ${i}`,`/planr:plan ${i}`];return t.length===s.length&&t.every((c,d)=>c===s[d]||d===1&&c===`$planr-plan ${i}`)}function AS(e,t,i){const s=ni(t.spec);return!!(e.specId&&e.transactionId&&e.contentHash&&e.originHash&&e.receiptHash&&e.proposalId&&e.proposalHash&&e.correlationId&&e.provenanceEventId&&s.specId===e.specId&&s.contentHash===e.contentHash&&t.originHash===e.originHash&&t.proposalId===e.proposalId&&t.proposalHash===e.proposalHash&&t.correlationId===e.correlationId&&ni(t.action).id&&ni(t.decision).id&&t.eventHead&&Array.isArray(i.nodes))}function Qx(e,t){const i=kU(t);if(i===null||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i))return null;const s=MU(i);if(!Uf(s)(e.data))return null;const d=e.data.payload,u=d.status;if(e.mutationEnabled)return null;const p=u==="ready";return Object.freeze({kind:"planning-handoff",presentation:u,binding:e.binding,action:d.data.action,workspace:d,mutationEnabled:p,reasonCodes:Object.freeze([...d.reasonCodes])})}const $f=/^sha256:[a-f0-9]{64}$/u,$U=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,mS=4*1024*1024;class LU extends Error{constructor(t){super("The governed Planning handoff was refused without effect."),this.code=t,this.name=t}}function Ue(e="OPERATE_COMMAND_INVALID"){throw new LU(e)}function Xt(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Ue(),e}function Tl(e,t){const i=Xt(e),s=Object.keys(i).sort(),c=[...t].sort();return JSON.stringify(s)!==JSON.stringify(c)&&Ue("OPERATE_RESPONSE_INVALID"),i}function yS(e){let t;try{t=new URL(e)}catch{Ue("OPERATE_ORIGIN_INVALID")}return(t.origin!==e||t.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(t.hostname))&&Ue("OPERATE_ORIGIN_INVALID"),t.origin}function ES(e,t,i){const s=new URL(t,e);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s.toString()}function PU(e){const t=Tl(e,["sequence","hash"]),i=Object.keys(t).sort();(i.length!==2||i[0]!=="hash"||i[1]!=="sequence")&&Ue(),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Ue();const s=t.hash===null?null:t.hash;return s!==null&&typeof s!="string"&&Ue(),s!==null&&!$f.test(s)&&Ue(),t.sequence===0!=(s===null)&&Ue(),Object.freeze({sequence:t.sequence,hash:s})}function Cx(e){const t=Tl(e,["subjectId","actionDigest","revision"]),i=Object.keys(t).sort();(i.length!==3||i[0]!=="actionDigest"||i[1]!=="revision"||i[2]!=="subjectId")&&Ue();const s=t.revision;return(!Number.isSafeInteger(s)||s<0)&&Ue(),Object.freeze({subjectId:typeof t.subjectId=="string"&&$U.test(t.subjectId)?t.subjectId:Ue(),actionDigest:typeof t.actionDigest=="string"&&$f.test(t.actionDigest)?t.actionDigest:Ue(),revision:s})}function Sx(e,t,i,s){return(e.cycleId===null||e.viewHash===null||e.eventHead===null)&&Ue("OPERATE_BINDING_REQUIRED"),Object.freeze({actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,generation:e.generation,route:e.route,cycleId:e.cycleId,viewHash:e.viewHash,eventHead:e.eventHead,actionId:t.subjectId,actionHash:t.actionDigest,actionRevision:t.revision,proposalId:i,confirmDigest:s})}function FU(e,t){const i=Xt(e),s=Xt(i.eventHead);return Object.keys(i).length===15&&i.actorId===t.actorId&&i.projectId===t.projectId&&i.scopeId===t.scopeId&&i.domainId===t.domainId&&i.domainVersion===t.domainVersion&&i.generation===t.generation&&i.route===t.route&&i.cycleId===t.cycleId&&i.viewHash===t.viewHash&&s.sequence===t.eventHead.sequence&&s.hash===t.eventHead.hash&&i.actionId===t.actionId&&i.actionHash===t.actionHash&&i.actionRevision===t.actionRevision&&i.proposalId===t.proposalId&&i.confirmDigest===t.confirmDigest}async function sA(e,t,i,s,c,d,u,p){var E;const g={accept:"application/json","content-type":"application/json","x-openplanr-actor":s.actorId};u&&(g.authorization=`Bearer ${u}`);let m;try{const b=e(ES(t,i,s),{method:"POST",headers:g,body:JSON.stringify(c),cache:"no-store",signal:d});m=p?await p.waitForCurrent(b):await b,p==null||p.assertCurrent()}catch{if(d.aborted)throw new DOMException("Cancelled","AbortError");Ue("OPERATION_UNCERTAIN")}let y;try{const b=m.text();y=p?await p.waitForCurrent(b):await b,p==null||p.assertCurrent()}catch{if(d.aborted)throw new DOMException("Cancelled","AbortError");Ue("OPERATION_UNCERTAIN")}(!((E=m.headers.get("content-type"))!=null&&E.startsWith("application/json"))||new TextEncoder().encode(y).byteLength>mS)&&Ue("OPERATION_UNCERTAIN");let A;try{A=JSON.parse(y)}catch{Ue("OPERATION_UNCERTAIN")}if(!m.ok){let b,w;try{b=Xt(A),w=Xt(b.error)}catch{Ue("OPERATION_UNCERTAIN")}Ue(typeof w.reasonCode=="string"?w.reasonCode:"OPERATE_COMMAND_REFUSED")}try{return Xt(A)}catch{Ue("OPERATION_UNCERTAIN")}}async function vS(e,t,i,s,c,d){const u=e(ES(t,i,s),{headers:{accept:"application/json","x-openplanr-actor":s.actorId},cache:"no-store",signal:c}),p=d?await d.waitForCurrent(u):await u;d==null||d.assertCurrent();const g=p.text(),m=d?await d.waitForCurrent(g):await g;d==null||d.assertCurrent(),new TextEncoder().encode(m).byteLength>mS&&Ue();let y;try{y=JSON.parse(m)}catch{Ue()}return p.ok||Ue("OPERATE_COMMAND_REFUSED"),Xt(y)}function oA(e){try{return e()}catch(t){if(t instanceof DOMException&&t.name==="AbortError")throw t;Ue("OPERATION_UNCERTAIN")}}function VU(e,t){const i=Tl(e,["proposal","specPreview"]),s=Xt(i.proposal),c=Xt(i.specPreview);return gS(s,c,t)||Ue("OPERATE_RESPONSE_INVALID"),Object.freeze({proposal:s,specPreview:c})}function BS(e,t){const i=Tl(e,["receipt","origin","progress","nextCommands"]),s=Xt(i.receipt),c=Xt(i.origin),d=Tl(i.progress,["nodes"]);if(AS(s,c,d)||Ue("OPERATE_RESPONSE_INVALID"),t){const p=Xt(c.actor),g=Xt(c.action),m=PU(c.eventHead);(s.proposalId!==t.proposalId||c.proposalId!==t.proposalId||c.proposalRevision!==2||p.actorId!==t.identity.actorId||p.kind!=="human"||c.scopeId!==t.identity.scopeId||c.domainId!==t.identity.domainId||c.domainVersion!==t.identity.domainVersion||c.cycleId!==t.identity.cycleId||g.id!==t.locator.subjectId||g.revision!==t.locator.revision||g.hash!==t.locator.actionDigest||t.identity.eventHead===null||m.sequence!==t.identity.eventHead.sequence||m.hash!==t.identity.eventHead.hash||!$f.test(t.confirmDigest))&&Ue("OPERATE_RESPONSE_INVALID")}(!Array.isArray(i.nextCommands)||!i.nextCommands.every(p=>typeof p=="string"))&&Ue("OPERATE_RESPONSE_INVALID");const u=i.nextCommands;return UU(s,u)||Ue("OPERATE_RESPONSE_INVALID"),Object.freeze({receipt:s,origin:c,progress:Object.freeze({nodes:Object.freeze(d.nodes)}),nextCommands:Object.freeze(u)})}function bS(e,t,i){const s=BS(e),c=Xt(s.origin);return(Xt(c.spec).specId!==i||Xt(c.actor).actorId!==t.actorId||Xt(c.actor).kind!=="human"||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion)&&Ue("OPERATE_RESPONSE_INVALID"),s}async function qU(e){const t=yS(e.origin),i=e.fetcher??fetch;/^SPEC-\d{3}$/u.test(e.specId)||Ue();const s=e.signal??new AbortController().signal;return bS(await vS(i,t,`/api/operate/planning/trace/${encodeURIComponent(e.specId)}`,e.identity,s),e.identity,e.specId)}function KU(e){const t=yS(e.origin),i=e.fetcher??fetch,s=(d,u)=>(d.eventHead===null&&Ue("OPERATE_BINDING_REQUIRED"),Object.freeze({actorId:d.actorId,scopeId:d.scopeId,domainId:d.domainId,domainVersion:d.domainVersion,action:Object.freeze({actionId:u.subjectId,revision:u.revision,actionHash:u.actionDigest}),eventHead:d.eventHead})),c=iS({routeKinds:["operate.action-planning"],routeErrorCode:"OPERATE_PLANNING_ROUTE_REQUIRED",parseLocator:Cx,sameLocator:(d,u)=>d.subjectId===u.subjectId&&d.actionDigest===u.actionDigest&&d.revision===u.revision,async issueSession({identity:d,locator:u,signal:p,assertCurrent:g,waitForCurrent:m}){(d.cycleId===null||d.eventHead===null||d.viewHash===null)&&Ue("OPERATE_BINDING_REQUIRED");const y=await sA(i,t,"/api/operate/session",d,{cycleId:d.cycleId,eventHead:d.eventHead,sourceViewHash:d.viewHash,actionLocator:u},p,void 0,{assertCurrent:g,waitForCurrent:m});return g(),oA(()=>{const A=sS(y,d,u,{parseLocator:Cx,sameLocator:(E,b)=>E.subjectId===b.subjectId&&E.actionDigest===b.actionDigest&&E.revision===b.revision,allowedActions:{kind:"none"}});return Object.freeze({sessionId:A.sessionId,capability:A.capability})})}});return Object.freeze({bind:c.bind,async preview(d,u){return c.clearPreviewProof(),await c.run(async({identity:p,locator:g,session:m,signal:y,assertCurrent:A,waitForCurrent:E})=>{d!==g.subjectId&&Ue("OPERATE_BINDING_MISMATCH");const b={sessionId:m.sessionId,actionId:d};u&&(b.framing=structuredClone(u));const w=await sA(i,t,"/api/operate/planning/preview",p,b,y,m.capability,{assertCurrent:A,waitForCurrent:E});A();const j=oA(()=>VU(w,s(p,g)));return c.retainPreviewProof(Sx(p,g,String(j.proposal.proposalId),String(Xt(j.proposal.preview).digest))),j},{uncertainOnFailure:!0})},async createSpec(d,u){return(!/^oprop_[a-f0-9]{32}$/u.test(d)||!$f.test(u))&&Ue(),await c.run(async({identity:p,locator:g,session:m,signal:y,assertCurrent:A,waitForCurrent:E})=>{const b=Sx(p,g,d,u);c.requirePreviewProof(I=>FU(I,b));const w=await sA(i,t,"/api/operate/planning/create-spec",p,{sessionId:m.sessionId,proposalId:d,confirmDigest:u},y,m.capability,{assertCurrent:A,waitForCurrent:E});A();const j=oA(()=>BS(w,{identity:p,locator:g,proposalId:d,confirmDigest:u}));return c.clearPreviewProof(),j},{uncertainOnFailure:!0})},async trace(d){return/^SPEC-\d{3}$/u.test(d)||Ue(),await c.run(async({identity:u,signal:p,assertCurrent:g,waitForCurrent:m})=>{const y=await vS(i,t,`/api/operate/planning/trace/${encodeURIComponent(d)}`,u,p,{assertCurrent:g,waitForCurrent:m});return g(),bS(y,u,d)})},reconcile:c.reconcile,cancel:c.cancel,dispose:c.dispose})}function JU(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId,eventHead:e.binding.eventHead,viewHash:e.binding.viewHash,action:{actionId:e.action.actionId,actionHash:e.action.actionHash,revision:e.action.revision}})}function ZU(e){return JSON.stringify({actorId:e.binding.actorId,projectId:e.binding.projectId,scopeId:e.binding.scopeId,domainId:e.binding.domainId,domainVersion:e.binding.domainVersion,generation:e.binding.generation,route:e.binding.route,cycleId:e.binding.cycleId,subjectId:e.binding.subjectId})}function Ox(e){return e instanceof DOMException&&e.name==="AbortError"}function Nt(e){return e===null||typeof e!="object"||Array.isArray(e)?{}:e}function Uu(e){return Array.isArray(e)?e:[]}function Ve(e,t=""){return typeof e=="string"?e:t}function fn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function XU(e,t){return e==="offline"?"Live authority is unavailable offline. Reconnect and refresh before any command.":e==="stale"?"The displayed Event head is stale. Refresh before requesting a new preview.":t.includes("OPERATE_EVENT_GAP")?"An ordered Event gap was detected. Refresh the validated snapshot before any command.":e==="read-only"?"No command gateway or current mutation authority is available.":null}function WU(e){return ui({kind:"planning.detail",subjectId:e})}function wS(e){return ui({kind:"operate.action",subjectId:e})}function e$({creation:e,actionId:t,actionTitle:i}){const s=Nt(e.receipt),c=Ve(s.specId),d=c?WU(c):null;return r.jsxs("section",{className:"op-planning-handoff__created","aria-label":"Created SPEC draft and delivery trace",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff · SPEC created"}),r.jsxs("h1",{children:[c||"SPEC"," ·"," ",Ve(s.title)||Ve(s.slug)||i||"Created draft"]}),r.jsxs("p",{children:[c?`${c} is durable with status shaping.`:"The shaping draft and origin receipt are durable."," ","No story, task, PLAN, SHIP, commit, or target effect was started."]})]}),r.jsxs("div",{className:"op-planning-handoff__actions",children:[r.jsx("a",{className:"op-cycle-link",href:wS(t),children:"Return to source Action"}),d?r.jsx("a",{className:"op-cycle-link op-cycle-link--primary",href:d,children:"Open in Planning"}):null]})]}),r.jsx(hS,{progress:e.progress}),r.jsxs("div",{className:"op-planning-handoff__grid",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft details",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft details"}),r.jsx("h2",{children:c||"Created SPEC"}),r.jsx("p",{children:"Status shaping"}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(fn,{label:"Content digest",value:Ve(s.contentHash)}),r.jsx(fn,{label:"Origin digest",value:Ve(s.originHash)}),r.jsx(fn,{label:"Receipt digest",value:Ve(s.receiptHash)}),r.jsx(fn,{label:"Proposal",value:Ve(s.proposalId)}),r.jsx(fn,{label:"Correlation",value:Ve(s.correlationId)}),r.jsx(fn,{label:"Planning provenance",value:Ve(s.provenanceEventId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Next human gates",children:[r.jsx("p",{className:"op-eyebrow",children:"Next human gates"}),r.jsx("h2",{children:"Planning owns the next commands"}),r.jsx("p",{children:"These commands are returned by OpenPlanr; this screen does not construct or run them."}),e.nextCommands.length>0?r.jsx("pre",{className:"op-planning-handoff__commands",children:r.jsx("code",{children:e.nextCommands.join(`
550
- `)})}):r.jsx(we,{state:"unavailable",eyebrow:"Next commands",title:"Next commands unavailable",description:"No planning command is inferred from the SPEC ID."})]})]})]})}function t$({currentBinding:e,current:t,actions:i,onRefetch:s}){var ae,Ae;const c=B.useMemo(()=>Qx(t,e),[t,e]),[d,u]=B.useState(null),[p,g]=B.useState(null),[m,y]=B.useState(null),[A,E]=B.useState(null),[b,w]=B.useState(!1),[j,I]=B.useState(null),[Q,S]=B.useState(!1),C=B.useRef(null),_=B.useRef(null),O=B.useRef(""),T=B.useRef(""),N=c?JU(c):"",$=c?ZU(c):"",G=d?Nt(d.proposal):null,U=d?Nt(d.specPreview):null,Z=G?Bl(G.framing):null,q=m??Z,de=G&&U&&(c==null?void 0:c.binding.eventHead)&&q&&Z&&zU(q,Z)&&gS(G,U,{actorId:c.binding.actorId,scopeId:c.binding.scopeId,domainId:c.binding.domainId,domainVersion:c.binding.domainVersion,action:{actionId:c.action.actionId,revision:c.action.revision,actionHash:c.action.actionHash},eventHead:c.binding.eventHead}),re=B.useCallback(()=>{var F,X;if(i)return i;if(!c||typeof window>"u"||c.binding.cycleId===null||c.binding.eventHead===null||c.binding.viewHash===null)return null;if(C.current&&_.current===N)return C.current;(F=C.current)==null||F.cancel(),(X=C.current)==null||X.dispose(),C.current=null,_.current=null;const R=KU({origin:window.location.origin});return R.bind(c.binding,{subjectId:c.action.actionId,actionDigest:c.action.actionHash,revision:c.action.revision}),C.current=R,_.current=N,R},[i,N,c]),pe=c?XU(c.presentation,c.reasonCodes):null,K=p&&AS(Nt(p.receipt),Nt(p.origin),Nt(p.progress)),ie=B.useCallback(async R=>{if(!c)return;const F=N;E(null),u(null),w(!1);const X=re();if(X)try{const fe=await X.preview(c.action.actionId,R);if(O.current!==F)return;u(fe),y(Bl(Nt(fe.proposal).framing))}catch(fe){if(Ox(fe)||O.current!==F)return;const se=fe&&typeof fe=="object"&&"name"in fe?String(fe.name):"OPERATE_COMMAND_REFUSED";se==="OPERATION_UNCERTAIN"&&I($),E({tone:se==="OPERATION_UNCERTAIN"?"attention":"refusal",text:se==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":se==="OPERATION_UNCERTAIN"?"Planning preview proof was lost after POST. Reconcile exact current state; do not reuse the prior preview.":"The governed Planning preview was refused without effect."})}},[N,c,$,re]),W=B.useCallback(async()=>{if(!G||!(c!=null&&c.binding.eventHead))return;const R=N,F=Ve(Nt(G.preview).digest),X=Ve(G.proposalId);if(!F||!X)return;const fe=re();if(fe)try{const se=await fe.createSpec(X,F);if(O.current!==R)return;g(se),w(!1),E({tone:"verified",text:`${Ve(Nt(se.receipt).specId)||"SPEC"} is durable with status shaping.`})}catch(se){if(Ox(se)||O.current!==R)return;const ce=se&&typeof se=="object"&&"name"in se?String(se.name):"OPERATE_COMMAND_REFUSED";w(!1),ce==="OPERATION_UNCERTAIN"&&I($),E({tone:ce==="OPERATION_UNCERTAIN"?"attention":"refusal",text:ce==="E_OPERATE_PLANNING_EXPIRED"?"Planning preview expired. Refresh the canonical preview before confirming creation.":ce==="OPERATION_UNCERTAIN"?"The command outcome is uncertain. Reconcile exact current state; do not retry.":"The governed Planning creation was refused without effect."})}},[N,c,G,$,re]);B.useEffect(()=>()=>{var R,F;(R=C.current)==null||R.cancel(),(F=C.current)==null||F.dispose(),C.current=null,_.current=null},[]),B.useLayoutEffect(()=>{var R,F;O.current=N,T.current!==N&&(T.current=N,j!==$&&((R=C.current)==null||R.cancel(),(F=C.current)==null||F.dispose(),C.current=null,_.current=null),u(null),g(null),y(null),w(!1),E(null),S(!1))},[N,$,j]),B.useLayoutEffect(()=>{var R,F;i&&((R=C.current)==null||R.cancel(),(F=C.current)==null||F.dispose(),C.current=null,_.current=null)},[i]);const le=B.useCallback(async()=>{if(!(!s||j!==$)){S(!0);try{const R=await s(),F=R.binding?Qx(R,R.binding):null,X=i??C.current;if(!F||!X)throw new Error("Exact reconciliation failed.");X.reconcile(F.binding),I(null),u(null),y(null),w(!1),E({tone:"verified",text:"Exact current state was reconciled. Request a new canonical preview before any creation."})}catch{E({tone:"attention",text:"Planning remains locked: exact current state did not reconcile. Do not retry creation."})}finally{S(!1)}}},[i,s,$,j]);if(!c)return r.jsx("div",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning",children:r.jsx(we,{state:"incompatible",eyebrow:"Planning handoff",title:"Planning handoff cannot be trusted",description:"The owner-issued Action workspace did not pass exact binding and integrity verification."})});if(((ae=c.action.deliveryRoute)==null?void 0:ae.route)!=="planning-work")return r.jsx("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","aria-label":"Planning handoff unavailable",children:r.jsx(we,{state:"unavailable",eyebrow:"Delivery route",title:"This Action does not enter Planning",description:"Only the canonical planning-work route can request a proposal. The browser does not infer or change delivery routes."})});if(K&&p)return r.jsx("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","data-planning-state":"created","aria-label":"Created Planning handoff",children:r.jsx(e$,{creation:p,actionId:c.action.actionId,actionTitle:c.action.title})});const oe=!!(G!=null&&G.proposalId),xe=j===$,Me=c.mutationEnabled&&!pe&&!xe&&!Q&&oe&&!K,_e=c.mutationEnabled&&!pe&&!xe&&!Q&&!!c.action,k=_e&&de&&Ve(G==null?void 0:G.state)==="review-required"&&oe;return r.jsxs("section",{className:"op-workspace op-planning-handoff pc-operate","data-route-kind":"operate.action-planning","data-planning-preview":de?"current":"stale","aria-labelledby":"operate-planning-handoff-title",children:[r.jsxs("header",{className:"op-planning-handoff__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Planning handoff"}),r.jsx("h1",{id:"operate-planning-handoff-title",children:c.action.title}),r.jsx("p",{children:"Review the context, shape the draft, and confirm it before creating a Planning SPEC."})]}),r.jsx("a",{className:"op-cycle-link",href:wS(c.action.actionId),children:"Return to source Action"})]}),pe?r.jsx(we,{state:c.presentation==="offline"?"offline":"unavailable",eyebrow:"Governed controls",title:"Planning creation is unavailable",description:pe}):null,A?r.jsx("p",{className:"pc-operate__notice",role:"status","data-tone":A.tone,children:A.text}):null,xe?r.jsx(we,{state:"incompatible",eyebrow:"Uncertain operation",title:"Creation stays disabled until exact reconciliation",description:"A Planning POST may have taken effect. OpenPlanr will not offer a blind retry.",actions:r.jsx(Lt,{disabled:!s||Q,disabledReason:"An exact adapter-owned refetch is required before another preview.",onInvoke:le,children:Q?"Reconciling current state…":"Reconcile current state"})}):null,r.jsxs("div",{className:"op-planning-handoff__layout",children:[r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Why this draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Why this draft"}),r.jsx("h2",{children:Ve(Nt(G==null?void 0:G.decision).title)||c.action.title}),r.jsx("p",{children:Ve(Nt(G==null?void 0:G.decision).rationale)||"OpenPlanr has not returned a canonical Planning proposal for this Action."}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(fn,{label:"Decision",value:Ve(Nt(G==null?void 0:G.decision).decisionId)}),r.jsx(fn,{label:"Action",value:Ve(Nt(G==null?void 0:G.action).actionId)||c.action.actionId}),r.jsx(fn,{label:"Delivery route",value:(Ae=c.action.deliveryRoute)==null?void 0:Ae.route}),r.jsx(fn,{label:"Cycle",value:Ve(G==null?void 0:G.cycleId)})]})]})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Team perspectives",children:[r.jsx("p",{className:"op-eyebrow",children:"Team perspectives"}),r.jsx("h2",{children:"What informed this draft"}),r.jsx("p",{children:"Review the perspectives and any disagreement before shaping the draft."}),Uu(G==null?void 0:G.acceptedPerspectiveSummaries).length>0?r.jsx("ul",{className:"op-planning-handoff__perspectives",children:Uu(G==null?void 0:G.acceptedPerspectiveSummaries).map((R,F)=>{const X=Nt(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Ve(X.summary,"Summary unavailable")}),r.jsxs("span",{children:[Ve(X.roleKind,"role")," ·"," ",Ve(X.stance,"unknown")]})]},`${Ve(X.roleId)}:${F}`)})}):r.jsx(we,{state:"unavailable",eyebrow:"Perspectives",title:"No canonical proposal yet",description:"Request a preview to load accepted advisor, Challenger, and Chair summaries."})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Supporting evidence",children:[r.jsx("p",{className:"op-eyebrow",children:"Supporting evidence"}),r.jsx("h2",{children:"What the draft is based on"}),Uu(G==null?void 0:G.evidence).length>0?r.jsx("ul",{className:"op-planning-handoff__evidence",children:Uu(G==null?void 0:G.evidence).map((R,F)=>{const X=Nt(R);return r.jsxs("li",{children:[r.jsx("strong",{children:Ve(X.summary,"Evidence body omitted by access policy")}),r.jsxs("span",{children:[Ve(X.relation,"relation unavailable")," ·"," ",Ve(X.accessState,"access unavailable")]})]},`${Ve(X.evidenceRefId)}:${F}`)})}):r.jsx("p",{children:"No supporting evidence is available yet."})]})]}),r.jsxs("div",{className:"op-planning-handoff__stack",children:[r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Shape the draft",children:[r.jsx("p",{className:"op-eyebrow",children:"Shape the draft"}),r.jsx("h2",{children:"Shape the draft before confirmation"}),r.jsx("p",{children:"Editing refreshes the preview. You can create the draft only after reviewing the updated version."}),r.jsx("form",{className:"op-planning-handoff__form","aria-label":"Draft framing",children:TU.map(([R,F,X])=>{const fe=`op-planning-framing-${R}`,se=q&&X==="list"?q[R].join(`
551
- `):q?q[R]:"";return r.jsxs("label",{className:"op-planning-handoff__field",htmlFor:fe,children:[r.jsx("span",{children:F}),X==="textarea"||X==="list"?r.jsx("textarea",{id:fe,name:R,rows:X==="list"?4:5,disabled:!Me,value:se,onChange:ce=>{if(!q)return;const Ge=X==="list"?ce.target.value.split(/\r?\n/u).map(Ne=>Ne.trim()).filter(Boolean):ce.target.value;y(Object.freeze({...q,[R]:Ge}))}}):r.jsx("input",{id:fe,name:R,type:"text",disabled:!Me,value:se,onChange:ce=>{q&&y(Object.freeze({...q,[R]:ce.target.value}))}})]},R)})}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Lt,{disabled:!_e,disabledReason:pe??(oe?"Human framing is editable only from a current, online, actor-bound Planning handoff.":"Request the initial canonical proposal before editing human-owned framing."),onInvoke:()=>ie(oe&&q?Bl(q):void 0),children:oe?"Refresh canonical SPEC preview":"Preview SPEC draft"})})]}),r.jsxs("section",{className:"op-planning-handoff__card","aria-label":"Draft preview",children:[r.jsx("p",{className:"op-eyebrow",children:"Draft preview"}),r.jsx("h2",{children:Ve(U==null?void 0:U.title)||Ve(Nt(G==null?void 0:G.framing).title)||"No canonical SPEC preview yet"}),r.jsx("p",{children:de?"The canonical SPEC preview is current for these exact human-owned framing fields.":"Request a canonical preview before creating the draft."}),typeof(U==null?void 0:U.content)=="string"?r.jsx("pre",{className:"op-planning-handoff__spec-preview operate-planning-spec-preview",children:r.jsx("code",{children:U.content})}):r.jsx(we,{state:"unavailable",eyebrow:"Preview",title:"Preview not issued",description:"No local renderer is used. OpenPlanr must return the same validated SPEC bytes it will later publish."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(fn,{label:"Proposal",value:Ve(G==null?void 0:G.proposalId)}),r.jsx(fn,{label:"Preview digest",value:Ve(Nt(G==null?void 0:G.preview).digest)}),r.jsx(fn,{label:"Preview expiry",value:Ve(Nt(G==null?void 0:G.preview).expiresAt)}),r.jsx(fn,{label:"SPEC content digest",value:Ve(U==null?void 0:U.contentHash)})]}),r.jsx(we,{state:"incompatible",eyebrow:"What happens next",title:"This creates a draft only",description:"It does not start work, create a commit, publish, or deploy."}),r.jsx("div",{className:"op-planning-handoff__actions",children:r.jsx(Lt,{disabled:!k,disabledReason:de?"Only a current review-required proposal can be confirmed once.":"Refresh the exact canonical preview after every framing change.",onInvoke:()=>w(!0),children:"Create SPEC draft"})})]})]})]}),r.jsx(ot.Root,{open:b,onOpenChange:w,children:r.jsxs(ot.Portal,{children:[r.jsx(ot.Overlay,{className:"op-planning-handoff__overlay"}),r.jsxs(ot.Content,{className:"op-planning-handoff__dialog",role:"dialog","aria-modal":"true",children:[r.jsx(ot.Title,{children:"Create one shaping SPEC draft?"}),r.jsx(ot.Description,{children:"This confirms the exact proposal, Event head, human framing, preview digest, and expiry shown in this workspace."}),r.jsx(we,{state:"incompatible",eyebrow:"What happens next",title:"More decisions are still required",description:"Creating this draft does not start PLAN, SHIP, an Action, a commit, publication, or deployment."}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(fn,{label:"Proposal",value:Ve(G==null?void 0:G.proposalId)}),r.jsx(fn,{label:"Digest",value:Ve(Nt(G==null?void 0:G.preview).digest)}),r.jsx(fn,{label:"Expires",value:Ve(Nt(G==null?void 0:G.preview).expiresAt)})]}),r.jsxs("div",{className:"op-planning-handoff__dialog-actions",children:[r.jsx(ot.Cancel,{className:"op-governed-button",type:"button",children:"Cancel"}),r.jsx(Lt,{onInvoke:W,children:"Confirm Create SPEC draft"})]})]})]})})]})}const n$=Object.freeze({DetailPage:wU,ListPage:CU,PlanningHandoffPage:t$,createDetailValidator:Uf,createListValidator:hy}),a$=Object.freeze(["claimStatus","status","state"]),i$=Object.freeze(["classification","accessState","accessReason","freshness","evidenceKind","confidence","why","epistemicStatus"]);function ta(e){return typeof e=="string"&&e.trim()!==""?e:typeof e=="number"&&Number.isFinite(e)?String(e):typeof e=="boolean"?e?"true":"false":null}function gy(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function r$(e){return e==="true"?"Yes":e==="false"?"No":gy(e)}function s$(e,t){return ta(Reflect.get(e,"evidenceRefId"))??ta(Reflect.get(e,"outcomeId"))??ta(Reflect.get(e,"claimId"))??ta(Reflect.get(e,"eventId"))??ta(Reflect.get(e,"metricId"))??ta(Reflect.get(e,"learningId"))??t}function o$(e){const t=ta(Reflect.get(e,"deepLink"));return t!=null&&t.startsWith("#/")?t:null}function c$(e){for(const t of a$){const i=ta(Reflect.get(e,t));if(i!==null)return i}return null}function l$(e,t){return`${e==="History"?"History entry":e.endsWith("s")?e.slice(0,-1):e} ${t+1}`}function yf({presentation:e}){return e==="ready"?null:r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This view is ",gy(e).toLocaleLowerCase("en-US"),". It does not make a success claim."]})}function d$({record:e}){const t=i$.flatMap(i=>{const s=ta(Reflect.get(e,i));return s===null?[]:[{key:i,value:s}]});return t.length===0?null:r.jsx("dl",{className:"pc-operate__record-facts",children:t.map(i=>r.jsxs("div",{children:[r.jsx("dt",{children:gy(i.key)}),r.jsx("dd",{children:r$(i.value)})]},i.key))})}function Ri({heading:e,records:t}){return t.length===0?r.jsx(we,{state:"unavailable",eyebrow:e,title:`No ${e.toLowerCase()} to review`,description:`There are no ${e.toLocaleLowerCase("en-US")} in this cycle right now.`}):r.jsxs("section",{className:"pc-operate__section","aria-label":e,children:[r.jsx(ct,{headingLevel:2,title:e,count:t.length}),r.jsx("ol",{className:"pc-operate__records",children:t.map((i,s)=>{const c=ta(Reflect.get(i,"title"))??ta(Reflect.get(i,"statement"))??ta(Reflect.get(i,"summary"))??ta(Reflect.get(i,"why"))??l$(e,s),d=s$(i,`${e}-${s}`),u=o$(i),p=c$(i);return r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index","aria-hidden":"true",children:String(s+1).padStart(2,"0")})," ",u?r.jsx("a",{className:"pc-row-link",href:u,children:c}):c]}),p?r.jsx(wa,{state:p}):null]}),r.jsx(d$,{record:i}),r.jsxs("details",{className:"pc-operate__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:d})]})]},d)})})]})}const u$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function xS(e){try{const t=Ze(e),i=t.route==="#/operate/evidence"||t.subjectId!==null&&t.route===`#/operate/evidence/${encodeURIComponent(t.subjectId)}`;return t.productArea==="operate"&&i&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function jS(e){const t=xS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=di(i),c=s.payload;if(c.surface!=="evidence"||t.eventHead===null||t.viewHash===null||t.cycleId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash||c.viewHash!==t.viewHash)return!1;const d=zf(t.eventHead);if(d===null)return!1;const u=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:t.cycleId,subjectId:t.subjectId,surface:"evidence",query:null,format:null,generatedAt:c.generatedAt,eventHead:d,viewHash:t.viewHash});return di(s,u),!0}catch{return!1}}}function f$(e,t){const i=xS(t);if(!i||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i)||!jS(i)(e.data))return null;const s=u$[e.kind],c=e.data;if(s===void 0||c.payload.surface!=="evidence")return null;const d=c.payload;return d.status!==s||d.readOnly!==!0?null:Object.freeze({kind:"evidence",presentation:s,binding:e.binding,display:c,surface:d,data:d.data,evidence:d.data.evidence,claims:d.data.claims,rationale:d.data.rationale,detailRequested:i.subjectId!==null,subjectId:i.subjectId,readOnly:!0,mutationEnabled:!1})}function p$({currentBinding:e,current:t}){const i=f$(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.evidence",children:r.jsx(we,{state:"incompatible",eyebrow:"Evidence projection",title:"Evidence cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=i.detailRequested?i.evidence.filter(d=>Reflect.get(d,"evidenceRefId")===i.subjectId):i.evidence,c=`${i.surface.eventHead.sequence} · ${i.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":i.detailRequested?"operate.evidence-item":"operate.evidence","data-audit-presentation":i.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Evidence",children:[r.jsx(Da,{label:"rows",value:s.length}),i.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(Da,{label:"claims",value:i.claims.length}),r.jsx(Da,{label:"rationale",value:i.rationale.length})]})]}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · evidence",title:i.detailRequested?"Evidence item":"Evidence",description:"See what supports or challenges the work."}),r.jsx(ks,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:i.surface.viewHash,mono:!0}]}),r.jsx(yf,{presentation:i.presentation}),i.detailRequested&&s.length===0?r.jsx(we,{state:"unavailable",eyebrow:"Exact item",title:"Requested evidence was not returned",description:"The owner-issued Evidence surface does not contain this subject."}):r.jsxs(r.Fragment,{children:[r.jsx(Ri,{heading:"Evidence",records:s}),i.detailRequested?null:r.jsxs(r.Fragment,{children:[r.jsx(Ri,{heading:"Claims",records:i.claims}),r.jsx(Ri,{heading:"Rationale",records:i.rationale})]})]})]})}const h$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function IS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.route==="#/operate/history"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function g$(e,t){const i=IS(e);return s=>{if(!i||!Object.isFrozen(s))return!1;try{const c=di(s),d=c.payload;if(d.surface!==t.surface||i.eventHead===null||i.viewHash===null||i.cycleId===null||d.eventHead.sequence!==i.eventHead.sequence||d.eventHead.hash!==i.eventHead.hash||d.viewHash!==i.viewHash)return!1;const u=zf(i.eventHead);if(u===null)return!1;const p=Object.freeze({actorId:i.actorId,scopeId:i.scopeId,domainId:i.domainId,domainVersion:i.domainVersion,cycleId:i.cycleId,subjectId:null,surface:t.surface,query:t.query,format:t.format,generatedAt:d.generatedAt,eventHead:u,viewHash:i.viewHash});return di(c,p),!0}catch{return!1}}}function QS(e){return g$(e,Object.freeze({surface:"history",query:null,format:null}))}function A$(e,t,i){return Ke(e)&&e.binding!==null&&e.data!==null&&$e(e.binding,t)&&i(e.data)?e.data:null}function m$(e,t){const i=IS(t);if(!i)return null;const s=A$(e,i,QS(i)),c=h$[e.kind];if(!s||c===void 0||s.payload.surface!=="history"||s.payload.status!==c||s.payload.readOnly!==!0)return null;const d=s.payload;return Object.freeze({kind:"history",presentation:c,binding:e.binding,display:s,surface:d,data:d.data,history:d.data.history,replay:d.data.replay,readOnly:!0,mutationEnabled:!1})}function y$(e){const t=Reflect.get(e,"tail"),i=Reflect.get(e,"finalHead"),s=Reflect.get(e,"parityProof"),c=[];if(typeof t=="object"&&t!==null){const u=Reflect.get(t,"startSequence"),p=Reflect.get(t,"endSequence"),g=Reflect.get(t,"eventCount");typeof u=="number"&&c.push({key:"Tail start",value:String(u)}),typeof p=="number"&&c.push({key:"Tail end",value:String(p)}),typeof g=="number"&&c.push({key:"Event count",value:String(g)})}if(typeof i=="object"&&i!==null){const u=Reflect.get(i,"sequence"),p=Reflect.get(i,"hash");typeof u=="number"&&c.push({key:"Final head",value:String(u)}),typeof p=="string"&&c.push({key:"Final hash",value:p})}if(typeof s=="object"&&s!==null)for(const u of["checkpointVerified","finalEventHashMatches","stateParityVerified"]){const p=Reflect.get(s,u);typeof p=="boolean"&&c.push({key:u,value:p?"true":"false"})}const d=Reflect.get(e,"liveAccessUsed");return typeof d=="boolean"&&c.push({key:"Live access used",value:d?"true":"false"}),Object.freeze(c)}function E$({currentBinding:e,current:t}){const i=m$(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history",children:r.jsx(we,{state:"incompatible",eyebrow:"History projection",title:"History cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=y$(i.replay),c=`${i.surface.eventHead.sequence} · ${i.surface.eventHead.hash??"genesis"}`;return r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.history","data-audit-presentation":i.presentation,children:[r.jsx("ul",{className:"pc-metrics","aria-label":"History",children:r.jsx(Da,{label:"events",value:i.history.length})}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · history",title:"History",description:"See what changed, why it changed, and what happens next."}),r.jsx(ks,{items:[{term:"Event record",description:c,mono:!0},{term:"View key",description:i.surface.viewHash,mono:!0}]}),r.jsx(yf,{presentation:i.presentation}),r.jsx(Ri,{heading:"History",records:i.history}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Replay proof",children:[r.jsx(ct,{headingLevel:2,title:"Replay proof",count:s.length}),s.length===0?r.jsx(we,{state:"unavailable",eyebrow:"Replay",title:"No replay proof returned",description:"OpenPlanr returned no checkpoint, tail, head, or parity fields for this Cycle."}):r.jsx(ks,{items:s.map(d=>({term:d.key,description:d.value,mono:!0}))})]})]})}const v$=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function CS(e){try{const t=Ze(e);let i=null;return t.route==="#/operate/outcomes"&&t.subjectId===null?i="outcomes":t.subjectId!==null&&t.route===`#/operate/outcomes/${encodeURIComponent(t.subjectId)}`&&(i="outcome"),t.productArea==="operate"&&i!==null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?Object.freeze({binding:t,surface:i}):null}catch{return null}}function SS(e){const t=CS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=di(i),c=s.payload,{binding:d,surface:u}=t;if(c.surface!==u||d.eventHead===null||d.viewHash===null||d.cycleId===null||c.eventHead.sequence!==d.eventHead.sequence||c.eventHead.hash!==d.eventHead.hash||c.viewHash!==d.viewHash)return!1;const p=zf(d.eventHead);if(p===null)return!1;const g=Object.freeze({actorId:d.actorId,scopeId:d.scopeId,domainId:d.domainId,domainVersion:d.domainVersion,cycleId:d.cycleId,subjectId:u==="outcome"?d.subjectId:null,surface:u,query:null,format:null,generatedAt:c.generatedAt,eventHead:p,viewHash:d.viewHash});return di(s,g),!0}catch{return!1}}}function B$(e,t){const i=CS(t);if(!i||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i.binding)||!SS(i.binding)(e.data))return null;const s=v$[e.kind],c=e.data;if(s===void 0||c.payload.surface!==i.surface||c.payload.status!==s||c.payload.readOnly!==!0)return null;if(c.payload.surface==="outcome"){if(i.binding.subjectId===null)return null;const u=c.payload;return Object.freeze({kind:"outcome",presentation:s,binding:e.binding,display:c,surface:u,data:u.data,outcome:u.data.outcome,learnings:u.data.learnings,subjectId:i.binding.subjectId,readOnly:!0,mutationEnabled:!1})}const d=c.payload;return Object.freeze({kind:"outcomes",presentation:s,binding:e.binding,display:c,surface:d,data:d.data,domainMetrics:d.data.domainMetrics,outcomes:d.data.outcomes,learnings:d.data.learnings,readOnly:!0,mutationEnabled:!1})}function b$({currentBinding:e,current:t}){const i=B$(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes",children:r.jsx(we,{state:"incompatible",eyebrow:"Outcomes projection",title:"Outcomes cannot be trusted",description:"The owner-issued audit display did not pass exact binding and integrity verification."})});const s=`${i.surface.eventHead.sequence} · ${i.surface.eventHead.hash??"genesis"}`;return i.kind==="outcome"?r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcome","data-audit-presentation":i.presentation,children:[r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · outcome",title:"Outcome",description:"Track what changed and what still needs proof."}),r.jsx(ks,{items:[{term:"Outcome ID",description:i.subjectId??"Not returned",mono:!0},{term:"Event record",description:s,mono:!0},{term:"View key",description:i.surface.viewHash,mono:!0}]}),r.jsx(yf,{presentation:i.presentation}),r.jsx(Ri,{heading:"Outcome",records:[i.outcome]}),r.jsx(Ri,{heading:"Learnings",records:i.learnings})]}):r.jsxs("div",{className:"op-workspace op-audit pc-operate","data-route-kind":"operate.outcomes","data-audit-presentation":i.presentation,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Outcomes",children:[r.jsx(Da,{label:"domain metrics",value:i.domainMetrics.length}),r.jsx(Da,{label:"outcomes",value:i.outcomes.length}),r.jsx(Da,{label:"learnings",value:i.learnings.length})]}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · outcomes",title:"Outcomes",description:"Track results, measurements, and what the team learned."}),r.jsx(ks,{items:[{term:"Event record",description:s,mono:!0},{term:"View key",description:i.surface.viewHash,mono:!0}]}),r.jsx(yf,{presentation:i.presentation}),r.jsx(Ri,{heading:"Domain metrics",records:i.domainMetrics}),r.jsx(Ri,{heading:"Outcomes",records:i.outcomes}),r.jsx(Ri,{heading:"Learnings",records:i.learnings})]})}const w$=Object.freeze({EvidencePage:p$,HistoryPage:E$,OutcomesPage:b$}),$u=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Lf=/^sha256:[a-f0-9]{64}$/u,x$=/^[A-Z][A-Z0-9_]{0,127}$/u,j$=/^xpatch_[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/u,I$=new Set(["/status","/attention","/domainMetrics","/cycles","/inbox","/actions","/evidence","/claims","/rationale","/outcomes","/learnings","/history","/replay","/allowedActions","/omissions","/export"]),OS=new WeakMap;function Q$(e,t){const i=At(e,["sequence","hash"],t);if(!Number.isSafeInteger(i.sequence)||i.sequence<0)throw new ee(`${t}.sequence`,"expected a non-negative safe integer");const s=i.sequence,c=i.hash===null?null:Je(i.hash,`${t}.hash`,Lf);if(s===0!=(c===null))throw new ee(t,"sequence and hash are inconsistent");return Object.freeze({sequence:s,hash:c})}function Ef(e,t){const i=At(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:Q$(i.eventHead,`${t}.eventHead`),viewHash:Je(i.viewHash,`${t}.viewHash`,Lf)})}function C$(e){const t=At(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],"$.binding");if(!Number.isSafeInteger(t.generation)||t.generation<0)throw new ee("$.binding.generation","expected a non-negative safe integer");return Object.freeze({actorId:Je(t.actorId,"$.binding.actorId",$u),projectId:Je(t.projectId,"$.binding.projectId",Lf),scopeId:Je(t.scopeId,"$.binding.scopeId",$u),domainId:Je(t.domainId,"$.binding.domainId",$u),domainVersion:Je(t.domainVersion,"$.binding.domainVersion",$u),generation:t.generation})}function _S(e,t){if(!Array.isArray(e))throw new ee(t,"expected an array");return Object.freeze(e.map((i,s)=>Je(i,`${t}[${s}]`,x$)))}function NS(e,t="$.payload"){const i=At(e,["mutationEnabled","reasonCodes"],t),s=xl(i.mutationEnabled,`${t}.mutationEnabled`),c=_S(i.reasonCodes,`${t}.reasonCodes`);if(s&&c.length!==0||!s&&c.length===0)throw new ee(t,"ready mutation and reason state are inconsistent");return Object.freeze({mutationEnabled:s,reasonCodes:c})}function S$(e){if(typeof e!="string"||e.length<1||e.length>240||[...e].some(t=>(t.codePointAt(0)??0)<=31))throw new ee("$.payload.recovery","contains invalid recovery text");return e}function O$(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Yo(e,t){return O$(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function RS(e){return(e==null?void 0:e.route)==="#/operate/inbox"||e!=null&&e.route.startsWith("#/operate/inbox/")?"inbox":"today"}function _$(e,t){const i=At(e,["patchId","patchHash","from","to","changedPaths"],"$.payload"),s=Ef(i.from,"$.payload.from"),c=Ef(i.to,"$.payload.to");if(!Yo(c,t))throw new ee("$.payload","patch target does not equal envelope cursor");if(!Array.isArray(i.changedPaths))throw new ee("$.payload.changedPaths","expected an array");const d=i.changedPaths.map((p,g)=>{if(typeof p!="string"||!I$.has(p))throw new ee(`$.payload.changedPaths[${g}]`,"contains an unsupported path");return p});if(new Set(d).size!==d.length)throw new ee("$.payload.changedPaths","contains duplicate paths");const u={patchId:Je(i.patchId,"$.payload.patchId",j$),patchHash:Je(i.patchHash,"$.payload.patchHash",Lf),from:s,to:c,changedPaths:Object.freeze(d)};return OS.set(u,JSON.stringify(e)),Object.freeze(u)}function DS(e,t=null){var u;const i=At(Tj(e),["kind","schemaVersion","event","binding","cursor","payload"],"$");if(i.kind!=="dashboard-live-event"||i.schemaVersion!=="1.0.0")throw new ee("$","has an unsupported live event contract");const s=C$(i.binding),c=Ef(i.cursor,"$.cursor"),d={kind:"dashboard-live-event",schemaVersion:"1.0.0",binding:s,cursor:c};if(i.event==="snapshot"){const p=Yn(i.payload),g=p.payload,m=RS(t),y=g.surface==="today"?((u=g.data.activeCycle)==null?void 0:u.cycleId)??null:null;if(g.surface!==m||g.eventHead.sequence!==c.eventHead.sequence||g.eventHead.hash!==c.eventHead.hash||m==="today"&&t!==null&&t.cycleId!==null&&y!==t.cycleId)throw new ee("$.payload","snapshot binding or cursor is inconsistent");const A=Object.freeze({actorId:s.actorId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,generatedAt:g.generatedAt,eventHead:g.eventHead,viewHash:c.viewHash,surface:m,subjectId:null,cycleId:(t==null?void 0:t.cycleId)??y,...m==="inbox"?{projectId:s.projectId,generation:s.generation}:{}});try{Yn(p,A)}catch{throw new ee("$.payload","snapshot binding or cursor is inconsistent")}return Object.freeze({...d,event:"snapshot",payload:p})}if(i.event==="patch"){const p=_$(i.payload,c);return Object.freeze({...d,event:"patch",payload:p})}if(i.event==="ready")return Object.freeze({...d,event:"ready",payload:NS(i.payload)});if(i.event==="stale"){const p=At(i.payload,["mutationEnabled","reasonCodes","recovery"],"$.payload");if(p.mutationEnabled!==!1)throw new ee("$.payload.mutationEnabled","stale events disable mutation");const g=_S(p.reasonCodes,"$.payload.reasonCodes");if(g.length===0)throw new ee("$.payload.reasonCodes","stale events require a reason");return Object.freeze({...d,event:"stale",payload:Object.freeze({mutationEnabled:!1,reasonCodes:g,recovery:S$(p.recovery)})})}throw new ee("$.event","contains an unsupported event")}function TS(e){const t=e.identity;let i=t.eventHead&&t.viewHash?Object.freeze({eventHead:t.eventHead,viewHash:t.viewHash}):null,s=!1,c=!1,d=!1,u=null,p=null;const g=new Map,m=E=>(c||(c=!0,e.onRefetch(E)),Object.freeze({kind:"refetch",reason:E})),y=E=>E.actorId===t.actorId&&E.projectId===t.projectId&&E.scopeId===t.scopeId&&E.domainId===t.domainId&&E.domainVersion===t.domainVersion,A=E=>{var I,Q;if(s||!e.isCurrent(t))return Object.freeze({kind:"rejected",reason:"inactive"});if(E.binding.generation!==t.generation)return Object.freeze({kind:"rejected",reason:"foreign-generation"});if(!y(E.binding))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(E.event==="snapshot"){if(i){if(E.cursor.eventHead.sequence<i.eventHead.sequence)return m("restart-regression");if(E.cursor.eventHead.sequence>i.eventHead.sequence&&!(E.payload.payload.surface==="inbox"&&E.cursor.eventHead.sequence===i.eventHead.sequence+1))return m("gap");if(E.cursor.eventHead.sequence===i.eventHead.sequence&&!Yo(E.cursor,i))return m("divergent-duplicate")}return d&&i&&Yo(E.cursor,i)?u===JSON.stringify(E.payload)?Object.freeze({kind:"duplicate"}):m("divergent-duplicate"):(i=E.cursor,d=!0,u=JSON.stringify(E.payload),p=JSON.stringify({mutationEnabled:E.payload.payload.mutationEnabled,reasonCodes:E.payload.payload.reasonCodes}),c=!1,g.clear(),e.onSnapshot(E.payload,E.cursor),Object.freeze({kind:"accepted",event:"snapshot"}))}if(!i)return m("cursor-mismatch");if(E.event==="ready")return Yo(E.cursor,i)?p===null||p!==JSON.stringify(E.payload)?m("state-mismatch"):((I=e.onReady)==null||I.call(e,E.payload),Object.freeze({kind:"accepted",event:"ready"})):m("cursor-mismatch");if(E.event==="stale")return(Q=e.onStale)==null||Q.call(e,E.payload),m("stale");const b=E.payload,w=`${b.to.eventHead.sequence}:${b.to.eventHead.hash}:${b.to.viewHash}`,j=OS.get(b)??JSON.stringify(b);return Yo(b.to,i)?g.get(w)===j?Object.freeze({kind:"duplicate"}):m("divergent-duplicate"):b.to.eventHead.sequence<=i.eventHead.sequence?m("reordered"):b.to.eventHead.sequence!==i.eventHead.sequence+1?m("gap"):Yo(b.from,i)?(g.set(w,j),i=b.to,p=null,e.onPatch(b),Object.freeze({kind:"accepted",event:"patch"})):m("reordered")};return Object.freeze({ingest:A,ingestJson:E=>{try{return A(DS(E,t))}catch{return m("invalid-event")}},getCursor:()=>i,markReconciled:(E,b)=>s?!1:(i=Ef(E,"$.cursor"),p=JSON.stringify(NS(b,"$.state")),c=!1,d=!1,u=null,g.clear(),!0),dispose:()=>{s=!0}})}function kS(e){var p,g;const t=new URL(e.origin);if(t.protocol!=="http:"||!["127.0.0.1","localhost"].includes(t.hostname)||t.pathname!=="/"||t.search||t.hash)throw new ee("$.origin","expected an exact loopback HTTP origin");const i=new AbortController,s=()=>i.abort();(p=e.signal)!=null&&p.aborted?i.abort(e.signal.reason):(g=e.signal)==null||g.addEventListener("abort",s,{once:!0});const c=new URL("/api/operate/events",t);c.searchParams.set("scopeId",e.identity.scopeId),c.searchParams.set("domainId",e.identity.domainId),c.searchParams.set("domainVersion",e.identity.domainVersion),c.searchParams.set("generation",String(e.identity.generation)),RS(e.identity)==="inbox"&&(c.searchParams.set("projectId",e.identity.projectId),c.searchParams.set("surface","inbox"));const d={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(d["last-event-id"]=e.lastEventId);const u=(async()=>{var b,w;const m=await(e.fetcher??fetch)(c,{headers:d,signal:i.signal});if(!m.ok||!((b=m.headers.get("content-type"))!=null&&b.startsWith("text/event-stream"))||!m.body)throw new ee("$","live stream response is unavailable");const y=m.body.getReader(),A=new TextDecoder;let E="";try{for(;!i.signal.aborted;){const j=await y.read();if(E+=A.decode(j.value,{stream:!j.done}),E=E.replaceAll(`\r
552
- `,`
553
- `).replace(/\r(?!$)/gu,`
554
- `),j.done&&E.endsWith("\r")&&(E=`${E.slice(0,-1)}
555
- `),E.length>256*1024)throw new ee("$","live frame exceeds limit");let I=E.indexOf(`
556
-
557
- `);for(;I>=0;){const Q=E.slice(0,I);E=E.slice(I+2);const S=Q.split(`
558
- `),C=(w=S.find(O=>O.startsWith("event:")))==null?void 0:w.slice(6).trim(),_=S.filter(O=>O.startsWith("data:")).map(O=>O.slice(5).trimStart()).join(`
559
- `);if(_){const O=DS(_,e.identity);if(C&&C!==O.event)throw new ee("$.event","SSE name and envelope event differ");e.reconciler.ingest(O)}I=E.indexOf(`
560
-
561
- `)}if(j.done){if(E.trim().length>0)throw new ee("$","live stream ended with a partial frame");break}}}finally{y.releaseLock()}})().catch(m=>{if(!i.signal.aborted)throw m instanceof ee?m:new ee("$","live stream failed safely")}).finally(()=>{var m;return(m=e.signal)==null?void 0:m.removeEventListener("abort",s)});return Object.freeze({completion:u,close:()=>{var m;i.abort(),e.reconciler.dispose(),(m=e.signal)==null||m.removeEventListener("abort",s)}})}const N$={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var wr,mm,vj,R$=(vj=class{constructor(){ze(this,wr,N$);ze(this,mm,!1)}setTimeoutProvider(e){je(this,wr,e)}setTimeout(e,t){return J(this,wr).setTimeout(e,t)}clearTimeout(e){J(this,wr).clearTimeout(e)}setInterval(e,t){return J(this,wr).setInterval(e,t)}clearInterval(e){J(this,wr).clearInterval(e)}},wr=new WeakMap,mm=new WeakMap,vj);const WA=new R$;function D$(e){setTimeout(e,0)}const T$=typeof window>"u"||"Deno"in globalThis;function ya(){}function k$(e,t){return typeof e=="function"?e(t):e}function M$(e){return typeof e=="number"&&e>=0&&e!==1/0}function G$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bl(e,t){return typeof e=="function"?e(t):e}function _x(e,t){const{type:i="all",exact:s,fetchStatus:c,predicate:d,queryKey:u,stale:p}=e;if(u){if(s){if(t.queryHash!==Ay(u,t.options))return!1}else if(!ac(t.queryKey,u))return!1}if(i!=="all"){const g=t.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof p=="boolean"&&t.isStale()!==p||c&&c!==t.state.fetchStatus||d&&!d(t))}function Nx(e,t){const{exact:i,status:s,predicate:c,mutationKey:d}=e;if(d){if(!t.options.mutationKey)return!1;if(i){if(kl(t.options.mutationKey)!==kl(d))return!1}else if(!ac(t.options.mutationKey,d))return!1}return!(s&&t.state.status!==s||c&&!c(t))}function Ay(e,t){return((t==null?void 0:t.queryKeyHashFn)||kl)(e)}function kl(e){return JSON.stringify(e,(t,i)=>em(i)?Object.keys(i).sort().reduce((s,c)=>(s[c]=i[c],s),{}):i)}function ac(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let s=0;s<t.length;s++)if(!ac(e[s],t[s]))return!1;return!0}const i=Object.keys(t);for(const s of i)if(!ac(e[s],t[s]))return!1;return!0}return!1}const Y$=Object.prototype.hasOwnProperty;function MS(e,t,i=0){if(e===t)return e;if(i>500)return t;const s=Rx(e)&&Rx(t);if(!s&&!(em(e)&&em(t)))return t;const c=(s?e:Object.keys(e)).length,d=s?t:Object.keys(t),u=d.length,p=s?new Array(u):{};let g=0;for(let m=0;m<u;m++){const y=s?m:d[m],A=e[y],E=t[y];if(A===E){p[y]=A,(s?m<c:Y$.call(e,y))&&g++;continue}if(A===null||E===null||typeof A!="object"||typeof E!="object"){p[y]=E;continue}const b=MS(A,E,i+1);p[y]=b,b===A&&g++}return c===u&&g===c?e:p}function Rx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function em(e){if(!Dx(e))return!1;const t=Object.getPrototypeOf(e),i=t==null?void 0:t.constructor;if(i===void 0)return!0;if(typeof i!="function")return!1;const s=i.prototype;return!(!Dx(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function Dx(e){return Object.prototype.toString.call(e)==="[object Object]"}function H$(e){return new Promise(t=>{WA.setTimeout(t,e)})}function z$(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?MS(e,t):t}function U$(e,t,i=0){const s=[...e,t];return i&&s.length>i?s.slice(1):s}function $$(e,t,i=0){const s=[t,...e];return i&&s.length>i?s.slice(0,-1):s}const my=Symbol();function GS(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===my?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function L$(e,t,i){let s=!1,c;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(c??(c=t()),s||(s=!0,c.aborted?i():c.addEventListener("abort",i,{once:!0})),c)}),e}let P$=()=>T$;const YS=()=>P$();var Pf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xs,xr,qo,Bj,F$=(Bj=class extends Pf{constructor(){super();ze(this,xs);ze(this,xr);ze(this,qo);je(this,qo,t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){J(this,xr)||this.setEventListener(J(this,qo))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,xr))==null||t.call(this),je(this,xr,void 0))}setEventListener(t){var i;je(this,qo,t),(i=J(this,xr))==null||i.call(this),je(this,xr,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){J(this,xs)!==t&&(je(this,xs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof J(this,xs)=="boolean"?J(this,xs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xs=new WeakMap,xr=new WeakMap,qo=new WeakMap,Bj);const HS=new F$,V$=D$;function q$(){let e=[],t=0,i=p=>{p()},s=p=>{p()},c=V$;const d=p=>{t?e.push(p):c(()=>{i(p)})},u=()=>{const p=e;e=[],p.length&&c(()=>{s(()=>{p.forEach(g=>{i(g)})})})};return{batch:p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},batchCalls:p=>(...g)=>{d(()=>{p(...g)})},schedule:d,setNotifyFunction:p=>{i=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{c=p}}}const xn=q$();var Ko,jr,Jo,bj,K$=(bj=class extends Pf{constructor(){super();ze(this,Ko,!0);ze(this,jr);ze(this,Jo);je(this,Jo,t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){J(this,jr)||this.setEventListener(J(this,Jo))}onUnsubscribe(){var t;this.hasListeners()||((t=J(this,jr))==null||t.call(this),je(this,jr,void 0))}setEventListener(t){var i;je(this,Jo,t),(i=J(this,jr))==null||i.call(this),je(this,jr,t(this.setOnline.bind(this)))}setOnline(t){J(this,Ko)!==t&&(je(this,Ko,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return J(this,Ko)}},Ko=new WeakMap,jr=new WeakMap,Jo=new WeakMap,bj);const vf=new K$;function J$(e){return Math.min(1e3*2**e,3e4)}function zS(e){return(e??"online")==="online"?vf.isOnline():!0}var tm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function US(e){let t=!1,i=0,s,c="pending",d,u;const p=new Promise((S,C)=>{d=S,u=C});p.catch(ya);const g=()=>c!=="pending",m=S=>{var C;if(!g()){const _=new tm(S);j(_),(C=e.onCancel)==null||C.call(e,_)}},y=()=>{t=!0},A=()=>{t=!1},E=()=>HS.isFocused()&&(e.networkMode==="always"||vf.isOnline())&&e.canRun(),b=()=>zS(e.networkMode)&&e.canRun(),w=S=>{g()||(s==null||s(),c="resolved",d(S))},j=S=>{g()||(s==null||s(),c="rejected",u(S))},I=S=>new Promise(C=>{var _;s=O=>{(g()||S())&&C(O)},(_=e.onPause)==null||_.call(e)}).then(()=>{var C;s=void 0,g()||(C=e.onContinue)==null||C.call(e)}),Q=()=>{if(g())return;let S;const C=i===0?e.initialPromise:void 0;try{S=C??e.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(w).catch(_=>{var G;if(g())return;const O=e.retry??(YS()?0:3),T=e.retryDelay??J$,N=typeof T=="function"?T(i,_):T,$=O===!0||typeof O=="number"&&i<O||typeof O=="function"&&O(i,_);if(t||!$){j(_);return}i++,(G=e.onFail)==null||G.call(e,i,_),H$(N).then(()=>E()?void 0:I(E)).then(()=>{t?j(_):Q()})})};return{promise:p,status:()=>c,cancel:m,continue:()=>(s==null||s(),p),cancelRetry:y,continueRetry:A,canStart:b,start:()=>(b()?Q():I(b).then(Q),p)}}var js,wj,$S=(wj=class{constructor(){ze(this,js)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),M$(this.gcTime)&&je(this,js,WA.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(YS()?1/0:3e5))}clearGcTimeout(){J(this,js)!==void 0&&(WA.clearTimeout(J(this,js)),je(this,js,void 0))}},js=new WeakMap,wj);function Z$(e){return{onFetch:(t,i)=>{var y,A,E,b,w;const s=t.options,c=(E=(A=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:A.fetchMore)==null?void 0:E.direction,d=((b=t.state.data)==null?void 0:b.pages)||[],u=((w=t.state.data)==null?void 0:w.pageParams)||[];let p={pages:[],pageParams:[]},g=0;const m=async()=>{let j=!1;const I=C=>{L$(C,()=>t.signal,()=>j=!0)},Q=GS(t.options,t.fetchOptions),S=async(C,_,O)=>{if(j)return Promise.reject(t.signal.reason);if(_==null&&C.pages.length)return Promise.resolve(C);const N=(()=>{const Z={client:t.client,queryKey:t.queryKey,pageParam:_,direction:O?"backward":"forward",meta:t.options.meta};return I(Z),Z})(),$=await Q(N),{maxPages:G}=t.options,U=O?$$:U$;return{pages:U(C.pages,$,G),pageParams:U(C.pageParams,_,G)}};if(c&&d.length){const C=c==="backward",_=C?X$:Tx,O={pages:d,pageParams:u};p=await S(O,_(s,O),C)}else{const C=e??d.length;do{const _=g===0?u[0]===void 0?s.initialPageParam:u[0]:Tx(s,p);if(g>0&&_==null)break;p=await S(p,_),g++}while(g<C)}return p};t.options.persister?t.fetchFn=()=>{var j,I;return(I=(j=t.options).persister)==null?void 0:I.call(j,m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=m}}}function Tx(e,{pages:t,pageParams:i}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,i[s],i):void 0}function X$(e,{pages:t,pageParams:i}){var s;return t.length>0?(s=e.getPreviousPageParam)==null?void 0:s.call(e,t[0],t,i[0],i):void 0}var Zo,Is,Xo,ma,Qs,zt,Ul,Cs,_a,Si,xj,W$=(xj=class extends $S{constructor(t){super();ze(this,_a);ze(this,Zo);ze(this,Is);ze(this,Xo);ze(this,ma);ze(this,Qs);ze(this,zt);ze(this,Ul);ze(this,Cs);je(this,Cs,!1),je(this,Ul,t.defaultOptions),this.setOptions(t.options),this.observers=[],je(this,Qs,t.client),je(this,ma,J(this,Qs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,je(this,Is,Mx(this.options)),this.state=t.state??J(this,Is),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return J(this,Zo)}get promise(){var t;return(t=J(this,zt))==null?void 0:t.promise}setOptions(t){if(this.options={...J(this,Ul),...t},t!=null&&t._type&&je(this,Zo,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Mx(this.options);i.data!==void 0&&(this.setState(kx(i.data,i.dataUpdatedAt)),je(this,Is,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&J(this,ma).remove(this)}setData(t,i){const s=z$(this.state.data,t,this.options);return gn(this,_a,Si).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(t){gn(this,_a,Si).call(this,{type:"setState",state:t})}cancel(t){var s,c;const i=(s=J(this,zt))==null?void 0:s.promise;return(c=J(this,zt))==null||c.cancel(t),i?i.then(ya).catch(ya):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return J(this,Is)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>bl(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===my||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>bl(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!G$(this.state.dataUpdatedAt,t)}onFocus(){var t,i;(t=this.observers.find(s=>s.shouldFetchOnWindowFocus()))==null||t.refetch({cancelRefetch:!1}),(i=J(this,zt))==null||i.continue()}onOnline(){var t,i;(t=this.observers.find(s=>s.shouldFetchOnReconnect()))==null||t.refetch({cancelRefetch:!1}),(i=J(this,zt))==null||i.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),J(this,ma).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){const i=this.observers.indexOf(t);i!==-1&&(this.observers.splice(i,1),this.observers.length||(J(this,zt)&&(J(this,Cs)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?J(this,zt).cancel({revert:!0}):J(this,zt).cancelRetry()),this.scheduleGc()),J(this,ma).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gn(this,_a,Si).call(this,{type:"invalidate"})}async fetch(t,i){var m,y,A,E,b,w,j,I,Q,S,C,_;if(this.state.fetchStatus!=="idle"&&((m=J(this,zt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(J(this,zt))return J(this,zt).continueRetry(),J(this,zt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const O=this.observers.find(T=>T.options.queryFn);O&&this.setOptions(O.options)}const s=new AbortController,c=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(je(this,Cs,!0),s.signal)})},d=()=>{const O=GS(this.options,i),N=(()=>{const $={client:J(this,Qs),queryKey:this.queryKey,meta:this.meta};return c($),$})();return je(this,Cs,!1),this.options.persister?this.options.persister(O,N,this):O(N)},p=(()=>{const O={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:J(this,Qs),state:this.state,fetchFn:d};return c(O),O})();(y=J(this,Zo)==="infinite"?Z$(this.options.pages):this.options.behavior)==null||y.onFetch(p,this),je(this,Xo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((A=p.fetchOptions)==null?void 0:A.meta))&&gn(this,_a,Si).call(this,{type:"fetch",meta:(E=p.fetchOptions)==null?void 0:E.meta});const g=je(this,zt,US({initialPromise:i==null?void 0:i.initialPromise,fn:p.fetchFn,onCancel:O=>{O instanceof tm&&O.revert&&this.setState({...J(this,Xo),fetchStatus:"idle"}),s.abort()},onFail:(O,T)=>{gn(this,_a,Si).call(this,{type:"failed",failureCount:O,error:T})},onPause:()=>{gn(this,_a,Si).call(this,{type:"pause"})},onContinue:()=>{gn(this,_a,Si).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const O=await g.start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(w=(b=J(this,ma).config).onSuccess)==null||w.call(b,O,this),(I=(j=J(this,ma).config).onSettled)==null||I.call(j,O,this.state.error,this),O}catch(O){if(O instanceof tm){if(O.silent)return J(this,zt).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw gn(this,_a,Si).call(this,{type:"error",error:O}),(S=(Q=J(this,ma).config).onError)==null||S.call(Q,O,this),(_=(C=J(this,ma).config).onSettled)==null||_.call(C,this.state.data,O,this),O}finally{J(this,zt)===g&&je(this,zt,void 0),this.scheduleGc()}}},Zo=new WeakMap,Is=new WeakMap,Xo=new WeakMap,ma=new WeakMap,Qs=new WeakMap,zt=new WeakMap,Ul=new WeakMap,Cs=new WeakMap,_a=new WeakSet,Si=function(t){const i=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...e4(s.data,this.options),fetchMeta:t.meta??null};case"success":const c={...s,...kx(t.data,t.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return je(this,Xo,t.manual?c:void 0),c;case"error":const d=t.error;return{...s,error:d,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=i(this.state),xn.batch(()=>{this.observers.slice().forEach(s=>{s.onQueryUpdate()}),J(this,ma).notify({query:this,type:"updated",action:t})})},xj);function e4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function kx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Mx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,s=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var $l,Wa,An,Ss,ei,Br,jj,t4=(jj=class extends $S{constructor(t){super();ze(this,ei);ze(this,$l);ze(this,Wa);ze(this,An);ze(this,Ss);je(this,$l,t.client),this.mutationId=t.mutationId,je(this,An,t.mutationCache),je(this,Wa,[]),this.state=t.state||n4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){J(this,Wa).includes(t)||(J(this,Wa).push(t),this.clearGcTimeout(),J(this,An).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){je(this,Wa,J(this,Wa).filter(i=>i!==t)),this.scheduleGc(),J(this,An).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){J(this,Wa).length||(this.state.status==="pending"?this.scheduleGc():J(this,An).remove(this))}continue(){var t;return((t=J(this,Ss))==null?void 0:t.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){var p,g,m,y,A,E,b,w,j,I,Q,S,C,_,O,T,N,$;const i=()=>{gn(this,ei,Br).call(this,{type:"continue"})},s={client:J(this,$l),meta:this.options.meta,mutationKey:this.options.mutationKey},c=je(this,Ss,US({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(G,U)=>{gn(this,ei,Br).call(this,{type:"failed",failureCount:G,error:U})},onPause:()=>{gn(this,ei,Br).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>J(this,An).canRun(this)})),d=this.state.status==="pending",u=!c.canStart();try{if(d)i();else{gn(this,ei,Br).call(this,{type:"pending",variables:t,isPaused:u}),J(this,An).config.onMutate&&await J(this,An).config.onMutate(t,this,s);const U=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,t,s));U!==this.state.context&&gn(this,ei,Br).call(this,{type:"pending",context:U,variables:t,isPaused:u})}const G=await c.start();return await((y=(m=J(this,An).config).onSuccess)==null?void 0:y.call(m,G,t,this.state.context,this,s)),await((E=(A=this.options).onSuccess)==null?void 0:E.call(A,G,t,this.state.context,s)),await((w=(b=J(this,An).config).onSettled)==null?void 0:w.call(b,G,null,this.state.variables,this.state.context,this,s)),await((I=(j=this.options).onSettled)==null?void 0:I.call(j,G,null,t,this.state.context,s)),gn(this,ei,Br).call(this,{type:"success",data:G}),G}catch(G){try{await((S=(Q=J(this,An).config).onError)==null?void 0:S.call(Q,G,t,this.state.context,this,s))}catch(U){Promise.reject(U)}try{await((_=(C=this.options).onError)==null?void 0:_.call(C,G,t,this.state.context,s))}catch(U){Promise.reject(U)}try{await((T=(O=J(this,An).config).onSettled)==null?void 0:T.call(O,void 0,G,this.state.variables,this.state.context,this,s))}catch(U){Promise.reject(U)}try{await(($=(N=this.options).onSettled)==null?void 0:$.call(N,void 0,G,t,this.state.context,s))}catch(U){Promise.reject(U)}throw gn(this,ei,Br).call(this,{type:"error",error:G}),G}finally{J(this,Ss)===c&&je(this,Ss,void 0),J(this,An).runNext(this)}}},$l=new WeakMap,Wa=new WeakMap,An=new WeakMap,Ss=new WeakMap,ei=new WeakSet,Br=function(t){const i=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),xn.batch(()=>{J(this,Wa).forEach(s=>{s.onMutationUpdate(t)}),J(this,An).notify({mutation:this,type:"updated",action:t})})},jj);function n4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ir,Na,Ll,Ij,a4=(Ij=class extends Pf{constructor(t={}){super();ze(this,Ir);ze(this,Na);ze(this,Ll);this.config=t,je(this,Ir,new Set),je(this,Na,new Map),je(this,Ll,0)}build(t,i,s){const c=new t4({client:t,mutationCache:this,mutationId:++ju(this,Ll)._,options:t.defaultMutationOptions(i),state:s});return this.add(c),c}add(t){J(this,Ir).add(t);const i=Lu(t);if(typeof i=="string"){const s=J(this,Na).get(i);s?s.push(t):J(this,Na).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(J(this,Ir).delete(t)){const i=Lu(t);if(typeof i=="string"){const s=J(this,Na).get(i);if(s)if(s.length>1){const c=s.indexOf(t);c!==-1&&s.splice(c,1)}else s[0]===t&&J(this,Na).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){var s;const i=Lu(t);if(typeof i=="string"){const c=(s=J(this,Na).get(i))==null?void 0:s.find(d=>d.state.status==="pending");return!c||c===t}else return!0}runNext(t){var s,c;const i=Lu(t);return typeof i=="string"?((c=(s=J(this,Na).get(i))==null?void 0:s.find(d=>d!==t&&d.state.isPaused))==null?void 0:c.continue())??Promise.resolve():Promise.resolve()}clear(){xn.batch(()=>{const t=this.getAll();J(this,Ir).clear(),J(this,Na).clear(),t.forEach(i=>{this.notify({type:"removed",mutation:i})})})}getAll(){return Array.from(J(this,Ir))}find(t){const i={exact:!0,...t};return this.getAll().find(s=>Nx(i,s))}findAll(t={}){return this.getAll().filter(i=>Nx(t,i))}notify(t){xn.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return xn.batch(()=>Promise.all(t.map(i=>i.continue().catch(ya))))}},Ir=new WeakMap,Na=new WeakMap,Ll=new WeakMap,Ij);function Lu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ti,Qj,i4=(Qj=class extends Pf{constructor(t={}){super();ze(this,ti);this.config=t,je(this,ti,new Map)}build(t,i,s){const c=i.queryKey,d=i.queryHash??Ay(c,i);let u=this.get(d);return u||(u=new W$({client:t,queryKey:c,queryHash:d,options:t.defaultQueryOptions(i),state:s,defaultOptions:t.getQueryDefaults(c)}),this.add(u)),u}add(t){J(this,ti).has(t.queryHash)||(J(this,ti).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){J(this,ti).get(t.queryHash)===t&&(t.destroy(),J(this,ti).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return J(this,ti).get(t)}getAll(){return[...J(this,ti).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(s=>_x(i,s))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(s=>_x(t,s)):i}notify(t){xn.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){xn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ti=new WeakMap,Qj),Et,Qr,Cr,Wo,ec,Sr,tc,nc,Cj,r4=(Cj=class{constructor(e={}){ze(this,Et);ze(this,Qr);ze(this,Cr);ze(this,Wo);ze(this,ec);ze(this,Sr);ze(this,tc);ze(this,nc);je(this,Et,e.queryCache||new i4),je(this,Qr,e.mutationCache||new a4),je(this,Cr,e.defaultOptions||{}),je(this,Wo,new Map),je(this,ec,new Map),je(this,Sr,0)}mount(){ju(this,Sr)._++,J(this,Sr)===1&&(je(this,tc,HS.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,Et).onFocus())})),je(this,nc,vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),J(this,Et).onOnline())})))}unmount(){var e,t;ju(this,Sr)._--,J(this,Sr)===0&&((e=J(this,tc))==null||e.call(this),je(this,tc,void 0),(t=J(this,nc))==null||t.call(this),je(this,nc,void 0))}isFetching(e){return J(this,Et).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return J(this,Qr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=J(this,Et).get(t.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=J(this,Et).build(this,t),s=i.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(bl(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return J(this,Et).findAll(e).map(({queryKey:t,state:i})=>[t,i.data])}setQueryData(e,t,i){var u;const s=this.defaultQueryOptions({queryKey:e}),c=(u=J(this,Et).get(s.queryHash))==null?void 0:u.state.data,d=k$(t,c);if(d!==void 0)return J(this,Et).build(this,s).setData(d,{...i,manual:!0})}setQueriesData(e,t,i){return xn.batch(()=>J(this,Et).findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,i)]))}getQueryState(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=J(this,Et).get(t.queryHash))==null?void 0:i.state}removeQueries(e){const t=J(this,Et);xn.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=J(this,Et);return xn.batch(()=>{const s=i.findAll(e),c=new Set(s);return s.forEach(d=>{d.reset()}),this.refetchQueries({type:"active",predicate:d=>c.has(d)},t)})}cancelQueries(e,t={}){const i={revert:!0,...t},s=xn.batch(()=>J(this,Et).findAll(e).map(c=>c.cancel(i)));return Promise.all(s).then(ya).catch(ya)}invalidateQueries(e,t={}){return xn.batch(()=>(J(this,Et).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},s=xn.batch(()=>J(this,Et).findAll(e).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,i);return i.throwOnError||(d=d.catch(ya)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(s).then(ya)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=J(this,Et).build(this,t),s=i.isStaleByTime(bl(t.staleTime,i))?await i.fetch(t):i.state.data,c=t.select;return c?c(s):s}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=J(this,Et).build(this,t);return i.isStaleByTime(bl(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ya).catch(ya)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ya).catch(ya)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return vf.isOnline()?J(this,Qr).resumePausedMutations():Promise.resolve()}getQueryCache(){return J(this,Et)}getMutationCache(){return J(this,Qr)}getDefaultOptions(){return J(this,Cr)}setDefaultOptions(e){je(this,Cr,e)}setQueryDefaults(e,t){J(this,Wo).set(kl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...J(this,Wo).values()],i={};return t.forEach(s=>{ac(e,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(e,t){J(this,ec).set(kl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...J(this,ec).values()],i={};return t.forEach(s=>{ac(e,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...J(this,Cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ay(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===my&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...J(this,Cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){J(this,Et).clear(),J(this,Qr).clear()}},Et=new WeakMap,Qr=new WeakMap,Cr=new WeakMap,Wo=new WeakMap,ec=new WeakMap,Sr=new WeakMap,tc=new WeakMap,nc=new WeakMap,Cj);class Vo extends Error{constructor(){super("The dashboard read was superseded by a newer route or binding generation.");xu(this,"code","DASHBOARD_STALE_RESPONSE");this.name="DashboardStaleResponseError"}}class s4 extends Error{constructor(){super("The dashboard read failed safely.");xu(this,"code","DASHBOARD_READ_FAILED");this.name="DashboardReadError"}}const o4=["productArea","route","actorId","projectId","scopeId","domainId","domainVersion","cycleId","subjectId","generation"];function Gx(e,t){return o4.every(i=>e[i]===t[i])}function c4(e){return JSON.stringify(EA(e))}function cA(){const e=new r4({defaultOptions:{queries:{gcTime:Number.POSITIVE_INFINITY,retry:!1,staleTime:0}}}),t=new Map,i=new Map;let s=null,c=!1;const d=()=>{for(const g of t.values())g.abort();t.clear(),i.clear(),e.cancelQueries()},u=g=>{if(c)throw new Error("Dashboard query client is disposed.");const m=Ze(g);if(s&&$e(s,m))return s;const y=s;s=m,d();for(const A of e.getQueryCache().findAll()){const E=Array.isArray(A.queryKey)&&A.queryKey[0]==="dashboard-projection"?A.queryKey[1]:null;if(E)try{const b=Ze(E);Gx(b,m)||e.removeQueries({queryKey:A.queryKey,exact:!0})}catch{e.removeQueries({queryKey:A.queryKey,exact:!0})}}return y&&Gx(y,m)&&e.invalidateQueries({queryKey:["dashboard-projection"],refetchType:"none"}),m};return Object.freeze({queryClient:e,activate:u,read:(g,m,y)=>{const A=u(g),E=c4(A),b=i.get(E);if(b)return b;const w=new AbortController;t.set(E,w);const j=Promise.resolve().then(()=>m({identity:A,signal:w.signal})).then(I=>{const Q=y(I);if(w.signal.aborted||!s||!$e(A,s))throw new Vo;return e.setQueryData(EA(A),Q),Q}).catch(I=>{throw I instanceof Vo?I:w.signal.aborted||!s||!$e(A,s)?new Vo:new s4}).finally(()=>{t.get(E)===w&&t.delete(E),i.get(E)===j&&i.delete(E)});return i.set(E,j),j},getCurrentIdentity:()=>s,getData:g=>e.getQueryData(EA(g)),inFlightCount:()=>i.size,dispose:()=>{c||(c=!0,d(),s=null,e.clear())}})}const Wn=Object.freeze({checking:"Checking the current durable projection.",changed:"Durable state changed. Controls remain unavailable until the bound view is current.",failed:"The current projection could not be reconciled safely."}),l4=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;function d4(e){const t=e??"default";if(!l4.test(t))throw new Error("Bound projection source key is invalid.");return t}function Yx(e=()=>{},t=()=>Promise.reject(new Error(Wn.failed))){return Object.freeze({phase:"idle",identity:null,data:null,mutationEnabled:!1,reason:null,refetch:e,reconcile:t})}function nm(e,t){return e.productArea===t.productArea&&e.route===t.route&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.subjectId===t.subjectId&&e.generation===t.generation}function u4(){let e=cA();const t=new Set;let i=Yx(),s=null,c=null,d=null,u=null,p=!1,g=0,m=0,y=0,A=!1,E=0,b=0,w=!1;const j=U=>{if(p||!s)return;if(u){w=!0,Q({phase:i.data===null?"stale":"refreshing",identity:i.identity??s.identity,data:i.data,mutationEnabled:!1,reason:Wn.changed});return}_(s.identity),Q({phase:i.data===null?"stale":"refreshing",identity:i.identity??s.identity,data:i.data,mutationEnabled:!1,reason:Wn.changed});const Z=b;u=N(!0).finally(()=>{Z===b&&(u=null,w&&(w=!1,j()))})},I=()=>j(),Q=U=>{i=Object.freeze({...U,refetch:I,reconcile:T});for(const Z of t)Z()},S=U=>!p&&s!==null&&$e(U,s.identity),C=()=>{E+=1,c==null||c.close(),c=null,d==null||d.dispose(),d=null},_=U=>{y+=1,e.dispose(),e=cA(),e.activate(U)},O=()=>{b+=1,u=null,w=!1},T=async()=>{const U=(s==null?void 0:s.identity)??null;if(p||U===null)throw new Error(Wn.failed);for(j();u!==null;){const Z=u;if(await Z,Z===u)break}if(p||s===null||!$e(U,s.identity)||i.phase!=="ready"||i.identity===null||i.data===null||!nm(i.identity,U))throw new Error(Wn.failed);return i},N=async U=>{const Z=s;if(!Z||p)return;const q=++y,re=i.identity!==null&&($e(i.identity,Z.identity)||U&&nm(i.identity,Z.identity))?i.data:null,pe=re!==null?i.identity:Z.identity;Q({phase:U&&re!==null?"refreshing":"loading",identity:pe,data:re,mutationEnabled:!1,reason:U?Wn.changed:Wn.checking});try{const K=await e.read(Z.identity,Z.read,Z.validate);if(!S(Z.identity)||q!==y)return;let ie=Z.identity,W=!1;if(Z.live){const le=Z.live.reconcile(K),oe=d==null?void 0:d.getCursor();if(oe&&(le.cursor.eventHead.sequence<oe.eventHead.sequence||le.cursor.eventHead.sequence===oe.eventHead.sequence&&(le.cursor.eventHead.hash!==oe.eventHead.hash||le.cursor.viewHash!==oe.viewHash)))throw new Vo;if(d){if(!d.markReconciled(le.cursor,{mutationEnabled:le.mutationEnabled,reasonCodes:le.reasonCodes}))throw new Vo}else if(!A)throw new Vo;ie=Ze({...Z.identity,eventHead:le.cursor.eventHead,viewHash:le.cursor.viewHash}),W=le.mutationEnabled}Q({phase:Z.live&&A?"stale":"ready",identity:ie,data:K,mutationEnabled:A?!1:W,reason:A?Wn.failed:null})}catch{if(!S(Z.identity)||q!==y)return;Q({phase:"stale",identity:pe,data:re,mutationEnabled:!1,reason:Wn.failed})}},$=U=>{if(A=!1,!U.live)return;const Z=++E;d=TS({identity:U.identity,isCurrent:()=>S(U.identity),onSnapshot:(de,re)=>{if(S(U.identity))try{const pe=U.validate(de);O(),_(U.identity),Q({phase:"refreshing",identity:Ze({...U.identity,eventHead:re.eventHead,viewHash:re.viewHash}),data:pe,mutationEnabled:!1,reason:Wn.checking})}catch{j()}},onPatch:()=>j(),onReady:de=>{!S(U.identity)||i.data===null||A||Q({...i,phase:"ready",mutationEnabled:de.mutationEnabled,reason:null})},onStale:()=>{S(U.identity)&&Q({phase:i.data===null?"stale":"refreshing",identity:i.identity??U.identity,data:i.data,mutationEnabled:!1,reason:Wn.changed})},onRefetch:j});try{c=kS({origin:U.live.origin,identity:U.identity,reconciler:d,fetcher:U.live.fetcher,lastEventId:U.live.lastEventId})}catch{A=!0,d.dispose(),d=null,c=null;return}const q=()=>{Z!==E||!S(U.identity)||(A=!0,O(),Q({phase:"stale",identity:i.identity??U.identity,data:i.data,mutationEnabled:!1,reason:Wn.failed}))};c.completion.then(q,q)},G=U=>{var re,pe,K,ie;if(p)throw new Error("Bound projection controller is disposed.");const Z=Ze(U.identity),q=d4(U.sourceKey),de=(s==null?void 0:s.sourceKey)===q&&((re=s.live)==null?void 0:re.origin)===((pe=U.live)==null?void 0:pe.origin)&&((K=s.live)==null?void 0:K.lastEventId)===((ie=U.live)==null?void 0:ie.lastEventId);s&&$e(s.identity,Z)&&de||(C(),O(),s&&$e(s.identity,Z)&&_(Z),s={...U,identity:Z,sourceKey:q},e.activate(Z),$(s),N(!1))};return Object.freeze({activate:G,subscribe:U=>(t.add(U),()=>t.delete(U)),getSnapshot:()=>i,isActiveIdentity:U=>s!==null&&$e(s.identity,U),retain:U=>{const Z=++m;return g+=1,G(U),()=>{g=Math.max(0,g-1),queueMicrotask(()=>{g===0&&Z===m&&!p&&(C(),O(),e.dispose(),e=cA(),s=null,u=null)})}},dispose:()=>{p||(p=!0,C(),O(),e.dispose(),s=null,u=null,t.clear(),i=Yx())}})}function f4(e){const[t]=B.useState(u4),{identity:i,read:s,sourceKey:c="default",validate:d,live:u}=e,p=JSON.stringify(i),g=B.useMemo(()=>Ze(JSON.parse(p)),[p]),m=u==null?void 0:u.origin,y=u==null?void 0:u.fetcher,A=u==null?void 0:u.lastEventId,E=u==null?void 0:u.reconcile,b=u!==void 0,w=B.useRef(s),j=B.useRef(d),I=B.useRef(y),Q=B.useRef(E);w.current=s,j.current=d,I.current=y,Q.current=E;const S=B.useCallback(G=>w.current(G),[]),C=B.useCallback(G=>j.current(G),[]),_=B.useCallback((...G)=>(I.current??fetch)(...G),[]),O=B.useCallback(G=>{const U=Q.current;if(!U)throw new Error("Bound projection live reconciler is unavailable.");return U(G)},[]),T=B.useMemo(()=>b&&m!==void 0?Object.freeze({origin:m,fetcher:_,lastEventId:A,reconcile:O}):void 0,[b,A,m,_,O]),N=B.useMemo(()=>Object.freeze({identity:g,sourceKey:c,read:S,validate:C,live:T}),[g,c,T,S,C]);B.useEffect(()=>t.retain(N),[N,t]);const $=B.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot);return $.identity===null||!t.isActiveIdentity(g)||!nm($.identity,g)?Object.freeze({phase:"loading",identity:g,data:null,mutationEnabled:!1,reason:Wn.checking,refetch:$.refetch,reconcile:$.reconcile}):$}const p4=/^sha256:[a-f0-9]{64}$/u;function LS(e,t){return e.kind==="review"&&e.cycleId===t&&p4.test(e.readActionDigest)&&e.deepLink===`#/operate/cycles/${encodeURIComponent(e.cycleId)}/reviews/${encodeURIComponent(e.reviewId)}`}function PS(e,t){const i=e.inbox.flatMap(s=>{const c=s.navigationLocator;return c&&LS(c,t)?[c]:[]});return i.length===1?i[0]:null}const h4=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function g4(e){return Object.freeze(e==="business"?{domain:"business",title:"Business Cycle",assignment:"Business assignment",outcome:"Business outcome"}:e==="software"?{domain:"repository",title:"Repository Cycle",assignment:"Repository assignment",outcome:"Repository outcome"}:{domain:"operating",title:"Operating Cycle",assignment:"Operating assignment",outcome:"Operating outcome"})}function FS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function VS(e){const t=FS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=mf(i),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycle",subjectId:t.subjectId,cycleId:t.cycleId});return mf(s,d),!0}catch{return!1}}}function Hx(e,t,i){if(!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,t)||!VS(t)(e.data))return null;const s=e.data,c=s.payload,d=h4[e.kind];if(d===void 0||c.status!==d||c.mutationEnabled!==!1||e.mutationEnabled)return null;const u=c.data.cycle;return Object.freeze({kind:"cycle",source:i,presentation:d,binding:e.binding,display:s,workspace:c,vocabulary:g4(c.domainId),cycle:u,progress:c.data.progress,stages:u.stages,assignments:u.assignments,dependencies:u.dependencies,blockers:u.blockers,currentStage:u.stages.find(p=>p.state==="current")??null,persistentWork:c.data.persistentWork,replay:c.data.replay,verification:c.data.verification,allowedActions:c.data.allowedActions,mutationEnabled:!1})}function A4(e,t){const i=FS(t);if(!i)return null;if(e.resumable){const s=Hx(e.resumable.workspace,i,"durable-resume");if(s)return s}return Hx(e.current.workspace,i,"current")}function wl(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function m4(e){return!e||!Array.isArray(e.findings)||!Array.isArray(e.dissent)?null:e}function y4(e){return!e||!Array.isArray(e.decisions)?null:e}function E4(e){return e?(e.kind==="omitted"||e.kind==="lens",e.reason):"No absence was returned."}function v4({seat:e,index:t}){const i=e.artifact!==null;return r.jsxs("article",{className:"op-executive-seat","data-seat-role-id":e.roleId,"data-seat-role-kind":e.roleKind,"data-seat-state":e.assignmentState??"absent","aria-labelledby":`op-executive-seat-${t}-title`,children:[r.jsxs("header",{className:"op-executive-seat__header",children:[r.jsx("p",{className:"op-eyebrow",children:wl(e.roleKind)}),r.jsx("h3",{id:`op-executive-seat-${t}-title`,children:e.label}),r.jsx("p",{children:e.assignmentState?wl(e.assignmentState):"Not issued"})]}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Report"}),r.jsx("dd",{children:i?"Submitted":"Not submitted"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:e.assignmentState?wl(e.assignmentState):"Not issued"})]}),e.absence?r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absence"}),r.jsx("dd",{children:E4(e.absence)})]}):null]}),r.jsxs("details",{className:"op-executive-seat__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-executive-seat__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role ID"}),r.jsxs("dd",{children:[r.jsx("code",{children:e.roleId})," · v",e.roleVersion]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Assignment ID"}),r.jsx("dd",{children:e.assignmentId?r.jsx("code",{children:e.assignmentId}):"Not issued"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Artifact"}),r.jsx("dd",{children:i?r.jsxs(r.Fragment,{children:[r.jsx("code",{children:e.artifact.artifactId}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Raw ",r.jsx("code",{children:e.artifact.rawHash})]}),r.jsxs("span",{className:"op-executive-seat__hash",children:["Canonical ",r.jsx("code",{children:e.artifact.canonicalHash})]})]}):"No accepted artifact was returned."})]})]})]})]})}function B4({findings:e}){return e?r.jsxs("section",{className:"op-executive-challenger","aria-labelledby":"op-executive-challenger-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Independent challenge"}),r.jsx("h2",{id:"op-executive-challenger-title",children:"Challenger findings"})]}),r.jsx("p",{children:"The Challenger tests the board's assumptions independently."})]}),e.findings.length>0?r.jsx("ul",{className:"op-executive-claims",children:e.findings.map((t,i)=>r.jsxs("li",{children:[r.jsx("strong",{children:t.title}),r.jsx("p",{children:t.statement}),r.jsxs("p",{children:[wl(t.severity)," severity · ",wl(t.state)]}),r.jsxs("details",{className:"op-executive-claim__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.findingId})," · ",r.jsx("code",{children:t.findingType})]})]},`${t.findingId}:${i}`))}):r.jsx("p",{children:"No Challenger finding was returned."}),e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Dissent"}),r.jsx("ul",{children:e.dissent.map((t,i)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${i}`))})]}):null]}):null}function b4({synthesis:e}){return e?r.jsxs("section",{className:"op-executive-chair","aria-labelledby":"op-executive-chair-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence-bound synthesis"}),r.jsx("h2",{id:"op-executive-chair-title",children:"Chair synthesis"})]}),r.jsx("p",{children:"The Chair brings the reports together. Any next step still needs review."})]}),e.decisions.length>0?r.jsx("div",{className:"op-executive-decisions",children:e.decisions.map((t,i)=>r.jsxs("article",{children:[r.jsx("h3",{children:t.title??"Untitled decision"}),t.question?r.jsx("p",{children:t.question}):null,t.outcome?r.jsx("p",{children:t.outcome}):null,t.rationale?r.jsx("p",{children:t.rationale}):null,t.actionHypotheses.length>0?r.jsx("ul",{children:t.actionHypotheses.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:s.title??"Proposed action"}),s.expectedResult?r.jsx("span",{children:s.expectedResult}):null]},`${s.title??"action"}:${c}`))}):null]},`${t.title??"decision"}:${i}`))}):r.jsx("p",{children:"No Chair decision was returned."}),e.unresolvedGaps.length>0?r.jsxs("div",{className:"op-executive-gaps",children:[r.jsx("h3",{children:"Unresolved gaps"}),r.jsx("ul",{children:e.unresolvedGaps.map((t,i)=>r.jsxs("li",{children:[r.jsx("span",{children:t.reason}),r.jsxs("details",{className:"op-executive-gap__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:t.kind==="role"?t.roleId:t.requirementId})," ·"," ",r.jsx("code",{children:t.absenceCode})]})]},`${t.kind}:${t.kind==="role"?t.roleId:t.requirementId}:${i}`))})]}):null,e.dissent.length>0?r.jsxs("div",{className:"op-executive-dissent",children:[r.jsx("h3",{children:"Preserved dissent"}),r.jsx("ul",{children:e.dissent.map((t,i)=>r.jsxs("li",{children:[r.jsx("span",{children:t.statement}),r.jsxs("small",{children:[" Resolve when ",t.resolutionCondition]})]},`${t.sourceArtifactId}:${t.localDissentId}:${i}`))})]}):null]}):null}function w4({model:e}){const t=e.board;return r.jsxs("section",{className:"op-executive-board","aria-labelledby":"op-executive-board-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Issued executive board"}),r.jsx("h2",{id:"op-executive-board-title",children:"Executive seats"})]}),r.jsx("p",{children:"See the perspectives that informed this cycle."})]}),r.jsx("div",{className:"op-executive-board__seats",children:t.seats.map((i,s)=>r.jsx(v4,{seat:i,index:s},`${i.roleId}:${s}`))}),t.challengerFindings?r.jsx(B4,{findings:m4(t.challengerFindings)}):null,t.chairSynthesis?r.jsx(b4,{synthesis:y4(t.chairSynthesis)}):null]})}function qS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.domainId==="business"&&t.cycleId!==null&&t.subjectId===t.cycleId&&t.route===`#/operate/cycles/${encodeURIComponent(t.cycleId)}`&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function KS(e){const t=qS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=KA(i),c=s.payload;if(t.eventHead===null||t.viewHash===null||t.cycleId===null||t.subjectId===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,subjectId:t.subjectId,cycleId:t.cycleId});return KA(s,d),c.data.executiveBoard.seats.every(u=>u.roleId!==u.label&&typeof u.label=="string")}catch{return!1}}}function x4(e,t){if(qS(t)===null||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,t)||!KS(t)(e.data)||e.mutationEnabled)return null;const s=e.data,c=s.payload;return c.mutationEnabled!==!1?null:Object.freeze({kind:"executive-board",binding:e.binding,display:s,board:c.data.executiveBoard,mutationEnabled:!1})}function j4(e,t,i){if(e.vocabulary.domain!=="business")return Object.freeze({kind:"hidden"});if(!t)return Object.freeze({kind:"unavailable",title:"Executive board not yet issued",description:"The owner has not issued a verified executive board display for this business Cycle."});const s=x4(t,i);return s||Object.freeze({kind:"incompatible"})}function ic(e){return e.charAt(0).toUpperCase()+e.slice(1)}function zx(e){if(e==="normal")return"On track";const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function I4(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function JS({stages:e,health:t,eyebrow:i="Active lifecycle",title:s,labelledBy:c="op-operating-spine-title"}){const d=e.find(u=>u.state==="current");return r.jsxs("section",{className:"op-cycle-spine","aria-labelledby":c,children:[r.jsxs("div",{className:"op-cycle-spine__heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:i}),r.jsx("h2",{id:c,children:s??(d?ic(d.id):zx(t))})]}),r.jsx("p",{children:zx(t)})]}),r.jsx("ol",{"aria-label":"Observe through Learn operating spine",children:e.map((u,p)=>r.jsxs("li",{"data-projection-state":u.state,"aria-current":u.state==="current"?"step":void 0,children:[r.jsx("span",{"aria-hidden":"true",children:String(p+1).padStart(2,"0")}),r.jsx("strong",{children:ic(u.id)}),r.jsx("small",{children:u.reason??I4(u.state)})]},`${u.id}:${p}`))})]})}function Zt(e){const t=e.replace(/([a-z0-9])([A-Z])/gu,"$1 $2").replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function _i(e,t,i=`${t}s`){return`${e} ${e===1?t:i}`}function Ra({values:e,empty:t,className:i}){return e.length>0?r.jsx("ul",{className:i,children:e.map((s,c)=>r.jsx("li",{children:r.jsx("code",{children:s})},`${s}:${c}`))}):r.jsx("p",{children:t})}function Q4({model:e}){return r.jsxs("section",{className:"op-cycle-stages","aria-labelledby":"op-cycle-stages-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Cycle progress"}),r.jsx("h2",{id:"op-cycle-stages-title",children:"What is happening now"})]}),r.jsx("p",{children:"Open a stage to inspect only its returned inputs, outputs, gates, gaps, and uncertainty."})]}),r.jsx("div",{className:"op-cycle-stages__ledger",children:e.stages.map((t,i)=>r.jsxs("details",{className:"op-cycle-stage",open:t.state==="current","data-stage-state":t.state,children:[r.jsxs("summary",{children:[r.jsx("span",{"aria-hidden":"true",children:String(i+1).padStart(2,"0")}),r.jsx("strong",{children:ic(t.id)}),r.jsx("small",{children:t.reason??Zt(t.state)}),r.jsx("span",{className:"op-cycle-stage__status",children:Zt(t.state)})]}),r.jsxs("div",{className:"op-cycle-stage__overview",children:[r.jsx("span",{children:_i(t.inputArtifactIds.length,"input")}),r.jsx("span",{children:_i(t.outputArtifactIds.length,"output")}),r.jsx("span",{children:_i(t.gates.length,"gate")}),r.jsx("span",{children:_i(t.evidenceGapIds.length,"evidence gap")}),r.jsx("span",{children:_i(t.uncertaintyIds.length,"uncertainty","uncertainties")}),r.jsx("span",{children:_i(t.persistentActionIds.length,"persistent action")})]}),r.jsxs("details",{className:"op-cycle-stage__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-stage__body",children:[r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${i}-inputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${i}-inputs`,children:"Inputs"}),r.jsx(Ra,{values:t.inputArtifactIds,empty:"No inputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${i}-outputs`,children:[r.jsx("h3",{id:`op-cycle-stage-${i}-outputs`,children:"Outputs"}),r.jsx(Ra,{values:t.outputArtifactIds,empty:"No outputs were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${i}-gates`,children:[r.jsx("h3",{id:`op-cycle-stage-${i}-gates`,children:"Gates"}),t.gates.length>0?r.jsx("ul",{children:t.gates.map((s,c)=>r.jsxs("li",{children:[r.jsx("strong",{children:Zt(s.kind)})," ",r.jsx("code",{children:s.subjectId})," ",r.jsx("span",{children:Zt(s.state)})]},`${s.kind}:${s.subjectId}:${c}`))}):r.jsx("p",{children:"No gates were returned."})]}),r.jsxs("section",{"aria-labelledby":`op-cycle-stage-${i}-blockers`,children:[r.jsx("h3",{id:`op-cycle-stage-${i}-blockers`,children:"Blockers and uncertainty"}),r.jsxs("div",{className:"op-cycle-stage__signals",children:[r.jsxs("div",{children:[r.jsx("h4",{children:"Evidence gaps"}),r.jsx(Ra,{values:t.evidenceGapIds,empty:"No evidence gaps were returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Uncertainty"}),r.jsx(Ra,{values:t.uncertaintyIds,empty:"No uncertainty was returned."})]}),r.jsxs("div",{children:[r.jsx("h4",{children:"Persistent actions"}),r.jsx(Ra,{values:t.persistentActionIds,empty:"No persistent actions were returned for this stage."})]})]})]})]})]})]},`${t.id}:${i}`))})]})}function C4({model:e}){return r.jsxs("section",{className:"op-cycle-ownership","aria-labelledby":"op-cycle-ownership-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"People and dependencies"}),r.jsx("h2",{id:"op-cycle-ownership-title",children:"Work in this cycle"})]}),r.jsx("p",{children:"See who owns the work, what it depends on, and what is blocking progress."})]}),e.assignments.length>0?r.jsx("ol",{className:"op-cycle-assignments","aria-label":"Cycle assignments",children:e.assignments.map((t,i)=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("span",{children:String(i+1).padStart(2,"0")}),r.jsx("div",{children:r.jsx("strong",{children:t.title??e.vocabulary.assignment})})]}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Role"}),r.jsx("dd",{children:t.role?Zt(t.role):"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:t.ownerLabel??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State"}),r.jsx("dd",{children:Zt(t.state)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Due"}),r.jsx("dd",{children:t.dueAt??"Not returned"})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("div",{className:"op-cycle-assignment__detail",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Assignment ID"}),r.jsx("code",{children:t.assignmentId})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Dependencies"}),t.dependencies.length>0?r.jsx("ul",{children:t.dependencies.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId})," ·"," ",s.state??"state not returned"," ·"," ",s.resolved?"resolved":"unresolved"]},`${s.assignmentId}:${c}`))}):r.jsx("p",{children:"No dependency was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Blockers"}),r.jsx(Ra,{values:t.blockers,empty:"No blocker was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Artifacts"}),r.jsx("p",{children:"Inputs"}),r.jsx(Ra,{values:t.inputArtifactIds,empty:"No input Artifact was returned."}),r.jsx("p",{children:"Outputs"}),r.jsx(Ra,{values:t.outputArtifactIds,empty:"No output Artifact was returned."})]}),t.next?r.jsxs("p",{children:["Next step: ",r.jsx("strong",{children:t.next.label})," ",r.jsx("code",{children:t.next.tool})]}):null]})]})]},`${t.assignmentId}:${i}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No assignment was returned for this Cycle."}),r.jsxs("div",{className:"op-cycle-relations",children:[r.jsxs("section",{"aria-labelledby":"op-cycle-dependencies-title",children:[r.jsx("h3",{id:"op-cycle-dependencies-title",children:"Dependency graph"}),e.dependencies.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[_i(e.dependencies.length,"dependency","dependencies")," in this cycle."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.dependencies.map((t,i)=>r.jsxs("li",{children:[r.jsx("strong",{children:Zt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx("ul",{children:t.dependsOn.map((s,c)=>r.jsxs("li",{children:[r.jsx("code",{children:s.assignmentId??s.actionId})," ·"," ",s.state?Zt(s.state):"State not returned"," ·"," ",s.resolved?"Resolved":"Unresolved"]},`${s.assignmentId??s.actionId??"dependency"}:${c}`))})]},`${t.subjectKind}:${t.subjectId}:${i}`))})]})]}):r.jsx("p",{children:"No dependencies were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-cycle-blockers-title",children:[r.jsx("h3",{id:"op-cycle-blockers-title",children:"Cycle blockers"}),e.blockers.length>0?r.jsxs(r.Fragment,{children:[r.jsxs("p",{children:[_i(e.blockers.length,"blocker")," need attention."]}),r.jsxs("details",{className:"op-cycle-relations__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("ol",{children:e.blockers.map((t,i)=>r.jsxs("li",{children:[r.jsx("strong",{children:Zt(t.subjectKind)})," ",r.jsx("code",{children:t.subjectId}),r.jsx(Ra,{values:t.blockingSubjectIds,empty:"No blocking subject was returned."})]},`${t.subjectKind}:${t.subjectId}:${i}`))})]})]}):r.jsx("p",{children:"No blockers are currently returned."})]})]})]})}function S4({model:e}){const t=[...e.persistentWork.findings,...e.persistentWork.decisions,...e.persistentWork.actions];return r.jsxs("section",{className:"op-cycle-persistent","aria-labelledby":"op-cycle-persistent-title",children:[r.jsxs("div",{className:"op-cycle-section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Beyond Cycle closure"}),r.jsx("h2",{id:"op-cycle-persistent-title",children:"Persistent work"})]}),r.jsx("p",{children:"Closure does not complete or delete the work this Cycle created or touched."})]}),t.length>0?r.jsx("ol",{className:"op-cycle-persistent__items",children:t.map((i,s)=>r.jsxs("li",{children:[r.jsx("span",{children:Zt(i.kind)}),r.jsx("strong",{children:Zt(i.state)}),r.jsx("small",{children:_i(i.relations.length,"related record")}),r.jsxs("details",{className:"op-cycle-persistent__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:i.subjectId}),r.jsx(Ra,{values:i.relations,empty:"No related records were returned."})]})]},`${i.kind}:${i.subjectId}:${s}`))}):r.jsx("p",{className:"op-cycle-empty-line",children:"No persistent Finding, Decision, or Action was returned."}),r.jsxs("div",{className:"op-cycle-outcomes",children:[r.jsxs("section",{children:[r.jsx("h3",{children:"Outcomes"}),e.persistentWork.outcomes.length>0?r.jsx("ol",{children:e.persistentWork.outcomes.map((i,s)=>r.jsxs("li",{children:[i.deepLink?r.jsx("a",{href:i.deepLink,children:Zt(i.status)}):r.jsx("strong",{children:Zt(i.status)}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:i.outcomeId})]})]},`${i.outcomeId}:${s}`))}):r.jsx("p",{children:"No Outcome was returned."})]}),r.jsxs("section",{children:[r.jsx("h3",{children:"Learnings"}),e.persistentWork.learnings.length>0?r.jsx("ol",{children:e.persistentWork.learnings.map((i,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:i.statement}),r.jsxs("details",{className:"op-cycle-outcome__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:i.learningId})]})]},`${i.learningId}:${s}`))}):r.jsx("p",{children:"No Learning was returned."})]})]})]})}function O4({model:e}){const t=e.replay.checkpoint;return r.jsxs("aside",{className:"op-cycle-proof","aria-labelledby":"op-cycle-proof-title",children:[r.jsx("p",{className:"op-eyebrow",children:"History and verification"}),r.jsx("h2",{id:"op-cycle-proof-title",children:"Confidence in this cycle"}),r.jsxs("section",{className:"op-cycle-verification","data-verification":e.verification.status,children:[r.jsx("h3",{children:Zt(e.verification.status)}),r.jsx("p",{children:e.verification.status==="unverified"?"Required proof is missing or incomplete. This Cycle is not presented as verified.":e.verification.status==="not-required"?"The canonical projection returned no required verification.":"The canonical projection returned complete affirmative verification proof."}),e.verification.reasonCodes.length>0?r.jsxs("details",{className:"op-cycle-verification__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx(Ra,{values:e.verification.reasonCodes,empty:"No reason codes were returned."})]}):null]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-cycle-proof__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Final head"}),r.jsx("dd",{children:r.jsx("code",{children:e.replay.finalHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Tail events"}),r.jsx("dd",{children:e.replay.tail.eventCount})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint"}),r.jsx("dd",{children:t?"returned":"not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Checkpoint verified"}),r.jsx("dd",{children:e.replay.parityProof.checkpointVerified?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Final hash matches"}),r.jsx("dd",{children:e.replay.parityProof.finalEventHashMatches?"yes":"no"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"State parity"}),r.jsx("dd",{children:e.replay.parityProof.stateParityVerified?"yes":"no"})]})]}),t?r.jsxs("div",{className:"op-cycle-proof__checkpoint",children:[r.jsx("time",{dateTime:t.createdAt,children:t.createdAt}),r.jsx("code",{children:t.runtimeStateHash}),r.jsx("code",{children:t.eventReplayIndexHash}),r.jsx("span",{children:t.recoveryVersion})]}):null]}),r.jsxs("section",{className:"op-cycle-read-actions","aria-labelledby":"op-cycle-read-actions-title",children:[r.jsx("h3",{id:"op-cycle-read-actions-title",children:"Available actions"}),r.jsx("ul",{children:e.allowedActions.map((i,s)=>r.jsxs("li",{children:[r.jsx("strong",{children:i.label}),r.jsx("span",{children:Zt(i.effect)}),r.jsxs("details",{className:"op-cycle-read-actions__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("code",{children:i.tool})]})]},`${i.tool}:${s}`))}),r.jsx("p",{children:"Action details are available only when the current cycle allows them."})]})]})}function _4({model:e,currentBinding:t,executiveBoard:i}){const s=j4(e,i,t);return s.kind==="hidden"?null:s.kind==="unavailable"?r.jsx("section",{className:"op-executive-board op-executive-board--unavailable","aria-live":"polite",children:r.jsx(we,{state:"unavailable",eyebrow:"Executive board",title:s.title,description:s.description})}):s.kind==="incompatible"?r.jsx("section",{className:"op-executive-board op-executive-board--incompatible",children:r.jsx(we,{state:"incompatible",eyebrow:"Executive board",title:"Executive board cannot be trusted",description:"The owner-issued executive board display did not pass exact binding and integrity verification."})}):r.jsx(w4,{model:s})}function N4({currentBinding:e,sources:t,reviewNavigation:i=null}){const s=A4(t,e);if(!s)return r.jsx("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle",children:r.jsx(we,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycle cannot be trusted",description:"The owner-issued workspace did not pass exact binding and integrity verification."})});const c=i&&LS(i,s.cycle.cycleId)?i:null;return r.jsxs("div",{className:"op-workspace op-cycle-detail pc-operate","data-route-kind":"operate.cycle","data-cycle-presentation":s.presentation,"data-cycle-source":s.source,children:[r.jsxs("ul",{className:"pc-metrics","aria-label":"Cycle progress",children:[r.jsx(Da,{label:"terminal",value:s.progress.terminal}),r.jsx(Da,{label:"total",value:s.progress.total})]}),r.jsx(ct,{headingLevel:1,eyebrow:`planr-operate · ${s.vocabulary.title.toLowerCase()}`,title:s.cycle.focus[0]??s.vocabulary.title,description:`${Zt(s.cycle.state)} · ${Zt(s.cycle.health)}`,actions:r.jsxs(r.Fragment,{children:[r.jsx(wa,{state:s.cycle.state}),r.jsx(wa,{state:s.cycle.health}),c?r.jsx("a",{className:"pc-row-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):null]})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your saved cycle has been restored."}):null,s.cycle.state==="closed"?r.jsx("p",{className:"pc-operate__notice",role:"status",children:"This Cycle is closed. Persistent Decisions, Actions, Findings, Outcomes, and Learnings remain discoverable below."}):null,r.jsx(JS,{stages:s.stages,cycleId:s.cycle.cycleId,health:s.cycle.health,eyebrow:"Observe through Learn",title:s.currentStage?ic(s.currentStage.id):Zt(s.cycle.state),labelledBy:"op-cycle-detail-spine-title"}),r.jsx(_4,{model:s,currentBinding:e,executiveBoard:t.current.executiveBoard}),r.jsxs("div",{className:"op-cycle-detail__workspace",children:[r.jsxs("div",{className:"op-cycle-detail__primary",children:[r.jsx(Q4,{model:s}),r.jsx(C4,{model:s}),r.jsx(S4,{model:s})]}),r.jsx(O4,{model:s})]})]})}const R4=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,D4=4*1024*1024;function T4(e){return typeof e=="object"&&e!==null&&e.kind==="operate-executive-board-display-surface"}function k4(e,t,i){if(!R4.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(i.productArea!=="operate"||i.cycleId===null||i.subjectId===null)throw new Error("Operate Cycle detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s}async function M4(e){const{identity:t}=e;if(t.domainId!=="business"||t.cycleId===null)return null;const i=k4(e.origin,`/api/operate/cycles/${encodeURIComponent(t.cycleId)}/executive-board`,t),s=await(e.fetcher??fetch)(i,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>D4)throw new Error("Executive board response exceeds the dashboard JSON limit.");let d;try{d=JSON.parse(c)}catch{throw new Error("Executive board response is not JSON.")}if(!s.ok||!T4(d))return null;try{KA(d,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:d.payload.generatedAt,eventHead:d.payload.eventHead,viewHash:t.viewHash??d.payload.viewHash,subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return d}function G4(){if(typeof window>"u")return"";const{origin:e,protocol:t,hostname:i,pathname:s,search:c,hash:d}=window.location;return t!=="http:"||!["127.0.0.1","localhost"].includes(i)||s!=="/"||c||d?"":e}function Y4(e,t){const i=KS(e);return i(t)?Ho({kind:"ready",binding:e,data:t,reasonCodes:[],error:null,mutationEnabled:!1,policy:zo("ready")},{currentBinding:e,validateData:i}):null}function H4(e,t){const i=G4(),s=t&&i.length>0,c=f4({identity:e,sourceKey:s?"executive-board":"executive-board-offline",read:async({identity:d,signal:u})=>!s||d.cycleId===null?null:M4({origin:i,identity:d,signal:u}),validate:d=>{if(d===null)return null;const u=Y4(e,d);if(!u)throw new Error("Executive board display did not verify.");return u}});if(t){if(!s)return null;if(!(c.phase==="loading"||c.phase==="refreshing"))return c.phase!=="ready"?null:c.data}}function z4({currentBinding:e,workspace:t,reviewNavigation:i=null}){const s=e.domainId==="business",c=H4(e,s),d=Object.freeze({current:Object.freeze({workspace:t,...s?{executiveBoard:c??null}:{}})});return s&&c===void 0?r.jsx("div",{className:"op-workspace op-cycle-detail","data-route-kind":"operate.cycle",children:r.jsx(we,{state:"booting",eyebrow:"Executive board",title:"Loading executive board",description:"Waiting for the owner-issued executive board display for this business Cycle."})}):r.jsx(N4,{currentBinding:e,sources:d,reviewNavigation:i})}function ZS(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const U4=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function XS(e){try{const t=Ze(e);return t.productArea==="operate"&&t.route==="#/operate/cycles"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function yy(e){const t=XS(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=Yn(i),c=s.payload;if(c.surface!=="cycles"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"cycles",subjectId:null,cycleId:t.cycleId});return Yn(s,d),!0}catch{return!1}}}function $4(e,t){const i=XS(t);if(!i||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i)||!yy(i)(e.data))return null;const s=e.data;if(s.payload.surface!=="cycles")return null;const c=s.payload,d=U4[e.kind];return d===void 0||c.status!==d||c.mutationEnabled!==e.mutationEnabled?null:Object.freeze({display:s,surface:c,presentation:d})}function L4(e){return e==="business"?"Business Cycles":e==="software"?"Repository Cycles":"Operating Cycles"}const P4=new Set(["blocked","failed","cancelled"]);function F4(e){const t=e.stages.find(i=>i.state==="current");return t?ic(t.id):ZS(e.health)}const V4=[{key:"cycle",label:"Cycle",render:e=>r.jsx("a",{className:"pc-row-link",href:e.deepLink,"aria-label":`Open ${e.focus[0]??"cycle"}`,children:e.focus[0]??"Untitled cycle"})},{key:"state",label:"State",render:e=>r.jsx(wa,{state:e.state})},{key:"health",label:"Health",render:e=>r.jsx(wa,{state:e.health})},{key:"current",label:"Current stage",render:e=>F4(e)},{key:"assignments",label:"Assignments",align:"right",mono:!0,render:e=>e.assignments.length},{key:"persistent",label:"Persistent actions",align:"right",mono:!0,render:e=>e.persistentActionIds.length}];function q4({currentBinding:e,current:t}){const i=$4(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles",children:r.jsx(we,{state:"incompatible",eyebrow:"Cycle projection",title:"Cycles cannot be trusted",description:"The owner-issued display did not pass exact binding and integrity verification."})});const{surface:s,presentation:c}=i,d=s.data.cycles,u=d.map((m,y)=>({...m,id:`${m.cycleId}:${y}`})),p=[],g=new Map;for(const m of d)g.has(m.state)||p.push(m.state),g.set(m.state,(g.get(m.state)??0)+1);return r.jsxs("div",{className:"op-workspace op-cycle-list pc-operate","data-route-kind":"operate.cycles","data-cycle-presentation":c,children:[c!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",c," projection. Durable Cycle identity remains visible; no action is inferred."]}):null,p.length>0?r.jsx("ul",{className:"pc-metrics","aria-label":"Cycle states",children:p.map(m=>r.jsx(Da,{label:ZS(m),value:g.get(m)??0,tone:P4.has(m)?"attention":"default"},m))}):null,r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · cycles",title:L4(s.domainId),count:`${d.length} ${d.length===1?"cycle":"cycles"}`,description:"Follow the work from observation through learning."}),d.length===0?r.jsx(we,{state:"unavailable",eyebrow:"Cycles",title:"No cycles yet",description:"There is no active cycle in this workspace yet."}):r.jsx(zi,{columns:V4,rows:u,caption:"Operating cycles"})]})}const K4=Object.freeze({DetailRoute:z4,ListPage:q4,createListValidator:yy});function Ux(e){const t=e.replaceAll("-"," ").replaceAll("_"," ").trim();return t===""?e:`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function J4(e,t,i){return e.unavailableReason?`${e.unavailableReason.code}: ${e.unavailableReason.message}`:e.actionLocator===null?"No owner-issued action locator is available for this item.":t?null:i.length>0?i.join(" · "):"Mutation is unavailable for this exact Inbox projection."}function Z4(e){return ui({kind:"operate.inbox-item",subjectId:e})}function WS({item:e,mutationEnabled:t,pendingItemId:i,surfaceReasonCodes:s,showDeepLink:c=!0,headingLevel:d=3,onPreview:u}){const p=`op-inbox-action-${encodeURIComponent(e.itemId)}`,g=e.navigationLocator??null,m=J4(e,t,s),y=g===null&&m===null,A=d===2?"h2":"h3";return r.jsxs("article",{className:"op-inbox-item","data-inbox-kind":e.kind,"data-inbox-state":e.state,"data-inbox-blocking":e.blocking?"true":"false","aria-labelledby":`${p}-title`,children:[r.jsxs("header",{className:"op-inbox-item__header",children:[r.jsx("div",{className:"op-inbox-item__sequence","aria-hidden":"true"}),r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:Ux(e.kind)}),r.jsx(A,{id:`${p}-title`,children:e.title}),r.jsx("p",{className:"op-inbox-item__consequence",children:e.consequence})]}),r.jsx("span",{className:"op-inbox-item__state",children:Ux(e.state)})]}),r.jsxs("dl",{className:"op-inbox-item__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Owner"}),r.jsx("dd",{children:"Assigned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Blocking"}),r.jsx("dd",{children:e.blocking?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expiry"}),r.jsx("dd",{children:e.expiresAt?r.jsx("time",{dateTime:e.expiresAt,children:e.expiresAt}):"Not returned"})]})]}),r.jsxs("details",{className:"op-inbox-item__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsx("dl",{className:"op-inbox-item__facts",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Owner ID"}),r.jsx("dd",{children:r.jsx("code",{children:e.ownerActorId})})]})})]}),r.jsxs("div",{className:"op-inbox-item__disclosure",children:[r.jsxs("details",{children:[r.jsxs("summary",{children:["Evidence (",e.evidence.length,")"]}),e.evidence.length>0?r.jsx("ol",{children:e.evidence.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.evidenceRefId}),r.jsx("span",{children:E.relation}),r.jsxs("span",{children:[E.classification," · ",E.accessState]})]},`${E.evidenceRefId}:${b}`))}):r.jsx("p",{children:"No item-bound evidence was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Required parties (",e.requiredParties.length,")"]}),e.requiredParties.length>0?r.jsx("ol",{children:e.requiredParties.map((E,b)=>r.jsxs("li",{children:[r.jsx("code",{children:E.partyId}),r.jsx("span",{children:E.actorKind}),r.jsx("span",{children:E.state}),r.jsx("strong",{children:E.redacted?"Identity redacted":E.actorId??"Actor not returned"})]},`${E.partyId}:${b}`))}):r.jsx("p",{children:"No required party was returned."})]}),r.jsxs("details",{children:[r.jsxs("summary",{children:["Redactions (",e.redactions.length,")"]}),e.redactions.length>0?r.jsx("ol",{children:e.redactions.map((E,b)=>r.jsxs("li",{children:[r.jsx("span",{children:E.classification}),r.jsx("strong",{children:E.count}),r.jsx("code",{children:E.reason})]},`${E.classification}:${E.reason}:${b}`))}):r.jsx("p",{children:"No redaction was returned."})]})]}),r.jsxs("footer",{className:"op-inbox-item__actions",children:[c?r.jsx("a",{className:"op-inbox-item__link",href:Z4(e.itemId),children:"View item"}):r.jsx("a",{className:"op-inbox-item__link",href:"#/operate/inbox",children:"Back to Inbox"}),g?r.jsx("a",{className:"op-inbox-item__link","data-review-navigation":"","data-review-read-action-digest":g.readActionDigest,href:g.deepLink,children:"Open Review"}):r.jsx("fieldset",{className:"op-inbox-item__trigger-anchor","data-inbox-item-trigger-anchor":"",tabIndex:-1,"aria-labelledby":`${p}-title`,children:y?r.jsx(Lt,{id:p,disabled:!1,pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:()=>u(e,p),children:"Open verified preview"}):r.jsx(Lt,{id:p,disabled:!0,disabledReason:m??"No owner-issued action locator is available.","aria-haspopup":"dialog",children:"Open verified preview"})}),g===null&&i===e.itemId?r.jsx("span",{className:"op-inbox-item__pending",role:"status",children:"Verifying the exact owner preview."}):null]})]})}const am=Object.freeze(["decision","approval","verification"]),X4=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function eO(e){try{const t=Ze(e);return t.productArea==="operate"&&(t.route==="#/operate/inbox"||t.subjectId!==null&&t.route===`#/operate/inbox/${encodeURIComponent(t.subjectId)}`)&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Ey(e){const t=eO(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=Yn(i),c=s.payload;if(c.surface!=="inbox"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId});return Yn(s,d),!0}catch{return!1}}}function W4(e){return JSON.stringify([e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation])}function eL(e){var t,i;return JSON.stringify([e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.generation,((t=e.eventHead)==null?void 0:t.sequence)??null,((i=e.eventHead)==null?void 0:i.hash)??null,e.viewHash])}function $x(e,t){const i=eO(t);if(!i||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i))return null;const s=X4[e.kind];if(s===void 0||!Ey(i)(e.data))return null;const c=e.data;if(c.payload.surface!=="inbox")return null;const d=c.payload;if(d.status!==s||d.mutationEnabled!==e.mutationEnabled||d.data.requestBinding.projectId!==i.projectId||d.data.requestBinding.generation!==i.generation)return null;const u=d.data.inbox,p=Object.freeze({decision:Object.freeze(u.filter(y=>y.kind==="decision")),approval:Object.freeze(u.filter(y=>y.kind==="approval")),verification:Object.freeze(u.filter(y=>y.kind==="verification"))}),g=i.subjectId!==null,m=g?u.find(y=>y.itemId===i.subjectId)??null:null;return Object.freeze({kind:"inbox",presentation:s,binding:e.binding,actionContextKey:eL(i),selectionScopeKey:W4(i),display:c,surface:d,items:u,categories:p,detailRequested:g,detailItem:m,mutationEnabled:d.mutationEnabled&&vm(e,i)})}const fl=Object.freeze({decision:"Decision",approval:"Approval",verification:"Verification"});function tL(e){return am.some(t=>t===e)}function nL({model:e,mutationEnabled:t=e.mutationEnabled,selected:i,pendingItemId:s,onSelectedChange:c,onPreview:d}){return r.jsxs(Tu.Root,{className:"op-inbox-tabs",value:i,activationMode:"automatic",orientation:"horizontal",onValueChange:u=>{tL(u)&&c(u)},children:[r.jsx(Tu.List,{className:"op-inbox-tabs__list","aria-label":"Inbox categories",children:am.map(u=>{const p=e.categories[u].length,g=p===1?"item":"items";return r.jsxs(Tu.Trigger,{className:"op-inbox-tabs__trigger",value:u,"aria-label":`${fl[u]}, ${p} ${g}`,children:[r.jsx("span",{children:fl[u]})," ",r.jsx("strong",{"aria-hidden":"true",children:p})]},u)})}),am.map(u=>{const p=e.categories[u];return r.jsx(Tu.Content,{className:"op-inbox-tabs__panel",value:u,forceMount:!0,tabIndex:0,"aria-label":`${fl[u]} queue, ${p.length} ${p.length===1?"item":"items"}`,children:p.length>0?r.jsx("ol",{className:"op-inbox-queue","aria-label":`${fl[u]} items`,children:p.map(g=>r.jsx("li",{children:r.jsx(WS,{item:g,mutationEnabled:t,pendingItemId:s,surfaceReasonCodes:e.surface.reasonCodes,headingLevel:2,onPreview:d})},g.itemId))}):r.jsxs("section",{className:"op-inbox-empty",role:"status",children:[r.jsx("p",{className:"op-eyebrow",children:"Nothing to review"}),r.jsxs("h2",{children:["No ",fl[u].toLocaleLowerCase("en-US")," items"]}),r.jsx("p",{children:"This category is clear right now."})]})},u)})]})}function aL(e){return uy({...e,routeKinds:["operate.inbox","operate.inbox-item"],routeErrorCode:"OPERATE_INBOX_ROUTE_REQUIRED"})}const iL=2147e6;function Lx(e){return e instanceof DOMException&&e.name==="AbortError"}function Pu(e){return e instanceof Error&&e.name==="OPERATION_UNCERTAIN"}function rL(){typeof window>"u"||window.setTimeout(()=>window.location.reload(),0)}function im(e,t){var i;return e.itemId===t.itemId&&((i=e.actionLocator)==null?void 0:i.subjectId)===t.locator.subjectId&&e.actionLocator.actionDigest===t.locator.actionDigest}function Mo(e,t){return t!==null&&e.contextKey===t.actionContextKey&&$e(e.binding,t.binding)&&t.items.some(i=>im(i,e))}function tO(e){return Date.parse(e.custody.preview.expiresAt)}function Px(e){const t=tO(e);return!Number.isFinite(t)||t<=Date.now()}function sL(e,t){const i=t===null?null:document.getElementById(t);if(i instanceof HTMLButtonElement&&e.contains(i)&&i.isConnected&&!i.disabled)return i;const s=e.querySelector('.op-inbox-tabs__panel[data-state="active"]')??e.querySelector(".op-inbox__detail"),c=s?[...s.querySelectorAll("[data-inbox-item-trigger-anchor]")]:[];for(const g of c){const m=g.querySelector("button.op-governed-button");if(m!=null&&m.isConnected&&!m.disabled)return m}const d=c.find(g=>g.isConnected);if(d)return d;const u=e.querySelector('.op-inbox-tabs__trigger[aria-selected="true"]');if(u!=null&&u.isConnected)return u;const p=e.querySelector("[data-inbox-focus-heading]");return p!=null&&p.isConnected?p:e.isConnected?e:null}function oL({currentBinding:e,current:t,actions:i,onRefetch:s}){var Ge,Ne;const c=B.useMemo(()=>$x(t,e),[t,e]),d=(c==null?void 0:c.selectionScopeKey)??null,u=((Ge=c==null?void 0:c.detailItem)==null?void 0:Ge.kind)??"decision",[p,g]=B.useState(()=>Object.freeze({scope:d,category:u})),m=p.scope===d?p.category:u,[y,A]=B.useState(null),[E,b]=B.useState(null),[w,j]=B.useState(!1),[I,Q]=B.useState(!1),[S,C]=B.useState(null),[_,O]=B.useState(null),[T,N]=B.useState(!1),$=B.useRef(i??null),G=B.useRef(null),U=B.useRef(0),Z=B.useRef(!1),q=B.useRef(!1),de=B.useRef(null),re=B.useRef(null),pe=B.useRef(null),K=B.useRef(null),ie=B.useRef(null),W=B.useRef(!0),le=B.useCallback(ue=>{const Qe=ve=>{var Tt;const Se=ie.current;if(!W.current||!(Se!=null&&Se.isConnected)||typeof document>"u")return;const nt=ue===null?null:document.getElementById(ue);if(nt instanceof HTMLButtonElement&&Se.contains(nt)&&nt.isConnected&&nt.disabled&&ve>0&&typeof window<"u"){window.setTimeout(()=>Qe(ve-1),16);return}(Tt=sL(Se,ue))==null||Tt.focus({preventScroll:!0})};queueMicrotask(()=>{typeof window>"u"?Qe(4):window.setTimeout(()=>Qe(4),0)})},[]),oe=B.useCallback(async()=>{if(s){const ue=await s();return ue&&typeof ue=="object"?ue:null}return rL(),null},[s]),xe=B.useCallback(async(ue=G.current)=>{if(!(!ue||T)){N(!0);try{const Qe=await oe(),ve=Qe!=null&&Qe.binding?$x(Qe,Qe.binding):null;if(!ve||!$.current)throw new Error("Exact reconciliation failed.");$.current.reconcile(ve.binding),G.current=null,O(null),C({contextKey:ve.actionContextKey,tone:"verified",text:"Exact current Inbox truth was reconciled. A new governed preview is required."})}catch{C({contextKey:(c==null?void 0:c.actionContextKey)??"",tone:"attention",text:"OPERATION_UNCERTAIN · Exact current Inbox truth did not reconcile; do not retry."})}finally{W.current&&N(!1)}}},[c==null?void 0:c.actionContextKey,T,oe]),Me=B.useCallback(()=>{const ue=pe.current;ue!==null&&(clearTimeout(ue),pe.current=null)},[]),_e=B.useCallback(ue=>{var nt;Me();const Qe=de.current;de.current=null,U.current+=1;const ve=re.current,Se=ve!==null||Z.current||q.current;return ve==null||ve.custody.cancel(),Se&&((nt=$.current)==null||nt.cancel()),re.current=null,Z.current=!1,q.current=!1,A(null),b(null),Q(!1),j(!1),ue&&le(Qe),Qe},[Me,le]),k=B.useCallback(ue=>{!W.current||re.current!==ue||!Mo(ue,K.current)||(_e(!0),C({contextKey:ue.contextKey,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),oe())},[_e,oe]),ae=B.useCallback(ue=>{Me();const Qe=()=>{if(!W.current||re.current!==ue)return;const ve=tO(ue)-Date.now();if(!Number.isFinite(ve)||ve<=0){pe.current=null,k(ue);return}pe.current=setTimeout(Qe,Math.min(ve,iL))};Qe()},[Me,k]);B.useEffect(()=>(W.current=!0,i&&($.current=i),!$.current&&typeof window<"u"&&($.current=aL({origin:window.location.origin})),()=>{var Qe;W.current=!1,U.current+=1,Me();const ue=$.current;(Qe=re.current)==null||Qe.custody.cancel(),ue==null||ue.cancel(),re.current=null,Z.current=!1,q.current=!1,queueMicrotask(()=>{(!W.current||$.current!==ue)&&(ue==null||ue.dispose()),!W.current&&$.current===ue&&($.current=null)})}),[i,Me]),B.useLayoutEffect(()=>{p.scope!==d&&g(Object.freeze({scope:d,category:u}))},[p.scope,u,d]),B.useLayoutEffect(()=>{var Bt;const ue=K.current;K.current=c;const Qe=(c==null?void 0:c.actionContextKey)??null;C(bt=>bt!==null&&bt.contextKey!==Qe?null:bt);const ve=re.current,Se=(ue==null?void 0:ue.actionContextKey)!==Qe;if(!(ve!==null&&!Mo(ve,c))&&!(Se&&(Z.current||q.current)))return;const Tt=ve!==null&&c!==null&&ve.selectionScopeKey===c.selectionScopeKey&&!c.items.some(bt=>im(bt,ve)),In=(ve==null?void 0:ve.selectionScopeKey)??null,yn=_e(!1);le(yn),Tt&&((Bt=K.current)==null?void 0:Bt.selectionScopeKey)===In&&oe()},[_e,c,oe,le]),B.useEffect(()=>{const ue=i??$.current;if(!(!ue||!c))try{ue.bind(c.binding)}catch{C({contextKey:c.actionContextKey,tone:"refusal",text:"The governed Inbox adapter refused this exact route binding."})}},[i,c]);const Ae=B.useCallback(ue=>{g(Object.freeze({scope:d,category:ue}))},[d]),R=B.useCallback(async(ue,Qe)=>{const ve=ue.actionLocator,Se=$.current;if(!c||!ve||!Se||Z.current)return;const nt=c.binding,Tt=c.actionContextKey,In=c.selectionScopeKey;Z.current=!0;const yn=++U.current;de.current=Qe,A(ue.itemId),C(null);try{Se.bind(nt);const Bt=await Se.preview({subjectId:ve.subjectId,actionDigest:ve.actionDigest}),bt=K.current,zr=bt!==null&&bt.actionContextKey===Tt&&$e(nt,bt.binding)&&bt.items.some(Ur=>im(Ur,{itemId:ue.itemId,locator:ve}));if(!W.current||yn!==U.current||!zr){Bt.cancel();return}if(Bt.preview.authority!=="allowed"){Bt.cancel(),Se.cancel(),C({contextKey:Tt,tone:"refusal",text:Bt.preview.reasonCodes.length>0?Bt.preview.reasonCodes.join(" · "):`Preview authority: ${Bt.preview.authority}.`});const Ur=de.current;de.current=null,le(Ur),await oe();return}const fi=Object.freeze({itemId:ue.itemId,locator:Object.freeze({subjectId:ve.subjectId,actionDigest:ve.actionDigest}),binding:nt,contextKey:Tt,selectionScopeKey:In,custody:Bt});if(Px(fi)){Bt.cancel(),_e(!0),C({contextKey:Tt,tone:"attention",text:"The verified preview expired before confirmation. Current Inbox truth is being refreshed."}),await oe();return}re.current=fi,b(fi),j(!0),ae(fi)}catch(Bt){const bt=K.current;if(!Lx(Bt)&&W.current&&yn===U.current&&(bt==null?void 0:bt.actionContextKey)===Tt&&$e(nt,bt.binding)){Se.cancel(),Pu(Bt)&&(G.current=nt,O(nt)),C({contextKey:Tt,tone:Pu(Bt)?"attention":"refusal",text:Pu(Bt)?"The governed preview outcome is uncertain. Exact current Inbox truth must reconcile before retry.":"The governed preview was refused. Current Inbox truth is being refreshed."});const zr=de.current;de.current=null,le(zr),Pu(Bt)?await xe(nt):await oe()}}finally{yn===U.current&&(Z.current=!1,W.current&&A(null))}},[_e,c,xe,oe,le,ae]),F=B.useCallback(async()=>{const ue=re.current;if(!ue||q.current)return;if(!Mo(ue,K.current)){_e(!0);return}if(Px(ue)){k(ue);return}q.current=!0;const Qe=U.current;Q(!0);try{const ve=await ue.custody.confirm();if(!W.current||Qe!==U.current||!Mo(ue,K.current))return;ve.ok?C({contextKey:ue.contextKey,tone:"verified",text:"The transition was accepted. The Inbox has been refreshed."}):(G.current=ue.binding,O(ue.binding),C({contextKey:ue.contextKey,tone:"attention",text:ve.reasonCode})),_e(!0),ve.ok?await oe():await xe(ue.binding)}catch(ve){!Lx(ve)&&W.current&&Qe===U.current&&Mo(ue,K.current)&&(C({contextKey:ue.contextKey,tone:"refusal",text:"The governed confirmation was refused. Current Inbox truth is being refreshed."}),_e(!0),await oe())}finally{Qe===U.current&&(q.current=!1,W.current&&Q(!1))}},[_e,k,xe,oe]);if(!c)return r.jsx("div",{ref:ie,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox",tabIndex:-1,children:r.jsx(we,{state:"incompatible",eyebrow:"Inbox projection",title:"Inbox cannot be trusted",description:"The owner-issued Inbox did not pass exact binding and integrity verification."})});if(c.detailRequested&&!c.detailItem)return r.jsxs("div",{ref:ie,className:"op-workspace op-inbox pc-operate","data-inbox-focus-workspace":"","data-route-kind":"operate.inbox-item",tabIndex:-1,children:[r.jsx("header",{className:"op-inbox__header",children:r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:"Inbox item not found"}),r.jsx("p",{children:"This item is not available in the current Inbox."})]})}),r.jsx(we,{state:"unavailable",eyebrow:"Not found",title:"No matching Inbox item",description:"Return to the Inbox to review the work that is currently available.",actions:r.jsx("a",{className:"op-inline-action",href:"#/operate/inbox",children:"Return to Inbox"})})]});const X=(S==null?void 0:S.contextKey)===c.actionContextKey?S:null,fe=_!==null,se=E!==null&&Mo(E,c)?E:null,ce=(se==null?void 0:se.custody.preview)??null;return r.jsxs("div",{ref:ie,className:"op-workspace op-inbox","data-inbox-focus-workspace":"","data-route-kind":c.detailRequested?"operate.inbox-item":"operate.inbox","data-inbox-presentation":c.presentation,tabIndex:-1,children:[r.jsxs("header",{className:"op-inbox__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operate · Inbox"}),r.jsx("h1",{"data-inbox-focus-heading":"",tabIndex:-1,children:((Ne=c.detailItem)==null?void 0:Ne.title)??"Decision and approval Inbox"}),r.jsx("p",{children:"Review decisions, approvals, and verification work."}),r.jsx(wa,{state:c.presentation})]}),r.jsx("dl",{className:"op-inbox__custody",children:r.jsxs("div",{children:[r.jsx("dt",{children:"Items"}),r.jsx("dd",{children:c.items.length})]})})]}),r.jsxs("details",{className:"op-inbox__technical",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-inbox__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"View state"}),r.jsx("dd",{children:c.presentation})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[c.surface.eventHead.sequence," · ",c.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View key"}),r.jsx("dd",{children:r.jsx("code",{children:c.surface.viewHash})})]})]})]}),c.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Current access-safe Inbox truth remains visible. Mutation is unavailable on this"," ",c.presentation," projection."]}):null,X?r.jsx("p",{className:"pc-operate__notice","data-tone":X.tone,role:"status","aria-live":"polite",children:X.text}):null,fe?r.jsx(we,{state:"incompatible",eyebrow:"Uncertain operation",title:"Inbox stays locked until exact reconciliation",description:"A governed POST may have taken effect. OpenPlanr will not offer a blind retry.",actions:r.jsx(Lt,{disabled:!s||T,disabledReason:"A parser-verified current Inbox projection is required.",onInvoke:()=>void xe(),children:T?"Reconciling current Inbox…":"Reconcile current Inbox"})}):null,c.detailItem?r.jsxs("section",{className:"op-inbox__detail","aria-labelledby":"op-inbox-detail-title",children:[r.jsxs("div",{className:"op-inbox__section-heading",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected item"}),r.jsx("h2",{id:"op-inbox-detail-title",children:"Review item"})]}),r.jsx("p",{children:"This item is available in the current Inbox."})]}),r.jsx(WS,{item:c.detailItem,mutationEnabled:c.mutationEnabled&&!fe&&!T,pendingItemId:y,surfaceReasonCodes:c.surface.reasonCodes,showDeepLink:!1,onPreview:R})]}):r.jsx(nL,{model:c,mutationEnabled:c.mutationEnabled&&!fe&&!T,selected:m,pendingItemId:y,onSelectedChange:Ae,onPreview:R}),r.jsx(ot.Root,{open:w&&ce!==null,onOpenChange:ue=>{!ue&&!q.current&&_e(!0)},children:r.jsxs(ot.Portal,{children:[r.jsx(ot.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(ot.Content,{className:"op-inbox-dialog__content",onCloseAutoFocus:ue=>{ue.preventDefault()},children:ce?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Verified governed preview"}),r.jsx(ot.Title,{className:"op-inbox-dialog__title",children:"Confirm the exact transition"}),r.jsx(ot.Description,{className:"op-inbox-dialog__description",children:ce.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Subject kind and ID"}),r.jsxs("dd",{children:[ce.subject.kind," ",r.jsx("code",{children:ce.subject.id})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Revision"}),r.jsx("dd",{children:ce.subject.revision??"Not returned"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Subject hash"}),r.jsx("dd",{children:r.jsx("code",{children:ce.subject.hash??"No subject hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head sequence"}),r.jsx("dd",{children:r.jsx("code",{children:ce.eventHead.sequence})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head hash"}),r.jsx("dd",{children:r.jsx("code",{children:ce.eventHead.hash??"No event hash returned"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Expires"}),r.jsx("dd",{children:r.jsx("time",{dateTime:ce.expiresAt,children:ce.expiresAt})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Effect"}),r.jsx("dd",{children:ce.allowedAction.effect})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversible"}),r.jsx("dd",{children:ce.transition.reversible?"Yes":"No"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next state"}),r.jsx("dd",{children:ce.transition.nextState})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Action digest"}),r.jsx("dd",{children:r.jsx("code",{children:ce.actionDigest})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview digest"}),r.jsx("dd",{children:r.jsx("code",{children:ce.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-preview-targets",children:[r.jsx("h2",{id:"op-preview-targets",children:"Exact targets and dispositions"}),r.jsx("ol",{children:ce.transition.targets.map(ue=>r.jsxs("li",{children:[r.jsx("strong",{children:ue.kind}),r.jsx("code",{children:ue.id}),r.jsxs("span",{children:["Revision ",ue.revision??"not returned"]}),r.jsx("code",{children:ue.hash??"No target hash returned"}),r.jsx("span",{children:ue.disposition??"No disposition returned"})]},`${ue.kind}:${ue.id}`))})]}),ce.transition.threshold?r.jsxs("section",{className:"op-inbox-dialog__threshold","aria-labelledby":"op-preview-threshold",children:[r.jsx("h2",{id:"op-preview-threshold",children:"Approval threshold"}),r.jsxs("p",{children:[ce.transition.threshold.recorded," recorded ·"," ",ce.transition.threshold.required," required ·"," ",ce.transition.threshold.remaining," remaining"]})]}):null,r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(ot.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:I,children:"Cancel"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:I,"aria-busy":I||void 0,onClick:F,children:I?"Waiting for durable acceptance":"Confirm exact transition"})]})]}):null})]})})]})}const cL=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function nO(e){try{const t=Ze(e);return t.productArea==="operate"&&t.route==="#/operate/recovery"&&t.subjectId===null&&t.cycleId!==null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function vy(e){const t=nO(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=ZA(i),c=s.payload;if(t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash});return ZA(s,d),!0}catch{return!1}}}function lL(e,t){const i=nO(t);if(i===null||!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,i)||!vy(i)(e.data))return null;const s=e.data,c=s.payload,d=cL[e.kind];return d===void 0||c.status!==d||c.mutationEnabled!==!1||e.mutationEnabled?null:Object.freeze({kind:"recovery",presentation:d,binding:e.binding,display:s,payload:c,recoveryState:c.data.recoveryState,inspection:c.data.inspection,history:c.data.history,allowedActions:c.data.allowedActions,mutationEnabled:!1})}const dL=Object.freeze({blocked:Object.freeze({title:"Recovery is blocked",summary:"A prerequisite needs attention before work can continue.",known:"The blocking state and its history are still available.",unknown:"The current view cannot safely say more about the target or effect.",forbidden:"Do not bypass this block or try to recreate the missing approval."}),uncertain:Object.freeze({title:"Reconciliation is required",summary:"An action may have happened. OpenPlanr will not run it again until it is reconciled.",known:"The original intent and a single attempted dispatch are recorded.",unknown:"There is not enough proof yet to say what happened.",forbidden:"Do not retry or run a different version of the action."}),custody:Object.freeze({title:"Result custody needs restoration",summary:"The result is recorded, but it cannot be read safely right now.",known:"The original intent and history remain available.",unknown:"The result details cannot be shown until access is restored.",forbidden:"Do not copy private receipts or create a replacement result."}),divergent:Object.freeze({title:"Target state diverged",summary:"The target changed after this work was reviewed.",known:"OpenPlanr can see that the reviewed target and current target no longer match.",unknown:"It cannot safely choose a replacement change.",forbidden:"Do not confirm an expired review or silently update the target."}),corrupt:Object.freeze({title:"State integrity could not be established",summary:"Keep the project isolated and inspect the Event tail or a known-good backup.",known:"Integrity validation refused the current state before mutation.",unknown:"No unvalidated record is presented as current truth.",forbidden:"Do not edit checkpoints, Event history, or durable state by hand."}),incompatible:Object.freeze({title:"State version is incompatible",summary:"Use a supported backup, upgrade, or refusal path without mutation.",known:"The installed runtime refused an unsupported contract version.",unknown:"No compatibility translation or mutation is attempted.",forbidden:"Do not downgrade, rewrite, or guess a compatible contract."}),restored:Object.freeze({title:"Recovery is restored",summary:"The recovered work is readable again. Review it before taking a new step.",known:"Recovery history and the restored state remain visible.",unknown:"Recovery alone does not prove the outcome or authorize another action.",forbidden:"Do not reuse an old approval or review."})});function uL(e){return e.filter(t=>{const i=t.tool??"";return t.effect==="read-only"||i.includes("recovery")||i.includes("reconcile")||i.endsWith(".rollback")})}function fL(e){return e==="restored"?"ready-to-resume":e==="corrupt"||e==="incompatible"?"incompatible":"unavailable"}const pL=[{key:"sequence",label:"Seq",mono:!0,render:e=>e.sequence},{key:"change",label:"Change",render:e=>{var t;return((t=e.change)==null?void 0:t.summary)??e.type}},{key:"timestamp",label:"When",mono:!0,render:e=>r.jsx("time",{dateTime:e.timestamp,children:e.timestamp})},{key:"result",label:"Result",align:"right",render:e=>{var t;return(t=e.result)!=null&&t.status?r.jsx(wa,{state:e.result.status}):"—"}}];function hL({currentBinding:e,current:t}){const i=lL(t,e);if(!i)return r.jsx("div",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery",children:r.jsx(we,{state:"incompatible",eyebrow:"Recovery projection",title:"Recovery cannot be trusted",description:"The owner-issued recovery display did not pass exact binding and integrity verification."})});const s=dL[i.recoveryState],c=uL(i.allowedActions),d=fL(i.recoveryState),u=`${i.payload.eventHead.sequence} · ${i.payload.eventHead.hash??"genesis"}`,p=i.history.slice(-6).map((g,m)=>({...g,id:`${g.eventId}:${m}`}));return r.jsxs("section",{className:"op-workspace op-recovery pc-operate","data-route-kind":"operate.recovery","data-recovery-state":i.recoveryState,"data-recovery-presentation":i.presentation,"aria-label":"Operate recovery",children:[r.jsx(ct,{headingLevel:1,eyebrow:"planr-operate · recovery",title:"Recovery",description:"Understand what is known, what is not, and the safe next step.",actions:r.jsx(wa,{state:i.recoveryState})}),r.jsx(ks,{items:[{term:"Recovery state",description:i.recoveryState,mono:!0},{term:"Event record",description:u,mono:!0},{term:"View key",description:i.payload.viewHash,mono:!0}]}),r.jsx(we,{state:d,eyebrow:"Recovery",title:s.title,description:s.summary}),r.jsxs("div",{className:"pc-operate__split",children:[r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-proven-title",children:[r.jsx("h2",{id:"op-recovery-proven-title",children:"What is proven"}),r.jsx("p",{children:s.known})]}),r.jsxs("section",{className:"pc-operate__panel","aria-labelledby":"op-recovery-unknown-title",children:[r.jsx("h2",{id:"op-recovery-unknown-title",children:"What remains unknown"}),r.jsx("p",{children:s.unknown})]})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Available recovery steps",children:[r.jsx(ct,{headingLevel:2,title:"Available recovery steps",description:"OpenPlanr shows only steps that are safe for the current state."}),r.jsx("div",{className:"pc-operate__controls",children:c.length>0?c.map(g=>r.jsx(Lt,{variant:g.tool.endsWith(".rollback")?"danger":"secondary",disabled:!0,disabledReason:"The dashboard has not bound a live recovery command gateway for this actor.",children:g.label},g.tool)):r.jsx(Lt,{disabled:!0,disabledReason:"OpenPlanr returned no legal recovery action for this actor and current state.",children:"No legal recovery action"})})]}),r.jsx(we,{state:"incompatible",eyebrow:"Prohibited action",title:"Prohibited action",description:s.forbidden}),r.jsxs("section",{className:"pc-operate__section","aria-label":"Recovery history",children:[r.jsx(ct,{headingLevel:2,title:"Recovery history",count:i.history.length,description:"Original intent and every recovery result remain immutable."}),p.length===0?r.jsx("p",{className:"pc-operate__notice",children:"No access-safe recovery history is projected."}):r.jsx(zi,{columns:pL,rows:p,caption:"Immutable recovery history"})]}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What support can collect",children:[r.jsx(ct,{headingLevel:2,title:"What support can collect",description:"Support information is prepared safely and never uploaded automatically."}),r.jsx(ks,{items:[{term:"May include",description:"Versions, safe reason codes, hashes, Event range, and recovery steps"},{term:"Always redacted",description:"Evidence bodies, private identities, credentials, receipts, and machine paths"},{term:"Upload behavior",description:"Project state is never uploaded automatically"}]})]})]})}const gL=Object.freeze({InboxPage:oL,RecoveryPage:hL,createInboxValidator:Ey,createRecoveryValidator:vy});function lA(e){return e.replaceAll("-"," ").replaceAll("_"," ")}function AL(e){return e.length===0||e.length<=2048&&/^\S(?:[\s\S]*\S)?$/u.test(e)}function mL({choice:e,custody:t,confirming:i,onCancel:s,onConfirm:c}){var m;const[d,u]=B.useState(""),p=AL(d),g=(t==null?void 0:t.preview)??null;return r.jsx(ot.Root,{open:g!==null&&e!==null,onOpenChange:y=>{!y&&!i&&s()},children:r.jsxs(ot.Portal,{children:[r.jsx(ot.Overlay,{className:"op-inbox-dialog__overlay"}),r.jsx(ot.Content,{className:"op-inbox-dialog__content op-review-dialog",children:g&&e?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Exact owner choice"}),r.jsxs(ot.Title,{className:"op-inbox-dialog__title",children:["Record “",e.choice.label,"”?"]}),r.jsx(ot.Description,{className:"op-inbox-dialog__description",children:e.choice.consequence}),r.jsxs("dl",{className:"op-inbox-dialog__facts",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Authority"}),r.jsx("dd",{children:"Review only"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"External effects"}),r.jsx("dd",{children:"Not authorized"})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Runtime effect"}),r.jsx("dd",{children:r.jsx("code",{children:((m=e.action)==null?void 0:m.action.effect)??"not-issued"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Reversibility"}),r.jsx("dd",{children:lA(e.choice.reversibility)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event head"}),r.jsx("dd",{children:g.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choice proof"}),r.jsx("dd",{children:r.jsx("code",{children:e.choice.choiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Preview proof"}),r.jsx("dd",{children:r.jsx("code",{children:g.previewHash})})]})]}),r.jsxs("section",{className:"op-inbox-dialog__targets","aria-labelledby":"op-review-dispositions-title",children:[r.jsx("h2",{id:"op-review-dispositions-title",children:"Exact work dispositions"}),e.choice.requiredDispositions.length?r.jsx("ol",{children:e.choice.requiredDispositions.map(y=>r.jsxs("li",{children:[r.jsx("strong",{children:lA(y.entityType)}),r.jsx("code",{children:y.entityId}),r.jsx("span",{children:lA(y.disposition)})]},`${y.entityType}:${y.entityId}`))}):r.jsx("p",{children:"No persistent work disposition is attached to this choice."})]}),r.jsxs("label",{className:"op-review-dialog__note",children:[r.jsxs("span",{children:["Owner note ",r.jsx("small",{children:"(optional)"})]}),r.jsx("textarea",{value:d,maxLength:2048,rows:3,disabled:i,"aria-invalid":!p||void 0,"aria-describedby":"op-review-note-help",onChange:y=>u(y.currentTarget.value)})]}),r.jsx("p",{id:"op-review-note-help",role:p?void 0:"alert",children:p?`${d.length} of 2,048 characters. The exact text is bound into the receipt.`:"Remove leading or trailing whitespace before confirming."}),r.jsxs("div",{className:"op-inbox-dialog__actions",children:[r.jsx(ot.Cancel,{asChild:!0,children:r.jsx("button",{type:"button",className:"op-inbox-dialog__cancel",disabled:i,children:"Keep reviewing"})}),r.jsx("button",{type:"button",className:"op-governed-button op-inbox-dialog__confirm",disabled:i||!p,"aria-busy":i||void 0,onClick:()=>void c(d===""?null:d),children:i?"Recording immutable receipt":`Record ${e.choice.label}`})]})]}):null})]})})}const dA=40;function na(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function rm({ids:e,model:t,label:i}){if(e.length===0)return r.jsxs("span",{children:["No ",i.toLocaleLowerCase("en-US")," linked."]});const s=new Map(t.payload.data.evidence.map(c=>[c.evidenceRefId,c]));return r.jsx("ul",{className:"op-review__evidence-links","aria-label":i,children:e.map(c=>{const d=s.get(c),u=d?cc(d.deepLink):null;return r.jsxs("li",{children:[u?r.jsx("a",{href:u,children:c}):r.jsx("code",{children:c}),r.jsx("span",{children:d?`${na(d.claimStatus)} · ${na(d.freshness)}`:"Not visible"})]},c)})})}function yL({model:e}){const{findings:t,dissent:i,uncertainty:s,gaps:c}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-challenge-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Challenge record"}),r.jsx("h2",{id:"op-review-challenge-title",children:"What could change this decision"})]}),r.jsxs("div",{className:"op-review__challenge-grid",children:[r.jsxs("section",{"aria-labelledby":"op-review-findings-title",children:[r.jsxs("h3",{id:"op-review-findings-title",children:["Findings (",t.length,")"]}),t.length?r.jsx("ol",{children:t.map(d=>r.jsxs("li",{children:[r.jsx("strong",{children:d.title}),r.jsx("p",{children:d.statement}),r.jsx("span",{children:na(d.state)}),d.origin==="operating-intelligence"?r.jsx(rm,{ids:[...d.supportingEvidenceRefIds,...d.contradictingEvidenceRefIds],model:e,label:`Evidence for ${d.title}`}):null]},d.findingId))}):r.jsx("p",{children:"No findings were returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-dissent-title",children:[r.jsxs("h3",{id:"op-review-dissent-title",children:["Dissent (",i.length,")"]}),i.length?r.jsx("ol",{children:i.map(d=>r.jsxs("li",{children:[r.jsx("p",{children:d.statement}),r.jsx("strong",{children:"Resolution condition"}),r.jsx("p",{children:d.resolutionCondition})]},`${d.sourceArtifactId}:${d.localDissentId}`))}):r.jsx("p",{children:"No dissent was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-uncertainty-title",children:[r.jsxs("h3",{id:"op-review-uncertainty-title",children:["Uncertainty (",s.length,")"]}),s.length?r.jsx("ol",{children:s.map(d=>r.jsxs("li",{children:[r.jsx("p",{children:d.statement}),r.jsx("span",{children:na(d.sourceKind)})]},d.uncertaintyId))}):r.jsx("p",{children:"No explicit uncertainty was returned."})]}),r.jsxs("section",{"aria-labelledby":"op-review-gaps-title",children:[r.jsxs("h3",{id:"op-review-gaps-title",children:["Missing proof (",c.length,")"]}),c.length?r.jsx("ol",{children:c.map(d=>r.jsxs("li",{children:[r.jsx("p",{children:d.reason}),r.jsx("strong",{children:"Next step"}),r.jsx("p",{children:d.recoveryDisposition})]},d.absenceId))}):r.jsx("p",{children:"No typed gaps were returned."})]})]})]})}function EL({model:e}){const{claims:t}=e.payload.data;return r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-claims-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Evidence desk"}),r.jsx("h2",{id:"op-review-claims-title",children:"Claims and sentence-level proof"})]}),t.length?r.jsx("ol",{className:"op-review__claims",children:t.map(i=>r.jsxs("li",{children:[r.jsxs("div",{children:[r.jsx("strong",{children:i.statement??`Restricted claim ${i.claimId}`}),r.jsxs("span",{children:[na(i.status)," · ",na(i.epistemicStatus)]})]}),r.jsx(rm,{ids:i.supportEvidenceRefIds,model:e,label:`Supporting evidence for ${i.claimId}`}),r.jsx(rm,{ids:i.contradictEvidenceRefIds,model:e,label:`Contradicting evidence for ${i.claimId}`})]},i.claimId))}):r.jsx("p",{children:"No claim statements were returned for this Review."})]})}function vL({model:e}){const[t,i]=B.useState(dA),s=e.payload.data.traceMatrix,c=B.useMemo(()=>(s==null?void 0:s.edges.slice(0,t))??[],[s,t]);return s?r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Reciprocal trace"}),r.jsx("h2",{id:"op-review-trace-title",children:"Requirement to outcome custody"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Nodes"}),r.jsx("dd",{children:s.nodes.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Relationships"}),r.jsx("dd",{children:s.edges.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted"}),r.jsx("dd",{children:s.proof.restrictedNodes})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Typed absences"}),r.jsx("dd",{children:s.proof.typedAbsences})]})]}),r.jsx("section",{className:"op-review__table-scroll","aria-label":"Scrollable reciprocal decision trace",tabIndex:0,children:r.jsxs("table",{children:[r.jsxs("caption",{children:["Exact trace relationships, shown ",c.length," of ",s.edges.length]}),r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",children:"From"}),r.jsx("th",{scope:"col",children:"Relationship"}),r.jsx("th",{scope:"col",children:"To"})]})}),r.jsx("tbody",{children:c.map(d=>r.jsxs("tr",{children:[r.jsxs("td",{children:[r.jsx("span",{children:na(d.from.kind)}),r.jsx("code",{children:d.from.id})]}),r.jsx("td",{children:na(d.relation)}),r.jsxs("td",{children:[r.jsx("span",{children:na(d.to.kind)}),r.jsx("code",{children:d.to.id})]})]},d.edgeId))})]})}),t<s.edges.length?r.jsxs("button",{type:"button",className:"op-inline-action",onClick:()=>i(d=>d+dA),children:["Show the next ",Math.min(dA,s.edges.length-t)," relationships"]}):null,s.omissions.length?r.jsxs("details",{children:[r.jsxs("summary",{children:["Trace omissions (",s.omissions.length,")"]}),r.jsx("ul",{children:s.omissions.map(d=>r.jsxs("li",{children:[na(d.subject)," ",r.jsx("code",{children:d.subjectId})," · ",na(d.kind)]},d.omissionId))})]}):null]}):r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-trace-title",children:[r.jsx("h2",{id:"op-review-trace-title",children:"Reciprocal decision trace"}),r.jsx("p",{children:"The bounded trace matrix is not available in this workspace."})]})}function BL({model:e}){const t=e.payload.data.truthSummary;return r.jsxs(r.Fragment,{children:[r.jsx(yL,{model:e}),r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-proof-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Shared proof truth"}),r.jsx("h2",{id:"op-review-proof-title",children:"What the evidence can prove"})]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Proof status"}),r.jsx("dd",{children:na(t.proof.status)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Linked evidence"}),r.jsx("dd",{children:t.proof.linkedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Restricted evidence"}),r.jsx("dd",{children:t.proof.restrictedEvidence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Unresolved claims"}),r.jsx("dd",{children:t.proof.unresolvedClaims})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Validated seats"}),r.jsxs("dd",{children:[t.seats.validated," / ",t.seats.total]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Verified outcomes"}),r.jsx("dd",{children:t.proof.verifiedOutcomes})]})]}),t.proof.reasonCodes.length?r.jsxs("p",{role:"status",children:["Limits: ",t.proof.reasonCodes.map(na).join(" · ")]}):null]}),r.jsx(EL,{model:e}),r.jsx(vL,{model:e})]})}function bL({workspace:e,receipt:t}){const i=e.payload.data.terminalDisposition;if(!i)return null;const s=(t==null?void 0:t.boundSubmission)??null;return r.jsxs("section",{className:"op-review__section op-review__receipt","aria-labelledby":"op-review-receipt-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Immutable record"}),r.jsx("h2",{id:"op-review-receipt-title",tabIndex:-1,children:"Review recorded"})]}),r.jsxs("p",{children:["The owner recorded ",r.jsx("strong",{children:i.decision}),". This receipt does not execute an Action or authorize an external effect."]}),r.jsxs("dl",{className:"op-review__proof",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice"}),r.jsx("dd",{children:r.jsx("code",{children:i.appliedChoiceId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event"}),r.jsx("dd",{children:i.eventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Review read event"}),r.jsx("dd",{children:i.readEventHead.sequence})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:r.jsx("time",{dateTime:i.committedAt,children:i.committedAt})})]})]}),r.jsxs("details",{children:[r.jsx("summary",{children:"Technical receipt proof"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Receipt ID"}),r.jsx("dd",{children:r.jsx("code",{children:i.receiptId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source receipt hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.payload.sourceArtifactHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Applied choice hash"}),r.jsx("dd",{children:r.jsx("code",{children:i.appliedChoiceHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed event hash"}),r.jsx("dd",{children:r.jsx("code",{children:i.eventHead.hash??"genesis"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Bound submission hash"}),r.jsx("dd",{children:r.jsx("code",{children:(s==null?void 0:s.boundSubmissionHash)??"Not included in this display"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Owner note"}),r.jsx("dd",{children:s?s.note??"No note recorded":"Not included in this display"})]})]})]})]})}const wL=/(?:\bfile:\/\/|(?:^|[\s"'(=])\/(?:Users|home|private|tmp|var|Volumes|etc|opt|root|srv)\/|\b[A-Za-z]:\\(?:Users|Documents and Settings|Windows|ProgramData)\\)/u,xL=/(?:-----BEGIN [A-Z ]*PRIVATE KEY-----|\b(?:api[_-]?key|access[_-]?token|refresh[_-]?token|password|passwd|authorization|client[_-]?secret)\s*[:=]\s*[^\s,;]+|\bBearer\s+[A-Za-z0-9._~+\/-]{12,})/iu;function jL(e,t){const i=new Error("Review workspace contains unsafe display text.");return i.name="PipelineError",i.code="E_OPERATE_REVIEW_WORKSPACE_UNSAFE",i.fix="",i.details={retryable:!1,context:{path:e,reason:t}},i.toJSON=()=>({ok:!1,code:i.code,problem:i.message,details:i.details}),i}function IL(e){return wL.test(e)?"private-path":xL.test(e)?"secret":null}function aO(e){const t=(i,s="$")=>{if(typeof i=="string"){const c=IL(i);if(c!==null)throw jL(s,c);return}if(Array.isArray(i)){i.forEach((c,d)=>t(c,`${s}[${d}]`));return}i&&typeof i=="object"&&Object.entries(i).forEach(([c,d])=>t(d,`${s}.${c}`))};return t(e),e}const iO="openplanr:operate-review-display-workspace:1.0.0",QL=new Map([["operate-allowed-action.schema.json",ty],["operate-experience-view.schema.json",bH],["operate-review-display-workspace.schema.json",gc],["operating-assignment.schema.json",GC],["operating-evidence-resolution.schema.json",wH],["operating-review-read.schema.json",YC],["operating-review-receipt.schema.json",ny],["operating-review.schema.json",Gf],["operating-trace-matrix.schema.json",Yf]]);function CL(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}function SL(e){const[t,i=""]=e.split("#"),s=t.split("/").at(-1),c=QL.get(s);return c?{schema:CL(c,i?`#${i}`:"#"),rootSchema:c,base:s}:null}function uA(){return[{path:"$",rule:"closedContract",detail:"does not satisfy the closed Review display workspace contract"}]}function ys(e,t){return new Set(e.map(i=>i[t])).size===e.length}function OL(e,t){return t?e.actorId===t.actorId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.cycleId===t.cycleId&&e.reviewId===t.reviewId&&e.sourceArtifactKind===t.sourceArtifactKind&&e.sourceArtifactHash===t.sourceArtifactHash&&e.sourceViewHash===t.sourceViewHash&&jn(e.sourceEventHead,t.sourceEventHead)&&jn(e.sourceReadEventHead,t.sourceReadEventHead):!0}function _L(e){const t=["complete","current","available","waiting","blocked","failed","skipped","uncertain","revisited"];return!(e.stages.total!==e.stages.cycles*7||e.stages.byStage.length!==7||new Set(e.stages.byStage.map(({id:i})=>i)).size!==7||t.some(i=>e.stages[i]!==e.stages.byStage.reduce((s,c)=>s+c[i],0))||e.seats.terminal!==e.seats.validated+e.seats.rejected+e.seats.failed+e.seats.abandoned||e.seats.total!==e.seats.terminal+e.seats.active+e.seats.pending||e.evidence.total!==e.evidence.available+e.evidence.restricted||e.evidence.total!==e.evidence.current+e.evidence.historical+e.evidence.stale||e.evidence.linked>e.evidence.total||e.proof.linkedEvidence!==e.evidence.linked||e.proof.restrictedEvidence!==e.evidence.restricted||e.proof.resolvedClaims!==e.claims.supported+e.claims.contradicted||e.proof.unresolvedClaims!==e.claims.uncertain+e.claims.unknown+e.claims.restricted||e.claims.total!==e.proof.resolvedClaims+e.proof.unresolvedClaims||e.verification.total!==e.verification.verified+e.verification.unverified+e.verification.notRequired+e.verification.insufficientEvidence||e.proof.verifiedOutcomes!==e.verification.verified||e.proof.unverifiedOutcomes!==e.verification.unverified+e.verification.insufficientEvidence||e.omissions.total!==e.omissions.restricted+e.omissions.absent)}function NL(e,t){return e.choiceHash===Mr(e.submitArguments)&&e.submitArguments.reviewId===t.reviewId&&e.submitArguments.cycleId===t.cycleId&&e.submitArguments.actor.actorId===t.actorId&&en(e.submitArguments.scope,{scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion})&&en(e.requiredDispositions,e.submitArguments.workDispositions)&&e.reversibility==="immutable-review-event"}function RL(e){const{capability:t,choices:i}=e.data;if(!t.available)return t.actions.length===0&&e.mutationEnabled===!1;if(e.sourceArtifactKind!=="operating-review-read"||e.status!=="ready"||e.mutationEnabled!==!0||t.actions.length!==i.length)return!1;const s=new Map(i.map(d=>[Mr(d.submitArguments),d]));if(s.size!==i.length)return!1;const c=new Set;for(const d of t.actions){const u=Mr(d.action.arguments);if(d.subjectId!==e.reviewId||d.action.tool!=="operate.review.submit"||d.action.effect!=="project-write"||!s.has(u))return!1;c.add(u)}return c.size===i.length}function DL(e){const t=e.data.terminalDisposition;return e.sourceArtifactKind==="operating-review-read"?t===null&&e.data.review.state==="pending"&&e.data.review.disposition===null&&e.data.choices.length>0&&jn(e.sourceReadEventHead,e.sourceEventHead):e.status==="terminal"&&e.reasonCodes.includes("REVIEW_TERMINAL")&&e.mutationEnabled===!1&&e.data.choices.length===0&&e.data.capability.available===!1&&e.data.capability.actions.length===0&&e.data.capability.reason.code==="REVIEW_TERMINAL"&&t!==null&&t.decision===e.data.review.state&&e.data.review.disposition===t.decision&&en(e.data.review.workDispositions,t.appliedWorkDispositions)&&jn(t.readEventHead,e.sourceReadEventHead)&&jn(t.eventHead,e.sourceEventHead)}function TL(e,t){const{payload:i,integrity:s}=e,{data:c}=i;if(s.domain!==iO||s.sourceArtifactKind!==i.sourceArtifactKind||s.sourceViewHash!==i.sourceViewHash||s.sourceArtifactHash!==i.sourceArtifactHash||c.review.reviewId!==i.reviewId||c.review.cycleId!==i.cycleId||c.policyBinding.ownerActorId!==c.review.ownerActorId||c.policyBinding.actorMatchesOwner!==(i.actorId===c.review.ownerActorId)||c.policyBinding.actorMatchesOwner!==!0||!jn(c.truthSummary.sourceEventHead,i.sourceEventHead)||c.truthSummary.sourceViewHash!==i.sourceViewHash||c.executiveSummary.decisionCount!==c.recommendation.items.length||c.executiveSummary.findingCount!==c.findings.length||c.executiveSummary.dissentCount!==c.dissent.length||c.executiveSummary.gapCount!==c.gaps.length||c.executiveSummary.uncertaintyCount!==c.uncertainty.length||!ys(c.choices,"choiceId")||!ys(c.findings,"findingId")||!ys(c.dissent,"localDissentId")||!ys(c.uncertainty,"uncertaintyId")||!ys(c.gaps,"absenceId")||!ys(c.claims,"claimId")||!ys(c.evidence,"evidenceRefId")||c.choices.some(d=>!NL(d,i))||!RL(i)||!DL(i)||!_L(c.truthSummary)||!OL(i,t))return!1;try{aO(i)}catch{return!1}return!0}function kL(e,t){try{const i=li(e),s=hc(i,gc,{base:"schemas/v2.0.0/operate-review-display-workspace.schema.json",resolveRef:SL});return s.length>0||!TL(i,t)?s.length>0?s:uA():i.integrity.contentHash===ey(i.payload,iO)?[]:uA()}catch{return uA()}}function Ml(e,t){if(kL(e,t).length>0){const i=new TypeError("The Review display workspace does not satisfy its closed integrity contract.");throw i.code="E_OPERATE_REVIEW_DISPLAY_INVALID",i}return e}Object.freeze(structuredClone(gc));const ML="openplanr:operate-review-bound-submission:project-write:operating-review@2.0.0#/$defs/workDisposition:1.0.0",GL=new Map([["operate-review-bound-submission.schema.json",MC],["operating-assignment.schema.json",GC],["operating-review-read.schema.json",YC],["operating-review-receipt.schema.json",ny],["operating-review.schema.json",Gf]]);function YL(e,t){return!t||t==="#"?e:t.startsWith("#/")?t.slice(2).split("/").map(i=>i.replaceAll("~1","/").replaceAll("~0","~")).reduce((i,s)=>i==null?void 0:i[s],e):null}function HL(e){const[t,i=""]=e.split("#"),s=t.split("/").at(-1),c=GL.get(s);return c?{schema:YL(c,i?`#${i}`:"#"),rootSchema:c,base:s}:null}function Bf(e,t){const i=new TypeError(t);throw i.code=e,i}function rO(e,t,i,s,c){let d;try{d=li(e),hc(d,t,{base:i,resolveRef:HL}).length>0&&Bf(s,c)}catch(u){if((u==null?void 0:u.code)===s)throw u;Bf(s,c)}return d}function zL(e){return{domain:ML,expectedReadEventHead:e.expectedReadEventHead,choiceId:e.choiceId,choiceHash:e.choiceHash,submitArguments:e.submitArguments,note:e.note}}function UL(e){return Mr(zL(li(e)))}function sO(e){const t=rO(e,MC,"schemas/v2.0.0/operate-review-bound-submission.schema.json","RESULT_CONTRACT_INVALID","The bound Review submission does not satisfy its closed integrity contract.");return(t.choiceHash!==Mr(t.submitArguments)||t.boundSubmissionHash!==UL(t))&&Bf("RESULT_CONTRACT_INVALID","The bound Review submission does not satisfy its closed integrity contract."),e}function $L(e,t){return e.choiceHash===Mr(e.submitArguments)&&e.submitArguments.reviewId===t.review.reviewId&&e.submitArguments.cycleId===t.cycleId&&en(e.submitArguments.actor,t.actor)&&en(e.submitArguments.scope,t.scope)}function LL(e){const t=e.dispositionChoices,i=new Set(t.map(({choiceId:u})=>u)),s=new Set(t.map(({choiceHash:u})=>u));if(i.size!==t.length||s.size!==t.length||t.some(u=>!$L(u,e))||e.review.reviewId.length===0||e.review.cycleId!==e.cycleId||e.review.ownerActorId!==e.actor.actorId||e.review.state!==e.decision||e.review.disposition!==e.decision||!en(e.review.workDispositions,e.appliedWorkDispositions)||e.eventHead.sequence!==e.readEventHead.sequence+1)return!1;const c=t.filter(u=>u.choiceId===e.appliedChoiceId&&u.choiceHash===e.appliedChoiceHash);if(c.length!==1)return!1;const[d]=c;if(d.submitArguments.disposition!==e.decision||!en(d.submitArguments.workDispositions,e.appliedWorkDispositions)||e.summary.decisionCount!==e.decisions.length||e.summary.actionCount!==e.actions.length||e.summary.findingCount!==e.findings.length||e.summary.dissentCount!==e.dissent.length||e.summary.gapCount!==e.gaps.length)return!1;if(e.boundSubmission===void 0)return!0;try{sO(e.boundSubmission)}catch{return!1}return jn(e.boundSubmission.expectedReadEventHead,e.readEventHead)&&e.boundSubmission.choiceId===d.choiceId&&e.boundSubmission.choiceHash===d.choiceHash&&en(e.boundSubmission.submitArguments,d.submitArguments)}function PL(e){const t=rO(e,ny,"schemas/v2.0.0/operating-review-receipt.schema.json","E_OPERATE_REVIEW_RECEIPT_INVALID","The operating Review receipt does not satisfy its closed integrity contract.");return aO(t),LL(t)||Bf("E_OPERATE_REVIEW_RECEIPT_INVALID","The operating Review receipt does not satisfy its closed integrity contract."),e}const FL=/^sha256:[a-f0-9]{64}$/u,VL=new Set(["CONCURRENT_MODIFICATION","CAPABILITY_DENIED","OPERATION_UNCERTAIN"]);function Ba(e="OPERATE_RESPONSE_INVALID"){const t=new Error("The governed Review response was refused.");throw t.name=e,t}function bs(e){return(e===null||typeof e!="object"||Array.isArray(e))&&Ba(),e}function ws(e,t){const i=Object.keys(e).sort(),s=[...t].sort();(i.length!==s.length||i.some((c,d)=>c!==s[d]))&&Ba()}function qL(e){const t=bs(e);ws(t,["sequence","hash"]),(!Number.isSafeInteger(t.sequence)||t.sequence<0)&&Ba();const i=t.hash;return i!==null&&(typeof i!="string"||!FL.test(i))&&Ba(),t.sequence===0!=(i===null)&&Ba(),Object.freeze({sequence:t.sequence,hash:i})}function pl(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function Fx(e){return(!e||e.note!==null&&typeof e.note!="string")&&Ba("OPERATE_COMMAND_INVALID"),e.note===null?null:((e.note.length===0||e.note.length>2048||!/^\S(?:[\s\S]*\S)?$/u.test(e.note))&&Ba("OPERATE_COMMAND_INVALID"),e.note)}function KL(e,t){ws(e,["ok","operation","error","allowedActions"]);const i=bs(e.error);ws(i,["code","message","retryable","context"]);const s=bs(i.context);ws(s,[]),(e.ok!==!1||e.operation!=="operate.review.submit"||typeof i.code!="string"||!VL.has(i.code)||typeof i.message!="string"||i.retryable!==!1||!Array.isArray(e.allowedActions)||e.allowedActions.length>16)&&Ba();const c=e.allowedActions.map(d=>{const u=bs(d);ws(u,["subjectId","action"]);const p=bs(u.action);return(u.subjectId!==t||p.tool!=="operate.review.submit"||p.effect!=="project-write"||typeof p.label!="string"||p.arguments===null||typeof p.arguments!="object"||Array.isArray(p.arguments))&&Ba(),kn(p)});return Object.freeze({ok:!1,reasonCode:i.code,allowedActionDigests:Object.freeze(c)})}function JL(e,t,i,s,c){ws(e,["ok","operation","data","allowedActions","eventHead"]),(e.ok!==!0||e.operation!=="operate.review.submit"||!Array.isArray(e.allowedActions)||e.allowedActions.length!==0)&&Ba();const d=bs(e.data);ws(d,["receipt","workspace"]);const u=_s(d.receipt);PL(u),u.boundSubmission===void 0&&Ba();const p=sO(u.boundSubmission),g=_s(d.workspace);Ml(g);const m=qL(e.eventHead),y=g.payload.data.terminalDisposition;return(t.cycleId===null||t.subjectId===null||s.allowedAction.tool!=="operate.review.submit"||s.allowedAction.effect!=="project-write"||u.cycleId!==t.cycleId||u.review.reviewId!==t.subjectId||u.actor.actorId!==t.actorId||u.scope.scopeId!==t.scopeId||u.scope.domainId!==t.domainId||u.scope.domainVersion!==t.domainVersion||!pl(u.readEventHead,i)||!pl(u.eventHead,m)||u.eventHead.sequence<=i.sequence||!pl(p.expectedReadEventHead,i)||p.note!==c||p.choiceId!==u.appliedChoiceId||p.choiceHash!==u.appliedChoiceHash||p.choiceHash!==kn(s.allowedAction.arguments)||kn(p.submitArguments)!==kn(s.allowedAction.arguments)||g.payload.actorId!==t.actorId||g.payload.cycleId!==t.cycleId||g.payload.reviewId!==t.subjectId||g.payload.sourceArtifactKind!=="operating-review-receipt"||g.payload.sourceArtifactHash!==kn(u)||g.payload.status!=="terminal"||g.payload.mutationEnabled||g.payload.data.choices.length!==0||y===null||y.receiptId!==u.receiptId||y.appliedChoiceId!==u.appliedChoiceId||y.appliedChoiceHash!==u.appliedChoiceHash||!pl(y.readEventHead,u.readEventHead)||!pl(y.eventHead,u.eventHead))&&Ba(),Object.freeze({ok:!0,receipt:u,workspace:g,eventHead:m})}function ZL(e){return uy({...e,routeKinds:["operate.review"],routeErrorCode:"OPERATE_REVIEW_ROUTE_REQUIRED",includeOriginHeader:!0,confirmation:{additionalBody(t,i){return{note:Fx(i)}},parse({value:t,preview:i,identity:s,previousHead:c,input:d}){const u=bs(t);return u.ok===!1?KL(u,s.subjectId??""):JL(u,s,c,i,Fx(d))}}})}function XL(e,t){return(e==null?void 0:e.sequence)===t.sequence&&e.hash===t.hash}function WL(e){try{const t=Ze(e),i=si(t.route);return i.kind==="operate.review"&&t.productArea==="operate"&&t.cycleId===i.cycleId&&t.subjectId===i.subjectId&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function Ff(e){const t=WL(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{Ml(i);const s=i,c=s.payload;return c.cycleId!==t.cycleId||c.reviewId!==t.subjectId||c.actorId!==t.actorId||c.scopeId!==t.scopeId||c.domainId!==t.domainId||c.domainVersion!==t.domainVersion||!XL(t.eventHead,c.sourceEventHead)||c.sourceViewHash!==t.viewHash?!1:(Ml(s,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,cycleId:c.cycleId,reviewId:c.reviewId,sourceArtifactKind:c.sourceArtifactKind,sourceArtifactHash:c.sourceArtifactHash,sourceEventHead:c.sourceEventHead,sourceReadEventHead:c.sourceReadEventHead,sourceViewHash:c.sourceViewHash}),!0)}catch{return!1}}}function eP(e){const t=e.payload.data.capability,i=t.available?t.actions:[],s=e.payload.data.choices.map(c=>{const d=i.filter(({subjectId:p,action:g})=>p===e.payload.reviewId&&kn(g.arguments)===c.choiceHash);if(d.length>1||t.available&&d.length!==1)return null;const u=d[0]??null;return Object.freeze({choice:c,action:u,locator:u===null?null:Object.freeze({subjectId:e.payload.reviewId,actionDigest:kn(u.action)})})});return s.some(c=>c===null)?null:Object.freeze(s)}function oO(e,t){if(!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,t)||!Ff(t)(e.data))return null;const i=e.data,s=eP(i);if(s===null)return null;const c=i.payload.status==="terminal",d=c?"terminal":e.kind==="ready"?i.payload.status:e.kind,u=!c&&i.payload.status==="ready"&&i.payload.mutationEnabled&&i.payload.data.capability.available&&s.every(({locator:p})=>p!==null)&&vm(e,t);return Object.freeze({kind:"review",binding:e.binding,workspace:i,payload:i.payload,presentation:d,choices:s,mutationEnabled:u,terminal:c})}const tP=new Set(["CAPABILITY_DENIED","CONCURRENT_MODIFICATION","OPERATE_ACTION_REFERENCE_STALE","OPERATE_BINDING_MISMATCH","OPERATE_PREVIEW_EXPIRED","OPERATE_PREVIEW_STALE","OPERATE_SESSION_EXPIRED","OPERATE_SESSION_STALE"]);function Vx(e){if(!(e instanceof Error))return"";const t=e.code;return typeof t=="string"?t:e.name}function Fu(e){const t=e.replaceAll("-"," ").replaceAll("_"," ");return`${t.slice(0,1).toUpperCase()}${t.slice(1)}`}function nP(e,t){const i=e.workspace,s=Ze({...t.binding,eventHead:i.payload.sourceEventHead,viewHash:i.payload.sourceViewHash}),c=Ho({kind:"read-only",binding:s,data:i,reasonCodes:["DASHBOARD_READ_ONLY"],error:null,mutationEnabled:!1,policy:zo("read-only")},{currentBinding:s,validateData:Ff(s)});return oO(c,s)}function aP({currentBinding:e,current:t,onRefetch:i,actions:s}){var ae,Ae;const c=B.useMemo(()=>oO(t,e),[t,e]),d=B.useRef(s??null),u=B.useRef(0),p=B.useRef(!1),[g,m]=B.useState(null),[y,A]=B.useState(null),[E,b]=B.useState(null),[w,j]=B.useState(null),[I,Q]=B.useState(null),[S,C]=B.useState(null),[_,O]=B.useState(null),T=c?JSON.stringify([c.binding.route,c.binding.eventHead,c.binding.viewHash]):"invalid",N=c?JSON.stringify([c.binding.route,c.binding.actorId,c.binding.projectId,c.binding.scopeId,c.binding.domainId,c.binding.domainVersion,c.binding.cycleId,c.binding.subjectId,c.binding.generation]):"invalid",$=B.useRef(T),G=B.useRef(N);$.current=T,G.current=N,B.useEffect(()=>{var R;!d.current&&typeof window<"u"&&(d.current=ZL({origin:window.location.origin})),c&&((R=d.current)==null||R.bind(c.binding))},[c]),B.useEffect(()=>{var R;$.current=T,u.current+=1,p.current=!1,(R=d.current)==null||R.cancel(),m(null),A(F=>(F==null||F.custody.cancel(),null)),b(null),j(null),C(null)},[T]),B.useEffect(()=>{O(F=>(F==null?void 0:F.scopeKey)===N?F:null),Q(F=>F===N?F:null);const R=requestAnimationFrame(()=>{var F;G.current===N&&((F=document.querySelector('[data-route-kind="operate.review"] h1'))==null||F.focus())});return()=>cancelAnimationFrame(R)},[N]),B.useEffect(()=>()=>{var R;(R=d.current)==null||R.dispose(),d.current=null},[]);const U=(g==null?void 0:g.bindingKey)===T?(c==null?void 0:c.choices.find(({choice:R})=>R.choiceId===g.choiceId))??null:null,Z=(y==null?void 0:y.bindingKey)===T?y:null,q=(_==null?void 0:_.scopeKey)===N?_.result:null,de=B.useMemo(()=>q&&c?nP(q,c):null,[q,c]),re=q?de:c,pe=I===N,K=E===T,ie=w===T,W=re!=null&&re.terminal?re.workspace:null,le=!!(c!=null&&c.mutationEnabled&&!pe&&!q),oe=K||Z!==null||ie,xe=B.useCallback(()=>{var R;u.current+=1,y==null||y.custody.cancel(),(R=d.current)==null||R.cancel(),p.current=!1,A(null),b(null),j(null),requestAnimationFrame(()=>{var F;$.current===T&&((F=document.querySelector("#op-review-choice-preview-trigger"))==null||F.focus())})},[y,T]),Me=B.useCallback(async()=>{if(!c||!(U!=null&&U.locator)||!le||K||p.current)return;const R=d.current;if(!R)return;const F=T,X=u.current+1;u.current=X;const fe=U,se=Object.freeze({...U.locator});p.current=!0,b(F),C(null);let ce=!1,Ge=!1;try{R.bind(c.binding);const Ne=await R.preview(se);if($.current!==F||u.current!==X){Ne.cancel();return}ce=!0,A(Object.freeze({bindingKey:F,epoch:X,choiceId:fe.choice.choiceId,choiceHash:fe.choice.choiceHash,locator:se,choice:fe,custody:Ne}))}catch(Ne){if($.current!==F||u.current!==X)return;const ue=Vx(Ne);if(ue==="AbortError")return;ue==="OPERATION_UNCERTAIN"&&(Ge=!0,Q(N)),C({tone:ue==="OPERATION_UNCERTAIN"?"attention":"refusal",text:ue==="OPERATION_UNCERTAIN"?"The preview outcome is uncertain. This Review is locked against blind retry.":"The exact Review preview was refused. Refresh current Review truth before trying again."})}finally{$.current===F&&u.current===X&&(b(null),!ce&&!Ge&&(p.current=!1))}},[T,c,le,K,N,U]),_e=B.useCallback(async R=>{var se,ce;if(!Z||ie)return;const F=Z,X=F.bindingKey,fe=N;j(X);try{const Ge=await F.custody.confirm({note:R});if($.current!==X||G.current!==fe||u.current!==F.epoch)return;if(Ge.ok){O(Object.freeze({scopeKey:fe,result:Ge})),C({tone:"verified",text:"The immutable Review receipt was recorded."}),A(null),p.current=!1,await(i==null?void 0:i().catch(()=>{})),requestAnimationFrame(()=>{var Ne;G.current===fe&&((Ne=document.querySelector("#op-review-receipt-title"))==null||Ne.focus())});return}if(A(null),(se=d.current)==null||se.cancel(),Ge.reasonCode==="OPERATION_UNCERTAIN"){Q(fe),C({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}p.current=!1,C({tone:Ge.reasonCode==="CONCURRENT_MODIFICATION"?"attention":"refusal",text:Ge.reasonCode==="CONCURRENT_MODIFICATION"?`Review truth changed. ${Ge.allowedActionDigests.length} current legal choices are available after refresh.`:"The owner capability no longer permits this Review choice."}),await(i==null?void 0:i().catch(()=>{}))}catch(Ge){if($.current!==X||G.current!==fe||u.current!==F.epoch)return;const Ne=Vx(Ge);if(Ne==="AbortError")return;if(F.custody.cancel(),(ce=d.current)==null||ce.cancel(),A(null),Ne==="OPERATION_UNCERTAIN"||!tP.has(Ne)){Q(fe),C({tone:"attention",text:"The durable result is uncertain. Open Recovery; do not submit this choice again."});return}p.current=!1,C({tone:Ne==="CAPABILITY_DENIED"?"refusal":"attention",text:Ne==="CAPABILITY_DENIED"?"The owner capability no longer permits this Review choice.":"Review truth changed or the preview expired. Current legal choices are being refreshed."}),await(i==null?void 0:i().catch(()=>{}))}finally{$.current===X&&j(null)}},[Z,ie,i,N]);if(!re)return r.jsx("div",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review",children:r.jsx(we,{state:"incompatible",eyebrow:"Review projection",title:"Review cannot be trusted",description:"The owner-issued Review workspace did not pass exact route, actor, event, and integrity validation."})});const{data:k}=re.payload;return r.jsxs("article",{className:"op-workspace op-review pc-operate","data-route-kind":"operate.review","data-review-presentation":q?"terminal":re.presentation,children:[r.jsxs("nav",{"aria-label":"Review breadcrumb",className:"op-review__breadcrumb",children:[r.jsx("a",{href:`#/operate/cycles/${encodeURIComponent(re.payload.cycleId)}`,children:"Cycle"}),r.jsx("span",{"aria-hidden":"true",children:"/"}),r.jsx("span",{"aria-current":"page",children:"Review"})]}),r.jsxs("header",{className:"op-review__hero","data-review-useful":"",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"planr-operate · executive decision docket"}),r.jsx("h1",{tabIndex:-1,children:"Owner Review"}),r.jsx("p",{className:"op-review__lede",children:k.executiveSummary.text}),r.jsx(wa,{state:q?"terminal":re.presentation,label:Fu(q?"terminal":re.presentation)})]}),r.jsxs("dl",{className:"op-review__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Status"}),r.jsx("dd",{children:Fu(q?"terminal":re.presentation)})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Choices"}),r.jsx("dd",{children:re.choices.length})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Proof"}),r.jsx("dd",{children:Fu(k.truthSummary.proof.status)})]})]})]}),re.presentation!=="ready"&&!q?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["Verified Review content remains visible on this"," ",Fu(re.presentation).toLocaleLowerCase("en-US")," workspace. Mutation is unavailable."]}):null,S?r.jsx("p",{className:"pc-operate__notice","data-tone":S.tone,role:"status","aria-live":"polite",children:S.text}):null,pe?r.jsx(we,{state:"incompatible",eyebrow:"Uncertain Review submission",title:"Blind retry is locked",description:"A Review event may have committed. Inspect canonical recovery state before taking another action.",actions:r.jsx("a",{className:"op-inline-action",href:"#/operate/recovery",children:"Open Recovery"})}):null,r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-recommendation-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Recommendation"}),r.jsx("h2",{id:"op-review-recommendation-title",children:"What the board recommends"})]}),k.recommendation.status==="available"?r.jsx("ol",{className:"op-review__recommendations",children:k.recommendation.items.map(R=>r.jsxs("li",{children:[r.jsx("h3",{children:R.title}),r.jsx("p",{children:R.outcome??R.rationale}),r.jsxs("dl",{children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Upside"}),r.jsx("dd",{children:R.expectedUpside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Downside"}),r.jsx("dd",{children:R.expectedDownside})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Confidence"}),r.jsxs("dd",{children:[Math.round(R.confidence*100),"%"]})]})]})]},R.decisionId))}):r.jsx("p",{children:k.recommendation.absence.message})]}),W?null:r.jsxs("section",{className:"op-review__section","aria-labelledby":"op-review-choices-title",children:[r.jsxs("div",{className:"op-review__section-heading",children:[r.jsx("p",{className:"op-eyebrow",children:"Owner choices"}),r.jsx("h2",{id:"op-review-choices-title",children:"Choose the record to make"})]}),re.choices.length?r.jsxs("div",{className:"op-review__choice-layout",children:[r.jsxs("fieldset",{disabled:!le||oe,children:[r.jsx("legend",{children:"Select one exact choice. Nothing changes until confirmation."}),re.choices.map(R=>r.jsxs("label",{className:"op-review__choice",children:[r.jsx("input",{type:"radio",name:"review-choice",value:R.choice.choiceId,checked:(U==null?void 0:U.choice.choiceId)===R.choice.choiceId,onChange:()=>{p.current||m(Object.freeze({bindingKey:T,choiceId:R.choice.choiceId}))}}),r.jsxs("span",{children:[r.jsx("strong",{children:R.choice.label}),r.jsx("small",{children:R.choice.consequence})]})]},R.choice.choiceId))]}),r.jsx("aside",{className:"op-review__choice-brief","aria-live":"polite",children:U?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"op-eyebrow",children:"Selected consequence"}),r.jsx("h3",{children:U.choice.label}),r.jsx("p",{children:U.choice.consequence}),r.jsxs("p",{children:[r.jsx("strong",{children:"Authority:"})," Review only. External effects are not authorized."]}),r.jsx(Lt,{id:"op-review-choice-preview-trigger",disabled:!le||!U.locator||oe,disabledReason:((ae=k.capability.reason)==null?void 0:ae.message)??"This exact choice is unavailable.",pendingLabel:"Verifying exact preview","aria-haspopup":"dialog",onInvoke:Me,children:"Review exact choice"})]}):r.jsx("p",{children:"Select a choice to compare its exact consequence and dispositions."})})]}):r.jsx("p",{children:((Ae=k.capability.reason)==null?void 0:Ae.message)??"This Review has no choices to submit."})]}),r.jsx(BL,{model:re}),W?r.jsx(bL,{workspace:W,receipt:q==null?void 0:q.receipt}):null,r.jsxs("details",{className:"op-review__section",children:[r.jsx("summary",{children:"Workspace custody"}),r.jsxs("dl",{className:"op-review__technical",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Review ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.reviewId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Cycle ID"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.cycleId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source event"}),r.jsxs("dd",{children:[re.payload.sourceEventHead.sequence," ·"," ",r.jsx("code",{children:re.payload.sourceEventHead.hash??"genesis"})]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Source view"}),r.jsx("dd",{children:r.jsx("code",{children:re.payload.sourceViewHash})})]})]})]}),r.jsx(mL,{choice:(Z==null?void 0:Z.choice)??null,custody:(Z==null?void 0:Z.custody)??null,confirming:ie,onCancel:xe,onConfirm:_e},(Z==null?void 0:Z.custody.preview.previewId)??"closed")]})}const iP=Object.freeze({Page:aP,createValidator:Ff});function rP(e,t){return e.continuation?e.continuation.action.effect!=="read-only"&&!e.mutationEnabled?"This view is read-only, so changes are unavailable.":t?null:"This next step is visible, but its command control is unavailable.":"No next step is available for this active work."}function sP({model:e,onContinuation:t}){var g;const i=e.priorityAttention,s=e.continuation,c=PS(e,e.activeCycle.cycleId),d=s?e.actions.find(m=>m.actionId===s.subjectId)??null:null,u=rP(e,t!==void 0),p=e.activeCycle.deepLink;return r.jsxs("section",{className:"op-today-focus","aria-labelledby":"op-today-focus-title",children:[r.jsx("div",{className:"op-today-focus__custody",children:r.jsx("p",{className:"op-eyebrow",children:i?"Priority focus":"Current work"})}),r.jsxs("div",{className:"op-today-focus__question",children:[r.jsx("h2",{id:"op-today-focus-title",children:(i==null?void 0:i.title)??"Continue this work"}),r.jsx("p",{children:(i==null?void 0:i.whyNow)??e.activeCycle.focus[0]??"Review the active work before continuing."})]}),r.jsxs("dl",{className:"op-today-focus__brief",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Expected result"}),r.jsx("dd",{children:(d==null?void 0:d.expectedResult)??(i==null?void 0:i.consequence)??"Not projected on Today."})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Consequence"}),r.jsx("dd",{children:(i==null?void 0:i.consequence)??"No consequence was projected for this attention item."})]})]}),((g=e.continuationRelationship)==null?void 0:g.kind)==="different-subject"?r.jsxs("div",{className:"op-today-focus__relationship",role:"note",children:[r.jsxs("p",{children:["The available next step relates to this priority item",p?r.jsxs(r.Fragment,{children:[". Review the ",r.jsx("a",{href:p,children:"active work"})," before continuing."]}):"."]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Relationship details"}),r.jsxs("dl",{className:"op-today__status",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Focus item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.attentionSubjectId})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Next-step item"}),r.jsx("dd",{children:r.jsx("code",{children:e.continuationRelationship.continuationSubjectId})})]})]})]})]}):null,r.jsxs("div",{className:"op-today-focus__actions",children:[c?r.jsx("a",{className:"op-today-focus__evidence-link","data-review-navigation":"","data-review-read-action-digest":c.readActionDigest,href:c.deepLink,children:"Open Review"}):s&&!u&&t?r.jsx(Lt,{onInvoke:()=>t(s),children:s.action.label}):r.jsx(Lt,{disabled:!0,disabledReason:u??"The next step is unavailable.",children:(s==null?void 0:s.action.label)??"No next step available"}),r.jsx("a",{className:"op-today-focus__evidence-link",href:"#/operate/evidence",children:"View evidence"}),r.jsx("small",{children:"Changes take effect only after confirmation and verification."})]})]})}function oP(e,t){return e===null?"Not observed":t?`${e} ${t}`:String(e)}function qx(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function cP(e,t){const i=qx(e),s=qx(t);return i===s?`${i} data`:`${i} data · ${s}`}function Kx({model:e,idPrefix:t}){const i=e.attention.flatMap(s=>s.evidenceRefIds.map(c=>({attentionId:s.attentionId,evidenceRefId:c})));return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"op-today-evidence__summary",children:[r.jsxs("span",{children:[i.length," linked"]}),r.jsxs("span",{children:[e.domainMetrics.length," metric",e.domainMetrics.length===1?"":"s"]})]}),r.jsxs("section",{"aria-labelledby":`${t}-metrics`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-metrics`,children:e.vocabulary.signals}),e.domainMetrics.length>0?r.jsx("dl",{className:"op-today-evidence__metrics",children:e.domainMetrics.map(s=>r.jsxs("div",{"data-freshness":s.freshness,children:[r.jsx("dt",{children:s.title??"Key signal"}),r.jsxs("dd",{children:[r.jsx("span",{children:oP(s.value,s.unit)}),r.jsx("small",{children:cP(s.freshness,s.state)})]})]},s.metricId))}):r.jsx("p",{children:"No signal is available for this workspace yet."})]}),r.jsxs("section",{"aria-labelledby":`${t}-evidence-refs`,children:[r.jsx("p",{className:"op-eyebrow",id:`${t}-evidence-refs`,children:"Supporting evidence"}),i.length>0?r.jsxs("p",{children:[i.length," supporting record",i.length===1?"":"s"," are available in Evidence."]}):r.jsx("p",{children:"No supporting record is linked to this focus yet."})]}),r.jsxs("details",{className:"op-binding-passport__details",children:[r.jsx("summary",{children:"Technical details"}),r.jsxs("dl",{className:"op-today-evidence__custody",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Supporting records"}),r.jsx("dd",{children:r.jsx("code",{children:i.length>0?i.map(s=>s.evidenceRefId).join(" · "):"None"})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Event record"}),r.jsx("dd",{children:r.jsxs("code",{children:[e.surface.eventHead.sequence," · ",e.surface.eventHead.hash??"genesis"]})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"View hash"}),r.jsx("dd",{children:r.jsx("code",{children:e.surface.viewHash})})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Generated"}),r.jsx("dd",{children:r.jsx("time",{dateTime:e.surface.generatedAt,children:e.surface.generatedAt})})]})]})]})]})}function Jx({model:e,mode:t}){const i=`op-today-evidence-${t}-${e.binding.generation}`;return t==="compact"?r.jsxs("details",{className:"op-today-evidence op-today-evidence--compact",children:[r.jsx("summary",{children:"Evidence"}),r.jsx("div",{className:"op-today-evidence__body",children:r.jsx(Kx,{model:e,idPrefix:i})})]}):r.jsxs("aside",{className:"op-today-evidence op-today-evidence--wide","aria-label":"Evidence",children:[r.jsx("h2",{children:"Evidence"}),r.jsx(Kx,{model:e,idPrefix:i})]})}const lP=Object.freeze({ready:"ready","read-only":"read-only",stale:"stale",partial:"partial",blocked:"blocked",offline:"offline"});function cO(e){return Object.freeze(e==="business"?{domain:"business",title:"Business Today",context:"Business context",signals:"Business signals",cycle:"Business Cycle"}:e==="software"?{domain:"repository",title:"Repository Today",context:"Repository context",signals:"Repository signals",cycle:"Repository Cycle"}:{domain:"operating",title:"Operate Today",context:"Operating context",signals:"Operating signals",cycle:"Operating Cycle"})}function lO(e){try{const t=Ze(e);return t.productArea==="operate"&&t.route==="#/operate/today"&&t.subjectId===null&&t.eventHead!==null&&t.viewHash!==null?t:null}catch{return null}}function By(e){const t=lO(e);return i=>{if(!t||!Object.isFrozen(i))return!1;try{const s=Yn(i),c=s.payload;if(c.surface!=="today"||t.eventHead===null||t.viewHash===null||c.eventHead.sequence!==t.eventHead.sequence||c.eventHead.hash!==t.eventHead.hash)return!1;const d=Object.freeze({actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:t.viewHash,surface:"today",subjectId:null,cycleId:t.cycleId});return Yn(s,d),!0}catch{return!1}}}function dP(e,t){return By(t)(e)?e:null}function Zx(e,t,i){if(!Ke(e)||e.binding===null||e.data===null||!$e(e.binding,t))return null;const s=lP[e.kind];if(s===void 0)return null;const c=dP(e.data,t);if((c==null?void 0:c.payload.surface)!=="today")return null;const d=c.payload;if(d.status!==s||d.mutationEnabled!==e.mutationEnabled||d.data.activeCycle===null||t.cycleId===null||d.data.activeCycle.cycleId!==t.cycleId)return null;const u=d.data.attention[0]??null,p=d.data.allowedActions[0]??null,g=u&&p?Object.freeze({kind:u.subjectId===p.subjectId?"same-subject":"different-subject",attentionSubjectId:u.subjectId,continuationSubjectId:p.subjectId}):null;return Object.freeze({kind:"surface",source:i,presentation:s,binding:e.binding,display:c,vocabulary:cO(d.domainId),surface:d,attention:d.data.attention,domainMetrics:d.data.domainMetrics,activeCycle:d.data.activeCycle,inbox:d.data.inbox,actions:d.data.actions,outcomes:d.data.outcomes,allowedActions:d.data.allowedActions,priorityAttention:u,currentStage:d.data.activeCycle.stages.find(m=>m.state==="current")??null,continuation:p,continuationRelationship:g,mutationEnabled:e.mutationEnabled&&d.mutationEnabled})}function uP(e,t){return!Ke(e)||e.kind!=="first-use"&&e.kind!=="empty"||e.binding===null||e.data!==null||e.mutationEnabled||t.cycleId!==null||!$e(e.binding,t)?null:Object.freeze({kind:e.kind,source:"current",binding:e.binding,vocabulary:cO(t.domainId),reasonCodes:e.reasonCodes,continuation:null,continuationAvailability:"not-returned"})}function dO(e,t){const i=lO(t);if(!i)return null;if(e.resumable){const s=Zx(e.resumable,i,"durable-resume");if(s)return s}return Zx(e.current,i,"current")??uP(e.current,i)}function fP(e){var i;const t=e.domainMetrics[0];if(t){const s=t.title??"A key signal";if(t.change){const d={added:"is now available.",removed:"is no longer available.",changed:"has changed.",stale:"may be out of date.",conflict:"needs review."}[t.change.kind];return`${s} ${d}`}const c=t.value===null?null:String(t.value);return c?`${s} is currently ${c}${t.unit?` ${t.unit}`:""}.`:`${s} is current.`}return((i=e.priorityAttention)==null?void 0:i.whyNow)??"A fuller update is not available yet."}function pP(e){return e.split(/[-_]/u).filter(Boolean).map(t=>`${t.slice(0,1).toUpperCase()}${t.slice(1)}`).join(" ")}function hP(e){return{decision:"Decision",approval:"Approval",action:"Action",verification:"Verification",outcome:"Outcome",uncertainty:"Open question"}[e]}function gP({model:e}){const t=e.kind==="first-use";return r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:[r.jsx(ct,{headingLevel:1,eyebrow:`planr-operate · today · ${e.vocabulary.context}`,title:e.vocabulary.title,description:"Choose a workspace to see what needs attention."}),r.jsx(we,{state:"first-use",eyebrow:t?"First use":"Exact empty state",title:t?"No active work yet":"Nothing active here yet",description:t?"Choose a workspace from the available project context to get started.":"There is no active work in this workspace right now."}),r.jsx("p",{className:"op-today__context-note",children:"No next step is available until work is returned for this workspace."})]})}function AP({currentBinding:e,sources:t,onContinuation:i}){var c;const s=dO(t,e);return s?s.kind!=="surface"?r.jsx(gP,{model:s}):r.jsxs("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today","data-today-presentation":s.presentation,"data-today-source":s.source,children:[r.jsx(ct,{headingLevel:1,eyebrow:`planr-operate · today · ${s.vocabulary.context}`,title:((c=s.priorityAttention)==null?void 0:c.title)??s.activeCycle.focus[0]??"Continue this work",description:fP(s),actions:r.jsx(wa,{state:s.presentation,label:pP(s.presentation)})}),s.source==="durable-resume"?r.jsx("p",{className:"pc-operate__notice","data-tone":"verified",role:"status",children:"Your active work has been restored."}):null,s.presentation!=="ready"?r.jsxs("p",{className:"pc-operate__notice",role:"status",children:["This is a ",s.presentation," projection. Current access-safe truth remains visible; mutation stays unavailable."]}):null,r.jsx(JS,{stages:s.activeCycle.stages,cycleId:s.activeCycle.cycleId,health:s.activeCycle.health,title:s.currentStage?ic(s.currentStage.id):s.activeCycle.state,labelledBy:"op-today-spine-title"}),r.jsxs("div",{className:"op-today__desk-layout",children:[r.jsxs("section",{className:"op-today__work","aria-label":"Today decision workspace",children:[r.jsx(sP,{model:s,onContinuation:i}),r.jsxs("section",{className:"pc-operate__section","aria-label":"What needs attention now",children:[r.jsx(ct,{headingLevel:2,title:"What needs attention now",count:`${s.attention.length} item${s.attention.length===1?"":"s"}`}),s.attention.length>0?r.jsx("ol",{className:"pc-operate__records",children:s.attention.map(d=>r.jsxs("li",{className:"pc-operate__record",children:[r.jsxs("div",{className:"pc-operate__record-head",children:[r.jsxs("h3",{className:"pc-operate__record-title",children:[r.jsx("span",{className:"pc-operate__record-index",children:hP(d.kind)})," ",d.title]}),r.jsx(wa,{state:d.state})]}),r.jsx("p",{className:"pc-operate__record-facts",children:d.whyNow})]},d.attentionId))}):r.jsx("p",{className:"pc-operate__notice",children:"Nothing else needs attention in this active workspace."})]})]}),r.jsx(Jx,{model:s,mode:"wide"}),r.jsx(Jx,{model:s,mode:"compact"})]})]}):r.jsx("div",{className:"op-workspace op-today pc-operate","data-route-kind":"operate.today",children:r.jsx(we,{state:"incompatible",eyebrow:"Today projection",title:"Today cannot be trusted",description:"The returned state did not match the exact current binding and Today contract."})})}const mP=Object.freeze({Page:AP,createValidator:By}),Ht=Object.freeze({actions:n$,audit:w$,cycles:K4,inboxRecovery:gL,review:iP,today:mP});function yP(e){const t=e.frontmatter.updated;return t!=null&&t!==""}function EP({currentBinding:e,current:t}){const i=Hr(t,e);if(!i)return r.jsx(zs,{routeKind:"planning.activity",title:"Planning cannot be trusted"});const s=i.graph.nodes.length,c=i.graph.nodes.filter(yP).length;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-activity","data-route-kind":"planning.activity",children:[r.jsx(Hs,{presentation:i.presentation}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-status",title:"Activity",description:"Owner-issued watcher patches only. A graph snapshot is not a change log."}),r.jsxs(vt,{padding:0,children:[r.jsx(tn,{icon:"activity",title:"No activity returned",description:"Activity is a live patch feed, not a history. This route was given a graph snapshot, which carries no change log — so empty is the normal state, not an error."}),r.jsxs("div",{className:"pc-activity__aid",children:[r.jsx(Ma,{command:"/planr-status",label:"inspect delivery status without changing state",size:"sm"}),r.jsx(Wt,{tone:"info",title:"Looking for what changed?",children:c>0?r.jsxs(r.Fragment,{children:["A graph snapshot carries no history. The nearest signal is each item's"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter — ",c," of"," ",s," items carry one — shown on List."]}):r.jsxs(r.Fragment,{children:["A graph snapshot carries no history, and no item in this snapshot carries"," ",r.jsx("code",{className:"pc-activity__code",children:"updated"})," frontmatter."]})})]})]})]})}function fA(e,t){const i=e[t];return typeof i=="string"&&i.trim()!==""?i:null}function vP(e){const t=e.frontmatter.dependsOn;return Object.freeze({kind:"node",id:e.id,type:e.type,title:e.title,status:e.status,sprintId:fA(e.frontmatter,"sprintId")??fA(e.frontmatter,"sprint"),updated:fA(e.frontmatter,"updated"),dependsOn:Array.isArray(t)?Object.freeze(t.filter(i=>typeof i=="string")):Object.freeze([]),ref:e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null,href:Mf(e)})}function Ms(e){uz(vP(e))}function sm(e,t){const i=e.frontmatter[t];return typeof i=="string"&&i.trim()!==""?i:null}function BP(e){return sm(e,"sprintId")??sm(e,"sprint")}function bP(e){return ql.map(t=>({key:t,label:t,nodes:e.filter(i=>i.status===t)}))}function wP(e){return`${e} ${e===1?"artifact":"artifacts"}`}function xP({node:e}){const t=BP(e),i=sm(e,"updated");return r.jsxs("button",{type:"button",className:"pc-status-board__card",onClick:()=>Ms(e),children:[r.jsx(Ts,{type:e.type,id:Jt(e)}),r.jsx("span",{className:"pc-status-board__title",children:e.title}),r.jsxs("span",{className:"pc-status-board__foot",children:[t?r.jsx("span",{className:"pc-status-board__sprint",children:t}):null,r.jsx("span",{className:"pc-status-board__updated",children:i??r.jsx(mt,{})})]})]})}function jP({group:e,byStatus:t}){return r.jsxs("section",{className:"pc-status-board__column","aria-label":e.label,children:[r.jsxs("header",{className:"pc-status-board__head",children:[t?r.jsx(Gi,{status:e.key,size:"sm"}):r.jsx("span",{className:"pc-status-board__label",children:e.label}),r.jsx("span",{className:"pc-status-board__count",children:e.nodes.length})]}),r.jsxs("div",{className:"pc-status-board__cards",children:[e.nodes.map(i=>r.jsx(xP,{node:i},i.id)),e.nodes.length===0?r.jsx("span",{className:"pc-status-board__empty",children:"empty"}):null]})]})}function IP({currentBinding:e,current:t}){const[i,s]=B.useState("status"),c=Hr(t,e);if(!c)return r.jsx(zs,{routeKind:"planning.board",title:"Planning cannot be trusted"});const d=c.graph.nodes.filter(E=>E.type!=="sprint"),u=YY(d),p=u.find(E=>E.key===i),g=(p==null?void 0:p.key)??"status",m=g==="status",y=m?bP(d):zY(d,g),A=(p==null?void 0:p.label.toLowerCase())??"status";return r.jsxs("div",{className:"op-workspace op-planning op-planning--board pc-pipeline","data-route-kind":"planning.board",children:[r.jsx(Hs,{presentation:c.presentation}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-status · board",title:"Board",count:wP(d.length),description:`Grouped by ${A}. Read-only — status changes come from the CLI lifecycle.`}),d.length===0?r.jsx(tn,{icon:"columns-3",title:"No artifacts yet",description:"The board fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(Ma,{command:"/planr-plan",label:"create the graph",size:"sm"})}):r.jsxs(r.Fragment,{children:[u.length>1?r.jsxs(Df,{children:[r.jsx("span",{className:"pc-status-board__group",children:"group by"}),r.jsx(Sl,{value:g,onChange:s,options:u.map(E=>({value:E.key,label:E.label})),ariaLabel:"Group by",size:"sm"})]}):null,r.jsx("div",{className:"pc-status-board",children:y.map(E=>r.jsx(jP,{group:E,byStatus:m},E.key||"none"))})]})]})}const gt=(e,t,i)=>({id:e,summary:t,view:i,command:`/${e}`}),uO=Object.freeze([{id:"lifecycle",title:"Plan & deliver",description:"Shape intent into work, review it, implement it, and land it.",capabilities:Object.freeze([gt("planr-spec","Shape vague intent into a measurable, Protocol-compatible specification.","#/list"),gt("planr-plan","Turn a specification or intent into schema-compatible stories and tasks.","#/board"),gt("planr-plan-review","Review a plan for product, engineering, design, and DX problems.","#/board"),gt("planr-ship","Implement a plan, specification, task, or clearly stated request.","#/board"),gt("planr-land","Assess release readiness and prepare a landing sequence.","#/overview"),gt("planr-status","Inspect project or one feature's delivery status without changing state.","#/overview")])},{id:"operate",title:"Operate",description:"Run operating cycles and executive reviews over delivered work.",capabilities:Object.freeze([gt("planr-operate","Run a focused operating review across executive lenses and produce a board report.","#/operate/today")])},{id:"review-board",title:"Executive review board",description:"Grounded single-lens reviews and their synthesis for an Operate cycle.",capabilities:Object.freeze([gt("planr-ceo-review","Grounded strategy and finance review for an Operate cycle.","#/operate/cycles"),gt("planr-cpo-review","Grounded product and activation review for an Operate cycle.","#/operate/cycles"),gt("planr-cto-review","Grounded technology and delivery-risk review for an Operate cycle.","#/operate/cycles"),gt("planr-cmo-review","Grounded market and growth review for an Operate cycle.","#/operate/cycles"),gt("planr-coo-review","Grounded operations and customer-health review for an Operate cycle.","#/operate/cycles"),gt("planr-challenger-review","Challenge a cycle's claims, alternatives, downside, and confidence.","#/operate/cycles"),gt("planr-chair-review","Synthesize a cycle into a prioritized decision queue and action plan.","#/operate/cycles")])},{id:"design",title:"Design & artifacts",description:"Explore, review, and produce visual and document artifacts.",capabilities:Object.freeze([gt("planr-design","Create or route a product-design workflow using portable boards.",null),gt("planr-design-loop","Explore multiple design directions and collect pinned board feedback.",null),gt("planr-design-review","Review and revise an existing design from pinned board feedback.",null),gt("planr-diagram","Create, inspect, verify, or rerender professional offline diagrams.",null),gt("planr-artifact","Open, share, import, or export an HTML artifact review.",null)])},{id:"maintain",title:"Investigate & maintain",description:"Diagnose problems, verify behavior, and keep planning state healthy.",capabilities:Object.freeze([gt("planr-investigate","Diagnose a bug, regression, or unexplained behavior, and optionally fix it.",null),gt("planr-browser-qa","Browser-backed QA over real routes, forms, viewports, accessibility, and network.",null),gt("planr-doctor","Diagnose CLI, pipeline, runtime-adapter, and installation problems.","#/diagnostics"),gt("planr-sync","Audit planning artifacts for graph and protocol drift.","#/activity"),gt("planr-dashboard","Start or inspect this loopback-only planning dashboard.","#/overview")])}]),QP=uO.reduce((e,t)=>e+t.capabilities.length,0),CP=[{key:"id",label:"Skill",width:190,render:e=>r.jsx(fC,{name:e.id,size:"sm"})},{key:"summary",label:"Purpose",render:e=>r.jsx(GG,{children:e.summary})},{key:"view",label:"Dashboard",width:132,render:e=>{const t=e.view?cc(e.view):null;return t?r.jsx("a",{className:"pc-console__link",href:t,children:e.view}):r.jsx(mt,{})}},{key:"command",label:"Invocation",width:268,render:e=>r.jsx(Ma,{command:e.command,size:"sm"})}];function SP(e,t){return`${e.id} ${e.summary}`.toLowerCase().includes(t)}function OP(){const[e,t]=B.useState(""),i=e.trim().toLowerCase(),s=uO.map(d=>({id:d.id,title:d.title,capabilities:i?d.capabilities.filter(u=>SP(u,i)):d.capabilities})).filter(d=>d.capabilities.length>0),c=s.reduce((d,u)=>d+u.capabilities.length,0);return r.jsxs("div",{className:"op-workspace op-planning pc-console","data-route-kind":"planning.console",children:[r.jsx(ct,{eyebrow:"planr-dashboard · console",title:"Console",count:`${QP} skills`,description:"The static catalog of planr-* skills, in their shipped groups. Reference only — the console cannot invoke them."}),r.jsxs(Df,{children:[r.jsx(qm,{size:"sm",icon:"search",placeholder:"Filter skills",ariaLabel:"Filter skills",value:e,onChange:t,width:220}),r.jsx(Vm,{}),r.jsxs("span",{className:"pc-console__shown",children:[c," shown"]})]}),r.jsx("div",{className:"pc-console__catalog",children:s.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"search",title:"No skill matches this filter",description:"Filter by skill name or purpose."})}):s.map(d=>r.jsx(vt,{title:d.title,meta:String(d.capabilities.length),padding:0,children:r.jsx(zi,{compact:!0,columns:CP,rows:d.capabilities,caption:d.title})},d.id))})]})}function Dn({label:e,value:t}){return r.jsxs("div",{children:[r.jsx("dt",{children:e}),r.jsx("dd",{children:t==null||t===""?"Not available":t})]})}function _P({origin:e}){const t=e.eventHead.sequence===null?null:`${e.eventHead.sequence} · ${e.eventHead.hash??"genesis"}`;return r.jsxs("details",{className:"op-planning-origin__details",children:[r.jsx("summary",{children:"Origin integrity details"}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Dn,{label:"Proposal",value:e.proposalId}),r.jsx(Dn,{label:"Proposal revision",value:e.proposalRevision}),r.jsx(Dn,{label:"Proposal digest",value:e.proposalHash}),r.jsx(Dn,{label:"Event head",value:t}),r.jsx(Dn,{label:"Origin digest",value:e.originHash}),r.jsx(Dn,{label:"Planning receipt",value:e.transaction.receiptHash}),r.jsx(Dn,{label:"Planning provenance",value:e.transaction.planningProvenanceEventId}),r.jsx(Dn,{label:"Verification plan",value:typeof e.verification.verificationPlanId=="string"?e.verification.verificationPlanId:null}),r.jsx(Dn,{label:"Metric",value:typeof e.metric.metricId=="string"?e.metric.metricId:null})]})]})}function NP({envelope:e,title:t,summary:i}){const s=e&&typeof e=="object"?e:{},c=_U(s.origin??e),d=RU(c),u=t??(c.spec.specId?`Why ${c.spec.specId} exists`:"Why this Planning work exists");return r.jsxs("section",{className:"op-planning-origin planning-operating-origin","aria-label":"Operating origin and delivery trace","data-origin-state":c.status,children:[r.jsxs("header",{className:"op-planning-origin__header",children:[r.jsxs("div",{children:[r.jsx("p",{className:"op-eyebrow",children:"Operating origin"}),r.jsx("h2",{children:u}),r.jsx("p",{children:i??"The sidecar preserves exact Operate custody while Planning remains independently authoritative."})]}),d?r.jsx("a",{className:"op-cycle-link",href:d,children:"Open in Operate"}):null]}),r.jsxs("dl",{className:"op-cycle-custody",children:[r.jsx(Dn,{label:"SPEC",value:c.spec.specId}),r.jsx(Dn,{label:"Status",value:c.spec.status}),r.jsx(Dn,{label:"Decision",value:c.decision.id}),r.jsx(Dn,{label:"Action",value:c.action.id}),r.jsx(Dn,{label:"Correlation",value:c.correlationId})]}),r.jsx(_P,{origin:c}),r.jsxs("section",{className:"op-planning-origin__trace","aria-labelledby":"op-planning-delivery-trace-title",children:[r.jsx("header",{className:"op-cycle-section-heading",children:r.jsxs("div",{children:[r.jsx("h3",{id:"op-planning-delivery-trace-title",children:"Delivery and value trace"}),r.jsx("p",{children:"Each state belongs to its own ledger. Delivery is evidence; it is not Outcome success."})]})}),r.jsx(hS,{progress:s.progress??{nodes:[]}})]})]})}function RP({specId:e,binding:t}){const{bootstrap:i}=Bm(),s=(i==null?void 0:i.queryRoots.operate)??null,[c,d]=B.useState(null),[u,p]=B.useState("idle");return B.useEffect(()=>{if(typeof window>"u"||s===null||s.projectId!==t.projectId){d(null),p("unavailable");return}let g=!1;const m=new AbortController;p("loading");const y=Ze({productArea:"operate",route:"#/operate/today",actorId:s.actorId,projectId:s.projectId,scopeId:s.scopeId,domainId:s.domainId,domainVersion:s.domainVersion,cycleId:null,subjectId:null,eventHead:null,viewHash:null,generation:s.generation});return qU({origin:window.location.origin,identity:y,specId:e,signal:m.signal}).then(A=>{if(g)return;const E=A.origin,b=E.spec;if((b==null?void 0:b.specId)===e&&E.scopeId===s.scopeId&&E.domainId===s.domainId&&E.domainVersion===s.domainVersion&&DP(E.actor)===s.actorId){d({origin:A.origin,progress:A.progress}),p("ready");return}p("unavailable")}).catch(()=>{g||p("unavailable")}),()=>{g=!0,m.abort()}},[t.projectId,s,e]),u==="loading"||u==="idle"?r.jsx("section",{className:"op-planning-section","aria-label":"Operating origin loading",children:r.jsx("p",{role:"status",children:"Loading operating origin projection…"})}):c?r.jsx(NP,{envelope:c}):null}function DP(e){if(e===null||typeof e!="object"||Array.isArray(e))return null;const t=Reflect.get(e,"actorId");return typeof t=="string"?t:null}function Di(e,t){const i=e.frontmatter[t];return typeof i=="string"&&i.trim()!==""?i:null}function by(e){return Di(e,"sprintId")??Di(e,"sprint")}function fO(e){return e.githubIssue!==void 0?`#${e.githubIssue}`:e.linearIssueIdentifier??null}function af(e){const t=e.frontmatter.dependsOn;return Array.isArray(t)?t.filter(i=>typeof i=="string"):[]}function pO(e){const t=new Map;for(const i of e)i.kind==="depends_on"&&t.set(i.from,(t.get(i.from)??0)+1);return t}const Gl=Object.freeze({key:"item",label:"Item",render:e=>r.jsx(Ts,{type:e.type,id:Jt(e),title:e.title,blocked:e.status==="blocked",interactive:!0})}),Vf=Object.freeze({key:"status",label:"Status",width:132,render:e=>r.jsx(Gi,{status:e.status,size:"sm"})}),om=Object.freeze({key:"sprint",label:"Sprint",width:92,mono:!0,render:e=>by(e)??r.jsx(mt,{})}),Yl=Object.freeze({key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:e=>Di(e,"updated")??r.jsx(mt,{})}),TP=Object.freeze({key:"ref",label:"Ref",width:96,mono:!0,align:"right",render:e=>fO(e)??r.jsx(mt,{})});function wy(e){const t=typeof e.get=="function"?e:pO(e);return Object.freeze({key:"deps",label:"Deps",width:56,mono:!0,align:"right",render:i=>{const s=t.get(i.id)??0;return s>0?String(s):r.jsx(mt,{})}})}const kP=new Set(["created","updated","sprintId","sprint","owner","dependsOn"]),MP=Object.freeze([Gl,Vf,Yl]);function Xx(){typeof window<"u"&&(window.location.hash="#/list")}function hO(e){const t=Mf(e);t&&typeof window<"u"&&(window.location.hash=t)}function GP(e,t){const i=new Map(e.nodes.map(u=>[u.id,u])),s=new Set,c=[],d=(u,p)=>{for(const g of e.edges){const m=g.kind,y=m==="depends_on"&&g.to===u?g.from:m==="contains"&&g.from===u?g.to:null;if(y===null||s.has(y))continue;s.add(y);const A=i.get(y);A&&(c.push({...A,depth:p,via:m}),d(y,p+1))}};return d(t,0),c}function pA({title:e,rows:t}){return r.jsx(vt,{title:e,meta:String(t.length),padding:0,children:t.length>0?r.jsx(zi,{compact:!0,rows:t,onRowClick:hO,caption:e,columns:MP}):r.jsx("div",{className:"pc-detail__none",children:"none"})})}function Wx({currentBinding:e,current:t}){const i=e.route.startsWith("#/plan/specs/"),s=i?"planning.spec":"planning.detail",[c,d]=B.useState(i?"downstream":"fields"),u=Hr(t,e);if(!u)return r.jsx(zs,{routeKind:s,title:"Planning cannot be trusted"});const p=e.subjectId===null?null:$Y(e.subjectId),g=p===null?void 0:u.graph.nodes.find(N=>N.id===p);if(!g)return r.jsx("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"circle-alert",title:`No artifact ${e.subjectId??""}`.trim(),description:"This id is not in the current graph snapshot.",action:r.jsx(ba,{size:"sm",icon:"chevron-left",onClick:Xx,children:"Back to List"})})})});const{graph:m}=u,y=new Map(m.nodes.map(N=>[N.id,N])),A=af(g).map(N=>y.get(N)).filter(N=>N!==void 0),E=m.edges.filter(N=>N.kind==="depends_on"&&N.to===g.id).map(N=>y.get(N.from)).filter(N=>N!==void 0),b=m.edges.filter(N=>N.kind==="contains"&&N.from===g.id).map(N=>y.get(N.to)).filter(N=>N!==void 0),w=m.edges.find(N=>N.kind==="contains"&&N.to===g.id),j=i?GP(m,g.id):[],I=qY(g),Q=Object.entries(I.meta).filter(([N])=>!kP.has(N)),S=by(g),C=fO(g),_=Jt(g),O=i?[{id:"downstream",label:"Downstream",count:j.length},{id:"fields",label:"Fields"},{id:"body",label:"Body"}]:[{id:"fields",label:"Fields"},{id:"relations",label:"Relations",count:A.length+E.length+b.length},{id:"body",label:"Body"}],T=[{key:"item",label:"Item",render:N=>r.jsx("span",{className:"pc-detail__indent",style:{paddingLeft:N.depth*16},children:r.jsx(Ts,{type:N.type,id:Jt(N),title:N.title,blocked:N.status==="blocked",interactive:!0})})},{key:"via",label:"Via",width:116,mono:!0,render:N=>N.via},{key:"status",label:"Status",width:132,render:N=>r.jsx(Gi,{status:N.status,size:"sm"})},{key:"updated",label:"Updated",width:96,mono:!0,align:"right",render:N=>Di(N,"updated")??r.jsx(mt,{})}];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-detail","data-route-kind":s,children:[r.jsx(Hs,{presentation:u.presentation}),r.jsx(ct,{headingLevel:1,eyebrow:i?"planr-spec · trace":`planr-plan · ${g.type}`,title:g.title,count:_,description:i?"SPEC trace: everything downstream of this specification.":void 0,actions:r.jsx(ba,{variant:"ghost",size:"sm",icon:"chevron-left",onClick:Xx,children:"List"})}),r.jsxs("div",{className:"pc-detail__identity",children:[r.jsx(Ts,{type:g.type,id:_}),r.jsx(Gi,{status:g.status}),S?r.jsx("span",{className:"pc-detail__mono",children:S}):null,C?r.jsx("span",{className:"pc-detail__mono",children:C}):null]}),g.type==="spec"?r.jsx(RP,{specId:g.id,binding:e}):null,r.jsx(dC,{label:"Artifact sections",value:c,onChange:d,tabs:O}),r.jsx("div",{className:"pc-detail__stack",children:c==="downstream"?r.jsx(vt,{title:"Downstream of this spec",meta:String(j.length),padding:0,children:j.length>0?r.jsx(zi,{compact:!0,rows:j,onRowClick:hO,caption:"Downstream artifacts",columns:T}):r.jsx("div",{className:"pc-detail__empty",children:r.jsx(tn,{icon:"list-tree",title:"Nothing waits on this spec",description:"No artifact carries a depends_on edge to it."})})}):c==="fields"?r.jsx(vt,{title:"Frontmatter",meta:`${_}.md`,padding:14,children:r.jsxs("div",{className:"pc-detail__fields",children:[r.jsx(Qt,{label:"id",mono:!0,children:g.id}),r.jsx(Qt,{label:"type",mono:!0,children:g.type}),r.jsx(Qt,{label:"status",mono:!0,children:g.status}),r.jsx(Qt,{label:"created",mono:!0,children:Di(g,"created")??r.jsx(mt,{})}),r.jsx(Qt,{label:"updated",mono:!0,children:Di(g,"updated")??r.jsx(mt,{})}),r.jsx(Qt,{label:"sprintId",mono:!0,children:S??r.jsx(mt,{})}),r.jsx(Qt,{label:"owner",mono:!0,children:Di(g,"owner")??r.jsx(mt,{children:"not recorded"})}),r.jsx(Qt,{label:"dependsOn",mono:!0,children:af(g).length>0?af(g).join(", "):r.jsx(mt,{})}),r.jsx(Qt,{label:"githubIssue",mono:!0,children:g.githubIssue!==void 0?`#${g.githubIssue}`:r.jsx(mt,{})}),r.jsx(Qt,{label:"linearIssue",mono:!0,children:g.linearIssueIdentifier??r.jsx(mt,{})}),r.jsx(Qt,{label:"parent",mono:!0,children:w?Jt(y.get(w.from)??w.from):r.jsx(mt,{children:"root"})}),Q.map(([N,$])=>r.jsx(Qt,{label:N,mono:!0,children:$},N))]})}):c==="relations"?r.jsxs(r.Fragment,{children:[r.jsx(pA,{title:"Depends on",rows:A}),r.jsx(pA,{title:"Depended on by",rows:E}),r.jsx(pA,{title:"Contains",rows:b})]}):r.jsx(vt,{title:"Body",meta:"markdown",padding:14,children:I.criteria.length===0&&I.subtasks.length===0&&!g.body?r.jsx(Wt,{tone:"info",title:"No body in this snapshot",children:"The artifact file has frontmatter only, or the body was not read into the graph."}):r.jsxs("div",{className:"pc-detail__body",children:[I.criteria.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Acceptance criteria",children:[r.jsxs("h3",{className:"pc-detail__label",children:["acceptance criteria · ",I.criteria.length]}),r.jsx("ol",{className:"pc-detail__criteria",children:I.criteria.map(N=>r.jsx("li",{children:N},N))})]}):null,I.subtasks.length>0?r.jsxs("section",{className:"pc-detail__section","aria-label":"Subtasks",children:[r.jsxs("h3",{className:"pc-detail__label",children:["subtasks · ",I.subtasks.length]}),r.jsx("ul",{className:"pc-detail__subtasks",children:I.subtasks.map(N=>r.jsxs("li",{className:"pc-detail__subtask",children:[r.jsx(Gi,{status:N.done?"done":"outstanding",size:"sm",showLabel:!1}),r.jsx("span",{children:N.text})]},N.text))})]}):null,g.body?r.jsx("pre",{className:"pc-detail__markdown",children:g.body}):null]})})})]})}const YP=Object.freeze(["depends_on","contains"]),HP=Object.freeze([{id:"graph",label:"Graph",icon:"workflow"},{id:"outline",label:"Outline",icon:"list-tree"}]),zP=460,UP=Object.freeze({font:"var(--pc-type-mono-sm)"}),$P=Object.freeze({font:"var(--pc-type-mono-sm)",color:"var(--pc-text-tertiary)"});function LP(e){return e==="depends_on"||e==="contains"}function PP(e,t){var m;const i=e.edges.filter(y=>y.kind===t),s=new Set(i.flatMap(y=>[y.from,y.to])),c=new Map;for(const y of e.nodes){const A=Jt(y);c.set(A,(c.get(A)??0)+1)}const d=new Map,u=new Map,p=[];for(const y of e.nodes){if(!s.has(y.id))continue;const A=Jt(y),E=c.get(A)===1?A:y.id;d.set(y.id,E),u.set(E,y),p.push({id:E,type:y.type,label:y.title,blocked:y.status==="blocked"})}const g=[];for(const y of i){const A=d.get(y.from),E=d.get(y.to);if(A===void 0||E===void 0)continue;const b=t==="depends_on"&&((m=u.get(E))==null?void 0:m.status)==="blocked";g.push(b?{from:A,to:E,blocked:!0}:{from:A,to:E})}return{nodes:p,edges:g,byGraphId:u,graphIdOf:d}}function FP(e,t){const i=new Map;for(const u of t){const p=i.get(u.from);p?p.push(u):i.set(u.from,[u])}const s=new Map,c=new Set,d=u=>{s.set(u,"open");for(const p of i.get(u)??[]){const g=s.get(p.to);g==="open"?c.add(p):g===void 0&&d(p.to)}s.set(u,"closed")};for(const u of e)s.has(u.id)||d(u.id);return c}function VP({currentBinding:e,current:t}){var w;const[i,s]=B.useState("graph"),[c,d]=B.useState("depends_on"),u=dy(),p=Hr(t,e);if(!p)return r.jsx(zs,{routeKind:"planning.graph",title:"Planning cannot be trusted"});const g=PP(p.graph,c),m=i==="outline"?FP(g.nodes,g.edges):null,y=m&&m.size>0?g.edges.filter(j=>!m.has(j)):g.edges,A=((w=u.selection)==null?void 0:w.kind)==="node"?g.graphIdOf.get(u.selection.id)??null:null,E=y.map(j=>A!==null&&(j.from===A||j.to===A)?{...j,active:!0}:j),b=j=>{const I=g.byGraphId.get(j);I&&Ms(I)};return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline","data-route-kind":"planning.graph",children:[r.jsx(Hs,{presentation:p.presentation}),r.jsxs("div",{children:[r.jsx(ct,{headingLevel:1,eyebrow:"planr-diagram · graph",title:"Graph",count:`${g.nodes.length} nodes · ${g.edges.length} edges`,description:c==="depends_on"?"A dependency map ordered from prerequisites to dependent work. Select a node to trace its relationships and inspect its record.":"A containment map ordered from parent artifacts to their children. Select a node to inspect its record."}),p.graph.nodes.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"workflow",title:"Nothing to draw",description:"This plan has no artifacts yet, so there are no edges to show.",action:r.jsx(Ma,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsxs(Df,{right:r.jsx(dC,{size:"sm",label:"Graph view",value:i,onChange:j=>s(j==="outline"?"outline":"graph"),tabs:HP}),children:[r.jsx(Sl,{size:"sm",width:132,ariaLabel:"Edge kind",value:c,onChange:j=>{LP(j)&&d(j)},options:YP}),r.jsx(Vm,{}),r.jsx("span",{style:$P,children:"edge kind"})]}),g.edges.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"workflow",title:`No ${c} edges in this plan`,description:"Both views draw edges only; an artifact without an edge of this kind is not shown."})}):r.jsx("div",{style:{marginTop:6},children:r.jsx(kG,{nodes:g.nodes,edges:E,view:i,flow:c==="depends_on"?"target-to-source":"source-to-target",selectedId:A,onSelect:b,height:zP})}),m&&m.size>0?r.jsx("div",{style:{marginTop:12},children:r.jsx(Wt,{tone:"warn",title:`${m.size} ${m.size===1?"edge closes":"edges close"} a cycle`,children:"The outline nests parent to child and cannot draw a cycle, so these edges are left out of it. The graph view draws every edge."})}):null,c==="depends_on"&&g.edges.length>0?r.jsx("div",{style:{marginTop:12},children:r.jsxs(Wt,{tone:"info",title:"Edges carry no satisfaction state",children:["An edge means ",r.jsx("code",{style:UP,children:"depends_on"}),", nothing more. The model does not say whether a dependency is met, so a satisfied edge and an unsatisfied one draw identically; an edge dashes only when the artifact it points at is itself blocked."]})}):null]})]})]})}let cm=null;function qP(e){cm=e}function KP(){const e=cm;return cm=null,e}const hA=Object.freeze({query:"",type:"all",status:"all",compact:!1,sort:Object.freeze({key:"updated",dir:"desc"}),page:0}),hl=new Map,lm=new Set;function JP(e){return lm.add(e),()=>lm.delete(e)}function ZP(e){const t=JSON.stringify([e.productArea,e.route,e.actorId,e.projectId,e.scopeId,e.domainId,e.domainVersion,e.cycleId,e.subjectId,e.generation]),i=B.useRef(null);if(i.current!==t){const u=KP();u!==null&&hl.set(t,Object.freeze({...hl.get(t)??hA,status:u,page:0})),i.current=t}const s=B.useCallback(()=>hl.get(t)??hA,[t]),c=B.useCallback(u=>{hl.set(t,Object.freeze({...hl.get(t)??hA,...u}));for(const p of lm)p()},[t]);return[B.useSyncExternalStore(JP,s,s),c]}const gO="all",gl=100,AO=Object.freeze(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),XP=Object.freeze([{value:gO,label:"All types"},...AO.map(e=>({value:e,label:e}))]),WP=Object.freeze([{value:gO,label:"All statuses"},...ql.map(e=>({value:e,label:e}))]),e3=Object.freeze({...Yl,sortable:!0});function t3(e){return AO.includes(e)}function n3(e){return ql.includes(e)}function a3(e,t){return[...e].sort((i,s)=>{const c=Di(i,"updated"),d=Di(s,"updated");return c===d?0:c===null?1:d===null?-1:t==="asc"?c.localeCompare(d):d.localeCompare(c)})}function i3({currentBinding:e,current:t}){var _;const[{query:i,type:s,status:c,compact:d,sort:u,page:p},g]=ZP(e),m=dy(),y=Hr(t,e);if(!y)return r.jsx(zs,{routeKind:"planning.list",title:"Planning cannot be trusted"});const A=kY(y.graph.nodes,"id"),E=TY(A,{search:i.trim()||void 0,typeFilter:t3(s)?[s]:void 0,statusFilter:n3(c)?c:null}),b=u.key==="updated"?a3(E,u.dir):E,w=Math.max(1,Math.ceil(b.length/gl)),j=Math.min(p,w-1),I=j*gl,Q=b.slice(I,I+gl),S=pO(y.graph.edges),C=((_=m.selection)==null?void 0:_.kind)==="node"?m.selection.id:void 0;return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-list","data-route-kind":"planning.list",children:[r.jsx(Hs,{presentation:y.presentation}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-plan · list",title:"List",count:`${b.length} of ${A.length}`,description:"Every node in the graph, filterable by text, type and status."}),A.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"list",title:"No artifacts yet",description:"The list fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(Ma,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs("section",{className:"pc-list__surface","aria-label":"Planning artifact index",children:[r.jsxs(Df,{right:r.jsx(IG,{size:"sm",checked:d,onChange:O=>g({compact:O}),label:"Compact"}),children:[r.jsx(qm,{size:"sm",icon:"search",width:220,placeholder:"Filter by id or title",ariaLabel:"Filter by id or title",value:i,onChange:O=>{g({query:O,page:0})}}),r.jsx(Sl,{size:"sm",width:128,ariaLabel:"Filter by type",value:s,onChange:O=>{g({type:O,page:0})},options:XP}),r.jsx(Sl,{size:"sm",width:138,ariaLabel:"Filter by status",value:c,onChange:O=>{g({status:O,page:0})},options:WP}),r.jsx(Vm,{}),r.jsx("span",{className:"pc-list__note",children:"read-only view of .planr/"})]}),r.jsx(zi,{rows:Q,compact:d,selectedId:C,sort:u,onSort:O=>{g({sort:{key:O,dir:u.key===O&&u.dir==="desc"?"asc":"desc"},page:0})},onRowClick:Ms,caption:"Planning artifacts",emptyMessage:"No node matches this filter.",columns:[Gl,Vf,om,wy(S),e3,TP]}),b.length>gl?r.jsxs("nav",{className:"pc-list__pagination","aria-label":"Planning artifact pages",children:[r.jsxs("span",{className:"pc-list__page-status","aria-live":"polite",children:["Page ",j+1," of ",w," · ",I+1,"–",Math.min(I+gl,b.length)," of ",b.length]}),r.jsxs("div",{className:"pc-list__page-actions",children:[r.jsx(ba,{size:"sm",icon:"chevron-left",disabled:j===0,onClick:()=>g({page:Math.max(0,j-1)}),children:"Previous"}),r.jsx(ba,{size:"sm",iconAfter:"chevron-right",disabled:j+1>=w,onClick:()=>g({page:Math.min(w-1,j+1)}),children:"Next"})]})]}):null]})]})}const vr=3,r3=new Set(["done","in-progress","blocked","outstanding","addressed"]);function s3(e){return r3.has(e)}function o3(e){return{key:"dependsOn",label:"Depends on",width:220,render:t=>{const i=af(t),s=i[0];if(s===void 0)return r.jsx(mt,{children:"no depends_on"});const c=e.get(s);return r.jsxs("span",{className:"pc-overview__deps",title:i.join(", "),children:[c?r.jsx(Ts,{type:c.type,id:Jt(c)}):r.jsx("span",{className:"pc-overview__mono",children:s}),i.length>1?r.jsxs("span",{className:"pc-overview__mono",children:["+",i.length-1]}):null]})}}}function gA(e){s3(e)&&(qP(e),typeof window<"u"&&(window.location.hash="#/list"))}function c3({currentBinding:e,current:t}){const i=Hr(t,e);if(!i)return r.jsx(zs,{routeKind:"planning.overview",title:"Planning cannot be trusted"});const{graph:s,presentation:c}=i,d=s.nodes.filter(y=>y.type!=="sprint"),u={};for(const y of d)u[y.status]=(u[y.status]??0)+1;const p=d.filter(y=>y.status==="blocked"),g=d.filter(y=>y.status==="in-progress"),m=new Map(s.nodes.map(y=>[y.id,y]));return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-overview","data-route-kind":"planning.overview",children:[r.jsx(Hs,{presentation:c}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-status · overview",title:"Overview",count:`${d.length} ${d.length===1?"artifact":"artifacts"}`,description:"Status counts come straight from the graph snapshot."}),d.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"gauge",title:"No artifacts yet",description:"The overview fills in as the graph gains epics, features, stories and tasks.",action:r.jsx(Ma,{command:"/planr-plan",label:"create the graph",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"pc-overview__tally",children:r.jsx(YG,{counts:u,total:d.length,onPick:gA})}),r.jsxs("div",{className:"pc-overview__stack",children:[r.jsx(vt,{title:"Blocked",meta:`${p.length} ${p.length===1?"item":"items"}`,padding:0,actions:p.length>vr?r.jsx(ba,{size:"sm",variant:"ghost",onClick:()=>gA("blocked"),children:"View all blocked"}):null,children:p.length>0?r.jsxs(r.Fragment,{children:[r.jsx(zi,{compact:!0,rows:p.slice(0,vr),onRowClick:Ms,caption:"Blocked artifacts",columns:[Gl,o3(m),om,Yl]}),p.length>vr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",vr," of ",p.length," blocked artifacts, in project order."]}):null,r.jsx("div",{className:"pc-overview__note",children:r.jsxs(Wt,{tone:"info",title:"Depends-on is not the same as blocked-by",children:["The graph records ",r.jsx("code",{children:"depends_on"})," edges and a ",r.jsx("code",{children:"blocked"})," ","status, but nothing that links them. These are every dependency, not the blocking one."]})})]}):r.jsx("div",{className:"pc-overview__empty",children:r.jsx(tn,{icon:"check-check",title:"Nothing is blocked",description:"No artifact carries the blocked status."})})}),r.jsxs(vt,{title:"In progress",meta:`${g.length} ${g.length===1?"item":"items"}`,padding:0,actions:g.length>vr?r.jsx(ba,{size:"sm",variant:"ghost",onClick:()=>gA("in-progress"),children:"View all in progress"}):null,children:[r.jsx(zi,{compact:!0,rows:g.slice(0,vr),onRowClick:Ms,caption:"Artifacts in progress",emptyMessage:"No artifact carries the in-progress status.",columns:[Gl,Vf,wy(s.edges),om,Yl]}),g.length>vr?r.jsxs("p",{className:"pc-overview__note",children:["Showing ",vr," of ",g.length," in-progress artifacts, in project order."]}):null]})]})]})]})}const l3=Object.freeze(["taskIds","storyIds","itemIds","artifactIds"]);function d3(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"&&t.trim()!==""):[]}function u3(e){return Object.freeze([...new Set(l3.flatMap(t=>d3(e.frontmatter[t])))])}function ej(e,t){const i=Jt(t),s=u3(t),c=new Map;for(const p of e)if(p.type!=="sprint")for(const g of new Set([p.id,Jt(p)]))c.set(g,[...c.get(g)??[],p]);const d=new Map;for(const p of s)for(const g of c.get(p)??[])d.set(g.id,g);for(const p of e){if(p.type==="sprint")continue;const g=by(p);(g===t.id||g===i)&&d.set(p.id,p)}const u=s.filter(p=>{var g;return!(((g=c.get(p))==null?void 0:g.length)??0)});return Object.freeze({members:Object.freeze([...d.values()].sort((p,g)=>p.id.localeCompare(g.id))),missing:Object.freeze(u)})}function Hl(e,...t){for(const i of t){const s=e.frontmatter[i];if(typeof s=="string"&&s.trim()!=="")return s.trim()}return null}function tj(e){return Hl(e,"title","name")??e.title}function dm(e){var i;const t=(i=Hl(e,"status"))==null?void 0:i.toLowerCase().replaceAll("_","-");return t==="active"||t==="in progress"?"in-progress":t??e.status}function mO(e){return Object.freeze({start:Hl(e,"startDate","startsAt","start"),end:Hl(e,"endDate","endsAt","end")})}function nj(e,t){const i=jC(t.members);if(t.missing.length>0)return Object.freeze({label:"scope mismatch",tone:"warn"});if(i.blocked>0)return Object.freeze({label:"blocked work",tone:"danger"});if(t.members.length>0&&i.done===t.members.length){const c=dm(e);return Object.freeze(c==="done"||c==="addressed"?{label:"complete",tone:"success"}:{label:"ready to close",tone:"warn"})}const{end:s}=mO(e);return s&&/^\d{4}-\d{2}-\d{2}$/u.test(s)&&s<new Date().toISOString().slice(0,10)?Object.freeze({label:"past end date",tone:"warn"}):Object.freeze({label:"in flight",tone:"info"})}function f3(e,t,i){const s=new Set(e.map(u=>u.id)),c=new Map(t.map(u=>[u.id,u])),d=new Map;for(const u of i){if(u.kind!=="depends_on"||!s.has(u.from)||s.has(u.to))continue;const p=c.get(u.to);p&&p.status!=="done"&&p.status!=="addressed"&&d.set(p.id,p)}return Object.freeze([...d.values()].sort((u,p)=>u.id.localeCompare(p.id)))}function br(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function p3(e,t){if(!br(e)||!Array.isArray(e.items)||!br(e.items[0]))return null;const i=e.items[0],s=br(t)&&br(t.item)?t.item:null;if(!s||typeof i.cycleId!="string"||typeof i.title!="string"||typeof i.signal!="string"||typeof i.updatedAt!="string"||!br(i.counts)||!Array.isArray(s.actions))return null;const c=s.actions.filter(d=>br(d)?["id","priority","action","owner","firstStep","successMeasure"].every(u=>typeof d[u]=="string"):!1);return Object.freeze({cycleId:i.cycleId,title:i.title,signal:i.signal,updatedAt:i.updatedAt,counts:Object.freeze({actions:Number.isSafeInteger(i.counts.actions)?Number(i.counts.actions):0,gaps:Number.isSafeInteger(i.counts.gaps)?Number(i.counts.gaps):0}),actions:Object.freeze(c)})}function h3(){const[e,t]=B.useState({status:"loading",pulse:null});return B.useEffect(()=>{const i=new AbortController,s=async()=>{try{const d=new URL("/api/operate/local-reviews?page=1&pageSize=1",window.location.origin),u=await fetch(d,{headers:{accept:"application/json"},signal:i.signal});if(!u.ok){t({status:"empty",pulse:null});return}const p=await u.json(),g=br(p)&&Array.isArray(p.items)&&br(p.items[0])?p.items[0].cycleId:null;if(typeof g!="string"){t({status:"empty",pulse:null});return}const m=await fetch(new URL(`/api/operate/local-reviews/${encodeURIComponent(g)}`,window.location.origin),{headers:{accept:"application/json"},signal:i.signal});if(!m.ok){t({status:"failed",pulse:null});return}const y=p3(p,await m.json());t(y?{status:"ready",pulse:y}:{status:"failed",pulse:null})}catch{i.signal.aborted||t({status:"failed",pulse:null})}};s();const c=window.setInterval(()=>void s(),5e3);return()=>{window.clearInterval(c),i.abort()}},[]),e}function g3(e,t){const i=`${e.action} ${e.firstStep} ${e.successMeasure}`.toLowerCase();return[...t].some(s=>i.includes(s.toLowerCase()))}function A3({currentBinding:e,current:t}){const[i,s]=B.useState(null),c=h3(),d=Hr(t,e);if(!d)return r.jsx(zs,{routeKind:"planning.sprints",title:"Planning cannot be trusted"});const{nodes:u,edges:p}=d.graph,g=u.filter(I=>I.type==="sprint").sort((I,Q)=>Q.id.localeCompare(I.id)),m=g.find(I=>I.id===i)??g.find(I=>dm(I)!=="done")??g[0]??null,y=m?ej(u,m):Object.freeze({members:Object.freeze([]),missing:Object.freeze([])}),A=jC(y.members),E=y.members.length===0?0:Math.round(A.done/y.members.length*100),b=m?f3(y.members,u,p):[],w=new Set(m?[Jt(m),...y.members.flatMap(I=>[I.id,Jt(I)])]:[]),j=c.status==="ready"?c.pulse.actions.filter(I=>g3(I,w)):[];return r.jsxs("div",{className:"op-workspace op-planning pc-pipeline pc-sprints","data-route-kind":"planning.sprints",children:[r.jsx(Hs,{presentation:d.presentation}),r.jsx(ct,{headingLevel:1,eyebrow:"planr-status · sprints",title:"Sprints",count:`${g.length} ${g.length===1?"sprint":"sprints"}`,description:"Commitment, delivery health, dependencies, and operating context from the records already in this workspace."}),g.length===0?r.jsx(vt,{padding:0,children:r.jsx(tn,{icon:"calendar-range",title:"No sprints yet",description:"No artifact of type sprint is in the graph.",action:r.jsx(Ma,{command:"/planr-plan",label:"plan the next sprint",size:"sm"})})}):r.jsxs(r.Fragment,{children:[r.jsx("section",{className:"pc-sprints__grid","aria-label":"Sprint timeline",children:g.map(I=>{const Q=ej(u,I),S=ql.map(T=>({state:T,count:Q.members.filter(N=>N.status===T).length})).filter(T=>T.count>0),C=mO(I),_=nj(I,Q),O=(m==null?void 0:m.id)===I.id;return r.jsxs("button",{type:"button",className:"pc-sprints__card","data-active":O||void 0,"aria-pressed":O,onClick:()=>s(I.id),children:[r.jsxs("span",{className:"pc-sprints__head",children:[r.jsx(Ts,{type:"sprint",id:Jt(I)}),r.jsx(ra,{tone:_.tone,variant:"outline",children:_.label})]}),r.jsx(MG,{name:tj(I),segments:S}),r.jsxs("span",{className:"pc-sprints__dates",children:[r.jsx(be,{name:"calendar-range",size:12}),C.start&&C.end?`${C.start} → ${C.end}`:"Dates not recorded"]})]},I.id)})}),m?r.jsxs("section",{className:"pc-sprints__workspace","aria-label":`${Jt(m)} delivery workspace`,children:[r.jsxs("div",{className:"pc-sprints__summary",children:[r.jsxs("div",{className:"pc-sprints__summary-copy",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Current commitment"}),r.jsx("h2",{children:tj(m)}),r.jsx("p",{children:Hl(m,"goal","sprintGoal")??"No sprint goal is recorded."})]}),r.jsx(Gi,{status:dm(m),size:"sm"})]}),r.jsxs("dl",{className:"pc-sprints__metrics",children:[r.jsxs("div",{children:[r.jsx("dt",{children:"Complete"}),r.jsxs("dd",{children:[E,"%"]})]}),r.jsxs("div",{children:[r.jsx("dt",{children:"Committed"}),r.jsx("dd",{children:y.members.length})]}),r.jsxs("div",{"data-attention":A.blocked>0||void 0,children:[r.jsx("dt",{children:"Blocked"}),r.jsx("dd",{children:A.blocked})]}),r.jsxs("div",{"data-attention":b.length>0||void 0,children:[r.jsx("dt",{children:"External deps"}),r.jsx("dd",{children:b.length})]})]}),r.jsxs("div",{className:"pc-sprints__body",children:[r.jsx(vt,{title:`${Jt(m)} commitment`,meta:`${y.members.length} items`,padding:0,children:y.members.length>0?r.jsx(zi,{compact:!0,rows:y.members,onRowClick:Ms,caption:`Members of ${Jt(m)}`,columns:[Gl,Vf,wy(p),Yl]}):r.jsx("div",{className:"pc-sprints__empty",children:r.jsx(tn,{icon:"calendar-range",title:"No committed work",description:"This sprint has no taskIds and no item points back through sprintId."})})}),r.jsxs("aside",{className:"pc-sprints__intelligence","aria-label":"Sprint intelligence",children:[r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Delivery health"}),r.jsx("strong",{children:nj(m,y).label}),r.jsxs("p",{children:[A.done," done · ",A.inProgress," in progress · ",A.outstanding," ","outstanding"]})]}),y.missing.length>0?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"warn",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Scope gaps"}),r.jsxs("strong",{children:[y.missing.length," committed IDs are missing"]}),r.jsx("p",{children:y.missing.join(", ")})]}):null,r.jsxs("div",{className:"pc-sprints__intelligence-section",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Open dependencies"}),r.jsx("strong",{children:b.length===0?"No external blockers recorded":`${b.length} outside this sprint`}),b.length>0?r.jsx("ul",{children:b.slice(0,4).map(I=>r.jsx("li",{children:r.jsxs("button",{type:"button",onClick:()=>Ms(I),children:[Jt(I)," · ",I.title]})},I.id))}):null]}),c.status==="ready"?r.jsxs("div",{className:"pc-sprints__intelligence-section","data-tone":"operate",children:[r.jsx("span",{className:"pc-sprints__eyebrow",children:"Latest operating review"}),r.jsx("strong",{children:c.pulse.signal}),r.jsxs("p",{children:[c.pulse.counts.actions," actions · ",c.pulse.counts.gaps," gaps ·"," ",j.length," reference this scope"]}),j.slice(0,3).map(I=>r.jsxs("div",{className:"pc-sprints__operate-action",children:[r.jsx("span",{children:I.priority}),r.jsx("p",{children:I.action}),r.jsxs("small",{children:["Next: ",I.firstStep]}),r.jsxs("small",{children:["Owner: ",I.owner]})]},I.id)),r.jsx("a",{href:"#/operate/today",children:"Open Operate today →"})]}):null]})]})]}):null]})]})}const m3=Object.freeze({"planning.overview":c3,"planning.graph":VP,"planning.board":IP,"planning.list":i3,"planning.sprints":A3,"planning.activity":EP,"planning.console":OP,"planning.detail":Wx,"planning.spec":Wx});function y3(e){return m3[e.kind]??null}const E3=oz;function v3({route:e,projection:t,binding:i}){return Ke(t)&&t.data!==null&&i!==null&&t.binding!==null&&$e(t.binding,i)&&e.subjectId===i.subjectId}function xy(e,t,i=!1){return!Ke(e)||e.kind!=="booting"&&e.kind!=="loading"&&(e.kind!=="refreshing"||i&&e.data!==null)?!1:e.binding===null?e.kind==="booting"&&t===null:t!==null&&$e(e.binding,t)}function jy({route:e,projection:t}){const i=oc(e),s=(i==null?void 0:i.label)??"Workspace",c=e.product==="operate",d=t.kind==="refreshing"?"refreshing":"loading";return r.jsxs("section",{className:"op-workspace op-route-pending","data-route-kind":e.kind,"data-route-pending":t.kind,"aria-busy":"true",children:[r.jsx(ct,{eyebrow:c?"planr-operate":"planr-plan",title:s,count:d,description:c?"Reading the Operate projection. The route is already resolved.":`Reading the graph from ${Ol}/. The route is already resolved.`}),c?r.jsx(Lo,{count:4,label:`Loading ${s}`}):r.jsx(MA,{rows:8,label:`Loading ${s}`,columns:[{label:"Item"},{label:"Status",width:132},{label:"Sprint",width:88},{label:"Updated",width:88}]})]})}function Xa({route:e,binding:t,projection:i,eyebrow:s,title:c,description:d}){return xy(i,t)?r.jsx(jy,{route:e,projection:i}):Ke(i)&&i.data===null?r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(wz,{currentBinding:t,route:e,state:i,children:()=>null})}):r.jsx("div",{className:"op-workspace","data-route-kind":e.kind,children:r.jsx(we,{state:"incompatible",eyebrow:s,title:c,description:d})})}function B3({route:e,binding:t,projection:i}){return xy(i,t)?r.jsx(jy,{route:e,projection:i}):Ke(i)&&i.data===null?r.jsx(Xa,{route:e,binding:t,projection:i,eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."}):r.jsx("div",{className:"op-workspace op-planning","data-route-kind":e.kind,children:r.jsx(we,{state:"incompatible",eyebrow:"Planning projection",title:"Planning cannot be trusted",description:"The current state is not a parser-verified owner-issued Planning graph."})})}function b3({route:e,projection:t,binding:i,connectionState:s,searchSources:c,operateSearchBindings:d}){if(e.kind==="planning.search")return r.jsx(E3,{sources:c,operateBindings:d,connectionState:s});const u=y3(e);return xy(t,i,!0)?r.jsx(jy,{route:e,projection:t}):u&&i&&Ke(t)?r.jsx(u,{currentBinding:i,current:t}):r.jsx(B3,{route:e,binding:i,projection:t})}function w3({route:e,projection:t,binding:i}){if(i&&Ke(t)){if(e.kind==="operate.evidence"||e.kind==="operate.evidence-item")return r.jsx(Ht.audit.EvidencePage,{currentBinding:i,current:t});if(e.kind==="operate.outcomes"||e.kind==="operate.outcome")return r.jsx(Ht.audit.OutcomesPage,{currentBinding:i,current:t});if(e.kind==="operate.history")return r.jsx(Ht.audit.HistoryPage,{currentBinding:i,current:t})}const s=e.kind==="operate.history"?"History":e.kind==="operate.outcomes"||e.kind==="operate.outcome"?"Outcomes":"Evidence";return r.jsx("div",{className:"op-workspace op-audit","data-route-kind":e.kind,children:r.jsx(we,{state:"incompatible",eyebrow:`${s} projection`,title:`${s} cannot be trusted`,description:"The current state is not a parser-verified owner-issued audit projection."})})}function x3(e){const{route:t,projection:i,binding:s,operateReviewNavigation:c,refetchCurrent:d}=e;return oc(t)?t.product==="planning"?r.jsx(b3,{...e}):t.kind==="operate.today"?s&&Ke(i)&&(i.kind==="first-use"||i.kind==="empty"||i.data!==null&&Ht.today.createValidator(s)(i.data))?r.jsx(Ht.today.Page,{currentBinding:s,sources:{current:i}}):r.jsx(Xa,{...e,eyebrow:"Today projection",title:"Today cannot be trusted",description:"The current state is not a parser-verified owner-issued Today projection."}):t.kind==="operate.cycles"?s&&Ke(i)&&i.data!==null&&Ht.cycles.createListValidator(s)(i.data)?r.jsx(Ht.cycles.ListPage,{currentBinding:s,current:i}):r.jsx(Xa,{...e,eyebrow:"Cycle projection",title:"Cycles cannot be trusted",description:"The current state is not a parser-verified owner-issued Cycles projection."}):t.kind==="operate.cycle"?s&&Ke(i)&&i.data!==null?r.jsx(Ht.cycles.DetailRoute,{currentBinding:s,workspace:i,reviewNavigation:c}):r.jsx(Xa,{...e,eyebrow:"Cycle projection",title:"Cycle cannot be trusted",description:"The current state is not a parser-verified owner-issued Cycle projection."}):t.kind==="operate.review"?s&&Ke(i)&&i.data!==null&&Ht.review.createValidator(s)(i.data)?r.jsx(Ht.review.Page,{currentBinding:s,current:i,onRefetch:d}):r.jsx(Xa,{...e,eyebrow:"Review projection",title:"Review cannot be trusted",description:"The current state is not a parser-verified owner-issued Review workspace."}):t.kind==="operate.actions"?s&&Ke(i)&&Ht.actions.createListValidator(s)(i.data)?r.jsx(Ht.actions.ListPage,{currentBinding:s,current:i}):r.jsx(Xa,{...e,eyebrow:"Action projection",title:"Actions cannot be trusted",description:"The current state is not a parser-verified owner-issued Actions projection."}):t.kind==="operate.action-planning"?s&&Ke(i)&&i.data!==null?r.jsx(Ht.actions.PlanningHandoffPage,{currentBinding:s,current:i,onRefetch:d}):r.jsx(Xa,{...e,eyebrow:"Action projection",title:"Action cannot be trusted",description:"The current state is not a parser-verified owner-issued Action workspace."}):t.kind==="operate.action"?s&&Ke(i)&&Ht.actions.createDetailValidator(s)(i.data)?r.jsx(Ht.actions.DetailPage,{currentBinding:s,current:i,onRefetch:d}):r.jsx(Xa,{...e,eyebrow:"Action projection",title:"Action cannot be trusted",description:"The current state is not a parser-verified owner-issued Action workspace."}):t.kind==="operate.recovery"?s&&Ke(i)&&Ht.inboxRecovery.createRecoveryValidator(s)(i.data)?r.jsx(Ht.inboxRecovery.RecoveryPage,{currentBinding:s,current:i}):r.jsx(Xa,{...e,eyebrow:"Recovery projection",title:"Recovery cannot be trusted",description:"The current state is not a parser-verified owner-issued recovery display."}):t.kind==="operate.inbox"||t.kind==="operate.inbox-item"?s&&Ke(i)&&Ht.inboxRecovery.createInboxValidator(s)(i.data)?r.jsx(Ht.inboxRecovery.InboxPage,{currentBinding:s,current:i,onRefetch:d}):r.jsx(Xa,{...e,eyebrow:"Inbox projection",title:"Inbox cannot be trusted",description:"The current state is not a parser-verified owner-issued Inbox projection."}):t.kind==="operate.evidence"||t.kind==="operate.evidence-item"||t.kind==="operate.outcomes"||t.kind==="operate.outcome"||t.kind==="operate.history"?r.jsx(w3,{route:t,projection:i,binding:s}):r.jsx("div",{className:"op-workspace op-workspace--unknown","data-route-kind":t.kind,children:r.jsx(we,{state:"incompatible",eyebrow:"Route composition",title:"Destination is not implemented",description:"This parsed route has no dedicated verified workspace in the current dashboard build."})}):r.jsxs("div",{className:"op-workspace op-workspace--unknown","data-route-kind":"not-found",children:[r.jsx("p",{className:"op-eyebrow",children:"Closed route"}),r.jsx("h1",{children:"Destination not available"}),r.jsx("p",{children:"This address is not part of the OpenPlanr dashboard route contract."}),r.jsx("a",{className:"op-inline-action",href:"#/overview",children:"Return to Planning overview"})]})}const um=Object.freeze([{label:"Plan",items:[{kind:"planning.overview",icon:"gauge"},{kind:"planning.list",icon:"list"},{kind:"planning.graph",icon:"workflow"},{kind:"planning.board",icon:"columns-3"},{kind:"planning.sprints",icon:"calendar-range"},{kind:"planning.activity",icon:"activity"}]}]),rf=Object.freeze([{label:"Work",items:[{kind:"operate.today",icon:"target"},{kind:"operate.inbox",icon:"inbox"},{kind:"operate.actions",icon:"git-pull-request"},{kind:"operate.cycles",icon:"calendar-days"}]},{label:"Record",items:[{kind:"operate.evidence",icon:"file-check"},{kind:"operate.outcomes",icon:"flag"},{kind:"operate.history",icon:"history"},{kind:"operate.recovery",icon:"life-buoy"}]}]),fm=Object.freeze([{kind:"planning.console",icon:"terminal"},{kind:"system.diagnostics",icon:"life-buoy"}]),yO=new Map(_j.map(e=>[e.kind,e])),j3={"planning.detail":"planning.list","planning.spec":"planning.list","operate.cycle":"operate.cycles","operate.review":"operate.cycles","operate.inbox-item":"operate.inbox","operate.action":"operate.actions","operate.action-planning":"operate.actions","operate.evidence-item":"operate.evidence","operate.outcome":"operate.outcomes"};function EO(e,t){return t.kind==="not-found"?!1:e.kind===t.kind?!0:j3[t.kind]===e.kind}function aj({item:e,route:t}){const i=yO.get(e.kind);return i?r.jsxs("a",{className:"pc-rail__item",href:i.href,"aria-current":EO(i,t)?"page":void 0,children:[r.jsx(be,{name:e.icon,size:14}),r.jsx("span",{children:i.label})]}):null}function ij({item:e,route:t,onNavigate:i}){const s=yO.get(e.kind);return s?r.jsxs("a",{className:"pc-mobile-nav__item",href:s.href,"aria-current":EO(s,t)?"page":void 0,onClick:i,children:[r.jsx(be,{name:e.icon,size:16}),r.jsx("span",{children:s.label})]}):null}function I3({product:e,route:t,operateAvailable:i}){var m,y,A,E,b;const[s,c]=B.useState(!1);B.useEffect(()=>c(!1),[t.kind]);const d=e==="operate"?((m=rf[0])==null?void 0:m.items.slice(0,3))??[]:((y=um[0])==null?void 0:y.items.slice(0,3))??[],u=e==="operate"?[...((A=rf[0])==null?void 0:A.items.slice(3))??[],...((E=rf[1])==null?void 0:E.items)??[],...fm]:[...((b=um[0])==null?void 0:b.items.slice(3))??[],...fm],p=e==="operate"?"Operate":"Planning",g=e==="operate"?{href:"#/overview",icon:"list-tree",label:"Planning",unavailable:!1}:{href:"#/operate/today",icon:i?"gauge":"unplug",label:"Operate",unavailable:!i};return r.jsxs("nav",{className:"pc-mobile-nav","aria-label":`Mobile ${p} navigation`,children:[d.map(w=>r.jsx(ij,{item:w,route:t},w.kind)),r.jsxs("a",{className:"pc-mobile-nav__item",href:g.href,"data-unavailable":g.unavailable||void 0,title:g.unavailable?"operate — local reviews available; actions require a command gateway":void 0,children:[r.jsx(be,{name:g.icon,size:16}),r.jsx("span",{children:g.label})]}),r.jsxs("details",{className:"pc-mobile-more",open:s,onToggle:w=>c(w.currentTarget.open),children:[r.jsxs("summary",{className:"pc-mobile-nav__item","aria-label":`More ${p} destinations`,children:[r.jsx(be,{name:"layers",size:16}),r.jsx("span",{children:"More"})]}),r.jsx("div",{className:"pc-mobile-more__sheet",children:u.map(w=>r.jsx(ij,{item:w,route:t,onNavigate:()=>c(!1)},w.kind))})]})]})}function Q3({product:e,route:t,operateAvailable:i,onOpenPalette:s}){const c=e==="operate"?rf:um,d=!i;return r.jsxs(r.Fragment,{children:[r.jsxs("nav",{className:"pc-rail","aria-label":"Dashboard navigation",children:[r.jsxs("div",{className:"pc-rail__brand",children:[r.jsx("span",{className:"pc-rail__tile","aria-hidden":"true",children:"P"}),r.jsx("span",{className:"pc-rail__wordmark",children:"openplanr"}),r.jsx(be,{name:"chevrons-up-down",size:13,color:"var(--pc-text-tertiary)"})]}),r.jsxs("div",{className:"pc-rail__products",children:[r.jsxs("a",{className:"pc-rail__product",href:"#/overview","aria-current":e==="planning"?"page":void 0,children:[r.jsx(be,{name:"list-tree",size:12}),"planning"]}),r.jsxs("a",{className:"pc-rail__product",href:"#/operate/today","aria-current":e==="operate"?"page":void 0,"data-unavailable":d||void 0,title:d?"operate — local reviews available; actions require a command gateway":"operate",children:[r.jsx(be,{name:d?"unplug":"gauge",size:12}),"operate"]})]}),r.jsxs("button",{type:"button",className:"pc-rail__palette",onClick:s,"aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(be,{name:"search",size:13}),r.jsx("span",{children:"Command…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(Or,{size:"sm",children:"⌘"}),r.jsx(Or,{size:"sm",children:"K"})]})]}),r.jsx("div",{className:"pc-rail__sections",children:c.map(u=>r.jsxs("div",{className:"pc-rail__section",children:[r.jsx("div",{className:"pc-rail__label",children:u.label}),r.jsx("div",{className:"pc-rail__items",children:u.items.map(p=>r.jsx(aj,{item:p,route:t},p.kind))})]},u.label))}),r.jsx("div",{className:"pc-rail__footer",children:fm.map(u=>r.jsx(aj,{item:u,route:t},u.kind))})]}),r.jsx(I3,{product:e,route:t,operateAvailable:i},t.kind)]})}const vO=Object.freeze({booting:{label:"booting",icon:"loader-circle",tone:"amber",dot:"amber",dotLabel:"connecting to the watcher"},connected:{label:"connected",icon:"activity",tone:"lime",dot:"lime",dotLabel:"watcher connected"},"read-only":{label:"read-only",icon:"lock",tone:"ink",dot:"lime",dotLabel:"watcher connected"},stale:{label:"stale",icon:"clock",tone:"amber",dot:"amber",dotLabel:"watcher stale"},offline:{label:"offline",icon:"unplug",tone:"verm",dot:"off",dotLabel:"watcher offline"},incompatible:{label:"incompatible",icon:"octagon-alert",tone:"verm",dot:"off",dotLabel:"watcher stopped"}});function rj({state:e}){const t=vO[e];return r.jsxs("span",{className:"pc-conn","data-tone":t.tone,title:`connection: ${t.label}`,children:[r.jsx(be,{name:t.icon,size:11,spin:e==="booting"}),t.label]})}function C3({state:e}){const t=vO[e];return r.jsxs("span",{className:"pc-watcher",role:"status","aria-label":t.dotLabel,children:[r.jsx("span",{className:"pc-watcher__dot","data-dot":t.dot,"aria-hidden":"true"}),r.jsx("span",{className:"pc-watcher__label",children:t.dotLabel})]})}const BO="op-theme",sj=Object.freeze({system:"light",light:"dark",dark:"system"}),S3=Object.freeze({system:"monitor",light:"sun",dark:"moon"});function O3(){try{const e=localStorage.getItem(BO);if(e==="light"||e==="dark"||e==="system")return e}catch{}return"system"}function oj(e){const t=document.documentElement;e==="system"?t.removeAttribute("data-theme"):t.setAttribute("data-theme",e)}function _3(){const[e,t]=B.useState("system");return B.useEffect(()=>{const i=O3();t(i),oj(i)},[]),r.jsx(lC,{icon:S3[e],label:`Theme: ${e}. Switch to ${sj[e]}.`,size:"sm",onClick:()=>{const i=sj[e];t(i),oj(i);try{localStorage.setItem(BO,i)}catch{}}})}function N3({projectName:e,showSubject:t=!1,route:i,connectionState:s,inspectorOpen:c,onToggleInspector:d,onOpenPalette:u}){const p=oc(i),g=i.product??"system",m=!t||i.kind==="not-found"?null:i.subjectId;return r.jsxs("header",{className:"pc-topbar",children:[e?r.jsx("span",{className:"pc-topbar__crumb",title:e,children:e}):null,r.jsx("span",{className:"pc-topbar__crumb",children:g}),r.jsx(be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__view",children:(p==null?void 0:p.label)??"Closed route"}),m?r.jsxs(r.Fragment,{children:[r.jsx(be,{name:"chevron-right",size:12,color:"var(--pc-text-tertiary)"}),r.jsx("span",{className:"pc-topbar__subject",title:m,children:m})]}):null,r.jsxs("button",{type:"button",className:"pc-topbar__palette",onClick:u,"aria-keyshortcuts":"Meta+K Control+K",children:[r.jsx(be,{name:"search",size:13}),r.jsx("span",{className:"pc-topbar__placeholder",children:"Jump to a view or an artifact…"}),r.jsxs("span",{className:"pc-rail__keys",children:[r.jsx(Or,{size:"sm",children:"⌘"}),r.jsx(Or,{size:"sm",children:"K"})]})]}),r.jsxs("output",{className:"pc-topbar__end","aria-live":"polite",children:[s!=="read-only"?r.jsx(rj,{state:s}):null,r.jsx(rj,{state:"read-only"})]}),r.jsx(_3,{}),r.jsx(lC,{icon:c?"panel-right-close":"panel-left-close",label:c?"Hide inspector":"Show inspector",size:"sm",active:c,onClick:d})]})}function R3({branch:e,nodeCount:t,edgeCount:i,connectionState:s,buildId:c}){return r.jsxs("footer",{className:"pc-statusbar",children:[r.jsxs("span",{className:"pc-statusbar__item",children:[r.jsx(be,{name:"git-branch",size:11}),r.jsx("span",{className:"pc-statusbar__text",children:e??r.jsx(mt,{children:"no branch"})})]}),r.jsx("span",{className:"pc-statusbar__item",children:r.jsx("span",{className:"pc-statusbar__text",children:t===null?"graph not read":`${t} nodes · ${i===null?"—":i} edges`})}),r.jsx(C3,{state:s}),r.jsx("span",{className:"pc-statusbar__end",title:"Served build",children:r.jsx("span",{className:"pc-statusbar__text",children:c})})]})}const D3=Object.freeze(["type","sprintId","updated","dependsOn","ref"]);function cj(e){typeof window<"u"&&(window.location.hash=e)}function T3({mode:e,selection:t,floating:i}){return r.jsx("aside",{className:"pc-shell-inspector","data-floating":i||void 0,"aria-label":"Inspector",children:e==="skeleton"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(pn,{w:92,h:18,radius:"var(--pc-radius-xs)"}),r.jsx(pn,{w:64,h:14})]}),r.jsx(pn,{h:16}),r.jsx(pn,{w:"72%",h:16}),r.jsx("div",{className:"pc-shell-inspector__skeleton",children:D3.map((s,c)=>r.jsxs("div",{className:"pc-shell-inspector__skeleton-row",children:[r.jsx("span",{children:s}),r.jsx(pn,{h:12,delay:c*60})]},s))})]}):e==="stub"?r.jsxs("div",{className:"pc-shell-inspector__stub",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:"inspector"}),r.jsx("p",{children:"No artifact has been read. The schema on disk is a version this build does not parse."})]}):t===null?r.jsx(tn,{icon:"square-dashed",title:"Nothing selected",description:"Pick a row in a table or a node in the graph to read it here."}):t.kind==="action"?r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx("span",{className:"pc-shell-inspector__id",children:t.actionId}),r.jsx(GA,{state:t.state,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(Qt,{label:"Revision",mono:!0,children:t.revision}),r.jsx(Qt,{label:"Route",mono:!0,children:t.route??r.jsx(mt,{})}),r.jsx(Qt,{label:"Executions",mono:!0,children:t.executions>0?t.executions:r.jsx(mt,{children:"none"})}),r.jsx(Qt,{label:"Deep link",mono:!0,children:t.deepLink??r.jsx(mt,{})})]}),t.href?r.jsx(ba,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>cj(t.href),children:"Open action"}):null]}):r.jsxs("div",{className:"pc-shell-inspector__content","aria-live":"polite",children:[r.jsxs("div",{className:"pc-shell-inspector__head",children:[r.jsx(Ts,{type:t.type,id:t.id}),r.jsx(Gi,{status:t.status,size:"sm"})]}),r.jsx("h2",{className:"pc-shell-inspector__title",children:t.title}),r.jsxs("div",{className:"pc-shell-inspector__metadata",children:[r.jsx(Qt,{label:"Type",mono:!0,children:t.type}),r.jsx(Qt,{label:"Sprint",mono:!0,children:t.sprintId??r.jsx(mt,{})}),r.jsx(Qt,{label:"Updated",mono:!0,children:t.updated??r.jsx(mt,{})}),r.jsx(Qt,{label:"Dependencies",mono:!0,children:t.dependsOn.length>0?t.dependsOn.join(", "):r.jsx(mt,{})}),r.jsx(Qt,{label:"Reference",mono:!0,children:t.ref??r.jsx(mt,{})})]}),t.href?r.jsx(ba,{variant:"secondary",size:"sm",iconAfter:"arrow-right",onClick:()=>cj(t.href),children:"Open artifact"}):null]})})}const lj=1180,AA=Object.freeze({"planning.overview":{eyebrow:"planr-status",shape:"overview"},"planning.list":{eyebrow:"planr-plan",shape:"table",columns:[{label:"Item"},{label:"Status",width:132},{label:"Sprint",width:88},{label:"Deps",width:56},{label:"Updated",width:88},{label:"Ref",width:96}]},"planning.graph":{eyebrow:"planr-diagram",shape:"graph"},"planning.board":{eyebrow:"planr-status",shape:"board"},"planning.sprints":{eyebrow:"planr-status",shape:"cards"},"planning.activity":{eyebrow:"planr-status",shape:"cards"},"planning.search":{eyebrow:"planr-status",shape:"table",columns:[{label:"Result"},{label:"Kind",width:120}]},"planning.console":{eyebrow:"planr-dashboard",shape:"table",columns:[{label:"Skill",width:190},{label:"Purpose"},{label:"Invocation",width:268}]},"planning.detail":{eyebrow:"planr-plan",shape:"detail"},"planning.spec":{eyebrow:"planr-spec",shape:"detail"},"system.diagnostics":{eyebrow:"planr-doctor",shape:"table",columns:[{label:"Check"},{label:"Detail"},{label:"Result",width:140}]}}),k3=Object.freeze({eyebrow:"planr-operate",shape:"cards"}),M3=Object.freeze(["a","b","c","d","e"]);function G3(e){return e.kind!=="not-found"&&e.kind in AA?AA[e.kind]:e.product==="operate"?k3:AA["planning.overview"]}function Y3({route:e,note:t}){const i=oc(e),s=G3(e),c=e.subjectId??(i==null?void 0:i.label)??"Workspace",d=e.product==="operate"?"Reading the Operate projection. The route is already resolved.":`Reading the graph from ${Ol}/. The route is already resolved.`;return r.jsxs("div",{className:"pc-transit","aria-busy":"true",children:[r.jsx(ct,{eyebrow:s.eyebrow,title:c,count:t,description:d}),s.shape==="overview"?r.jsxs(r.Fragment,{children:[r.jsx(vt,{padding:14,children:r.jsx(pn,{h:44})}),r.jsx("div",{className:"pc-transit__gap",children:r.jsx(MA,{rows:4,label:"Loading blocked",columns:[{label:"Item"},{label:"Depends on",width:200},{label:"Sprint",width:92},{label:"Updated",width:88}]})})]}):s.shape==="graph"?r.jsx(vt,{padding:14,children:r.jsx(pn,{h:420})}):s.shape==="board"?r.jsx("div",{className:"pc-transit__board",children:M3.map((u,p)=>r.jsxs(vt,{padding:10,children:[r.jsx(pn,{w:"52%",h:12,delay:p*60}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(pn,{h:54,delay:p*60+40})}),r.jsx("div",{className:"pc-transit__gap-sm",children:r.jsx(pn,{h:54,delay:p*60+80})})]},u))}):s.shape==="cards"?r.jsx(Lo,{count:4,label:`Loading ${c}`}):s.shape==="detail"?r.jsx(Lo,{count:1,height:168,min:520,label:"Loading artifact"}):r.jsx(MA,{rows:8,columns:s.columns??[],label:`Loading ${c}`})]})}function H3({route:e,phase:t,detail:i}){const s=t==="incompatible"||t==="unavailable",c=["checking",s?t:"compatible"];return r.jsxs("div",{className:"pc-boot",children:[r.jsxs("div",{className:"pc-boot__strip",role:"status","aria-live":"polite",children:[r.jsx(be,{name:s?"octagon-alert":"loader-circle",size:13,spin:!s,color:s?"var(--pc-astate-failed-fg)":"var(--pc-astate-proposed-fg)"}),r.jsx("span",{children:"boot"}),r.jsx("span",{className:"pc-boot__steps",children:c.map((d,u)=>r.jsxs(B.Fragment,{children:[u>0?r.jsx(be,{name:"chevron-right",size:11,color:"var(--pc-text-tertiary)"}):null,r.jsx("span",{className:"pc-boot__phase","data-current":d===t||void 0,children:d})]},d))})]}),r.jsx("div",{className:"pc-boot__body",children:s?r.jsx("div",{className:"pc-boot__card",children:r.jsx(vt,{padding:14,children:r.jsxs("div",{className:"pc-boot__stack",children:[r.jsx(Wt,{tone:t==="incompatible"?"danger":"warn",title:t==="incompatible"?"This build cannot read the graph on disk":"No graph at this path",children:i??(t==="incompatible"?`The ${Ol}/ schema on disk is a version this dashboard does not read. Nothing was opened, and nothing on disk was touched.`:`The dashboard started, but there is no ${Ol}/ directory to read. Planning fills in as soon as one exists.`)}),r.jsx(Ma,{command:t==="incompatible"?"/planr-doctor":"/planr-plan",label:t==="incompatible"?"check the schema version":"create the graph",size:"sm"})]})})}):r.jsx("div",{className:"pc-shell__scroll",children:r.jsx(Y3,{route:e,note:"booting"})})})]})}function z3({state:e,reason:t}){return e==="stale"?r.jsx("div",{className:"pc-plane-banner",children:r.jsx(Wt,{tone:"warn",title:"Showing the last good read",children:t})}):r.jsxs("div",{className:"pc-plane-banner",children:[r.jsx(Wt,{tone:"danger",title:"Offline — the watcher is not reachable",children:t}),r.jsx(Ma,{command:"/planr-dashboard",label:"restart the local reader",size:"sm"})]})}function U3({detail:e}){return r.jsxs("div",{className:"pc-incompatible",children:[r.jsx(Wt,{tone:"danger",title:"This build cannot read the graph on disk",children:e??`The ${Ol}/ schema is a version the dashboard does not understand. It stopped rather than render a partial or wrong reading of the plan.`}),r.jsx(Ma,{command:"/planr-doctor",label:"report the schema version on disk",size:"sm"}),r.jsx(Wt,{tone:"info",title:"Nothing was changed",children:"The dashboard only ever reads. No file was migrated, rewritten or removed."})]})}const bO=1440;function $3(e){return typeof window>"u"?()=>{}:(window.addEventListener("resize",e),()=>window.removeEventListener("resize",e))}function dj(){return typeof window>"u"?bO:window.innerWidth}function L3(){const{route:e,identity:t,connection:i,buildId:s,binding:c,projection:d,planningProjection:u,operateSearchBindings:p,operateReviewNavigation:g,refetchCurrent:m,bootstrap:y,bootPhase:A,bootDetail:E}=Bm(),b=lz(u),w=dy(),I=B.useSyncExternalStore($3,dj,()=>bO)<lj,[Q,S]=B.useState(()=>dj()>=lj);B.useEffect(()=>{I&&S(!1)},[I,e]),B.useEffect(()=>{w.openTick>0&&S(!0)},[w.openTick]);const C=e.product??"planning",_=A==="incompatible"||i.state==="incompatible",O=e.kind==="system.diagnostics"||_,T=i.state==="booting"&&!O,N=T?"skeleton":_?"stub":"selection",$=y!==null&&y.queryRoots.operate===null,G=e.product==="operate"&&$,U=(c==null?void 0:c.productArea)==="planning"?Hr(u,c):null,Z=U?null:vC(u),q=U?U.graph.nodes.length:Z&&Z.length>0?Z.length:null,de=U?U.graph.edges.length:null;return r.jsxs("div",{className:"pc-shell","data-dashboard-build-id":s,"data-product":e.product??"system",children:[r.jsx("a",{className:"pc-skip-link",href:"#main-content",onClick:re=>{var pe;re.preventDefault(),(pe=document.getElementById("main-content"))==null||pe.focus({preventScroll:!1})},children:"Skip to main content"}),r.jsx(Q3,{product:C,route:e,operateAvailable:!$,onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__column",children:[r.jsx(N3,{route:e,projectName:t.projectName,showSubject:v3({route:e,projection:d,binding:c}),connectionState:i.state,inspectorOpen:Q,onToggleInspector:()=>S(re=>!re),onOpenPalette:b.show}),r.jsxs("div",{className:"pc-shell__plane",children:[r.jsx("main",{id:"main-content",className:"pc-shell__main",tabIndex:-1,"aria-busy":T||void 0,children:G?r.jsx(AY,{route:e,origin:y.origin},e.kind):T?r.jsx(H3,{route:e,phase:A,detail:E}):r.jsxs(r.Fragment,{children:[i.state==="stale"||i.state==="offline"?r.jsx(z3,{state:i.state,reason:i.reason}):null,r.jsx("div",{className:"pc-shell__scroll",children:O?r.jsxs(r.Fragment,{children:[_?r.jsx(U3,{detail:E}):null,r.jsx(VG,{embeddedBuildId:s,bootstrap:y,bootPhase:A,bootDetail:E,connection:i})]}):r.jsx("div",{className:"op-route-frame",children:r.jsx(x3,{route:e,projection:d,binding:c,connectionState:i.state,searchSources:b.sources,operateSearchBindings:p,operateReviewNavigation:g,refetchCurrent:m})})})]})}),Q?r.jsx(T3,{mode:N,selection:w.selection,floating:I},`${e.kind}:${e.subjectId??""}:${w.openTick}`):null]}),r.jsx(R3,{branch:(y==null?void 0:y.project.branch)??null,nodeCount:q,edgeCount:de,connectionState:i.state,buildId:s})]}),r.jsx(sz,{open:b.open,onClose:b.close,sources:b.sources,operateBindings:p,preferredOperateCycleId:e.product==="operate"?c==null?void 0:c.cycleId:null,connectionState:i.state})]})}const uj=/^[A-Za-z0-9][A-Za-z0-9._-]{0,159}$/u,pm=/^sha256:[a-f0-9]{64}$/u,mA=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u,P3=/^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u,F3=/^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?$/u,V3=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,q3=["DASHBOARD_MANIFEST_MISSING","DASHBOARD_MANIFEST_INVALID","DASHBOARD_ASSET_MISSING","DASHBOARD_BUILD_MISMATCH"];function Ci(e,t,i){if(e!==t)throw new ee(i,`expected ${t}`);return t}function fj(e,t,i){if(typeof e!="string"||!t.includes(e))throw new ee(i,"contains an unsupported value");return e}function K3(e){if(typeof e!="string"||e.length<1||e.length>160)throw new ee("$.project.name","contains an invalid string");for(const t of e){const i=t.codePointAt(0)??0;if(i<=31||i>=127&&i<=159)throw new ee("$.project.name","contains an invalid string")}return e}function pj(e,t){if(e===null)return null;const i=At(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);if(!Number.isSafeInteger(i.generation)||i.generation<0)throw new ee(`${t}.generation`,"expected a non-negative safe integer");return Object.freeze({actorId:Je(i.actorId,`${t}.actorId`,mA),projectId:Je(i.projectId,`${t}.projectId`,pm),scopeId:Je(i.scopeId,`${t}.scopeId`,mA),domainId:Je(i.domainId,`${t}.domainId`,mA),domainVersion:Je(i.domainVersion,`${t}.domainVersion`,P3),generation:i.generation})}function J3(e){const t=At(e,["kind","schemaVersion","protocolVersion","ui","server","capabilities","project","queryRoots","origin","compatibility"],"$"),i=At(t.ui,["buildId","expectedBuildId","assetManifestHash"],"$.ui"),s=At(t.server,["packageVersion"],"$.server"),c=At(t.capabilities,["planningGraph","operateExperience","operateCommands","diagnostics"],"$.capabilities"),d=At(c.planningGraph,["schemaVersion"],"$.capabilities.planningGraph"),u=At(c.operateExperience,["protocolVersion","schemaVersion"],"$.capabilities.operateExperience"),p=At(c.operateCommands,["protocolVersion","transportVersion","available"],"$.capabilities.operateCommands"),g=At(c.diagnostics,["schemaVersion","available"],"$.capabilities.diagnostics"),m=At(t.project,["projectId","name","branch","products"],"$.project"),y=At(t.queryRoots,["planning","operate"],"$.queryRoots"),A=At(t.compatibility,["status","reasonCodes"],"$.compatibility"),E=kg(i.buildId,"$.ui.buildId",uj),b=kg(i.expectedBuildId,"$.ui.expectedBuildId",uj),w=kg(i.assetManifestHash,"$.ui.assetManifestHash",pm),j=fj(A.status,["compatible","incompatible"],"$.compatibility.status");if(!Array.isArray(A.reasonCodes))throw new ee("$.compatibility.reasonCodes","expected an array");const I=A.reasonCodes.map((_,O)=>fj(_,q3,`$.compatibility.reasonCodes[${O}]`));if(new Set(I).size!==I.length)throw new ee("$.compatibility.reasonCodes","contains duplicates");if(j==="compatible"){if(!E||!b||!w||I.length>0)throw new ee("$.compatibility","compatible bootstrap lacks exact build custody");if(E!==b)throw new ee("$.ui","compatible build identities differ")}else if(I.length===0)throw new ee("$.compatibility","incompatible bootstrap requires a reason");if(E!==b&&!I.includes("DASHBOARD_BUILD_MISMATCH"))throw new ee("$.ui","build mismatch requires its exact reason");if(I.includes("DASHBOARD_BUILD_MISMATCH")&&E===b)throw new ee("$.ui","build mismatch reason requires unequal build identities");if(!Array.isArray(m.products)||m.products.length!==2||new Set(m.products).size!==2||!m.products.includes("planning")||!m.products.includes("operate"))throw new ee("$.project.products","expected the exact Planning and Operate set");const Q=Je(m.projectId,"$.project.projectId",pm),S=pj(y.planning,"$.queryRoots.planning"),C=pj(y.operate,"$.queryRoots.operate");for(const[_,O]of[["planning",S],["operate",C]])if(O!==null&&O.projectId!==Q)throw new ee(`$.queryRoots.${_}.projectId`,"does not equal the bootstrap project identity");if(S!==null&&(S.scopeId!=="planning"||S.domainId!=="planning"||S.domainVersion!=="1.0.0"))throw new ee("$.queryRoots.planning","does not equal the Planning read domain");return Object.freeze({kind:Ci(t.kind,"dashboard-bootstrap","$.kind"),schemaVersion:Ci(t.schemaVersion,"1.0.0","$.schemaVersion"),protocolVersion:Ci(t.protocolVersion,"1.2.0","$.protocolVersion"),ui:Object.freeze({buildId:E,expectedBuildId:b,assetManifestHash:w}),server:Object.freeze({packageVersion:Je(s.packageVersion,"$.server.packageVersion",F3)}),capabilities:Object.freeze({planningGraph:Object.freeze({schemaVersion:Ci(d.schemaVersion,"1.0.0","$.capabilities.planningGraph.schemaVersion")}),operateExperience:Object.freeze({protocolVersion:Ci(u.protocolVersion,"2.0.0","$.capabilities.operateExperience.protocolVersion"),schemaVersion:Ci(u.schemaVersion,"1.0.0","$.capabilities.operateExperience.schemaVersion")}),operateCommands:Object.freeze({protocolVersion:Ci(p.protocolVersion,"2.0.0","$.capabilities.operateCommands.protocolVersion"),transportVersion:Ci(p.transportVersion,"1.0.0","$.capabilities.operateCommands.transportVersion"),available:xl(p.available,"$.capabilities.operateCommands.available")}),diagnostics:Object.freeze({schemaVersion:Ci(g.schemaVersion,"1.0.0","$.capabilities.diagnostics.schemaVersion"),available:xl(g.available,"$.capabilities.diagnostics.available")})}),project:Object.freeze({projectId:Q,name:K3(m.name),branch:Je(m.branch,"$.project.branch",/^.{1,255}$/u),products:Object.freeze([...m.products])}),queryRoots:Object.freeze({planning:S,operate:C}),origin:Je(t.origin,"$.origin",V3),compatibility:Object.freeze({status:j,reasonCodes:Object.freeze(I)})})}async function Z3(e,t={}){var i;try{const s=await(t.fetcher??fetch)("/api/bootstrap",{method:"GET",headers:{accept:"application/json"},signal:t.signal});if(!s.ok)throw new ee("$",`bootstrap request failed with ${s.status}`);if(!((i=s.headers.get("content-type"))!=null&&i.toLowerCase().startsWith("application/json")))throw new ee("$","bootstrap response is not JSON");const c=J3(Tj(await s.text())),d=t.expectedOrigin??(typeof window>"u"?null:window.location.origin);if(!d||c.origin!==d)throw new ee("$.origin","does not equal the current loopback origin");return c.compatibility.status!=="compatible"||c.ui.buildId!==e||c.ui.expectedBuildId!==e?Object.freeze({bootstrap:c,phase:"incompatible",detail:c.compatibility.reasonCodes.length>0?c.compatibility.reasonCodes.join(" · "):"Installed dashboard build is incompatible."}):Object.freeze({bootstrap:c,phase:"compatible",detail:null})}catch(s){if(s instanceof DOMException&&s.name==="AbortError")throw s;return Object.freeze({bootstrap:null,phase:"unavailable",detail:s instanceof Error?s.message:"OpenPlanr did not return a validated bootstrap envelope."})}}const wO=/^http:\/\/(?:127\.0\.0\.1|localhost):\d+$/u,qf=4*1024*1024;function X3(e){return typeof e=="object"&&e!==null&&e.kind==="operate-action-display-workspace"}function W3(e){return typeof e=="object"&&e!==null&&e.kind==="operate-recovery-display-surface"}function xO(e){return typeof e=="object"&&e!==null&&e.kind==="operate-experience-display-surface"}function eF(e,t,i){if(!wO.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(i.productArea!=="operate"||i.cycleId===null)throw new Error("Operate collection identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s.searchParams.set("cycleId",i.cycleId),s.searchParams.set("projectId",i.projectId),s.searchParams.set("generation",String(i.generation)),s}async function tF(e){const{identity:t}=e;if(t.cycleId===null)return null;const i=eF(e.origin,"/api/operate/actions",t),s=await(e.fetcher??fetch)(i,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>qf)throw new Error("Actions display response exceeds the dashboard JSON limit.");let d;try{d=JSON.parse(c)}catch{throw new Error("Actions display response is not JSON.")}if(!s.ok||!xO(d))return null;try{Yn(d,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:d.payload.generatedAt,eventHead:d.payload.eventHead,viewHash:t.viewHash??d.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",subjectId:null,cycleId:t.cycleId})}catch{return null}return d}function nF(e,t,i){if(!wO.test(e))throw new Error("Operate dashboard reads require an exact loopback origin.");if(i.productArea!=="operate"||i.cycleId===null||i.subjectId===null)throw new Error("Operate Action detail identity is incomplete.");const s=new URL(t,e);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s}async function aF(e){const{identity:t}=e;if(t.subjectId===null||t.cycleId===null)return null;const i=nF(e.origin,`/api/operate/actions/${encodeURIComponent(t.subjectId)}`,t),s=await(e.fetcher??fetch)(i,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>qf)throw new Error("Action display response exceeds the dashboard JSON limit.");let d;try{d=JSON.parse(c)}catch{throw new Error("Action display response is not JSON.")}if(!s.ok||!X3(d))return null;try{const u={actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:d.payload.generatedAt,eventHead:d.payload.eventHead,viewHash:t.viewHash??d.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"actions",cycleId:t.cycleId,subjectId:t.subjectId,actionId:t.subjectId};JA(d,u)}catch{return null}return d}async function iF(e){const{identity:t}=e,i=t.subjectId===null?"/api/operate/inbox":`/api/operate/inbox/${encodeURIComponent(t.subjectId)}`,s=new URL(i,e.origin);s.searchParams.set("scopeId",t.scopeId),s.searchParams.set("domainId",t.domainId),s.searchParams.set("domainVersion",t.domainVersion),s.searchParams.set("projectId",t.projectId),s.searchParams.set("generation",String(t.generation));const c=await(e.fetcher??fetch)(s,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),d=await c.text();if(new TextEncoder().encode(d).byteLength>qf)throw new Error("Inbox display response exceeds the dashboard JSON limit.");let u;try{u=JSON.parse(d)}catch{throw new Error("Inbox display response is not JSON.")}if(!c.ok||!xO(u))return null;try{Yn(u,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:u.payload.generatedAt,eventHead:u.payload.eventHead,viewHash:t.viewHash??u.payload.viewHash,projectId:t.projectId,generation:t.generation,surface:"inbox",subjectId:t.subjectId,cycleId:t.cycleId})}catch{return null}return u}async function rF(e){const{identity:t}=e,i=new URL("/api/operate/recovery",e.origin);i.searchParams.set("scopeId",t.scopeId),i.searchParams.set("domainId",t.domainId),i.searchParams.set("domainVersion",t.domainVersion);const s=await(e.fetcher??fetch)(i,{headers:{accept:"application/json","x-openplanr-actor":t.actorId},cache:"no-store",signal:e.signal}),c=await s.text();if(new TextEncoder().encode(c).byteLength>qf)throw new Error("Recovery display response exceeds the dashboard JSON limit.");let d;try{d=JSON.parse(c)}catch{throw new Error("Recovery display response is not JSON.")}if(!s.ok||!W3(d))return null;try{ZA(d,{actorId:t.actorId,scopeId:t.scopeId,domainId:t.domainId,domainVersion:t.domainVersion,generatedAt:d.payload.generatedAt,eventHead:d.payload.eventHead,viewHash:t.viewHash??d.payload.viewHash})}catch{return null}return d}const sF=Object.freeze({createDetailValidator:Uf,createInboxValidator:Ey,createListValidator:hy,createRecoveryValidator:vy,fetchDetail:aF,fetchInbox:iF,fetchList:tF,fetchRecovery:rF}),oF=Object.freeze({createEvidenceValidator:jS,createHistoryValidator:QS,createOutcomeValidator:SS}),cF=Object.freeze({createDetailValidator:VS,createListValidator:yy}),lF=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,dF=4*1024*1024;function uF(e,t,i,s){if(!lF.test(e))throw new Error("Review reads require an exact loopback origin.");const c=new URL(`/api/operate/cycles/${encodeURIComponent(i)}/reviews/${encodeURIComponent(s)}`,e);return c.searchParams.set("scopeId",t.scopeId),c.searchParams.set("domainId",t.domainId),c.searchParams.set("domainVersion",t.domainVersion),c}async function fF(e){var d;const t=await(e.fetcher??fetch)(uF(e.origin,e.root,e.cycleId,e.reviewId),{headers:{accept:"application/json","x-openplanr-actor":e.root.actorId},cache:"no-store",signal:e.signal});if(!t.ok||!((d=t.headers.get("content-type"))!=null&&d.startsWith("application/json")))throw new Error("The owner-issued Review workspace is unavailable.");const i=await t.text();if(new TextEncoder().encode(i).byteLength>dF)throw new Error("The owner-issued Review workspace exceeds its wire limit.");let s;try{s=JSON.parse(i)}catch{throw new Error("The owner-issued Review workspace is not JSON.")}const c=_s(s);return Ml(c),Ml(c,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,reviewId:e.reviewId,sourceArtifactKind:c.payload.sourceArtifactKind,sourceArtifactHash:c.payload.sourceArtifactHash,sourceEventHead:c.payload.sourceEventHead,sourceReadEventHead:c.payload.sourceReadEventHead,sourceViewHash:c.payload.sourceViewHash}),c}const pF=Object.freeze({createValidator:Ff,fetch:fF,uniqueNavigationForCycle:PS}),hF=Object.freeze({createValidator:By,resolveModel:dO}),gF=/^http:\/\/(?:127\.0\.0\.1|localhost):[1-9][0-9]{0,4}$/u,AF=4*1024*1024;function mF(e,t){if(!gF.test(e))throw new Error("Dashboard reads require an exact loopback origin.");return new URL(t,e)}async function Iy(e,t){var s;if(t!=null&&t.aborted)throw t.reason;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith("application/json")))throw new Error("The owner-issued dashboard projection is unavailable.");const i=await e.text();if(new TextEncoder().encode(i).byteLength>AF)throw new Error("The owner-issued dashboard projection exceeds its wire limit.");try{return JSON.parse(i)}catch{throw new Error("The owner-issued dashboard projection is not JSON.")}}function Qy(e,t,i){const s=mF(e,t);return s.searchParams.set("scopeId",i.scopeId),s.searchParams.set("domainId",i.domainId),s.searchParams.set("domainVersion",i.domainVersion),s}function Cy(e){return Object.freeze({accept:"application/json","x-openplanr-actor":e.actorId})}function yF(e,t,i={}){if(t.kind==="not-found"||t.product===null)throw new Error("A query root cannot bind an unknown or system route.");return Ze({productArea:t.product,route:ui(t),actorId:e.actorId,projectId:e.projectId,scopeId:e.scopeId,domainId:e.domainId,domainVersion:e.domainVersion,cycleId:i.cycleId??null,subjectId:t.subjectId,eventHead:i.eventHead??null,viewHash:i.viewHash??null,generation:e.generation})}async function EF(e){const t=Qy(e.origin,`/api/operate/${e.surface}`,e.root),i=await(e.fetcher??fetch)(t,{headers:Cy(e.root),cache:"no-store",signal:e.signal}),s=_s(await Iy(i,e.signal)),c=Yn(s).payload;if(Yn(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,surface:e.surface,subjectId:null,cycleId:null}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate surface.");return s}function vF(e,t){if(t==="history")return"/api/operate/history";if(t==="outcome"){if(e.subjectId===null)throw new Error("Outcome detail requires an exact subject.");return`/api/operate/outcomes/${encodeURIComponent(e.subjectId)}`}const i=e.subjectId?`/${encodeURIComponent(e.subjectId)}`:"";return`/api/operate/${t}${i}`}async function BF(e){const t=Qy(e.origin,vF(e.route,e.surface),e.root);t.searchParams.set("cycleId",e.cycleId);const i=await(e.fetcher??fetch)(t,{headers:Cy(e.root),cache:"no-store",signal:e.signal}),s=_s(await Iy(i,e.signal)),c=di(s).payload;if(di(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,cycleId:e.cycleId,subjectId:e.route.subjectId,surface:e.surface,query:null,format:null,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash}),c.surface!==e.surface)throw new Error("The owner returned a display for a different Operate audit surface.");return s}async function bF(e){const t=Qy(e.origin,`/api/operate/cycles/${encodeURIComponent(e.cycleId)}`,e.root),i=await(e.fetcher??fetch)(t,{headers:Cy(e.root),cache:"no-store",signal:e.signal}),s=_s(await Iy(i,e.signal)),c=mf(s).payload;return mf(s,{actorId:e.root.actorId,scopeId:e.root.scopeId,domainId:e.root.domainId,domainVersion:e.root.domainVersion,generatedAt:c.generatedAt,eventHead:c.eventHead,viewHash:c.viewHash,subjectId:e.cycleId,cycleId:e.cycleId}),s}const wF=Object.freeze({fetchAuditDisplay:BF,fetchCycleDisplay:bF,fetchRootDisplay:EF,identityFromRoot:yF}),xF=Object.freeze({actions:sF,audit:oF,cycles:cF,review:pF,today:hF,transport:wF}),jF=Object.freeze(Object.defineProperty({__proto__:null,operateRuntime:xF},Symbol.toStringTag,{value:"Module"})),IF=/^[A-Za-z0-9][A-Za-z0-9._:-]{0,159}$/u,Kf=/^sha256:[a-f0-9]{64}$/u,QF=/^ppatch_[1-9][0-9]*_[a-f0-9]{16}$/u,CF=/^PLANNING_[A-Z0-9_]{1,119}$/u,SF=new Set(["epic","feature","story","task","spec","backlog","quick","sprint","adr"]),OF=new Set(["done","in-progress","blocked","outstanding","addressed"]),_F=new Set(["contains","depends_on"]),NF=new Set(["agile","spec","mixed","empty"]),Sy=16*1024*1024,jO=96,IO=25e4;function me(e,t){throw new ee(e,t)}function Mn(e,t,i){if(e===null||typeof e!="object"||Array.isArray(e))return me(i,"expected an object");try{const s=Object.getPrototypeOf(e);if(s!==Object.prototype&&s!==null)return me(i,"expected a plain object");const c=Object.getOwnPropertyDescriptors(e);if(Reflect.ownKeys(c).some(p=>{var g,m;return typeof p!="string"||((g=c[p])==null?void 0:g.get)!==void 0||((m=c[p])==null?void 0:m.set)!==void 0}))return me(i,"contains an accessor or symbol field");const d=Object.keys(c).sort(),u=[...t].sort();return JSON.stringify(d)!==JSON.stringify(u)?me(i,"contains missing or unknown fields"):Object.fromEntries(Object.entries(c).map(([p,g])=>[p,g.value]))}catch(s){if(s instanceof ee)throw s;return me(i,"could not be inspected safely")}}function RF(e,t,i){for(const s of t)try{return Mn(e,s,i)}catch(c){if(!(c instanceof ee))throw c}return me(i,"contains missing or unknown fields")}function DF(e,t){const i=new WeakSet;let s=0;const c=(d,u,p)=>{if(s+=1,p>jO||s>IO)return me(u,"contains an over-complex value");if(d===null||typeof d=="string"||typeof d=="boolean")return d;if(typeof d=="number")return Number.isFinite(d)?d:me(u,"contains a non-finite number");if(typeof d!="object")return me(u,"contains a non-JSON value");if(i.has(d))return me(u,"contains a repeated or cyclic object");i.add(d);try{const g=Object.getPrototypeOf(d),m=Array.isArray(d)?Array.prototype:Object.prototype;if(g!==m&&g!==null)return me(u,"contains a non-plain object");const y=Object.getOwnPropertyDescriptors(d);if(Reflect.ownKeys(y).some(A=>{var E,b;return typeof A!="string"||((E=y[A])==null?void 0:E.get)!==void 0||((b=y[A])==null?void 0:b.set)!==void 0}))return me(u,"contains an accessor or symbol field");if(Array.isArray(d)){if(Object.keys(y).some(b=>b!=="length"&&!/^(?:0|[1-9][0-9]*)$/u.test(b)))return me(u,"contains an invalid array field");const E=[];for(let b=0;b<d.length;b+=1){const w=y[String(b)];if(!w)return me(u,"contains a sparse array");E.push(c(w.value,`${u}[${b}]`,p+1))}return E}return Object.fromEntries(Object.entries(y).map(([A,E])=>[A,c(E.value,`${u}.${A}`,p+1)]))}catch(g){if(g instanceof ee)throw g;return me(u,"could not be inspected safely")}finally{i.delete(d)}};return c(e,t,0)}function rc(e,t,i){return typeof e=="string"&&i.test(e)?e:me(t,"contains an invalid string")}function TF(e){for(let t=0;t<e.length;t+=1){const i=e.charCodeAt(t);if(i>=55296&&i<=56319){const s=e.charCodeAt(t+1);if(!(s>=56320&&s<=57343))return!0;t+=1}else if(i>=56320&&i<=57343)return!0}return!1}function bf(e,t){return typeof e!="string"||e.length<1||e.length>256||e==="."||e===".."||e.includes("\\")||TF(e)||[...e].some(i=>{const s=i.codePointAt(0)??0;return s<=31||s===127})?me(t,"contains an invalid subject identity"):e}function kF(e,t){const i=Mn(e,["sequence","hash"],t);if(!Number.isSafeInteger(i.sequence)||i.sequence<0)return me(`${t}.sequence`,"expected a non-negative safe integer");const s=i.sequence,c=i.hash===null?null:rc(i.hash,`${t}.hash`,Kf);return s===0!=(c===null)?me(t,"has an inconsistent head"):Object.freeze({sequence:s,hash:c})}function zl(e,t){const i=Mn(e,["eventHead","viewHash"],t);return Object.freeze({eventHead:kF(i.eventHead,`${t}.eventHead`),viewHash:rc(i.viewHash,`${t}.viewHash`,Kf)})}function MF(e,t="$.binding"){const i=Mn(e,["actorId","projectId","scopeId","domainId","domainVersion","generation"],t);return!Number.isSafeInteger(i.generation)||i.generation<0?me(`${t}.generation`,"expected a non-negative safe integer"):i.scopeId!=="planning"||i.domainId!=="planning"||i.domainVersion!=="1.0.0"?me(t,"does not belong to the Planning read domain"):Object.freeze({actorId:rc(i.actorId,`${t}.actorId`,IF),projectId:rc(i.projectId,`${t}.projectId`,Kf),scopeId:"planning",domainId:"planning",domainVersion:"1.0.0",generation:i.generation})}function GF(e,t){return e.sequence===t.sequence&&e.hash===t.hash}function El(e,t){return GF(e.eventHead,t.eventHead)&&e.viewHash===t.viewHash}function hm(e,t){return t.productArea==="planning"&&e.actorId===t.actorId&&e.projectId===t.projectId&&e.scopeId===t.scopeId&&e.domainId===t.domainId&&e.domainVersion===t.domainVersion&&e.generation===t.generation}function QO(e,t){const i=MF(e);return hm(i,t)?i:me("$.binding","is foreign to the active read")}function gm(e,t,i){const s=["id","type","title","status","frontmatter"],c=["githubIssue","linearIssueIdentifier"],d=RF(e,Array.from({length:1<<c.length},(y,A)=>[...s,...c.filter((E,b)=>(A&1<<b)!==0)]),t),u=d.type,p=d.status;if(typeof u!="string"||!SF.has(u))return me(`${t}.type`,"contains an unsupported artifact type");if(typeof p!="string"||!OF.has(p))return me(`${t}.status`,"contains an unsupported status");if(typeof d.title!="string")return me(`${t}.title`,"expected a string");const g=DF(d.frontmatter,`${t}.frontmatter`);if(g===null||typeof g!="object"||Array.isArray(g))return me(`${t}.frontmatter`,"expected a plain object");const m={id:bf(d.id,`${t}.id`),type:u,title:d.title,status:p,frontmatter:g};if(Object.hasOwn(d,"githubIssue")){if(!(typeof d.githubIssue=="string"||Number.isSafeInteger(d.githubIssue)&&d.githubIssue>=0))return me(`${t}.githubIssue`,"expected a string or non-negative integer");m.githubIssue=d.githubIssue}if(Object.hasOwn(d,"linearIssueIdentifier")){if(typeof d.linearIssueIdentifier!="string")return me(`${t}.linearIssueIdentifier`,"expected a string");m.linearIssueIdentifier=d.linearIssueIdentifier}return Object.hasOwn(d,"body")?me(`${t}.body`,"is not permitted on a graph node"):RC(m)}function Am(e,t){const i=Mn(e,["from","to","kind"],t);return typeof i.kind!="string"||!_F.has(i.kind)?me(`${t}.kind`,"contains an unsupported edge kind"):Object.freeze({from:bf(i.from,`${t}.from`),to:bf(i.to,`${t}.to`),kind:i.kind})}function Oy(e,t){const i=Mn(e,["nodes","edges"],t);if(!Array.isArray(i.nodes)||!Array.isArray(i.edges))return me(t,"expected node and edge arrays");const s=i.nodes.map((p,g)=>gm(p,`${t}.nodes[${g}]`)),c=new Set;for(const p of s){if(c.has(p.id))return me(`${t}.nodes`,"contains duplicate node identities");c.add(p.id)}const d=i.edges.map((p,g)=>Am(p,`${t}.edges[${g}]`)),u=new Set;for(const p of d){const g=`${p.kind}\0${p.from}\0${p.to}`;if(!c.has(p.from)||!c.has(p.to))return me(`${t}.edges`,"contains an edge outside this graph");if(u.has(g))return me(`${t}.edges`,"contains duplicate edges");u.add(g)}return Object.freeze({nodes:Object.freeze(s),edges:Object.freeze(d)})}function _y(e){let t=!1,i=!1;for(const s of e.nodes)(s.type==="epic"||s.type==="feature")&&(t=!0),s.type==="spec"&&(i=!0);return t&&i?"mixed":t?"agile":i?"spec":"empty"}function CO(e,t){return typeof e=="string"&&NF.has(e)?e:me(t,"contains an unsupported Planning mode")}function YF(e,t){const i=Mn(e,["updated","added","removed","edges"],t),s=Mn(i.edges,["added","removed"],`${t}.edges`);if(!Array.isArray(i.updated)||!Array.isArray(i.added)||!Array.isArray(i.removed)||!Array.isArray(s.added)||!Array.isArray(s.removed))return me(t,"contains invalid patch arrays");const c=i.updated.map((b,w)=>gm(b,`${t}.updated[${w}]`)),d=i.added.map((b,w)=>gm(b,`${t}.added[${w}]`)),u=i.removed.map((b,w)=>bf(b,`${t}.removed[${w}]`)),p=s.added.map((b,w)=>Am(b,`${t}.edges.added[${w}]`)),g=s.removed.map((b,w)=>Am(b,`${t}.edges.removed[${w}]`)),m=[...c,...d].map(b=>b.id);if(new Set(m).size!==m.length||new Set(u).size!==u.length||m.some(b=>u.includes(b)))return me(t,"contains conflicting node operations");const y=b=>`${b.kind}\0${b.from}\0${b.to}`,A=p.map(y),E=g.map(y);return new Set(A).size!==A.length||new Set(E).size!==E.length||A.some(b=>E.includes(b))?me(`${t}.edges`,"contains conflicting edge operations"):Object.freeze({updated:Object.freeze(c),added:Object.freeze(d),removed:Object.freeze(u),edges:Object.freeze({added:Object.freeze(p),removed:Object.freeze(g)})})}function SO(e){if(typeof e!="string"||new TextEncoder().encode(e).byteLength>Sy)return me("$","response exceeds the Planning wire limit");try{let t=0,i=0;const s=()=>{for(;/\s/u.test(e[t]??"");)t+=1},c=()=>{if(e[t]!=='"')return me("$","contains an invalid JSON string");const u=t;for(t+=1;t<e.length;)if(e[t]==="\\")t+=2;else{if(e[t]==='"')return t+=1,JSON.parse(e.slice(u,t));t+=1}return me("$","contains an unterminated JSON string")},d=u=>{var p;if(i+=1,(u>jO||i>IO)&&me("$","response exceeds the Planning complexity limit"),s(),e[t]==="{"){t+=1,s();const g=new Set;if(e[t]==="}"){t+=1;return}for(;t<e.length;){s();const m=c();if(g.has(m)&&me("$","response contains duplicate object members"),g.add(m),s(),e[t]!==":"&&me("$","contains an invalid JSON object"),t+=1,d(u+1),s(),e[t]==="}"){t+=1;return}e[t]!==","&&me("$","contains an invalid JSON object"),t+=1}}else if(e[t]==="["){if(t+=1,s(),e[t]==="]"){t+=1;return}for(;t<e.length;){if(d(u+1),s(),e[t]==="]"){t+=1;return}e[t]!==","&&me("$","contains an invalid JSON array"),t+=1}}else if(e[t]==='"'){c();return}else{const g=(p=e.slice(t).match(/^(?:true|false|null|-?(?:0|[1-9][0-9]*)(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?)/u))==null?void 0:p[0];g||me("$","contains an invalid JSON value"),t+=g.length;return}me("$","contains an unterminated JSON value")};return d(0),s(),t!==e.length?me("$","contains trailing JSON bytes"):JSON.parse(e)}catch(t){if(t instanceof ee)throw t;return me("$","contains invalid JSON")}}function wf(e,t){const i=Mn(e,["kind","schemaVersion","binding","cursor","mode","graph"],"$");if(i.kind!=="planning-graph-snapshot"||i.schemaVersion!=="1.0.0")return me("$","has an unsupported Planning graph contract");const s=QO(i.binding,t),c=zl(i.cursor,"$.cursor"),d=Oy(i.graph,"$.graph"),u=CO(i.mode,"$.mode");return kn(d)!==c.viewHash||_y(d)!==u?me("$","graph, mode, and cursor commitment disagree"):Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:s,cursor:c,mode:u,graph:d})}function HF(e,t){return wf(SO(e),t)}function zF(e,t){const i=Mn(e,["patchId","patchHash","from","to","patch"],"$.payload"),s=zl(i.from,"$.payload.from"),c=zl(i.to,"$.payload.to"),d=YF(i.patch,"$.payload.patch"),u=rc(i.patchHash,"$.payload.patchHash",Kf),p=rc(i.patchId,"$.payload.patchId",QF),g=kn(d),m=kn({kind:"planning-live-head",previous:s.eventHead,sequence:c.eventHead.sequence,patchHash:g,viewHash:c.viewHash});return!El(c,t)||c.eventHead.sequence!==s.eventHead.sequence+1||c.viewHash===s.viewHash||c.eventHead.hash!==m||kn({from:s,to:c,patch:d})!==u||p!==`ppatch_${c.eventHead.sequence}_${u.slice(7,23)}`?me("$.payload","patch cursor and commitment disagree"):Object.freeze({patchId:p,patchHash:u,from:s,to:c,patch:d})}function hj(e,t){const i=typeof e=="string"?SO(e):e,s=Mn(i,["kind","schemaVersion","event","binding","cursor","payload"],"$");if(s.kind!=="planning-live-event"||s.schemaVersion!=="1.0.0")return me("$","has an unsupported Planning live contract");const c=QO(s.binding,t),d=zl(s.cursor,"$.cursor"),u={kind:"planning-live-event",schemaVersion:"1.0.0",binding:c,cursor:d};if(s.event==="snapshot"){const p=Mn(s.payload,["mode","graph"],"$.payload"),g=Oy(p.graph,"$.payload.graph"),m=CO(p.mode,"$.payload.mode");return kn(g)!==d.viewHash||_y(g)!==m?me("$.payload","snapshot graph and cursor commitment disagree"):Object.freeze({...u,event:"snapshot",payload:Object.freeze({mode:m,graph:g})})}if(s.event==="patch")return Object.freeze({...u,event:"patch",payload:zF(s.payload,d)});if(s.event==="ready"){const p=Mn(s.payload,["readOnly","reasonCodes"],"$.payload");return p.readOnly!==!0||!Array.isArray(p.reasonCodes)||p.reasonCodes.length?me("$.payload","contains an invalid ready state"):Object.freeze({...u,event:"ready",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([])})})}if(s.event==="stale"){const p=Mn(s.payload,["readOnly","reasonCodes","recovery"],"$.payload");return p.readOnly!==!0||!Array.isArray(p.reasonCodes)||p.reasonCodes.length<1||p.reasonCodes.length>8||p.reasonCodes.some(g=>typeof g!="string"||!CF.test(g))||typeof p.recovery!="string"||p.recovery.length<1||p.recovery.length>240?me("$.payload","contains an invalid stale state"):Object.freeze({...u,event:"stale",payload:Object.freeze({readOnly:!0,reasonCodes:Object.freeze([...p.reasonCodes]),recovery:p.recovery})})}return me("$.event","contains an unsupported Planning event")}function UF(e,t){const i=new Set(t.patch.removed),s=new Map(t.patch.updated.map(y=>[y.id,y])),c=e.nodes.filter(y=>!i.has(y.id)).map(y=>s.get(y.id)??y),d=new Set(c.map(y=>y.id));for(const y of t.patch.updated)if(!d.has(y.id))return me("$.payload.patch.updated","targets a missing node");for(const y of t.patch.added){if(d.has(y.id))return me("$.payload.patch.added","duplicates an existing node");d.add(y.id),c.push(y)}const u=y=>`${y.kind}\0${y.from}\0${y.to}`,p=new Set(t.patch.edges.removed.map(u)),g=e.edges.filter(y=>!p.has(u(y))),m=new Set(g.map(u));for(const y of t.patch.edges.removed)if(!e.edges.some(A=>u(A)===u(y)))return me("$.payload.patch.edges.removed","targets a missing edge");for(const y of t.patch.edges.added){if(m.has(u(y)))return me("$.payload.patch.edges.added","duplicates an existing edge");m.add(u(y)),g.push(y)}return Oy({nodes:c,edges:g},"$.nextGraph")}function $F(e){const t=e.identity;let i=e.initial?wf(e.initial,t):null,s=!1,c=!1,d=null,u=i?JSON.stringify(i):null;const p=new Map;i&&!hm(i.binding,t)&&me("$.initial.binding","is foreign to this reconciler");const g=()=>s||!e.isCurrent(t),m=A=>g()?Object.freeze({kind:"rejected",reason:"inactive"}):(c||(c=!0,d=A,e.onRefetch(A)),Object.freeze({kind:"refetch",reason:d??A})),y=A=>{var j,I;if(g())return Object.freeze({kind:"rejected",reason:"inactive"});if(c)return Object.freeze({kind:"refetch",reason:d??"invalid-event"});if(!hm(A.binding,t))return Object.freeze({kind:"rejected",reason:"foreign-binding"});if(A.event==="snapshot"){const Q=Object.freeze({kind:"planning-graph-snapshot",schemaVersion:"1.0.0",binding:A.binding,cursor:A.cursor,mode:A.payload.mode,graph:A.payload.graph});if(i){if(Q.cursor.eventHead.sequence<i.cursor.eventHead.sequence)return m("restart-regression");if(Q.cursor.eventHead.sequence>i.cursor.eventHead.sequence)return m("gap");if(!El(Q.cursor,i.cursor))return m("divergent-duplicate");const S=JSON.stringify(Q);return u===S?Object.freeze({kind:"duplicate"}):m("divergent-duplicate")}return i=Q,u=JSON.stringify(Q),p.clear(),c=!1,d=null,e.onSnapshot(Q),Object.freeze({kind:"accepted",event:"snapshot"})}if(!i)return m("cursor-mismatch");if(A.event==="ready")return El(A.cursor,i.cursor)?((j=e.onReady)==null||j.call(e,A),Object.freeze({kind:"accepted",event:"ready"})):m("cursor-mismatch");if(A.event==="stale")return(I=e.onStale)==null||I.call(e,A),m("stale");const E=A.payload,b=`${E.to.eventHead.sequence}:${E.to.eventHead.hash}:${E.to.viewHash}`,w=JSON.stringify(E);if(El(E.to,i.cursor))return p.get(b)===w?Object.freeze({kind:"duplicate"}):m("divergent-duplicate");if(E.to.eventHead.sequence<=i.cursor.eventHead.sequence)return m("reordered");if(E.to.eventHead.sequence!==i.cursor.eventHead.sequence+1)return m("gap");if(!El(E.from,i.cursor))return m("reordered");try{const Q=UF(i.graph,E);if(kn(Q)!==E.to.viewHash)return m("state-mismatch");const S=Object.freeze({...i,cursor:E.to,mode:_y(Q),graph:Q});return p.set(b,w),i=S,u=null,e.onPatch(S,E),Object.freeze({kind:"accepted",event:"patch"})}catch{return m("state-mismatch")}};return Object.freeze({ingest:y,ingestJson:A=>{if(g())return Object.freeze({kind:"rejected",reason:"inactive"});try{return y(hj(A,t))}catch{return m("invalid-event")}},ingestSseFrame:(A,E)=>{if(g())return Object.freeze({kind:"rejected",reason:"inactive"});try{const b=hj(A,t);return E&&E!==b.event?m("invalid-event"):y(b)}catch{return m("invalid-event")}},getSnapshot:()=>i,markReconciled:A=>{const E=wf(A,t);return i=E,u=JSON.stringify(E),p.clear(),c=!1,d=null,!0},dispose:()=>{s=!0}})}function OO(e,t,i){const s=new URL(e);if(s.protocol!=="http:"||!["127.0.0.1","localhost"].includes(s.hostname)||s.pathname!=="/"||s.search||s.hash)return me("$.origin","expected an exact loopback HTTP origin");if(i.productArea!=="planning"||i.scopeId!=="planning"||i.domainId!=="planning"||i.domainVersion!=="1.0.0")return me("$.identity","does not belong to the Planning read domain");const c=new URL(t,s);return c.searchParams.set("projectId",i.projectId),c.searchParams.set("scopeId",i.scopeId),c.searchParams.set("domainId",i.domainId),c.searchParams.set("domainVersion",i.domainVersion),c.searchParams.set("generation",String(i.generation)),c}async function LF(e,t){var s;if(!e.ok||!((s=e.headers.get("content-type"))!=null&&s.startsWith(t)))return me("$","Planning response is unavailable");const i=await e.text();return new TextEncoder().encode(i).byteLength>Sy?me("$","Planning response exceeds its wire limit"):i}async function PF(e){const t=OO(e.origin,"/api/planning/graph",e.identity),i=await(e.fetcher??fetch)(t,{headers:{accept:"application/json","x-openplanr-actor":e.identity.actorId},cache:"no-store",signal:e.signal});return HF(await LF(i,"application/json"),e.identity)}function FF(e){let t="";for(const i of e)t+=String.fromCharCode(i);return btoa(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/u,"")}function VF(e){const t=zl(e,"$.cursor");return FF(new TextEncoder().encode(JSON.stringify(t)))}function qF(e){var u,p;const t=new AbortController,i=()=>t.abort();(u=e.signal)!=null&&u.aborted?t.abort(e.signal.reason):(p=e.signal)==null||p.addEventListener("abort",i,{once:!0});const s=OO(e.origin,"/api/planning/events",e.identity),c={accept:"text/event-stream","x-openplanr-actor":e.identity.actorId};e.lastEventId&&(c["last-event-id"]=e.lastEventId);const d=(async()=>{var E,b;const g=await(e.fetcher??fetch)(s,{headers:c,signal:t.signal});if(!g.ok||!((E=g.headers.get("content-type"))!=null&&E.startsWith("text/event-stream"))||!g.body)return me("$","Planning live response is unavailable");const m=g.body.getReader(),y=new TextDecoder;let A="";try{for(;!t.signal.aborted;){const w=await m.read();if(A+=y.decode(w.value,{stream:!w.done}),A=A.replaceAll(`\r
562
- `,`
563
- `).replace(/\r(?!$)/gu,`
564
- `),w.done&&A.endsWith("\r")&&(A=`${A.slice(0,-1)}
565
- `),new TextEncoder().encode(A).byteLength>Sy)return me("$","Planning live frame exceeds its wire limit");let j=A.indexOf(`
566
-
567
- `);for(;j>=0;){const I=A.slice(0,j);A=A.slice(j+2);const Q=I.split(`
568
- `),S=(b=Q.find(_=>_.startsWith("event:")))==null?void 0:b.slice(6).trim(),C=Q.filter(_=>_.startsWith("data:")).map(_=>_.slice(5).trimStart()).join(`
569
- `);C&&e.reconciler.ingestSseFrame(C,S),j=A.indexOf(`
570
-
571
- `)}if(w.done){if(A.trim())return me("$","Planning live response ended mid-frame");break}}}finally{m.releaseLock()}})().catch(g=>{if(!t.signal.aborted)throw g instanceof ee?g:new ee("$","Planning live response failed safely")}).finally(()=>{var g;return(g=e.signal)==null?void 0:g.removeEventListener("abort",i)});return Object.freeze({completion:d,close:()=>{var g;t.abort(),e.reconciler.dispose(),(g=e.signal)==null||g.removeEventListener("abort",i)}})}const KF=Object.freeze({connectSse:qF,createSseReconciler:$F,encodeCheckpoint:VF,fetchGraph:PF,parseGraphEnvelope:wf}),JF=Object.freeze(Object.defineProperty({__proto__:null,planningRuntime:KF},Symbol.toStringTag,{value:"Module"})),ZF=Object.freeze({create:Ze}),XF=Object.freeze({ValidationError:ee,isValidatedState:Ke,parseSafeError:Yj,parseState:Ho,statePolicy:zo}),WF=Object.freeze({parse:si}),e8=Object.freeze({connectSse:kS,createSseReconciler:TS}),t8=Object.freeze({identity:ZF,projection:XF,routing:WF,transport:e8}),n8=Object.freeze(Object.defineProperty({__proto__:null,dashboardRuntime:t8},Symbol.toStringTag,{value:"Module"})),{operateRuntime:tt}=jF,{planningRuntime:vl}=JF,{dashboardRuntime:Te}=n8,_O=new Set(["ready","read-only","stale","partial","blocked","offline"]),Es=Te.projection.parseState({kind:"booting",binding:null,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Te.projection.statePolicy("booting")}),NO=Te.routing.parse("#/overview");function RO(e){return`DASHBOARD_${e.toUpperCase().replace("-","_")}`}function Rr(e){return Te.projection.parseState({kind:"loading",binding:e,data:null,reasonCodes:[],error:null,mutationEnabled:!1,policy:Te.projection.statePolicy("loading")},{currentBinding:e})}function DO(e,t=null){return Te.projection.parseState({kind:"unavailable",binding:e,data:null,reasonCodes:["DASHBOARD_UNAVAILABLE"],error:t,mutationEnabled:!1,policy:Te.projection.statePolicy("unavailable")},{currentBinding:e})}function Gr(e,t=!1){const s=(e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{}).code==="DASHBOARD_RESPONSE_INVALID"||e instanceof Te.projection.ValidationError;return Te.projection.parseSafeError({code:t||!s?"DASHBOARD_READ_FAILED":"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{operation:"dashboard.projection.read"}})}function ri(e,t){const i=t??Gr(void 0);if(i.code!=="DASHBOARD_RESPONSE_INVALID")return DO(e,i);const s=Te.projection.parseSafeError({code:"DASHBOARD_RESPONSE_INVALID",retryable:!1,context:{}});return Te.projection.parseState({kind:"corrupt",binding:null,data:null,reasonCodes:["DASHBOARD_CORRUPT"],error:s,mutationEnabled:!1,policy:Te.projection.statePolicy("corrupt")})}function a8(e,t,i,s,c=!1,d=null){if(!_O.has(e)&&!(e==="refreshing"&&t.productArea==="planning"))throw new Error("Unsupported owner presentation state.");return Te.projection.parseState({kind:e,binding:t,data:i,reasonCodes:e==="ready"?[]:[RO(e)],error:d,mutationEnabled:e==="ready"&&c,policy:Te.projection.statePolicy(e)},{currentBinding:t,validateData:s})}function i8(e,t){return!Te.projection.isValidatedState(e)||e.binding===null||e.data===null?e:Te.projection.parseState({kind:"stale",binding:e.binding,data:e.data,reasonCodes:["DASHBOARD_STALE"],error:t,mutationEnabled:!1,policy:Te.projection.statePolicy("stale")},{currentBinding:e.binding,validateData:i=>i!==null})}function r8(e,t){return Te.projection.parseState({kind:e,binding:t,data:null,reasonCodes:[RO(e)],error:null,mutationEnabled:!1,policy:Te.projection.statePolicy(e)},{currentBinding:t})}function vs(e,t,i=!1){const s=B.useRef(t);s.current=t;const c=B.useRef(e);c.current=e;const d=B.useRef(null),u=B.useRef(null),[p,g]=B.useState(0),[m,y]=B.useState(()=>Object.freeze({key:null,revision:0,phase:"idle",data:null,error:null})),A=B.useCallback(()=>g(Q=>Q+1),[]),E=B.useCallback(()=>{var _;if(d.current!==null)return d.current;const Q=c.current;if(Q===null)return Promise.reject(new Error("Owner read is unavailable."));const S=new AbortController;(_=u.current)==null||_.abort(),u.current=S,y(O=>Object.freeze({key:Q,revision:O.revision,phase:"loading",data:O.key===Q?O.data:null,error:null}));const C=s.current(S.signal).then(O=>{if(S.signal.aborted||c.current!==Q)throw new DOMException("Cancelled","AbortError");return y(T=>Object.freeze({key:Q,revision:T.revision,phase:"ready",data:O,error:null})),O}).catch(O=>{throw!S.signal.aborted&&c.current===Q&&y(T=>Object.freeze({key:Q,revision:T.revision,phase:"failed",data:T.key===Q?T.data:null,error:Gr(O,T.key===Q&&T.data!==null)})),O}).finally(()=>{d.current===C&&(d.current=null),u.current===S&&(u.current=null)});return d.current=C,C},[]);B.useEffect(()=>{var S;if((S=u.current)==null||S.abort(),u.current=null,d.current=null,e===null){y(Object.freeze({key:null,revision:p,phase:"idle",data:null,error:null}));return}const Q=new AbortController;return y(C=>Object.freeze({key:e,revision:p,phase:"loading",data:C.key===e?C.data:null,error:null})),s.current(Q.signal).then(C=>{Q.signal.aborted||y(Object.freeze({key:e,revision:p,phase:"ready",data:C,error:null}))}).catch(C=>{Q.signal.aborted||y(_=>Object.freeze({key:e,revision:p,phase:"failed",data:_.key===e?_.data:null,error:Gr(C,_.key===e&&_.data!==null)}))}),()=>Q.abort()},[e,p]);const b=m.key===e&&m.revision===p,w=b?m.phase:e===null?"idle":"loading",j=b||i&&m.key===e?m.data:null,I=b?m.error:null;return B.useMemo(()=>Object.freeze({phase:w,data:j,error:I,refetch:A,reconcile:E}),[j,I,w,E,A])}function s8(e){return e===null?null:JSON.stringify(e)}function o8(e){return e.product==="planning"?e:NO}function c8(e){return e.kind==="operate.evidence"||e.kind==="operate.evidence-item"?"evidence":e.kind==="operate.outcomes"?"outcomes":e.kind==="operate.outcome"?"outcome":e.kind==="operate.history"?"history":null}function Vu(e){return e.kind==="operate.actions"||e.kind==="operate.action"||e.kind==="operate.action-planning"||e.kind==="operate.inbox"||e.kind==="operate.inbox-item"||e.kind==="operate.recovery"}function l8(e){return e.kind==="operate.action-planning"?{kind:"operate.action",product:"operate",subjectId:e.subjectId}:e}function Bs(e){return Object.freeze({eventHead:e.payload.eventHead,viewHash:e.payload.viewHash})}function sc(e){const t=e.payload.status;if(!_O.has(t))throw new Te.projection.ValidationError("$.payload.status","contains an unsupported display status");return t}function d8(e){return e.payload.status==="terminal"?"read-only":sc(e)}function gj(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?Rr(t):ri(t,e.error);const i=Te.identity.create({...t,eventHead:e.data.payload.sourceEventHead,viewHash:e.data.payload.sourceViewHash});return Ti(e,i,e.data,tt.review.createValidator(i),d8(e.data),e.data.payload.mutationEnabled)}function Ti(e,t,i,s,c,d=!1){const u=e.phase==="failed"?"stale":e.phase==="loading"||e.phase==="idle"?"refreshing":c;try{return a8(u,t,i,s,d,u==="stale"?e.error??Gr(void 0,!0):null)}catch(p){return ri(t,Gr(p))}}function Aj(e,t){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?Rr(t):ri(t,e.error);const i=Te.identity.create({...t,eventHead:e.data.cursor.eventHead,viewHash:e.data.cursor.viewHash});return Ti(e,i,e.data,s=>{try{return vl.parseGraphEnvelope(s,t),!0}catch{return!1}},"ready")}function mj(e,t,i,s){var u;if(e.data===null)return e.phase==="loading"||e.phase==="idle"?Rr(t):ri(t,e.error);const c=Te.identity.create({...t,...Bs(e.data)}),d=i==="today"?tt.today.createValidator(c):tt.cycles.createListValidator(c);return e.phase!=="ready"?Ti(e,c,e.data,d,sc(e.data),e.data.payload.mutationEnabled):i==="today"&&e.data.payload.surface==="today"&&e.data.payload.status==="ready"&&e.data.payload.data.activeCycle===null?d(e.data)?s?s.phase==="loading"||s.phase==="idle"?Ti(Object.freeze({...e,phase:"loading",error:null}),c,e.data,d,"ready"):s.phase==="failed"?Ti(Object.freeze({...e,phase:"failed",error:s.error}),c,e.data,d,"ready"):((u=s.data)==null?void 0:u.payload.surface)!=="cycles"?ri(c,Gr(new Te.projection.ValidationError("$.payload.surface","does not contain the required cycles display"))):r8(s.data.payload.data.cycles.length===0?"first-use":"empty",c):Rr(c):ri(c,Gr(new Te.projection.ValidationError("$.data","failed its owner-boundary contract"))):Ti(e,c,e.data,d,sc(e.data),e.data.payload.mutationEnabled)}function u8(e){if(e.subjectId===null)throw new Error("Action display identity requires a subject.");return Te.identity.create({...e,route:`#/operate/actions/${encodeURIComponent(e.subjectId)}`})}function yj(e,t,i){if(e.data===null)return e.phase==="loading"||e.phase==="idle"?Rr(t):ri(t,e.error);const s=Te.identity.create({...t,...Bs(e.data)});let c;if(i.kind==="operate.actions")c=tt.actions.createListValidator(s);else if(i.kind==="operate.action"||i.kind==="operate.action-planning"){const d=i.kind==="operate.action-planning"?u8(s):s;c=tt.actions.createDetailValidator(d)}else if(i.kind==="operate.inbox"||i.kind==="operate.inbox-item")c=tt.actions.createInboxValidator(s);else if(i.kind==="operate.recovery")c=tt.actions.createRecoveryValidator(s);else return DO(s);return Ti(e,s,e.data,c,sc(e.data),i.kind==="operate.action-planning"?!1:e.data.payload.mutationEnabled)}function f8(e,t){var ae,Ae;const i=(e==null?void 0:e.origin)??null,s=JSON.stringify(t),[c,d]=B.useState(null),u=(e==null?void 0:e.queryRoots.planning)??null,p=(e==null?void 0:e.queryRoots.operate)??null,g=B.useMemo(()=>o8(t),[t]),m=B.useMemo(()=>u?tt.transport.identityFromRoot(u,NO):null,[u]),y=B.useMemo(()=>u?tt.transport.identityFromRoot(u,g):null,[u,g]),A=vs(m?JSON.stringify(m):null,R=>{if(!i||!m)throw new Error("Planning query root is unavailable.");return vl.fetchGraph({origin:i,identity:m,signal:R})},!0),E=s8(p),b=vs(E,R=>{if(!i||!p)throw new Error("Operate query root is unavailable.");return tt.transport.fetchRootDisplay({origin:i,root:p,surface:"today",signal:R})}),w=vs(E,R=>{if(!i||!p)throw new Error("Operate query root is unavailable.");return tt.transport.fetchRootDisplay({origin:i,root:p,surface:"cycles",signal:R})}),j=((ae=b.data)==null?void 0:ae.payload.surface)==="today"?b.data:null,I=(j==null?void 0:j.payload.surface)==="today"?((Ae=j.payload.data.activeCycle)==null?void 0:Ae.cycleId)??null:null,Q=t.kind==="operate.cycle"?t.subjectId:t.kind==="operate.review"?t.cycleId:I,S=j?Bs(j):null,C=B.useMemo(()=>p&&t.product==="operate"&&Q&&S?tt.transport.identityFromRoot(p,t,{cycleId:Q,eventHead:S.eventHead,viewHash:S.viewHash}):null,[S,p,t,Q]),_=i&&p&&C?JSON.stringify({root:p,binding:C}):null,O=B.useMemo(()=>p&&t.kind==="operate.review"?tt.transport.identityFromRoot(p,t,{cycleId:t.cycleId}):null,[p,t]),T=i&&O?JSON.stringify({root:p,route:O.route}):null,N=vs(T,R=>{if(!i||!p||t.kind!=="operate.review")throw new Error("Operate Review query custody is incomplete.");return tt.review.fetch({origin:i,root:p,cycleId:t.cycleId,reviewId:t.subjectId,signal:R})}),$=B.useMemo(()=>l8(t),[t]),G=B.useMemo(()=>p&&Vu(t)&&Q&&S?tt.transport.identityFromRoot(p,$,{cycleId:Q,eventHead:S.eventHead,viewHash:S.viewHash}):null,[$,S,p,t,Q]),U=i&&p&&G?JSON.stringify({root:p,binding:G}):null,Z=c8(t),q=vs(Z?_:null,R=>{if(!i||!p||!Q||!Z)throw new Error("Operate audit query custody is incomplete.");return tt.transport.fetchAuditDisplay({origin:i,root:p,route:t,surface:Z,cycleId:Q,signal:R})}),de=vs(t.kind==="operate.cycle"?_:null,R=>{if(!i||!p||t.kind!=="operate.cycle")throw new Error("Operate Cycle query custody is incomplete.");return tt.transport.fetchCycleDisplay({origin:i,root:p,cycleId:t.subjectId,signal:R})}),re=vs(Vu(t)?U:null,R=>{if(!i||!G)throw new Error("Operate route display custody is incomplete.");if(t.kind==="operate.actions")return tt.actions.fetchList({origin:i,identity:G,signal:R});if(t.kind==="operate.action"||t.kind==="operate.action-planning")return tt.actions.fetchDetail({origin:i,identity:G,signal:R});if(t.kind==="operate.inbox"||t.kind==="operate.inbox-item")return tt.actions.fetchInbox({origin:i,identity:G,signal:R});if(t.kind==="operate.recovery")return tt.actions.fetchRecovery({origin:i,identity:G,signal:R});throw new Error("Operate route does not own a bound display read.")}),pe=B.useMemo(()=>y?Aj(A,y):Es,[y,A]),K=B.useMemo(()=>{if(!p)return null;const R=Te.routing.parse("#/operate/today");return tt.transport.identityFromRoot(p,R,{cycleId:I})},[I,p]),ie=B.useMemo(()=>K?mj(b,K,"today",w):Es,[w,K,b]),W=B.useMemo(()=>{if(!ie.binding||!Q)return null;const R=tt.today.resolveModel({current:ie},ie.binding);return(R==null?void 0:R.kind)==="surface"?tt.review.uniqueNavigationForCycle(R,Q):null},[Q,ie]),le=B.useMemo(()=>p?tt.transport.identityFromRoot(p,Te.routing.parse("#/operate/cycles")):null,[p]),oe=B.useMemo(()=>le?mj(w,le,"cycles"):Es,[le,w]),xe=B.useMemo(()=>{var X;if(!p||((X=w.data)==null?void 0:X.payload.surface)!=="cycles")return Object.freeze([]);const R=Bs(w.data),F=Te.routing.parse("#/operate/cycles");return Object.freeze(w.data.payload.data.cycles.map(fe=>tt.transport.identityFromRoot(p,F,{cycleId:fe.cycleId,eventHead:R.eventHead,viewHash:R.viewHash})))},[w,p]),Me=B.useMemo(()=>{if(t.product==="planning")return Object.freeze({binding:pe.binding,projection:pe});if(t.product!=="operate"||!p)return Object.freeze({binding:null,projection:Es});if(t.kind==="operate.today")return Object.freeze({binding:ie.binding,projection:ie});if(t.kind==="operate.cycles")return Object.freeze({binding:oe.binding,projection:oe});if(t.kind==="operate.review"){if(!O)return Object.freeze({binding:null,projection:Es});const F=gj(N,O);return Object.freeze({binding:F.binding,projection:F})}if(!S||!Q)return Object.freeze({binding:null,projection:Es});const R=C;if(!R)return Object.freeze({binding:null,projection:Es});if(t.kind==="operate.cycle"){if(de.data===null){const X=de.phase==="loading"||de.phase==="idle"?Rr(R):ri(R,de.error);return Object.freeze({binding:X.binding,projection:X})}const F=Te.identity.create({...R,...Bs(de.data)});return Object.freeze({binding:F,projection:Ti(de,F,de.data,tt.cycles.createDetailValidator(F),sc(de.data),de.data.payload.mutationEnabled)})}if(Z){if(q.data===null){const fe=q.phase==="loading"||q.phase==="idle"?Rr(R):ri(R,q.error);return Object.freeze({binding:fe.binding,projection:fe})}const F=Te.identity.create({...R,...Bs(q.data)}),X=Z==="evidence"?tt.audit.createEvidenceValidator(F):Z==="outcomes"||Z==="outcome"?tt.audit.createOutcomeValidator(F):tt.audit.createHistoryValidator(F);return Object.freeze({binding:F,projection:Ti(q,F,q.data,X,sc(q.data),!1)})}return Vu(t)?Object.freeze({binding:R,projection:yj(re,R,t)}):Object.freeze({binding:R,projection:Rr(R)})},[q,Z,re,C,de,S,oe,p,pe,N,O,t,Q,ie]);B.useEffect(()=>{d(R=>R!==null&&R.routeKey!==s?null:R)},[s]);const _e=B.useMemo(()=>c!==null&&c.routeKey===s&&(!Te.projection.isValidatedState(Me.projection)||Me.projection.data===null)?Object.freeze({binding:c.binding,projection:c.projection}):Me,[c,Me,s]);B.useEffect(()=>{if(!i||!A.data||A.phase!=="ready"||!m)return;const R=Te.identity.create({...m,eventHead:A.data.cursor.eventHead,viewHash:A.data.cursor.viewHash});let F=!0;const X=vl.createSseReconciler({identity:R,initial:A.data,isCurrent:()=>F,onSnapshot:()=>{},onPatch:()=>A.refetch(),onRefetch:()=>A.refetch(),onStale:()=>A.refetch()}),fe=vl.connectSse({origin:i,identity:R,reconciler:X,lastEventId:vl.encodeCheckpoint(A.data.cursor)});return fe.completion.catch(()=>{}),()=>{F=!1,fe.close()}},[i,m,A]),B.useEffect(()=>{if(!i||!p||!j||!K)return;const R=Bs(j),F=Te.identity.create({...K,...R});let X=!0;const fe=Te.transport.createSseReconciler({identity:F,isCurrent:()=>X,onSnapshot:(ce,Ge)=>{var Ne,ue;(Ge.eventHead.sequence!==((Ne=R.eventHead)==null?void 0:Ne.sequence)||Ge.eventHead.hash!==((ue=R.eventHead)==null?void 0:ue.hash)||Ge.viewHash!==R.viewHash)&&(b.refetch(),w.refetch())},onPatch:()=>{b.refetch(),w.refetch()},onRefetch:()=>{b.refetch(),w.refetch()},onStale:()=>{b.refetch(),w.refetch()}}),se=Te.transport.connectSse({origin:i,identity:F,reconciler:fe});return se.completion.catch(()=>{}),()=>{X=!1,se.close()}},[w,i,p,j,K,b]);const k=B.useCallback(async()=>{const R=_e;R.binding!==null&&Te.projection.isValidatedState(R.projection)&&R.projection.data!==null&&d(Object.freeze({routeKey:s,binding:R.binding,projection:R.projection}));try{let F;if(t.kind==="operate.review"&&O){const X=await N.reconcile();F=gj(Object.freeze({phase:"ready",data:X,error:null,refetch:N.refetch,reconcile:N.reconcile}),O)}else if(Vu(t)&&C){const X=await re.reconcile();F=yj(Object.freeze({phase:"ready",data:X,error:null,refetch:re.refetch,reconcile:re.reconcile}),C,t)}else if(t.product==="planning"&&y){const X=await A.reconcile();F=Aj(Object.freeze({phase:"ready",data:X,error:null,refetch:A.refetch,reconcile:A.reconcile}),y)}else throw new Te.projection.ValidationError("$.route","does not own an exact reconciliation read");if(!Te.projection.isValidatedState(F)||F.data===null)throw new Te.projection.ValidationError("$.projection","did not return a verified projection");return d(null),F}catch(F){const X=R.binding!==null&&Te.projection.isValidatedState(R.projection)&&R.projection.data!==null,fe=Gr(F,X),se=X?i8(R.projection,fe):R.binding===null?R.projection:ri(R.binding,fe);return X&&R.binding!==null&&d(Object.freeze({routeKey:s,binding:R.binding,projection:se})),se}},[re,C,_e,y,A,N,O,t,s]);return Object.freeze({binding:_e.binding,projection:_e.projection,planningProjection:pe,operateCyclesProjection:oe,operateSearchBindings:xe,operateReviewNavigation:W,refetchCurrent:k})}function Ej(e){return e!==void 0?e:typeof window>"u"?"":window.location.hash}function p8(e,t){return e!==void 0||typeof window>"u"?()=>{}:(window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t))}function h8({buildId:e,initialHash:t,identity:i,connection:s,bootstrap:c,bootPhase:d,bootDetail:u}){const p=B.useSyncExternalStore(_=>p8(t,_),()=>Ej(t),()=>Ej(t)),g=c===void 0&&s===void 0,[m,y]=B.useState(c??null),[A,E]=B.useState(d??(g?"checking":"compatible")),[b,w]=B.useState(u??null);B.useEffect(()=>{if(!g)return;const _=new AbortController;return E("checking"),w("Waiting for OpenPlanr to return a validated bootstrap envelope."),Z3(e,{signal:_.signal}).then(O=>{y(O.bootstrap),E(O.phase==="compatible"?"compatible":O.phase),w(O.detail)}).catch(()=>{}),()=>_.abort()},[e,g]);const j=B.useMemo(()=>s??TR(m,e,b),[m,b,e,s]),I=B.useMemo(()=>i??kR(m),[m,i]),Q=B.useMemo(()=>si(p),[p]),S=Q.kind==="system.diagnostics"||A==="incompatible"||j.state==="incompatible",C=f8(A==="compatible"&&j.state!=="incompatible"&&Q.product!==null?m:null,Q);return r.jsxs(SR,{buildId:e,initialHash:S?ui(Rj):t,identity:I,connection:j,bootstrap:m,bootPhase:A,bootDetail:b,binding:C.binding,projection:C.projection,planningProjection:C.planningProjection,operateCyclesProjection:C.operateCyclesProjection,operateSearchBindings:C.operateSearchBindings,operateReviewNavigation:C.operateReviewNavigation,refetchCurrent:C.refetchCurrent,children:[r.jsx(_R,{}),r.jsx(L3,{})]})}const TO=document.querySelector("#root");if(!TO)throw new Error("OpenPlanr dashboard root element is missing.");PN.createRoot(TO).render(r.jsx(B.StrictMode,{children:r.jsx(h8,{buildId:"dashboard-0.1.22-a193efc4c5b55306"})}));
572
- //# sourceMappingURL=index-B_96uzCl.js.map