dorkos 0.117.0 → 0.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/bin/cli.js +1266 -938
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-H-acF3Uh.js → AboutPage-BOS59p1y.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-DHDeFsXG.js → ActivityErrorState-DOmV85tr.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-xyMrmAY2.js → ActivityPage-DbsBpb6N.js} +1 -1
  7. package/dist/client/assets/ActivityRow-B1ZeL7Jb.js +1 -0
  8. package/dist/client/assets/AdapterIcon-XPLZ-NAi.js +1 -0
  9. package/dist/client/assets/AdapterSetupWizard-DfNJz5SD.js +2 -0
  10. package/dist/client/assets/{AgentOptionRow-BgPnj-jY.js → AgentOptionRow-C15RQsub.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-3POlE_TY.js → AgentPicker-CydNJYi_.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-CL5bwXYH.js → AgentRequestCard-BBSbluBs.js} +3 -3
  13. package/dist/client/assets/{AppearancePage-D3z40f_b.js → AppearancePage-8ALtWGZZ.js} +1 -1
  14. package/dist/client/assets/{ApplyToOverridesDialog-GafmL5mr.js → ApplyToOverridesDialog-Cv3KEf7T.js} +1 -1
  15. package/dist/client/assets/{AttentionSignalRow-4ZSIhmin.js → AttentionSignalRow-c-u1cE1l.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-CD8bGnb5.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Re2CfOlC.js} +3 -3
  17. package/dist/client/assets/BindingDialog-8xnsM47D.js +1 -0
  18. package/dist/client/assets/{BlintzCanvas-B-PoJThg.js → BlintzCanvas-DUDSNxlM.js} +1 -1
  19. package/dist/client/assets/{CanvasCsvContent-CgiQWBJA.js → CanvasCsvContent-D697P3sa.js} +6 -6
  20. package/dist/client/assets/CanvasFileContent-BJ39nHuR.js +2 -0
  21. package/dist/client/assets/{CanvasModel3dContent-BXCQRGHN.js → CanvasModel3dContent-TaunlbT2.js} +2 -2
  22. package/dist/client/assets/{ChatAppsOff-C60EWHju.js → ChatAppsOff-CFEmPGm1.js} +1 -1
  23. package/dist/client/assets/{CodeMirrorDiff-B5dKqE-I.js → CodeMirrorDiff-B7VUevZG.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorEditor-BzB4Bznz.js → CodeMirrorEditor-BX1bJlnT.js} +1 -1
  25. package/dist/client/assets/CommitmentList-CDocwl5K.js +1 -0
  26. package/dist/client/assets/{CommitmentsPage-ChzV2lIP.js → CommitmentsPage-Cr_MvU96.js} +1 -1
  27. package/dist/client/assets/{ComputerResourceView-mF8l9rkm.js → ComputerResourceView-CJMUZPDy.js} +1 -1
  28. package/dist/client/assets/{ComputerViewer-CKR_ZSO1.js → ComputerViewer-BA-9lBBN.js} +1 -1
  29. package/dist/client/assets/ConnectionAccessLists-BLLpxhn3.js +1 -0
  30. package/dist/client/assets/{ConnectionsPage-6PEoOCSe.js → ConnectionsPage-BWVfAPd1.js} +2 -2
  31. package/dist/client/assets/ConventionPage-EK3WUWVa.js +11 -0
  32. package/dist/client/assets/{ExtensionPageRoute-Bv2i-Pqm.js → ExtensionPageRoute-C9hsJNX2.js} +2 -2
  33. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-C5S-Mncm.js → FloatingTanStackRouterDevtools-CqogiFob-BeyAgBfh.js} +1 -1
  34. package/dist/client/assets/HandlePage-CfeEzfDk.js +1 -0
  35. package/dist/client/assets/HeartbeatPage-DfbNenFv.js +1 -0
  36. package/dist/client/assets/{KeyEntry-IgIIE1HE.js → KeyEntry-CEbe5Xvn.js} +2 -2
  37. package/dist/client/assets/{LexicalField-B3neANKd.js → LexicalField-DC_6Z-Ye.js} +1 -1
  38. package/dist/client/assets/{ManagesPage-gDDvLXjS.js → ManagesPage-CYnGvNM2.js} +1 -1
  39. package/dist/client/assets/{Marketplace-DAe-slPr.js → Marketplace-CWiiq8of.js} +1 -1
  40. package/dist/client/assets/{MarketplaceSourcesView-jhoKlyGb.js → MarketplaceSourcesView-DF3cHMR0.js} +1 -1
  41. package/dist/client/assets/{McpAppFrame-BQxyYB23.js → McpAppFrame-D5Muf5Sf.js} +2 -2
  42. package/dist/client/assets/{McpSigninBody-DNB9IVJs.js → McpSigninBody-CLZFoQgC.js} +1 -1
  43. package/dist/client/assets/{Model3dViewer-CZYCij-x.js → Model3dViewer-C9ODHy5I.js} +1 -1
  44. package/dist/client/assets/NamePage-B4YrH-ug.js +1 -0
  45. package/dist/client/assets/NewDirectMessageMenu-Co9Uv5t5.js +1 -0
  46. package/dist/client/assets/{NotificationsPage-BZIME3p9.js → NotificationsPage-ldulSpVu.js} +1 -1
  47. package/dist/client/assets/{OpenMeshSwitch-C1E_5NM2.js → OpenMeshSwitch-BfEvR7s7.js} +2 -2
  48. package/dist/client/assets/{OperatorIdentityForm-BV0aT5IX.js → OperatorIdentityForm-ZM_zDnjM.js} +1 -1
  49. package/dist/client/assets/{PermissionHistory-Btciwm3c.js → PermissionHistory-liL_pJDR.js} +1 -1
  50. package/dist/client/assets/{PermissionsPage-CdLK-g0S.js → PermissionsPage-DFMjDQby.js} +1 -1
  51. package/dist/client/assets/{PersonalityPopover-D7hczXpC.js → PersonalityPopover-CITFG0_N.js} +1 -1
  52. package/dist/client/assets/PhotoPage-DYDJPBfu.js +1 -0
  53. package/dist/client/assets/{PresetPicker-Cw2jlFQM.js → PresetPicker-CpYu7nb6.js} +2 -2
  54. package/dist/client/assets/{PreviewRefusedNotice-CcoKHPsy.js → PreviewRefusedNotice-CF3bzfSe.js} +1 -1
  55. package/dist/client/assets/{ProfileFields-xAsiq8Mz.js → ProfileFields-D4p6bhIa.js} +1 -1
  56. package/dist/client/assets/{ProfilePanelContainer-DM8F3Evu.js → ProfilePanelContainer-XCuCnd1t.js} +1 -1
  57. package/dist/client/assets/{ProfileRolePicker-CJYZpLNj.js → ProfileRolePicker-qRf3DSdk.js} +1 -1
  58. package/dist/client/assets/{PromptSuggestionChips-CHWGhlr1.js → PromptSuggestionChips-CUwLk83h.js} +1 -1
  59. package/dist/client/assets/{ReportsToPopover-D781EUfA.js → ReportsToPopover-Cu-Cnzij.js} +1 -1
  60. package/dist/client/assets/{RoomSurface-CT_OGVWw.js → RoomSurface-CsAifwp2.js} +7 -7
  61. package/dist/client/assets/{RoomsPage-DcoGt4-A.js → RoomsPage-DZYMR2in.js} +1 -1
  62. package/dist/client/assets/{RunsOnPopover-6PnPqbut.js → RunsOnPopover-CTBEMstG.js} +1 -1
  63. package/dist/client/assets/RuntimeConnectFlow-DY4sjRgN.js +1 -0
  64. package/dist/client/assets/RuntimeSetupDialog-DJu_-eNa.js +1 -0
  65. package/dist/client/assets/{SessionsPage-Cnai5quH.js → SessionsPage-thndqcpY.js} +1 -1
  66. package/dist/client/assets/{SettingsDialog-DUWvCqf_.js → SettingsDialog-CKmcLF66.js} +3 -3
  67. package/dist/client/assets/SkillsPage-CmXyAw3J.js +1 -0
  68. package/dist/client/assets/{TaskDialogWrapper-CepIueBg.js → TaskDialogWrapper-Boxr_hgF.js} +1 -1
  69. package/dist/client/assets/{TasksEmptyState-CCPObBmm.js → TasksEmptyState-CQf1YroK.js} +2 -2
  70. package/dist/client/assets/{TasksPage-CqoHRhDG.js → TasksPage-DGNXrDAk.js} +1 -1
  71. package/dist/client/assets/{TeamComputerEntry-mHbMrj9_.js → TeamComputerEntry-CIfFRo6-.js} +1 -1
  72. package/dist/client/assets/ToolsPage-BKZkSarf.js +2 -0
  73. package/dist/client/assets/{TopologyGraph-Br4qaSXn.js → TopologyGraph-og2tlLj7.js} +1 -1
  74. package/dist/client/assets/{TourHost-BNT2J0zS.js → TourHost-DzEG8bZP.js} +1 -1
  75. package/dist/client/assets/{UnlinkDialog-CPtwQ55a.js → UnlinkDialog-BTYC_Sit.js} +1 -1
  76. package/dist/client/assets/{WidgetErrorCard-BeQ2x8Ar.js → WidgetErrorCard-CT4sl_T6.js} +8 -8
  77. package/dist/client/assets/_shell-BDlkTSin.js +90 -0
  78. package/dist/client/assets/{_shell._home-DzhKFHpd.js → _shell._home-CP7HQ7Cs.js} +1 -1
  79. package/dist/client/assets/_shell._home.activity-DGXa_ouh.js +1 -0
  80. package/dist/client/assets/_shell._home.index-D5kOfqnL.js +3 -0
  81. package/dist/client/assets/_shell._home.tasks-BSMD-atB.js +1 -0
  82. package/dist/client/assets/_shell._home.workspaces-Cdsw2-jI.js +1 -0
  83. package/dist/client/assets/_shell.channels-B4VQ7tiZ.js +10 -0
  84. package/dist/client/assets/_shell.connections-sF5vS-Lm.js +1 -0
  85. package/dist/client/assets/{_shell.feedback-requests-dFRmIBE1.js → _shell.feedback-requests-hu21WXyA.js} +2 -2
  86. package/dist/client/assets/_shell.marketplace-B-T-ALMv.js +1 -0
  87. package/dist/client/assets/_shell.marketplace_.sources-Chu-9-Vi.js +1 -0
  88. package/dist/client/assets/{_shell.session-DnREJ52s.js → _shell.session-Bz6wvDBp.js} +3 -3
  89. package/dist/client/assets/{_shell.team-B1hbq8aH.js → _shell.team-raG7wRwF.js} +4 -4
  90. package/dist/client/assets/_shell.x._extensionId-DSqMu6Ey.js +1 -0
  91. package/dist/client/assets/_shell.x._extensionId_._-DSqMu6Ey.js +1 -0
  92. package/dist/client/assets/{access-copy-BLfnVgF5.js → access-copy-CcG3wpsK.js} +1 -1
  93. package/dist/client/assets/{banner-Cqt8YzUW.js → banner-nt7EFLr6.js} +2 -2
  94. package/dist/client/assets/card-B_zeSZiU.js +1 -0
  95. package/dist/client/assets/{command-C9CeOcFB.js → command-CDfYcQI6.js} +1 -1
  96. package/dist/client/assets/{cpu-D0mdP6ki.js → cpu-D861493C.js} +1 -1
  97. package/dist/client/assets/empty-state-CQ1oXLFa.js +1 -0
  98. package/dist/client/assets/{execution-config-AW7ORH0Y.js → execution-config-on8kVvnW.js} +1 -1
  99. package/dist/client/assets/{file-D3iv2i0G.js → file-Bwo21EVR.js} +1 -1
  100. package/dist/client/assets/{file-exclamation-point-zZf2-mqw.js → file-exclamation-point-BedYLbs2.js} +1 -1
  101. package/dist/client/assets/{file-text-CwK7EV60.js → file-text-BTj3WyHS.js} +1 -1
  102. package/dist/client/assets/{find-latest-widget-fence-DW1zqXSL.js → find-latest-widget-fence-B8fM5rIs.js} +3 -3
  103. package/dist/client/assets/form-lSBktWDn.js +1 -0
  104. package/dist/client/assets/{format-cron-BtOOA5e7.js → format-cron-W7G0In8e.js} +1 -1
  105. package/dist/client/assets/{git-branch-DPgttvPa.js → git-branch-CKlZ81Bg.js} +1 -1
  106. package/dist/client/assets/{heart-BwQb2EFQ.js → heart-BSVjeGLA.js} +1 -1
  107. package/dist/client/assets/{highlighted-body-KPVGNVTW-GGvkvk_S.js → highlighted-body-KPVGNVTW-Ct8vmPkj.js} +1 -1
  108. package/dist/client/assets/index-09EqfhW0.js +1 -0
  109. package/dist/client/assets/{index-C7BvPaXV.js → index-6pYWHTBx.js} +1 -1
  110. package/dist/client/assets/{index-ukv5t1cK.js → index-7Fd_Eeda.js} +1 -1
  111. package/dist/client/assets/{index-CkluSB9W.js → index-B-C_A3lP.js} +2 -2
  112. package/dist/client/assets/index-BDCqg2iM.css +1 -0
  113. package/dist/client/assets/index-BHt5KOZA.js +1 -0
  114. package/dist/client/assets/{index-2MwCJp-O.js → index-BVedye9r.js} +1 -1
  115. package/dist/client/assets/{index-C1zEos_1.js → index-BdrbKBym.js} +1 -1
  116. package/dist/client/assets/index-BjTJ6p2k.js +1 -0
  117. package/dist/client/assets/{index-DUvx8VEa.js → index-C0TknRcB.js} +1 -1
  118. package/dist/client/assets/index-C8-dwIPp.js +1018 -0
  119. package/dist/client/assets/{index-BCwnroTw.js → index-C96eZrOR.js} +1 -1
  120. package/dist/client/assets/index-CAv_6Po4.js +1 -0
  121. package/dist/client/assets/index-CCWSicoJ.js +1 -0
  122. package/dist/client/assets/{index-DvpWMPrj.js → index-CF73kwtO.js} +36 -36
  123. package/dist/client/assets/{index-DxU-VkDj.js → index-CNnnXzI4.js} +1 -1
  124. package/dist/client/assets/{index-Dk05g-u9.js → index-CQrM6oF9.js} +1 -1
  125. package/dist/client/assets/{index-6TyLF_Kz.js → index-CaKe9EaL.js} +1 -1
  126. package/dist/client/assets/{index-obbYyK_q.js → index-CeZ13dpH.js} +1 -1
  127. package/dist/client/assets/{index-DylucJZe.js → index-CeeHkxIC.js} +1 -1
  128. package/dist/client/assets/index-ClELcMX1.js +1 -0
  129. package/dist/client/assets/{index-B-032E-J.js → index-CrEyJcPM.js} +3 -3
  130. package/dist/client/assets/{index-CmELWXLL.js → index-D7kjWnlR.js} +1 -1
  131. package/dist/client/assets/{index-8XbUBB9y.js → index-DEOzZEcu.js} +3 -3
  132. package/dist/client/assets/{index-2kcIgMts.js → index-DOuj--Yi.js} +1 -1
  133. package/dist/client/assets/{index-DsRVcCEI.js → index-DQJM5kjJ.js} +1 -1
  134. package/dist/client/assets/{index-D09-6MJl.js → index-DShrfGYE.js} +1 -1
  135. package/dist/client/assets/{index-BSGR71VY.js → index-DURo45pu.js} +1 -1
  136. package/dist/client/assets/{index-mPmWFWvR.js → index-DeNVXdMl.js} +1 -1
  137. package/dist/client/assets/{index-CYRBybyy.js → index-DgRqCuFH.js} +1 -1
  138. package/dist/client/assets/{index-BzHf9H2D.js → index-Dh8D-3Sb.js} +1 -1
  139. package/dist/client/assets/{index-5jiMMwFO.js → index-DjI5vH_U.js} +1 -1
  140. package/dist/client/assets/{index-BBKtLMOE.js → index-Dq4bx2np.js} +1 -1
  141. package/dist/client/assets/{index-BtUom5gL.js → index-GINKfP45.js} +1 -1
  142. package/dist/client/assets/{index-DhWcN0iH.js → index-KaSZDcGa.js} +1 -1
  143. package/dist/client/assets/{index-Xmzz0kKG.js → index-RFknyjho.js} +1 -1
  144. package/dist/client/assets/{index-BYRhWLhr.js → index-SdTS2P3x.js} +1 -1
  145. package/dist/client/assets/{index-aRrsIRtW.js → index-UNxDevG6.js} +1 -1
  146. package/dist/client/assets/{index-D_bIHF5l.js → index-V_EcsvR4.js} +1 -1
  147. package/dist/client/assets/{index--IvDgnWz.js → index-bvqpTKLz.js} +1 -1
  148. package/dist/client/assets/{index-Bw9sMeWJ.js → index-gbNK9zj5.js} +3 -3
  149. package/dist/client/assets/{index-aqnG9V3q.js → index-sfSRuIXm.js} +6 -6
  150. package/dist/client/assets/{inline-code-BDPvCbUE.js → inline-code-Beal0546.js} +1 -1
  151. package/dist/client/assets/{layers-C0fTjhD3.js → layers-DUfQMkMa.js} +1 -1
  152. package/dist/client/assets/{lightbulb-CauvTp1H.js → lightbulb-DTSn-mNB.js} +2 -2
  153. package/dist/client/assets/{link-2-BFWagtwF.js → link-2-CHr2s4m2.js} +2 -2
  154. package/dist/client/assets/{list-runtime-types-DWuilOeW.js → list-runtime-types-CwEp9Lg4.js} +1 -1
  155. package/dist/client/assets/{markdown-content-irJMN3oI.js → markdown-content-GoymYcRL.js} +1 -1
  156. package/dist/client/assets/mention-pill-XE9mX9G8.js +1 -0
  157. package/dist/client/assets/{message-square-off-CEgJ9mPa.js → message-square-off-DUkKSITA.js} +1 -1
  158. package/dist/client/assets/more-details-3dDtVYc6.js +1 -0
  159. package/dist/client/assets/{owner-notice-D0r6ZH_Y.js → owner-notice-BKmuWRki.js} +1 -1
  160. package/dist/client/assets/{package-DzrvXxqm.js → package-DM7e-GVa.js} +1 -1
  161. package/dist/client/assets/page-container-nGewlFnj.js +1 -0
  162. package/dist/client/assets/{paperclip-C_2eggQt.js → paperclip-BgXlvBBI.js} +1 -1
  163. package/dist/client/assets/{path-input-ExHSfE6J.js → path-input-RzOiTE45.js} +1 -1
  164. package/dist/client/assets/primer-trigger-B60oEVY7.js +3 -0
  165. package/dist/client/assets/{profile-errors-C-4JXW0u.js → profile-errors-CFZN0y6a.js} +1 -1
  166. package/dist/client/assets/{progress--zm5Rh4c.js → progress-Cvnh4Qcr.js} +1 -1
  167. package/dist/client/assets/{query-error-state-CPMymRkX.js → query-error-state-CfJfYpa3.js} +1 -1
  168. package/dist/client/assets/{radio-oT4bYZ-T.js → radio-BOcAjXVO.js} +1 -1
  169. package/dist/client/assets/registry-B9wsS5De.js +1 -0
  170. package/dist/client/assets/{relay-trace-schemas-CfXA97kO.js → relay-trace-schemas-Cvb7RGjg.js} +2 -2
  171. package/dist/client/assets/{room-files-source-BgBqLMLB.js → room-files-source-B-ZJA_NM.js} +2 -2
  172. package/dist/client/assets/{rotate-ccw-clock-CrElPm6O.js → rotate-ccw-clock-vRQP4hWE.js} +1 -1
  173. package/dist/client/assets/{rotate-cw-CdW7VTvV.js → rotate-cw-DD2nOAQ-.js} +2 -2
  174. package/dist/client/assets/{scroll-area-BqDwmAjQ.js → scroll-area-DTvv8_DS.js} +1 -1
  175. package/dist/client/assets/search-x-Ig8nk-DU.js +6 -0
  176. package/dist/client/assets/{shield-check-B7JJvCBE.js → shield-check-DjnWx7aT.js} +1 -1
  177. package/dist/client/assets/{shield-x-DvFRtrsO.js → shield-x-BrtccpM7.js} +1 -1
  178. package/dist/client/assets/{soul-file-BDthDhZW.js → soul-file-C5mMIP4v.js} +1 -1
  179. package/dist/client/assets/{table-CK_OyzSy.js → table-Rll_Jxd8.js} +1 -1
  180. package/dist/client/assets/{terminal-CqyyqODz.js → terminal-Bjss9oke.js} +1 -1
  181. package/dist/client/assets/{trust-posture-JGG7FWhE.js → trust-posture-Dmk2WlZv.js} +1 -1
  182. package/dist/client/assets/{unplug-D2Avzz6s.js → unplug-BHYMc4ND.js} +1 -1
  183. package/dist/client/assets/{unverified-catalog-notice-BgsW86t7.js → unverified-catalog-notice-BmIVQhjE.js} +1 -1
  184. package/dist/client/assets/{use-adapter-catalog-NFvlYTrH.js → use-adapter-catalog-RzlxX2Wa.js} +1 -1
  185. package/dist/client/assets/{use-bindings-Ofq1UjvW.js → use-bindings-Ds_MAC67.js} +1 -1
  186. package/dist/client/assets/{use-composer-prefs-Cr3bdM7x.js → use-composer-prefs-ckA_eZQS.js} +1 -1
  187. package/dist/client/assets/{use-connector-management-Dz2D5qIt.js → use-connector-management-oEqok0QG.js} +1 -1
  188. package/dist/client/assets/{use-deep-link-scroll-wwMMFsmG.js → use-deep-link-scroll-Clu9Sz2-.js} +1 -1
  189. package/dist/client/assets/use-delete-binding-B_zHPcy8.js +1 -0
  190. package/dist/client/assets/{use-dev-links-Buq6rA0h.js → use-dev-links-BO7-IHe9.js} +1 -1
  191. package/dist/client/assets/{use-external-adapter-catalog-DXgiQHcR.js → use-external-adapter-catalog-7lRWtn7J.js} +1 -1
  192. package/dist/client/assets/{use-full-activity-feed-FN5AfUr-.js → use-full-activity-feed-DrcMJL9m.js} +1 -1
  193. package/dist/client/assets/use-is-below-desktop-BhzXZsbH.js +1 -0
  194. package/dist/client/assets/{use-jump-back-in-CF-nu5zW.js → use-jump-back-in-Dav0ttfs.js} +3 -3
  195. package/dist/client/assets/use-local-browser-CtltDlof.js +1 -0
  196. package/dist/client/assets/{use-mesh-topology-BdnC6sCG.js → use-mesh-topology-CiS9XQsg.js} +1 -1
  197. package/dist/client/assets/{use-mounted-ref-B5J2da-A.js → use-mounted-ref-DuK0vm9N.js} +1 -1
  198. package/dist/client/assets/{use-notification-prefs-B1iYUOEO.js → use-notification-prefs-Chf4UNbq.js} +1 -1
  199. package/dist/client/assets/{use-panel-tab-placements-J6Ed141H.js → use-panel-tab-placements-C5y831aL.js} +1 -1
  200. package/dist/client/assets/use-pending-read-i6TB4gGQ.js +1 -0
  201. package/dist/client/assets/use-personality-commit-KKJ2ve1V.js +1 -0
  202. package/dist/client/assets/{use-promo-activation-CZfM_gjU.js → use-promo-activation-D45fuXdT.js} +3 -3
  203. package/dist/client/assets/{use-promo-dismissals-DlSguZS3.js → use-promo-dismissals-8-hGry_v.js} +1 -1
  204. package/dist/client/assets/{use-pulse-freshness-Bxf5sc_M.js → use-pulse-freshness-CWudgqNc.js} +1 -1
  205. package/dist/client/assets/{use-relay-config-BwMES9xB.js → use-relay-config-8mXfegbP.js} +1 -1
  206. package/dist/client/assets/{use-room-follow-claim-lzWFVGRY.js → use-room-follow-claim-DgEWUsoP.js} +1 -1
  207. package/dist/client/assets/{use-roving-tab-list-0RaD5Yyr.js → use-roving-tab-list-CXy0Hv5J.js} +1 -1
  208. package/dist/client/assets/use-session-canvas-CUvHGgMf.js +64 -0
  209. package/dist/client/assets/{use-session-diagnostics-gBgn5q2r.js → use-session-diagnostics-LKiXub1H.js} +3 -3
  210. package/dist/client/assets/{use-unclaimed-chats-DOqEolFt.js → use-unclaimed-chats-Cr812OTh.js} +1 -1
  211. package/dist/client/assets/use-update-config-Bad4g6mB.js +1 -0
  212. package/dist/client/assets/useMutationState-BnXJ-0A_.js +1 -0
  213. package/dist/client/index.html +2 -2
  214. package/dist/drizzle/20261015190907_bored_skreet.sql +30 -0
  215. package/dist/drizzle/20261016144104_remote_command_hub_kinds.sql +21 -0
  216. package/dist/drizzle/meta/20261015190907_snapshot.json +14012 -0
  217. package/dist/drizzle/meta/20261016144104_snapshot.json +14012 -0
  218. package/dist/drizzle/meta/_journal.json +14 -0
  219. package/dist/server/index.js +130465 -126661
  220. package/dist/server/index.js.map +2 -2
  221. package/package.json +4 -4
  222. package/dist/client/assets/ActivityRow-CXLwJ28E.js +0 -1
  223. package/dist/client/assets/AdapterIcon-DsMXg2AE.js +0 -1
  224. package/dist/client/assets/AdapterSetupWizard-CuKhSucd.js +0 -2
  225. package/dist/client/assets/BindingDialog-DUqmAWDb.js +0 -1
  226. package/dist/client/assets/CanvasFileContent-D5egw6o3.js +0 -2
  227. package/dist/client/assets/CommitmentList-EjCcpBJ1.js +0 -1
  228. package/dist/client/assets/ConnectionAccessLists-BkFNTeLh.js +0 -1
  229. package/dist/client/assets/ConventionPage-Cc1bx5BQ.js +0 -11
  230. package/dist/client/assets/HandlePage-B0l9YTdO.js +0 -1
  231. package/dist/client/assets/HeartbeatPage-COV5M0c_.js +0 -1
  232. package/dist/client/assets/NamePage-BaS8zqwG.js +0 -1
  233. package/dist/client/assets/NewDirectMessageMenu-Dvmoevnh.js +0 -1
  234. package/dist/client/assets/PhotoPage-Copz-uyh.js +0 -1
  235. package/dist/client/assets/RuntimeConnectFlow-COnfwsEa.js +0 -1
  236. package/dist/client/assets/RuntimeSetupDialog-cfZVbgJJ.js +0 -1
  237. package/dist/client/assets/SkillsPage-BVt3zxB-.js +0 -1
  238. package/dist/client/assets/ToolsPage-IYUQ8OGL.js +0 -2
  239. package/dist/client/assets/_shell-TKho4VPJ.js +0 -90
  240. package/dist/client/assets/_shell._home.activity-DyrGuSto.js +0 -1
  241. package/dist/client/assets/_shell._home.index-jWJ7womG.js +0 -3
  242. package/dist/client/assets/_shell._home.tasks-tOBxVLcL.js +0 -1
  243. package/dist/client/assets/_shell._home.workspaces-B0ovWo_a.js +0 -1
  244. package/dist/client/assets/_shell.channels-Cs-s7a-W.js +0 -10
  245. package/dist/client/assets/_shell.connections-BXVkOfW_.js +0 -1
  246. package/dist/client/assets/_shell.marketplace-CuTHl0Cy.js +0 -1
  247. package/dist/client/assets/_shell.marketplace_.sources-UWbdjpMd.js +0 -1
  248. package/dist/client/assets/_shell.x._extensionId-DdiN22Ga.js +0 -1
  249. package/dist/client/assets/_shell.x._extensionId_._-DdiN22Ga.js +0 -1
  250. package/dist/client/assets/agent-browser-BkFCE19g.js +0 -1
  251. package/dist/client/assets/card-BaRHWQF1.js +0 -1
  252. package/dist/client/assets/empty-state-C0Xjezko.js +0 -1
  253. package/dist/client/assets/form-CwnBnnFI.js +0 -1
  254. package/dist/client/assets/index-CMaIfS_G.js +0 -1018
  255. package/dist/client/assets/index-CTxREsg3.js +0 -1
  256. package/dist/client/assets/index-D5QS-i8I.css +0 -1
  257. package/dist/client/assets/index-DLE5hltn.js +0 -1
  258. package/dist/client/assets/index-DaWx8Mly.js +0 -1
  259. package/dist/client/assets/index-GvMV_K0T.js +0 -1
  260. package/dist/client/assets/index-lbAGzLtf.js +0 -1
  261. package/dist/client/assets/mention-pill-C0AzfrQH.js +0 -1
  262. package/dist/client/assets/more-details-CwkthrCT.js +0 -1
  263. package/dist/client/assets/page-container-CH8mJ_Yk.js +0 -1
  264. package/dist/client/assets/primer-trigger-CgHlhMZL.js +0 -3
  265. package/dist/client/assets/registry-DLUlxXR7.js +0 -1
  266. package/dist/client/assets/search-x-DqLtufOG.js +0 -6
  267. package/dist/client/assets/use-delete-binding-j0PZzvHt.js +0 -1
  268. package/dist/client/assets/use-is-below-desktop-BudV2uCQ.js +0 -1
  269. package/dist/client/assets/use-pending-read-BNKrtv93.js +0 -1
  270. package/dist/client/assets/use-personality-commit-CWBNZX4E.js +0 -1
  271. package/dist/client/assets/use-session-canvas-CAxswuAf.js +0 -64
  272. package/dist/client/assets/use-update-config-9fndji1c.js +0 -1
  273. package/dist/client/assets/useMutationState-CtolUzjw.js +0 -1
