@zaip-ai/cli 6.3.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1252) hide show
  1. package/README.md +10 -0
  2. package/dist/commands/init.d.ts +1 -0
  3. package/dist/commands/init.d.ts.map +1 -1
  4. package/dist/commands/init.js +16 -3
  5. package/dist/commands/init.js.map +1 -1
  6. package/dist/index.js +1 -0
  7. package/dist/index.js.map +1 -1
  8. package/dist/services/adapter-codex-config.d.ts +3 -0
  9. package/dist/services/adapter-codex-config.d.ts.map +1 -0
  10. package/dist/services/adapter-codex-config.js +119 -0
  11. package/dist/services/adapter-codex-config.js.map +1 -0
  12. package/dist/services/adapter-config-overlay.d.ts +8 -0
  13. package/dist/services/adapter-config-overlay.d.ts.map +1 -0
  14. package/dist/services/adapter-config-overlay.js +17 -0
  15. package/dist/services/adapter-config-overlay.js.map +1 -0
  16. package/dist/services/adapters.d.ts +3 -2
  17. package/dist/services/adapters.d.ts.map +1 -1
  18. package/dist/services/adapters.js +34 -143
  19. package/dist/services/adapters.js.map +1 -1
  20. package/dist/services/adapters.test.js +12 -0
  21. package/dist/services/adapters.test.js.map +1 -1
  22. package/dist/services/agent-adapters.d.ts +2 -98
  23. package/dist/services/agent-adapters.d.ts.map +1 -1
  24. package/dist/services/agent-adapters.js +30 -29
  25. package/dist/services/agent-adapters.js.map +1 -1
  26. package/dist/services/agent-adapters.test.js +4 -2
  27. package/dist/services/agent-adapters.test.js.map +1 -1
  28. package/dist/services/agent-guidance-types.d.ts +98 -0
  29. package/dist/services/agent-guidance-types.d.ts.map +1 -0
  30. package/dist/services/agent-guidance-types.js +4 -0
  31. package/dist/services/agent-guidance-types.js.map +1 -0
  32. package/dist/services/catalog-toml.d.ts +4 -0
  33. package/dist/services/catalog-toml.d.ts.map +1 -0
  34. package/dist/services/catalog-toml.js +10 -0
  35. package/dist/services/catalog-toml.js.map +1 -0
  36. package/dist/services/catalog-write-scope.d.ts +4 -0
  37. package/dist/services/catalog-write-scope.d.ts.map +1 -0
  38. package/dist/services/catalog-write-scope.js +18 -0
  39. package/dist/services/catalog-write-scope.js.map +1 -0
  40. package/dist/services/claude-settings-overlay.d.ts +4 -0
  41. package/dist/services/claude-settings-overlay.d.ts.map +1 -0
  42. package/dist/services/claude-settings-overlay.js +58 -0
  43. package/dist/services/claude-settings-overlay.js.map +1 -0
  44. package/dist/services/client-selection.d.ts +17 -0
  45. package/dist/services/client-selection.d.ts.map +1 -0
  46. package/dist/services/client-selection.js +67 -0
  47. package/dist/services/client-selection.js.map +1 -0
  48. package/dist/services/codex-conversation-lifecycle-hook.d.ts.map +1 -1
  49. package/dist/services/codex-conversation-lifecycle-hook.js +20 -9
  50. package/dist/services/codex-conversation-lifecycle-hook.js.map +1 -1
  51. package/dist/services/codex-git-publication-template.d.ts +2 -0
  52. package/dist/services/codex-git-publication-template.d.ts.map +1 -0
  53. package/dist/services/codex-git-publication-template.js +120 -0
  54. package/dist/services/codex-git-publication-template.js.map +1 -0
  55. package/dist/services/codex-github-setup-template.d.ts +3 -0
  56. package/dist/services/codex-github-setup-template.d.ts.map +1 -0
  57. package/dist/services/codex-github-setup-template.js +176 -0
  58. package/dist/services/codex-github-setup-template.js.map +1 -0
  59. package/dist/services/codex-hook-activation.d.ts +1 -1
  60. package/dist/services/codex-hook-activation.d.ts.map +1 -1
  61. package/dist/services/codex-hook-activation.js +55 -10
  62. package/dist/services/codex-hook-activation.js.map +1 -1
  63. package/dist/services/codex-host-diagnostic.d.ts +10 -0
  64. package/dist/services/codex-host-diagnostic.d.ts.map +1 -0
  65. package/dist/services/codex-host-diagnostic.js +5 -0
  66. package/dist/services/codex-host-diagnostic.js.map +1 -0
  67. package/dist/services/codex-host-diagnostic.test.d.ts +2 -0
  68. package/dist/services/codex-host-diagnostic.test.d.ts.map +1 -0
  69. package/dist/services/codex-host-diagnostic.test.js +24 -0
  70. package/dist/services/codex-host-diagnostic.test.js.map +1 -0
  71. package/dist/services/codex-literal-read-sequence-template.d.ts.map +1 -1
  72. package/dist/services/codex-literal-read-sequence-template.js +97 -6
  73. package/dist/services/codex-literal-read-sequence-template.js.map +1 -1
  74. package/dist/services/codex-native-authority-policy-template.d.ts +2 -0
  75. package/dist/services/codex-native-authority-policy-template.d.ts.map +1 -0
  76. package/dist/services/codex-native-authority-policy-template.js +132 -0
  77. package/dist/services/codex-native-authority-policy-template.js.map +1 -0
  78. package/dist/services/codex-native-tool-authority-template.d.ts.map +1 -1
  79. package/dist/services/codex-native-tool-authority-template.js +147 -145
  80. package/dist/services/codex-native-tool-authority-template.js.map +1 -1
  81. package/dist/services/codex-node-options-template.d.ts +3 -0
  82. package/dist/services/codex-node-options-template.d.ts.map +1 -0
  83. package/dist/services/codex-node-options-template.js +30 -0
  84. package/dist/services/codex-node-options-template.js.map +1 -0
  85. package/dist/services/codex-pre-tool-cli-capture-template.d.ts.map +1 -1
  86. package/dist/services/codex-pre-tool-cli-capture-template.js +214 -10
  87. package/dist/services/codex-pre-tool-cli-capture-template.js.map +1 -1
  88. package/dist/services/codex-pre-tool-cloud-template.d.ts.map +1 -1
  89. package/dist/services/codex-pre-tool-cloud-template.js +149 -12
  90. package/dist/services/codex-pre-tool-cloud-template.js.map +1 -1
  91. package/dist/services/codex-pre-tool-dependencies.test-support.d.ts.map +1 -1
  92. package/dist/services/codex-pre-tool-dependencies.test-support.js +12 -0
  93. package/dist/services/codex-pre-tool-dependencies.test-support.js.map +1 -1
  94. package/dist/services/codex-pre-tool-hook-template.d.ts.map +1 -1
  95. package/dist/services/codex-pre-tool-hook-template.js +53 -138
  96. package/dist/services/codex-pre-tool-hook-template.js.map +1 -1
  97. package/dist/services/codex-pre-tool-hook-template.test.js +13 -7
  98. package/dist/services/codex-pre-tool-hook-template.test.js.map +1 -1
  99. package/dist/services/codex-pre-tool-host-context-template.d.ts.map +1 -1
  100. package/dist/services/codex-pre-tool-host-context-template.js +23 -0
  101. package/dist/services/codex-pre-tool-host-context-template.js.map +1 -1
  102. package/dist/services/codex-pre-tool-policy-template.d.ts.map +1 -1
  103. package/dist/services/codex-pre-tool-policy-template.js +5 -3
  104. package/dist/services/codex-pre-tool-policy-template.js.map +1 -1
  105. package/dist/services/codex-pre-tool-release-review-template.d.ts.map +1 -1
  106. package/dist/services/codex-pre-tool-release-review-template.js +161 -2
  107. package/dist/services/codex-pre-tool-release-review-template.js.map +1 -1
  108. package/dist/services/codex-pre-tool-support-template.d.ts.map +1 -1
  109. package/dist/services/codex-pre-tool-support-template.js +88 -129
  110. package/dist/services/codex-pre-tool-support-template.js.map +1 -1
  111. package/dist/services/codex-release-publication-template.d.ts +2 -0
  112. package/dist/services/codex-release-publication-template.d.ts.map +1 -0
  113. package/dist/services/codex-release-publication-template.js +127 -0
  114. package/dist/services/codex-release-publication-template.js.map +1 -0
  115. package/dist/services/codex-repository-profile-template.d.ts +2 -0
  116. package/dist/services/codex-repository-profile-template.d.ts.map +1 -0
  117. package/dist/services/codex-repository-profile-template.js +84 -0
  118. package/dist/services/codex-repository-profile-template.js.map +1 -0
  119. package/dist/services/codex-rules.d.ts +1 -1
  120. package/dist/services/codex-rules.d.ts.map +1 -1
  121. package/dist/services/codex-rules.js +2 -2
  122. package/dist/services/codex-storage-handoff-template.d.ts +2 -0
  123. package/dist/services/codex-storage-handoff-template.d.ts.map +1 -0
  124. package/dist/services/codex-storage-handoff-template.js +18 -0
  125. package/dist/services/codex-storage-handoff-template.js.map +1 -0
  126. package/dist/services/codex-subagent-hook-template.d.ts +1 -1
  127. package/dist/services/codex-subagent-hook-template.d.ts.map +1 -1
  128. package/dist/services/codex-subagent-hook-template.js +7 -6
  129. package/dist/services/codex-subagent-hook-template.js.map +1 -1
  130. package/dist/services/codex-task-delivery-authority-template.d.ts +3 -0
  131. package/dist/services/codex-task-delivery-authority-template.d.ts.map +1 -0
  132. package/dist/services/codex-task-delivery-authority-template.js +206 -0
  133. package/dist/services/codex-task-delivery-authority-template.js.map +1 -0
  134. package/dist/services/codex-validation-runtime-template.js +1 -1
  135. package/dist/services/codex-windows-hook-command.js +2 -2
  136. package/dist/services/codex-windows-hook-command.js.map +1 -1
  137. package/dist/services/developer-identity-fixture.d.ts.map +1 -1
  138. package/dist/services/developer-identity-fixture.js +3 -2
  139. package/dist/services/developer-identity-fixture.js.map +1 -1
  140. package/dist/services/doctor.d.ts.map +1 -1
  141. package/dist/services/doctor.js +5 -1
  142. package/dist/services/doctor.js.map +1 -1
  143. package/dist/services/github-setup-status.d.ts +6 -3
  144. package/dist/services/github-setup-status.d.ts.map +1 -1
  145. package/dist/services/github-setup-status.js +9 -5
  146. package/dist/services/github-setup-status.js.map +1 -1
  147. package/dist/services/github-setup-status.test.js +69 -3
  148. package/dist/services/github-setup-status.test.js.map +1 -1
  149. package/dist/services/global-codex-config.d.ts.map +1 -1
  150. package/dist/services/global-codex-config.js +3 -0
  151. package/dist/services/global-codex-config.js.map +1 -1
  152. package/dist/services/global-codex-project-trust.d.ts +17 -0
  153. package/dist/services/global-codex-project-trust.d.ts.map +1 -0
  154. package/dist/services/global-codex-project-trust.js +186 -0
  155. package/dist/services/global-codex-project-trust.js.map +1 -0
  156. package/dist/services/global-codex-project-trust.test.d.ts +2 -0
  157. package/dist/services/global-codex-project-trust.test.d.ts.map +1 -0
  158. package/dist/services/global-codex-project-trust.test.js +188 -0
  159. package/dist/services/global-codex-project-trust.test.js.map +1 -0
  160. package/dist/services/install-agents-template.d.ts.map +1 -1
  161. package/dist/services/install-agents-template.js +95 -190
  162. package/dist/services/install-agents-template.js.map +1 -1
  163. package/dist/services/install-client-selection.d.ts +6 -0
  164. package/dist/services/install-client-selection.d.ts.map +1 -0
  165. package/dist/services/install-client-selection.js +24 -0
  166. package/dist/services/install-client-selection.js.map +1 -0
  167. package/dist/services/install-result.d.ts +6 -0
  168. package/dist/services/install-result.d.ts.map +1 -0
  169. package/dist/services/install-result.js +14 -0
  170. package/dist/services/install-result.js.map +1 -0
  171. package/dist/services/install-storage-boundary.d.ts +6 -0
  172. package/dist/services/install-storage-boundary.d.ts.map +1 -0
  173. package/dist/services/install-storage-boundary.js +173 -0
  174. package/dist/services/install-storage-boundary.js.map +1 -0
  175. package/dist/services/install-storage-boundary.test.d.ts +2 -0
  176. package/dist/services/install-storage-boundary.test.d.ts.map +1 -0
  177. package/dist/services/install-storage-boundary.test.js +110 -0
  178. package/dist/services/install-storage-boundary.test.js.map +1 -0
  179. package/dist/services/install-template-backup.d.ts +3 -0
  180. package/dist/services/install-template-backup.d.ts.map +1 -0
  181. package/dist/services/install-template-backup.js +46 -0
  182. package/dist/services/install-template-backup.js.map +1 -0
  183. package/dist/services/install-template-lock.d.ts +2 -0
  184. package/dist/services/install-template-lock.d.ts.map +1 -0
  185. package/dist/services/install-template-lock.js +32 -0
  186. package/dist/services/install-template-lock.js.map +1 -0
  187. package/dist/services/install-template-policy.d.ts +16 -0
  188. package/dist/services/install-template-policy.d.ts.map +1 -1
  189. package/dist/services/install-template-policy.js +73 -1
  190. package/dist/services/install-template-policy.js.map +1 -1
  191. package/dist/services/install-template-render.d.ts +11 -0
  192. package/dist/services/install-template-render.d.ts.map +1 -0
  193. package/dist/services/install-template-render.js +53 -0
  194. package/dist/services/install-template-render.js.map +1 -0
  195. package/dist/services/install-template-rule-files.d.ts +3 -0
  196. package/dist/services/install-template-rule-files.d.ts.map +1 -0
  197. package/dist/services/install-template-rule-files.js +24 -0
  198. package/dist/services/install-template-rule-files.js.map +1 -0
  199. package/dist/services/logger.d.ts.map +1 -1
  200. package/dist/services/logger.js +35 -10
  201. package/dist/services/logger.js.map +1 -1
  202. package/dist/services/logger.test.js +65 -16
  203. package/dist/services/logger.test.js.map +1 -1
  204. package/dist/services/project-config-upgrade.d.ts +3 -0
  205. package/dist/services/project-config-upgrade.d.ts.map +1 -0
  206. package/dist/services/project-config-upgrade.js +58 -0
  207. package/dist/services/project-config-upgrade.js.map +1 -0
  208. package/dist/services/runtime-template-deploy-policy.test.d.ts +2 -0
  209. package/dist/services/runtime-template-deploy-policy.test.d.ts.map +1 -0
  210. package/dist/services/runtime-template-deploy-policy.test.js +26 -0
  211. package/dist/services/runtime-template-deploy-policy.test.js.map +1 -0
  212. package/dist/services/runtime-template-test-support.d.ts +14 -0
  213. package/dist/services/runtime-template-test-support.d.ts.map +1 -1
  214. package/dist/services/runtime-template-test-support.js +18 -0
  215. package/dist/services/runtime-template-test-support.js.map +1 -1
  216. package/dist/services/runtime-template.test.js +14 -63
  217. package/dist/services/runtime-template.test.js.map +1 -1
  218. package/dist/services/sqlite-bootstrap.js +2 -2
  219. package/dist/services/sqlite-bootstrap.js.map +1 -1
  220. package/dist/services/stack-node.js +2 -2
  221. package/dist/services/stack-node.js.map +1 -1
  222. package/dist/services/stack-terraform.d.ts.map +1 -1
  223. package/dist/services/stack-terraform.js +5 -5
  224. package/dist/services/stack-terraform.js.map +1 -1
  225. package/dist/services/template-packed-path.test.d.ts +2 -0
  226. package/dist/services/template-packed-path.test.d.ts.map +1 -0
  227. package/dist/services/template-packed-path.test.js +30 -0
  228. package/dist/services/template-packed-path.test.js.map +1 -0
  229. package/dist/types.d.ts +8 -0
  230. package/dist/types.d.ts.map +1 -1
  231. package/package.json +2 -1
  232. package/templates/.agents/README-ENG.md +3 -1
  233. package/templates/.agents/README.md +3 -1
  234. package/templates/.agents/architecture/software-architecture.md +7 -1
  235. package/templates/.agents/config/agents/catalog.yaml +25 -12
  236. package/templates/.agents/config/agents/discovery.json +2 -2
  237. package/templates/.agents/config/autonomous-cloud-inputs.json +3 -3
  238. package/templates/.agents/config/clients/codex/agents/zaip-agent-analyst.toml +4 -2
  239. package/templates/.agents/config/clients/codex/agents/zaip-agent-auditor.toml +1 -1
  240. package/templates/.agents/config/clients/codex/agents/zaip-agent-backend.toml +6 -4
  241. package/templates/.agents/config/clients/codex/agents/zaip-agent-brand-strategist.toml +3 -1
  242. package/templates/.agents/config/clients/codex/agents/zaip-agent-builder.toml +6 -4
  243. package/templates/.agents/config/clients/codex/agents/zaip-agent-cloud-engineer.toml +5 -3
  244. package/templates/.agents/config/clients/codex/agents/zaip-agent-data-analyst.toml +3 -1
  245. package/templates/.agents/config/clients/codex/agents/zaip-agent-designer.toml +7 -4
  246. package/templates/.agents/config/clients/codex/agents/zaip-agent-finalizer.toml +1 -1
  247. package/templates/.agents/config/clients/codex/agents/zaip-agent-frontend.toml +9 -6
  248. package/templates/.agents/config/clients/codex/agents/zaip-agent-general-operations.toml +3 -1
  249. package/templates/.agents/config/clients/codex/agents/zaip-agent-governance-compliance.toml +3 -1
  250. package/templates/.agents/config/clients/codex/agents/zaip-agent-growth-strategist.toml +3 -1
  251. package/templates/.agents/config/clients/codex/agents/zaip-agent-integrator.toml +1 -1
  252. package/templates/.agents/config/clients/codex/agents/zaip-agent-marketing-analyst.toml +5 -3
  253. package/templates/.agents/config/clients/codex/agents/zaip-agent-orchestrator.toml +4 -4
  254. package/templates/.agents/config/clients/codex/agents/zaip-agent-refactoring-specialist.toml +3 -1
  255. package/templates/.agents/config/clients/codex/agents/zaip-agent-reviewer.toml +3 -3
  256. package/templates/.agents/config/clients/codex/agents/zaip-agent-sales-specialist.toml +3 -1
  257. package/templates/.agents/config/clients/codex/agents/zaip-agent-security-auditor.toml +1 -1
  258. package/templates/.agents/config/clients/codex/agents/zaip-agent-task-executor.toml +6 -3
  259. package/templates/.agents/config/clients/codex/agents/zaip-agent-website-developer.toml +7 -4
  260. package/templates/.agents/config/clients/codex/agents/zaip-agent-writer.toml +3 -1
  261. package/templates/.agents/config/project.yaml +7 -2
  262. package/templates/.agents/dashboard/.zaip-managed.json +282 -142
  263. package/templates/.agents/dashboard/apps/frontend/dist/assets/CostCalculationGuidePage-DZ2mnR6k.js +1 -0
  264. package/templates/.agents/dashboard/apps/frontend/dist/assets/{DashboardHelpDialog-BQOQCvcJ.js → DashboardHelpDialog-DnxpHJSo.js} +20 -10
  265. package/templates/.agents/dashboard/apps/frontend/dist/assets/{PricingSettingsDialog-CGET1J8Q.js → PricingSettingsDialog-DsFTUwhL.js} +1 -1
  266. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-BCsdQtWG.js +3 -0
  267. package/templates/.agents/dashboard/apps/frontend/dist/assets/{TraceabilityWorkspace-Bw6xnXUN.js → TraceabilityWorkspace-BN8FwP5S.js} +1 -1
  268. package/templates/.agents/dashboard/apps/frontend/dist/assets/{cost-monitor-C2AFYBu_.css → cost-monitor-BESDS3aE.css} +1 -1
  269. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-YfoKMzCQ.js +59 -0
  270. package/templates/.agents/dashboard/apps/frontend/dist/assets/{dashboard-localization-BZf8HWmm.js → dashboard-localization-BVBhiAAS.js} +3 -1
  271. package/templates/.agents/dashboard/apps/frontend/dist/assets/{icons-vendor-CjGGux6h.js → icons-vendor-DSdQAua1.js} +1 -1
  272. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-4cl5FQBn.css +1 -0
  273. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-uIVtG2ZR.js +2 -0
  274. package/templates/.agents/dashboard/apps/frontend/dist/assets/{react-vendor-B9jZSAKf.js → react-vendor-rGvJzdn5.js} +1 -1
  275. package/templates/.agents/dashboard/apps/frontend/dist/assets/{traceability-DFpwb0TN.js → traceability-Boz50W9b.js} +1 -1
  276. package/templates/.agents/dashboard/apps/frontend/dist/index.html +8 -7
  277. package/templates/.agents/dashboard/apps/frontend/index.html +1 -0
  278. package/templates/.agents/dashboard/apps/frontend/package.json +1 -1
  279. package/templates/.agents/dashboard/apps/frontend/playwright.dom.config.ts +2 -2
  280. package/templates/.agents/dashboard/apps/frontend/src/AppLoadingPanels.tsx +10 -7
  281. package/templates/.agents/dashboard/apps/frontend/src/AppOverlays.tsx +22 -19
  282. package/templates/.agents/dashboard/apps/frontend/src/CostCalculationGuidePage.tsx +16 -117
  283. package/templates/.agents/dashboard/apps/frontend/src/CostCharts.percentages.test.tsx +75 -0
  284. package/templates/.agents/dashboard/apps/frontend/src/CostTelemetryGuide.tsx +36 -0
  285. package/templates/.agents/dashboard/apps/frontend/src/DashboardToast.tsx +9 -0
  286. package/templates/.agents/dashboard/apps/frontend/src/ProjectSettingsPage.dom.test.ts +1 -1
  287. package/templates/.agents/dashboard/apps/frontend/src/ProjectStackEditor.tsx +1 -0
  288. package/templates/.agents/dashboard/apps/frontend/src/ReconciliationFeedback.dom.test.ts +1 -1
  289. package/templates/.agents/dashboard/apps/frontend/src/ReconciliationFeedback.tsx +22 -19
  290. package/templates/.agents/dashboard/apps/frontend/src/TraceabilityWorkspace.dom.e2e.ts +5 -2
  291. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.dom.test.ts +86 -0
  292. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.test.tsx +44 -0
  293. package/templates/.agents/dashboard/apps/frontend/src/WorkspaceStatus.tsx +37 -12
  294. package/templates/.agents/dashboard/apps/frontend/src/cost-guide-calculations.ts +118 -0
  295. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api-sqlite-view.ts +3 -0
  296. package/templates/.agents/dashboard/apps/frontend/src/dashboard-api.ts +15 -31
  297. package/templates/.agents/dashboard/apps/frontend/src/dashboard-http-transport.ts +30 -0
  298. package/templates/.agents/dashboard/apps/frontend/src/dashboard-runtime-status.ts +4 -1
  299. package/templates/.agents/dashboard/apps/frontend/src/main.tsx +1 -0
  300. package/templates/.agents/dashboard/apps/frontend/src/project-settings-model.ts +2 -0
  301. package/templates/.agents/dashboard/apps/frontend/src/project-settings.test.ts +17 -0
  302. package/templates/.agents/dashboard/apps/frontend/src/snapshot-coherence.test.ts +0 -20
  303. package/templates/.agents/dashboard/apps/frontend/src/snapshot-observer.test.ts +112 -0
  304. package/templates/.agents/dashboard/apps/frontend/src/snapshot-observer.ts +147 -0
  305. package/templates/.agents/dashboard/apps/frontend/src/sqlite-compact-cost-adapter.ts +100 -0
  306. package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.test.ts +20 -0
  307. package/templates/.agents/dashboard/apps/frontend/src/sqlite-page-export.ts +15 -0
  308. package/templates/.agents/dashboard/apps/frontend/src/styles-pricing.css +265 -0
  309. package/templates/.agents/dashboard/apps/frontend/src/styles.css +21 -265
  310. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.test.ts +35 -0
  311. package/templates/.agents/dashboard/apps/frontend/src/use-app-cost-loaders.ts +11 -87
  312. package/templates/.agents/dashboard/apps/frontend/src/use-app-effects.ts +26 -199
  313. package/templates/.agents/dashboard/apps/frontend/src/use-app-trace-documents.navigation.test.tsx +1 -1
  314. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.test.ts +65 -0
  315. package/templates/.agents/dashboard/apps/frontend/src/use-app-work-board.ts +17 -1
  316. package/templates/.agents/dashboard/apps/frontend/src/use-dashboard-app-model.tsx +2 -2
  317. package/templates/.agents/dashboard/apps/frontend/src/use-operations-detail-export.ts +10 -0
  318. package/templates/.agents/dashboard/apps/frontend/src/use-runtime-status.dom.test.ts +86 -0
  319. package/templates/.agents/dashboard/apps/frontend/src/use-runtime-status.ts +4 -5
  320. package/templates/.agents/dashboard/apps/frontend/src/workspace-status.css +42 -0
  321. package/templates/.agents/dashboard/apps/frontend/vite.config.ts +1 -1
  322. package/templates/.agents/dashboard/modules/cost-monitor/package.json +1 -1
  323. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.test.ts +11 -10
  324. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CompactLifecycleCostTable.tsx +39 -15
  325. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.test.ts +27 -0
  326. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostCharts.tsx +89 -83
  327. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostGroupsTable.tsx +14 -24
  328. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.test.ts +1 -27
  329. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostMonitorPage.tsx +12 -63
  330. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.availability.test.ts +60 -0
  331. package/templates/.agents/dashboard/modules/cost-monitor/src/react/CostTables.test.ts +1 -15
  332. package/templates/.agents/dashboard/modules/cost-monitor/src/react/compact-cost-export-source.ts +85 -0
  333. package/templates/.agents/dashboard/modules/cost-monitor/src/react/compact-cost-page-range.test.ts +34 -0
  334. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-chart-presentation.ts +74 -0
  335. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-charts.css +117 -0
  336. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-group-table-totals.ts +29 -0
  337. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-export-sources.ts +19 -0
  338. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor-page-state.ts +27 -0
  339. package/templates/.agents/dashboard/modules/cost-monitor/src/react/cost-monitor.css +6 -117
  340. package/templates/.agents/dashboard/modules/cost-monitor/src/react/use-cost-group-page.ts +3 -1
  341. package/templates/.agents/dashboard/modules/cost-monitor/src/server/build-cost-summary-projection.ts +9 -32
  342. package/templates/.agents/dashboard/modules/cost-monitor/src/server/cost-summary-metrics.ts +33 -0
  343. package/templates/.agents/dashboard/modules/operations/package.json +1 -1
  344. package/templates/.agents/dashboard/modules/operations/src/react/OperationsLocaleMenu.tsx +58 -0
  345. package/templates/.agents/dashboard/modules/operations/src/react/OperationsOverviewTopPanel.navigation.test.tsx +1 -1
  346. package/templates/.agents/dashboard/modules/operations/src/react/OperationsPage.tsx +16 -47
  347. package/templates/.agents/dashboard/modules/operations/src/react/UnifiedWorkBoard.navigation.test.ts +1 -1
  348. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.test.ts +4 -100
  349. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportAction.tsx +25 -89
  350. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportColumns.ts +1 -0
  351. package/templates/.agents/dashboard/modules/operations/src/react/export/ExcelExportDuration.test.ts +105 -0
  352. package/templates/.agents/dashboard/modules/operations/src/react/export/export-duration-rows.ts +91 -0
  353. package/templates/.agents/dashboard/modules/operations/src/react/operations-page-contract.ts +4 -0
  354. package/templates/.agents/dashboard/modules/traceability/package.json +1 -1
  355. package/templates/.agents/dashboard/packages/branding/package.json +1 -1
  356. package/templates/.agents/dashboard/packages/contracts/package.json +2 -2
  357. package/templates/.agents/dashboard/packages/contracts/src/export.ts +2 -0
  358. package/templates/.agents/dashboard/packages/data-export/package.json +1 -1
  359. package/templates/.agents/dashboard/packages/data-export/src/index.test.ts +30 -0
  360. package/templates/.agents/dashboard/packages/data-export/src/index.ts +10 -0
  361. package/templates/.agents/dashboard/packages/data-export/src/ooxml-stream.ts +50 -3
  362. package/templates/.agents/dashboard/packages/local-runtime/DIAGNOSTICS.md +2 -1
  363. package/templates/.agents/dashboard/packages/local-runtime/dashboard-build-fingerprint.mjs +1 -1
  364. package/templates/.agents/dashboard/packages/local-runtime/dashboard-diagnostics.mjs +4 -2
  365. package/templates/.agents/dashboard/packages/local-runtime/dashboard-diagnostics.test.mjs +1 -1
  366. package/templates/.agents/dashboard/packages/local-runtime/dist/server.cjs +314 -269
  367. package/templates/.agents/dashboard/packages/local-runtime/dist/sqlite-read-model.cjs +266 -222
  368. package/templates/.agents/dashboard/packages/local-runtime/package.json +3 -3
  369. package/templates/.agents/dashboard/packages/local-runtime/scripts/verify-dashboard-executable-startup.mjs +4 -1
  370. package/templates/.agents/dashboard/packages/local-runtime/scripts/verify-dashboard-reconciliation-executable.mjs +4 -4
  371. package/templates/.agents/dashboard/packages/local-runtime/server.mjs +314 -269
  372. package/templates/.agents/dashboard/packages/local-runtime/src/active-codex-telemetry.test.ts +51 -0
  373. package/templates/.agents/dashboard/packages/local-runtime/src/active-codex-telemetry.ts +15 -1
  374. package/templates/.agents/dashboard/packages/local-runtime/src/dashboard-diagnostics.test.ts +1 -1
  375. package/templates/.agents/dashboard/packages/local-runtime/src/project-settings.ts +3 -40
  376. package/templates/.agents/dashboard/packages/local-runtime/src/project-stack-labels.ts +40 -0
  377. package/templates/.agents/dashboard/packages/local-runtime/src/retained-worktree-capture.ts +81 -0
  378. package/templates/.agents/dashboard/packages/local-runtime/src/server-board.ts +11 -2
  379. package/templates/.agents/dashboard/packages/local-runtime/src/server-hono-security.test.ts +40 -0
  380. package/templates/.agents/dashboard/packages/local-runtime/src/server-operations-routes.ts +33 -14
  381. package/templates/.agents/dashboard/packages/local-runtime/src/server-project-settings-routes.test.ts +83 -0
  382. package/templates/.agents/dashboard/packages/local-runtime/src/server-project-settings-routes.ts +41 -0
  383. package/templates/.agents/dashboard/packages/local-runtime/src/server-projections.ts +3 -19
  384. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-diagnostics.test.ts +2 -2
  385. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-refresh.test.ts +61 -0
  386. package/templates/.agents/dashboard/packages/local-runtime/src/server-reconciliation-route.ts +2 -2
  387. package/templates/.agents/dashboard/packages/local-runtime/src/server-run-range.ts +18 -0
  388. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-refresh.ts +3 -36
  389. package/templates/.agents/dashboard/packages/local-runtime/src/server-snapshot-worker-receipt.ts +38 -0
  390. package/templates/.agents/dashboard/packages/local-runtime/src/server-work-priority-route.ts +18 -0
  391. package/templates/.agents/dashboard/packages/local-runtime/src/server-workspace.ts +1 -0
  392. package/templates/.agents/dashboard/packages/local-runtime/src/server.ts +6 -32
  393. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-cost-summary-rollup.ts +47 -0
  394. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-financial-consistency.test.ts +133 -0
  395. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-financial-entity-page.ts +159 -0
  396. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-incremental-refresh.test.ts +12 -2
  397. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-operations-work-list.ts +17 -0
  398. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-operation-pages.ts +71 -0
  399. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-summary.ts +5 -40
  400. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-temporal-dimension.ts +29 -7
  401. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-query-view-page.ts +7 -55
  402. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-counts-every-root-execution-day-returns.test.ts +16 -24
  403. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-counts-fixture.test-support.ts +27 -5
  404. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-filesystem.ts +20 -37
  405. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-keeps-orphan-telemetry-out-kanban-without.test.ts +9 -9
  406. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-marks-token-cost-telemetry-unavailable-when.test.ts +3 -3
  407. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-multi-provider.test.ts +14 -20
  408. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-rebuilds-disposable-snapshot-serves-zaip-records.test.ts +11 -1
  409. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-read-model-schema.ts +1 -1
  410. package/templates/.agents/dashboard/packages/local-runtime/src/sqlite-work-financial-summary.ts +38 -0
  411. package/templates/.agents/dashboard/packages/local-runtime/src/telemetry-reconciliation.integration.test.ts +223 -0
  412. package/templates/.agents/dashboard/packages/local-runtime/src/work-priority-contract.test.ts +5 -5
  413. package/templates/.agents/dashboard/packages/local-runtime/start-dashboard-launch-page.test.mjs +59 -3
  414. package/templates/.agents/dashboard/packages/ui/package.json +1 -1
  415. package/templates/.agents/dashboard/packages/windows-launcher/Program.cs +1 -1
  416. package/templates/.agents/dashboard/packages/windows-launcher/build-dashboard-launcher.ps1 +1 -1
  417. package/templates/.agents/dashboard/tests/e2e/package.json +1 -1
  418. package/templates/.agents/dashboard/tests/e2e/playwright.config.ts +1 -0
  419. package/templates/.agents/dashboard/tests/e2e/specs/dashboard.spec.ts +11 -15
  420. package/templates/.agents/dashboard/tests/e2e/specs/work-board-hydration.ts +40 -11
  421. package/templates/.agents/dashboard/zaip-dashboard-windows.exe +0 -0
  422. package/templates/.agents/design/.zaip-managed.json +498 -54
  423. package/templates/.agents/design/apps/catalog/dist/assets/index-BH6Fxbj0.css +1 -0
  424. package/templates/.agents/design/apps/catalog/dist/assets/index-BK0aBll9.css +1 -0
  425. package/templates/.agents/design/apps/catalog/dist/assets/index-Bzhb1wb_.js +76 -0
  426. package/templates/.agents/design/apps/catalog/dist/assets/index-CB-MTaWq.js +76 -0
  427. package/templates/.agents/design/apps/catalog/dist/assets/index-CIqfUcy8.js +76 -0
  428. package/templates/.agents/design/apps/catalog/dist/assets/index-Ccq-NOLA.js +76 -0
  429. package/templates/.agents/design/apps/catalog/dist/assets/index-Ch2eyD9C.js +76 -0
  430. package/templates/.agents/design/apps/catalog/dist/assets/index-Cy64ytQr.js +67 -0
  431. package/templates/.agents/design/apps/catalog/dist/assets/index-DfxEbFlq.js +76 -0
  432. package/templates/.agents/design/apps/catalog/dist/assets/index-Dqt6mTvD.js +76 -0
  433. package/templates/.agents/design/apps/catalog/dist/assets/index-rz8gOc0a.js +76 -0
  434. package/templates/.agents/design/apps/catalog/dist/index.html +2 -2
  435. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{CatalogShell-BJ8b4xZr.js → CatalogShell-D2YyQQrT.js} +1 -1
  436. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Color-6AOWCN3U-CQLHzznn.js → Color-6AOWCN3U-BmCuNXMg.js} +1 -1
  437. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-DF9KC_gA.js +158 -0
  438. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFilters.stories-D17Q1egS.js +5 -0
  439. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFiltersSpecimen-CEBrLT2k.js +1 -0
  440. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DesignSystem.stories-ED52wFjY.js → DesignSystem.stories-BibuRt_c.js} +1 -1
  441. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{DocsRenderer-JROSPFPF-BcLgM80v.js → DocsRenderer-JROSPFPF-GkfL8_gG.js} +4 -4
  442. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Maker.stories-Dv9Keun_.js +13 -0
  443. package/templates/.agents/design/apps/catalog/dist/storybook/assets/MakerSpecimen-DGwAKRi9.css +1 -0
  444. package/templates/.agents/design/apps/catalog/dist/storybook/assets/MakerSpecimen-mkkuFOp_.js +5 -0
  445. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{Primitives-DV6Bpudf.js → Primitives-n1UqmNvo.js} +1 -1
  446. package/templates/.agents/design/apps/catalog/dist/storybook/assets/ReconciliationSpecimen-BJnfyyG3.js +1 -0
  447. package/templates/.agents/design/apps/catalog/dist/storybook/assets/ReconciliationSpecimen.stories-CH-GF9Rk.js +13 -0
  448. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WithTooltip-7X4HQR7L-BKNiAz_E.js → WithTooltip-7X4HQR7L-BPXo6OoG.js} +1 -1
  449. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{WorkspaceStatus.stories-BL19HGOo.js → WorkspaceStatus.stories-Cie1f_yU.js} +1 -1
  450. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-GcYWBBSp.js +1 -0
  451. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-DRQKCCAG-DZBcXL-p.js → chunk-DRQKCCAG-Cn4_bvJJ.js} +1 -1
  452. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{chunk-W22LQPXL-CF3y2mfo.js → chunk-W22LQPXL-CQrULeB4.js} +1 -1
  453. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{components-BVjxMRGq.js → components-uiaDZHE7.js} +5 -5
  454. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-DfjRffT7.js +1 -0
  455. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{iframe-CTWGZcEe.js → iframe-BgEb-d5o.js} +4 -4
  456. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-D1JaPXfV.css +1 -0
  457. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{react-18-B9_a4mHb.js → react-18-BZ-Ne01c.js} +1 -1
  458. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-CwpjKEyW.js +1 -0
  459. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{syntaxhighlighter-YFXUGROL-F_p8E2xc.js → syntaxhighlighter-YFXUGROL-BvuP8St2.js} +1 -1
  460. package/templates/.agents/design/apps/catalog/dist/storybook/assets/{theming-fbSD9ZLF.js → theming-BGScn6Yf.js} +1 -1
  461. package/templates/.agents/design/apps/catalog/dist/storybook/iframe.html +2 -2
  462. package/templates/.agents/design/apps/catalog/dist/storybook/index.json +1 -1
  463. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/a11y-2/manager-bundle.js +3 -3
  464. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/docs-1/manager-bundle.js +4 -4
  465. package/templates/.agents/design/apps/catalog/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -3
  466. package/templates/.agents/design/apps/catalog/package.json +2 -2
  467. package/templates/.agents/design/apps/catalog/src/components/WorkspaceStatusSpecimen.tsx +32 -1
  468. package/templates/.agents/design/apps/catalog/src/pages/ComponentsPage.tsx +14 -3
  469. package/templates/.agents/design/apps/catalog/src/specimens/MAKER-HANDOFF.md +134 -0
  470. package/templates/.agents/design/apps/catalog/src/specimens/MakerSpecimen.test.tsx +143 -0
  471. package/templates/.agents/design/apps/catalog/src/specimens/MakerSpecimen.tsx +132 -0
  472. package/templates/.agents/design/apps/catalog/src/specimens/maker-fixtures.d.ts +15 -0
  473. package/templates/.agents/design/apps/catalog/src/specimens/maker-fixtures.js +86 -0
  474. package/templates/.agents/design/apps/catalog/src/specimens/maker-native.d.ts +1 -0
  475. package/templates/.agents/design/apps/catalog/src/specimens/maker-native.js +332 -0
  476. package/templates/.agents/design/apps/catalog/src/stories/Maker.stories.tsx +24 -0
  477. package/templates/.agents/design/apps/catalog/src/stories/WorkspaceStatus.stories.tsx +1 -0
  478. package/templates/.agents/design/apps/catalog/src/styles/maker-specimen.css +285 -0
  479. package/templates/.agents/design/design-system-maker/API.md +468 -0
  480. package/templates/.agents/design/design-system-maker/NOTICE.md +13 -0
  481. package/templates/.agents/design/design-system-maker/README.md +138 -0
  482. package/templates/.agents/design/design-system-maker/SOURCE-PROVENANCE.json +62 -0
  483. package/templates/.agents/design/design-system-maker/build.json +524 -0
  484. package/templates/.agents/design/design-system-maker/frontend/ADAPTATION.md +351 -0
  485. package/templates/.agents/design/design-system-maker/frontend/MAKER-REPAIR-HANDOFF.md +134 -0
  486. package/templates/.agents/design/design-system-maker/frontend/advanced/examples.js +30 -0
  487. package/templates/.agents/design/design-system-maker/frontend/advanced/index.html +75 -0
  488. package/templates/.agents/design/design-system-maker/frontend/advanced/index.js +30 -0
  489. package/templates/.agents/design/design-system-maker/frontend/catalog/filters.js +132 -0
  490. package/templates/.agents/design/design-system-maker/frontend/catalog/index.html +17 -0
  491. package/templates/.agents/design/design-system-maker/frontend/catalog/index.js +82 -0
  492. package/templates/.agents/design/design-system-maker/frontend/generate.html +74 -0
  493. package/templates/.agents/design/design-system-maker/frontend/generate.js +226 -0
  494. package/templates/.agents/design/design-system-maker/frontend/shared/api.js +112 -0
  495. package/templates/.agents/design/design-system-maker/frontend/shared/components.js +200 -0
  496. package/templates/.agents/design/design-system-maker/frontend/shared/diagnostic-view.js +218 -0
  497. package/templates/.agents/design/design-system-maker/frontend/shared/extraction-state.js +38 -0
  498. package/templates/.agents/design/design-system-maker/frontend/shared/failure-view.js +54 -0
  499. package/templates/.agents/design/design-system-maker/frontend/shared/frontend-scenarios-2.test.mjs +138 -0
  500. package/templates/.agents/design/design-system-maker/frontend/shared/frontend.test.mjs +357 -0
  501. package/templates/.agents/design/design-system-maker/frontend/shared/job-view.js +81 -0
  502. package/templates/.agents/design/design-system-maker/frontend/shared/model-hydration.js +26 -0
  503. package/templates/.agents/design/design-system-maker/frontend/shared/model.js +103 -0
  504. package/templates/.agents/design/design-system-maker/frontend/shared/palette-evidence.js +106 -0
  505. package/templates/.agents/design/design-system-maker/frontend/shared/palette-evidence.test.mjs +210 -0
  506. package/templates/.agents/design/design-system-maker/frontend/shared/palette-view.js +149 -0
  507. package/templates/.agents/design/design-system-maker/frontend/shared/preview.test.mjs +263 -0
  508. package/templates/.agents/design/design-system-maker/frontend/shared/report-view.js +267 -0
  509. package/templates/.agents/design/design-system-maker/frontend/shared/reprocess-dialog.js +192 -0
  510. package/templates/.agents/design/design-system-maker/frontend/shared/specimens.js +231 -0
  511. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-actions.js +78 -0
  512. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-detail.js +121 -0
  513. package/templates/.agents/design/design-system-maker/frontend/shared/viewer-summary.js +91 -0
  514. package/templates/.agents/design/design-system-maker/frontend/shared/visual-model.js +255 -0
  515. package/templates/.agents/design/design-system-maker/frontend/styles/advanced.css +128 -0
  516. package/templates/.agents/design/design-system-maker/frontend/styles/base.css +318 -0
  517. package/templates/.agents/design/design-system-maker/frontend/styles/catalog-filters.css +114 -0
  518. package/templates/.agents/design/design-system-maker/frontend/styles/diagnostic.css +298 -0
  519. package/templates/.agents/design/design-system-maker/frontend/styles/layout.css +320 -0
  520. package/templates/.agents/design/design-system-maker/frontend/styles/maker.css +7 -0
  521. package/templates/.agents/design/design-system-maker/frontend/styles/report.css +173 -0
  522. package/templates/.agents/design/design-system-maker/frontend/styles/reprocess-dialog.css +34 -0
  523. package/templates/.agents/design/design-system-maker/frontend/styles/specimen-foundations.css +363 -0
  524. package/templates/.agents/design/design-system-maker/frontend/styles/specimens.css +59 -0
  525. package/templates/.agents/design/design-system-maker/frontend/styles/viewer-summary.css +308 -0
  526. package/templates/.agents/design/design-system-maker/frontend/viewer/diagnostic.html +3 -0
  527. package/templates/.agents/design/design-system-maker/frontend/viewer/index.html +8 -0
  528. package/templates/.agents/design/design-system-maker/frontend/viewer/index.js +233 -0
  529. package/templates/.agents/design/design-system-maker/frontend/viewer/preview.html +3 -0
  530. package/templates/.agents/design/design-system-maker/frontend/viewer/specimen.js +88 -0
  531. package/templates/.agents/design/design-system-maker/launcher/Program.cs +117 -0
  532. package/templates/.agents/design/design-system-maker/runtime/chat-cli.mjs +27 -0
  533. package/templates/.agents/design/design-system-maker/runtime/chat-client.mjs +170 -0
  534. package/templates/.agents/design/design-system-maker/runtime/chat-contract.mjs +13 -0
  535. package/templates/.agents/design/design-system-maker/runtime/collection.mjs +269 -0
  536. package/templates/.agents/design/design-system-maker/runtime/contracts.mjs +383 -0
  537. package/templates/.agents/design/design-system-maker/runtime/design-codes.mjs +46 -0
  538. package/templates/.agents/design/design-system-maker/runtime/design-compose.mjs +118 -0
  539. package/templates/.agents/design/design-system-maker/runtime/design-markdown.mjs +154 -0
  540. package/templates/.agents/design/design-system-maker/runtime/import.mjs +137 -0
  541. package/templates/.agents/design/design-system-maker/runtime/io.mjs +121 -0
  542. package/templates/.agents/design/design-system-maker/runtime/job-progress.mjs +50 -0
  543. package/templates/.agents/design/design-system-maker/runtime/json-tokens.mjs +88 -0
  544. package/templates/.agents/design/design-system-maker/runtime/launch-identity.mjs +100 -0
  545. package/templates/.agents/design/design-system-maker/runtime/launch-protocol.mjs +88 -0
  546. package/templates/.agents/design/design-system-maker/runtime/launch-server.mjs +51 -0
  547. package/templates/.agents/design/design-system-maker/runtime/launch.mjs +107 -0
  548. package/templates/.agents/design/design-system-maker/runtime/local-actions.mjs +184 -0
  549. package/templates/.agents/design/design-system-maker/runtime/local-artifacts.mjs +228 -0
  550. package/templates/.agents/design/design-system-maker/runtime/local-request.mjs +100 -0
  551. package/templates/.agents/design/design-system-maker/runtime/lock.mjs +23 -0
  552. package/templates/.agents/design/design-system-maker/runtime/presentation.mjs +107 -0
  553. package/templates/.agents/design/design-system-maker/runtime/repository-source.mjs +200 -0
  554. package/templates/.agents/design/design-system-maker/runtime/reprocess-mode.mjs +17 -0
  555. package/templates/.agents/design/design-system-maker/runtime/request-contracts.mjs +121 -0
  556. package/templates/.agents/design/design-system-maker/runtime/serve.mjs +53 -0
  557. package/templates/.agents/design/design-system-maker/runtime/server.mjs +363 -0
  558. package/templates/.agents/design/design-system-maker/runtime/service-actions.mjs +59 -0
  559. package/templates/.agents/design/design-system-maker/runtime/service-host.mjs +32 -0
  560. package/templates/.agents/design/design-system-maker/runtime/service-projections.mjs +87 -0
  561. package/templates/.agents/design/design-system-maker/runtime/service.mjs +393 -0
  562. package/templates/.agents/design/design-system-maker/runtime/stop.mjs +38 -0
  563. package/templates/.agents/design/design-system-maker/runtime/trash.mjs +95 -0
  564. package/templates/.agents/design/design-system-maker/zaip-design-system-maker.exe +0 -0
  565. package/templates/.agents/design/packages/local-runtime/package.json +1 -1
  566. package/templates/.agents/requirements/autonomous-assurance.md +1 -1
  567. package/templates/.agents/requirements/cloud-hostinger-autonomy.md +9 -7
  568. package/templates/.agents/requirements/comparative-audit.md +1 -1
  569. package/templates/.agents/requirements/context-engine.md +1 -1
  570. package/templates/.agents/requirements/cost-observability.md +3 -3
  571. package/templates/.agents/requirements/dashboard-launch.md +1 -1
  572. package/templates/.agents/requirements/data-export.md +1 -1
  573. package/templates/.agents/requirements/design-system.md +1 -1
  574. package/templates/.agents/requirements/execution-engine.md +1 -1
  575. package/templates/.agents/requirements/kanban-dashboard.md +3 -3
  576. package/templates/.agents/requirements/landing-page-forms.md +39 -0
  577. package/templates/.agents/requirements/model-orchestration.md +1 -1
  578. package/templates/.agents/requirements/public-distribution.md +4 -4
  579. package/templates/.agents/requirements/site-performance.md +41 -0
  580. package/templates/.agents/requirements/software-architecture.md +1 -1
  581. package/templates/.agents/requirements/strategic-improvements.md +1 -1
  582. package/templates/.agents/requirements/work-lifecycle.md +1 -1
  583. package/templates/.agents/requirements/zaip-strategic-95.md +1 -1
  584. package/templates/.agents/rules/autonomy-decision.md +4 -1
  585. package/templates/.agents/rules/cloud-hostinger-autonomy.md +4 -1
  586. package/templates/.agents/rules/core.md +5 -2
  587. package/templates/.agents/rules/framework-maintenance.md +34 -0
  588. package/templates/.agents/rules/frontend-lite.md +2 -1
  589. package/templates/.agents/rules/github-deploy-auth.md +18 -0
  590. package/templates/.agents/rules/infisical-secrets.md +20 -0
  591. package/templates/.agents/rules/landing-page-forms.md +28 -0
  592. package/templates/.agents/rules/lead-measurement.md +20 -0
  593. package/templates/.agents/rules/local-sqlite-storage.md +2 -2
  594. package/templates/.agents/rules/local-state-storage.md +15 -0
  595. package/templates/.agents/rules/production-readiness.md +1 -1
  596. package/templates/.agents/rules/quality-assurance.md +36 -0
  597. package/templates/.agents/rules/repository-responsibility.md +38 -0
  598. package/templates/.agents/rules/security.md +1 -1
  599. package/templates/.agents/rules/site-performance.md +29 -0
  600. package/templates/.agents/rules/website-quality.md +31 -0
  601. package/templates/.agents/rules/workflow.md +1 -1
  602. package/templates/.agents/runtime/VERSION +1 -1
  603. package/templates/.agents/runtime/bin/zaip.mjs +2256 -802
  604. package/templates/.agents/runtime/checksums.sha256 +6 -6
  605. package/templates/.agents/runtime/manifest.json +1 -1
  606. package/templates/.agents/runtime/pnpm-lock.sha256 +1 -1
  607. package/templates/.agents/runtime/provenance.json +5 -5
  608. package/templates/.agents/runtime/sbom.cdx.json +7 -7
  609. package/templates/.agents/skills/criar-pasta-obsidian/SKILL.md +2 -2
  610. package/templates/.agents/skills/criar-pasta-obsidian/scripts/generate-obsidian-vault.mjs +7 -24
  611. package/templates/.agents/skills/criar-pasta-obsidian/scripts/generate-obsidian-vault.test.mjs +4 -2
  612. package/templates/.agents/skills/criar-pasta-obsidian/scripts/obsidian-format.mjs +20 -0
  613. package/templates/.agents/skills/zaip-skill-adapters/SKILL.md +6 -0
  614. package/templates/.agents/skills/zaip-skill-application-observability/references/lead-measurement.md +52 -0
  615. package/templates/.agents/skills/zaip-skill-architecture-design/SKILL.md +3 -1
  616. package/templates/.agents/skills/zaip-skill-auth-tenancy/references/lead-measurement.md +42 -0
  617. package/templates/.agents/skills/zaip-skill-author-skills/SKILL.md +1 -1
  618. package/templates/.agents/skills/zaip-skill-author-skills/references/engineering-skill-index.md +4 -0
  619. package/templates/.agents/skills/zaip-skill-author-skills/scripts/audit-skill-catalog.mjs +3 -0
  620. package/templates/.agents/skills/zaip-skill-author-skills/scripts/run-skill-tests.mjs +37 -7
  621. package/templates/.agents/skills/zaip-skill-author-skills/scripts/skill-test-plan.mjs +79 -0
  622. package/templates/.agents/skills/zaip-skill-author-skills/scripts/skill-test-plan.test.mjs +47 -0
  623. package/templates/.agents/skills/zaip-skill-backend/SKILL.md +2 -0
  624. package/templates/.agents/skills/zaip-skill-backend/references/deployment-environments.md +2 -2
  625. package/templates/.agents/skills/zaip-skill-change/references/observable-evidence.md +3 -3
  626. package/templates/.agents/skills/zaip-skill-cloud-engineering/SKILL.md +2 -0
  627. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/SKILL.md +16 -0
  628. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/agents/openai.yaml +4 -0
  629. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/references/account-token.md +90 -0
  630. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/scripts/preview-access.mjs +91 -0
  631. package/templates/.agents/skills/zaip-skill-cloudflare-access-setup/scripts/preview-access.test.mjs +44 -0
  632. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/SKILL.md +4 -2
  633. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/references/workers-static-assets.md +1 -1
  634. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/references/workflow-templates.md +5 -5
  635. package/templates/.agents/skills/zaip-skill-cloudflare-github-deploy/scripts/cloudflare-github-deploy-contract.test.mjs +24 -5
  636. package/templates/.agents/skills/zaip-skill-config/SKILL.md +33 -8
  637. package/templates/.agents/skills/zaip-skill-config/agents/openai.yaml +2 -2
  638. package/templates/.agents/skills/zaip-skill-config/references/repository-profiles.md +83 -0
  639. package/templates/.agents/skills/zaip-skill-dashboard-sqlite/SKILL.md +2 -2
  640. package/templates/.agents/skills/zaip-skill-data-modeling/references/lead-measurement.md +37 -0
  641. package/templates/.agents/skills/zaip-skill-database-migrations/references/lead-measurement.md +35 -0
  642. package/templates/.agents/skills/zaip-skill-decisions/SKILL.md +1 -0
  643. package/templates/.agents/skills/zaip-skill-deployment-pipeline/SKILL.md +11 -0
  644. package/templates/.agents/skills/zaip-skill-design-maker/SKILL.md +28 -0
  645. package/templates/.agents/skills/zaip-skill-design-maker/agents/openai.yaml +4 -0
  646. package/templates/.agents/skills/zaip-skill-design-maker/references/chat-contract.md +46 -0
  647. package/templates/.agents/skills/zaip-skill-design-maker/references/compose.md +20 -0
  648. package/templates/.agents/skills/zaip-skill-design-maker/references/markdown.md +26 -0
  649. package/templates/.agents/skills/zaip-skill-design-maker/references/repository.md +24 -0
  650. package/templates/.agents/skills/zaip-skill-design-maker/references/url.md +24 -0
  651. package/templates/.agents/skills/zaip-skill-design-redesign/SKILL.md +41 -0
  652. package/templates/.agents/skills/zaip-skill-design-redesign/agents/openai.yaml +6 -0
  653. package/templates/.agents/skills/zaip-skill-design-reproduction/SKILL.md +47 -0
  654. package/templates/.agents/skills/zaip-skill-design-reproduction/agents/openai.yaml +6 -0
  655. package/templates/.agents/skills/zaip-skill-design-system/SKILL.md +6 -0
  656. package/templates/.agents/skills/zaip-skill-design-url-extraction/SKILL.md +50 -0
  657. package/templates/.agents/skills/zaip-skill-design-url-extraction/agents/openai.yaml +6 -0
  658. package/templates/.agents/skills/zaip-skill-design-url-extraction/references/capture-example.json +11 -0
  659. package/templates/.agents/skills/zaip-skill-design-url-extraction/references/runtime-workflow.md +127 -0
  660. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/SKILL.md +3 -1
  661. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-fence.mjs +2 -1
  662. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-lease.mjs +3 -1
  663. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-storage.mjs +40 -0
  664. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/ready-queue-storage.test.mjs +87 -0
  665. package/templates/.agents/skills/zaip-skill-executar-fila-pronta/scripts/scheduled-ready-queue-contract.test.mjs +1 -1
  666. package/templates/.agents/skills/zaip-skill-execution/SKILL.md +11 -3
  667. package/templates/.agents/skills/zaip-skill-execution/references/autonomous-continuation.md +2 -0
  668. package/templates/.agents/skills/zaip-skill-execution/references/controlled-release-recovery.md +10 -4
  669. package/templates/.agents/skills/zaip-skill-execution/references/conversation-promotion.md +38 -0
  670. package/templates/.agents/skills/zaip-skill-execution/references/runtime-governance.md +3 -1
  671. package/templates/.agents/skills/zaip-skill-external-integrations/SKILL.md +2 -0
  672. package/templates/.agents/skills/zaip-skill-external-integrations/references/kommo.md +71 -0
  673. package/templates/.agents/skills/zaip-skill-figma-setup/SKILL.md +42 -0
  674. package/templates/.agents/skills/zaip-skill-figma-setup/agents/openai.yaml +6 -0
  675. package/templates/.agents/skills/zaip-skill-figma-setup/references/capability-contract.json +40 -0
  676. package/templates/.agents/skills/zaip-skill-figma-setup/references/figma-connection.md +60 -0
  677. package/templates/.agents/skills/zaip-skill-figma-setup/references/figma-handoff.md +71 -0
  678. package/templates/.agents/skills/zaip-skill-frontend/SKILL.md +30 -1
  679. package/templates/.agents/skills/zaip-skill-frontend-data-flows/SKILL.md +3 -0
  680. package/templates/.agents/skills/zaip-skill-github-deploy/SKILL.md +38 -5
  681. package/templates/.agents/skills/zaip-skill-github-deploy/references/authentication.md +15 -0
  682. package/templates/.agents/skills/zaip-skill-github-deploy/references/authorization.md +35 -0
  683. package/templates/.agents/skills/zaip-skill-github-deploy/references/deployment-workflow.md +21 -3
  684. package/templates/.agents/skills/zaip-skill-github-deploy/references/literal-read-sequence.md +28 -0
  685. package/templates/.agents/skills/zaip-skill-github-deploy/references/release-identity.md +4 -2
  686. package/templates/.agents/skills/zaip-skill-github-deploy/references/release-notes.md +4 -4
  687. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/application-content.mjs +82 -0
  688. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/application-content.test.mjs +184 -0
  689. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-publication-authority.mjs +63 -0
  690. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.mjs +42 -36
  691. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/consumer-release-preparation.test.mjs +4 -5
  692. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-auth.mjs +400 -0
  693. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-auth.test.mjs +192 -0
  694. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-constraints.test.mjs +159 -0
  695. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract-cli.test.mjs +32 -24
  696. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract-range.test-support.mjs +51 -0
  697. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.mjs +213 -225
  698. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-contract.test.mjs +63 -56
  699. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-idempotent-intent.test.mjs +130 -0
  700. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deploy-publication-intent.test.mjs +112 -5
  701. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-conditions.test.mjs +117 -0
  702. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-continuation.test.mjs +44 -0
  703. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request-preservation.test.mjs +58 -0
  704. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/deployment-request.mjs +291 -0
  705. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-command.mjs +11 -0
  706. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-config-paths.mjs +10 -0
  707. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-destination.mjs +21 -0
  708. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-push-target.mjs +62 -0
  709. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/git-push-target.test.mjs +78 -0
  710. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/github-deploy-contract.test.mjs +4 -2
  711. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/guarded-commits.mjs +132 -42
  712. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight-options.mjs +50 -0
  713. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight-worktree.test.mjs +52 -0
  714. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.mjs +70 -119
  715. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/preflight.test.mjs +11 -1
  716. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/project-restrictions.mjs +201 -0
  717. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/project-restrictions.test.mjs +154 -0
  718. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-authority-callbacks.test.mjs +46 -0
  719. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-conditions.mjs +193 -0
  720. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-intent.mjs +76 -0
  721. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-plan-binding.mjs +78 -0
  722. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-plan-refusal.mjs +30 -0
  723. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-project-policy.mjs +39 -0
  724. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2457VC25.mjs +2 -0
  725. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-25VZXDBX.mjs +2 -0
  726. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2JXOAZ2R.mjs +2 -0
  727. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-2OZK443Y.mjs +2 -0
  728. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3BDTL55L.mjs +2 -0
  729. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3MG57Y6I.mjs +2 -0
  730. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3MQAJ6XX.mjs +2 -0
  731. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-3TUUBJPP.mjs +2 -0
  732. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-45Z34LBQ.mjs +140 -0
  733. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-4GJE2IXL.mjs +2 -0
  734. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-4HLOIRQU.mjs +2 -0
  735. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-55PSJJ75.mjs +2 -0
  736. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-5OTFTK2Y.mjs +2 -0
  737. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7OFWNBZN.mjs +2 -0
  738. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7R2IP55E.mjs +2 -0
  739. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-7SBOEN6U.mjs +24 -0
  740. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-A35CQWF4.mjs +2 -0
  741. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-A3ZCURGS.mjs +11 -0
  742. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-BC2LX3QU.mjs +2 -0
  743. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-C2Z26E6U.mjs +2 -0
  744. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-CHJGU2RU.mjs +2 -0
  745. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D4LGE7UI.mjs +2 -0
  746. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D5OUJS46.mjs +2 -0
  747. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-D6RZM5OT.mjs +2 -0
  748. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-DOK2R3GV.mjs +2 -0
  749. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-EAHVOUKK.mjs +2 -0
  750. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-FZUNFGZV.mjs +2 -0
  751. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-GGBPBQ6D.mjs +2 -0
  752. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-HFDX2GP6.mjs +2 -0
  753. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-HZ2NRMAG.mjs +2 -0
  754. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-IJKPDKXC.mjs +2 -0
  755. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-JEOOTEUX.mjs +2 -0
  756. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-JF3E72HZ.mjs +2 -0
  757. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-KRHOCS3C.mjs +2 -0
  758. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-LG5MJS2A.mjs +2 -0
  759. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-ML4PMB7C.mjs +2 -0
  760. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-MSCWMPU5.mjs +63 -0
  761. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-NJOFXS7P.mjs +137 -0
  762. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-NORNV3B2.mjs +2 -0
  763. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PBU2HSKP.mjs +2 -0
  764. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PG6LGVVW.mjs +2 -0
  765. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-PGYGDY3J.mjs +2 -0
  766. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-QFUQW6LE.mjs +2 -0
  767. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-QI32NI7M.mjs +2 -0
  768. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-R4HD7XOO.mjs +2 -0
  769. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-REHSM3G2.mjs +2 -0
  770. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-S22YDVTM.mjs +2 -0
  771. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-S5P4ZNUQ.mjs +2 -0
  772. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-SCK2RF6V.mjs +2 -0
  773. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-SWFLYM3O.mjs +2 -0
  774. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TA7RY5MY.mjs +2 -0
  775. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TM5WG7GR.mjs +2 -0
  776. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TMVJHK37.mjs +2 -0
  777. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-TPDQAH7C.mjs +2 -0
  778. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-U2KO7ULM.mjs +2 -0
  779. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-U3ISMYJU.mjs +2 -0
  780. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-UKSDAS73.mjs +2 -0
  781. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-UNTPHSZO.mjs +2 -0
  782. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-V4MIRRUB.mjs +2 -0
  783. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WNXOXX3Z.mjs +2 -0
  784. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WQGTDRK7.mjs +2 -0
  785. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-WZJIRYT6.mjs +2 -0
  786. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XED4KYQL.mjs +2 -0
  787. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XEXCFKHI.mjs +2 -0
  788. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XJJFARY4.mjs +2 -0
  789. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-XQOFL3K3.mjs +2 -0
  790. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-YAWUSDPM.mjs +2 -0
  791. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-YEUY7TMM.mjs +2 -0
  792. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-Z5X23XXT.mjs +2 -0
  793. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-Z7H2BHYQ.mjs +2 -0
  794. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/chunks/chunk-ZOGCYGYB.mjs +2 -0
  795. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/lifecycle-records.mjs +2 -0
  796. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ar.mjs +2 -0
  797. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-az.mjs +2 -0
  798. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-be.mjs +2 -0
  799. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-bg.mjs +2 -0
  800. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-bn.mjs +2 -0
  801. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ca.mjs +2 -0
  802. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ckb.mjs +2 -0
  803. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-cs.mjs +2 -0
  804. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-da.mjs +2 -0
  805. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-de.mjs +2 -0
  806. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-el.mjs +2 -0
  807. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-en.mjs +2 -0
  808. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-eo.mjs +2 -0
  809. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-es.mjs +2 -0
  810. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fa.mjs +2 -0
  811. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fi.mjs +2 -0
  812. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fr-CA.mjs +2 -0
  813. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-fr.mjs +2 -0
  814. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-gu.mjs +2 -0
  815. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-he.mjs +2 -0
  816. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hi.mjs +2 -0
  817. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hr.mjs +2 -0
  818. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hu.mjs +2 -0
  819. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-hy.mjs +2 -0
  820. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-id.mjs +2 -0
  821. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-is.mjs +2 -0
  822. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-it.mjs +2 -0
  823. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ja.mjs +2 -0
  824. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ka.mjs +2 -0
  825. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-kh.mjs +2 -0
  826. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-km.mjs +2 -0
  827. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-kn.mjs +2 -0
  828. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ko.mjs +2 -0
  829. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-lt.mjs +2 -0
  830. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-mk.mjs +2 -0
  831. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ms.mjs +2 -0
  832. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ne.mjs +2 -0
  833. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-nl.mjs +2 -0
  834. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-nn.mjs +2 -0
  835. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-no.mjs +2 -0
  836. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ota.mjs +2 -0
  837. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pl.mjs +2 -0
  838. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ps.mjs +2 -0
  839. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pt-BR.mjs +2 -0
  840. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-pt.mjs +2 -0
  841. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ro.mjs +2 -0
  842. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ru.mjs +2 -0
  843. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sk.mjs +2 -0
  844. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sl.mjs +2 -0
  845. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-sv.mjs +2 -0
  846. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ta.mjs +2 -0
  847. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tg.mjs +2 -0
  848. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-th.mjs +2 -0
  849. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tk.mjs +2 -0
  850. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-tr.mjs +2 -0
  851. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ua.mjs +2 -0
  852. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-uk.mjs +2 -0
  853. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-ur.mjs +2 -0
  854. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-uz.mjs +2 -0
  855. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-vi.mjs +2 -0
  856. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-yo.mjs +2 -0
  857. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-zh-CN.mjs +2 -0
  858. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/locale-zh-TW.mjs +2 -0
  859. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/manifest.json +565 -0
  860. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/native-authority.mjs +2 -0
  861. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/proof.mjs +2 -0
  862. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/run-records.mjs +2 -0
  863. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/yaml-runtime.mjs +2 -0
  864. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-runtime/zod-runtime.mjs +2 -0
  865. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof-schema.mjs +2 -0
  866. package/templates/.agents/skills/zaip-skill-github-deploy/scripts/publication-proof.test.mjs +79 -0
  867. package/templates/.agents/skills/zaip-skill-github-setup/SKILL.md +14 -11
  868. package/templates/.agents/skills/zaip-skill-github-setup/references/bounded-setup.md +42 -0
  869. package/templates/.agents/skills/zaip-skill-github-setup/scripts/setup.mjs +365 -0
  870. package/templates/.agents/skills/zaip-skill-github-setup-ssh-folder/SKILL.md +13 -3
  871. package/templates/.agents/skills/zaip-skill-github-setup-ssh-folder/references/operational-procedure.md +4 -4
  872. package/templates/.agents/skills/zaip-skill-google-ads-conversions/SKILL.md +18 -0
  873. package/templates/.agents/skills/zaip-skill-google-ads-conversions/agents/openai.yaml +4 -0
  874. package/templates/.agents/skills/zaip-skill-google-ads-conversions/references/implementation.md +61 -0
  875. package/templates/.agents/skills/zaip-skill-google-analytics/SKILL.md +24 -0
  876. package/templates/.agents/skills/zaip-skill-google-analytics/agents/openai.yaml +4 -0
  877. package/templates/.agents/skills/zaip-skill-google-analytics/references/implementation.md +64 -0
  878. package/templates/.agents/skills/zaip-skill-google-tag-manager/SKILL.md +24 -0
  879. package/templates/.agents/skills/zaip-skill-google-tag-manager/agents/openai.yaml +4 -0
  880. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/implementation.md +71 -0
  881. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/operator-checklist.md +51 -0
  882. package/templates/.agents/skills/zaip-skill-google-tag-manager/references/operator-fixtures.json +93 -0
  883. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/check-runbook-links.mjs +103 -0
  884. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/google-runbooks.test.mjs +247 -0
  885. package/templates/.agents/skills/zaip-skill-google-tag-manager/scripts/operator-model.mjs +221 -0
  886. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/SKILL.md +8 -2
  887. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/autonomous-cloud-inputs.example.json +3 -3
  888. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/autonomous-runner.md +4 -2
  889. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/cloudflare-agent-setup.md +23 -0
  890. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/cloudflare-dns.md +36 -0
  891. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/guia-iniciante-hostinger-vps.md +4 -4
  892. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/operational-contract.md +3 -3
  893. package/templates/.agents/skills/zaip-skill-hostinger-cloudflare-terraform/references/vps-onboarding.md +97 -0
  894. package/templates/.agents/skills/zaip-skill-image-optimization/SKILL.md +31 -0
  895. package/templates/.agents/skills/zaip-skill-image-optimization/agents/openai.yaml +4 -0
  896. package/templates/.agents/skills/zaip-skill-image-optimization/references/adapters.md +36 -0
  897. package/templates/.agents/skills/zaip-skill-image-optimization/references/pipeline.md +35 -0
  898. package/templates/.agents/skills/zaip-skill-image-optimization/scripts/images.mjs +370 -0
  899. package/templates/.agents/skills/zaip-skill-image-optimization/scripts/images.test.mjs +385 -0
  900. package/templates/.agents/skills/zaip-skill-infisical/SKILL.md +20 -0
  901. package/templates/.agents/skills/zaip-skill-infisical/agents/openai.yaml +4 -0
  902. package/templates/.agents/skills/zaip-skill-infisical/assets/compose.yaml +62 -0
  903. package/templates/.agents/skills/zaip-skill-infisical/assets/terraform/infisical.tf +57 -0
  904. package/templates/.agents/skills/zaip-skill-infisical/references/credential-workflow.md +88 -0
  905. package/templates/.agents/skills/zaip-skill-infisical/references/first-initialization.md +51 -0
  906. package/templates/.agents/skills/zaip-skill-infisical/references/security-and-edition.md +19 -0
  907. package/templates/.agents/skills/zaip-skill-infisical/references/self-hosting.md +71 -0
  908. package/templates/.agents/skills/zaip-skill-infisical/references/terraform.md +54 -0
  909. package/templates/.agents/skills/zaip-skill-infisical/scripts/prepare-self-host.mjs +92 -0
  910. package/templates/.agents/skills/zaip-skill-infisical/scripts/prepare-self-host.test.mjs +69 -0
  911. package/templates/.agents/skills/zaip-skill-infisical/scripts/preview-terraform.mjs +70 -0
  912. package/templates/.agents/skills/zaip-skill-infisical/scripts/preview-terraform.test.mjs +51 -0
  913. package/templates/.agents/skills/zaip-skill-infisical/scripts/terraform-plan-integration.test.mjs +83 -0
  914. package/templates/.agents/skills/zaip-skill-landing-page-forms/SKILL.md +37 -0
  915. package/templates/.agents/skills/zaip-skill-landing-page-forms/agents/openai.yaml +4 -0
  916. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/accessibility.md +29 -0
  917. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/contact-then-qualification.example.json +83 -0
  918. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/contracts.md +70 -0
  919. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/examples.md +21 -0
  920. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/journey.md +30 -0
  921. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/multistep.example.json +84 -0
  922. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/single-screen.example.json +76 -0
  923. package/templates/.agents/skills/zaip-skill-landing-page-forms/references/verification.md +24 -0
  924. package/templates/.agents/skills/zaip-skill-landing-page-forms/scripts/validate-plan.mjs +306 -0
  925. package/templates/.agents/skills/zaip-skill-landing-page-forms/scripts/validate-plan.test.mjs +183 -0
  926. package/templates/.agents/skills/zaip-skill-lead-measurement/SKILL.md +32 -0
  927. package/templates/.agents/skills/zaip-skill-lead-measurement/agents/openai.yaml +4 -0
  928. package/templates/.agents/skills/zaip-skill-lead-measurement/references/architecture.md +51 -0
  929. package/templates/.agents/skills/zaip-skill-lead-measurement/references/authority.md +49 -0
  930. package/templates/.agents/skills/zaip-skill-lead-measurement/references/bant-contract.md +36 -0
  931. package/templates/.agents/skills/zaip-skill-lead-measurement/references/consent-contract.md +48 -0
  932. package/templates/.agents/skills/zaip-skill-lead-measurement/references/delivery-contract.md +65 -0
  933. package/templates/.agents/skills/zaip-skill-lead-measurement/references/event-contract.md +47 -0
  934. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/escola.json +180 -0
  935. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/moradigna-regression.json +158 -0
  936. package/templates/.agents/skills/zaip-skill-lead-measurement/references/examples/solar.json +165 -0
  937. package/templates/.agents/skills/zaip-skill-lead-measurement/references/identity-contract.md +53 -0
  938. package/templates/.agents/skills/zaip-skill-lead-measurement/references/implementation-plan.md +60 -0
  939. package/templates/.agents/skills/zaip-skill-lead-measurement/references/kommo-contract.md +83 -0
  940. package/templates/.agents/skills/zaip-skill-lead-measurement/references/meta-mapping.md +28 -0
  941. package/templates/.agents/skills/zaip-skill-lead-measurement/references/migration.md +65 -0
  942. package/templates/.agents/skills/zaip-skill-lead-measurement/references/operations.md +125 -0
  943. package/templates/.agents/skills/zaip-skill-lead-measurement/references/persistence-reference.md +65 -0
  944. package/templates/.agents/skills/zaip-skill-lead-measurement/references/questionnaire-v2.schema.json +136 -0
  945. package/templates/.agents/skills/zaip-skill-lead-measurement/references/synthetic-config.json +24 -0
  946. package/templates/.agents/skills/zaip-skill-lead-measurement/references/synthetic-event.json +19 -0
  947. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/check-questionnaire.mjs +314 -0
  948. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/check-questionnaire.test.mjs +338 -0
  949. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-cases-core.mjs +144 -0
  950. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-cases-privacy.mjs +183 -0
  951. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-fixtures.mjs +60 -0
  952. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent-rollback-support.mjs +114 -0
  953. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent.mjs +222 -0
  954. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/consent.test.mjs +294 -0
  955. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-ledger.mjs +179 -0
  956. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-case-fixtures.mjs +118 -0
  957. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-cases.mjs +6 -0
  958. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-contract-cases.mjs +218 -0
  959. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-contract.mjs +182 -0
  960. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-proof-support.mjs +104 -0
  961. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-proof.mjs +272 -0
  962. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2-state-cases.mjs +248 -0
  963. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/delivery-v2.mjs +234 -0
  964. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/lead-measurement.mjs +277 -0
  965. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/lead-measurement.test.mjs +288 -0
  966. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-ast-cases.mjs +127 -0
  967. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-test-support.mjs +25 -0
  968. package/templates/.agents/skills/zaip-skill-lead-measurement/scripts/questionnaire-validation.mjs +155 -0
  969. package/templates/.agents/skills/zaip-skill-lifecycle-closure/SKILL.md +30 -2
  970. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/empty-usage-lock.md +56 -0
  971. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/late-finalization.md +158 -0
  972. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/local-catalog-closure.md +37 -0
  973. package/templates/.agents/skills/zaip-skill-lifecycle-closure/references/post-publication-task-first.md +1 -1
  974. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/empty-lock-native.cs +113 -0
  975. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/empty-lock-native.ps1 +9 -0
  976. package/templates/.agents/skills/zaip-skill-lifecycle-closure/scripts/recover-empty-usage-lock.mjs +194 -0
  977. package/templates/.agents/skills/zaip-skill-local-credentials/SKILL.md +27 -0
  978. package/templates/.agents/skills/zaip-skill-maintenance-enter/SKILL.md +8 -6
  979. package/templates/.agents/skills/zaip-skill-maintenance-enter/scripts/maintenance.mjs +4 -4
  980. package/templates/.agents/skills/zaip-skill-maintenance-enter/scripts/maintenance.test.mjs +2 -2
  981. package/templates/.agents/skills/zaip-skill-maintenance-exit/SKILL.md +3 -3
  982. package/templates/.agents/skills/zaip-skill-marketing/SKILL.md +11 -0
  983. package/templates/.agents/skills/zaip-skill-marketing/references/search-content.md +17 -0
  984. package/templates/.agents/skills/zaip-skill-meta-conversions/SKILL.md +23 -0
  985. package/templates/.agents/skills/zaip-skill-meta-conversions/agents/openai.yaml +4 -0
  986. package/templates/.agents/skills/zaip-skill-meta-conversions/references/implementation.md +88 -0
  987. package/templates/.agents/skills/zaip-skill-meta-conversions/references/synthetic-meta.json +27 -0
  988. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/check-meta-links.mjs +88 -0
  989. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/meta-model.mjs +369 -0
  990. package/templates/.agents/skills/zaip-skill-meta-conversions/scripts/meta-model.test.mjs +394 -0
  991. package/templates/.agents/skills/zaip-skill-performance-engineering/SKILL.md +26 -1
  992. package/templates/.agents/skills/zaip-skill-performance-engineering/references/astro-islands.md +41 -0
  993. package/templates/.agents/skills/zaip-skill-performance-engineering/references/controlled-runner.md +38 -0
  994. package/templates/.agents/skills/zaip-skill-performance-engineering/references/google-diagnostics.md +46 -0
  995. package/templates/.agents/skills/zaip-skill-performance-engineering/references/report-contract.md +99 -0
  996. package/templates/.agents/skills/zaip-skill-performance-engineering/references/site-budgets.json +25 -0
  997. package/templates/.agents/skills/zaip-skill-performance-engineering/references/site-performance.md +83 -0
  998. package/templates/.agents/skills/zaip-skill-performance-engineering/references/third-party-performance.md +57 -0
  999. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/assess-reports.mjs +42 -0
  1000. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/capture-site.mjs +155 -0
  1001. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/local-preview.mjs +84 -0
  1002. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/performance-report.mjs +142 -0
  1003. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/performance-report.test.mjs +122 -0
  1004. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-fixtures.test-support.mjs +51 -0
  1005. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-import.mjs +209 -0
  1006. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/report-import.test.mjs +164 -0
  1007. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/run-lighthouse.mjs +151 -0
  1008. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/series-gate.mjs +225 -0
  1009. package/templates/.agents/skills/zaip-skill-performance-engineering/scripts/series-gate.test.mjs +143 -0
  1010. package/templates/.agents/skills/zaip-skill-qa/SKILL.md +54 -0
  1011. package/templates/.agents/skills/zaip-skill-qa/agents/openai.yaml +4 -0
  1012. package/templates/.agents/skills/zaip-skill-qa/references/host-protocol.md +125 -0
  1013. package/templates/.agents/skills/zaip-skill-qa/references/landing-page-forms.md +23 -0
  1014. package/templates/.agents/skills/zaip-skill-qa/references/proof-adapters.md +92 -0
  1015. package/templates/.agents/skills/zaip-skill-qa/references/scenarios.md +73 -0
  1016. package/templates/.agents/skills/zaip-skill-qa/references/seo-geo.md +33 -0
  1017. package/templates/.agents/skills/zaip-skill-qa/references/site-performance.md +20 -0
  1018. package/templates/.agents/skills/zaip-skill-qa/scripts/observe-dashboard-ui.mjs +152 -0
  1019. package/templates/.agents/skills/zaip-skill-qa/scripts/observe-dashboard-ui.test.mjs +65 -0
  1020. package/templates/.agents/skills/zaip-skill-qa/scripts/qa-contract.test.mjs +203 -0
  1021. package/templates/.agents/skills/zaip-skill-qa/scripts/run-behavior-tests.mjs +369 -0
  1022. package/templates/.agents/skills/zaip-skill-qa/scripts/run-behavior-tests.test.mjs +168 -0
  1023. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/SKILL.md +33 -0
  1024. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-local-telemetry.mjs +42 -62
  1025. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-native-window.mjs +115 -0
  1026. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-native-window.test.mjs +123 -0
  1027. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-optional-timing.test.mjs +34 -0
  1028. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-reviewed-pairs-fixture.mjs +130 -0
  1029. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-deduplicate-apply.mjs +106 -0
  1030. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.mjs +22 -45
  1031. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-lib.test.mjs +0 -24
  1032. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-remeasurement.mjs +73 -9
  1033. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-order.mjs +48 -0
  1034. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-pairs.mjs +255 -0
  1035. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-telemetry-reviewed-pairs.test.mjs +329 -0
  1036. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-token-snapshots.mjs +49 -0
  1037. package/templates/.agents/skills/zaip-skill-reconcile-telemetry/scripts/reconcile-token-snapshots.test.mjs +33 -0
  1038. package/templates/.agents/skills/zaip-skill-refactor-landing-page/SKILL.md +6 -0
  1039. package/templates/.agents/skills/zaip-skill-release-qualification/SKILL.md +19 -1
  1040. package/templates/.agents/skills/zaip-skill-release-qualification/references/frozen-task-recovery.md +47 -0
  1041. package/templates/.agents/skills/zaip-skill-release-qualification/references/local-catalog.md +136 -0
  1042. package/templates/.agents/skills/zaip-skill-release-qualification/references/local-preparation.md +7 -5
  1043. package/templates/.agents/skills/zaip-skill-release-qualification/references/remote-validation.md +147 -0
  1044. package/templates/.agents/skills/zaip-skill-sales-methodology/SKILL.md +1 -0
  1045. package/templates/.agents/skills/zaip-skill-sales-methodology/references/bant-discovery.md +28 -0
  1046. package/templates/.agents/skills/zaip-skill-screenshot-intake/SKILL.md +40 -0
  1047. package/templates/.agents/skills/zaip-skill-screenshot-intake/agents/openai.yaml +6 -0
  1048. package/templates/.agents/skills/zaip-skill-screenshot-intake/references/request-example.json +36 -0
  1049. package/templates/.agents/skills/zaip-skill-screenshot-intake/references/runtime-workflow.md +110 -0
  1050. package/templates/.agents/skills/zaip-skill-search-observability/SKILL.md +27 -0
  1051. package/templates/.agents/skills/zaip-skill-search-observability/agents/openai.yaml +4 -0
  1052. package/templates/.agents/skills/zaip-skill-search-observability/references/report-template.md +32 -0
  1053. package/templates/.agents/skills/zaip-skill-search-observability/references/workflow.md +56 -0
  1054. package/templates/.agents/skills/zaip-skill-search-observability/scripts/search-report.mjs +139 -0
  1055. package/templates/.agents/skills/zaip-skill-search-observability/scripts/search-report.test.mjs +72 -0
  1056. package/templates/.agents/skills/zaip-skill-setup/SKILL.md +51 -44
  1057. package/templates/.agents/skills/zaip-skill-setup/agents/openai.yaml +1 -1
  1058. package/templates/.agents/skills/zaip-skill-setup/references/basic-onboarding.md +41 -0
  1059. package/templates/.agents/skills/zaip-skill-setup/references/codex-activation.md +40 -0
  1060. package/templates/.agents/skills/zaip-skill-setup/scripts/onboarding-contract.test.mjs +41 -0
  1061. package/templates/.agents/skills/zaip-skill-spec/SKILL.md +1 -0
  1062. package/templates/.agents/skills/zaip-skill-sqlite-read-model/SKILL.md +4 -3
  1063. package/templates/.agents/skills/zaip-skill-task/SKILL.md +1 -0
  1064. package/templates/.agents/skills/zaip-skill-task/references/commit-policy.md +1 -1
  1065. package/templates/.agents/skills/zaip-skill-testing-strategy/SKILL.md +18 -0
  1066. package/templates/.agents/skills/zaip-skill-testing-strategy/references/frontend-impact.md +81 -0
  1067. package/templates/.agents/skills/zaip-skill-testing-strategy/references/verification-adoption.md +31 -0
  1068. package/templates/.agents/skills/zaip-skill-testing-strategy/scripts/validation-plan.mjs +168 -0
  1069. package/templates/.agents/skills/zaip-skill-testing-strategy/scripts/validation-plan.test.mjs +146 -0
  1070. package/templates/.agents/skills/zaip-skill-tool-setup/scripts/tool-state.mjs +1 -1
  1071. package/templates/.agents/skills/zaip-skill-use-connectors/SKILL.md +8 -0
  1072. package/templates/.agents/skills/zaip-skill-use-connectors/scripts/select-connector.mjs +73 -0
  1073. package/templates/.agents/skills/zaip-skill-use-connectors/scripts/select-connector.test.mjs +85 -0
  1074. package/templates/.agents/skills/zaip-skill-visual-report/SKILL.md +41 -0
  1075. package/templates/.agents/skills/zaip-skill-visual-report/agents/openai.yaml +6 -0
  1076. package/templates/.agents/skills/zaip-skill-visual-report/references/fidelity-proof.md +56 -0
  1077. package/templates/.agents/skills/zaip-skill-visual-report/references/intake-state.md +64 -0
  1078. package/templates/.agents/skills/zaip-skill-visual-report/references/source-contract.md +79 -0
  1079. package/templates/.agents/skills/zaip-skill-visual-report/references/synthesis-template.md +67 -0
  1080. package/templates/.agents/skills/zaip-skill-visual-report/references/visual-contract.json +40 -0
  1081. package/templates/.agents/skills/zaip-skill-website-readiness/SKILL.md +73 -17
  1082. package/templates/.agents/skills/zaip-skill-website-readiness/agents/openai.yaml +2 -2
  1083. package/templates/.agents/skills/zaip-skill-website-readiness/references/capability-checklist.md +8 -4
  1084. package/templates/.agents/skills/zaip-skill-website-readiness/references/change-discovery.md +22 -0
  1085. package/templates/.agents/skills/zaip-skill-website-readiness/references/content-and-agents.md +25 -0
  1086. package/templates/.agents/skills/zaip-skill-website-readiness/references/crawler-policy.md +35 -0
  1087. package/templates/.agents/skills/zaip-skill-website-readiness/references/schema-matrix.md +23 -0
  1088. package/templates/.agents/skills/zaip-skill-website-readiness/references/search-evidence.md +36 -0
  1089. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-quality.example.json +14 -0
  1090. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-quality.md +109 -0
  1091. package/templates/.agents/skills/zaip-skill-website-readiness/references/site-validation.md +60 -0
  1092. package/templates/.agents/skills/zaip-skill-website-readiness/references/sources.md +37 -0
  1093. package/templates/.agents/skills/zaip-skill-website-readiness/references/visual-preservation.md +84 -0
  1094. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/agent-content.mjs +116 -0
  1095. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/agent-content.test.mjs +83 -0
  1096. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/audit-site.mjs +136 -0
  1097. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/html-facts.mjs +56 -0
  1098. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/index-directives.mjs +29 -0
  1099. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/quality-plan.mjs +62 -0
  1100. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/robots-policy.mjs +63 -0
  1101. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/search-policy.test.mjs +183 -0
  1102. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/site-audit.mjs +243 -0
  1103. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/site-audit.test.mjs +287 -0
  1104. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/sitemap-policy.mjs +111 -0
  1105. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/verify-site-design.mjs +130 -0
  1106. package/templates/.agents/skills/zaip-skill-website-readiness/scripts/visual-preservation.mjs +160 -0
  1107. package/templates/.agents/skills/zaip-skill-worktree-recovery/SKILL.md +70 -0
  1108. package/templates/.agents/skills/zaip-skill-worktree-recovery/agents/openai.yaml +4 -0
  1109. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/complete-preservation.md +70 -0
  1110. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/default-policy.md +53 -0
  1111. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/lifecycle-roots.md +106 -0
  1112. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/metadata-overlay.md +45 -0
  1113. package/templates/.agents/skills/zaip-skill-worktree-recovery/references/procedure.md +49 -0
  1114. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/complete-preservation.mjs +252 -0
  1115. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-local-archive.mjs +162 -0
  1116. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-local-git.mjs +111 -0
  1117. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-acl.ps1 +37 -0
  1118. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-activate.ps1 +66 -0
  1119. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-alias.mjs +202 -0
  1120. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-batches.mjs +88 -0
  1121. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-copy-session.mjs +84 -0
  1122. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-cutover.mjs +350 -0
  1123. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-files.mjs +109 -0
  1124. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-generation-posix.mjs +194 -0
  1125. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-generation.mjs +173 -0
  1126. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-journal.mjs +88 -0
  1127. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-layout.mjs +102 -0
  1128. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-lock.mjs +106 -0
  1129. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-migration.mjs +234 -0
  1130. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-observation-tail.mjs +148 -0
  1131. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-permissions.mjs +52 -0
  1132. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-plan.mjs +143 -0
  1133. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-preparation.mjs +110 -0
  1134. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-process-start.ps1 +7 -0
  1135. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-quiescence.ps1 +11 -0
  1136. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-receipt-lease.mjs +67 -0
  1137. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-reuse.mjs +68 -0
  1138. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/durable-state-telemetry-version.mjs +187 -0
  1139. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/git-process.mjs +85 -0
  1140. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/metadata-overlay.mjs +302 -0
  1141. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/metadata-secrets.mjs +44 -0
  1142. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/migrate-durable-state.mjs +49 -0
  1143. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/recovery.mjs +247 -0
  1144. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/retention-marker.mjs +44 -0
  1145. package/templates/.agents/skills/zaip-skill-worktree-recovery/scripts/worktree-proof.mjs +148 -0
  1146. package/templates/.agents/tools/api/kommo-crm/README.md +13 -9
  1147. package/templates/.agents/tools/cloud-onboarding-architecture.mjs +273 -0
  1148. package/templates/.agents/tools/cloud-onboarding-bootstrap.test.mjs +176 -0
  1149. package/templates/.agents/tools/cloud-onboarding-configure.mjs +146 -0
  1150. package/templates/.agents/tools/cloud-onboarding-credentials.mjs +279 -0
  1151. package/templates/.agents/tools/cloud-onboarding-files.mjs +190 -0
  1152. package/templates/.agents/tools/cloud-onboarding-files.test.mjs +72 -0
  1153. package/templates/.agents/tools/cloud-onboarding-generation.mjs +161 -0
  1154. package/templates/.agents/tools/cloud-onboarding-generation.test.mjs +129 -0
  1155. package/templates/.agents/tools/cloud-onboarding-policy.mjs +196 -0
  1156. package/templates/.agents/tools/cloud-onboarding-provider.mjs +228 -0
  1157. package/templates/.agents/tools/cloud-onboarding-provider.test.mjs +144 -0
  1158. package/templates/.agents/tools/cloud-onboarding-recovery.test.mjs +306 -0
  1159. package/templates/.agents/tools/cloud-onboarding-ssh.mjs +223 -0
  1160. package/templates/.agents/tools/cloud-onboarding-terraform.mjs +80 -0
  1161. package/templates/.agents/tools/cloud-onboarding-test-fixture.mjs +184 -0
  1162. package/templates/.agents/tools/cloud-onboarding-test-fixtures.mjs +117 -0
  1163. package/templates/.agents/tools/cloud-onboarding.mjs +196 -0
  1164. package/templates/.agents/tools/cloud-onboarding.ssh.integration.test.mjs +391 -0
  1165. package/templates/.agents/tools/cloud-onboarding.test.mjs +237 -0
  1166. package/templates/.agents/tools/cloud-runner-arguments.mjs +37 -0
  1167. package/templates/.agents/tools/cloud-runner-dns.mjs +234 -11
  1168. package/templates/.agents/tools/cloud-runner-dns.test.mjs +256 -0
  1169. package/templates/.agents/tools/cloud-runner-process.mjs +61 -0
  1170. package/templates/.agents/tools/cloud-runner-process.test.mjs +43 -0
  1171. package/templates/.agents/tools/cloud-runner.integration.test.mjs +19 -3
  1172. package/templates/.agents/tools/cloud-runner.mjs +49 -169
  1173. package/templates/.agents/tools/cloud-runner.test.mjs +7 -42
  1174. package/templates/.agents/tools/historical-local-archive.mjs +89 -0
  1175. package/templates/.agents/tools/infisical-bootstrap-windows.test.mjs +12 -0
  1176. package/templates/.agents/tools/infisical-bootstrap.mjs +240 -0
  1177. package/templates/.agents/tools/infisical-bootstrap.test-support.mjs +39 -0
  1178. package/templates/.agents/tools/infisical-bootstrap.test.mjs +193 -0
  1179. package/templates/.agents/tools/infisical-policy.mjs +134 -0
  1180. package/templates/.agents/tools/infisical-runner.mjs +349 -0
  1181. package/templates/.agents/tools/infisical-runner.test.mjs +266 -0
  1182. package/templates/.agents/tools/mcp/infra/cloudflare/README.md +3 -17
  1183. package/templates/.agents/tools/mcp/infra/cloudflare/manifest.yaml +6 -10
  1184. package/templates/.agents/tools/repository-cloud-boundary.test.mjs +41 -0
  1185. package/templates/.agents/tools/repository-policy.mjs +257 -0
  1186. package/templates/.agents/tools/repository-profile.mjs +116 -0
  1187. package/templates/.agents/tools/repository-profile.test.mjs +67 -0
  1188. package/templates/.agents/tools/secret-inventory.mjs +150 -0
  1189. package/templates/.agents/tools/secret-inventory.test.mjs +60 -0
  1190. package/templates/.agents/tools/visual-intake/cli.mjs +72 -0
  1191. package/templates/.agents/tools/visual-intake/fs.mjs +137 -0
  1192. package/templates/.agents/tools/visual-intake/lock.mjs +98 -0
  1193. package/templates/.agents/tools/visual-intake/report.mjs +69 -0
  1194. package/templates/.agents/tools/visual-intake/runtime.mjs +330 -0
  1195. package/templates/.agents/tools/visual-intake/schema.mjs +235 -0
  1196. package/templates/.agents/tools/visual-intake/transaction.mjs +206 -0
  1197. package/templates/.agents/tools/visual-url/browser-cdp.mjs +167 -0
  1198. package/templates/.agents/tools/visual-url/browser-page-evidence.mjs +111 -0
  1199. package/templates/.agents/tools/visual-url/browser-proxy.mjs +194 -0
  1200. package/templates/.agents/tools/visual-url/browser-rendered-sample.mjs +312 -0
  1201. package/templates/.agents/tools/visual-url/browser-source.mjs +398 -0
  1202. package/templates/.agents/tools/visual-url/capture.mjs +119 -0
  1203. package/templates/.agents/tools/visual-url/captured-visual.mjs +301 -0
  1204. package/templates/.agents/tools/visual-url/cli.mjs +29 -0
  1205. package/templates/.agents/tools/visual-url/color-candidates.mjs +161 -0
  1206. package/templates/.agents/tools/visual-url/colors.mjs +98 -0
  1207. package/templates/.agents/tools/visual-url/contrast.mjs +40 -0
  1208. package/templates/.agents/tools/visual-url/css-sample.mjs +109 -0
  1209. package/templates/.agents/tools/visual-url/design-lint.mjs +83 -0
  1210. package/templates/.agents/tools/visual-url/design-score.mjs +217 -0
  1211. package/templates/.agents/tools/visual-url/failure.mjs +56 -0
  1212. package/templates/.agents/tools/visual-url/files.mjs +176 -0
  1213. package/templates/.agents/tools/visual-url/generated-tokens.mjs +369 -0
  1214. package/templates/.agents/tools/visual-url/handoff.mjs +85 -0
  1215. package/templates/.agents/tools/visual-url/icon.mjs +110 -0
  1216. package/templates/.agents/tools/visual-url/local-source.mjs +63 -0
  1217. package/templates/.agents/tools/visual-url/parser.mjs +288 -0
  1218. package/templates/.agents/tools/visual-url/policy.mjs +201 -0
  1219. package/templates/.agents/tools/visual-url/proposal-markdown.mjs +39 -0
  1220. package/templates/.agents/tools/visual-url/proposal.mjs +388 -0
  1221. package/templates/.agents/tools/visual-url/report.mjs +305 -0
  1222. package/templates/.agents/tools/visual-url/runtime.mjs +218 -0
  1223. package/templates/.agents/tools/visual-url/safe-visual-value.mjs +49 -0
  1224. package/templates/.agents/tools/visual-url/transport.mjs +187 -0
  1225. package/templates/.agents/tools/visual-url/visual-model.mjs +393 -0
  1226. package/templates/.agents/zaip-aios/VERSION +1 -1
  1227. package/templates/.agents/zaip-aios/guides/06-execucao.md +1 -1
  1228. package/templates/.agents/zaip-aios/guides/16-lifecycle-e-reconciliacao.md +1 -1
  1229. package/templates/.agents/zaip-aios/guides/19-assurance-e-autonomia.md +2 -2
  1230. package/templates/.agents/zaip-aios/guides/20-instalacao-detalhada.md +60 -18
  1231. package/templates/.agents/zaip-aios/guides/26-qualidade-e-release.md +8 -0
  1232. package/templates/.agents/zaip-aios/guides/27-telemetria-git-native.md +2 -2
  1233. package/templates/.agents/zaip-aios/guides/28-lifecycle-completo.md +2 -2
  1234. package/templates/infra/terraform/README.md +2 -0
  1235. package/templates/infra/terraform/infisical.tf +57 -0
  1236. package/templates/infra/terraform/terraform.tfvars.example +5 -0
  1237. package/templates/infra/terraform/variables.tf +1 -1
  1238. package/templates/scripts/validate-cloud-hostinger-contract.mjs +4 -1
  1239. package/templates/template-manifest.json +3848 -1119
  1240. package/templates/.agents/architecture/hostinger-cloudflare-terraform.md +0 -90
  1241. package/templates/.agents/dashboard/apps/frontend/dist/assets/CostCalculationGuidePage-uR-asJv_.js +0 -1
  1242. package/templates/.agents/dashboard/apps/frontend/dist/assets/ProjectSettingsPage-1gE8RHel.js +0 -3
  1243. package/templates/.agents/dashboard/apps/frontend/dist/assets/cost-monitor-B0Jwz_rk.js +0 -68
  1244. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DZhppOIk.css +0 -1
  1245. package/templates/.agents/dashboard/apps/frontend/dist/assets/index-DtLrd13g.js +0 -2
  1246. package/templates/.agents/design/apps/catalog/dist/storybook/assets/Components.stories-kxWwSKin.js +0 -146
  1247. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFilters.stories-Chm_dXV7.js +0 -9
  1248. package/templates/.agents/design/apps/catalog/dist/storybook/assets/DashboardFiltersSpecimen-9CaCbGIZ.js +0 -1
  1249. package/templates/.agents/design/apps/catalog/dist/storybook/assets/WorkspaceStatusSpecimen-DQnSS6s9.js +0 -1
  1250. package/templates/.agents/design/apps/catalog/dist/storybook/assets/formatter-L2YTDE3Q-Do9sjqiW.js +0 -1
  1251. package/templates/.agents/design/apps/catalog/dist/storybook/assets/iframe-0W0Gj_Gs.css +0 -1
  1252. package/templates/.agents/design/apps/catalog/dist/storybook/assets/react-NrUxok8K.js +0 -1
