@inkeep/open-knowledge 0.58.0-beta.0 → 0.58.0-beta.10

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 (431) hide show
  1. package/dist/{acp-harness-probe-C81MseWi.mjs → acp-harness-probe-DbFIl2BU.mjs} +2 -2
  2. package/dist/cli.mjs +52 -52
  3. package/dist/config-schema.json +1 -1
  4. package/dist/config.project.schema.json +1 -1
  5. package/dist/constants-C1H8vDEI.mjs +2 -0
  6. package/dist/fs-traced-corg4Obj.mjs +1 -0
  7. package/dist/{fs-traced-xJfl5Rxd.mjs → fs-traced-oq2wG9J_.mjs} +2 -2
  8. package/dist/{git-handle-B0tCzHAN.mjs → git-handle-LcX1ybej.mjs} +2 -2
  9. package/dist/git-handle-oit2551N.mjs +1 -0
  10. package/dist/index.d.mts +2598 -2
  11. package/dist/index.mjs +142 -142
  12. package/dist/init-BSBh5NEy.mjs +1 -0
  13. package/dist/{init-DsYoP76e.mjs → init-Bs3f8EWG.mjs} +34 -34
  14. package/dist/{launch-json-removal-eC8G1wb1.mjs → launch-json-removal-C5-FtXnw.mjs} +2 -2
  15. package/dist/{loader-DA2uxgAD.mjs → loader-Cn-wB0Do.mjs} +2 -2
  16. package/dist/loader-EYGbTHDG.mjs +1 -0
  17. package/dist/md-manager-_NpKRGFQ.mjs +2 -0
  18. package/dist/{open-browser-B3YQRXop.mjs → open-browser-BtuwIucI.mjs} +2 -2
  19. package/dist/parse-worker.mjs +1 -1
  20. package/dist/{preview-BYiBtNwO.mjs → preview-12KEx0r2.mjs} +2 -2
  21. package/dist/preview-BH6HJEYP.mjs +1 -0
  22. package/dist/public/assets/ActivityModeContent-BO5c1F45.js +1 -0
  23. package/dist/public/assets/{AgentDiffPane-vuhizpEd.js → AgentDiffPane-Cw0ahLQK.js} +2 -2
  24. package/dist/public/assets/{AgentThreadClientBinder-ChxqWHn_.js → AgentThreadClientBinder-alF1Qxu7.js} +1 -1
  25. package/dist/public/assets/{AppMenubar-FC_O2Ys9.js → AppMenubar-CWFN6Gg5.js} +1 -1
  26. package/dist/public/assets/{BugReportHistory-CaUianj8.js → BugReportHistory-DMwk_0cq.js} +1 -1
  27. package/dist/public/assets/{BugReportHistoryDialog-DXiXGqdM.js → BugReportHistoryDialog-zfmeFMvr.js} +1 -1
  28. package/dist/public/assets/CodeMirrorPropInput-AP4wqZL2.js +3 -0
  29. package/dist/public/assets/ConsentDialogBody-Uj0mYVTS.js +2 -0
  30. package/dist/public/assets/{DiffView-CPhiNxpc.js → DiffView-BK--nLAo.js} +1 -1
  31. package/dist/public/assets/DocumentContext-B2FwySzT.js +38 -0
  32. package/dist/public/assets/EditorModeToggle-B3b-_Slj.js +1 -0
  33. package/dist/public/assets/EnableSyncConfirmDialog-B_uAUnIL.js +1 -0
  34. package/dist/public/assets/FeedbackForm-DEzPexsg.js +1 -0
  35. package/dist/public/assets/{GraphPanel-COPEU9QX.js → GraphPanel-BsFLWlSI.js} +2 -2
  36. package/dist/public/assets/ImportSkillDialog-BaURuYsW.js +1 -0
  37. package/dist/public/assets/{LintConfigEditor-BwsiJDfg.js → LintConfigEditor-BRac0L2w.js} +1 -1
  38. package/dist/public/assets/ManagedArtifactProperties-8W35GiF8.js +1 -0
  39. package/dist/public/assets/ManagedArtifactProperties-B2CPGMcp.js +1 -0
  40. package/dist/public/assets/McpConsentDialogBody-CMQ8aY21.js +1 -0
  41. package/dist/public/assets/{Mermaid-DbOd2zw_.js → Mermaid-Cf83G27p.js} +2 -2
  42. package/dist/public/assets/{MermaidDocEditor-6MtXqzan.js → MermaidDocEditor-CL62mYzz.js} +1 -1
  43. package/dist/public/assets/{PropertyDisplayRow-DqvVKGtH.js → PropertyDisplayRow-D_ij-h00.js} +2 -2
  44. package/dist/public/assets/{RegisteredAgentIcon-ljYuKfOS.js → RegisteredAgentIcon-BAUcXnMS.js} +1 -1
  45. package/dist/public/assets/{ReportBugDialogBody-Ajl3p6In.js → ReportBugDialogBody-CTjqMQjF.js} +1 -1
  46. package/dist/public/assets/SchemaConfigEditor-CCbxc_Pm.js +1 -0
  47. package/dist/public/assets/SessionsHost-BHjayxS9.js +2 -0
  48. package/dist/public/assets/SettingsDialogBody-wa_TA4zB.js +13 -0
  49. package/dist/public/assets/ShareBranchSwitchDialog-p04XVeXL.js +1 -0
  50. package/dist/public/assets/ShareReceiveDialog-CRU0cNda.js +1 -0
  51. package/dist/public/assets/ShareReceiveMissDialog-B_XivQys.js +1 -0
  52. package/dist/public/assets/SkillCostValue-9Tsf8LmI.js +1 -0
  53. package/dist/public/assets/{SkillEditBanner-C2NwXGwp.js → SkillEditBanner-CAYhgKpt.js} +1 -1
  54. package/dist/public/assets/SkillInstallMenu-BO1Y7bBb.js +8 -0
  55. package/dist/public/assets/{SkillOriginInline-Bfr_LvLW.js → SkillOriginInline-CFQp_N8V.js} +1 -1
  56. package/dist/public/assets/{SkillToolbarControls-Dod_5zs_.js → SkillToolbarControls-Cj-Wn57W.js} +1 -1
  57. package/dist/public/assets/SlidesToolbarControls-DyErjjaP.js +1 -0
  58. package/dist/public/assets/{SourceEditor-CNg6hcSq.js → SourceEditor-Bo4tbQw4.js} +1 -1
  59. package/dist/public/assets/{TerminalPanel-CyjfYWsq.js → TerminalPanel-B8MIfbDf.js} +3 -3
  60. package/dist/public/assets/{TerminalWindowApp-Ce4imhj9.js → TerminalWindowApp-CA9GYrX2.js} +1 -1
  61. package/dist/public/assets/{TextDocEditor-CTZRYi5V.js → TextDocEditor-B0Ff4Err.js} +1 -1
  62. package/dist/public/assets/ThreadView-Cjgo1Ccx.js +14 -0
  63. package/dist/public/assets/TimelineDiffPane-BKFbIot1.js +2 -0
  64. package/dist/public/assets/{abnfDiagram-VRR7QNED-BT2YpL-i.js → abnfDiagram-VRR7QNED-BXV0Q9Rf.js} +1 -1
  65. package/dist/public/assets/{agent-diff-store-Bxwv7QUN.js → agent-diff-store-CUrI_VS-.js} +1 -1
  66. package/dist/public/assets/{arc-5_RUQzQ7.js → arc-CXotQ3Zv.js} +1 -1
  67. package/dist/public/assets/architecture-TIHT7OUA-CcEi9kJB.js +1 -0
  68. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-D838GYQt.js → architectureDiagram-ZJ3FMSHR-BrUUqulO.js} +1 -1
  69. package/dist/public/assets/auth-state-cache-DzbXi191.js +11 -0
  70. package/dist/public/assets/{blockDiagram-677ZJIJ3-D1Cwxkvv.js → blockDiagram-677ZJIJ3-BcwZugGV.js} +1 -1
  71. package/dist/public/assets/{c4Diagram-LMCZKHZV-BUrI2fXA.js → c4Diagram-LMCZKHZV-CyK96MK8.js} +1 -1
  72. package/dist/public/assets/{calendar-CAFot_1Z.js → calendar-D-zvRPBw.js} +1 -1
  73. package/dist/public/assets/channel-CiQMistZ.js +1 -0
  74. package/dist/public/assets/chunk-2Q5K7J3B-DidKTrYl.js +1 -0
  75. package/dist/public/assets/{chunk-32BRIVSS-BgyL-XUN.js → chunk-32BRIVSS-C-dyipE0.js} +1 -1
  76. package/dist/public/assets/{chunk-52WLFC77-CLCS5D1w.js → chunk-52WLFC77-C0TaY8su.js} +1 -1
  77. package/dist/public/assets/{chunk-5FCAYU7R-D4Qemx4Q.js → chunk-5FCAYU7R-CyWZYAnb.js} +1 -1
  78. package/dist/public/assets/{chunk-5HE753X5-AFxpbWC8.js → chunk-5HE753X5-BA4_jYMU.js} +1 -1
  79. package/dist/public/assets/{chunk-5JV3BV7I-DQech1b8.js → chunk-5JV3BV7I-CTt6G2-n.js} +1 -1
  80. package/dist/public/assets/{chunk-5TONJI2A-DhQn7UEA.js → chunk-5TONJI2A-C9OV9wU1.js} +1 -1
  81. package/dist/public/assets/{chunk-5VM5RSS4-Mk-moEej.js → chunk-5VM5RSS4-CN9qrDG1.js} +1 -1
  82. package/dist/public/assets/{chunk-7BUUIJ7U-NgiLm4do.js → chunk-7BUUIJ7U-Pr_5SKwD.js} +1 -1
  83. package/dist/public/assets/{chunk-BIQX33UG-BGOx5d7P.js → chunk-BIQX33UG-DxUkIR1G.js} +1 -1
  84. package/dist/public/assets/{chunk-BO2N2NFS-CuZ7_vEZ.js → chunk-BO2N2NFS-CAsSfJQV.js} +3 -3
  85. package/dist/public/assets/{chunk-C7G6YPKG-DTKxmZVz.js → chunk-C7G6YPKG-75F8nXGJ.js} +1 -1
  86. package/dist/public/assets/{chunk-CQNSW5MT-BtseeAyV.js → chunk-CQNSW5MT-j0TLuP3z.js} +1 -1
  87. package/dist/public/assets/{chunk-CYSBUYHQ-BMn0BrMO.js → chunk-CYSBUYHQ-BoEkL9Wm.js} +1 -1
  88. package/dist/public/assets/{chunk-EMLP6XTP-CMh4Lfqa.js → chunk-EMLP6XTP-C8nwP0qN.js} +1 -1
  89. package/dist/public/assets/{chunk-EX3LRPZG-DCBoE6Bv.js → chunk-EX3LRPZG-ghIR61NM.js} +1 -1
  90. package/dist/public/assets/{chunk-FWX5IMBZ-CAuRUmD2.js → chunk-FWX5IMBZ-C4T9sOJA.js} +2 -2
  91. package/dist/public/assets/{chunk-HOUHSVGY-DGOb362U.js → chunk-HOUHSVGY-B7v770iR.js} +1 -1
  92. package/dist/public/assets/{chunk-ICXQ74PX-BuIKeQxW.js → chunk-ICXQ74PX-C63Xgr0O.js} +1 -1
  93. package/dist/public/assets/{chunk-JG7HCLWE-Bx0614Ks.js → chunk-JG7HCLWE-Bcuks90D.js} +1 -1
  94. package/dist/public/assets/{chunk-JWPE2WC7-CTPvDarN.js → chunk-JWPE2WC7-XZG40a9S.js} +1 -1
  95. package/dist/public/assets/{chunk-MOJQB5TN-BQcLEpd9.js → chunk-MOJQB5TN-rm-6_rQH.js} +1 -1
  96. package/dist/public/assets/{chunk-MOZMSUNE-Cw75i_mo.js → chunk-MOZMSUNE-CCTdAyja.js} +1 -1
  97. package/dist/public/assets/{chunk-OGEWGWER-DUygGCtr.js → chunk-OGEWGWER-ChlRgYv3.js} +1 -1
  98. package/dist/public/assets/{chunk-OSBZ3O6U-3rlBFXeF.js → chunk-OSBZ3O6U-CP4W3y1B.js} +1 -1
  99. package/dist/public/assets/{chunk-PUDLZKDR-O5ZbZaei.js → chunk-PUDLZKDR-ayfNwaKz.js} +1 -1
  100. package/dist/public/assets/{chunk-Q4XR5HBZ-DnjBiiRi.js → chunk-Q4XR5HBZ-kztF5uGd.js} +1 -1
  101. package/dist/public/assets/{chunk-QBLGF6JB-ClgYvCDk.js → chunk-QBLGF6JB-D_vbeWLb.js} +1 -1
  102. package/dist/public/assets/{chunk-R7FJI6CG-Byfy5jLm.js → chunk-R7FJI6CG-DJnAKUGu.js} +1 -1
  103. package/dist/public/assets/{chunk-RYQCIY6F-BcYiXXs_.js → chunk-RYQCIY6F-C51U5WWC.js} +1 -1
  104. package/dist/public/assets/{chunk-U6XO7XAA-BgHi1_DT.js → chunk-U6XO7XAA-uXQLs3eV.js} +1 -1
  105. package/dist/public/assets/{chunk-V7JOEXUC-DD-xZ_GP.js → chunk-V7JOEXUC-B-o2tHar.js} +1 -1
  106. package/dist/public/assets/chunk-VAUOI2AC-BoxNBv72.js +1 -0
  107. package/dist/public/assets/{chunk-VR4S4FIN-RC3ren3m.js → chunk-VR4S4FIN-BK5oYbfP.js} +1 -1
  108. package/dist/public/assets/{chunk-WYO6CB5R-BtZO7GTo.js → chunk-WYO6CB5R-CrS71lvK.js} +1 -1
  109. package/dist/public/assets/chunk-XXDRQBXY-BbtIdjLE.js +1 -0
  110. package/dist/public/assets/{chunk-YOTPTUD7-Bb6P7QJ5.js → chunk-YOTPTUD7-BbxSM36P.js} +1 -1
  111. package/dist/public/assets/{chunk-ZGVPDNZ5-B7cInX-F.js → chunk-ZGVPDNZ5-B9_vMnln.js} +1 -1
  112. package/dist/public/assets/{chunk-ZIRB5QZD-BUb1k7IW.js → chunk-ZIRB5QZD-CANgIEc6.js} +1 -1
  113. package/dist/public/assets/classDiagram-OUVF2IWQ-CKFEghmu.js +1 -0
  114. package/dist/public/assets/classDiagram-v2-EOCWNBFH-CHW-nN7G.js +1 -0
  115. package/dist/public/assets/client-version-BFRrEG7V.js +1 -0
  116. package/dist/public/assets/{cm-theme-Cmsb2GL4.js → cm-theme-K6epwl2Z.js} +1 -1
  117. package/dist/public/assets/comment-chips-CwjOEDgv.js +5 -0
  118. package/dist/public/assets/config-provider-zPDmtELo.js +5 -0
  119. package/dist/public/assets/{cose-bilkent-JH36ORCC-B5G6WpVe.js → cose-bilkent-JH36ORCC-CwHzeAti.js} +1 -1
  120. package/dist/public/assets/cynefin-VYW2F7L2-BPH_wuBk.js +1 -0
  121. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-DLn0rjiW.js → cynefinDiagram-TSTJHNR4-B-B0tA2f.js} +1 -1
  122. package/dist/public/assets/{dagre-DU0bSWB3.js → dagre-DfVjddc3.js} +1 -1
  123. package/dist/public/assets/{dagre-VKFMJZFB-oSeZtzYF.js → dagre-VKFMJZFB-DZKHilfZ.js} +1 -1
  124. package/dist/public/assets/{diagram-FQU43EPY-BshsKQYt.js → diagram-FQU43EPY-D0bW0ffI.js} +1 -1
  125. package/dist/public/assets/{diagram-G47NLZAW-cnkOvDKJ.js → diagram-G47NLZAW-BQVxTacd.js} +1 -1
  126. package/dist/public/assets/{diagram-NH7WQ7WH-BHPtXIrP.js → diagram-NH7WQ7WH-D6WxcOTU.js} +1 -1
  127. package/dist/public/assets/{diagram-OA4YK3LP-DVth453E.js → diagram-OA4YK3LP-Bg6nsoZe.js} +1 -1
  128. package/dist/public/assets/{diagram-WEI45ONY-iw9lZncz.js → diagram-WEI45ONY-CCo_tHe7.js} +1 -1
  129. package/dist/public/assets/{dist-BOw-Rz0A.js → dist-B-JJ8O2m.js} +1 -1
  130. package/dist/public/assets/{dist-BlpnoSsm.js → dist-BEdEgmhd.js} +1 -1
  131. package/dist/public/assets/{dist-CMSQL1CI.js → dist-Bhrp6J6M.js} +1 -1
  132. package/dist/public/assets/{dist-D7Ra2aSx.js → dist-C3eZK5G2.js} +1 -1
  133. package/dist/public/assets/{dist-mu9myxR7.js → dist-C6nQhP9i.js} +1 -1
  134. package/dist/public/assets/{dist-Da-yv6wN.js → dist-CHgDqgn4.js} +1 -1
  135. package/dist/public/assets/{dist-DVsNsQEW.js → dist-CrsrOLb2.js} +1 -1
  136. package/dist/public/assets/{dist-CMHE-EqI.js → dist-CwIXVlDZ.js} +1 -1
  137. package/dist/public/assets/{dist-BYS_8C9i.js → dist-DRSD1c7X.js} +1 -1
  138. package/dist/public/assets/{dist-COv61_fZ2.js → dist-DiEFrTc32.js} +187 -187
  139. package/dist/public/assets/{dist-Bp7ly1AN.js → dist-Drsa8knD.js} +1 -1
  140. package/dist/public/assets/{dist-D2ar7Kk3.js → dist-QSdHNI-A.js} +1 -1
  141. package/dist/public/assets/{dist-B55799jR.js → dist-e-0w3Ov-.js} +1 -1
  142. package/dist/public/assets/{dist-8tz5gmA-.js → dist-qMWcGM_b.js} +1 -1
  143. package/dist/public/assets/{doc-paths-7BigDJzU.js → doc-paths-CwGLicgU.js} +1 -1
  144. package/dist/public/assets/{documents-events-BG9v7ZR8.js → documents-events-CYr01LzK.js} +1 -1
  145. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-C1Dod06W.js → ebnfDiagram-CCIWWBDH-C84EBgmc.js} +1 -1
  146. package/dist/public/assets/{erDiagram-Q63AITRT-BHowYfqq.js → erDiagram-Q63AITRT-Dbc0I5E5.js} +1 -1
  147. package/dist/public/assets/eventmodeling-45OFAUF4-B1iJYvna.js +1 -0
  148. package/dist/public/assets/{file-tree-adapter-BaT9ZAI6.js → file-tree-adapter-Don5Zf-x.js} +1 -1
  149. package/dist/public/assets/{file-tree-utils-BnMWB0rN.js → file-tree-utils-CZVXiJhq.js} +1 -1
  150. package/dist/public/assets/flowDiagram-23GEKE2U-CPyTCg9g.js +1 -0
  151. package/dist/public/assets/{folder-config-api-CspTyRPC.js → folder-config-api-7zUmkKmQ.js} +1 -1
  152. package/dist/public/assets/follow-file-D76Wx-BM.js +4 -0
  153. package/dist/public/assets/{ganttDiagram-NO4QXBWP-DPHKzqwc.js → ganttDiagram-NO4QXBWP-CPHjNFro.js} +1 -1
  154. package/dist/public/assets/gitGraph-TEB2WS4Q-to2czxZU.js +1 -0
  155. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-D6K5ty1E.js → gitGraphDiagram-IHSO6WYX-Bk61PFqV.js} +1 -1
  156. package/dist/public/assets/globals-BIkjmIKR.css +1 -0
  157. package/dist/public/assets/{graphlib-C4PVrCSd.js → graphlib-ioLhFHkL.js} +1 -1
  158. package/dist/public/assets/{highlighted-body-OFNGDK62-Cb1ier4Y.js → highlighted-body-OFNGDK62-Buf4npN7.js} +1 -1
  159. package/dist/public/assets/i18n-YHrFgpK4.js +1 -0
  160. package/dist/public/assets/index-DEMNDHsE.js +2095 -0
  161. package/dist/public/assets/info-DKCQHKI2-CV6Uu24U.js +1 -0
  162. package/dist/public/assets/{infoDiagram-FWYZ7A6U-D0-Kb7vK.js → infoDiagram-FWYZ7A6U-6RyviIGs.js} +1 -1
  163. package/dist/public/assets/{input-group-D6f-9HF9.js → input-group-Y8b1t0ZP.js} +1 -1
  164. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-C7EYwiRW.js → ishikawaDiagram-FXEZZL3T-dwzKIC3b.js} +1 -1
  165. package/dist/public/assets/{journeyDiagram-5HDEW3XC-BUddm1y_.js → journeyDiagram-5HDEW3XC-Z6Dl8Afj.js} +1 -1
  166. package/dist/public/assets/{kanban-definition-HUTT4EX6-dNyDGbrb.js → kanban-definition-HUTT4EX6-DZHkFNjy.js} +1 -1
  167. package/dist/public/assets/{line-dV9ubXAV.js → line-DnnWI5vr.js} +1 -1
  168. package/dist/public/assets/{linear-B3i0ZXFo.js → linear-CWrncuGt.js} +1 -1
  169. package/dist/public/assets/{lint-config-client-D4Gin48u.js → lint-config-client-DtWclvoX.js} +1 -1
  170. package/dist/public/assets/{map-DtIcVWDF.js → map-CLm7aK2Q.js} +1 -1
  171. package/dist/public/assets/markdownlint-rule-browser-Dd6bqpIn.js +1 -0
  172. package/dist/public/assets/mcp-consent-store-IQIfrXaP.js +1 -0
  173. package/dist/public/assets/mermaid-GHXKKRXX-BEF6mTmg.js +1 -0
  174. package/dist/public/assets/{mermaid-parser.core-ByQzJt56.js → mermaid-parser.core-Z2jCuLKy.js} +2 -2
  175. package/dist/public/assets/{mermaid.core-Df5o_1-U.js → mermaid.core-DmdDOlj6.js} +3 -3
  176. package/dist/public/assets/messages-B4yWHxiK.js +1 -0
  177. package/dist/public/assets/messages-Bh7Emo2I.js +1 -0
  178. package/dist/public/assets/messages-Bmahyqks.js +1 -0
  179. package/dist/public/assets/messages-BpTtKPLO.js +1 -0
  180. package/dist/public/assets/messages-Bt_8o6tW.js +1 -0
  181. package/dist/public/assets/messages-COWTxAyI.js +1 -0
  182. package/dist/public/assets/messages-CU_on62_.js +1 -0
  183. package/dist/public/assets/messages-CmGck6QM.js +1 -0
  184. package/dist/public/assets/messages-D3zw7l1d.js +1 -0
  185. package/dist/public/assets/messages-DbU70HNE.js +1 -0
  186. package/dist/public/assets/messages-Dr2pGI6Z.js +1 -0
  187. package/dist/public/assets/messages-H3ZceoeV.js +1 -0
  188. package/dist/public/assets/{mindmap-definition-LN4V7U3C-BAzpd3bR.js → mindmap-definition-LN4V7U3C-BoelhHQi.js} +1 -1
  189. package/dist/public/assets/{navigation-targets-BlmF0SDc.js → navigation-targets-RQkdHKQe.js} +1 -1
  190. package/dist/public/assets/{now-Bs9xiL-y.js → now-DSFQUTIN.js} +1 -1
  191. package/dist/public/assets/{open-managed-artifact-tab-DyQLDLZu.js → open-managed-artifact-tab-BqyzxElX.js} +1 -1
  192. package/dist/public/assets/{ordinal-CBsC_qub.js → ordinal-eqJj3HGL.js} +1 -1
  193. package/dist/public/assets/packet-7NZHBO7P-CzMZM5v1.js +1 -0
  194. package/dist/public/assets/{pegDiagram-2B236MQR-BuH3gdjL.js → pegDiagram-2B236MQR-DfbCkrwd.js} +1 -1
  195. package/dist/public/assets/pending-receive-nav-store-CtFLb4uh.js +1 -0
  196. package/dist/public/assets/pie-RZYD4A2V-DdVXA1Hg.js +1 -0
  197. package/dist/public/assets/{pieDiagram-ENE6RG2P-DRqFdzMD.js → pieDiagram-ENE6RG2P-C6we2jpW.js} +1 -1
  198. package/dist/public/assets/{platform-labels-B2CH4Bk2.js → platform-labels-AM4wnkZh.js} +1 -1
  199. package/dist/public/assets/{project-paths-rKjGTUhn.js → project-paths-CTkpTKTI.js} +1 -1
  200. package/dist/public/assets/{prop-types-x3L5Ba9q.js → prop-types-D5D0tTgt.js} +1 -1
  201. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-BO8aoRB0.js → quadrantDiagram-ABIIQ3AL-PstpwJH4.js} +1 -1
  202. package/dist/public/assets/radar-I7S5WNFK-Bka-SVu9.js +1 -0
  203. package/dist/public/assets/railroad-3IZDKUUU-R_V7nk5U.js +1 -0
  204. package/dist/public/assets/railroad-abnf-AHOZXSZD-BKvTlw6b.js +1 -0
  205. package/dist/public/assets/railroad-ebnf-EBAXGLYW-DSrW-ycC.js +1 -0
  206. package/dist/public/assets/railroad-peg-LSFZ7HO6-Cw-M7SHP.js +1 -0
  207. package/dist/public/assets/{railroadDiagram-RFXS5EU6-CRFsoqn7.js → railroadDiagram-RFXS5EU6-PBGBO1ir.js} +1 -1
  208. package/dist/public/assets/{receive-store-DyKO2VJp.js → receive-store-kX_q_Kud.js} +1 -1
  209. package/dist/public/assets/{requirementDiagram-TGXJPOKE-e1xZyBwO.js → requirementDiagram-TGXJPOKE-Bczqv0JR.js} +1 -1
  210. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-plP53Dva.js → sankeyDiagram-HTMAVEWB-GcY2JTwi.js} +1 -1
  211. package/dist/public/assets/{selection-context-BdxcxNyo.js → selection-context-BQe2g2Dq.js} +1 -1
  212. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-CsotTFeM.js → sequenceDiagram-DBY2YBRQ-CsKH925t.js} +1 -1
  213. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CJquhL5U.js → sizeCapture-X5ZJPWSS-BVXY5Y7I.js} +1 -1
  214. package/dist/public/assets/skill-actions-CSo5VckO.js +1 -0
  215. package/dist/public/assets/{skill-scope-Dvl0F_Nc.js → skill-scope-BxLYZxhM.js} +1 -1
  216. package/dist/public/assets/{skills-api-D3yktqw_.js → skills-api-BaBYAelS.js} +1 -1
  217. package/dist/public/assets/{src-CiwcnlkH.js → src-7uKHkda2.js} +1 -1
  218. package/dist/public/assets/{src-DTnqSW2M.js → src-DxLI2PjH.js} +1 -1
  219. package/dist/public/assets/{stateDiagram-2N3HPSRC-CDE3nIL7.js → stateDiagram-2N3HPSRC-cBRqxCYS.js} +1 -1
  220. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-C6ZbjlHP.js +1 -0
  221. package/dist/public/assets/{swimlanes-5IMT3BWC-DZtQrT6b.js → swimlanes-5IMT3BWC-DVSwAibV.js} +2 -2
  222. package/dist/public/assets/swimlanesDiagram-G3AALYLV-Cey6UV-L.js +8 -0
  223. package/dist/public/assets/{tag-pill-input-B-KJK7ye.js → tag-pill-input-B9FblJS6.js} +1 -1
  224. package/dist/public/assets/{target-navigation-intent-Cq4g4MwT.js → target-navigation-intent-DY3DcF93.js} +1 -1
  225. package/dist/public/assets/{telemetry-impl-aSUUu3k2.js → telemetry-impl-Bx5MMwQJ.js} +2 -2
  226. package/dist/public/assets/{telemetry-startup-D6l5t8d3.js → telemetry-startup-yZMQwIC0.js} +1 -1
  227. package/dist/public/assets/{terminal-cli-display-CpAOcb2j.js → terminal-cli-display-BTd2u9i4.js} +1 -1
  228. package/dist/public/assets/{terminal-launch-events-mKO9oOVx.js → terminal-launch-events-BTVeGO_t.js} +1 -1
  229. package/dist/public/assets/{terminal-telemetry-zuOv8zuu.js → terminal-telemetry-C8_a6Xis.js} +1 -1
  230. package/dist/public/assets/text-viewer-languages-BpAcgbiC.js +2 -0
  231. package/dist/public/assets/thread-client-Cs9kyi3G.js +1 -0
  232. package/dist/public/assets/{timeline-definition-FHXFAJF6-PvMPKElS.js → timeline-definition-FHXFAJF6-CP-Q_sN_.js} +1 -1
  233. package/dist/public/assets/treeView-QDETBFTQ-DcIHjF9Y.js +1 -0
  234. package/dist/public/assets/treemap-6X3UGDF4-D80H3Mb8.js +1 -0
  235. package/dist/public/assets/typing-burst-detector-BwOmF1O-.js +8 -0
  236. package/dist/public/assets/{uninstall-Cq81zlCV.js → uninstall-Ba76frfR.js} +1 -1
  237. package/dist/public/assets/{use-activity-panel-9LDeBM04.js → use-activity-panel-BdFcdebT.js} +1 -1
  238. package/dist/public/assets/{use-apply-config-color-theme-B1zL7AB7.js → use-apply-config-color-theme-CKKnHEzE.js} +1 -1
  239. package/dist/public/assets/{use-collab-url-CBEaRBLp.js → use-collab-url-g8qF70gx.js} +1 -1
  240. package/dist/public/assets/{use-live-xterm-theme-Bg0pl-eA.js → use-live-xterm-theme-H2JNXLZf.js} +1 -1
  241. package/dist/public/assets/use-open-skill-CdQdrkLx.js +1 -0
  242. package/dist/public/assets/use-popular-skills-DudhxgXK.js +1 -0
  243. package/dist/public/assets/{use-settings-route-CQWgqLVD.js → use-settings-route-BgEY_vjS.js} +1 -1
  244. package/dist/public/assets/use-skill-origin-C4lrHitY.js +1 -0
  245. package/dist/public/assets/{use-skills-RGrgR7Ae.js → use-skills-BpFMoQhP.js} +1 -1
  246. package/dist/public/assets/{use-terminal-enabled-CC64PnYB.js → use-terminal-enabled-DjROKFKr.js} +1 -1
  247. package/dist/public/assets/use-timeline-entry-diff-VLtxXWdE.js +6 -0
  248. package/dist/public/assets/{use-workspace-CTox7-Ea.js → use-workspace-C2awGiuw.js} +1 -1
  249. package/dist/public/assets/{vennDiagram-L72KCM5P-3cd2YU2T.js → vennDiagram-L72KCM5P-CfvOo50r.js} +1 -1
  250. package/dist/public/assets/wardley-OPB4EBWU-CpKtgnT2.js +1 -0
  251. package/dist/public/assets/{wardleyDiagram-EHGQE667-DQ8hL0nn.js → wardleyDiagram-EHGQE667-CdB3c8GL.js} +1 -1
  252. package/dist/public/assets/{xychartDiagram-FW5EYKEG-oJ3_oyFH.js → xychartDiagram-FW5EYKEG-chlORI69.js} +1 -1
  253. package/dist/public/index.html +94 -93
  254. package/dist/public/uninstall.html +9 -9
  255. package/dist/{repair-launch-json-CW1yfrNA.mjs → repair-launch-json-DFcqXldf.mjs} +2 -2
  256. package/dist/{repair-mcp-configs-BqKBiNtK.mjs → repair-mcp-configs-R_2Qsvqy.mjs} +2 -2
  257. package/dist/repair-skills-DAk36q69.mjs +1 -0
  258. package/dist/repair-skills-YH8Kl8XI.mjs +4 -0
  259. package/dist/schemas/v0/config.project.schema.json +1 -1
  260. package/dist/{server-lock-BHY1C3dW.mjs → server-lock-Bvskt-yo.mjs} +2 -2
  261. package/dist/server-lock-fN4dJ7Dz.mjs +1 -0
  262. package/dist/{skill-teardown-C5wK_7-E.mjs → skill-teardown-BoAovUbS.mjs} +2 -2
  263. package/dist/{sleep-D_nNc7T_.mjs → sleep-BU8QtSQy.mjs} +2 -2
  264. package/dist/src-2cpU6IQj.mjs +20 -0
  265. package/dist/{src-DMi2O7yV.mjs → src-D5EuNBgu.mjs} +136 -136
  266. package/dist/src-DklUlS8_.mjs +1 -0
  267. package/dist/{src-DoyY0aGc.mjs → src-Dpt2Y6i4.mjs} +339 -339
  268. package/dist/src-wq5nPGLv.mjs +1 -0
  269. package/dist/start-Du0xEjho.mjs +12 -0
  270. package/dist/start-qw3HiJPy.mjs +1 -0
  271. package/dist/{ui-CDGZp9uY.mjs → ui-B6Qjtx3o.mjs} +3 -3
  272. package/dist/{write-project-skill-CqUFi6y1.mjs → write-project-skill-Ckjb0KKP.mjs} +6 -6
  273. package/package.json +4 -4
  274. package/dist/constants-KQqlCqby.mjs +0 -2
  275. package/dist/fs-traced-BEuPZxxL.mjs +0 -1
  276. package/dist/git-handle-DQRBUWfE.mjs +0 -1
  277. package/dist/init-CN9hVk4i.mjs +0 -1
  278. package/dist/loader-96qtkdFs.mjs +0 -1
  279. package/dist/md-manager-IForifhX.mjs +0 -2
  280. package/dist/preview-DOK0jq1H.mjs +0 -1
  281. package/dist/public/assets/ActivityModeContent-DpWNwM6n.js +0 -1
  282. package/dist/public/assets/CodeMirrorPropInput-3xTSMwVk.js +0 -3
  283. package/dist/public/assets/ConsentDialogBody-Bhndf3fO.js +0 -2
  284. package/dist/public/assets/DocumentContext-CHPcruUq.js +0 -38
  285. package/dist/public/assets/EditorModeToggle-CwqwRfuU.js +0 -1
  286. package/dist/public/assets/EnableSyncConfirmDialog-BGsAPro5.js +0 -1
  287. package/dist/public/assets/FeedbackForm-Cc58Nk7P.js +0 -1
  288. package/dist/public/assets/ImportSkillDialog-DqCi6EGK.js +0 -1
  289. package/dist/public/assets/ManagedArtifactProperties-6zQd8tBx.js +0 -1
  290. package/dist/public/assets/ManagedArtifactProperties-v6Fpk3Fo.js +0 -1
  291. package/dist/public/assets/McpConsentDialogBody-CVb-mMB8.js +0 -1
  292. package/dist/public/assets/SchemaConfigEditor-BsE7oA0r.js +0 -1
  293. package/dist/public/assets/SessionsHost-CUgKgDkz.js +0 -2
  294. package/dist/public/assets/SettingsDialogBody-BwytOGSu.js +0 -12
  295. package/dist/public/assets/ShareBranchSwitchDialog-oqH7CVAK.js +0 -1
  296. package/dist/public/assets/ShareReceiveDialog-qvhiGzxM.js +0 -1
  297. package/dist/public/assets/ShareReceiveMissDialog-CA3y3xQf.js +0 -1
  298. package/dist/public/assets/SkillInstallMenu-BgV-kMhM.js +0 -8
  299. package/dist/public/assets/SlidesToolbarControls-Cib12Sqv.js +0 -1
  300. package/dist/public/assets/ThreadView-CI9w5I4i.js +0 -11
  301. package/dist/public/assets/TimelineDiffPane-m1We7iSj.js +0 -2
  302. package/dist/public/assets/architecture-TIHT7OUA-DwJXOzeg.js +0 -1
  303. package/dist/public/assets/auth-state-cache-CxjHGWZm.js +0 -11
  304. package/dist/public/assets/channel-55FEFwyw.js +0 -1
  305. package/dist/public/assets/chunk-2Q5K7J3B-CSqFa28W.js +0 -1
  306. package/dist/public/assets/chunk-VAUOI2AC-CCEFHhFN.js +0 -1
  307. package/dist/public/assets/chunk-XXDRQBXY-CSo_IP1t.js +0 -1
  308. package/dist/public/assets/classDiagram-OUVF2IWQ-Wgjx552v.js +0 -1
  309. package/dist/public/assets/classDiagram-v2-EOCWNBFH-D1rJJwS9.js +0 -1
  310. package/dist/public/assets/client-version-5Ke_ACOR.js +0 -1
  311. package/dist/public/assets/comment-chips-ChCY4B1k.js +0 -5
  312. package/dist/public/assets/config-provider-Cow2MOvb.js +0 -5
  313. package/dist/public/assets/cynefin-VYW2F7L2-DCXxsTQd.js +0 -1
  314. package/dist/public/assets/eventmodeling-45OFAUF4-CrAU37MM.js +0 -1
  315. package/dist/public/assets/flowDiagram-23GEKE2U-DbexxjbR.js +0 -1
  316. package/dist/public/assets/follow-file-CfdGzNSh.js +0 -4
  317. package/dist/public/assets/gitGraph-TEB2WS4Q-C3je2KR3.js +0 -1
  318. package/dist/public/assets/globals-DpnoEwqx.css +0 -1
  319. package/dist/public/assets/i18n-DtNuevxm.js +0 -1
  320. package/dist/public/assets/index-Cp5x9JeS.js +0 -2095
  321. package/dist/public/assets/info-DKCQHKI2-CT9KyzjE.js +0 -1
  322. package/dist/public/assets/markdownlint-rule-browser-qdlEJqGK.js +0 -1
  323. package/dist/public/assets/mcp-consent-store-WuPKfzrq.js +0 -1
  324. package/dist/public/assets/mermaid-GHXKKRXX-DoaYYD9o.js +0 -1
  325. package/dist/public/assets/messages-B-36DfpF.js +0 -1
  326. package/dist/public/assets/messages-BYJHcIk0.js +0 -1
  327. package/dist/public/assets/messages-BaI5ubzY.js +0 -1
  328. package/dist/public/assets/messages-BhNfOuoD.js +0 -1
  329. package/dist/public/assets/messages-CIAvaKgB.js +0 -1
  330. package/dist/public/assets/messages-COdCL7Ya.js +0 -1
  331. package/dist/public/assets/messages-CPWYTaHY.js +0 -1
  332. package/dist/public/assets/messages-Dtcb5u8J.js +0 -1
  333. package/dist/public/assets/messages-Kwe4pdGx.js +0 -1
  334. package/dist/public/assets/messages-PZjg3eYF.js +0 -1
  335. package/dist/public/assets/messages-rCGMF4pK.js +0 -1
  336. package/dist/public/assets/messages-xnmpxMsz.js +0 -1
  337. package/dist/public/assets/packet-7NZHBO7P-CH_5gegW.js +0 -1
  338. package/dist/public/assets/pending-receive-nav-store-BP3YcKOH.js +0 -1
  339. package/dist/public/assets/pie-RZYD4A2V-aYfmJZ12.js +0 -1
  340. package/dist/public/assets/radar-I7S5WNFK-DADBQ4w5.js +0 -1
  341. package/dist/public/assets/railroad-3IZDKUUU-pWB1DEQS.js +0 -1
  342. package/dist/public/assets/railroad-abnf-AHOZXSZD-DyMKsKhG.js +0 -1
  343. package/dist/public/assets/railroad-ebnf-EBAXGLYW-D6s4IM0k.js +0 -1
  344. package/dist/public/assets/railroad-peg-LSFZ7HO6-BTTgV3Yi.js +0 -1
  345. package/dist/public/assets/skill-actions-DFktYEsA.js +0 -1
  346. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-BtxT_bEh.js +0 -1
  347. package/dist/public/assets/swimlanesDiagram-G3AALYLV-DCyyRwMg.js +0 -8
  348. package/dist/public/assets/text-viewer-languages-6Ne07IiK.js +0 -2
  349. package/dist/public/assets/thread-client-B1jXINMp.js +0 -1
  350. package/dist/public/assets/treeView-QDETBFTQ-Dx6w4y7n.js +0 -1
  351. package/dist/public/assets/treemap-6X3UGDF4-BDQteRlb.js +0 -1
  352. package/dist/public/assets/typing-burst-detector-0Kh3NkMo.js +0 -8
  353. package/dist/public/assets/use-open-skill-BJyEtUo4.js +0 -1
  354. package/dist/public/assets/use-popular-skills-DmIQH2eT.js +0 -1
  355. package/dist/public/assets/use-skill-origin-DschKPDB.js +0 -1
  356. package/dist/public/assets/use-timeline-entry-diff-CbaYxlTE.js +0 -6
  357. package/dist/public/assets/wardley-OPB4EBWU-D46U-qP9.js +0 -1
  358. package/dist/repair-skills-BzuY54h2.mjs +0 -1
  359. package/dist/repair-skills-D-WezUYL.mjs +0 -4
  360. package/dist/server-lock-CXt9yQWS.mjs +0 -1
  361. package/dist/src-BtDCSEOa.mjs +0 -1
  362. package/dist/src-Bw_6oq5M.mjs +0 -1
  363. package/dist/src-hSizEeWj.mjs +0 -20
  364. package/dist/start-B_8D33Kj.mjs +0 -12
  365. package/dist/start-D-mZWiuS.mjs +0 -1
  366. /package/dist/public/assets/{ActivityPanelDiffView-GFnvFJPJ.js → ActivityPanelDiffView-Cf2VzcQR.js} +0 -0
  367. /package/dist/public/assets/{SkillModeBanner-d0ZDkWTk.js → SkillModeBanner-DRTkv15U.js} +0 -0
  368. /package/dist/public/assets/{__vite-browser-external-N4Ia604h.js → __vite-browser-external-WCqU1dPv.js} +0 -0
  369. /package/dist/public/assets/{agent-presence-C3GIHDxc.js → agent-presence-DRsOW-0d.js} +0 -0
  370. /package/dist/public/assets/{app-menubar-gate-D9mWjBDd.js → app-menubar-gate-BNRAX_CU.js} +0 -0
  371. /package/dist/public/assets/{array-Cf_JnmE6.js → array-B1kACz19.js} +0 -0
  372. /package/dist/public/assets/{asset-dispatch-D3iE-ozy.js → asset-dispatch-CD6rGcnF.js} +0 -0
  373. /package/dist/public/assets/{auth-prompt-store-C4YJf5De.js → auth-prompt-store-CGGURy6q.js} +0 -0
  374. /package/dist/public/assets/{badge-I_vhU4ix.js → badge-Xc7NUop1.js} +0 -0
  375. /package/dist/public/assets/{chunk-KEIR6QF5-BOpPjw4C.js → chunk-KEIR6QF5-CjjM_7_M.js} +0 -0
  376. /package/dist/public/assets/{chunk-Y2CYZVJY-Bw2nvaMQ.js → chunk-Y2CYZVJY-vfj7raQE.js} +0 -0
  377. /package/dist/public/assets/{clike-BBEjy26W.js → clike-8Ae7e6fh.js} +0 -0
  378. /package/dist/public/assets/{clipboard-adapter-C4L1qX1X.js → clipboard-adapter-DEJxizFj.js} +0 -0
  379. /package/dist/public/assets/{code-highlighter-impl-Ctd_XU2E.js → code-highlighter-impl-Cppc8BYi.js} +0 -0
  380. /package/dist/public/assets/{colors-CElM_Snc.js → colors-KAU8EwIB.js} +0 -0
  381. /package/dist/public/assets/{copilot-CmkvU8CH.js → copilot-CArBqDJb.js} +0 -0
  382. /package/dist/public/assets/{cursor-CIl_AjI1.js → cursor-57XyUT4e.js} +0 -0
  383. /package/dist/public/assets/{cytoscape.esm-h5J7wFxJ.js → cytoscape.esm-D3mlESJy.js} +0 -0
  384. /package/dist/public/assets/{defaultLocale-a-gWoIXg.js → defaultLocale-bIKRNFA8.js} +0 -0
  385. /package/dist/public/assets/{diff-CvpcR3NJ.js → diff-BP9HN3q_.js} +0 -0
  386. /package/dist/public/assets/{dist-DvG1-wV_.js → dist--Oj00PP-.js} +0 -0
  387. /package/dist/public/assets/{dist-w_Y7XM3w.js → dist-BpbU4527.js} +0 -0
  388. /package/dist/public/assets/{dist-CK4VZUF5.js → dist-CGHrBbOn.js} +0 -0
  389. /package/dist/public/assets/{dist-DoS8xGN6.js → dist-DUfEoSbR.js} +0 -0
  390. /package/dist/public/assets/{dist-BLaUOTRG.js → dist-Dc5iZ-d42.js} +0 -0
  391. /package/dist/public/assets/{documents-fetch-BEnELRVW.js → documents-fetch-CyPsdtpz.js} +0 -0
  392. /package/dist/public/assets/{external-link-D2rJDkPo.js → external-link-DGqXfQJy.js} +0 -0
  393. /package/dist/public/assets/{file-tree-rename-validation-ByELf2tl.js → file-tree-rename-validation-DRVu1nhm.js} +0 -0
  394. /package/dist/public/assets/{form-dlFqxdSN.js → form-G66Qcao1.js} +0 -0
  395. /package/dist/public/assets/{format-C7y0e043.js → format-Dx1Bv63R.js} +0 -0
  396. /package/dist/public/assets/{gherkin-D3uEvcwv.js → gherkin-Bly32MZh.js} +0 -0
  397. /package/dist/public/assets/{globals--3DrDOfg.js → globals-CZErGZFp.js} +0 -0
  398. /package/dist/public/assets/{go-fa_HI4OB.js → go-BVG6uZYu.js} +0 -0
  399. /package/dist/public/assets/{init-B1Vy7sk-.js → init-DrF4E4Az.js} +0 -0
  400. /package/dist/public/assets/{isObject-DaQSDnzB.js → isObject-IfMcw_bi.js} +0 -0
  401. /package/dist/public/assets/{libesm-DQtLkQQh.js → libesm-Bf6KoNgP.js} +0 -0
  402. /package/dist/public/assets/{lru-string-cache-Ckr1Pjrr.js → lru-string-cache-BPCBM2V6.js} +0 -0
  403. /package/dist/public/assets/{lua-D7ZxzT_Z.js → lua-C55CIErD.js} +0 -0
  404. /package/dist/public/assets/{min-Dbr9KJ3U.js → min-C1g9jnre.js} +0 -0
  405. /package/dist/public/assets/{panel-DtO2k15O.js → panel-BuHp9NtA.js} +0 -0
  406. /package/dist/public/assets/{panzoom.es-BtVt9FgW.js → panzoom.es-o_3qFD_V.js} +0 -0
  407. /package/dist/public/assets/{path-kpTbN09k.js → path-Cf-g5NK-.js} +0 -0
  408. /package/dist/public/assets/{pdf-BFuk-PLE.js → pdf-B9uPc9By.js} +0 -0
  409. /package/dist/public/assets/{pdf.worker-C9DGCxWN.js → pdf.worker-e1vyTHb8.js} +0 -0
  410. /package/dist/public/assets/{perl-B2T_oOXa.js → perl-DLaN6XEp.js} +0 -0
  411. /package/dist/public/assets/{properties-BlzchQr8.js → properties-CPM4zsxY.js} +0 -0
  412. /package/dist/public/assets/{r-BuKMh1KL.js → r-BQ7lKY67.js} +0 -0
  413. /package/dist/public/assets/{rough.esm-CP-YPkih.js → rough.esm-BFeW2O8v.js} +0 -0
  414. /package/dist/public/assets/{ruby-CUkUilNJ.js → ruby-DW0RHajG.js} +0 -0
  415. /package/dist/public/assets/{schema-fields-view-intent-DGCRVgw4.js → schema-fields-view-intent-NTmrbhil.js} +0 -0
  416. /package/dist/public/assets/{share-metadata-rows-D5y9TY7o.js → share-metadata-rows-1gHTU-sX.js} +0 -0
  417. /package/dist/public/assets/{shell-DhuGq92J.js → shell-BVFwelFF.js} +0 -0
  418. /package/dist/public/assets/{skeleton-ColtBPsg.js → skeleton-BOVIbSHk.js} +0 -0
  419. /package/dist/public/assets/{sortable.esm-DlAqBM0z.js → sortable.esm-mqYoEMD5.js} +0 -0
  420. /package/dist/public/assets/{sql-PCnKIGcH.js → sql-Bf8_OLfG.js} +0 -0
  421. /package/dist/public/assets/{src-DlFhp60C.js → src-BAp28WGw.js} +0 -0
  422. /package/dist/public/assets/{startup-marks-DDrQR_dN.js → startup-marks-CJv6hTyC.js} +0 -0
  423. /package/dist/public/assets/{stex-C-5D68LN.js → stex-CT86a3ly.js} +0 -0
  424. /package/dist/public/assets/{swift-BxR8RYdU.js → swift-CmsPN9ub.js} +0 -0
  425. /package/dist/public/assets/{terminal-command-events-DXmeHtnk.js → terminal-command-events-7vR2pykU.js} +0 -0
  426. /package/dist/public/assets/{textarea-CziWBFvC.js → textarea-CkuOTeF-.js} +0 -0
  427. /package/dist/public/assets/{thread-draft-staging-BG7XGHEN.js → thread-draft-staging-D5ZThmoH.js} +0 -0
  428. /package/dist/public/assets/{timeline-diff-store-BpUHW_Yp.js → timeline-diff-store-cCBpDgND.js} +0 -0
  429. /package/dist/public/assets/{toml-nuQJU7MH.js → toml-BpoDNBUE.js} +0 -0
  430. /package/dist/public/assets/{use-installed-clis-DmyaQmU9.js → use-installed-clis-BiKNpdXV.js} +0 -0
  431. /package/dist/public/assets/{useLintConfigViewMode-DX8l9aBY.js → useLintConfigViewMode-LFsX5JMF.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{R as e}from"./DocumentContext-CHPcruUq.js";import{T as t}from"./CodeMirrorPropInput-3xTSMwVk.js";function n(n){let r=e(n.state.selection.content(),n.state.schema);return t().serialize(r).trim()}function r(e){return e.lineCount===1&&e.charLen<100?{kind:`inline`,markdown:e.markdown}:e.surface===`source`&&e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?{kind:`lines`,startLine:e.sourceLineStart,endLine:e.sourceLineEnd}:{kind:`anchor`,markdown:e.markdown}}function i(e,t){return e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?`${t} (${e.sourceLineStart===e.sourceLineEnd?`${e.sourceLineStart}`:`${e.sourceLineStart}-${e.sourceLineEnd}`})`:e.lineCount>1?`${t} (${e.lineCount} lines)`:`${t} (selection)`}function a(e){let t=e.replace(/\r\n/g,`
1
+ import{R as e}from"./DocumentContext-B2FwySzT.js";import{T as t}from"./CodeMirrorPropInput-AP4wqZL2.js";function n(n){let r=e(n.state.selection.content(),n.state.schema);return t().serialize(r).trim()}function r(e){return e.lineCount===1&&e.charLen<100?{kind:`inline`,markdown:e.markdown}:e.surface===`source`&&e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?{kind:`lines`,startLine:e.sourceLineStart,endLine:e.sourceLineEnd}:{kind:`anchor`,markdown:e.markdown}}function i(e,t){return e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?`${t} (${e.sourceLineStart===e.sourceLineEnd?`${e.sourceLineStart}`:`${e.sourceLineStart}-${e.sourceLineEnd}`})`:e.lineCount>1?`${t} (${e.lineCount} lines)`:`${t} (selection)`}function a(e){let t=e.replace(/\r\n/g,`
2
2
  `).split(`
3
3
  `),n=[],r=!1;for(let e of t){let t=e.trim();if(/^(```|~~~)/.test(t)){r||n.push(`code`),r=!r;continue}if(r||t===``)continue;if(/^\|.*\|?$/.test(t)&&t.includes(`|`)){n[n.length-1]!==`table`&&n.push(`table`);continue}if(/^<\/?[A-Za-z]/.test(t)){n[n.length-1]!==`component`&&n.push(`component`);continue}let i=t.match(/^#{1,6}\s+(.*)$/);if(i){n.push(i[1]??``);continue}let a=t.match(/^[-*+]\s+(.*)$/);if(a){n.push(`• ${a[1]??``}`);continue}let o=t.match(/^\d+\.\s+(.*)$/);if(o){n.push(`• ${o[1]??``}`);continue}let s=t.match(/^>\s?(.*)$/);if(s){n.push(s[1]??``);continue}n.push(t)}return n.join(` `).replace(/\s+/g,` `).trim()}var o=new Map,s=new Set,c=(e,t)=>`${t}:${e}`;function l(){for(let e of s)e()}function u(e,t){return e.markdown===t.markdown&&e.sourceLineStart===t.sourceLineStart&&e.sourceLineEnd===t.sourceLineEnd}function d(e,t,n){let r=c(e,t);if(n===null){o.delete(r)&&l();return}let i=o.get(r);i&&u(i,n)||(o.set(r,n),l())}function f(e,t){return e===null?null:o.get(c(e,t))??null}function p(e){return s.add(e),()=>{s.delete(e)}}function m(e,t){if(e.state.selection.empty)return null;let r=n(e);return r.trim()?{surface:`wysiwyg`,docName:t,markdown:r,charLen:r.trim().length,lineCount:(r.match(/\n/g)?.length??0)+1}:null}function h(e,t){return e.trim()?{surface:`frontmatter`,docName:t,markdown:e,charLen:e.trim().length,lineCount:(e.match(/\n/g)?.length??0)+1}:null}function g(e,t){let n=[],r=1/0,i=-1;for(let t of e.state.selection.ranges)t.empty||(n.push(e.state.sliceDoc(t.from,t.to)),r=Math.min(r,t.from),i=Math.max(i,t.to));if(n.length===0)return null;let a=n.join(`
4
4
  `);if(!a.trim())return null;let o=e.state.doc.lineAt(r).number,s=e.state.doc.lineAt(i).number;return{surface:`source`,docName:t,markdown:a,charLen:a.trim().length,lineCount:s-o+1,sourceLineStart:o,sourceLineEnd:s}}export{h as a,r as c,i,p as l,a as n,g as o,d as r,m as s,f as t};
@@ -1,4 +1,4 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-Bw2nvaMQ.js";import{t}from"./src-DTnqSW2M.js";import{A as n,F as r,G as i,H as a,K as o,O as s,U as c,a as l,b as u,c as d,i as f,r as p,s as m,v as h,w as g,x as _,y as v,z as y}from"./chunk-WYO6CB5R-BtZO7GTo.js";import{C as b}from"./src-DlFhp60C.js";import{t as x}from"./dist-CK4VZUF5.js";import{g as S,p as C}from"./chunk-ICXQ74PX-BuIKeQxW.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-32BRIVSS-BgyL-XUN.js";import{t as A}from"./chunk-2Q5K7J3B-CSqFa28W.js";import{n as j,t as M}from"./chunk-ZIRB5QZD-BUb1k7IW.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ee=[1,74],L=[1,80],R=[1,81],te=[1,82],ne=[1,83],z=[1,84],B=[1,85],V=[1,86],re=[1,87],H=[1,88],U=[1,89],W=[1,90],ie=[1,91],ae=[1,92],oe=[1,93],G=[1,94],se=[1,95],K=[1,96],ce=[1,97],le=[1,98],ue=[1,99],de=[1,100],fe=[1,101],pe=[1,102],me=[1,103],he=[1,104],ge=[1,105],_e=[2,78],ve=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(I,[2,30]),t(I,[2,31]),{33:[1,62]},{35:[1,63]},t(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ee},{23:75,55:76,73:ee},{23:77,73:F},{69:78,72:[1,79],78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),t(I,[2,6]),t(I,[2,16]),t(ve,[2,10],{11:114}),t(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(I,[2,22]),{5:[1,118]},{5:[1,119]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(ye,a,{7:120}),t(ye,a,{7:121}),t(ye,a,{7:122}),t(be,a,{41:123,7:124}),t(xe,a,{43:125,7:126}),t(xe,a,{7:126,43:127}),t(Se,a,{46:128,7:129}),t(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},t(q,[2,79]),t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},t(I,[2,50]),{16:[1,173]},t(I,[2,55]),t(Ce,[2,76]),{76:[1,174]},{16:[1,175]},t(I,[2,52]),{16:[1,176]},t(I,[2,57]),t(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(ve,[2,11]),{13:186,51:D,53:O,54:k},t(ve,[2,13]),t(ve,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,187]},t(I,[2,39]),{16:[1,188]},t(I,[2,40]),t(I,[2,41]),{16:[1,189]},t(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},t(ve,[2,12]),t(be,a,{7:124,41:201}),t(xe,a,{7:126,43:202}),t(Se,a,{7:129,46:203}),t(I,[2,49]),t(I,[2,54]),t(Ce,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e}from"./chunk-Y2CYZVJY-vfj7raQE.js";import{t}from"./src-DxLI2PjH.js";import{A as n,F as r,G as i,H as a,K as o,O as s,U as c,a as l,b as u,c as d,i as f,r as p,s as m,v as h,w as g,x as _,y as v,z as y}from"./chunk-WYO6CB5R-CrS71lvK.js";import{C as b}from"./src-BAp28WGw.js";import{t as x}from"./dist-CGHrBbOn.js";import{g as S,p as C}from"./chunk-ICXQ74PX-C63Xgr0O.js";import{a as w,c as T,i as E,n as D,r as O,s as k}from"./chunk-32BRIVSS-C-dyipE0.js";import{t as A}from"./chunk-2Q5K7J3B-DidKTrYl.js";import{n as j,t as M}from"./chunk-ZIRB5QZD-CANgIEc6.js";var N=x(),P=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,2],r=[1,3],i=[1,4],a=[2,4],o=[1,9],s=[1,11],c=[1,12],l=[1,14],u=[1,15],d=[1,17],f=[1,18],p=[1,19],m=[1,25],h=[1,26],g=[1,27],_=[1,28],v=[1,29],y=[1,30],b=[1,31],x=[1,32],S=[1,33],C=[1,34],w=[1,35],T=[1,36],E=[1,37],D=[1,38],O=[1,39],k=[1,40],A=[1,42],j=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ee=[1,74],L=[1,80],R=[1,81],te=[1,82],ne=[1,83],z=[1,84],B=[1,85],V=[1,86],re=[1,87],H=[1,88],U=[1,89],W=[1,90],ie=[1,91],ae=[1,92],oe=[1,93],G=[1,94],se=[1,95],K=[1,96],ce=[1,97],le=[1,98],ue=[1,99],de=[1,100],fe=[1,101],pe=[1,102],me=[1,103],he=[1,104],ge=[1,105],_e=[2,78],ve=[4,5,17,51,53,54],ye=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],xe=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Se=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ce=[5,52],q=[70,71,72,73],J=[1,151],we={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:`error`,4:`SPACE`,5:`NEWLINE`,6:`SD`,10:`INVALID`,14:`create`,15:`box`,16:`restOfLine`,17:`end`,19:`autonumber`,20:`NUM`,21:`off`,22:`activate`,24:`deactivate`,30:`title`,31:`legacy_title`,32:`acc_title`,33:`acc_title_value`,34:`acc_descr`,35:`acc_descr_value`,36:`acc_descr_multiline_value`,37:`loop`,38:`rect`,39:`opt`,40:`alt`,42:`par`,44:`par_over`,45:`critical`,47:`break`,48:`option`,49:`and`,50:`else`,51:`participant`,52:`AS`,53:`participant_actor`,54:`destroy`,56:`note`,59:`over`,61:`links`,62:`link`,63:`properties`,64:`details`,66:`,`,67:`left_of`,68:`right_of`,70:`+`,71:`-`,72:`()`,73:`ACTOR`,75:`CONFIG_START`,76:`CONFIG_CONTENT`,77:`CONFIG_END`,78:`SOLID_OPEN_ARROW`,79:`DOTTED_OPEN_ARROW`,80:`SOLID_ARROW`,81:`SOLID_ARROW_TOP`,82:`SOLID_ARROW_BOTTOM`,83:`STICK_ARROW_TOP`,84:`STICK_ARROW_BOTTOM`,85:`SOLID_ARROW_TOP_DOTTED`,86:`SOLID_ARROW_BOTTOM_DOTTED`,87:`STICK_ARROW_TOP_DOTTED`,88:`STICK_ARROW_BOTTOM_DOTTED`,89:`SOLID_ARROW_TOP_REVERSE`,90:`SOLID_ARROW_BOTTOM_REVERSE`,91:`STICK_ARROW_TOP_REVERSE`,92:`STICK_ARROW_BOTTOM_REVERSE`,93:`SOLID_ARROW_TOP_REVERSE_DOTTED`,94:`SOLID_ARROW_BOTTOM_REVERSE_DOTTED`,95:`STICK_ARROW_TOP_REVERSE_DOTTED`,96:`STICK_ARROW_BOTTOM_REVERSE_DOTTED`,97:`BIDIRECTIONAL_SOLID_ARROW`,98:`DOTTED_ARROW`,99:`BIDIRECTIONAL_DOTTED_ARROW`,100:`SOLID_CROSS`,101:`DOTTED_CROSS`,102:`SOLID_POINT`,103:`DOTTED_POINT`,104:`TXT`},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:this.$={type:`addParticipant`,actor:a[s]};break;case 79:this.$=r.LINETYPE.SOLID_OPEN;break;case 80:this.$=r.LINETYPE.DOTTED_OPEN;break;case 81:this.$=r.LINETYPE.SOLID;break;case 82:this.$=r.LINETYPE.SOLID_TOP;break;case 83:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=r.LINETYPE.STICK_TOP;break;case 85:this.$=r.LINETYPE.STICK_BOTTOM;break;case 86:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=r.LINETYPE.DOTTED;break;case 100:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=r.LINETYPE.SOLID_CROSS;break;case 102:this.$=r.LINETYPE.DOTTED_CROSS;break;case 103:this.$=r.LINETYPE.SOLID_POINT;break;case 104:this.$=r.LINETYPE.DOTTED_POINT;break;case 105:this.$=r.parseMessage(a[s].trim().substring(1));break}},`anonymous`),table:[{3:1,4:n,5:r,6:i},{1:[3]},{3:5,4:n,5:r,6:i},{3:6,4:n,5:r,6:i},t([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],a,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,5]),{9:48,13:13,14:l,15:u,18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,15]),{13:49,51:D,53:O,54:k},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:F},{23:56,73:F},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},t(I,[2,30]),t(I,[2,31]),{33:[1,62]},{35:[1,63]},t(I,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:ee},{23:75,55:76,73:ee},{23:77,73:F},{69:78,72:[1,79],78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:F},{23:111,73:F},{23:112,73:F},{23:113,73:F},t([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],_e),t(I,[2,6]),t(I,[2,16]),t(ve,[2,10],{11:114}),t(I,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},t(I,[2,22]),{5:[1,118]},{5:[1,119]},t(I,[2,25]),t(I,[2,26]),t(I,[2,27]),t(I,[2,28]),t(I,[2,29]),t(I,[2,32]),t(I,[2,33]),t(ye,a,{7:120}),t(ye,a,{7:121}),t(ye,a,{7:122}),t(be,a,{41:123,7:124}),t(xe,a,{43:125,7:126}),t(xe,a,{7:126,43:127}),t(Se,a,{46:128,7:129}),t(ye,a,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},t(Ce,_e,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:F},{69:146,78:L,79:R,80:te,81:ne,82:z,83:B,84:V,85:re,86:H,87:U,88:W,89:ie,90:ae,91:oe,92:G,93:se,94:K,95:ce,96:le,97:ue,98:de,99:fe,100:pe,101:me,102:he,103:ge},t(q,[2,79]),t(q,[2,80]),t(q,[2,81]),t(q,[2,82]),t(q,[2,83]),t(q,[2,84]),t(q,[2,85]),t(q,[2,86]),t(q,[2,87]),t(q,[2,88]),t(q,[2,89]),t(q,[2,90]),t(q,[2,91]),t(q,[2,92]),t(q,[2,93]),t(q,[2,94]),t(q,[2,95]),t(q,[2,96]),t(q,[2,97]),t(q,[2,98]),t(q,[2,99]),t(q,[2,100]),t(q,[2,101]),t(q,[2,102]),t(q,[2,103]),t(q,[2,104]),{23:147,73:F},{23:149,60:148,73:F},{73:[2,68]},{73:[2,69]},{58:150,104:J},{58:152,104:J},{58:153,104:J},{58:154,104:J},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:D,53:O,54:k},{5:[1,160]},t(I,[2,20]),t(I,[2,21]),t(I,[2,23]),t(I,[2,24]),{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,161],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,162],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,163],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,164]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,47],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,50:[1,165],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,166]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,45],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,49:[1,167],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{17:[1,168]},{17:[1,169]},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[2,43],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,48:[1,170],51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{4:o,5:s,8:8,9:10,10:c,13:13,14:l,15:u,17:[1,171],18:16,19:d,22:f,23:41,24:p,25:20,26:21,27:22,28:23,29:24,30:m,31:h,32:g,34:_,36:v,37:y,38:b,39:x,40:S,42:C,44:w,45:T,47:E,51:D,53:O,54:k,56:A,61:j,62:M,63:N,64:P,73:F},{16:[1,172]},t(I,[2,50]),{16:[1,173]},t(I,[2,55]),t(Ce,[2,76]),{76:[1,174]},{16:[1,175]},t(I,[2,52]),{16:[1,176]},t(I,[2,57]),t(I,[2,53]),{23:177,73:F},{23:178,73:F},{23:179,73:F},{58:180,104:J},{23:181,72:[1,182],73:F},{58:183,104:J},{58:184,104:J},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},t(I,[2,17]),t(ve,[2,11]),{13:186,51:D,53:O,54:k},t(ve,[2,13]),t(ve,[2,14]),t(I,[2,19]),t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),{16:[1,187]},t(I,[2,39]),{16:[1,188]},t(I,[2,40]),t(I,[2,41]),{16:[1,189]},t(I,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:J},{58:196,104:J},{58:197,104:J},{5:[2,75]},{58:198,104:J},{23:199,73:F},{5:[2,58]},{5:[2,59]},{23:200,73:F},t(ve,[2,12]),t(be,a,{7:124,41:201}),t(xe,a,{7:126,43:202}),t(Se,a,{7:129,46:203}),t(I,[2,49]),t(I,[2,54]),t(Ce,[2,77]),t(I,[2,51]),t(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};we.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-Bw2nvaMQ.js";var t=1;function n(){if(!(typeof globalThis>`u`))return globalThis}e(n,`getCaptureGlobal`);function r(){return!!n()?.mermaidCaptureSizes}e(r,`shouldCaptureSizes`);function i(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}e(i,`capturedFromLocation`);function a(e,t){let r=n();if(!r)return;let i=t.node(),a=((i&&`ownerSVGElement`in i?i.ownerSVGElement:null)??i)?.id??`(unknown)`;r.mermaidCapturedSizes??=[];let o={svgId:a,sizes:e};r.mermaidCapturedSizes.push(o),r.mermaidLastCapturedSizes=o}e(a,`emitCapturedSizes`);function o(e,n){let r=[];for(let e of n.nodes)e.isGroup||r.push({id:e.id,width:e.width??0,height:e.height??0});r.length!==0&&a({metadata:{captureVersion:t,capturedAt:new Date().toISOString(),capturedFrom:i()},nodes:r},e)}e(o,`captureNodeSizes`);export{o as captureNodeSizes};
1
+ import{n as e}from"./chunk-Y2CYZVJY-vfj7raQE.js";var t=1;function n(){if(!(typeof globalThis>`u`))return globalThis}e(n,`getCaptureGlobal`);function r(){return!!n()?.mermaidCaptureSizes}e(r,`shouldCaptureSizes`);function i(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}e(i,`capturedFromLocation`);function a(e,t){let r=n();if(!r)return;let i=t.node(),a=((i&&`ownerSVGElement`in i?i.ownerSVGElement:null)??i)?.id??`(unknown)`;r.mermaidCapturedSizes??=[];let o={svgId:a,sizes:e};r.mermaidCapturedSizes.push(o),r.mermaidLastCapturedSizes=o}e(a,`emitCapturedSizes`);function o(e,n){let r=[];for(let e of n.nodes)e.isGroup||r.push({id:e.id,width:e.width??0,height:e.height??0});r.length!==0&&a({metadata:{captureVersion:t,capturedAt:new Date().toISOString(),capturedFrom:i()},nodes:r},e)}e(o,`captureNodeSizes`);export{o as captureNodeSizes};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{On as n,a as r,qn as i,z as a}from"./DocumentContext-B2FwySzT.js";import{t as o}from"./react-f2sANaYj.js";import{n as s,r as c}from"./dist-Nvb76hAm.js";import{t as l}from"./compiler-runtime-BfE3aGVn.js";import{l as u,s as d}from"./local-menu-action-bus-DLBgRRdU.js";import{t as f}from"./utils-CPqDy6Hr.js";import{E as p,O as m,T as h,a as g,c as _,h as v,l as y,m as b,n as x,o as S,r as C,s as w,t as T,u as E}from"./SkillInstallMenu-BO1Y7bBb.js";import{t as D}from"./button-CA0dewJJ.js";import{i as O,n as k,t as A}from"./tooltip-DHXgxWLL.js";import{a as j,c as M,i as N,n as P,o as ee,r as F,s as te,t as ne}from"./dialog-DWuLC0Dh.js";import{C as I,E as L,N as R,T as z,_ as B,c as V,d as H,f as U,g as W,i as G,l as K,m as q,n as J,p as Y,r as X,u as re,v as ie,w as ae}from"./terminal-cli-display-BTd2u9i4.js";import{a as oe,d as se,f as ce,i as le,o as ue,p as de,u as fe}from"./dropdown-menu-CCTsTCfv.js";import{t as pe}from"./label-B5yNUINo.js";import{Ao as me,Gn as he,In as ge,Io as _e,Kn as ve,Ln as ye,Oo as be,Rn as xe,Un as Se,Vn as Ce,Wn as we,Xt as Te,Yi as Ee,Yt as De,_n as Oe,ao as ke,bn as Ae,ct as je,jo as Me,jt as Ne,lt as Pe,un as Fe,yn as Ie,zn as Le}from"./dist-DiEFrTc32.js";import{n as Z}from"./dist-Dc5iZ-d42.js";import{i as Re}from"./use-settings-route-BgEY_vjS.js";import{t as ze}from"./dist-DUfEoSbR.js";import{f as Be,l as Ve,m as He,n as Ue,p as We,r as Ge,u as Ke}from"./documents-events-CYr01LzK.js";import{h as qe}from"./use-apply-config-color-theme-CKKnHEzE.js";import{t as Je}from"./parse-api-error-DfesE4Y7.js";import{n as Ye,t as Xe}from"./workspace-paths-C2pS_Pbn.js";import{t as Ze}from"./use-workspace-C2awGiuw.js";import{t as Qe}from"./createLucideIcon-6iYxif1u.js";import{t as $e}from"./arrow-up-right-D_WN0VGP.js";import{t as et}from"./RegisteredAgentIcon-BAUcXnMS.js";import{n as tt}from"./CopyButton-CzTPnR4N.js";import{n as nt,r as rt}from"./ManagedArtifactProperties-B2CPGMcp.js";import{t as it}from"./folder-open-whxrU74s.js";import{t as at}from"./use-open-skill-CdQdrkLx.js";import{t as ot}from"./list-plus-D42L1B7w.js";import{t as st}from"./trash-2-DfG_kUVi.js";import{a as ct,c as lt,f as ut}from"./skill-scope-BxLYZxhM.js";import{t as dt}from"./input-BOZIAwC9.js";import{J as ft,q as pt,x as mt}from"./navigation-targets-RQkdHKQe.js";import{t as ht}from"./badge-Xc7NUop1.js";import{P as gt,T as _t,a as vt,b as yt,h as bt,n as xt,r as St,t as Ct,u as wt,w as Tt}from"./skills-api-BaBYAelS.js";import{t as Et}from"./use-skills-BpFMoQhP.js";import{n as Dt}from"./clipboard-adapter-DEJxizFj.js";import{t as Ot}from"./DiffView-BK--nLAo.js";import{n as kt}from"./platform-labels-AM4wnkZh.js";var Q=t(),$=e(o(),1),At=l();function jt(e){return{async install(t){let n;try{n=await e.buildAndOpen(t?.force?{force:!0}:void 0)}catch(e){return{ok:!1,reason:`bridge-error`,message:e instanceof Error?e.message:String(e)}}return n.ok?{ok:!0,path:n.path}:{ok:!1,reason:n.reason,message:n.message}}}}function Mt(e={}){let t=e.fetch??globalThis.fetch,n=`${e.apiOrigin??``}/api/install-skill`;return{async install(e){let r;try{r=await t(n,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e?.force?{force:!0}:{})})}catch(e){return{ok:!1,reason:`network-error`,message:e instanceof Error?e.message:String(e)}}if(!r.ok){let e=`HTTP ${r.status}`;try{let t=Je(await r.json());t&&(e=t)}catch{}return{ok:!1,reason:`http-error`,message:e}}let i;try{i=await r.json()}catch(e){return{ok:!1,reason:`parse-error`,message:e instanceof Error?e.message:ze._({id:`1vn0CI`})}}return!i||typeof i.status!=`string`?{ok:!1,reason:`parse-error`,message:ze._({id:`NoY1k4`})}:i.status===`failed`?{ok:!1,reason:`build-failed`,message:i.buildError??ze._({id:`MrUmCD`})}:{ok:!0,path:i.outputPath,handoffWarning:i.handoffError?.message}}}}function Nt(){if(typeof window>`u`)return null;let e=window.okDesktop?.skill;return e?jt(e):Mt()}var Pt=`ok:skill:cowork:installed`,Ft=`1`,It=250,Lt=`/api/skill/install-state`;function Rt(e){return`${Pt}:v${e}`}var zt=new Map;async function Bt(e={},t={}){let n=t.force?`__force__`:`__default__`,r=zt.get(n);if(r)return r;let i=Vt(e,t);return zt.set(n,i),i.finally(()=>{zt.get(n)===i&&zt.delete(n)}),i}async function Vt(e,t){let n=e.installer===void 0?Nt():e.installer,r=Ht(e.storage),i=e.fetchSnapshot??Wt,a=e.serverTimeoutMs??It,o=null;if(!t.force){try{o=await Gt(i(),a)}catch(e){console.warn(`[cowork-skill] server install-state check failed; falling through:`,e)}if(o){let e=o.targets[`claude-cowork`]??null;if(e&&e.version===o.currentVersion)return{kind:`already-installed`,source:`server`}}}let s=Rt(o?.currentVersion??e.fallbackSkillVersion??Ut());if(!t.force&&r?.getItem(s)===Ft)return{kind:`already-installed`,source:`local`};if(!n)return{kind:`host-unsupported`};let c=await n.install({force:t.force??!1});if(!c.ok)return{kind:`install-failed`,reason:c.reason,message:c.message};try{r?.setItem(s,Ft)}catch(e){console.warn(`[cowork-skill] storage.setItem failed (guard will not persist):`,e)}return{kind:`installed-now`,path:c.path,handoffWarning:c.handoffWarning}}function Ht(e){if(e!==void 0)return e;if(typeof window>`u`)return null;try{return window.localStorage}catch{return null}}function Ut(){return typeof window>`u`?`unknown`:window.okDesktop?.appVersion??`unknown`}async function Wt(){let e;try{e=await fetch(Lt,{method:`GET`,cache:`no-store`})}catch{return null}if(!e.ok)return null;try{let t=await e.json();return typeof t?.currentVersion==`string`?t:null}catch{return null}}async function Gt(e,t){return Promise.race([e,new Promise(e=>{setTimeout(()=>e(null),t)})])}function Kt(e){return Bt({},e)}function qt(){return Bt({},{force:!0})}async function Jt(e,t){let n;try{n=await t(`/api/handoff`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})}catch(e){return{ok:!1,reason:`dispatch-error`,detail:e instanceof Error?e.message:String(e)}}return n.status===200?{ok:!0}:n.status===404?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned 404`}:n.status===422?{ok:!1,reason:`not-installed`,detail:`POST /api/handoff returned ${n.status}`}:{ok:!1,reason:`dispatch-error`,detail:`POST /api/handoff returned ${n.status}`}}async function Yt(e,t={}){let n=t.fetch??globalThis.fetch.bind(globalThis);switch(e.target){case`claude-cowork`:return Jt({target:`claude-cowork`,url:Oe({mode:`cowork`},e)},n);case`claude-code`:return Jt({target:`claude-code`,url:Oe({mode:`code`},e)},n);case`codex`:return Jt({target:`codex`,url:Ie(e)},n);case`cursor`:return Jt({target:`cursor`,url:Ae(e),workspacePath:e.projectDir},n);case`copilot`:return{ok:!1,reason:`invalid-payload`,detail:`copilot is terminal-only; launch via requestTerminalLaunch`};case`opencode`:return{ok:!1,reason:`invalid-payload`,detail:`opencode is terminal-only; launch via requestTerminalLaunch`};case`pi`:return{ok:!1,reason:`invalid-payload`,detail:`pi is terminal-only; launch via requestTerminalLaunch`};case`antigravity`:return{ok:!1,reason:`invalid-payload`,detail:`antigravity is terminal-only; launch via requestTerminalLaunch`};case`openclaw`:return{ok:!1,reason:`invalid-payload`,detail:`openclaw is terminal-only; launch via requestTerminalLaunch`};case`hermes`:return{ok:!1,reason:`invalid-payload`,detail:`hermes is terminal-only; launch via requestTerminalLaunch`};default:{let t=e.target;return{ok:!1,reason:`invalid-payload`,detail:`unknown target: ${String(t)}`}}}}async function Xt(e,t={}){let n=t.okDesktop??(typeof window<`u`?window.okDesktop:void 0);if(n?.shell?.recordHandoff)try{await n.shell.recordHandoff(e)}catch(e){(t.warn??(e=>console.warn(e)))(`[handoff] recordHandoff IPC rejected (telemetry skipped): ${e instanceof Error?e.message:String(e)}`)}}var Zt=`open-knowledge:agent-thread-launch`;function Qt(e,t=typeof window>`u`?new EventTarget:window){u({kind:`agent-thread`,...e},t)||t.dispatchEvent(new CustomEvent(Zt,{detail:e}))}function $t(e,t=typeof window>`u`?new EventTarget:window){let n=t=>{let n=t instanceof CustomEvent?t.detail:void 0;n&&typeof n.agentId==`string`&&e(n)};return t.addEventListener(Zt,n),()=>t.removeEventListener(Zt,n)}function en(e){if(!e.docName||!e.workspace)return null;let t=Xe(e.docName),{contentDir:n,pathSeparator:r}=e.workspace;return{docContext:{relativePath:t},projectDir:n,docPath:Ye(n,t,r)}}function tn(e){return e.workspace?.contentDir?{docContext:null,projectDir:e.workspace.contentDir,docPath:``}:null}function nn(e){return e.workspace?.contentDir?{docContext:null,createDescription:e.description,createScenario:e.scenario,createMentions:e.mentions,projectDir:e.workspace.contentDir,docPath:``}:null}function rn(e){return L(e.installUrl).then(()=>void 0)}function an(e){return!e.workspace?.contentDir||!e.folderRelativePath?null:{docContext:null,folderRelativePath:e.folderRelativePath,projectDir:e.workspace.contentDir,docPath:``}}function on(e){return!e.workspace?.contentDir||!e.skillName?null:{docContext:null,skill:{name:e.skillName,scope:e.scope},projectDir:e.workspace.contentDir,docPath:``}}function sn(e){if(!e.workspace?.contentDir)return null;let{contentDir:t,pathSeparator:n}=e.workspace;if(e.docName){let r=e.docRelativePath??Xe(e.docName),i={scope:`doc`,docRelativePath:r,instruction:e.instruction,mentions:e.mentions};return{docContext:null,compose:e.selection===void 0?i:{...i,selection:e.selection},projectDir:t,docPath:Ye(t,r,n)}}return e.folderRelativePath?{docContext:null,compose:{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}:{docContext:null,compose:{scope:`project`,instruction:e.instruction,mentions:e.mentions},projectDir:t,docPath:``}}function cn(e){return`Opened in ${e}.`}function ln(e,t=1){return t>=3?ze._({id:`bi2C2s`,values:{displayName:e}}):t===2?ze._({id:`1J0c0X`,values:{displayName:e}}):ze._({id:`Xs7IcT`,values:{displayName:e}})}function un(e){return e>=3?null:e===2?ze._({id:`Xp94R1`}):ze._({id:`6gRgw8`})}function dn(e,t,n,r,i){let a=i===void 0?{}:{scope:i};return t.ok?{target:e,host:n,outcome:`ok`,ts:r,...a}:{target:e,host:n,outcome:`error`,ts:r,reason:t.reason,...a}}function fn(e,t,n,r){if(e.scope===`doc`){let i={scope:`doc`,docRelativePath:e.docRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r};return e.selection===void 0?i:{...i,selection:e.selection}}return e.scope===`folder`?{scope:`folder`,folderRelativePath:e.folderRelativePath,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}:{scope:`project`,instruction:e.instruction,mentions:e.mentions,target:t,autoOpen:n,transport:r}}function pn(e,t,n,r){return e.compose?Fe(fn(e.compose,t,n,r)):e.selection?Se({...e.selection,target:t,transport:r}):e.skill?we(e.skill.name,e.skill.scope,n):e.ask?ge(e.ask.relativePath,e.ask.instruction,n,t,r):Ee(e.docContext===null?e.folderRelativePath?Ce(e.folderRelativePath,n,e.instruction,r):e.createDescription===void 0?xe(n,e.instruction,r):ye(e.createDescription,n,e.createScenario??`new-project`,e.createMentions??[],r):Le(e.docContext.relativePath,n,e.instruction,r))}function mn(e,t){let n=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||n?`${je} ${pn(e,De[t].handoffTarget,!1,`terminal`)}`:he(e.docContext?.relativePath??null)}function hn(e){let t=typeof e.instruction==`string`&&e.instruction.trim()!==``;return e.compose!==void 0||e.createDescription!==void 0||t?`${Pe} ${pn(e,`claude-code`,!1,`terminal`)}`:ve(e.docContext?.relativePath??null)}function gn(e){let t=e.docContext?.relativePath;return typeof t!=`string`||t===``?null:t.replace(/\.(md|mdx)$/,``)}function _n(e){let t=[e.compose?.instruction,e.selection?.instruction,e.ask?.instruction,e.createDescription,e.instruction];for(let e of t)if(typeof e==`string`&&e.trim()!==``)return e;return null}function vn(e,t){Qt({agentSource:t?.agent?.source??`registry`,agentId:t?.agent?.id??``,prompt:hn(e),docName:gn(e),titleHint:_n(e)})}async function yn(e,t,n,r=1){if(e===`claude-cowork`&&r===1){let e;try{e=await n.ensureCoworkSkillInstalled()}catch(e){let t=e instanceof Error?e.message:String(e);return n.toast.error(ze._({id:`wbpoGe`,values:{message:t}})),{ok:!1,reason:`dispatch-error`,detail:`install-error: ${t}`}}if(e.kind===`installed-now`)return n.toast.success(ze._({id:`PezM4_`})),{ok:!0};if(e.kind===`install-failed`){let t=e.message??e.reason;return n.toast.error(ze._({id:`wbpoGe`,values:{message:t}})),{ok:!1,reason:`dispatch-error`,detail:`install-failed: ${t}`}}}let i={target:e,projectDir:t.projectDir,docPath:t.docPath,prompt:pn(t,e,n.autoOpen,`url`)},a=await n.dispatchHandoff(i),o=n.isElectronHost()?`electron`:`web`,s=n.now().toISOString(),c=t.compose,l=dn(e,a,o,s,t.selection!=null||c?.scope===`doc`&&c.selection!==void 0?`selection`:void 0);await n.recordHandoff(l);let u=n.getDisplayName(e);if(a.ok)n.toast.success(cn(u));else{let i=un(r),a=ln(u,r);i===null?n.toast.error(a):n.toast.error(a,{action:{label:i,onClick:()=>{yn(e,t,n,r+1)}}})}return a}function bn(e){return ae.find(t=>t.id===e)?.displayName??e}function xn(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Sn(){return{dispatchHandoff:Yt,recordHandoff:Xt,toast:{success:e=>{Z.success(e)},error:(e,t)=>{Z.error(e,t?{action:t.action}:void 0)}},now:()=>new Date,isElectronHost:()=>xn(),getDisplayName:bn,ensureCoworkSkillInstalled:Kt,autoOpen:!0}}function Cn(){let e=(0,At.c)(2),{merged:t}=qe(),n=t?.appearance?.preview?.autoOpen??!0,r;return e[0]===n?r=e[1]:(r={dispatch:(e,t)=>yn(e,t,{...Sn(),autoOpen:n}),reinstallCoworkSkill:qt},e[0]=n,e[1]=r),r}var wn=Qe(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),Tn=Qe(`cloud-download`,[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]]),En=Qe(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]);function Dn(e){let t=(0,At.c)(2),{displayName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`CZBqrX`,values:{displayName:n}}),t[0]=n,t[1]=r),r}function On(e){let t=(0,At.c)(2),{displayName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`1vczDE`,values:{displayName:n}}),t[0]=n,t[1]=r),r}function kn(e){let t=(0,At.c)(2),{agentName:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(s,{id:`g4e0hS`,values:{agentName:n}}),t[0]=n,t[1]=r),r}function An(e){let t=(0,At.c)(23),{onAddProperty:n,className:r,problemCount:i,problemMessages:a}=e,o=i===void 0?0:i,{_:l}=c(),u=o>0,d;t[0]!==l||t[1]!==u||t[2]!==o?(d=l(u?{id:`3KOHFt`,values:{problemCount:o}}:{id:`81H_23`}),t[0]=l,t[1]=u,t[2]=o,t[3]=d):d=t[3];let p=d,m;t[4]===r?m=t[5]:(m=f(`relative`,r),t[4]=r,t[5]=m);let h;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Q.jsx)(ot,{}),t[6]=h):h=t[6];let g;t[7]!==u||t[8]!==o?(g=u?(0,Q.jsx)(ht,{variant:`notification`,"aria-hidden":`true`,"data-testid":`add-properties-problem-badge`,className:`pointer-events-none absolute -top-0.5 -right-0.5 size-3.5 rounded-full p-0 font-sans text-[9px] leading-none tabular-nums`,children:o>9?`9+`:o}):null,t[7]=u,t[8]=o,t[9]=g):g=t[9];let _;t[10]===g?_=t[11]:(_=(0,Q.jsxs)(O,{children:[h,g]}),t[10]=g,t[11]=_);let v;t[12]!==p||t[13]!==n||t[14]!==m||t[15]!==_?(v=(0,Q.jsx)(D,{variant:`ghost`,size:`icon`,"aria-label":p,onClick:n,"data-testid":`add-properties-button`,className:m,asChild:!0,children:_}),t[12]=p,t[13]=n,t[14]=m,t[15]=_,t[16]=v):v=t[16];let y;t[17]!==u||t[18]!==a?(y=(0,Q.jsx)(k,{side:`bottom`,children:u?(0,Q.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,Q.jsx)(`span`,{className:`font-medium`,children:(0,Q.jsx)(s,{id:`AwrGuz`})}),a?.map(jn),(0,Q.jsx)(`span`,{className:`pt-0.5 opacity-70`,children:(0,Q.jsx)(s,{id:`yh5-4s`})})]}):(0,Q.jsx)(s,{id:`81H_23`})}),t[17]=u,t[18]=a,t[19]=y):y=t[19];let b;return t[20]!==v||t[21]!==y?(b=(0,Q.jsxs)(A,{children:[v,y]}),t[20]=v,t[21]=y,t[22]=b):b=t[22],b}function jn(e,t){return(0,Q.jsx)(`span`,{className:`opacity-90`,children:e},t)}function Mn(e){return e?ze._({id:`wTcjov`}):null}function Nn(e){let t=(0,At.c)(47),{_:r}=c(),i=a(),o=h(),l=R(),u=I();if(i)return null;let{input:f,installStates:p,dispatch:m}=e,g=f===null,_,v,y,b,x,S,C,w,T,E,D;if(t[0]!==r||t[1]!==m||t[2]!==f||t[3]!==g||t[4]!==p||t[5]!==u||t[6]!==l||t[7]!==o){let e=Mn(g),i;t[19]!==p||t[20]!==u?(i=e=>W(u,e.id,p[e.id]?.installed),t[19]=p,t[20]=u,t[21]=i):i=t[21];let a=z.filter(i),c;t[22]===u?c=t[23]:(c=e=>B(u,e.source,e.id,!0,e.supported),t[22]=u,t[23]=c);let d=l.filter(c),h=o?Te.filter(e=>ie(u,e,o.installedClis)):[];y=a.length>0,b=o!==null&&h.length>0,x=d.length>0,v=U,t[24]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsxs)(q,{children:[(0,Q.jsx)(n,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[24]=D):D=t[24],_=Y,S=`max-h-80`,C=x?(0,Q.jsxs)(V,{"aria-label":r({id:`vPKX2i`}),children:[(0,Q.jsxs)(re,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(G,{})]}),d.map(t=>{let n=t.name;return(0,Q.jsxs)(K,{onSelect:()=>{f!==null&&vn(f,{agent:{source:t.source,id:t.id}})},disabled:g,"data-testid":`empty-space-open-in-thread-${t.id}`,"aria-label":r(e?{id:`7Ag-Xu`,values:{agentName:n,hint:e}}:{id:`g4e0hS`,values:{agentName:n}}),children:[(0,Q.jsx)(et,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[25]!==y||t[26]!==b||t[27]!==x?(w=x&&(b||y)?(0,Q.jsx)(H,{}):null,t[25]=y,t[26]=b,t[27]=x,t[28]=w):w=t[28],T=b?(0,Q.jsxs)(V,{"aria-label":r({id:`ALhMYW`}),children:[(0,Q.jsx)(re,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),h.map(t=>{let{displayName:n}=De[t];return(0,Q.jsxs)(K,{onSelect:()=>{f!==null&&o.launchInTerminal(f,t)},disabled:g,"data-testid":`empty-space-open-in-terminal-${t}`,"aria-label":r(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(X,{id:J(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,E=y?(0,Q.jsxs)(Q.Fragment,{children:[b?(0,Q.jsx)(H,{}):null,(0,Q.jsxs)(V,{"aria-label":r({id:`BwKH4d`}),children:[(0,Q.jsxs)(re,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`BwKH4d`}),(0,Q.jsx)($e,{"aria-hidden":`true`,className:`size-3`})]}),a.map(t=>{let n=!g,{displayName:i}=t,a=r(e?{id:`rl35Vz`,values:{displayName:i,hint:e}}:{id:`wHZ58m`,values:{displayName:i}});return(0,Q.jsxs)(K,{disabled:!n,onSelect:()=>{if(f){if(p[t.id]?.installed!==!0){rn(t);return}m(t.id,f)}},"data-testid":`empty-space-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(X,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(Dn,{displayName:i})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=r,t[1]=m,t[2]=f,t[3]=g,t[4]=p,t[5]=u,t[6]=l,t[7]=o,t[8]=_,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D}else _=t[8],v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18];let O;t[29]!==y||t[30]!==b||t[31]!==x?(O=x||b||y?(0,Q.jsx)(H,{}):null,t[29]=y,t[30]=b,t[31]=x,t[32]=O):O=t[32];let k;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsx)(d,{"aria-hidden":`true`}),t[33]=k):k=t[33];let A;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsxs)(K,{onSelect:Re,"data-testid":`empty-space-open-in-settings`,children:[k,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[34]=A):A=t[34];let j;t[35]!==_||t[36]!==S||t[37]!==C||t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==O?(j=(0,Q.jsxs)(_,{className:S,children:[C,w,T,E,O,A]}),t[35]=_,t[36]=S,t[37]=C,t[38]=w,t[39]=T,t[40]=E,t[41]=O,t[42]=j):j=t[42];let M;return t[43]!==v||t[44]!==D||t[45]!==j?(M=(0,Q.jsxs)(v,{children:[D,j]}),t[43]=v,t[44]=D,t[45]=j,t[46]=M):M=t[46],M}function Pn(e){return e?ze._({id:`wTcjov`}):null}function Fn(e){let t=(0,At.c)(48),{_:r}=c(),i=a(),o=h(),l=R(),u=I();if(i)return null;let{input:f,installStates:p,dispatch:m,onBeforeLaunch:g}=e,_=f===null,v,y,b,x,S,C,w,T,E,D,O;if(t[0]!==r||t[1]!==m||t[2]!==f||t[3]!==_||t[4]!==p||t[5]!==g||t[6]!==u||t[7]!==l||t[8]!==o){let e=Pn(_),i;t[20]!==p||t[21]!==u?(i=e=>W(u,e.id,p[e.id]?.installed),t[20]=p,t[21]=u,t[22]=i):i=t[22];let a=z.filter(i),c;t[23]===u?c=t[24]:(c=e=>B(u,e.source,e.id,!0,e.supported),t[23]=u,t[24]=c);let d=l.filter(c),h=o?Te.filter(e=>ie(u,e,o.installedClis)):[];b=a.length>0,x=o!==null&&h.length>0,S=d.length>0,y=se,t[25]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsxs)(de,{children:[(0,Q.jsx)(n,{"aria-hidden":`true`}),(0,Q.jsx)(s,{id:`O7_W_a`})]}),t[25]=O):O=t[25],v=ce,C=`max-h-80`,w=S?(0,Q.jsxs)(le,{"aria-label":r({id:`vPKX2i`}),children:[(0,Q.jsxs)(ue,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`RXEbZy`}),(0,Q.jsx)(G,{})]}),d.map(t=>{let n=t.name;return(0,Q.jsxs)(oe,{onSelect:()=>{f!==null&&(g?.(),vn(f,{agent:{source:t.source,id:t.id}}))},disabled:_,"data-testid":`file-tree-open-in-thread-${t.id}`,"aria-label":r(e?{id:`7Ag-Xu`,values:{agentName:n,hint:e}}:{id:`g4e0hS`,values:{agentName:n}}),children:[(0,Q.jsx)(et,{agentId:t.id,iconUrl:t.iconUrl,className:`size-4`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},`${t.source}:${t.id}`)})]}):null,t[26]!==b||t[27]!==x||t[28]!==S?(T=S&&(x||b)?(0,Q.jsx)(fe,{}):null,t[26]=b,t[27]=x,t[28]=S,t[29]=T):T=t[29],E=x?(0,Q.jsxs)(le,{"aria-label":r({id:`ALhMYW`}),children:[(0,Q.jsx)(ue,{children:(0,Q.jsx)(s,{id:`ALhMYW`})}),h.map(t=>{let{displayName:n}=De[t];return(0,Q.jsxs)(oe,{onSelect:()=>{f!==null&&(g?.(),o.launchInTerminal(f,t))},disabled:_,"data-testid":`file-tree-open-in-terminal-${t}`,"aria-label":r(e?{id:`AIn2Yv`,values:{displayName:n,hint:e}}:{id:`QYfQdv`,values:{displayName:n}}),children:[(0,Q.jsx)(X,{id:J(t),"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:n}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t)})]}):null,D=b?(0,Q.jsxs)(Q.Fragment,{children:[x?(0,Q.jsx)(fe,{}):null,(0,Q.jsxs)(le,{"aria-label":r({id:`BwKH4d`}),children:[(0,Q.jsxs)(ue,{className:`flex items-center gap-1.5`,children:[(0,Q.jsx)(s,{id:`BwKH4d`}),(0,Q.jsx)($e,{"aria-hidden":`true`,className:`size-3`})]}),a.map(t=>{let n=!_,{displayName:i}=t,a=r(e?{id:`rl35Vz`,values:{displayName:i,hint:e}}:{id:`wHZ58m`,values:{displayName:i}});return(0,Q.jsxs)(oe,{disabled:!n,onSelect:()=>{if(f){if(g?.(),p[t.id]?.installed!==!0){rn(t);return}m(t.id,f)}},"data-testid":`file-tree-open-in-${t.id}`,"aria-label":a,children:[(0,Q.jsx)(X,{id:t.id,"aria-hidden":`true`}),(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(Dn,{displayName:i})}),e?(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`ml-2 text-muted-foreground text-xs`,children:e}):null]},t.id)})]})]}):null,t[0]=r,t[1]=m,t[2]=f,t[3]=_,t[4]=p,t[5]=g,t[6]=u,t[7]=l,t[8]=o,t[9]=v,t[10]=y,t[11]=b,t[12]=x,t[13]=S,t[14]=C,t[15]=w,t[16]=T,t[17]=E,t[18]=D,t[19]=O}else v=t[9],y=t[10],b=t[11],x=t[12],S=t[13],C=t[14],w=t[15],T=t[16],E=t[17],D=t[18],O=t[19];let k;t[30]!==b||t[31]!==x||t[32]!==S?(k=S||x||b?(0,Q.jsx)(fe,{}):null,t[30]=b,t[31]=x,t[32]=S,t[33]=k):k=t[33];let A;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(d,{"aria-hidden":`true`}),t[34]=A):A=t[34];let j;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Q.jsxs)(oe,{onSelect:Re,"data-testid":`file-tree-open-in-settings`,children:[A,(0,Q.jsx)(`span`,{className:`flex-1`,children:(0,Q.jsx)(s,{id:`jRAGrQ`})})]}),t[35]=j):j=t[35];let M;t[36]!==v||t[37]!==C||t[38]!==w||t[39]!==T||t[40]!==E||t[41]!==D||t[42]!==k?(M=(0,Q.jsxs)(v,{className:C,children:[w,T,E,D,k,j]}),t[36]=v,t[37]=C,t[38]=w,t[39]=T,t[40]=E,t[41]=D,t[42]=k,t[43]=M):M=t[43];let N;return t[44]!==y||t[45]!==O||t[46]!==M?(N=(0,Q.jsxs)(y,{children:[O,M]}),t[44]=y,t[45]=O,t[46]=M,t[47]=N):N=t[47],N}var In=/^\.[A-Za-z0-9_-]+\/skills\/([^/]+)\/(.+)$/;function Ln(e){let t=Me(e);if(t)return{scope:`project`,name:t.name,rel:t.rel};let n=be(e);if(n)return{scope:`global`,name:n.name,rel:n.rel};let r=me(e);if(r?.kind===`skill`)return{scope:r.scope,name:r.name,rel:r.rel};let i=In.exec(e);return i?{scope:`project`,name:i[1],rel:i[2]}:null}function Rn(e,t,n){return e.filter(e=>{let r=mt(e);if(r.kind===`skill-file`)return r.scope===t&&r.name===n;if(r.kind!==`doc`)return!1;let i=Ln(r.docName);return i?.scope===t&&i.name===n})}function zn(e,t,n){let r=pt(t,n);return e.filter(e=>{let i=mt(e);return i.kind===`skill-file`?i.scope===t.scope&&i.name===t.name&&i.path===n:i.kind===`doc`&&i.docName===r})}function Bn(e,t,n){let r=Ln(e);if(!r||r.rel===null)return null;let i=t.find(e=>e.scope===r.scope&&e.name===r.name);if(!i||i.managed)return null;let a=`references/${r.rel}${n}`;return pt(i,a)===e?{skill:i,filePath:a}:null}function Vn(e,t,n=(e,t)=>Be(e,t)||We(e,t)){let r=new Map(t.map(e=>[`${e.scope}\u0000${e.name}`,e])),i=[],a=new Set;for(let t of e){let e=Ln(t);e!==null&&e.rel===null&&a.add(`${e.scope}\u0000${e.name}`)}for(let t of e){let e=Ln(t);if(!e||r.has(`${e.scope}\u0000${e.name}`))continue;let o=e.scope===`project`?`global`:`project`,s=r.get(`${o}\u0000${e.name}`);e.rel===null&&s!==void 0?i.push({kind:`retarget`,fromDocName:t,toDocName:ft(s)}):n(e.scope,e.name)||(s!==void 0&&!a.has(`${e.scope}\u0000${e.name}`)?(a.add(`${e.scope}\u0000${e.name}`),i.push({kind:`retarget`,fromDocName:t,toDocName:ft(s)})):i.push({kind:`close`,docName:t}))}return i}function Hn(){let e=(0,At.c)(15),{openTabs:t,closeDocument:n}=r(),i=nt(),a;e[0]===t?a=e[1]:(a=t.some(Wn),e[0]=t,e[1]=a);let o=a,s;e[2]===o?s=e[3]:(s={enabled:o},e[2]=o,e[3]=s);let c=Et(s),l=(0,$.useRef)(null),u;e[4]!==n||e[5]!==t||e[6]!==i||e[7]!==c.data||e[8]!==c.status?(u=()=>{if(c.status!==`ready`)return;let e=c.data,r=`${t.join(``)}\u0002${e.map(Un).sort().join(``)}\u0002${He()}`;if(l.current===r)return;l.current=r;let a=Vn(t,e);for(let e of a)e.kind===`retarget`?i(e.fromDocName,e.toDocName):n(e.docName)},e[4]=n,e[5]=t,e[6]=i,e[7]=c.data,e[8]=c.status,e[9]=u):u=e[9];let d;e[10]!==n||e[11]!==t||e[12]!==i||e[13]!==c?(d=[c,t,i,n],e[10]=n,e[11]=t,e[12]=i,e[13]=c,e[14]=d):d=e[14],(0,$.useEffect)(u,d)}function Un(e){return`${e.scope}\u0000${e.name}`}function Wn(e){return Ln(e)!==null}function Gn(e){let t=(0,At.c)(19),{skill:n,onOpenChange:i,onDeleted:a}=e,{_:o}=c(),{setSkillsSidebar:s,closeTabs:l,openTabs:u}=r(),[d,f]=(0,$.useState)(!1),p;t[0]!==o||t[1]!==l||t[2]!==a||t[3]!==i||t[4]!==u||t[5]!==s?(p=async function(e){s(!0),f(!0);let t=await xt(e.scope,e.name);if(f(!1),!t.ok){let{error:e}=t;Z.error(o({id:`AtBdnD`,values:{error:e}}));return}Z.success(o({id:`h9QFb9`,values:{0:e.name}})),l(Rn(u,e.scope,e.name),{force:!0}),a(),i(!1)},t[0]=o,t[1]=l,t[2]=a,t[3]=i,t[4]=u,t[5]=s,t[6]=p):p=t[6];let m=p,h=n!==null,g;t[7]!==d||t[8]!==i?(g=e=>{!e&&!d&&i(!1)},t[7]=d,t[8]=i,t[9]=g):g=t[9];let _;t[10]!==o||t[11]!==d||t[12]!==m||t[13]!==n?(_=n?(0,Q.jsx)(b,{itemName:o({id:`ExUzM4`,values:{0:n.name}}),isSubmitting:d,onDelete:()=>m(n),customDescription:n.origin?.source&&/\/plugins\/(?:cache|marketplaces)\//.test(n.origin.source)?o({id:`WnsbUT`,values:{0:n.path}}):o({id:`E1Da_b`,values:{0:n.path}})}):null,t[10]=o,t[11]=d,t[12]=m,t[13]=n,t[14]=_):_=t[14];let y;return t[15]!==h||t[16]!==g||t[17]!==_?(y=(0,Q.jsx)(v,{open:h,onOpenChange:g,children:_}),t[15]=h,t[16]=g,t[17]=_,t[18]=y):y=t[18],y}function Kn(e){let t=e.split(`/`);return t.some(e=>e===``||e===`.`||e===`..`)||t.length===0||t.length===1&&t[0].toLowerCase()===`skill.md`?!1:!/\s/.test(e)}function qn(e){let t=(0,At.c)(66),{target:n,onOpenChange:i}=e,{_:a}=c(),{openTarget:o}=r(),l=(0,$.useId)(),[u,d]=(0,$.useState)(``),[f,p]=(0,$.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.prefix??`references/`)},t[0]=n,t[1]=m);let h=n?.skill.scope,g=n?.skill.name,_=n?.prefix,v;if(t[2]!==h||t[3]!==g||t[4]!==_?(v=[h,g,_],t[2]=h,t[3]=g,t[4]=_,t[5]=v):v=t[5],(0,$.useEffect)(m,v),!n)return null;let y,b,x,S;t[6]!==u||t[7]!==f?(S=u.trim(),b=S===``||!Kn(S),y=!b&&!f,x=S.includes(`/`)?S.split(`/`).slice(0,-1).join(`/`):null,t[6]=u,t[7]=f,t[8]=y,t[9]=b,t[10]=x,t[11]=S):(y=t[8],b=t[9],x=t[10],S=t[11]);let C=x,w;t[12]!==a||t[13]!==y||t[14]!==i||t[15]!==o||t[16]!==n||t[17]!==S?(w=async function(){if(!n||!y)return;p(!0);let e=/\.mdx?$/i.test(S),t=await gt({scope:n.skill.scope,name:n.skill.name,path:S,content:e?`# ${S.split(`/`).pop()?.replace(/\.mdx?$/i,``)??``}\n`:``});if(p(!1),!t.ok){Z.error(a({id:`a_2_uB`,values:{0:t.error,trimmed:S}}));return}if(Z.success(a({id:`MXSt4t`,values:{0:t.path}})),e){let e=pt(n.skill,S);o({kind:`doc`,target:e,docName:e})}i(!1)},t[12]=a,t[13]=y,t[14]=i,t[15]=o,t[16]=n,t[17]=S,t[18]=w):w=t[18];let T=w,E;t[19]!==i||t[20]!==f?(E=e=>{!e&&!f&&i(!1)},t[19]=i,t[20]=f,t[21]=E):E=t[21];let O;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`wQvvZY`})}),t[22]=O):O=t[22];let k;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsxs)(te,{children:[O,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`lM4c-I`})})]}),t[23]=k):k=t[23];let A;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(s,{id:`I6gXOa`}),t[24]=A):A=t[24];let P;t[25]===l?P=t[26]:(P=(0,Q.jsx)(pe,{htmlFor:l,children:A}),t[25]=l,t[26]=P);let F;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>d(e.target.value),t[27]=F):F=t[27];let I=b&&S!==``,L;t[28]===T?L=t[29]:(L=e=>{e.key===`Enter`&&T()},t[28]=T,t[29]=L);let R;t[30]!==l||t[31]!==u||t[32]!==I||t[33]!==L?(R=(0,Q.jsx)(dt,{id:l,value:u,onChange:F,placeholder:`references/notes.md`,"aria-invalid":I,onKeyDown:L}),t[30]=l,t[31]=u,t[32]=I,t[33]=L,t[34]=R):R=t[34];let z;t[35]!==C||t[36]!==b||t[37]!==S?(z=b&&S!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):C?(0,Q.jsx)(`p`,{className:`text-muted-foreground text-xs`,children:(0,Q.jsx)(s,{id:`9lso1Y`,values:{folderPart:C},components:{0:(0,Q.jsx)(`span`,{className:`font-mono text-foreground/80`})}})}):null,t[35]=C,t[36]=b,t[37]=S,t[38]=z):z=t[38];let B;t[39]!==P||t[40]!==R||t[41]!==z?(B=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[P,R,z]}),t[39]=P,t[40]=R,t[41]=z,t[42]=B):B=t[42];let V;t[43]===i?V=t[44]:(V=()=>i(!1),t[43]=i,t[44]=V);let H;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,Q.jsx)(s,{id:`dEgA5A`}),t[45]=H):H=t[45];let U;t[46]!==f||t[47]!==V?(U=(0,Q.jsx)(D,{variant:`outline`,onClick:V,disabled:f,children:H}),t[46]=f,t[47]=V,t[48]=U):U=t[48];let W;t[49]===T?W=t[50]:(W=()=>void T(),t[49]=T,t[50]=W);let G=!y,K;t[51]===f?K=t[52]:(K=f?(0,Q.jsx)(s,{id:`E9bKSA`}):(0,Q.jsx)(s,{id:`hYgDIe`}),t[51]=f,t[52]=K);let q;t[53]!==W||t[54]!==G||t[55]!==K?(q=(0,Q.jsx)(D,{onClick:W,disabled:G,children:K}),t[53]=W,t[54]=G,t[55]=K,t[56]=q):q=t[56];let J;t[57]!==U||t[58]!==q?(J=(0,Q.jsxs)(ee,{children:[U,q]}),t[57]=U,t[58]=q,t[59]=J):J=t[59];let Y;t[60]!==B||t[61]!==J?(Y=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[k,B,J]}),t[60]=B,t[61]=J,t[62]=Y):Y=t[62];let X;return t[63]!==Y||t[64]!==E?(X=(0,Q.jsx)(ne,{open:!0,onOpenChange:E,children:Y}),t[63]=Y,t[64]=E,t[65]=X):X=t[65],X}function Jn(e){let t=(0,At.c)(18),{target:n,onOpenChange:i}=e,{_:a}=c(),{setSkillsSidebar:o,closeTabs:s,openTabs:l}=r(),[u,d]=(0,$.useState)(!1),f;t[0]!==a||t[1]!==s||t[2]!==i||t[3]!==l||t[4]!==o?(f=async function(e){let{skill:t,filePath:n}=e;o(!0),d(!0);let r=await St({scope:t.scope,name:t.name,path:n});if(d(!1),!r.ok){Z.error(a({id:`CBT70t`,values:{0:r.error}}));return}if(!r.existed){Z.error(a({id:`q4efaG`,values:{filePath:n}})),i(!1);return}Z.success(a({id:`gOmloS`,values:{filePath:n}})),s(zn(l,t,n),{force:!0}),i(!1)},t[0]=a,t[1]=s,t[2]=i,t[3]=l,t[4]=o,t[5]=f):f=t[5];let p=f,m=n!==null,h;t[6]!==u||t[7]!==i?(h=e=>{!e&&!u&&i(!1)},t[6]=u,t[7]=i,t[8]=h):h=t[8];let g;t[9]!==a||t[10]!==u||t[11]!==p||t[12]!==n?(g=n?(0,Q.jsx)(b,{itemName:a({id:`wZPUJx`,values:{0:n.filePath}}),isSubmitting:u,onDelete:()=>p(n),customDescription:a({id:`ppzof_`,values:{0:ct(n.skill.path),1:n.filePath,2:n.skill.name}})}):null,t[9]=a,t[10]=u,t[11]=p,t[12]=n,t[13]=g):g=t[13];let _;return t[14]!==m||t[15]!==h||t[16]!==g?(_=(0,Q.jsx)(v,{open:m,onOpenChange:h,children:g}),t[14]=m,t[15]=h,t[16]=g,t[17]=_):_=t[17],_}function Yn(e){let t=(0,At.c)(64),{target:n,onOpenChange:r}=e,{_:i}=c(),a=nt(),o=(0,$.useId)(),[l,u]=(0,$.useState)(``),[d,f]=(0,$.useState)(!1),p;t[0]===n?p=t[1]:(p=()=>{n&&u(n.filePath)},t[0]=n,t[1]=p);let m=n?.skill.scope,h=n?.skill.name,g=n?.filePath,_;if(t[2]!==m||t[3]!==h||t[4]!==g?(_=[m,h,g],t[2]=m,t[3]=h,t[4]=g,t[5]=_):_=t[5],(0,$.useEffect)(p,_),!n)return null;let v,y,b;t[6]!==l||t[7]!==n.filePath?(y=l.trim(),b=y===n.filePath,v=y===``||!Kn(y),t[6]=l,t[7]=n.filePath,t[8]=v,t[9]=y,t[10]=b):(v=t[8],y=t[9],b=t[10]);let x=v,S=!x&&!b&&!d,C;t[11]!==i||t[12]!==S||t[13]!==r||t[14]!==a||t[15]!==n||t[16]!==y?(C=async function(){if(!n||!S)return;f(!0);let e=await Tt({scope:n.skill.scope,name:n.skill.name,from:n.filePath,to:y});if(f(!1),!e.ok){Z.error(i({id:`11ukmX`,values:{0:e.error}}));return}e.fromDocName!==void 0&&e.toDocName!==void 0&&a(e.fromDocName,e.toDocName),Z.success(i({id:`XszXjc`,values:{0:e.to}})),r(!1)},t[11]=i,t[12]=S,t[13]=r,t[14]=a,t[15]=n,t[16]=y,t[17]=C):C=t[17];let w=C,T;t[18]!==r||t[19]!==d?(T=e=>{!e&&!d&&r(!1)},t[18]=r,t[19]=d,t[20]=T):T=t[20];let E;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`yckias`})}),t[21]=E):E=t[21];let O;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,Q.jsxs)(te,{children:[E,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`HzVAoz`})})]}),t[22]=O):O=t[22];let k;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,Q.jsx)(s,{id:`I6gXOa`}),t[23]=k):k=t[23];let A;t[24]===o?A=t[25]:(A=(0,Q.jsx)(pe,{htmlFor:o,children:k}),t[24]=o,t[25]=A);let P;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>u(e.target.value),t[26]=P):P=t[26];let F=x&&y!==``,I;t[27]===w?I=t[28]:(I=e=>{e.key===`Enter`&&w()},t[27]=w,t[28]=I);let L;t[29]!==o||t[30]!==l||t[31]!==F||t[32]!==I?(L=(0,Q.jsx)(dt,{id:o,value:l,onChange:P,"aria-invalid":F,onKeyDown:I}),t[29]=o,t[30]=l,t[31]=F,t[32]=I,t[33]=L):L=t[33];let R;t[34]!==x||t[35]!==y?(R=x&&y!==``?(0,Q.jsx)(`p`,{className:`text-destructive text-xs`,children:(0,Q.jsx)(s,{id:`fVzizW`})}):null,t[34]=x,t[35]=y,t[36]=R):R=t[36];let z;t[37]!==A||t[38]!==L||t[39]!==R?(z=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[A,L,R]}),t[37]=A,t[38]=L,t[39]=R,t[40]=z):z=t[40];let B;t[41]===r?B=t[42]:(B=()=>r(!1),t[41]=r,t[42]=B);let V;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Q.jsx)(s,{id:`dEgA5A`}),t[43]=V):V=t[43];let H;t[44]!==d||t[45]!==B?(H=(0,Q.jsx)(D,{variant:`outline`,onClick:B,disabled:d,children:V}),t[44]=d,t[45]=B,t[46]=H):H=t[46];let U;t[47]===w?U=t[48]:(U=()=>void w(),t[47]=w,t[48]=U);let W=!S,G;t[49]===d?G=t[50]:(G=d?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[49]=d,t[50]=G);let K;t[51]!==U||t[52]!==W||t[53]!==G?(K=(0,Q.jsx)(D,{onClick:U,disabled:W,children:G}),t[51]=U,t[52]=W,t[53]=G,t[54]=K):K=t[54];let q;t[55]!==H||t[56]!==K?(q=(0,Q.jsxs)(ee,{children:[H,K]}),t[55]=H,t[56]=K,t[57]=q):q=t[57];let J;t[58]!==z||t[59]!==q?(J=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[O,z,q]}),t[58]=z,t[59]=q,t[60]=J):J=t[60];let Y;return t[61]!==J||t[62]!==T?(Y=(0,Q.jsx)(ne,{open:!0,onOpenChange:T,children:J}),t[61]=J,t[62]=T,t[63]=Y):Y=t[63],Y}function Xn(e){let t=(0,At.c)(59),{target:n,onOpenChange:r}=e,{_:i}=c(),a=(0,$.useId)(),[o,l]=(0,$.useState)(null),[u,d]=(0,$.useState)(null),[f,p]=(0,$.useState)(!1),[m,h]=(0,$.useState)(!1),[g,_]=(0,$.useState)(``),[v,y]=(0,$.useState)(!1),b;t[0]===n?b=t[1]:(b=()=>{if(l(null),d(null),p(!1),h(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){p(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${lt(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,d],[a,l]])wt({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):p(!0))}).catch(()=>{o.signal.aborted||p(!0)});return()=>o.abort()},t[0]=n,t[1]=b);let x=n?.skill.scope,S=n?.skill.name,C=n?.editor,w;if(t[2]!==x||t[3]!==S||t[4]!==C?(w=[x,S,C],t[2]=x,t[3]=S,t[4]=C,t[5]=w):w=t[5],(0,$.useEffect)(b,w),!n)return null;let{skill:T,editor:E}=n,O;t[6]!==i||t[7]!==E||t[8]!==r||t[9]!==T.name||t[10]!==T.scope||t[11]!==n||t[12]!==g?(O=async function(e){if(!n)return;y(!0);let t=await _t({scope:T.scope,name:T.name,editor:E,action:e,...e===`rename`?{toName:g.trim()}:{}});if(y(!1),!t.ok){Z.error(i({id:`MIF36T`,values:{0:t.error}}));return}Z.success(i(e===`align`?{id:`QKgePK`,values:{editor:E}}:e===`make-source`?{id:`It9oAP`,values:{editor:E}}:{id:`b2ezG_`,values:{0:g.trim()}})),r(!1)},t[6]=i,t[7]=E,t[8]=r,t[9]=T.name,t[10]=T.scope,t[11]=n,t[12]=g,t[13]=O):O=t[13];let k=O,A,F;t[14]!==T.name||t[15]!==g?(F=g.trim(),A=F===``||!Ne.test(F)||F===T.name,t[14]=T.name,t[15]=g,t[16]=A,t[17]=F):(A=t[16],F=t[17]);let I=A,L;t[18]!==v||t[19]!==r?(L=e=>{!e&&!v&&r(!1)},t[18]=v,t[19]=r,t[20]=L):L=t[20];let R;t[21]!==E||t[22]!==T.name?(R=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`q8aCbb`,values:{0:T.name,editor:E}})}),t[21]=E,t[22]=T.name,t[23]=R):R=t[23];let z;t[24]===E?z=t[25]:(z=(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`QASTNu`,values:{editor:E}})}),t[24]=E,t[25]=z);let B;t[26]!==z||t[27]!==R?(B=(0,Q.jsxs)(te,{children:[R,z]}),t[26]=z,t[27]=R,t[28]=B):B=t[28];let V;t[29]!==u||t[30]!==o||t[31]!==f?(V=u!==null&&o!==null?(0,Q.jsx)(Ot,{oldContent:u,newContent:o,layout:`unified`}):f?(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`5BlXTD`})}):(0,Q.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,Q.jsx)(s,{id:`1V17kO`})}),t[29]=u,t[30]=o,t[31]=f,t[32]=V):V=t[32];let H;t[33]!==k||t[34]!==E||t[35]!==a||t[36]!==I||t[37]!==m||t[38]!==T.name||t[39]!==g||t[40]!==F?(H=m?(0,Q.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,Q.jsx)(pe,{htmlFor:a,children:(0,Q.jsx)(s,{id:`pSimwP`,values:{editor:E}})}),(0,Q.jsx)(dt,{id:a,value:g,onChange:e=>_(e.target.value),placeholder:`${T.name}-${E}`,"aria-invalid":I&&F!==``,onKeyDown:e=>{e.key===`Enter`&&!I&&k(`rename`)}})]}):null,t[33]=k,t[34]=E,t[35]=a,t[36]=I,t[37]=m,t[38]=T.name,t[39]=g,t[40]=F,t[41]=H):H=t[41];let U;t[42]!==V||t[43]!==H?(U=(0,Q.jsxs)(P,{className:`min-h-0 flex-1 overflow-auto`,children:[V,H]}),t[42]=V,t[43]=H,t[44]=U):U=t[44];let W;t[45]!==k||t[46]!==v||t[47]!==E||t[48]!==I||t[49]!==m||t[50]!==T.name?(W=(0,Q.jsx)(ee,{children:m?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{variant:`outline`,onClick:()=>h(!1),disabled:v,children:(0,Q.jsx)(s,{id:`iH8pgl`})}),(0,Q.jsx)(D,{onClick:()=>void k(`rename`),disabled:v||I,children:(0,Q.jsx)(s,{id:`AT0e50`})})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(D,{variant:`outline`,onClick:()=>{_(`${T.name}-${E}`),h(!0)},disabled:v,children:(0,Q.jsx)(s,{id:`AT0e50`})}),(0,Q.jsx)(D,{variant:`outline`,onClick:()=>void k(`make-source`),disabled:v,children:(0,Q.jsx)(s,{id:`xWomUD`,values:{editor:E}})}),(0,Q.jsx)(D,{onClick:()=>void k(`align`),disabled:v,children:(0,Q.jsx)(s,{id:`PZn2LP`})})]})}),t[45]=k,t[46]=v,t[47]=E,t[48]=I,t[49]=m,t[50]=T.name,t[51]=W):W=t[51];let G;t[52]!==B||t[53]!==U||t[54]!==W?(G=(0,Q.jsxs)(N,{className:`flex max-h-[85vh] w-full max-w-3xl flex-col`,children:[B,U,W]}),t[52]=B,t[53]=U,t[54]=W,t[55]=G):G=t[55];let K;return t[56]!==G||t[57]!==L?(K=(0,Q.jsx)(ne,{open:!0,onOpenChange:L,children:G}),t[56]=G,t[57]=L,t[58]=K):K=t[58],K}function Zn(e){let t=(0,At.c)(75),{skill:n,existingNames:r,onOpenChange:i,onRenamed:a}=e,o=rt(),c=n!==null,l=(0,$.useId)(),[u,d]=(0,$.useState)(``),[f,p]=(0,$.useState)(!1),m;t[0]===n?m=t[1]:(m=()=>{n&&d(n.name)},t[0]=n,t[1]=m);let h=n?.scope,g=n?.name,_;if(t[2]!==h||t[3]!==g?(_=[h,g],t[2]=h,t[3]=g,t[4]=_):_=t[4],(0,$.useEffect)(m,_),!n)return null;let v,y,b,x,S,C;if(t[5]!==r||t[6]!==u||t[7]!==n.name){S=u.trim(),C=S===n.name;let e;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=/\s/,t[14]=e):e=t[14];let i;t[15]===u?i=t[16]:(i=e.test(u),t[15]=u,t[16]=i),v=i,x=S.length>64,y=S===``||!Ne.test(S)||x,b=!y&&!C&&r.has(S),t[5]=r,t[6]=u,t[7]=n.name,t[8]=v,t[9]=y,t[10]=b,t[11]=x,t[12]=S,t[13]=C}else v=t[8],y=t[9],b=t[10],x=t[11],S=t[12],C=t[13];let w=b,T=!y&&!w&&!C&&!f,E;t[17]!==T||t[18]!==i||t[19]!==a||t[20]!==o||t[21]!==n||t[22]!==S?(E=async function(){if(!n||!T)return;p(!0);let e=await o({scope:n.scope,name:n.name},S);p(!1),e.ok&&(a?.(S),i(!1))},t[17]=T,t[18]=i,t[19]=a,t[20]=o,t[21]=n,t[22]=S,t[23]=E):E=t[23];let O=E,k;t[24]===i?k=t[25]:(k=e=>e?null:i(!1),t[24]=i,t[25]=k);let A;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`dw_3cv`})}),t[26]=A):A=t[26];let P;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,Q.jsxs)(te,{children:[A,(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`R9IDFz`})})]}),t[27]=P):P=t[27];let F;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Q.jsx)(s,{id:`6YtxFj`}),t[28]=F):F=t[28];let I;t[29]===l?I=t[30]:(I=(0,Q.jsx)(pe,{htmlFor:l,children:F}),t[29]=l,t[30]=I);let L;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>d(e.target.value),t[31]=L):L=t[31];let R;t[32]===O?R=t[33]:(R=e=>{e.key===`Enter`&&O()},t[32]=O,t[33]=R);let z=y||w,B=y&&S!==``||w?`${l}-error`:void 0,V;t[34]!==l||t[35]!==u||t[36]!==R||t[37]!==z||t[38]!==B?(V=(0,Q.jsx)(dt,{id:l,value:u,onChange:L,onKeyDown:R,spellCheck:!1,autoCapitalize:`off`,autoCorrect:`off`,maxLength:64,"aria-invalid":z,"aria-describedby":B,className:`font-mono`}),t[34]=l,t[35]=u,t[36]=R,t[37]=z,t[38]=B,t[39]=V):V=t[39];let H;t[40]!==w||t[41]!==v||t[42]!==l||t[43]!==y||t[44]!==x||t[45]!==S?(H=y&&S!==``?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:v?(0,Q.jsx)(s,{id:`iUwpZI`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}}):x?(0,Q.jsx)(s,{id:`lK9c4T`}):(0,Q.jsx)(s,{id:`A50vr3`,components:{0:(0,Q.jsx)(`code`,{className:`font-mono`})}})}):w?(0,Q.jsx)(`p`,{id:`${l}-error`,className:`text-xs text-destructive`,children:(0,Q.jsx)(s,{id:`YJ1BTp`})}):null,t[40]=w,t[41]=v,t[42]=l,t[43]=y,t[44]=x,t[45]=S,t[46]=H):H=t[46];let U;t[47]!==I||t[48]!==V||t[49]!==H?(U=(0,Q.jsxs)(`div`,{className:`space-y-1.5`,children:[I,V,H]}),t[47]=I,t[48]=V,t[49]=H,t[50]=U):U=t[50];let W;t[51]===i?W=t[52]:(W=()=>i(!1),t[51]=i,t[52]=W);let G;t[53]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Q.jsx)(s,{id:`dEgA5A`}),t[53]=G):G=t[53];let K;t[54]!==f||t[55]!==W?(K=(0,Q.jsx)(D,{variant:`outline`,className:`font-mono uppercase`,onClick:W,disabled:f,children:G}),t[54]=f,t[55]=W,t[56]=K):K=t[56];let q;t[57]===O?q=t[58]:(q=()=>void O(),t[57]=O,t[58]=q);let J=!T,Y;t[59]===f?Y=t[60]:(Y=f?(0,Q.jsx)(s,{id:`tHKQ6j`}):(0,Q.jsx)(s,{id:`2wxgft`}),t[59]=f,t[60]=Y);let X;t[61]!==q||t[62]!==J||t[63]!==Y?(X=(0,Q.jsx)(D,{onClick:q,disabled:J,children:Y}),t[61]=q,t[62]=J,t[63]=Y,t[64]=X):X=t[64];let re;t[65]!==K||t[66]!==X?(re=(0,Q.jsxs)(ee,{children:[K,X]}),t[65]=K,t[66]=X,t[67]=re):re=t[67];let ie;t[68]!==U||t[69]!==re?(ie=(0,Q.jsxs)(N,{children:[P,U,re]}),t[68]=U,t[69]=re,t[70]=ie):ie=t[70];let ae;return t[71]!==c||t[72]!==ie||t[73]!==k?(ae=(0,Q.jsx)(ne,{open:c,onOpenChange:k,children:ie}),t[71]=c,t[72]=ie,t[73]=k,t[74]=ae):ae=t[74],ae}function Qn(){let e=(0,At.c)(7),{_:t}=c(),n=ut(),i=nt(),{setSkillsSidebar:a,openTabs:o}=r(),s=Et(),l;return e[0]!==t||e[1]!==o||e[2]!==i||e[3]!==n||e[4]!==a||e[5]!==s?(l=async(e,r)=>{if(r===e.scope)return!1;Ge(e.scope,e.name),Ue(e.scope,e.name);let c=await yt({name:e.name,fromScope:e.scope,toScope:r});if(Ve(e.scope,e.name),!c.ok)return Ke(e.scope,e.name),Z.error(t({id:`07eGJB`,values:{0:c.error}})),!1;Z.success(t({id:`yhI6P0`,values:{0:e.name,1:n[r]}}));let l=s.status===`ready`?s.data.find(t=>t.scope===e.scope&&t.name===e.name):void 0,u=o.map(er).filter(t=>{if(t.kind!==`doc`)return!1;let n=Ln(t.docName);return n?.scope===e.scope&&n.name===e.name}),d=u.find($n)??u[0],f=d?.kind===`doc`?d.docName:l?ft(l):e.scope===`global`?_e(e.scope,e.name):null,p=r===`project`&&c.path!==void 0?`${c.path.replace(/\/+$/,``)}/SKILL`:_e(r,e.name);try{f!==null&&i(f,p)}catch(e){console.error(`[skill-move-scope] retarget failed after a successful move`,e)}return a(!0),Ke(e.scope,e.name),!0},e[0]=t,e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=s,e[6]=l):l=e[6],l}function $n(e){return e.kind===`doc`&&Ln(e.docName)?.rel===null}function er(e){return mt(e)}function tr(e){let t=(0,At.c)(38),{target:n,onOpenChange:r}=e,i=ut(),a=Qn(),[o,c]=(0,$.useState)(!1);if(!n)return null;let{scope:l,name:u,toScope:d}=n,f;t[0]!==o||t[1]!==r?(f=e=>!e&&!o&&r(!1),t[0]=o,t[1]=r,t[2]=f):f=t[2];let p=i[d],m;t[3]===p?m=t[4]:(m=(0,Q.jsx)(M,{children:(0,Q.jsx)(s,{id:`SXEdCq`,values:{0:p}})}),t[3]=p,t[4]=m);let h=i[l],g=i[d],_=i[d],v;t[5]!==u||t[6]!==h||t[7]!==g||t[8]!==_?(v={0:h,1:g,2:_,name:u},t[5]=u,t[6]=h,t[7]=g,t[8]=_,t[9]=v):v=t[9];let y;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(y={0:(0,Q.jsx)(`code`,{className:`font-mono`})},t[10]=y):y=t[10];let b;t[11]===v?b=t[12]:(b=(0,Q.jsx)(j,{children:(0,Q.jsx)(s,{id:`7bIiJ7`,values:v,components:y})}),t[11]=v,t[12]=b);let x;t[13]!==m||t[14]!==b?(x=(0,Q.jsxs)(te,{children:[m,b]}),t[13]=m,t[14]=b,t[15]=x):x=t[15];let S;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,Q.jsx)(s,{id:`dEgA5A`}),t[16]=S):S=t[16];let C;t[17]===o?C=t[18]:(C=(0,Q.jsx)(F,{asChild:!0,children:(0,Q.jsx)(D,{variant:`outline`,disabled:o,children:S})}),t[17]=o,t[18]=C);let w;t[19]!==a||t[20]!==u||t[21]!==r||t[22]!==l||t[23]!==d?(w=async()=>{c(!0),await a({scope:l,name:u},d),c(!1),r(!1)},t[19]=a,t[20]=u,t[21]=r,t[22]=l,t[23]=d,t[24]=w):w=t[24];let T;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,Q.jsx)(s,{id:`QWdKwH`}),t[25]=T):T=t[25];let E;t[26]!==o||t[27]!==w?(E=(0,Q.jsx)(D,{"data-testid":`skill-scope-move-confirm`,disabled:o,onClick:w,children:T}),t[26]=o,t[27]=w,t[28]=E):E=t[28];let O;t[29]!==C||t[30]!==E?(O=(0,Q.jsxs)(ee,{children:[C,E]}),t[29]=C,t[30]=E,t[31]=O):O=t[31];let k;t[32]!==x||t[33]!==O?(k=(0,Q.jsxs)(N,{className:`sm:max-w-md`,children:[x,O]}),t[32]=x,t[33]=O,t[34]=k):k=t[34];let A;return t[35]!==f||t[36]!==k?(A=(0,Q.jsx)(ne,{open:!0,onOpenChange:f,children:k}),t[35]=f,t[36]=k,t[37]=A):A=t[37],A}function nr(){let e=(0,At.c)(50),{_:t}=c(),n=at(),[r,i]=(0,$.useState)(null),[a,o]=(0,$.useState)(null),[s,l]=(0,$.useState)(null),[u,d]=(0,$.useState)(null),[f,p]=(0,$.useState)(null),[m,h]=(0,$.useState)(null),[g,_]=(0,$.useState)(null),[v,y]=(0,$.useState)(null),b;e[0]===t?b=e[1]:(b=async function(e,n,r){y(e.name),Ge(e.scope,e.name);let i=await bt({scope:e.scope,name:e.name,...n?{targets:[...n]}:{},...r?.linkMode===void 0?{}:{linkMode:r.linkMode}});if(Ke(e.scope,e.name),y(null),!i.ok)return Z.error(t({id:`Mj8R8K`,values:{0:i.error}})),i;let a=rr,o=new Set(i.hosts),s=i.hosts.filter(t=>!e.hosts.includes(t)),c=e.hosts.filter(e=>!o.has(e)),l=e=>{let t=i.warningCodes.indexOf(e);return t>=0?i.warnings[t]:void 0},u=l(`no-targets`);if(u)return Z.warning(u),i;if(s.length>0){let e=l(`scripts-present`);e&&Z.warning(e);let t=l(`no-description`);t&&Z.warning(t)}return i.hosts.length===0?Z.success(t({id:`4pDZ2N`,values:{0:e.name}})):s.length>0&&c.length===0?Z.success(t({id:`PPFQ3o`,values:{0:e.name,1:a(s)}})):c.length>0&&s.length===0?Z.success(t({id:`OOIVJo`,values:{0:e.name,1:a(c)}})):s.length>0&&c.length>0?Z.success(t({id:`OxplNM`,values:{0:e.name,1:a(s),2:a(c)}})):Z.success(t({id:`wDgmsr`,values:{0:e.name,1:a(i.hosts)}})),i},e[0]=t,e[1]=b);let x=b,S;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=async function(e,t){if(t.length!==0){y(e.name),Ge(e.scope,e.name);for(let{target:n,mode:r}of t){let t=await Ct({scope:e.scope,name:e.name,target:n,mode:r});if(!t.ok){Z.error(t.error);break}}Ke(e.scope,e.name),y(null)}},e[2]=S):S=e[2];let C=S,w;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=async function(e,t){y(e.name),Ge(e.scope,e.name);let n=await t();return Ke(e.scope,e.name),y(null),n},e[3]=w):w=e[3];let T=w,E;e[4]!==t||e[5]!==n?(E=async function(e,r){let i=await vt({scope:e.scope,name:e.name,existingNames:r});if(!i.ok){Z.error(t({id:`UPjaXD`,values:{0:e.name,1:i.error}}));return}Z.success(t({id:`0g7rCZ`,values:{0:i.name}})),n(e.scope,i.name)},e[4]=t,e[5]=n,e[6]=E):E=e[6];let D=E,O,k;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{e||i(null)},k=()=>i(null),e[7]=O,e[8]=k):(O=e[7],k=e[8]);let A;e[9]===r?A=e[10]:(A=(0,Q.jsx)(Gn,{skill:r,onOpenChange:O,onDeleted:k}),e[9]=r,e[10]=A);let j=a?.skill??null,M=a?.existingNames??ar,N,P;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(P=e=>{e||o(null)},N=()=>o(null),e[11]=N,e[12]=P):(N=e[11],P=e[12]);let ee;e[13]!==j||e[14]!==M?(ee=(0,Q.jsx)(Zn,{skill:j,existingNames:M,onOpenChange:P,onRenamed:N}),e[13]=j,e[14]=M,e[15]=ee):ee=e[15];let F;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{e||l(null)},e[16]=F):F=e[16];let te;e[17]===s?te=e[18]:(te=(0,Q.jsx)(tr,{target:s,onOpenChange:F}),e[17]=s,e[18]=te);let ne;e[19]===Symbol.for(`react.memo_cache_sentinel`)?(ne=e=>{e||d(null)},e[19]=ne):ne=e[19];let I;e[20]===u?I=e[21]:(I=(0,Q.jsx)(Yn,{target:u,onOpenChange:ne}),e[20]=u,e[21]=I);let L;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(L=e=>{e||p(null)},e[22]=L):L=e[22];let R;e[23]===f?R=e[24]:(R=(0,Q.jsx)(Jn,{target:f,onOpenChange:L}),e[23]=f,e[24]=R);let z;e[25]===Symbol.for(`react.memo_cache_sentinel`)?(z=e=>{e||h(null)},e[25]=z):z=e[25];let B;e[26]===m?B=e[27]:(B=(0,Q.jsx)(qn,{target:m,onOpenChange:z}),e[26]=m,e[27]=B);let V;e[28]===Symbol.for(`react.memo_cache_sentinel`)?(V=e=>{e||_(null)},e[28]=V):V=e[28];let H;e[29]===g?H=e[30]:(H=(0,Q.jsx)(Xn,{target:g,onOpenChange:V}),e[29]=g,e[30]=H);let U;e[31]!==ee||e[32]!==te||e[33]!==I||e[34]!==R||e[35]!==B||e[36]!==H||e[37]!==A?(U=(0,Q.jsxs)(Q.Fragment,{children:[A,ee,te,I,R,B,H]}),e[31]=ee,e[32]=te,e[33]=I,e[34]=R,e[35]=B,e[36]=H,e[37]=A,e[38]=U):U=e[38];let W=U,G,K,q,J,Y,X;e[39]===Symbol.for(`react.memo_cache_sentinel`)?(G=(e,t)=>o({skill:e,existingNames:t}),K=(e,t)=>l({scope:e.scope,name:e.name,toScope:t}),q=(e,t)=>d({skill:e,filePath:t}),J=(e,t)=>p({skill:e,filePath:t}),Y=(e,t)=>h(t===void 0?{skill:e}:{skill:e,prefix:t}),X=(e,t)=>_({skill:e,editor:t}),e[39]=G,e[40]=K,e[41]=q,e[42]=J,e[43]=Y,e[44]=X):(G=e[39],K=e[40],q=e[41],J=e[42],Y=e[43],X=e[44]);let re;return e[45]!==W||e[46]!==D||e[47]!==x||e[48]!==v?(re={installingName:v,install:x,convertLocations:C,runLocationWrite:T,duplicate:D,requestDelete:i,requestRename:G,requestScopeMove:K,requestFileRename:q,requestFileDelete:J,requestFileCreate:Y,requestForkResolve:X,dialogs:W},e[45]=W,e[46]=D,e[47]=x,e[48]=v,e[49]=re):re=e[49],re}function rr(e){return e.map(ir).join(`, `)}function ir(e){return ke[e]??e}var ar=new Set;function or(e){let t=(0,At.c)(7),{absolutePath:n,menuKind:r}=e,i=r===void 0?`dropdown`:r,a=typeof window<`u`?window.okDesktop:void 0;if(!a||!n)return null;let o;t[0]===n?o=t[1]:(o=()=>void a.shell.showItemInFolder(n),t[0]=n,t[1]=o);let s,c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Q.jsx)(it,{"aria-hidden":!0}),c=kt(a.platform),t[2]=s,t[3]=c):(s=t[2],c=t[3]);let l;return t[4]!==i||t[5]!==o?(l=(0,Q.jsxs)(S,{menuKind:i,onSelect:o,children:[s,c]}),t[4]=i,t[5]=o,t[6]=l):l=t[6],l}function sr(e){let t=(0,At.c)(68),{skill:n,filePath:r,actions:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,{_:l}=c(),u;t[0]!==r||t[1]!==n.absolutePath?(u=n.absolutePath?`${ct(n.absolutePath)}/${r}`:void 0,t[0]=r,t[1]=n.absolutePath,t[2]=u):u=t[2];let d=u,f;t[3]===n.path?f=t[4]:(f=ct(n.path),t[3]=n.path,t[4]=f);let p=`${f}/${r}`,m;t[5]===l?m=t[6]:(m=async function(e){try{await Dt(e),Z.success(l({id:`SXCSQd`}))}catch{Z.error(l({id:`cRHuuI`}))}},t[5]=l,t[6]=m);let h=m,v;t[7]!==i||t[8]!==r||t[9]!==n?(v=()=>i.requestFileRename(n,r),t[7]=i,t[8]=r,t[9]=n,t[10]=v):v=t[10];let b,x;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(En,{"aria-hidden":!0}),x=(0,Q.jsx)(s,{id:`2wxgft`}),t[11]=b,t[12]=x):(b=t[11],x=t[12]);let C;t[13]!==o||t[14]!==v?(C=(0,Q.jsxs)(S,{menuKind:o,onSelect:v,children:[b,x]}),t[13]=o,t[14]=v,t[15]=C):C=t[15];let T;t[16]!==d||t[17]!==o?(T=(0,Q.jsx)(or,{absolutePath:d,menuKind:o}),t[16]=d,t[17]=o,t[18]=T):T=t[18];let D,O;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(tt,{"aria-hidden":!0}),O=(0,Q.jsx)(s,{id:`zd00pH`}),t[19]=D,t[20]=O):(D=t[19],O=t[20]);let k;t[21]===o?k=t[22]:(k=(0,Q.jsxs)(E,{menuKind:o,children:[D,O]}),t[21]=o,t[22]=k);let A;t[23]!==d||t[24]!==h||t[25]!==o?(A=d?(0,Q.jsx)(S,{menuKind:o,onSelect:()=>void h(d),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[23]=d,t[24]=h,t[25]=o,t[26]=A):A=t[26];let j;t[27]!==h||t[28]!==p?(j=()=>void h(p),t[27]=h,t[28]=p,t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(s,{id:`xloBjn`}),t[30]=M):M=t[30];let N;t[31]!==o||t[32]!==j?(N=(0,Q.jsx)(S,{menuKind:o,onSelect:j,children:M}),t[31]=o,t[32]=j,t[33]=N):N=t[33];let P;t[34]!==o||t[35]!==A||t[36]!==N?(P=(0,Q.jsxs)(g,{menuKind:o,children:[A,N]}),t[34]=o,t[35]=A,t[36]=N,t[37]=P):P=t[37];let ee;t[38]!==o||t[39]!==P?(ee=(0,Q.jsx)(y,{menuKind:o,children:P}),t[38]=o,t[39]=P,t[40]=ee):ee=t[40];let F;t[41]!==o||t[42]!==k||t[43]!==ee?(F=(0,Q.jsxs)(_,{menuKind:o,children:[k,ee]}),t[41]=o,t[42]=k,t[43]=ee,t[44]=F):F=t[44];let te;t[45]!==o||t[46]!==F||t[47]!==C||t[48]!==T?(te=(0,Q.jsxs)(g,{menuKind:o,children:[C,T,F]}),t[45]=o,t[46]=F,t[47]=C,t[48]=T,t[49]=te):te=t[49];let ne;t[50]===o?ne=t[51]:(ne=(0,Q.jsx)(w,{menuKind:o}),t[50]=o,t[51]=ne);let I;t[52]!==i||t[53]!==r||t[54]!==n?(I=()=>i.requestFileDelete(n,r),t[52]=i,t[53]=r,t[54]=n,t[55]=I):I=t[55];let L,R;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsx)(st,{"aria-hidden":!0}),R=(0,Q.jsx)(s,{id:`cnGeoo`}),t[56]=L,t[57]=R):(L=t[56],R=t[57]);let z;t[58]!==o||t[59]!==I?(z=(0,Q.jsxs)(S,{menuKind:o,variant:`destructive`,onSelect:I,children:[L,R]}),t[58]=o,t[59]=I,t[60]=z):z=t[60];let B;t[61]!==o||t[62]!==z?(B=(0,Q.jsx)(g,{menuKind:o,children:z}),t[61]=o,t[62]=z,t[63]=B):B=t[63];let V;return t[64]!==te||t[65]!==ne||t[66]!==B?(V=(0,Q.jsxs)(Q.Fragment,{children:[te,ne,B]}),t[64]=te,t[65]=ne,t[66]=B,t[67]=V):V=t[67],V}function cr(e){let t=(0,At.c)(15),{skill:n,actions:r,existingNames:i,menuKind:a}=e,o=a===void 0?`dropdown`:a,s=Ze(),c=p().states,{dispatch:l}=Cn(),u=typeof window<`u`?window.okDesktop:void 0,d;t[0]!==n.name||t[1]!==n.scope||t[2]!==s?(d=on({skillName:n.name,scope:n.scope,workspace:s}),t[0]=n.name,t[1]=n.scope,t[2]=s,t[3]=d):d=t[3];let f=d,m;t[4]!==l||t[5]!==f||t[6]!==c||t[7]!==o?(m=o===`context`?(0,Q.jsx)(Nn,{input:f,installStates:c,dispatch:l}):(0,Q.jsx)(Fn,{input:f,installStates:c,isElectronHost:u!=null,dispatch:l}),t[4]=l,t[5]=f,t[6]=c,t[7]=o,t[8]=m):m=t[8];let h;return t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==n||t[13]!==m?(h=(0,Q.jsx)(lr,{actions:r,existingNames:i,menuKind:o,skill:n,openWithAi:m}),t[9]=r,t[10]=i,t[11]=o,t[12]=n,t[13]=m,t[14]=h):h=t[14],h}function lr(e){let t=(0,At.c)(124),{actions:n,existingNames:r,menuKind:a,openWithAi:o,skill:l}=e,{_:u}=c(),d=ut(),f=C(l,n),p=l.absolutePath,h;t[0]===u?h=t[1]:(h=async function(e){try{await Dt(e),Z.success(u({id:`SXCSQd`}))}catch{Z.error(u({id:`cRHuuI`}))}},t[0]=u,t[1]=h);let v=h,b;t[2]!==p||t[3]!==a?(b=(0,Q.jsx)(or,{absolutePath:p,menuKind:a}),t[2]=p,t[3]=a,t[4]=b):b=t[4];let D,O;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,Q.jsx)(tt,{"aria-hidden":!0}),O=(0,Q.jsx)(s,{id:`zd00pH`}),t[5]=D,t[6]=O):(D=t[5],O=t[6]);let k;t[7]===a?k=t[8]:(k=(0,Q.jsxs)(E,{menuKind:a,children:[D,O]}),t[7]=a,t[8]=k);let A;t[9]!==p||t[10]!==v||t[11]!==a?(A=p?(0,Q.jsx)(S,{menuKind:a,onSelect:()=>void v(p),children:(0,Q.jsx)(s,{id:`z2funE`})}):null,t[9]=p,t[10]=v,t[11]=a,t[12]=A):A=t[12];let j;t[13]!==v||t[14]!==l.path?(j=()=>void v(l.path),t[13]=v,t[14]=l.path,t[15]=j):j=t[15];let M;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,Q.jsx)(s,{id:`xloBjn`}),t[16]=M):M=t[16];let N;t[17]!==a||t[18]!==j?(N=(0,Q.jsx)(S,{menuKind:a,onSelect:j,children:M}),t[17]=a,t[18]=j,t[19]=N):N=t[19];let P;t[20]!==a||t[21]!==A||t[22]!==N?(P=(0,Q.jsxs)(g,{menuKind:a,children:[A,N]}),t[20]=a,t[21]=A,t[22]=N,t[23]=P):P=t[23];let ee;t[24]!==a||t[25]!==P?(ee=(0,Q.jsx)(y,{menuKind:a,children:P}),t[24]=a,t[25]=P,t[26]=ee):ee=t[26];let F;t[27]!==a||t[28]!==ee||t[29]!==k?(F=(0,Q.jsxs)(_,{menuKind:a,children:[k,ee]}),t[27]=a,t[28]=ee,t[29]=k,t[30]=F):F=t[30];let te;t[31]!==a||t[32]!==o||t[33]!==F||t[34]!==b?(te=(0,Q.jsxs)(g,{menuKind:a,children:[b,o,F]}),t[31]=a,t[32]=o,t[33]=F,t[34]=b,t[35]=te):te=t[35];let ne;t[36]===a?ne=t[37]:(ne=(0,Q.jsx)(w,{menuKind:a}),t[36]=a,t[37]=ne);let I;t[38]!==n||t[39]!==r||t[40]!==l?(I=()=>void n.duplicate(l,r),t[38]=n,t[39]=r,t[40]=l,t[41]=I):I=t[41];let L,R;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,Q.jsx)(i,{"aria-hidden":!0}),R=(0,Q.jsx)(s,{id:`euc6Ns`}),t[42]=L,t[43]=R):(L=t[42],R=t[43]);let z;t[44]!==a||t[45]!==I?(z=(0,Q.jsxs)(S,{menuKind:a,onSelect:I,children:[L,R]}),t[44]=a,t[45]=I,t[46]=z):z=t[46];let B;t[47]!==n||t[48]!==r||t[49]!==l?(B=()=>n.requestRename(l,r),t[47]=n,t[48]=r,t[49]=l,t[50]=B):B=t[50];let V,H;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,Q.jsx)(En,{"aria-hidden":!0}),H=(0,Q.jsx)(s,{id:`2wxgft`}),t[51]=V,t[52]=H):(V=t[51],H=t[52]);let U;t[53]!==a||t[54]!==B?(U=(0,Q.jsxs)(S,{menuKind:a,onSelect:B,children:[V,H]}),t[53]=a,t[54]=B,t[55]=U):U=t[55];let W;t[56]!==n||t[57]!==l?(W=()=>n.requestFileCreate(l),t[56]=n,t[57]=l,t[58]=W):W=t[58];let G,K;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Q.jsx)(m,{"aria-hidden":!0}),K=(0,Q.jsx)(s,{id:`HdkSiO`}),t[59]=G,t[60]=K):(G=t[59],K=t[60]);let q;t[61]!==a||t[62]!==W?(q=(0,Q.jsxs)(S,{menuKind:a,onSelect:W,children:[G,K]}),t[61]=a,t[62]=W,t[63]=q):q=t[63];let J,Y;t[64]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,Q.jsx)(Tn,{"aria-hidden":!0}),Y=(0,Q.jsx)(s,{id:`TKQ7K-`}),t[64]=J,t[65]=Y):(J=t[64],Y=t[65]);let X;t[66]===a?X=t[67]:(X=(0,Q.jsxs)(E,{menuKind:a,children:[J,Y]}),t[66]=a,t[67]=X);let re;t[68]!==n||t[69]!==l?(re=e=>n.requestForkResolve(l,e),t[68]=n,t[69]=l,t[70]=re):re=t[70];let ie;t[71]!==f||t[72]!==a||t[73]!==l||t[74]!==re?(ie=(0,Q.jsx)(x,{toggles:f,skill:l,menuKind:a,onResolveFork:re}),t[71]=f,t[72]=a,t[73]=l,t[74]=re,t[75]=ie):ie=t[75];let ae;t[76]!==a||t[77]!==ie?(ae=(0,Q.jsx)(g,{menuKind:a,children:ie}),t[76]=a,t[77]=ie,t[78]=ae):ae=t[78];let oe;t[79]!==a||t[80]!==ae?(oe=(0,Q.jsx)(y,{menuKind:a,className:T,children:ae}),t[79]=a,t[80]=ae,t[81]=oe):oe=t[81];let se;t[82]!==a||t[83]!==X||t[84]!==oe?(se=(0,Q.jsxs)(_,{menuKind:a,children:[X,oe]}),t[82]=a,t[83]=X,t[84]=oe,t[85]=se):se=t[85];let ce;t[86]!==n||t[87]!==l?(ce=()=>n.requestScopeMove(l,l.scope===`project`?`global`:`project`),t[86]=n,t[87]=l,t[88]=ce):ce=t[88];let le;t[89]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Q.jsx)(wn,{"aria-hidden":!0}),t[89]=le):le=t[89];let ue;t[90]!==d.global||t[91]!==d.project||t[92]!==l.scope?(ue=l.scope===`project`?(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.global}}):(0,Q.jsx)(s,{id:`bpytj4`,values:{0:d.project}}),t[90]=d.global,t[91]=d.project,t[92]=l.scope,t[93]=ue):ue=t[93];let de;t[94]!==a||t[95]!==ce||t[96]!==ue?(de=(0,Q.jsxs)(S,{menuKind:a,onSelect:ce,children:[le,ue]}),t[94]=a,t[95]=ce,t[96]=ue,t[97]=de):de=t[97];let fe;t[98]!==a||t[99]!==z||t[100]!==U||t[101]!==q||t[102]!==se||t[103]!==de?(fe=(0,Q.jsxs)(g,{menuKind:a,children:[z,U,q,se,de]}),t[98]=a,t[99]=z,t[100]=U,t[101]=q,t[102]=se,t[103]=de,t[104]=fe):fe=t[104];let pe;t[105]===a?pe=t[106]:(pe=(0,Q.jsx)(w,{menuKind:a}),t[105]=a,t[106]=pe);let me;t[107]!==n||t[108]!==l?(me=()=>n.requestDelete(l),t[107]=n,t[108]=l,t[109]=me):me=t[109];let he,ge;t[110]===Symbol.for(`react.memo_cache_sentinel`)?(he=(0,Q.jsx)(st,{"aria-hidden":!0}),ge=(0,Q.jsx)(s,{id:`cnGeoo`}),t[110]=he,t[111]=ge):(he=t[110],ge=t[111]);let _e;t[112]!==a||t[113]!==me?(_e=(0,Q.jsxs)(S,{menuKind:a,variant:`destructive`,onSelect:me,children:[he,ge]}),t[112]=a,t[113]=me,t[114]=_e):_e=t[114];let ve;t[115]!==a||t[116]!==_e?(ve=(0,Q.jsx)(g,{menuKind:a,children:_e}),t[115]=a,t[116]=_e,t[117]=ve):ve=t[117];let ye;return t[118]!==te||t[119]!==ne||t[120]!==fe||t[121]!==pe||t[122]!==ve?(ye=(0,Q.jsxs)(Q.Fragment,{children:[te,ne,fe,pe,ve]}),t[118]=te,t[119]=ne,t[120]=fe,t[121]=pe,t[122]=ve,t[123]=ye):ye=t[123],ye}export{vn as C,$t as E,rn as S,Qt as T,an as _,tr as a,mn as b,Fn as c,kn as d,Dn as f,nn as g,sn as h,nr as i,Nn as l,wn as m,sr as n,Bn as o,On as p,or as r,Hn as s,cr as t,An as u,en as v,Cn as w,bn as x,tn as y};
@@ -1 +1 @@
1
- import{r as e}from"./dist-Nvb76hAm.js";import{Qa as t,Wt as n,ao as r,do as i,so as a}from"./dist-COv61_fZ2.js";function o(e){return e.path.split(`/`).slice(0,-1).join(`/`)}var s=[`project`,`global`];function c(e){return{project:new Set(e.filter(e=>e.scope===`project`).map(e=>e.name)),global:new Set(e.filter(e=>e.scope===`global`).map(e=>e.name))}}function l(e){return e.startsWith(`open-knowledge-pack-`)?e.slice(i.length):e}function u(e){let t=e.path.replace(/\/SKILL\.mdx?$/i,``);return e.scope===`global`?`~/${t}`:t}function d(e){return e.replace(/^\/(?:Users|home)\/[^/]+/,`~`).replace(/^\/root/,`~`)}function f(e){let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):e}function p(){let{_:t}=e();return{project:t({id:`e0NrBM`}),global:t({id:`2GT3Hf`})}}function m(){let{_:t}=e();return{project:t({id:`Es3G-g`}),global:t({id:`fvrHin`})}}function h(e,n){if(e.includes(`/`))return n===`global`?`~/${e}`:e;let i=e===`agents`?t:(n===`global`?a:r)[e]??`.${e}/skills`;return n===`global`?`~/${i}`:i}function g(e,t){return!e||t===``?[]:Object.keys(e).filter(n=>e[n]===t)}function _(e){let t=e.hostAliases??{},n=e=>e.split(`/`).slice(0,-1).join(`/`),r=new Set(e.hosts),i=new Set([...e.hosts.filter(e=>!e.includes(`/`)).map(t=>h(t,e.scope).replace(/^~\//,``)),...(e.customPlacements??[]).map(e=>n(e.path)),...e.path.includes(`/`)?[n(e.path.replace(/\/SKILL\.mdx?$/i,``))]:[]]);return Object.entries(t).filter(([e,t])=>!r.has(e)&&i.has(t)).map(([e])=>e)}function v(e){let t=new Set(e.symlinkedHosts??[]),n=[],r=new Set,i=(e,t)=>{r.has(e)||(r.add(e),n.push({dir:e,symlink:t}))};i(u(e),t.has(e.hosts[0]??``));for(let n of e.hosts)i(`${h(n,e.scope)}/${e.name}`,t.has(n));for(let t of e.customPlacements??[])i(t.path,t.mode===`link`);return n}function y(e,t=e.hosts){let r=n.options,i=_(e);return[...t.includes(`agents`)?[`agents`]:[],...r.filter(e=>t.includes(e)||i.includes(e)),...(e.customPlacements??[]).map(e=>o(e))]}export{f as a,h as c,m as d,p as f,y as i,c as l,g as n,l as o,o as r,v as s,s as t,d as u};
1
+ import{r as e}from"./dist-Nvb76hAm.js";import{Gt as t,eo as n,lo as r,po as i,so as a}from"./dist-DiEFrTc32.js";function o(e){return e.path.split(`/`).slice(0,-1).join(`/`)}var s=[`project`,`global`];function c(e){return{project:new Set(e.filter(e=>e.scope===`project`).map(e=>e.name)),global:new Set(e.filter(e=>e.scope===`global`).map(e=>e.name))}}function l(e){return e.startsWith(`open-knowledge-pack-`)?e.slice(i.length):e}function u(e){let t=e.path.replace(/\/SKILL\.mdx?$/i,``);return e.scope===`global`?`~/${t}`:t}function d(e){return e.replace(/^\/(?:Users|home)\/[^/]+/,`~`).replace(/^\/root/,`~`)}function f(e){let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):e}function p(){let{_:t}=e();return{project:t({id:`e0NrBM`}),global:t({id:`2GT3Hf`})}}function m(){let{_:t}=e();return{project:t({id:`Es3G-g`}),global:t({id:`fvrHin`})}}function h(e,t){if(e.includes(`/`))return t===`global`?`~/${e}`:e;let i=e===`agents`?n:(t===`global`?r:a)[e]??`.${e}/skills`;return t===`global`?`~/${i}`:i}function g(e,t){return!e||t===``?[]:Object.keys(e).filter(n=>e[n]===t)}function _(e){let t=e.hostAliases??{},n=e=>e.split(`/`).slice(0,-1).join(`/`),r=new Set(e.hosts),i=new Set([...e.hosts.filter(e=>!e.includes(`/`)).map(t=>h(t,e.scope).replace(/^~\//,``)),...(e.customPlacements??[]).map(e=>n(e.path)),...e.path.includes(`/`)?[n(e.path.replace(/\/SKILL\.mdx?$/i,``))]:[]]);return Object.entries(t).filter(([e,t])=>!r.has(e)&&i.has(t)).map(([e])=>e)}function v(e){let t=new Set(e.symlinkedHosts??[]),n=[],r=new Set,i=(e,t)=>{r.has(e)||(r.add(e),n.push({dir:e,symlink:t}))};i(u(e),t.has(e.hosts[0]??``));for(let n of e.hosts)i(`${h(n,e.scope)}/${e.name}`,t.has(n));for(let t of e.customPlacements??[])i(t.path,t.mode===`link`);return n}function y(e,n=e.hosts){let r=t.options,i=_(e);return[...n.includes(`agents`)?[`agents`]:[],...r.filter(e=>n.includes(e)||i.includes(e)),...(e.customPlacements??[]).map(e=>o(e))]}export{f as a,h as c,m as d,p as f,y as i,c as l,g as n,l as o,o as r,v as s,s as t,d as u};
@@ -1 +1 @@
1
- import{Kt as e}from"./dist-COv61_fZ2.js";import{t}from"./dist-DoS8xGN6.js";import{s as n}from"./documents-events-BG9v7ZR8.js";import{t as r}from"./parse-api-error-DfesE4Y7.js";async function i(e){return r(await e.json().catch(()=>null))??`HTTP ${e.status}`}async function a(e,t){try{let n=await fetch(e,t?{signal:t}:void 0);return n.ok?{ok:!0,...await n.json()}:{ok:!1,error:await i(n)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function o(e,t,n){try{let r=await fetch(e,{method:t,...n===void 0?{}:{headers:{"Content-Type":`application/json`},body:JSON.stringify(n)}});return r.ok?{ok:!0,...await r.json().catch(()=>null)??{}}:{ok:!1,error:await i(r)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function s(e){let t=e.trim();return t.length<2?{ok:!0,results:[],backend:`skills.sh`,degraded:!1}:a(`/api/skills/search?q=${encodeURIComponent(t)}`)}async function c(e){let t=await o(`/api/seed/install-pack-skill`,`POST`,{packId:e});return t.ok&&n(),t}async function l(){return a(`/api/skills/popular?limit=24`)}async function u(n,r){let i=await a(n?`/api/skills?scope=${n}`:`/api/skills`,r);if(!i.ok)return i;let{ok:o,...s}=i,c=e.safeParse(s);return c.success?{ok:!0,skills:c.data.skills}:{ok:!1,error:t._({id:`iXs0kt`})}}async function d(e){return a(`/api/skills/detail?${new URLSearchParams({source:e.source,name:e.name}).toString()}`)}async function f(e,t){return a(`/api/skills/preview?${new URLSearchParams({source:e.source,name:e.name}).toString()}`,t)}async function p(e,t){return a(`/api/skills/resolve-ref?${new URLSearchParams({ref:e.ref,scope:e.scope,from:e.from}).toString()}`,t)}async function m(e){return a(`/api/skills/publisher?source=${encodeURIComponent(e)}`)}async function h(e,t){return a(`/api/skills/discover?source=${encodeURIComponent(e)}`,t)}async function g(){return a(`/api/skills/installed`)}async function _(e){try{let n=await fetch(`/api/skill/edit-external`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!n.ok)return{ok:!1,error:await i(n)};let r=await n.json().catch(()=>null);return!r||typeof r.docName!=`string`?{ok:!1,error:t._({id:`iBVgIQ`})}:{ok:!0,docName:r.docName}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function v(e){try{let t=await fetch(`/api/skill`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,created:r?.created??!1,warnings:r?.warnings??[],...typeof r?.path==`string`?{path:r.path}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function y(e){try{let i=await fetch(`/api/skill/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!i.ok){let e=await i.json().catch(()=>null),t=r(e)??`HTTP ${i.status}`,n=typeof e?.detail==`string`&&/multiple skills/i.test(String(e?.title??``))?String(e.detail).split(`, `).map(e=>e.trim()).filter(Boolean):void 0;return n?{ok:!1,error:t,skills:n}:{ok:!1,error:t}}let a=await i.json().catch(()=>null);return!a||typeof a.name!=`string`?{ok:!1,error:t._({id:`HLoO-Z`})}:(n(),{ok:!0,name:a.name,alreadyImported:a?.alreadyImported??!1,collisionRenamedFrom:a?.collisionRenamedFrom,warnings:a?.warnings??[]})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function b(e){try{let r=await fetch(`/api/skills/import-bulk`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!r.ok)return{ok:!1,error:await i(r)};let a=await r.json().catch(()=>null);return!a||!Array.isArray(a.results)?{ok:!1,error:t._({id:`HLoO-Z`})}:(n(),{ok:!0,...a})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function x(e,r){try{let a=await fetch(`/api/skill-upload?scope=${encodeURIComponent(r)}`,{method:`POST`,body:e});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return!o||typeof o.name!=`string`?{ok:!1,error:t._({id:`iodl3p`})}:(n(),{ok:!0,name:o.name,alreadyImported:o?.alreadyImported??!1,collisionRenamedFrom:o?.collisionRenamedFrom,warnings:o?.warnings??[]})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}function S(e,t){let n=`${e}-copy`;if(!t.has(n))return n;for(let n=2;n<1e3;n+=1){let r=`${e}-copy-${n}`;if(!t.has(r))return r}return`${e}-copy-${t.size+1}`}async function C(e){try{let r=S(e.name,e.existingNames),a=await fetch(`/api/skill/duplicate`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({scope:e.scope,name:e.name,toName:r})});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return typeof o?.name==`string`?(n(),{ok:!0,name:o.name}):{ok:!1,error:t._({id:`emMrXQ`})}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function w(e){let{name:t,fromScope:r,toScope:a}=e;if(r===a)return{ok:!0,scope:a};try{let e=await fetch(`/api/skill/move-scope`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:t,fromScope:r,toScope:a})});if(!e.ok)return{ok:!1,error:await i(e)};let o=await e.json().catch(()=>null);return n(),{ok:!0,scope:a,...typeof o?.path==`string`?{path:o.path}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function T(e){try{let t=await fetch(`/api/skill/track-in-git`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return e.apply===!0&&n(),{ok:!0,line:r?.line??``,gitignorePath:r?.gitignorePath??`.gitignore`,applied:r?.applied===!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function E(e){try{let t=await fetch(`/api/skill`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,committed:r?.committed??!1,...typeof r?.to==`string`?{to:r.to}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function D(e,t){try{let r=`?name=${encodeURIComponent(t)}&scope=${encodeURIComponent(e)}`,a=await fetch(`/api/skill${r}`,{method:`DELETE`});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return n(),{ok:!0,existed:o?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function O(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,fork:{editor:e.editor,action:e.action,...e.toName===void 0?{}:{toName:e.toName}}});return t.ok?(n(),{ok:!0}):t}async function k(e){try{let t=await fetch(`/api/skill-file`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,path:r?.path??e.path}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function A(e){try{let t=await fetch(`/api/skill-file/rename`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,from:r?.from??e.from,to:r?.to??e.to,...r?.fromDocName===void 0?{}:{fromDocName:r.fromDocName},...r?.toDocName===void 0?{}:{toDocName:r.toDocName}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function j(e){try{let t=new URLSearchParams({scope:e.scope,name:e.name,path:e.path}),r=await fetch(`/api/skill-file?${t.toString()}`,{method:`DELETE`});if(!r.ok)return{ok:!1,error:await i(r)};let a=await r.json().catch(()=>null);return n(),{ok:!0,existed:a?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function M(e,t,n){try{let r=new URLSearchParams({name:t,scope:e,...n?{host:n}:{}}),a=await fetch(`/api/skill?${r.toString()}`);return a.ok?{ok:!0,files:(await a.json().catch(()=>null))?.skill?.files??[]}:{ok:!1,error:await i(a)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function N(e){try{let t=new URLSearchParams({name:e.name,scope:e.scope,path:e.path,...e.host?{host:e.host}:{}}),n=await fetch(`/api/skill-file?${t.toString()}`,{signal:e.signal});if(!n.ok)return{ok:!1,status:n.status,error:await i(n)};let r=await n.json().catch(()=>null);return typeof r?.text==`string`?{ok:!0,text:r.text}:{ok:!1,status:n.status,error:`HTTP ${n.status}`}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}function P(e,t){return N({...e,signal:t}).then(e=>e.ok?{ok:!0,text:e.text}:{ok:!1,status:e.status})}async function F(e){try{let t=await fetch(`/api/skill/install`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,hosts:r?.hosts??[],scripts:r?.scripts??!1,warnings:r?.warnings??[],warningCodes:r?.warningCodes??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function I(e){try{let t=await fetch(`/api/skill/install`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({scope:e.scope,name:e.name,place:{dir:e.dir,mode:e.mode}})});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,placedAt:r?.placedAt??e.dir}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function L(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,unplace:{path:e.path}});return t.ok?(n(),{ok:!0}):t}async function R(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,setSource:e.target});return t.ok?(n(),{ok:!0}):t}async function z(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,convert:{target:e.target,mode:e.mode}});return t.ok?(n(),{ok:!0}):t}async function B(e){try{let t=await fetch(`/api/skill-targets`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({folderAction:e})});return t.ok?{ok:!0}:{ok:!1,error:await i(t)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function V(e){try{let t=await fetch(`/api/skill/reimport`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return e.dryRun||n(),{ok:!0,updated:r?.updated??!1,source:r?.source??``,localBody:r?.localBody,upstreamBody:r?.upstreamBody,...r?.gitTracked===void 0?{}:{gitTracked:r.gitTracked},warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function H(e){try{let t=await fetch(`/api/skill/revert`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}export{R as A,V as C,H as D,p as E,L as M,x as N,v as O,k as P,B as S,O as T,u as _,C as a,w as b,m as c,M as d,y as f,g,F as h,h as i,T as j,s as k,d as l,c as m,D as n,_ as o,b as p,j as r,l as s,z as t,f as u,P as v,A as w,I as x,E as y};
1
+ import{qt as e}from"./dist-DiEFrTc32.js";import{t}from"./dist-DUfEoSbR.js";import{s as n}from"./documents-events-CYr01LzK.js";import{t as r}from"./parse-api-error-DfesE4Y7.js";async function i(e){return r(await e.json().catch(()=>null))??`HTTP ${e.status}`}async function a(e,t){try{let n=await fetch(e,t?{signal:t}:void 0);return n.ok?{ok:!0,...await n.json()}:{ok:!1,error:await i(n)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function o(e,t,n){try{let r=await fetch(e,{method:t,...n===void 0?{}:{headers:{"Content-Type":`application/json`},body:JSON.stringify(n)}});return r.ok?{ok:!0,...await r.json().catch(()=>null)??{}}:{ok:!1,error:await i(r)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function s(e){let t=e.trim();return t.length<2?{ok:!0,results:[],backend:`skills.sh`,degraded:!1}:a(`/api/skills/search?q=${encodeURIComponent(t)}`)}async function c(e){let t=await o(`/api/seed/install-pack-skill`,`POST`,{packId:e});return t.ok&&n(),t}async function l(){return a(`/api/skills/popular?limit=24`)}async function u(n,r){let i=await a(n?`/api/skills?scope=${n}`:`/api/skills`,r);if(!i.ok)return i;let{ok:o,...s}=i,c=e.safeParse(s);return c.success?{ok:!0,skills:c.data.skills}:{ok:!1,error:t._({id:`iXs0kt`})}}async function d(e){return a(`/api/skills/detail?${new URLSearchParams({source:e.source,name:e.name}).toString()}`)}async function f(e,t){return a(`/api/skills/preview?${new URLSearchParams({source:e.source,name:e.name}).toString()}`,t)}async function p(e,t){return a(`/api/skills/resolve-ref?${new URLSearchParams({ref:e.ref,scope:e.scope,from:e.from}).toString()}`,t)}async function m(e){return a(`/api/skills/publisher?source=${encodeURIComponent(e)}`)}async function h(e,t){return a(`/api/skills/discover?source=${encodeURIComponent(e)}`,t)}async function g(){return a(`/api/skills/installed`)}async function _(e){try{let n=await fetch(`/api/skill/edit-external`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!n.ok)return{ok:!1,error:await i(n)};let r=await n.json().catch(()=>null);return!r||typeof r.docName!=`string`?{ok:!1,error:t._({id:`iBVgIQ`})}:{ok:!0,docName:r.docName}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function v(e){try{let t=await fetch(`/api/skill`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,created:r?.created??!1,warnings:r?.warnings??[],...typeof r?.path==`string`?{path:r.path}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function y(e){try{let i=await fetch(`/api/skill/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!i.ok){let e=await i.json().catch(()=>null),t=r(e)??`HTTP ${i.status}`,n=typeof e?.detail==`string`&&/multiple skills/i.test(String(e?.title??``))?String(e.detail).split(`, `).map(e=>e.trim()).filter(Boolean):void 0;return n?{ok:!1,error:t,skills:n}:{ok:!1,error:t}}let a=await i.json().catch(()=>null);return!a||typeof a.name!=`string`?{ok:!1,error:t._({id:`HLoO-Z`})}:(n(),{ok:!0,name:a.name,alreadyImported:a?.alreadyImported??!1,collisionRenamedFrom:a?.collisionRenamedFrom,warnings:a?.warnings??[]})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function b(e){try{let r=await fetch(`/api/skills/import-bulk`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!r.ok)return{ok:!1,error:await i(r)};let a=await r.json().catch(()=>null);return!a||!Array.isArray(a.results)?{ok:!1,error:t._({id:`HLoO-Z`})}:(n(),{ok:!0,...a})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function x(e,r){try{let a=await fetch(`/api/skill-upload?scope=${encodeURIComponent(r)}`,{method:`POST`,body:e});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return!o||typeof o.name!=`string`?{ok:!1,error:t._({id:`iodl3p`})}:(n(),{ok:!0,name:o.name,alreadyImported:o?.alreadyImported??!1,collisionRenamedFrom:o?.collisionRenamedFrom,warnings:o?.warnings??[]})}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}function S(e,t){let n=`${e}-copy`;if(!t.has(n))return n;for(let n=2;n<1e3;n+=1){let r=`${e}-copy-${n}`;if(!t.has(r))return r}return`${e}-copy-${t.size+1}`}async function C(e){try{let r=S(e.name,e.existingNames),a=await fetch(`/api/skill/duplicate`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({scope:e.scope,name:e.name,toName:r})});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return typeof o?.name==`string`?(n(),{ok:!0,name:o.name}):{ok:!1,error:t._({id:`emMrXQ`})}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function w(e){let{name:t,fromScope:r,toScope:a}=e;if(r===a)return{ok:!0,scope:a};try{let e=await fetch(`/api/skill/move-scope`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:t,fromScope:r,toScope:a})});if(!e.ok)return{ok:!1,error:await i(e)};let o=await e.json().catch(()=>null);return n(),{ok:!0,scope:a,...typeof o?.path==`string`?{path:o.path}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function T(e){try{let t=await fetch(`/api/skill/track-in-git`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return e.apply===!0&&n(),{ok:!0,line:r?.line??``,gitignorePath:r?.gitignorePath??`.gitignore`,applied:r?.applied===!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function E(e){try{let t=await fetch(`/api/skill`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,committed:r?.committed??!1,...typeof r?.to==`string`?{to:r.to}:{}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function D(e,t){try{let r=`?name=${encodeURIComponent(t)}&scope=${encodeURIComponent(e)}`,a=await fetch(`/api/skill${r}`,{method:`DELETE`});if(!a.ok)return{ok:!1,error:await i(a)};let o=await a.json().catch(()=>null);return n(),{ok:!0,existed:o?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function O(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,fork:{editor:e.editor,action:e.action,...e.toName===void 0?{}:{toName:e.toName}}});return t.ok?(n(),{ok:!0}):t}async function k(e){try{let t=await fetch(`/api/skill-file`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,path:r?.path??e.path}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function A(e){try{let t=await fetch(`/api/skill-file/rename`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,from:r?.from??e.from,to:r?.to??e.to,...r?.fromDocName===void 0?{}:{fromDocName:r.fromDocName},...r?.toDocName===void 0?{}:{toDocName:r.toDocName}}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function j(e){try{let t=new URLSearchParams({scope:e.scope,name:e.name,path:e.path}),r=await fetch(`/api/skill-file?${t.toString()}`,{method:`DELETE`});if(!r.ok)return{ok:!1,error:await i(r)};let a=await r.json().catch(()=>null);return n(),{ok:!0,existed:a?.existed??!1}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function M(e,t,n){try{let r=new URLSearchParams({name:t,scope:e,...n?{host:n}:{}}),a=await fetch(`/api/skill?${r.toString()}`);return a.ok?{ok:!0,files:(await a.json().catch(()=>null))?.skill?.files??[]}:{ok:!1,error:await i(a)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function N(e){try{let t=new URLSearchParams({name:e.name,scope:e.scope,path:e.path,...e.host?{host:e.host}:{}}),n=await fetch(`/api/skill-file?${t.toString()}`,{signal:e.signal});if(!n.ok)return{ok:!1,status:n.status,error:await i(n)};let r=await n.json().catch(()=>null);return typeof r?.text==`string`?{ok:!0,text:r.text}:{ok:!1,status:n.status,error:`HTTP ${n.status}`}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}function P(e,t){return N({...e,signal:t}).then(e=>e.ok?{ok:!0,text:e.text}:{ok:!1,status:e.status})}async function F(e){try{let t=await fetch(`/api/skill/install`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,hosts:r?.hosts??[],scripts:r?.scripts??!1,warnings:r?.warnings??[],warningCodes:r?.warningCodes??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function I(e){try{let t=await fetch(`/api/skill/install`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({scope:e.scope,name:e.name,place:{dir:e.dir,mode:e.mode}})});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,placedAt:r?.placedAt??e.dir}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function L(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,unplace:{path:e.path}});return t.ok?(n(),{ok:!0}):t}async function R(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,setSource:e.target});return t.ok?(n(),{ok:!0}):t}async function z(e){let t=await o(`/api/skill/install`,`POST`,{scope:e.scope,name:e.name,convert:{target:e.target,mode:e.mode}});return t.ok?(n(),{ok:!0}):t}async function B(e){try{let t=await fetch(`/api/skill-targets`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({folderAction:e})});return t.ok?{ok:!0}:{ok:!1,error:await i(t)}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function V(e){try{let t=await fetch(`/api/skill/reimport`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return e.dryRun||n(),{ok:!0,updated:r?.updated??!1,source:r?.source??``,localBody:r?.localBody,upstreamBody:r?.upstreamBody,...r?.gitTracked===void 0?{}:{gitTracked:r.gitTracked},warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function H(e){try{let t=await fetch(`/api/skill/revert`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});if(!t.ok)return{ok:!1,error:await i(t)};let r=await t.json().catch(()=>null);return n(),{ok:!0,warnings:r?.warnings??[]}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}export{R as A,V as C,H as D,p as E,L as M,x as N,v as O,k as P,B as S,O as T,u as _,C as a,w as b,m as c,M as d,y as f,g,F as h,h as i,T as j,s as k,d as l,c as m,D as n,_ as o,b as p,j as r,l as s,z as t,f as u,P as v,A as w,I as x,E as y};
@@ -1,2 +1,2 @@
1
- import{I as e}from"./CodeMirrorPropInput-3xTSMwVk.js";import{C as t,D as n,E as r,G as i,L as a,S as o,U as s,W as c,g as l,it as u,rt as d}from"./config-provider-Cow2MOvb.js";import{$ as f,At as p,Ct as m,Nt as h,Ot as g,Y as _,Z as v,et as y}from"./dist-w_Y7XM3w.js";var b=class e{constructor(e,t){this.yanchor=e,this.yhead=t}toJSON(){return{yanchor:a(this.yanchor),yhead:a(this.yhead)}}static fromJSON(t){return new e(r(t.yanchor),r(t.yhead))}},x=class{constructor(e,t){this.ytext=e,this.awareness=t,this.undoManager=new l(e)}toYPos(e,t=0){return n(this.ytext,e,t)}fromYPos(e){let n=t(r(e),this.ytext.doc);if(n==null||n.type!==this.ytext)throw Error(`[y-codemirror] The position you want to retrieve was created by a different document`);return{pos:n.index,assoc:n.assoc}}toYRange(e){let t=e.assoc;return new b(this.toYPos(e.anchor,t),this.toYPos(e.head,t))}fromYRange(e){let t=this.fromYPos(e.yanchor),n=this.fromYPos(e.yhead);return t.pos===n.pos?g.cursor(n.pos,n.assoc):g.range(t.pos,n.pos)}},S=p.define({combine(e){return e[e.length-1]}}),C=m.define(),w=class{constructor(e){this.view=e,this.conf=e.state.facet(S),this._observer=(t,n)=>{if(n.origin!==this.conf){let n=t.delta,r=[],i=0;for(let e=0;e<n.length;e++){let t=n[e];t.insert==null?t.delete==null?i+=t.retain:(r.push({from:i,to:i+t.delete,insert:``}),i+=t.delete):r.push({from:i,to:i,insert:t.insert})}e.dispatch({changes:r,annotations:[C.of(this.conf)]})}},this._ytext=this.conf.ytext,this._ytext.observe(this._observer)}update(e){if(!e.docChanged||e.transactions.length>0&&e.transactions[0].annotation(C)===this.conf)return;let t=this.conf.ytext;t.doc.transact(()=>{let n=0;e.changes.iterChanges((e,r,i,a,o)=>{let s=o.sliceString(0,o.length,`
1
+ import{I as e}from"./CodeMirrorPropInput-AP4wqZL2.js";import{C as t,D as n,E as r,G as i,L as a,S as o,U as s,W as c,g as l,it as u,rt as d}from"./config-provider-zPDmtELo.js";import{$ as f,At as p,Ct as m,Nt as h,Ot as g,Y as _,Z as v,et as y}from"./dist-BpbU4527.js";var b=class e{constructor(e,t){this.yanchor=e,this.yhead=t}toJSON(){return{yanchor:a(this.yanchor),yhead:a(this.yhead)}}static fromJSON(t){return new e(r(t.yanchor),r(t.yhead))}},x=class{constructor(e,t){this.ytext=e,this.awareness=t,this.undoManager=new l(e)}toYPos(e,t=0){return n(this.ytext,e,t)}fromYPos(e){let n=t(r(e),this.ytext.doc);if(n==null||n.type!==this.ytext)throw Error(`[y-codemirror] The position you want to retrieve was created by a different document`);return{pos:n.index,assoc:n.assoc}}toYRange(e){let t=e.assoc;return new b(this.toYPos(e.anchor,t),this.toYPos(e.head,t))}fromYRange(e){let t=this.fromYPos(e.yanchor),n=this.fromYPos(e.yhead);return t.pos===n.pos?g.cursor(n.pos,n.assoc):g.range(t.pos,n.pos)}},S=p.define({combine(e){return e[e.length-1]}}),C=m.define(),w=class{constructor(e){this.view=e,this.conf=e.state.facet(S),this._observer=(t,n)=>{if(n.origin!==this.conf){let n=t.delta,r=[],i=0;for(let e=0;e<n.length;e++){let t=n[e];t.insert==null?t.delete==null?i+=t.retain:(r.push({from:i,to:i+t.delete,insert:``}),i+=t.delete):r.push({from:i,to:i,insert:t.insert})}e.dispatch({changes:r,annotations:[C.of(this.conf)]})}},this._ytext=this.conf.ytext,this._ytext.observe(this._observer)}update(e){if(!e.docChanged||e.transactions.length>0&&e.transactions[0].annotation(C)===this.conf)return;let t=this.conf.ytext;t.doc.transact(()=>{let n=0;e.changes.iterChanges((e,r,i,a,o)=>{let s=o.sliceString(0,o.length,`
2
2
  `);e!==r&&t.delete(e+n,r-e),s.length>0&&t.insert(e+n,s),n+=s.length-(r-e)})},this.conf)}destroy(){this._ytext.unobserve(this._observer)}},T=f.fromClass(w),E=v.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:`0px 2px 0px 4px`},".cm-ySelectionCaret":{position:`relative`,borderLeft:`1px solid black`,borderRight:`1px solid black`,marginLeft:`-1px`,marginRight:`-1px`,boxSizing:`border-box`,display:`inline`},".cm-ySelectionCaretDot":{borderRadius:`50%`,position:`absolute`,width:`.4em`,height:`.4em`,top:`-.2em`,left:`-.2em`,backgroundColor:`inherit`,transition:`transform .3s ease-in-out`,boxSizing:`border-box`},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:`bottom center`,transform:`scale(0)`},".cm-ySelectionInfo":{position:`absolute`,top:`-1.05em`,left:`-1px`,fontSize:`.75em`,fontFamily:`serif`,fontStyle:`normal`,fontWeight:`normal`,lineHeight:`normal`,userSelect:`none`,color:`white`,paddingLeft:`2px`,paddingRight:`2px`,zIndex:101,transition:`opacity .3s ease-in-out`,backgroundColor:`inherit`,opacity:0,transitionDelay:`0s`,whiteSpace:`nowrap`},".cm-ySelectionCaret:hover > .cm-ySelectionInfo":{opacity:1,transitionDelay:`0s`}}),D=m.define(),O=class extends y{constructor(e,t){super(),this.color=e,this.name=t}toDOM(){return s(`span`,[i(`class`,`cm-ySelectionCaret`),i(`style`,`background-color: ${this.color}; border-color: ${this.color}`)],[c(`⁠`),s(`div`,[i(`class`,`cm-ySelectionCaretDot`)]),c(`⁠`),s(`div`,[i(`class`,`cm-ySelectionInfo`)],[c(this.name)]),c(`⁠`)])}eq(e){return e.color===this.color}compare(e){return e.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}},k=class{constructor(e){this.conf=e.state.facet(S),this._listener=({added:t,updated:n,removed:r},i,a)=>{t.concat(n).concat(r).findIndex(e=>e!==this.conf.awareness.doc.clientID)>=0&&e.dispatch({annotations:[D.of([])]})},this._awareness=this.conf.awareness,this._awareness.on(`change`,this._listener),this.decorations=h.of([])}destroy(){this._awareness.off(`change`,this._listener)}update(e){let i=this.conf.ytext,a=i.doc,s=this.conf.awareness,c=[],l=this.conf.awareness.getLocalState();if(l!=null){let t=e.view.hasFocus&&e.view.dom.ownerDocument.hasFocus(),a=t?e.state.selection.main:null,c=l.cursor==null?null:r(l.cursor.anchor),u=l.cursor==null?null:r(l.cursor.head);if(a!=null){let e=n(i,a.anchor),t=n(i,a.head);(l.cursor==null||!o(c,e)||!o(u,t))&&s.setLocalStateField(`cursor`,{anchor:e,head:t})}else l.cursor!=null&&t&&s.setLocalStateField(`cursor`,null)}s.getStates().forEach((n,r)=>{if(r===s.doc.clientID)return;let o=n.cursor;if(o==null||o.anchor==null||o.head==null)return;let l=t(o.anchor,a),f=t(o.head,a);if(l==null||f==null||l.type!==i||f.type!==i)return;let{color:p=`#30bced`,name:m=`Anonymous`}=n.user||{},h=n.user&&n.user.colorLight||p+`33`,g=u(l.index,f.index),v=d(l.index,f.index),y=e.view.state.doc.lineAt(g),b=e.view.state.doc.lineAt(v);if(y.number===b.number)c.push({from:g,to:v,value:_.mark({attributes:{style:`background-color: ${h}`},class:`cm-ySelection`})});else{c.push({from:g,to:y.from+y.length,value:_.mark({attributes:{style:`background-color: ${h}`},class:`cm-ySelection`})}),c.push({from:b.from,to:v,value:_.mark({attributes:{style:`background-color: ${h}`},class:`cm-ySelection`})});for(let t=y.number+1;t<b.number;t++){let n=e.view.state.doc.line(t).from;c.push({from:n,to:n,value:_.line({attributes:{style:`background-color: ${h}`,class:`cm-yLineSelection`}})})}}c.push({from:f.index,to:f.index,value:_.widget({side:f.index-l.index>0?-1:1,block:!1,widget:new O(p,m)})})}),this.decorations=_.set(c,!0)}},A=f.fromClass(k,{decorations:e=>e.decorations}),j=class{constructor(e){this.undoManager=e}addTrackedOrigin(e){this.undoManager.addTrackedOrigin(e)}removeTrackedOrigin(e){this.undoManager.removeTrackedOrigin(e)}undo(){return this.undoManager.undo()!=null}redo(){return this.undoManager.redo()!=null}},M=p.define({combine(e){return e[e.length-1]}});m.define();var N=class{constructor(t){this.view=t,this.conf=t.state.facet(M),this._undoManager=this.conf.undoManager,this.syncConf=t.state.facet(S),this._beforeChangeSelection=null,this._mux=e(),this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{t.has(this.syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)&&e.meta.set(this,this._beforeChangeSelection)},this._onStackItemPopped=({stackItem:e})=>{let n=e.meta.get(this);if(n){let e=this.syncConf.fromYRange(n);t.dispatch(t.state.update({selection:e,effects:[v.scrollIntoView(e)]})),this._storeSelection()}},this._storeSelection=()=>{this._beforeChangeSelection=this.syncConf.toYRange(this.view.state.selection.main)},this._undoManager.on(`stack-item-added`,this._onStackItemAdded),this._undoManager.on(`stack-item-popped`,this._onStackItemPopped),this._undoManager.addTrackedOrigin(this.syncConf)}update(e){e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(C)!==this.syncConf)&&this._storeSelection()}destroy(){this._undoManager.off(`stack-item-added`,this._onStackItemAdded),this._undoManager.off(`stack-item-popped`,this._onStackItemPopped),this._undoManager.removeTrackedOrigin(this.syncConf)}},P=f.fromClass(N),F=({state:e,dispatch:t})=>e.facet(M).undo()||!0,I=({state:e,dispatch:t})=>e.facet(M).redo()||!0,L=[{key:`Mod-z`,run:F,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:I,preventDefault:!0},{key:`Mod-Shift-z`,run:I,preventDefault:!0}],R=(e,t,{undoManager:n=new l(e)}={})=>{let r=new x(e,t),i=[S.of(r),T];return t&&i.push(E,A),n!==!1&&i.push(M.of(new j(n)),P,v.domEventHandlers({beforeinput(e,t){return e.inputType===`historyUndo`?F(t):e.inputType===`historyRedo`?I(t):!1}})),i};export{L as n,R as t};
@@ -1 +1 @@
1
- import{o as e,t}from"./chunk-CYidjpOJ.js";import{n}from"./chunk-Y2CYZVJY-Bw2nvaMQ.js";import"./src-DlFhp60C.js";var r=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=e(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),{abs:l,max:u,min:d}=Math;[`w`,`e`].map(f),[`n`,`s`].map(f),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(f);function f(e){return{type:e}}export{s as n,r,o as t};
1
+ import{o as e,t}from"./chunk-CYidjpOJ.js";import{n}from"./chunk-Y2CYZVJY-vfj7raQE.js";import"./src-BAp28WGw.js";var r=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),i=e(r(),1),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:n((...e)=>{},`trace`),debug:n((...e)=>{},`debug`),info:n((...e)=>{},`info`),warn:n((...e)=>{},`warn`),error:n((...e)=>{},`error`),fatal:n((...e)=>{},`fatal`)},s=n(function(e=`fatal`){let t=a.fatal;typeof e==`string`?e.toLowerCase()in a&&(t=a[e]):typeof e==`number`&&(t=e),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(`FATAL`),`color: orange`):console.log.bind(console,`\x1B[35m`,c(`FATAL`))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(`ERROR`),`color: orange`):console.log.bind(console,`\x1B[31m`,c(`ERROR`))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(`WARN`),`color: orange`):console.log.bind(console,`\x1B[33m`,c(`WARN`))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(`INFO`),`color: lightblue`):console.log.bind(console,`\x1B[34m`,c(`INFO`))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(`DEBUG`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`DEBUG`))),t<=a.trace&&(o.trace=console.debug?console.debug.bind(console,c(`TRACE`),`color: lightgreen`):console.log.bind(console,`\x1B[32m`,c(`TRACE`)))},`setLogLevel`),c=n(e=>`%c${(0,i.default)().format(`ss.SSS`)} : ${e} : `,`format`),{abs:l,max:u,min:d}=Math;[`w`,`e`].map(f),[`n`,`s`].map(f),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(f);function f(e){return{type:e}}export{s as n,r,o as t};
@@ -1 +1 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-Bw2nvaMQ.js";import{t}from"./src-DTnqSW2M.js";import{O as n,c as r,s as i,x as a}from"./chunk-WYO6CB5R-BtZO7GTo.js";import{C as o}from"./src-DlFhp60C.js";import{et as s,g as c}from"./chunk-ICXQ74PX-BuIKeQxW.js";import{t as l}from"./line-dV9ubXAV.js";import"./chunk-HOUHSVGY-DGOb362U.js";import"./chunk-Q4XR5HBZ-DnjBiiRi.js";import"./chunk-7BUUIJ7U-NgiLm4do.js";import"./chunk-OGEWGWER-DUygGCtr.js";import{t as u}from"./graphlib-C4PVrCSd.js";import{t as d}from"./dagre-DU0bSWB3.js";import"./chunk-32BRIVSS-BgyL-XUN.js";import"./chunk-XXDRQBXY-CSo_IP1t.js";import"./chunk-VR4S4FIN-RC3ren3m.js";import"./chunk-C7G6YPKG-DTKxmZVz.js";import"./chunk-ZGVPDNZ5-B7cInX-F.js";import"./chunk-52WLFC77-CLCS5D1w.js";import"./chunk-FWX5IMBZ-CAuRUmD2.js";import{i as f,n as p,t as m}from"./chunk-EX3LRPZG-DCBoE6Bv.js";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,a().state.sizeUnit).attr(`cx`,a().state.padding+a().state.sizeUnit).attr(`cy`,a().state.padding+a().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,a().state.textHeight).attr(`class`,`divider`).attr(`x2`,a().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*a().state.padding).attr(`y`,a().state.textHeight+2*a().state.padding).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,a().state.padding).attr(`y`,a().state.padding).attr(`width`,r.width+2*a().state.padding).attr(`height`,r.height+2*a().state.padding).attr(`rx`,a().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*a().state.padding).text(t);n||r.attr(`dy`,a().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*a().state.padding).attr(`y`,a().state.textHeight+1.3*a().state.padding).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),o=i.height,s=t.append(`text`).attr(`x`,a().state.padding).attr(`y`,o+a().state.padding*.4+a().state.dividerMargin+a().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,a().state.padding).attr(`y1`,a().state.padding+o+a().state.dividerMargin/2).attr(`y2`,a().state.padding+o+a().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*a().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,a().state.padding).attr(`y`,a().state.padding).attr(`width`,f+2*a().state.padding).attr(`height`,d.height+o+2*a().state.padding).attr(`rx`,a().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=a().state.padding,i=2*a().state.padding,o=e.node().getBBox(),s=o.width,c=o.x,l=e.append(`text`).attr(`x`,0).attr(`y`,a().state.titleShift).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)<r&&u>s&&(f=c-(u-s)/2);let m=1-a().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+a().state.textHeight+a().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,a().state.titleShift-a().state.textHeight-a().state.padding).attr(`width`,d).attr(`height`,a().state.textHeight*3).attr(`rx`,a().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,a().state.titleShift-a().state.textHeight-a().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*a().state.textHeight).attr(`rx`,a().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,a().state.sizeUnit+a().state.miniPadding).attr(`cx`,a().state.padding+a().state.sizeUnit+a().state.miniPadding).attr(`cy`,a().state.padding+a().state.sizeUnit+a().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,a().state.sizeUnit).attr(`cx`,a().state.padding+a().state.sizeUnit+2).attr(`cy`,a().state.padding+a().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=a().state.forkWidth,r=a().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,a().state.padding).attr(`y`,a().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let o=0,s=r.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(i.lineBreakRegex),u=1.25*a().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=s.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}o+=u,e.attr(`x`,t+a().state.noteMargin),e.attr(`y`,n+o+1.25*a().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:o}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,a().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*a().state.noteMargin),n.attr(`width`,r+a().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type===`default`&&t.descriptions.length===0&&_(i,t),t.type===`default`&&t.descriptions.length>0&&v(i,t);let o=i.node().getBBox();return r.width=o.width+2*a().state.padding,r.height=o.height+2*a().state.padding,r},`drawState`),T=0,E=e(function(r,o,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);o.points=o.points.filter(e=>!Number.isNaN(e.y));let f=o.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=r.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(a().state.arrowMarkerAbsolute&&(g=n(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=r.append(`g`).attr(`class`,`stateLabel`),{x:n,y:s}=c.calcLabelPosition(o.points),l=i.getRows(u.title),d=0,f=[],p=0,m=0;for(let r=0;r<=l.length;r++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[r]).attr(`x`,n).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,n,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,n-p/2-a().state.padding/2).attr(`y`,s-h/2-a().state.padding/2-3.5).attr(`width`,p+a().state.padding).attr(`height`,h+a().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,n,i,s){D=a().state;let c=a().securityLevel,l;c===`sandbox`&&(l=o(`#i`+n));let u=o(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${n}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,n+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;r(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,a,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let i;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);i=N(t.doc,e,t.id,!a,o,s,c);{e=y(e,t,a);let n=e.node().getBBox();i.width=n.width,i.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else i=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(i.id+`-note`,e),l.setNode(i.id,i)):(l.setNode(i.id,i),l.setNode(i.id+`-note`,e)),l.setParent(i.id,i.id+`-group`),l.setParent(i.id+`-note`,i.id+`-group`)}else l.setNode(i.id,i)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*i.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
1
+ import{n as e}from"./chunk-Y2CYZVJY-vfj7raQE.js";import{t}from"./src-DxLI2PjH.js";import{O as n,c as r,s as i,x as a}from"./chunk-WYO6CB5R-CrS71lvK.js";import{C as o}from"./src-BAp28WGw.js";import{et as s,g as c}from"./chunk-ICXQ74PX-C63Xgr0O.js";import{t as l}from"./line-DnnWI5vr.js";import"./chunk-HOUHSVGY-B7v770iR.js";import"./chunk-Q4XR5HBZ-kztF5uGd.js";import"./chunk-7BUUIJ7U-Pr_5SKwD.js";import"./chunk-OGEWGWER-ChlRgYv3.js";import{t as u}from"./graphlib-ioLhFHkL.js";import{t as d}from"./dagre-DfVjddc3.js";import"./chunk-32BRIVSS-C-dyipE0.js";import"./chunk-XXDRQBXY-BbtIdjLE.js";import"./chunk-VR4S4FIN-BK5oYbfP.js";import"./chunk-C7G6YPKG-75F8nXGJ.js";import"./chunk-ZGVPDNZ5-B9_vMnln.js";import"./chunk-52WLFC77-C0TaY8su.js";import"./chunk-FWX5IMBZ-C4T9sOJA.js";import{i as f,n as p,t as m}from"./chunk-EX3LRPZG-ghIR61NM.js";var h=e(e=>e.append(`circle`).attr(`class`,`start-state`).attr(`r`,a().state.sizeUnit).attr(`cx`,a().state.padding+a().state.sizeUnit).attr(`cy`,a().state.padding+a().state.sizeUnit),`drawStartState`),g=e(e=>e.append(`line`).style(`stroke`,`grey`).style(`stroke-dasharray`,`3`).attr(`x1`,a().state.textHeight).attr(`class`,`divider`).attr(`x2`,a().state.textHeight*2).attr(`y1`,0).attr(`y2`,0),`drawDivider`),_=e((e,t)=>{let n=e.append(`text`).attr(`x`,2*a().state.padding).attr(`y`,a().state.textHeight+2*a().state.padding).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(t.id),r=n.node().getBBox();return e.insert(`rect`,`:first-child`).attr(`x`,a().state.padding).attr(`y`,a().state.padding).attr(`width`,r.width+2*a().state.padding).attr(`height`,r.height+2*a().state.padding).attr(`rx`,a().state.radius),n},`drawSimpleState`),v=e((t,n)=>{let r=e(function(e,t,n){let r=e.append(`tspan`).attr(`x`,2*a().state.padding).text(t);n||r.attr(`dy`,a().state.textHeight)},`addTspan`),i=t.append(`text`).attr(`x`,2*a().state.padding).attr(`y`,a().state.textHeight+1.3*a().state.padding).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(n.descriptions[0]).node().getBBox(),o=i.height,s=t.append(`text`).attr(`x`,a().state.padding).attr(`y`,o+a().state.padding*.4+a().state.dividerMargin+a().state.textHeight).attr(`class`,`state-description`),c=!0,l=!0;n.descriptions.forEach(function(e){c||(r(s,e,l),l=!1),c=!1});let u=t.append(`line`).attr(`x1`,a().state.padding).attr(`y1`,a().state.padding+o+a().state.dividerMargin/2).attr(`y2`,a().state.padding+o+a().state.dividerMargin/2).attr(`class`,`descr-divider`),d=s.node().getBBox(),f=Math.max(d.width,i.width);return u.attr(`x2`,f+3*a().state.padding),t.insert(`rect`,`:first-child`).attr(`x`,a().state.padding).attr(`y`,a().state.padding).attr(`width`,f+2*a().state.padding).attr(`height`,d.height+o+2*a().state.padding).attr(`rx`,a().state.radius),t},`drawDescrState`),y=e((e,t,n)=>{let r=a().state.padding,i=2*a().state.padding,o=e.node().getBBox(),s=o.width,c=o.x,l=e.append(`text`).attr(`x`,0).attr(`y`,a().state.titleShift).attr(`font-size`,a().state.fontSize).attr(`class`,`state-title`).text(t.id),u=l.node().getBBox().width+i,d=Math.max(u,s);d===s&&(d+=i);let f,p=e.node().getBBox();t.doc,f=c-r,u>s&&(f=(s-d)/2+r),Math.abs(c-p.x)<r&&u>s&&(f=c-(u-s)/2);let m=1-a().state.textHeight;return e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,m).attr(`class`,n?`alt-composit`:`composit`).attr(`width`,d).attr(`height`,p.height+a().state.textHeight+a().state.titleShift+1).attr(`rx`,`0`),l.attr(`x`,f+r),u<=s&&l.attr(`x`,c+(d-i)/2-u/2+r),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,a().state.titleShift-a().state.textHeight-a().state.padding).attr(`width`,d).attr(`height`,a().state.textHeight*3).attr(`rx`,a().state.radius),e.insert(`rect`,`:first-child`).attr(`x`,f).attr(`y`,a().state.titleShift-a().state.textHeight-a().state.padding).attr(`width`,d).attr(`height`,p.height+3+2*a().state.textHeight).attr(`rx`,a().state.radius),e},`addTitleAndBox`),b=e(e=>(e.append(`circle`).attr(`class`,`end-state-outer`).attr(`r`,a().state.sizeUnit+a().state.miniPadding).attr(`cx`,a().state.padding+a().state.sizeUnit+a().state.miniPadding).attr(`cy`,a().state.padding+a().state.sizeUnit+a().state.miniPadding),e.append(`circle`).attr(`class`,`end-state-inner`).attr(`r`,a().state.sizeUnit).attr(`cx`,a().state.padding+a().state.sizeUnit+2).attr(`cy`,a().state.padding+a().state.sizeUnit+2)),`drawEndState`),x=e((e,t)=>{let n=a().state.forkWidth,r=a().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}return e.append(`rect`).style(`stroke`,`black`).style(`fill`,`black`).attr(`width`,n).attr(`height`,r).attr(`x`,a().state.padding).attr(`y`,a().state.padding)},`drawForkJoinState`),S=e((e,t,n,r)=>{let o=0,s=r.append(`text`);s.style(`text-anchor`,`start`),s.attr(`class`,`noteText`);let c=e.replace(/\r\n/g,`<br/>`);c=c.replace(/\n/g,`<br/>`);let l=c.split(i.lineBreakRegex),u=1.25*a().state.noteMargin;for(let e of l){let r=e.trim();if(r.length>0){let e=s.append(`tspan`);if(e.text(r),u===0){let t=e.node().getBBox();u+=t.height}o+=u,e.attr(`x`,t+a().state.noteMargin),e.attr(`y`,n+o+1.25*a().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:o}},`_drawLongText`),C=e((e,t)=>{t.attr(`class`,`state-note`);let n=t.append(`rect`).attr(`x`,0).attr(`y`,a().state.padding),{textWidth:r,textHeight:i}=S(e,0,0,t.append(`g`));return n.attr(`height`,i+2*a().state.noteMargin),n.attr(`width`,r+a().state.noteMargin*2),n},`drawNote`),w=e(function(e,t){let n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append(`g`).attr(`id`,n).attr(`class`,`stateGroup`);t.type===`start`&&h(i),t.type===`end`&&b(i),(t.type===`fork`||t.type===`join`)&&x(i,t),t.type===`note`&&C(t.note.text,i),t.type===`divider`&&g(i),t.type===`default`&&t.descriptions.length===0&&_(i,t),t.type===`default`&&t.descriptions.length>0&&v(i,t);let o=i.node().getBBox();return r.width=o.width+2*a().state.padding,r.height=o.height+2*a().state.padding,r},`drawState`),T=0,E=e(function(r,o,u){let d=e(function(e){switch(e){case m.relationType.AGGREGATION:return`aggregation`;case m.relationType.EXTENSION:return`extension`;case m.relationType.COMPOSITION:return`composition`;case m.relationType.DEPENDENCY:return`dependency`}},`getRelationType`);o.points=o.points.filter(e=>!Number.isNaN(e.y));let f=o.points,p=l().x(function(e){return e.x}).y(function(e){return e.y}).curve(s),h=r.append(`path`).attr(`d`,p(f)).attr(`id`,`edge`+T).attr(`class`,`transition`),g=``;if(a().state.arrowMarkerAbsolute&&(g=n(!0)),h.attr(`marker-end`,`url(`+g+`#`+d(m.relationType.DEPENDENCY)+`End)`),u.title!==void 0){let e=r.append(`g`).attr(`class`,`stateLabel`),{x:n,y:s}=c.calcLabelPosition(o.points),l=i.getRows(u.title),d=0,f=[],p=0,m=0;for(let r=0;r<=l.length;r++){let i=e.append(`text`).attr(`text-anchor`,`middle`).text(l[r]).attr(`x`,n).attr(`y`,s+d),a=i.node().getBBox();p=Math.max(p,a.width),m=Math.min(m,a.x),t.info(a.x,n,s+d),d===0&&(d=i.node().getBBox().height,t.info(`Title height`,d,s)),f.push(i)}let h=d*l.length;if(l.length>1){let e=(l.length-1)*d*.5;f.forEach((t,n)=>t.attr(`y`,s+n*d-e)),h=d*l.length}let g=e.node().getBBox();e.insert(`rect`,`:first-child`).attr(`class`,`box`).attr(`x`,n-p/2-a().state.padding/2).attr(`y`,s-h/2-a().state.padding/2-3.5).attr(`width`,p+a().state.padding).attr(`height`,h+a().state.padding),t.info(g)}T++},`drawEdge`),D,O={},k=e(function(){},`setConf`),A=e(function(e){e.append(`defs`).append(`marker`).attr(`id`,`dependencyEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`insertMarkers`),j=e(function(e,n,i,s){D=a().state;let c=a().securityLevel,l;c===`sandbox`&&(l=o(`#i`+n));let u=o(c===`sandbox`?l.nodes()[0].contentDocument.body:`body`),d=c===`sandbox`?l.nodes()[0].contentDocument:document;t.debug(`Rendering diagram `+e);let f=u.select(`[id='${n}']`);A(f),N(s.db.getRootDoc(),f.append(`g`).attr(`id`,n+`-root`),void 0,!1,u,d,s);let p=D.padding,m=f.node().getBBox(),h=m.width+p*2,g=m.height+p*2;r(f,g,h*1.75,D.useMaxWidth),f.attr(`viewBox`,`${m.x-D.padding} ${m.y-D.padding} `+h+` `+g)},`draw`),M=e(e=>e?e.length*D.fontSizeFactor:1,`getLabelWidth`),N=e((e,n,r,a,o,s,c)=>{let l=new u({compound:!0,multigraph:!0}),f,p=!0;for(f=0;f<e.length;f++)if(e[f].stmt===`relation`){p=!1;break}r?l.setGraph({rankdir:`LR`,multigraph:!0,compound:!0,ranker:`tight-tree`,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,isMultiGraph:!0}):l.setGraph({rankdir:`TB`,multigraph:!0,compound:!0,ranksep:p?1:D.edgeLengthFactor,nodeSep:p?1:50,ranker:`tight-tree`,isMultiGraph:!0}),l.setDefaultEdgeLabel(function(){return{}});let m=c.db.getStates(),h=c.db.getRelations(),g=Object.keys(m);for(let e of g){let t=m[e];r&&(t.parentId=r);let i;if(t.doc){let e=n.append(`g`).attr(`id`,t.id).attr(`class`,`stateGroup`);i=N(t.doc,e,t.id,!a,o,s,c);{e=y(e,t,a);let n=e.node().getBBox();i.width=n.width,i.height=n.height+D.padding/2,O[t.id]={y:D.compositTitleSize}}}else i=w(n,t,l);if(t.note){let e=w(n,{descriptions:[],id:t.id+`-note`,note:t.note,type:`note`},l);t.note.position===`left of`?(l.setNode(i.id+`-note`,e),l.setNode(i.id,i)):(l.setNode(i.id,i),l.setNode(i.id+`-note`,e)),l.setParent(i.id,i.id+`-group`),l.setParent(i.id+`-note`,i.id+`-group`)}else l.setNode(i.id,i)}t.debug(`Count=`,l.nodeCount(),l);let _=0;h.forEach(function(e){_++,t.debug(`Setting edge`,e),l.setEdge(e.id1,e.id2,{relation:e,width:M(e.title),height:D.labelHeight*i.getRows(e.title).length,labelpos:`c`},`id`+_)}),d(l),t.debug(`Graph after layout`,l.nodes());let v=n.node();l.nodes().forEach(function(e){e!==void 0&&l.node(e)!==void 0?(t.warn(`Node `+e+`: `+JSON.stringify(l.node(e))),o.select(`#`+v.id+` #`+e).attr(`transform`,`translate(`+(l.node(e).x-l.node(e).width/2)+`,`+(l.node(e).y+(O[e]?O[e].y:0)-l.node(e).height/2)+` )`),o.select(`#`+v.id+` #`+e).attr(`data-x-shift`,l.node(e).x-l.node(e).width/2),s.querySelectorAll(`#`+v.id+` #`+e+` .divider`).forEach(e=>{let t=e.parentElement,n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute(`data-x-shift`),10),Number.isNaN(r)&&(r=0)),e.setAttribute(`x1`,0-r+8),e.setAttribute(`x2`,n-r-8)})):t.debug(`No Node `+e+`: `+JSON.stringify(l.node(e)))});let b=v.getBBox();l.edges().forEach(function(e){e!==void 0&&l.edge(e)!==void 0&&(t.debug(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(l.edge(e))),E(n,l.edge(e),l.edge(e).relation))}),b=v.getBBox();let x={id:r||`root`,label:r||`root`,width:0,height:0};return x.width=b.width+2*D.padding,x.height=b.height+2*D.padding,t.debug(`Doc rendered`,x,l),x},`renderDoc`),P={parser:p,get db(){return new m(1)},renderer:{setConf:k,draw:j},styles:f,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{P as diagram};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-vfj7raQE.js";import"./src-DxLI2PjH.js";import"./chunk-WYO6CB5R-CrS71lvK.js";import"./chunk-ICXQ74PX-C63Xgr0O.js";import"./chunk-HOUHSVGY-B7v770iR.js";import"./chunk-Q4XR5HBZ-kztF5uGd.js";import"./chunk-7BUUIJ7U-Pr_5SKwD.js";import"./chunk-OGEWGWER-ChlRgYv3.js";import"./chunk-32BRIVSS-C-dyipE0.js";import"./chunk-XXDRQBXY-BbtIdjLE.js";import"./chunk-VR4S4FIN-BK5oYbfP.js";import"./chunk-C7G6YPKG-75F8nXGJ.js";import"./chunk-ZGVPDNZ5-B9_vMnln.js";import"./chunk-52WLFC77-C0TaY8su.js";import"./chunk-FWX5IMBZ-C4T9sOJA.js";import{i as t,n,r,t as i}from"./chunk-EX3LRPZG-ghIR61NM.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};