@@ -1,2 +1,2 @@
1
- import{a8 as l,a9 as u,j as e,fu as i,e as a,fv as m,be as x,Q as h,dP as p}from"./index-CMaIfS_G.js";import{P as f}from"./page-container-CH8mJ_Yk.js";import{Q as g}from"./query-error-state-CPMymRkX.js";import{L as j}from"./lightbulb-CauvTp1H.js";import{P as N}from"./paperclip-C_2eggQt.js";import"./empty-state-C0Xjezko.js";const b=["feedback","mine"];function y(){const s=l();return u({queryKey:b,queryFn:()=>s.listMyFeedback()})}const k=/^\d+\.\d+/;function w(s){return k.test(s)?`v${s}`:s}const v={bug:m,idea:j,feedback:i},R={bug:"Bug",idea:"Idea",feedback:"Feedback"};function S(s){switch(s.status){case"received":return"Received";case"triaged":return"Triaged";case"in_progress":return"In progress";case"shipped":return s.shippedVersion?`Shipped ${w(s.shippedVersion)}`:"Shipped";case"closed":return"Closed"}}function E(s){switch(s){case"in_progress":return"bg-amber-500/10 text-amber-600 dark:text-amber-400";case"shipped":return"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400";default:return"bg-muted text-muted-foreground"}}function F(s,r=140){const t=s.split(`
2
- `)[0]??"";return t.length>r?`${t.slice(0,r)}…`:t}function C(s){const r=[s.hasScreenshot&&"screenshot",s.hasTranscript&&"transcript"].filter(t=>!!t);return r.length>0?r.join(", "):null}function L({item:s}){const r=v[s.kind]??i,t=C(s);return e.jsxs("li",{className:"hover:bg-muted/50 flex items-start gap-3 rounded-md px-2 py-2.5 transition-colors",children:[e.jsx(r,{className:"text-muted-foreground mt-0.5 size-4 shrink-0","aria-hidden":"true"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-foreground truncate text-sm",title:s.message,children:F(s.message)}),e.jsxs("p",{className:"text-muted-foreground mt-0.5 flex items-center gap-1 text-xs",children:[e.jsxs("span",{children:[R[s.kind]," · ",x(s.createdAt)]}),t&&e.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx(N,{className:"size-3","aria-hidden":"true"}),t]})]})]}),e.jsx("span",{className:h("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap",E(s.status)),children:S(s)})]})}function n(){return e.jsxs("li",{className:"flex items-start gap-3 rounded-md px-2 py-2.5","aria-hidden":"true",children:[e.jsx(a,{className:"mt-0.5 size-4 shrink-0 rounded-full"}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsx(a,{className:"h-3.5 w-3/4"}),e.jsx(a,{className:"h-3 w-1/3"})]}),e.jsx(a,{className:"h-4 w-16 shrink-0 rounded-full"})]})}function P(){const{data:s,isLoading:r,isError:t,refetch:o,isFetching:c}=y();return r?e.jsxs("ul",{className:"space-y-0.5","aria-label":"Loading your reports…",children:[e.jsx(n,{}),e.jsx(n,{}),e.jsx(n,{})]}):t?e.jsx(g,{className:"h-full",title:"Couldn’t load your reports",description:"Check that you’re online and try again.",onRetry:()=>void o(),isRetrying:c}):!s||s.length===0?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center",children:[e.jsx(i,{className:"text-muted-foreground/50 size-8","aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium",children:"Nothing sent yet"}),e.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"Send a report from the help menu to see it here."})]}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("ul",{className:"min-h-0 flex-1 space-y-0.5 overflow-y-auto",children:s.map(d=>e.jsx(L,{item:d},d.id))}),e.jsx("p",{className:"text-muted-foreground border-border mt-2 border-t px-2 pt-2 text-xs",children:"Add your email to a report to hear when it ships."})]})}function _(){return e.jsxs(f,{width:"wide",scroll:!1,children:[e.jsxs("header",{className:"mb-6 shrink-0",children:[e.jsx(p,{children:"Your reports"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"What you sent DorkOS, and where each stands."})]}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx(P,{})})]})}const D=_;export{D as component};
1
+ import{a1 as l,a2 as u,j as e,fl as i,e as a,fm as m,b5 as x,G as h,dG as p}from"./index-C8-dwIPp.js";import{P as f}from"./page-container-nGewlFnj.js";import{Q as g}from"./query-error-state-CfJfYpa3.js";import{L as j}from"./lightbulb-DTSn-mNB.js";import{P as N}from"./paperclip-BgXlvBBI.js";import"./empty-state-CQ1oXLFa.js";const b=["feedback","mine"];function y(){const s=l();return u({queryKey:b,queryFn:()=>s.listMyFeedback()})}const k=/^\d+\.\d+/;function w(s){return k.test(s)?`v${s}`:s}const v={bug:m,idea:j,feedback:i},R={bug:"Bug",idea:"Idea",feedback:"Feedback"};function S(s){switch(s.status){case"received":return"Received";case"triaged":return"Triaged";case"in_progress":return"In progress";case"shipped":return s.shippedVersion?`Shipped ${w(s.shippedVersion)}`:"Shipped";case"closed":return"Closed"}}function E(s){switch(s){case"in_progress":return"bg-amber-500/10 text-amber-600 dark:text-amber-400";case"shipped":return"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400";default:return"bg-muted text-muted-foreground"}}function F(s,r=140){const t=s.split(`
2
+ `)[0]??"";return t.length>r?`${t.slice(0,r)}…`:t}function C(s){const r=[s.hasScreenshot&&"screenshot",s.hasTranscript&&"transcript"].filter(t=>!!t);return r.length>0?r.join(", "):null}function L({item:s}){const r=v[s.kind]??i,t=C(s);return e.jsxs("li",{className:"hover:bg-muted/50 flex items-start gap-3 rounded-md px-2 py-2.5 transition-colors",children:[e.jsx(r,{className:"text-muted-foreground mt-0.5 size-4 shrink-0","aria-hidden":"true"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-foreground truncate text-sm",title:s.message,children:F(s.message)}),e.jsxs("p",{className:"text-muted-foreground mt-0.5 flex items-center gap-1 text-xs",children:[e.jsxs("span",{children:[R[s.kind]," · ",x(s.createdAt)]}),t&&e.jsxs("span",{className:"inline-flex items-center gap-0.5",children:[e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx(N,{className:"size-3","aria-hidden":"true"}),t]})]})]}),e.jsx("span",{className:h("shrink-0 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap",E(s.status)),children:S(s)})]})}function n(){return e.jsxs("li",{className:"flex items-start gap-3 rounded-md px-2 py-2.5","aria-hidden":"true",children:[e.jsx(a,{className:"mt-0.5 size-4 shrink-0 rounded-full"}),e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsx(a,{className:"h-3.5 w-3/4"}),e.jsx(a,{className:"h-3 w-1/3"})]}),e.jsx(a,{className:"h-4 w-16 shrink-0 rounded-full"})]})}function _(){const{data:s,isLoading:r,isError:t,refetch:o,isFetching:c}=y();return r?e.jsxs("ul",{className:"space-y-0.5","aria-label":"Loading your reports…",children:[e.jsx(n,{}),e.jsx(n,{}),e.jsx(n,{})]}):t?e.jsx(g,{className:"h-full",title:"Couldn’t load your reports",description:"Check that you’re online and try again.",onRetry:()=>void o(),isRetrying:c}):!s||s.length===0?e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2 p-8 text-center",children:[e.jsx(i,{className:"text-muted-foreground/50 size-8","aria-hidden":"true"}),e.jsx("p",{className:"text-sm font-medium",children:"Nothing sent yet"}),e.jsx("p",{className:"text-muted-foreground max-w-xs text-xs",children:"Send a report from the help menu to see it here."})]}):e.jsxs("div",{className:"flex h-full flex-col",children:[e.jsx("ul",{className:"min-h-0 flex-1 space-y-0.5 overflow-y-auto",children:s.map(d=>e.jsx(L,{item:d},d.id))}),e.jsx("p",{className:"text-muted-foreground border-border mt-2 border-t px-2 pt-2 text-xs",children:"Add your email to a report to hear when it ships."})]})}function B(){return e.jsxs(f,{width:"wide",scroll:!1,children:[e.jsxs("header",{className:"mb-6 shrink-0",children:[e.jsx(p,{children:"Your reports"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"What you sent DorkOS, and where each stands."})]}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx(_,{})})]})}const D=B;export{D as component};
@@ -0,0 +1 @@
1
+ import{j as t}from"./index-C8-dwIPp.js";import{M as o}from"./Marketplace-CWiiq8of.js";import{P as r}from"./page-container-nGewlFnj.js";import"./PreviewRefusedNotice-CF3bzfSe.js";import"./shield-x-BrtccpM7.js";import"./card-B_zeSZiU.js";import"./empty-state-CQ1oXLFa.js";import"./markdown-content-GoymYcRL.js";import"./use-unclaimed-chats-Cr812OTh.js";import"./use-bindings-Ds_MAC67.js";import"./UnlinkDialog-BTYC_Sit.js";import"./use-dev-links-BO7-IHe9.js";import"./more-details-3dDtVYc6.js";import"./terminal-Bjss9oke.js";import"./file-Bwo21EVR.js";import"./AgentPicker-CydNJYi_.js";import"./command-CDfYcQI6.js";import"./AgentOptionRow-C15RQsub.js";import"./useMutationState-BnXJ-0A_.js";import"./file-exclamation-point-BedYLbs2.js";import"./rotate-ccw-clock-vRQP4hWE.js";import"./path-input-RzOiTE45.js";function i(){return t.jsx(r,{width:"wide",children:t.jsx(o,{})})}const S=i;export{S as component};
@@ -0,0 +1 @@
1
+ import{j as o}from"./index-C8-dwIPp.js";import{P as r}from"./page-container-nGewlFnj.js";import{M as e}from"./MarketplaceSourcesView-DF3cHMR0.js";import"./use-pending-read-i6TB4gGQ.js";function t(){return o.jsx(r,{width:"reading",children:o.jsx(e,{})})}const s=t;export{s as component};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DvpWMPrj.js","assets/index-CMaIfS_G.js","assets/index-D5QS-i8I.css"])))=>i.map(i=>d[i]);
2
- var xi=Object.defineProperty;var bi=(e,t,n)=>t in e?xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>bi(e,typeof t!="symbol"?t+"":t,n);import{p4 as yi,p5 as to,mZ as no,p6 as ki,p7 as so,nc as vi,r as c,p8 as ro,p9 as Ci,pa as Si,pb as fn,a2 as Ye,j as r,W as K,bF as fe,hq as ts,a8 as ke,kz as oo,q as it,jc as ji,pc as _i,pd as ao,pe as wi,pf as Ni,fY as Ei,B as oe,ae as Ae,dF as Me,pg as io,ph as ut,pi as Ge,Q as H,R as lt,X as qe,pj as ht,gB as Di,pk as Ti,I as Ai,pl as Fi,pm as mn,pn as Ri,po as Mi,fs as Oi,bf as yt,pp as lo,b0 as ce,pq as Ii,pr as Ln,ho as $i,ay as co,df as Pi,aw as Li,m3 as zi,ps as Ms,dW as Os,af as ct,oa as Bi,pt as qi,og as Ct,pu as Qt,a9 as Xe,oc as ns,ab as St,gS as wt,dV as ss,cg as Nt,cG as Ui,cH as Hi,cJ as Wi,cK as Vi,cL as Gi,dD as Ki,e as Is,ih as Qi,dj as Yi,x as Le,ii as Xi,o8 as rs,dR as Ji,pv as Zi,pw as el,ia as os,px as uo,py as fo,pz as tl,pA as nl,hX as as,aa as is,cB as Et,dU as ls,dB as cs,dT as sl,pB as rl,j0 as mo,pC as ol,od as al,h5 as il,e1 as ll,aX as Ke,ap as Dt,ag as us,pD as cl,m4 as ul,pE as dl,bi as fl,$ as Tt,hd as Ue,he as He,aq as po,pF as Zt,dE as At,j5 as ml,ce as dt,s as Ft,gu as pl,g8 as $s,hj as ho,gy as hl,C as ds,bO as gl,bP as xl,pG as bl,l as yl,lU as go,aZ as kl,pH as vl,pI as Cl,pJ as Sl,pK as jl,pL as _l,pM as Pe,nm as Ee,nv as wl,nn as en,aT as Nl,g_ as El,cm as Dl,bU as Tl,iu as Al,a7 as fs,dG as Ps,f as xo,pN as Fl,eq as Rl,b3 as Ml,f9 as bo,ht as yo,h9 as jt,j1 as ko,dH as Ol,pO as Il,pP as $l,o as vo,y as tn,aY as Co,pQ as So,pR as Pl,ln as pn,iM as Ll,bk as jo,eN as zl,eO as Ls,pS as zn,pT as _o,pU as Bl,pV as ql,pW as wo,eu as Ul,kH as Hl,fZ as Wl,f_ as Vl,f$ as Gl,g0 as Kl,g1 as Ql,g2 as Yl,g3 as Xl,g4 as Jl,pX as ms,pY as Zl,pZ as ec,p_ as tc,iH as nc,iI as sc,iJ as rc,iK as hn,p$ as oc,iL as zs,j4 as ac,bZ as ic,j6 as lc,b$ as cc,q0 as Bs,cp as uc,fP as No,cu as Eo,ck as dc,ct as fc,cA as Do,cy as mc,l9 as ps,q1 as pc,aC as hc,q2 as gc,kM as re,q3 as xc,q4 as bc,a5 as yc,fK as qs,hT as Ve,q5 as gn,ki as kt,q6 as Us,q7 as Hs,q8 as Ws,cf as xn,q9 as rt,el as vt,qa as kc,qb as To,qc as Ao,qd as vc,qe as Cc,qf as Fo,lb as Sc,qg as Ro,qh as tt,kv as Mo,qi as jc,bY as _c,la as wc,qj as Nc,ft as Oo,qk as Ec,c4 as Vs,mq as Io,ar as nn,ql as Dc,qm as Tc,gh as $o,gi as hs,jw as Ac,qn as Fc,qo as Rc,qp as gt,qq as Mc,qr as Oc,cC as Ic,eJ as $c,lf as Pc,fp as Lc,kC as zc,dP as Bc}from"./index-CMaIfS_G.js";import{P as qc}from"./PromptSuggestionChips-CHWGhlr1.js";import{u as Uc,a as Hc,L as Wc,f as Vc,b as Gc,c as Kc,B as Qc,d as Yc}from"./primer-trigger-CgHlhMZL.js";import{E as Xc,F as Jc,e as Zc,h as eu,f as tu,P as nu,g as su,d as ru,q as ou,j as au,b as iu,G as lu,B as cu,H as Po,z as uu,u as du,D as fu,v as mu,t as pu,p as hu,w as gu,y as xu,o as bu,n as yu,k as ku,s as vu,M as Cu,i as Su,S as ju,U as _u,A as wu,I as Nu,J as Eu,K as Gs,x as Du,R as Tu}from"./use-session-diagnostics-gBgn5q2r.js";import{C as Au}from"./card-BaRHWQF1.js";import{a as Fu,u as Ru,i as Mu}from"./use-notification-prefs-B1iYUOEO.js";import{B as Ou}from"./banner-Cqt8YzUW.js";import{t as It,b as Bn,k as Iu,N as Lo,l as $u,g as Pu,C as _t,M as nt,f as Lu,D as zu,U as Bu,F as qu}from"./index-aqnG9V3q.js";import{a as Uu}from"./markdown-content-irJMN3oI.js";import{u as Hu,b as Wu}from"./WidgetErrorCard-BeQ2x8Ar.js";import{P as Vu,W as Gu,a as Ku,C as Qu,b as Yu}from"./find-latest-widget-fence-DW1zqXSL.js";import{a as zo,b as Xu,R as Ju,K as Zu,c as ed,g as td}from"./RuntimeConnectFlow-COnfwsEa.js";import{S as nd}from"./shield-check-B7JJvCBE.js";import{a as sd,c as rd}from"./composer-insert-BpyATrmR.js";import{u as od}from"./use-composer-prefs-Cr3bdM7x.js";import{A as qn,M as ad}from"./McpAppFrame-BQxyYB23.js";import{F as Bo}from"./file-D3iv2i0G.js";import{S as id}from"./shield-x-DvFRtrsO.js";import{u as ld,M as cd}from"./McpSigninBody-DNB9IVJs.js";import{b as ud}from"./KeyEntry-IgIIE1HE.js";import{f as dd}from"./format-duration-BCr6uzby.js";import{l as fd}from"./use-connector-management-Dz2D5qIt.js";import{A as md}from"./AgentRequestCard-CL5bwXYH.js";import{F as pd,h as hd}from"./use-session-canvas-CAxswuAf.js";import{F as gd}from"./file-text-CwK7EV60.js";import"./use-is-below-desktop-BudV2uCQ.js";import"./git-branch-DPgttvPa.js";import"./use-update-config-9fndji1c.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./RuntimeSetupDialog-cfZVbgJJ.js";import"./inline-code-BDPvCbUE.js";import"./list-runtime-types-DWuilOeW.js";import"./unverified-catalog-notice-BgsW86t7.js";import"./layers-C0fTjhD3.js";import"./cpu-D0mdP6ki.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-C_2eggQt.js";import"./index-obbYyK_q.js";import"./progress--zm5Rh4c.js";import"./table-CK_OyzSy.js";import"./terminal-CqyyqODz.js";import"./package-DzrvXxqm.js";import"./heart-BwQb2EFQ.js";import"./useMutationState-CtolUzjw.js";import"./runtime-connect-Dn0T5YWv.js";import"./more-details-CwkthrCT.js";import"./connection-copy--MA7AN04.js";import"./access-copy-BLfnVgF5.js";import"./query-error-state-CPMymRkX.js";import"./empty-state-C0Xjezko.js";import"./use-bindings-Ofq1UjvW.js";import"./rotate-cw-CdW7VTvV.js";function xd(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],o=e[1+n],a=e[2+n],i=e[3+n],l=yi(o,a,i);return t?l(s):l}function bd(e,t,n={}){const s=e.get();let o=null,a=s,i;const l=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,u=()=>{o&&(o.stop(),o=null),e.animation=void 0},d=()=>{const h=Ks(e.get()),f=Ks(a);if(h===f){u();return}const x=o?o.getGeneratorVelocity():e.getVelocity();u(),o=new ki({keyframes:[h,f],velocity:x,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})},m=()=>{var h;d(),e.animation=o??void 0,(h=e.events.animationStart)==null||h.notify(),o==null||o.then(()=>{var f;e.animation=void 0,(f=e.events.animationComplete)==null||f.notify()})};if(e.attach((h,f)=>{a=h,i=x=>f(bn(x,l)),to.postRender(m)},u),no(t)){let h=n.skipInitialAnimation===!0;const f=t.on("change",g=>{h?(h=!1,e.jump(bn(g,l),!1)):e.set(bn(g,l))}),x=e.on("destroy",f);return()=>{f(),x()}}return u}function bn(e,t){return t?e+t:e}function Ks(e){return typeof e=="number"?e:parseFloat(e)}function qo(e){const t=so(()=>vi(e)),{isStatic:n}=c.useContext(ro);if(n){const[,s]=c.useState(e);c.useEffect(()=>t.on("change",s),[])}return t}function Uo(e,t){const n=qo(t()),s=()=>n.set(t());return s(),Ci(()=>{const o=()=>to.preRender(s,!1,!0),a=e.map(i=>i.on("change",o));return()=>{a.forEach(i=>i()),Si(s)}}),n}function yd(e){fn.current=[],e();const t=Uo(fn.current,e);return fn.current=void 0,t}function Ho(e,t,n,s){if(typeof e=="function")return yd(e);const a=typeof t=="function"?t:xd(t,n,s),i=Array.isArray(e)?Qs(e,a):Qs([e],([u])=>a(u)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(s==null?void 0:s.clamp)!==!1&&(i.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),i}function Qs(e,t){const n=so(()=>[]);return Uo(e,()=>{n.length=0;const s=e.length;for(let o=0;o<s;o++)n[o]=e[o].get();return t(n)})}function kd(e,t={}){const{isStatic:n}=c.useContext(ro),s=()=>no(e)?e.get():e;if(n)return Ho(s);const o=qo(s());return c.useInsertionEffect(()=>bd(o,e,t),[o,JSON.stringify(t)]),o}function vd(e,t={}){return kd(e,{type:"spring",...t})}function Cd(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function Wo(e){const[t,n]=c.useState(()=>Date.now()),s=c.useRef(null);if(c.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Cd(o),ms:o}}function Sd(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=c.useRef(!1),a=c.useRef(null),i=c.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),l=c.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=c.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),l()},[t,i,l]);return c.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(h=>document.addEventListener(h,u,{passive:!0}));const m=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",m),()=>{a.current&&clearTimeout(a.current),d.forEach(h=>document.removeEventListener(h,u)),document.removeEventListener("visibilitychange",m)}},[t,i,u]),{isIdle:o.current}}function jd({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:l,optionCount:u=0,focusedIndex:d=0}){const m=c.useRef(!1);c.useEffect(()=>{m.current=!1},[e==null?void 0:e.toolCallId]),c.useEffect(()=>{if(!e)return;function h(f){const x=f.target,g=(x.tagName==="TEXTAREA"||x.tagName==="INPUT")&&!x.disabled;if(!m.current&&!(f.metaKey||f.ctrlKey||f.altKey)){if(e.type==="approval"){if(f.key==="Enter"&&g&&x.closest("[data-approval-field]")!==null)return;f.key==="Enter"&&f.shiftKey?(f.preventDefault(),m.current=!0,n==null||n()):f.key==="Enter"?(f.preventDefault(),m.current=!0,t==null||t()):f.key==="Escape"&&(f.preventDefault(),m.current=!0,s==null||s());return}if(e.type==="question"){if(g){if(f.key==="Enter"&&!f.shiftKey){f.preventDefault(),l==null||l();return}if(f.key==="ArrowUp"){f.preventDefault(),a==null||a("up");return}if(f.key==="ArrowDown"){f.preventDefault(),a==null||a("down");return}return}const S=parseInt(f.key,10);if(S>=1&&S<=9){f.preventDefault(),S-1<u&&(o==null||o(S-1));return}switch(f.key){case"ArrowUp":f.preventDefault(),a==null||a("up");break;case"ArrowDown":f.preventDefault(),a==null||a("down");break;case" ":f.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":f.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":f.preventDefault(),i==null||i("next");break;case"Enter":f.preventDefault(),l==null||l();break}}}}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,s,o,a,i,l,u,d])}function Vo(){const[e,t]=c.useState(()=>!document.hidden);return c.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CF73kwtO.js","assets/index-C8-dwIPp.js","assets/index-BDCqg2iM.css"])))=>i.map(i=>d[i]);
2
+ var xi=Object.defineProperty;var bi=(e,t,n)=>t in e?xi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>bi(e,typeof t!="symbol"?t+"":t,n);import{p8 as yi,p9 as to,n1 as no,pa as ki,pb as so,ng as vi,r as c,pc as ro,pd as Ci,pe as Si,pf as fn,W as Ye,j as r,O as K,bw as fe,ht as ts,a1 as ke,kl as oo,q as it,je as ji,pg as _i,ph as ao,pi as wi,pj as Ni,fW as Ei,B as oe,a7 as Ae,dw as Me,pk as io,pl as ut,pm as Ge,G as H,J as lt,X as qe,pn as ht,gF as Di,po as Ti,I as Ai,pp as Fi,pq as mn,pr as Ri,ps as Mi,fj as Oi,b6 as yt,pt as lo,aV as ce,pu as Ii,pv as Ln,hr as $i,ar as co,d6 as Pi,ap as Li,m7 as zi,pw as Ms,dN as Os,a8 as ct,oe as Bi,px as qi,ok as Ct,py as Qt,a2 as Xe,og as ns,a4 as St,gV as wt,dM as ss,c7 as Nt,cx as Ui,cy as Hi,cA as Wi,cB as Vi,cC as Gi,du as Ki,e as Is,ij as Qi,da as Yi,x as Le,ik as Xi,oc as rs,dI as Ji,pz as Zi,pA as el,ic as os,pB as uo,pC as fo,pD as tl,pE as nl,hZ as as,a3 as is,cs as Et,dL as ls,ds as cs,dK as sl,pF as rl,j2 as mo,pG as ol,oh as al,h8 as il,dU as ll,aQ as Ke,ai as Dt,a9 as us,pH as cl,m8 as ul,pI as dl,b9 as fl,T as Tt,hg as Ue,hh as He,aj as po,pJ as Zt,dv as At,j7 as ml,c5 as dt,s as Ft,gy as pl,g6 as $s,hm as ho,gC as hl,C as ds,bF as gl,bG as xl,pK as bl,l as yl,lY as go,aS as kl,pL as vl,pM as Cl,pN as Sl,pO as jl,pP as _l,pQ as Pe,nq as Ee,nz as wl,nr as en,aM as Nl,h1 as El,cd as Dl,bL as Tl,iw as Al,a0 as fs,dx as Ps,f as xo,pR as Fl,eh as Rl,aW as Ml,f0 as bo,hw as yo,hc as jt,j3 as ko,dy as Ol,pS as Il,pT as $l,o as vo,y as tn,aR as Co,pU as So,pV as Pl,lr as pn,iO as Ll,bb as jo,eE as zl,eF as Ls,pW as zn,pX as _o,pY as Bl,pZ as ql,p_ as wo,el as Ul,kt as Hl,fX as Wl,fY as Vl,fZ as Gl,f_ as Kl,f$ as Ql,g0 as Yl,g1 as Xl,g2 as Jl,p$ as ms,q0 as Zl,q1 as ec,q2 as tc,iJ as nc,iK as sc,iL as rc,iM as hn,q3 as oc,iN as zs,j6 as ac,bQ as ic,j8 as lc,bS as cc,q4 as Bs,cg as uc,fN as No,cl as Eo,cb as dc,ck as fc,cr as Do,cp as mc,kX as ps,q5 as pc,av as hc,q6 as gc,ky as re,q7 as xc,q8 as bc,_ as yc,fI as qs,hV as Ve,q9 as gn,l7 as kt,qa as Us,qb as Hs,qc as Ws,c6 as xn,qd as rt,ec as vt,qe as kc,qf as To,qg as Ao,qh as vc,qi as Cc,qj as Fo,kZ as Sc,qk as Ro,ql as tt,kh as Mo,qm as jc,bP as _c,kY as wc,qn as Nc,fk as Oo,qo as Ec,bX as Vs,mu as Io,ak as nn,qp as Dc,qq as Tc,gj as $o,gg as hs,jy as Ac,qr as Fc,qs as Rc,qt as gt,qu as Mc,qv as Oc,ct as Ic,eA as $c,l1 as Pc,fg as Lc,ko as zc,dG as Bc}from"./index-C8-dwIPp.js";import{P as qc}from"./PromptSuggestionChips-CUwLk83h.js";import{u as Uc,a as Hc,L as Wc,f as Vc,b as Gc,c as Kc,B as Qc,d as Yc}from"./primer-trigger-B60oEVY7.js";import{E as Xc,F as Jc,e as Zc,h as eu,f as tu,P as nu,g as su,d as ru,q as ou,j as au,b as iu,G as lu,B as cu,H as Po,z as uu,u as du,D as fu,v as mu,t as pu,p as hu,w as gu,y as xu,o as bu,n as yu,k as ku,s as vu,M as Cu,i as Su,S as ju,U as _u,A as wu,I as Nu,J as Eu,K as Gs,x as Du,R as Tu}from"./use-session-diagnostics-LKiXub1H.js";import{C as Au}from"./card-B_zeSZiU.js";import{a as Fu,u as Ru,i as Mu}from"./use-notification-prefs-Chf4UNbq.js";import{B as Ou}from"./banner-nt7EFLr6.js";import{t as It,b as Bn,k as Iu,N as Lo,l as $u,g as Pu,C as _t,M as nt,f as Lu,D as zu,U as Bu,F as qu}from"./index-sfSRuIXm.js";import{a as Uu}from"./markdown-content-GoymYcRL.js";import{u as Hu,b as Wu}from"./WidgetErrorCard-CT4sl_T6.js";import{P as Vu,W as Gu,a as Ku,C as Qu,b as Yu}from"./find-latest-widget-fence-B8fM5rIs.js";import{a as zo,b as Xu,R as Ju,K as Zu,c as ed,g as td}from"./RuntimeConnectFlow-DY4sjRgN.js";import{S as nd}from"./shield-check-DjnWx7aT.js";import{a as sd,c as rd}from"./composer-insert-BpyATrmR.js";import{u as od}from"./use-composer-prefs-ckA_eZQS.js";import{A as qn,M as ad}from"./McpAppFrame-D5Muf5Sf.js";import{F as Bo}from"./file-Bwo21EVR.js";import{S as id}from"./shield-x-BrtccpM7.js";import{u as ld,M as cd}from"./McpSigninBody-CLZFoQgC.js";import{b as ud}from"./KeyEntry-CEbe5Xvn.js";import{f as dd}from"./format-duration-BCr6uzby.js";import{l as fd}from"./use-connector-management-oEqok0QG.js";import{A as md}from"./AgentRequestCard-BBSbluBs.js";import{F as pd,h as hd}from"./use-session-canvas-CUvHGgMf.js";import{F as gd}from"./file-text-BTj3WyHS.js";import"./use-is-below-desktop-BhzXZsbH.js";import"./git-branch-CKlZ81Bg.js";import"./use-update-config-Bad4g6mB.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./RuntimeSetupDialog-DJu_-eNa.js";import"./inline-code-Beal0546.js";import"./list-runtime-types-CwEp9Lg4.js";import"./unverified-catalog-notice-BmIVQhjE.js";import"./layers-DUfQMkMa.js";import"./cpu-D861493C.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-BgXlvBBI.js";import"./index-CeZ13dpH.js";import"./progress-Cvnh4Qcr.js";import"./table-Rll_Jxd8.js";import"./terminal-Bjss9oke.js";import"./package-DM7e-GVa.js";import"./heart-BSVjeGLA.js";import"./useMutationState-BnXJ-0A_.js";import"./runtime-connect-Dn0T5YWv.js";import"./more-details-3dDtVYc6.js";import"./connection-copy--MA7AN04.js";import"./access-copy-CcG3wpsK.js";import"./query-error-state-CfJfYpa3.js";import"./empty-state-CQ1oXLFa.js";import"./use-bindings-Ds_MAC67.js";import"./rotate-cw-DD2nOAQ-.js";function xd(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],o=e[1+n],a=e[2+n],i=e[3+n],l=yi(o,a,i);return t?l(s):l}function bd(e,t,n={}){const s=e.get();let o=null,a=s,i;const l=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,u=()=>{o&&(o.stop(),o=null),e.animation=void 0},d=()=>{const h=Ks(e.get()),f=Ks(a);if(h===f){u();return}const x=o?o.getGeneratorVelocity():e.getVelocity();u(),o=new ki({keyframes:[h,f],velocity:x,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})},m=()=>{var h;d(),e.animation=o??void 0,(h=e.events.animationStart)==null||h.notify(),o==null||o.then(()=>{var f;e.animation=void 0,(f=e.events.animationComplete)==null||f.notify()})};if(e.attach((h,f)=>{a=h,i=x=>f(bn(x,l)),to.postRender(m)},u),no(t)){let h=n.skipInitialAnimation===!0;const f=t.on("change",g=>{h?(h=!1,e.jump(bn(g,l),!1)):e.set(bn(g,l))}),x=e.on("destroy",f);return()=>{f(),x()}}return u}function bn(e,t){return t?e+t:e}function Ks(e){return typeof e=="number"?e:parseFloat(e)}function qo(e){const t=so(()=>vi(e)),{isStatic:n}=c.useContext(ro);if(n){const[,s]=c.useState(e);c.useEffect(()=>t.on("change",s),[])}return t}function Uo(e,t){const n=qo(t()),s=()=>n.set(t());return s(),Ci(()=>{const o=()=>to.preRender(s,!1,!0),a=e.map(i=>i.on("change",o));return()=>{a.forEach(i=>i()),Si(s)}}),n}function yd(e){fn.current=[],e();const t=Uo(fn.current,e);return fn.current=void 0,t}function Ho(e,t,n,s){if(typeof e=="function")return yd(e);const a=typeof t=="function"?t:xd(t,n,s),i=Array.isArray(e)?Qs(e,a):Qs([e],([u])=>a(u)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(s==null?void 0:s.clamp)!==!1&&(i.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),i}function Qs(e,t){const n=so(()=>[]);return Uo(e,()=>{n.length=0;const s=e.length;for(let o=0;o<s;o++)n[o]=e[o].get();return t(n)})}function kd(e,t={}){const{isStatic:n}=c.useContext(ro),s=()=>no(e)?e.get():e;if(n)return Ho(s);const o=qo(s());return c.useInsertionEffect(()=>bd(o,e,t),[o,JSON.stringify(t)]),o}function vd(e,t={}){return kd(e,{type:"spring",...t})}function Cd(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function Wo(e){const[t,n]=c.useState(()=>Date.now()),s=c.useRef(null);if(c.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Cd(o),ms:o}}function Sd(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=c.useRef(!1),a=c.useRef(null),i=c.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),l=c.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=c.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),l()},[t,i,l]);return c.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(h=>document.addEventListener(h,u,{passive:!0}));const m=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",m),()=>{a.current&&clearTimeout(a.current),d.forEach(h=>document.removeEventListener(h,u)),document.removeEventListener("visibilitychange",m)}},[t,i,u]),{isIdle:o.current}}function jd({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:l,optionCount:u=0,focusedIndex:d=0}){const m=c.useRef(!1);c.useEffect(()=>{m.current=!1},[e==null?void 0:e.toolCallId]),c.useEffect(()=>{if(!e)return;function h(f){const x=f.target,g=(x.tagName==="TEXTAREA"||x.tagName==="INPUT")&&!x.disabled;if(!m.current&&!(f.metaKey||f.ctrlKey||f.altKey)){if(e.type==="approval"){if(f.key==="Enter"&&g&&x.closest("[data-approval-field]")!==null)return;f.key==="Enter"&&f.shiftKey?(f.preventDefault(),m.current=!0,n==null||n()):f.key==="Enter"?(f.preventDefault(),m.current=!0,t==null||t()):f.key==="Escape"&&(f.preventDefault(),m.current=!0,s==null||s());return}if(e.type==="question"){if(g){if(f.key==="Enter"&&!f.shiftKey){f.preventDefault(),l==null||l();return}if(f.key==="ArrowUp"){f.preventDefault(),a==null||a("up");return}if(f.key==="ArrowDown"){f.preventDefault(),a==null||a("down");return}return}const S=parseInt(f.key,10);if(S>=1&&S<=9){f.preventDefault(),S-1<u&&(o==null||o(S-1));return}switch(f.key){case"ArrowUp":f.preventDefault(),a==null||a("up");break;case"ArrowDown":f.preventDefault(),a==null||a("down");break;case" ":f.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":f.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":f.preventDefault(),i==null||i("next");break;case"Enter":f.preventDefault(),l==null||l();break}}}}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t,n,s,o,a,i,l,u,d])}function Vo(){const[e,t]=c.useState(()=>!document.hidden);return c.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
3
3
  * @license lucide-react v1.48.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
