@rpamis/comet 0.4.0-beta.10 → 0.4.0-beta.12

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 (214) hide show
  1. package/README.md +1 -1
  2. package/assets/manifest.json +1 -1
  3. package/assets/skills/comet/SKILL.md +8 -4
  4. package/assets/skills/comet/reference/classic-layout.md +3 -3
  5. package/assets/skills/comet/rules/comet-workflow-guard.en.md +4 -3
  6. package/assets/skills/comet/rules/comet-workflow-guard.md +4 -3
  7. package/assets/skills/comet/scripts/comet-entry-runtime.mjs +145 -145
  8. package/assets/skills/comet/scripts/comet-hook-router.mjs +353 -1035
  9. package/assets/skills/comet/scripts/comet-runtime.mjs +164 -186
  10. package/assets/skills/comet-native/SKILL.md +20 -23
  11. package/assets/skills/comet-native/reference/artifacts.md +0 -7
  12. package/assets/skills/comet-native/reference/clarification.md +1 -1
  13. package/assets/skills/comet-native/reference/commands.md +63 -65
  14. package/assets/skills/comet-native/reference/recovery.md +9 -1
  15. package/assets/skills/comet-native/scripts/comet-native-runtime.mjs +2574 -5719
  16. package/assets/skills-zh/comet/SKILL.md +8 -4
  17. package/assets/skills-zh/comet/reference/classic-layout.md +3 -3
  18. package/assets/skills-zh/comet-native/SKILL.md +20 -23
  19. package/assets/skills-zh/comet-native/reference/artifacts.md +0 -7
  20. package/assets/skills-zh/comet-native/reference/clarification.md +1 -1
  21. package/assets/skills-zh/comet-native/reference/commands.md +63 -65
  22. package/assets/skills-zh/comet-native/reference/recovery.md +9 -1
  23. package/dist/app/commands/classic.js +2 -2
  24. package/dist/app/commands/classic.js.map +1 -1
  25. package/dist/app/commands/dashboard.d.ts.map +1 -1
  26. package/dist/app/commands/dashboard.js +2 -1
  27. package/dist/app/commands/dashboard.js.map +1 -1
  28. package/dist/app/commands/doctor.d.ts.map +1 -1
  29. package/dist/app/commands/doctor.js +9 -3
  30. package/dist/app/commands/doctor.js.map +1 -1
  31. package/dist/app/commands/update.d.ts.map +1 -1
  32. package/dist/app/commands/update.js +14 -2
  33. package/dist/app/commands/update.js.map +1 -1
  34. package/dist/config/repository-layout.json +1 -4
  35. package/dist/domains/comet-classic/classic-layout-initialization.js +3 -3
  36. package/dist/domains/comet-classic/classic-layout-initialization.js.map +1 -1
  37. package/dist/domains/comet-classic/classic-root-command.d.ts +4 -1
  38. package/dist/domains/comet-classic/classic-root-command.d.ts.map +1 -1
  39. package/dist/domains/comet-classic/classic-root-command.js +159 -49
  40. package/dist/domains/comet-classic/classic-root-command.js.map +1 -1
  41. package/dist/domains/comet-classic/classic-root-move.d.ts +0 -1
  42. package/dist/domains/comet-classic/classic-root-move.d.ts.map +1 -1
  43. package/dist/domains/comet-classic/classic-root-move.js +24 -121
  44. package/dist/domains/comet-classic/classic-root-move.js.map +1 -1
  45. package/dist/domains/comet-entry/current-selection-repair.js +1 -1
  46. package/dist/domains/comet-entry/current-selection-repair.js.map +1 -1
  47. package/dist/domains/comet-entry/hook-router.d.ts +12 -2
  48. package/dist/domains/comet-entry/hook-router.d.ts.map +1 -1
  49. package/dist/domains/comet-entry/hook-router.js +40 -14
  50. package/dist/domains/comet-entry/hook-router.js.map +1 -1
  51. package/dist/domains/comet-entry/init-workflow.d.ts.map +1 -1
  52. package/dist/domains/comet-entry/init-workflow.js +17 -3
  53. package/dist/domains/comet-entry/init-workflow.js.map +1 -1
  54. package/dist/domains/comet-native/native-acceptance.d.ts +1 -2
  55. package/dist/domains/comet-native/native-acceptance.d.ts.map +1 -1
  56. package/dist/domains/comet-native/native-acceptance.js +5 -29
  57. package/dist/domains/comet-native/native-acceptance.js.map +1 -1
  58. package/dist/domains/comet-native/native-change.d.ts +0 -2
  59. package/dist/domains/comet-native/native-change.d.ts.map +1 -1
  60. package/dist/domains/comet-native/native-change.js +8 -104
  61. package/dist/domains/comet-native/native-change.js.map +1 -1
  62. package/dist/domains/comet-native/native-cli.d.ts.map +1 -1
  63. package/dist/domains/comet-native/native-cli.js +6 -493
  64. package/dist/domains/comet-native/native-cli.js.map +1 -1
  65. package/dist/domains/comet-native/native-continuation.d.ts.map +1 -1
  66. package/dist/domains/comet-native/native-continuation.js +18 -5
  67. package/dist/domains/comet-native/native-continuation.js.map +1 -1
  68. package/dist/domains/comet-native/native-evidence-retention.d.ts.map +1 -1
  69. package/dist/domains/comet-native/native-evidence-retention.js +5 -21
  70. package/dist/domains/comet-native/native-evidence-retention.js.map +1 -1
  71. package/dist/domains/comet-native/native-evidence-storage.d.ts +2 -8
  72. package/dist/domains/comet-native/native-evidence-storage.d.ts.map +1 -1
  73. package/dist/domains/comet-native/native-evidence-storage.js +2 -23
  74. package/dist/domains/comet-native/native-evidence-storage.js.map +1 -1
  75. package/dist/domains/comet-native/native-findings.d.ts.map +1 -1
  76. package/dist/domains/comet-native/native-findings.js +6 -4
  77. package/dist/domains/comet-native/native-findings.js.map +1 -1
  78. package/dist/domains/comet-native/native-repair-integration.d.ts +1 -3
  79. package/dist/domains/comet-native/native-repair-integration.d.ts.map +1 -1
  80. package/dist/domains/comet-native/native-repair-integration.js +12 -15
  81. package/dist/domains/comet-native/native-repair-integration.js.map +1 -1
  82. package/dist/domains/comet-native/native-repair-runtime.d.ts +0 -1
  83. package/dist/domains/comet-native/native-repair-runtime.d.ts.map +1 -1
  84. package/dist/domains/comet-native/native-repair-runtime.js +3 -10
  85. package/dist/domains/comet-native/native-repair-runtime.js.map +1 -1
  86. package/dist/domains/comet-native/native-repair-stagnation.d.ts +1 -9
  87. package/dist/domains/comet-native/native-repair-stagnation.d.ts.map +1 -1
  88. package/dist/domains/comet-native/native-repair-stagnation.js +4 -14
  89. package/dist/domains/comet-native/native-repair-stagnation.js.map +1 -1
  90. package/dist/domains/comet-native/native-snapshot.d.ts.map +1 -1
  91. package/dist/domains/comet-native/native-snapshot.js +0 -77
  92. package/dist/domains/comet-native/native-snapshot.js.map +1 -1
  93. package/dist/domains/comet-native/native-transition-evidence.d.ts.map +1 -1
  94. package/dist/domains/comet-native/native-transition-evidence.js +0 -10
  95. package/dist/domains/comet-native/native-transition-evidence.js.map +1 -1
  96. package/dist/domains/comet-native/native-transitions.d.ts.map +1 -1
  97. package/dist/domains/comet-native/native-transitions.js +3 -31
  98. package/dist/domains/comet-native/native-transitions.js.map +1 -1
  99. package/dist/domains/comet-native/native-types.d.ts +1 -16
  100. package/dist/domains/comet-native/native-types.d.ts.map +1 -1
  101. package/dist/domains/comet-native/native-verification-evidence.d.ts +2 -48
  102. package/dist/domains/comet-native/native-verification-evidence.d.ts.map +1 -1
  103. package/dist/domains/comet-native/native-verification-evidence.js +13 -301
  104. package/dist/domains/comet-native/native-verification-evidence.js.map +1 -1
  105. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts +2 -138
  106. package/dist/domains/comet-native/native-verification-receipt-runtime.d.ts.map +1 -1
  107. package/dist/domains/comet-native/native-verification-receipt-runtime.js +103 -769
  108. package/dist/domains/comet-native/native-verification-receipt-runtime.js.map +1 -1
  109. package/dist/domains/comet-native/native-verification-receipt.d.ts +3 -89
  110. package/dist/domains/comet-native/native-verification-receipt.d.ts.map +1 -1
  111. package/dist/domains/comet-native/native-verification-receipt.js +19 -350
  112. package/dist/domains/comet-native/native-verification-receipt.js.map +1 -1
  113. package/dist/domains/comet-native/native-verification-runtime.d.ts +1 -4
  114. package/dist/domains/comet-native/native-verification-runtime.d.ts.map +1 -1
  115. package/dist/domains/comet-native/native-verification-runtime.js +14 -209
  116. package/dist/domains/comet-native/native-verification-runtime.js.map +1 -1
  117. package/dist/domains/dashboard/web/assets/{arc-BXWNV2Qv.js → arc-BXDAG6Qx.js} +1 -1
  118. package/dist/domains/dashboard/web/assets/{architectureDiagram-3BPJPVTR-CjVHPivo.js → architectureDiagram-3BPJPVTR-R2JyCv0i.js} +1 -1
  119. package/dist/domains/dashboard/web/assets/{blockDiagram-GPEHLZMM-P2PGImSM.js → blockDiagram-GPEHLZMM-STNPWdDl.js} +1 -1
  120. package/dist/domains/dashboard/web/assets/{c4Diagram-AAUBKEIU-fTj6Xhs1.js → c4Diagram-AAUBKEIU-Bh-rUIcJ.js} +1 -1
  121. package/dist/domains/dashboard/web/assets/channel-XR_5gd6D.js +1 -0
  122. package/dist/domains/dashboard/web/assets/{chunk-2J33WTMH-BjFDZ5yo.js → chunk-2J33WTMH-BRhFNAFH.js} +1 -1
  123. package/dist/domains/dashboard/web/assets/{chunk-4BX2VUAB-BAUkbZdT.js → chunk-4BX2VUAB-CwA3zkFS.js} +1 -1
  124. package/dist/domains/dashboard/web/assets/{chunk-55IACEB6-DBmuiYme.js → chunk-55IACEB6-C1tqAl_E.js} +1 -1
  125. package/dist/domains/dashboard/web/assets/{chunk-727SXJPM-Do9ufCgY.js → chunk-727SXJPM-DDefBoUS.js} +1 -1
  126. package/dist/domains/dashboard/web/assets/{chunk-AQP2D5EJ-qRQWlB5d.js → chunk-AQP2D5EJ-Dq-0Yi9D.js} +1 -1
  127. package/dist/domains/dashboard/web/assets/{chunk-FMBD7UC4-BzDzeJ4_.js → chunk-FMBD7UC4-DC-MVNgk.js} +1 -1
  128. package/dist/domains/dashboard/web/assets/{chunk-ND2GUHAM-OQcAmIvL.js → chunk-ND2GUHAM-BLWZ8zWd.js} +1 -1
  129. package/dist/domains/dashboard/web/assets/{chunk-QZHKN3VN-BiRfH4d2.js → chunk-QZHKN3VN-DaK5rvZu.js} +1 -1
  130. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-CG_TnucZ.js +1 -0
  131. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-CG_TnucZ.js +1 -0
  132. package/dist/domains/dashboard/web/assets/{cose-bilkent-S5V4N54A-CZk37fGn.js → cose-bilkent-S5V4N54A-DCPgAyMU.js} +1 -1
  133. package/dist/domains/dashboard/web/assets/{cynefin-VYW2F7L2-B3F-qRTJ.js → cynefin-VYW2F7L2-CBaY4KFj.js} +1 -1
  134. package/dist/domains/dashboard/web/assets/{dagre-BM42HDAG-D5BQ0eqN.js → dagre-BM42HDAG-CLKQ6BQM.js} +1 -1
  135. package/dist/domains/dashboard/web/assets/{diagram-2AECGRRQ-33mXstha.js → diagram-2AECGRRQ-DCup336F.js} +1 -1
  136. package/dist/domains/dashboard/web/assets/{diagram-5GNKFQAL-BWHCMFvD.js → diagram-5GNKFQAL-DgpDOFTE.js} +1 -1
  137. package/dist/domains/dashboard/web/assets/{diagram-KO2AKTUF-DrPGimEt.js → diagram-KO2AKTUF-BZcengGf.js} +1 -1
  138. package/dist/domains/dashboard/web/assets/{diagram-LMA3HP47-BBlsg7jG.js → diagram-LMA3HP47-DSECilBo.js} +1 -1
  139. package/dist/domains/dashboard/web/assets/{diagram-OG6HWLK6-CsaFSpHi.js → diagram-OG6HWLK6-3FuzANXW.js} +1 -1
  140. package/dist/domains/dashboard/web/assets/{erDiagram-TEJ5UH35-CoB0mzhk.js → erDiagram-TEJ5UH35-BBrwULhs.js} +1 -1
  141. package/dist/domains/dashboard/web/assets/{flowDiagram-I6XJVG4X-lT53XfSE.js → flowDiagram-I6XJVG4X-DiNn0Yzp.js} +1 -1
  142. package/dist/domains/dashboard/web/assets/{ganttDiagram-6RSMTGT7-D1SQ56fl.js → ganttDiagram-6RSMTGT7-DcvbTHnu.js} +1 -1
  143. package/dist/domains/dashboard/web/assets/{gitGraphDiagram-PVQCEYII-D4oDMS5x.js → gitGraphDiagram-PVQCEYII-CgCY3MJo.js} +1 -1
  144. package/dist/domains/dashboard/web/assets/index-BR3wUr2k.css +1 -0
  145. package/dist/domains/dashboard/web/assets/{index-Msce_H_q.js → index-CovQUq5W.js} +4 -4
  146. package/dist/domains/dashboard/web/assets/{infoDiagram-5YYISTIA-BeICn98s.js → infoDiagram-5YYISTIA-hzBGAEue.js} +1 -1
  147. package/dist/domains/dashboard/web/assets/{ishikawaDiagram-YF4QCWOH-Dkspu33d.js → ishikawaDiagram-YF4QCWOH-DCPPspol.js} +1 -1
  148. package/dist/domains/dashboard/web/assets/{journeyDiagram-JHISSGLW-C-EM1sZl.js → journeyDiagram-JHISSGLW-C_v8b1Os.js} +1 -1
  149. package/dist/domains/dashboard/web/assets/{kanban-definition-UN3LZRKU-BTbB0IO2.js → kanban-definition-UN3LZRKU-CgpE9lG7.js} +1 -1
  150. package/dist/domains/dashboard/web/assets/{linear-Cp0UrqDr.js → linear-jSddcREx.js} +1 -1
  151. package/dist/domains/dashboard/web/assets/{mermaid.core-CucmqsLW.js → mermaid.core-5Ibr28Ig.js} +4 -4
  152. package/dist/domains/dashboard/web/assets/{mindmap-definition-RKZ34NQL-CjEshF1X.js → mindmap-definition-RKZ34NQL-XPCohX0x.js} +1 -1
  153. package/dist/domains/dashboard/web/assets/{pieDiagram-4H26LBE5-DrwFnX1b.js → pieDiagram-4H26LBE5-DvhxgQWl.js} +1 -1
  154. package/dist/domains/dashboard/web/assets/{quadrantDiagram-W4KKPZXB-CjG6pBR2.js → quadrantDiagram-W4KKPZXB-CCUxdF-S.js} +1 -1
  155. package/dist/domains/dashboard/web/assets/{requirementDiagram-4Y6WPE33-BpUQVqCV.js → requirementDiagram-4Y6WPE33-FS3TCmdX.js} +1 -1
  156. package/dist/domains/dashboard/web/assets/{sankeyDiagram-5OEKKPKP-BeGkEvzR.js → sankeyDiagram-5OEKKPKP-r129rscN.js} +1 -1
  157. package/dist/domains/dashboard/web/assets/{sequenceDiagram-3UESZ5HK-sSTU3MCO.js → sequenceDiagram-3UESZ5HK--DCY0bvU.js} +1 -1
  158. package/dist/domains/dashboard/web/assets/{stateDiagram-AJRCARHV-CcFBc6qh.js → stateDiagram-AJRCARHV-yHkUByrT.js} +1 -1
  159. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-XHzDdqcm.js +1 -0
  160. package/dist/domains/dashboard/web/assets/{timeline-definition-PNZ67QCA-DCN7NjEs.js → timeline-definition-PNZ67QCA-NlqCuFuo.js} +1 -1
  161. package/dist/domains/dashboard/web/assets/{vennDiagram-CIIHVFJN-DZAN1_rr.js → vennDiagram-CIIHVFJN-B4W_d1Nq.js} +1 -1
  162. package/dist/domains/dashboard/web/assets/{wardleyDiagram-YWT4CUSO-FfkJfr4C.js → wardleyDiagram-YWT4CUSO-Bex-_jWd.js} +1 -1
  163. package/dist/domains/dashboard/web/assets/{xychartDiagram-2RQKCTM6-CD8B-EmR.js → xychartDiagram-2RQKCTM6-CmxeVM2Z.js} +1 -1
  164. package/dist/domains/dashboard/web/index.html +2 -2
  165. package/dist/domains/skill/platform-install.d.ts.map +1 -1
  166. package/dist/domains/skill/platform-install.js +22 -2
  167. package/dist/domains/skill/platform-install.js.map +1 -1
  168. package/dist/domains/workflow-contract/project-config.d.ts.map +1 -1
  169. package/dist/domains/workflow-contract/project-config.js +4 -4
  170. package/dist/domains/workflow-contract/project-config.js.map +1 -1
  171. package/eval/local/tasks/comet-native-workflow/instruction.md +4 -17
  172. package/eval/local/tasks/comet-native-workflow/validation/test_native_workflow.py +22 -232
  173. package/eval/local/tests/conftest.py +0 -218
  174. package/eval/local/tests/scaffold/test_native_wave_evaluations.py +0 -163
  175. package/eval/local/tests/scaffold/test_tasks.py +1 -8
  176. package/eval/local/tests/scaffold/test_utils.py +4 -7
  177. package/eval/scaffold/shell/docker.sh +2 -95
  178. package/package.json +1 -1
  179. package/dist/domains/comet-native/native-controller-trust.d.ts +0 -22
  180. package/dist/domains/comet-native/native-controller-trust.d.ts.map +0 -1
  181. package/dist/domains/comet-native/native-controller-trust.js +0 -153
  182. package/dist/domains/comet-native/native-controller-trust.js.map +0 -1
  183. package/dist/domains/comet-native/native-creation-authorization.d.ts +0 -30
  184. package/dist/domains/comet-native/native-creation-authorization.d.ts.map +0 -1
  185. package/dist/domains/comet-native/native-creation-authorization.js +0 -110
  186. package/dist/domains/comet-native/native-creation-authorization.js.map +0 -1
  187. package/dist/domains/comet-native/native-independent-review.d.ts +0 -28
  188. package/dist/domains/comet-native/native-independent-review.d.ts.map +0 -1
  189. package/dist/domains/comet-native/native-independent-review.js +0 -134
  190. package/dist/domains/comet-native/native-independent-review.js.map +0 -1
  191. package/dist/domains/comet-native/native-review-contract.d.ts +0 -6
  192. package/dist/domains/comet-native/native-review-contract.d.ts.map +0 -1
  193. package/dist/domains/comet-native/native-review-contract.js +0 -6
  194. package/dist/domains/comet-native/native-review-contract.js.map +0 -1
  195. package/dist/domains/comet-native/native-review-identity.d.ts +0 -50
  196. package/dist/domains/comet-native/native-review-identity.d.ts.map +0 -1
  197. package/dist/domains/comet-native/native-review-identity.js +0 -209
  198. package/dist/domains/comet-native/native-review-identity.js.map +0 -1
  199. package/dist/domains/comet-native/native-review-signer.d.ts +0 -24
  200. package/dist/domains/comet-native/native-review-signer.d.ts.map +0 -1
  201. package/dist/domains/comet-native/native-review-signer.js +0 -125
  202. package/dist/domains/comet-native/native-review-signer.js.map +0 -1
  203. package/dist/domains/comet-native/native-review-trust.d.ts +0 -35
  204. package/dist/domains/comet-native/native-review-trust.d.ts.map +0 -1
  205. package/dist/domains/comet-native/native-review-trust.js +0 -176
  206. package/dist/domains/comet-native/native-review-trust.js.map +0 -1
  207. package/dist/domains/dashboard/web/assets/channel--JtnhJr8.js +0 -1
  208. package/dist/domains/dashboard/web/assets/classDiagram-4FO5ZUOK-BRGmx8Iz.js +0 -1
  209. package/dist/domains/dashboard/web/assets/classDiagram-v2-Q7XG4LA2-BRGmx8Iz.js +0 -1
  210. package/dist/domains/dashboard/web/assets/index-D-AGxvI4.css +0 -1
  211. package/dist/domains/dashboard/web/assets/stateDiagram-v2-BHNVJYJU-D5zZYi4x.js +0 -1
  212. package/eval/local/tasks/comet-native-workflow/environment/.include-trusted-native-review-fixture +0 -1
  213. package/eval/scaffold/shell/native-review-signer-daemon.mjs +0 -144
  214. package/eval/scaffold/shell/native-review-verifier-daemon.mjs +0 -178
