@inkeep/open-knowledge 0.46.0-beta.13 → 0.46.0-beta.14

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 (455) hide show
  1. package/dist/{acp-harness-probe-BfbkLxMd.mjs → acp-harness-probe-DyGzojAs.mjs} +2 -2
  2. package/dist/cli.mjs +49 -49
  3. package/dist/constants-BMl86IqT.mjs +2 -0
  4. package/dist/fs-traced-DB5c--Vd.mjs +1 -0
  5. package/dist/{fs-traced-B-x7hAhD.mjs → fs-traced-wfI5VoOz.mjs} +4 -4
  6. package/dist/git-handle-CMWGPj44.mjs +1 -0
  7. package/dist/{git-handle-M_t2H6C-.mjs → git-handle-TtCDd9Le.mjs} +2 -2
  8. package/dist/index.mjs +1 -1
  9. package/dist/{init-DJvgtKke.mjs → init-UsHQ5nkw.mjs} +3 -3
  10. package/dist/init-YMPn7j-R.mjs +1 -0
  11. package/dist/{launch-json-removal-1939Vm-0.mjs → launch-json-removal-HQmTN2zF.mjs} +2 -2
  12. package/dist/{loader-DZ3vC2N-.mjs → loader-TX84kNNr.mjs} +3 -3
  13. package/dist/loader-_6OcHbvd.mjs +1 -0
  14. package/dist/md-manager-wJEAbIvp.mjs +2 -0
  15. package/dist/{open-browser-BsKTF04c.mjs → open-browser-BiK9JzSf.mjs} +2 -2
  16. package/dist/parse-worker.mjs +1 -1
  17. package/dist/{preview-Bfh6RWYE.mjs → preview-BO-_TVuU.mjs} +2 -2
  18. package/dist/preview-Ba0S1iHw.mjs +1 -0
  19. package/dist/public/assets/ActivityModeContent-D04ZTB05.js +1 -0
  20. package/dist/public/assets/{AgentDiffPane-DM8oQapu.js → AgentDiffPane-BCcrDXW5.js} +2 -2
  21. package/dist/public/assets/{AgentThreadClientBinder-BE7sGGt4.js → AgentThreadClientBinder--w-hCCkY.js} +1 -1
  22. package/dist/public/assets/AppMenubar-CMfyQoWX.js +1 -0
  23. package/dist/public/assets/{BugReportHistory-CaAYnGNR.js → BugReportHistory-DJ9tF746.js} +1 -1
  24. package/dist/public/assets/{BugReportHistoryDialog-DFfft492.js → BugReportHistoryDialog-8V1yE7Ti.js} +1 -1
  25. package/dist/public/assets/ChangedOutsideBadge-Jw_1ftdU.js +1 -0
  26. package/dist/public/assets/CodeMirrorPropInput-6uPyBi97.js +3 -0
  27. package/dist/public/assets/{ConfigSharingInfoTooltip-QTCODx7g.js → ConfigSharingInfoTooltip-BEi44Q-l.js} +1 -1
  28. package/dist/public/assets/{ConsentDialogBody-U4UzjnaQ.js → ConsentDialogBody-D6HuxFrl.js} +1 -1
  29. package/dist/public/assets/{CopyButton-O0Y9mXoH.js → CopyButton-C_GVjBMW.js} +1 -1
  30. package/dist/public/assets/{DiffView-kKTjtgKq.js → DiffView-KapiOFto.js} +1 -1
  31. package/dist/public/assets/DocumentContext-Ddtfw06F.js +38 -0
  32. package/dist/public/assets/EditorModeToggle-B622Ggff.js +1 -0
  33. package/dist/public/assets/EnableSyncConfirmDialog-Dt2Km8QO.js +1 -0
  34. package/dist/public/assets/FeedbackForm-BB-M0GcJ.js +1 -0
  35. package/dist/public/assets/{GraphPanel-DZVUW5Ne.js → GraphPanel-DAJMshWv.js} +2 -2
  36. package/dist/public/assets/ImportSkillDialog-7_9XdUL4.js +1 -0
  37. package/dist/public/assets/{LintConfigEditor-DZEV5zwj.js → LintConfigEditor-DoWT7p5q.js} +1 -1
  38. package/dist/public/assets/ManagedArtifactProperties-7dshK0Jv.js +2 -0
  39. package/dist/public/assets/ManagedArtifactProperties-_eOhIDmZ.js +1 -0
  40. package/dist/public/assets/McpConsentDialogBody-N1L0Uz4o.js +1 -0
  41. package/dist/public/assets/Mermaid-D-PR8Nq0.js +2 -0
  42. package/dist/public/assets/MermaidDocEditor-xVs3RYNL.js +1 -0
  43. package/dist/public/assets/RegisteredAgentIcon-CKpJ_hgB.js +1 -0
  44. package/dist/public/assets/ReportBugDialogBody-BOsNuOIC.js +3 -0
  45. package/dist/public/assets/SchemaConfigEditor-dViX9E3z.js +1 -0
  46. package/dist/public/assets/SessionsHost-DwEoO1aA.js +2 -0
  47. package/dist/public/assets/SettingsDialogBody-DapiVVeV.js +7 -0
  48. package/dist/public/assets/{ShareBranchSwitchDialog-D54uq5Dv.js → ShareBranchSwitchDialog-P949gbnF.js} +1 -1
  49. package/dist/public/assets/{ShareReceiveDialog-CoskdBM6.js → ShareReceiveDialog-Bhnm-iQX.js} +1 -1
  50. package/dist/public/assets/{ShareReceiveMissDialog-Byg3PSFa.js → ShareReceiveMissDialog-UEKRcm_k.js} +1 -1
  51. package/dist/public/assets/{SkillEditBanner-Dtk_Dd6-.js → SkillEditBanner-DLVzp3KP.js} +1 -1
  52. package/dist/public/assets/SkillModeBanner-BGvDA8_3.js +1 -0
  53. package/dist/public/assets/SkillOriginInline-D2WanLMv.js +1 -0
  54. package/dist/public/assets/SkillToolbarControls-hj3PWE0K.js +1 -0
  55. package/dist/public/assets/{SourceEditor-8qossd7Q.js → SourceEditor-JLV4zFVy.js} +1 -1
  56. package/dist/public/assets/{TerminalPanel-C4TfiKjZ.js → TerminalPanel-CJ96nwqY.js} +1 -1
  57. package/dist/public/assets/{TerminalWindowApp-BV4Va3sn.js → TerminalWindowApp-DJKxzDZB.js} +1 -1
  58. package/dist/public/assets/TextDocEditor-Bkkf7noz.js +1 -0
  59. package/dist/public/assets/{ThreadView-BZlK-XfA.js → ThreadView-BaD0xIEg.js} +3 -3
  60. package/dist/public/assets/{TimelineDiffPane-Ox3ktjmx.js → TimelineDiffPane-BwLDgxHU.js} +2 -2
  61. package/dist/public/assets/{abnfDiagram-VRR7QNED-CYyOqigz.js → abnfDiagram-VRR7QNED-DthMMUp7.js} +1 -1
  62. package/dist/public/assets/{agent-diff-store-BptHmEsn.js → agent-diff-store-P7Uc0zvh.js} +1 -1
  63. package/dist/public/assets/agent-visibility-Bj5OOTN2.js +1 -0
  64. package/dist/public/assets/{arc-DpnwTjlg.js → arc-D6dkQwuB.js} +1 -1
  65. package/dist/public/assets/architecture-TIHT7OUA-BY9GAchj.js +1 -0
  66. package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-BArScuNA.js → architectureDiagram-ZJ3FMSHR-D2AdknnG.js} +1 -1
  67. package/dist/public/assets/arrow-up-right-CinCNAo3.js +1 -0
  68. package/dist/public/assets/auth-state-cache-Du0vALuT.js +11 -0
  69. package/dist/public/assets/badge-BTPyRUGW.js +1 -0
  70. package/dist/public/assets/{blockDiagram-677ZJIJ3-BKdJnykw.js → blockDiagram-677ZJIJ3-CQpuKURY.js} +1 -1
  71. package/dist/public/assets/{braces-CqiL3TOP.js → braces-CsvuNjsR.js} +1 -1
  72. package/dist/public/assets/button-D3xSRfT4.js +1 -0
  73. package/dist/public/assets/{c4Diagram-LMCZKHZV-BGzHBzYq.js → c4Diagram-LMCZKHZV-vMnsf6JP.js} +1 -1
  74. package/dist/public/assets/calendar-DvE9J6Sj.js +1 -0
  75. package/dist/public/assets/{case-sensitive-DcowXaLf.js → case-sensitive-OXVu8f1h.js} +1 -1
  76. package/dist/public/assets/channel-Bkag9BhJ.js +1 -0
  77. package/dist/public/assets/check-D1JmbeH0.js +1 -0
  78. package/dist/public/assets/checkbox-CgM6fL3A.js +1 -0
  79. package/dist/public/assets/{chevron-down-BJumc1E_.js → chevron-down-BH5tpfEN.js} +1 -1
  80. package/dist/public/assets/chevron-left-CbL-Ysx_.js +1 -0
  81. package/dist/public/assets/chevron-right-COaV_K3r.js +1 -0
  82. package/dist/public/assets/chunk-2Q5K7J3B-BsdS7tBq.js +1 -0
  83. package/dist/public/assets/{chunk-32BRIVSS-DWFi-mYl.js → chunk-32BRIVSS-CVMNE9FE.js} +1 -1
  84. package/dist/public/assets/{chunk-52WLFC77-C3ewIu0v.js → chunk-52WLFC77-ByP8adiF.js} +1 -1
  85. package/dist/public/assets/{chunk-5FCAYU7R-DH0H_TSt.js → chunk-5FCAYU7R-apcsbWAl.js} +1 -1
  86. package/dist/public/assets/{chunk-5HE753X5-COZLeOUQ.js → chunk-5HE753X5-BApo3bqD.js} +1 -1
  87. package/dist/public/assets/{chunk-5JV3BV7I-BtSn9e5l.js → chunk-5JV3BV7I-BHpORvdP.js} +1 -1
  88. package/dist/public/assets/{chunk-5TONJI2A-CyVAUHQY.js → chunk-5TONJI2A-DFa3pMK9.js} +1 -1
  89. package/dist/public/assets/{chunk-5VM5RSS4-DkfDxTnu.js → chunk-5VM5RSS4-Dv_-BFYa.js} +1 -1
  90. package/dist/public/assets/{chunk-7BUUIJ7U-Bwj5weSU.js → chunk-7BUUIJ7U-CAEbPbJV.js} +1 -1
  91. package/dist/public/assets/{chunk-BIQX33UG-WShnA3hi.js → chunk-BIQX33UG-BAiXBHCK.js} +1 -1
  92. package/dist/public/assets/{chunk-BO2N2NFS-0fL-jnUT.js → chunk-BO2N2NFS-BuvkRQr-.js} +3 -3
  93. package/dist/public/assets/{chunk-C7G6YPKG-JOVwaeql.js → chunk-C7G6YPKG-1I7HAvac.js} +1 -1
  94. package/dist/public/assets/{chunk-CQNSW5MT-DmFd2LFl.js → chunk-CQNSW5MT-CWAJXUKm.js} +1 -1
  95. package/dist/public/assets/{chunk-CYSBUYHQ-BOCWcr_T.js → chunk-CYSBUYHQ-okSmY2v_.js} +1 -1
  96. package/dist/public/assets/{chunk-EMLP6XTP-_039-Ubh.js → chunk-EMLP6XTP-BoC1pbij.js} +1 -1
  97. package/dist/public/assets/{chunk-EX3LRPZG-CMgFCagr.js → chunk-EX3LRPZG-g376BU8Z.js} +1 -1
  98. package/dist/public/assets/{chunk-FWX5IMBZ-C4vKCoUv.js → chunk-FWX5IMBZ-C-l8NZxe.js} +2 -2
  99. package/dist/public/assets/{chunk-HOUHSVGY-CZX004Ef.js → chunk-HOUHSVGY-Do2Y3Btv.js} +1 -1
  100. package/dist/public/assets/{chunk-ICXQ74PX-B_iuJAXS.js → chunk-ICXQ74PX-Ce0LzbhW.js} +1 -1
  101. package/dist/public/assets/{chunk-JG7HCLWE-CtDpq51e.js → chunk-JG7HCLWE-KxXMgbns.js} +1 -1
  102. package/dist/public/assets/{chunk-JWPE2WC7-pDBBV-ex.js → chunk-JWPE2WC7-CEvGtkOv.js} +1 -1
  103. package/dist/public/assets/{chunk-MOJQB5TN-BOLftHeO.js → chunk-MOJQB5TN-CqgruPhq.js} +1 -1
  104. package/dist/public/assets/{chunk-MOZMSUNE-B90rFhRO.js → chunk-MOZMSUNE-_PphKf7-.js} +1 -1
  105. package/dist/public/assets/{chunk-OGEWGWER-dIUHPavN.js → chunk-OGEWGWER-DEtBK0B_.js} +1 -1
  106. package/dist/public/assets/{chunk-OSBZ3O6U-C8f7zxUa.js → chunk-OSBZ3O6U-CZ7_DsZG.js} +1 -1
  107. package/dist/public/assets/{chunk-PUDLZKDR-QPYzmUFw.js → chunk-PUDLZKDR-DOJ6xYbt.js} +1 -1
  108. package/dist/public/assets/{chunk-Q4XR5HBZ--1adMSrR.js → chunk-Q4XR5HBZ-BE54IG_w.js} +1 -1
  109. package/dist/public/assets/{chunk-QBLGF6JB-q87mQ87z.js → chunk-QBLGF6JB-DhkUA6kz.js} +1 -1
  110. package/dist/public/assets/{chunk-R7FJI6CG-B5NnR0wG.js → chunk-R7FJI6CG-C8R_fEMX.js} +1 -1
  111. package/dist/public/assets/{chunk-RYQCIY6F-BnIBPlEn.js → chunk-RYQCIY6F-BGQYOx1F.js} +1 -1
  112. package/dist/public/assets/{chunk-U6XO7XAA-DuxWv8i1.js → chunk-U6XO7XAA-S326EP4t.js} +1 -1
  113. package/dist/public/assets/{chunk-V7JOEXUC-zQePb8W4.js → chunk-V7JOEXUC-CRcOKbTq.js} +1 -1
  114. package/dist/public/assets/chunk-VAUOI2AC-Bwx73Zo5.js +1 -0
  115. package/dist/public/assets/{chunk-VR4S4FIN-DOfDyz67.js → chunk-VR4S4FIN-DI4tyiVg.js} +1 -1
  116. package/dist/public/assets/{chunk-WYO6CB5R-DAcO6KqN.js → chunk-WYO6CB5R-CB_foSvM.js} +1 -1
  117. package/dist/public/assets/chunk-XXDRQBXY-B0w7NWS1.js +1 -0
  118. package/dist/public/assets/{chunk-YOTPTUD7-DSjCnGGQ.js → chunk-YOTPTUD7-Df82opFk.js} +1 -1
  119. package/dist/public/assets/{chunk-ZGVPDNZ5-CnXHsnX3.js → chunk-ZGVPDNZ5-BwKc2ci4.js} +1 -1
  120. package/dist/public/assets/{chunk-ZIRB5QZD-rA251rHW.js → chunk-ZIRB5QZD-x2paC8Ym.js} +1 -1
  121. package/dist/public/assets/classDiagram-OUVF2IWQ-CBMdybof.js +1 -0
  122. package/dist/public/assets/classDiagram-v2-EOCWNBFH-_6omkEAt.js +1 -0
  123. package/dist/public/assets/{client-version-9mDVHFsH.js → client-version-CI3pzxaH.js} +1 -1
  124. package/dist/public/assets/{comment-chips-zzwDt2eW.js → comment-chips-Dffri1Xa.js} +2 -2
  125. package/dist/public/assets/{config-provider-CqysOmJk.js → config-provider-DpMwlMEo.js} +2 -2
  126. package/dist/public/assets/{cose-bilkent-JH36ORCC-BO3tFb1k.js → cose-bilkent-JH36ORCC-CYGNHPN1.js} +1 -1
  127. package/dist/public/assets/createLucideIcon-wbFLvDA-.js +1 -0
  128. package/dist/public/assets/cynefin-VYW2F7L2-Bld4CPSL.js +1 -0
  129. package/dist/public/assets/{cynefinDiagram-TSTJHNR4-kMgUnu_c.js → cynefinDiagram-TSTJHNR4-B2WpbGQm.js} +1 -1
  130. package/dist/public/assets/{dagre-VKFMJZFB-CgYSDfeg.js → dagre-VKFMJZFB-D9UQmJxN.js} +1 -1
  131. package/dist/public/assets/{dagre-DmGue-PX.js → dagre-m0poQDwd.js} +1 -1
  132. package/dist/public/assets/{diagram-FQU43EPY-XRWiX7Im.js → diagram-FQU43EPY-7M2ET6l3.js} +1 -1
  133. package/dist/public/assets/{diagram-G47NLZAW-BzqAYczi.js → diagram-G47NLZAW-DpsDaYFM.js} +1 -1
  134. package/dist/public/assets/{diagram-NH7WQ7WH-CAOpGCwL.js → diagram-NH7WQ7WH-CwGRC_4A.js} +1 -1
  135. package/dist/public/assets/{diagram-OA4YK3LP-CsYFi60N.js → diagram-OA4YK3LP-Cv8Yslyv.js} +1 -1
  136. package/dist/public/assets/{diagram-WEI45ONY-BPyyv8e3.js → diagram-WEI45ONY-BQVzDEI1.js} +1 -1
  137. package/dist/public/assets/{dialog-CkjkuWLF.js → dialog-C1XaLkpS.js} +1 -1
  138. package/dist/public/assets/{dist-D2AiGKcA.js → dist-B6UNek5u.js} +1 -1
  139. package/dist/public/assets/{dist-_8wb0R99.js → dist-BFl6CzPt.js} +1 -1
  140. package/dist/public/assets/{dist-Bdhn2jv42.js → dist-BUtHqenk2.js} +1 -1
  141. package/dist/public/assets/{dist-Dqtgp0QD2.js → dist-Bcmi_W0T2.js} +1 -1
  142. package/dist/public/assets/{dist-CEBfbNax.js → dist-CKIx-azO.js} +1 -1
  143. package/dist/public/assets/{dist-CTPwMRld.js → dist-CPb8nv1S.js} +1 -1
  144. package/dist/public/assets/{dist-C2ZNHEgX.js → dist-CWm4Y27g.js} +1 -1
  145. package/dist/public/assets/{dist-FPlC48Ke.js → dist-CZ_7whgD.js} +1 -1
  146. package/dist/public/assets/{dist-BK-fqCFD.js → dist-CqYx5K2X.js} +1 -1
  147. package/dist/public/assets/{dist-B4smVaZm2.js → dist-D8RKvolB2.js} +179 -179
  148. package/dist/public/assets/{dist-MQd-Irtl.js → dist-DH19Ha9g.js} +1 -1
  149. package/dist/public/assets/{dist-CKHaw45-.js → dist-DXiLicfm.js} +1 -1
  150. package/dist/public/assets/{dist-DA8rIjtg.js → dist-DhhvZ-Fu.js} +1 -1
  151. package/dist/public/assets/{dist-BkSGIgDv.js → dist-Dibn-GMd.js} +1 -1
  152. package/dist/public/assets/{doc-paths-DPN-3rhq.js → doc-paths-C6_l5qhr.js} +1 -1
  153. package/dist/public/assets/{documents-events-DYwaAqwG.js → documents-events-Bh1LSWeJ.js} +1 -1
  154. package/dist/public/assets/{download-D3RTVXwv.js → download-DLNGh9PS.js} +1 -1
  155. package/dist/public/assets/dropdown-menu-BvpO8ueR.js +1 -0
  156. package/dist/public/assets/{ebnfDiagram-CCIWWBDH-CUTAjine.js → ebnfDiagram-CCIWWBDH-DMAh9nKT.js} +1 -1
  157. package/dist/public/assets/{erDiagram-Q63AITRT-BSu96D8g.js → erDiagram-Q63AITRT-DKFiE0Vo.js} +1 -1
  158. package/dist/public/assets/{esm-DbmiTy2g.js → esm-C2ewNoEu.js} +1 -1
  159. package/dist/public/assets/eventmodeling-45OFAUF4-BM0_rW2P.js +1 -0
  160. package/dist/public/assets/{eye-yERBaQWj.js → eye-DDAm7EsR.js} +1 -1
  161. package/dist/public/assets/field-Cq66GDVw.js +1 -0
  162. package/dist/public/assets/file-tree-adapter-B4ykQtEb.js +1 -0
  163. package/dist/public/assets/{file-tree-utils-BYKXMiDK.js → file-tree-utils-COZ5qd1A.js} +1 -1
  164. package/dist/public/assets/flowDiagram-23GEKE2U-B4eMpKzl.js +1 -0
  165. package/dist/public/assets/{folder-8ceGqZIO.js → folder-CnSwxkO-.js} +1 -1
  166. package/dist/public/assets/{folder-config-api-CDok_aFN.js → folder-config-api-CqtfjrQF.js} +1 -1
  167. package/dist/public/assets/{folder-open-CvyyCBOn.js → folder-open-BKx7QmM_.js} +1 -1
  168. package/dist/public/assets/follow-file-bH1z3rvn.js +1 -0
  169. package/dist/public/assets/form-VEn6ZPb_.js +1 -0
  170. package/dist/public/assets/{ganttDiagram-NO4QXBWP-Crrr-q7s.js → ganttDiagram-NO4QXBWP--SJpls7L.js} +1 -1
  171. package/dist/public/assets/{git-branch-oPfvsh1I.js → git-branch-v159JGOd.js} +1 -1
  172. package/dist/public/assets/gitGraph-TEB2WS4Q-BFnnOjnN.js +1 -0
  173. package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-BdMHODo-.js → gitGraphDiagram-IHSO6WYX-B1AjnInE.js} +1 -1
  174. package/dist/public/assets/{globals-DpFuWoOb.js → globals-prQJiwR-.js} +2 -2
  175. package/dist/public/assets/{graphlib-DIVfLvlR.js → graphlib-D6a-9iLo.js} +1 -1
  176. package/dist/public/assets/{hash-DP25l_li.js → hash-DId30u-_.js} +1 -1
  177. package/dist/public/assets/{highlighted-body-OFNGDK62-Cue0vPGT.js → highlighted-body-OFNGDK62-xJQZHz65.js} +1 -1
  178. package/dist/public/assets/index-C3pQc8vq.js +2092 -0
  179. package/dist/public/assets/{info-Bza7Xa6D.js → info-BcCY_Or2.js} +1 -1
  180. package/dist/public/assets/info-DKCQHKI2-C4iD29MB.js +1 -0
  181. package/dist/public/assets/{infoDiagram-FWYZ7A6U-_RNxdwPC.js → infoDiagram-FWYZ7A6U-DBicCXZU.js} +1 -1
  182. package/dist/public/assets/input-CdGQDWjM.js +1 -0
  183. package/dist/public/assets/input-group-C_zrpbIa.js +1 -0
  184. package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-BbXzN7UF.js → ishikawaDiagram-FXEZZL3T-B5hPGOul.js} +1 -1
  185. package/dist/public/assets/{journeyDiagram-5HDEW3XC-BqwkEnJh.js → journeyDiagram-5HDEW3XC-Dl3OnoGl.js} +1 -1
  186. package/dist/public/assets/{kanban-definition-HUTT4EX6-CX-ROP0U.js → kanban-definition-HUTT4EX6-maq6lkuf.js} +1 -1
  187. package/dist/public/assets/label-CGqMAe0S.js +1 -0
  188. package/dist/public/assets/{line-D0lohJ6a.js → line-B2_EkJOy.js} +1 -1
  189. package/dist/public/assets/{linear-By98wvuz.js → linear-Bskk1XDV.js} +1 -1
  190. package/dist/public/assets/{lint-config-client-CqIt6_m6.js → lint-config-client-bEZXQCEN.js} +1 -1
  191. package/dist/public/assets/loader-circle-A8fM_hha.js +1 -0
  192. package/dist/public/assets/{map-XagOZNs9.js → map-BEHMQBu2.js} +1 -1
  193. package/dist/public/assets/{markdownlint-rule-browser-B9Uf4v2H.js → markdownlint-rule-browser-DSfETRq3.js} +1 -1
  194. package/dist/public/assets/mermaid-GHXKKRXX-DE1sjxOE.js +1 -0
  195. package/dist/public/assets/{mermaid-parser.core-DtOR1aVt.js → mermaid-parser.core-DDjZMctQ.js} +2 -2
  196. package/dist/public/assets/{mermaid.core-DFRkYHGF.js → mermaid.core-DJBoiuub.js} +3 -3
  197. package/dist/public/assets/{mindmap-definition-LN4V7U3C-BPq8CY-V.js → mindmap-definition-LN4V7U3C-BMKM5jZf.js} +1 -1
  198. package/dist/public/assets/minus-BqVmr9UG.js +1 -0
  199. package/dist/public/assets/{miss-dialog-store-DBqQ_Nyn.js → miss-dialog-store-CU8cCSmK.js} +1 -1
  200. package/dist/public/assets/navigation-targets-x6iOvvv-.js +1 -0
  201. package/dist/public/assets/{now-BJ6wHiq6.js → now-DQUsv__I.js} +1 -1
  202. package/dist/public/assets/{open-managed-artifact-tab-BRW0Boal.js → open-managed-artifact-tab-D7O6shhm.js} +1 -1
  203. package/dist/public/assets/{ordinal-BhGTF2Fp.js → ordinal-Cy_9j7oo.js} +1 -1
  204. package/dist/public/assets/packet-7NZHBO7P-7H_SSh7g.js +1 -0
  205. package/dist/public/assets/panel-Boo96yEj.js +1 -0
  206. package/dist/public/assets/{panel-right-open-ChixO1pm.js → panel-right-open-mOxBnqyo.js} +1 -1
  207. package/dist/public/assets/{paperclip-CFZOhV8C.js → paperclip-mdBEQ0WS.js} +1 -1
  208. package/dist/public/assets/{pegDiagram-2B236MQR-Bs6HaUdW.js → pegDiagram-2B236MQR-XqQZD2V0.js} +1 -1
  209. package/dist/public/assets/{pending-receive-nav-store-C5kqBBL2.js → pending-receive-nav-store-D4P72ovr.js} +1 -1
  210. package/dist/public/assets/pie-RZYD4A2V-B5KrTLE6.js +1 -0
  211. package/dist/public/assets/{pieDiagram-ENE6RG2P-BBo6EMS4.js → pieDiagram-ENE6RG2P-BtvwA4qL.js} +1 -1
  212. package/dist/public/assets/project-paths-CqnImr76.js +1 -0
  213. package/dist/public/assets/{prop-types-CwT5q2dg.js → prop-types-BfZ_j9wJ.js} +1 -1
  214. package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-qmZeOoSr.js → quadrantDiagram-ABIIQ3AL-CI6wpHnQ.js} +1 -1
  215. package/dist/public/assets/radar-I7S5WNFK-BmyXCsHA.js +1 -0
  216. package/dist/public/assets/radio-group-DxMM4tU-.js +1 -0
  217. package/dist/public/assets/railroad-3IZDKUUU-BR0L2Ycb.js +1 -0
  218. package/dist/public/assets/railroad-abnf-AHOZXSZD-BJSVlTW3.js +1 -0
  219. package/dist/public/assets/railroad-ebnf-EBAXGLYW-DQeJc96K.js +1 -0
  220. package/dist/public/assets/railroad-peg-LSFZ7HO6-BOBB_YAC.js +1 -0
  221. package/dist/public/assets/{railroadDiagram-RFXS5EU6-DE_EvwtV.js → railroadDiagram-RFXS5EU6-esD3LX2s.js} +1 -1
  222. package/dist/public/assets/{receive-store-9n3T9AKo.js → receive-store-C-X60pJ_.js} +1 -1
  223. package/dist/public/assets/{refresh-cw-D3t5sdqM.js → refresh-cw-CsRXA9N2.js} +1 -1
  224. package/dist/public/assets/{requirementDiagram-TGXJPOKE-BZ-rKt8B.js → requirementDiagram-TGXJPOKE-BInMn3Xh.js} +1 -1
  225. package/dist/public/assets/{sankeyDiagram-HTMAVEWB-B9AZEJIc.js → sankeyDiagram-HTMAVEWB-DjH7kut4.js} +1 -1
  226. package/dist/public/assets/schema-fields-view-intent-ywCTOcjb.js +1 -0
  227. package/dist/public/assets/select-BVnl5AhR.js +1 -0
  228. package/dist/public/assets/{selection-context-Ei6PWK1c.js → selection-context-UHJm7wNO.js} +1 -1
  229. package/dist/public/assets/separator-BhGCtoZc.js +1 -0
  230. package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-DR0l3jeO.js → sequenceDiagram-DBY2YBRQ-D9rSuKJA.js} +1 -1
  231. package/dist/public/assets/{sizeCapture-X5ZJPWSS-CK3vwB3X.js → sizeCapture-X5ZJPWSS-BpnFIdO9.js} +1 -1
  232. package/dist/public/assets/skeleton-CD1oYYfF.js +1 -0
  233. package/dist/public/assets/skill-actions-Dm5ldBEc.js +2 -0
  234. package/dist/public/assets/{skill-scope-QSVdjA7g.js → skill-scope-B58Ho5RB.js} +1 -1
  235. package/dist/public/assets/{skills-api-DPk4ScTz.js → skills-api-CcFN0_Po.js} +1 -1
  236. package/dist/public/assets/{square-pen-wqme9vlv.js → square-pen-BbETm_LZ.js} +1 -1
  237. package/dist/public/assets/{src-rG3yqT5Z.js → src--VBSbHrD.js} +1 -1
  238. package/dist/public/assets/{src-DsJU4LsJ.js → src-D9tbVCHI.js} +1 -1
  239. package/dist/public/assets/{stateDiagram-2N3HPSRC-DEWfQHsO.js → stateDiagram-2N3HPSRC-B0iumw-I.js} +1 -1
  240. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-nM3zWRo5.js +1 -0
  241. package/dist/public/assets/{swimlanes-5IMT3BWC-B6x4Ld9j.js → swimlanes-5IMT3BWC-DPME_yO4.js} +2 -2
  242. package/dist/public/assets/swimlanesDiagram-G3AALYLV-Bkn7cRsX.js +8 -0
  243. package/dist/public/assets/switch-BQ3qkbBx.js +1 -0
  244. package/dist/public/assets/tabs-C54rwljA.js +1 -0
  245. package/dist/public/assets/tag-pill-input-Br5GXzD6.js +1 -0
  246. package/dist/public/assets/{target-navigation-intent-Bo9uuBEh.js → target-navigation-intent-DEjv2wu2.js} +1 -1
  247. package/dist/public/assets/{telemetry-impl-D4kQ8pzt.js → telemetry-impl-D5iNhayi.js} +2 -2
  248. package/dist/public/assets/{telemetry-startup-B15S0fJ7.js → telemetry-startup-gGtzcYyd.js} +1 -1
  249. package/dist/public/assets/terminal-input-events-D7rv6nZZ.js +1 -0
  250. package/dist/public/assets/terminal-launch-events-cds9D2zG.js +1 -0
  251. package/dist/public/assets/{terminal-telemetry-46cHbbgd.js → terminal-telemetry-B0_vjUSm.js} +1 -1
  252. package/dist/public/assets/text-viewer-languages-BHFZCAL-.js +2 -0
  253. package/dist/public/assets/textarea-BzPGvj03.js +1 -0
  254. package/dist/public/assets/{thread-client-DpMjiK2J.js → thread-client-DmkqHx9Q.js} +1 -1
  255. package/dist/public/assets/{timeline-definition-FHXFAJF6-DB7l9JZO.js → timeline-definition-FHXFAJF6-DXT31kug.js} +1 -1
  256. package/dist/public/assets/toggle-group-DpvWeoN9.js +1 -0
  257. package/dist/public/assets/tooltip-CtvLp_YK.js +1 -0
  258. package/dist/public/assets/{trash-2-5vqPZUBk.js → trash-2-4ZuuBm4P.js} +1 -1
  259. package/dist/public/assets/treeView-QDETBFTQ-BmMqItzI.js +1 -0
  260. package/dist/public/assets/treemap-6X3UGDF4-muRT0NuT.js +1 -0
  261. package/dist/public/assets/{triangle-alert-BwCftF1V.js → triangle-alert-BB_1Bz59.js} +1 -1
  262. package/dist/public/assets/{typing-burst-detector-CKkV0qHr.js → typing-burst-detector-BOmCFurR.js} +1 -1
  263. package/dist/public/assets/{undo-2-BRIW1mxN.js → undo-2-BxTugTzj.js} +1 -1
  264. package/dist/public/assets/uninstall-DNe6MvBi.js +1 -0
  265. package/dist/public/assets/{use-activity-panel-BrntKM08.js → use-activity-panel-DbcErwrL.js} +1 -1
  266. package/dist/public/assets/{use-apply-config-color-theme-BeVjXtPt.js → use-apply-config-color-theme-C5xWr7J7.js} +2 -2
  267. package/dist/public/assets/{use-collab-url-DNKvlkVI.js → use-collab-url-D_rLtDaU.js} +1 -1
  268. package/dist/public/assets/{use-live-xterm-theme-zW4nzNGd.js → use-live-xterm-theme-KQpLA6Ig.js} +1 -1
  269. package/dist/public/assets/{use-open-skill-Bs2T3l_Z.js → use-open-skill-BYpqVFnY.js} +1 -1
  270. package/dist/public/assets/{use-settings-route-Dw-Hb0ex.js → use-settings-route-xhvjUTtD.js} +1 -1
  271. package/dist/public/assets/{use-skill-directory-CB4briga.js → use-skill-directory-CZ_74a8P.js} +1 -1
  272. package/dist/public/assets/{use-skills-luzjx-1h.js → use-skills-DBT082yp.js} +1 -1
  273. package/dist/public/assets/{use-terminal-enabled-BmqysEmJ.js → use-terminal-enabled-BtMJcFpZ.js} +1 -1
  274. package/dist/public/assets/{use-timeline-entry-diff-5XrGZxUG.js → use-timeline-entry-diff-CHAJ_uzb.js} +2 -2
  275. package/dist/public/assets/{use-workspace-Bi_k2cyZ.js → use-workspace-D6_5od5W.js} +1 -1
  276. package/dist/public/assets/utils-CPqDy6Hr.js +1 -0
  277. package/dist/public/assets/{vennDiagram-L72KCM5P-D6bPpaIm.js → vennDiagram-L72KCM5P-DIsQhsUb.js} +1 -1
  278. package/dist/public/assets/wardley-OPB4EBWU-vOd_RJdo.js +1 -0
  279. package/dist/public/assets/{wardleyDiagram-EHGQE667-9U25ZM8P.js → wardleyDiagram-EHGQE667-CeHWZQuw.js} +1 -1
  280. package/dist/public/assets/{wrench-CqOvU1qQ.js → wrench-BHZvMfZp.js} +1 -1
  281. package/dist/public/assets/x-BL2rz544.js +1 -0
  282. package/dist/public/assets/{xychartDiagram-FW5EYKEG-WSgFIUEO.js → xychartDiagram-FW5EYKEG-5ub1f-kN.js} +1 -1
  283. package/dist/public/index.html +131 -128
  284. package/dist/public/uninstall.html +17 -16
  285. package/dist/{repair-launch-json-BnuZxbzl.mjs → repair-launch-json-Cc9RPEk-.mjs} +2 -2
  286. package/dist/{repair-mcp-configs-Cbg7X3jU.mjs → repair-mcp-configs-Bk7nIh5R.mjs} +2 -2
  287. package/dist/{repair-skills-dd5mv1UC.mjs → repair-skills-BMYnxn3h.mjs} +2 -2
  288. package/dist/repair-skills-C-ey2QcX.mjs +1 -0
  289. package/dist/{server-lock-CiLY7g7M.mjs → server-lock-CCS3UzJQ.mjs} +2 -2
  290. package/dist/server-lock-CKTWPQax.mjs +1 -0
  291. package/dist/{sleep-IcuyYCzq.mjs → sleep-TXRFWg8x.mjs} +5 -5
  292. package/dist/{src-vPHpv2Pv.mjs → src-C9yhZBbO.mjs} +21 -21
  293. package/dist/src-CJQ7Tr0x.mjs +2030 -0
  294. package/dist/{src-BV_ssChu.mjs → src-DDzpg6rN.mjs} +2 -2
  295. package/dist/{src-FJfcW5Wa.mjs → src-Dmoupsem.mjs} +1 -1
  296. package/dist/{start-CrQRZ2iN.mjs → start-BPeS-cjq.mjs} +3 -3
  297. package/dist/start-BRdG0jJw.mjs +1 -0
  298. package/dist/{write-project-skill-9Bg5smOa.mjs → write-project-skill-DPGLaFfB.mjs} +2 -2
  299. package/package.json +5 -5
  300. package/dist/constants-Tj2BXHLz.mjs +0 -2
  301. package/dist/fs-traced-Bi88qem0.mjs +0 -1
  302. package/dist/git-handle-CIs--jPt.mjs +0 -1
  303. package/dist/init-DAEIZfnY.mjs +0 -1
  304. package/dist/loader-DjGgIOZB.mjs +0 -1
  305. package/dist/md-manager-BYBAWLMu.mjs +0 -2
  306. package/dist/preview-BRsYNNVp.mjs +0 -1
  307. package/dist/public/assets/ActivityModeContent-DBIuWjYz.js +0 -1
  308. package/dist/public/assets/AppMenubar-7eBxIB37.js +0 -1
  309. package/dist/public/assets/ChangedOutsideBadge-HeyxmqeX.js +0 -1
  310. package/dist/public/assets/CodeMirrorPropInput-ni9vC7Fz.js +0 -3
  311. package/dist/public/assets/DocumentContext-DOLytv_M.js +0 -38
  312. package/dist/public/assets/EditorModeToggle-CNorGTYw.js +0 -2
  313. package/dist/public/assets/EnableSyncConfirmDialog-BIggEySP.js +0 -1
  314. package/dist/public/assets/FeedbackForm-CxZ7wWPb.js +0 -1
  315. package/dist/public/assets/ImportSkillDialog-CDNt7ygs.js +0 -1
  316. package/dist/public/assets/ManagedArtifactProperties-AwlBn5fa.js +0 -1
  317. package/dist/public/assets/ManagedArtifactProperties-DUL9cmXF.js +0 -2
  318. package/dist/public/assets/McpConsentDialogBody-BMrE5RK5.js +0 -1
  319. package/dist/public/assets/MermaidDocEditor-DNa5Mst7.js +0 -1
  320. package/dist/public/assets/RegisteredAgentIcon-CHh3fima.js +0 -1
  321. package/dist/public/assets/ReportBugDialogBody-C3Dct-EA.js +0 -3
  322. package/dist/public/assets/SchemaConfigEditor-IN_XqunA.js +0 -1
  323. package/dist/public/assets/SessionsHost-CYxR-RCl.js +0 -2
  324. package/dist/public/assets/SettingsDialogBody-zEVCcY6i.js +0 -7
  325. package/dist/public/assets/SkillModeBanner-CsKHM-QY.js +0 -1
  326. package/dist/public/assets/SkillOriginInline-Bi8XGbK6.js +0 -1
  327. package/dist/public/assets/SkillToolbarControls-t4VQIap4.js +0 -1
  328. package/dist/public/assets/agent-visibility-Bt2OD_n5.js +0 -1
  329. package/dist/public/assets/architecture-TIHT7OUA-Bl7-zFAE.js +0 -1
  330. package/dist/public/assets/arrow-up-right-BZsQghvQ.js +0 -1
  331. package/dist/public/assets/auth-state-cache-DpJsYOVr.js +0 -11
  332. package/dist/public/assets/badge-DB5BJfSU.js +0 -1
  333. package/dist/public/assets/button-oSXzJYWO.js +0 -1
  334. package/dist/public/assets/calendar-C2lP75MI.js +0 -1
  335. package/dist/public/assets/channel-Bf_IZmsH.js +0 -1
  336. package/dist/public/assets/check-DA7_vRdO.js +0 -1
  337. package/dist/public/assets/checkbox-DYPwCq3O.js +0 -1
  338. package/dist/public/assets/chevron-left-D8z-buF6.js +0 -1
  339. package/dist/public/assets/chevron-right-CgsPV9lV.js +0 -1
  340. package/dist/public/assets/chunk-2Q5K7J3B-CBNXZghD.js +0 -1
  341. package/dist/public/assets/chunk-VAUOI2AC-K9aKY8La.js +0 -1
  342. package/dist/public/assets/chunk-XXDRQBXY-CRN6FsNM.js +0 -1
  343. package/dist/public/assets/classDiagram-OUVF2IWQ-B8NyhReL.js +0 -1
  344. package/dist/public/assets/classDiagram-v2-EOCWNBFH-To5zrK6k.js +0 -1
  345. package/dist/public/assets/createLucideIcon-BiRV80uZ.js +0 -1
  346. package/dist/public/assets/cynefin-VYW2F7L2-DjK3ZZKp.js +0 -1
  347. package/dist/public/assets/dropdown-menu-D2umi56L.js +0 -1
  348. package/dist/public/assets/eventmodeling-45OFAUF4-C3gCuhXd.js +0 -1
  349. package/dist/public/assets/field-i4kPdg1V.js +0 -1
  350. package/dist/public/assets/file-tree-adapter-B3YYQMKE.js +0 -1
  351. package/dist/public/assets/flowDiagram-23GEKE2U-V8thnmzy.js +0 -1
  352. package/dist/public/assets/follow-file-BpD8YozT.js +0 -1
  353. package/dist/public/assets/form-lIFpKMVU.js +0 -1
  354. package/dist/public/assets/gitGraph-TEB2WS4Q-BERn_Vnm.js +0 -1
  355. package/dist/public/assets/index-Bbf0BHeh.js +0 -2092
  356. package/dist/public/assets/info-DKCQHKI2-xuBgM0S3.js +0 -1
  357. package/dist/public/assets/input-C4n4n5Hc.js +0 -1
  358. package/dist/public/assets/input-group-C_H5NgPX.js +0 -1
  359. package/dist/public/assets/label-Ds0LTB-Z.js +0 -1
  360. package/dist/public/assets/loader-circle-Cn2Xr4cN.js +0 -1
  361. package/dist/public/assets/mermaid-GHXKKRXX-CFTslKYT.js +0 -1
  362. package/dist/public/assets/minus-CBRjUXY7.js +0 -1
  363. package/dist/public/assets/navigation-targets-CvdOYknS.js +0 -1
  364. package/dist/public/assets/packet-7NZHBO7P-DhQWKabl.js +0 -1
  365. package/dist/public/assets/panel-FwLLPu5s.js +0 -1
  366. package/dist/public/assets/pie-RZYD4A2V-DaewLp2Y.js +0 -1
  367. package/dist/public/assets/project-paths-Cgrv2qcw.js +0 -1
  368. package/dist/public/assets/radar-I7S5WNFK-DljmjJ2C.js +0 -1
  369. package/dist/public/assets/radio-group-DFFiLDEM.js +0 -1
  370. package/dist/public/assets/railroad-3IZDKUUU-6CgLOfBJ.js +0 -1
  371. package/dist/public/assets/railroad-abnf-AHOZXSZD-DQ60e1aW.js +0 -1
  372. package/dist/public/assets/railroad-ebnf-EBAXGLYW-Da8xQ_1N.js +0 -1
  373. package/dist/public/assets/railroad-peg-LSFZ7HO6-CDOeiUF5.js +0 -1
  374. package/dist/public/assets/schema-fields-view-intent-SQVE5W3s.js +0 -1
  375. package/dist/public/assets/select-DyVZCohx.js +0 -1
  376. package/dist/public/assets/separator-4_yBRx-q.js +0 -1
  377. package/dist/public/assets/skeleton-BlTc8h6X.js +0 -1
  378. package/dist/public/assets/skill-actions-6lbXpkx6.js +0 -2
  379. package/dist/public/assets/stateDiagram-v2-6OUMAXLB-aJyvpelO.js +0 -1
  380. package/dist/public/assets/swimlanesDiagram-G3AALYLV-NoFAxBaw.js +0 -8
  381. package/dist/public/assets/switch-CsstPO-E.js +0 -1
  382. package/dist/public/assets/tabs-C8ykgpIi.js +0 -1
  383. package/dist/public/assets/tag-pill-input-Bi-VYc9q.js +0 -1
  384. package/dist/public/assets/terminal-input-events-B8xUcID4.js +0 -1
  385. package/dist/public/assets/terminal-launch-events-CCUJ6bvs.js +0 -1
  386. package/dist/public/assets/textarea-DKb-eo87.js +0 -1
  387. package/dist/public/assets/toggle-group-DMfnQ5Pd.js +0 -1
  388. package/dist/public/assets/tooltip-DkZ6fphS.js +0 -1
  389. package/dist/public/assets/treeView-QDETBFTQ-Ds4YBLMo.js +0 -1
  390. package/dist/public/assets/treemap-6X3UGDF4-D2ccHx16.js +0 -1
  391. package/dist/public/assets/uninstall-C2Z7mcqE.js +0 -1
  392. package/dist/public/assets/wardley-OPB4EBWU-JuWm1scq.js +0 -1
  393. package/dist/public/assets/x-C6kVbc_i.js +0 -1
  394. package/dist/repair-skills-PgjKx2Kj.mjs +0 -1
  395. package/dist/server-lock-toF-I3k7.mjs +0 -1
  396. package/dist/src-BexdiJ2F.mjs +0 -2030
  397. package/dist/start-CBKXj6gj.mjs +0 -1
  398. /package/dist/public/assets/{ActivityPanelDiffView-ZX0cv7Dl.js → ActivityPanelDiffView-DmVrPrCH.js} +0 -0
  399. /package/dist/public/assets/{__vite-browser-external-DwydhYHF.js → __vite-browser-external-B4L9Bgvr.js} +0 -0
  400. /package/dist/public/assets/{agent-presence-BcWu61SE.js → agent-presence-CuSKbQIG.js} +0 -0
  401. /package/dist/public/assets/{array-DpLqdF3L.js → array-jB8ZVI0g.js} +0 -0
  402. /package/dist/public/assets/{auth-prompt-store-CmyRhcKh.js → auth-prompt-store-C7w8BqXG.js} +0 -0
  403. /package/dist/public/assets/{chunk-KEIR6QF5-Bf0oDx3Z.js → chunk-KEIR6QF5-BoNEB_HG.js} +0 -0
  404. /package/dist/public/assets/{chunk-Y2CYZVJY-PbmsUfAu.js → chunk-Y2CYZVJY-DCzjAn36.js} +0 -0
  405. /package/dist/public/assets/{clike-BrXLgO2o.js → clike-volkcHCn.js} +0 -0
  406. /package/dist/public/assets/{clipboard-adapter-B3lKEXcw.js → clipboard-adapter-DdkYoUY3.js} +0 -0
  407. /package/dist/public/assets/{colors-B-WRw0bG.js → colors-DP6EPL4e.js} +0 -0
  408. /package/dist/public/assets/{copilot-BkvifxDd.js → copilot-CYbxld_I.js} +0 -0
  409. /package/dist/public/assets/{cursor-D-FuCbK1.js → cursor-CVuYJhcM.js} +0 -0
  410. /package/dist/public/assets/{cytoscape.esm-BkIkmBTc.js → cytoscape.esm-DBvPDb1U.js} +0 -0
  411. /package/dist/public/assets/{defaultLocale-DoD61tXl.js → defaultLocale-DHYtiGMG.js} +0 -0
  412. /package/dist/public/assets/{desktop-bridge-types-5ScET3Cg.js → desktop-bridge-types-ByIs2Wy8.js} +0 -0
  413. /package/dist/public/assets/{diff-DTEjW6Ec.js → diff-DCzkDf0s.js} +0 -0
  414. /package/dist/public/assets/{dist-D4eaXg-1.js → dist-CvBo_0Zd.js} +0 -0
  415. /package/dist/public/assets/{dist-DuwTJb1j.js → dist-D-OluTzV.js} +0 -0
  416. /package/dist/public/assets/{dist-CA7QPULb.js → dist-D5z-4WeG.js} +0 -0
  417. /package/dist/public/assets/{dist-6Q9yuoli.js → dist-DEf6luEB.js} +0 -0
  418. /package/dist/public/assets/{dist-BVbCw0G-.js → dist-Dr52ya0i.js} +0 -0
  419. /package/dist/public/assets/{documents-fetch-AfOPbdF_.js → documents-fetch-Ks0Eoaj3.js} +0 -0
  420. /package/dist/public/assets/{external-link-LAxhzgCI.js → external-link-CIs3ZL0b.js} +0 -0
  421. /package/dist/public/assets/{file-tree-rename-validation-CkkVvtpx.js → file-tree-rename-validation-D3F7wC1T.js} +0 -0
  422. /package/dist/public/assets/{format-Bj7zR862.js → format-B72MB8qy.js} +0 -0
  423. /package/dist/public/assets/{go-D3-a1upg.js → go-DJh4zI5a.js} +0 -0
  424. /package/dist/public/assets/{init-D0AX7DDe.js → init-tVp38eyI.js} +0 -0
  425. /package/dist/public/assets/{isObject-Bs1dF4ay.js → isObject-C7xg_t-t.js} +0 -0
  426. /package/dist/public/assets/{libesm-D5Z2fjiR.js → libesm-BjhN8jLl.js} +0 -0
  427. /package/dist/public/assets/{lint-plugin-meta-DEfDN-Lf.js → lint-plugin-meta-7A6ZrPoH.js} +0 -0
  428. /package/dist/public/assets/{lru-string-cache-CHVwK1CS.js → lru-string-cache-CTK2PJbw.js} +0 -0
  429. /package/dist/public/assets/{lua-B71IklsF.js → lua-xZf4SjJ3.js} +0 -0
  430. /package/dist/public/assets/{mcp-consent-store-B7QM8uoo.js → mcp-consent-store-CsArEV-K.js} +0 -0
  431. /package/dist/public/assets/{min-nSRrTGDE.js → min-GIYS61kh.js} +0 -0
  432. /package/dist/public/assets/{overlay-layers-cTOQ-1PW.js → overlay-layers-gL_2dQqz.js} +0 -0
  433. /package/dist/public/assets/{panzoom.es-D_Inq3Bn.js → panzoom.es-CKxXrXUu.js} +0 -0
  434. /package/dist/public/assets/{parse-api-error-CqQte8A1.js → parse-api-error-9c-Rs5WJ.js} +0 -0
  435. /package/dist/public/assets/{path-rUjnF-It.js → path-BYW9Uhnc.js} +0 -0
  436. /package/dist/public/assets/{pdf-B6i840eQ.js → pdf-CGE64eYM.js} +0 -0
  437. /package/dist/public/assets/{pdf.worker-BVtQmJKT.js → pdf.worker-Cxt0GdPg.js} +0 -0
  438. /package/dist/public/assets/{perl-B5Ul8OcV.js → perl-BwX6Ksou.js} +0 -0
  439. /package/dist/public/assets/{properties-CWbs0haa.js → properties-DagD85j5.js} +0 -0
  440. /package/dist/public/assets/{r-DcrAlDW2.js → r-DUn7ZAa_.js} +0 -0
  441. /package/dist/public/assets/{rough.esm-BfebUORF.js → rough.esm-xhKrnp4d.js} +0 -0
  442. /package/dist/public/assets/{ruby-i1xYQ9jV.js → ruby-BIPfMRfv.js} +0 -0
  443. /package/dist/public/assets/{share-metadata-rows-D1HTNYwn.js → share-metadata-rows-Ci33wJ2t.js} +0 -0
  444. /package/dist/public/assets/{shell-cUw_P8eQ.js → shell-Cq5Ihso3.js} +0 -0
  445. /package/dist/public/assets/{sortable.esm-ByX1chKY.js → sortable.esm-Dngr9VJ1.js} +0 -0
  446. /package/dist/public/assets/{sql-xiwUJ94E.js → sql-C1ugTeux.js} +0 -0
  447. /package/dist/public/assets/{src-DkpCd49O.js → src-o9HvXeVZ.js} +0 -0
  448. /package/dist/public/assets/{startup-marks-BHZdrXwz.js → startup-marks-BFvG00Uu.js} +0 -0
  449. /package/dist/public/assets/{stex-rJmw0eOd.js → stex-BRz73jPo.js} +0 -0
  450. /package/dist/public/assets/{swift-Cl1DeyT6.js → swift-DG2ERlv4.js} +0 -0
  451. /package/dist/public/assets/{thread-draft-staging-CygDRDTa.js → thread-draft-staging-CcGOkG5T.js} +0 -0
  452. /package/dist/public/assets/{timeline-diff-store-C89mH-2r.js → timeline-diff-store-BYDskbwd.js} +0 -0
  453. /package/dist/public/assets/{toml-B2JpJCpy.js → toml-_AQXZoMV.js} +0 -0
  454. /package/dist/public/assets/{use-installed-clis-BR1AXhaE.js → use-installed-clis-a0f5-upA.js} +0 -0
  455. /package/dist/public/assets/{useLintConfigViewMode-eMibVVkV.js → useLintConfigViewMode-RQ4d4hHC.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-Y2CYZVJY-PbmsUfAu.js";import{t as n}from"./src-DsJU4LsJ.js";import{J as r,a as i,b as a,et as o,o as s,rt as c,tt as l,x as u}from"./chunk-WYO6CB5R-DAcO6KqN.js";import{C as d}from"./src-DkpCd49O.js";import{t as f}from"./arc-DpnwTjlg.js";import{p}from"./chunk-ICXQ74PX-B_iuJAXS.js";import{t as m}from"./chunk-VAUOI2AC-K9aKY8La.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},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,t}from"./chunk-Y2CYZVJY-DCzjAn36.js";import{t as n}from"./src-D9tbVCHI.js";import{J as r,a as i,b as a,et as o,o as s,rt as c,tt as l,x as u}from"./chunk-WYO6CB5R-CB_foSvM.js";import{C as d}from"./src-o9HvXeVZ.js";import{t as f}from"./arc-D6dkQwuB.js";import{p}from"./chunk-ICXQ74PX-Ce0LzbhW.js";import{t as m}from"./chunk-VAUOI2AC-Bwx73Zo5.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},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`)};u.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()+`
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{r as a}from"./button-D3xSRfT4.js";import{c as o,i as s,l as c,o as l}from"./dist-BCIZY0Wq.js";import{t as u}from"./dist-BVNHmhkE.js";import{n as d,r as f,t as p}from"./dist-D57Bktz_.js";var m=e(n(),1),h=t(),g=`Toggle`,_=m.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,u]=s({prop:n,onChange:i,defaultProp:r??!1,caller:g});return(0,h.jsx)(c.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:l(e.onClick,()=>{e.disabled||u(!o)})})});_.displayName=g;var v=_,y=`ToggleGroup`,[b,x]=o(y,[f]),S=f(),C=m.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,h.jsx)(E,{...r,ref:t});if(n===`multiple`)return(0,h.jsx)(D,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${y}\``)});C.displayName=y;var[w,T]=b(y),E=m.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,c]=s({prop:n,defaultProp:r??``,onChange:i,caller:y});return(0,h.jsx)(w,{scope:e.__scopeToggleGroup,type:`single`,value:m.useMemo(()=>o?[o]:[],[o]),onItemActivate:c,onItemDeactivate:m.useCallback(()=>c(``),[c]),children:(0,h.jsx)(A,{...a,ref:t})})}),D=m.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,c]=s({prop:n,defaultProp:r??[],onChange:i,caller:y}),l=m.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=m.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,h.jsx)(w,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:l,onItemDeactivate:u,children:(0,h.jsx)(A,{...a,ref:t})})});C.displayName=y;var[O,k]=b(y),A=m.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...l}=e,f=S(n),p=u(o),m={role:`group`,dir:p,...l};return(0,h.jsx)(O,{scope:n,rovingFocus:i,disabled:r,children:i?(0,h.jsx)(d,{asChild:!0,...f,orientation:a,dir:p,loop:s,children:(0,h.jsx)(c.div,{...m,ref:t})}):(0,h.jsx)(c.div,{...m,ref:t})})}),j=`ToggleGroupItem`,M=m.forwardRef((e,t)=>{let n=T(j,e.__scopeToggleGroup),r=k(j,e.__scopeToggleGroup),i=S(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=m.useRef(null);return r.rovingFocus?(0,h.jsx)(p,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,h.jsx)(N,{...s,ref:t})}):(0,h.jsx)(N,{...s,ref:t})});M.displayName=j;var N=m.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=T(j,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,h.jsx)(_,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),P=C,F=M,I=r(),L=a(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`,segmented:`text-muted-foreground hover:bg-muted-foreground/10 data-[state=on]:bg-background data-[state=on]:shadow-sm data-[state=on]:text-foreground dark:data-[state=on]:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`}},defaultVariants:{variant:`default`,size:`default`}});function R(e){let t=(0,I.c)(14),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({className:n,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s=a===void 0?`default`:a,c=o===void 0?`default`:o,l;t[5]!==n||t[6]!==c||t[7]!==s?(l=i(L({variant:s,size:c,className:n})),t[5]=n,t[6]=c,t[7]=s,t[8]=l):l=t[8];let u;return t[9]!==r||t[10]!==c||t[11]!==l||t[12]!==s?(u=(0,h.jsx)(v,{"data-slot":`toggle`,"data-variant":s,"data-size":c,className:l,...r}),t[9]=r,t[10]=c,t[11]=l,t[12]=s,t[13]=u):u=t[13],u}var z=m.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function B(e){let t=(0,I.c)(29),n,r,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7]):({className:r,variant:l,size:o,spacing:s,orientation:c,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l);let u=s===void 0?0:s,d=c===void 0?`horizontal`:c,f;t[8]===u?f=t[9]:(f={"--gap":u},t[8]=u,t[9]=f);let p=f,m;t[10]===r?m=t[11]:(m=i(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,r),t[10]=r,t[11]=m);let g;t[12]!==d||t[13]!==o||t[14]!==u||t[15]!==l?(g={variant:l,size:o,spacing:u,orientation:d},t[12]=d,t[13]=o,t[14]=u,t[15]=l,t[16]=g):g=t[16];let _;t[17]!==n||t[18]!==g?(_=(0,h.jsx)(z.Provider,{value:g,children:n}),t[17]=n,t[18]=g,t[19]=_):_=t[19];let v;return t[20]!==d||t[21]!==a||t[22]!==o||t[23]!==u||t[24]!==p||t[25]!==m||t[26]!==_||t[27]!==l?(v=(0,h.jsx)(P,{"data-slot":`toggle-group`,"data-variant":l,"data-size":o,"data-spacing":u,"data-orientation":d,style:p,className:m,...a,children:_}),t[20]=d,t[21]=a,t[22]=o,t[23]=u,t[24]=p,t[25]=m,t[26]=_,t[27]=l,t[28]=v):v=t[28],v}function V(e){let t=(0,I.c)(19),n,r,a,o,s;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5]):({className:r,children:n,variant:o,size:s,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s);let c=o===void 0?`default`:o,l=s===void 0?`default`:s,u=m.use(z),d=u.variant||c,f=u.size||l,p=u.spacing,g;t[6]!==r||t[7]!==u.size||t[8]!==u.variant||t[9]!==l||t[10]!==c?(g=i(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t text-muted-foreground data-[state=on]:text-foreground`,L({variant:u.variant||c,size:u.size||l}),r),t[6]=r,t[7]=u.size,t[8]=u.variant,t[9]=l,t[10]=c,t[11]=g):g=t[11];let _;return t[12]!==n||t[13]!==u.spacing||t[14]!==a||t[15]!==d||t[16]!==f||t[17]!==g?(_=(0,h.jsx)(F,{"data-slot":`toggle-group-item`,"data-variant":d,"data-size":f,"data-spacing":p,className:g,...a,children:n}),t[12]=n,t[13]=u.spacing,t[14]=a,t[15]=d,t[16]=f,t[17]=g,t[18]=_):_=t[18],_}export{V as n,R as r,B as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{a,r as o}from"./dist-1J1E9P12.js";import{c as s,i as c,l,n as u,o as d,r as f}from"./dist-BCIZY0Wq.js";import{n as p,t as m}from"./dist-DcPsSRVd.js";import{a as h,i as ee,n as g,r as _,t as v}from"./dist-Dyi4atb6.js";var y=e(n(),1),b=t(),x=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),S=`VisuallyHidden`,C=y.forwardRef((e,t)=>(0,b.jsx)(l.span,{...e,ref:t,style:{...x,...e.style}}));C.displayName=S;var w=C,[T,E]=s(`Tooltip`,[h]),D=h(),O=`TooltipProvider`,k=700,A=`tooltip.open`,[te,j]=T(O),M=e=>{let{__scopeTooltip:t,delayDuration:n=k,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=y.useRef(!0),s=y.useRef(!1),c=y.useRef(0);return y.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,b.jsx)(te,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};M.displayName=O;var N=`Tooltip`,[P,F]=T(N),I=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,l=j(N,e.__scopeTooltip),d=D(t),[f,p]=y.useState(null),m=u(),h=y.useRef(0),g=o??l.disableHoverableContent,_=s??l.delayDuration,v=y.useRef(!1),[x,S]=c({prop:r,defaultProp:i??!1,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),a?.(e)},caller:N}),C=y.useMemo(()=>x?v.current?`delayed-open`:`instant-open`:`closed`,[x]),w=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,S(!0)},[S]),T=y.useCallback(()=>{window.clearTimeout(h.current),h.current=0,S(!1)},[S]),E=y.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,S(!0),h.current=0},_)},[_,S]);return y.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]),(0,b.jsx)(ee,{...d,children:(0,b.jsx)(P,{scope:t,contentId:m,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:y.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:y.useCallback(()=>{g?T():(window.clearTimeout(h.current),h.current=0)},[T,g]),onOpen:w,onClose:T,disableHoverableContent:g,children:n})})};I.displayName=N;var L=`TooltipTrigger`,R=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=F(L,n),o=j(L,n),s=D(n),c=a(t,y.useRef(null),i.onTriggerChange),u=y.useRef(!1),f=y.useRef(!1),p=y.useCallback(()=>u.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener(`pointerup`,p),[p]),(0,b.jsx)(v,{asChild:!0,...s,children:(0,b.jsx)(l.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:d(e.onPointerMove,e=>{e.pointerType!==`touch`&&!f.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),f.current=!0)}),onPointerLeave:d(e.onPointerLeave,()=>{i.onTriggerLeave(),f.current=!1}),onPointerDown:d(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener(`pointerup`,p,{once:!0})}),onFocus:d(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:d(e.onBlur,i.onClose),onClick:d(e.onClick,i.onClose)})})});R.displayName=L;var z=`TooltipPortal`,[B,V]=T(z,{forceMount:void 0}),H=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=F(z,t);return(0,b.jsx)(B,{scope:t,forceMount:n,children:(0,b.jsx)(f,{present:n||a.open,children:(0,b.jsx)(m,{asChild:!0,container:i,children:r})})})};H.displayName=z;var U=`TooltipContent`,W=y.forwardRef((e,t)=>{let n=V(U,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=F(U,e.__scopeTooltip);return(0,b.jsx)(f,{present:r||o.open,children:o.disableHoverableContent?(0,b.jsx)(Y,{side:i,...a,ref:t}):(0,b.jsx)(G,{side:i,...a,ref:t})})}),G=y.forwardRef((e,t)=>{let n=F(U,e.__scopeTooltip),r=j(U,e.__scopeTooltip),i=y.useRef(null),o=a(t,i),[s,c]=y.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=y.useCallback(()=>{c(null),f(!1)},[f]),m=y.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=re(r,ne(r,n.getBoundingClientRect())),a=ie(t.getBoundingClientRect());c(oe([...i,...a])),f(!0)},[f]);return y.useEffect(()=>()=>p(),[p]),y.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),y.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!ae(n,s);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,s,u,p]),(0,b.jsx)(Y,{...e,ref:o})}),[K,q]=T(N,{isInside:!1}),J=o(`TooltipContent`),Y=y.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=F(U,n),l=D(n),{onClose:u}=c;return y.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),y.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,b.jsx)(p,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,b.jsxs)(_,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,b.jsx)(J,{children:r}),(0,b.jsx)(K,{scope:n,isInside:!0,children:(0,b.jsx)(w,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});W.displayName=U;var X=`TooltipArrow`,Z=y.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=D(n);return q(X,n).isInside?null:(0,b.jsx)(g,{...i,...r,ref:t})});Z.displayName=X;function ne(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function re(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function ie(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function ae(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function oe(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),se(t)}function se(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Q=M,ce=I,le=R,ue=H,de=W,fe=Z,$=r();function pe(e){let t=(0,$.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,b.jsx)(Q,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function me(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,b.jsx)(ce,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function he(e){let t=(0,$.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?i:i??`button`,o;return t[4]!==n||t[5]!==r||t[6]!==a?(o=(0,b.jsx)(le,{"data-slot":`tooltip-trigger`,asChild:n,type:a,...r}),t[4]=n,t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function ge(e){let t=(0,$.c)(13),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({className:r,sideOffset:o,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s=o===void 0?0:o,c;t[5]===r?c=t[6]:(c=i(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[5]=r,t[6]=c);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,b.jsx)(fe,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==a||t[10]!==s||t[11]!==c?(u=(0,b.jsx)(ue,{children:(0,b.jsxs)(de,{"data-slot":`tooltip-content`,sideOffset:s,className:c,...a,children:[n,l]})}),t[8]=n,t[9]=a,t[10]=s,t[11]=c,t[12]=u):u=t[12],u}export{x as a,he as i,ge as n,pe as r,me as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BiRV80uZ.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
@@ -0,0 +1 @@
1
+ import"./chunk-KEIR6QF5-BoNEB_HG.js";import{n as e}from"./chunk-CQNSW5MT-CWAJXUKm.js";export{e as createTreeViewServices};
@@ -0,0 +1 @@
1
+ import"./chunk-KEIR6QF5-BoNEB_HG.js";import{n as e}from"./chunk-R7FJI6CG-C8R_fEMX.js";export{e as createTreemapServices};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BiRV80uZ.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{$ as n,Ht as r,It as i,Pt as a,Tn as o,dt as s,et as c,gn as l,ht as u,i as d,lt as f,w as p,yt as m}from"./DocumentContext-DOLytv_M.js";import{t as h}from"./react-f2sANaYj.js";import{n as g,r as _}from"./dist-Nvb76hAm.js";import{r as v,t as y}from"./useQuery-ZeEDLtxh.js";import{t as b}from"./compiler-runtime-BfE3aGVn.js";import{n as x}from"./createLucideIcon-BiRV80uZ.js";import{t as S}from"./button-oSXzJYWO.js";import{i as C,n as w,t as T}from"./tooltip-DkZ6fphS.js";import{n as E,r as D,t as O}from"./collapsible-BTn3nxAn.js";import{A as k,E as A,P as j,dt as M}from"./CodeMirrorPropInput-ni9vC7Fz.js";import{n as N,t as P}from"./toggle-group-DMfnQ5Pd.js";import{Br as F,Bt as I,Ha as L,P as R,Tn as z,ct as B,ft as V,ga as H,ja as ee,wn as U,zt as W}from"./dist-B4smVaZm2.js";import{t as G}from"./chevron-right-CgsPV9lV.js";import{r as te}from"./CopyButton-O0Y9mXoH.js";import{i as ne,r as re}from"./prop-types-CwT5q2dg.js";import{t as ie}from"./refresh-cw-D3t5sdqM.js";import{t as ae}from"./triangle-alert-BwCftF1V.js";import{t as oe}from"./wrench-CqOvU1qQ.js";import{n as se}from"./dist-BVbCw0G-.js";import{t as K}from"./dist-DuwTJb1j.js";import{f as ce,u as le}from"./doc-paths-DPN-3rhq.js";import{o as ue}from"./use-settings-route-Dw-Hb0ex.js";import{d as de}from"./documents-events-DYwaAqwG.js";import{a as q,i as fe}from"./startup-marks-BHZdrXwz.js";import{t as J}from"./badge-DB5BJfSU.js";import{C as pe,y as me}from"./config-provider-CqysOmJk.js";import{Dt as he,Ft as ge,It as _e,J as ve,Q as ye,X as be}from"./dist-6Q9yuoli.js";import{a as xe,c as Se,i as Ce,n as we,r as Te,s as Ee,t as De}from"./panel-FwLLPu5s.js";import{t as Oe}from"./lint-plugin-meta-DEfDN-Lf.js";import{t as ke}from"./skeleton-BlTc8h6X.js";import{a as Ae,c as je,d as Me}from"./lint-config-client-CqIt6_m6.js";var Ne=56,Pe=2,Fe=150,Ie=2e3;function Le(e,t,n){return e.top+e.height/2-(n+t)/2}function Re(e,t){let n=Math.max(0,t.scrollHeight-t.clientHeight);return Math.max(0,Math.min(e,n))}function ze(e){let{docName:t,container:n,measureTarget:r,placement:i,intent:a,grade:o,landedMode:c,transition:l,onOutcome:d,onDiscardQueuedTarget:f,toolbarOffset:p=Ne,driftThresholdPx:h=Pe,quietMs:g=Fe,abandonAfterMs:_=Ie}=e,v=e.contentColumn??n.firstElementChild,y=s(t),b=u(t,{yieldsToNavigation:a===`toggle`,supersede:()=>P(`superseded`)}),x=n.style.overflowAnchor;n.style.overflowAnchor=`none`,l&&q(`ok/mode-switch/transition`,{from:l.from,to:l.to,grade:o});let S=!1,C=null,w,T,E=0,D,O=()=>{let e=r();return e===null?null:Re(i===`center`?Le(e,n.clientHeight,p):e.top-p,n)},k=()=>{let e=O();if(e===null)return{measurable:!1,moved:!1};C=e;let t=Math.abs(n.scrollTop-e)>h;return t&&(n.scrollTop=e),{measurable:!0,moved:t}},A=()=>n.scrollTop-(O()??C??n.scrollTop),j=()=>{w&&clearTimeout(w),T&&clearTimeout(T),E&&cancelAnimationFrame(E),D?.disconnect(),n.removeEventListener(`wheel`,I),n.removeEventListener(`touchstart`,I),n.removeEventListener(`contentvisibilityautostatechange`,L,!0),n.style.overflowAnchor=x,y.release(),b.release()},M=()=>{if(S)return;S=!0;let e;try{k(),e=A(),C!==null&&m({docName:t,container:n,targetScrollTop:n.scrollTop,mode:c})}finally{j()}q(`ok/landing/land`,{grade:o,delta:e}),d?.({status:`landed`,delta:e})},N=()=>{if(S)return;S=!0;let e=C??n.scrollTop,t;try{t=A()}finally{j()}q(`ok/landing/abandoned`,{grade:o,target:e,delta:t}),d?.({status:`abandoned`,delta:t})},P=e=>{S||(S=!0,j(),e===`mode-flip`&&f?.(),d?.({status:`cancelled`,reason:e}))},F=()=>{w&&clearTimeout(w),w=setTimeout(M,g)};function I(){P(`user-scroll`)}function L(){if(S)return;let{measurable:e,moved:t}=k();e&&(t||w===void 0)&&F()}try{k().measurable&&F(),n.addEventListener(`contentvisibilityautostatechange`,L,!0),n.addEventListener(`wheel`,I,{passive:!0}),n.addEventListener(`touchstart`,I,{passive:!0}),typeof ResizeObserver<`u`&&v&&(D=new ResizeObserver(L),D.observe(v)),E=requestAnimationFrame(L),T=setTimeout(N,_)}catch(e){throw S=!0,j(),e}return{cancel:P}}function Be(e){switch(e){case`bulletList`:case`orderedList`:case`taskList`:case`list`:return`list`;case`codeBlock`:case`code`:return`code`;case`horizontalRule`:case`thematicBreak`:return`thematicBreak`;case`jsxComponent`:case`mdxJsxFlowElement`:case`mdxJsxTextElement`:return`jsx`;case`htmlBlock`:case`html`:return`html`;default:return e}}function Ve(e){return typeof e!=`object`||!e?``:`value`in e&&typeof e.value==`string`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map(Ve).join(``):``}function He(e,t){let{frontmatter:n,body:r}=L(e),i=n===``?0:n.split(`
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{$ as n,Ht as r,It as i,Pt as a,Tn as o,dt as s,et as c,gn as l,ht as u,i as d,lt as f,w as p,yt as m}from"./DocumentContext-Ddtfw06F.js";import{t as h}from"./react-f2sANaYj.js";import{n as g,r as _}from"./dist-Nvb76hAm.js";import{r as v,t as y}from"./useQuery-ZeEDLtxh.js";import{t as b}from"./compiler-runtime-BfE3aGVn.js";import{t as x}from"./utils-CPqDy6Hr.js";import{t as S}from"./button-D3xSRfT4.js";import{i as C,n as w,t as T}from"./tooltip-CtvLp_YK.js";import{n as E,r as D,t as O}from"./collapsible-BTn3nxAn.js";import{A as k,E as A,j,ot as M}from"./CodeMirrorPropInput-6uPyBi97.js";import{n as N,t as P}from"./toggle-group-DpvWeoN9.js";import{Br as F,Bt as I,Ha as L,P as R,Tn as z,ct as B,ft as V,ga as H,ja as ee,wn as U,zt as W}from"./dist-D8RKvolB2.js";import{t as G}from"./chevron-right-COaV_K3r.js";import{r as te}from"./CopyButton-C_GVjBMW.js";import{i as ne,r as re}from"./prop-types-BfZ_j9wJ.js";import{t as ie}from"./refresh-cw-CsRXA9N2.js";import{t as ae}from"./triangle-alert-BB_1Bz59.js";import{t as oe}from"./wrench-BHZvMfZp.js";import{n as se}from"./dist-Dr52ya0i.js";import{t as K}from"./dist-D-OluTzV.js";import{f as ce,u as le}from"./doc-paths-C6_l5qhr.js";import{o as ue}from"./use-settings-route-xhvjUTtD.js";import{d as de}from"./documents-events-Bh1LSWeJ.js";import{a as q,i as fe}from"./startup-marks-BFvG00Uu.js";import{t as J}from"./badge-BTPyRUGW.js";import{C as pe,y as me}from"./config-provider-DpMwlMEo.js";import{Dt as he,Ft as ge,It as _e,J as ve,Q as ye,X as be}from"./dist-DEf6luEB.js";import{a as xe,c as Se,i as Ce,n as we,r as Te,s as Ee,t as De}from"./panel-Boo96yEj.js";import{t as Oe}from"./lint-plugin-meta-7A6ZrPoH.js";import{t as ke}from"./skeleton-CD1oYYfF.js";import{a as Ae,c as je,d as Me}from"./lint-config-client-bEZXQCEN.js";var Ne=56,Pe=2,Fe=150,Ie=2e3;function Le(e,t,n){return e.top+e.height/2-(n+t)/2}function Re(e,t){let n=Math.max(0,t.scrollHeight-t.clientHeight);return Math.max(0,Math.min(e,n))}function ze(e){let{docName:t,container:n,measureTarget:r,placement:i,intent:a,grade:o,landedMode:c,transition:l,onOutcome:d,onDiscardQueuedTarget:f,toolbarOffset:p=Ne,driftThresholdPx:h=Pe,quietMs:g=Fe,abandonAfterMs:_=Ie}=e,v=e.contentColumn??n.firstElementChild,y=s(t),b=u(t,{yieldsToNavigation:a===`toggle`,supersede:()=>P(`superseded`)}),x=n.style.overflowAnchor;n.style.overflowAnchor=`none`,l&&q(`ok/mode-switch/transition`,{from:l.from,to:l.to,grade:o});let S=!1,C=null,w,T,E=0,D,O=()=>{let e=r();return e===null?null:Re(i===`center`?Le(e,n.clientHeight,p):e.top-p,n)},k=()=>{let e=O();if(e===null)return{measurable:!1,moved:!1};C=e;let t=Math.abs(n.scrollTop-e)>h;return t&&(n.scrollTop=e),{measurable:!0,moved:t}},A=()=>n.scrollTop-(O()??C??n.scrollTop),j=()=>{w&&clearTimeout(w),T&&clearTimeout(T),E&&cancelAnimationFrame(E),D?.disconnect(),n.removeEventListener(`wheel`,I),n.removeEventListener(`touchstart`,I),n.removeEventListener(`contentvisibilityautostatechange`,L,!0),n.style.overflowAnchor=x,y.release(),b.release()},M=()=>{if(S)return;S=!0;let e;try{k(),e=A(),C!==null&&m({docName:t,container:n,targetScrollTop:n.scrollTop,mode:c})}finally{j()}q(`ok/landing/land`,{grade:o,delta:e}),d?.({status:`landed`,delta:e})},N=()=>{if(S)return;S=!0;let e=C??n.scrollTop,t;try{t=A()}finally{j()}q(`ok/landing/abandoned`,{grade:o,target:e,delta:t}),d?.({status:`abandoned`,delta:t})},P=e=>{S||(S=!0,j(),e===`mode-flip`&&f?.(),d?.({status:`cancelled`,reason:e}))},F=()=>{w&&clearTimeout(w),w=setTimeout(M,g)};function I(){P(`user-scroll`)}function L(){if(S)return;let{measurable:e,moved:t}=k();e&&(t||w===void 0)&&F()}try{k().measurable&&F(),n.addEventListener(`contentvisibilityautostatechange`,L,!0),n.addEventListener(`wheel`,I,{passive:!0}),n.addEventListener(`touchstart`,I,{passive:!0}),typeof ResizeObserver<`u`&&v&&(D=new ResizeObserver(L),D.observe(v)),E=requestAnimationFrame(L),T=setTimeout(N,_)}catch(e){throw S=!0,j(),e}return{cancel:P}}function Be(e){switch(e){case`bulletList`:case`orderedList`:case`taskList`:case`list`:return`list`;case`codeBlock`:case`code`:return`code`;case`horizontalRule`:case`thematicBreak`:return`thematicBreak`;case`jsxComponent`:case`mdxJsxFlowElement`:case`mdxJsxTextElement`:return`jsx`;case`htmlBlock`:case`html`:return`html`;default:return e}}function Ve(e){return typeof e!=`object`||!e?``:`value`in e&&typeof e.value==`string`?e.value:`children`in e&&Array.isArray(e.children)?e.children.map(Ve).join(``):``}function He(e,t){let{frontmatter:n,body:r}=L(e),i=n===``?0:n.split(`
2
2
  `).length-1;try{return{blocks:t.parseToEditorMdast(r).children.map(e=>({start:(e.position?.start.line??1/0)+i,end:(e.position?.end.line??-1/0)+i,kind:Be(e.type),text:Ve(e)})),fmLineCount:i}}catch{return performance.mark(`ok/block-spans/parse-failed`),{blocks:[],fmLineCount:i}}}function Ue(e,t){let{blocks:n,fmLineCount:r}=He(e,t);return{spans:n.map(e=>({start:e.start,end:e.end})),fmLineCount:r}}function We(e,t){if(e.length===0)return null;let n=0,r=e.length-1,i=e.length-1;for(;n<=r;){let a=n+r>>1,o=e[a];o!==void 0&&o.end>=t?(i=a,r=a-1):n=a+1}return i}function Ge(e){let t=e.childCount>0?e.child(e.childCount-1):null;return t!==null&&t.type.name===`paragraph`&&t.content.size===0?e.childCount-1:e.childCount}function Ke(e,t,n){let r=e.childCount,i=Math.max(0,Math.min(t,r)),a=Math.max(i,Math.min(n,r));if(a<=i)return null;let o=0;for(let t=0;t<i;t++)o+=e.child(t).nodeSize;let s=o;for(let t=i;t<a;t++)o+=e.child(t).nodeSize;let c=o,l=e.content.size,u=Math.max(0,Math.min(s,l)),d=Math.max(u,Math.min(c,l));return d<=u?null:{from:u,to:d}}function qe(e){let t=[0];for(let n=0;n<e.length;n++)e[n]===`
3
3
  `&&t.push(n+1);return t}function Je(e,t,n){return t<=1?0:t-1>=e.length?n:e[t-1]??n}function Ye(e,t){let n=0,r=e.length-1,i=1;for(;n<=r;){let a=n+r>>1;(e[a]??0)<=t?(i=a+1,n=a+1):r=a-1}return i}function Xe(e,t,n){return Math.max(t,Math.min(e,n))}function Ze(e,t){let n=e=>e.replace(/\s+/g,` `).trim();return n(e)===n(t)}function Qe(e,t){return t.inRange?t.tripwireOk?Ze(e.content,t.text)?`exact`:e.kind===t.kind?`same-type-ordinal`:`ordinal`:`ordinal`:`clamped`}function $e(e){let t=null,n=null;function r(r){return n!==null&&t===r?n:(n={blocks:He(r,e).blocks,lineStarts:qe(r)},t=r,n)}return{captureFromWysiwyg(e,t,n){if(e.childCount===0)return null;let r=Xe(t,0,e.content.size),i=0,a=e.childCount-1,o=0;for(let t=0;t<e.childCount;t++){let n=e.child(t).nodeSize;if(r<i+n){a=t,o=i+1;break}i+=n,o=i+1}let s=e.child(a),c={blockIndex:a,kind:Be(s.type.name),content:s.textContent};return n?.refine&&(c.selectionInBlock=Math.max(0,r-o)),c},captureFromSource(e,t,n){let{blocks:i,lineStarts:a}=r(e);if(i.length===0)return null;let o=Xe(t,0,e.length),s=We(i,Ye(a,o));if(s===null)return null;let c=i[s];if(!c)return null;let l={blockIndex:s,kind:c.kind,content:c.text};if(n?.refine){let t=Je(a,c.start,e.length);l.selectionInBlock=Math.max(0,o-t)}return l},resolveInSource(e,{source:t,doc:n}){let{blocks:i,lineStarts:a}=r(t);if(i.length===0)return null;let o=e.blockIndex>=0&&e.blockIndex<i.length,s=Ge(n)===i.length,c=i[Xe(e.blockIndex,0,i.length-1)],l=Je(a,c.start,t.length),u=Math.min(Je(a,c.end+1,t.length),t.length),d=Qe(e,{inRange:o,tripwireOk:s,kind:c.kind,text:c.text}),f=l;return d===`exact`&&e.selectionInBlock!==void 0&&(f=Xe(l+e.selectionInBlock,l,u)),{blockStart:l,blockEnd:u,point:f,confidence:d}},resolveInWysiwyg(e,{source:t,doc:n}){let i=Ge(n);if(i===0)return null;let{blocks:a}=r(t),o=e.blockIndex>=0&&e.blockIndex<i,s=i===a.length,c=Xe(e.blockIndex,0,i-1),l=Ke(n,c,c+1);if(l===null)return null;let u=n.child(c),d=Qe(e,{inRange:o,tripwireOk:s,kind:Be(u.type.name),text:u.textContent});return{blockStart:l.from,blockEnd:l.to,point:l.from,confidence:d}}}}var et=ge.define(),tt=ge.define(),nt=ve.mark({class:n}),rt=_e.define({create(){return ve.none},update(e,t){let n=e.map(t.changes);for(let e of t.effects)e.is(et)?n=ve.set([nt.range(e.value.from,e.value.to)]):e.is(tt)&&(n=ve.none);return n},provide:e=>be.decorations.from(e)}),it=new WeakMap,at=ye.define(e=>({destroy(){let t=it.get(e);t!==void 0&&(clearTimeout(t),it.delete(e))}}));function ot(e,t,n,r){let i=c(e.state.doc.length,t,n,r);if(!i)return;e.dispatch({effects:et.of(i)});let a=it.get(e);a!==void 0&&clearTimeout(a);let o=setTimeout(()=>{it.delete(e),e.dispatch({effects:tt.of(null)})},R);it.set(e,o)}function st(){return[rt,at]}var ct=3e4;function lt(){let e=new Map,t=e=>e?Date.now()-e.rememberedAt>ct?null:e.navigation:null;return{remember(t,n){e.set(t,{navigation:n,rememberedAt:Date.now()})},peek(n){return t(e.get(n))},consume(n){let r=e.get(n);return e.delete(n),t(r)},clear(t){e.delete(t)},clearForTest(){e.clear()}}}var ut=lt(),dt=lt(),ft=ut.remember,pt=ut.peek,mt=ut.consume,ht=ut.clear;ut.clearForTest;var gt=dt.remember,_t=dt.peek,vt=dt.consume,yt=dt.clear;dt.clearForTest;function bt(e,t,n){return{start:pe(e,t),end:pe(e,n)}}function xt(e,t){let n=me(e.start,t),r=me(e.end,t);return n===null||r===null||r.index<=n.index?null:n.index}var St=`open-knowledge:view-in-source`,Y=56,Ct=null;function wt(){return Ct??=$e(k()),Ct}function Tt(e,t,n,r,i=`toggle`){let a=r.captureFromWysiwyg(e,t,{refine:i===`jump`});if(!a)return null;let o=r.resolveInSource(a,{source:n.toString(),doc:e});return{kind:`selection-offset`,intent:i,anchor:a,pin:o?bt(n,o.blockStart,o.blockEnd):void 0}}function Et(e){let{editor:t,docName:n,ytext:r}=e,i=A(t);if(!i)return;let a=i.state.selection.from,o=Tt(i.state.doc,a,r,wt(),`jump`);o&&ft(n,o),window.dispatchEvent(new CustomEvent(St,{detail:{docName:n}}))}function Dt(e,t,n,r,i){let a=r.captureFromSource(e,t);if(!a)return null;let o=i?r.resolveInSource(a,{source:e,doc:i}):null;return{kind:`selection-offset`,anchor:a,pin:o?bt(n,o.blockStart,o.blockEnd):void 0}}function Ot(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=xt(e.pin,i);if(t===null){let t=a.resolveInWysiwyg(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInWysiwyg(o,{source:n,doc:r})}return a.resolveInWysiwyg(e.anchor,{source:n,doc:r})}function kt(e,t){let{source:n,pmDoc:r,ydoc:i,resolver:a}=t;if(e.pin){let t=xt(e.pin,i);if(t===null){let t=a.resolveInSource(e.anchor,{source:n,doc:r});return t?{...t,point:t.blockStart,confidence:`clamped`}:null}let o=a.captureFromSource(n,t);if(o)return a.resolveInSource(o,{source:n,doc:r})}return a.resolveInSource(e.anchor,{source:n,doc:r})}function At(e,t){try{return e.coordsAtPos(t)}catch{return null}}function jt(e,t,n){let r=Math.max(0,Math.min(n,e.state.doc.length)),i=t.getBoundingClientRect().top,a=At(e,r);if(a)return{top:a.top-i+t.scrollTop,height:a.bottom-a.top};try{let n=e.lineBlockAt(r);return{top:e.documentTop-i+t.scrollTop+n.top,height:n.height}}catch{return null}}function Mt(e,t){if(e.isDestroyed)return null;try{let n=e.nodeDOM(t);if(n instanceof HTMLElement)return n;let{node:r}=e.domAtPos(t);return r instanceof HTMLElement?r:r.parentElement}catch{return null}}function Nt(e,t,n){if(e.isDestroyed)return null;let r=Mt(e,Math.max(0,Math.min(n,e.state.doc.content.size)));if(!r)return null;let i=r.getBoundingClientRect(),a=t.getBoundingClientRect().top;return{top:i.top-a+t.scrollTop,height:i.height}}function Pt(){return typeof document>`u`?null:f()}function Ft(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2;for(let t of[Y+1,Y+12,Y+40]){let i=e.posAtCoords({left:r,top:n.top+t});if(i)return i.pos}return null}function It(e,t){let n=t.getBoundingClientRect(),r=n.left+n.width/2;for(let t of[Y+1,Y+12,Y+40]){let i=e.posAtCoords({x:r,y:n.top+t});if(i!==null)return i}return null}function Lt(e){let{from:t,to:n,docName:r,ytext:i}=e;t===`wysiwyg`&&n===`source`?Rt(r,i):t===`source`&&n===`wysiwyg`&&zt(r,i)}function Rt(e,t){let n=pt(e);if(n&&n.kind!==`selection-offset`)return;let i=r(e);if(!i)return;let a=A(i);if(!a)return;let o=Pt();if(!o)return;let s=Ft(a,o);if(s===null)return;let c=Tt(a.state.doc,s,t,wt());c&&ft(e,c)}function zt(e,t){let n=a(e);if(!n)return;let i=Pt();if(!i)return;let o=It(n,i);if(o===null)return;let s=r(e),c=s?A(s)?.state.doc:void 0,l=Dt(t.toString(),o,t,wt(),c);l&&gt(e,l)}function Bt(e){let{view:t,docName:n,navigation:i,ydoc:a,transition:o}=e,s=r(n),c=s?A(s)?.state.doc:void 0;if(!c)return null;let l=kt(i,{source:t.state.doc.toString(),pmDoc:c,ydoc:a,resolver:wt()});if(!l)return null;let d=Pt();if(!d)return null;let f=l,p=i.intent===`jump`,m=p?f.point:f.blockStart;t.dispatch({effects:be.scrollIntoView(m,{y:`start`})});let h=!1,g=null,_=u(n,{yieldsToNavigation:!p,supersede:()=>{h=!0,_.release()}}),v=e=>{if(!h){if(At(t,m)===null&&e<8){requestAnimationFrame(()=>v(e+1));return}try{p&&(t.dispatch({selection:he.cursor(m)}),t.focus())}finally{_.release()}g=ze({docName:n,container:d,contentColumn:t.contentDOM,measureTarget:()=>jt(t,d,m),placement:p?`center`:`top`,intent:p?`jump`:`toggle`,grade:f.confidence,landedMode:`source`,transition:o,toolbarOffset:Y,onOutcome:p?e=>{e.status===`landed`&&ot(t,f.blockStart,f.blockEnd,f.confidence)}:void 0,onDiscardQueuedTarget:()=>ht(n)})}};return v(0),{cancel:e=>{h=!0,_.release(),g?.cancel(e)}}}function Vt(e){let{editor:t,docName:n,navigation:r,ydoc:i,transition:a}=e,o=A(t);if(!o)return null;let s=Ot(r,{source:i.getText(`source`).toString(),pmDoc:o.state.doc,ydoc:i,resolver:wt()});if(!s)return null;let c=Pt();if(!c)return null;let l=s;return ze({docName:n,container:c,contentColumn:o.dom,measureTarget:()=>Nt(o,c,l.point),placement:`top`,intent:`toggle`,grade:l.confidence,landedMode:`wysiwyg`,transition:a,toolbarOffset:Y,onDiscardQueuedTarget:()=>yt(n)})}var X=e(h(),1),Z=b(),Q=t();function Ht(e){let t=(0,Z.c)(14),{scope:n,onScopeChange:r,projectLabel:i}=e,{_:a}=_(),o;t[0]===r?o=t[1]:(o=e=>{e&&r(e)},t[0]=r,t[1]=o);let s;t[2]===a?s=t[3]:(s=a({id:`aBgwis`}),t[2]=a,t[3]=s);let c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(N,{value:`doc`,className:`flex-1`,"data-testid":`panel-scope-doc`,children:(0,Q.jsx)(g,{id:`UpCz01`})}),t[4]=c):c=t[4];let l;t[5]===i?l=t[6]:(l=i??(0,Q.jsx)(g,{id:`e0NrBM`}),t[5]=i,t[6]=l);let u;t[7]===l?u=t[8]:(u=(0,Q.jsx)(N,{value:`project`,className:`flex-1`,"data-testid":`panel-scope-project`,children:l}),t[7]=l,t[8]=u);let d;return t[9]!==n||t[10]!==o||t[11]!==s||t[12]!==u?(d=(0,Q.jsx)(`div`,{className:`shrink-0 px-4 pb-2`,children:(0,Q.jsxs)(P,{type:`single`,variant:`segmented`,size:`sm`,spacing:1,value:n,onValueChange:o,"aria-label":s,className:`w-full rounded-md bg-muted p-0.5 dark:bg-background`,children:[c,u]})}),t[9]=n,t[10]=o,t[11]=s,t[12]=u,t[13]=d):d=t[13],d}var Ut=null,Wt=[];function Gt(e){if(e===Ut)return Wt;let t=Kt(e);return Ut=e,Wt=t,t}function Kt(e){let t=[],n=new Map,r=z();for(let i=qt(e);i<=e.lines;i++){let a=e.line(i);if(r(a.text))continue;let o=F(a.text,n);o&&t.push({slug:o.slug,from:a.from})}return t}function qt(e){if(!Jt(e.line(1).text))return 1;for(let t=2;t<=e.lines;t++)if(Jt(e.line(t).text))return t+1;return 1}function Jt(e){return H.test(e.endsWith(`\r`)?e.slice(0,-1):e)}function Yt(e){let t=document.getElementById(e);return t?t.getBoundingClientRect().top:null}function Xt(e){let t=new Map;for(let n of Gt(e.state.doc))t.set(n.slug,n.from);let n=e.documentTop;return r=>{let i=t.get(r);return i===void 0?null:n+e.lineBlockAt(i).top}}function Zt(e,t){let n=(0,Z.c)(9),r;n[0]===t?r=n[1]:(r=t===void 0?{}:t,n[0]=t,n[1]=r);let{isSourceMode:o,docName:s}=r,c=o===void 0?!1:o,[l,u]=(0,X.useState)(void 0),d=(0,X.useRef)(null),f;n[2]===s?f=n[3]:(f=()=>s?a(s):null,n[2]=s,n[3]=f);let p=(0,X.useSyncExternalStore)(i,f,Qt),m,h;return n[4]!==c||n[5]!==e||n[6]!==p?(m=()=>{if(e.length===0||c&&!p){u(void 0);return}let t=function(){let t=c&&p?Xt(p):Yt,n=window.innerHeight/2,r,i;for(let a of e){let e=t(a);e!==null&&(e<0?r=a:i===void 0&&e<n&&(i=a))}u(i??r??e[0])},n=function(){d.current===null&&(d.current=requestAnimationFrame(()=>{d.current=null,t()}))};return document.addEventListener(`scroll`,n,{capture:!0,passive:!0}),t(),()=>{document.removeEventListener(`scroll`,n,{capture:!0}),d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},h=[e,c,p],n[4]=c,n[5]=e,n[6]=p,n[7]=m,n[8]=h):(m=n[7],h=n[8]),(0,X.useEffect)(m,h),l}function Qt(){return null}var $t=300;async function en(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new j(K._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=V.safeParse(n);throw e.success?Error(e.data.title):new j(K._({id:`zlErBl`}),{status:t.status})}let r=B.safeParse(n);if(!r.success)throw new j(K._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var tn=32,nn=12,rn=6,an=`open-knowledge:outline-nav`;function on(e){let t=(0,Z.c)(2),n;return t[0]===e?n=t[1]:(n=(0,Q.jsx)(fe,{name:`outline-panel`,children:(0,Q.jsx)(sn,{...e})}),t[0]=e,t[1]=n),n}function sn(e){let t=(0,Z.c)(53),{docName:n,isSourceMode:r,className:i}=e,a=i===void 0?``:i,{_:o}=_(),{pages:s,loading:c}=ne(),l=v(),{activeProvider:u,activeDocName:f}=d(),p,m;t[0]===n?(p=t[1],m=t[2]):(p=[`page-headings`,n],m=()=>en(n),t[0]=n,t[1]=p,t[2]=m);let h;t[3]!==n||t[4]!==c||t[5]!==s?(h=!c&&(s.has(n)||ee(n)),t[3]=n,t[4]=c,t[5]=s,t[6]=h):h=t[6];let b;t[7]!==p||t[8]!==m||t[9]!==h?(b={queryKey:p,queryFn:m,enabled:h,staleTime:1/0},t[7]=p,t[8]=m,t[9]=h,t[10]=b):b=t[10];let{data:S,isLoading:C,error:w}=y(b),T;t[11]===S?T=t[12]:(T=S===void 0?[]:S,t[11]=S,t[12]=T);let E=T,D,O;t[13]!==f||t[14]!==u||t[15]!==n||t[16]!==l?(D=()=>{if(!u||f!==n)return;let e=u.document,t=null,r=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,l.invalidateQueries({queryKey:[`page-headings`,n]})},$t)};return e.on(`update`,r),()=>{e.off(`update`,r),t!==null&&clearTimeout(t)}},O=[u,f,n,l],t[13]=f,t[14]=u,t[15]=n,t[16]=l,t[17]=D,t[18]=O):(D=t[17],O=t[18]),(0,X.useEffect)(D,O);let k;t[19]===E?k=t[20]:(k=E.map(cn),t[19]=E,t[20]=k);let A=k,j;t[21]!==n||t[22]!==r?(j={isSourceMode:r,docName:n},t[21]=n,t[22]=r,t[23]=j):j=t[23];let M=Zt(A,j),N;t[24]!==M||t[25]!==E?(N=M?E.findIndex(e=>e.slug===M):-1,t[24]=M,t[25]=E,t[26]=N):N=t[26];let P=N,F;t[27]!==n||t[28]!==r?(F=function(e,t){let i={index:e,slug:t,mode:r?`source`:`wysiwyg`};i.mode===`source`&&ft(n,{kind:`outline`,detail:i}),window.dispatchEvent(new CustomEvent(an,{detail:i}))},t[27]=n,t[28]=r,t[29]=F):F=t[29];let I=F,L=((P>=0?E[P].level:1)-1)*nn+(nn-rn)/2,R=P*tn+(tn-rn)/2,z;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,Q.jsx)(Se,{children:(0,Q.jsx)(g,{id:`dD7NPy`})}),t[30]=z):z=t[30];let B;t[31]!==E.length||t[32]!==C?(B=!C&&(0,Q.jsx)(Te,{children:E.length}),t[31]=E.length,t[32]=C,t[33]=B):B=t[33];let V;t[34]===B?V=t[35]:(V=(0,Q.jsxs)(Ee,{children:[z,B]}),t[34]=B,t[35]=V);let H;t[36]!==o||t[37]!==P||t[38]!==M||t[39]!==w||t[40]!==I||t[41]!==E||t[42]!==C||t[43]!==L||t[44]!==R?(H=w?(0,Q.jsx)(xe,{className:`px-2`,children:w instanceof Error?w.message:o({id:`GuqOb1`})}):E.length===0&&!C?(0,Q.jsx)(Ce,{className:`px-2`,children:(0,Q.jsx)(g,{id:`0BB9ID`})}):(0,Q.jsxs)(`nav`,{"aria-label":o({id:`BymzO4`}),className:`relative`,children:[P>=0&&(0,Q.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-0 top-0 rounded-full bg-primary motion-safe:[transition:transform_0.25s_var(--ease-out-strong)]`,style:{width:rn,height:rn,transform:`translate(${L}px, ${R}px)`}}),E.map((e,t)=>{let n=e.slug===M;return(0,Q.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>I(t,e.slug),className:x(`w-full cursor-pointer truncate py-1.5 pe-2 text-left text-sm transition-colors`,n?`font-medium text-primary`:`text-muted-foreground hover:text-foreground`),style:{paddingLeft:`${(e.level-1)*nn+20}px`},title:e.text,children:e.text},t)})]}),t[36]=o,t[37]=P,t[38]=M,t[39]=w,t[40]=I,t[41]=E,t[42]=C,t[43]=L,t[44]=R,t[45]=H):H=t[45];let U;t[46]!==C||t[47]!==H?(U=(0,Q.jsx)(we,{className:`px-3 py-2`,"aria-busy":C,children:H}),t[46]=C,t[47]=H,t[48]=U):U=t[48];let W;return t[49]!==a||t[50]!==V||t[51]!==U?(W=(0,Q.jsxs)(De,{className:a,children:[V,U]}),t[49]=a,t[50]=V,t[51]=U,t[52]=W):W=t[52],W}function cn(e){return e.slug}var ln=`audit-superseded`;async function un(e={kind:`project`}){return fn(e,I,!1)}async function dn(e={kind:`project`},t){return fn(e,W,!0,t)}async function fn(e,t,n,r){try{let i=new URLSearchParams;e.kind===`path`?i.set(`path`,e.path):e.kind===`doc`&&i.set(`doc`,e.docName),n&&i.set(`counts`,`1`);let a=i.size===0?``:`?${i}`,o=await fetch(`/api/audit${a}`,r===void 0?void 0:{signal:r});if(!o.ok)return o.status===409?ln:(console.warn(`[audit] request failed`,o.status,o.statusText),null);let s;try{s=await o.json()}catch{return r?.aborted===!0||console.warn(`[audit] response body is not valid JSON`),null}let c=t.safeParse(s);return c.success?c.data:(console.warn(`[audit] response failed schema validation`,c.error.issues),null)}catch(e){return r?.aborted===!0||console.warn(`[audit] fetch threw`,e),null}}function pn(e){let t=(0,Z.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=[],t[0]=n):n=t[0];let[r,i]=(0,X.useState)(n),a,o;return t[1]===e?(a=t[2],o=t[3]):(a=()=>{if(i(gn),e===null)return;let t=!1,n=()=>{un({kind:`doc`,docName:e}).then(e=>{if(t||e===null||e===`audit-superseded`)return;let n=e.files.flatMap(hn).filter(mn);i(e=>e.length===0&&n.length===0?e:n)})};n();let r=de(e=>{e.includes(`backlinks`)&&n()});return()=>{t=!0,r()}},o=[e],t[1]=e,t[2]=a,t[3]=o),(0,X.useEffect)(a,o),r}function mn(e){return e.source===`links`}function hn(e){return e.diagnostics}function gn(e){return e.length===0?e:[]}var _n={errorCount:0,warningCount:0},$=new Map,vn=new Set,yn=new Map;function bn(){let e=new Map;for(let[t,n]of $){let r=n.lint.errorCount+n.links.errorCount,i=n.lint.warningCount+n.links.warningCount;r===0&&i===0||e.set(t,{errorCount:r,warningCount:i})}yn=e;for(let e of vn)e()}var xn=U;function Sn(e){return vn.add(e),()=>{vn.delete(e)}}function Cn(){return yn}function wn(e){$.clear();for(let t of e)$.set(le(t.file),xn(t.diagnostics));bn()}function Tn(e){$.clear();for(let t of e)$.set(le(t.file),{lint:t.lint,links:t.links});bn()}function En(e,t){$.set(e,xn(t)),bn()}function Dn(e,t,n){let r=$.get(e)??{lint:_n,links:_n},i=r[t];i.errorCount===n.errorCount&&i.warningCount===n.warningCount||($.set(e,{...r,[t]:n}),bn())}var On=`open-knowledge:lint-nav`;function kn(e,t){return e.range.start.line-t.range.start.line||e.range.start.character-t.range.start.character}function An(e){return{line:e.range.start.line+1,column:e.range.start.character+1}}function jn(e){let t=(0,Z.c)(35),{diagnostic:n,instanceCount:r}=e,{_:i}=_(),a=n.severity===`error`?te:ae,s=n.range.start.line+1,c=n.source===`links`,l=r!==void 0&&r>1,u=n.severity===`error`?`text-destructive`:`text-amber-500`,d;t[0]===u?d=t[1]:(d=x(`mt-0.5 size-3.5 shrink-0`,u),t[0]=u,t[1]=d);let f;t[2]!==a||t[3]!==d?(f=(0,Q.jsx)(a,{"aria-hidden":`true`,className:d}),t[2]=a,t[3]=d,t[4]=f):f=t[4];let p;t[5]===n.message?p=t[6]:(p=(0,Q.jsx)(`span`,{className:`min-w-0 flex-1 text-foreground`,children:n.message}),t[5]=n.message,t[6]=p);let m;t[7]!==l||t[8]!==r?(m=l?(0,Q.jsxs)(`span`,{className:`mt-0.5 flex shrink-0 items-center gap-1`,children:[(0,Q.jsx)(J,{variant:`gray`,"data-testid":`problems-instance-count`,className:`h-4 px-1 font-sans text-[10px] leading-none`,children:(0,Q.jsx)(g,{id:`iZCZmF`,values:{instanceCount:r}})}),(0,Q.jsx)(G,{"aria-hidden":`true`,className:`size-3 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`})]}):null,t[7]=l,t[8]=r,t[9]=m):m=t[9];let h;t[10]!==f||t[11]!==p||t[12]!==m?(h=(0,Q.jsxs)(`span`,{className:`flex items-start gap-1.5 text-sm`,children:[f,p,m]}),t[10]=f,t[11]=p,t[12]=m,t[13]=h):h=t[13];let v=c&&`gap-0.5`,y;t[14]===v?y=t[15]:(y=x(`h-4 shrink-0 px-1 font-sans text-[10px] uppercase leading-none`,v),t[14]=v,t[15]=y);let b;t[16]===c?b=t[17]:(b=c?(0,Q.jsx)(o,{"aria-hidden":`true`,className:`size-2.5`}):null,t[16]=c,t[17]=b);let S;t[18]!==n.source||t[19]!==y||t[20]!==b?(S=(0,Q.jsxs)(J,{variant:`gray`,"data-testid":`problems-source-tag`,className:y,children:[b,n.source]}),t[18]=n.source,t[19]=y,t[20]=b,t[21]=S):S=t[21];let C;t[22]!==i||t[23]!==n.code||t[24]!==s||t[25]!==l?(C=l?n.code:`${n.code} · ${i({id:`enPTnx`,values:{displayLine:s}})}`,t[22]=i,t[23]=n.code,t[24]=s,t[25]=l,t[26]=C):C=t[26];let w;t[27]===C?w=t[28]:(w=(0,Q.jsx)(`span`,{className:`min-w-0 truncate`,children:C}),t[27]=C,t[28]=w);let T;t[29]!==S||t[30]!==w?(T=(0,Q.jsxs)(`span`,{className:`flex items-center gap-1.5 ps-5 font-mono text-xs text-muted-foreground`,children:[S,w]}),t[29]=S,t[30]=w,t[31]=T):T=t[31];let E;return t[32]!==T||t[33]!==h?(E=(0,Q.jsxs)(Q.Fragment,{children:[h,T]}),t[32]=T,t[33]=h,t[34]=E):E=t[34],E}function Mn(e){let t=new Map;for(let n of e){let e=`${n.source}/${n.code}\u0000${n.linkTarget??``}\u0000${n.message}`,r=t.get(e);r===void 0?t.set(e,{key:e,instances:[n]}):r.instances.push(n)}return[...t.values()]}function Nn(e){let t=(0,Z.c)(43),{group:n,onNavigate:r,navTitle:i,renderActions:a}=e,{_:o}=_(),s=n.instances[0];if(n.instances.length===1){let e;t[0]!==s||t[1]!==a?(e=a(s),t[0]=s,t[1]=a,t[2]=e):e=t[2];let n=e,o;t[3]!==s||t[4]!==r?(o=()=>r(s),t[3]=s,t[4]=r,t[5]=o):o=t[5];let c;t[6]!==s||t[7]!==i?(c=i(s),t[6]=s,t[7]=i,t[8]=c):c=t[8];let l;t[9]===s?l=t[10]:(l=(0,Q.jsx)(jn,{diagnostic:s}),t[9]=s,t[10]=l);let u;t[11]!==o||t[12]!==c||t[13]!==l?(u=(0,Q.jsx)(`button`,{type:`button`,onClick:o,className:`flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left`,title:c,children:l}),t[11]=o,t[12]=c,t[13]=l,t[14]=u):u=t[14];let d;t[15]===n?d=t[16]:(d=n===null?null:(0,Q.jsx)(`div`,{className:`absolute bottom-1 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:n}),t[15]=n,t[16]=d);let f;return t[17]!==u||t[18]!==d?(f=(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[u,d]}),t[17]=u,t[18]=d,t[19]=f):f=t[19],f}let c;t[20]!==s||t[21]!==n.instances.length?(c=(0,Q.jsx)(D,{className:`group flex w-full cursor-pointer flex-col gap-0.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:(0,Q.jsx)(jn,{diagnostic:s,instanceCount:n.instances.length})}),t[20]=s,t[21]=n.instances.length,t[22]=c):c=t[22];let l;t[23]!==o||t[24]!==s.message?(l=o({id:`EUiJEM`,values:{0:s.message}}),t[23]=o,t[24]=s.message,t[25]=l):l=t[25];let u;if(t[26]!==o||t[27]!==n.instances||t[28]!==i||t[29]!==r||t[30]!==a){let e;t[32]!==o||t[33]!==i||t[34]!==r||t[35]!==a?(e=e=>{let t=a(e),n=e.range.start.line+1;return(0,Q.jsxs)(`li`,{className:`group relative rounded transition-colors hover:bg-muted`,children:[(0,Q.jsx)(`button`,{type:`button`,onClick:()=>r(e),className:`flex w-full cursor-pointer rounded px-2 py-1 text-left font-mono text-xs text-muted-foreground`,title:i(e),"aria-label":o({id:`uCe4AX`,values:{0:e.message,displayLine:n}}),children:o({id:`enPTnx`,values:{displayLine:n}})}),t===null?null:(0,Q.jsx)(`div`,{className:`absolute bottom-0.5 right-1 flex items-center gap-1 rounded bg-muted opacity-0 transition-opacity focus-within:opacity-100 group-hover:opacity-100 motion-reduce:transition-none`,children:t})]},Pn(e))},t[32]=o,t[33]=i,t[34]=r,t[35]=a,t[36]=e):e=t[36],u=n.instances.map(e),t[26]=o,t[27]=n.instances,t[28]=i,t[29]=r,t[30]=a,t[31]=u}else u=t[31];let d;t[37]!==l||t[38]!==u?(d=(0,Q.jsx)(E,{className:`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none`,children:(0,Q.jsx)(`ul`,{"aria-label":l,className:`flex flex-col gap-0.5 pb-1 ps-5`,"data-testid":`problems-duplicate-instances`,children:u})}),t[37]=l,t[38]=u,t[39]=d):d=t[39];let f;return t[40]!==c||t[41]!==d?(f=(0,Q.jsx)(`li`,{className:`rounded`,"data-testid":`problems-duplicate-group`,children:(0,Q.jsxs)(O,{children:[c,d]})}),t[40]=c,t[41]=d,t[42]=f):f=t[42],f}function Pn(e){return`${e.source}/${e.code}-${e.range.start.line}-${e.range.start.character}-${e.message}`}function Fn(e){return e.reduce((e,t)=>e+ +((t.fixes?.length??0)>0),0)}function In(e){let t=(0,Z.c)(11),{target:n,creating:r,disabled:i,onCreate:a}=e,{_:o}=_(),s;t[0]!==o||t[1]!==n?(s=o({id:`oWsZk8`,values:{target:n}}),t[0]=o,t[1]=n,t[2]=s):s=t[2];let c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(M,{"aria-hidden":`true`,className:`size-3`}),t[3]=c):c=t[3];let l;t[4]===r?l=t[5]:(l=r?(0,Q.jsx)(g,{id:`E9bKSA`}):(0,Q.jsx)(g,{id:`XRuL0i`}),t[4]=r,t[5]=l);let u;return t[6]!==i||t[7]!==a||t[8]!==s||t[9]!==l?(u=(0,Q.jsxs)(S,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:i,onClick:a,"aria-label":s,"data-testid":`problems-create-page`,children:[c,l]}),t[6]=i,t[7]=a,t[8]=s,t[9]=l,t[10]=u):u=t[10],u}function Ln(e){let t=(0,Z.c)(8),{tip:n,testId:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,Q.jsx)(C,{asChild:!0,children:(0,Q.jsx)(`span`,{className:`inline-flex shrink-0`,children:i})}),t[0]=i,t[1]=a);let o;t[2]!==r||t[3]!==n?(o=(0,Q.jsx)(w,{"data-testid":r,children:n}),t[2]=r,t[3]=n,t[4]=o):o=t[4];let s;return t[5]!==a||t[6]!==o?(s=(0,Q.jsxs)(T,{children:[a,o]}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function Rn(e){let t=(0,Z.c)(21),{count:n,problemCount:r,aiAvailable:i,disabled:a,onClick:o,children:s}=e,{_:c}=_(),l;t[0]!==i||t[1]!==n||t[2]!==r?(l=n>0?(0,Q.jsx)(g,{id:`vjwsDi`,values:{count:n}}):r===0?(0,Q.jsx)(g,{id:`gAhHu7`}):i?(0,Q.jsx)(g,{id:`zA9zRL`}):(0,Q.jsx)(g,{id:`X3MMeA`}),t[0]=i,t[1]=n,t[2]=r,t[3]=l):l=t[3];let u;t[4]!==c||t[5]!==s||t[6]!==n||t[7]!==r?(u=s===void 0?r===0?c({id:`4m-xuX`}):n===0?c({id:`SqIoy_`}):void 0:void 0,t[4]=c,t[5]=s,t[6]=n,t[7]=r,t[8]=u):u=t[8];let d;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,Q.jsx)(oe,{"aria-hidden":`true`,className:`size-3`}),t[9]=d):d=t[9];let f;t[10]!==s||t[11]!==n?(f=s??(0,Q.jsx)(g,{id:`RZXTlY`,values:{count:n}}),t[10]=s,t[11]=n,t[12]=f):f=t[12];let p;t[13]!==a||t[14]!==o||t[15]!==u||t[16]!==f?(p=(0,Q.jsxs)(S,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:a,onClick:o,"aria-label":u,"data-testid":`problems-auto-fix`,children:[d,f]}),t[13]=a,t[14]=o,t[15]=u,t[16]=f,t[17]=p):p=t[17];let m;return t[18]!==l||t[19]!==p?(m=(0,Q.jsx)(Ln,{testId:`problems-auto-fix-tip`,tip:l,children:p}),t[18]=l,t[19]=p,t[20]=m):m=t[20],m}function zn(e){let t=(0,Z.c)(12),{count:n,disabled:r,onClick:i}=e,a;t[0]===n?a=t[1]:(a=(0,Q.jsx)(g,{id:`mgDKWS`,values:{count:n}}),t[0]=n,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Q.jsx)(l,{"aria-hidden":`true`,className:`size-3`}),t[2]=o):o=t[2];let s;t[3]===n?s=t[4]:(s=(0,Q.jsx)(g,{id:`gyHDWC`,values:{count:n}}),t[3]=n,t[4]=s);let c;t[5]!==r||t[6]!==i||t[7]!==s?(c=(0,Q.jsxs)(S,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,disabled:r,onClick:i,"data-testid":`problems-fix-with-ai`,children:[o,s]}),t[5]=r,t[6]=i,t[7]=s,t[8]=c):c=t[8];let u;return t[9]!==a||t[10]!==c?(u=(0,Q.jsx)(Ln,{testId:`problems-fix-with-ai-tip`,tip:a,children:c}),t[9]=a,t[10]=c,t[11]=u):u=t[11],u}function Bn(e){let t=(0,Z.c)(18),{docName:n,diagnostics:r,onFix:i,onAutoFix:a,onAskAi:o,onFixWithAi:s}=e,{_:c}=_(),[u,d]=(0,X.useState)(`doc`),{data:f}=Me(),m=f===null?null:f.effective.enabled?Oe.filter(e=>f.effective.plugins[e.id].enabled):[],h=m!==null&&m.length===0,v;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={status:`idle`},t[0]=v):v=t[0];let[y,b]=(0,X.useState)(v),[x,E]=(0,X.useState)(null),D=re(),[O,k]=(0,X.useState)(null),A=(0,X.useRef)(!0),j,M;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>(A.current=!0,()=>{A.current=!1}),M=[],t[1]=j,t[2]=M):(j=t[1],M=t[2]),(0,X.useEffect)(j,M);let N=(0,X.useRef)(qn),P;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(P={status:`idle`},t[3]=P):P=t[3];let F=(0,X.useRef)(P),I;t[4]===y?I=t[5]:(I=()=>{y.status!==`loading`&&(F.current=y)},t[4]=y,t[5]=I),(0,X.useEffect)(I);let L=(0,X.useRef)(0),R=[...r].sort(kn),z=Fn(R),B=async function(e){let t=e.linkTarget;if(!(t===void 0||O!==null||D===null)){k(t);try{await p({initialDir:``,suggestedName:t},{addPage:D.addPage})}catch(e){let t=e;se.error(t instanceof Error?t.message:c({id:`tfi40B`})),A.current&&k(null);return}se.success(c({id:`EWCJFu`,values:{target:t}})),A.current&&k(null),A.current&&y.status===`loaded`&&await V()}};async function V(){L.current+=1;let e=L.current,t=F.current;b({status:`loading`});let n=await un();if(n===`audit-superseded`){L.current===e&&A.current&&b(t.status===`idle`?{status:`failed`}:t);return}n!==null&&wn(n.files),A.current&&b(n===null?{status:`failed`}:{status:`loaded`,result:n})}let H=y.status===`loaded`?y.result.files.filter(Gn):[],ee=async function(){if(x!==null||H.length===0)return;E({done:0,total:H.length});let e=[];for(let t of H){let n=await Ae(le(t.file));if(!A.current)return;n.ok||e.push({file:t.file,detail:n.errorDetail}),E(Wn)}if(E(null),e.length>0){let t=e[0];se.error(c({id:`fru3T7`,values:{0:e.length,1:H.length}}),{description:t===void 0?void 0:`${t.file}${t.detail===null?``:` — ${t.detail}`}`})}try{await V()}catch{A.current&&b({status:`failed`})}},U=function(e){d(e),e===`project`&&y.status===`idle`&&V()};(0,X.useEffect)(()=>{N.current=()=>{y.status===`idle`||y.status===`failed`||V()}});let W;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(W=[],t[6]=W):W=t[6],(0,X.useEffect)(()=>je(()=>N.current()),W);let G;t[7]===n?G=t[8]:(G=function(e){let t=An(e);ft(n,{kind:`lint`,detail:t}),window.dispatchEvent(new CustomEvent(On,{detail:t}))},t[7]=n,t[8]=G);let te=G,ne;t[9]!==n||t[10]!==te?(ne=function(e,t){let r=le(e);if(r===n){te(t);return}ft(r,{kind:`lint`,detail:An(t)}),window.location.hash=ce(r)},t[9]=n,t[10]=te,t[11]=ne):ne=t[11];let ie=ne,ae=function(e){let t=i!==void 0&&(e.fixes?.length??0)>0,n=e.linkTarget!==void 0&&D!==null;if(!t&&!n&&o===void 0)return null;let r=`${e.source}/${e.code}`;return(0,Q.jsxs)(Q.Fragment,{children:[n?(0,Q.jsx)(In,{target:e.linkTarget??``,creating:O===e.linkTarget,disabled:O!==null,onCreate:()=>void B(e)}):null,t?(0,Q.jsxs)(S,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>i?.(e),"aria-label":c({id:`fZj9em`,values:{flatId:r}}),"data-testid":`problems-fix`,children:[(0,Q.jsx)(oe,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(g,{id:`c4fVUV`})]}):null,o===void 0?null:(0,Q.jsxs)(S,{size:`sm`,variant:`ghost`,className:`h-6 shrink-0 px-2 text-xs`,onClick:()=>o(e),"aria-label":c({id:`hh4mVC`,values:{flatId:r}}),"data-testid":`problems-ask-ai`,children:[(0,Q.jsx)(l,{"aria-hidden":`true`,className:`size-3`}),(0,Q.jsx)(g,{id:`xWEvuo`})]})]})},K;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Q.jsx)(Se,{children:(0,Q.jsx)(g,{id:`OXdGnd`})}),t[12]=K):K=t[12];let de=m!==null&&m.length>0&&(0,Q.jsxs)(T,{children:[(0,Q.jsx)(C,{className:`shrink-0 cursor-default rounded-md bg-muted-foreground/5 px-2 py-1 font-mono text-xs text-muted-foreground`,"data-testid":`problems-active-plugins`,children:(0,Q.jsx)(g,{id:`yxF19Y`,values:{0:m.length}})}),(0,Q.jsx)(w,{"data-testid":`problems-active-plugins-tooltip`,children:(0,Q.jsx)(g,{id:`ws5o1F`,values:{0:m.map(Un).join(`, `)}})})]}),q;t[13]===de?q=t[14]:(q=(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[K,de]}),t[13]=de,t[14]=q);let fe=u===`doc`&&R.length>0&&(0,Q.jsx)(Te,{children:R.length}),J;return t[15]!==q||t[16]!==fe?(J=(0,Q.jsxs)(Ee,{children:[q,fe]}),t[15]=q,t[16]=fe,t[17]=J):J=t[17],(0,Q.jsxs)(De,{children:[J,(0,Q.jsx)(Ht,{scope:u,onScopeChange:U}),u===`doc`?(0,Q.jsx)(we,{className:`px-2 py-2`,children:R.length===0?h?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Ce,{className:`px-2`,"data-testid":`problems-no-plugins`,children:(0,Q.jsx)(g,{id:`Hngy37`})}),(0,Q.jsx)(`div`,{className:`px-2 pt-2`,children:(0,Q.jsx)(S,{variant:`outline`,size:`sm`,onClick:ue,"data-testid":`problems-enable-plugins`,children:(0,Q.jsx)(g,{id:`rnX-1S`})})})]}):(0,Q.jsx)(Ce,{className:`px-2`,children:(0,Q.jsx)(g,{id:`ZI8uvA`})}):(0,Q.jsxs)(Q.Fragment,{children:[a!==void 0||s!==void 0?(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1 px-2 pb-1`,children:[a!==void 0&&(0,Q.jsx)(Rn,{count:z,problemCount:R.length,aiAvailable:s!==void 0,disabled:z===0,onClick:a}),s!==void 0&&(0,Q.jsx)(zn,{count:R.length,disabled:!1,onClick:()=>s(`doc`)})]}):null,(0,Q.jsx)(`ul`,{"aria-label":c({id:`OXdGnd`}),className:`flex flex-col gap-0.5`,children:Mn(R).map(e=>(0,Q.jsx)(Nn,{group:e,onNavigate:te,navTitle:e=>c({id:`vbMHjo`,values:{0:e.range.start.line+1}}),renderActions:ae},e.key))})]})}):(0,Q.jsx)(Jn,{audit:y,onRefresh:()=>void V(),onNavigate:ie,fixableCount:H.reduce(Hn,0),problemCount:y.status===`loaded`?y.result.files.reduce(Vn,0):0,fixing:x,onAutoFix:()=>void ee(),onFixWithAi:s===void 0||y.status!==`loaded`?void 0:()=>s(`project`),onCreateTarget:D===null?void 0:e=>void B(e),creatingTarget:O})]})}function Vn(e,t){return e+t.diagnostics.length}function Hn(e,t){return e+Fn(t.diagnostics)}function Un(e){return e.label}function Wn(e){return e===null?e:{...e,done:e.done+1}}function Gn(e){return e.diagnostics.some(Kn)}function Kn(e){return(e.fixes?.length??0)>0}function qn(){}function Jn(e){let t=(0,Z.c)(57),{audit:n,onRefresh:r,onNavigate:i,fixableCount:a,problemCount:o,fixing:s,onAutoFix:c,onFixWithAi:l,onCreateTarget:u,creatingTarget:d}=e,{_:f}=_(),p=n.status===`loading`||n.status===`idle`,m;t[0]!==n.result||t[1]!==n.status?(m=n.status===`loaded`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(g,{id:`DsDwR-`,values:{0:n.result.errorCount}}),` · `,(0,Q.jsx)(g,{id:`W1SI2K`,values:{0:n.result.warningCount}})]}),t[0]=n.result,t[1]=n.status,t[2]=m):m=t[2];let h;t[3]===m?h=t[4]:(h=(0,Q.jsx)(`p`,{className:`min-w-0 truncate text-xs text-muted-foreground`,"data-testid":`problems-audit-summary`,children:m}),t[3]=m,t[4]=h);let v;t[5]===f?v=t[6]:(v=f({id:`I7y_vn`}),t[5]=f,t[6]=v);let y=p||s!==null,b;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,Q.jsx)(ie,{"aria-hidden":`true`,className:`size-3.5`}),t[7]=b):b=t[7];let x;t[8]!==r||t[9]!==v||t[10]!==y?(x=(0,Q.jsx)(C,{asChild:!0,children:(0,Q.jsx)(S,{variant:`ghost`,size:`icon`,className:`size-6 shrink-0 text-muted-foreground`,"aria-label":v,"data-testid":`problems-audit-refresh`,disabled:y,onClick:r,children:b})}),t[8]=r,t[9]=v,t[10]=y,t[11]=x):x=t[11];let E;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,Q.jsx)(w,{"data-testid":`problems-audit-refresh-tooltip`,children:(0,Q.jsx)(g,{id:`I7y_vn`})}),t[12]=E):E=t[12];let D;t[13]===x?D=t[14]:(D=(0,Q.jsxs)(T,{children:[x,E]}),t[13]=x,t[14]=D);let O;t[15]!==h||t[16]!==D?(O=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[h,D]}),t[15]=h,t[16]=D,t[17]=O):O=t[17];let k;t[18]!==f||t[19]!==s?(k=s===null?null:(0,Q.jsx)(`span`,{className:`sr-only`,role:`status`,children:f({id:`gZElfU`,values:{0:s.done,1:s.total}})}),t[18]=f,t[19]=s,t[20]=k):k=t[20];let A=l!==void 0,j=p||s!==null||a===0,M;t[21]===s?M=t[22]:(M=s===null?void 0:(0,Q.jsx)(g,{id:`S9t1PI`,values:{0:s.done,1:s.total}}),t[21]=s,t[22]=M);let N;t[23]!==a||t[24]!==c||t[25]!==o||t[26]!==A||t[27]!==j||t[28]!==M?(N=(0,Q.jsx)(Rn,{count:a,problemCount:o,aiAvailable:A,disabled:j,onClick:c,children:M}),t[23]=a,t[24]=c,t[25]=o,t[26]=A,t[27]=j,t[28]=M,t[29]=N):N=t[29];let P;t[30]!==s||t[31]!==l||t[32]!==o?(P=l!==void 0&&o>0?(0,Q.jsx)(zn,{count:o,disabled:s!==null,onClick:l}):null,t[30]=s,t[31]=l,t[32]=o,t[33]=P):P=t[33];let F;t[34]!==k||t[35]!==N||t[36]!==P?(F=(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1`,children:[k,N,P]}),t[34]=k,t[35]=N,t[36]=P,t[37]=F):F=t[37];let I;t[38]!==F||t[39]!==O?(I=(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1 px-2 pb-1`,children:[O,F]}),t[38]=F,t[39]=O,t[40]=I):I=t[40];let L;t[41]!==f||t[42]!==p?(L=p&&(0,Q.jsx)(`div`,{className:`flex flex-col gap-1`,role:`status`,"aria-busy":`true`,"aria-label":f({id:`dx-TwN`}),children:[1,2,3].map(Yn)}),t[41]=f,t[42]=p,t[43]=L):L=t[43];let R;t[44]===n.status?R=t[45]:(R=n.status===`failed`&&(0,Q.jsx)(xe,{className:`px-2 text-xs`,children:(0,Q.jsx)(g,{id:`IFezUv`})}),t[44]=n.status,t[45]=R);let z;t[46]!==n.result||t[47]!==n.status||t[48]!==d||t[49]!==u||t[50]!==i?(z=n.status===`loaded`&&(0,Q.jsx)(Xn,{result:n.result,onNavigate:i,onCreateTarget:u,creatingTarget:d}),t[46]=n.result,t[47]=n.status,t[48]=d,t[49]=u,t[50]=i,t[51]=z):z=t[51];let B;return t[52]!==I||t[53]!==L||t[54]!==R||t[55]!==z?(B=(0,Q.jsxs)(we,{className:`px-2 py-2`,"data-testid":`problems-project-scope`,children:[I,L,R,z]}),t[52]=I,t[53]=L,t[54]=R,t[55]=z,t[56]=B):B=t[56],B}function Yn(e){return(0,Q.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded px-2 py-1.5`,children:[(0,Q.jsx)(ke,{className:`mt-0.5 size-3.5 shrink-0 rounded`}),(0,Q.jsxs)(`div`,{className:`flex-1 space-y-1.5`,children:[(0,Q.jsx)(ke,{className:`h-3 w-28`}),(0,Q.jsx)(ke,{className:`h-3 w-40`})]})]},e)}function Xn(e){let t=(0,Z.c)(12),{result:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:o}=_(),s;t[0]!==o||t[1]!==n.warnings?(s=n.warnings.length>0&&(0,Q.jsx)(`ul`,{"aria-label":o({id:`Rsdhj9`}),className:`flex flex-col gap-0.5 pb-1`,children:n.warnings.map(Zn)}),t[0]=o,t[1]=n.warnings,t[2]=s):s=t[2];let c;t[3]!==a||t[4]!==i||t[5]!==r||t[6]!==n.fileCount||t[7]!==n.files?(c=n.files.length===0?(0,Q.jsx)(Ce,{className:`px-2`,children:(0,Q.jsx)(g,{id:`k_Dqw1`,values:{0:n.fileCount}})}):n.files.map(e=>(0,Q.jsx)(Qn,{file:e,onNavigate:r,onCreateTarget:i,creatingTarget:a},e.file)),t[3]=a,t[4]=i,t[5]=r,t[6]=n.fileCount,t[7]=n.files,t[8]=c):c=t[8];let l;return t[9]!==s||t[10]!==c?(l=(0,Q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[s,c]}),t[9]=s,t[10]=c,t[11]=l):l=t[11],l}function Zn(e,t){return(0,Q.jsxs)(`li`,{className:`flex items-start gap-1.5 px-2 text-xs`,children:[(0,Q.jsx)(ae,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-amber-500`}),(0,Q.jsx)(`span`,{className:`min-w-0 text-foreground`,children:e})]},`${t}-${e}`)}function Qn(e){let t=(0,Z.c)(41),{file:n,onNavigate:r,onCreateTarget:i,creatingTarget:a}=e,{_:o}=_(),s,c,l,u,d,f,p,m,h;if(t[0]!==o||t[1]!==a||t[2]!==n.diagnostics||t[3]!==n.file||t[4]!==i||t[5]!==r){let e=[...n.diagnostics].sort(kn);c=O,p=!0,m=`problems-audit-group`;let g;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Q.jsx)(G,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[15]=g):g=t[15];let _;t[16]===n.file?_=t[17]:(_=(0,Q.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs text-foreground`,title:n.file,children:n.file}),t[16]=n.file,t[17]=_),h=(0,Q.jsxs)(D,{className:`group flex w-full cursor-pointer items-center gap-1.5 rounded px-2 py-1.5 text-left transition-colors hover:bg-muted`,children:[g,_,(0,Q.jsx)(J,{variant:`gray`,"data-testid":`problems-audit-file-count`,className:`shrink-0`,children:e.length})]}),s=E,f=`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in] motion-reduce:animate-none`,t[18]!==o||t[19]!==n.file?(l=o({id:`zAJzIg`,values:{0:n.file}}),t[18]=o,t[19]=n.file,t[20]=l):l=t[20],u=`flex flex-col gap-0.5 pb-1 ps-3`;let v;t[21]!==o||t[22]!==a||t[23]!==n.file||t[24]!==i||t[25]!==r?(v=e=>(0,Q.jsx)(Nn,{group:e,onNavigate:e=>r(n.file,e),navTitle:e=>o({id:`xKDsGS`,values:{0:e.range.start.line+1,1:n.file}}),renderActions:e=>e.linkTarget===void 0||i===void 0?null:(0,Q.jsx)(In,{target:e.linkTarget,creating:a===e.linkTarget,disabled:a!==null,onCreate:()=>i(e)})},e.key),t[21]=o,t[22]=a,t[23]=n.file,t[24]=i,t[25]=r,t[26]=v):v=t[26],d=Mn(e).map(v),t[0]=o,t[1]=a,t[2]=n.diagnostics,t[3]=n.file,t[4]=i,t[5]=r,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h}else s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14];let g;t[27]!==l||t[28]!==u||t[29]!==d?(g=(0,Q.jsx)(`ul`,{"aria-label":l,className:u,children:d}),t[27]=l,t[28]=u,t[29]=d,t[30]=g):g=t[30];let v;t[31]!==s||t[32]!==f||t[33]!==g?(v=(0,Q.jsx)(s,{className:f,children:g}),t[31]=s,t[32]=f,t[33]=g,t[34]=v):v=t[34];let y;return t[35]!==c||t[36]!==p||t[37]!==m||t[38]!==h||t[39]!==v?(y=(0,Q.jsxs)(c,{defaultOpen:p,"data-testid":m,children:[h,v]}),t[35]=c,t[36]=p,t[37]=m,t[38]=h,t[39]=v,t[40]=y):y=t[40],y}var $n={words:0,chars:0,tokens:0},er=/[ -〿぀-ゟ゠-ヿ㐀-䶿一-鿿豈-﫿＀-￯฀-๿ក-៿]/,tr=/[\p{L}\p{N}]/u,nr=new Set([`text`,`inlineCode`,`code`,`tag`]),rr=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),ir=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function ar(e,t){if(!e)return;let n=e.type;if(!rr.has(n)){if(nr.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
4
4
  `));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)ar(n,t);if(ir.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-BiRV80uZ.js";var t=e(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-wbFLvDA-.js";var t=e(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./globals-prQJiwR-.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a,t as o}from"./dist-Nvb76hAm.js";import{t as s}from"./compiler-runtime-BfE3aGVn.js";import{t as c}from"./utils-CPqDy6Hr.js";import{t as l}from"./button-D3xSRfT4.js";import{t as u}from"./checkbox-CgM6fL3A.js";import{t as d}from"./label-CGqMAe0S.js";import{n as f,t as p}from"./radio-group-DxMM4tU-.js";import{It as m,Lt as h}from"./dist-D8RKvolB2.js";import{t as g}from"./check-D1JmbeH0.js";import{t as _}from"./loader-circle-A8fM_hha.js";import{t as v}from"./input-CdGQDWjM.js";import{t as y}from"./dist-D-OluTzV.js";import{t as b}from"./badge-BTPyRUGW.js";import{t as x}from"./textarea-BzPGvj03.js";var S=e(r(),1),C=t(),w=s();async function T(){let e=typeof window>`u`?void 0:window.okUninstall;if(e===void 0)return null;try{let t=await e.ready();return t.kind===`screen`?t.screen:null}catch{return null}}function E(e){let t=typeof window>`u`?void 0:window.okUninstall;t!==void 0&&t.send(e).catch(()=>void 0)}var D=n();function O(e){let t=(0,w.c)(6),{items:n}=e,r;if(t[0]!==n){let e;t[2]===n.length?e=t[3]:(e=(e,t)=>(0,D.jsxs)(`li`,{className:`relative pb-5 pl-[30px] last:pb-1`,children:[t<n.length-1&&(0,D.jsx)(`span`,{"aria-hidden":`true`,className:`absolute top-[22px] bottom-0.5 left-[9px] w-0.5 bg-border`}),(0,D.jsx)(`span`,{"aria-hidden":`true`,className:c(`absolute top-px left-0 inline-flex size-5 items-center justify-center rounded-full`,e.done?`bg-primary/15 text-primary`:`border-[1.5px] border-muted-foreground/50`),children:e.done&&(0,D.jsx)(g,{className:`size-3`})}),(0,D.jsx)(`span`,{className:`sr-only`,children:e.done?(0,D.jsx)(i,{id:`clJ3qM`}):(0,D.jsx)(i,{id:`yU_9ur`})}),(0,D.jsxs)(`span`,{className:`block`,children:[(0,D.jsx)(`span`,{className:`font-medium`,children:e.label}),e.detail!==void 0&&(0,D.jsx)(`span`,{className:`mt-0.5 block text-muted-foreground leading-snug`,children:e.detail})]})]},e.label),t[2]=n.length,t[3]=e),r=n.map(e),t[0]=n,t[1]=r}else r=t[1];let a;return t[4]===r?a=t[5]:(a=(0,D.jsx)(`ol`,{className:`mb-1.5`,children:r}),t[4]=r,t[5]=a),a}function k(e){let t=(0,w.c)(49),{notice:n,onConfirm:r,onCancel:i,onRevealLog:o}=e,{_:s}=a(),c=(0,S.useId)(),u=(0,S.useId)(),d=n.cancelLabel!==void 0,f,p;t[0]!==d||t[1]!==i||t[2]!==r?(f=()=>{let e=e=>{e.key===`Escape`&&(d?i():r())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},p=[d,i,r],t[0]=d,t[1]=i,t[2]=r,t[3]=f,t[4]=p):(f=t[3],p=t[4]),(0,S.useEffect)(f,p);let m;t[5]!==n.title||t[6]!==c?(m=(0,D.jsx)(`h1`,{id:c,className:`font-medium text-base leading-none`,children:n.title}),t[5]=n.title,t[6]=c,t[7]=m):m=t[7];let h;t[8]===n.subtitle?h=t[9]:(h=n.subtitle!==void 0&&(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-snug`,children:n.subtitle}),t[8]=n.subtitle,t[9]=h);let g;t[10]!==m||t[11]!==h?(g=(0,D.jsxs)(`header`,{className:`shrink-0 space-y-4 px-6 pt-5 pb-3.5`,children:[m,h]}),t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;t[13]===n.paragraphs?_=t[14]:(_=n.paragraphs.map(A),t[13]=n.paragraphs,t[14]=_);let v;t[15]===n.checklist?v=t[16]:(v=n.checklist!==void 0&&(0,D.jsx)(O,{items:n.checklist}),t[15]=n.checklist,t[16]=v);let y;t[17]!==s||t[18]!==n.log?(y=n.log!==void 0&&(0,D.jsx)(`section`,{"aria-label":s({id:`Oi56Cu`}),tabIndex:0,className:`subtle-scrollbar mt-0.5 mb-2.5 min-h-20 flex-1 overflow-auto rounded-lg border border-border border-dotted bg-muted/40 px-3 py-2.5 focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,children:(0,D.jsx)(`pre`,{className:`select-text whitespace-pre-wrap font-mono text-xs leading-relaxed wrap-anywhere`,children:n.log})}),t[17]=s,t[18]=n.log,t[19]=y):y=t[19];let b;t[20]===n.footnote?b=t[21]:(b=n.footnote!==void 0&&(0,D.jsx)(`p`,{className:`select-text text-muted-foreground text-xs wrap-anywhere`,children:n.footnote}),t[20]=n.footnote,t[21]=b);let x;t[22]!==n.logRevealLabel||t[23]!==o?(x=n.logRevealLabel!==void 0&&(0,D.jsx)(`p`,{className:`mt-0.5`,children:(0,D.jsx)(l,{type:`button`,variant:`link-muted`,size:`xs`,className:`h-auto px-0 underline underline-offset-2`,onClick:o,children:n.logRevealLabel})}),t[22]=n.logRevealLabel,t[23]=o,t[24]=x):x=t[24];let C;t[25]!==u||t[26]!==x||t[27]!==_||t[28]!==v||t[29]!==y||t[30]!==b?(C=(0,D.jsxs)(`div`,{id:u,className:`flex min-h-0 flex-1 flex-col px-6 pt-1 pb-4 text-sm`,children:[_,v,y,b,x]}),t[25]=u,t[26]=x,t[27]=_,t[28]=v,t[29]=y,t[30]=b,t[31]=C):C=t[31];let T;t[32]!==n.cancelLabel||t[33]!==i?(T=n.cancelLabel!==void 0&&(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:i,children:n.cancelLabel}),t[32]=n.cancelLabel,t[33]=i,t[34]=T):T=t[34];let E=n.danger===!0?`destructive`:`default`,k=!d,j;t[35]!==n.confirmLabel||t[36]!==r||t[37]!==E||t[38]!==k?(j=(0,D.jsx)(l,{type:`button`,variant:E,autoFocus:k,onClick:r,children:n.confirmLabel}),t[35]=n.confirmLabel,t[36]=r,t[37]=E,t[38]=k,t[39]=j):j=t[39];let M;t[40]!==T||t[41]!==j?(M=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[T,j]}),t[40]=T,t[41]=j,t[42]=M):M=t[42];let N;return t[43]!==u||t[44]!==C||t[45]!==M||t[46]!==g||t[47]!==c?(N=(0,D.jsxs)(`div`,{role:`alertdialog`,"aria-labelledby":c,"aria-describedby":u,className:`flex h-dvh flex-col bg-background text-foreground`,children:[g,C,M]}),t[43]=u,t[44]=C,t[45]=M,t[46]=g,t[47]=c,t[48]=N):N=t[48],N}function A(e){return(0,D.jsx)(`p`,{className:`mb-2.5 leading-normal`,children:e},e)}function j(e){return e.open||e.running?`active`:e.recent?`recent`:null}function M(e){return e.split(`/`).filter(Boolean).at(-1)??e}function N(e){let t=(0,w.c)(9),{status:n}=e,{_:r}=a(),i;t[0]===r?i=t[1]:(i=r({id:`s_ereB`}),t[0]=r,t[1]=i);let o;t[2]===r?o=t[3]:(o=r({id:`_2cM9E`}),t[2]=r,t[3]=o);let s;t[4]!==i||t[5]!==o?(s={active:i,recent:o},t[4]=i,t[5]=o,t[6]=s):s=t[6];let c=s[n],l;return t[7]===c?l=t[8]:(l=(0,D.jsx)(b,{variant:`secondary`,className:`rounded-sm text-muted-foreground`,children:c}),t[7]=c,t[8]=l),l}function P(e){let t=(0,w.c)(28),{project:n,checked:r,onCheckedChange:i}=e,{_:o}=a(),s=(0,S.useId)(),c;t[0]===n?c=t[1]:(c=j(n),t[0]=n,t[1]=c);let l=c,f;t[2]===i?f=t[3]:(f=e=>i(e===!0),t[2]=i,t[3]=f);let p;t[4]!==o||t[5]!==n.path?(p=o({id:`CHfFN_`,values:{0:n.path}}),t[4]=o,t[5]=n.path,t[6]=p):p=t[6];let m;t[7]!==s||t[8]!==r||t[9]!==f||t[10]!==p?(m=(0,D.jsx)(u,{id:s,className:`mt-0.5`,checked:r,onCheckedChange:f,"aria-label":p}),t[7]=s,t[8]=r,t[9]=f,t[10]=p,t[11]=m):m=t[11];let h;t[12]===n.path?h=t[13]:(h=M(n.path),t[12]=n.path,t[13]=h);let g;t[14]===h?g=t[15]:(g=(0,D.jsx)(`span`,{className:`w-full truncate font-medium text-sm`,children:h}),t[14]=h,t[15]=g);let _;t[16]===n.path?_=t[17]:(_=(0,D.jsx)(`span`,{className:`w-full select-text break-words text-muted-foreground text-xs`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==s||t[19]!==g||t[20]!==_?(v=(0,D.jsxs)(d,{htmlFor:s,className:`min-w-0 flex-col items-start gap-0.5 font-normal`,children:[g,_]}),t[18]=s,t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;t[22]===l?y=t[23]:(y=l!==null&&(0,D.jsx)(`div`,{className:`flex justify-end max-sm:col-start-2 max-sm:justify-start`,children:(0,D.jsx)(N,{status:l})}),t[22]=l,t[23]=y);let b;return t[24]!==m||t[25]!==v||t[26]!==y?(b=(0,D.jsxs)(`div`,{className:`grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-2.5 border-border/60 border-b px-3 py-2.5 last:border-b-0 hover:bg-accent/40 max-sm:grid-cols-[auto_minmax(0,1fr)]`,children:[m,v,y]}),t[24]=m,t[25]=v,t[26]=y,t[27]=b):b=t[27],b}function F(e){let t=(0,w.c)(45),{projects:n,onConfirm:r,onCancel:o}=e,{_:s}=a(),[c,f]=(0,S.useState)(ne),p=(0,S.useId)(),m=(0,S.useId)(),h=(0,S.useId)(),g=n.length>0&&c.size===n.length?!0:c.size>0?`indeterminate`:!1,_;t[0]===n?_=t[1]:(_=e=>f(e?new Set(n.map(I)):new Set),t[0]=n,t[1]=_);let v=_,y,b;t[2]!==o||t[3]!==n?(y=()=>{let e=e=>{if(e.key===`Escape`){o();return}(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`a`&&(e.preventDefault(),f(new Set(n.map(te))))};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},b=[o,n],t[2]=o,t[3]=n,t[4]=y,t[5]=b):(y=t[4],b=t[5]),(0,S.useEffect)(y,b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,D.jsx)(i,{id:`PrVaZo`}),t[6]=x):x=t[6];let C;t[7]===p?C=t[8]:(C=(0,D.jsx)(`h1`,{id:p,className:`font-medium leading-none text-base`,children:x}),t[7]=p,t[8]=C);let T;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,D.jsx)(i,{id:`keop3U`}),t[9]=T):T=t[9];let E;t[10]===m?E=t[11]:(E=(0,D.jsx)(`p`,{id:m,className:`text-sm text-muted-foreground`,children:T}),t[10]=m,t[11]=E);let O;t[12]!==C||t[13]!==E?(O=(0,D.jsxs)(`header`,{className:`shrink-0 px-6 pt-5 pb-3.5 space-y-4`,children:[C,E]}),t[12]=C,t[13]=E,t[14]=O):O=t[14];let k;t[15]===s?k=t[16]:(k=s({id:`QySH4I`}),t[15]=s,t[16]=k);let A;t[17]!==s||t[18]!==n||t[19]!==h||t[20]!==g||t[21]!==c||t[22]!==v?(A=n.length===0?(0,D.jsx)(`div`,{className:`rounded-lg border border-border p-4`,children:(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`bKt9Jk`})})}):(0,D.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-border`,children:[(0,D.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2.5 border-border border-b px-3 py-2.5 bg-muted/30`,children:[(0,D.jsx)(u,{id:h,checked:g,onCheckedChange:e=>v(e===!0)}),(0,D.jsx)(d,{htmlFor:h,className:`flex-1 font-medium text-sm`,children:(0,D.jsx)(i,{id:`wgNoIs`})}),(0,D.jsxs)(`span`,{role:`status`,"aria-label":s({id:`nsUDL8`,values:{0:c.size,1:n.length}}),className:`text-muted-foreground text-xs tabular-nums`,children:[c.size,` / `,n.length]})]}),(0,D.jsx)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-scroll [scrollbar-gutter:stable]`,children:n.map((e,t)=>(0,D.jsx)(P,{project:e,checked:c.has(t),onCheckedChange:e=>{f(n=>{let r=new Set(n);return e?r.add(t):r.delete(t),r})}},e.path))})]}),t[17]=s,t[18]=n,t[19]=h,t[20]=g,t[21]=c,t[22]=v,t[23]=A):A=t[23];let j;t[24]!==A||t[25]!==k?(j=(0,D.jsx)(`section`,{"aria-label":k,className:`flex min-h-0 flex-1 flex-col px-6 py-3.5`,children:A}),t[24]=A,t[25]=k,t[26]=j):j=t[26];let M;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,D.jsx)(i,{id:`dEgA5A`}),t[27]=M):M=t[27];let N;t[28]===o?N=t[29]:(N=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:o,children:M}),t[28]=o,t[29]=N);let F;t[30]!==r||t[31]!==c?(F=()=>r([...c].sort(ee)),t[30]=r,t[31]=c,t[32]=F):F=t[32];let L;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(L=(0,D.jsx)(i,{id:`J7nMqi`}),t[33]=L):L=t[33];let R;t[34]===F?R=t[35]:(R=(0,D.jsx)(l,{type:`button`,variant:`destructive`,onClick:F,children:L}),t[34]=F,t[35]=R);let z;t[36]!==N||t[37]!==R?(z=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[N,R]}),t[36]=N,t[37]=R,t[38]=z):z=t[38];let B;return t[39]!==m||t[40]!==j||t[41]!==z||t[42]!==O||t[43]!==p?(B=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":p,"aria-describedby":m,className:`flex h-dvh flex-col overflow-hidden bg-background text-foreground`,children:[O,j,z]}),t[39]=m,t[40]=j,t[41]=z,t[42]=O,t[43]=p,t[44]=B):B=t[44],B}function ee(e,t){return e-t}function te(e,t){return t}function I(e,t){return t}function ne(){return new Set}function L(){let e=(0,w.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(_,{"aria-hidden":`true`,className:`mx-auto mb-4 size-8 animate-spin text-primary motion-reduce:animate-none`}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,D.jsx)(`h1`,{className:`mb-2 font-medium text-base leading-none`,children:(0,D.jsx)(i,{id:`j2229h`})}),e[1]=n):n=e[1];let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,D.jsx)(`main`,{className:`grid h-dvh place-items-center bg-background text-foreground`,children:(0,D.jsxs)(`div`,{role:`status`,className:`max-w-vw px-7 py-7 text-center`,children:[t,n,(0,D.jsx)(`p`,{className:`text-muted-foreground text-sm leading-relaxed`,children:(0,D.jsx)(i,{id:`kCjkGY`})})]})}),e[2]=r):r=e[2],r}function R(){let{_:e}=a();return{"workflow-fit":e({id:`5vAI6Z`}),"missing-feature":e({id:`cH0dkG`}),"hard-to-start":e({id:`uoJF_D`}),unreliable:e({id:`WGMoTY`}),"switched-tool":e({id:`jO18NZ`}),"one-off":e({id:`S3qu11`}),other:e({id:`aQyGJc`})}}function z(e){let t=(0,w.c)(86),{onSend:n,onSkip:r}=e,{_:o}=a(),s=R(),[c,g]=(0,S.useState)(``),[_,y]=(0,S.useState)(``),[b,C]=(0,S.useState)(!1),[T,E]=(0,S.useState)(``),O=(0,S.useRef)(null),k=(0,S.useId)(),A=(0,S.useId)(),j=(0,S.useId)(),M=(0,S.useId)(),N=(0,S.useId)(),P=(0,S.useId)(),F,ee;t[0]===b?(F=t[1],ee=t[2]):(F=()=>{b&&O.current?.focus()},ee=[b],t[0]=b,t[1]=F,t[2]=ee),(0,S.useEffect)(F,ee);let te;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,D.jsx)(i,{id:`ElyuiT`}),t[3]=te):te=t[3];let I;t[4]===k?I=t[5]:(I=(0,D.jsx)(`h1`,{id:k,className:`font-medium leading-none text-base`,children:te}),t[4]=k,t[5]=I);let ne;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(ne=(0,D.jsx)(i,{id:`ZDOq9A`}),t[6]=ne):ne=t[6];let L;t[7]===A?L=t[8]:(L=(0,D.jsx)(`p`,{id:A,className:`text-muted-foreground text-sm`,children:ne}),t[7]=A,t[8]=L);let z;t[9]!==I||t[10]!==L?(z=(0,D.jsxs)(`header`,{className:`px-6 pt-5 pb-3.5 space-y-4`,children:[I,L]}),t[9]=I,t[10]=L,t[11]=z):z=t[11];let B;t[12]!==T||t[13]!==b||t[14]!==_||t[15]!==n||t[16]!==c?(B=e=>{e.preventDefault();let t=_.trim(),r=b?T.trim():``;n({...c===``?{}:{reason:c},...t===``?{}:{note:t},...r===``?{}:{email:r}})},t[12]=T,t[13]=b,t[14]=_,t[15]=n,t[16]=c,t[17]=B):B=t[17];let re;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,D.jsx)(i,{id:`oxdGJn`}),t[18]=re):re=t[18];let V;t[19]===j?V=t[20]:(V=(0,D.jsx)(`p`,{id:j,className:`mb-2 font-medium text-sm`,children:re}),t[19]=j,t[20]=V);let H;t[21]!==j||t[22]!==s?(H=h.map(e=>(0,D.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-1 py-1`,children:[(0,D.jsx)(f,{id:`${j}-${e.value}`,value:e.value}),(0,D.jsx)(d,{htmlFor:`${j}-${e.value}`,className:`font-normal text-sm leading-snug`,children:s[e.value]})]},e.value)),t[21]=j,t[22]=s,t[23]=H):H=t[23];let U;t[24]!==j||t[25]!==c||t[26]!==H?(U=(0,D.jsx)(p,{"aria-labelledby":j,value:c,onValueChange:g,children:H}),t[24]=j,t[25]=c,t[26]=H,t[27]=U):U=t[27];let W;t[28]!==V||t[29]!==U?(W=(0,D.jsxs)(`div`,{className:`mb-6`,children:[V,U]}),t[28]=V,t[29]=U,t[30]=W):W=t[30];let ie;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,D.jsx)(i,{id:`axQ1h6`}),t[31]=ie):ie=t[31];let G;t[32]===M?G=t[33]:(G=(0,D.jsx)(d,{htmlFor:M,className:`mb-2 font-medium text-sm`,children:ie}),t[32]=M,t[33]=G);let K;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(K=e=>y(e.target.value),t[34]=K):K=t[34];let q;t[35]!==_||t[36]!==M?(q=(0,D.jsx)(x,{id:M,rows:3,maxLength:m,value:_,onChange:K}),t[35]=_,t[36]=M,t[37]=q):q=t[37];let J;t[38]!==G||t[39]!==q?(J=(0,D.jsxs)(`div`,{className:`mb-6`,children:[G,q]}),t[38]=G,t[39]=q,t[40]=J):J=t[40];let ae;t[41]===Symbol.for(`react.memo_cache_sentinel`)?(ae=e=>C(e===!0),t[41]=ae):ae=t[41];let Y;t[42]!==b||t[43]!==N?(Y=(0,D.jsx)(u,{id:N,checked:b,onCheckedChange:ae}),t[42]=b,t[43]=N,t[44]=Y):Y=t[44];let oe;t[45]===Symbol.for(`react.memo_cache_sentinel`)?(oe=(0,D.jsx)(i,{id:`xEb24l`}),t[45]=oe):oe=t[45];let X;t[46]===N?X=t[47]:(X=(0,D.jsx)(d,{htmlFor:N,className:`font-medium text-sm`,children:oe}),t[46]=N,t[47]=X);let Z;t[48]!==Y||t[49]!==X?(Z=(0,D.jsxs)(`div`,{className:`mb-2 flex items-center gap-2.5`,children:[Y,X]}),t[48]=Y,t[49]=X,t[50]=Z):Z=t[50];let se=!b,ce;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,D.jsx)(i,{id:`ATGYL1`}),t[51]=ce):ce=t[51];let Q;t[52]===P?Q=t[53]:(Q=(0,D.jsx)(d,{htmlFor:P,className:`mb-2 font-medium text-sm sr-only`,children:ce}),t[52]=P,t[53]=Q);let le;t[54]===o?le=t[55]:(le=o({id:`JHf6qZ`}),t[54]=o,t[55]=le);let ue=!b,de;t[56]===Symbol.for(`react.memo_cache_sentinel`)?(de=e=>E(e.target.value),t[56]=de):de=t[56];let fe;t[57]!==T||t[58]!==P||t[59]!==le||t[60]!==ue?(fe=(0,D.jsx)(v,{id:P,ref:O,type:`email`,maxLength:320,autoComplete:`email`,spellCheck:!1,placeholder:le,disabled:ue,value:T,onChange:de}),t[57]=T,t[58]=P,t[59]=le,t[60]=ue,t[61]=fe):fe=t[61];let $;t[62]!==se||t[63]!==Q||t[64]!==fe?($=(0,D.jsxs)(`div`,{className:`mb-6`,hidden:se,children:[Q,fe]}),t[62]=se,t[63]=Q,t[64]=fe,t[65]=$):$=t[65];let pe;t[66]!==W||t[67]!==J||t[68]!==Z||t[69]!==$?(pe=(0,D.jsxs)(`div`,{className:`subtle-scrollbar min-h-0 flex-1 overflow-y-auto px-6 pt-1 pb-4`,children:[W,J,Z,$]}),t[66]=W,t[67]=J,t[68]=Z,t[69]=$,t[70]=pe):pe=t[70];let me;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,D.jsx)(i,{id:`6Uau97`}),t[71]=me):me=t[71];let he;t[72]===r?he=t[73]:(he=(0,D.jsx)(l,{type:`button`,variant:`outline-mono`,autoFocus:!0,onClick:r,children:me}),t[72]=r,t[73]=he);let ge;t[74]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,D.jsx)(l,{type:`submit`,children:(0,D.jsx)(i,{id:`xMsnTe`})}),t[74]=ge):ge=t[74];let _e;t[75]===he?_e=t[76]:(_e=(0,D.jsxs)(`footer`,{className:`flex items-center justify-end gap-2.5 border-border border-t bg-muted/50 px-6 pt-3.5 pb-4`,children:[he,ge]}),t[75]=he,t[76]=_e);let ve;t[77]!==pe||t[78]!==_e||t[79]!==B?(ve=(0,D.jsxs)(`form`,{className:`flex min-h-0 flex-1 flex-col`,onSubmit:B,children:[pe,_e]}),t[77]=pe,t[78]=_e,t[79]=B,t[80]=ve):ve=t[80];let ye;return t[81]!==A||t[82]!==ve||t[83]!==z||t[84]!==k?(ye=(0,D.jsxs)(`div`,{role:`dialog`,"aria-labelledby":k,"aria-describedby":A,className:`flex h-dvh flex-col bg-background text-foreground`,children:[z,ve]}),t[81]=A,t[82]=ve,t[83]=z,t[84]=k,t[85]=ye):ye=t[85],ye}function B(){let e=(0,w.c)(9),[t,n]=(0,S.useState)(null),r,a;if(e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=!0;return T().then(t=>{e&&n(t)}),()=>{e=!1}},a=[],e[0]=r,e[1]=a):(r=e[0],a=e[1]),(0,S.useEffect)(r,a),t!==null)switch(t.kind){case`picker`:{let n;return e[2]===t.projects?n=e[3]:(n=(0,D.jsx)(F,{projects:t.projects,onConfirm:G,onCancel:ie}),e[2]=t.projects,e[3]=n),n}case`survey`:{let t;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(z,{onSend:W,onSkip:U}),e[4]=t):t=e[4],t}case`progress`:{let t;return e[5]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,D.jsx)(L,{}),e[5]=t):t=e[5],t}case`notice`:{let n;return e[6]===t.notice?n=e[7]:(n=(0,D.jsx)(k,{notice:t.notice,onConfirm:H,onCancel:V,onRevealLog:re}),e[6]=t.notice,e[7]=n),n}default:return t}let o;return e[8]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,D.jsx)(`main`,{className:`flex min-h-dvh items-center justify-center bg-background p-8 text-foreground`,children:(0,D.jsx)(`p`,{className:`text-center text-muted-foreground text-sm`,children:(0,D.jsx)(i,{id:`tzGWeg`})})}),e[8]=o):o=e[8],o}function re(){return E({kind:`notice-reveal-log`})}function V(){return E({kind:`notice-cancel`})}function H(){return E({kind:`notice-confirm`})}function U(){return E({kind:`survey-skip`})}function W(e){return E({kind:`survey-send`,...e})}function ie(){return E({kind:`picker-cancel`})}function G(e){return E({kind:`picker-confirm`,selectedIndexes:e})}var K=document.getElementById(`root`);if(!K)throw Error(`Root element not found`);(0,C.createRoot)(K).render((0,D.jsx)(S.StrictMode,{children:(0,D.jsx)(o,{i18n:y,children:(0,D.jsx)(B,{})})}));
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{i as t}from"./DocumentContext-DOLytv_M.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{P as i}from"./CodeMirrorPropInput-ni9vC7Fz.js";import{ft as a,i as o,r as s}from"./dist-B4smVaZm2.js";import{d as c}from"./documents-events-DYwaAqwG.js";import{n as l}from"./agent-presence-BcWu61SE.js";import{t as u}from"./lru-string-cache-CHVwK1CS.js";var d=r(),f=e(n(),1),p=500,m=64;async function h(e){let t=`/api/agent-activity?agentId=${encodeURIComponent(e)}`,n=await fetch(t),r;try{r=await n.json()}catch(e){throw new i(`Could not parse /api/agent-activity response.`,{cause:e,status:n.status})}if(!n.ok){let e=a.safeParse(r);throw e.success?Error(e.data.title):new i(`/api/agent-activity returned a non-RFC-9457 error response.`,{cause:e.error,status:n.status})}let o=s.safeParse(r);if(!o.success)throw new i(`/api/agent-activity returned a body that did not match AgentActivitySuccessSchema.`,{cause:o.error,status:n.status});return o.data}async function g(e,t,n){let r=`/api/agent-burst-diff?agentId=${encodeURIComponent(e)}&docName=${encodeURIComponent(t)}&keptCount=${n}`,s=await fetch(r),c;try{c=await s.json()}catch(e){throw new i(`Could not parse /api/agent-burst-diff response.`,{cause:e,status:s.status})}if(!s.ok){let e=a.safeParse(c);throw e.success?Error(e.data.title):new i(`/api/agent-burst-diff returned a non-RFC-9457 error response.`,{cause:e.error,status:s.status})}let l=o.safeParse(c);if(!l.success)throw new i(`/api/agent-burst-diff returned a body that did not match AgentBurstDiffSuccessSchema.`,{cause:l.error,status:s.status});let{diff:u,before:d,after:f}=l.data;return{diff:u,before:d,after:f}}function _(e){let n=(0,d.c)(23),{systemProvider:r}=t(),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(`idle`),[l,_]=(0,f.useState)(null),b;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new u(m),n[0]=b):b=n[0];let x=(0,f.useRef)(b),S=(0,f.useRef)(0),C;n[1]===r?C=n[2]:(C=e=>{let t=S.current+=1;s(`loading`),_(null),h(e).then(n=>{if(S.current!==t)return;let i=y(r,e);a({...n,writingDocs:i}),s(`ready`)}).catch(e=>{S.current===t&&(_(e instanceof Error?e.message:String(e)),s(`error`))})},n[1]=r,n[2]=C);let w=C,T;n[3]!==e||n[4]!==w?(T=()=>{if(!e){S.current+=1,a(null),s(`idle`),_(null),x.current.clear();return}x.current.clear(),w(e);let t=null,n=c(n=>{n.includes(`session-activity`)&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,w(e)},p))});return()=>{t&&clearTimeout(t),n()}},n[3]=e,n[4]=w,n[5]=T):T=n[5];let E;n[6]===e?E=n[7]:(E=[e],n[6]=e,n[7]=E),(0,f.useEffect)(T,E);let D,O;n[8]!==e||n[9]!==r?(D=()=>{if(!e||!r)return;let t=()=>{if(!r.awareness)return;let t=y(r,e);a(e=>!e||v(e.writingDocs,t)?e:{...e,writingDocs:t})},n=r.awareness;if(!n||typeof n.on!=`function`){t();return}n.on(`update`,t),t();let i=setInterval(t,1e3);return()=>{clearInterval(i),typeof n.off==`function`&&n.off(`update`,t)}},O=[e,r],n[8]=e,n[9]=r,n[10]=D,n[11]=O):(D=n[10],O=n[11]),(0,f.useEffect)(D,O);let k;n[12]===e?k=n[13]:(k=async(t,n)=>{if(!e)return``;let r=`${t}\0${n}`,i=x.current.get(r);if(i!==void 0)return i;let{diff:a}=await g(e,t,n);return x.current.set(r,a),a},n[12]=e,n[13]=k);let A=k,j;n[14]!==e||n[15]!==w?(j=()=>{e&&w(e)},n[14]=e,n[15]=w,n[16]=j):j=n[16];let M=j,N;return n[17]!==i||n[18]!==l||n[19]!==A||n[20]!==M||n[21]!==o?(N={data:i,status:o,error:l,reload:M,fetchBurstDiff:A},n[17]=i,n[18]=l,n[19]=A,n[20]=M,n[21]=o,n[22]=N):N=n[22],N}function v(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function y(e,t){let n=new Set;if(!e)return n;let r=e.awareness;if(!l(r))return n;let i=[t,t.startsWith(`agent-`)?t.slice(6):`agent-${t}`];for(let e of r.getStates().values()){let t=e.agentPresence;if(t)for(let e of i){let r=t[e];r&&r.mode===`writing`&&r.currentDoc&&n.add(r.currentDoc)}}return n}export{_ as n,g as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{i as t}from"./DocumentContext-Ddtfw06F.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{j as i}from"./CodeMirrorPropInput-6uPyBi97.js";import{ft as a,i as o,r as s}from"./dist-D8RKvolB2.js";import{d as c}from"./documents-events-Bh1LSWeJ.js";import{n as l}from"./agent-presence-CuSKbQIG.js";import{t as u}from"./lru-string-cache-CTK2PJbw.js";var d=r(),f=e(n(),1),p=500,m=64;async function h(e){let t=`/api/agent-activity?agentId=${encodeURIComponent(e)}`,n=await fetch(t),r;try{r=await n.json()}catch(e){throw new i(`Could not parse /api/agent-activity response.`,{cause:e,status:n.status})}if(!n.ok){let e=a.safeParse(r);throw e.success?Error(e.data.title):new i(`/api/agent-activity returned a non-RFC-9457 error response.`,{cause:e.error,status:n.status})}let o=s.safeParse(r);if(!o.success)throw new i(`/api/agent-activity returned a body that did not match AgentActivitySuccessSchema.`,{cause:o.error,status:n.status});return o.data}async function g(e,t,n){let r=`/api/agent-burst-diff?agentId=${encodeURIComponent(e)}&docName=${encodeURIComponent(t)}&keptCount=${n}`,s=await fetch(r),c;try{c=await s.json()}catch(e){throw new i(`Could not parse /api/agent-burst-diff response.`,{cause:e,status:s.status})}if(!s.ok){let e=a.safeParse(c);throw e.success?Error(e.data.title):new i(`/api/agent-burst-diff returned a non-RFC-9457 error response.`,{cause:e.error,status:s.status})}let l=o.safeParse(c);if(!l.success)throw new i(`/api/agent-burst-diff returned a body that did not match AgentBurstDiffSuccessSchema.`,{cause:l.error,status:s.status});let{diff:u,before:d,after:f}=l.data;return{diff:u,before:d,after:f}}function _(e){let n=(0,d.c)(23),{systemProvider:r}=t(),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(`idle`),[l,_]=(0,f.useState)(null),b;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(b=new u(m),n[0]=b):b=n[0];let x=(0,f.useRef)(b),S=(0,f.useRef)(0),C;n[1]===r?C=n[2]:(C=e=>{let t=S.current+=1;s(`loading`),_(null),h(e).then(n=>{if(S.current!==t)return;let i=y(r,e);a({...n,writingDocs:i}),s(`ready`)}).catch(e=>{S.current===t&&(_(e instanceof Error?e.message:String(e)),s(`error`))})},n[1]=r,n[2]=C);let w=C,T;n[3]!==e||n[4]!==w?(T=()=>{if(!e){S.current+=1,a(null),s(`idle`),_(null),x.current.clear();return}x.current.clear(),w(e);let t=null,n=c(n=>{n.includes(`session-activity`)&&(t&&clearTimeout(t),t=setTimeout(()=>{t=null,w(e)},p))});return()=>{t&&clearTimeout(t),n()}},n[3]=e,n[4]=w,n[5]=T):T=n[5];let E;n[6]===e?E=n[7]:(E=[e],n[6]=e,n[7]=E),(0,f.useEffect)(T,E);let D,O;n[8]!==e||n[9]!==r?(D=()=>{if(!e||!r)return;let t=()=>{if(!r.awareness)return;let t=y(r,e);a(e=>!e||v(e.writingDocs,t)?e:{...e,writingDocs:t})},n=r.awareness;if(!n||typeof n.on!=`function`){t();return}n.on(`update`,t),t();let i=setInterval(t,1e3);return()=>{clearInterval(i),typeof n.off==`function`&&n.off(`update`,t)}},O=[e,r],n[8]=e,n[9]=r,n[10]=D,n[11]=O):(D=n[10],O=n[11]),(0,f.useEffect)(D,O);let k;n[12]===e?k=n[13]:(k=async(t,n)=>{if(!e)return``;let r=`${t}\0${n}`,i=x.current.get(r);if(i!==void 0)return i;let{diff:a}=await g(e,t,n);return x.current.set(r,a),a},n[12]=e,n[13]=k);let A=k,j;n[14]!==e||n[15]!==w?(j=()=>{e&&w(e)},n[14]=e,n[15]=w,n[16]=j):j=n[16];let M=j,N;return n[17]!==i||n[18]!==l||n[19]!==A||n[20]!==M||n[21]!==o?(N={data:i,status:o,error:l,reload:M,fetchBurstDiff:A},n[17]=i,n[18]=l,n[19]=A,n[20]=M,n[21]=o,n[22]=N):N=n[22],N}function v(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function y(e,t){let n=new Set;if(!e)return n;let r=e.awareness;if(!l(r))return n;let i=[t,t.startsWith(`agent-`)?t.slice(6):`agent-${t}`];for(let e of r.getStates().values()){let t=e.agentPresence;if(t)for(let e of i){let r=t[e];r&&r.mode===`writing`&&r.currentDoc&&n.add(r.currentDoc)}}return n}export{_ as n,g as t};
@@ -1,2 +1,2 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{So as r,co as i,h as a,m as o,st as s}from"./dist-B4smVaZm2.js";var c=e(t(),1),l=n(),u=new Map(s.map(e=>[e.name,e]));function d(e,t){let n=u.get(e);if(!n)throw Error(`color-themes: ${e} is not a generated base-theme token`);return n[t]}function f(e){return{sidebar:e===`dark`?o:a,background:d(`--background`,e),primary:d(`--primary`,e),border:d(`--border`,e),"syntax-string":d(`--chart-2`,e),"syntax-keyword":d(`--chart-4`,e),"syntax-atom":d(`--chart-3`,e)}}var p=/^#[0-9a-fA-F]{6}$/,m={background:`#0f172a`,surface:`#1e293b`,foreground:`#e2e8f0`,primary:`#6366f1`,accent:`#22d3ee`,border:`#334155`};function h(e){return typeof e==`string`&&p.test(e)}function g(e){let t={...m};if(e)for(let n of Object.keys(m)){let r=e[n];h(r)&&(t[n]=r)}return t}function _(e){let t=h(e)?e:`#000000`,n=e=>{let n=Number.parseInt(t.slice(1+e*2,3+e*2),16)/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4};return .2126*n(0)+.7152*n(1)+.0722*n(2)}function v(e){return _(e.background)<.5?`dark`:`light`}function y(e){return _(e)<.5?`#ffffff`:`#0a0a0a`}function b(e){return{bg:e.background,bgElevated:e.surface,bgSubtle:e.surface,fg:e.foreground,fgMuted:`color-mix(in oklab, ${e.foreground} 55%, ${e.background})`,border:e.border,primary:e.primary,primaryFg:y(e.primary),red:`#e5534b`,green:`#3fb950`,yellow:`#d29922`,blue:e.accent,cyan:e.accent,orange:`#db8d3f`,purple:e.accent}}function x(e){let t=i(b(e)),n=Object.entries(t).map(([e,t])=>` --${e}: ${t};`);return`html[data-color-theme="custom"] {\n color-scheme: ${v(e)};\n${n.join(`
2
- `)}\n}`}var S=(0,c.createContext)(null);function C(){let e=(0,c.use)(S);if(!e)throw Error(`useConfigContext must be used within <ConfigProvider />`);return e}function w(){return(0,c.use)(S)}var T=`ok-color-theme-v1`,E=`ok-custom-theme-v1`,D=`data-color-theme`,O=`ok-custom-theme`;function k(e){let t=document.getElementById(O);t||(t=document.createElement(`style`),t.id=O,document.head.appendChild(t)),t.textContent!==e&&(t.textContent=e)}function A(){document.getElementById(O)?.remove()}function j(e,t,n=!0){if(typeof document>`u`)return;let i=r(n?e:`default`),a=document.documentElement;i.id===`default`?a.removeAttribute(D):a.setAttribute(D,i.id);let o=null;if(i.id===`custom`){let e=g(t),n=x(e);k(n),o=JSON.stringify({css:n,dark:v(e)===`dark`})}else A();try{i.id===`default`?localStorage.removeItem(T):localStorage.setItem(T,i.id),o?localStorage.setItem(E,o):localStorage.removeItem(E)}catch{}}function M(e,t,n){let r=(0,l.c)(12),i=n===void 0?!0:n,a;r[0]!==e||r[1]!==t||r[2]!==i?(a=i&&e===`custom`?JSON.stringify(t??null):``,r[0]=e,r[1]=t,r[2]=i,r[3]=a):a=r[3];let o=a,s;r[4]!==e||r[5]!==t||r[6]!==i?(s=()=>{j(e,t,i)},r[4]=e,r[5]=t,r[6]=i,r[7]=s):s=r[7];let u;r[8]!==e||r[9]!==i||r[10]!==o?(u=[e,o,i],r[8]=e,r[9]=i,r[10]=o,r[11]=u):u=r[11],(0,c.useEffect)(s,u)}export{C as a,v as c,h as d,g as f,S as i,f as l,j as n,w as o,M as r,m as s,D as t,b as u};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{h as r,lo as i,m as a,st as o,wo as s}from"./dist-D8RKvolB2.js";var c=e(t(),1),l=n(),u=new Map(o.map(e=>[e.name,e]));function d(e,t){let n=u.get(e);if(!n)throw Error(`color-themes: ${e} is not a generated base-theme token`);return n[t]}function f(e){return{sidebar:e===`dark`?a:r,background:d(`--background`,e),primary:d(`--primary`,e),border:d(`--border`,e),"syntax-string":d(`--chart-2`,e),"syntax-keyword":d(`--chart-4`,e),"syntax-atom":d(`--chart-3`,e)}}var p=/^#[0-9a-fA-F]{6}$/,m={background:`#0f172a`,surface:`#1e293b`,foreground:`#e2e8f0`,primary:`#6366f1`,accent:`#22d3ee`,border:`#334155`};function h(e){return typeof e==`string`&&p.test(e)}function g(e){let t={...m};if(e)for(let n of Object.keys(m)){let r=e[n];h(r)&&(t[n]=r)}return t}function _(e){let t=h(e)?e:`#000000`,n=e=>{let n=Number.parseInt(t.slice(1+e*2,3+e*2),16)/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4};return .2126*n(0)+.7152*n(1)+.0722*n(2)}function v(e){return _(e.background)<.5?`dark`:`light`}function y(e){return _(e)<.5?`#ffffff`:`#0a0a0a`}function b(e){return{bg:e.background,bgElevated:e.surface,bgSubtle:e.surface,fg:e.foreground,fgMuted:`color-mix(in oklab, ${e.foreground} 55%, ${e.background})`,border:e.border,primary:e.primary,primaryFg:y(e.primary),red:`#e5534b`,green:`#3fb950`,yellow:`#d29922`,blue:e.accent,cyan:e.accent,orange:`#db8d3f`,purple:e.accent}}function x(e){let t=i(b(e)),n=Object.entries(t).map(([e,t])=>` --${e}: ${t};`);return`html[data-color-theme="custom"] {\n color-scheme: ${v(e)};\n${n.join(`
2
+ `)}\n}`}var S=(0,c.createContext)(null);function C(){let e=(0,c.use)(S);if(!e)throw Error(`useConfigContext must be used within <ConfigProvider />`);return e}function w(){return(0,c.use)(S)}var T=`ok-color-theme-v1`,E=`ok-custom-theme-v1`,D=`data-color-theme`,O=`ok-custom-theme`;function k(e){let t=document.getElementById(O);t||(t=document.createElement(`style`),t.id=O,document.head.appendChild(t)),t.textContent!==e&&(t.textContent=e)}function A(){document.getElementById(O)?.remove()}function j(e,t,n=!0){if(typeof document>`u`)return;let r=s(n?e:`default`),i=document.documentElement;r.id===`default`?i.removeAttribute(D):i.setAttribute(D,r.id);let a=null;if(r.id===`custom`){let e=g(t),n=x(e);k(n),a=JSON.stringify({css:n,dark:v(e)===`dark`})}else A();try{r.id===`default`?localStorage.removeItem(T):localStorage.setItem(T,r.id),a?localStorage.setItem(E,a):localStorage.removeItem(E)}catch{}}function M(e,t,n){let r=(0,l.c)(12),i=n===void 0?!0:n,a;r[0]!==e||r[1]!==t||r[2]!==i?(a=i&&e===`custom`?JSON.stringify(t??null):``,r[0]=e,r[1]=t,r[2]=i,r[3]=a):a=r[3];let o=a,s;r[4]!==e||r[5]!==t||r[6]!==i?(s=()=>{j(e,t,i)},r[4]=e,r[5]=t,r[6]=i,r[7]=s):s=r[7];let u;r[8]!==e||r[9]!==i||r[10]!==o?(u=[e,o,i],r[8]=e,r[9]=i,r[10]=o,r[11]=u):u=r[11],(0,c.useEffect)(s,u)}export{C as a,v as c,h as d,g as f,S as i,f as l,j as n,w as o,M as r,m as s,D as t,b as u};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{c as r,d as i,f as a,l as o,p as s,u as c}from"./dist-B4smVaZm2.js";var l=e(t(),1),u=n();async function d(e){let t;try{t=await fetch(`/api/config`,{signal:e,headers:{Accept:`application/json`}})}catch(e){if(e.name===`AbortError`)throw e;return{status:`error`,code:`network`}}if(t.status===404||t.status===501)return{status:`absent`};if(!t.ok)return{status:`error`,code:t.status};let n;try{n=await t.json()}catch{return{status:`error`,code:`invalid-body`}}if(typeof n!=`object`||!n||Array.isArray(n))return{status:`error`,code:`invalid-body`};let r=n;return{status:`ok`,config:{collabUrl:typeof r.collabUrl==`string`?r.collabUrl:null,previewUrl:typeof r.previewUrl==`string`?r.previewUrl:null,port:typeof r.port==`number`?r.port:0,singleFile:r.singleFile===!0}}}function f(e){return b(e,i)}function p(e){return b(e,s)}function m(e){return b(e,r)}function h(e){return b(e,c)}function g(e){return b(e,o)}function _(e){let t=b(e,a);if(!t)return null;try{return{docName:t.docName,sv:v(t.sv)}}catch{return null}}function v(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function y(e,t){let n=p(e);if(n){t.onServerInfo?.(n);return}let r=m(e);if(r){t.onBranchSwitched?.(r);return}let i=_(e);if(i){t.onDiskAck?.(i);return}let a=f(e);if(a){t.onDerivedView?.(a);return}let o=h(e);if(o){t.onConfigValidationRejected?.(o);return}let s=g(e);if(s){t.onConfigIgnoreNestedError?.(s);return}t.onUnknown?.(e)}function b(e,t){let n;try{n=JSON.parse(e)}catch{return null}let r=t.safeParse(n);return r.success?r.data:null}function x(){return typeof location>`u`?`ws://localhost/collab`:`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/collab`}function S(e){if(e===void 0)return null;let t=e.okDesktop;return!t||!t.config.collabUrl||t.config.collabUrl.length===0?null:t}function C(e){return{collabUrl:e.collabUrl,attempts:0,terminal:!1,lastError:null}}var w=2e3,T=15e3;function E(e){let t=e.terminalAfterMs??3e4,n=e.initialDelayMs??w,r=e.maxDelayMs??T,i=e.log??{info:console.info,warn:console.warn},a=new AbortController,o=null,s=n,c=0,l=!1,u=!1,d=null,f=e.now(),p=async()=>{c+=1;let n=null;try{let t=await e.fetchConfig(a.signal);t.status===`absent`?(n=e.fallbackUrl(),d=null):t.status===`ok`&&t.config.collabUrl!==null?(n=t.config.collabUrl,d=null):t.status===`ok`?(u||(u=!0,i.info(`[collab-url] ok ui responded but server.lock has no port yet — retrying`)),d={kind:`null-collab`}):t.status===`error`&&(i.warn(`[collab-url] /api/config error (${t.code}) — retrying in ${s}ms`),d={kind:`error`,code:t.code})}catch(e){if(e.name===`AbortError`)return;d={kind:`error`,code:`network`}}if(!l){if(n!==null){e.onStateChange({collabUrl:n,attempts:c,terminal:!1,lastError:null});return}if(e.now()-f>=t){e.onStateChange({collabUrl:null,attempts:c,terminal:!0,lastError:d});return}e.onStateChange({collabUrl:null,attempts:c,terminal:!1,lastError:d}),o=e.setTimeout(()=>{p()},s),s=Math.min(s*2,r)}};return p(),{cancel:()=>{l=!0,a.abort(),o!==null&&(e.clearTimeout(o),o=null)}}}function D(){let e=(0,u.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={collabUrl:null,attempts:0,terminal:!1,lastError:null},e[0]=t):t=e[0];let[n,r]=(0,l.useState)(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={token:0},e[1]=i):i=e[1];let a=(0,l.useRef)(i),[o,s]=(0,l.useState)(0),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=a.current.token=a.current.token+1,t=S(window);if(t){r(C(t.config));let n=t.onProjectSwitched(t=>{e===a.current.token&&r(C(t))});return()=>{n()}}let n=E({fetchConfig:d,fallbackUrl:x,now:Date.now,setTimeout:j,clearTimeout:A,onStateChange:t=>{e===a.current.token&&r(t)}});return()=>{n.cancel()}},e[2]=c):c=e[2];let f;e[3]===o?f=e[4]:(f=[o],e[3]=o,e[4]=f),(0,l.useEffect)(c,f);let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{a.current.token=a.current.token+1,r(k),s(O)},e[5]=p):p=e[5];let m=p,h;return e[6]===n?h=e[7]:(h={...n,retry:m},e[6]=n,e[7]=h),h}function O(e){return e+1}function k(e){return{...e,terminal:!1,lastError:null}}function A(e){return globalThis.clearTimeout(e)}function j(e,t){return globalThis.setTimeout(e,t)}export{d as i,D as n,y as r,S as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{c as r,d as i,f as a,l as o,p as s,u as c}from"./dist-D8RKvolB2.js";var l=e(t(),1),u=n();async function d(e){let t;try{t=await fetch(`/api/config`,{signal:e,headers:{Accept:`application/json`}})}catch(e){if(e.name===`AbortError`)throw e;return{status:`error`,code:`network`}}if(t.status===404||t.status===501)return{status:`absent`};if(!t.ok)return{status:`error`,code:t.status};let n;try{n=await t.json()}catch{return{status:`error`,code:`invalid-body`}}if(typeof n!=`object`||!n||Array.isArray(n))return{status:`error`,code:`invalid-body`};let r=n;return{status:`ok`,config:{collabUrl:typeof r.collabUrl==`string`?r.collabUrl:null,previewUrl:typeof r.previewUrl==`string`?r.previewUrl:null,port:typeof r.port==`number`?r.port:0,singleFile:r.singleFile===!0}}}function f(e){return b(e,i)}function p(e){return b(e,s)}function m(e){return b(e,r)}function h(e){return b(e,c)}function g(e){return b(e,o)}function _(e){let t=b(e,a);if(!t)return null;try{return{docName:t.docName,sv:v(t.sv)}}catch{return null}}function v(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function y(e,t){let n=p(e);if(n){t.onServerInfo?.(n);return}let r=m(e);if(r){t.onBranchSwitched?.(r);return}let i=_(e);if(i){t.onDiskAck?.(i);return}let a=f(e);if(a){t.onDerivedView?.(a);return}let o=h(e);if(o){t.onConfigValidationRejected?.(o);return}let s=g(e);if(s){t.onConfigIgnoreNestedError?.(s);return}t.onUnknown?.(e)}function b(e,t){let n;try{n=JSON.parse(e)}catch{return null}let r=t.safeParse(n);return r.success?r.data:null}function x(){return typeof location>`u`?`ws://localhost/collab`:`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/collab`}function S(e){if(e===void 0)return null;let t=e.okDesktop;return!t||!t.config.collabUrl||t.config.collabUrl.length===0?null:t}function C(e){return{collabUrl:e.collabUrl,attempts:0,terminal:!1,lastError:null}}var w=2e3,T=15e3;function E(e){let t=e.terminalAfterMs??3e4,n=e.initialDelayMs??w,r=e.maxDelayMs??T,i=e.log??{info:console.info,warn:console.warn},a=new AbortController,o=null,s=n,c=0,l=!1,u=!1,d=null,f=e.now(),p=async()=>{c+=1;let n=null;try{let t=await e.fetchConfig(a.signal);t.status===`absent`?(n=e.fallbackUrl(),d=null):t.status===`ok`&&t.config.collabUrl!==null?(n=t.config.collabUrl,d=null):t.status===`ok`?(u||(u=!0,i.info(`[collab-url] ok ui responded but server.lock has no port yet — retrying`)),d={kind:`null-collab`}):t.status===`error`&&(i.warn(`[collab-url] /api/config error (${t.code}) — retrying in ${s}ms`),d={kind:`error`,code:t.code})}catch(e){if(e.name===`AbortError`)return;d={kind:`error`,code:`network`}}if(!l){if(n!==null){e.onStateChange({collabUrl:n,attempts:c,terminal:!1,lastError:null});return}if(e.now()-f>=t){e.onStateChange({collabUrl:null,attempts:c,terminal:!0,lastError:d});return}e.onStateChange({collabUrl:null,attempts:c,terminal:!1,lastError:d}),o=e.setTimeout(()=>{p()},s),s=Math.min(s*2,r)}};return p(),{cancel:()=>{l=!0,a.abort(),o!==null&&(e.clearTimeout(o),o=null)}}}function D(){let e=(0,u.c)(8),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={collabUrl:null,attempts:0,terminal:!1,lastError:null},e[0]=t):t=e[0];let[n,r]=(0,l.useState)(t),i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i={token:0},e[1]=i):i=e[1];let a=(0,l.useRef)(i),[o,s]=(0,l.useState)(0),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=()=>{let e=a.current.token=a.current.token+1,t=S(window);if(t){r(C(t.config));let n=t.onProjectSwitched(t=>{e===a.current.token&&r(C(t))});return()=>{n()}}let n=E({fetchConfig:d,fallbackUrl:x,now:Date.now,setTimeout:j,clearTimeout:A,onStateChange:t=>{e===a.current.token&&r(t)}});return()=>{n.cancel()}},e[2]=c):c=e[2];let f;e[3]===o?f=e[4]:(f=[o],e[3]=o,e[4]=f),(0,l.useEffect)(c,f);let p;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{a.current.token=a.current.token+1,r(k),s(O)},e[5]=p):p=e[5];let m=p,h;return e[6]===n?h=e[7]:(h={...n,retry:m},e[6]=n,e[7]=h),h}function O(e){return e+1}function k(e){return{...e,terminal:!1,lastError:null}}function A(e){return globalThis.clearTimeout(e)}function j(e,t){return globalThis.setTimeout(e,t)}export{d as i,D as n,y as r,S as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./use-apply-config-color-theme-BeVjXtPt.js";var i=e(t(),1),a=n(),o={background:`#171717`,foreground:`#e5e5e5`,cursor:`#e5e5e5`,cursorAccent:`#171717`,selectionBackground:`#3a3d41`,black:`#000000`,red:`#cd3131`,green:`#0dbc79`,yellow:`#e5e510`,blue:`#2472c8`,magenta:`#bc3fbc`,cyan:`#11a8cd`,white:`#e5e5e5`,brightBlack:`#666666`,brightRed:`#f14c4c`,brightGreen:`#23d18b`,brightYellow:`#f5f543`,brightBlue:`#3b8eea`,brightMagenta:`#d670d6`,brightCyan:`#29b8db`,brightWhite:`#ffffff`},s={background:`#ffffff`,foreground:`#262626`,cursor:`#262626`,cursorAccent:`#ffffff`,selectionBackground:`#add6ff`,black:`#000000`,red:`#cd3131`,green:`#00bc00`,yellow:`#949800`,blue:`#0451a5`,magenta:`#bc05bc`,cyan:`#0598bc`,white:`#555555`,brightBlack:`#666666`,brightRed:`#cd3131`,brightGreen:`#14ce14`,brightYellow:`#b5ba00`,brightBlue:`#0451a5`,brightMagenta:`#bc05bc`,brightCyan:`#0598bc`,brightWhite:`#a5a5a5`};function c(e){return e===`dark`?o:s}function l(e){try{let t=document.createElement(`span`);t.style.display=`none`,t.style.backgroundColor=`var(${e})`,document.body.appendChild(t);try{let e=getComputedStyle(t).backgroundColor;return!e||e===`rgba(0, 0, 0, 0)`||e===`transparent`||e.includes(`var(`)?null:e}finally{t.remove()}}catch{return null}}function u(e,t=l){let n=c(e),r=t(`--background`)??n.background,i=t(`--foreground`)??n.foreground;return{...n,background:r,foreground:i,cursor:i,cursorAccent:r,selectionBackground:t(`--selection-soft`)??n.selectionBackground}}function d(e,t){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==t[r])return!1;return!0}function f(e){let t=(0,a.c)(5),n;t[0]===e?n=t[1]:(n=()=>u(e),t[0]=e,t[1]=n);let[o,s]=(0,i.useState)(n),c,l;return t[2]===e?(c=t[3],l=t[4]):(c=()=>{let t=()=>{let t=u(e);s(e=>d(e,t)?e:t)};t();let n=new MutationObserver(t);return n.observe(document.documentElement,{attributes:!0,attributeFilter:[r,`class`]}),n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),()=>n.disconnect()},l=[e],t[2]=e,t[3]=c,t[4]=l),(0,i.useEffect)(c,l),o}export{f as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./use-apply-config-color-theme-C5xWr7J7.js";var i=e(t(),1),a=n(),o={background:`#171717`,foreground:`#e5e5e5`,cursor:`#e5e5e5`,cursorAccent:`#171717`,selectionBackground:`#3a3d41`,black:`#000000`,red:`#cd3131`,green:`#0dbc79`,yellow:`#e5e510`,blue:`#2472c8`,magenta:`#bc3fbc`,cyan:`#11a8cd`,white:`#e5e5e5`,brightBlack:`#666666`,brightRed:`#f14c4c`,brightGreen:`#23d18b`,brightYellow:`#f5f543`,brightBlue:`#3b8eea`,brightMagenta:`#d670d6`,brightCyan:`#29b8db`,brightWhite:`#ffffff`},s={background:`#ffffff`,foreground:`#262626`,cursor:`#262626`,cursorAccent:`#ffffff`,selectionBackground:`#add6ff`,black:`#000000`,red:`#cd3131`,green:`#00bc00`,yellow:`#949800`,blue:`#0451a5`,magenta:`#bc05bc`,cyan:`#0598bc`,white:`#555555`,brightBlack:`#666666`,brightRed:`#cd3131`,brightGreen:`#14ce14`,brightYellow:`#b5ba00`,brightBlue:`#0451a5`,brightMagenta:`#bc05bc`,brightCyan:`#0598bc`,brightWhite:`#a5a5a5`};function c(e){return e===`dark`?o:s}function l(e){try{let t=document.createElement(`span`);t.style.display=`none`,t.style.backgroundColor=`var(${e})`,document.body.appendChild(t);try{let e=getComputedStyle(t).backgroundColor;return!e||e===`rgba(0, 0, 0, 0)`||e===`transparent`||e.includes(`var(`)?null:e}finally{t.remove()}}catch{return null}}function u(e,t=l){let n=c(e),r=t(`--background`)??n.background,i=t(`--foreground`)??n.foreground;return{...n,background:r,foreground:i,cursor:i,cursorAccent:r,selectionBackground:t(`--selection-soft`)??n.selectionBackground}}function d(e,t){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==t[r])return!1;return!0}function f(e){let t=(0,a.c)(5),n;t[0]===e?n=t[1]:(n=()=>u(e),t[0]=e,t[1]=n);let[o,s]=(0,i.useState)(n),c,l;return t[2]===e?(c=t[3],l=t[4]):(c=()=>{let t=()=>{let t=u(e);s(e=>d(e,t)?e:t)};t();let n=new MutationObserver(t);return n.observe(document.documentElement,{attributes:!0,attributeFilter:[r,`class`]}),n.observe(document.head,{childList:!0,subtree:!0,characterData:!0}),()=>n.disconnect()},l=[e],t[2]=e,t[3]=c,t[4]=l),(0,i.useEffect)(c,l),o}export{f as t};
@@ -1 +1 @@
1
- import{i as e}from"./DocumentContext-DOLytv_M.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{Ba as n}from"./dist-B4smVaZm2.js";import{n as r}from"./dist-BVbCw0G-.js";import{t as i}from"./dist-DuwTJb1j.js";import{f as a,x as o}from"./doc-paths-DPN-3rhq.js";import{G as s}from"./navigation-targets-CvdOYknS.js";import{m as c}from"./skills-api-DPk4ScTz.js";import{t as l}from"./use-skills-luzjx-1h.js";var u=t();function d(){let t=(0,u.c)(4),{openTarget:d}=e(),f=l(),p;return t[0]!==d||t[1]!==f.data||t[2]!==f.status?(p=(e,t,l)=>{let u=e=>{d({kind:`doc`,target:e,docName:e},l?.replaceActive?{tabBehavior:`replace-active`}:void 0),o(a(e))},p=f.status===`ready`?f.data.find(n=>n.scope===e&&n.name===t):void 0;if(p)return u(s(p));if(e===`project`&&l?.path)return u(l.path.replace(/\.mdx?$/i,``));if(e===`global`)return u(n(e,t));(async()=>{try{let n=await c(`project`);if(!n.ok){r.error(i._({id:`IO8REi`,values:{0:n.error,name:t}}));return}let a=n.skills.find(n=>n.scope===e&&n.name===t);if(!a){r.error(i._({id:`9uRLEH`,values:{name:t}}));return}u(s(a))}catch(e){let n=e;r.error(i._({id:`IO8REi`,values:{0:n instanceof Error?n.message:String(n),name:t}}))}})()},t[0]=d,t[1]=f.data,t[2]=f.status,t[3]=p):p=t[3],p}export{d as t};
1
+ import{i as e}from"./DocumentContext-Ddtfw06F.js";import{t}from"./compiler-runtime-BfE3aGVn.js";import{Ba as n}from"./dist-D8RKvolB2.js";import{n as r}from"./dist-Dr52ya0i.js";import{t as i}from"./dist-D-OluTzV.js";import{f as a,x as o}from"./doc-paths-C6_l5qhr.js";import{G as s}from"./navigation-targets-x6iOvvv-.js";import{m as c}from"./skills-api-CcFN0_Po.js";import{t as l}from"./use-skills-DBT082yp.js";var u=t();function d(){let t=(0,u.c)(4),{openTarget:d}=e(),f=l(),p;return t[0]!==d||t[1]!==f.data||t[2]!==f.status?(p=(e,t,l)=>{let u=e=>{d({kind:`doc`,target:e,docName:e},l?.replaceActive?{tabBehavior:`replace-active`}:void 0),o(a(e))},p=f.status===`ready`?f.data.find(n=>n.scope===e&&n.name===t):void 0;if(p)return u(s(p));if(e===`project`&&l?.path)return u(l.path.replace(/\.mdx?$/i,``));if(e===`global`)return u(n(e,t));(async()=>{try{let n=await c(`project`);if(!n.ok){r.error(i._({id:`IO8REi`,values:{0:n.error,name:t}}));return}let a=n.skills.find(n=>n.scope===e&&n.name===t);if(!a){r.error(i._({id:`9uRLEH`,values:{name:t}}));return}u(s(a))}catch(e){let n=e;r.error(i._({id:`IO8REi`,values:{0:n instanceof Error?n.message:String(n),name:t}}))}})()},t[0]=d,t[1]=f.data,t[2]=f.status,t[3]=p):p=t[3],p}export{d as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{Ni as r}from"./dist-B4smVaZm2.js";var i=e(t(),1),a=n(),o={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},s=Object.keys(o),c=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-editor-mode`,category:`general`,title:{id:`vPXOUw`},description:{id:`buNXgr`},scope:{id:`uBAxNB`},bindings:[{mac:`⌥⌘ M`,windowsLinux:`Ctrl Alt M`,match:{code:`KeyM`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`l9HUtd`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`toggle-agent-panel`,category:`general`,title:{id:`4-Phgi`},description:{id:`4ivBhl`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`,match:{code:`KeyL`,anyMod:!0,shiftKey:!0,allowExtraModifiers:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`add-comment`,category:`wysiwyg`,title:{id:`G4m8rL`},description:{id:`bGOTXx`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`,match:{key:`m`,mod:!0,shiftKey:!0}}]},{id:`view-source-at-cursor`,category:`wysiwyg`,title:{id:`zq2eBA`},description:{id:`cU-seF`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ E`,windowsLinux:`Ctrl Alt E`,match:{code:`KeyE`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],l=c,u=new Map(c.map(e=>[e.id,e]));function d(e){let t=u.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function f(){return r()?`mac`:`windowsLinux`}var p=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function m(e){return e.split(` / `).map(e=>p.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function h(e,t=f()){return t===`mac`?e.mac:e.windowsLinux}function g(e,t=f()){return m(h(e,t))}function _(e,t=f()){return h(d(e).bindings[0],t)}function v(e,t=f()){return g(d(e).bindings[0],t)}function y(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function b(e,t,n=f()){return d(t).bindings.some(t=>{let r=x(t.match,n);return r?C(e,r,n):!1})}function x(e,t){return e?S(e)?e:e[t]??null:null}function S(e){return`key`in e||`code`in e}function C(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var w=`#settings`;function T(e){return`#settings/${e}`}var E=`open-knowledge:settings-section-intent`;function D(e){if(typeof window>`u`)return()=>{};let t=t=>{let{detail:n}=t;typeof n==`string`&&n.length>0&&e(n)};return window.addEventListener(E,t),()=>window.removeEventListener(E,t)}function O(e){if(typeof window>`u`)return;let t=T(e);if(I(window.location.hash)){window.history.replaceState(null,``,t),window.dispatchEvent(new CustomEvent(E,{detail:e}));return}window.location.hash!==t&&(window.location.hash=t)}var k=`configure-agents`;function A(){O(k)}var j=`plugins-manage`;function M(){O(j)}function N(e){return`plugin:${e}`}function P(e){O(N(e))}function F(e){return y(e.target)?!1:b(e,`settings`)}function I(e){let t=e.replace(/^#/,``);return t===`settings`?!0:t.startsWith(`settings/`)&&t.length>9}function L(e){let t=e.replace(/^#/,``);if(!t.startsWith(`settings/`))return null;let n=t.slice(9);return n.length>0?n:null}function R(){return typeof window>`u`?``:window.location.hash}function z(){let e=(0,a.c)(5),[t,n]=(0,i.useState)(H),[r,o]=(0,i.useState)(V),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{(0,i.startTransition)(()=>{let e=R();n(I(e)),o(L(e))})};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l=B,u;return e[2]!==t||e[3]!==r?(u={open:t,section:r,close:l},e[2]=t,e[3]=r,e[4]=u):u=e[4],u}function B(){typeof window>`u`||I(R())&&window.history.back()}function V(){return L(R())}function H(){return I(R())}export{y as _,P as a,z as c,s as d,_ as f,m as g,v as h,A as i,l,g as m,I as n,M as o,h as p,F as r,D as s,w as t,o as u,b as v};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{Ni as r}from"./dist-D8RKvolB2.js";var i=e(t(),1),a=n(),o={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},s=Object.keys(o),c=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`OFBmkg`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`new-folder`,category:`general`,title:{id:`96G6Re`},description:{id:`3cOo2C`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ N`,windowsLinux:`Ctrl Shift N`}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-editor-mode`,category:`general`,title:{id:`vPXOUw`},description:{id:`buNXgr`},scope:{id:`uBAxNB`},bindings:[{mac:`⌥⌘ M`,windowsLinux:`Ctrl Alt M`,match:{code:`KeyM`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`l9HUtd`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`toggle-agent-panel`,category:`general`,title:{id:`4-Phgi`},description:{id:`4ivBhl`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`,match:{code:`KeyL`,anyMod:!0,shiftKey:!0,allowExtraModifiers:!0}}]},{id:`new-terminal-tab`,category:`general`,title:{id:`YkvmF4`},description:{id:`j2kt1j`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ J`,windowsLinux:`Ctrl Shift J`,match:{key:`j`,mod:!0,shiftKey:!0}}]},{id:`navigate-back`,category:`navigation`,title:{id:`iH8pgl`},description:{id:`cjtjry`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ [`,windowsLinux:`Alt ←`}]},{id:`navigate-forward`,category:`navigation`,title:{id:`rxWGWX`},description:{id:`XK5cbh`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ ]`,windowsLinux:`Alt →`}]},{id:`tab-new`,category:`navigation`,title:{id:`3YvS-c`},description:{id:`t6w1cq`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ T`,windowsLinux:`Ctrl T`,match:{key:`t`,mod:!0}}]},{id:`tab-next`,category:`navigation`,title:{id:`l46MqT`},description:{id:`thnPBX`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃ Tab`,windowsLinux:`Ctrl Tab`,match:{key:`Tab`,ctrlKey:!0}}]},{id:`tab-previous`,category:`navigation`,title:{id:`Mh_4hd`},description:{id:`DJd000`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌃⇧ Tab`,windowsLinux:`Ctrl Shift Tab`,match:{key:`Tab`,ctrlKey:!0,shiftKey:!0}}]},{id:`tab-jump`,category:`navigation`,title:{id:`_6FVBz`},description:{id:`wGSHzy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 1-8`,windowsLinux:`Ctrl 1-8`}]},{id:`tab-jump-last`,category:`navigation`,title:{id:`N1KkEO`},description:{id:`ZQJ1IV`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ 9`,windowsLinux:`Ctrl 9`}]},{id:`tab-reopen-closed`,category:`navigation`,title:{id:`hpzRlK`},description:{id:`E5WeIy`},scope:{id:`2GT3Hf`},bindings:[{mac:`⇧⌘ T`,windowsLinux:`Ctrl Shift T`,match:{key:`t`,mod:!0,shiftKey:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`open-file`,category:`workspace`,title:{id:`9npOH9`},description:{id:`H08D2X`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ O`,windowsLinux:`Ctrl Shift O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-copy`,category:`workspace`,title:{id:`eGUbmF`},description:{id:`7uBlRT`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ C`,windowsLinux:`Ctrl C`}]},{id:`file-tree-paste`,category:`workspace`,title:{id:`_tjopj`},description:{id:`e4PbgC`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ V`,windowsLinux:`Ctrl V`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-delete`,category:`workspace`,title:{id:`VxO6wR`},description:{id:`osRqlv`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ Backspace`,windowsLinux:`Delete`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`add-link`,category:`wysiwyg`,title:{id:`VzGJRl`},description:{id:`u7U_Ij`},scope:{id:`v77jrg`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0}}]},{id:`add-comment`,category:`wysiwyg`,title:{id:`G4m8rL`},description:{id:`bGOTXx`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`,match:{key:`m`,mod:!0,shiftKey:!0}}]},{id:`view-source-at-cursor`,category:`wysiwyg`,title:{id:`zq2eBA`},description:{id:`cU-seF`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ E`,windowsLinux:`Ctrl Alt E`,match:{code:`KeyE`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`TDeOpa`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`}]},{id:`code-field-history`,category:`wysiwyg`,title:{id:`VXGFMg`},description:{id:`BkGtRl`},scope:{id:`FWSjnp`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}],l=c,u=new Map(c.map(e=>[e.id,e]));function d(e){let t=u.get(e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function f(){return r()?`mac`:`windowsLinux`}var p=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function m(e){return e.split(` / `).map(e=>p.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function h(e,t=f()){return t===`mac`?e.mac:e.windowsLinux}function g(e,t=f()){return m(h(e,t))}function _(e,t=f()){return h(d(e).bindings[0],t)}function v(e,t=f()){return g(d(e).bindings[0],t)}function y(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function b(e,t,n=f()){return d(t).bindings.some(t=>{let r=x(t.match,n);return r?C(e,r,n):!1})}function x(e,t){return e?S(e)?e:e[t]??null:null}function S(e){return`key`in e||`code`in e}function C(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.metaKey??(t.mod?n===`mac`:!1),i=t.ctrlKey??(t.mod?n===`windowsLinux`:!1),a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}var w=`#settings`;function T(e){return`#settings/${e}`}var E=`open-knowledge:settings-section-intent`;function D(e){if(typeof window>`u`)return()=>{};let t=t=>{let{detail:n}=t;typeof n==`string`&&n.length>0&&e(n)};return window.addEventListener(E,t),()=>window.removeEventListener(E,t)}function O(e){if(typeof window>`u`)return;let t=T(e);if(I(window.location.hash)){window.history.replaceState(null,``,t),window.dispatchEvent(new CustomEvent(E,{detail:e}));return}window.location.hash!==t&&(window.location.hash=t)}var k=`configure-agents`;function A(){O(k)}var j=`plugins-manage`;function M(){O(j)}function N(e){return`plugin:${e}`}function P(e){O(N(e))}function F(e){return y(e.target)?!1:b(e,`settings`)}function I(e){let t=e.replace(/^#/,``);return t===`settings`?!0:t.startsWith(`settings/`)&&t.length>9}function L(e){let t=e.replace(/^#/,``);if(!t.startsWith(`settings/`))return null;let n=t.slice(9);return n.length>0?n:null}function R(){return typeof window>`u`?``:window.location.hash}function z(){let e=(0,a.c)(5),[t,n]=(0,i.useState)(H),[r,o]=(0,i.useState)(V),s,c;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{let e=()=>{(0,i.startTransition)(()=>{let e=R();n(I(e)),o(L(e))})};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},c=[],e[0]=s,e[1]=c):(s=e[0],c=e[1]),(0,i.useEffect)(s,c);let l=B,u;return e[2]!==t||e[3]!==r?(u={open:t,section:r,close:l},e[2]=t,e[3]=r,e[4]=u):u=e[4],u}function B(){typeof window>`u`||I(R())&&window.history.back()}function V(){return L(R())}function H(){return I(R())}export{y as _,P as a,z as c,s as d,_ as f,m as g,v as h,A as i,l,g as m,I as n,M as o,h as p,F as r,D as s,w as t,o as u,b as v};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./useQuery-ZeEDLtxh.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./createLucideIcon-BiRV80uZ.js";import{t as c}from"./button-oSXzJYWO.js";import{t as l}from"./check-DA7_vRdO.js";import{t as u}from"./badge-DB5BJfSU.js";import{o as d}from"./skills-api-DPk4ScTz.js";import{t as f}from"./use-skills-luzjx-1h.js";import{t as p}from"./use-open-skill-Bs2T3l_Z.js";import{n as m}from"./open-managed-artifact-tab-BRW0Boal.js";var h=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]],g=s(`package`,h),_=e(n(),1),v=o(),y=t();function b(e){let t=(0,v.c)(27),{name:n,description:r,onOpen:a,action:o,meta:s,leading:l}=e,{_:u}=i(),d;t[0]===n?d=t[1]:(d=(0,y.jsx)(`div`,{className:`truncate font-medium text-sm`,children:n}),t[0]=n,t[1]=d);let f=d,p;t[2]!==u||t[3]!==n?(p=u({id:`9_euHO`,values:{name:n}}),t[2]=u,t[3]=n,t[4]=p):p=t[4];let m;t[5]!==a||t[6]!==p?(m=(0,y.jsx)(c,{variant:`ghost`,"aria-label":p,onClick:a,className:`absolute inset-0 h-auto w-full rounded-xl p-0 opacity-0`}),t[5]=a,t[6]=p,t[7]=m):m=t[7];let h;t[8]===l?h=t[9]:(h=l?(0,y.jsx)(`div`,{className:`shrink-0`,children:l}):null,t[8]=l,t[9]=h);let g;t[10]!==s||t[11]!==f?(g=(0,y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[f,s]}),t[10]=s,t[11]=f,t[12]=g):g=t[12];let _;t[13]===o?_=t[14]:(_=(0,y.jsx)(`div`,{className:`relative z-10 shrink-0`,children:o}),t[13]=o,t[14]=_);let b;t[15]!==h||t[16]!==g||t[17]!==_?(b=(0,y.jsxs)(`div`,{className:`flex items-center gap-3`,children:[h,g,_]}),t[15]=h,t[16]=g,t[17]=_,t[18]=b):b=t[18];let x;t[19]===r?x=t[20]:(x=r?(0,y.jsx)(`p`,{className:`line-clamp-2 text-muted-foreground text-xs leading-relaxed`,children:r}):null,t[19]=r,t[20]=x);let S;t[21]!==b||t[22]!==x?(S=(0,y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[b,x]}),t[21]=b,t[22]=x,t[23]=S):S=t[23];let C;return t[24]!==m||t[25]!==S?(C=(0,y.jsxs)(`li`,{className:`relative rounded-xl border border-border bg-card p-4 transition-colors hover:border-border/60 hover:bg-accent/40 focus-within:ring-2 focus-within:ring-ring`,children:[m,S]}),t[24]=m,t[25]=S,t[26]=C):C=t[26],C}function x(e,t){return new Intl.NumberFormat(t||void 0,{notation:`compact`,compactDisplay:`short`}).format(e)}function S(e){let t=(0,v.c)(4),{login:n}=e,[r,i]=(0,_.useState)(!0);if(n&&r){let e=`https://github.com/${encodeURIComponent(n)}.png?size=96`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>i(!1),t[0]=r):r=t[0];let a;return t[1]===e?a=t[2]:(a=(0,y.jsx)(`img`,{src:e,alt:``,loading:`lazy`,className:`size-10 rounded border border-border bg-background object-cover`,onError:r}),t[1]=e,t[2]=a),a}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,y.jsx)(`div`,{className:`flex size-10 items-center justify-center rounded border border-border bg-muted text-muted-foreground`,children:(0,y.jsx)(g,{className:`size-5`,"aria-hidden":!0})}),t[3]=a):a=t[3],a}function C(e){let t=(0,v.c)(22),{result:n,imported:a,onOpen:o}=e,{i18n:s}=i(),c;t[0]===n.publisher?c=t[1]:(c=(0,y.jsx)(S,{login:n.publisher}),t[0]=n.publisher,t[1]=c);let d;t[2]===a?d=t[3]:(d=a?(0,y.jsxs)(u,{variant:`primary`,className:`gap-1`,children:[(0,y.jsx)(l,{"aria-hidden":!0}),(0,y.jsx)(r,{id:`hp8OtS`})]}):null,t[2]=a,t[3]=d);let f=n.publisher??n.source,p;t[4]===f?p=t[5]:(p=(0,y.jsx)(`span`,{className:`truncate`,children:f}),t[4]=f,t[5]=p);let m;t[6]===n.publisher?m=t[7]:(m=n.publisher===`openknowledge`||n.publisher===`inkeep`?(0,y.jsx)(u,{variant:`secondary`,className:`h-4 px-1 text-[10px] uppercase tracking-wide`,children:(0,y.jsx)(r,{id:`o0bHtA`})}):null,t[6]=n.publisher,t[7]=m);let h;t[8]!==s||t[9]!==n.installs?(h=n.installs==null?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,y.jsxs)(`span`,{className:`shrink-0`,children:[(0,y.jsx)(`span`,{"aria-hidden":`true`,children:`↓ `}),(0,y.jsxs)(`span`,{className:`sr-only`,children:[(0,y.jsx)(r,{id:`7m3Ade`}),` `]}),x(n.installs,s.locale)]})]}),t[8]=s,t[9]=n.installs,t[10]=h):h=t[10];let g;t[11]!==p||t[12]!==m||t[13]!==h?(g=(0,y.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-1.5 text-muted-foreground text-xs`,children:[p,m,h]}),t[11]=p,t[12]=m,t[13]=h,t[14]=g):g=t[14];let _;return t[15]!==o||t[16]!==n.description||t[17]!==n.name||t[18]!==c||t[19]!==d||t[20]!==g?(_=(0,y.jsx)(b,{name:n.name,description:n.description,onOpen:o,leading:c,action:d,meta:g}),t[15]=o,t[16]=n.description,t[17]=n.name,t[18]=c,t[19]=d,t[20]=g,t[21]=_):_=t[21],_}function w(){let e=(0,v.c)(7),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`skills`,`popular`],queryFn:T,staleTime:3e5},e[0]=t):t=e[0];let{data:n,isPending:r,isError:i}=a(t),o;e[1]===n?o=e[2]:(o=n??[],e[1]=n,e[2]=o);let s;return e[3]!==i||e[4]!==r||e[5]!==o?(s={skills:o,isPending:r,failed:i},e[3]=i,e[4]=r,e[5]=o,e[6]=s):s=e[6],s}async function T(){let e=await d();if(!e.ok)throw Error(e.error);return e.results}function E(e,t){return e.find(e=>e.origin?.source===t.source&&(e.name===t.name||e.name===`${t.name}-imported`||e.name.startsWith(`${t.name}-imported-`)))??null}function D(e){let t=(0,v.c)(15),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{scope:r,onNavigate:i}=n,a=p(),o=f(),s;t[2]!==o.data||t[3]!==o.status?(s=o.status===`ready`?o.data.filter(O):[],t[2]=o.data,t[3]=o.status,t[4]=s):s=t[4];let c=s,l;t[5]===c?l=t[6]:(l=e=>E(c,e),t[5]=c,t[6]=l);let u=l,d;t[7]!==u||t[8]!==i||t[9]!==a||t[10]!==r?(d=function(e){i?.();let t=u(e);if(t){a(t.scope,t.name);return}m({flavor:`explore`,source:e.source,name:e.name,subtitle:e.source,level:r})},t[7]=u,t[8]=i,t[9]=a,t[10]=r,t[11]=d):d=t[11];let h=d,g;return t[12]!==u||t[13]!==h?(g={importedEntry:u,openResult:h},t[12]=u,t[13]=h,t[14]=g):g=t[14],g}function O(e){return e.origin}export{h as a,g as i,w as n,C as r,D as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./useQuery-ZeEDLtxh.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./button-D3xSRfT4.js";import{t as c}from"./createLucideIcon-wbFLvDA-.js";import{t as l}from"./check-D1JmbeH0.js";import{t as u}from"./badge-BTPyRUGW.js";import{o as d}from"./skills-api-CcFN0_Po.js";import{t as f}from"./use-skills-DBT082yp.js";import{t as p}from"./use-open-skill-BYpqVFnY.js";import{n as m}from"./open-managed-artifact-tab-D7O6shhm.js";var h=[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]],g=c(`package`,h),_=e(n(),1),v=o(),y=t();function b(e){let t=(0,v.c)(27),{name:n,description:r,onOpen:a,action:o,meta:c,leading:l}=e,{_:u}=i(),d;t[0]===n?d=t[1]:(d=(0,y.jsx)(`div`,{className:`truncate font-medium text-sm`,children:n}),t[0]=n,t[1]=d);let f=d,p;t[2]!==u||t[3]!==n?(p=u({id:`9_euHO`,values:{name:n}}),t[2]=u,t[3]=n,t[4]=p):p=t[4];let m;t[5]!==a||t[6]!==p?(m=(0,y.jsx)(s,{variant:`ghost`,"aria-label":p,onClick:a,className:`absolute inset-0 h-auto w-full rounded-xl p-0 opacity-0`}),t[5]=a,t[6]=p,t[7]=m):m=t[7];let h;t[8]===l?h=t[9]:(h=l?(0,y.jsx)(`div`,{className:`shrink-0`,children:l}):null,t[8]=l,t[9]=h);let g;t[10]!==c||t[11]!==f?(g=(0,y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[f,c]}),t[10]=c,t[11]=f,t[12]=g):g=t[12];let _;t[13]===o?_=t[14]:(_=(0,y.jsx)(`div`,{className:`relative z-10 shrink-0`,children:o}),t[13]=o,t[14]=_);let b;t[15]!==h||t[16]!==g||t[17]!==_?(b=(0,y.jsxs)(`div`,{className:`flex items-center gap-3`,children:[h,g,_]}),t[15]=h,t[16]=g,t[17]=_,t[18]=b):b=t[18];let x;t[19]===r?x=t[20]:(x=r?(0,y.jsx)(`p`,{className:`line-clamp-2 text-muted-foreground text-xs leading-relaxed`,children:r}):null,t[19]=r,t[20]=x);let S;t[21]!==b||t[22]!==x?(S=(0,y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[b,x]}),t[21]=b,t[22]=x,t[23]=S):S=t[23];let C;return t[24]!==m||t[25]!==S?(C=(0,y.jsxs)(`li`,{className:`relative rounded-xl border border-border bg-card p-4 transition-colors hover:border-border/60 hover:bg-accent/40 focus-within:ring-2 focus-within:ring-ring`,children:[m,S]}),t[24]=m,t[25]=S,t[26]=C):C=t[26],C}function x(e,t){return new Intl.NumberFormat(t||void 0,{notation:`compact`,compactDisplay:`short`}).format(e)}function S(e){let t=(0,v.c)(4),{login:n}=e,[r,i]=(0,_.useState)(!0);if(n&&r){let e=`https://github.com/${encodeURIComponent(n)}.png?size=96`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>i(!1),t[0]=r):r=t[0];let a;return t[1]===e?a=t[2]:(a=(0,y.jsx)(`img`,{src:e,alt:``,loading:`lazy`,className:`size-10 rounded border border-border bg-background object-cover`,onError:r}),t[1]=e,t[2]=a),a}let a;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,y.jsx)(`div`,{className:`flex size-10 items-center justify-center rounded border border-border bg-muted text-muted-foreground`,children:(0,y.jsx)(g,{className:`size-5`,"aria-hidden":!0})}),t[3]=a):a=t[3],a}function C(e){let t=(0,v.c)(22),{result:n,imported:a,onOpen:o}=e,{i18n:s}=i(),c;t[0]===n.publisher?c=t[1]:(c=(0,y.jsx)(S,{login:n.publisher}),t[0]=n.publisher,t[1]=c);let d;t[2]===a?d=t[3]:(d=a?(0,y.jsxs)(u,{variant:`primary`,className:`gap-1`,children:[(0,y.jsx)(l,{"aria-hidden":!0}),(0,y.jsx)(r,{id:`hp8OtS`})]}):null,t[2]=a,t[3]=d);let f=n.publisher??n.source,p;t[4]===f?p=t[5]:(p=(0,y.jsx)(`span`,{className:`truncate`,children:f}),t[4]=f,t[5]=p);let m;t[6]===n.publisher?m=t[7]:(m=n.publisher===`openknowledge`||n.publisher===`inkeep`?(0,y.jsx)(u,{variant:`secondary`,className:`h-4 px-1 text-[10px] uppercase tracking-wide`,children:(0,y.jsx)(r,{id:`o0bHtA`})}):null,t[6]=n.publisher,t[7]=m);let h;t[8]!==s||t[9]!==n.installs?(h=n.installs==null?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,y.jsxs)(`span`,{className:`shrink-0`,children:[(0,y.jsx)(`span`,{"aria-hidden":`true`,children:`↓ `}),(0,y.jsxs)(`span`,{className:`sr-only`,children:[(0,y.jsx)(r,{id:`7m3Ade`}),` `]}),x(n.installs,s.locale)]})]}),t[8]=s,t[9]=n.installs,t[10]=h):h=t[10];let g;t[11]!==p||t[12]!==m||t[13]!==h?(g=(0,y.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-1.5 text-muted-foreground text-xs`,children:[p,m,h]}),t[11]=p,t[12]=m,t[13]=h,t[14]=g):g=t[14];let _;return t[15]!==o||t[16]!==n.description||t[17]!==n.name||t[18]!==c||t[19]!==d||t[20]!==g?(_=(0,y.jsx)(b,{name:n.name,description:n.description,onOpen:o,leading:c,action:d,meta:g}),t[15]=o,t[16]=n.description,t[17]=n.name,t[18]=c,t[19]=d,t[20]=g,t[21]=_):_=t[21],_}function w(){let e=(0,v.c)(7),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={queryKey:[`skills`,`popular`],queryFn:T,staleTime:3e5},e[0]=t):t=e[0];let{data:n,isPending:r,isError:i}=a(t),o;e[1]===n?o=e[2]:(o=n??[],e[1]=n,e[2]=o);let s;return e[3]!==i||e[4]!==r||e[5]!==o?(s={skills:o,isPending:r,failed:i},e[3]=i,e[4]=r,e[5]=o,e[6]=s):s=e[6],s}async function T(){let e=await d();if(!e.ok)throw Error(e.error);return e.results}function E(e,t){return e.find(e=>e.origin?.source===t.source&&(e.name===t.name||e.name===`${t.name}-imported`||e.name.startsWith(`${t.name}-imported-`)))??null}function D(e){let t=(0,v.c)(15),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{scope:r,onNavigate:i}=n,a=p(),o=f(),s;t[2]!==o.data||t[3]!==o.status?(s=o.status===`ready`?o.data.filter(O):[],t[2]=o.data,t[3]=o.status,t[4]=s):s=t[4];let c=s,l;t[5]===c?l=t[6]:(l=e=>E(c,e),t[5]=c,t[6]=l);let u=l,d;t[7]!==u||t[8]!==i||t[9]!==a||t[10]!==r?(d=function(e){i?.();let t=u(e);if(t){a(t.scope,t.name);return}m({flavor:`explore`,source:e.source,name:e.name,subtitle:e.source,level:r})},t[7]=u,t[8]=i,t[9]=a,t[10]=r,t[11]=d):d=t[11];let h=d,g;return t[12]!==u||t[13]!==h?(g={importedEntry:u,openResult:h},t[12]=u,t[13]=h,t[14]=g):g=t[14],g}function O(e){return e.origin}export{h as a,g as i,w as n,C as r,D as t};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{kt as r}from"./dist-B4smVaZm2.js";import{t as i}from"./parse-api-error-CqQte8A1.js";import{d as a,f as o,t as s}from"./documents-events-DYwaAqwG.js";var c=n(),l=e(t(),1),u=null,d=null;function f(){return d??=fetch(`/api/skills`).then(async e=>{if(!e.ok){let t=await e.json().catch(()=>null);throw Error(i(t)??`HTTP ${e.status}`)}return e.json()}).finally(()=>{d=null}),d}function p(e){let t=(0,c.c)(9),n=e?.enabled??!0,[i,d]=(0,l.useState)(g),[p,_]=(0,l.useState)(0),v,y;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{let e=null,t=()=>{e&&clearTimeout(e),e=setTimeout(()=>_(h),200)},n=o(t),r=a(e=>{e.includes(`files`)&&t()});return()=>{e&&clearTimeout(e),n(),r()}},y=[],t[0]=v,t[1]=y):(v=t[0],y=t[1]),(0,l.useEffect)(v,y);let b;t[2]===n?b=t[3]:(b=()=>{if(!n)return;let e=!1;return d(m),f().then(t=>{if(e)return;let n=r.safeParse(t);if(!n.success){console.error(`[ok-skills] /api/skills response failed schema validation:`,n.error.issues),d({status:`error`,message:`Server returned an incomplete skills response.`});return}u=n.data.skills,d({status:`ready`,data:n.data.skills})}).catch(t=>{e||d({status:`error`,message:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},t[2]=n,t[3]=b);let x;t[4]!==n||t[5]!==p?(x=[p,n],t[4]=n,t[5]=p,t[6]=x):x=t[6],(0,l.useEffect)(b,x);let S;return t[7]===i?S=t[8]:(S=i.status===`ready`?{status:`ready`,data:s(i.data)}:i,t[7]=i,t[8]=S),S}function m(e){return e.status===`ready`?e:{status:`loading`}}function h(e){return e+1}function g(){return u===null?{status:`idle`}:{status:`ready`,data:u}}export{p as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./react-f2sANaYj.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{kt as r}from"./dist-D8RKvolB2.js";import{t as i}from"./parse-api-error-9c-Rs5WJ.js";import{d as a,f as o,t as s}from"./documents-events-Bh1LSWeJ.js";var c=n(),l=e(t(),1),u=null,d=null;function f(){return d??=fetch(`/api/skills`).then(async e=>{if(!e.ok){let t=await e.json().catch(()=>null);throw Error(i(t)??`HTTP ${e.status}`)}return e.json()}).finally(()=>{d=null}),d}function p(e){let t=(0,c.c)(9),n=e?.enabled??!0,[i,d]=(0,l.useState)(g),[p,_]=(0,l.useState)(0),v,y;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{let e=null,t=()=>{e&&clearTimeout(e),e=setTimeout(()=>_(h),200)},n=o(t),r=a(e=>{e.includes(`files`)&&t()});return()=>{e&&clearTimeout(e),n(),r()}},y=[],t[0]=v,t[1]=y):(v=t[0],y=t[1]),(0,l.useEffect)(v,y);let b;t[2]===n?b=t[3]:(b=()=>{if(!n)return;let e=!1;return d(m),f().then(t=>{if(e)return;let n=r.safeParse(t);if(!n.success){console.error(`[ok-skills] /api/skills response failed schema validation:`,n.error.issues),d({status:`error`,message:`Server returned an incomplete skills response.`});return}u=n.data.skills,d({status:`ready`,data:n.data.skills})}).catch(t=>{e||d({status:`error`,message:t instanceof Error?t.message:String(t)})}),()=>{e=!0}},t[2]=n,t[3]=b);let x;t[4]!==n||t[5]!==p?(x=[p,n],t[4]=n,t[5]=p,t[6]=x):x=t[6],(0,l.useEffect)(b,x);let S;return t[7]===i?S=t[8]:(S=i.status===`ready`?{status:`ready`,data:s(i.data)}:i,t[7]=i,t[8]=S),S}function m(e){return e.status===`ready`?e:{status:`loading`}}function h(e){return e+1}function g(){return u===null?{status:`idle`}:{status:`ready`,data:u}}export{p as t};
@@ -1 +1 @@
1
- import{t as e}from"./compiler-runtime-BfE3aGVn.js";import{t}from"./terminal-telemetry-46cHbbgd.js";import{do as n}from"./dist-B4smVaZm2.js";import"./config-provider-CqysOmJk.js";import{a as r}from"./use-apply-config-color-theme-BeVjXtPt.js";var i=e();function a(){let e=(0,i.c)(3),{projectLocalConfig:t,projectLocalSynced:n}=r(),a=t?.terminal?.enabled??null,o;return e[0]!==n||e[1]!==a?(o={enabled:a,synced:n},e[0]=n,e[1]=a,e[2]=o):o=e[2],o}function o(){let e=(0,i.c)(2),{projectLocalBinding:a}=r();if(a===null)return null;let o;return e[0]===a?o=e[1]:(o=e=>{let r=a.patch({terminal:{enabled:e}});return r.ok&&e&&t(),r.ok?{ok:!0}:{ok:!1,error:n(r.error)}},e[0]=a,e[1]=o),o}export{o as n,a as t};
1
+ import{t as e}from"./compiler-runtime-BfE3aGVn.js";import{t}from"./terminal-telemetry-B0_vjUSm.js";import{fo as n}from"./dist-D8RKvolB2.js";import"./config-provider-DpMwlMEo.js";import{a as r}from"./use-apply-config-color-theme-C5xWr7J7.js";var i=e();function a(){let e=(0,i.c)(3),{projectLocalConfig:t,projectLocalSynced:n}=r(),a=t?.terminal?.enabled??null,o;return e[0]!==n||e[1]!==a?(o={enabled:a,synced:n},e[0]=n,e[1]=a,e[2]=o):o=e[2],o}function o(){let e=(0,i.c)(2),{projectLocalBinding:a}=r();if(a===null)return null;let o;return e[0]===a?o=e[1]:(o=e=>{let r=a.patch({terminal:{enabled:e}});return r.ok&&e&&t(),r.ok?{ok:!0}:{ok:!1,error:n(r.error)}},e[0]=a,e[1]=o),o}export{o as n,a as t};