@@ -42,7 +42,7 @@ var xi=Object.defineProperty;var bi=(e,t,n)=>t in e?xi(e,t,{enumerable:!0,config
42
42
  `);/\r./.test(o);)o=o.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(a,i,l){return l+i.slice(l.length)});return o}function t(o){for(var a=0,i=0;i<o.length;i++)o[a].length<=o[i].length&&(a=i);return a}function n(o){if(!/\r/.test(o))return o;for(var a=o.split("\r"),i=[];a.length>0;){var l=t(a);i.push(a[l]),a=a.slice(l+1)}return i.join("\r")}function s(o){if(!o)return"";if(!/\r/.test(o))return o;if(!/\n/.test(o))return n(o);o=o.replace(/\r+\n/gm,`
43
43
  `);var a=o.lastIndexOf(`
44
44
  `);return e(o.slice(0,a))+`
45
- `+n(o.slice(a+1))}return xt.exports=e,xt.exports.escapeCarriageReturn=e,xt.exports.escapeCarriageReturnSafe=s,xt.exports}var Be={},fr;function mh(){if(fr)return Be;fr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Be.Any=e,Be.Cc=t,Be.Cf=n,Be.P=s,Be.S=o,Be.Z=a,Be}var En,mr;function ph(){if(mr)return En;mr=1;var e=mh();function t(y){const p={};y=y||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${y["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(y["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(y){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){y[_]=j[_]})}),y}function s(y){return Object.prototype.toString.call(y)}function o(y){return s(y)==="[object String]"}function a(y){return s(y)==="[object Object]"}function i(y){return s(y)==="[object RegExp]"}function l(y){return s(y)==="[object Function]"}function u(y){return y.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(y){return Object.keys(y||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const h={"http:":{validate:function(y,p,j){const _=y.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(y,p,j){const _=y.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&y[p-3]===":"||p>=3&&y[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(y,p,j){const _=y.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},f="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",x="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(y){return function(p,j){const _=p.slice(j);return y.test(_)?_.match(y)[0].length:0}}function S(){return function(y,p){p.normalize(y)}}function b(y){const p=y.re=t(y.__opts__),j=y.__tlds__.slice();y.onCompile(),y.__tlds_replaced__||j.push(f),j.push(p.src_xn),p.src_tlds=j.join("|");function _(T){return T.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const D=[];y.__compiled__={};function A(T,C){throw new Error(`(LinkifyIt) Invalid schema "${T}": ${C}`)}Object.keys(y.__schemas__).forEach(function(T){const C=y.__schemas__[T];if(C===null)return;const E={validate:null,link:null};if(y.__compiled__[T]=E,a(C)){i(C.validate)?E.validate=g(C.validate):l(C.validate)?E.validate=C.validate:A(T,C),l(C.normalize)?E.normalize=C.normalize:C.normalize?A(T,C):E.normalize=S();return}if(o(C)){D.push(T);return}A(T,C)}),D.forEach(function(T){y.__compiled__[y.__schemas__[T]]&&(y.__compiled__[T].validate=y.__compiled__[y.__schemas__[T]].validate,y.__compiled__[T].normalize=y.__compiled__[y.__schemas__[T]].normalize)}),y.__compiled__[""]={validate:null,normalize:S()};const N=Object.keys(y.__compiled__).filter(function(T){return T.length>0&&y.__compiled__[T]}).map(u).join("|");y.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${N})`,"i"),y.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${N})`,"ig"),y.re.schema_at_start=RegExp(`^${y.re.schema_search.source}`,"i"),y.re.pretest=RegExp(`(${y.re.schema_test.source})|(${y.re.host_fuzzy_test.source})|@`,"i")}function k(y,p,j,_){const D=y.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=D,this.text=D,this.url=D}function v(y,p){if(!(this instanceof v))return new v(y,p);p||m(y)&&(p=y,y={}),this.__opts__=n({},d,p),this.__schemas__=n({},h,y),this.__compiled__={},this.__tlds__=x,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],D=[],A=[];let N,T,C;function E(M,F){return M?F?M.index!==F.index?M.index<F.index?M:F:M.lastIndex>=F.lastIndex?M:F:M:F}if(!p.length)return null;if(this.re.schema_test.test(p))for(C=this.re.schema_search,C.lastIndex=0;(N=C.exec(p))!==null;)T=this.testSchemaAt(p,N[2],C.lastIndex),T&&_.push({schema:N[2],index:N.index+N[1].length,lastIndex:N.index+N[0].length+T});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(C=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,C.lastIndex=0;(N=C.exec(p))!==null;)D.push({schema:"",index:N.index+N[1].length,lastIndex:N.index+N[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(C=this.re.email_fuzzy_global,C.lastIndex=0;(N=C.exec(p))!==null;)A.push({schema:"mailto:",index:N.index+N[1].length,lastIndex:N.index+N[0].length});const w=[0,0,0];let R=0;for(;;){const M=[_[w[0]],A[w[1]],D[w[2]]],F=E(E(M[0],M[1]),M[2]);if(!F)break;if(F===M[0]?w[0]++:F===M[1]?w[1]++:w[2]++,F.index<R)continue;const I=new k(p,F.schema,F.index,F.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),R=F.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const D=new k(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[D.schema].normalize(D,this),D},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,D,A){return _!==A[D-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},En=v,En}var pr;function hh(){if(pr)return Te;pr=1;var e=Te&&Te.__createBinding||(Object.create?(function(b,k,v,y){y===void 0&&(y=v);var p=Object.getOwnPropertyDescriptor(k,v);(!p||("get"in p?!k.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return k[v]}}),Object.defineProperty(b,y,p)}):(function(b,k,v,y){y===void 0&&(y=v),b[y]=k[v]})),t=Te&&Te.__setModuleDefault||(Object.create?(function(b,k){Object.defineProperty(b,"default",{enumerable:!0,value:k})}):function(b,k){b.default=k}),n=Te&&Te.__importStar||(function(){var b=function(k){return b=Object.getOwnPropertyNames||function(v){var y=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(y[y.length]=p);return y},b(k)};return function(k){if(k&&k.__esModule)return k;var v={};if(k!=null)for(var y=b(k),p=0;p<y.length;p++)y[p]!=="default"&&e(v,k,y[p]);return t(v,k),v}})(),s=Te&&Te.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=g;const o=s(dh()),a=fh(),i=s(ph()),l=n(Fl());function u(b,k=!1){return b=(0,a.escapeCarriageReturn)(S(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:k})}function d(b){let k="";return b.bg&&(k+=`${b.bg}-bg `),b.fg&&(k+=`${b.fg}-fg `),b.decoration&&(k+=`ansi-${b.decoration} `),k===""?null:(k=k.substring(0,k.length-1),k)}function m(b){const k={};switch(b.bg&&(k.backgroundColor=`rgb(${b.bg})`),b.fg&&(k.color=`rgb(${b.fg})`),b.decoration){case"bold":k.fontWeight="bold";break;case"dim":k.opacity="0.5";break;case"italic":k.fontStyle="italic";break;case"hidden":k.visibility="hidden";break;case"strikethrough":k.textDecoration="line-through";break;case"underline":k.textDecoration="underline";break;case"blink":k.textDecoration="blink";break}return k}function h(b,k,v,y){const p=k?null:m(v),j=k?d(v):null;return b?b==="fuzzy"?x(v,y,p,j):f(v,y,p,j):l.createElement("span",{style:p,key:y,className:j},v.content)}function f(b,k,v,y){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,D;for(;(D=j.exec(b.content))!==null;){const[,A,N]=D,T=D.index+A.length;T>_&&p.push(b.content.substring(_,T));const C=N.startsWith("www.")?`http://${N}`:N;p.push(l.createElement("a",{key:_,href:C,target:"_blank"},`${N}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:k,className:y},p)}function x(b,k,v,y){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:k,className:y},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:k,className:y},b.content);const D=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((A,N)=>{var T;D.push(l.createElement("a",{href:A.url,target:"_blank",key:N},b.content.substring(A.index,A.lastIndex))),_[N+1]&&D.push(b.content.substring(_[N].lastIndex,(T=_[N+1])===null||T===void 0?void 0:T.index))}),_[_.length-1].lastIndex!==b.content.length&&D.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:k,className:y},D)}function g(b){const{className:k,useClasses:v,children:y,linkify:p}=b;return l.createElement("code",{className:k},u(y??"",v??!1).map(h.bind(null,p??!1,v??!1)))}function S(b){let k=b;do b=k,k=b.replace(/[^\n]\x08/gm,"");while(k.length<b.length);return b}return Te}var gh=hh();const xh=Rl(gh),bh=c.lazy(()=>Ml(()=>import("./index-DvpWMPrj.js"),__vite__mapDeps([0,1,2]))),yh={...ih,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},hr=5120;function kh(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Dn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>hr,u=l&&!a?t.slice(0,hr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function vh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(bh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=kh(n);if(i)return r.jsx(vh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=Gd(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Dn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(uh,{data:i,style:yh,shouldExpandNode:ch})})}return a==="ansi"?r.jsx(Dn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(xh,{children:e})})}):r.jsx(Dn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function Ch(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function Sh(e){const t=Ch(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function jh({label:e}){const{open:t}=bo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function _h({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=ed(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=td(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(lt,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(oe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(Le,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(oe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(yo,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(oe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]}),r.jsx(jh,{label:"Use an API key instead"})]})}function gr({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(Ju,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=bo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(oe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(yo,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(oe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]})}function wh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!zo(),l=ko(),u=ce(f=>f.setRetryAccount),d=At(e).label,m=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ct,sessionId:t}),n())}}),h=f=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),f]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[m,h(a),r.jsx(Zu,{ollama:Ol(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:h(m)})]})}function Nh({sessionId:e,onRetry:t,onSigninComplete:n}){var h;const{sessions:s,isLoading:o}=ts(),a=zo(),i=(h=s.find(f=>f.id===e))==null?void 0:h.runtime,l=Xu(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(gr,{onRetry:t});if(o)return null;const m=a?!i||!Il(i)?r.jsx(Ma,{onRetry:t}):r.jsx(_h,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(gr,{onRetry:t});return d&&i&&u?r.jsx(wh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:m}):m}function Eh({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Nh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Dh="credits_unavailable",Th="folder-sign-in";function Ah({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=ce(g=>g.setRetryAccount),a=$l(),i=ko(),l=vo(),u=sn(t),d=tn(u??null);if(!e)return null;const m=Fh(d),h=n?`your ${n}`:"your own",f=()=>{if(d!==void 0){if(m==="pick-for-send"){t&&o({id:Ct,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>m==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},x=()=>{t&&a.mutate(t,{onSuccess:({launch:g})=>{g!=null&&g.ok&&o({id:g.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(oe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]}),t&&r.jsx(oe,{size:"sm",variant:"outline",onClick:f,disabled:d===void 0||i.isPending,children:m==="new-conversation"?`Start a new chat on ${h} sign-in`:`Use ${h} sign-in`}),t&&s===Th&&r.jsx(oe,{size:"sm",variant:"outline",onClick:x,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&m==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",h," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Fh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Rh({category:e,onChooseModel:t}){return t?r.jsxs(oe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(Co,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Mh="your agent",Oh="agent",xr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ih=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function $h(e){return`Sign in to ${e??Mh} again`}function Ph(e){return`Your ${e??Oh} login stopped working. Sign in again to continue.`}const Lh="rate_limit";function on(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===So&&o?r.jsx(sa,{agentId:o}):t===Lh&&s?r.jsx(Cm,{sessionId:s,at:n??"",fallback:r.jsx(br,{...e})}):r.jsx(br,{...e})}function br({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:m,reason:h}){const[f,x]=c.useState(!1),g=m===Dh,S=c.useMemo(()=>Sh(e),[e]),b=(S==null?void 0:S.category)??t,k=(S==null?void 0:S.message)??e,v=S?n!=null&&n.includes(S.details??"")?n:[n,S.details].filter(Boolean).join(`
45
+ `+n(o.slice(a+1))}return xt.exports=e,xt.exports.escapeCarriageReturn=e,xt.exports.escapeCarriageReturnSafe=s,xt.exports}var Be={},fr;function mh(){if(fr)return Be;fr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Be.Any=e,Be.Cc=t,Be.Cf=n,Be.P=s,Be.S=o,Be.Z=a,Be}var En,mr;function ph(){if(mr)return En;mr=1;var e=mh();function t(y){const p={};y=y||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${y["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(y["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(y){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){y[_]=j[_]})}),y}function s(y){return Object.prototype.toString.call(y)}function o(y){return s(y)==="[object String]"}function a(y){return s(y)==="[object Object]"}function i(y){return s(y)==="[object RegExp]"}function l(y){return s(y)==="[object Function]"}function u(y){return y.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function m(y){return Object.keys(y||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const h={"http:":{validate:function(y,p,j){const _=y.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(y,p,j){const _=y.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&y[p-3]===":"||p>=3&&y[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(y,p,j){const _=y.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},f="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",x="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(y){return function(p,j){const _=p.slice(j);return y.test(_)?_.match(y)[0].length:0}}function S(){return function(y,p){p.normalize(y)}}function b(y){const p=y.re=t(y.__opts__),j=y.__tlds__.slice();y.onCompile(),y.__tlds_replaced__||j.push(f),j.push(p.src_xn),p.src_tlds=j.join("|");function _(T){return T.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const D=[];y.__compiled__={};function A(T,C){throw new Error(`(LinkifyIt) Invalid schema "${T}": ${C}`)}Object.keys(y.__schemas__).forEach(function(T){const C=y.__schemas__[T];if(C===null)return;const E={validate:null,link:null};if(y.__compiled__[T]=E,a(C)){i(C.validate)?E.validate=g(C.validate):l(C.validate)?E.validate=C.validate:A(T,C),l(C.normalize)?E.normalize=C.normalize:C.normalize?A(T,C):E.normalize=S();return}if(o(C)){D.push(T);return}A(T,C)}),D.forEach(function(T){y.__compiled__[y.__schemas__[T]]&&(y.__compiled__[T].validate=y.__compiled__[y.__schemas__[T]].validate,y.__compiled__[T].normalize=y.__compiled__[y.__schemas__[T]].normalize)}),y.__compiled__[""]={validate:null,normalize:S()};const N=Object.keys(y.__compiled__).filter(function(T){return T.length>0&&y.__compiled__[T]}).map(u).join("|");y.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${N})`,"i"),y.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${N})`,"ig"),y.re.schema_at_start=RegExp(`^${y.re.schema_search.source}`,"i"),y.re.pretest=RegExp(`(${y.re.schema_test.source})|(${y.re.host_fuzzy_test.source})|@`,"i")}function k(y,p,j,_){const D=y.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=D,this.text=D,this.url=D}function v(y,p){if(!(this instanceof v))return new v(y,p);p||m(y)&&(p=y,y={}),this.__opts__=n({},d,p),this.__schemas__=n({},h,y),this.__compiled__={},this.__tlds__=x,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],D=[],A=[];let N,T,C;function E(M,F){return M?F?M.index!==F.index?M.index<F.index?M:F:M.lastIndex>=F.lastIndex?M:F:M:F}if(!p.length)return null;if(this.re.schema_test.test(p))for(C=this.re.schema_search,C.lastIndex=0;(N=C.exec(p))!==null;)T=this.testSchemaAt(p,N[2],C.lastIndex),T&&_.push({schema:N[2],index:N.index+N[1].length,lastIndex:N.index+N[0].length+T});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(C=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,C.lastIndex=0;(N=C.exec(p))!==null;)D.push({schema:"",index:N.index+N[1].length,lastIndex:N.index+N[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(C=this.re.email_fuzzy_global,C.lastIndex=0;(N=C.exec(p))!==null;)A.push({schema:"mailto:",index:N.index+N[1].length,lastIndex:N.index+N[0].length});const w=[0,0,0];let R=0;for(;;){const M=[_[w[0]],A[w[1]],D[w[2]]],F=E(E(M[0],M[1]),M[2]);if(!F)break;if(F===M[0]?w[0]++:F===M[1]?w[1]++:w[2]++,F.index<R)continue;const I=new k(p,F.schema,F.index,F.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),R=F.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const D=new k(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[D.schema].normalize(D,this),D},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,D,A){return _!==A[D-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},En=v,En}var pr;function hh(){if(pr)return Te;pr=1;var e=Te&&Te.__createBinding||(Object.create?(function(b,k,v,y){y===void 0&&(y=v);var p=Object.getOwnPropertyDescriptor(k,v);(!p||("get"in p?!k.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return k[v]}}),Object.defineProperty(b,y,p)}):(function(b,k,v,y){y===void 0&&(y=v),b[y]=k[v]})),t=Te&&Te.__setModuleDefault||(Object.create?(function(b,k){Object.defineProperty(b,"default",{enumerable:!0,value:k})}):function(b,k){b.default=k}),n=Te&&Te.__importStar||(function(){var b=function(k){return b=Object.getOwnPropertyNames||function(v){var y=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(y[y.length]=p);return y},b(k)};return function(k){if(k&&k.__esModule)return k;var v={};if(k!=null)for(var y=b(k),p=0;p<y.length;p++)y[p]!=="default"&&e(v,k,y[p]);return t(v,k),v}})(),s=Te&&Te.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=g;const o=s(dh()),a=fh(),i=s(ph()),l=n(Fl());function u(b,k=!1){return b=(0,a.escapeCarriageReturn)(S(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:k})}function d(b){let k="";return b.bg&&(k+=`${b.bg}-bg `),b.fg&&(k+=`${b.fg}-fg `),b.decoration&&(k+=`ansi-${b.decoration} `),k===""?null:(k=k.substring(0,k.length-1),k)}function m(b){const k={};switch(b.bg&&(k.backgroundColor=`rgb(${b.bg})`),b.fg&&(k.color=`rgb(${b.fg})`),b.decoration){case"bold":k.fontWeight="bold";break;case"dim":k.opacity="0.5";break;case"italic":k.fontStyle="italic";break;case"hidden":k.visibility="hidden";break;case"strikethrough":k.textDecoration="line-through";break;case"underline":k.textDecoration="underline";break;case"blink":k.textDecoration="blink";break}return k}function h(b,k,v,y){const p=k?null:m(v),j=k?d(v):null;return b?b==="fuzzy"?x(v,y,p,j):f(v,y,p,j):l.createElement("span",{style:p,key:y,className:j},v.content)}function f(b,k,v,y){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,D;for(;(D=j.exec(b.content))!==null;){const[,A,N]=D,T=D.index+A.length;T>_&&p.push(b.content.substring(_,T));const C=N.startsWith("www.")?`http://${N}`:N;p.push(l.createElement("a",{key:_,href:C,target:"_blank"},`${N}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:k,className:y},p)}function x(b,k,v,y){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:k,className:y},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:k,className:y},b.content);const D=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((A,N)=>{var T;D.push(l.createElement("a",{href:A.url,target:"_blank",key:N},b.content.substring(A.index,A.lastIndex))),_[N+1]&&D.push(b.content.substring(_[N].lastIndex,(T=_[N+1])===null||T===void 0?void 0:T.index))}),_[_.length-1].lastIndex!==b.content.length&&D.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:k,className:y},D)}function g(b){const{className:k,useClasses:v,children:y,linkify:p}=b;return l.createElement("code",{className:k},u(y??"",v??!1).map(h.bind(null,p??!1,v??!1)))}function S(b){let k=b;do b=k,k=b.replace(/[^\n]\x08/gm,"");while(k.length<b.length);return b}return Te}var gh=hh();const xh=Rl(gh),bh=c.lazy(()=>Ml(()=>import("./index-CF73kwtO.js"),__vite__mapDeps([0,1,2]))),yh={...ih,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},hr=5120;function kh(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Dn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>hr,u=l&&!a?t.slice(0,hr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function vh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(bh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=kh(n);if(i)return r.jsx(vh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=Gd(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Dn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(uh,{data:i,style:yh,shouldExpandNode:ch})})}return a==="ansi"?r.jsx(Dn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(xh,{children:e})})}):r.jsx(Dn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function Ch(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function Sh(e){const t=Ch(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function jh({label:e}){const{open:t}=bo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function _h({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=ed(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=td(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(lt,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(oe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(Le,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(oe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(yo,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(oe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]}),r.jsx(jh,{label:"Use an API key instead"})]})}function gr({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(Ju,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=bo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(oe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(yo,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(oe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]})}function wh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!zo(),l=ko(),u=ce(f=>f.setRetryAccount),d=At(e).label,m=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ct,sessionId:t}),n())}}),h=f=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),f]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[m,h(a),r.jsx(Zu,{ollama:Ol(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:h(m)})]})}function Nh({sessionId:e,onRetry:t,onSigninComplete:n}){var h;const{sessions:s,isLoading:o}=ts(),a=zo(),i=(h=s.find(f=>f.id===e))==null?void 0:h.runtime,l=Xu(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(gr,{onRetry:t});if(o)return null;const m=a?!i||!Il(i)?r.jsx(Ma,{onRetry:t}):r.jsx(_h,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(gr,{onRetry:t});return d&&i&&u?r.jsx(wh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:m}):m}function Eh({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Nh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Dh="credits_unavailable",Th="folder-sign-in";function Ah({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=ce(g=>g.setRetryAccount),a=$l(),i=ko(),l=vo(),u=sn(t),d=tn(u??null);if(!e)return null;const m=Fh(d),h=n?`your ${n}`:"your own",f=()=>{if(d!==void 0){if(m==="pick-for-send"){t&&o({id:Ct,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>m==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},x=()=>{t&&a.mutate(t,{onSuccess:({launch:g})=>{g!=null&&g.ok&&o({id:g.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(oe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]}),t&&r.jsx(oe,{size:"sm",variant:"outline",onClick:f,disabled:d===void 0||i.isPending,children:m==="new-conversation"?`Start a new chat on ${h} sign-in`:`Use ${h} sign-in`}),t&&s===Th&&r.jsx(oe,{size:"sm",variant:"outline",onClick:x,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&m==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",h," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Fh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Rh({category:e,onChooseModel:t}){return t?r.jsxs(oe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(Co,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Mh="your agent",Oh="agent",xr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ih=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function $h(e){return`Sign in to ${e??Mh} again`}function Ph(e){return`Your ${e??Oh} login stopped working. Sign in again to continue.`}const Lh="rate_limit";function on(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===So&&o?r.jsx(sa,{agentId:o}):t===Lh&&s?r.jsx(Cm,{sessionId:s,at:n??"",fallback:r.jsx(br,{...e})}):r.jsx(br,{...e})}function br({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:m,reason:h}){const[f,x]=c.useState(!1),g=m===Dh,S=c.useMemo(()=>Sh(e),[e]),b=(S==null?void 0:S.category)??t,k=(S==null?void 0:S.message)??e,v=S?n!=null&&n.includes(S.details??"")?n:[n,S.details].filter(Boolean).join(`
46
46
  `):n,y=b==="auth_error",p=b?xr[b]??xr.execution_error:null,j=y?$h(i):b==="runtime_update_required"&&i?`${i} update required`:p==null?void 0:p.heading,_=y?Ph(i):p==null?void 0:p.subtext,D=g?"Couldn’t reach DorkOS credits":S?j??"Error":o??j??"Error",A=k.trim(),N=b!==void 0&&Ih.has(b),T=g?A:(S&&(a==null?void 0:a.trim())===e.trim()?void 0:a)??(N?_:A||_)??A,C=T.trim(),E=c.useMemo(()=>Pl(A),[A]),w=!A||A===C||A===D,R=!w&&(!N||E)?A:null,M=w||R!==null||v!=null&&v.includes(A)?v:[v,A].filter(Boolean).join(`