@@ -0,0 +1,5 @@
1
+ import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-BgEb-d5o.js";import{c as r,n as i,p as a,t as o}from"./Primitives-n1UqmNvo.js";import{t as s}from"./jsx-runtime-f3rHp9ZU.js";function c(e,t=2){return{summary:{...e,revision:t},revision:t,revision_count:2,revisions:[{revision:2,status:e.status,updated_at:`2026-10-11T12:00:00Z`},{revision:1,status:`partial`,updated_at:`2026-10-10T12:00:00Z`}],tokens:{candidates:[{kind:`inferred`,value:`#A855F7`,source:`synthetic CSS`}],components:[{name:`Card sintético`,evidence:`<img src=x onerror=alert(1)>`}]},designMd:`# Proposta sintética
2
+
3
+ <script>alert('texto, nunca HTML')<\/script>
4
+
5
+ Sem promoção central.`,error:e.status===`failed`?`Extração sintética interrompida; revisão preservada.`:null}}var l,u,d=e((()=>{l=[`partial`,`ready`,`failed`].map((e,t)=>({id:`catalog-synthetic-${e}`,name:[`Referência parcial`,`Referência pronta`,`Referência com falha`][t],slug:`synthetic-${e}`,host:`example.test`,url:`https://example.test/synthetic`,status:e,design_score:t===2?null:{grade:t===0?`B`:`A`,overall:t===0?81:92},revision:2,theme:null,archetype:null,designMdUrl:`synthetic-design-text`,visual:{inferred_swatches:[{kind:`inferred`,value:`#A855F7`},{kind:`inferred`,value:`#F59E0B`}]},capabilities:{screenshot_verified:!1},provenance:{source:`synthetic-fixture`,observation:`CSS declarations only`},uncertainty:[`Tema desconhecido`,`Qualidade não avaliada`,`Fidelidade não verificada`]})),u=[{state:`idle`,name:`Validação do formulário`,log:`Nenhuma operação iniciada.`},{state:`queued`,name:`Na fila`,log:`Operação sintética aceita; aguardando execução.`},{state:`running`,name:`Em execução`,log:`Coletando declarações CSS sintéticas.`},{state:`completed`,name:`Concluído`,log:`Proposta sintética salva. Fidelidade não avaliada.`},{state:`failed`,name:`Falhou`,log:`Falha sintética. Nenhuma nova proposta disponível.`},{state:`interrupted`,name:`Acompanhamento interrompido`,log:`Operação pode continuar; retome o acompanhamento, sem reenviar.`}]}));function f(e){return typeof e==`string`&&C.test(e.trim())?e.trim():null}function p(e,t=256,n=!1){if(typeof e!=`string`||!w.test(e.trim()))return null;let r=Number.parseFloat(e),i=/rem|em/.test(e)?t/16:t;return!Number.isFinite(r)||r>i||r<(n?-i:0)||r!==0&&!/px|rem|em/.test(e)?null:e.trim()}function m(e){if(typeof e!=`string`)return null;let t=e.trim().split(/\s+/);return t.length<=4&&t.every(e=>p(e,96))?t.join(` `):null}function h(e){if(typeof e!=`string`||e.length>256)return null;let t=e.split(`,`).map(e=>e.trim().replace(/^(['"])(.*)\1$/,`$2`));return t.length>12||t.some(e=>!/^-?[\p{L}\p{N}][\p{L}\p{N} -]{0,63}$/u.test(e))?null:t.map(e=>/^(serif|sans-serif|monospace|system-ui|ui-serif|ui-sans-serif|ui-monospace)$/i.test(e)?e:`"${e}"`).join(`, `)}function g(e){if(e===`none`)return e;if(typeof e!=`string`||e.length>320)return null;let t=e.split(`,`);if(t.length>3)return null;for(let e of t){let t=e.trim().split(/\s+/).filter(e=>e!==`inset`);if(t.length<3||t.length>5||!f(t.at(-1))||!t.slice(0,-1).every((e,t)=>p(e,128,t!==2)))return null}return e.trim()}function _(e,t){return e?.kind===`inferred`?t(e.value):null}function v(e,t,n){return typeof e==`string`&&/^(?:\d+(?:\.\d+)?|\.\d+)$/.test(e)&&Number(e)>=t&&Number(e)<=n?e:null}function y(e){let t=e.length===4?[...e.slice(1)].map(e=>e+e).join(``):e.slice(1,7),n=[0,2,4].map(e=>Number.parseInt(t.slice(e,e+2),16)/255).map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4);return n[0]*.2126+n[1]*.7152+n[2]*.0722}function b(e){let t=e?.visual_model??e?.summary?.visual_model;if(t?.schema_version!==1||t.method!==`declared-semantic-v1`||t.status!==`inferred`)return{available:!1,unknown:t?.unknown??[`Modelo visual normalizado indisponível nesta revisão.`],raw:t};let n=[],r={};for(let[e,i]of Object.entries(T))r[e]=_(t.tokens?.colors?.[e],f),r[e]||(r[e]=i,n.push(e));n.includes(`foreground`)&&(r.foreground=y(r.background)>.3?`#111111`:`#ffffff`);let i=y(r.background)<.25;n.includes(`primary`)&&(r.primary=r.foreground),n.includes(`accent`)&&(r.accent=r.primary),n.includes(`card`)&&(r.card=r.background),n.includes(`secondary`)&&(r.secondary=i?`#262626`:`#f5f5f5`),n.includes(`border`)&&(r.border=i?`#404040`:`#d4d4d4`),n.includes(`card_foreground`)&&(r.card_foreground=y(r.card)>.3?`#111111`:`#ffffff`),n.includes(`muted`)&&(r.muted=r.card_foreground),n.includes(`primary_foreground`)&&(r.primary_foreground=y(r.primary)>.3?`#111111`:`#ffffff`);let a=t.tokens?.typography??{},o=_(a.body_family,h)??`system-ui, sans-serif`,s=_(a.heading_family,h)??o,c=_(a.size,e=>p(e,32)),l=c?Number.parseFloat(c)*(/rem|em/.test(c)?16:1):0,u=l>=12?c:`16px`;l<12&&n.push(`size (mínimo legível do shell)`);let d=_(a.weight,e=>v(e,100,900))??`400`,b=_(a.line_height,e=>v(e,1,2.5)??p(e,64)),x=b?/px|rem|em/.test(b)?Number.parseFloat(b)*(/rem|em/.test(b)?16:1)/(l>=12?l:16):Number(b):0,S=x>=1&&x<=2.5?String(x):`1.5`;(x<1||x>2.5)&&n.push(`line_height (mínimo legível do shell)`);let C=_(a.letter_spacing,e=>p(e,4,!0))??`0`;for(let e of[`body_family`,`heading_family`,`size`,`weight`,`line_height`,`letter_spacing`])a[e]||n.push(e);let w=(e,n)=>(t.tokens?.[e]??[]).slice(0,32).map(e=>({...e,applied:_(e,n)})).filter(e=>e.applied),E=w(`spacing`,m),D=w(`radii`,e=>p(e,9999)),O=w(`shadows`,g),k=t.theme?.basis===`browser-computed-style`,A=D.find(e=>Number.parseFloat(e.applied)*(/rem|em/.test(e.applied)?16:1)<=32)?.applied??`16px`,j=_(t.components?.find(e=>e.selector===`button-primary`)?.tokens?.radius,e=>p(e,9999)),M=t.components?.find(e=>e.selector===`button-primary`)?.tokens,N={};for(let[e,t]of Object.entries(r))N[`--ds-${e.replaceAll(`_`,`-`)}`]=t;return Object.assign(N,{"--ds-secondary-foreground":y(r.secondary)>.3?`#111111`:`#ffffff`,"--ds-font":`${o}, system-ui, sans-serif`,"--ds-heading-font":`${s}, system-ui, sans-serif`,"--ds-font-size":u,"--ds-font-weight":d,"--ds-line":S,"--ds-track":C,"--ds-radius":A,"--ds-control-radius":j??A,"--ds-control-font":_(M?.font_family,h)??o,"--ds-control-weight":_(M?.font_weight,e=>v(e,100,900))??d,"--ds-space":E.find(e=>/padding|gap/.test(e.property))?.applied??`16px`,"--ds-shadow":k?`none`:O[0]?.applied??`none`}),{available:!0,raw:t,colors:r,properties:N,spacing:E,radii:D,shadows:O,family:o,heading:s,fallback:n,unknown:t.unknown??[],dark:y(r.background)<.25}}function x(e,t){let n=b(t);for(let t of[`background`,`foreground`,`primary`,`primary-foreground`,`secondary`,`secondary-foreground`,`muted`,`accent`,`border`,`card`,`card-foreground`,`font`,`heading-font`,`font-size`,`font-weight`,`line`,`track`,`radius`,`control-radius`,`control-font`,`control-weight`,`space`,`shadow`])e.style.removeProperty(`--ds-${t}`);if(e.classList.toggle(`ds-applied`,n.available),n.available){for(let[t,r]of Object.entries(n.properties))e.style.setProperty(t,r);e.dataset.dsTheme=n.dark?`dark`:`light`}else delete e.dataset.dsTheme;return n}function S(e){let t=e?.tokens??{},n={};for(let[e,r,i]of[[`background`,`backgroundColor`,f],[`foreground`,`color`,f],[`border`,`borderColor`,f],[`radius`,`borderRadius`,e=>p(e,9999)],[`padding`,`padding`,m],[`font_family`,`fontFamily`,h],[`font_size`,`fontSize`,e=>p(e,64)],[`font_weight`,`fontWeight`,e=>v(e,100,900)],[`shadow`,`boxShadow`,g]]){let a=_(t[e],i);a&&(n[r]=a)}return n}var C,w,T,E=e((()=>{C=/^#(?:[a-f\d]{3}|[a-f\d]{6}|[a-f\d]{8})$/i,w=/^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|rem|em)?$/,T={background:`#ffffff`,foreground:`#111827`,primary:`#171717`,primary_foreground:`#ffffff`,secondary:`#f5f5f5`,muted:`#525252`,accent:`#171717`,border:`#d4d4d4`,card:`#ffffff`,card_foreground:`#111827`}}));function D(e){return te[e]??`Desconhecido`}function O(e,t=`Desconhecido`){return e==null?t:String(e)}function k(e){return(e?.visual?.inferred_swatches??[]).slice(0,12).filter(e=>e.kind===`inferred`&&/^#(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i.test(e.value))}function A(e){return[...new Map([...Object.values(e.visual_model?.tokens?.colors??{}),...k(e)].filter(e=>e?.kind===`inferred`&&f(e.value)&&!/^#[\da-f]{6}00$/i.test(e.value)).map(e=>[e.value,e])).values()].slice(0,8)}function j(e,t=``,n=null){if(!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,95}$/.test(e))throw Error(`Identificador de output inválido`);if(![``,`design`,`proposal`,`screenshot`,`favicon`,`report`,`report-markdown`].includes(t))throw Error(`Artefato inválido`);if(n!=null&&(!Number.isInteger(n)||n<1))throw Error(`Revisão inválida`);return`/api/extracts/${encodeURIComponent(e)}${t?`/${t}`:``}${n==null?``:`?revision=${n}`}`}function M(e){return e?`CSS amostrado: ${e.sampled} de ${e.total} declarações; ${e.truncated} omitidas.`:`Amostragem não registrada nesta revisão.`}function N(e){return e?.status===`failed`?`Coleta falhou · sem relatório medido`:e?.status===`collecting`?`Aguardando conclusão da extração`:e?.score_kind===`extraction-evidence-coverage`&&Number.isFinite(e.score)?`Cobertura da extração: ${e.score}/100`:`Cobertura não registrada nesta revisão`}function ee(e,t=null){return j(e,``,t),`/viewer/?id=${encodeURIComponent(e)}${t==null?``:`&revision=${t}`}`}var te,P=e((()=>{E(),te={collecting:`Coletando`,partial:`Coleta concluída`,ready:`Coleta concluída`,failed:`Falha na coleta`,queued:`Na fila`,running:`Em execução`,completed:`Relatório gerado`}}));function ne(e){if(!/^#(?:[\da-f]{3}|[\da-f]{6}|[\da-f]{8})$/i.test(e??``))return null;let t=e.slice(1);if(t.length===3&&(t=[...t].map(e=>e.repeat(2)).join(``)),t.length===8&&Number.parseInt(t.slice(6),16)<128)return null;let[n,r,i]=[0,2,4].map(e=>Number.parseInt(t.slice(e,e+2),16)/255),a=Math.max(n,r,i),o=Math.min(n,r,i),s=a-o;if(a<=.16)return`black`;if(s/a<=.14)return o>=.86?`white`:`gray`;let c=s===0?0:a===n?(r-i)/s%6:a===r?(i-n)/s+2:(n-r)/s+4;return c=(c*60+360)%360,c>=15&&c<50&&a<.65?`brown`:c<15||c>=345?`red`:c<45?`orange`:c<70?`yellow`:c<165?`green`:c<195?`cyan`:c<245?`blue`:c<290?`purple`:`pink`}function re(e,t,n=``,r=[]){if(![e.name,e.host,e.url,e.id,e.design_code,e.design_code?`#${e.design_code}`:null].filter(Boolean).join(` `).toLocaleLowerCase(`pt-BR`).includes(t.trim().toLocaleLowerCase(`pt-BR`)))return!1;if(n){let t=b(e);if(!t.available||(t.dark?`dark`:`light`)!==n)return!1}return!r.length||A(e).some(e=>r.includes(ne(e.value)))}function ie(e,t){let n=e.querySelector(`summary`),r=e.querySelector(`fieldset`),i=[],a=()=>i.filter(e=>e.checked).map(e=>e.value),o=()=>{let e=a();n.textContent=e.length===1?ae.find(([t])=>t===e[0])[1]:e.length?`${e.length} cores`:`Todas as cores`,t()};for(let[e,t,n]of ae){let a=document.createElement(`label`),s=document.createElement(`input`),c=document.createElement(`span`);s.type=`checkbox`,s.value=e,s.name=`paletteColor`,c.className=`filter-color-dot`,c.style.backgroundColor=n,c.setAttribute(`aria-hidden`,`true`),a.append(s,c,t),r.append(a),i.push(s),s.addEventListener(`change`,o)}let s=()=>{for(let e of i)e.checked=!1;o()};e.querySelector(`button`).addEventListener(`click`,s);let c=t=>{t.key===`Escape`&&(e.open=!1,n.focus())},l=t=>{e.contains(t.target)||(e.open=!1)};return e.addEventListener(`keydown`,c),document.addEventListener(`click`,l),{selected:a,clear:s,dispose(){for(let e of i)e.removeEventListener(`change`,o);e.querySelector(`button`).removeEventListener(`click`,s),e.removeEventListener(`keydown`,c),document.removeEventListener(`click`,l)}}}var ae,oe=e((()=>{P(),E(),ae=[[`red`,`Vermelho`,`#ef4444`],[`orange`,`Laranja`,`#f97316`],[`yellow`,`Amarelo`,`#facc15`],[`green`,`Verde`,`#22c55e`],[`cyan`,`Ciano`,`#22d3ee`],[`blue`,`Azul`,`#3b82f6`],[`purple`,`Roxo`,`#8b5cf6`],[`pink`,`Rosa`,`#ec4899`],[`brown`,`Marrom`,`#92400e`],[`black`,`Preto`,`#111111`],[`gray`,`Cinza`,`#9ca3af`],[`white`,`Branco`,`#ffffff`]]}));function F(e,t=``,n=null){let r=document.createElement(e);return t&&(r.className=t),n!=null&&(r.textContent=String(n)),r}function I(e,t,n=!1){let r=F(`a`,`action${n?` primary`:``}`,e);return r.href=t,r}function L(e,t,n=``){let r=F(`button`,n,e);return r.type=`button`,r.addEventListener(`click`,t),r}function se(e){return F(`span`,`badge state-${Object.hasOwn({collecting:1,partial:1,ready:1,failed:1,queued:1,running:1,completed:1},e)?e:`unknown`}`,D(e))}function R(e,t){let n=F(`section`,`empty-state`);return n.append(F(`h2`,``,e),F(`p`,`muted`,t)),n}function ce(e,t=!1){let n=F(`div`,t?`color-grid`:`swatches`);for(let r of k(e)){let e=F(t?`div`:`span`,t?`color-candidate`:`swatch`),i=t?F(`span`,`color-dot`):e;i.style.backgroundColor=r.value,e.title=`${r.value} · inferido de declaração CSS`,t?e.append(i,F(`code`,``,r.value),F(`span`,`meta`,`Inferido · CSS`)):e.setAttribute(`aria-label`,e.title),n.append(e)}return n.childNodes.length||n.append(F(`p`,`muted`,`Cores desconhecidas`)),n}function z(e,t=``){let n=F(`span`,`site-icon ${t}`),r=String(e.name??e.host??`DS`).trim().slice(0,2).toUpperCase(),i=()=>{n.dataset.siteIcon=`fallback`,n.replaceChildren(F(`span`,`site-initials`,r||`DS`))};if(i(),e.visual?.faviconStatus===`verified`&&e.visual.faviconUrl){let t=F(`img`);t.src=j(e.id,`favicon`,e.revision),t.alt=``,t.loading=`lazy`,t.addEventListener(`error`,i),n.dataset.siteIcon=`verified`,n.replaceChildren(t)}return n}function le(e,t=``){let n=e.design_score,r=F(`span`,`card-design-score ${t}`.trim());return r.setAttribute(`aria-label`,Number.isFinite(n?.overall)?`Design Score: ${n.grade} ${n.overall} de 100`:`Design Score indisponível`),r.append(F(`span`,`meta`,`Design Score`),F(`strong`,``,Number.isFinite(n?.overall)?`${n.grade} ${n.overall}`:`—`)),r}function ue(e){let t=F(`article`,`catalog-card`),n=x(t,e),r=F(`div`,`card-header`),i=F(`h2`,``,O(e.name));i.title=O(e.name),r.append(z(e),i);let a=F(`div`,`card-topline`);a.append(de(e),le(e));let o=F(`div`,`tags`);if(o.append(se(e.status)),n.available){let e=F(`span`,`badge theme-badge`,n.dark?`dark`:`light`);e.title=`Tema aplicado ao card a partir dos tokens disponíveis`,o.append(e)}let s=F(`div`,`card-actions`),c=A(e);return s.append(I(`Detalhes`,ee(e.id),!0),I(`Preview`,`/viewer/preview.html?id=${encodeURIComponent(e.id)}&revision=${e.revision}`)),t.append(a,r,F(`p`,`meta card-domain`,e.host),o,ce({...e,visual:{...e.visual,inferred_swatches:c}}),s),t}function de(e){let t=F(`span`,`design-code`,e.design_code?`#${e.design_code}`:``);return t.title=`Código do design system: ${e.design_code??`indisponível`}`,t.setAttribute(`aria-label`,t.title),t}function fe(e,t,n){let r=I(``,ee(e.id));r.className=`output-item`,x(r,e),t&&r.setAttribute(`aria-current`,`page`);let i=z(e,`output-icon`),a=F(`span`,`output-copy`);return a.append(F(`strong`,``,e.name),F(`span`,`meta`,`${e.design_code?`#${e.design_code} · `:``}${e.host} · r${e.revision}`),se(e.status)),r.append(le(e,`output-design-score`),i,a),r.addEventListener(`click`,t=>{t.button===0&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&!t.altKey&&(t.preventDefault(),n(e.id))}),r}function B(e,t=``){let n=F(`section`,`panel ${t}`);return n.append(F(`h3`,``,e)),n}var V=e((()=>{P(),E()}));async function H(e,t={}){if(!e.startsWith(`/api/`)||e.startsWith(`//`)||e.includes(`\\`))throw Error(`Somente API local é permitida`);let n=await fetch(e,{credentials:`same-origin`,cache:`no-store`,...t}),r=await n.json();if(!n.ok)throw new ye(r.error||`Erro HTTP ${n.status}`,n.status);return r}async function pe(){return U=await H(`/api/session`),U.capabilities}function me(e,t=null,n=0,r){return H(`${j(e,``,t)}${t==null?`?`:`&`}history_offset=${n}&history_limit=20`,{signal:r})}function he(e,t){if(!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,95}$/.test(e))throw Error(`Job inválido`);return H(`/api/jobs/${encodeURIComponent(e)}`,{signal:t})}function ge(e,t,n){if(!U?.nonce)throw Error(`Reconecte a sessão local antes de gerar`);return H(e,{method:t,headers:{"Content-Type":`application/json`,"X-Maker-Nonce":U.nonce},body:JSON.stringify(n)})}function _e(e,t){if(t!=null){if(![`http`,`browser`].includes(t))throw Error(`Modo de extração inválido`);e.mode=t}}function ve(e,t,n,r){let i={expected_revision:t};return n&&(i.url=n),_e(i,r),ge(`${j(e)}/reprocess`,`POST`,i)}var U,ye,be=e((()=>{P(),U=null,ye=class extends Error{constructor(e,t){super(e),this.status=t}}}));function W(e){let t=e?.summary??e??{},n=e?.report,r=e?.failure??t.failure??n?.failure,i=e?.error??r?.message;if(t.status===`failed`||n?.status===`failed`||r){let e=/HTTP(?: status)?\s*(\d{3})/i.exec(String(i??``)),t=r?.http_status??(e?Number(e[1]):null);return{state:`failed`,title:t===403?`Coleta bloqueada · HTTP 403`:`Não foi possível coletar a referência`,message:t===403?`A origem recusou o coletor. Isso não torna a URL inválida. HTML e CSS não foram obtidos nesta tentativa; nenhum sistema visual foi produzido.`:r?.message??i??`A tentativa terminou sem dados de extração.`,failure:r,httpStatus:t}}return t.status===`collecting`||n?.status===`collecting`?{state:`collecting`,title:`Extração em andamento`,message:`Aguarde a conclusão para abrir os espécimes e o diagnóstico. Nenhum resultado parcial foi tratado como final.`}:n?.status===`measured-evidence`?{state:`measured`,title:`Relatório gerado`}:{state:`legacy`,title:`Relatório ausente nesta revisão`,message:`Esta revisão preservada não contém o relatório medido. Reprocessar cria uma nova revisão sem alterar o histórico.`}}var G=e((()=>{}));function xe(e){if(e.status===`failed`&&e.failure?.kind===`cancelled`)return`Extração cancelada`;if(e.status===`failed`&&W(e).httpStatus===403)return`${W(e).title} · ${e.failure?.message??e.error??`Origem recusou o coletor`}`;let t=[`completed`,`failed`].includes(e.status);return`${t?K[e.status]:K[e.phase]??e.phase??e.status}${t&&e.phase!==e.status?` · Última fase registrada: ${K[e.phase]??e.phase??`não disponível`}`:``}${e.error?` · Falha / interrupção: ${e.error}`:``}`}var K,Se=e((()=>{G(),K={queued:`Na fila`,"fetch-html":`Coletando HTML`,"parse-css":`Analisando CSS`,"fetch-css":`Coletando folhas CSS`,"browser-open":`Abrindo navegador local`,"browser-wait":`Aguardando sua ação no navegador`,"browser-capture":`Capturando página no navegador`,"build-report":`Gerando relatório`,"verify-artifacts":`Verificando artefatos`,commit:`Persistindo revisão`,completed:`Relatório gerado`,failed:`Extração falhou`}}));async function Ce(e,t,n,r,i={}){let a={connect:pe,detail:me,job:he,reprocess:ve,schedule:(...e)=>setTimeout(...e),cancelDelay:e=>clearTimeout(e),parent:document.body,...i};if(q){q.open||q.showModal();return}let o=F(`dialog`,`reprocess-dialog`);q=o;let s=F(`h2`,``,`Reprocessando referência`);s.id=`reprocessTitle`;let c=F(`p`,``,`Preparando reprocessamento…`);c.id=`reprocessMessage`,c.setAttribute(`role`,`status`),c.setAttribute(`aria-live`,`polite`);let l=F(`span`,`job-spinner`);l.setAttribute(`aria-hidden`,`true`);let u=F(`p`,`help`,`Ao concluir, esta janela fecha e a nova revisão aparece automaticamente.`),d=F(`p`,`help`),f=F(`div`,`page-actions`),p=L(`Ocultar progresso`,()=>o.close()),m=L(`Retomar acompanhamento`,()=>_?.());m.hidden=!0,f.append(m,p),o.append(s,l,c,d,u,f),o.setAttribute(`aria-labelledby`,s.id),u.id=`reprocessHint`,o.setAttribute(`aria-describedby`,u.id),a.parent.append(o),o.showModal(),t.disabled=!0,t.classList.add(`is-working`);let h=new AbortController,g,_,v,y,b=!1,x=!1,S=!1,C=e=>{c.textContent=e,n.textContent=e},w=()=>{S||(S=!0,a.cancelDelay(g),h.abort(),window.removeEventListener(`pagehide`,w),a.signal?.removeEventListener(`abort`,w),o.remove(),q=null,t.disabled=!1,t.classList.remove(`is-working`),t.isConnected?t.focus():document.querySelector(`#viewerMain`)?.focus())};if(window.addEventListener(`pagehide`,w,{once:!0}),a.signal?.addEventListener(`abort`,w,{once:!0}),a.signal?.aborted){w();return}o.addEventListener(`close`,()=>{b||x?w():n.textContent=`Reprocessamento em andamento. A página será atualizada ao concluir.`});let T=e=>{b=!0,s.textContent=`Reprocessamento não concluído`,l.hidden=!0,u.textContent=`Confira a mensagem antes de iniciar outra tentativa.`,p.textContent=`Fechar`,C(e),o.open||w()},E=(e,t,n=`Retomar acompanhamento`)=>{x=!0,l.hidden=!0,m.hidden=!1,m.textContent=n,_=()=>{!x||S||(x=!1,m.hidden=!0,l.hidden=!1,t())},C(e),p.textContent=`Fechar`,o.open||w()},D=async e=>{if(!S){C(`Reprocessamento concluído. Atualizando a página…`);try{if(await r(e),S)return;n.textContent=`Reprocessamento concluído. Nova revisão carregada.`,w()}catch(t){S||E(`A revisão foi gerada, mas a página não foi atualizada: ${t.message}`,()=>D(e),`Atualizar página`)}}},O=async()=>{if(!S)try{let t=await a.job(v,h.signal);if(S)return;if(C(xe(t)),d.textContent=t.browser?.action??``,[`queued`,`running`].includes(t.status))g=a.schedule(O,1e3);else if(t.status===`completed`){if(t.entry_id!==e||!Number.isInteger(t.result_revision)||t.result_revision<=y)throw Error(`Resultado sem uma nova revisão confirmada para esta referência.`);await D(t)}else if(t.status===`failed`)T(xe(t)),S||f.prepend(I(`Ver tentativa`,ee(e,t.result_revision??null)));else throw Error(`Estado da operação não reconhecido.`)}catch(e){!S&&e.name!==`AbortError`&&E(`Acompanhamento interrompido: ${e.message}. A operação pode continuar no servidor.`,O)}};try{if(await a.connect(),S)return;let t=await a.detail(e,null,0,h.signal);if(S)return;if(y=t.revision,s.textContent=`Reprocessando ${t.summary.name}`,!t.summary.replay_available||!t.summary.request_url){T(t.summary.replay_unavailable_reason??`URL exata indisponível. Informe o endereço para reprocessar.`),S||f.prepend(I(`Informar URL`,`/generate.html?id=${encodeURIComponent(e)}`));return}C(`Iniciando nova revisão…`);let n=await a.reprocess(e,y);if(S)return;v=n.jobId,await O()}catch(e){if(S||e.name===`AbortError`)return;T(e.status===409?`O item mudou. Atualize a página antes de repetir: ${e.message}`:e.status===403?`A sessão mudou. Reconecte antes de repetir: ${e.message}`:`Reprocessamento não confirmado: ${e.message}. Se o envio foi interrompido, consulte a revisão atual antes de repetir.`)}}var q,we=e((()=>{be(),V(),Se(),P(),q=null}));function Te(e){let t=F(`details`,`evidence-details`);t.append(F(`summary`,``,`Fonte e evidências`));let n=F(`dl`,`evidence-list`);for(let[t,r]of[[`Evidências`,e.evidence?.join(`, `)],[`Valor declarado`,e.declared_value],[`Classificação`,e.kind],[`Método`,e.method??e.provenance?.method],[`URL da fonte`,e.provenance?.url??e.url],[`Seletor`,e.provenance?.selector??e.selector],[`SHA-256`,e.provenance?.source_hash??e.hash],[`Observado em`,e.provenance?.observed_at??e.observed_at]])r!=null&&n.append(F(`dt`,``,t),F(`dd`,``,r));return t.append(n),t}function Ee(e,t,n={report:e,summary:t},r=!0){let i=W(n),a=B(i.state===`failed`?i.title:`Diagnóstico da extração`,`diagnostic`);if([`failed`,`collecting`].includes(i.state))return a.append(F(`p`,``,i.message)),a;if(a.append(F(`p`,`coverage-label`,N(e)),F(`p`,``,M(e?.sampling??t.sampling)),F(`p`,`muted`,`Cobertura de evidências extraídas; qualidade visual não avaliada. As fontes e lacunas estão no relatório abaixo.`)),e?.status===`measured-evidence`){let n=F(`div`,`diagnostic-bars`);for(let t of e.metrics){let e=F(`div`,`diagnostic-metric`),r=F(`div`,`diagnostic-track`),i=F(`span`,`diagnostic-fill`);Number.isFinite(t.ratio)&&(i.style.width=`${Math.max(0,Math.min(1,t.ratio))*100}%`),r.append(i),e.append(F(`span`,``,De[t.id]??t.id),r,F(`code`,``,`${t.numerator}/${t.denominator}`)),n.append(e)}a.append(n),r&&a.append(I(`Abrir diagnóstico`,`/viewer/diagnostic.html?id=${encodeURIComponent(t.id)}&revision=${t.revision}`))}return a}var De,Oe=e((()=>{V(),G(),P(),De={"category-coverage":`Categorias com evidência`,"declaration-sampling":`Declarações CSS retidas`,"color-resolution":`Cores resolvidas`,"declared-token-reuse":`Reuso de valores declarados`}}));function J(e){let t=F(`article`,`ds-demo-card`);return t.append(F(`h4`,``,e)),t}function Y(e,t,n){let r=L(e,n??(()=>{}),`ds-demo-button ds-demo-${t}`);return r.dataset.specimen=`button-${t}`,r}function X(e,t,n){let r=t.find(e=>n.test(`${e.tag??``} ${e.selector??``}`));if(r){for(let[t,n]of Object.entries(S(r)))e.style[t]=n;e.dataset.descriptor=r.selector??r.tag}}function ke(e,{separateScales:t=!1}={}){let n=b(e);if(!n.available){let e=B(`Preview visual indisponível`,`wide`);return e.append(F(`p`,``,n.unknown.join(` `))),[e]}let r=e.summary??e,i=n.raw.components??[],a=B(`Resumo prático`,`wide ds-specimens`);a.dataset.specimenSection=`components`,a.append(F(`p`,`help`,`Preview dos tokens extraídos · controles de demonstração.`));let o=F(`div`,`ds-specimen-grid`),s=J(`Botões · primary / secondary / ghost`),c=F(`div`,`ds-demo-actions`),l=F(`p`,`help`,`Experimente os controles.`);l.setAttribute(`role`,`status`);for(let[e,t]of[[`Primário`,`primary`],[`Secundário`,`secondary`],[`Ghost`,`ghost`]]){let n=Y(e,t,()=>{l.textContent=`${e} acionado apenas nesta demonstração.`});X(n,i,t===`primary`?/button-primary|(^|\s)button(\s|$)/i:RegExp(`button-${t}`,`i`)),c.append(n)}let u=Y(`Desabilitado`,`primary`);u.disabled=!0,c.append(u),s.append(c,l);let d=J(`Inputs e dropdown`),f=F(`label`,``,`Nome de exemplo`),m=F(`input`,`ds-demo-input`);m.type=`text`,m.id=`specimen-name-${r.id}`,f.htmlFor=m.id,m.placeholder=`Digite para testar o campo`,m.dataset.specimen=`input`;let g=F(`label`,``,`Plano da demonstração`),_=F(`select`,`ds-demo-select`);_.id=`specimen-select-${r.id}`,g.htmlFor=_.id,_.dataset.specimen=`select`;for(let[e,t]of[[`main`,`Plano principal`],[`secondary`,`Plano secundário`],[`enterprise`,`Plano enterprise`]]){let n=F(`option`,``,t);n.value=e,_.append(n)}X(m,i,/(^|\s)input|input-text/i),X(_,i,/(^|\s)select|dropdown/i);let v=F(`p`,`help`,`Plano principal selecionado.`);v.setAttribute(`role`,`status`),_.addEventListener(`change`,()=>{v.textContent=`${_.options[_.selectedIndex].text} selecionado apenas nesta demonstração.`}),d.append(f,m,g,_,v);let y=J(`Cards e badges`),x=F(`div`,`ds-demo-surface`);x.dataset.specimen=`card`,X(x,i,/card|(^|\s)article/i);let S=F(`span`,`ds-demo-badge`,`Badge`);S.dataset.specimen=`badge`,X(S,i,/badge/i),x.append(z(r),F(`strong`,``,r.name),F(`p`,``,`Superfície, borda, raio e sombra aplicados ao exemplo.`),S),y.append(x);let C=J(`Fundos e navegação`),w=F(`nav`,`ds-demo-nav`);w.setAttribute(`aria-label`,`Navegação da demonstração`),w.dataset.specimen=`nav`,X(w,i,/(^|\s)nav|header/i),w.append(F(`strong`,``,`Menu`),Y(`Início`,`ghost`),Y(`Sobre`,`ghost`));let T=F(`div`,`ds-demo-surface`,`Surface · conteúdo de demonstração`),E=F(`div`,`ds-demo-accent`,`Brand / accent`);C.append(w,T,E),o.append(s,d,y,C),a.append(o);let D=B(`Tipografia · Aa por escala`,`wide ds-specimens`);D.dataset.specimenSection=`typography`,D.append(F(`p`,`help`,`Corpo: ${n.raw.tokens.typography.body_family?.value??`não inferido`} · Heading: ${n.raw.tokens.typography.heading_family?.value??`não inferido`}`));let O=(e.report?.typography??[]).filter(e=>e.kind===`inferred`&&/font-size/.test(e.property)&&p(e.value,96)&&Number.parseFloat(e.value)>0).slice(0,24),k=[...O].sort((e,t)=>Number.parseFloat(t.value)*(/rem|em/.test(t.value)?16:1)-Number.parseFloat(e.value)*(/rem|em/.test(e.value)?16:1))[0]?.value??`40px`;for(let[e,t,r,i]of[[O.length?`Heading · escala declarada`:`Heading · escala de demonstração`,n.heading,k,n.raw.tokens.typography.heading_family],[`Corpo`,n.family,n.properties[`--ds-font-size`],n.raw.tokens.typography.body_family],...O.map(e=>[e.property,n.family,e.value,e])]){let n=F(`div`,`ds-type-row`),a=F(`strong`,``,`Aa · O próximo capítulo`);a.style.fontFamily=h(t)??`system-ui, sans-serif`,a.style.fontSize=p(r,96)??`24px`,n.append(F(`span`,``,e),a,F(`code`,``,`${r} · ${t}`)),i&&n.append(Te(i)),D.append(n)}let A=B(`Espaçamentos, raios e sombras`,`wide ds-specimens`),j=t?[]:[A];A.dataset.specimenSection=`scales`;for(let[e,r,i]of[[`Espaçamentos`,n.spacing,`spacing`],[`Raios`,n.radii,`radius`],[`Sombras`,n.shadows,`shadow`]]){let n=t?B(e,`wide ds-specimens`):A;t?j.push(n):A.append(F(`h4`,``,e));let a=F(`div`,`ds-scale-grid`);r.length||a.append(F(`p`,`help`,`Nenhum valor escalar seguro inferido nesta categoria.`));for(let e of r){let t=F(`article`,`ds-scale-card`),n=F(`div`,`ds-scale-sample ds-scale-${i}`);n.dataset.specimen=i,i===`spacing`&&(n.style.padding=e.applied,n.append(F(`span`,`ds-spacing-core`,``))),i===`radius`&&(n.style.borderRadius=e.applied),i===`shadow`&&(n.style.boxShadow=e.applied),t.append(n,F(`code`,``,`${e.property}: ${e.value}`),Te(e)),a.append(t)}n.append(a)}let M=F(`details`,`panel wide ds-method`);M.dataset.specimenSection=`limitations`,M.append(F(`summary`,``,`Método e limites`));let N=F(`ul`);for(let e of[n.raw.theme?.basis===`browser-computed-style`?`Estilos calculados no viewport capturado; papéis dos componentes são demonstrações inferidas.`:`Modelo inferido de declarações; tema ativo e cascata não calculados.`,`Fontes declaradas usam fallback local quando seus arquivos não estão instalados. Não há download de font-face remoto.`,`Motion, stack da origem e auditoria completa de contraste não foram exercitados neste preview.`,...n.unknown,...n.raw.limitations??[],...n.fallback.length?[`Fallbacks locais de demonstração: ${n.fallback.join(`, `)}. Não são valores observados da origem.`]:[]])N.append(F(`li`,``,e));return M.append(N),[a,D,...j,M]}var Ae=e((()=>{V(),Oe(),E()}));function je(e){let t=F(`details`,`panel wide detail-accordion`),n=e.querySelector(`h3`);return t.append(F(`summary`,``,n?.textContent??`Mais informações`)),n?.remove(),e.classList.remove(`panel`,`wide`),t.append(e),t}function Me(e,t,n){let r=L(``,n,`action management-action`),i=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);i.setAttribute(`viewBox`,`0 0 24 24`),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`fill`,`none`),i.setAttribute(`stroke`,`currentColor`),i.setAttribute(`stroke-width`,`1.8`);let a=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return a.setAttribute(`d`,t===`trash`?`M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7`:`M20 7v5h-5M4 17v-5h5M5.3 8a7 7 0 0 1 11.5-3L20 12M4 12l3.2 7A7 7 0 0 0 18.7 16`),i.append(a),r.append(i,F(`span`,``,e)),r}function Ne(e){let t=e.report;if(W(e).state!==`measured`)return Ee(t,e.summary,e,!1);let n=e.design_score,r=B(`Design Score`,`diagnostic detail-score`),i=F(`div`,`detail-score-value`);i.append(F(`b`,`design-grade-disc`,n?.grade??`—`),F(`strong`,``,n?.overall??`—`),F(`span`,``,`/100`)),i.setAttribute(`aria-label`,`Design Score: ${n?.grade??`indisponível`} ${n?.overall??``}`),r.append(i);let a=F(`div`,`design-category-bars`);for(let e of n?.categories??[]){let t=F(`div`,`design-category-bar`),n=F(`span`,`design-bar-track`),r=F(`span`,`diagnostic-fill`);r.style.width=`${e.score??0}%`,n.append(r),t.title=`${e.value}. ${e.explanation}`,t.append(F(`span`,``,e.label),n,F(`span`,`design-category-result`,e.score==null?`N/A`:`${e.grade} ${e.score}`)),a.append(t)}return r.append(a,F(`p`,`help`,`${n?.evaluated_categories??0}/7 categorias avaliadas · heurística do sistema extraído.`)),r.append(I(`Abrir Diagnóstico Completo`,`/viewer/diagnostic.html?id=${encodeURIComponent(e.summary.id)}&revision=${e.revision}`)),r}function Pe(e){let t=B(`Cores`,`wide detail-palette`),n=e.visual_model?.theme?.basis===`browser-computed-style`,r={background:`Fundo`,foreground:`Texto`,primary:`Primária`,primary_foreground:`Texto primário`,card:`Superfície`,card_foreground:`Texto da superfície`,accent:`Destaque`,secondary:`Secundária`,muted:`Texto secundário`,border:`Borda`},i=Object.entries(e.visual_model?.tokens?.colors??{}).filter(([,e])=>e?.kind===`inferred`&&f(e.value)).map(([e,t])=>({value:t.value,label:r[e]??e})),a=[...new Map([...i,...n?[]:e.report.colors].map(e=>[e.value,e])).keys()].map(t=>i.find(e=>e.value===t)??e.report.colors.find(e=>e.value===t)),o=F(`div`,`detail-color-grid`);for(let e of a.slice(0,12)){let t=F(`div`,`detail-color`),n=F(`span`,`color-dot`),r=f(e.value);r&&(n.style.backgroundColor=r),n.setAttribute(`aria-hidden`,`true`);let i=F(`div`,`detail-color-caption`);e.label&&i.append(F(`span`,``,e.label)),i.append(F(`code`,``,e.value)),t.append(n,i),o.append(t)}return t.append(o,F(`p`,`help`,n?`Cores aplicadas a partir dos estilos da captura. As ${e.report.colors.length} cores declaradas no CSS, incluindo outros temas e estados, estão no diagnóstico.`:`${Math.min(12,a.length)} de ${a.length} cores declaradas no CSS · podem incluir outros temas e estados. Paleta completa no diagnóstico.`)),t}var Fe=e((()=>{V(),G(),Oe(),E()}));function Ie(e,{hero:t,panel:n,toolbar:r,current:i,viewRevision:a,historyMore:o,onReprocess:s,onTrash:c}){let l=e.summary,u=B(l.name,`hero-copy`);u.prepend(F(`p`,`kicker`,`DESIGN.md OUTPUT`)),u.prepend(de(l)),u.append(F(`p`,`source-url`,l.request_url??l.url),se(l.status)),e.revision!==e.revision_count&&u.append(L(`Voltar à revisão atual`,i,`primary`));let d=F(`div`,`page-actions detail-primary-actions`);l.designMdUrl&&d.append(I(`DESIGN.md`,`${j(l.id,`design`,e.revision)}&format=compact`,!0)),[`measured`,`legacy`].includes(W(e).state)&&d.append(I(`Preview Render`,`/viewer/preview.html?id=${encodeURIComponent(l.id)}&revision=${l.revision}`)),u.append(d);let f=F(`div`,`page-actions detail-management`);if(s){let e=Me(`Reprocessar`,`refresh`,s);e.dataset.action=`reprocess`,e.disabled=l.status===`collecting`,f.append(e)}else f.append(I(`Gerar nova revisão`,`/generate.html?id=${encodeURIComponent(l.id)}`));if(c){let e=Me(`Mover para lixeira`,`trash`,c);e.dataset.action=`trash`,e.disabled=l.status===`collecting`,f.append(e)}r?r.replaceChildren(f):u.prepend(f),l.replay_available||u.append(F(`p`,`help`,l.replay_unavailable_reason??`URL exata não preservada. Forneça uma URL segura explicitamente para reprocessar.`));let p=Ne(e);e.error&&p.append(F(`p`,`error`,`Falha / interrupção: ${e.error}`));let m=B(`Captura da referência`,`wide`);if(l.visual?.screenshotUrl&&l.capabilities?.screenshot_verified===!0){let t=F(`img`,`reference-image`);t.src=j(l.id,`screenshot`,e.revision),t.alt=`Captura PNG da referência ${l.name}, revisão ${e.revision}`,t.loading=`lazy`,t.addEventListener(`error`,()=>t.replaceWith(F(`p`,`error`,`Captura indisponível ou não verificada pelo servidor.`))),m.append(t,F(`p`,`help`,`PNG retido e verificado pelo servidor; captura da referência, sem preview HTML ativo.`))}else m.append(F(`p`,`muted`,`Captura PNG verificada indisponível nesta revisão.`));let h=B(`Revisões`);h.append(F(`p`,`meta reference-id`,`Referência: ${l.id}`),F(`p`,`revision-label`,`Revisão ${e.revision} de ${e.revision_count}${e.revision===e.revision_count?` · atual`:` · histórica`}`));let g=F(`div`,`history-list`);for(let t of[...e.revisions].sort((e,t)=>t.revision-e.revision)){let n=L(`r${t.revision} · ${D(t.status)} · ${t.updated_at}`,()=>a(t.revision),`history-item`);t.revision===e.revision&&n.setAttribute(`aria-current`,`true`),g.append(n)}h.append(F(`p`,`meta`,`${e.revisions.length} de ${e.revision_count} revisões carregadas`),g),e.revisions.length<e.revision_count&&h.append(L(`Carregar revisões anteriores`,o));let _=W(e).state===`measured`||e.visual_model?.status===`inferred`?ke(e):[];t.replaceChildren(u,p),n.replaceChildren(...e.report?.status===`measured-evidence`?[Pe(e)]:[],...[`failed`,`collecting`].includes(W(e).state)?[]:[m],..._.map(e=>e.tagName===`DETAILS`?e:je(e)),je(h))}var Le=e((()=>{V(),G(),P(),Ae(),Fe()}));function Z(e,t){for(let n of e.querySelectorAll(`a`)){if(n.dataset.makerPath)continue;let e=n.getAttribute(`href`);n.dataset.makerPath=e,n.setAttribute(`href`,`#/components`),n.addEventListener(`click`,n=>{n.preventDefault(),t&&t(e)})}}function Re(e,t,n,r){let i=F(`section`,`maker-filter-toolbar`);i.setAttribute(`aria-label`,`Filtros reais do Maker, coleção sintética`);let a=F(`input`);a.type=`search`,a.id=`makerExampleSearch`,a.value=``;let o=F(`label`,``,`Buscar designs`);o.htmlFor=a.id;let s=F(`select`);s.id=`makerExampleTheme`;let c=F(`label`,``,`Tema`);c.htmlFor=s.id;for(let[e,t]of[[``,`Todos os temas`],[`light`,`Light`],[`dark`,`Dark`]]){let n=F(`option`,``,t);n.value=e,s.append(n)}s.value=``;let l=F(`details`,`catalog-color-filter`);l.append(F(`summary`,``,`Todas as cores`));let u=F(`div`,`catalog-color-options`),d=F(`fieldset`);d.append(F(`legend`,``,`Cores da paleta do card`)),u.append(d,L(`Limpar cores`,()=>{})),l.append(u);let f=F(`p`,`help`);f.setAttribute(`role`,`status`);let p=L(`Limpar filtros`,()=>{a.value=``,s.value=``,h.clear()}),m=()=>{let e=n.filter(e=>re(e,a.value,s.value,h.selected()));t.replaceChildren(...e.map(e=>{let t=ue(e);return Z(t,()=>r(e.id)),t})),e.length||t.append(R(`Nenhum output encontrado`,`Altere a busca ou limpe os filtros. Tema desconhecido não equivale a light/dark.`)),f.textContent=`${e.length} de ${n.length} designs sintéticos`,p.disabled=!a.value&&!s.value&&!h.selected().length},h=ie(l,m);return a.addEventListener(`input`,m),s.addEventListener(`change`,m),i.append(o,a,c,s,l,p,f),e.append(i),m(),{render:m,dispose(){h.dispose(),a.removeEventListener(`input`,m),s.removeEventListener(`change`,m)}}}function ze(e,t,n){let r=new AbortController,i=F(`section`,`maker-reprocess-fixture`);i.append(F(`h3`,``,`Reprocessamento real · serviços sintéticos`));let a=F(`select`);a.id=`makerExampleSavedMode`;let o=F(`label`,``,`Modo salvo do exemplo`);o.htmlFor=a.id;for(let e of[`http`,`browser`]){let t=F(`option`,``,e===`http`?`HTTP`:`Navegador local`);t.value=e,a.append(t)}a.value=`http`;let s=F(`select`);s.id=`makerExampleReprocessState`;let c=F(`label`,``,`Resultado sintético do acompanhamento`);c.htmlFor=s.id;for(let[e,t]of[[`completed`,`Sucesso`],[`failed`,`Falha`],[`retry`,`Polling interrompido: retomar`],[`missing-url`,`URL salva indisponível`]]){let n=F(`option`,``,t);n.value=e,s.append(n)}s.value=`completed`;let l=`https://example.test/synthetic?variant=preserved`,u=F(`p`,`help`,`URL salva sintética: ${l}. Reprocessar preserva URL/modo; o catálogo não envia POST.`),d=F(`p`,`help`);d.setAttribute(`role`,`status`);let f,p,m,h,g,_,v,y=i=>{if(!r.signal.aborted)return Ce(t().id,i,d,async e=>{r.signal.aborted||n(e)},{parent:e,signal:r.signal,connect:async()=>{h={...t()},p=s.value,m=a.value,g=h.revision+1,_=`running`,v=!1},detail:async()=>({revision:h.revision,summary:{...h,replay_available:p!==`missing-url`,request_url:p===`missing-url`?null:l}}),reprocess:async()=>(d.textContent=`Exemplo sintético: URL/modo salvos (${m}); nenhum POST enviado.`,{jobId:`synthetic-reprocess`}),job:async()=>{let t=e.querySelector(`dialog`);if(t&&!t.querySelector(`[data-maker-advance]`)){let e=L(`Avançar cenário sintético`,async()=>{_=p;let e=f;f=null,await e?.(),Z(t)});e.dataset.makerAdvance=`true`,t.append(F(`p`,`help`,`Fixture: URL ${l} · modo salvo ${m}.`),e)}if(_===`retry`&&!v)throw v=!0,Error(`Polling sintético indisponível`);let n=_===`retry`?`completed`:_;return{status:n,phase:n===`running`?`parse-css`:n,entry_id:h.id,result_revision:g,error:n===`failed`?`Falha sintética; revisão anterior preservada.`:null}},schedule(e){return f=e,1},cancelDelay(){f=null}}).then(()=>{let t=e.querySelector(`dialog`);t&&Z(t)})},b=L(`Reprocessar exemplo`,e=>y(e.currentTarget)),x=L(`Mostrar progresso do exemplo`,e=>y(e.currentTarget));return i.append(o,a,c,s,u,b,x,d),e.append(i),{start:y,dispose:()=>r.abort()}}function Be(e){let t=l.map(e=>({...e,design_score:null})),n=t[0],r=2,i=!0,a=F(`div`,`maker-card-grid`);e.replaceChildren();let o=Re(e,a,t,e=>g(e)),s=F(`div`,`maker-viewer`),u=F(`nav`,`maker-sidebar`);u.setAttribute(`aria-label`,`Outputs sintéticos do Maker`);let d=F(`div`,`maker-output`);d.tabIndex=-1,d.setAttribute(`role`,`region`),d.setAttribute(`aria-label`,`Detalhe do output sintético`);let f=F(`div`,`maker-hero`),p=F(`div`,`maker-panels`),m=F(`p`,`help`,`Exemplos sintéticos. Links não acessam arquivos nem a API.`);m.setAttribute(`role`,`status`),d.append(f,p,m),s.append(u,d);function h(e=!1){if(!i)return;u.replaceChildren(...t.map(e=>fe(e,e.id===n.id,e=>g(e)))),Z(u);let a=c(n,r);a.revision_count=n.revision,n.revision>2&&a.revisions.unshift({revision:n.revision,status:`ready`,updated_at:`Fixture sintética atualizada`}),Ie(a,{hero:f,panel:p,current(){r=n.revision,h(!0)},viewRevision(e){r=e,h(!0)},historyMore(){},onReprocess(e){C.start(e.currentTarget)}}),Z(f,e=>{m.textContent=`Ação ilustrativa: ${e}. Nenhuma requisição enviada.`}),e&&d.focus()}function g(e){n=t.find(t=>t.id===e)??n,r=n.revision,h(!0)}let _=F(`div`,`maker-feedback`),v=R(`Nenhum output`,`Coleção sintética vazia. Gere uma proposta para começar.`),y=R(`Carregando outputs…`,`A coleção ainda não foi recebida; ausência não é zero.`);y.setAttribute(`role`,`status`),y.setAttribute(`aria-busy`,`true`);let b=R(`Não foi possível carregar`,`Os outputs existentes seriam preservados. Tente novamente.`),x=F(`p`,`help`);x.setAttribute(`role`,`status`);let S=L(`Tentar novamente (exemplo)`,()=>{x.textContent=`Coleção sintética disponível. Nenhuma requisição enviada.`});b.append(S,x),_.append(v,y,b),e.append(a,s,_);let C=ze(e,()=>n,e=>{n.revision=e.result_revision,r=n.revision,o.render(),h(!0)});return h(),()=>{i=!1,o.dispose(),C.dispose(),e.replaceChildren()}}var Ve=e((()=>{oe(),V(),we(),Le(),d()})),He=e((()=>{}));function Ue(e){try{let t=new URL(e);return[`http:`,`https:`].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}}function We({fixture:e}){let t=(0,Q.useId)(),[n,a]=(0,Q.useState)(``),[s,c]=(0,Q.useState)(``),l=[`queued`,`running`,`interrupted`].includes(e.state),u=e.state===`failed`?`error`:e.state===`completed`?`success`:`accent`;return(0,$.jsxs)(`article`,{className:`maker-specimen maker-generation`,"data-maker-job":e.state,children:[(0,$.jsxs)(`form`,{"aria-label":`Gerar proposta: ${e.name}`,"aria-busy":l,noValidate:!0,onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget);if(Ue(String(t.get(`url`)??``)))a(``),c(`URL válida no exemplo. Nenhuma extração foi enviada.`);else{a(`Informe uma URL HTTP/HTTPS válida, sem credenciais.`),c(``);let t=e.currentTarget.elements.namedItem(`url`);t instanceof HTMLInputElement&&t.focus()}},children:[(0,$.jsx)(`h3`,{children:e.name}),(0,$.jsx)(r,{id:`${t}-url`,name:`url`,type:`url`,label:`URL pública`,hint:`Exemplo sintético; o catálogo não faz extrações.`,error:n,required:!0,maxLength:4096,disabled:l,defaultValue:`https://example.test/synthetic`}),(0,$.jsx)(r,{id:`${t}-name`,name:`name`,label:`Nome do output (opcional)`,maxLength:128,disabled:l,defaultValue:`Proposta sintética`}),(0,$.jsx)(`p`,{children:`Novo output · primeira revisão`}),(0,$.jsx)(i,{type:`submit`,disabled:e.state!==`idle`,children:`Gerar DESIGN.md (exemplo)`}),n?(0,$.jsx)(`p`,{role:`alert`,children:n}):null,(0,$.jsx)(`p`,{role:`status`,children:s})]}),(0,$.jsxs)(`section`,{"aria-label":`Operação sintética: ${e.name}`,children:[(0,$.jsx)(`h3`,{children:`Acompanhe o output`}),(0,$.jsx)(`p`,{role:`status`,"aria-live":`polite`,children:(0,$.jsx)(o,{tone:u,children:e.name})}),(0,$.jsx)(`p`,{children:`Proposta local; qualidade e fidelidade permanecem não avaliadas.`}),e.state===`completed`?(0,$.jsx)(`p`,{children:`Output sintético disponível no Viewer acima.`}):null,e.state===`failed`||e.state===`interrupted`?(0,$.jsx)(i,{variant:`secondary`,onClick:()=>c(e.state===`interrupted`?`Acompanhamento retomado no exemplo; nenhuma geração reenviada.`:`Preparação reiniciada no exemplo; nenhuma geração enviada.`),children:e.state===`interrupted`?`Retomar acompanhamento (exemplo)`:`Preparar outra extração (exemplo)`}):null,(0,$.jsx)(`h4`,{children:`Registro da operação`}),(0,$.jsx)(`section`,{className:`code-region`,tabIndex:0,"aria-label":`Registro: ${e.name}`,children:(0,$.jsx)(`pre`,{children:e.log})})]})]})}function Ge(){let e=(0,Q.useRef)(null);return(0,Q.useEffect)(()=>{if(e.current)return Be(e.current)},[]),(0,$.jsxs)(`div`,{className:`maker-specimen`,"data-testid":`maker-central-specimen`,children:[(0,$.jsx)(`p`,{children:`Implementação DOM real: filtros, dropdown de cores, cards, seleção, revisões e diálogo de reprocessamento do Maker. O diálogo usa serviços sintéticos e avanço manual do cenário; nenhum POST é enviado. Cores candidatas são propostas sintéticas, sem promoção de tokens.`}),(0,$.jsx)(`div`,{ref:e}),(0,$.jsx)(`h3`,{children:`Formulário e operação: adaptador nativo`}),(0,$.jsx)(`p`,{children:`Fixtures fixos; sem API, sessão ou polling. Tab percorre ações, campos e dados roláveis; Enter valida ou ativa a ação com foco visível.`}),(0,$.jsx)(`div`,{className:`maker-jobs`,children:u.map(e=>(0,$.jsx)(We,{fixture:e},e.state))})]})}var Q,$,Ke=e((()=>{Q=t(n(),1),a(),d(),Ve(),He(),$=s(),We.__docgenInfo={description:``,methods:[],displayName:`MakerGenerationSpecimen`,props:{fixture:{required:!0,tsType:{name:`MakerJobFixture`},description:``}}},Ge.__docgenInfo={description:``,methods:[],displayName:`MakerSpecimen`}}));export{u as a,d as i,Ge as n,Ke as r,We as t};
@@ -1 +1 @@
1
- import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-CTWGZcEe.js";import{t as r}from"./jsx-runtime-f3rHp9ZU.js";function i(e){e?.focus()}function a(e,t,n,r){if(e.key===`Escape`){e.preventDefault(),r();return}if(e.key!==`Tab`||t.length===0)return;let i=t.indexOf(n),a=e.shiftKey?i<=0?t.length-1:i-1:i<0||i===t.length-1?0:i+1;e.preventDefault(),t[a]?.focus()}var o=e((()=>{}));function s({variant:e=`primary`,className:t=``,...n}){return(0,x.jsx)(`button`,{className:`button button-${e} ${t}`.trim(),type:`button`,...n})}function c({children:e,tone:t=`neutral`}){return(0,x.jsx)(`span`,{className:`badge badge-${t}`,children:e})}function l({children:e,accent:t=!1}){return(0,x.jsx)(`article`,{className:t?`card card-accent`:`card`,children:e})}function u({eyebrow:e,title:t,description:n,children:r}){return(0,x.jsxs)(`section`,{className:`editorial-hero`,children:[(0,x.jsxs)(`div`,{className:`editorial-hero-copy`,children:[e?(0,x.jsx)(`p`,{className:`eyebrow`,children:e}):null,(0,x.jsx)(`h2`,{children:t}),(0,x.jsx)(`p`,{children:n}),r?(0,x.jsx)(`div`,{className:`editorial-hero-actions`,children:r}):null]}),(0,x.jsx)(`div`,{"aria-hidden":`true`,className:`editorial-hero-orbit`})]})}function d({label:e,value:t,change:n}){return(0,x.jsxs)(l,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:e}),(0,x.jsx)(`strong`,{className:`metric-value`,children:t}),(0,x.jsx)(`p`,{className:`metric-change`,children:n})]})}function f({label:e,hint:t,error:n,...r}){let i=`${r.id??r.name??`field`}-description`;return(0,x.jsxs)(`label`,{className:`field`,children:[(0,x.jsx)(`span`,{children:e}),t?(0,x.jsx)(`small`,{children:t}):null,(0,x.jsx)(`input`,{"aria-describedby":t||n?i:void 0,"aria-invalid":!!n,...r}),n?(0,x.jsx)(`em`,{id:i,children:n}):t?(0,x.jsx)(`i`,{id:i,children:t}):null]})}function p({label:e,children:t,...n}){return(0,x.jsxs)(`label`,{className:`field`,children:[(0,x.jsx)(`span`,{children:e}),(0,x.jsx)(`select`,{...n,children:t})]})}function m(){return(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{className:`empty-state`,children:[(0,x.jsx)(`span`,{className:`empty-icon`,"aria-hidden":`true`,children:`◇`}),(0,x.jsx)(`h3`,{children:`Nenhum item ainda`}),(0,x.jsx)(`p`,{children:`Crie o primeiro registro para começar a acompanhar esta área.`}),(0,x.jsx)(s,{children:`Adicionar item`})]})})}function h(){return(0,x.jsx)(`div`,{className:`table-wrap`,children:(0,x.jsxs)(`table`,{children:[(0,x.jsx)(`caption`,{className:`sr-only`,children:`Exemplo de execuções recentes`}),(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:`Execução`}),(0,x.jsx)(`th`,{children:`Status`}),(0,x.jsx)(`th`,{className:`number`,children:`Tokens`}),(0,x.jsx)(`th`,{className:`number`,children:`Custo`})]})}),(0,x.jsxs)(`tbody`,{children:[(0,x.jsxs)(`tr`,{children:[(0,x.jsxs)(`td`,{children:[(0,x.jsx)(`strong`,{children:`SPEC Checkout`}),(0,x.jsx)(`small`,{children:`há 12 min`})]}),(0,x.jsx)(`td`,{children:(0,x.jsx)(c,{tone:`success`,children:`Concluída`})}),(0,x.jsx)(`td`,{className:`number`,children:`82.410`}),(0,x.jsx)(`td`,{className:`number`,children:`R$ 18,42`})]}),(0,x.jsxs)(`tr`,{children:[(0,x.jsxs)(`td`,{children:[(0,x.jsx)(`strong`,{children:`Task Ajustar login`}),(0,x.jsx)(`small`,{children:`há 48 min`})]}),(0,x.jsx)(`td`,{children:(0,x.jsx)(c,{tone:`warning`,children:`Validando`})}),(0,x.jsx)(`td`,{className:`number`,children:`14.820`}),(0,x.jsx)(`td`,{className:`number`,children:`R$ 3,17`})]})]})]})})}function g(){return(0,x.jsxs)(`form`,{className:`filter-form`,onSubmit:e=>e.preventDefault(),children:[(0,x.jsxs)(p,{"aria-label":`Filtrar por status`,label:`Status`,defaultValue:`all`,children:[(0,x.jsx)(`option`,{value:`all`,children:`Todos os status`}),(0,x.jsx)(`option`,{value:`executing`,children:`Em execução`}),(0,x.jsx)(`option`,{value:`completed`,children:`Concluído`})]}),(0,x.jsx)(f,{label:`Buscar trabalho`,placeholder:`Task, SPEC ou PRD`,type:`search`}),(0,x.jsx)(s,{type:`submit`,children:`Aplicar filtros`}),(0,x.jsx)(s,{type:`reset`,variant:`ghost`,children:`Limpar`})]})}function _(){return(0,x.jsxs)(l,{children:[(0,x.jsxs)(`div`,{className:`chart-heading`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Tokens por execução`}),(0,x.jsx)(`strong`,{children:`Últimas 6 execuções`})]}),(0,x.jsx)(c,{tone:`accent`,children:`+12%`})]}),(0,x.jsx)(`div`,{"aria-label":`Gráfico de barras: uso de tokens cresce de 34 para 91 unidades nas últimas seis execuções.`,className:`bar-chart`,role:`img`,children:[34,56,43,78,62,91].map(e=>(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`bar-chart-column`,style:{"--bar-size":`${e}%`},children:(0,x.jsx)(`i`,{})},`bar-${e}`))}),(0,x.jsx)(`p`,{className:`chart-caption`,children:`O resumo textual preserva o significado fora da cor e da forma.`})]})}function v(){let[e,t]=(0,b.useState)(!1),n=(0,b.useRef)(null),r=(0,b.useRef)(null),o=(0,b.useRef)(null);return(0,b.useEffect)(()=>{if(!e)return;i(o.current);let s=e=>{a(e,Array.from(r.current?.querySelectorAll(`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`)??[]),document.activeElement,()=>t(!1))};return window.addEventListener(`keydown`,s),()=>{window.removeEventListener(`keydown`,s),i(n.current)}},[e]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(l,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Dialog / popup`}),(0,x.jsx)(`h3`,{children:`Detalhe com foco explícito`}),(0,x.jsx)(`p`,{children:`Use para decisões focadas, com título, descrição e saída sempre disponíveis.`}),(0,x.jsx)(s,{onClick:()=>t(!0),ref:n,children:`Abrir exemplo`})]}),e?(0,x.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:e=>{e.target===e.currentTarget&&t(!1)},children:(0,x.jsxs)(`section`,{"aria-describedby":`catalog-dialog-description`,"aria-labelledby":`catalog-dialog-title`,"aria-modal":`true`,className:`dialog-panel`,ref:r,role:`dialog`,children:[(0,x.jsxs)(`header`,{children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Task em verificação`}),(0,x.jsx)(`h3`,{id:`catalog-dialog-title`,children:`Revisar evidências`})]}),(0,x.jsx)(`button`,{"aria-label":`Fechar diálogo`,className:`dialog-close`,onClick:()=>t(!1),ref:o,type:`button`,children:`×`})]}),(0,x.jsx)(`p`,{id:`catalog-dialog-description`,children:`Confirme os artefatos associados antes de concluir a etapa.`}),(0,x.jsxs)(`footer`,{children:[(0,x.jsx)(s,{onClick:()=>t(!1),variant:`secondary`,children:`Voltar`}),(0,x.jsx)(s,{onClick:()=>t(!1),children:`Confirmar revisão`})]})]})}):null]})}function y(){return(0,x.jsxs)(`div`,{className:`state-grid`,children:[(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{"aria-busy":`true`,"aria-live":`polite`,className:`state-panel`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`loading-spinner`}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`h3`,{children:`Carregando projeção`}),(0,x.jsx)(`p`,{children:`Aguarde enquanto os dados locais são consolidados.`})]})]})}),(0,x.jsx)(m,{}),(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{className:`state-panel state-error`,role:`alert`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`state-symbol`,children:`!`}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`h3`,{children:`Não foi possível atualizar`}),(0,x.jsx)(`p`,{children:`Verifique a sessão e tente novamente sem perder os filtros.`}),(0,x.jsx)(s,{variant:`secondary`,children:`Tentar novamente`})]})]})})]})}var b,x,S=e((()=>{b=t(n(),1),o(),x=r(),s.__docgenInfo={description:``,methods:[],displayName:`Button`,props:{variant:{required:!1,tsType:{name:`union`,raw:`"primary" | "secondary" | "ghost"`,elements:[{name:`literal`,value:`"primary"`},{name:`literal`,value:`"secondary"`},{name:`literal`,value:`"ghost"`}]},description:``,defaultValue:{value:`"primary"`,computed:!1}},className:{defaultValue:{value:`""`,computed:!1},required:!1}}},c.__docgenInfo={description:``,methods:[],displayName:`Badge`,props:{children:{required:!0,tsType:{name:`ReactNode`},description:``},tone:{required:!1,tsType:{name:`union`,raw:`"neutral" | "accent" | "success" | "warning" | "error"`,elements:[{name:`literal`,value:`"neutral"`},{name:`literal`,value:`"accent"`},{name:`literal`,value:`"success"`},{name:`literal`,value:`"warning"`},{name:`literal`,value:`"error"`}]},description:``,defaultValue:{value:`"neutral"`,computed:!1}}}},l.__docgenInfo={description:``,methods:[],displayName:`Card`,props:{children:{required:!0,tsType:{name:`ReactNode`},description:``},accent:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}}}},u.__docgenInfo={description:``,methods:[],displayName:`EditorialHero`,props:{eyebrow:{required:!1,tsType:{name:`string`},description:``},title:{required:!0,tsType:{name:`string`},description:``},description:{required:!0,tsType:{name:`string`},description:``},children:{required:!1,tsType:{name:`ReactNode`},description:``}}},d.__docgenInfo={description:``,methods:[],displayName:`Metric`,props:{label:{required:!0,tsType:{name:`string`},description:``},value:{required:!0,tsType:{name:`string`},description:``},change:{required:!0,tsType:{name:`string`},description:``}}},f.__docgenInfo={description:``,methods:[],displayName:`Field`,props:{label:{required:!0,tsType:{name:`string`},description:``},hint:{required:!1,tsType:{name:`string`},description:``},error:{required:!1,tsType:{name:`string`},description:``}}},p.__docgenInfo={description:``,methods:[],displayName:`SelectField`,props:{label:{required:!0,tsType:{name:`string`},description:``},children:{required:!0,tsType:{name:`ReactNode`},description:``}}},m.__docgenInfo={description:``,methods:[],displayName:`EmptyState`},h.__docgenInfo={description:``,methods:[],displayName:`DataTable`},g.__docgenInfo={description:``,methods:[],displayName:`FilterForm`},_.__docgenInfo={description:``,methods:[],displayName:`ChartPanel`},v.__docgenInfo={description:``,methods:[],displayName:`DialogSpecimen`},y.__docgenInfo={description:``,methods:[],displayName:`StateGallery`}}));export{h as a,f as c,p as d,y as f,_ as i,g as l,s as n,v as o,S as p,l as r,u as s,c as t,d as u};
1
+ import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-BgEb-d5o.js";import{t as r}from"./jsx-runtime-f3rHp9ZU.js";function i(e){e?.focus()}function a(e,t,n,r){if(e.key===`Escape`){e.preventDefault(),r();return}if(e.key!==`Tab`||t.length===0)return;let i=t.indexOf(n),a=e.shiftKey?i<=0?t.length-1:i-1:i<0||i===t.length-1?0:i+1;e.preventDefault(),t[a]?.focus()}var o=e((()=>{}));function s({variant:e=`primary`,className:t=``,...n}){return(0,x.jsx)(`button`,{className:`button button-${e} ${t}`.trim(),type:`button`,...n})}function c({children:e,tone:t=`neutral`}){return(0,x.jsx)(`span`,{className:`badge badge-${t}`,children:e})}function l({children:e,accent:t=!1}){return(0,x.jsx)(`article`,{className:t?`card card-accent`:`card`,children:e})}function u({eyebrow:e,title:t,description:n,children:r}){return(0,x.jsxs)(`section`,{className:`editorial-hero`,children:[(0,x.jsxs)(`div`,{className:`editorial-hero-copy`,children:[e?(0,x.jsx)(`p`,{className:`eyebrow`,children:e}):null,(0,x.jsx)(`h2`,{children:t}),(0,x.jsx)(`p`,{children:n}),r?(0,x.jsx)(`div`,{className:`editorial-hero-actions`,children:r}):null]}),(0,x.jsx)(`div`,{"aria-hidden":`true`,className:`editorial-hero-orbit`})]})}function d({label:e,value:t,change:n}){return(0,x.jsxs)(l,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:e}),(0,x.jsx)(`strong`,{className:`metric-value`,children:t}),(0,x.jsx)(`p`,{className:`metric-change`,children:n})]})}function f({label:e,hint:t,error:n,...r}){let i=`${r.id??r.name??`field`}-description`;return(0,x.jsxs)(`label`,{className:`field`,children:[(0,x.jsx)(`span`,{children:e}),t?(0,x.jsx)(`small`,{children:t}):null,(0,x.jsx)(`input`,{"aria-describedby":t||n?i:void 0,"aria-invalid":!!n,...r}),n?(0,x.jsx)(`em`,{id:i,children:n}):t?(0,x.jsx)(`i`,{id:i,children:t}):null]})}function p({label:e,children:t,...n}){return(0,x.jsxs)(`label`,{className:`field`,children:[(0,x.jsx)(`span`,{children:e}),(0,x.jsx)(`select`,{...n,children:t})]})}function m(){return(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{className:`empty-state`,children:[(0,x.jsx)(`span`,{className:`empty-icon`,"aria-hidden":`true`,children:`◇`}),(0,x.jsx)(`h3`,{children:`Nenhum item ainda`}),(0,x.jsx)(`p`,{children:`Crie o primeiro registro para começar a acompanhar esta área.`}),(0,x.jsx)(s,{children:`Adicionar item`})]})})}function h(){return(0,x.jsx)(`div`,{className:`table-wrap`,children:(0,x.jsxs)(`table`,{children:[(0,x.jsx)(`caption`,{className:`sr-only`,children:`Exemplo de execuções recentes`}),(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:`Execução`}),(0,x.jsx)(`th`,{children:`Status`}),(0,x.jsx)(`th`,{className:`number`,children:`Tokens`}),(0,x.jsx)(`th`,{className:`number`,children:`Custo`})]})}),(0,x.jsxs)(`tbody`,{children:[(0,x.jsxs)(`tr`,{children:[(0,x.jsxs)(`td`,{children:[(0,x.jsx)(`strong`,{children:`SPEC Checkout`}),(0,x.jsx)(`small`,{children:`há 12 min`})]}),(0,x.jsx)(`td`,{children:(0,x.jsx)(c,{tone:`success`,children:`Concluída`})}),(0,x.jsx)(`td`,{className:`number`,children:`82.410`}),(0,x.jsx)(`td`,{className:`number`,children:`R$ 18,42`})]}),(0,x.jsxs)(`tr`,{children:[(0,x.jsxs)(`td`,{children:[(0,x.jsx)(`strong`,{children:`Task Ajustar login`}),(0,x.jsx)(`small`,{children:`há 48 min`})]}),(0,x.jsx)(`td`,{children:(0,x.jsx)(c,{tone:`warning`,children:`Validando`})}),(0,x.jsx)(`td`,{className:`number`,children:`14.820`}),(0,x.jsx)(`td`,{className:`number`,children:`R$ 3,17`})]})]})]})})}function g(){return(0,x.jsxs)(`form`,{className:`filter-form`,onSubmit:e=>e.preventDefault(),children:[(0,x.jsxs)(p,{"aria-label":`Filtrar por status`,label:`Status`,defaultValue:`all`,children:[(0,x.jsx)(`option`,{value:`all`,children:`Todos os status`}),(0,x.jsx)(`option`,{value:`executing`,children:`Em execução`}),(0,x.jsx)(`option`,{value:`completed`,children:`Concluído`})]}),(0,x.jsx)(f,{label:`Buscar trabalho`,placeholder:`Task, SPEC ou PRD`,type:`search`}),(0,x.jsx)(s,{type:`submit`,children:`Aplicar filtros`}),(0,x.jsx)(s,{type:`reset`,variant:`ghost`,children:`Limpar`})]})}function _(){return(0,x.jsxs)(l,{children:[(0,x.jsxs)(`div`,{className:`chart-heading`,children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Tokens por execução`}),(0,x.jsx)(`strong`,{children:`Últimas 6 execuções`})]}),(0,x.jsx)(c,{tone:`accent`,children:`+12%`})]}),(0,x.jsx)(`div`,{"aria-label":`Gráfico de barras: uso de tokens cresce de 34 para 91 unidades nas últimas seis execuções.`,className:`bar-chart`,role:`img`,children:[34,56,43,78,62,91].map(e=>(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`bar-chart-column`,style:{"--bar-size":`${e}%`},children:(0,x.jsx)(`i`,{})},`bar-${e}`))}),(0,x.jsx)(`p`,{className:`chart-caption`,children:`O resumo textual preserva o significado fora da cor e da forma.`})]})}function v(){let[e,t]=(0,b.useState)(!1),n=(0,b.useRef)(null),r=(0,b.useRef)(null),o=(0,b.useRef)(null);return(0,b.useEffect)(()=>{if(!e)return;i(o.current);let s=e=>{a(e,Array.from(r.current?.querySelectorAll(`button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])`)??[]),document.activeElement,()=>t(!1))};return window.addEventListener(`keydown`,s),()=>{window.removeEventListener(`keydown`,s),i(n.current)}},[e]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(l,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Dialog / popup`}),(0,x.jsx)(`h3`,{children:`Detalhe com foco explícito`}),(0,x.jsx)(`p`,{children:`Use para decisões focadas, com título, descrição e saída sempre disponíveis.`}),(0,x.jsx)(s,{onClick:()=>t(!0),ref:n,children:`Abrir exemplo`})]}),e?(0,x.jsx)(`div`,{className:`dialog-backdrop`,onMouseDown:e=>{e.target===e.currentTarget&&t(!1)},children:(0,x.jsxs)(`section`,{"aria-describedby":`catalog-dialog-description`,"aria-labelledby":`catalog-dialog-title`,"aria-modal":`true`,className:`dialog-panel`,ref:r,role:`dialog`,children:[(0,x.jsxs)(`header`,{children:[(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`p`,{className:`metric-label`,children:`Task em verificação`}),(0,x.jsx)(`h3`,{id:`catalog-dialog-title`,children:`Revisar evidências`})]}),(0,x.jsx)(`button`,{"aria-label":`Fechar diálogo`,className:`dialog-close`,onClick:()=>t(!1),ref:o,type:`button`,children:`×`})]}),(0,x.jsx)(`p`,{id:`catalog-dialog-description`,children:`Confirme os artefatos associados antes de concluir a etapa.`}),(0,x.jsxs)(`footer`,{children:[(0,x.jsx)(s,{onClick:()=>t(!1),variant:`secondary`,children:`Voltar`}),(0,x.jsx)(s,{onClick:()=>t(!1),children:`Confirmar revisão`})]})]})}):null]})}function y(){return(0,x.jsxs)(`div`,{className:`state-grid`,children:[(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{"aria-busy":`true`,"aria-live":`polite`,className:`state-panel`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`loading-spinner`}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`h3`,{children:`Carregando projeção`}),(0,x.jsx)(`p`,{children:`Aguarde enquanto os dados locais são consolidados.`})]})]})}),(0,x.jsx)(m,{}),(0,x.jsx)(l,{children:(0,x.jsxs)(`div`,{className:`state-panel state-error`,role:`alert`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`state-symbol`,children:`!`}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`h3`,{children:`Não foi possível atualizar`}),(0,x.jsx)(`p`,{children:`Verifique a sessão e tente novamente sem perder os filtros.`}),(0,x.jsx)(s,{variant:`secondary`,children:`Tentar novamente`})]})]})})]})}var b,x,S=e((()=>{b=t(n(),1),o(),x=r(),s.__docgenInfo={description:``,methods:[],displayName:`Button`,props:{variant:{required:!1,tsType:{name:`union`,raw:`"primary" | "secondary" | "ghost"`,elements:[{name:`literal`,value:`"primary"`},{name:`literal`,value:`"secondary"`},{name:`literal`,value:`"ghost"`}]},description:``,defaultValue:{value:`"primary"`,computed:!1}},className:{defaultValue:{value:`""`,computed:!1},required:!1}}},c.__docgenInfo={description:``,methods:[],displayName:`Badge`,props:{children:{required:!0,tsType:{name:`ReactNode`},description:``},tone:{required:!1,tsType:{name:`union`,raw:`"neutral" | "accent" | "success" | "warning" | "error"`,elements:[{name:`literal`,value:`"neutral"`},{name:`literal`,value:`"accent"`},{name:`literal`,value:`"success"`},{name:`literal`,value:`"warning"`},{name:`literal`,value:`"error"`}]},description:``,defaultValue:{value:`"neutral"`,computed:!1}}}},l.__docgenInfo={description:``,methods:[],displayName:`Card`,props:{children:{required:!0,tsType:{name:`ReactNode`},description:``},accent:{required:!1,tsType:{name:`boolean`},description:``,defaultValue:{value:`false`,computed:!1}}}},u.__docgenInfo={description:``,methods:[],displayName:`EditorialHero`,props:{eyebrow:{required:!1,tsType:{name:`string`},description:``},title:{required:!0,tsType:{name:`string`},description:``},description:{required:!0,tsType:{name:`string`},description:``},children:{required:!1,tsType:{name:`ReactNode`},description:``}}},d.__docgenInfo={description:``,methods:[],displayName:`Metric`,props:{label:{required:!0,tsType:{name:`string`},description:``},value:{required:!0,tsType:{name:`string`},description:``},change:{required:!0,tsType:{name:`string`},description:``}}},f.__docgenInfo={description:``,methods:[],displayName:`Field`,props:{label:{required:!0,tsType:{name:`string`},description:``},hint:{required:!1,tsType:{name:`string`},description:``},error:{required:!1,tsType:{name:`string`},description:``}}},p.__docgenInfo={description:``,methods:[],displayName:`SelectField`,props:{label:{required:!0,tsType:{name:`string`},description:``},children:{required:!0,tsType:{name:`ReactNode`},description:``}}},m.__docgenInfo={description:``,methods:[],displayName:`EmptyState`},h.__docgenInfo={description:``,methods:[],displayName:`DataTable`},g.__docgenInfo={description:``,methods:[],displayName:`FilterForm`},_.__docgenInfo={description:``,methods:[],displayName:`ChartPanel`},v.__docgenInfo={description:``,methods:[],displayName:`DialogSpecimen`},y.__docgenInfo={description:``,methods:[],displayName:`StateGallery`}}));export{h as a,f as c,p as d,y as f,_ as i,g as l,s as n,v as o,S as p,l as r,u as s,c as t,d as u};
@@ -0,0 +1 @@
1
+ import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-BgEb-d5o.js";import{n as r,p as i,r as a,t as o}from"./Primitives-n1UqmNvo.js";import{t as s}from"./jsx-runtime-f3rHp9ZU.js";function c({fixture:e=d[1]}){let[t,n]=(0,l.useState)(!1),i=(0,l.useRef)(null),s=(0,l.useRef)(null),c=(0,l.useId)();return(0,l.useEffect)(()=>{if(!t)return;let e=i.current,n=document.body.style.overflow;return e?.showModal(),document.body.style.overflow=`hidden`,()=>{e?.close(),document.body.style.overflow=n,s.current?.focus()}},[t]),(0,u.jsxs)(a,{children:[(0,u.jsx)(`h3`,{children:e.name}),(0,u.jsx)(`p`,{children:`Resultado da reconciliação manual`}),(0,u.jsxs)(`p`,{children:[(0,u.jsxs)(o,{children:[e.reconciled,` reconciliados`]}),` `,(0,u.jsxs)(o,{tone:`warning`,children:[e.blocked,` bloqueados`]}),` `,(0,u.jsxs)(o,{children:[e.active,` não reconciliados`]})]}),(0,u.jsx)(r,{ref:s,onClick:()=>n(!0),children:`Veja mais`}),t?(0,u.jsxs)(`dialog`,{ref:i,"aria-labelledby":c,onCancel:e=>{e.preventDefault(),n(!1)},style:{margin:0,maxWidth:`none`,maxHeight:`none`,width:`100vw`,height:`100dvh`,boxSizing:`border-box`,padding:`var(--space-lg, 24px)`,background:`var(--surface)`,color:`var(--text)`},children:[(0,u.jsxs)(`header`,{style:{display:`flex`,justifyContent:`space-between`,gap:16},children:[(0,u.jsx)(`h2`,{id:c,children:`Detalhes da reconciliação`}),(0,u.jsx)(r,{variant:`secondary`,onClick:()=>n(!1),children:`Fechar detalhes`})]}),(0,u.jsxs)(`div`,{style:{overflow:`auto`,height:`calc(100% - 100px)`,overflowWrap:`anywhere`},children:[(0,u.jsx)(`p`,{children:`Um item bloqueado também pode ter sido reconciliado. Invocações ainda em execução são preservadas.`}),(0,u.jsxs)(`h3`,{children:[`Bloqueados (`,e.blocked,`)`]}),(0,u.jsx)(`ul`,{children:Array.from({length:e.blocked},(e,t)=>`TASK-EXEMPLO-${String(t+1).padStart(3,`0`)}`).map(e=>(0,u.jsxs)(`li`,{children:[(0,u.jsx)(`code`,{children:e}),(0,u.jsx)(`p`,{children:`Sem orquestrador ativo após o prazo de reconciliação. A conclusão exige evidências.`})]},e))}),(0,u.jsxs)(`h3`,{children:[`Não reconciliados (`,e.active,`)`]}),(0,u.jsx)(`p`,{children:e.active?`A invocação ainda está em execução e foi preservada.`:`Nenhum item.`})]})]}):null]})}var l,u,d,f=e((()=>{l=t(n(),1),i(),u=s(),d=[{name:`Sem itens`,reconciled:0,blocked:0,active:0},{name:`Resultado com bloqueios`,reconciled:12,blocked:12,active:2},{name:`Lista extensa`,reconciled:120,blocked:80,active:2}],c.__docgenInfo={description:`Native catalog adapter: the catalog has no dependency on Dashboard apps.`,methods:[],displayName:`ReconciliationSpecimen`,props:{fixture:{required:!1,tsType:{name:`unknown[number]`,raw:`(typeof reconciliationFixtures)[number]`},description:``,defaultValue:{value:`reconciliationFixtures[1]`,computed:!0}}}}}));export{f as n,d as r,c as t};
@@ -0,0 +1,13 @@
1
+ import{i as e}from"./preload-helper-BdFrVu1K.js";import{n as t,r as n,t as r}from"./ReconciliationSpecimen-BJnfyyG3.js";var i,a,o,s,c;e((()=>{t(),i={title:`Components/Reconciliação manual`,component:r},a={args:{fixture:n[0]}},o={args:{fixture:n[1]}},s={args:{fixture:n[2]}},a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
2
+ args: {
3
+ fixture: reconciliationFixtures[0]
4
+ }
5
+ }`,...a.parameters?.docs?.source}}},o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
6
+ args: {
7
+ fixture: reconciliationFixtures[1]
8
+ }
9
+ }`,...o.parameters?.docs?.source}}},s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
10
+ args: {
11
+ fixture: reconciliationFixtures[2]
12
+ }
13
+ }`,...s.parameters?.docs?.source}}},c=[`Empty`,`Blocked`,`LongList`]}))();export{o as Blocked,a as Empty,s as LongList,c as __namedExportsOrder,i as default};
@@ -1,4 +1,4 @@
1
- import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n,c as r,d as i,f as a}from"./iframe-CTWGZcEe.js";import{T as o,a as s,g as c,u as l,w as u}from"./theming-fbSD9ZLF.js";import{n as d,t as f}from"./chunk-DRQKCCAG-DZBcXL-p.js";import{a as p}from"./react-18-B9_a4mHb.js";import{n as m,t as h}from"./chunk-242VQQM5-DB2JSNUA.js";function g(e){return e?(e.nodeName||``).toLowerCase():null}function _(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof _(e).Element||e instanceof Element}function y(e){return e instanceof _(e).HTMLElement||e instanceof HTMLElement}function b(e){return typeof ShadowRoot>`u`?!1:e instanceof _(e).ShadowRoot||e instanceof ShadowRoot}function x(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!y(i)||!g(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function S(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!y(r)||!g(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}function C(e){return e.split(`-`)[0]}function w(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(w())}function E(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&y(e)&&(i=e.offsetWidth>0&&Z(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Z(r.height)/e.offsetHeight||1);var o=(v(e)?_(e):window).visualViewport,s=!T()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function D(e){var t=E(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function k(e){return _(e).getComputedStyle(e)}function A(e){return[`table`,`td`,`th`].indexOf(g(e))>=0}function j(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return g(e)===`html`?e:e.assignedSlot||e.parentNode||(b(e)?e.host:null)||j(e)}function N(e){return!y(e)||k(e).position===`fixed`?null:e.offsetParent}function P(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&y(e)&&k(e).position===`fixed`)return null;var n=M(e);for(b(n)&&(n=n.host);y(n)&&[`html`,`body`].indexOf(g(n))<0;){var r=k(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function F(e){for(var t=_(e),n=N(e);n&&A(n)&&k(n).position===`static`;)n=N(n);return n&&(g(n)===`html`||g(n)===`body`&&k(n).position===`static`)?t:n||P(e)||t}function ee(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function I(e,t,n){return X(e,gt(t,n))}function te(e,t,n){var r=I(e,t,n);return r>n?n:r}function ne(){return{top:0,right:0,bottom:0,left:0}}function re(e){return Object.assign({},ne(),e)}function ie(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ae(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=C(n.placement),c=ee(s),l=[J,q].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=_t(i.padding,n),d=D(a),f=c===`y`?G:J,p=c===`y`?K:q,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=F(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=I(y,x,b),w=c;n.modifiersData[r]=(t={},t[w]=S,t.centerOffset=S-x,t)}}function oe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||O(t.elements.popper,r)&&(t.elements.arrow=r))}function L(e){return e.split(`-`)[1]}function se(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Z(n*i)/i||0,y:Z(r*i)/i||0}}function ce(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=o.hasOwnProperty(`x`),y=o.hasOwnProperty(`y`),b=J,x=G,S=window;if(l){var C=F(n),w=`clientHeight`,T=`clientWidth`;if(C===_(n)&&(C=j(n),k(C).position!==`static`&&s===`absolute`&&(w=`scrollHeight`,T=`scrollWidth`)),C=C,i===G||(i===J||i===q)&&a===st){x=K;var E=d&&C===S&&S.visualViewport?S.visualViewport.height:C[w];h-=E-r.height,h*=c?1:-1}if(i===J||(i===G||i===K)&&a===st){b=q;var D=d&&C===S&&S.visualViewport?S.visualViewport.width:C[T];p-=D-r.width,p*=c?1:-1}}var O=Object.assign({position:s},l&&yt),A=u===!0?se({x:p,y:h},_(n)):{x:p,y:h};if(p=A.x,h=A.y,c){var M;return Object.assign({},O,(M={},M[x]=y?`0`:``,M[b]=v?`0`:``,M.transform=(S.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,M))}return Object.assign({},O,(t={},t[x]=y?h+`px`:``,t[b]=v?p+`px`:``,t.transform=``,t))}function le(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:C(t.placement),variation:L(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ce(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}function ue(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=_(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,xt)}),s&&c.addEventListener(`resize`,n.update,xt),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,xt)}),s&&c.removeEventListener(`resize`,n.update,xt)}}function R(e){return e.replace(/left|right|bottom|top/g,function(e){return Ct[e]})}function de(e){return e.replace(/start|end/g,function(e){return wt[e]})}function z(e){var t=_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fe(e){return E(j(e)).left+z(e).scrollLeft}function pe(e,t){var n=_(e),r=j(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=T();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+fe(e),y:c}}function me(e){var t=j(e),n=z(e),r=e.ownerDocument?.body,i=X(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=X(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+fe(e),s=-n.scrollTop;return k(r||t).direction===`rtl`&&(o+=X(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function he(e){var t=k(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ge(e){return[`html`,`body`,`#document`].indexOf(g(e))>=0?e.ownerDocument.body:y(e)&&he(e)?e:ge(M(e))}function B(e,t){t===void 0&&(t=[]);var n=ge(e),r=n===e.ownerDocument?.body,i=_(n),a=r?[i].concat(i.visualViewport||[],he(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(B(M(a)))}function _e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ve(e,t){var n=E(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ye(e,t,n){return t===lt?_e(pe(e,n)):v(t)?ve(t,n):_e(me(j(e)))}function be(e){var t=B(M(e)),n=[`absolute`,`fixed`].indexOf(k(e).position)>=0&&y(e)?F(e):e;return v(n)?t.filter(function(e){return v(e)&&O(e,n)&&g(e)!==`body`}):[]}function V(e,t,n,r){var i=t===`clippingParents`?be(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=ye(e,n,r);return t.top=X(i.top,t.top),t.right=gt(i.right,t.right),t.bottom=gt(i.bottom,t.bottom),t.left=X(i.left,t.left),t},ye(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function H(e){var t=e.reference,n=e.element,r=e.placement,i=r?C(r):null,a=r?L(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case G:c={x:o,y:t.y-n.height};break;case K:c={x:o,y:t.y+t.height};break;case q:c={x:t.x+t.width,y:s};break;case J:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ee(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Y:c[l]=c[l]-(t[u]/2-n[u]/2);break;case st:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function xe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?ct:s,l=n.rootBoundary,u=l===void 0?lt:l,d=n.elementContext,f=d===void 0?ut:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=re(typeof g==`number`?ie(g,ot):g),y=f===ut?dt:ut,b=e.rects.popper,x=e.elements[m?y:f],S=V(v(x)?x:x.contextElement||j(e.elements.popper),c,u,o),C=E(e.elements.reference),w=H({reference:C,element:b,strategy:`absolute`,placement:i}),T=_e(Object.assign({},b,w)),D=f===ut?T:C,O={top:S.top-D.top+_.top,bottom:D.bottom-S.bottom+_.bottom,left:S.left-D.left+_.left,right:D.right-S.right+_.right},k=e.modifiersData.offset;if(f===ut&&k){var A=k[i];Object.keys(O).forEach(function(e){var t=[q,K].indexOf(e)>=0?1:-1,n=[G,K].indexOf(e)>=0?`y`:`x`;O[e]+=A[n]*t})}return O}function Se(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?pt:c,u=L(r),d=u?s?ft:ft.filter(function(e){return L(e)===u}):ot,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=xe(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[C(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Ce(e){if(C(e)===at)return[];var t=R(e);return[de(e),t,de(t)]}function we(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=C(g)===g,v=c||(_||!m?[R(g)]:Ce(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(C(n)===at?Se(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,w=!0,T=y[0],E=0;E<y.length;E++){var D=y[E],O=C(D),k=L(D)===Y,A=[G,K].indexOf(O)>=0,j=A?`width`:`height`,M=xe(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),N=A?k?q:J:k?K:G;b[j]>x[j]&&(N=R(N));var P=R(N),F=[];if(a&&F.push(M[O]<=0),s&&F.push(M[N]<=0,M[P]<=0),F.every(function(e){return e})){T=D,w=!1;break}S.set(D,F)}if(w)for(var ee=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,`break`},te=ee;te>0&&I(te)!==`break`;te--);t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}function Te(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ee(e){return[G,q,K,J].some(function(t){return e[t]>=0})}function De(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=xe(t,{elementContext:`reference`}),s=xe(t,{altBoundary:!0}),c=Te(o,r),l=Te(s,i,a),u=Ee(c),d=Ee(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}function Oe(e,t,n){var r=C(e),i=[J,G].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[J,q].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function ke(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=pt.reduce(function(e,n){return e[n]=Oe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}function Ae(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}function je(e){return e===`x`?`y`:`x`}function Me(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=xe(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=C(t.placement),v=L(t.placement),y=!v,b=ee(_),x=je(b),S=t.modifiersData.popperOffsets,w=t.rects.reference,T=t.rects.popper,E=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof E==`number`?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(a){var j=b===`y`?G:J,M=b===`y`?K:q,N=b===`y`?`height`:`width`,P=S[b],re=P+g[j],ie=P-g[M],ae=p?-T[N]/2:0,oe=v===Y?w[N]:T[N],se=v===Y?-T[N]:-w[N],ce=t.elements.arrow,le=p&&ce?D(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ne(),R=ue[j],de=ue[M],z=I(0,w[N],le[N]),fe=y?w[N]/2-ae-z-R-O.mainAxis:oe-z-R-O.mainAxis,pe=y?-w[N]/2+ae+z+de+O.mainAxis:se+z+de+O.mainAxis,me=t.elements.arrow&&F(t.elements.arrow),he=me?b===`y`?me.clientTop||0:me.clientLeft||0:0,ge=k?.[b]??0,B=P+fe-ge-he,_e=P+pe-ge,ve=I(p?gt(re,B):re,P,p?X(ie,_e):ie);S[b]=ve,A[b]=ve-P}if(s){var ye=b===`x`?G:J,be=b===`x`?K:q,V=S[x],H=x===`y`?`height`:`width`,Se=V+g[ye],Ce=V-g[be],we=[G,J].indexOf(_)!==-1,Te=k?.[x]??0,Ee=we?Se:V-w[H]-T[H]-Te+O.altAxis,De=we?V+w[H]+T[H]-Te-O.altAxis:Ce,Oe=p&&we?te(Ee,V,De):I(p?Ee:Se,V,p?De:Ce);S[x]=Oe,A[x]=Oe-V}t.modifiersData[r]=A}}function Ne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pe(e){return e===_(e)||!y(e)?z(e):Ne(e)}function Fe(e){var t=e.getBoundingClientRect(),n=Z(t.width)/e.offsetWidth||1,r=Z(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ie(e,t,n){n===void 0&&(n=!1);var r=y(t),i=y(t)&&Fe(t),a=j(t),o=E(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((g(t)!==`body`||he(a))&&(s=Pe(t)),y(t)?(c=E(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=fe(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Le(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Re(e){var t=Le(e);return mt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function ze(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Be(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}function Ve(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function He(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?At:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},At,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:v(e)?B(e):e.contextElement?B(e.contextElement):[],popper:B(t)};var s=Re(Be([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ve(t,n)){i.rects={reference:Ie(t,F(n),i.options.strategy===`fixed`),popper:D(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:ze(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ve(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}function Ue(e){var t=W.useRef(e);return t.current=e,W.useCallback(function(){return t.current},[])}function We(e){var t=e.initial,n=e.value,r=e.onChange,i=r===void 0?Ft:r;if(t===void 0&&n===void 0)throw TypeError(`Either "value" or "initial" variable must be set. Now both are undefined`);var a=W.useState(t),o=a[0],s=a[1],c=Ue(o),l=W.useCallback(function(e){var t=c(),n=typeof e==`function`?e(t):e;typeof n.persist==`function`&&n.persist(),s(n),typeof i==`function`&&i(n)},[c,i]),u=n!==void 0;return[u?n:o,u?i:l]}function Ge(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}function Ke(e,t){var n,r,i;e===void 0&&(e={}),t===void 0&&(t={});var a=Object.keys(Rt).reduce(function(e,t){var n;return u({},e,(n={},n[t]=e[t]===void 0?Rt[t]:e[t],n))},e),o=W.useMemo(function(){return[{name:`offset`,options:{offset:a.offset}}]},Array.isArray(a.offset)?a.offset:[]),s=u({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||o}),c=W.useState(null),l=c[0],d=c[1],f=W.useState(null),p=f[0],m=f[1],g=We({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),_=g[0],v=g[1],y=W.useRef();W.useEffect(function(){return function(){return clearTimeout(y.current)}},[]);var b=Pt(a.followCursor?Lt:l,p,s),x=b.styles,S=b.attributes,C=h(b,It),w=C.update,T=Ue({visible:_,triggerRef:l,tooltipRef:p,finalConfig:a}),E=W.useCallback(function(e){return Array.isArray(a.trigger)?a.trigger.includes(e):a.trigger===e},Array.isArray(a.trigger)?a.trigger:[a.trigger]),D=W.useCallback(function(){clearTimeout(y.current),y.current=window.setTimeout(function(){return v(!1)},a.delayHide)},[a.delayHide,v]),O=W.useCallback(function(){clearTimeout(y.current),y.current=window.setTimeout(function(){return v(!0)},a.delayShow)},[a.delayShow,v]),k=W.useCallback(function(){T().visible?D():O()},[T,D,O]);W.useEffect(function(){if(T().finalConfig.closeOnOutsideClick){var e=function(e){var t,n=T(),r=n.tooltipRef,i=n.triggerRef,a=(e.composedPath==null||(t=e.composedPath())==null?void 0:t[0])||e.target;a instanceof Node&&r!=null&&i!=null&&!r.contains(a)&&!i.contains(a)&&D()};return document.addEventListener(`mousedown`,e),function(){return document.removeEventListener(`mousedown`,e)}}},[T,D]),W.useEffect(function(){if(!(l==null||!E(`click`)))return l.addEventListener(`click`,k),function(){return l.removeEventListener(`click`,k)}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`double-click`)))return l.addEventListener(`dblclick`,k),function(){return l.removeEventListener(`dblclick`,k)}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`right-click`))){var e=function(e){e.preventDefault(),k()};return l.addEventListener(`contextmenu`,e),function(){return l.removeEventListener(`contextmenu`,e)}}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`focus`)))return l.addEventListener(`focus`,O),l.addEventListener(`blur`,D),function(){l.removeEventListener(`focus`,O),l.removeEventListener(`blur`,D)}},[l,E,O,D]),W.useEffect(function(){if(!(l==null||!E(`hover`)))return l.addEventListener(`mouseenter`,O),l.addEventListener(`mouseleave`,D),function(){l.removeEventListener(`mouseenter`,O),l.removeEventListener(`mouseleave`,D)}},[l,E,O,D]),W.useEffect(function(){if(!(p==null||!E(`hover`)||!T().finalConfig.interactive))return p.addEventListener(`mouseenter`,O),p.addEventListener(`mouseleave`,D),function(){p.removeEventListener(`mouseenter`,O),p.removeEventListener(`mouseleave`,D)}},[p,E,O,D,T]);var A=C==null||(n=C.state)==null||(r=n.modifiersData)==null||(i=r.hide)==null?void 0:i.isReferenceHidden;return W.useEffect(function(){a.closeOnTriggerHidden&&A&&D()},[a.closeOnTriggerHidden,D,A]),W.useEffect(function(){if(!a.followCursor||l==null)return;function e(e){var t=e.clientX,n=e.clientY;Lt.getBoundingClientRect=Ge(t,n),w?.()}return l.addEventListener(`mousemove`,e),function(){return l.removeEventListener(`mousemove`,e)}},[a.followCursor,l,w]),W.useEffect(function(){if(!(p==null||w==null||a.mutationObserverOptions==null)){var e=new MutationObserver(w);return e.observe(p,a.mutationObserverOptions),function(){return e.disconnect()}}},[a.mutationObserverOptions,p,w]),u({getArrowProps:function(e){return e===void 0&&(e={}),u({},e,S.arrow,{style:u({},e.style,x.arrow),"data-popper-arrow":!0})},getTooltipProps:function(e){return e===void 0&&(e={}),u({},e,{style:u({},e.style,x.popper)},S.popper,{"data-popper-interactive":a.interactive})},setTooltipRef:m,setTriggerRef:d,tooltipRef:p,triggerRef:l,visible:_},C)}var U,qe,W,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,G,K,q,J,at,ot,Y,st,ct,lt,ut,dt,ft,pt,mt,ht,X,gt,Z,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Q,$,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt;e((()=>{m(),o(),f(),a(),U=t(n(),1),qe=t(p(),1),W=t(n(),1),n(),Je=t(n(),1),Ye=t(n(),1),Xe=t(n(),1),Ze=t(p(),1),n(),s(),Qe=r({"../../node_modules/react-fast-compare/index.js"(e,t){var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}}}),$e=r({"../../node_modules/warning/warning.js"(e,t){t.exports=function(){}}}),et=i(d(),1),{deprecate:tt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:nt}=__STORYBOOK_MODULE_GLOBAL__,Je.createContext(),Je.createContext(),rt=function(e){return e.reduce(function(e,t){var n=t[0];return e[n]=t[1],e},{})},it=typeof window<`u`&&window.document&&window.document.createElement?Ye.useLayoutEffect:Ye.useEffect,G=`top`,K=`bottom`,q=`right`,J=`left`,at=`auto`,ot=[G,K,q,J],Y=`start`,st=`end`,ct=`clippingParents`,lt=`viewport`,ut=`popper`,dt=`reference`,ft=ot.reduce(function(e,t){return e.concat([t+`-`+Y,t+`-`+st])},[]),pt=[].concat(ot,[at]).reduce(function(e,t){return e.concat([t,t+`-`+Y,t+`-`+st])},[]),mt=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`],ht={name:`applyStyles`,enabled:!0,phase:`write`,fn:x,effect:S,requires:[`computeStyles`]},X=Math.max,gt=Math.min,Z=Math.round,_t=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,re(typeof e==`number`?ie(e,ot):e)},vt={name:`arrow`,enabled:!0,phase:`main`,fn:ae,effect:oe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]},yt={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`},bt={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:le,data:{}},xt={passive:!0},St={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:ue,data:{}},Ct={left:`right`,right:`left`,bottom:`top`,top:`bottom`},wt={start:`end`,end:`start`},Tt={name:`flip`,enabled:!0,phase:`main`,fn:we,requiresIfExists:[`offset`],data:{_skip:!1}},Et={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:De},Dt={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:ke},Ot={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Ae,data:{}},kt={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Me,requiresIfExists:[`offset`]},At={placement:`bottom`,modifiers:[],strategy:`absolute`},He(),He({defaultModifiers:[St,Ot,bt,ht]}),jt=He({defaultModifiers:[St,Ot,bt,ht,Dt,Tt,kt,vt,Et]}),Mt=i(Qe()),Nt=[],Pt=function(e,t,n){n===void 0&&(n={});var r=Xe.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||`bottom`,strategy:n.strategy||`absolute`,modifiers:n.modifiers||Nt},a=Xe.useState({styles:{popper:{position:i.strategy,left:`0`,top:`0`},arrow:{position:`absolute`}},attributes:{}}),o=a[0],s=a[1],c=Xe.useMemo(function(){return{name:`updateState`,enabled:!0,phase:`write`,fn:function(e){var t=e.state,n=Object.keys(t.elements);Ze.flushSync(function(){s({styles:rt(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:rt(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:[`computeStyles`]}},[]),l=Xe.useMemo(function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:`applyStyles`,enabled:!1}])};return(0,Mt.default)(r.current,e)?r.current||e:(r.current=e,e)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),u=Xe.useRef();return it(function(){u.current&&u.current.setOptions(l)},[l]),it(function(){if(!(e==null||t==null)){var r=(n.createPopper||jt)(e,t,l);return u.current=r,function(){r.destroy(),u.current=null}}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:o.styles,attributes:o.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},i($e()),Ft=function(){},It=[`styles`,`attributes`],Lt={getBoundingClientRect:Ge()},Rt={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:`hover`},{document:zt}=nt,Q=(0,et.default)(1e3)((e,t,n,r=0)=>t.split(`-`)[0]===e?n:r),$=8,Bt=l.div({position:`absolute`,borderStyle:`solid`},({placement:e})=>{let t=0,n=0;switch(!0){case e.startsWith(`left`)||e.startsWith(`right`):n=8;break;case e.startsWith(`top`)||e.startsWith(`bottom`):t=8;break;default:}return{transform:`translate3d(${t}px, ${n}px, 0px)`}},({theme:e,color:t,placement:n})=>({bottom:`${Q(`top`,n,`${$*-1}px`,`auto`)}`,top:`${Q(`bottom`,n,`${$*-1}px`,`auto`)}`,right:`${Q(`left`,n,`${$*-1}px`,`auto`)}`,left:`${Q(`right`,n,`${$*-1}px`,`auto`)}`,borderBottomWidth:`${Q(`top`,n,`0`,$)}px`,borderTopWidth:`${Q(`bottom`,n,`0`,$)}px`,borderRightWidth:`${Q(`left`,n,`0`,$)}px`,borderLeftWidth:`${Q(`right`,n,`0`,$)}px`,borderTopColor:Q(`top`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderBottomColor:Q(`bottom`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderLeftColor:Q(`left`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderRightColor:Q(`right`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`)})),Vt=l.div(({hidden:e})=>({display:e?`none`:`inline-block`,zIndex:2147483647,colorScheme:`light dark`}),({theme:e,color:t,hasChrome:n})=>n?{background:t&&e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,filter:`
1
+ import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n,c as r,d as i,f as a}from"./iframe-BgEb-d5o.js";import{T as o,a as s,g as c,u as l,w as u}from"./theming-BGScn6Yf.js";import{n as d,t as f}from"./chunk-DRQKCCAG-Cn4_bvJJ.js";import{a as p}from"./react-18-BZ-Ne01c.js";import{n as m,t as h}from"./chunk-242VQQM5-DB2JSNUA.js";function g(e){return e?(e.nodeName||``).toLowerCase():null}function _(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof _(e).Element||e instanceof Element}function y(e){return e instanceof _(e).HTMLElement||e instanceof HTMLElement}function b(e){return typeof ShadowRoot>`u`?!1:e instanceof _(e).ShadowRoot||e instanceof ShadowRoot}function x(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!y(i)||!g(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function S(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!y(r)||!g(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}function C(e){return e.split(`-`)[0]}function w(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(w())}function E(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&y(e)&&(i=e.offsetWidth>0&&Z(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Z(r.height)/e.offsetHeight||1);var o=(v(e)?_(e):window).visualViewport,s=!T()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function D(e){var t=E(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function k(e){return _(e).getComputedStyle(e)}function A(e){return[`table`,`td`,`th`].indexOf(g(e))>=0}function j(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return g(e)===`html`?e:e.assignedSlot||e.parentNode||(b(e)?e.host:null)||j(e)}function N(e){return!y(e)||k(e).position===`fixed`?null:e.offsetParent}function P(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&y(e)&&k(e).position===`fixed`)return null;var n=M(e);for(b(n)&&(n=n.host);y(n)&&[`html`,`body`].indexOf(g(n))<0;){var r=k(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function F(e){for(var t=_(e),n=N(e);n&&A(n)&&k(n).position===`static`;)n=N(n);return n&&(g(n)===`html`||g(n)===`body`&&k(n).position===`static`)?t:n||P(e)||t}function ee(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function I(e,t,n){return X(e,gt(t,n))}function te(e,t,n){var r=I(e,t,n);return r>n?n:r}function ne(){return{top:0,right:0,bottom:0,left:0}}function re(e){return Object.assign({},ne(),e)}function ie(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ae(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=C(n.placement),c=ee(s),l=[J,q].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=_t(i.padding,n),d=D(a),f=c===`y`?G:J,p=c===`y`?K:q,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=F(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=I(y,x,b),w=c;n.modifiersData[r]=(t={},t[w]=S,t.centerOffset=S-x,t)}}function oe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||O(t.elements.popper,r)&&(t.elements.arrow=r))}function L(e){return e.split(`-`)[1]}function se(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Z(n*i)/i||0,y:Z(r*i)/i||0}}function ce(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=o.hasOwnProperty(`x`),y=o.hasOwnProperty(`y`),b=J,x=G,S=window;if(l){var C=F(n),w=`clientHeight`,T=`clientWidth`;if(C===_(n)&&(C=j(n),k(C).position!==`static`&&s===`absolute`&&(w=`scrollHeight`,T=`scrollWidth`)),C=C,i===G||(i===J||i===q)&&a===st){x=K;var E=d&&C===S&&S.visualViewport?S.visualViewport.height:C[w];h-=E-r.height,h*=c?1:-1}if(i===J||(i===G||i===K)&&a===st){b=q;var D=d&&C===S&&S.visualViewport?S.visualViewport.width:C[T];p-=D-r.width,p*=c?1:-1}}var O=Object.assign({position:s},l&&yt),A=u===!0?se({x:p,y:h},_(n)):{x:p,y:h};if(p=A.x,h=A.y,c){var M;return Object.assign({},O,(M={},M[x]=y?`0`:``,M[b]=v?`0`:``,M.transform=(S.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,M))}return Object.assign({},O,(t={},t[x]=y?h+`px`:``,t[b]=v?p+`px`:``,t.transform=``,t))}function le(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:C(t.placement),variation:L(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ce(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}function ue(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=_(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,xt)}),s&&c.addEventListener(`resize`,n.update,xt),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,xt)}),s&&c.removeEventListener(`resize`,n.update,xt)}}function R(e){return e.replace(/left|right|bottom|top/g,function(e){return Ct[e]})}function de(e){return e.replace(/start|end/g,function(e){return wt[e]})}function z(e){var t=_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fe(e){return E(j(e)).left+z(e).scrollLeft}function pe(e,t){var n=_(e),r=j(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=T();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+fe(e),y:c}}function me(e){var t=j(e),n=z(e),r=e.ownerDocument?.body,i=X(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=X(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+fe(e),s=-n.scrollTop;return k(r||t).direction===`rtl`&&(o+=X(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function he(e){var t=k(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ge(e){return[`html`,`body`,`#document`].indexOf(g(e))>=0?e.ownerDocument.body:y(e)&&he(e)?e:ge(M(e))}function B(e,t){t===void 0&&(t=[]);var n=ge(e),r=n===e.ownerDocument?.body,i=_(n),a=r?[i].concat(i.visualViewport||[],he(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(B(M(a)))}function _e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ve(e,t){var n=E(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ye(e,t,n){return t===lt?_e(pe(e,n)):v(t)?ve(t,n):_e(me(j(e)))}function be(e){var t=B(M(e)),n=[`absolute`,`fixed`].indexOf(k(e).position)>=0&&y(e)?F(e):e;return v(n)?t.filter(function(e){return v(e)&&O(e,n)&&g(e)!==`body`}):[]}function V(e,t,n,r){var i=t===`clippingParents`?be(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=ye(e,n,r);return t.top=X(i.top,t.top),t.right=gt(i.right,t.right),t.bottom=gt(i.bottom,t.bottom),t.left=X(i.left,t.left),t},ye(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function H(e){var t=e.reference,n=e.element,r=e.placement,i=r?C(r):null,a=r?L(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case G:c={x:o,y:t.y-n.height};break;case K:c={x:o,y:t.y+t.height};break;case q:c={x:t.x+t.width,y:s};break;case J:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ee(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Y:c[l]=c[l]-(t[u]/2-n[u]/2);break;case st:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function xe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?ct:s,l=n.rootBoundary,u=l===void 0?lt:l,d=n.elementContext,f=d===void 0?ut:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=re(typeof g==`number`?ie(g,ot):g),y=f===ut?dt:ut,b=e.rects.popper,x=e.elements[m?y:f],S=V(v(x)?x:x.contextElement||j(e.elements.popper),c,u,o),C=E(e.elements.reference),w=H({reference:C,element:b,strategy:`absolute`,placement:i}),T=_e(Object.assign({},b,w)),D=f===ut?T:C,O={top:S.top-D.top+_.top,bottom:D.bottom-S.bottom+_.bottom,left:S.left-D.left+_.left,right:D.right-S.right+_.right},k=e.modifiersData.offset;if(f===ut&&k){var A=k[i];Object.keys(O).forEach(function(e){var t=[q,K].indexOf(e)>=0?1:-1,n=[G,K].indexOf(e)>=0?`y`:`x`;O[e]+=A[n]*t})}return O}function Se(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?pt:c,u=L(r),d=u?s?ft:ft.filter(function(e){return L(e)===u}):ot,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=xe(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[C(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Ce(e){if(C(e)===at)return[];var t=R(e);return[de(e),t,de(t)]}function we(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=C(g)===g,v=c||(_||!m?[R(g)]:Ce(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(C(n)===at?Se(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,w=!0,T=y[0],E=0;E<y.length;E++){var D=y[E],O=C(D),k=L(D)===Y,A=[G,K].indexOf(O)>=0,j=A?`width`:`height`,M=xe(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),N=A?k?q:J:k?K:G;b[j]>x[j]&&(N=R(N));var P=R(N),F=[];if(a&&F.push(M[O]<=0),s&&F.push(M[N]<=0,M[P]<=0),F.every(function(e){return e})){T=D,w=!1;break}S.set(D,F)}if(w)for(var ee=m?3:1,I=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return T=t,`break`},te=ee;te>0&&I(te)!==`break`;te--);t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}function Te(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ee(e){return[G,q,K,J].some(function(t){return e[t]>=0})}function De(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=xe(t,{elementContext:`reference`}),s=xe(t,{altBoundary:!0}),c=Te(o,r),l=Te(s,i,a),u=Ee(c),d=Ee(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}function Oe(e,t,n){var r=C(e),i=[J,G].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[J,q].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function ke(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=pt.reduce(function(e,n){return e[n]=Oe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}function Ae(e){var t=e.state,n=e.name;t.modifiersData[n]=H({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}function je(e){return e===`x`?`y`:`x`}function Me(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=xe(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=C(t.placement),v=L(t.placement),y=!v,b=ee(_),x=je(b),S=t.modifiersData.popperOffsets,w=t.rects.reference,T=t.rects.popper,E=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,O=typeof E==`number`?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(S){if(a){var j=b===`y`?G:J,M=b===`y`?K:q,N=b===`y`?`height`:`width`,P=S[b],re=P+g[j],ie=P-g[M],ae=p?-T[N]/2:0,oe=v===Y?w[N]:T[N],se=v===Y?-T[N]:-w[N],ce=t.elements.arrow,le=p&&ce?D(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ne(),R=ue[j],de=ue[M],z=I(0,w[N],le[N]),fe=y?w[N]/2-ae-z-R-O.mainAxis:oe-z-R-O.mainAxis,pe=y?-w[N]/2+ae+z+de+O.mainAxis:se+z+de+O.mainAxis,me=t.elements.arrow&&F(t.elements.arrow),he=me?b===`y`?me.clientTop||0:me.clientLeft||0:0,ge=k?.[b]??0,B=P+fe-ge-he,_e=P+pe-ge,ve=I(p?gt(re,B):re,P,p?X(ie,_e):ie);S[b]=ve,A[b]=ve-P}if(s){var ye=b===`x`?G:J,be=b===`x`?K:q,V=S[x],H=x===`y`?`height`:`width`,Se=V+g[ye],Ce=V-g[be],we=[G,J].indexOf(_)!==-1,Te=k?.[x]??0,Ee=we?Se:V-w[H]-T[H]-Te+O.altAxis,De=we?V+w[H]+T[H]-Te-O.altAxis:Ce,Oe=p&&we?te(Ee,V,De):I(p?Ee:Se,V,p?De:Ce);S[x]=Oe,A[x]=Oe-V}t.modifiersData[r]=A}}function Ne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Pe(e){return e===_(e)||!y(e)?z(e):Ne(e)}function Fe(e){var t=e.getBoundingClientRect(),n=Z(t.width)/e.offsetWidth||1,r=Z(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ie(e,t,n){n===void 0&&(n=!1);var r=y(t),i=y(t)&&Fe(t),a=j(t),o=E(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((g(t)!==`body`||he(a))&&(s=Pe(t)),y(t)?(c=E(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=fe(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Le(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Re(e){var t=Le(e);return mt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function ze(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Be(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}function Ve(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function He(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?At:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},At,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:v(e)?B(e):e.contextElement?B(e.contextElement):[],popper:B(t)};var s=Re(Be([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ve(t,n)){i.rects={reference:Ie(t,F(n),i.options.strategy===`fixed`),popper:D(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:ze(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ve(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}function Ue(e){var t=W.useRef(e);return t.current=e,W.useCallback(function(){return t.current},[])}function We(e){var t=e.initial,n=e.value,r=e.onChange,i=r===void 0?Ft:r;if(t===void 0&&n===void 0)throw TypeError(`Either "value" or "initial" variable must be set. Now both are undefined`);var a=W.useState(t),o=a[0],s=a[1],c=Ue(o),l=W.useCallback(function(e){var t=c(),n=typeof e==`function`?e(t):e;typeof n.persist==`function`&&n.persist(),s(n),typeof i==`function`&&i(n)},[c,i]),u=n!==void 0;return[u?n:o,u?i:l]}function Ge(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}function Ke(e,t){var n,r,i;e===void 0&&(e={}),t===void 0&&(t={});var a=Object.keys(Rt).reduce(function(e,t){var n;return u({},e,(n={},n[t]=e[t]===void 0?Rt[t]:e[t],n))},e),o=W.useMemo(function(){return[{name:`offset`,options:{offset:a.offset}}]},Array.isArray(a.offset)?a.offset:[]),s=u({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||o}),c=W.useState(null),l=c[0],d=c[1],f=W.useState(null),p=f[0],m=f[1],g=We({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),_=g[0],v=g[1],y=W.useRef();W.useEffect(function(){return function(){return clearTimeout(y.current)}},[]);var b=Pt(a.followCursor?Lt:l,p,s),x=b.styles,S=b.attributes,C=h(b,It),w=C.update,T=Ue({visible:_,triggerRef:l,tooltipRef:p,finalConfig:a}),E=W.useCallback(function(e){return Array.isArray(a.trigger)?a.trigger.includes(e):a.trigger===e},Array.isArray(a.trigger)?a.trigger:[a.trigger]),D=W.useCallback(function(){clearTimeout(y.current),y.current=window.setTimeout(function(){return v(!1)},a.delayHide)},[a.delayHide,v]),O=W.useCallback(function(){clearTimeout(y.current),y.current=window.setTimeout(function(){return v(!0)},a.delayShow)},[a.delayShow,v]),k=W.useCallback(function(){T().visible?D():O()},[T,D,O]);W.useEffect(function(){if(T().finalConfig.closeOnOutsideClick){var e=function(e){var t,n=T(),r=n.tooltipRef,i=n.triggerRef,a=(e.composedPath==null||(t=e.composedPath())==null?void 0:t[0])||e.target;a instanceof Node&&r!=null&&i!=null&&!r.contains(a)&&!i.contains(a)&&D()};return document.addEventListener(`mousedown`,e),function(){return document.removeEventListener(`mousedown`,e)}}},[T,D]),W.useEffect(function(){if(!(l==null||!E(`click`)))return l.addEventListener(`click`,k),function(){return l.removeEventListener(`click`,k)}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`double-click`)))return l.addEventListener(`dblclick`,k),function(){return l.removeEventListener(`dblclick`,k)}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`right-click`))){var e=function(e){e.preventDefault(),k()};return l.addEventListener(`contextmenu`,e),function(){return l.removeEventListener(`contextmenu`,e)}}},[l,E,k]),W.useEffect(function(){if(!(l==null||!E(`focus`)))return l.addEventListener(`focus`,O),l.addEventListener(`blur`,D),function(){l.removeEventListener(`focus`,O),l.removeEventListener(`blur`,D)}},[l,E,O,D]),W.useEffect(function(){if(!(l==null||!E(`hover`)))return l.addEventListener(`mouseenter`,O),l.addEventListener(`mouseleave`,D),function(){l.removeEventListener(`mouseenter`,O),l.removeEventListener(`mouseleave`,D)}},[l,E,O,D]),W.useEffect(function(){if(!(p==null||!E(`hover`)||!T().finalConfig.interactive))return p.addEventListener(`mouseenter`,O),p.addEventListener(`mouseleave`,D),function(){p.removeEventListener(`mouseenter`,O),p.removeEventListener(`mouseleave`,D)}},[p,E,O,D,T]);var A=C==null||(n=C.state)==null||(r=n.modifiersData)==null||(i=r.hide)==null?void 0:i.isReferenceHidden;return W.useEffect(function(){a.closeOnTriggerHidden&&A&&D()},[a.closeOnTriggerHidden,D,A]),W.useEffect(function(){if(!a.followCursor||l==null)return;function e(e){var t=e.clientX,n=e.clientY;Lt.getBoundingClientRect=Ge(t,n),w?.()}return l.addEventListener(`mousemove`,e),function(){return l.removeEventListener(`mousemove`,e)}},[a.followCursor,l,w]),W.useEffect(function(){if(!(p==null||w==null||a.mutationObserverOptions==null)){var e=new MutationObserver(w);return e.observe(p,a.mutationObserverOptions),function(){return e.disconnect()}}},[a.mutationObserverOptions,p,w]),u({getArrowProps:function(e){return e===void 0&&(e={}),u({},e,S.arrow,{style:u({},e.style,x.arrow),"data-popper-arrow":!0})},getTooltipProps:function(e){return e===void 0&&(e={}),u({},e,{style:u({},e.style,x.popper)},S.popper,{"data-popper-interactive":a.interactive})},setTooltipRef:m,setTriggerRef:d,tooltipRef:p,triggerRef:l,visible:_},C)}var U,qe,W,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,G,K,q,J,at,ot,Y,st,ct,lt,ut,dt,ft,pt,mt,ht,X,gt,Z,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Q,$,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt;e((()=>{m(),o(),f(),a(),U=t(n(),1),qe=t(p(),1),W=t(n(),1),n(),Je=t(n(),1),Ye=t(n(),1),Xe=t(n(),1),Ze=t(p(),1),n(),s(),Qe=r({"../../node_modules/react-fast-compare/index.js"(e,t){var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}}}),$e=r({"../../node_modules/warning/warning.js"(e,t){t.exports=function(){}}}),et=i(d(),1),{deprecate:tt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:nt}=__STORYBOOK_MODULE_GLOBAL__,Je.createContext(),Je.createContext(),rt=function(e){return e.reduce(function(e,t){var n=t[0];return e[n]=t[1],e},{})},it=typeof window<`u`&&window.document&&window.document.createElement?Ye.useLayoutEffect:Ye.useEffect,G=`top`,K=`bottom`,q=`right`,J=`left`,at=`auto`,ot=[G,K,q,J],Y=`start`,st=`end`,ct=`clippingParents`,lt=`viewport`,ut=`popper`,dt=`reference`,ft=ot.reduce(function(e,t){return e.concat([t+`-`+Y,t+`-`+st])},[]),pt=[].concat(ot,[at]).reduce(function(e,t){return e.concat([t,t+`-`+Y,t+`-`+st])},[]),mt=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`],ht={name:`applyStyles`,enabled:!0,phase:`write`,fn:x,effect:S,requires:[`computeStyles`]},X=Math.max,gt=Math.min,Z=Math.round,_t=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,re(typeof e==`number`?ie(e,ot):e)},vt={name:`arrow`,enabled:!0,phase:`main`,fn:ae,effect:oe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]},yt={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`},bt={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:le,data:{}},xt={passive:!0},St={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:ue,data:{}},Ct={left:`right`,right:`left`,bottom:`top`,top:`bottom`},wt={start:`end`,end:`start`},Tt={name:`flip`,enabled:!0,phase:`main`,fn:we,requiresIfExists:[`offset`],data:{_skip:!1}},Et={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:De},Dt={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:ke},Ot={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Ae,data:{}},kt={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Me,requiresIfExists:[`offset`]},At={placement:`bottom`,modifiers:[],strategy:`absolute`},He(),He({defaultModifiers:[St,Ot,bt,ht]}),jt=He({defaultModifiers:[St,Ot,bt,ht,Dt,Tt,kt,vt,Et]}),Mt=i(Qe()),Nt=[],Pt=function(e,t,n){n===void 0&&(n={});var r=Xe.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||`bottom`,strategy:n.strategy||`absolute`,modifiers:n.modifiers||Nt},a=Xe.useState({styles:{popper:{position:i.strategy,left:`0`,top:`0`},arrow:{position:`absolute`}},attributes:{}}),o=a[0],s=a[1],c=Xe.useMemo(function(){return{name:`updateState`,enabled:!0,phase:`write`,fn:function(e){var t=e.state,n=Object.keys(t.elements);Ze.flushSync(function(){s({styles:rt(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:rt(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:[`computeStyles`]}},[]),l=Xe.useMemo(function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:`applyStyles`,enabled:!1}])};return(0,Mt.default)(r.current,e)?r.current||e:(r.current=e,e)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),u=Xe.useRef();return it(function(){u.current&&u.current.setOptions(l)},[l]),it(function(){if(!(e==null||t==null)){var r=(n.createPopper||jt)(e,t,l);return u.current=r,function(){r.destroy(),u.current=null}}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:o.styles,attributes:o.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},i($e()),Ft=function(){},It=[`styles`,`attributes`],Lt={getBoundingClientRect:Ge()},Rt={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:`hover`},{document:zt}=nt,Q=(0,et.default)(1e3)((e,t,n,r=0)=>t.split(`-`)[0]===e?n:r),$=8,Bt=l.div({position:`absolute`,borderStyle:`solid`},({placement:e})=>{let t=0,n=0;switch(!0){case e.startsWith(`left`)||e.startsWith(`right`):n=8;break;case e.startsWith(`top`)||e.startsWith(`bottom`):t=8;break;default:}return{transform:`translate3d(${t}px, ${n}px, 0px)`}},({theme:e,color:t,placement:n})=>({bottom:`${Q(`top`,n,`${$*-1}px`,`auto`)}`,top:`${Q(`bottom`,n,`${$*-1}px`,`auto`)}`,right:`${Q(`left`,n,`${$*-1}px`,`auto`)}`,left:`${Q(`right`,n,`${$*-1}px`,`auto`)}`,borderBottomWidth:`${Q(`top`,n,`0`,$)}px`,borderTopWidth:`${Q(`bottom`,n,`0`,$)}px`,borderRightWidth:`${Q(`left`,n,`0`,$)}px`,borderLeftWidth:`${Q(`right`,n,`0`,$)}px`,borderTopColor:Q(`top`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderBottomColor:Q(`bottom`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderLeftColor:Q(`left`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`),borderRightColor:Q(`right`,n,e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,`transparent`)})),Vt=l.div(({hidden:e})=>({display:e?`none`:`inline-block`,zIndex:2147483647,colorScheme:`light dark`}),({theme:e,color:t,hasChrome:n})=>n?{background:t&&e.color[t]||t||e.base===`light`?c(e.background.app):e.background.app,filter:`
2
2
  drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
3
3
  drop-shadow(0 1px 3px rgba(0,0,0,0.1))
4
4
  `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),Ht=U.forwardRef(({placement:e=`top`,hasChrome:t=!0,children:n,arrowProps:r={},tooltipRef:i,color:a,withArrows:o,...s},c)=>U.createElement(Vt,{"data-testid":`tooltip`,hasChrome:t,ref:c,...s,color:a},t&&o&&U.createElement(Bt,{placement:e,...r,color:a}),n)),Ht.displayName=`Tooltip`,Ut=l.div`
@@ -1,4 +1,4 @@
1
- import{i as e}from"./preload-helper-BdFrVu1K.js";import{n as t,r as n,t as r}from"./WorkspaceStatusSpecimen-DQnSS6s9.js";var i,a,o,s,c,l;e((()=>{t(),i={title:`Components/Identidade e saúde do Dashboard`,component:r},a={args:{fixture:n[0]}},o={args:{fixture:n[1]}},s={args:{fixture:n[2]}},c={args:{fixture:n[3]}},a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
1
+ import{i as e}from"./preload-helper-BdFrVu1K.js";import{n as t,r as n,t as r}from"./WorkspaceStatusSpecimen-GcYWBBSp.js";var i,a,o,s,c,l;e((()=>{t(),i={title:`Components/Identidade e saúde do Dashboard`,component:r},a={args:{fixture:n[0]}},o={args:{fixture:n[1]}},s={args:{fixture:n[2]}},c={args:{fixture:n[3]}},a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
2
2
  args: {
3
3
  fixture: workspaceStatusFixtures[0]
4
4
  }
@@ -0,0 +1 @@
1
+ import{i as e}from"./preload-helper-BdFrVu1K.js";import{p as t,r as n}from"./Primitives-n1UqmNvo.js";import{t as r}from"./jsx-runtime-f3rHp9ZU.js";function i({fixture:e=o[0]}){return e.kind===`settings`?(0,a.jsxs)(n,{children:[(0,a.jsx)(`h3`,{children:e.name}),(0,a.jsxs)(`section`,{"aria-label":`Configuração do projeto`,children:[(0,a.jsx)(`strong`,{children:`Caminho do projeto`}),(0,a.jsx)(`p`,{children:(0,a.jsx)(`code`,{style:{overflowWrap:`anywhere`},children:e.message})})]})]}):(0,a.jsxs)(n,{children:[(0,a.jsx)(`h3`,{children:e.name}),(0,a.jsx)(`aside`,{"aria-label":`Saúde do Dashboard`,style:{overflowWrap:`anywhere`},children:(0,a.jsx)(`p`,{children:e.message})})]})}var a,o,s=e((()=>{t(),a=r(),o=[{name:`Configuração`,kind:`settings`,message:`C:/projetos/zaip-growth`},{name:`Ausente`,kind:`warning`,message:`Lifecycle não inicializado`},{name:`Inválido`,kind:`warning`,message:`Manifesto do lifecycle inválido`},{name:`Indisponível`,kind:`warning`,message:`Não foi possível consultar a saúde do Dashboard`}],i.__docgenInfo={description:`Native adapter: the catalog cannot depend on the Dashboard application.`,methods:[],displayName:`WorkspaceStatusSpecimen`,props:{fixture:{required:!1,tsType:{name:`unknown[number]`,raw:`(typeof workspaceStatusFixtures)[number]`},description:``,defaultValue:{value:`workspaceStatusFixtures[0]`,computed:!0}}}}}));export{s as n,o as r,i as t};
@@ -1 +1 @@
1
- import{i as e}from"./preload-helper-BdFrVu1K.js";import{c as t,f as n,u as r}from"./iframe-CTWGZcEe.js";var i,a=e((()=>{n(),i=t({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,i){function a(s,c){if(!n[s]){if(!t[s]){var l=typeof r==`function`&&r;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return a(n||e)},d,d.exports,e,t,n,i)}return n[s].exports}for(var o=typeof r==`function`&&r,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}})}));export{i as n,a as t};
1
+ import{i as e}from"./preload-helper-BdFrVu1K.js";import{c as t,f as n,u as r}from"./iframe-BgEb-d5o.js";var i,a=e((()=>{n(),i=t({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e==`object`&&typeof t<`u`)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.memoizerific=n()}})(function(){return(function e(t,n,i){function a(s,c){if(!n[s]){if(!t[s]){var l=typeof r==`function`&&r;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return a(n||e)},d,d.exports,e,t,n,i)}return n[s].exports}for(var o=typeof r==`function`&&r,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(e,t,n){t.exports=function(t){return typeof Map!=`function`||t?new(e(`./similar`)):new Map}},{"./similar":2}],2:[function(e,t,n){function r(){return this.list=[],this.lastItem=void 0,this.size=0,this}r.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},r.prototype.set=function(e,t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(n=this.indexOf(e),n>=0?(this.lastItem=this.list[n],this.list[n].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},r.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},r.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},r.prototype.forEach=function(e,t){var n;for(n=0;n<this.size;n++)e.call(t||this,this.list[n].val,this.list[n].key,this)},r.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},r.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},t.exports=r},{}],3:[function(e,t,n){var r=e(`map-or-similar`);t.exports=function(e){var t=new r(!1),n=[];return function(o){var s=function(){var c=t,l,u,d=arguments.length-1,f=Array(d+1),p=!0,m;if((s.numArgs||s.numArgs===0)&&s.numArgs!==d+1)throw Error(`Memoizerific functions should always be called with the same number of arguments`);for(m=0;m<d;m++){if(f[m]={cacheItem:c,arg:arguments[m]},c.has(arguments[m])){c=c.get(arguments[m]);continue}p=!1,l=new r(!1),c.set(arguments[m],l),c=l}return p&&(c.has(arguments[d])?u=c.get(arguments[d]):p=!1),p||(u=o.apply(null,arguments),c.set(arguments[d],u)),e>0&&(f[d]={cacheItem:c,arg:arguments[d]},p?i(n,f):n.push(f),n.length>e&&a(n.shift())),s.wasMemoized=p,s.numArgs=d+1,u};return s.limit=e,s.wasMemoized=!1,s.cache=t,s.lru=n,s}};function i(e,t){var n=e.length,r=t.length,i,a,s;for(a=0;a<n;a++){for(i=!0,s=0;s<r;s++)if(!o(e[a][s].arg,t[s].arg)){i=!1;break}if(i)break}e.push(e.splice(a,1)[0])}function a(e){var t=e.length,n=e[t-1],r,i;for(n.cacheItem.delete(n.arg),i=t-2;i>=0&&(n=e[i],r=n.cacheItem.get(n.arg),!r||!r.size);i--)n.cacheItem.delete(n.arg)}function o(e,t){return e===t||e!==e&&t!==t}},{"map-or-similar":1}]},{},[3])(3)})}})}));export{i as n,a as t};
@@ -1,4 +1,4 @@
1
- import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-CTWGZcEe.js";import{t as r}from"./jsx-runtime-f3rHp9ZU.js";import{a as i,u as a}from"./theming-fbSD9ZLF.js";import{a as o}from"./react-18-B9_a4mHb.js";function s(e,t=`assertive`,n=7e3){l?l.announce(e,t,n):(l=new u,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?l.announce(e,t,n):setTimeout(()=>{l?.isAttached()&&l?.announce(e,t,n)},100))}function c(e){l&&l.clear(e)}var l,u,d=e((()=>{l=null,u=class{isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=7e3){var r,i;if(!this.node)return;let a=document.createElement(`div`);typeof e==`object`?(a.setAttribute(`role`,`img`),a.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):a.textContent=e,t===`assertive`?(r=this.assertiveLog)==null||r.appendChild(a):(i=this.politeLog)==null||i.appendChild(a),e!==``&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}}));function f(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function p(...e){return t=>e.forEach(e=>f(e,t))}function m(...e){return de.useCallback(p(...e),e)}function h(e){return N.isValidElement(e)&&e.type===Se}function ee(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function te(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function g(e,t){return he.useReducer((e,n)=>t[e][n]??e,e)}function _(e){let[t,n]=F.useState(),r=F.useRef({}),i=F.useRef(e),a=F.useRef(`none`),[o,s]=g(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return F.useEffect(()=>{let e=v(r.current);a.current=o===`mounted`?e:`none`},[o]),U(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=v(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),U(()=>{if(t){let e=e=>{let n=v(r.current).includes(e.animationName);e.target===t&&n&&pe.flushSync(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=v(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:F.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function v(e){return e?.animationName||`none`}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function b(e,t=[]){let n=[];function r(t,r){let i=I.createContext(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=I.useMemo(()=>o,Object.values(o));return(0,ge.jsx)(s.Provider,{value:c,children:r})}function s(n,o){let s=o?.[e][a]||i,c=I.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let r=n?.[e]||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,x(i,...t)]}function x(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function S(e){let t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...e)=>t.current?.(...e),[])}function C(e){let t=_e.useContext(Ce);return e||t||`ltr`}function w(e,[t,n]){return Math.min(n,Math.max(t,e))}function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ne(e,t){return ve.useReducer((e,n)=>t[e][n]??e,e)}function E(e){return e?parseInt(e,10):0}function re(e,t){let n=e/t;return isNaN(n)?0:n}function D(e){let t=re(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ie(e,t,n,r=`ltr`){let i=D(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return oe([c,l],d)(e)}function ae(e,t,n=`ltr`){let r=D(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=w(e,n===`ltr`?[0,o]:[o*-1,0]);return oe([0,o],[0,s])(c)}function oe(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function se(e,t){return e>0&&e<t}function O(e,t){let n=S(e),r=M.useRef(0);return M.useEffect(()=>()=>window.clearTimeout(r.current),[]),M.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function k(e,t){let n=S(t);U(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ce(e,t){let{asChild:n,children:r}=e;if(!n)return typeof t==`function`?t(r):t;let i=M.Children.only(r);return M.cloneElement(i,{children:typeof t==`function`?t(i.props.children):t})}function le({children:e=`Copy`,childrenOnCopy:t=`Copied!`,content:n,onCopy:r,ariaLabel:i=!1,ariaLabelOnCopy:a=!1,duration:o=3e3}){let[l,u]=(0,z.useState)(!1),d=(0,z.useRef)(null);(0,z.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let f=(0,z.useCallback)(e=>{d.current&&clearTimeout(d.current);let t=typeof a==`string`?a:`Copied to clipboard`;navigator.clipboard?.writeText(n).then(()=>{r?.(e),u(!0),s(t,`polite`),d.current=setTimeout(()=>{u(!1),c(`polite`),d.current=null},o)})},[n,r,a,o]);return{children:l?t:e,buttonProps:(0,z.useMemo)(()=>({onClick:f,ariaLabel:l?a:i}),[f,l,a,i])}}var A,j,M,ue,N,de,P,fe,F,pe,me,he,I,ge,L,_e,ve,R,z,ye,be,xe,B,V,Se,H,U,W,Ce,G,K,we,Te,q,J,Y,Ee,X,De,Oe,ke,Ae,Z,je,Me,Ne,Pe,Fe,Q,Ie,Le,$,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze=e((()=>{d(),A=t(n(),1),i(),j=t(n(),1),M=t(n(),1),ue=t(n(),1),o(),N=t(n(),1),de=t(n(),1),P=r(),fe=r(),F=t(n(),1),pe=t(o(),1),me=t(n(),1),he=t(n(),1),I=t(n(),1),ge=r(),L=t(n(),1),_e=t(n(),1),r(),ve=t(n(),1),R=r(),z=t(n(),1),ye=a.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:`inline-flex`,marginInlineStart:`auto`,alignSelf:`flex-end`}:{position:`absolute`,bottom:0,right:0,maxWidth:`100%`,display:`flex`,zIndex:1}]),be=a.button(({theme:e})=>({margin:0,border:`0 none`,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:`16px`,fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:`4px 0 0 0`,"&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:`0 none`,"@media (forced-colors: active)":{outline:`2px solid ButtonBorder`,outlineOffset:`2px`}}}),({disabled:e})=>e&&{cursor:`not-allowed`,opacity:.5}),be.displayName=`ActionButton`,xe=({actionItems:e,flexLayout:t=!1,...n})=>A.createElement(ye,{...n,$flexLayout:t},e.map(({title:e,ariaLabel:t,className:n,onClick:r,disabled:i},a)=>A.createElement(be,{key:a,"aria-label":t,className:n,onClick:r,disabled:!!i},e))),B=N.forwardRef((e,t)=>{let{children:n,...r}=e,i=N.Children.toArray(n),a=i.find(h);if(a){let e=a.props.children,n=i.map(t=>t===a?N.Children.count(e)>1?N.Children.only(null):N.isValidElement(e)?e.props.children:null:t);return(0,P.jsx)(V,{...r,ref:t,children:N.isValidElement(e)?N.cloneElement(e,void 0,n):null})}return(0,P.jsx)(V,{...r,ref:t,children:n})}),B.displayName=`Slot`,V=N.forwardRef((e,t)=>{let{children:n,...r}=e;if(N.isValidElement(n)){let e=te(n);return N.cloneElement(n,{...ee(r,n.props),ref:t?p(t,e):e})}return N.Children.count(n)>1?N.Children.only(null):null}),V.displayName=`SlotClone`,Se=({children:e})=>(0,P.jsx)(P.Fragment,{children:e}),H=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ue.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?B:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,fe.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),U=globalThis?.document?me.useLayoutEffect:()=>{},W=e=>{let{present:t,children:n}=e,r=_(t),i=typeof n==`function`?n({present:r.isPresent}):F.Children.only(n),a=m(r.ref,y(i));return typeof n==`function`||r.isPresent?F.cloneElement(i,{ref:a}):null},W.displayName=`Presence`,Ce=_e.createContext(void 0),G=`ScrollArea`,[K,we]=b(G),[Te,q]=K(G),J=M.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=M.useState(null),[l,u]=M.useState(null),[d,f]=M.useState(null),[p,h]=M.useState(null),[ee,te]=M.useState(null),[g,_]=M.useState(0),[v,y]=M.useState(0),[b,x]=M.useState(!1),[S,w]=M.useState(!1),T=m(t,e=>c(e)),ne=C(i);return(0,R.jsx)(Te,{scope:n,type:r,dir:ne,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:b,onScrollbarXEnabledChange:x,scrollbarY:ee,onScrollbarYChange:te,scrollbarYEnabled:S,onScrollbarYEnabledChange:w,onCornerWidthChange:_,onCornerHeightChange:y,children:(0,R.jsx)(H.div,{dir:ne,...o,ref:T,style:{position:`relative`,"--radix-scroll-area-corner-width":g+`px`,"--radix-scroll-area-corner-height":v+`px`,...e.style}})})}),J.displayName=G,Y=`ScrollAreaViewport`,Ee=M.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,asChild:i,nonce:a,...o}=e,s=q(Y,n),c=m(t,M.useRef(null),s.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`
1
+ import{i as e,s as t}from"./preload-helper-BdFrVu1K.js";import{D as n}from"./iframe-BgEb-d5o.js";import{t as r}from"./jsx-runtime-f3rHp9ZU.js";import{a as i,u as a}from"./theming-BGScn6Yf.js";import{a as o}from"./react-18-BZ-Ne01c.js";function s(e,t=`assertive`,n=7e3){l?l.announce(e,t,n):(l=new u,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?l.announce(e,t,n):setTimeout(()=>{l?.isAttached()&&l?.announce(e,t,n)},100))}function c(e){l&&l.clear(e)}var l,u,d=e((()=>{l=null,u=class{isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=7e3){var r,i;if(!this.node)return;let a=document.createElement(`div`);typeof e==`object`?(a.setAttribute(`role`,`img`),a.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):a.textContent=e,t===`assertive`?(r=this.assertiveLog)==null||r.appendChild(a):(i=this.politeLog)==null||i.appendChild(a),e!==``&&setTimeout(()=>{a.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}}));function f(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function p(...e){return t=>e.forEach(e=>f(e,t))}function m(...e){return de.useCallback(p(...e),e)}function h(e){return N.isValidElement(e)&&e.type===Se}function ee(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function te(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function g(e,t){return he.useReducer((e,n)=>t[e][n]??e,e)}function _(e){let[t,n]=F.useState(),r=F.useRef({}),i=F.useRef(e),a=F.useRef(`none`),[o,s]=g(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return F.useEffect(()=>{let e=v(r.current);a.current=o===`mounted`?e:`none`},[o]),U(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=v(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),U(()=>{if(t){let e=e=>{let n=v(r.current).includes(e.animationName);e.target===t&&n&&pe.flushSync(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=v(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:F.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function v(e){return e?.animationName||`none`}function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function b(e,t=[]){let n=[];function r(t,r){let i=I.createContext(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=I.useMemo(()=>o,Object.values(o));return(0,ge.jsx)(s.Provider,{value:c,children:r})}function s(n,o){let s=o?.[e][a]||i,c=I.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let r=n?.[e]||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,x(i,...t)]}function x(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function S(e){let t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...e)=>t.current?.(...e),[])}function C(e){let t=_e.useContext(Ce);return e||t||`ltr`}function w(e,[t,n]){return Math.min(n,Math.max(t,e))}function T(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function ne(e,t){return ve.useReducer((e,n)=>t[e][n]??e,e)}function E(e){return e?parseInt(e,10):0}function re(e,t){let n=e/t;return isNaN(n)?0:n}function D(e){let t=re(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ie(e,t,n,r=`ltr`){let i=D(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return oe([c,l],d)(e)}function ae(e,t,n=`ltr`){let r=D(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=w(e,n===`ltr`?[0,o]:[o*-1,0]);return oe([0,o],[0,s])(c)}function oe(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function se(e,t){return e>0&&e<t}function O(e,t){let n=S(e),r=M.useRef(0);return M.useEffect(()=>()=>window.clearTimeout(r.current),[]),M.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function k(e,t){let n=S(t);U(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function ce(e,t){let{asChild:n,children:r}=e;if(!n)return typeof t==`function`?t(r):t;let i=M.Children.only(r);return M.cloneElement(i,{children:typeof t==`function`?t(i.props.children):t})}function le({children:e=`Copy`,childrenOnCopy:t=`Copied!`,content:n,onCopy:r,ariaLabel:i=!1,ariaLabelOnCopy:a=!1,duration:o=3e3}){let[l,u]=(0,z.useState)(!1),d=(0,z.useRef)(null);(0,z.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let f=(0,z.useCallback)(e=>{d.current&&clearTimeout(d.current);let t=typeof a==`string`?a:`Copied to clipboard`;navigator.clipboard?.writeText(n).then(()=>{r?.(e),u(!0),s(t,`polite`),d.current=setTimeout(()=>{u(!1),c(`polite`),d.current=null},o)})},[n,r,a,o]);return{children:l?t:e,buttonProps:(0,z.useMemo)(()=>({onClick:f,ariaLabel:l?a:i}),[f,l,a,i])}}var A,j,M,ue,N,de,P,fe,F,pe,me,he,I,ge,L,_e,ve,R,z,ye,be,xe,B,V,Se,H,U,W,Ce,G,K,we,Te,q,J,Y,Ee,X,De,Oe,ke,Ae,Z,je,Me,Ne,Pe,Fe,Q,Ie,Le,$,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze=e((()=>{d(),A=t(n(),1),i(),j=t(n(),1),M=t(n(),1),ue=t(n(),1),o(),N=t(n(),1),de=t(n(),1),P=r(),fe=r(),F=t(n(),1),pe=t(o(),1),me=t(n(),1),he=t(n(),1),I=t(n(),1),ge=r(),L=t(n(),1),_e=t(n(),1),r(),ve=t(n(),1),R=r(),z=t(n(),1),ye=a.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:`inline-flex`,marginInlineStart:`auto`,alignSelf:`flex-end`}:{position:`absolute`,bottom:0,right:0,maxWidth:`100%`,display:`flex`,zIndex:1}]),be=a.button(({theme:e})=>({margin:0,border:`0 none`,padding:`4px 10px`,cursor:`pointer`,display:`flex`,alignItems:`center`,color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:`16px`,fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:`4px 0 0 0`,"&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:`0 none`,"@media (forced-colors: active)":{outline:`2px solid ButtonBorder`,outlineOffset:`2px`}}}),({disabled:e})=>e&&{cursor:`not-allowed`,opacity:.5}),be.displayName=`ActionButton`,xe=({actionItems:e,flexLayout:t=!1,...n})=>A.createElement(ye,{...n,$flexLayout:t},e.map(({title:e,ariaLabel:t,className:n,onClick:r,disabled:i},a)=>A.createElement(be,{key:a,"aria-label":t,className:n,onClick:r,disabled:!!i},e))),B=N.forwardRef((e,t)=>{let{children:n,...r}=e,i=N.Children.toArray(n),a=i.find(h);if(a){let e=a.props.children,n=i.map(t=>t===a?N.Children.count(e)>1?N.Children.only(null):N.isValidElement(e)?e.props.children:null:t);return(0,P.jsx)(V,{...r,ref:t,children:N.isValidElement(e)?N.cloneElement(e,void 0,n):null})}return(0,P.jsx)(V,{...r,ref:t,children:n})}),B.displayName=`Slot`,V=N.forwardRef((e,t)=>{let{children:n,...r}=e;if(N.isValidElement(n)){let e=te(n);return N.cloneElement(n,{...ee(r,n.props),ref:t?p(t,e):e})}return N.Children.count(n)>1?N.Children.only(null):null}),V.displayName=`SlotClone`,Se=({children:e})=>(0,P.jsx)(P.Fragment,{children:e}),H=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ue.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?B:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,fe.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),U=globalThis?.document?me.useLayoutEffect:()=>{},W=e=>{let{present:t,children:n}=e,r=_(t),i=typeof n==`function`?n({present:r.isPresent}):F.Children.only(n),a=m(r.ref,y(i));return typeof n==`function`||r.isPresent?F.cloneElement(i,{ref:a}):null},W.displayName=`Presence`,Ce=_e.createContext(void 0),G=`ScrollArea`,[K,we]=b(G),[Te,q]=K(G),J=M.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=M.useState(null),[l,u]=M.useState(null),[d,f]=M.useState(null),[p,h]=M.useState(null),[ee,te]=M.useState(null),[g,_]=M.useState(0),[v,y]=M.useState(0),[b,x]=M.useState(!1),[S,w]=M.useState(!1),T=m(t,e=>c(e)),ne=C(i);return(0,R.jsx)(Te,{scope:n,type:r,dir:ne,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:b,onScrollbarXEnabledChange:x,scrollbarY:ee,onScrollbarYChange:te,scrollbarYEnabled:S,onScrollbarYEnabledChange:w,onCornerWidthChange:_,onCornerHeightChange:y,children:(0,R.jsx)(H.div,{dir:ne,...o,ref:T,style:{position:`relative`,"--radix-scroll-area-corner-width":g+`px`,"--radix-scroll-area-corner-height":v+`px`,...e.style}})})}),J.displayName=G,Y=`ScrollAreaViewport`,Ee=M.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,asChild:i,nonce:a,...o}=e,s=q(Y,n),c=m(t,M.useRef(null),s.onViewportChange);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`
2
2
  [data-radix-scroll-area-viewport] {
3
3
  scrollbar-width: none;
4
4
  -ms-overflow-style: none;