@@ -1,4 +1,4 @@
1
- import{p as le}from"./chunk-4BX2VUAB-BAUkbZdT.js";import{I as he}from"./chunk-QZHKN3VN-BiRfH4d2.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,C as J,l as w,d as me,c as W,u as pe,D as be,y as we,k as B,E as ke,F as ve,G as Ce}from"./mermaid.core-CucmqsLW.js";import{p as Ee}from"./cynefin-VYW2F7L2-B3F-qRTJ.js";import"./index-Msce_H_q.js";import"./_commonjsHelpers-CqkleIqs.js";import"./purify.es-VaSPOPhr.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{p as le}from"./chunk-4BX2VUAB-CwA3zkFS.js";import{I as he}from"./chunk-QZHKN3VN-DaK5rvZu.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,C as J,l as w,d as me,c as W,u as pe,D as be,y as we,k as B,E as ke,F as ve,G as Ce}from"./mermaid.core-5Ibr28Ig.js";import{p as Ee}from"./cynefin-VYW2F7L2-CBaY4KFj.js";import"./index-CovQUq5W.js";import"./_commonjsHelpers-CqkleIqs.js";import"./purify.es-VaSPOPhr.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{le(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -0,0 +1 @@
1
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--blur-xl:24px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#fff;--color-surface:#f5f5f7;--color-surface-warm:#fbfbfd;--color-fg:#1d1d1f;--color-fg-2:#424245;--color-muted:#6e6e73;--color-meta:#6e6e73;--color-border:#d2d2d7;--color-border-soft:#e8e8ed;--color-accent:#0063f8;--color-accent-active:#0052e0;--color-accent-soft:oklab(95.5173% -.00376316 -.0232734);--color-accent-softer:oklab(97.3104% -.00225789 -.013964);--color-success:#16a34a;--color-warn:#c47a06;--color-danger:#dc2626;--color-info:#0063f8;--color-ok-soft:oklab(95.5246% -.0175162 .0104361);--color-warn-soft:oklab(95.7223% .00634364 .0155582);--color-danger-soft:oklab(95.771% .0191149 .00987657);--color-info-soft:oklab(95.5173% -.00376316 -.0232734);--spacing-dashboard:1620px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-0\.5{top:calc(var(--spacing) * .5)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.right-0{right:0}.right-1\/2{right:50%}.right-5{right:calc(var(--spacing) * 5)}.bottom-0\.5{bottom:calc(var(--spacing) * .5)}.left-0{left:0}.left-0\.5{left:calc(var(--spacing) * .5)}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[90\]{z-index:90}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-auto{margin-top:auto}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3\.5{width:calc(var(--spacing) * 3.5);height:calc(var(--spacing) * 3.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-full{width:100%;height:100%}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-6{height:calc(var(--spacing) * 6)}.h-10{height:calc(var(--spacing) * 10)}.h-\[110px\]{height:110px}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[480px\]{min-height:480px}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-16{width:calc(var(--spacing) * 16)}.w-\[110px\]{width:110px}.w-\[140px\]{width:140px}.w-\[220px\]{width:220px}.w-\[calc\(50\%-2px\)\]{width:calc(50% - 2px)}.w-\[clamp\(180px\,24vw\,300px\)\]{width:clamp(180px,24vw,300px)}.w-\[var\(--rail-w\)\]{width:var(--rail-w)}.w-full{width:100%}.w-px{width:1px}.max-w-dashboard{max-width:var(--spacing-dashboard)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-rotate-90{rotate:-90deg}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[16px_1fr_auto\]{grid-template-columns:16px 1fr auto}.grid-cols-\[minmax\(0\,1fr\)_minmax\(360px\,760px\)\]{grid-template-columns:minmax(0,1fr) minmax(360px,760px)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-px>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(1px * var(--tw-space-y-reverse));margin-block-end:calc(1px * calc(1 - var(--tw-space-y-reverse)))}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded-\[7px\]{border-radius:7px}.rounded-\[9px\]{border-radius:9px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-accent{border-color:var(--color-accent)}.border-accent\/15{border-color:#0063f826}@supports (color:color-mix(in lab,red,red)){.border-accent\/15{border-color:color-mix(in oklab,var(--color-accent) 15%,transparent)}}.border-accent\/30{border-color:#0063f84d}@supports (color:color-mix(in lab,red,red)){.border-accent\/30{border-color:color-mix(in oklab,var(--color-accent) 30%,transparent)}}.border-border{border-color:var(--color-border)}.border-border-soft{border-color:var(--color-border-soft)}.border-danger\/30{border-color:#dc26264d}@supports (color:color-mix(in lab,red,red)){.border-danger\/30{border-color:color-mix(in oklab,var(--color-danger) 30%,transparent)}}.border-transparent{border-color:#0000}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-accent-softer{background-color:var(--color-accent-softer)}.bg-bg{background-color:var(--color-bg)}.bg-bg\/70{background-color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.bg-bg\/70{background-color:color-mix(in oklab,var(--color-bg) 70%,transparent)}}.bg-black\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\/30{background-color:color-mix(in oklab,var(--color-black) 30%,transparent)}}.bg-border{background-color:var(--color-border)}.bg-border-soft{background-color:var(--color-border-soft)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-fg{background-color:var(--color-fg)}.bg-info-soft{background-color:var(--color-info-soft)}.bg-ok-soft{background-color:var(--color-ok-soft)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-warm{background-color:var(--color-surface-warm)}.bg-surface\/80{background-color:#f5f5f7cc}@supports (color:color-mix(in lab,red,red)){.bg-surface\/80{background-color:color-mix(in oklab,var(--color-surface) 80%,transparent)}}.bg-warn-soft{background-color:var(--color-warn-soft)}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-10{padding:calc(var(--spacing) * 10)}.p-12{padding:calc(var(--spacing) * 12)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-12{padding-inline:calc(var(--spacing) * 12)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-7{padding-left:calc(var(--spacing) * 7)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[18px\]{font-size:18px}.text-\[26px\]{font-size:26px}.text-\[28px\]{font-size:28px}.text-\[40px\]{font-size:40px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.01em\]{--tw-tracking:.01em;letter-spacing:.01em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.text-accent{color:var(--color-accent)}.text-accent-active{color:var(--color-accent-active)}.text-bg{color:var(--color-bg)}.text-danger{color:var(--color-danger)}.text-fg{color:var(--color-fg)}.text-fg-2{color:var(--color-fg-2)}.text-info{color:var(--color-info)}.text-meta{color:var(--color-meta)}.text-muted{color:var(--color-muted)}.text-success{color:var(--color-success)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.shadow-\[-20px_0_44px_rgba\(0\,0\,0\,0\.12\)\]{--tw-shadow:-20px 0 44px var(--tw-shadow-color,#0000001f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_1px_3px_rgba\(15\,23\,42\,0\.08\)\]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#0f172a14);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-card{--tw-shadow:none;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-raised{--tw-shadow:0 12px 32px var(--tw-shadow-color,#00000014);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.first\:mt-2:first-child{margin-top:calc(var(--spacing) * 2)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.last\:pb-0:last-child{padding-bottom:0}@media(hover:hover){.hover\:border-border-soft:hover{border-color:var(--color-border-soft)}.hover\:bg-bg:hover{background-color:var(--color-bg)}.hover\:bg-surface:hover{background-color:var(--color-surface)}.hover\:bg-surface-warm:hover{background-color:var(--color-surface-warm)}.hover\:text-fg:hover{color:var(--color-fg)}.hover\:text-fg-2:hover{color:var(--color-fg-2)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.focus\:border-accent:focus{border-color:var(--color-accent)}.focus\:ring-4:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-accent\/20:focus{--tw-ring-color:#0063f833}@supports (color:color-mix(in lab,red,red)){.focus\:ring-accent\/20:focus{--tw-ring-color:color-mix(in oklab, var(--color-accent) 20%, transparent)}}@media not all and (min-width:40rem){.max-sm\:hidden{display:none}.max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media(min-width:40rem){.sm\:block{display:block}.sm\:px-6{padding-inline:calc(var(--spacing) * 6)}}@media(min-width:48rem){.md\:inline-flex{display:inline-flex}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[1fr_340px\]{grid-template-columns:1fr 340px}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-0{top:0}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-screen{height:100vh}.lg\:translate-x-0{--tw-translate-x:0;translate:var(--tw-translate-x) var(--tw-translate-y)}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-\[var\(--rail-w\)_1fr\]{grid-template-columns:var(--rail-w) 1fr}.lg\:px-8{padding-inline:calc(var(--spacing) * 8)}}@media(min-width:80rem){.xl\:col-start-2{grid-column-start:2}.xl\:grid-cols-\[minmax\(260px\,320px\)_minmax\(0\,1fr\)\]{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}}@media(min-width:96rem){.\32xl\:col-start-auto{grid-column-start:auto}.\32xl\:grid-cols-\[minmax\(260px\,320px\)_minmax\(0\,1fr\)_minmax\(260px\,320px\)\]{grid-template-columns:minmax(260px,320px) minmax(0,1fr) minmax(260px,320px)}}}:root[data-theme=dark],:host[data-theme=dark]{--color-bg:#0b0e13;--color-surface:#181b1f;--color-surface-warm:#22252e;--color-fg:#d8dee9;--color-fg-2:#b0b8c4;--color-muted:#7b818a;--color-meta:#8e939e;--color-border:#343740;--color-border-soft:#282b33;--color-accent:#6e9fff;--color-accent-active:#8bb4ff;--color-accent-soft:oklab(26.1466% -.00500724 -.0363311);--color-accent-softer:oklab(22.8611% -.00397309 -.0280616);--color-success:#73bf69;--color-warn:#ff9830;--color-danger:#f2495c;--color-info:#6e9fff;--color-ok-soft:oklab(26.5788% -.0214788 .00639551);--color-warn-soft:oklab(27.2505% .0131415 .0162306);--color-danger-soft:oklab(23.6018% .0273997 .000079521);--color-info-soft:oklab(24.5038% -.00449016 -.0321963);--shadow-raised:0 8px 32px #00000080;--shadow-card:none}:root{--rail-w:248px;color:var(--color-fg);background:var(--color-surface);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:Inter,Inter var,sans-serif}:root,:root *{transition-property:color,background-color,border-color,box-shadow;transition-duration:.15s;transition-timing-function:ease-out}:root button:active,:root input:active,:root .no-transition{transition:none!important}html{scrollbar-gutter:stable;overflow-y:scroll}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-muted)}body{min-width:320px;margin:0}button,input{font:inherit}.max-w-dashboard{max-width:var(--spacing-dashboard)}.artifact-markdown,.md-github{color:#24292f;overflow-wrap:anywhere;font-size:16px;line-height:1.75}.md-github h1,.md-github h2,.md-github h3,.md-github h4,.md-github h5,.md-github h6{margin-top:28px;margin-bottom:10px;font-weight:600;line-height:1.35}.md-github h1{color:#0d1117;border-bottom:2px solid #d0d7de;padding-bottom:8px;font-size:1.65em}.md-github h2{color:#1f2328;border-bottom:1px solid #d0d7de;padding-bottom:6px;font-size:1.35em}.md-github h3{color:#32383f;font-size:1.1em}.md-github h4{color:#57606a;font-size:1em}.md-github h5,.md-github h6{color:#6e7781;font-size:.9em}.md-github p{color:#24292f;margin:12px 0}.md-github ul,.md-github ol{margin:10px 0;padding-left:1.6em}.md-github li{color:#32383f;margin:5px 0}.md-github li>ul,.md-github li>ol{margin:4px 0}.md-github li li{color:#57606a}.md-github :not(pre)>code{color:#cf222e;background:#f0f2f4;border:1px solid #d0d7de;border-radius:4px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em}.md-github pre{color:#1f2328;background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:14px 0;padding:14px 16px;overflow-x:auto}.md-github pre code{color:#1f2328;background:0 0;border:none;padding:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;line-height:1.8}.md-github blockquote{color:#57606a;background:#f6f8fa;border-left:4px solid #d0d7de;border-radius:0 4px 4px 0;margin:14px 0;padding:8px 16px}.md-github blockquote p{color:#57606a;margin:4px 0}.md-github strong{color:#0969da;font-weight:600}.md-github em{color:#6639ba;font-style:italic}.md-github hr{border:none;border-top:1px solid #d0d7de;margin:28px 0}.md-github a{color:#0969da;text-decoration:none}.md-github a:hover{text-decoration:underline}.md-github table{border-collapse:collapse;width:100%;margin:14px 0;font-size:.9em}.md-github th,.md-github td{text-align:left;border:1px solid #d0d7de;padding:8px 13px}.md-github th{color:#1f2328;background:#f6f8fa;font-weight:600}.md-github td{color:#32383f}.md-github tr:nth-child(2n) td{background:#f6f8fa}.md-github .yaml-kv-table th[scope=row]{white-space:nowrap;vertical-align:top;width:28%;max-width:220px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}.md-github .yaml-kv-table td,.md-github .json-array-table td{vertical-align:top;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;line-height:1.55}.md-github input[type=checkbox]{accent-color:#0969da;margin-right:6px}:root[data-theme=dark] .md-github,:host[data-theme=dark] .md-github{color:var(--color-fg-2)}:root[data-theme=dark] .md-github h1,:root[data-theme=dark] .md-github h2,:root[data-theme=dark] .md-github h3,:root[data-theme=dark] .md-github h4,:root[data-theme=dark] .md-github h5,:root[data-theme=dark] .md-github h6,:host[data-theme=dark] .md-github h1,:host[data-theme=dark] .md-github h2,:host[data-theme=dark] .md-github h3,:host[data-theme=dark] .md-github h4,:host[data-theme=dark] .md-github h5,:host[data-theme=dark] .md-github h6{color:var(--color-fg)}:root[data-theme=dark] .md-github h1,:root[data-theme=dark] .md-github h2,:host[data-theme=dark] .md-github h1,:host[data-theme=dark] .md-github h2{border-bottom-color:var(--color-border)}:root[data-theme=dark] .md-github p,:root[data-theme=dark] .md-github li,:host[data-theme=dark] .md-github p,:host[data-theme=dark] .md-github li{color:var(--color-fg-2)}:root[data-theme=dark] .md-github li li,:host[data-theme=dark] .md-github li li{color:var(--color-muted)}:root[data-theme=dark] .md-github :not(pre)>code,:host[data-theme=dark] .md-github :not(pre)>code{background:var(--color-surface-warm);border-color:var(--color-border);color:#f85149}:root[data-theme=dark] .md-github pre,:host[data-theme=dark] .md-github pre{border-color:var(--color-border);color:var(--color-fg);background:#14171c}:root[data-theme=dark] .md-github pre code,:host[data-theme=dark] .md-github pre code{color:var(--color-fg)}:root[data-theme=dark] .md-github blockquote,:host[data-theme=dark] .md-github blockquote{border-left-color:var(--color-border);background:var(--color-surface);color:var(--color-muted)}:root[data-theme=dark] .md-github blockquote p,:host[data-theme=dark] .md-github blockquote p{color:var(--color-muted)}:root[data-theme=dark] .md-github strong,:host[data-theme=dark] .md-github strong{color:var(--color-accent)}:root[data-theme=dark] .md-github em,:host[data-theme=dark] .md-github em{color:#d2a8ff}:root[data-theme=dark] .md-github hr,:host[data-theme=dark] .md-github hr{border-top-color:var(--color-border)}:root[data-theme=dark] .md-github a,:host[data-theme=dark] .md-github a{color:var(--color-accent)}:root[data-theme=dark] .md-github th,:root[data-theme=dark] .md-github td,:host[data-theme=dark] .md-github th,:host[data-theme=dark] .md-github td{border-color:var(--color-border)}:root[data-theme=dark] .md-github th,:host[data-theme=dark] .md-github th{background:var(--color-surface);color:var(--color-fg)}:root[data-theme=dark] .md-github td,:host[data-theme=dark] .md-github td{color:var(--color-fg-2)}:root[data-theme=dark] .md-github tr:nth-child(2n) td,:host[data-theme=dark] .md-github tr:nth-child(2n) td{background:var(--color-surface)}:root[data-theme=dark] .md-github input[type=checkbox],:host[data-theme=dark] .md-github input[type=checkbox]{accent-color:var(--color-accent)}:root[data-theme=dark] ::-webkit-scrollbar{width:8px;height:8px}:host[data-theme=dark] ::-webkit-scrollbar{width:8px;height:8px}:root[data-theme=dark] ::-webkit-scrollbar-track{background:#0b0e13}:host[data-theme=dark] ::-webkit-scrollbar-track{background:#0b0e13}:root[data-theme=dark] ::-webkit-scrollbar-thumb{background:#343740;border-radius:4px}:host[data-theme=dark] ::-webkit-scrollbar-thumb{background:#343740;border-radius:4px}:root[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#4a4d56}:host[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#4a4d56}:root[data-theme=dark] .summary-card-glow,:host[data-theme=dark] .summary-card-glow{box-shadow:0 0 0 1px #6cb6ff1a}:root[data-theme=dark] .accent-glow,:host[data-theme=dark] .accent-glow{box-shadow:0 0 12px #6cb6ff26}.toast{z-index:100;opacity:0;pointer-events:none;background:var(--color-fg);color:var(--color-bg);border-radius:999px;padding:11px 20px;font-size:14px;transition:opacity .22s,transform .22s;position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px)}.toast.show{opacity:1;transform:translate(-50%)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-QO0z6F4w.js","assets/_commonjsHelpers-CqkleIqs.js","assets/mermaid.core-CucmqsLW.js","assets/purify.es-VaSPOPhr.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-QO0z6F4w.js","assets/_commonjsHelpers-CqkleIqs.js","assets/mermaid.core-5Ibr28Ig.js","assets/purify.es-VaSPOPhr.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const b of document.querySelectorAll('link[rel="modulepreload"]'))r(b);new MutationObserver(b=>{for(const N of b)if(N.type==="childList")for(const O of N.addedNodes)O.tagName==="LINK"&&O.rel==="modulepreload"&&r(O)}).observe(document,{childList:!0,subtree:!0});function m(b){const N={};return b.integrity&&(N.integrity=b.integrity),b.referrerPolicy&&(N.referrerPolicy=b.referrerPolicy),b.crossOrigin==="use-credentials"?N.credentials="include":b.crossOrigin==="anonymous"?N.credentials="omit":N.credentials="same-origin",N}function r(b){if(b.ep)return;b.ep=!0;const N=m(b);fetch(b.href,N)}})();const D0="modulepreload",U0=function(f){return"/"+f},Rd={},Ze=function(d,m,r){let b=Promise.resolve();if(m&&m.length>0){let M=function(p){return Promise.all(p.map(H=>Promise.resolve(H).then(D=>({status:"fulfilled",value:D}),D=>({status:"rejected",reason:D}))))};document.getElementsByTagName("link");const O=document.querySelector("meta[property=csp-nonce]"),R=O?.nonce||O?.getAttribute("nonce");b=M(m.map(p=>{if(p=U0(p),p in Rd)return;Rd[p]=!0;const H=p.endsWith(".css"),D=H?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${D}`))return;const G=document.createElement("link");if(G.rel=H?"stylesheet":D0,H||(G.as="script"),G.crossOrigin="",G.href=p,R&&G.setAttribute("nonce",R),document.head.appendChild(G),H)return new Promise((L,$)=>{G.addEventListener("load",L),G.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${p}`)))})}))}function N(O){const R=new Event("vite:preloadError",{cancelable:!0});if(R.payload=O,window.dispatchEvent(R),!R.defaultPrevented)throw O}return b.then(O=>{for(const R of O||[])R.status==="rejected"&&N(R.reason);return d().catch(N)})};var xf={exports:{}},En={};var Hd;function C0(){if(Hd)return En;Hd=1;var f=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function m(r,b,N){var O=null;if(N!==void 0&&(O=""+N),b.key!==void 0&&(O=""+b.key),"key"in b){N={};for(var R in b)R!=="key"&&(N[R]=b[R])}else N=b;return b=N.ref,{$$typeof:f,type:r,key:O,ref:b!==void 0?b:null,props:N}}return En.Fragment=d,En.jsx=m,En.jsxs=m,En}var Bd;function R0(){return Bd||(Bd=1,xf.exports=C0()),xf.exports}var c=R0(),gf={exports:{}},Z={};var qd;function H0(){if(qd)return Z;qd=1;var f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),G=Symbol.iterator;function L(v){return v===null||typeof v!="object"?null:(v=G&&v[G]||v["@@iterator"],typeof v=="function"?v:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},et=Object.assign,bt={};function gt(v,_,C){this.props=v,this.context=_,this.refs=bt,this.updater=C||$}gt.prototype.isReactComponent={},gt.prototype.setState=function(v,_){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,_,"setState")},gt.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function _t(){}_t.prototype=gt.prototype;function W(v,_,C){this.props=v,this.context=_,this.refs=bt,this.updater=C||$}var ct=W.prototype=new _t;ct.constructor=W,et(ct,gt.prototype),ct.isPureReactComponent=!0;var Kt=Array.isArray;function Xt(){}var V={H:null,A:null,T:null,S:null},Ct=Object.prototype.hasOwnProperty;function dl(v,_,C){var q=C.ref;return{$$typeof:f,type:v,key:_,ref:q!==void 0?q:null,props:C}}function Ve(v,_){return dl(v.type,_,v.props)}function Al(v){return typeof v=="object"&&v!==null&&v.$$typeof===f}function Jt(v){var _={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(C){return _[C]})}var ze=/\/+/g;function Cl(v,_){return typeof v=="object"&&v!==null&&v.key!=null?Jt(""+v.key):_.toString(36)}function Nl(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Xt,Xt):(v.status="pending",v.then(function(_){v.status==="pending"&&(v.status="fulfilled",v.value=_)},function(_){v.status==="pending"&&(v.status="rejected",v.reason=_)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function E(v,_,C,q,K){var F=typeof v;(F==="undefined"||F==="boolean")&&(v=null);var st=!1;if(v===null)st=!0;else switch(F){case"bigint":case"string":case"number":st=!0;break;case"object":switch(v.$$typeof){case f:case d:st=!0;break;case H:return st=v._init,E(st(v._payload),_,C,q,K)}}if(st)return K=K(v),st=q===""?"."+Cl(v,0):q,Kt(K)?(C="",st!=null&&(C=st.replace(ze,"$&/")+"/"),E(K,_,C,"",function(Da){return Da})):K!=null&&(Al(K)&&(K=Ve(K,C+(K.key==null||v&&v.key===K.key?"":(""+K.key).replace(ze,"$&/")+"/")+st)),_.push(K)),1;st=0;var Zt=q===""?".":q+":";if(Kt(v))for(var Et=0;Et<v.length;Et++)q=v[Et],F=Zt+Cl(q,Et),st+=E(q,_,C,F,K);else if(Et=L(v),typeof Et=="function")for(v=Et.call(v),Et=0;!(q=v.next()).done;)q=q.value,F=Zt+Cl(q,Et++),st+=E(q,_,C,F,K);else if(F==="object"){if(typeof v.then=="function")return E(Nl(v),_,C,q,K);throw _=String(v),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return st}function U(v,_,C){if(v==null)return v;var q=[],K=0;return E(v,q,"","",function(F){return _.call(C,F,K++)}),q}function w(v){if(v._status===-1){var _=v._result;_=_(),_.then(function(C){(v._status===0||v._status===-1)&&(v._status=1,v._result=C)},function(C){(v._status===0||v._status===-1)&&(v._status=2,v._result=C)}),v._status===-1&&(v._status=0,v._result=_)}if(v._status===1)return v._result.default;throw v._result}var dt=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},yt={map:U,forEach:function(v,_,C){U(v,function(){_.apply(this,arguments)},C)},count:function(v){var _=0;return U(v,function(){_++}),_},toArray:function(v){return U(v,function(_){return _})||[]},only:function(v){if(!Al(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return Z.Activity=D,Z.Children=yt,Z.Component=gt,Z.Fragment=m,Z.Profiler=b,Z.PureComponent=W,Z.StrictMode=r,Z.Suspense=M,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Z.__COMPILER_RUNTIME={__proto__:null,c:function(v){return V.H.useMemoCache(v)}},Z.cache=function(v){return function(){return v.apply(null,arguments)}},Z.cacheSignal=function(){return null},Z.cloneElement=function(v,_,C){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var q=et({},v.props),K=v.key;if(_!=null)for(F in _.key!==void 0&&(K=""+_.key),_)!Ct.call(_,F)||F==="key"||F==="__self"||F==="__source"||F==="ref"&&_.ref===void 0||(q[F]=_[F]);var F=arguments.length-2;if(F===1)q.children=C;else if(1<F){for(var st=Array(F),Zt=0;Zt<F;Zt++)st[Zt]=arguments[Zt+2];q.children=st}return dl(v.type,K,q)},Z.createContext=function(v){return v={$$typeof:O,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:N,_context:v},v},Z.createElement=function(v,_,C){var q,K={},F=null;if(_!=null)for(q in _.key!==void 0&&(F=""+_.key),_)Ct.call(_,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(K[q]=_[q]);var st=arguments.length-2;if(st===1)K.children=C;else if(1<st){for(var Zt=Array(st),Et=0;Et<st;Et++)Zt[Et]=arguments[Et+2];K.children=Zt}if(v&&v.defaultProps)for(q in st=v.defaultProps,st)K[q]===void 0&&(K[q]=st[q]);return dl(v,F,K)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(v){return{$$typeof:R,render:v}},Z.isValidElement=Al,Z.lazy=function(v){return{$$typeof:H,_payload:{_status:-1,_result:v},_init:w}},Z.memo=function(v,_){return{$$typeof:p,type:v,compare:_===void 0?null:_}},Z.startTransition=function(v){var _=V.T,C={};V.T=C;try{var q=v(),K=V.S;K!==null&&K(C,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Xt,dt)}catch(F){dt(F)}finally{_!==null&&C.types!==null&&(_.types=C.types),V.T=_}},Z.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Z.use=function(v){return V.H.use(v)},Z.useActionState=function(v,_,C){return V.H.useActionState(v,_,C)},Z.useCallback=function(v,_){return V.H.useCallback(v,_)},Z.useContext=function(v){return V.H.useContext(v)},Z.useDebugValue=function(){},Z.useDeferredValue=function(v,_){return V.H.useDeferredValue(v,_)},Z.useEffect=function(v,_){return V.H.useEffect(v,_)},Z.useEffectEvent=function(v){return V.H.useEffectEvent(v)},Z.useId=function(){return V.H.useId()},Z.useImperativeHandle=function(v,_,C){return V.H.useImperativeHandle(v,_,C)},Z.useInsertionEffect=function(v,_){return V.H.useInsertionEffect(v,_)},Z.useLayoutEffect=function(v,_){return V.H.useLayoutEffect(v,_)},Z.useMemo=function(v,_){return V.H.useMemo(v,_)},Z.useOptimistic=function(v,_){return V.H.useOptimistic(v,_)},Z.useReducer=function(v,_,C){return V.H.useReducer(v,_,C)},Z.useRef=function(v){return V.H.useRef(v)},Z.useState=function(v){return V.H.useState(v)},Z.useSyncExternalStore=function(v,_,C){return V.H.useSyncExternalStore(v,_,C)},Z.useTransition=function(){return V.H.useTransition()},Z.version="19.2.7",Z}var Yd;function Tf(){return Yd||(Yd=1,gf.exports=H0()),gf.exports}var it=Tf(),bf={exports:{}},Tn={},pf={exports:{}},Sf={};var Gd;function B0(){return Gd||(Gd=1,(function(f){function d(E,U){var w=E.length;E.push(U);t:for(;0<w;){var dt=w-1>>>1,yt=E[dt];if(0<b(yt,U))E[dt]=U,E[w]=yt,w=dt;else break t}}function m(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var U=E[0],w=E.pop();if(w!==U){E[0]=w;t:for(var dt=0,yt=E.length,v=yt>>>1;dt<v;){var _=2*(dt+1)-1,C=E[_],q=_+1,K=E[q];if(0>b(C,w))q<yt&&0>b(K,C)?(E[dt]=K,E[q]=w,dt=q):(E[dt]=C,E[_]=w,dt=_);else if(q<yt&&0>b(K,w))E[dt]=K,E[q]=w,dt=q;else break t}}return U}function b(E,U){var w=E.sortIndex-U.sortIndex;return w!==0?w:E.id-U.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var N=performance;f.unstable_now=function(){return N.now()}}else{var O=Date,R=O.now();f.unstable_now=function(){return O.now()-R}}var M=[],p=[],H=1,D=null,G=3,L=!1,$=!1,et=!1,bt=!1,gt=typeof setTimeout=="function"?setTimeout:null,_t=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function ct(E){for(var U=m(p);U!==null;){if(U.callback===null)r(p);else if(U.startTime<=E)r(p),U.sortIndex=U.expirationTime,d(M,U);else break;U=m(p)}}function Kt(E){if(et=!1,ct(E),!$)if(m(M)!==null)$=!0,Xt||(Xt=!0,Jt());else{var U=m(p);U!==null&&Nl(Kt,U.startTime-E)}}var Xt=!1,V=-1,Ct=5,dl=-1;function Ve(){return bt?!0:!(f.unstable_now()-dl<Ct)}function Al(){if(bt=!1,Xt){var E=f.unstable_now();dl=E;var U=!0;try{t:{$=!1,et&&(et=!1,_t(V),V=-1),L=!0;var w=G;try{l:{for(ct(E),D=m(M);D!==null&&!(D.expirationTime>E&&Ve());){var dt=D.callback;if(typeof dt=="function"){D.callback=null,G=D.priorityLevel;var yt=dt(D.expirationTime<=E);if(E=f.unstable_now(),typeof yt=="function"){D.callback=yt,ct(E),U=!0;break l}D===m(M)&&r(M),ct(E)}else r(M);D=m(M)}if(D!==null)U=!0;else{var v=m(p);v!==null&&Nl(Kt,v.startTime-E),U=!1}}break t}finally{D=null,G=w,L=!1}U=void 0}}finally{U?Jt():Xt=!1}}}var Jt;if(typeof W=="function")Jt=function(){W(Al)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,Cl=ze.port2;ze.port1.onmessage=Al,Jt=function(){Cl.postMessage(null)}}else Jt=function(){gt(Al,0)};function Nl(E,U){V=gt(function(){E(f.unstable_now())},U)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(E){E.callback=null},f.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ct=0<E?Math.floor(1e3/E):5},f.unstable_getCurrentPriorityLevel=function(){return G},f.unstable_next=function(E){switch(G){case 1:case 2:case 3:var U=3;break;default:U=G}var w=G;G=U;try{return E()}finally{G=w}},f.unstable_requestPaint=function(){bt=!0},f.unstable_runWithPriority=function(E,U){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var w=G;G=E;try{return U()}finally{G=w}},f.unstable_scheduleCallback=function(E,U,w){var dt=f.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?dt+w:dt):w=dt,E){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=w+yt,E={id:H++,callback:U,priorityLevel:E,startTime:w,expirationTime:yt,sortIndex:-1},w>dt?(E.sortIndex=w,d(p,E),m(M)===null&&E===m(p)&&(et?(_t(V),V=-1):et=!0,Nl(Kt,w-dt))):(E.sortIndex=yt,d(M,E),$||L||($=!0,Xt||(Xt=!0,Jt()))),E},f.unstable_shouldYield=Ve,f.unstable_wrapCallback=function(E){var U=G;return function(){var w=G;G=U;try{return E.apply(this,arguments)}finally{G=w}}}})(Sf)),Sf}var Qd;function q0(){return Qd||(Qd=1,pf.exports=B0()),pf.exports}var jf={exports:{}},wt={};var Ld;function Y0(){if(Ld)return wt;Ld=1;var f=Tf();function d(M){var p="https://react.dev/errors/"+M;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)p+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+M+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(){}var r={d:{f:m,r:function(){throw Error(d(522))},D:m,C:m,L:m,m,X:m,S:m,M:m},p:0,findDOMNode:null},b=Symbol.for("react.portal");function N(M,p,H){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:b,key:D==null?null:""+D,children:M,containerInfo:p,implementation:H}}var O=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function R(M,p){if(M==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wt.createPortal=function(M,p){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(d(299));return N(M,p,null,H)},wt.flushSync=function(M){var p=O.T,H=r.p;try{if(O.T=null,r.p=2,M)return M()}finally{O.T=p,r.p=H,r.d.f()}},wt.preconnect=function(M,p){typeof M=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(M,p))},wt.prefetchDNS=function(M){typeof M=="string"&&r.d.D(M)},wt.preinit=function(M,p){if(typeof M=="string"&&p&&typeof p.as=="string"){var H=p.as,D=R(H,p.crossOrigin),G=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;H==="style"?r.d.S(M,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:D,integrity:G,fetchPriority:L}):H==="script"&&r.d.X(M,{crossOrigin:D,integrity:G,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},wt.preinitModule=function(M,p){if(typeof M=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var H=R(p.as,p.crossOrigin);r.d.M(M,{crossOrigin:H,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(M)},wt.preload=function(M,p){if(typeof M=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var H=p.as,D=R(H,p.crossOrigin);r.d.L(M,H,{crossOrigin:D,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},wt.preloadModule=function(M,p){if(typeof M=="string")if(p){var H=R(p.as,p.crossOrigin);r.d.m(M,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:H,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(M)},wt.requestFormReset=function(M){r.d.r(M)},wt.unstable_batchedUpdates=function(M,p){return M(p)},wt.useFormState=function(M,p,H){return O.H.useFormState(M,p,H)},wt.useFormStatus=function(){return O.H.useHostTransitionStatus()},wt.version="19.2.7",wt}var Xd;function G0(){if(Xd)return jf.exports;Xd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(d){console.error(d)}}return f(),jf.exports=Y0(),jf.exports}var wd;function Q0(){if(wd)return Tn;wd=1;var f=q0(),d=Tf(),m=G0();function r(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function N(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function O(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function R(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function M(t){if(N(t)!==t)throw Error(r(188))}function p(t){var l=t.alternate;if(!l){if(l=N(t),l===null)throw Error(r(188));return l!==t?null:t}for(var e=t,a=l;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return M(n),t;if(u===a)return M(n),l;u=u.sibling}throw Error(r(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,s=n.child;s;){if(s===e){i=!0,e=n,a=u;break}if(s===a){i=!0,a=n,e=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===e){i=!0,e=u,a=n;break}if(s===a){i=!0,a=u,e=n;break}s=s.sibling}if(!i)throw Error(r(189))}}if(e.alternate!==a)throw Error(r(190))}if(e.tag!==3)throw Error(r(188));return e.stateNode.current===e?t:l}function H(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=H(t),l!==null)return l;t=t.sibling}return null}var D=Object.assign,G=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),et=Symbol.for("react.fragment"),bt=Symbol.for("react.strict_mode"),gt=Symbol.for("react.profiler"),_t=Symbol.for("react.consumer"),W=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),Kt=Symbol.for("react.suspense"),Xt=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),dl=Symbol.for("react.activity"),Ve=Symbol.for("react.memo_cache_sentinel"),Al=Symbol.iterator;function Jt(t){return t===null||typeof t!="object"?null:(t=Al&&t[Al]||t["@@iterator"],typeof t=="function"?t:null)}var ze=Symbol.for("react.client.reference");function Cl(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ze?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case et:return"Fragment";case gt:return"Profiler";case bt:return"StrictMode";case Kt:return"Suspense";case Xt:return"SuspenseList";case dl:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case $:return"Portal";case W:return t.displayName||"Context";case _t:return(t._context.displayName||"Context")+".Consumer";case ct:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case V:return l=t.displayName||null,l!==null?l:Cl(t.type)||"Memo";case Ct:l=t._payload,t=t._init;try{return Cl(t(l))}catch{}}return null}var Nl=Array.isArray,E=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w={pending:!1,data:null,method:null,action:null},dt=[],yt=-1;function v(t){return{current:t}}function _(t){0>yt||(t.current=dt[yt],dt[yt]=null,yt--)}function C(t,l){yt++,dt[yt]=t.current,t.current=l}var q=v(null),K=v(null),F=v(null),st=v(null);function Zt(t,l){switch(C(F,l),C(K,t),C(q,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?ad(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=ad(l),t=nd(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}_(q),C(q,t)}function Et(){_(q),_(K),_(F)}function Da(t){t.memoizedState!==null&&C(st,t);var l=q.current,e=nd(l,t.type);l!==e&&(C(K,t),C(q,e))}function On(t){K.current===t&&(_(q),_(K)),st.current===t&&(_(st),Sn._currentValue=w)}var Iu,Uf;function Ee(t){if(Iu===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);Iu=l&&l[1]||"",Uf=-1<e.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+Iu+t+Uf}var Pu=!1;function ti(t,l){if(!t||Pu)return"";Pu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(j){var S=j}Reflect.construct(t,[],A)}else{try{A.call()}catch(j){S=j}t.call(A.prototype)}}else{try{throw Error()}catch(j){S=j}(A=t())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(j){if(j&&S&&typeof j.stack=="string")return[j.stack,S.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],s=u[1];if(i&&s){var o=i.split(`
@@ -12,13 +12,13 @@ Error generating stack: `+a.message+`
12
12
  `)):Il(am(r))}catch{return _n(["```yaml",d.replace(/\n$/,""),"```"].join(`
13
13
  `))}}async function Kd(f){const d=String(f??"");if(!d.trim())return Il("<p>这个产物是空文件。</p>");try{const m=JSON.parse(d);return m===null?Il("<p>这个产物是空文件。</p>"):lm(m)?Il(em(m)):Id(m)?Il(am(m)):_n(["```json",JSON.stringify(m,null,2),"```"].join(`
14
14
  `))}catch{return _n(["```json",d.replace(/\n$/,""),"```"].join(`
15
- `))}}async function _n(f){try{const{Marked:d}=await Ze(async()=>{const{Marked:R}=await import("./marked.esm-DECB3bxB.js");return{Marked:R}},[]);let m=null;try{m=(await Ze(async()=>{const{default:R}=await import("./index-QO0z6F4w.js");return{default:R}},__vite__mapDeps([0,1]))).default}catch{}const r=V0(),b=new d;b.use({renderer:{heading({text:R,depth:M,tokens:p}){const H=r.slug(R),D=p&&this.parser?.parseInline?this.parser.parseInline(p):ll(R);return`<h${M} id="${ll(H)}">${D}</h${M}>`},code({text:R,lang:M}){if(M==="mermaid")return`<div class="mermaid">${ll(R)}</div>`;if(m){const p=M&&m.getLanguage(M)?M:"plaintext",H=m.highlight(R,{language:p}).value;return`<pre><code class="hljs language-${ll(p)}">${H}</code></pre>`}return`<pre><code>${ll(R)}</code></pre>`}}});const N=b.parse(f),O=typeof N=="string"?N:String(N);return Il(O)}catch{return Il(`<pre>${ll(f)}</pre>`)}}function J0(f){const d=f.querySelectorAll("h1, h2, h3"),m=[];return d.forEach(r=>{const b=r.id,N=r.textContent??"",O=parseInt(r.tagName[1],10);b&&N&&m.push({id:b,text:N,depth:O})}),m}async function $0(f){const d=f.querySelectorAll("div.mermaid");if(d.length!==0)try{const m=(await Ze(async()=>{const{default:r}=await import("./mermaid.core-CucmqsLW.js").then(b=>b.bl);return{default:r}},__vite__mapDeps([2,1,3]))).default;m.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await m.run({nodes:Array.from(d)})}catch{}}const ku=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],_f=Object.fromEntries(ku),nm={missing:"尚无验证",invalid:"验证无效",stale:"验证已过期",complete:"验证完整",partial:"部分验证",unknown:"状态未知"},k0={continue:"可继续","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},W0={"work-phase":"继续当前阶段","advance-phase":"推进阶段",repair:"修复后重试",archive:"准备归档",none:"无需动作"},F0={"definite-conflict":"明确冲突","possible-overlap":"可能重叠"};function I0({native:f,git:d,query:m,onPreview:r}){const[b,N]=it.useState("active"),O=it.useMemo(()=>{const H=f?.changes??[],D=m.trim().toLowerCase();return H.filter(G=>{const L=b==="all"||b==="active"&&G.status==="active"||G.status===b,$=!D||G.name.toLowerCase().includes(D);return L&&$})},[f,m,b]),[R,M]=it.useState(null);it.useEffect(()=>{M(H=>O.some(D=>D.name===H)?H:O[0]?.name??null)},[O]);const p=O.find(H=>H.name===R)??O[0]??null;return c.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[c.jsx(Jd,{title:"项目概览",hint:f?`Native 状态生成于 ${Ef(f.generatedAt)}`:"当前项目尚无 Native 状态"}),c.jsx(P0,{native:f}),c.jsx(Jd,{title:"Native 变更工作区",hint:"查看轻量状态、验证结果与冲突摘要"}),!f||f.changes.length===0?c.jsx(fv,{}):c.jsxs("div",{className:"grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[c.jsx(tv,{changes:O,selectedName:p?.name??null,tab:b,onTab:N,onSelect:M}),p&&c.jsx(lv,{change:p,onPreview:r}),p&&c.jsx(cv,{change:p,git:d})]})]})}function Jd({title:f,hint:d}){return c.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[c.jsx("h2",{className:"text-[28px] font-bold leading-tight",children:f}),c.jsx("span",{className:"text-sm text-muted",children:d})]})}function P0({native:f}){const d=f?.changes??[],m=d.filter(M=>M.phase!=="archive").length,r=d.filter(M=>M.archiveReady).length,b=d.filter(M=>M.continuation?.requiresUserDecision).length,N=d.filter(M=>["invalid","stale","partial"].includes(M.verificationFreshness)).length,O=f?f.conflicts.definiteConflict+f.conflicts.possibleOverlap:0,R=[["活跃变更",m,"当前 Native workflow",m?"进行中":"清零"],["可归档变更",r,"验证证据已就绪",r?"就绪":"暂无"],["等待用户",b,"需要明确决策",b?"待确认":"无需"],["验证需关注",N,"过期、无效或部分证据",N?"复核":"健康"],["关联冲突",O,"Native change 关系",O?"关注":"无冲突"]];return c.jsx("section",{className:"grid gap-4 md:grid-cols-3 lg:grid-cols-5",children:R.map(([M,p,H,D])=>c.jsxs("article",{className:"summary-card-glow relative overflow-hidden rounded-lg bg-bg p-5 shadow-raised transition-shadow duration-200 hover:shadow-lg",children:[c.jsx("div",{className:"text-sm font-medium text-muted",children:M}),c.jsx("div",{className:"mt-1 text-[40px] font-bold leading-none tabular-nums",children:p}),c.jsx("div",{className:"mt-2 truncate text-xs text-meta",children:H}),c.jsx("span",{className:"absolute right-5 top-5 rounded-full bg-surface px-2.5 py-1 text-[11px] font-semibold text-fg-2",children:D})]},M))})}function tv({changes:f,selectedName:d,tab:m,onTab:r,onSelect:b}){return c.jsxs("aside",{className:"rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-center border-b border-border-soft px-5 py-4",children:[c.jsx("h3",{className:"font-semibold",children:"Changes Explorer"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[f.length," 个"]})]}),c.jsxs("div",{className:"p-4",children:[c.jsx("div",{className:"mb-4 inline-flex rounded-xl bg-surface p-1",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([N,O])=>c.jsx("button",{type:"button",className:`rounded-lg px-3 py-1.5 text-sm ${m===N?"bg-bg text-fg shadow-sm":"text-muted"}`,onClick:()=>r(N),children:O},N))}),c.jsx("div",{className:"space-y-2",children:f.length===0?c.jsx("div",{className:"py-8 text-center text-sm text-muted",children:m==="active"?"暂无活跃变更":m==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):f.map(N=>c.jsx("button",{type:"button",className:`w-full rounded-xl border p-3 text-left transition-all duration-200 ${N.name===d?"border-accent/30 bg-accent-softer shadow-sm":"border-transparent hover:border-border-soft hover:bg-surface"}`,onClick:()=>b(N.name),children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"mt-1 text-xs text-meta",children:"◇"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-[13px] font-semibold",children:N.name}),c.jsx("div",{className:"mt-1 text-xs text-meta",children:_f[N.phase]??"状态异常"})]}),c.jsx(Mn,{tone:rv(N.verificationFreshness),children:nm[N.verificationFreshness]??"状态未知"})]})},N.name))})]})]})}function lv({change:f,onPreview:d}){const m=f.findings.codes;return c.jsxs("section",{className:"min-w-0 rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"truncate text-base font-semibold",children:f.name}),c.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[c.jsx("span",{children:"native"}),c.jsx("span",{children:f.status==="archived"?`归档于 ${f.archivedAt??"未知时间"}`:f.selected?"当前选中变更":"并行变更"}),c.jsx("span",{children:ov(f.approval)})]})]}),c.jsx(Mn,{tone:sv(f.phase),children:_f[f.phase]??"状态异常"})]}),c.jsxs("div",{className:"space-y-5 p-5",children:[c.jsx(iv,{phase:f.phase,archived:f.status==="archived"}),c.jsx(uv,{artifacts:f.artifacts,onPreview:d}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[c.jsx(ev,{change:f}),c.jsx(av,{change:f})]}),c.jsx(nv,{change:f}),m.length>0&&c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"结构化发现"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[m.length," 项"]})]}),c.jsx("ul",{className:"space-y-2",children:m.map(r=>c.jsx("li",{className:"break-all rounded-lg bg-surface px-3 py-2.5 font-mono text-xs leading-relaxed text-fg-2",children:r},r))})]})]})]})}function ev({change:f}){const d=f.progress,m=!!d?.checkpointAt;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"最近进展"}),c.jsx(Mn,{tone:m?"info":"neutral",children:m?"已记录 Checkpoint":"尚无 Checkpoint"})]}),c.jsx("p",{className:"min-h-10 text-sm leading-relaxed text-fg-2",children:d?.summary??"当前阶段还没有持久化进展摘要。"}),c.jsxs("div",{className:"mt-4 space-y-3 border-t border-border-soft pt-4 text-xs",children:[c.jsx($d,{label:"创建 change",value:Ef(d?.createdAt)}),c.jsx($d,{label:"最近 checkpoint",value:Ef(d?.checkpointAt),active:m})]}),c.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[c.jsx("div",{className:"text-[11px] font-medium text-meta",children:"下一步"}),c.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:f.status==="archived"?"已完成 · 无需后续操作":d?.nextAction??um(f.continuation)})]})]})}function $d({label:f,value:d,active:m=!0}){return c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`size-2 shrink-0 rounded-full ${m?"bg-accent":"border border-border"}`}),c.jsx("span",{className:"text-muted",children:f}),c.jsx("span",{className:"ml-auto text-right font-mono text-fg-2",children:d})]})}function av({change:f}){const d=f.specs,m=d?.capabilities??[],r=f.implementation;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),c.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[d?.total??0," 个 capability"]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[c.jsx(Nf,{label:"新增",value:d?.create??0,tone:"info"}),c.jsx(Nf,{label:"替换",value:d?.replace??0,tone:"warn"}),c.jsx(Nf,{label:"删除",value:d?.remove??0,tone:"danger"})]}),c.jsx("div",{className:"mt-4 space-y-2",children:m.length===0?c.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):m.map(b=>c.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:b.capability}),c.jsx("span",{className:"text-[11px] text-meta",children:dv(b.operation)})]},`${b.capability}-${b.operation}`))}),r&&c.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-2 border-t border-border-soft pt-4 text-xs",children:[c.jsx(Ul,{label:"实现变更",value:`${r.changeCount} 项`}),c.jsx(Ul,{label:"声明产物",value:`${r.declaredArtifactCount} 项`}),c.jsx(Ul,{label:"未归属",value:`${r.unattributedCount} 项`}),c.jsx(Ul,{label:"未解决范围",value:`${r.unresolvedCount} 项`})]})]})}function Nf({label:f,value:d,tone:m}){const r={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[m];return c.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[c.jsx("div",{className:`text-lg font-bold tabular-nums ${d?r:"text-fg-2"}`,children:d}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:f})]})}function nv({change:f}){const d=f.acceptance,m=d?d.evidenced+d.skipped:0,r=d?.total?Math.round(m/d.total*100):0;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收覆盖"}),c.jsx(Mn,{tone:d&&d.missing===0?"ok":"warn",children:d?`${r}% 已处理`:"尚无验收投影"}),c.jsx("span",{className:"ml-auto text-xs text-meta",children:nm[f.verificationFreshness]??"状态未知"})]}),c.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:c.jsx("span",{className:`block h-full rounded-full transition-[width] ${d?.missing===0?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),c.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[c.jsx($u,{label:"总计",value:d?.total??0}),c.jsx($u,{label:"有证据",value:d?.evidenced??0}),c.jsx($u,{label:"已跳过",value:d?.skipped??0}),c.jsx($u,{label:"待补充",value:d?.missing??0})]})]})}function $u({label:f,value:d}){return c.jsxs("div",{children:[c.jsx("div",{className:"text-xl font-bold tabular-nums",children:d}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:f})]})}function uv({artifacts:f,onPreview:d}){const m=f??[],r=m.filter(b=>b.exists).length;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r,"/",m.length]})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"}),c.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),c.jsxs("div",{className:"space-y-px",children:[m.map(b=>c.jsxs("button",{type:"button",className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${b.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!b.exists,onClick:()=>d({key:b.key,name:b.label,preview:b}),children:[c.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:c.jsx("span",{className:`h-2 w-2 rounded-full ${b.exists?"bg-accent":"border border-border"}`})}),c.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:b.key}),c.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:b.exists?b.label:"未生成"})]},b.key)),m.length===0&&c.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function iv({phase:f,archived:d}){const m=Math.max(0,ku.findIndex(([r])=>r===f));return c.jsxs("article",{children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:d?"已归档":`当前 ${_f[f]??"状态异常"}`})]}),c.jsx("div",{className:"flex",children:ku.map(([r,b],N)=>{const O=d||N<m?"done":N===m?"current":"pending";return c.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[N>0&&c.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${N<=m?"bg-accent":"bg-border"}`}),N<ku.length-1&&c.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${N<m?"bg-accent":"bg-border"}`}),c.jsx("span",{"aria-label":`${b} ${O==="done"?"已完成":O==="current"?"当前阶段":"待进行"}`,className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${O==="done"?"border-accent bg-accent text-white":O==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:O==="done"?"✓":N+1}),c.jsx("span",{className:`text-[13px] font-semibold ${O==="pending"?"text-fg-2":"text-accent"}`,children:b})]},r)})})]})}function cv({change:f,git:d}){const m=f.conflicts.peers,r=f.continuation;return c.jsxs("aside",{className:"space-y-5 xl:col-start-2 2xl:col-start-auto",children:[c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"继续与归档"}),c.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[c.jsx(Ul,{label:"继续状态",value:f.status==="archived"?"已完成 · 已归档":um(r)}),c.jsx(Ul,{label:"用户决策",value:r?.requiresUserDecision?"需要":"不需要"}),c.jsx(Ul,{label:"归档预检",value:f.archiveReady?"已就绪":"尚未就绪"})]})]}),c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"Repair 状态"}),c.jsx(Mn,{tone:hv(f.repair),children:mv(f.repair)})]}),c.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:f.repair?f.repair.overrideRecorded?"已记录一次用户覆盖决定;后续重复失败仍会停止。":"检测到重复失败,Native 已停止自动修复。":"当前没有需要人工介入的重复失败。"})]}),c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"关联冲突"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[m.length," 个"]})]}),m.length===0?c.jsx("p",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"未发现冲突变更。"}):c.jsx("ul",{className:"mt-4 space-y-2",children:m.map(b=>c.jsxs("li",{className:"rounded-xl border border-border-soft px-3 py-3",children:[c.jsx("div",{className:"break-all font-mono text-xs text-fg-2",children:b.change}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:F0[b.classification]??"可能重叠"})]},`${b.change}-${b.classification}`))})]}),d&&c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),c.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[c.jsx(Ul,{label:"分支",value:d.branch??"—"}),c.jsx(Ul,{label:"HEAD",value:d.head??"—"}),c.jsx(Ul,{label:"未提交文件",value:`${d.dirtyFiles??0} 个`})]})]})]})}function Ul({label:f,value:d}){return c.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[c.jsx("dt",{className:"text-muted",children:f}),c.jsx("dd",{className:"text-right font-medium text-fg-2",children:d})]})}function Mn({tone:f="neutral",children:d}){const m={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[f]??"bg-surface text-fg-2";return c.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${m}`,children:c.jsx("span",{className:"break-words",children:d})})}function fv(){return c.jsxs("div",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[c.jsx("div",{className:"text-lg font-semibold",children:"当前没有 Native change"}),c.jsx("p",{className:"mt-2 text-sm text-muted",children:"Native 状态出现后会在这里展示。"})]})}function sv(f){return f==="archive"?"ok":f==="invalid"?"danger":f==="verify"?"warn":"info"}function rv(f){return f==="complete"?"ok":f==="partial"||f==="stale"?"warn":f==="invalid"?"danger":"neutral"}function um(f){if(!f)return"状态未知";const d=k0[f.disposition]??"状态未知",m=W0[f.action]??"无需动作";return f.requiresUserDecision?`${d} · 需要用户决定`:`${d} · ${m}`}function ov(f){return f==="confirmed"?"需求已确认":f==="implicit"?"需求已隐式确认":"需求待确认"}function dv(f){return f==="create"?"新增":f==="replace"?"替换":f==="remove"?"删除":"未知操作"}function mv(f){return f?f.disposition==="hard-stop"?"已硬停止":"等待人工处理":"正常"}function hv(f){return f?f.disposition==="hard-stop"?"danger":"warn":"ok"}function Ef(f){if(!f)return"—";const d=new Date(f);return Number.isNaN(d.getTime())?f:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(d)}const kd=3e4;function vv(){const[f,d]=it.useState(()=>{const r=localStorage.getItem("comet-theme"),b=r==="dark"||r==="light"?r:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",b),b});it.useEffect(()=>{document.documentElement.setAttribute("data-theme",f),localStorage.setItem("comet-theme",f)},[f]);const m=it.useCallback(()=>d(r=>r==="dark"?"light":"dark"),[]);return{theme:f,toggle:m}}const Wu=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],Mf={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},im={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"};function yv(){const[f,d]=it.useState(null),[m,r]=it.useState("classic"),[b,N]=it.useState(null),[O,R]=it.useState("active"),[M,p]=it.useState(""),[H,D]=it.useState(!1),[G,L]=it.useState(!1),[$,et]=it.useState(null),bt=it.useRef(!1),{theme:gt,toggle:_t}=vv(),W=new URLSearchParams(window.location.search).has("demo"),ct=it.useCallback(async(V=!1)=>{if(!bt.current){bt.current=!0,V&&D(!0);try{const Ct=W?await Xv():await Lv();d(Ct),N(dl=>Zv(Ct,dl)),V&&Oa("状态已刷新")}catch(Ct){Oa(`刷新失败:${Ct.message}`)}finally{bt.current=!1,V&&D(!1)}}},[W]);it.useEffect(()=>{ct(!1);const V=window.setInterval(()=>{ct(!1)},kd);return()=>window.clearInterval(V)},[ct]);const Kt=it.useMemo(()=>Vv(f,b),[f,b]),Xt=it.useMemo(()=>Kv(f,O,M),[f,O,M]);return c.jsxs("main",{className:"min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]",children:[c.jsx(xv,{open:G,onClose:()=>L(!1)}),G&&c.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>L(!1)}),c.jsxs("section",{className:"min-w-0",children:[c.jsx(gv,{project:f?.project,workflow:m,onWorkflow:V=>{r(V),p("")},loading:H,query:M,onQuery:p,onMenu:()=>L(!0),onRefresh:()=>ct(!0),autoRefreshMs:kd,theme:gt,onToggleTheme:_t}),c.jsx("div",{className:"px-4 pb-12 pt-5 sm:px-6 lg:px-8",children:f?m==="native"?c.jsx(I0,{native:f.native,git:f.git,query:M,onPreview:et}):c.jsx(Nv,{snapshot:f,visible:Xt,selected:Kt,selectedId:b,tab:O,onTab:R,onSelect:N,onPreview:et}):c.jsx(Qv,{})})]}),c.jsx(Yv,{artifact:$,onClose:()=>et(null)})]})}function xv({open:f,onClose:d}){return c.jsxs("aside",{className:["fixed inset-y-0 left-0 z-50 flex w-[var(--rail-w)] flex-col gap-5 border-r border-border bg-bg px-4 py-5 transition-transform lg:sticky lg:top-0 lg:h-screen lg:translate-x-0",f?"translate-x-0":"-translate-x-full"].join(" "),children:[c.jsxs("div",{className:"flex items-start gap-2 px-2 py-1",children:[c.jsx("img",{src:"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-base font-bold leading-tight",children:"Comet Dashboard"}),c.jsx("div",{className:"mt-0.5 text-[11px] leading-none text-meta",children:"v0.0.1"})]})]}),c.jsxs("nav",{children:[c.jsx("div",{className:"mb-2 mt-4 px-2 text-[11px] font-semibold uppercase text-meta",children:"工作区"}),c.jsxs("button",{className:"flex w-full items-center gap-3 rounded-xl bg-accent-soft px-3 py-2 text-left text-sm font-medium text-accent-active",onClick:d,children:[c.jsx("span",{className:"text-lg leading-none",children:"≡"}),"变更"]})]}),c.jsxs("div",{className:"mt-auto px-2 text-[11px] leading-relaxed text-meta",children:["只读监控视图",c.jsx("br",{}),"基于 comet 流程产物"]})]})}function gv({project:f,workflow:d,onWorkflow:m,loading:r,query:b,onQuery:N,onMenu:O,onRefresh:R,autoRefreshMs:M,theme:p,onToggleTheme:H}){const D=Math.round(M/1e3);return c.jsxs("header",{className:"sticky top-0 z-30 flex items-center gap-3 border-b border-border-soft bg-surface/80 px-4 py-3 backdrop-blur-xl sm:px-6 lg:px-8",children:[c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-bg lg:hidden",onClick:O,"aria-label":"打开导航",children:"☰"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[c.jsxs("div",{className:"min-w-0 leading-tight",children:[c.jsx("div",{className:"truncate text-base font-semibold",children:"项目仪表盘"}),c.jsx("div",{className:"truncate text-xs text-meta",children:f?.path??"—"})]}),c.jsx(bv,{workflow:d,onWorkflow:m})]}),c.jsxs("label",{className:"relative ml-auto w-[clamp(180px,24vw,300px)] max-sm:hidden",children:[c.jsx(jv,{className:"absolute left-3 top-1/2 size-5 -translate-y-1/2 text-meta"}),c.jsx("input",{value:b,onChange:G=>N(G.target.value),className:"h-10 w-full rounded-full border border-border bg-bg pl-10 pr-4 text-sm outline-none focus:border-accent focus:ring-4 focus:ring-accent/20",placeholder:"搜索变更...",type:"search"})]}),c.jsxs("span",{className:"hidden rounded-full bg-bg px-3 py-2 text-xs font-medium text-meta md:inline-flex",children:["自动刷新 · ",D," 秒"]}),c.jsx("button",{className:"rounded-full border border-border bg-bg px-4 py-2 text-sm font-medium text-fg-2 hover:bg-surface",disabled:r,onClick:R,children:r?"刷新中":"立即刷新"}),c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 transition-colors hover:bg-bg hover:text-fg",onClick:H,"aria-label":p==="dark"?"切换到亮色模式":"切换到暗色模式",title:p==="dark"?"切换到亮色模式":"切换到暗色模式",children:p==="dark"?c.jsx(pv,{}):c.jsx(Sv,{})})]})}function bv({workflow:f,onWorkflow:d}){return c.jsxs("div",{className:"relative grid w-[140px] shrink-0 grid-cols-2 rounded-xl border border-border-soft bg-bg/70 p-0.5 shadow-sm backdrop-blur",role:"group","aria-label":"工作流模式",children:[c.jsx("span",{className:["pointer-events-none absolute bottom-0.5 left-0.5 top-0.5 w-[calc(50%-2px)] rounded-[9px] border border-accent/15 bg-accent-soft shadow-[0_1px_3px_rgba(15,23,42,0.08)] transition-transform duration-200 ease-out",f==="native"?"translate-x-full":"translate-x-0"].join(" "),"aria-hidden":"true"}),["classic","native"].map(m=>{const r=f===m,b=m==="classic"?"Classic":"Native";return c.jsx("button",{type:"button","aria-pressed":r,className:["relative z-10 rounded-[9px] px-2 py-1.5 text-[11px] font-semibold leading-none tracking-[0.01em] transition-colors duration-200",r?"text-accent-active":"text-muted hover:text-fg"].join(" "),onClick:()=>d(m),children:b},m)})]})}function pv(){return c.jsxs("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("circle",{cx:"12",cy:"12",r:"5"}),c.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),c.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),c.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),c.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),c.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),c.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),c.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),c.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})}function Sv(){return c.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:c.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function jv({className:f}){return c.jsxs("svg",{className:f,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("circle",{cx:"11",cy:"11",r:"7"}),c.jsx("path",{d:"m16.5 16.5 4 4"})]})}function Nv({snapshot:f,visible:d,selected:m,selectedId:r,tab:b,onTab:N,onSelect:O,onPreview:R}){const M=f.changes.active.length+f.changes.archived.length===0;return c.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[c.jsx(Wd,{title:"项目概览",hint:`生成于 ${Df(f.project.generatedAt)}`}),c.jsx(zv,{snapshot:f}),c.jsx(Wd,{title:"变更工作区",hint:"查看文件产物与项目进度"}),M?c.jsx(Gv,{}):c.jsxs("div",{className:"grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[c.jsx(Tv,{visible:d,selectedId:r,tab:b,onTab:N,onSelect:O}),m&&c.jsx(_v,{change:m,onPreview:R}),m&&c.jsx(Cv,{change:m,git:f.git,onPreview:R})]})]})}function Wd({title:f,hint:d}){return c.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[c.jsx("h2",{className:"text-[28px] font-bold leading-tight",children:f}),c.jsx("span",{className:"text-sm text-muted",children:d})]})}function zv({snapshot:f}){const d=[["活跃变更",f.summary.activeChanges,"当前 repo 中","进行中"],["已归档变更",f.summary.archivedChanges,"历史迭代","已完成"],["Verify 失败",f.summary.verifyFailed,f.summary.verifyFailed?"需要处理":"全部通过",f.summary.verifyFailed?"阻塞":"健康"],["未完成任务",f.summary.tasksIncomplete,"跨变更统计",f.summary.tasksIncomplete?"待办":"清零"],["Git 未提交",f.summary.dirtyFiles,"verify 前需复核",f.summary.dirtyFiles?"未提交":"干净"]];return c.jsx("section",{className:"grid gap-4 md:grid-cols-3 lg:grid-cols-5",children:d.map(([m,r,b,N])=>c.jsx(Ev,{label:m,value:r,note:b,tag:N,animationKey:`${f.project.generatedAt}-${m}`},m))})}function Ev({label:f,value:d,note:m,tag:r,animationKey:b}){const N=An(d,850,b);return c.jsxs("article",{className:"summary-card-glow relative overflow-hidden rounded-lg bg-bg p-5 shadow-raised transition-shadow duration-200 hover:shadow-lg",children:[c.jsx("div",{className:"text-sm font-medium text-muted",children:f}),c.jsx("div",{className:"mt-1 text-[40px] font-bold leading-none tabular-nums",children:Math.round(N)}),c.jsx("div",{className:"mt-2 truncate text-xs text-meta",children:m}),c.jsx("span",{className:"absolute right-5 top-5 rounded-full bg-surface px-2.5 py-1 text-[11px] font-semibold text-fg-2",children:r})]})}function Tv({visible:f,selectedId:d,tab:m,onTab:r,onSelect:b}){return c.jsxs("aside",{className:"rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-center border-b border-border-soft px-5 py-4",children:[c.jsx("h3",{className:"font-semibold",children:"Changes Explorer"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[f.length," 个"]})]}),c.jsxs("div",{className:"p-4",children:[c.jsx("div",{className:"mb-4 inline-flex rounded-xl bg-surface p-1",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([N,O])=>c.jsx("button",{className:`rounded-lg px-3 py-1.5 text-sm ${m===N?"bg-bg text-fg shadow-sm":"text-muted"}`,onClick:()=>r(N),children:O},N))}),c.jsx("div",{className:"space-y-2",children:f.length===0?c.jsx("div",{className:"py-8 text-center text-sm text-muted",children:m==="active"?"暂无活跃变更":m==="archived"?"暂无已归档变更":"暂无变更"}):f.map(N=>c.jsx(Av,{change:N,active:N.id===d,onClick:()=>b(N.id)},N.id))})]})]})}function Av({change:f,active:d,onClick:m}){const r=f.tasks.total?Math.round(f.tasks.completed/f.tasks.total*100):0;return c.jsx("button",{className:`w-full rounded-xl border p-3 text-left transition-all duration-200 ${d?"border-accent/30 bg-accent-softer shadow-sm":"border-transparent hover:bg-surface hover:border-border-soft"}`,onClick:m,children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"mt-1 text-xs text-meta",children:"◇"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-[13px] font-semibold",children:f.displayName}),c.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-xs text-meta",children:[c.jsx("span",{children:Of(f.phase)}),c.jsx("span",{className:"h-1.5 w-16 overflow-hidden rounded-full bg-surface",children:c.jsx("span",{className:`block h-full rounded-full ${r===100?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),c.jsxs("span",{children:[f.tasks.completed,"/",f.tasks.total]})]})]}),c.jsx(cm,{tone:im[f.verify.result],children:Mf[f.verify.result]??"未知"})]})})}function _v({change:f,onPreview:d}){return c.jsxs("section",{className:"min-w-0 rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"truncate text-base font-semibold",children:f.displayName}),c.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[c.jsx("span",{children:f.workflow??"—"}),c.jsxs("span",{children:["更新于 ",Df(f.updatedAt)]}),c.jsx("span",{className:"min-w-0 truncate font-mono",children:Jv(f)})]})]}),c.jsx(cm,{tone:f.status==="archived"?"ok":im[f.verify.result],children:f.status==="archived"?"已归档":Mf[f.verify.result]})]}),c.jsxs("div",{className:"space-y-5 p-5",children:[c.jsx(Mv,{phase:f.phase,archived:f.status==="archived",next:f.next}),c.jsxs("div",{className:"grid gap-4 md:grid-cols-[1fr_340px]",children:[c.jsx(Ov,{change:f,onPreview:d}),c.jsx("div",{className:"flex flex-col gap-4",children:c.jsx(Uv,{change:f})})]})]})]})}function Mv({phase:f,archived:d,next:m}){const r=d?"archive":f,b=Math.max(0,Wu.findIndex(([N])=>N===r));return c.jsxs("article",{children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:d?`归档 ${f}`:`下一步 ${m?.command??"—"}`})]}),c.jsx("div",{className:"flex",children:Wu.map(([N,O],R)=>{const M=R<b||d?"done":R===b?"current":"pending";return c.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[R>0&&c.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${R<=b||d?"bg-accent":"bg-border"}`}),R<Wu.length-1&&c.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${R<b||d?"bg-accent":"bg-border"}`}),c.jsx("span",{className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${M==="done"?"border-accent bg-accent text-white":M==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:M==="done"?"✓":R+1}),c.jsx("span",{className:`text-[13px] font-semibold ${M==="current"||M==="done"?"text-accent":"text-fg-2"}`,children:O})]},N)})})]})}function Ov({change:f,onPreview:d}){const m=new Map((f.artifactPreviews??[]).map(p=>[p.key,p])),r=f.artifacts?.grouped??[],b=r.length,N=r.filter(p=>p.exists).length,O=r.filter(p=>p.source==="openspec"),R=r.filter(p=>p.source==="superpowers"),M=r.filter(p=>p.source==="comet");return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[N,"/",b]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(zf,{title:"OpenSpec",artifacts:O,previewByKey:m,onPreview:d}),c.jsx(zf,{title:"Superpowers",artifacts:R,previewByKey:m,onPreview:d}),c.jsx(zf,{title:"Comet",artifacts:M,previewByKey:m,onPreview:d})]})]})}function zf({title:f,artifacts:d,previewByKey:m,onPreview:r}){return d.length===0?null:c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:f}),c.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),c.jsx("div",{className:"space-y-px",children:d.map(b=>{const N=m.get(b.key);return c.jsx(Dv,{artifact:b,preview:N,onPreview:r},b.key)})})]})}function Dv({artifact:f,preview:d,onPreview:m}){const r=f.exists,b=f.notApplicable,N=r?f.label:b?"无需生成":"未生成";return c.jsxs("button",{className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${r?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!r,onClick:()=>m({key:f.key,name:f.label,preview:d}),children:[c.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:r?c.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):b?c.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):c.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),c.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:f.key}),c.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:N})]})}function An(f,d=800,m=f){const[r,b]=it.useState(0);return it.useEffect(()=>{if(window.matchMedia?.("(pref-reduced-motion: reduce)").matches){b(f);return}const O=0,R=f,M=performance.now();let p=0;b(0);const H=D=>{const G=Math.min(1,(D-M)/d),L=1-Math.pow(1-G,3);b(O+R*L),G<1&&(p=requestAnimationFrame(H))};return p=requestAnimationFrame(H),()=>{cancelAnimationFrame(p)}},[d,m,f]),r}function Uv({change:f}){const d=f.tasks.total,m=f.tasks.completed,r=Math.max(0,d-m),b=f.status==="archived",N=f.tasks.sections.filter(W=>W.status==="done").length,O=f.tasks.sections.length,R=d?Math.round(m/d*100):0,M=An(R,900,f.id),p=An(m,900,f.id),H=An(r,900,f.id),D=An(N,900,f.id),G=Math.round(H),L=2*Math.PI*54,$=L*(1-M/100),et=r===0&&d>0,bt=b||et?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",gt=b||et?"bg-success":"bg-accent",_t=b?"已归档完成,流程已结束":et?`所有任务已完成,可以进入 ${f.phase==="verify"?"归档":"Verify"}`:`剩余 ${G} 项未完成,完成后进入 ${f.phase==="verify"?"归档":"Verify"}`;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),c.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${et?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:et?"全部完成":`${G} 项待办`})]}),c.jsx("div",{className:"flex justify-center",children:c.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[c.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${R}%`,children:[c.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),c.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:et?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:L,strokeDashoffset:$})]}),c.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[c.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(M),"%"]}),c.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),c.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(p)}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),c.jsx("div",{className:"h-6 w-px bg-border-soft"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:G}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),c.jsx("div",{className:"h-6 w-px bg-border-soft"}),c.jsxs("div",{children:[c.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(D),"/",O]}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),f.tasks.sections.length>0&&c.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:f.tasks.sections.map(W=>{const ct=W.total?Math.round(W.completed/W.total*100):0,Kt=W.status==="done";return c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[c.jsx("span",{className:"truncate text-[11px] text-fg-2",children:W.title}),c.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[W.completed,"/",W.total]})]}),c.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${Kt?"bg-success":"bg-accent"}`,style:{width:`${ct}%`}})})]},W.title)})}),c.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${bt}`,children:[c.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${gt}`}),c.jsx("span",{children:_t})]})]})}function Cv({change:f,git:d,onPreview:m}){return c.jsxs("aside",{className:"min-h-[480px] space-y-4 xl:col-start-2 2xl:col-start-auto",children:[f.status==="archived"?c.jsx(Hv,{change:f}):c.jsx(Rv,{change:f}),c.jsx(Bv,{change:f}),c.jsx(qv,{git:d})]})}function Rv({change:f}){return c.jsxs(Fu,{title:"下一步建议",tag:Of(f.phase),children:[c.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[c.jsx("span",{className:"text-success",children:"$ "}),f.next?.command??"—"]}),c.jsx("p",{className:"text-sm text-fg-2",children:f.next?.reason??"暂无建议"}),c.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:f.next?.description??""})]})}function Hv({change:f}){return c.jsxs(Fu,{title:"归档摘要",tag:"已归档",children:[c.jsx("div",{className:"break-words rounded-xl bg-accent-soft px-4 py-3 font-mono text-[13px] text-accent",children:f.archive?.archiveName??f.name}),c.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",f.archive?.originalName??f.name," · 归档于:",f.archive?.archivedAt??"—"]}),c.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",f.archive?.archivePath??f.path," · 任务:",f.tasks.completed," /"," ",f.tasks.total]})]})}function Bv({change:f}){const d=f.risks??[];return c.jsx(Fu,{title:"风险提示",tag:`${d.length} 项`,children:d.length===0?c.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):c.jsx("div",{className:"space-y-2",children:d.map(m=>c.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[c.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[c.jsx("span",{className:m.level==="error"?"text-danger":m.level==="warning"?"text-warn":"text-meta",children:"●"}),c.jsx("span",{children:m.message})]}),c.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:m.code})]},`${m.code}-${m.message}`))})})}function qv({git:f}){return c.jsxs(Fu,{title:"Git 快照",tag:`${f.dirtyFiles} 个未提交`,children:[c.jsx(Fd,{k:"分支",v:f.branch??"—"}),c.jsx(Fd,{k:"HEAD",v:f.head??"—"}),c.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),c.jsx("ul",{className:"space-y-1",children:f.recentCommits.map(d=>c.jsx("li",{className:"truncate text-sm text-fg-2",children:d},d))}),c.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),c.jsx("ul",{className:"space-y-1",children:f.dirtyFileList.slice(0,5).map(d=>c.jsx("li",{className:"break-all font-mono text-xs text-warn",children:d},d))})]})}function Fu({title:f,tag:d,children:m}){return c.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"font-semibold",children:f}),d&&c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:d})]}),c.jsx("div",{className:"space-y-3",children:m})]})}function Fd({k:f,v:d}){return c.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[c.jsx("span",{className:"w-16 shrink-0 text-muted",children:f}),c.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:d})]})}function Yv({artifact:f,onClose:d}){const[m,r]=it.useState({status:"idle"}),[b,N]=it.useState(!1),[O,R]=it.useState([]),[M,p]=it.useState(""),H=it.useRef(null),D=it.useRef(null);if(it.useEffect(()=>{if(!f){N(!1);return}const L=window.scrollY,$={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width};return document.body.style.position="fixed",document.body.style.top=`-${L}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{N(!1),document.body.style.position=$.position,document.body.style.top=$.top,document.body.style.left=$.left,document.body.style.right=$.right,document.body.style.width=$.width,window.scrollTo(0,L)}},[f]),it.useEffect(()=>{if(!f){r({status:"idle"});return}let L=!1;r({status:"loading"});const $=f.preview,et=$?.path??"",bt=f.key==="cometYaml"||/\.ya?ml$/i.test(et),gt=f.key==="handoff"||f.key==="checkpoint"||/\.json$/i.test(et),_t=bt||gt,W=$?.exists?_t?$.content?.trimEnd()||"":`${$.content?.trimEnd()||"这个产物是空文件。"}${$.truncated?`
15
+ `))}}async function _n(f){try{const{Marked:d}=await Ze(async()=>{const{Marked:R}=await import("./marked.esm-DECB3bxB.js");return{Marked:R}},[]);let m=null;try{m=(await Ze(async()=>{const{default:R}=await import("./index-QO0z6F4w.js");return{default:R}},__vite__mapDeps([0,1]))).default}catch{}const r=V0(),b=new d;b.use({renderer:{heading({text:R,depth:M,tokens:p}){const H=r.slug(R),D=p&&this.parser?.parseInline?this.parser.parseInline(p):ll(R);return`<h${M} id="${ll(H)}">${D}</h${M}>`},code({text:R,lang:M}){if(M==="mermaid")return`<div class="mermaid">${ll(R)}</div>`;if(m){const p=M&&m.getLanguage(M)?M:"plaintext",H=m.highlight(R,{language:p}).value;return`<pre><code class="hljs language-${ll(p)}">${H}</code></pre>`}return`<pre><code>${ll(R)}</code></pre>`}}});const N=b.parse(f),O=typeof N=="string"?N:String(N);return Il(O)}catch{return Il(`<pre>${ll(f)}</pre>`)}}function J0(f){const d=f.querySelectorAll("h1, h2, h3"),m=[];return d.forEach(r=>{const b=r.id,N=r.textContent??"",O=parseInt(r.tagName[1],10);b&&N&&m.push({id:b,text:N,depth:O})}),m}async function $0(f){const d=f.querySelectorAll("div.mermaid");if(d.length!==0)try{const m=(await Ze(async()=>{const{default:r}=await import("./mermaid.core-5Ibr28Ig.js").then(b=>b.bl);return{default:r}},__vite__mapDeps([2,1,3]))).default;m.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif'}),await m.run({nodes:Array.from(d)})}catch{}}const ku=[["shape","Shape"],["build","Build"],["verify","Verify"],["archive","Archive"]],_f=Object.fromEntries(ku),nm={missing:"尚无验证",invalid:"验证无效",stale:"验证已过期",complete:"验证完整",partial:"部分验证",unknown:"状态未知"},k0={continue:"可继续","await-user":"等待用户",blocked:"已阻塞",done:"已完成"},W0={"work-phase":"继续当前阶段","advance-phase":"推进阶段",repair:"修复后重试",archive:"准备归档",none:"无需动作"},F0={"definite-conflict":"明确冲突","possible-overlap":"可能重叠"};function I0({native:f,git:d,query:m,onPreview:r}){const[b,N]=it.useState("active"),O=it.useMemo(()=>{const H=f?.changes??[],D=m.trim().toLowerCase();return H.filter(G=>{const L=b==="all"||b==="active"&&G.status==="active"||G.status===b,$=!D||G.name.toLowerCase().includes(D);return L&&$})},[f,m,b]),[R,M]=it.useState(null);it.useEffect(()=>{M(H=>O.some(D=>D.name===H)?H:O[0]?.name??null)},[O]);const p=O.find(H=>H.name===R)??O[0]??null;return c.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[c.jsx(Jd,{title:"项目概览",hint:f?`Native 状态生成于 ${Ef(f.generatedAt)}`:"当前项目尚无 Native 状态"}),c.jsx(P0,{native:f}),c.jsx(Jd,{title:"Native 变更工作区",hint:"查看轻量状态、验证结果与冲突摘要"}),!f||f.changes.length===0?c.jsx(fv,{}):c.jsxs("div",{className:"grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[c.jsx(tv,{changes:O,selectedName:p?.name??null,tab:b,onTab:N,onSelect:M}),p&&c.jsx(lv,{change:p,onPreview:r}),p&&c.jsx(cv,{change:p,git:d})]})]})}function Jd({title:f,hint:d}){return c.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[c.jsx("h2",{className:"text-[28px] font-bold leading-tight",children:f}),c.jsx("span",{className:"text-sm text-muted",children:d})]})}function P0({native:f}){const d=f?.changes??[],m=d.filter(M=>M.phase!=="archive").length,r=d.filter(M=>M.archiveReady).length,b=d.filter(M=>M.continuation?.requiresUserDecision).length,N=d.filter(M=>["invalid","stale","partial"].includes(M.verificationFreshness)).length,O=f?f.conflicts.definiteConflict+f.conflicts.possibleOverlap:0,R=[["活跃变更",m,"当前 Native workflow",m?"进行中":"清零"],["可归档变更",r,"验证证据已就绪",r?"就绪":"暂无"],["等待用户",b,"需要明确决策",b?"待确认":"无需"],["验证需关注",N,"过期、无效或部分证据",N?"复核":"健康"],["关联冲突",O,"Native change 关系",O?"关注":"无冲突"]];return c.jsx("section",{className:"grid gap-4 md:grid-cols-3 lg:grid-cols-5",children:R.map(([M,p,H,D])=>c.jsxs("article",{className:"summary-card-glow relative overflow-hidden rounded-lg bg-bg p-5 shadow-raised transition-shadow duration-200 hover:shadow-lg",children:[c.jsx("div",{className:"text-sm font-medium text-muted",children:M}),c.jsx("div",{className:"mt-1 text-[40px] font-bold leading-none tabular-nums",children:p}),c.jsx("div",{className:"mt-2 truncate text-xs text-meta",children:H}),c.jsx("span",{className:"absolute right-5 top-5 rounded-full bg-surface px-2.5 py-1 text-[11px] font-semibold text-fg-2",children:D})]},M))})}function tv({changes:f,selectedName:d,tab:m,onTab:r,onSelect:b}){return c.jsxs("aside",{className:"rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-center border-b border-border-soft px-5 py-4",children:[c.jsx("h3",{className:"font-semibold",children:"Changes Explorer"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[f.length," 个"]})]}),c.jsxs("div",{className:"p-4",children:[c.jsx("div",{className:"mb-4 inline-flex rounded-xl bg-surface p-1",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([N,O])=>c.jsx("button",{type:"button",className:`rounded-lg px-3 py-1.5 text-sm ${m===N?"bg-bg text-fg shadow-sm":"text-muted"}`,onClick:()=>r(N),children:O},N))}),c.jsx("div",{className:"space-y-2",children:f.length===0?c.jsx("div",{className:"py-8 text-center text-sm text-muted",children:m==="active"?"暂无活跃变更":m==="archived"?"暂无已归档变更":"没有匹配的 Native change"}):f.map(N=>c.jsx("button",{type:"button",className:`w-full rounded-xl border p-3 text-left transition-all duration-200 ${N.name===d?"border-accent/30 bg-accent-softer shadow-sm":"border-transparent hover:border-border-soft hover:bg-surface"}`,onClick:()=>b(N.name),children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"mt-1 text-xs text-meta",children:"◇"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-[13px] font-semibold",children:N.name}),c.jsx("div",{className:"mt-1 text-xs text-meta",children:_f[N.phase]??"状态异常"})]}),c.jsx(Mn,{tone:rv(N.verificationFreshness),children:nm[N.verificationFreshness]??"状态未知"})]})},N.name))})]})]})}function lv({change:f,onPreview:d}){const m=f.findings.codes;return c.jsxs("section",{className:"min-w-0 rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"truncate text-base font-semibold",children:f.name}),c.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[c.jsx("span",{children:"native"}),c.jsx("span",{children:f.status==="archived"?`归档于 ${f.archivedAt??"未知时间"}`:f.selected?"当前选中变更":"并行变更"}),c.jsx("span",{children:ov(f.approval)})]})]}),c.jsx(Mn,{tone:sv(f.phase),children:_f[f.phase]??"状态异常"})]}),c.jsxs("div",{className:"space-y-5 p-5",children:[c.jsx(iv,{phase:f.phase,archived:f.status==="archived"}),c.jsx(uv,{artifacts:f.artifacts,onPreview:d}),c.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[c.jsx(ev,{change:f}),c.jsx(av,{change:f})]}),c.jsx(nv,{change:f}),m.length>0&&c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"结构化发现"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[m.length," 项"]})]}),c.jsx("ul",{className:"space-y-2",children:m.map(r=>c.jsx("li",{className:"break-all rounded-lg bg-surface px-3 py-2.5 font-mono text-xs leading-relaxed text-fg-2",children:r},r))})]})]})]})}function ev({change:f}){const d=f.progress,m=!!d?.checkpointAt;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"最近进展"}),c.jsx(Mn,{tone:m?"info":"neutral",children:m?"已记录 Checkpoint":"尚无 Checkpoint"})]}),c.jsx("p",{className:"min-h-10 text-sm leading-relaxed text-fg-2",children:d?.summary??"当前阶段还没有持久化进展摘要。"}),c.jsxs("div",{className:"mt-4 space-y-3 border-t border-border-soft pt-4 text-xs",children:[c.jsx($d,{label:"创建 change",value:Ef(d?.createdAt)}),c.jsx($d,{label:"最近 checkpoint",value:Ef(d?.checkpointAt),active:m})]}),c.jsxs("div",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3",children:[c.jsx("div",{className:"text-[11px] font-medium text-meta",children:"下一步"}),c.jsx("div",{className:"mt-1 text-xs font-medium leading-relaxed text-fg-2",children:f.status==="archived"?"已完成 · 无需后续操作":d?.nextAction??um(f.continuation)})]})]})}function $d({label:f,value:d,active:m=!0}){return c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`size-2 shrink-0 rounded-full ${m?"bg-accent":"border border-border"}`}),c.jsx("span",{className:"text-muted",children:f}),c.jsx("span",{className:"ml-auto text-right font-mono text-fg-2",children:d})]})}function av({change:f}){const d=f.specs,m=d?.capabilities??[],r=f.implementation;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"变更范围"}),c.jsxs("span",{className:"rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:[d?.total??0," 个 capability"]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[c.jsx(Nf,{label:"新增",value:d?.create??0,tone:"info"}),c.jsx(Nf,{label:"替换",value:d?.replace??0,tone:"warn"}),c.jsx(Nf,{label:"删除",value:d?.remove??0,tone:"danger"})]}),c.jsx("div",{className:"mt-4 space-y-2",children:m.length===0?c.jsx("p",{className:"rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"尚未声明 Spec 变更。"}):m.map(b=>c.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border-soft px-3 py-2",children:[c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs text-fg-2",children:b.capability}),c.jsx("span",{className:"text-[11px] text-meta",children:dv(b.operation)})]},`${b.capability}-${b.operation}`))}),r&&c.jsxs("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-2 border-t border-border-soft pt-4 text-xs",children:[c.jsx(Ul,{label:"实现变更",value:`${r.changeCount} 项`}),c.jsx(Ul,{label:"声明产物",value:`${r.declaredArtifactCount} 项`}),c.jsx(Ul,{label:"未归属",value:`${r.unattributedCount} 项`}),c.jsx(Ul,{label:"未解决范围",value:`${r.unresolvedCount} 项`})]})]})}function Nf({label:f,value:d,tone:m}){const r={info:"bg-info-soft text-info",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger"}[m];return c.jsxs("div",{className:"rounded-lg bg-surface-warm px-2 py-3",children:[c.jsx("div",{className:`text-lg font-bold tabular-nums ${d?r:"text-fg-2"}`,children:d}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:f})]})}function nv({change:f}){const d=f.acceptance,m=d?d.evidenced+d.skipped:0,r=d?.total?Math.round(m/d.total*100):0;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"验收覆盖"}),c.jsx(Mn,{tone:d&&d.missing===0?"ok":"warn",children:d?`${r}% 已处理`:"尚无验收投影"}),c.jsx("span",{className:"ml-auto text-xs text-meta",children:nm[f.verificationFreshness]??"状态未知"})]}),c.jsx("div",{className:"mt-4 h-2 overflow-hidden rounded-full bg-surface",children:c.jsx("span",{className:`block h-full rounded-full transition-[width] ${d?.missing===0?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),c.jsxs("div",{className:"mt-4 grid grid-cols-4 gap-3 text-center",children:[c.jsx($u,{label:"总计",value:d?.total??0}),c.jsx($u,{label:"有证据",value:d?.evidenced??0}),c.jsx($u,{label:"已跳过",value:d?.skipped??0}),c.jsx($u,{label:"待补充",value:d?.missing??0})]})]})}function $u({label:f,value:d}){return c.jsxs("div",{children:[c.jsx("div",{className:"text-xl font-bold tabular-nums",children:d}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:f})]})}function uv({artifacts:f,onPreview:d}){const m=f??[],r=m.filter(b=>b.exists).length;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[r,"/",m.length]})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:"Comet Native"}),c.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),c.jsxs("div",{className:"space-y-px",children:[m.map(b=>c.jsxs("button",{type:"button",className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${b.exists?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!b.exists,onClick:()=>d({key:b.key,name:b.label,preview:b}),children:[c.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:c.jsx("span",{className:`h-2 w-2 rounded-full ${b.exists?"bg-accent":"border border-border"}`})}),c.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:b.key}),c.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:b.exists?b.label:"未生成"})]},b.key)),m.length===0&&c.jsx("div",{className:"py-6 text-center text-sm text-muted",children:"暂无可预览产物"})]})]})]})}function iv({phase:f,archived:d}){const m=Math.max(0,ku.findIndex(([r])=>r===f));return c.jsxs("article",{children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:d?"已归档":`当前 ${_f[f]??"状态异常"}`})]}),c.jsx("div",{className:"flex",children:ku.map(([r,b],N)=>{const O=d||N<m?"done":N===m?"current":"pending";return c.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[N>0&&c.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${N<=m?"bg-accent":"bg-border"}`}),N<ku.length-1&&c.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${N<m?"bg-accent":"bg-border"}`}),c.jsx("span",{"aria-label":`${b} ${O==="done"?"已完成":O==="current"?"当前阶段":"待进行"}`,className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${O==="done"?"border-accent bg-accent text-white":O==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:O==="done"?"✓":N+1}),c.jsx("span",{className:`text-[13px] font-semibold ${O==="pending"?"text-fg-2":"text-accent"}`,children:b})]},r)})})]})}function cv({change:f,git:d}){const m=f.conflicts.peers,r=f.continuation;return c.jsxs("aside",{className:"space-y-5 xl:col-start-2 2xl:col-start-auto",children:[c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"继续与归档"}),c.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[c.jsx(Ul,{label:"继续状态",value:f.status==="archived"?"已完成 · 已归档":um(r)}),c.jsx(Ul,{label:"用户决策",value:r?.requiresUserDecision?"需要":"不需要"}),c.jsx(Ul,{label:"归档预检",value:f.archiveReady?"已就绪":"尚未就绪"})]})]}),c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"Repair 状态"}),c.jsx(Mn,{tone:hv(f.repair),children:mv(f.repair)})]}),c.jsx("p",{className:"mt-3 text-xs leading-relaxed text-muted",children:f.repair?f.repair.overrideRecorded?"已记录一次用户覆盖决定;后续重复失败仍会停止。":"检测到重复失败,Native 已停止自动修复。":"当前没有需要人工介入的重复失败。"})]}),c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsxs("div",{className:"flex items-center",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"关联冲突"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[m.length," 个"]})]}),m.length===0?c.jsx("p",{className:"mt-4 rounded-lg bg-surface-warm px-3 py-3 text-xs text-muted",children:"未发现冲突变更。"}):c.jsx("ul",{className:"mt-4 space-y-2",children:m.map(b=>c.jsxs("li",{className:"rounded-xl border border-border-soft px-3 py-3",children:[c.jsx("div",{className:"break-all font-mono text-xs text-fg-2",children:b.change}),c.jsx("div",{className:"mt-1 text-[11px] text-meta",children:F0[b.classification]??"可能重叠"})]},`${b.change}-${b.classification}`))})]}),d&&c.jsxs("section",{className:"rounded-lg bg-bg p-5 shadow-raised",children:[c.jsx("h3",{className:"text-sm font-semibold",children:"Git 摘要"}),c.jsxs("dl",{className:"mt-4 space-y-3 text-sm",children:[c.jsx(Ul,{label:"分支",value:d.branch??"—"}),c.jsx(Ul,{label:"HEAD",value:d.head??"—"}),c.jsx(Ul,{label:"未提交文件",value:`${d.dirtyFiles??0} 个`})]})]})]})}function Ul({label:f,value:d}){return c.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border-soft pb-3 last:border-0 last:pb-0",children:[c.jsx("dt",{className:"text-muted",children:f}),c.jsx("dd",{className:"text-right font-medium text-fg-2",children:d})]})}function Mn({tone:f="neutral",children:d}){const m={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[f]??"bg-surface text-fg-2";return c.jsx("span",{className:`inline-flex max-w-full items-center rounded-full px-2.5 py-1 text-xs font-semibold leading-tight ${m}`,children:c.jsx("span",{className:"break-words",children:d})})}function fv(){return c.jsxs("div",{className:"rounded-lg bg-bg p-12 text-center shadow-raised",children:[c.jsx("div",{className:"text-lg font-semibold",children:"当前没有 Native change"}),c.jsx("p",{className:"mt-2 text-sm text-muted",children:"Native 状态出现后会在这里展示。"})]})}function sv(f){return f==="archive"?"ok":f==="invalid"?"danger":f==="verify"?"warn":"info"}function rv(f){return f==="complete"?"ok":f==="partial"||f==="stale"?"warn":f==="invalid"?"danger":"neutral"}function um(f){if(!f)return"状态未知";const d=k0[f.disposition]??"状态未知",m=W0[f.action]??"无需动作";return f.requiresUserDecision?`${d} · 需要用户决定`:`${d} · ${m}`}function ov(f){return f==="confirmed"?"需求已确认":f==="implicit"?"需求已隐式确认":"需求待确认"}function dv(f){return f==="create"?"新增":f==="replace"?"替换":f==="remove"?"删除":"未知操作"}function mv(f){return f?f.disposition==="hard-stop"?"已硬停止":"等待人工处理":"正常"}function hv(f){return f?f.disposition==="hard-stop"?"danger":"warn":"ok"}function Ef(f){if(!f)return"—";const d=new Date(f);return Number.isNaN(d.getTime())?f:new Intl.DateTimeFormat("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).format(d)}const kd=3e4;function vv(){const[f,d]=it.useState(()=>{const r=localStorage.getItem("comet-theme"),b=r==="dark"||r==="light"?r:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return document.documentElement.setAttribute("data-theme",b),b});it.useEffect(()=>{document.documentElement.setAttribute("data-theme",f),localStorage.setItem("comet-theme",f)},[f]);const m=it.useCallback(()=>d(r=>r==="dark"?"light":"dark"),[]);return{theme:f,toggle:m}}const Wu=[["open","启动"],["design","设计"],["build","构建"],["verify","验证"],["archive","归档"]],Mf={pass:"通过",fail:"验证失败",pending:"待验证",unknown:"未知"},im={pass:"ok",fail:"danger",pending:"warn",unknown:"neutral"};function yv(){const[f,d]=it.useState(null),[m,r]=it.useState("classic"),[b,N]=it.useState(null),[O,R]=it.useState("active"),[M,p]=it.useState(""),[H,D]=it.useState(!1),[G,L]=it.useState(!1),[$,et]=it.useState(null),bt=it.useRef(!1),{theme:gt,toggle:_t}=vv(),W=new URLSearchParams(window.location.search).has("demo"),ct=it.useCallback(async(V=!1)=>{if(!bt.current){bt.current=!0,V&&D(!0);try{const Ct=W?await wv():await Xv();d(Ct),N(dl=>Vv(Ct,dl)),V&&Oa("状态已刷新")}catch(Ct){Oa(`刷新失败:${Ct.message}`)}finally{bt.current=!1,V&&D(!1)}}},[W]);it.useEffect(()=>{ct(!1);const V=window.setInterval(()=>{ct(!1)},kd);return()=>window.clearInterval(V)},[ct]);const Kt=it.useMemo(()=>Kv(f,b),[f,b]),Xt=it.useMemo(()=>Jv(f,O,M),[f,O,M]);return c.jsxs("main",{className:"min-h-screen bg-surface text-fg antialiased lg:grid lg:grid-cols-[var(--rail-w)_1fr]",children:[c.jsx(xv,{open:G,onClose:()=>L(!1)}),G&&c.jsx("button",{className:"fixed inset-0 z-40 bg-black/30 lg:hidden","aria-label":"关闭导航",onClick:()=>L(!1)}),c.jsxs("section",{className:"min-w-0",children:[c.jsx(gv,{project:f?.project,workflow:m,onWorkflow:V=>{r(V),p("")},loading:H,query:M,onQuery:p,onMenu:()=>L(!0),onRefresh:()=>ct(!0),autoRefreshMs:kd,theme:gt,onToggleTheme:_t}),c.jsx("div",{className:"px-4 pb-12 pt-5 sm:px-6 lg:px-8",children:f?m==="native"?c.jsx(I0,{native:f.native,git:f.git,query:M,onPreview:et}):c.jsx(Nv,{snapshot:f,visible:Xt,selected:Kt,selectedId:b,tab:O,onTab:R,onSelect:N,onPreview:et}):c.jsx(Lv,{})})]}),c.jsx(Yv,{artifact:$,onClose:()=>et(null)})]})}function xv({open:f,onClose:d}){return c.jsxs("aside",{className:["fixed inset-y-0 left-0 z-50 flex w-[var(--rail-w)] flex-col gap-5 border-r border-border bg-bg px-4 py-5 transition-transform lg:sticky lg:top-0 lg:h-screen lg:translate-x-0",f?"translate-x-0":"-translate-x-full"].join(" "),children:[c.jsxs("div",{className:"flex items-start gap-2 px-2 py-1",children:[c.jsx("img",{src:"/favicon.png",alt:"Comet",className:"size-7 rounded-[7px]"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"truncate text-base font-bold leading-tight",children:"Comet Dashboard"}),c.jsx("div",{className:"mt-0.5 text-[11px] leading-none text-meta",children:"v0.0.1"})]})]}),c.jsxs("nav",{children:[c.jsx("div",{className:"mb-2 mt-4 px-2 text-[11px] font-semibold uppercase text-meta",children:"工作区"}),c.jsxs("button",{className:"flex w-full items-center gap-3 rounded-xl bg-accent-soft px-3 py-2 text-left text-sm font-medium text-accent-active",onClick:d,children:[c.jsx("span",{className:"text-lg leading-none",children:"≡"}),"变更"]})]}),c.jsxs("div",{className:"mt-auto px-2 text-[11px] leading-relaxed text-meta",children:["只读监控视图",c.jsx("br",{}),"基于 comet 流程产物"]})]})}function gv({project:f,workflow:d,onWorkflow:m,loading:r,query:b,onQuery:N,onMenu:O,onRefresh:R,autoRefreshMs:M,theme:p,onToggleTheme:H}){const D=Math.round(M/1e3);return c.jsxs("header",{className:"sticky top-0 z-30 flex items-center gap-3 border-b border-border-soft bg-surface/80 px-4 py-3 backdrop-blur-xl sm:px-6 lg:px-8",children:[c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-bg lg:hidden",onClick:O,"aria-label":"打开导航",children:"☰"}),c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[c.jsxs("div",{className:"min-w-0 leading-tight",children:[c.jsx("div",{className:"truncate text-base font-semibold",children:"项目仪表盘"}),c.jsx("div",{className:"truncate text-xs text-meta",children:f?.path??"—"})]}),c.jsx(bv,{workflow:d,onWorkflow:m})]}),c.jsxs("label",{className:"relative ml-auto w-[clamp(180px,24vw,300px)] max-sm:hidden",children:[c.jsx(jv,{className:"absolute left-3 top-1/2 size-5 -translate-y-1/2 text-meta"}),c.jsx("input",{value:b,onChange:G=>N(G.target.value),className:"h-10 w-full rounded-full border border-border bg-bg pl-10 pr-4 text-sm outline-none focus:border-accent focus:ring-4 focus:ring-accent/20",placeholder:"搜索变更...",type:"search"})]}),c.jsxs("span",{className:"hidden rounded-full bg-bg px-3 py-2 text-xs font-medium text-meta md:inline-flex",children:["自动刷新 · ",D," 秒"]}),c.jsx("button",{className:"rounded-full border border-border bg-bg px-4 py-2 text-sm font-medium text-fg-2 hover:bg-surface",disabled:r,onClick:R,children:r?"刷新中":"立即刷新"}),c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 transition-colors hover:bg-bg hover:text-fg",onClick:H,"aria-label":p==="dark"?"切换到亮色模式":"切换到暗色模式",title:p==="dark"?"切换到亮色模式":"切换到暗色模式",children:p==="dark"?c.jsx(pv,{}):c.jsx(Sv,{})})]})}function bv({workflow:f,onWorkflow:d}){return c.jsxs("div",{className:"relative grid w-[140px] shrink-0 grid-cols-2 rounded-xl border border-border-soft bg-bg/70 p-0.5 shadow-sm backdrop-blur",role:"group","aria-label":"工作流模式",children:[c.jsx("span",{className:["pointer-events-none absolute bottom-0.5 left-0.5 top-0.5 w-[calc(50%-2px)] rounded-[9px] border border-accent/15 bg-accent-soft shadow-[0_1px_3px_rgba(15,23,42,0.08)] transition-transform duration-200 ease-out",f==="native"?"translate-x-full":"translate-x-0"].join(" "),"aria-hidden":"true"}),["classic","native"].map(m=>{const r=f===m,b=m==="classic"?"Classic":"Native";return c.jsx("button",{type:"button","aria-pressed":r,className:["relative z-10 rounded-[9px] px-2 py-1.5 text-[11px] font-semibold leading-none tracking-[0.01em] transition-colors duration-200",r?"text-accent-active":"text-muted hover:text-fg"].join(" "),onClick:()=>d(m),children:b},m)})]})}function pv(){return c.jsxs("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("circle",{cx:"12",cy:"12",r:"5"}),c.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),c.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),c.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),c.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),c.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),c.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),c.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),c.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})}function Sv(){return c.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:c.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})}function jv({className:f}){return c.jsxs("svg",{className:f,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.25",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[c.jsx("circle",{cx:"11",cy:"11",r:"7"}),c.jsx("path",{d:"m16.5 16.5 4 4"})]})}function Nv({snapshot:f,visible:d,selected:m,selectedId:r,tab:b,onTab:N,onSelect:O,onPreview:R}){const M=f.changes.active.length+f.changes.archived.length===0;return c.jsxs("div",{className:"mx-auto min-w-0 max-w-dashboard",children:[c.jsx(Wd,{title:"项目概览",hint:`生成于 ${Df(f.project.generatedAt)}`}),c.jsx(zv,{snapshot:f}),c.jsx(Wd,{title:"变更工作区",hint:"查看文件产物与项目进度"}),f.classicError?c.jsx(Gv,{error:f.classicError}):M?c.jsx(Qv,{}):c.jsxs("div",{className:"grid min-w-0 items-start gap-5 xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,320px)_minmax(0,1fr)_minmax(260px,320px)]",children:[c.jsx(Tv,{visible:d,selectedId:r,tab:b,onTab:N,onSelect:O}),m&&c.jsx(_v,{change:m,onPreview:R}),m&&c.jsx(Cv,{change:m,git:f.git,onPreview:R})]})]})}function Wd({title:f,hint:d}){return c.jsxs("div",{className:"mb-4 mt-6 flex flex-wrap items-baseline gap-3 first:mt-2",children:[c.jsx("h2",{className:"text-[28px] font-bold leading-tight",children:f}),c.jsx("span",{className:"text-sm text-muted",children:d})]})}function zv({snapshot:f}){const d=[["活跃变更",f.summary.activeChanges,"当前 repo 中","进行中"],["已归档变更",f.summary.archivedChanges,"历史迭代","已完成"],["Verify 失败",f.summary.verifyFailed,f.summary.verifyFailed?"需要处理":"全部通过",f.summary.verifyFailed?"阻塞":"健康"],["未完成任务",f.summary.tasksIncomplete,"跨变更统计",f.summary.tasksIncomplete?"待办":"清零"],["Git 未提交",f.summary.dirtyFiles,"verify 前需复核",f.summary.dirtyFiles?"未提交":"干净"]];return c.jsx("section",{className:"grid gap-4 md:grid-cols-3 lg:grid-cols-5",children:d.map(([m,r,b,N])=>c.jsx(Ev,{label:m,value:r,note:b,tag:N,animationKey:`${f.project.generatedAt}-${m}`},m))})}function Ev({label:f,value:d,note:m,tag:r,animationKey:b}){const N=An(d,850,b);return c.jsxs("article",{className:"summary-card-glow relative overflow-hidden rounded-lg bg-bg p-5 shadow-raised transition-shadow duration-200 hover:shadow-lg",children:[c.jsx("div",{className:"text-sm font-medium text-muted",children:f}),c.jsx("div",{className:"mt-1 text-[40px] font-bold leading-none tabular-nums",children:Math.round(N)}),c.jsx("div",{className:"mt-2 truncate text-xs text-meta",children:m}),c.jsx("span",{className:"absolute right-5 top-5 rounded-full bg-surface px-2.5 py-1 text-[11px] font-semibold text-fg-2",children:r})]})}function Tv({visible:f,selectedId:d,tab:m,onTab:r,onSelect:b}){return c.jsxs("aside",{className:"rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-center border-b border-border-soft px-5 py-4",children:[c.jsx("h3",{className:"font-semibold",children:"Changes Explorer"}),c.jsxs("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:[f.length," 个"]})]}),c.jsxs("div",{className:"p-4",children:[c.jsx("div",{className:"mb-4 inline-flex rounded-xl bg-surface p-1",children:[["active","活跃"],["archived","已归档"],["all","全部"]].map(([N,O])=>c.jsx("button",{className:`rounded-lg px-3 py-1.5 text-sm ${m===N?"bg-bg text-fg shadow-sm":"text-muted"}`,onClick:()=>r(N),children:O},N))}),c.jsx("div",{className:"space-y-2",children:f.length===0?c.jsx("div",{className:"py-8 text-center text-sm text-muted",children:m==="active"?"暂无活跃变更":m==="archived"?"暂无已归档变更":"暂无变更"}):f.map(N=>c.jsx(Av,{change:N,active:N.id===d,onClick:()=>b(N.id)},N.id))})]})]})}function Av({change:f,active:d,onClick:m}){const r=f.tasks.total?Math.round(f.tasks.completed/f.tasks.total*100):0;return c.jsx("button",{className:`w-full rounded-xl border p-3 text-left transition-all duration-200 ${d?"border-accent/30 bg-accent-softer shadow-sm":"border-transparent hover:bg-surface hover:border-border-soft"}`,onClick:m,children:c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"mt-1 text-xs text-meta",children:"◇"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-[13px] font-semibold",children:f.displayName}),c.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-xs text-meta",children:[c.jsx("span",{children:Of(f.phase)}),c.jsx("span",{className:"h-1.5 w-16 overflow-hidden rounded-full bg-surface",children:c.jsx("span",{className:`block h-full rounded-full ${r===100?"bg-success":"bg-accent"}`,style:{width:`${r}%`}})}),c.jsxs("span",{children:[f.tasks.completed,"/",f.tasks.total]})]})]}),c.jsx(cm,{tone:im[f.verify.result],children:Mf[f.verify.result]??"未知"})]})})}function _v({change:f,onPreview:d}){return c.jsxs("section",{className:"min-w-0 rounded-lg bg-bg shadow-raised",children:[c.jsxs("div",{className:"flex items-start gap-4 border-b border-border-soft px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"truncate text-base font-semibold",children:f.displayName}),c.jsxs("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-meta",children:[c.jsx("span",{children:f.workflow??"—"}),c.jsxs("span",{children:["更新于 ",Df(f.updatedAt)]}),c.jsx("span",{className:"min-w-0 truncate font-mono",children:$v(f)})]})]}),c.jsx(cm,{tone:f.status==="archived"?"ok":im[f.verify.result],children:f.status==="archived"?"已归档":Mf[f.verify.result]})]}),c.jsxs("div",{className:"space-y-5 p-5",children:[c.jsx(Mv,{phase:f.phase,archived:f.status==="archived",next:f.next}),c.jsxs("div",{className:"grid gap-4 md:grid-cols-[1fr_340px]",children:[c.jsx(Ov,{change:f,onPreview:d}),c.jsx("div",{className:"flex flex-col gap-4",children:c.jsx(Uv,{change:f})})]})]})]})}function Mv({phase:f,archived:d,next:m}){const r=d?"archive":f,b=Math.max(0,Wu.findIndex(([N])=>N===r));return c.jsxs("article",{children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-semibold",children:"生命周期阶段"}),c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 font-mono text-xs text-fg-2",children:d?`归档 ${f}`:`下一步 ${m?.command??"—"}`})]}),c.jsx("div",{className:"flex",children:Wu.map(([N,O],R)=>{const M=R<b||d?"done":R===b?"current":"pending";return c.jsxs("div",{className:"relative flex flex-1 flex-col items-center gap-2 text-center",children:[R>0&&c.jsx("span",{className:`absolute left-0 right-1/2 top-4 h-px ${R<=b||d?"bg-accent":"bg-border"}`}),R<Wu.length-1&&c.jsx("span",{className:`absolute left-1/2 right-0 top-4 h-px ${R<b||d?"bg-accent":"bg-border"}`}),c.jsx("span",{className:`relative z-10 grid size-8 place-items-center rounded-full border text-sm font-bold ${M==="done"?"border-accent bg-accent text-white":M==="current"?"border-accent bg-bg text-accent":"border-border bg-bg text-fg-2"}`,children:M==="done"?"✓":R+1}),c.jsx("span",{className:`text-[13px] font-semibold ${M==="current"||M==="done"?"text-accent":"text-fg-2"}`,children:O})]},N)})})]})}function Ov({change:f,onPreview:d}){const m=new Map((f.artifactPreviews??[]).map(p=>[p.key,p])),r=f.artifacts?.grouped??[],b=r.length,N=r.filter(p=>p.exists).length,O=r.filter(p=>p.source==="openspec"),R=r.filter(p=>p.source==="superpowers"),M=r.filter(p=>p.source==="comet");return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"关键产物"}),c.jsxs("span",{className:"font-mono text-[12px] text-meta",children:[N,"/",b]})]}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(zf,{title:"OpenSpec",artifacts:O,previewByKey:m,onPreview:d}),c.jsx(zf,{title:"Superpowers",artifacts:R,previewByKey:m,onPreview:d}),c.jsx(zf,{title:"Comet",artifacts:M,previewByKey:m,onPreview:d})]})]})}function zf({title:f,artifacts:d,previewByKey:m,onPreview:r}){return d.length===0?null:c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[12px] font-medium uppercase tracking-wider text-muted",children:f}),c.jsx("span",{className:"h-px flex-1 bg-border-soft"})]}),c.jsx("div",{className:"space-y-px",children:d.map(b=>{const N=m.get(b.key);return c.jsx(Dv,{artifact:b,preview:N,onPreview:r},b.key)})})]})}function Dv({artifact:f,preview:d,onPreview:m}){const r=f.exists,b=f.notApplicable,N=r?f.label:b?"无需生成":"未生成";return c.jsxs("button",{className:`group grid w-full grid-cols-[16px_1fr_auto] items-center gap-x-2.5 rounded-md px-2 py-1.5 text-left transition-colors duration-100 ${r?"cursor-pointer hover:bg-surface":"cursor-default opacity-50"}`,disabled:!r,onClick:()=>m({key:f.key,name:f.label,preview:d}),children:[c.jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:r?c.jsx("span",{className:"h-2 w-2 rounded-full bg-accent"}):b?c.jsx("span",{className:"h-2 w-2 rounded-full border border-border bg-surface"}):c.jsx("span",{className:"h-2 w-2 rounded-full border border-border"})}),c.jsx("span",{className:"min-w-0 truncate text-[13px] text-fg",children:f.key}),c.jsx("span",{className:"whitespace-nowrap pl-4 text-right text-[12px] text-muted",children:N})]})}function An(f,d=800,m=f){const[r,b]=it.useState(0);return it.useEffect(()=>{if(window.matchMedia?.("(pref-reduced-motion: reduce)").matches){b(f);return}const O=0,R=f,M=performance.now();let p=0;b(0);const H=D=>{const G=Math.min(1,(D-M)/d),L=1-Math.pow(1-G,3);b(O+R*L),G<1&&(p=requestAnimationFrame(H))};return p=requestAnimationFrame(H),()=>{cancelAnimationFrame(p)}},[d,m,f]),r}function Uv({change:f}){const d=f.tasks.total,m=f.tasks.completed,r=Math.max(0,d-m),b=f.status==="archived",N=f.tasks.sections.filter(W=>W.status==="done").length,O=f.tasks.sections.length,R=d?Math.round(m/d*100):0,M=An(R,900,f.id),p=An(m,900,f.id),H=An(r,900,f.id),D=An(N,900,f.id),G=Math.round(H),L=2*Math.PI*54,$=L*(1-M/100),et=r===0&&d>0,bt=b||et?"bg-ok-soft text-success":"bg-accent-softer text-fg-2",gt=b||et?"bg-success":"bg-accent",_t=b?"已归档完成,流程已结束":et?`所有任务已完成,可以进入 ${f.phase==="verify"?"归档":"Verify"}`:`剩余 ${G} 项未完成,完成后进入 ${f.phase==="verify"?"归档":"Verify"}`;return c.jsxs("article",{className:"rounded-xl border border-border-soft bg-bg px-5 py-4",children:[c.jsxs("div",{className:"mb-4 flex items-baseline justify-between",children:[c.jsx("h4",{className:"text-sm font-semibold tracking-tight",children:"任务进度"}),c.jsx("span",{className:`rounded-full px-2 py-0.5 text-[11px] font-medium ${et?"bg-ok-soft text-success":"bg-accent-soft text-accent"}`,children:et?"全部完成":`${G} 项待办`})]}),c.jsx("div",{className:"flex justify-center",children:c.jsxs("div",{className:"relative h-[110px] w-[110px]",children:[c.jsxs("svg",{className:"block size-full -rotate-90",viewBox:"0 0 120 120",role:"img","aria-label":`任务完成度 ${R}%`,children:[c.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:"var(--color-border-soft)",strokeWidth:"7"}),c.jsx("circle",{cx:"60",cy:"60",r:"54",fill:"none",stroke:et?"var(--color-success)":"var(--color-accent)",strokeWidth:"7",strokeLinecap:"round",strokeDasharray:L,strokeDashoffset:$})]}),c.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[c.jsxs("span",{className:"text-[26px] font-bold leading-none tabular-nums",children:[Math.round(M),"%"]}),c.jsx("span",{className:"mt-0.5 text-[10px] text-muted",children:"完成度"})]})]})}),c.jsxs("div",{className:"mt-4 flex items-center justify-center gap-6 text-center",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:Math.round(p)}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"已完成"})]}),c.jsx("div",{className:"h-6 w-px bg-border-soft"}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:G}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"剩余"})]}),c.jsx("div",{className:"h-6 w-px bg-border-soft"}),c.jsxs("div",{children:[c.jsxs("div",{className:"text-[18px] font-bold leading-none tabular-nums",children:[Math.round(D),"/",O]}),c.jsx("div",{className:"mt-1 text-[11px] text-muted",children:"分组"})]})]}),f.tasks.sections.length>0&&c.jsx("div",{className:"mt-4 space-y-2.5 border-t border-border-soft pt-4",children:f.tasks.sections.map(W=>{const ct=W.total?Math.round(W.completed/W.total*100):0,Kt=W.status==="done";return c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[c.jsx("span",{className:"truncate text-[11px] text-fg-2",children:W.title}),c.jsxs("span",{className:"shrink-0 pl-2 font-mono text-[10px] text-muted",children:[W.completed,"/",W.total]})]}),c.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-surface",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${Kt?"bg-success":"bg-accent"}`,style:{width:`${ct}%`}})})]},W.title)})}),c.jsxs("div",{className:`mt-4 flex items-center gap-2 rounded-lg px-3 py-2 text-[11px] ${bt}`,children:[c.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${gt}`}),c.jsx("span",{children:_t})]})]})}function Cv({change:f,git:d,onPreview:m}){return c.jsxs("aside",{className:"min-h-[480px] space-y-4 xl:col-start-2 2xl:col-start-auto",children:[f.status==="archived"?c.jsx(Hv,{change:f}):c.jsx(Rv,{change:f}),c.jsx(Bv,{change:f}),c.jsx(qv,{git:d})]})}function Rv({change:f}){return c.jsxs(Fu,{title:"下一步建议",tag:Of(f.phase),children:[c.jsxs("div",{className:"rounded-xl bg-fg px-4 py-3 font-mono text-[13px] text-bg",children:[c.jsx("span",{className:"text-success",children:"$ "}),f.next?.command??"—"]}),c.jsx("p",{className:"text-sm text-fg-2",children:f.next?.reason??"暂无建议"}),c.jsx("p",{className:"text-[13px] leading-relaxed text-muted",children:f.next?.description??""})]})}function Hv({change:f}){return c.jsxs(Fu,{title:"归档摘要",tag:"已归档",children:[c.jsx("div",{className:"break-words rounded-xl bg-accent-soft px-4 py-3 font-mono text-[13px] text-accent",children:f.archive?.archiveName??f.name}),c.jsxs("p",{className:"break-words text-sm text-fg-2",children:["原名:",f.archive?.originalName??f.name," · 归档于:",f.archive?.archivedAt??"—"]}),c.jsxs("p",{className:"break-words text-[13px] leading-relaxed text-muted",children:["归档路径:",f.archive?.archivePath??f.path," · 任务:",f.tasks.completed," /"," ",f.tasks.total]})]})}function Bv({change:f}){const d=f.risks??[];return c.jsx(Fu,{title:"风险提示",tag:`${d.length} 项`,children:d.length===0?c.jsx("div",{className:"rounded-xl bg-surface-warm p-3 text-sm text-muted",children:"当前未发现阻塞风险。"}):c.jsx("div",{className:"space-y-2",children:d.map(m=>c.jsxs("div",{className:"rounded-xl border border-border-soft p-3",children:[c.jsxs("div",{className:"flex gap-2 text-sm font-semibold",children:[c.jsx("span",{className:m.level==="error"?"text-danger":m.level==="warning"?"text-warn":"text-meta",children:"●"}),c.jsx("span",{children:m.message})]}),c.jsx("div",{className:"mt-1 font-mono text-xs text-meta",children:m.code})]},`${m.code}-${m.message}`))})})}function qv({git:f}){return c.jsxs(Fu,{title:"Git 快照",tag:`${f.dirtyFiles} 个未提交`,children:[c.jsx(Fd,{k:"分支",v:f.branch??"—"}),c.jsx(Fd,{k:"HEAD",v:f.head??"—"}),c.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"最近提交"}),c.jsx("ul",{className:"space-y-1",children:f.recentCommits.map(d=>c.jsx("li",{className:"truncate text-sm text-fg-2",children:d},d))}),c.jsx("div",{className:"pt-2 text-[11px] font-semibold uppercase text-meta",children:"未提交文件"}),c.jsx("ul",{className:"space-y-1",children:f.dirtyFileList.slice(0,5).map(d=>c.jsx("li",{className:"break-all font-mono text-xs text-warn",children:d},d))})]})}function Fu({title:f,tag:d,children:m}){return c.jsxs("article",{className:"rounded-lg bg-bg p-5 shadow-card",children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[c.jsx("h4",{className:"font-semibold",children:f}),d&&c.jsx("span",{className:"ml-auto rounded-full bg-surface px-3 py-1 text-xs text-fg-2",children:d})]}),c.jsx("div",{className:"space-y-3",children:m})]})}function Fd({k:f,v:d}){return c.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[c.jsx("span",{className:"w-16 shrink-0 text-muted",children:f}),c.jsx("span",{className:"min-w-0 truncate font-mono text-[13px]",children:d})]})}function Yv({artifact:f,onClose:d}){const[m,r]=it.useState({status:"idle"}),[b,N]=it.useState(!1),[O,R]=it.useState([]),[M,p]=it.useState(""),H=it.useRef(null),D=it.useRef(null);if(it.useEffect(()=>{if(!f){N(!1);return}const L=window.scrollY,$={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,right:document.body.style.right,width:document.body.style.width};return document.body.style.position="fixed",document.body.style.top=`-${L}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.width="100%",()=>{N(!1),document.body.style.position=$.position,document.body.style.top=$.top,document.body.style.left=$.left,document.body.style.right=$.right,document.body.style.width=$.width,window.scrollTo(0,L)}},[f]),it.useEffect(()=>{if(!f){r({status:"idle"});return}let L=!1;r({status:"loading"});const $=f.preview,et=$?.path??"",bt=f.key==="cometYaml"||/\.ya?ml$/i.test(et),gt=f.key==="handoff"||f.key==="checkpoint"||/\.json$/i.test(et),_t=bt||gt,W=$?.exists?_t?$.content?.trimEnd()||"":`${$.content?.trimEnd()||"这个产物是空文件。"}${$.truncated?`
16
16
 
17
- > 内容过长,已截取前 256KB。`:""}`:$?`尚未生成 ${f.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let ct;if($?.exists&&_t?W.trim()?(ct=gt?await Kd(W):await Vd(W),$.truncated&&(ct+="<p><em>内容过长,已截取前 256KB。</em></p>")):ct=gt?await Kd(""):await Vd(""):ct=await _n(W),L)return;if(!ct.trim()){r({status:"empty"});return}r({status:"success",html:ct})}catch(ct){if(L)return;r({status:"error",message:ct instanceof Error?ct.message:"产物预览渲染失败,请重试"})}})(),()=>{L=!0}},[f]),it.useEffect(()=>{if(m.status==="success"&&H.current){$0(H.current);const L=J0(H.current);R(L),L.length>0&&p(L[0].id)}else R([]),p("")},[m]),it.useEffect(()=>{if(!b)return;const L=D.current,$=H.current;if(!L||!$||O.length===0)return;const et=()=>{const bt=O.map(({id:_t})=>document.getElementById(_t)).filter(Boolean);let gt=bt[0]?.id??"";for(const _t of bt){const W=_t.getBoundingClientRect(),ct=L.getBoundingClientRect();W.top-ct.top<=80&&(gt=_t.id)}p(gt)};return L.addEventListener("scroll",et,{passive:!0}),()=>L.removeEventListener("scroll",et)},[O,b]),!f)return null;const G=f.preview;return c.jsxs("div",{className:b?"fixed inset-0 z-[90] flex":"fixed inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1",children:[!b&&c.jsx("button",{"aria-label":"关闭产物预览",className:"bg-black/30 max-sm:hidden",onClick:d}),c.jsxs("section",{className:["flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",b?"h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[c.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h2",{className:"text-xl font-bold",children:f.name}),c.jsxs("div",{className:"mt-1 flex items-start gap-1.5",children:[G?.path&&c.jsx("button",{type:"button",className:"grid size-7 shrink-0 place-items-center rounded-lg text-muted hover:bg-surface hover:text-fg-2","aria-label":"复制文件路径",onClick:async()=>{try{await navigator.clipboard.writeText(G.path),Oa("路径已复制")}catch{Oa("复制失败")}},children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),c.jsx("p",{className:"min-w-0 flex-1 break-all font-mono text-xs text-meta",children:G?.path??"当前服务未返回全文内容"})]}),(G?.size!=null||G?.updatedAt)&&c.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[G?.size!=null&&c.jsx("span",{children:$v(G.size)}),G?.updatedAt&&c.jsxs("span",{children:["更新于 ",Df(G.updatedAt)]})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c.jsx("button",{type:"button",className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:()=>N(L=>!L),"aria-label":b?"退出全屏":"全屏展示",children:b?c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}):c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}),c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:d,"aria-label":"关闭产物预览",children:"×"})]})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[b&&O.length>0&&c.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[220px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[c.jsx("p",{className:"mb-2 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted",children:"目录"}),c.jsx("ul",{className:"space-y-0.5",children:O.map(L=>c.jsx("li",{children:c.jsx("a",{href:`#${L.id}`,onClick:$=>{$.preventDefault();const et=document.getElementById(L.id),bt=D.current;if(!et||!bt)return;const gt=et.getBoundingClientRect().top-bt.getBoundingClientRect().top+bt.scrollTop-16;bt.scrollTo({top:gt,behavior:"smooth"}),p(L.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",L.depth===1?"text-[13px] font-medium":"",L.depth===2?"pl-4 text-xs":"",L.depth===3?"pl-7 text-xs":"",M===L.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:L.text})},L.id))})]}),c.jsxs("div",{ref:D,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",b?"px-12 py-6":"p-5"].join(" "),children:[m.status==="loading"&&c.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"正在加载..."}),m.status==="empty"&&c.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),m.status==="error"&&c.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:m.message}),m.status==="success"&&c.jsx("article",{ref:H,className:"md-github",dangerouslySetInnerHTML:{__html:m.html}})]})]})]})]})}function cm({tone:f="neutral",children:d}){const m={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[f]??"bg-surface text-fg-2";return c.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${m}`,children:d})}function Gv(){return c.jsx("div",{className:"rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"当前无 Comet 迭代。"})}function Qv(){return c.jsx("div",{className:"mx-auto max-w-dashboard rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 dashboard..."})}async function Lv(){const f=await fetch("/api/dashboard",{cache:"no-store"});if(!f.ok)throw new Error(`HTTP ${f.status}`);return f.json()}async function Xv(){const f=await Ze(()=>import("./demo-BuVau32v.js"),[]);return wv(f.DEMO_SNAPSHOT)}function wv(f){const d=m=>{const b=(m.artifacts?.grouped??[]).map(N=>({key:N.key,label:N.label,path:N.path,exists:N.exists,size:N.exists?1024+Math.floor(Math.random()*4096):void 0,updatedAt:N.exists?"2026-06-25T12:00:00.000Z":void 0,content:N.exists?`# ${N.label}
17
+ > 内容过长,已截取前 256KB。`:""}`:$?`尚未生成 ${f.name}。`:"这个产物文件存在,但当前 dashboard 服务返回的数据里没有全文内容。请重启 dashboard 服务后再刷新页面。";return(async()=>{try{let ct;if($?.exists&&_t?W.trim()?(ct=gt?await Kd(W):await Vd(W),$.truncated&&(ct+="<p><em>内容过长,已截取前 256KB。</em></p>")):ct=gt?await Kd(""):await Vd(""):ct=await _n(W),L)return;if(!ct.trim()){r({status:"empty"});return}r({status:"success",html:ct})}catch(ct){if(L)return;r({status:"error",message:ct instanceof Error?ct.message:"产物预览渲染失败,请重试"})}})(),()=>{L=!0}},[f]),it.useEffect(()=>{if(m.status==="success"&&H.current){$0(H.current);const L=J0(H.current);R(L),L.length>0&&p(L[0].id)}else R([]),p("")},[m]),it.useEffect(()=>{if(!b)return;const L=D.current,$=H.current;if(!L||!$||O.length===0)return;const et=()=>{const bt=O.map(({id:_t})=>document.getElementById(_t)).filter(Boolean);let gt=bt[0]?.id??"";for(const _t of bt){const W=_t.getBoundingClientRect(),ct=L.getBoundingClientRect();W.top-ct.top<=80&&(gt=_t.id)}p(gt)};return L.addEventListener("scroll",et,{passive:!0}),()=>L.removeEventListener("scroll",et)},[O,b]),!f)return null;const G=f.preview;return c.jsxs("div",{className:b?"fixed inset-0 z-[90] flex":"fixed inset-0 z-[90] grid grid-cols-[minmax(0,1fr)_minmax(360px,760px)] max-sm:grid-cols-1",children:[!b&&c.jsx("button",{"aria-label":"关闭产物预览",className:"bg-black/30 max-sm:hidden",onClick:d}),c.jsxs("section",{className:["flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-bg",b?"h-full w-full":"border-l border-border shadow-[-20px_0_44px_rgba(0,0,0,0.12)]"].join(" "),children:[c.jsxs("header",{className:"flex items-start gap-3 border-b border-border-soft p-5",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h2",{className:"text-xl font-bold",children:f.name}),c.jsxs("div",{className:"mt-1 flex items-start gap-1.5",children:[G?.path&&c.jsx("button",{type:"button",className:"grid size-7 shrink-0 place-items-center rounded-lg text-muted hover:bg-surface hover:text-fg-2","aria-label":"复制文件路径",onClick:async()=>{try{await navigator.clipboard.writeText(G.path),Oa("路径已复制")}catch{Oa("复制失败")}},children:c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),c.jsx("p",{className:"min-w-0 flex-1 break-all font-mono text-xs text-meta",children:G?.path??"当前服务未返回全文内容"})]}),(G?.size!=null||G?.updatedAt)&&c.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-3 text-[11px] text-muted",children:[G?.size!=null&&c.jsx("span",{children:kv(G.size)}),G?.updatedAt&&c.jsxs("span",{children:["更新于 ",Df(G.updatedAt)]})]})]}),c.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[c.jsx("button",{type:"button",className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:()=>N(L=>!L),"aria-label":b?"退出全屏":"全屏展示",children:b?c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"})}):c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}),c.jsx("button",{className:"grid size-10 place-items-center rounded-xl text-fg-2 hover:bg-surface",onClick:d,"aria-label":"关闭产物预览",children:"×"})]})]}),c.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[b&&O.length>0&&c.jsxs("nav",{"aria-label":"文档目录",className:"hidden w-[220px] shrink-0 overflow-y-auto border-r border-border-soft bg-surface px-3 py-4 sm:block",children:[c.jsx("p",{className:"mb-2 px-2 text-[11px] font-semibold uppercase tracking-wider text-muted",children:"目录"}),c.jsx("ul",{className:"space-y-0.5",children:O.map(L=>c.jsx("li",{children:c.jsx("a",{href:`#${L.id}`,onClick:$=>{$.preventDefault();const et=document.getElementById(L.id),bt=D.current;if(!et||!bt)return;const gt=et.getBoundingClientRect().top-bt.getBoundingClientRect().top+bt.scrollTop-16;bt.scrollTo({top:gt,behavior:"smooth"}),p(L.id)},className:["block rounded-md px-2 py-1.5 leading-snug transition-colors",L.depth===1?"text-[13px] font-medium":"",L.depth===2?"pl-4 text-xs":"",L.depth===3?"pl-7 text-xs":"",M===L.id?"bg-accent-soft font-medium text-accent":"text-fg-2 hover:bg-surface-warm hover:text-fg"].join(" "),children:L.text})},L.id))})]}),c.jsxs("div",{ref:D,className:["min-h-0 min-w-0 flex-1 overflow-y-auto overscroll-contain",b?"px-12 py-6":"p-5"].join(" "),children:[m.status==="loading"&&c.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"正在加载..."}),m.status==="empty"&&c.jsx("p",{className:"py-10 text-center text-sm text-muted","aria-live":"polite",children:"该产物文件尚未生成"}),m.status==="error"&&c.jsx("p",{role:"alert",className:"py-10 text-center text-sm text-danger",children:m.message}),m.status==="success"&&c.jsx("article",{ref:H,className:"md-github",dangerouslySetInnerHTML:{__html:m.html}})]})]})]})]})}function cm({tone:f="neutral",children:d}){const m={ok:"bg-ok-soft text-success",warn:"bg-warn-soft text-warn",danger:"bg-danger-soft text-danger",info:"bg-info-soft text-info",neutral:"bg-surface text-fg-2"}[f]??"bg-surface text-fg-2";return c.jsx("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold ${m}`,children:d})}function Gv({error:f}){return c.jsxs("div",{role:"alert",className:"rounded-lg border border-danger/30 bg-danger-soft p-6 shadow-card",children:[c.jsx("h3",{className:"font-semibold text-danger",children:"Classic 数据读取失败"}),c.jsx("p",{className:"mt-2 break-words text-sm text-fg-2",children:f.message}),c.jsx("p",{className:"mt-3 text-sm text-muted",children:"请检查 .comet/config.yaml 与 Classic 产物目录,然后刷新 Dashboard。"})]})}function Qv(){return c.jsx("div",{className:"rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"当前无 Comet 迭代。"})}function Lv(){return c.jsx("div",{className:"mx-auto max-w-dashboard rounded-lg bg-bg p-10 text-center text-sm text-muted shadow-raised",children:"正在加载 dashboard..."})}async function Xv(){const f=await fetch("/api/dashboard",{cache:"no-store"});if(!f.ok)throw new Error(`HTTP ${f.status}`);return f.json()}async function wv(){const f=await Ze(()=>import("./demo-BuVau32v.js"),[]);return Zv(f.DEMO_SNAPSHOT)}function Zv(f){const d=m=>{const b=(m.artifacts?.grouped??[]).map(N=>({key:N.key,label:N.label,path:N.path,exists:N.exists,size:N.exists?1024+Math.floor(Math.random()*4096):void 0,updatedAt:N.exists?"2026-06-25T12:00:00.000Z":void 0,content:N.exists?`# ${N.label}
18
18
 
19
19
  ${N.label}:${m.displayName}
20
20
 
21
21
  - 当前阶段:${Of(m.phase)}
22
22
  - 任务进度:${m.tasks.completed}/${m.tasks.total}
23
23
  - Verify:${Mf[m.verify.result]??"未知"}
24
- `:void 0}));return{...m,artifactPreviews:b}};return{...f,changes:{active:(f.changes.active??[]).map(d),archived:(f.changes.archived??[]).map(d)}}}function Zv(f,d){const m=[...f.changes.active??[],...f.changes.archived??[]];return d&&m.some(r=>r.id===d)?d:f.changes.active?.[0]?.id??f.changes.archived?.[0]?.id??null}function Vv(f,d){return!f||!d?null:[...f.changes.active??[],...f.changes.archived??[]].find(m=>m.id===d)??null}function Kv(f,d,m){if(!f)return[];const r=d==="archived"?f.changes.archived??[]:d==="all"?[...f.changes.active??[],...f.changes.archived??[]]:f.changes.active??[],b=m.trim().toLowerCase();return b?r.filter(N=>[N.name,N.displayName,N.workflow,N.phase].filter(Boolean).join(" ").toLowerCase().includes(b)):r}function Jv(f){return f.relativePath||f.name}function Of(f){return Wu.find(([d])=>d===f)?.[1]??f??"未知"}function Df(f){if(!f)return"—";const d=new Date(f);if(Number.isNaN(d.getTime()))return f;const m=r=>String(r).padStart(2,"0");return`${d.getFullYear()}-${m(d.getMonth()+1)}-${m(d.getDate())} ${m(d.getHours())}:${m(d.getMinutes())}`}function $v(f){return f==null?null:f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:`${(f/(1024*1024)).toFixed(1)} MB`}function Oa(f){const d=document.getElementById("toast");d&&(d.textContent=f,d.classList.add("show"),window.clearTimeout(Oa.timer),Oa.timer=window.setTimeout(()=>d.classList.remove("show"),2200))}X0.createRoot(document.getElementById("root")).render(c.jsx(yv,{}));export{Ze as _};
24
+ `:void 0}));return{...m,artifactPreviews:b}};return{...f,changes:{active:(f.changes.active??[]).map(d),archived:(f.changes.archived??[]).map(d)}}}function Vv(f,d){const m=[...f.changes.active??[],...f.changes.archived??[]];return d&&m.some(r=>r.id===d)?d:f.changes.active?.[0]?.id??f.changes.archived?.[0]?.id??null}function Kv(f,d){return!f||!d?null:[...f.changes.active??[],...f.changes.archived??[]].find(m=>m.id===d)??null}function Jv(f,d,m){if(!f)return[];const r=d==="archived"?f.changes.archived??[]:d==="all"?[...f.changes.active??[],...f.changes.archived??[]]:f.changes.active??[],b=m.trim().toLowerCase();return b?r.filter(N=>[N.name,N.displayName,N.workflow,N.phase].filter(Boolean).join(" ").toLowerCase().includes(b)):r}function $v(f){return f.relativePath||f.name}function Of(f){return Wu.find(([d])=>d===f)?.[1]??f??"未知"}function Df(f){if(!f)return"—";const d=new Date(f);if(Number.isNaN(d.getTime()))return f;const m=r=>String(r).padStart(2,"0");return`${d.getFullYear()}-${m(d.getMonth()+1)}-${m(d.getDate())} ${m(d.getHours())}:${m(d.getMinutes())}`}function kv(f){return f==null?null:f<1024?`${f} B`:f<1024*1024?`${(f/1024).toFixed(1)} KB`:`${(f/(1024*1024)).toFixed(1)} MB`}function Oa(f){const d=document.getElementById("toast");d&&(d.textContent=f,d.classList.add("show"),window.clearTimeout(Oa.timer),Oa.timer=window.setTimeout(()=>d.classList.remove("show"),2200))}X0.createRoot(document.getElementById("root")).render(c.jsx(yv,{}));export{Ze as _};
@@ -1,2 +1,2 @@
1
- import{_ as a,l as s,H as n,e as i}from"./mermaid.core-CucmqsLW.js";import{p}from"./cynefin-VYW2F7L2-B3F-qRTJ.js";import"./index-Msce_H_q.js";import"./_commonjsHelpers-CqkleIqs.js";import"./purify.es-VaSPOPhr.js";var g={parse:a(async r=>{const e=await p("info",r);s.debug(e)},"parse")},v={version:"11.15.0"},d=a(()=>v.version,"getVersion"),m={getVersion:d},c=a((r,e,o)=>{s.debug(`rendering info diagram
1
+ import{_ as a,l as s,H as n,e as i}from"./mermaid.core-5Ibr28Ig.js";import{p}from"./cynefin-VYW2F7L2-CBaY4KFj.js";import"./index-CovQUq5W.js";import"./_commonjsHelpers-CqkleIqs.js";import"./purify.es-VaSPOPhr.js";var g={parse:a(async r=>{const e=await p("info",r);s.debug(e)},"parse")},v={version:"11.15.0"},d=a(()=>v.version,"getVersion"),m={getVersion:d},c=a((r,e,o)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=n(e);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${o}`)},"draw"),l={draw:c},y={parser:g,db:m,renderer:l};export{y as diagram};