47
47
  `),F=(p==null?void 0:p.retryable)??!!s;return r.jsx("div",{"data-testid":"error-message-block",className:H("my-2 rounded-lg border px-4 py-3","border-destructive/30 bg-destructive/5 text-foreground"),children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(fs,{className:"text-destructive mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm font-medium",children:D}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(pn,{text:T})}),R&&r.jsx("p",{className:"text-muted-foreground mt-1 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(pn,{text:R})}),M&&r.jsxs("button",{type:"button",onClick:()=>x(!f),className:"text-muted-foreground hover:text-foreground mt-2 flex items-center gap-1 text-xs","aria-expanded":f,children:[r.jsx(K.div,{animate:{rotate:f?0:-90},transition:{type:"spring",stiffness:400,damping:30},children:r.jsx(Tt,{className:"size-3"})}),"Details"]}),r.jsx(fe,{initial:!1,children:f&&M&&r.jsx(K.div,{variants:He,initial:"initial",animate:"animate",exit:"exit",transition:Ue,className:"overflow-hidden",children:r.jsx("pre",{className:"bg-muted/50 mt-1 max-h-40 overflow-auto rounded p-2 text-xs whitespace-pre-wrap",children:r.jsx(pn,{text:M})})})}),g&&r.jsx(Ah,{onRetry:s,sessionId:l,runtimeLabel:i,reason:h}),y&&r.jsx(Eh,{sessionId:l,onRetry:s,onSigninComplete:u}),(b==="model_unavailable"||b==="runtime_update_required")&&r.jsx(Rh,{category:b,onChooseModel:d})]}),!y&&!g&&F&&s&&r.jsxs(oe,{variant:"outline",size:"sm",onClick:s,className:"shrink-0 gap-1.5",children:[r.jsx(jt,{className:"size-3"}),"Retry"]})]})})}const zh=8;function Bh({toolName:e,reasonType:t,reason:n,message:s,agentId:o}){const a=n||s,i=t==="classifier",l=t==="asyncAgent",u=o!==void 0?`Helper ${o.slice(0,zh)}`:l?"A background helper":null,m=u!==null?`${u} was blocked from using ${e}${i?" by auto mode":""}: ${a}`:i?`Blocked by auto mode: ${a}`:`Blocked: ${a}`;return r.jsxs("div",{"data-testid":"permission-denied-chip","data-reason-type":t,"data-agent-id":o,className:H("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-amber-500/30 bg-amber-500/5"),children:[r.jsx(id,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-amber-600 dark:text-amber-500"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:m}),l?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Background helpers can’t ask for approval, so this was blocked."}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Do it yourself, or ask the agent to run it in the foreground."})]}):null,r.jsx("p",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:e})]})]})}const qh=50;function Uh(e){return e.type==="tool_call"&&e.interactiveType==="approval"&&e.approvalOutcome!==void 0}function Hh(e,t){return e.approvalOutcome!==t.approvalOutcome||(e.approvalReasonGiven??!1)!==(t.approvalReasonGiven??!1)||e.approvalResolvedAt===void 0||t.approvalResolvedAt===void 0?!1:Math.abs(e.approvalResolvedAt-t.approvalResolvedAt)<=qh}function Wh(e){const t=new Map;let n=null;for(let s=0;s<e.length;s++){const o=e[s];if(!Uh(o)){n=null;continue}if(n&&Hh(n.part,o)){n.group.indices.push(s),t.set(s,n.group);continue}const a={leadIndex:s,indices:[s],outcome:o.approvalOutcome,reasonGiven:o.approvalReasonGiven??!1};t.set(s,a),n={group:a,part:o}}return t}function Vh(e){return e.questionOutcome!==void 0?e.questionOutcome==="answered":e.status!=="pending"}function Gh(e){return e.status==="pending"?void 0:e.questionOutcome}function Kh({message:e}){return r.jsx(Ge,{"data-testid":"unreadable-entry-note",icon:r.jsx(Ll,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsx("span",{className:"text-muted-foreground",children:e})})}function Qh({title:e}){return r.jsxs("div",{"data-testid":"capability-approval-timed-out",className:H("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[r.jsx(yt,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:"The agent stopped waiting for your answer."}),r.jsxs("p",{className:"text-muted-foreground mt-0.5 text-xs",children:["“",e,"” is still in Approvals. Answer it, then ask the agent to retry."]})]})]})}function Kn({testId:e,icon:t,children:n}){return r.jsxs("div",{"data-testid":e,className:H("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[t,r.jsx("div",{className:"min-w-0 flex-1",children:n})]})}function Yh({part:e}){return e.outcome==="failed"?r.jsx(Kn,{testId:"mcp-signin-failed",icon:r.jsx(fs,{"aria-hidden":"true",className:"text-status-warning-dot mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Sign-in to “",e.serverName,"” didn’t finish. Ask your agent to retry."]})}):r.jsx(Kn,{testId:"mcp-signin-receipt",icon:r.jsx(jo,{"aria-hidden":"true",className:"text-status-success mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Connected to ",e.serverName,e.toolCount===void 0?"":` · ${e.toolCount} tool${e.toolCount===1?"":"s"}`,"."]})})}function Xh({part:e}){const t=ld(e.agentId,e.serverName),{adopt:n}=t,s=e.outcome!==void 0;return c.useEffect(()=>{s||n({flowId:e.flowId,authorizeUrl:e.authorizeUrl,disclosure:e.disclosure})},[s,n,e.flowId,e.authorizeUrl,e.disclosure]),e.outcome!==void 0?r.jsx(Yh,{part:e}):r.jsxs(Kn,{testId:"mcp-signin-card",icon:r.jsx(ud,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),children:[r.jsxs("p",{className:"text-sm",children:["Sign in to ",e.serverName]}),r.jsx(cd,{flow:t,serverName:e.serverName,failedActions:r.jsx(oe,{variant:"secondary",size:"sm",onClick:()=>t.start(),className:"focus-visible:ring-2",children:"Try again"})})]})}function Jh({fromName:e,toName:t}){return r.jsx(Ge,{"data-testid":"model-substituted-row",icon:r.jsx(Co,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsxs("span",{className:"text-muted-foreground",children:["DorkOS credits don’t cover ",e,", so this ran on ",t,". Switch in the model menu."]})})}const Zh={running:r.jsx(Le,{size:"xs",className:"text-muted-foreground"}),success:r.jsx(lt,{className:"text-muted-foreground size-(--size-icon-xs)"}),error:r.jsx(qe,{className:"text-destructive size-(--size-icon-xs)"}),cancelled:r.jsx(qe,{className:"text-muted-foreground size-(--size-icon-xs)"})};function eg({hook:e}){const t=!!(e.stdout||e.stderr),[n,s]=c.useState(e.status==="error"),o=e.stderr||e.stdout;return r.jsxs("div",{children:[r.jsxs("button",{onClick:()=>t&&s(a=>!a),className:H("flex w-full items-center gap-1.5 py-0.5",!t&&"cursor-default"),"aria-expanded":t?n:void 0,disabled:!t,children:[Zh[e.status],r.jsx("span",{className:H("text-3xs font-mono",e.status==="error"?"text-destructive":"text-muted-foreground"),children:e.hookName}),e.status==="error"&&r.jsx("span",{className:"text-3xs text-destructive",children:"Error"}),e.exitCode!==void 0&&r.jsxs("span",{className:"text-3xs text-muted-foreground ml-auto",children:["exit ",e.exitCode]})]}),r.jsx(fe,{initial:!1,children:n&&t&&o&&r.jsx(K.div,{variants:He,initial:"initial",animate:"animate",exit:"exit",transition:Ue,className:"overflow-hidden",children:r.jsx("pre",{className:"text-muted-foreground max-h-32 overflow-y-auto py-1 text-xs whitespace-pre-wrap",children:o})})})]})}function tg({toolCall:e,defaultExpanded:t=!1}){const[n,s]=c.useState(t),o=!!e.progressOutput;c.useEffect(()=>{o&&!n&&s(!0)},[o]);const a=e.hooks&&e.hooks.length>0?r.jsx("div",{className:"border-border/50 space-y-0.5 border-t px-3 py-1",children:e.hooks.map(u=>r.jsx(eg,{hook:u},u.hookId))}):void 0,i=e.startedAt&&e.completedAt?e.completedAt-e.startedAt:void 0,l=io(e.toolName);return r.jsxs(Rt,{expanded:n,onToggle:()=>s(!n),dimmed:e.status==="complete",extraContent:a,"data-testid":"tool-call-card","data-tool-name":e.toolName,"data-status":e.status,header:r.jsxs(r.Fragment,{children:[ya(e.status),l&&r.jsx("span",{className:"bg-muted text-muted-foreground text-3xs rounded px-1 py-0.5 font-medium",children:l}),r.jsx("span",{className:"text-3xs flex-1 text-left font-mono",children:ut(e.toolName,e.input)}),i!==void 0&&r.jsx("span",{className:"text-muted-foreground text-3xs tabular-nums",children:dd(i)})]}),children:[e.status==="running"&&!e.input?r.jsxs("div",{className:"text-muted-foreground flex items-center gap-1.5 py-1 text-xs",children:[r.jsx(Le,{size:"xs"}),r.jsx("span",{children:"Preparing…"})]}):e.input!==void 0&&e.input!==""?r.jsx(ta,{toolName:e.toolName,input:e.input,isStreaming:e.status==="running"}):null,e.progressOutput&&!e.result&&r.jsx(lo,{content:e.progressOutput,className:"mt-2 border-t pt-2"}),e.result&&r.jsx("div",{className:"mt-2 border-t pt-2",children:r.jsx(Fa,{content:e.result,toolName:e.toolName,input:e.input})})]})}function ng(e){if(e.startsWith("mcp__"))return e.split("__")[1]||void 0}function Oa(e,t,n){const s=c.useRef(e),[o,a]=c.useState(!(t&&s.current==="complete"));return c.useEffect(()=>{if(t&&e==="complete"&&s.current!=="complete"&&!n){const i=setTimeout(()=>a(!1),en.TOOL_CALL_AUTO_HIDE_MS);return()=>clearTimeout(i)}},[e,t,n]),!t||n?!0:o}function sg({part:e,autoHide:t,expandToolCalls:n}){var a;const s=((a=e.hooks)==null?void 0:a.some(i=>i.status==="error"))??!1,o=Oa(e.status,t,s);return r.jsx(fe,{children:o&&r.jsx(K.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(tg,{toolCall:{toolCallId:e.toolCallId,toolName:e.toolName,input:e.input||"",result:e.result,progressOutput:e.progressOutput,status:e.status,hooks:e.hooks,startedAt:e.startedAt,completedAt:e.completedAt},defaultExpanded:n})},e.toolCallId)})}function Tn({part:e,sessionId:t,autoHide:n,expandToolCalls:s}){const o=e.ui?ng(e.toolName):void 0,a=r.jsx(sg,{part:e,autoHide:n,expandToolCalls:s});return!e.ui||e.status!=="complete"||!o?a:r.jsxs("div",{className:"flex flex-col gap-2",children:[a,r.jsx(_f,{sessionId:t,serverName:o,uri:e.ui.resourceUri})]})}function rg({part:e,autoHide:t,index:n}){const s=e.isStreaming?"running":"complete",o=Oa(s,t,!1);return r.jsx(fe,{children:o&&r.jsx(K.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(Pp,{text:e.text,isStreaming:e.isStreaming??!1,elapsedMs:e.elapsedMs})},`thinking-${n}`)})}const og=4,yr=2;function ag({children:e}){const[t,n]=c.useState(!1);if(e.length<=og||t)return r.jsx(r.Fragment,{children:e});const s=e.length-yr;return r.jsxs(r.Fragment,{children:[e.slice(0,yr),r.jsx(Rt,{expanded:!1,onToggle:()=>n(!0),ariaLabel:`Show ${s} more steps`,className:"border-l-muted-foreground/15",header:r.jsxs("span",{className:"text-3xs text-muted-foreground font-mono",children:["and ",s," more steps…"]}),children:r.jsx(r.Fragment,{})})]})}const ig=/\|\||&&|;|\|/,lg=/<<|>/,kr=60;function cg(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Ie(e,t){const n=e[t];return typeof n=="string"&&n.length>0?n:void 0}function ug(e,t){const n=e.split(`
48
48
  `),s=t.split(`