decocms 4.385.0 → 4.386.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 (349) hide show
  1. package/dist/client/assets/{AlertCircle-DH2lw5dl.js → AlertCircle-Cwl0Vup2.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DtVoiRvF.js → AreaChart-B4QXNZyj.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B1xVCNCj.js → ArrowLeft-BS1ddrpm.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-DTgQrVQL.js → ArrowRight-CCNkzW9Y.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BaG4Z2PX.js → ArrowUp-rfVFZ40K.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CWEAR5gD.js → CartesianChart-CDsQOuRz.js} +1 -1
  7. package/dist/client/assets/{Check-n2s3oQPA.js → Check-Chl3DDqT.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BKtapvSB.js → CheckCircle-5QB6sfVV.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Dn4qDwuF.js → ChevronUp-BuAMP7GQ.js} +1 -1
  10. package/dist/client/assets/{Copy01-TOTRJp0v.js → Copy01-BwsqBYnE.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-DBrRzFpv.js → CreditCard01-BPHmR5OY.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-D5OZPED4.js → DotsVertical-Bv4-YScE.js} +1 -1
  13. package/dist/client/assets/{Download01-BcX9OtGe.js → Download01-DyVswBhh.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-DsST4iCp.js → ErrorBarContext-L3hqxsjo.js} +1 -1
  15. package/dist/client/assets/{Eye-CRgbpXwm.js → Eye-BGOdKOA7.js} +1 -1
  16. package/dist/client/assets/{Globe04-BC-77atS.js → Globe04-BkqSUJiA.js} +1 -1
  17. package/dist/client/assets/{Image01-ciXnDKCW.js → Image01-DXUl1blo.js} +1 -1
  18. package/dist/client/assets/{Key01-B66GpQfK.js → Key01-CTlB38YG.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-BHw5lVXR.js → LayoutLeft-BIWXERKW.js} +1 -1
  20. package/dist/client/assets/{Line-DD3Yqtl9.js → Line-zqIQ0PvH.js} +1 -1
  21. package/dist/client/assets/{Link01-C-2vKCHa.js → Link01-7UJLIg0N.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-D3lqFyPy.js → LinkExternal01-DsBKvM3k.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DE6CWqFd.js → Monitor01-D3pXjo5b.js} +1 -1
  24. package/dist/client/assets/{Package-C_VoKlDc.js → Package-ImRUZcy3.js} +1 -1
  25. package/dist/client/assets/{Palette-D4fQxVbj.js → Palette-B0nQwQuz.js} +1 -1
  26. package/dist/client/assets/{Plus-tNGOLWnu.js → Plus-DxM0fEC4.js} +1 -1
  27. package/dist/client/assets/{SearchLg-D_XECWKC.js → SearchLg-DCjPeF5h.js} +1 -1
  28. package/dist/client/assets/{SearchMd-SaWfMl2E.js → SearchMd-tkECPV7l.js} +1 -1
  29. package/dist/client/assets/{Sector-JPxukctn.js → Sector-BqmE_gpQ.js} +1 -1
  30. package/dist/client/assets/{Share07-DUM8HDz5.js → Share07-fkd7xmY6.js} +1 -1
  31. package/dist/client/assets/{Stars01-eQtDXwcg.js → Stars01-BoztdLAd.js} +1 -1
  32. package/dist/client/assets/{Sun-BkbXJIwK.js → Sun-CTx2w4hs.js} +1 -1
  33. package/dist/client/assets/{Tool01-O3QS0Upe.js → Tool01-DUJdCnDK.js} +1 -1
  34. package/dist/client/assets/{Trash01-D4CNvDEa.js → Trash01-B-_Oqcf7.js} +1 -1
  35. package/dist/client/assets/{Upload01-BlLNj5y4.js → Upload01-alz3omvs.js} +1 -1
  36. package/dist/client/assets/{User01-DIn8OmU1.js → User01-DwcV_kyF.js} +1 -1
  37. package/dist/client/assets/{UserSquare-aCnYY5vK.js → UserSquare-CsgvAwaQ.js} +1 -1
  38. package/dist/client/assets/{Users01-CdvCFvf1.js → Users01-DAeXmo2u.js} +1 -1
  39. package/dist/client/assets/{X-DbiRP14Q.js → X-BEAR-IcH.js} +1 -1
  40. package/dist/client/assets/{XCircle-D-XpkSz0.js → XCircle-BBqXvE8C.js} +1 -1
  41. package/dist/client/assets/{XClose-BBd4kqxu.js → XClose-Ca9S5aZc.js} +1 -1
  42. package/dist/client/assets/{Zap-dyClsvaS.js → Zap-thqSL15H.js} +1 -1
  43. package/dist/client/assets/{ZoomOut-CL9Otcbh.js → ZoomOut-DnIqLBGF.js} +1 -1
  44. package/dist/client/assets/{access-gate-B2v8iIju.js → access-gate-5gX8wxGV.js} +1 -1
  45. package/dist/client/assets/{add-connection-dialog-Cp_W_xzn.js → add-connection-dialog-BdL2dPAr.js} +1 -1
  46. package/dist/client/assets/{agent-analytics-OI4_M96W.js → agent-analytics-BIxeEB_F.js} +1 -1
  47. package/dist/client/assets/agent-app-GfCF7MBj.js +1 -0
  48. package/dist/client/assets/{agent-assets-CRyPpu8K.js → agent-assets-DdAbXfi1.js} +1 -1
  49. package/dist/client/assets/{agent-automation-b-ZAA2UI.js → agent-automation-Bef81mY6.js} +1 -1
  50. package/dist/client/assets/{agent-automations-oSsWo5hH.js → agent-automations-1PVmd792.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-LewKQmEH.js → agent-connect-sources-BisHTH6n.js} +1 -1
  52. package/dist/client/assets/agent-deck-DbiPFNhm.js +1 -0
  53. package/dist/client/assets/{agent-e2e-BIfYq3S8.js → agent-e2e-DTfzR2qE.js} +1 -1
  54. package/dist/client/assets/{agent-experiments-CZaWuisW.js → agent-experiments-BHDRViXO.js} +1 -1
  55. package/dist/client/assets/agent-file-BW6-wgKu.js +1 -0
  56. package/dist/client/assets/{agent-git-BPhnnPIu.js → agent-git-DHxCuZd4.js} +1 -1
  57. package/dist/client/assets/{agent-hosting-aNpT7uQ4.js → agent-hosting-Ckq3R_8_.js} +1 -1
  58. package/dist/client/assets/{agent-icon-DsMxtuPs.js → agent-icon-CP0I3VVA.js} +1 -1
  59. package/dist/client/assets/agent-library-file-ByVGh_GJ.js +1 -0
  60. package/dist/client/assets/{agent-monitor-CBrJZkOw.js → agent-monitor-CYjn5ov-.js} +1 -1
  61. package/dist/client/assets/{agent-overview-D00LjxKy.js → agent-overview-CQfoY9eA.js} +1 -1
  62. package/dist/client/assets/agent-settings-alMz04MP.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-D6T_D6gE.js → agent-site-editor-CmVIWUTI.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-D_3n5lRh.js +2 -0
  65. package/dist/client/assets/{agent-site-editor-content-CR5fjeWn.js → agent-site-editor-content-q6dSRjGp.js} +2 -2
  66. package/dist/client/assets/{agent-site-editor-preview-Dtf_1Npa.js → agent-site-editor-preview-CYdEZwyJ.js} +3 -3
  67. package/dist/client/assets/agent-view-B0WlAVRK.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-79CMeGMh.js → agent-view-guard-DClgQS_E.js} +1 -1
  69. package/dist/client/assets/{agents-list-DubmiCeJ.js → agents-list-x9nDr_UM.js} +1 -1
  70. package/dist/client/assets/{ai-providers-DI3exSN0.js → ai-providers-BLLOHjvZ.js} +1 -1
  71. package/dist/client/assets/{alert-DaWyZsW8.js → alert-DWLTyUNd.js} +1 -1
  72. package/dist/client/assets/{alert-dialog-D21XY4Kh.js → alert-dialog-BCnbMjLm.js} +1 -1
  73. package/dist/client/assets/api-keys-BSvKgDby.js +1 -0
  74. package/dist/client/assets/{api-keys-BPoZWvQG.js → api-keys-C8x1m95I.js} +1 -1
  75. package/dist/client/assets/app-editor-D0xnTpyR.js +1 -0
  76. package/dist/client/assets/{asset-utils-C2CAxd4s.js → asset-utils-CxMWm-Q0.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-DZVV0SMo.js → auth-catchall-zbWwf6nX.js} +1 -1
  78. package/dist/client/assets/{auth-entry-CDfVLJW4.js → auth-entry-BnSKshlv.js} +1 -1
  79. package/dist/client/assets/{auth-B30FL8Dl.js → auth-fkwwQuGR.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-8EMSHlCM.js → auth-split-layout-DAvJosau.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-DPfhIV55.js → authenticate-and-persist-oauth-BogPKDev.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-D_Ep542X.js → automation-list-row-BHuKh4jN.js} +1 -1
  83. package/dist/client/assets/{automation-runs-BK_rDYnz.js → automation-runs-Cg4f9PTn.js} +1 -1
  84. package/dist/client/assets/{automations-Cmvbai85.js → automations-Bly1_hA4.js} +1 -1
  85. package/dist/client/assets/{autosend-DCiZpnYL.js → autosend-Du7-oKR0.js} +1 -1
  86. package/dist/client/assets/{avatar-DtsApuf_.js → avatar-DvLLRJ7_.js} +1 -1
  87. package/dist/client/assets/{badge-DIi7Tq2w.js → badge-jSVR8IKO.js} +1 -1
  88. package/dist/client/assets/{block-document-7svTTpPG.js → block-document-DDK0W4Gk.js} +1 -1
  89. package/dist/client/assets/{blocks-preview-workspace-context-BedctEwm.js → blocks-preview-workspace-context-wIvRUegF.js} +1 -1
  90. package/dist/client/assets/{breadcrumb-C5JiVY52.js → breadcrumb-BcN7LEPN.js} +1 -1
  91. package/dist/client/assets/{buckets-Bk7BcZd8.js → buckets-Cws0X-ao.js} +1 -1
  92. package/dist/client/assets/{build-improve-prompt-doc-CdF1mPbn.js → build-improve-prompt-doc-CIZv76q4.js} +1 -1
  93. package/dist/client/assets/{bulk-category-panel-CkYPffHt.js → bulk-category-panel--mTH44nT.js} +1 -1
  94. package/dist/client/assets/{calendar-pihqrn4r.js → calendar-DL1g-R6I.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-Cmcx9spT.js → capability-load-error-O16y38Ak.js} +1 -1
  96. package/dist/client/assets/{category-editor-BA0rkVMR.js → category-editor-DeXj55lm.js} +1 -1
  97. package/dist/client/assets/{chart-D44VX9BP.js → chart-XotQAjm8.js} +1 -1
  98. package/dist/client/assets/{chat-context-aPhEigBR.js → chat-context-bQBeY2t1.js} +1 -1
  99. package/dist/client/assets/{chat-draft-4HMzHsTd.js → chat-draft-Dw5lkxkv.js} +1 -1
  100. package/dist/client/assets/{checkbox-Dogqs7i6.js → checkbox-C70qRnxL.js} +1 -1
  101. package/dist/client/assets/{choose-editor-__AlDEdY.js → choose-editor-Bz0n65rr.js} +1 -1
  102. package/dist/client/assets/{cli-auth-success-ugr1nCyo.js → cli-auth-success-B6YdLpZk.js} +1 -1
  103. package/dist/client/assets/{client-icons-BDqexBpT.js → client-icons-Cz9Mab30.js} +1 -1
  104. package/dist/client/assets/{collapsible-D8iSTAH_.js → collapsible-CBOJskaw.js} +1 -1
  105. package/dist/client/assets/{collection-detail-CRarQmA3.js → collection-detail-BcWKItse.js} +1 -1
  106. package/dist/client/assets/{collection-display-button-DcHpb_oL.js → collection-display-button-D4M61Icm.js} +1 -1
  107. package/dist/client/assets/{collection-search-BNy-V_tB.js → collection-search-CKFQt3zo.js} +1 -1
  108. package/dist/client/assets/{collection-table-wrapper-CVcfw0Np.js → collection-table-wrapper-nOJd7tk7.js} +1 -1
  109. package/dist/client/assets/{collection-tabs-BqZXL6zx.js → collection-tabs-nLUzyG3L.js} +1 -1
  110. package/dist/client/assets/{combobox-D-JNGqRo.js → combobox-D4piYhGL.js} +1 -1
  111. package/dist/client/assets/{command-Bz8F763k.js → command-SQ6iukKb.js} +1 -1
  112. package/dist/client/assets/{companion-mcps-section-Bepk__5X.js → companion-mcps-section-YzjKtKLp.js} +1 -1
  113. package/dist/client/assets/{connect-B4fXe6kn.js → connect-BxPVUdhh.js} +1 -1
  114. package/dist/client/assets/{connect-layout-BgPFJw_i.js → connect-layout-CrrPleYY.js} +1 -1
  115. package/dist/client/assets/{connection-CK0XhbAM.js → connection-DdQElG6t.js} +1 -1
  116. package/dist/client/assets/{connection-card-D-JUsFAS.js → connection-card-BS_OpxON.js} +1 -1
  117. package/dist/client/assets/{connection-detail-_YkgX7Zi.js → connection-detail-DCDkcs1Y.js} +1 -1
  118. package/dist/client/assets/{connection-form-helpers-Df703i6A.js → connection-form-helpers-DZC7DBzw.js} +1 -1
  119. package/dist/client/assets/{connections-BB01I8RG.js → connections-DF9tLWxn.js} +1 -1
  120. package/dist/client/assets/{create-organization-dialog-DmyE3BcX.js → create-organization-dialog-BuDkvaJX.js} +1 -1
  121. package/dist/client/assets/{decofile-api-BeQfKyua.js → decofile-api-DyGAd2r4.js} +1 -1
  122. package/dist/client/assets/{decopilot-B8CVeRJC.js → decopilot-CYIi3WEs.js} +1 -1
  123. package/dist/client/assets/{dialog-BdtMvx6K.js → dialog-RGKICG4s.js} +1 -1
  124. package/dist/client/assets/{discover-BLXFOWCF.js → discover-DQgdsihh.js} +1 -1
  125. package/dist/client/assets/{domain-settings-BgvmbMpe.js → domain-settings-DcP3rGWU.js} +1 -1
  126. package/dist/client/assets/{download-app-dialog-DC564RLD.js → download-app-dialog-DPWfpRBg.js} +1 -1
  127. package/dist/client/assets/{drawer-CG_0cmT9.js → drawer-B4Z-ExBx.js} +1 -1
  128. package/dist/client/assets/{editor-DOuy1RZg.js → editor-Do7ruOhn.js} +1 -1
  129. package/dist/client/assets/{empty-state-DVXonEzp.js → empty-state-B7gXx_Yh.js} +1 -1
  130. package/dist/client/assets/{empty-state-B69Y96aL.js → empty-state-BmmdOg75.js} +1 -1
  131. package/dist/client/assets/{extract-connection-data-b5VGTnti.js → extract-connection-data-BZ3x_jRc.js} +1 -1
  132. package/dist/client/assets/{feature-gate-8qM3QBh4.js → feature-gate-nddpwuFB.js} +1 -1
  133. package/dist/client/assets/{feature-paywall-Ca9BQ6PR.js → feature-paywall-D-5vciMm.js} +1 -1
  134. package/dist/client/assets/{file-explorer-BfkgDKkV.js → file-explorer-CkwFRkGO.js} +2 -2
  135. package/dist/client/assets/{file-preview-DaN3V2NN.js → file-preview-DOetwKct.js} +1 -1
  136. package/dist/client/assets/{file-share-button-B12-7Qsu.js → file-share-button-D0sR8ZJX.js} +1 -1
  137. package/dist/client/assets/{file-type-icon-JPJzXzk7.js → file-type-icon-DdSZ0ia4.js} +1 -1
  138. package/dist/client/assets/{folder-icon-DSZU5vzM.js → folder-icon-CKLDN3FF.js} +1 -1
  139. package/dist/client/assets/{form-CLIutyXx.js → form-CNnZbB2s.js} +1 -1
  140. package/dist/client/assets/{gateway-client-DftcWqmb.js → gateway-client-Bn4ALbwj.js} +1 -1
  141. package/dist/client/assets/{general-F0UdOGRP.js → general-CQLFQc2y.js} +1 -1
  142. package/dist/client/assets/{github-icon-BFSDbAjJ.js → github-icon-ZhItaKRN.js} +1 -1
  143. package/dist/client/assets/{home-DMBPpp0K.js → home-BbJ11nz4.js} +1 -1
  144. package/dist/client/assets/{hooks-C-KzZKic.js → hooks-CdPo1Znu.js} +1 -1
  145. package/dist/client/assets/{hooks-1xw_MZ0J.js → hooks-DEf7SAIB.js} +1 -1
  146. package/dist/client/assets/{icon-button-BEZjj29z.js → icon-button-BBfdKkxm.js} +1 -1
  147. package/dist/client/assets/{index-B7jLNIpa.js → index-0l2SUkGD.js} +1 -1
  148. package/dist/client/assets/{index-z0K97gOw.js → index-B-yd3uye.js} +1 -1
  149. package/dist/client/assets/{index-_EFsb_Tn.js → index-B2xKtish.js} +1 -1
  150. package/dist/client/assets/{index-aYaPe2f3.js → index-BkqcEh_k.js} +1 -1
  151. package/dist/client/assets/{index-r5-6H5AW.js → index-CFyHGgGO.js} +4 -4
  152. package/dist/client/assets/{index-CRDxekvr.js → index-CJazvqGq.js} +1 -1
  153. package/dist/client/assets/{index-Mz11PO9C.js → index-CUVOFMQ0.js} +1 -1
  154. package/dist/client/assets/{index-Qqe8EVwE.js → index-CeM0-Jf1.js} +1 -1
  155. package/dist/client/assets/{index-eoJGIcAq.js → index-DVjR6OZ0.js} +1 -1
  156. package/dist/client/assets/{index-BoJi5VZX.js → index-Dbhl3fMQ.js} +1 -1
  157. package/dist/client/assets/{index-Bjjm7uST.js → index-Dk3gb-bB.js} +1 -1
  158. package/dist/client/assets/{index-BAz5scMh.js → index-DrGKKl-C.js} +1 -1
  159. package/dist/client/assets/{index-K276FEfg.js → index-Dv6121Hz.js} +1 -1
  160. package/dist/client/assets/{index-B8VWFqc6.js → index-mOfnLvd1.js} +1 -1
  161. package/dist/client/assets/{index-redirect-Cnbs4Nrk.js → index-redirect-BuCFkWnW.js} +1 -1
  162. package/dist/client/assets/{index-BZxYSJ0c.css → index-xA_kfo6T.css} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-D2okpX0O.js → infiniteQueryObserver-B4v_iRrA.js} +1 -1
  164. package/dist/client/assets/{infra-billing-DFUgfJMc.js → infra-billing-B4de5HCu.js} +1 -1
  165. package/dist/client/assets/{input-C2g1j_kV.js → input-BXe2-JP2.js} +1 -1
  166. package/dist/client/assets/{input-Zrw2SDBu.js → input-Cx-TB157.js} +1 -1
  167. package/dist/client/assets/{input-CFfUiNZ7.js → input-DWLaMaA_.js} +1 -1
  168. package/dist/client/assets/{integration-icon-CceXxFa_.js → integration-icon-DRK9pjva.js} +1 -1
  169. package/dist/client/assets/{label-CjNgDGiH.js → label-BKtkcOfE.js} +1 -1
  170. package/dist/client/assets/{last-preview-page-Bolgbh1C.js → last-preview-page-Bg8E-AYl.js} +1 -1
  171. package/dist/client/assets/{layout-NnZj3dpp.js → layout-DZRZAwg6.js} +1 -1
  172. package/dist/client/assets/{legacy-agents-deep-oTDn-uBS.js → legacy-agents-deep-BdEkG-e3.js} +1 -1
  173. package/dist/client/assets/{legacy-main-redirect-Cr3YUpIQ.js → legacy-main-redirect-C-Ov90Nk.js} +1 -1
  174. package/dist/client/assets/{library-BGkOJAwy.js → library-B03FDNrJ.js} +1 -1
  175. package/dist/client/assets/{login-DAZjhtYO.js → login-Cfe6-PZw.js} +1 -1
  176. package/dist/client/assets/{markdown-D3o6wysq.js → markdown-B9hrSGqM.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-D0hQoGLx.js → mcp-app-renderer-hpUMUqH2.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-_j9FyBuM.js → mcp-oauth-wOINJv40.js} +1 -1
  179. package/dist/client/assets/{members-iG0buUNv.js → members-B06BrVk5.js} +1 -1
  180. package/dist/client/assets/{message-templates-IR5FNyLl.js → message-templates-DU9l-F4Q.js} +1 -1
  181. package/dist/client/assets/{mini-report-page-Bv-G-V_E.js → mini-report-page-rgtxxMJ3.js} +1 -1
  182. package/dist/client/assets/mock-board-CKOC8D-U.js +92 -0
  183. package/dist/client/assets/{monaco-editor-Hrz9Z8CB.js → monaco-editor-EmJk9YYb.js} +1 -1
  184. package/dist/client/assets/{monitoring-stats-row-Dobim66v.js → monitoring-stats-row-D7CBnFwq.js} +1 -1
  185. package/dist/client/assets/{multi-select-Btej0uuv.js → multi-select-C-ELmy86.js} +1 -1
  186. package/dist/client/assets/{mustache-ByJrol09.js → mustache-DAjB40dp.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-Cxrx8bdZ.js → oauth-callback-BWXvJmGd.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-DmS81OnI.js → oauth-callback-ai-provider-BqevP8FM.js} +1 -1
  189. package/dist/client/assets/{onboarding-DCvMs9UO.js → onboarding-DJrrwT4H.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-Dl27c_it.js → optimistic-project-sidebar-views-CwNqyPwJ.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-Dj6iGo9D.js → org-file-open-context-CmQ30gJ0.js} +1 -1
  192. package/dist/client/assets/{organization-choice-CV0pmXrA.js → organization-choice-BGgXGTHR.js} +1 -1
  193. package/dist/client/assets/{orgs-Bb3t7neE.js → orgs-BU7FeLyY.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-C2Me_O-p.js → page-seo-form-DEYu0i8V.js} +1 -1
  195. package/dist/client/assets/{pair-B41Ucc_5.js → pair-Cj72V51B.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-DcFTtKDH.js → plan-ladder-D66BgqbO.js} +1 -1
  197. package/dist/client/assets/{popover-nFUkosPX.js → popover-DcrAVb5K.js} +1 -1
  198. package/dist/client/assets/{post-calendar-DZ52dRue.js → post-calendar-DQJqqdYQ.js} +1 -1
  199. package/dist/client/assets/{post-editor-v5lirigx.js → post-editor-CnuSsn5o.js} +1 -1
  200. package/dist/client/assets/{preview-content-fEw2bpnl.js → preview-content-BkDU3n_6.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-D-wJF7FA.js → preview-dialog-BEV5NAsU.js} +1 -1
  202. package/dist/client/assets/{primitives-CA7hroDN.js → primitives-BKiteFSN.js} +1 -1
  203. package/dist/client/assets/{profile-BKdwNagr.js → profile-DNhI3M1I.js} +1 -1
  204. package/dist/client/assets/{project-app-view-CLTppsnY.js → project-app-view-yhcKhzKq.js} +1 -1
  205. package/dist/client/assets/{project-feed-DLgEdJT9.js → project-feed-N5qYzpK3.js} +1 -1
  206. package/dist/client/assets/{project-icon-BIB3aHzm.js → project-icon-Bqg6xA8a.js} +1 -1
  207. package/dist/client/assets/project-reports-DWBu_Poi.js +1 -0
  208. package/dist/client/assets/project-tasks-C9ZL-q35.js +1 -0
  209. package/dist/client/assets/{prompts-lyitLXFg.js → prompts-BHzDLPr-.js} +1 -1
  210. package/dist/client/assets/record-editor-3Mx7odY3.js +1 -0
  211. package/dist/client/assets/{redirect-editor-B5CP8xxv.js → redirect-editor-C3yLM9GS.js} +1 -1
  212. package/dist/client/assets/reports-9-hk10-8.js +1 -0
  213. package/dist/client/assets/{reports-sCoaFaqt.js → reports-CZ22PHjO.js} +1 -1
  214. package/dist/client/assets/{reports-onboarding-BtKQhVml.js → reports-onboarding-O5OWivlS.js} +1 -1
  215. package/dist/client/assets/{reports-tab-CXS5XK7r.js → reports-tab-D06j41C-.js} +2 -2
  216. package/dist/client/assets/{repositories-oS_-X5Et.js → repositories-DNHhpOIv.js} +1 -1
  217. package/dist/client/assets/{repository-import-picker-BuCSpU4n.js → repository-import-picker-C-ngL2qG.js} +1 -1
  218. package/dist/client/assets/{repository-picker-BzruxhKw.js → repository-picker-B8J8aCKh.js} +1 -1
  219. package/dist/client/assets/{require-capability-bTSAtNh_.js → require-capability-B_Hqq5xX.js} +1 -1
  220. package/dist/client/assets/{required-auth-layout-BNA2Zc3R.js → required-auth-layout-kiGhn0Fl.js} +1 -1
  221. package/dist/client/assets/{reset-password-EBaiFSIR.js → reset-password-CYenWslr.js} +1 -1
  222. package/dist/client/assets/{resizable-qpo2Yu9H.js → resizable-Bz43PogG.js} +1 -1
  223. package/dist/client/assets/{review-settings-nUJpzYAG.js → review-settings-BH7SICgo.js} +1 -1
  224. package/dist/client/assets/{rich-text-link-control-BbOK01t4.js → rich-text-link-control-BLDmy_gB.js} +1 -1
  225. package/dist/client/assets/{roles-Bx3Fc0sM.js → roles-CwOV4v2C.js} +1 -1
  226. package/dist/client/assets/{route-Bu6DMG9s.js → route--7-PGBU_.js} +1 -1
  227. package/dist/client/assets/{route-DEE5FKXT.js → route-CQHOnOna.js} +1 -1
  228. package/dist/client/assets/{route-COxPjarc.js → route-D0YaB0fj.js} +1 -1
  229. package/dist/client/assets/{route-page-header-uZ1WvgiY.js → route-page-header-BuGOTt8l.js} +1 -1
  230. package/dist/client/assets/{runnable-block-editor-CoucCkyd.js → runnable-block-editor-CW2Atb2y.js} +1 -1
  231. package/dist/client/assets/{sandbox-lifecycle-context-CcKXyvdi.js → sandbox-lifecycle-context-B1H1oa0w.js} +1 -1
  232. package/dist/client/assets/{schema-rAddMSjd.js → schema-GryfzY0i.js} +1 -1
  233. package/dist/client/assets/{scroll-area-B1pUV42O.js → scroll-area-DzZiCQPZ.js} +1 -1
  234. package/dist/client/assets/{search-input-CHqcB1-X.js → search-input-SHiTlnCE.js} +1 -1
  235. package/dist/client/assets/{search-toggle-YlQabs1C.js → search-toggle-D4N3AzPW.js} +1 -1
  236. package/dist/client/assets/{secrets-DHB5vmKg.js → secrets-Ctzc3HXv.js} +1 -1
  237. package/dist/client/assets/{sections-editor-d1LArMD3.js → sections-editor-DXtafrXa.js} +1 -1
  238. package/dist/client/assets/{select-model-DtQEqfFf.js → select-model-DHG0nuQY.js} +1 -1
  239. package/dist/client/assets/{select-DTYo-xWa.js → select-rL7p93dx.js} +1 -1
  240. package/dist/client/assets/{seo-editor-BBb4CuK2.js → seo-editor-B7c6S06X.js} +1 -1
  241. package/dist/client/assets/{separator-BGTHxBXx.js → separator-D8sL6zYz.js} +1 -1
  242. package/dist/client/assets/{settings-tab-Dvg8uIn0.js → settings-tab-Cn070EFz.js} +1 -1
  243. package/dist/client/assets/{sheet-XSyOfLSY.js → sheet-Dq_EWs2W.js} +1 -1
  244. package/dist/client/assets/{shell-layout-BJIfCkSE.js → shell-layout-D1F8kHl9.js} +1 -1
  245. package/dist/client/assets/{sidebar-B7NB-xw1.js → sidebar-D43DhIwE.js} +1 -1
  246. package/dist/client/assets/{skill-preview-ChLmiMsB.js → skill-preview-B97-mTZP.js} +1 -1
  247. package/dist/client/assets/{skills-_EqOAXmn.js → skills-Cx3kWc9A.js} +1 -1
  248. package/dist/client/assets/{sso-QqGPMeRj.js → sso-BnGi7SX9.js} +1 -1
  249. package/dist/client/assets/{switch-CXpdGkl4.js → switch-DLx_1rQF.js} +1 -1
  250. package/dist/client/assets/{synced-repos-Dv04vkGX.js → synced-repos-B4EDqgTE.js} +1 -1
  251. package/dist/client/assets/{table-BU5SQqZk.js → table-wc_V6Osx.js} +1 -1
  252. package/dist/client/assets/{tabs-Boo8T0HI.js → tabs-CQkW3bOH.js} +1 -1
  253. package/dist/client/assets/{task-board-CExmv-E5.js → task-board-BjqJ_zE6.js} +1 -1
  254. package/dist/client/assets/{task-route-CzrYHdg5.js → task-route-b5zDQpw0.js} +1 -1
  255. package/dist/client/assets/{task-status-COMntCwU.js → task-status-B7fE_9za.js} +1 -1
  256. package/dist/client/assets/{taskboard-analytics-CC-4nYs7.js → taskboard-analytics-K9sDH74m.js} +1 -1
  257. package/dist/client/assets/{tasks-C7kXTStY.js → tasks-B1yh0s0B.js} +1 -1
  258. package/dist/client/assets/tasks-DLhzd-p7.js +1 -0
  259. package/dist/client/assets/{textarea-DOFtu_i2.js → textarea-BaPpC4Bd.js} +1 -1
  260. package/dist/client/assets/{thread-button-D_wtx4Nt.js → thread-button-Ch4zKk0N.js} +1 -1
  261. package/dist/client/assets/{thread-intent-DAJ_HNeY.js → thread-intent-XcHSP8zW.js} +1 -1
  262. package/dist/client/assets/{thread-route-BmIfxqCS.js → thread-route-C-J8Dvgz.js} +1 -1
  263. package/dist/client/assets/{thread-route-C3RIHj8w.js → thread-route-CGP_k3DO.js} +1 -1
  264. package/dist/client/assets/{thread-sheet-body-rPMilxjL.js → thread-sheet-body-D8_23FE-.js} +1 -1
  265. package/dist/client/assets/{toggle-group-Dq2H4rHL.js → toggle-group-D9KWjWLm.js} +1 -1
  266. package/dist/client/assets/{toolbar-icon-button-DQQVHEDE.js → toolbar-icon-button-BB2_W4d6.js} +1 -1
  267. package/dist/client/assets/{tooltip-DSbyRPdu.js → tooltip-DRlnzIQm.js} +1 -1
  268. package/dist/client/assets/{track-BuyQH-Eh.js → track-CXrvs8hW.js} +1 -1
  269. package/dist/client/assets/{types-BJVErkzZ.js → types-D4W-t3kf.js} +1 -1
  270. package/dist/client/assets/{usage-stats-Cpw6az0l.js → usage-stats-Fyuoa0E1.js} +1 -1
  271. package/dist/client/assets/{use-ai-providers-_Y5hFqHw.js → use-ai-providers-C4dXO9Yz.js} +1 -1
  272. package/dist/client/assets/{use-automations-CYLhsS7u.js → use-automations-9dsFC6Pt.js} +1 -1
  273. package/dist/client/assets/{use-autosave-C20aGd_5.js → use-autosave-CriUkKcO.js} +1 -1
  274. package/dist/client/assets/{use-connect-companion-C_Kr4lwD.js → use-connect-companion-DE-jLyCh.js} +1 -1
  275. package/dist/client/assets/{use-connection-DQuFsHZm.js → use-connection-By40b12N.js} +1 -1
  276. package/dist/client/assets/{use-copy-BxbAgUTq.js → use-copy-BLJCJFHS.js} +1 -1
  277. package/dist/client/assets/{use-create-virtual-mcp-BV3tbDpf.js → use-create-virtual-mcp-D0AahD2t.js} +1 -1
  278. package/dist/client/assets/{use-date-fns-locale-B9sUlaN2.js → use-date-fns-locale-CNRPcj9k.js} +1 -1
  279. package/dist/client/assets/{use-debounced-autosave-CcxGifiF.js → use-debounced-autosave-BzX7iQl5.js} +1 -1
  280. package/dist/client/assets/{use-debounced-value-BC8WZjNP.js → use-debounced-value-DQiu0Px1.js} +1 -1
  281. package/dist/client/assets/{use-deco-credits-CgqHzWY6.js → use-deco-credits-1r5nuYBd.js} +1 -1
  282. package/dist/client/assets/{use-decopilot-events-DH8OtbLR.js → use-decopilot-events-DwM9-jMb.js} +1 -1
  283. package/dist/client/assets/{use-delete-connection-DoiHfxoZ.js → use-delete-connection-huvoW3MI.js} +1 -1
  284. package/dist/client/assets/{use-deployment-admin-DLx3fYXb.js → use-deployment-admin-BZm5KCvv.js} +1 -1
  285. package/dist/client/assets/{use-entitlements-BHSK7OQU.js → use-entitlements-Bvz6_GHn.js} +1 -1
  286. package/dist/client/assets/{use-fast-preview-draft-url-CIy5-L85.js → use-fast-preview-draft-url-ITLFeGjr.js} +1 -1
  287. package/dist/client/assets/{use-file-configs-DWEtONQO.js → use-file-configs-Dc750_n6.js} +1 -1
  288. package/dist/client/assets/{use-in-settings-CWM0u3-W.js → use-in-settings-Nr5h58Dc.js} +1 -1
  289. package/dist/client/assets/{use-infinite-scroll-SSKfcc6X.js → use-infinite-scroll-5IN_AQUC.js} +1 -1
  290. package/dist/client/assets/{use-join-requests-gGG5CadF.js → use-join-requests-BUruBjE6.js} +1 -1
  291. package/dist/client/assets/{use-main-panel-tabs-DtFHHCKT.js → use-main-panel-tabs-CE7T9zOX.js} +1 -1
  292. package/dist/client/assets/{use-mcp-auth-status-C65tV0X5.js → use-mcp-auth-status-DQ1IMcVT.js} +1 -1
  293. package/dist/client/assets/{use-mcp-client-Dcdh62QN.js → use-mcp-client-Cgrjx403.js} +1 -1
  294. package/dist/client/assets/{use-mcp-prompts-C3jCksiZ.js → use-mcp-prompts-PD_QSplo.js} +1 -1
  295. package/dist/client/assets/{use-mcp-tools-Dvo5yh4L.js → use-mcp-tools-CbiwxQvl.js} +1 -1
  296. package/dist/client/assets/{use-members-DxjVAAba.js → use-members-DXD-dNoi.js} +1 -1
  297. package/dist/client/assets/{use-mobile-BYeAeIA8.js → use-mobile-B90d5ZlF.js} +1 -1
  298. package/dist/client/assets/{use-navigate-to-agent-BuhJIIwZ.js → use-navigate-to-agent-CUne0-cI.js} +1 -1
  299. package/dist/client/assets/{use-open-billing-url-TMTuXlUq.js → use-open-billing-url-nDZTfkQK.js} +1 -1
  300. package/dist/client/assets/{use-org-auth-client-Dqyt-QDJ.js → use-org-auth-client-PQEXc1yD.js} +1 -1
  301. package/dist/client/assets/{use-org-fs-nkAGDkJq.js → use-org-fs-DeO5Vs7G.js} +1 -1
  302. package/dist/client/assets/{use-org-repo-syncs-rUFGHayc.js → use-org-repo-syncs-DF_-QyL3.js} +1 -1
  303. package/dist/client/assets/{use-org-sso-tDYE-lfL.js → use-org-sso-DXBbBboL.js} +1 -1
  304. package/dist/client/assets/{use-organization-roles-DggYT7W3.js → use-organization-roles-CFSRd1jc.js} +1 -1
  305. package/dist/client/assets/{use-organization-settings-DrVA8Dee.js → use-organization-settings-ALMIpIdG.js} +1 -1
  306. package/dist/client/assets/{use-panel-navigate-BCslg8Vu.js → use-panel-navigate-BHrQSu9h.js} +1 -1
  307. package/dist/client/assets/{use-project-native-view-presence-DRoYxFZD.js → use-project-native-view-presence-Y2wkBJMs.js} +1 -1
  308. package/dist/client/assets/{use-project-scope-BpN8DHUI.js → use-project-scope-FsdoI9gD.js} +1 -1
  309. package/dist/client/assets/{use-releases-d7vakbKz.js → use-releases-xo3RYWEP.js} +1 -1
  310. package/dist/client/assets/{use-reports-diagnostic-B46E9lKV.js → use-reports-diagnostic-CtQFcqBI.js} +1 -1
  311. package/dist/client/assets/{use-route-default-main-DuOJfspa.js → use-route-default-main-BqmVu7AG.js} +1 -1
  312. package/dist/client/assets/{use-secrets-Cr1Kpc-T.js → use-secrets-DxDq4D6_.js} +1 -1
  313. package/dist/client/assets/{use-section-preview-base-BmRuRZWQ.js → use-section-preview-base-DaZur2dM.js} +1 -1
  314. package/dist/client/assets/{use-session-runtime-Cz4PfdcP.js → use-session-runtime-C4wBDVOy.js} +1 -1
  315. package/dist/client/assets/{use-tags-BYEtXqg6.js → use-tags-c1eddqqE.js} +1 -1
  316. package/dist/client/assets/{use-task-board-analytics-Ctm7E9WR.js → use-task-board-analytics-DJ3wBWjU.js} +1 -1
  317. package/dist/client/assets/{use-task-metadata-DkabNxB2.js → use-task-metadata-Bf-ipBBx.js} +1 -1
  318. package/dist/client/assets/{use-thread-outputs-CUgoskOk.js → use-thread-outputs-B5BUO9_U.js} +1 -1
  319. package/dist/client/assets/{use-virtual-mcp-CkPT-P6s.js → use-virtual-mcp-DbjQS13M.js} +1 -1
  320. package/dist/client/assets/useInfiniteQuery-C9Zty0xS.js +1 -0
  321. package/dist/client/assets/{useQueries-Ct7vzxRZ.js → useQueries-QDBruPdh.js} +1 -1
  322. package/dist/client/assets/useSuspenseInfiniteQuery-CaUQs7Ct.js +1 -0
  323. package/dist/client/assets/{users-OFnmE21N.js → users-CvddDmkv.js} +1 -1
  324. package/dist/client/assets/{utils-CKDo0rTz.js → utils-Do-NKG3l.js} +1 -1
  325. package/dist/client/assets/{variant-calendar-Y5WxXmYr.js → variant-calendar-BkV-nx_1.js} +1 -1
  326. package/dist/client/assets/{variant-matcher-override-itmFdczb.js → variant-matcher-override-DGI26buK.js} +1 -1
  327. package/dist/client/assets/{view-mode-toggle-Bfw6uHD6.js → view-mode-toggle-DsUGHBIV.js} +1 -1
  328. package/dist/client/assets/{virtual-mcp-BAAilWBi.js → virtual-mcp-CPXCNlcx.js} +1 -1
  329. package/dist/client/index.html +2 -2
  330. package/dist/server/cli.js +70 -70
  331. package/dist/server/server.js +68 -68
  332. package/package.json +1 -1
  333. package/dist/client/assets/agent-app-Bo_ubt7z.js +0 -1
  334. package/dist/client/assets/agent-deck-Dd2NRnhk.js +0 -1
  335. package/dist/client/assets/agent-file-ZcNHjqCt.js +0 -1
  336. package/dist/client/assets/agent-library-file-DIqQMq-g.js +0 -1
  337. package/dist/client/assets/agent-settings-BHIK3ZUi.js +0 -1
  338. package/dist/client/assets/agent-site-editor-code-DUsPBVkM.js +0 -2
  339. package/dist/client/assets/agent-view-Cuu386nI.js +0 -1
  340. package/dist/client/assets/api-keys-VM7wXF9S.js +0 -1
  341. package/dist/client/assets/app-editor-CCiymBYy.js +0 -1
  342. package/dist/client/assets/mock-board-B7bmGxyk.js +0 -90
  343. package/dist/client/assets/project-reports-U46-26iJ.js +0 -1
  344. package/dist/client/assets/project-tasks-CKdrXmkM.js +0 -1
  345. package/dist/client/assets/record-editor-DQ4fHRue.js +0 -1
  346. package/dist/client/assets/reports-BAn9AOfZ.js +0 -1
  347. package/dist/client/assets/tasks-CGWBXBtw.js +0 -1
  348. package/dist/client/assets/useInfiniteQuery-BSu4iAJA.js +0 -1
  349. package/dist/client/assets/useSuspenseInfiniteQuery-gyjx-2Eq.js +0 -1
@@ -0,0 +1,92 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route--7-PGBU_.js","assets/index-CFyHGgGO.js","assets/index-xA_kfo6T.css","assets/AlertCircle-Cwl0Vup2.js","assets/LayoutLeft-BIWXERKW.js","assets/sidebar-D43DhIwE.js","assets/use-mobile-B90d5ZlF.js","assets/sheet-Dq_EWs2W.js","assets/X-BEAR-IcH.js","assets/tooltip-DRlnzIQm.js","assets/index-Dv6121Hz.js","assets/toolbar-icon-button-BB2_W4d6.js","assets/index-CUVOFMQ0.js","assets/ArrowUp-rfVFZ40K.js","assets/chat-context-bQBeY2t1.js","assets/use-panel-navigate-BHrQSu9h.js","assets/thread-route-C-J8Dvgz.js","assets/use-project-scope-FsdoI9gD.js","assets/use-virtual-mcp-DbjQS13M.js","assets/use-mcp-client-Cgrjx403.js","assets/auth-fkwwQuGR.js","assets/github-repo-BknN0SVI.js","assets/autosend-Du7-oKR0.js","assets/thread-intent-XcHSP8zW.js","assets/slugify-CEUa2lfQ.js","assets/hooks-DEf7SAIB.js","assets/backoff-8mStPHYB.js","assets/task-board-BjqJ_zE6.js","assets/schema-GryfzY0i.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-entitlements-Bvz6_GHn.js","assets/use-ai-providers-C4dXO9Yz.js","assets/location-oTTXFrSF.js","assets/use-decopilot-events-DwM9-jMb.js","assets/use-organization-settings-ALMIpIdG.js","assets/gateway-client-Bn4ALbwj.js","assets/dialog-RGKICG4s.js","assets/drawer-B4Z-ExBx.js","assets/collection-search-CKFQt3zo.js","assets/SearchMd-tkECPV7l.js","assets/use-mcp-prompts-PD_QSplo.js","assets/index-B-yd3uye.js","assets/form-CNnZbB2s.js","assets/label-BKtkcOfE.js","assets/input-BXe2-JP2.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-CmQ30gJ0.js","assets/input-Cx-TB157.js","assets/shell-layout-D1F8kHl9.js","assets/avatar-DvLLRJ7_.js","assets/User01-DwcV_kyF.js","assets/Globe04-BkqSUJiA.js","assets/SearchLg-DCjPeF5h.js","assets/agent-icon-CP0I3VVA.js","assets/Tool01-DUJdCnDK.js","assets/ArrowLeft-BS1ddrpm.js","assets/ArrowRight-CCNkzW9Y.js","assets/XCircle-BBqXvE8C.js","assets/ZoomOut-DnIqLBGF.js","assets/CheckCircle-5QB6sfVV.js","assets/Check-Chl3DDqT.js","assets/ChevronUp-BuAMP7GQ.js","assets/UserSquare-CsgvAwaQ.js","assets/Copy01-BwsqBYnE.js","assets/CreditCard01-BPHmR5OY.js","assets/DotsVertical-Bv4-YScE.js","assets/Download01-DyVswBhh.js","assets/Eye-BGOdKOA7.js","assets/Share07-fkd7xmY6.js","assets/XClose-Ca9S5aZc.js","assets/Image01-DXUl1blo.js","assets/Key01-CTlB38YG.js","assets/Link01-7UJLIg0N.js","assets/LinkExternal01-DsBKvM3k.js","assets/Monitor01-D3pXjo5b.js","assets/Sun-CTx2w4hs.js","assets/Package-ImRUZcy3.js","assets/Palette-B0nQwQuz.js","assets/Plus-DxM0fEC4.js","assets/Stars01-BoztdLAd.js","assets/Trash01-B-_Oqcf7.js","assets/Upload01-alz3omvs.js","assets/Users01-DAeXmo2u.js","assets/Zap-thqSL15H.js","assets/download-app-dialog-DPWfpRBg.js","assets/command-SQ6iukKb.js","assets/index-CJazvqGq.js","assets/integration-icon-DRK9pjva.js","assets/project-icon-Bqg6xA8a.js","assets/required-auth-layout-kiGhn0Fl.js","assets/use-org-sso-DXBbBboL.js","assets/shell-layout-CE2Eihra.css","assets/chat-draft-Dw5lkxkv.js","assets/use-session-runtime-C4wBDVOy.js","assets/select-rL7p93dx.js","assets/usage-stats-Fyuoa0E1.js","assets/use-copy-BLJCJFHS.js","assets/markdown-B9hrSGqM.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/tabs-CQkW3bOH.js","assets/use-deco-credits-1r5nuYBd.js","assets/toggle-group-D9KWjWLm.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-nDZTfkQK.js","assets/decopilot-CYIi3WEs.js","assets/checkbox-C70qRnxL.js","assets/ai-providers-logos-DD3qZ33J.js","assets/popover-DcrAVb5K.js","assets/index-BkqcEh_k.js","assets/input-DWLaMaA_.js","assets/hooks-CdPo1Znu.js","assets/use-org-fs-DeO5Vs7G.js","assets/question-004-sINsf4GQ.js","assets/use-members-DXD-dNoi.js","assets/use-org-auth-client-PQEXc1yD.js","assets/feature-paywall-D-5vciMm.js","assets/plan-ladder-D66BgqbO.js","assets/add-connection-dialog-BdL2dPAr.js","assets/extract-connection-data-BZ3x_jRc.js","assets/metadata-D72DunRR.js","assets/connection-DdQElG6t.js","assets/connection-card-BS_OpxON.js","assets/useInfiniteQuery-C9Zty0xS.js","assets/infiniteQueryObserver-B4v_iRrA.js","assets/connection-slug-CITJ0kGN.js","assets/textarea-BaPpC4Bd.js","assets/use-connection-By40b12N.js","assets/connection-form-helpers-DZC7DBzw.js","assets/authenticate-and-persist-oauth-BogPKDev.js","assets/mcp-oauth-wOINJv40.js","assets/collection-tabs-nLUzyG3L.js","assets/badge-jSVR8IKO.js","assets/use-infinite-scroll-5IN_AQUC.js","assets/useSuspenseInfiniteQuery-CaUQs7Ct.js","assets/pair-Cj72V51B.js","assets/collapsible-CBOJskaw.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-hpUMUqH2.js","assets/types-D4W-t3kf.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-navigate-to-agent-CUne0-cI.js","assets/use-thread-outputs-B5BUO9_U.js","assets/file-type-icon-DdSZ0ia4.js","assets/decofile-api-DyGAd2r4.js","assets/use-releases-xo3RYWEP.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-B1H1oa0w.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/empty-state-B7gXx_Yh.js","assets/thread-button-Ch4zKk0N.js","assets/use-route-default-main-BqmVu7AG.js","assets/use-in-settings-Nr5h58Dc.js","assets/index-DrGKKl-C.js","assets/resizable-Bz43PogG.js","assets/route-page-header-BuGOTt8l.js","assets/alert-dialog-BCnbMjLm.js","assets/task-status-B7fE_9za.js","assets/use-main-panel-tabs-CE7T9zOX.js","assets/use-mcp-tools-CbiwxQvl.js","assets/use-task-metadata-Bf-ipBBx.js","assets/use-project-native-view-presence-Y2wkBJMs.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-Dc750_n6.js","assets/site-slug-uya6Wp4-.js","assets/virtual-mcp-CPXCNlcx.js","assets/legacy-main-redirect-C-Ov90Nk.js","assets/preview-dialog-BEV5NAsU.js","assets/preview-content-BkDU3n_6.js","assets/file-preview-DOetwKct.js","assets/utils-Do-NKG3l.js","assets/editor-Do7ruOhn.js","assets/file-share-button-D0sR8ZJX.js","assets/blocks-preview-workspace-context-wIvRUegF.js"])))=>i.map(i=>d[i]);
2
+ import{c as R,j as l,b as X,r as q,B as pe,l as F,aB as ta,F as qe,H as Ke,aC as Gi,I as Ue,a0 as Ge,f as pa,u as Vi,h as dt,c3 as _c,d as kl,L as Ac,eP as Dc,eQ as $c,m as dr,K as Je,aN as Qi,t as Fe,$ as Yi,a6 as Tt,o as ur,e as Wt,z as Rc,G as Ne,aM as ir,a as Zi,Z as ma,aG as ga,aL as Xi,av as zc,n as Kt,R as Ec,am as Nr,aP as er,aI as Ic,x as Ji,N as Yl,P as Lc,aR as tr,aS as sr,aT as nr,q as Zl,at as Mc,T as Pc,eR as Fc,E as Oc,eS as Hc}from"./index-CFyHGgGO.js";import{o as bl,Q as xt,M as sa,v as qc,f as Kc,X as Uc,Y as Wc,_ as Gc,x as Vc,aP as Qc,aK as Yc,aQ as yl,aR as Zc,w as eo,d as na,aS as Xc,aT as Xl,e as to,B as Xr,aq as jl,a8 as xa,aU as Jc,n as ed}from"./agent-icon-CP0I3VVA.js";import{i as fr}from"./CheckCircle-5QB6sfVV.js";import{i as so}from"./XClose-Ca9S5aZc.js";import{s as Qt}from"./Plus-DxM0fEC4.js";import{i as Yt}from"./X-BEAR-IcH.js";import{A as Le}from"./avatar-DvLLRJ7_.js";import{c as td,b as sd,f as nd,g as rd,a as ad,D as ld}from"./drawer-B4Z-ExBx.js";import{a as gt,b as kt,P as bt,c as id}from"./popover-DcrAVb5K.js";import{T as no,a as ro,c as ao}from"./tooltip-DRlnzIQm.js";import{a as Xe,e as es,C as ts,b as Oe,c as ss,d as ns,g as lo}from"./command-SQ6iukKb.js";import{i as Rt}from"./Check-Chl3DDqT.js";import{t as Et}from"./ChevronUp-BuAMP7GQ.js";import{s as io}from"./XCircle-BBqXvE8C.js";import{a as oo}from"./Tool01-DUJdCnDK.js";import{s as Zt}from"./User01-DwcV_kyF.js";import{E as ka,m as Cr,U as or,e as ze,P as hr,n as ra,D as co,o as zt,k as yr,N as cr,S as We,b as od,s as uo,t as fo,q as ho,r as po,v as il,l as jr,w as mo,f as $t,T as go,x as cd,y as dd,z as ud,A as fd,B as vl,C as hd,u as pd,F as md,a as Jl,G as xo,H as gd,L as ol,I as xd,J as kd,i as bd,c as yd,K as jd,M as vd,O as ei,Q as wd,R as Sd}from"./task-route-b5zDQpw0.js";import{G as Nd}from"./github-icon-ZhItaKRN.js";import{P as Cd}from"./project-icon-Bqg6xA8a.js";import{g as Me}from"./get-initials-D-f_fDFw.js";import{S as ye,R as Td,e as Bd,C as _d,D as Ad,i as Jr,n as Dd,f as wl,g as $d}from"./task-board-BjqJ_zE6.js";import{T as it,n as Rd,i as zd,a as Ed,b as ti,K as Id,P as Ld,d as Md,D as Pd,f as Fd,g as Od,s as Hd,e as qd,S as Kd,v as Ud,u as Wd,C as Gd}from"./rich-text-link-control-BLDmy_gB.js";import{u as ko}from"./use-task-board-analytics-DJ3wBWjU.js";import{C as Vd}from"./combobox-D4piYhGL.js";import{S as Qd}from"./search-toggle-D4N3AzPW.js";import{R as Yd}from"./repository-import-picker-C-ngL2qG.js";import{a as Sl}from"./use-members-DXD-dNoi.js";import{a as Tr}from"./format-time-BtXRrtv4.js";import{u as Nl,a as Zd,b as Xd}from"./use-tags-c1eddqqE.js";import{a as Cl,d as Tl}from"./use-organization-settings-ALMIpIdG.js";import{B as Jd,a as eu,b as si,c as tu,d as su,e as nu}from"./breadcrumb-BcN7LEPN.js";import{d as aa,b as la,D as ia,h as bo,c as yo,e as jo}from"./dialog-RGKICG4s.js";import{C as Bl}from"./calendar-DL1g-R6I.js";import{I as Gt}from"./icon-button-BBfdKkxm.js";import{A as ni,a as ru,b as au}from"./alert-DWLTyUNd.js";import{C as lu,a as iu,b as ou}from"./collapsible-CBOJskaw.js";import{u as nl}from"./use-copy-BLJCJFHS.js";import{i as Xt}from"./AlertCircle-Cwl0Vup2.js";import{i as vo,b as cu}from"./UserSquare-CsgvAwaQ.js";import{a as du}from"./Copy01-BwsqBYnE.js";import{i as cl}from"./Share07-fkd7xmY6.js";import{n as vr}from"./LinkExternal01-DsBKvM3k.js";import{m as uu,a as fu,M as ba}from"./markdown-B9hrSGqM.js";import{a as hu,E as _l,r as St,t as pu,v as mu,w as wo,x as qt,y as ri,z as gu,A as xu,B as ai,C as ku,G as wr,N as rs,m as Ct,H as oa,T as So,R as Al,I as Dl,h as bu,J as yu,K as ju,L as vu,O as wu,Q as Su,s as No,S as Nu,u as Co,b as To,U as Cu,c as Tu}from"./index-B-yd3uye.js";import{B as Bu,c as _u,t as Au,C as Bo,f as Du,g as li,s as $u,m as ii,a as oi,b as Ru,d as ci,e as zu,h as Eu,i as Iu,j as Lu,k as Mu,l as Pu,n as Fu}from"./index-B2xKtish.js";import{i as Ou}from"./Link01-7UJLIg0N.js";import{s as Hu}from"./Trash01-B-_Oqcf7.js";import{c as qu,e as _o,s as Ao}from"./hooks-CdPo1Znu.js";import{n as Ku}from"./Download01-DyVswBhh.js";import{i as Uu}from"./ZoomOut-DnIqLBGF.js";import{u as Wu}from"./use-org-auth-client-PQEXc1yD.js";import{h as Gu,b as Vu}from"./use-org-fs-DeO5Vs7G.js";import{d as Qu,S as di}from"./sandbox-start-errors-BK_aDCyt.js";import{p as Yu,r as Zu,u as Do,G as Xu}from"./repository-picker-B8J8aCKh.js";import{i as Ju,c as ef}from"./hooks-DEf7SAIB.js";import{u as $o}from"./use-connection-By40b12N.js";import{e as tf,b as sf}from"./use-virtual-mcp-DbjQS13M.js";import{s as nf}from"./use-project-scope-FsdoI9gD.js";import{l as rf}from"./github-repo-scope-C8GSbvaz.js";import{c as af,S as lf,a as of,b as cf}from"./sheet-Dq_EWs2W.js";import{T as df}from"./thread-sheet-body-D8_23FE-.js";import{u as uf}from"./use-mcp-client-Cgrjx403.js";import{i as ff}from"./ArrowUp-rfVFZ40K.js";import{a as hf}from"./pair-Cj72V51B.js";import{u as pf}from"./use-open-billing-url-nDZTfkQK.js";import{s as mf,w as gf}from"./chat-draft-Dw5lkxkv.js";import{B as xf}from"./badge-jSVR8IKO.js";import{S as dl}from"./separator-D8sL6zYz.js";import{a as kf}from"./shell-layout-D1F8kHl9.js";const bf={github:"pull",gitlab:"-/merge_requests",bitbucket:"pull-requests"};function yf(t,e){return`${Zu(t)}/${bf[t.provider]}/${e}`}const jf=[{re:/https?:\/\/([^/\s"']+)\/([^\s"']+?)\/-\/merge_requests\/(\d+)/},{re:/https?:\/\/([^/\s"']+)\/([^/\s"']+\/[^/\s"']+)\/pull\/(\d+)/},{re:/https?:\/\/([^/\s"']+)\/([^/\s"']+\/[^/\s"']+)\/pull-requests\/(\d+)/},{re:/https?:\/\/([^/\s"']+)\/repos\/([^/\s"']+\/[^/\s"']+)\/pulls\/(\d+)/,api:!0},{re:/https?:\/\/([^/\s"']+)\/api\/v4\/projects\/([^/\s"']+)\/merge_requests\/(\d+)/,api:!0},{re:/https?:\/\/([^/\s"']+)\/2\.0\/repositories\/([^/\s"']+\/[^/\s"']+)\/pullrequests\/(\d+)/,api:!0}],vf={"api.github.com":"github.com","api.bitbucket.org":"bitbucket.org"};function wf(t){const e=t.toLowerCase();return vf[e]??e}function Sf(t,e){const s=Number(t[3]);if(!Number.isSafeInteger(s)||s<=0)return null;const n=wf(t[1]),r=t[2],a=e?decodeURIComponent(r):r;if(/^\d+$/.test(a))return null;const i=Yu(`https://${n}/${a}`);return i?{repo:i,number:s,url:yf(i,s)}:null}function Nf(t){const e=t.trim();if(!e)return null;for(const{re:s,api:n}of jf){const r=s.exec(e),a=r?Sf(r,n===!0):null;if(a)return a}return null}function Ro(t){return t?.projects.length===1?t.projects[0]:void 0}function Cf(t){return Ro(t)?t.repo:t.projects.length>1?t.projects.map(e=>e.title).join(", "):null}function Vt(t){const e=R.c(6),{entry:s}=t;let n;e[0]!==s?(n=Ro(s),e[0]=s,e[1]=n):n=e[1];const r=n;if(r){let i;return e[2]!==r.icon||e[3]!==r.title?(i=l.jsx(Cd,{icon:r.icon,name:r.title}),e[2]=r.icon,e[3]=r.title,e[4]=i):i=e[4],i}let a;return e[5]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:l.jsx(Nd,{className:"size-3"})}),e[5]=a):a=e[5],a}function $l(t){const e=R.c(14),{entry:s}=t;let n;e[0]!==s?(n=Cf(s),e[0]=s,e[1]=n):n=e[1];const r=n;let a;e[2]!==s?(a=l.jsx(Vt,{entry:s}),e[2]=s,e[3]=a):a=e[3];let i;e[4]!==s.title?(i=l.jsx("span",{className:"truncate",children:s.title}),e[4]=s.title,e[5]=i):i=e[5];let c;e[6]!==r?(c=r&&l.jsx("span",{className:"truncate text-xs text-muted-foreground",children:r}),e[6]=r,e[7]=c):c=e[7];let o;e[8]!==i||e[9]!==c?(o=l.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[i,c]}),e[8]=i,e[9]=c,e[10]=o):o=e[10];let d;return e[11]!==a||e[12]!==o?(d=l.jsxs(l.Fragment,{children:[a,o]}),e[11]=a,e[12]=o,e[13]=d):d=e[13],d}const lr="__any__";function Tf(t,e){return t.assignee!==null||t.priority!==null||t.due!==null||t.tags.length>0||Cr(t.project,e)||t.search.trim()!==""}function Bf(t,e){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)+(t.tags.length>0?1:0)+(Cr(t.project,e)?1:0)+(t.search.trim()!==""?1:0)}function as(t,e=!1){return F("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function _f(t){const e=R.c(107),{value:s,members:n,onChange:r,block:a}=t,i=X(),[c,o]=q.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(Zt,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let u=d,f;e[1]!==i?(f=i("taskBoard.taskFilters.assigneeLabel"),e[1]=i,e[2]=f):f=e[2];let h=f;if(s===or){let I;e[3]!==i?(I=i("taskBoard.taskFilters.assigneeUnassigned"),e[3]=i,e[4]=I):I=e[4],h=I}else if(s===ye){let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsx(We,{size:14}),e[5]=I):I=e[5],u=I;let H;e[6]!==i?(H=i("taskBoard.taskFilters.assigneeSuperAgent"),e[6]=i,e[7]=H):H=e[7],h=H}else if(s){let I,H,fe,de;if(e[8]!==n||e[9]!==s){let ae;e[14]!==s?(ae=ge=>ge.userId===s,e[14]=s,e[15]=ae):ae=e[15],H=n.find(ae),I=Le,fe=H?.user?.image??void 0,de=Me(H?.user?.name),e[8]=n,e[9]=s,e[10]=I,e[11]=H,e[12]=fe,e[13]=de}else I=e[10],H=e[11],fe=e[12],de=e[13];let be;e[16]!==I||e[17]!==fe||e[18]!==de?(be=l.jsx(I,{url:fe,fallback:de,shape:"circle",size:"2xs"}),e[16]=I,e[17]=fe,e[18]=de,e[19]=be):be=e[19],u=be;let Ce;e[20]!==H?.user?.name||e[21]!==i?(Ce=H?.user?.name??i("taskBoard.taskFilters.assigneeMember"),e[20]=H?.user?.name,e[21]=i,e[22]=Ce):Ce=e[22],h=Ce}let x;e[23]!==r?(x=I=>{r(I),o(!1)},e[23]=r,e[24]=x):x=e[24];const p=x,g=s!==null;let k;e[25]!==a||e[26]!==g?(k=as(g,a),e[25]=a,e[26]=g,e[27]=k):k=e[27];const y=k,b=a&&"ml-auto";let m;e[28]!==b?(m=F("shrink-0 opacity-60",b),e[28]=b,e[29]=m):m=e[29];const j=m;let v;e[30]!==h?(v=l.jsx("span",{className:"max-w-[10rem] truncate",children:h}),e[30]=h,e[31]=v):v=e[31];let w;e[32]!==j?(w=l.jsx(Et,{size:12,className:j}),e[32]=j,e[33]=w):w=e[33];let S;e[34]!==u||e[35]!==v||e[36]!==w||e[37]!==y?(S=l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:y,children:[u,v,w]})}),e[34]=u,e[35]=v,e[36]=w,e[37]=y,e[38]=S):S=e[38];let N;e[39]!==i?(N=i("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[39]=i,e[40]=N):N=e[40];let T;e[41]!==i?(T=i("taskBoard.taskFilters.assigneeFilterPlaceholder"),e[41]=i,e[42]=T):T=e[42];let C;e[43]!==N||e[44]!==T?(C=l.jsx(es,{placeholder:N,"aria-label":T,className:"h-9"}),e[43]=N,e[44]=T,e[45]=C):C=e[45];let D;e[46]!==i?(D=i("taskBoard.taskFilters.assigneeNoMembersFound"),e[46]=i,e[47]=D):D=e[47];let E;e[48]!==D?(E=l.jsx(ts,{children:D}),e[48]=D,e[49]=E):E=e[49];let $;e[50]!==i?($=i("taskBoard.taskFilters.assigneeAnyone"),e[50]=i,e[51]=$):$=e[51];let L;e[52]!==p?(L=()=>p(null),e[52]=p,e[53]=L):L=e[53];let M;e[54]!==i?(M=i("taskBoard.taskFilters.assigneeAnyone"),e[54]=i,e[55]=M):M=e[55];let B;e[56]!==$||e[57]!==L||e[58]!==M?(B=l.jsx(Oe,{value:$,onSelect:L,children:M}),e[56]=$,e[57]=L,e[58]=M,e[59]=B):B=e[59];let A;e[60]!==i?(A=i("taskBoard.taskFilters.assigneeUnassigned"),e[60]=i,e[61]=A):A=e[61];let z;e[62]!==p?(z=()=>p(or),e[62]=p,e[63]=z):z=e[63];let K;e[64]===Symbol.for("react.memo_cache_sentinel")?(K=l.jsx(Zt,{size:16,className:"text-muted-foreground"}),e[64]=K):K=e[64];let U;e[65]!==i?(U=i("taskBoard.taskFilters.assigneeUnassigned"),e[65]=i,e[66]=U):U=e[66];let Q;e[67]!==A||e[68]!==z||e[69]!==U?(Q=l.jsxs(Oe,{value:A,onSelect:z,className:"gap-2",children:[K,U]}),e[67]=A,e[68]=z,e[69]=U,e[70]=Q):Q=e[70];let ee;e[71]!==i?(ee=i("taskBoard.taskFilters.assigneeSuperAgent"),e[71]=i,e[72]=ee):ee=e[72];let O;e[73]!==p?(O=()=>p(ye),e[73]=p,e[74]=O):O=e[74];let te;e[75]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx(We,{size:16}),e[75]=te):te=e[75];let W;e[76]!==i?(W=i("taskBoard.taskFilters.assigneeSuperAgent"),e[76]=i,e[77]=W):W=e[77];let Z;e[78]!==ee||e[79]!==O||e[80]!==W?(Z=l.jsxs(Oe,{value:ee,onSelect:O,className:"gap-2",children:[te,W]}),e[78]=ee,e[79]=O,e[80]=W,e[81]=Z):Z=e[81];let J;e[82]!==B||e[83]!==Q||e[84]!==Z?(J=l.jsxs(Xe,{children:[B,Q,Z]}),e[82]=B,e[83]=Q,e[84]=Z,e[85]=J):J=e[85];let re;e[86]!==i?(re=i("taskBoard.taskFilters.assigneeGroupMembers"),e[86]=i,e[87]=re):re=e[87];let Y;if(e[88]!==n||e[89]!==p){let I;e[91]!==p?(I=H=>l.jsxs(Oe,{value:H.user?.name??H.userId,onSelect:()=>p(H.userId),className:"gap-2",children:[l.jsx(Le,{url:H.user?.image??void 0,fallback:Me(H.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate",children:H.user?.name??H.userId})]},H.userId),e[91]=p,e[92]=I):I=e[92],Y=n.map(I),e[88]=n,e[89]=p,e[90]=Y}else Y=e[90];let ne;e[93]!==re||e[94]!==Y?(ne=l.jsx(Xe,{heading:re,children:Y}),e[93]=re,e[94]=Y,e[95]=ne):ne=e[95];let ce;e[96]!==E||e[97]!==J||e[98]!==ne?(ce=l.jsxs(ss,{children:[E,J,ne]}),e[96]=E,e[97]=J,e[98]=ne,e[99]=ce):ce=e[99];let ue;e[100]!==C||e[101]!==ce?(ue=l.jsx(kt,{align:"start",className:"w-56 p-0",children:l.jsxs(ns,{children:[C,ce]})}),e[100]=C,e[101]=ce,e[102]=ue):ue=e[102];let le;return e[103]!==c||e[104]!==S||e[105]!==ue?(le=l.jsxs(bt,{open:c,onOpenChange:o,children:[S,ue]}),e[103]=c,e[104]=S,e[105]=ue,e[106]=le):le=e[106],le}function Af(t){const e=R.c(33),{value:s,onChange:n,block:r}=t,a=X(),i=s!==null;let c;e[0]!==r||e[1]!==i?(c=as(i,r),e[0]=r,e[1]=i,e[2]=c):c=e[2];const o=c,d=r&&"ml-auto";let u;e[3]!==d?(u=F("shrink-0 opacity-60",d),e[3]=d,e[4]=u):u=e[4];const f=u;let h;e[5]!==s?(h=s?l.jsx("span",{className:F("size-2 shrink-0 rounded-full",ze[s].dotClassName)}):l.jsx(io,{size:14,className:"shrink-0"}),e[5]=s,e[6]=h):h=e[6];let x;e[7]!==a||e[8]!==s?(x=a(s?ze[s].labelKey:"taskBoard.taskFilters.priorityLabel"),e[7]=a,e[8]=s,e[9]=x):x=e[9];let p;e[10]!==f?(p=l.jsx(Et,{size:12,className:f}),e[10]=f,e[11]=p):p=e[11];let g;e[12]!==h||e[13]!==x||e[14]!==p||e[15]!==o?(g=l.jsx(qe,{asChild:!0,children:l.jsxs("button",{type:"button",className:o,children:[h,x,p]})}),e[12]=h,e[13]=x,e[14]=p,e[15]=o,e[16]=g):g=e[16];const k=s??lr;let y;e[17]!==n?(y=S=>n(S===lr?null:S),e[17]=n,e[18]=y):y=e[18];let b;e[19]!==a?(b=a("taskBoard.taskFilters.priorityAnyPriority"),e[19]=a,e[20]=b):b=e[20];let m;e[21]!==b?(m=l.jsx(ta,{value:lr,children:b}),e[21]=b,e[22]=m):m=e[22];let j;e[23]!==a?(j=hr.map(S=>l.jsxs(ta,{value:S,className:"gap-2",children:[l.jsx("span",{className:F("size-2 rounded-full",ze[S].dotClassName)}),a(ze[S].labelKey)]},S)),e[23]=a,e[24]=j):j=e[24];let v;e[25]!==y||e[26]!==m||e[27]!==j||e[28]!==k?(v=l.jsx(Ke,{align:"start",className:"w-40",children:l.jsxs(Gi,{value:k,onValueChange:y,children:[m,j]})}),e[25]=y,e[26]=m,e[27]=j,e[28]=k,e[29]=v):v=e[29];let w;return e[30]!==v||e[31]!==g?(w=l.jsxs(Ue,{children:[g,v]}),e[30]=v,e[31]=g,e[32]=w):w=e[32],w}function Df(t){const e=R.c(35),{value:s,onChange:n,block:r}=t,a=X();let i;e[0]!==a||e[1]!==s?(i=s?a(ra(s)):void 0,e[0]=a,e[1]=s,e[2]=i):i=e[2];const c=i,o=s!==null;let d;e[3]!==r||e[4]!==o?(d=as(o,r),e[3]=r,e[4]=o,e[5]=d):d=e[5];const u=d,f=r&&"ml-auto";let h;e[6]!==f?(h=F("shrink-0 opacity-60",f),e[6]=f,e[7]=h):h=e[7];const x=h;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(xt,{size:14,className:"shrink-0"}),e[8]=p):p=e[8];let g;e[9]!==c||e[10]!==a?(g=c??a("taskBoard.taskFilters.dueDateLabel"),e[9]=c,e[10]=a,e[11]=g):g=e[11];let k;e[12]!==x?(k=l.jsx(Et,{size:12,className:x}),e[12]=x,e[13]=k):k=e[13];let y;e[14]!==g||e[15]!==k||e[16]!==u?(y=l.jsx(qe,{asChild:!0,children:l.jsxs("button",{type:"button",className:u,children:[p,g,k]})}),e[14]=g,e[15]=k,e[16]=u,e[17]=y):y=e[17];const b=s??lr;let m;e[18]!==n?(m=C=>n(C===lr?null:C),e[18]=n,e[19]=m):m=e[19];let j;e[20]===Symbol.for("react.memo_cache_sentinel")?(j=l.jsx(xt,{size:16,className:"text-muted-foreground"}),e[20]=j):j=e[20];let v;e[21]!==a?(v=a("taskBoard.taskFilters.dueDateAnyTime"),e[21]=a,e[22]=v):v=e[22];let w;e[23]!==v?(w=l.jsxs(ta,{value:lr,className:"gap-2",children:[j,v]}),e[23]=v,e[24]=w):w=e[24];let S;e[25]!==a?(S=co.map(C=>{const D=C==="overdue";return l.jsxs(ta,{value:C,className:F("gap-2",D&&"text-destructive"),children:[l.jsx(xt,{size:16,className:F("shrink-0",D?"text-destructive":"text-muted-foreground")}),a(ra(C))]},C)}),e[25]=a,e[26]=S):S=e[26];let N;e[27]!==b||e[28]!==m||e[29]!==w||e[30]!==S?(N=l.jsx(Ke,{align:"start",className:"w-44",children:l.jsxs(Gi,{value:b,onValueChange:m,children:[w,S]})}),e[27]=b,e[28]=m,e[29]=w,e[30]=S,e[31]=N):N=e[31];let T;return e[32]!==N||e[33]!==y?(T=l.jsxs(Ue,{children:[y,N]}),e[32]=N,e[33]=y,e[34]=T):T=e[34],T}function $f(t){const e=R.c(56),{value:s,tags:n,onChange:r,block:a}=t,i=X(),[c,o]=q.useState(!1);let d;e[0]!==r||e[1]!==s?(d=A=>r(s.includes(A)?s.filter(z=>z!==A):[...s,A]),e[0]=r,e[1]=s,e[2]=d):d=e[2];const u=d;let f;e[3]!==i||e[4]!==n||e[5]!==s[0]||e[6]!==s.length?(f=s.length===0?i("taskBoard.taskFilters.tagsLabel"):s.length===1?n.find(A=>A.id===s[0])?.name??i("taskBoard.taskFilters.tagsLabel"):i("taskBoard.taskFilters.tagsSelectedCount",{count:s.length}),e[3]=i,e[4]=n,e[5]=s[0],e[6]=s.length,e[7]=f):f=e[7];const h=f,x=s.length>0;let p;e[8]!==a||e[9]!==x?(p=as(x,a),e[8]=a,e[9]=x,e[10]=p):p=e[10];const g=p,k=a&&"ml-auto";let y;e[11]!==k?(y=F("shrink-0 opacity-60",k),e[11]=k,e[12]=y):y=e[12];const b=y;let m;e[13]!==n||e[14]!==s[0]||e[15]!==s.length?(m=s.length===1?l.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:zt(n.find(A=>A.id===s[0])?.color)}}):l.jsx(sa,{size:14,className:"shrink-0"}),e[13]=n,e[14]=s[0],e[15]=s.length,e[16]=m):m=e[16];let j;e[17]!==h?(j=l.jsx("span",{className:"max-w-[10rem] truncate",children:h}),e[17]=h,e[18]=j):j=e[18];let v;e[19]!==b?(v=l.jsx(Et,{size:12,className:b}),e[19]=b,e[20]=v):v=e[20];let w;e[21]!==m||e[22]!==j||e[23]!==v||e[24]!==g?(w=l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:g,children:[m,j,v]})}),e[21]=m,e[22]=j,e[23]=v,e[24]=g,e[25]=w):w=e[25];let S;e[26]!==i?(S=i("taskBoard.taskFilters.tagsFilterPlaceholder"),e[26]=i,e[27]=S):S=e[27];let N;e[28]!==i?(N=i("taskBoard.taskFilters.tagsFilterPlaceholder"),e[28]=i,e[29]=N):N=e[29];let T;e[30]!==S||e[31]!==N?(T=l.jsx(es,{placeholder:S,"aria-label":N,className:"h-9"}),e[30]=S,e[31]=N,e[32]=T):T=e[32];let C;e[33]!==i?(C=i("taskBoard.taskFilters.tagsNoTagsFound"),e[33]=i,e[34]=C):C=e[34];let D;e[35]!==C?(D=l.jsx(ts,{children:C}),e[35]=C,e[36]=D):D=e[36];let E;if(e[37]!==n||e[38]!==u||e[39]!==s){let A;e[41]!==u||e[42]!==s?(A=z=>l.jsxs(Oe,{value:z.name,onSelect:()=>u(z.id),className:"gap-2",children:[l.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:zt(z.color)}}),l.jsx("span",{className:"flex-1 truncate",children:z.name}),s.includes(z.id)&&l.jsx(Rt,{size:14,className:"shrink-0 text-foreground"})]},z.id),e[41]=u,e[42]=s,e[43]=A):A=e[43],E=n.map(A),e[37]=n,e[38]=u,e[39]=s,e[40]=E}else E=e[40];let $;e[44]!==E?($=l.jsx(Xe,{children:E}),e[44]=E,e[45]=$):$=e[45];let L;e[46]!==D||e[47]!==$?(L=l.jsxs(ss,{children:[D,$]}),e[46]=D,e[47]=$,e[48]=L):L=e[48];let M;e[49]!==T||e[50]!==L?(M=l.jsx(kt,{align:"start",className:"w-56 p-0",children:l.jsxs(ns,{children:[T,L]})}),e[49]=T,e[50]=L,e[51]=M):M=e[51];let B;return e[52]!==c||e[53]!==w||e[54]!==M?(B=l.jsxs(bt,{open:c,onOpenChange:o,children:[w,M]}),e[52]=c,e[53]=w,e[54]=M,e[55]=B):B=e[55],B}function ui(t){const e=R.c(11),{entry:s,selected:n,onSelect:r}=t,a=s.id,i=s.title;let c;e[0]!==s.projects?(c=s.projects.map(Rf).join(" "),e[0]=s.projects,e[1]=c):c=e[1];const o=`${a} ${i} ${s.repo??""} ${c}`;let d;e[2]!==s?(d=l.jsx($l,{entry:s}),e[2]=s,e[3]=d):d=e[3];let u;e[4]!==n?(u=n&&l.jsx(Rt,{size:14,className:"shrink-0 text-foreground"}),e[4]=n,e[5]=u):u=e[5];let f;return e[6]!==r||e[7]!==o||e[8]!==d||e[9]!==u?(f=l.jsxs(Oe,{value:o,onSelect:r,className:"gap-2",children:[d,u]}),e[6]=r,e[7]=o,e[8]=d,e[9]=u,e[10]=f):f=e[10],f}function Rf(t){return t.title}function zf(t,e,s,n){return t===null||!s?n("taskBoard.taskFilters.projectLabel"):t===cr?n("taskBoard.taskFilters.projectNone"):e?.title??t}function Ef(t){const e=R.c(90),{value:s,index:n,onChange:r,block:a}=t,i=X(),[c,o]=q.useState(!1);let d,u,f,h,x,p,g,k,y,b,m,j,v,w;if(e[0]!==a||e[1]!==n||e[2]!==r||e[3]!==c||e[4]!==i||e[5]!==s){const D=s===null?void 0:yr(s,n),E=Cr(s,n),$=zf(s,D,E,i);let L;e[20]!==r?(L=de=>{r(de),o(!1)},e[20]=r,e[21]=L):L=e[21];const M=L,B=n.entries.filter(Lf),A=n.entries.filter(If),z=as(E,a),K=a&&"ml-auto";let U;e[22]!==K?(U=F("shrink-0 opacity-60",K),e[22]=K,e[23]=U):U=e[23];const Q=U;h=bt,v=c,w=o;const ee=E?D:void 0;let O;e[24]!==ee?(O=l.jsx(Vt,{entry:ee}),e[24]=ee,e[25]=O):O=e[25];let te;e[26]!==$?(te=l.jsx("span",{className:"max-w-[12rem] truncate",children:$}),e[26]=$,e[27]=te):te=e[27];let W;e[28]!==Q?(W=l.jsx(Et,{size:12,className:Q}),e[28]=Q,e[29]=W):W=e[29],e[30]!==O||e[31]!==te||e[32]!==W||e[33]!==z?(p=l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:z,children:[O,te,W]})}),e[30]=O,e[31]=te,e[32]=W,e[33]=z,e[34]=p):p=e[34],f=kt,m="start",j="w-72 p-0",u=ns;let Z;e[35]!==i?(Z=i("taskBoard.taskFilters.projectFilterPlaceholder"),e[35]=i,e[36]=Z):Z=e[36];let J;e[37]!==i?(J=i("taskBoard.taskFilters.projectFilterPlaceholder"),e[37]=i,e[38]=J):J=e[38],e[39]!==Z||e[40]!==J?(b=l.jsx(es,{placeholder:Z,"aria-label":J,className:"h-9"}),e[39]=Z,e[40]=J,e[41]=b):b=e[41],d=ss;let re;e[42]!==i?(re=i("taskBoard.taskFilters.projectNoneFound"),e[42]=i,e[43]=re):re=e[43],e[44]!==re?(x=l.jsx(ts,{children:re}),e[44]=re,e[45]=x):x=e[45];let Y;e[46]!==i?(Y=i("taskBoard.taskFilters.projectAny"),e[46]=i,e[47]=Y):Y=e[47];let ne;e[48]!==M?(ne=()=>M(null),e[48]=M,e[49]=ne):ne=e[49];let ce;e[50]!==i?(ce=i("taskBoard.taskFilters.projectAny"),e[50]=i,e[51]=ce):ce=e[51];let ue;e[52]!==Y||e[53]!==ne||e[54]!==ce?(ue=l.jsx(Oe,{value:Y,onSelect:ne,children:ce}),e[52]=Y,e[53]=ne,e[54]=ce,e[55]=ue):ue=e[55];let le;e[56]!==i?(le=i("taskBoard.taskFilters.projectNone"),e[56]=i,e[57]=le):le=e[57];let I;e[58]!==M?(I=()=>M(cr),e[58]=M,e[59]=I):I=e[59];let H;e[60]!==i?(H=i("taskBoard.taskFilters.projectNone"),e[60]=i,e[61]=H):H=e[61];let fe;e[62]!==le||e[63]!==I||e[64]!==H?(fe=l.jsx(Oe,{value:le,onSelect:I,children:H}),e[62]=le,e[63]=I,e[64]=H,e[65]=fe):fe=e[65],e[66]!==ue||e[67]!==fe?(g=l.jsxs(Xe,{children:[ue,fe]}),e[66]=ue,e[67]=fe,e[68]=g):g=e[68],k=B.length>0&&l.jsx(Xe,{heading:i("taskBoard.taskFilters.projectGroupProjects"),children:B.map(de=>l.jsx(ui,{entry:de,selected:D===de,onSelect:()=>M(de.id)},de.id))}),y=A.length>0&&l.jsx(Xe,{heading:i("taskBoard.taskFilters.projectGroupRepos"),children:A.map(de=>l.jsx(ui,{entry:de,selected:D===de,onSelect:()=>M(de.id)},de.id))}),e[0]=a,e[1]=n,e[2]=r,e[3]=c,e[4]=i,e[5]=s,e[6]=d,e[7]=u,e[8]=f,e[9]=h,e[10]=x,e[11]=p,e[12]=g,e[13]=k,e[14]=y,e[15]=b,e[16]=m,e[17]=j,e[18]=v,e[19]=w}else d=e[6],u=e[7],f=e[8],h=e[9],x=e[10],p=e[11],g=e[12],k=e[13],y=e[14],b=e[15],m=e[16],j=e[17],v=e[18],w=e[19];let S;e[69]!==d||e[70]!==x||e[71]!==g||e[72]!==k||e[73]!==y?(S=l.jsxs(d,{children:[x,g,k,y]}),e[69]=d,e[70]=x,e[71]=g,e[72]=k,e[73]=y,e[74]=S):S=e[74];let N;e[75]!==u||e[76]!==S||e[77]!==b?(N=l.jsxs(u,{children:[b,S]}),e[75]=u,e[76]=S,e[77]=b,e[78]=N):N=e[78];let T;e[79]!==f||e[80]!==N||e[81]!==m||e[82]!==j?(T=l.jsx(f,{align:m,className:j,children:N}),e[79]=f,e[80]=N,e[81]=m,e[82]=j,e[83]=T):T=e[83];let C;return e[84]!==h||e[85]!==p||e[86]!==T||e[87]!==v||e[88]!==w?(C=l.jsxs(h,{open:v,onOpenChange:w,children:[p,T]}),e[84]=h,e[85]=p,e[86]=T,e[87]=v,e[88]=w,e[89]=C):C=e[89],C}function If(t){return t.projects.length===0}function Lf(t){return t.projects.length>0}function Mf(t){const e=R.c(25),{value:s,onChange:n,block:r}=t,a=X(),[i,c]=q.useState(s!==""),[o,d]=q.useState(!1),[u,f]=q.useState(s);s!==u&&(f(s),s===""&&!o&&c(!1));const h=i||r,x=h?"w-32 sm:w-44":"w-8 px-0 justify-center",p=r&&"h-10 w-full px-3 text-sm sm:w-full";let g;e[0]!==x||e[1]!==p?(g=F("inline-flex h-8 shrink-0 items-center gap-1.5 overflow-hidden rounded-lg border border-border px-2.5 text-xs text-foreground transition-all duration-200 ease-out",x,p),e[0]=x,e[1]=p,e[2]=g):g=e[2];let k;e[3]!==a?(k=a("taskBoard.taskFilters.searchLabel"),e[3]=a,e[4]=k):k=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=()=>c(!0),e[5]=y):y=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b=l.jsx(qc,{size:14}),e[6]=b):b=e[6];let m;e[7]!==k?(m=l.jsx("button",{type:"button","aria-label":k,onClick:y,className:"shrink-0 text-muted-foreground transition-colors hover:text-foreground",children:b}),e[7]=k,e[8]=m):m=e[8];let j;e[9]!==r||e[10]!==h||e[11]!==n||e[12]!==a||e[13]!==s?(j=h&&l.jsx("input",{autoFocus:!r,value:s,onChange:S=>n(S.target.value),onFocus:()=>d(!0),onBlur:()=>{d(!1),s===""&&c(!1)},onKeyDown:S=>{S.key==="Escape"&&(n(""),r||c(!1))},placeholder:a("taskBoard.taskFilters.searchPlaceholder"),"aria-label":a("taskBoard.taskFilters.searchPlaceholder"),className:"w-full min-w-0 bg-transparent text-xs outline-none placeholder:text-muted-foreground"}),e[9]=r,e[10]=h,e[11]=n,e[12]=a,e[13]=s,e[14]=j):j=e[14];let v;e[15]!==r||e[16]!==n||e[17]!==a||e[18]!==s?(v=s!==""&&l.jsx("button",{type:"button","aria-label":a("taskBoard.taskFilters.searchClearLabel"),onMouseDown:Pf,onClick:()=>{n(""),r||c(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:l.jsx(Yt,{size:14})}),e[15]=r,e[16]=n,e[17]=a,e[18]=s,e[19]=v):v=e[19];let w;return e[20]!==g||e[21]!==m||e[22]!==j||e[23]!==v?(w=l.jsxs("div",{className:g,children:[m,j,v]}),e[20]=g,e[21]=m,e[22]=j,e[23]=v,e[24]=w):w=e[24],w}function Pf(t){return t.preventDefault()}function Ff(t){const e=R.c(20),{block:s,onClick:n}=t,r=X();let a;e[0]!==r?(a=r("taskBoard.taskFilters.boardSettingsLabel"),e[0]=r,e[1]=a):a=e[1];const i=a;let c;e[2]!==s?(c=F(as(!1,s),s?"h-10 w-full":"w-8 justify-center px-0"),e[2]=s,e[3]=c):c=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(oo,{size:14,className:"shrink-0"}),e[4]=o):o=e[4];let d;e[5]!==s||e[6]!==i?(d=s&&l.jsx("span",{children:i}),e[5]=s,e[6]=i,e[7]=d):d=e[7];let u;e[8]!==i||e[9]!==n||e[10]!==c||e[11]!==d?(u=l.jsxs("button",{type:"button",onClick:n,"aria-label":i,className:c,children:[o,d]}),e[8]=i,e[9]=n,e[10]=c,e[11]=d,e[12]=u):u=e[12];const f=u;if(s)return f;let h;e[13]!==f?(h=l.jsx(no,{asChild:!0,children:f}),e[13]=f,e[14]=h):h=e[14];let x;e[15]!==i?(x=l.jsx(ro,{side:"top",children:i}),e[15]=i,e[16]=x):x=e[16];let p;return e[17]!==h||e[18]!==x?(p=l.jsxs(ao,{children:[h,x]}),e[17]=h,e[18]=x,e[19]=p):p=e[19],p}function zo(t){const e=R.c(53),{filters:s,members:n,tags:r,index:a,onChange:i,onOpenBoardSettings:c,block:o}=t;let d;e[0]!==s||e[1]!==i?(d=w=>i({...s,search:w}),e[0]=s,e[1]=i,e[2]=d):d=e[2];let u;e[3]!==o||e[4]!==s.search||e[5]!==d?(u=l.jsx(Mf,{block:o,value:s.search,onChange:d}),e[3]=o,e[4]=s.search,e[5]=d,e[6]=u):u=e[6];let f;e[7]!==s||e[8]!==i?(f=w=>i({...s,assignee:w}),e[7]=s,e[8]=i,e[9]=f):f=e[9];let h;e[10]!==o||e[11]!==s.assignee||e[12]!==n||e[13]!==f?(h=l.jsx(_f,{block:o,value:s.assignee,members:n,onChange:f}),e[10]=o,e[11]=s.assignee,e[12]=n,e[13]=f,e[14]=h):h=e[14];let x;e[15]!==s||e[16]!==i?(x=w=>i({...s,priority:w}),e[15]=s,e[16]=i,e[17]=x):x=e[17];let p;e[18]!==o||e[19]!==s.priority||e[20]!==x?(p=l.jsx(Af,{block:o,value:s.priority,onChange:x}),e[18]=o,e[19]=s.priority,e[20]=x,e[21]=p):p=e[21];let g;e[22]!==s||e[23]!==i?(g=w=>i({...s,due:w}),e[22]=s,e[23]=i,e[24]=g):g=e[24];let k;e[25]!==o||e[26]!==s.due||e[27]!==g?(k=l.jsx(Df,{block:o,value:s.due,onChange:g}),e[25]=o,e[26]=s.due,e[27]=g,e[28]=k):k=e[28];let y;e[29]!==s||e[30]!==i?(y=w=>i({...s,tags:w}),e[29]=s,e[30]=i,e[31]=y):y=e[31];let b;e[32]!==o||e[33]!==s.tags||e[34]!==y||e[35]!==r?(b=l.jsx($f,{block:o,value:s.tags,tags:r,onChange:y}),e[32]=o,e[33]=s.tags,e[34]=y,e[35]=r,e[36]=b):b=e[36];let m;e[37]!==o||e[38]!==s||e[39]!==a||e[40]!==i?(m=(a.entries.length>0||Cr(s.project,a))&&l.jsx(Ef,{block:o,value:s.project,index:a,onChange:w=>i({...s,project:w})}),e[37]=o,e[38]=s,e[39]=a,e[40]=i,e[41]=m):m=e[41];let j;e[42]!==o||e[43]!==c?(j=l.jsx(Ff,{block:o,onClick:c}),e[42]=o,e[43]=c,e[44]=j):j=e[44];let v;return e[45]!==b||e[46]!==m||e[47]!==j||e[48]!==u||e[49]!==h||e[50]!==p||e[51]!==k?(v=l.jsxs(l.Fragment,{children:[u,h,p,k,b,m,j]}),e[45]=b,e[46]=m,e[47]=j,e[48]=u,e[49]=h,e[50]=p,e[51]=k,e[52]=v):v=e[52],v}function Of(t){const e=R.c(16),{filters:s,members:n,tags:r,index:a,onChange:i,onOpenBoardSettings:c}=t,o=X();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(bl,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=d):d=e[0];let u;e[1]!==s||e[2]!==a||e[3]!==n||e[4]!==i||e[5]!==c||e[6]!==r?(u=l.jsx(zo,{filters:s,members:n,tags:r,index:a,onChange:i,onOpenBoardSettings:c}),e[1]=s,e[2]=a,e[3]=n,e[4]=i,e[5]=c,e[6]=r,e[7]=u):u=e[7];let f;e[8]!==s||e[9]!==a||e[10]!==i||e[11]!==o?(f=Tf(s,a)&&l.jsx("button",{type:"button",onClick:()=>i(ka),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:o("taskBoard.taskFilters.clearButton")}),e[8]=s,e[9]=a,e[10]=i,e[11]=o,e[12]=f):f=e[12];let h;return e[13]!==u||e[14]!==f?(h=l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[d,u,f]}),e[13]=u,e[14]=f,e[15]=h):h=e[15],h}function Hf(t){const e=R.c(41),{filters:s,members:n,tags:r,index:a,onChange:i,onOpenBoardSettings:c}=t,o=X(),[d,u]=q.useState(!1),f=Bf(s,a),h=f>0;let x;e[0]!==h?(x=as(h),e[0]=h,e[1]=x):x=e[1];const p=x;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(bl,{size:14,className:"shrink-0"}),e[2]=g):g=e[2];let k;e[3]!==o?(k=o("taskBoard.taskFilters.filterDrawerButtonLabel"),e[3]=o,e[4]=k):k=e[4];let y;e[5]!==f?(y=f>0&&l.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:f}),e[5]=f,e[6]=y):y=e[6];let b;e[7]!==k||e[8]!==y||e[9]!==p?(b=l.jsx(td,{asChild:!0,children:l.jsxs("button",{type:"button",className:p,children:[g,k,y]})}),e[7]=k,e[8]=y,e[9]=p,e[10]=b):b=e[10];let m;e[11]!==o?(m=o("taskBoard.taskFilters.filterDrawerTitle"),e[11]=o,e[12]=m):m=e[12];let j;e[13]!==m?(j=l.jsx(sd,{className:"px-4 pt-4 text-base font-medium text-foreground",children:m}),e[13]=m,e[14]=j):j=e[14];let v;e[15]!==s||e[16]!==a||e[17]!==n||e[18]!==i||e[19]!==c||e[20]!==r?(v=l.jsx("div",{className:"flex flex-col gap-2 p-4",children:l.jsx(zo,{block:!0,filters:s,members:n,tags:r,index:a,onChange:i,onOpenBoardSettings:c})}),e[15]=s,e[16]=a,e[17]=n,e[18]=i,e[19]=c,e[20]=r,e[21]=v):v=e[21];let w;e[22]!==f||e[23]!==i||e[24]!==o?(w=f>0&&l.jsx(pe,{variant:"outline",className:"flex-1",onClick:()=>i(ka),children:o("taskBoard.taskFilters.clearAllButton")}),e[22]=f,e[23]=i,e[24]=o,e[25]=w):w=e[25];let S;e[26]!==o?(S=o("taskBoard.taskFilters.doneButton"),e[26]=o,e[27]=S):S=e[27];let N;e[28]!==S?(N=l.jsx(nd,{asChild:!0,children:l.jsx(pe,{className:"flex-1",children:S})}),e[28]=S,e[29]=N):N=e[29];let T;e[30]!==w||e[31]!==N?(T=l.jsxs(rd,{className:"flex-row gap-2",children:[w,N]}),e[30]=w,e[31]=N,e[32]=T):T=e[32];let C;e[33]!==T||e[34]!==j||e[35]!==v?(C=l.jsxs(ad,{className:"p-0",children:[j,v,T]}),e[33]=T,e[34]=j,e[35]=v,e[36]=C):C=e[36];let D;return e[37]!==d||e[38]!==C||e[39]!==b?(D=l.jsxs(ld,{open:d,onOpenChange:u,direction:"bottom",children:[b,C]}),e[37]=d,e[38]=C,e[39]=b,e[40]=D):D=e[40],D}function Rl(){const t=R.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const s=pa(e).org;let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[1]=n):n=t[1];const{boardOrg:r}=Vi(n);return r&&r!==s?r:null}function qf(t){const e=R.c(12),{children:s}=t,{project:n}=Ge(),r=Rl(),{data:a,isLoading:i}=ko();if(!r)return s;if(i){let f;return e[0]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex h-full items-center justify-center",children:l.jsx(dt,{className:"size-5 text-muted-foreground"})}),e[0]=f):f=e[0],f}let c;e[1]!==a?.orgs||e[2]!==r?(c=a?.orgs.find(f=>f.slug===r),e[1]=a?.orgs,e[2]=r,e[3]=c):c=e[3];const o=c;if(!o)return s;let d;e[4]!==o.id||e[5]!==o.name||e[6]!==o.slug?(d={id:o.id,name:o.name,slug:o.slug,logo:null},e[4]=o.id,e[5]=o.name,e[6]=o.slug,e[7]=d):d=e[7];let u;return e[8]!==s||e[9]!==n||e[10]!==d?(u=l.jsx(_c,{org:d,project:n,children:s}),e[8]=s,e[9]=n,e[10]=d,e[11]=u):u=e[11],u}function fi(){const t=R.c(5),e=X(),s=Rl();if(!s)return null;let n;t[0]!==e||t[1]!==s?(n=e("taskBoard.analytics.bannerBoard",{org:s}),t[0]=e,t[1]=s,t[2]=n):n=t[2];let r;return t[3]!==n?(r=l.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:n}),t[3]=n,t[4]=r):r=t[4],r}function hi(){const t=R.c(38),e=X(),s=kl(),n=pa({strict:!1}).org??"",r=Rl(),{data:a}=ko();if(!a?.isTaskBoardAdmin)return null;let i;t[0]!==e?(i=e("taskBoard.analytics.orgCurrent"),t[0]=e,t[1]=i):i=t[1];let c;t[2]!==n||t[3]!==i?(c={value:n,label:i},t[2]=n,t[3]=i,t[4]=c):c=t[4];let o;if(t[5]!==a.orgs||t[6]!==n||t[7]!==c){let v;t[9]!==n?(v=w=>w.slug!==n,t[9]=n,t[10]=v):v=t[10],o=[c,...a.orgs.filter(v).map(Kf)],t[5]=a.orgs,t[6]=n,t[7]=c,t[8]=o}else o=t[8];const d=o,u=r??n;let f;t[11]!==s||t[12]!==n?(f=v=>s({to:".",search:w=>({...w,boardOrg:v===n?void 0:v}),replace:!0}),t[11]=s,t[12]=n,t[13]=f):f=t[13];let h;t[14]!==e?(h=e("taskBoard.analytics.orgPickerPlaceholder"),t[14]=e,t[15]=h):h=t[15];let x;t[16]!==e?(x=e("taskBoard.analytics.orgSearch"),t[16]=e,t[17]=x):x=t[17];let p;t[18]!==e?(p=e("taskBoard.analytics.orgEmpty"),t[18]=e,t[19]=p):p=t[19];let g;t[20]!==d||t[21]!==u||t[22]!==f||t[23]!==h||t[24]!==x||t[25]!==p?(g=l.jsx(Vd,{options:d,value:u,onChange:f,width:"w-[200px]",placeholder:h,searchPlaceholder:x,emptyMessage:p}),t[20]=d,t[21]=u,t[22]=f,t[23]=h,t[24]=x,t[25]=p,t[26]=g):g=t[26];let k;t[27]!==n?(k={org:n},t[27]=n,t[28]=k):k=t[28];let y;t[29]===Symbol.for("react.memo_cache_sentinel")?(y=l.jsx(Kc,{size:16}),t[29]=y):y=t[29];let b;t[30]!==e?(b=e("taskBoard.analytics.openAnalytics"),t[30]=e,t[31]=b):b=t[31];let m;t[32]!==b||t[33]!==k?(m=l.jsx(pe,{size:"sm",variant:"outline",asChild:!0,children:l.jsxs(Ac,{to:"/$org/taskboard-analytics",params:k,children:[y,b]})}),t[32]=b,t[33]=k,t[34]=m):m=t[34];let j;return t[35]!==m||t[36]!==g?(j=l.jsxs(l.Fragment,{children:[g,m]}),t[35]=m,t[36]=g,t[37]=j):j=t[37],j}function Kf(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function pr(t){const e=R.c(11),{size:s,className:n}=t,r=s===void 0?16:s;let a;e[0]!==n?(a=F("inline-flex shrink-0 items-center justify-center rounded-full",n),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i={width:r,height:r,backgroundColor:`${Dc}26`},e[2]=r,e[3]=i):i=e[3];const c=r*.6,o=r*.6;let d;e[4]!==c||e[5]!==o?(d=l.jsx("img",{src:$c,alt:"Reviewer",style:{width:c,height:o}}),e[4]=c,e[5]=o,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==i||e[9]!==d?(u=l.jsx("span",{className:a,style:i,children:d}),e[7]=a,e[8]=i,e[9]=d,e[10]=u):u=e[10],u}function Uf(t){const e=R.c(30),{editor:s}=t,n=X(),[r,a]=q.useState(!1),[i,c]=q.useState(""),[o,d]=q.useState(!1);let u;e[0]!==s?(u=s.isActive("link"),e[0]=s,e[1]=u):u=e[1];const f=u;let h;e[2]!==s||e[3]!==r?(h=()=>{if(r){a(!1);return}const S=s.getAttributes("link").href;c(typeof S=="string"?S:""),d(!1),a(!0)},e[2]=s,e[3]=r,e[4]=h):h=e[4];const x=h;let p;e[5]!==s?(p=()=>{s.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=s,e[6]=p):p=e[6];const g=p;let k;e[7]!==i||e[8]!==s||e[9]!==g?(k=()=>{const S=Rd(i);if(S===""){g();return}if(!zd(S)){d(!0);return}s.chain().focus().extendMarkRange("link").setLink({href:S}).run(),a(!1)},e[7]=i,e[8]=s,e[9]=g,e[10]=k):k=e[10];const y=k;let b;e[11]!==n?(b=n("markdownEditor.link"),e[11]=n,e[12]=b):b=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(Ou,{size:14}),e[13]=m):m=e[13];let j;e[14]!==f||e[15]!==b||e[16]!==x?(j=l.jsx(it,{active:f,label:b,onClick:x,children:m}),e[14]=f,e[15]=b,e[16]=x,e[17]=j):j=e[17];let v;e[18]!==f||e[19]!==y||e[20]!==i||e[21]!==s||e[22]!==o||e[23]!==r||e[24]!==g||e[25]!==n?(v=r&&l.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md border bg-popover p-1 shadow-md",onBlur:S=>{S.currentTarget.contains(S.relatedTarget)||a(!1)},children:[l.jsx("input",{autoFocus:!0,type:"text","aria-label":n("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:n("markdownEditor.linkPlaceholder"),value:i,onChange:S=>{c(S.target.value),d(!1)},onKeyDown:S=>{S.key==="Enter"?(S.preventDefault(),y()):S.key==="Escape"&&(S.preventDefault(),a(!1),s.chain().focus().run())},className:F("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),l.jsx(it,{active:!1,label:n("markdownEditor.linkApply"),onClick:y,children:l.jsx(Rt,{size:14})}),f&&l.jsx(it,{active:!1,label:n("markdownEditor.linkRemove"),onClick:g,children:l.jsx(Hu,{size:14})})]}),e[18]=f,e[19]=y,e[20]=i,e[21]=s,e[22]=o,e[23]=r,e[24]=g,e[25]=n,e[26]=v):v=e[26];let w;return e[27]!==j||e[28]!==v?(w=l.jsxs("div",{className:"relative",children:[j,v]}),e[27]=j,e[28]=v,e[29]=w):w=e[29],w}const rl=()=>{const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},pi=t=>{const e=R.c(2),{children:s}=t;let n;return e[0]!==s?(n=l.jsx("span",{className:"text-[11px] font-semibold leading-none",children:s}),e[0]=s,e[1]=n):n=e[1],n},Eo=[1,2,3],Wf=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Gf(t){const e=R.c(20),{editor:s}=t,n=X(),[r,a]=q.useState(null);let i;e[0]!==s?(i={editor:s,selector:Vf},e[0]=s,e[1]=i):i=e[1];const c=hu(i);let o;e[2]!==n?(o=n("markdownEditor.heading1"),e[2]=n,e[3]=o):o=e[3];let d;e[4]!==n?(d=n("markdownEditor.heading2"),e[4]=n,e[5]=d):d=e[5];let u;e[6]!==n?(u=n("markdownEditor.heading3"),e[6]=n,e[7]=u):u=e[7];let f;e[8]!==o||e[9]!==d||e[10]!==u?(f={1:o,2:d,3:u},e[8]=o,e[9]=d,e[10]=u,e[11]=f):f=e[11];const h=f;let x;e[12]!==s||e[13]!==h||e[14]!==r||e[15]!==c||e[16]!==n?(x=r&&l.jsxs(Bu,{editor:s,shouldShow:Wf,appendTo:r,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":n("markdownEditor.toolbarAriaLabel"),children:[l.jsx(it,{active:c.bold,label:n("markdownEditor.bold"),onClick:()=>s.chain().focus().toggleBold().run(),children:l.jsx(Uc,{size:14})}),l.jsx(it,{active:c.italic,label:n("markdownEditor.italic"),onClick:()=>s.chain().focus().toggleItalic().run(),children:l.jsx(Wc,{size:14})}),l.jsx(it,{active:c.strike,label:n("markdownEditor.strikethrough"),onClick:()=>s.chain().focus().toggleStrike().run(),children:l.jsx(Gc,{size:14})}),l.jsx(it,{active:c.code,label:n("markdownEditor.code"),onClick:()=>s.chain().focus().toggleCode().run(),children:l.jsx(Vc,{size:14})}),l.jsx(rl,{}),Eo.map((g,k)=>l.jsx(it,{active:c.headings[k]??!1,label:h[g],onClick:()=>s.chain().focus().toggleHeading({level:g}).run(),children:l.jsx(pi,{children:`H${g}`})},g)),l.jsx(rl,{}),l.jsx(it,{active:c.bulletList,label:n("markdownEditor.bulletList"),onClick:()=>s.chain().focus().toggleBulletList().run(),children:l.jsx(so,{size:14})}),l.jsx(it,{active:c.orderedList,label:n("markdownEditor.orderedList"),onClick:()=>s.chain().focus().toggleOrderedList().run(),children:l.jsx(pi,{children:"1."})}),l.jsx(it,{active:c.blockquote,label:n("markdownEditor.quote"),onClick:()=>s.chain().focus().toggleBlockquote().run(),children:l.jsx(Qc,{size:14})}),l.jsx(rl,{}),l.jsx(Uf,{editor:s})]}),e[12]=s,e[13]=h,e[14]=r,e[15]=c,e[16]=n,e[17]=x):x=e[17];let p;return e[18]!==x?(p=l.jsx("div",{ref:a,className:"relative z-20",children:x}),e[18]=x,e[19]=p):p=e[19],p}function Vf(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Eo.map(s=>e.isActive("heading",{level:s})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}function zl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ls=zl();function Io(t){ls=t}var Ut={exec:()=>null};function me(t,e=""){let s=typeof t=="string"?t:t.source,n={replace:(r,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(He.caret,"$1"),s=s.replace(r,i),n},getRegex:()=>new RegExp(s,e)};return n}var Qf=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),He={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}>`)},Yf=/^(?:[ \t]*(?:\n|$))+/,Zf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Xf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Br=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,El=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Lo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mo=me(Lo).replace(/bull/g,El).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),eh=me(Lo).replace(/bull/g,El).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Il=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,th=/^[^\n]+/,Ll=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,sh=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ll).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nh=me(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,El).getRegex(),ya="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ml=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rh=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ml).replace("tag",ya).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Po=me(Il).replace("hr",Br).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ya).getRegex(),ah=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Po).getRegex(),Pl={blockquote:ah,code:Zf,def:sh,fences:Xf,heading:Jf,hr:Br,html:rh,lheading:Mo,list:nh,newline:Yf,paragraph:Po,table:Ut,text:th},mi=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Br).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ya).getRegex(),lh={...Pl,lheading:eh,table:mi,paragraph:me(Il).replace("hr",Br).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ya).getRegex()},ih={...Pl,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ml).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ut,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(Il).replace("hr",Br).replace("heading",` *#{1,6} *[^
3
+ ]`).replace("lheading",Mo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},oh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ch=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Fo=/^( {2,}|\\)\n(?!\s*$)/,dh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mr=/[\p{P}\p{S}]/u,ja=/[\s\p{P}\p{S}]/u,Fl=/[^\s\p{P}\p{S}]/u,uh=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ja).getRegex(),Oo=/(?!~)[\p{P}\p{S}]/u,fh=/(?!~)[\s\p{P}\p{S}]/u,hh=/(?:[^\s\p{P}\p{S}]|~)/u,ph=me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Qf?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ho=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mh=me(Ho,"u").replace(/punct/g,mr).getRegex(),gh=me(Ho,"u").replace(/punct/g,Oo).getRegex(),qo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xh=me(qo,"gu").replace(/notPunctSpace/g,Fl).replace(/punctSpace/g,ja).replace(/punct/g,mr).getRegex(),kh=me(qo,"gu").replace(/notPunctSpace/g,hh).replace(/punctSpace/g,fh).replace(/punct/g,Oo).getRegex(),bh=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fl).replace(/punctSpace/g,ja).replace(/punct/g,mr).getRegex(),yh=me(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,mr).getRegex(),jh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vh=me(jh,"gu").replace(/notPunctSpace/g,Fl).replace(/punctSpace/g,ja).replace(/punct/g,mr).getRegex(),wh=me(/\\(punct)/,"gu").replace(/punct/g,mr).getRegex(),Sh=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nh=me(Ml).replace("(?:-->|$)","-->").getRegex(),Ch=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Nh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ca=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Th=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ca).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ko=me(/^!?\[(label)\]\[(ref)\]/).replace("label",ca).replace("ref",Ll).getRegex(),Uo=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ll).getRegex(),Bh=me("reflink|nolink(?!\\()","g").replace("reflink",Ko).replace("nolink",Uo).getRegex(),gi=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ol={_backpedal:Ut,anyPunctuation:wh,autolink:Sh,blockSkip:ph,br:Fo,code:ch,del:Ut,delLDelim:Ut,delRDelim:Ut,emStrongLDelim:mh,emStrongRDelimAst:xh,emStrongRDelimUnd:bh,escape:oh,link:Th,nolink:Uo,punctuation:uh,reflink:Ko,reflinkSearch:Bh,tag:Ch,text:dh,url:Ut},_h={...Ol,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",ca).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ca).getRegex()},ul={...Ol,emStrongRDelimAst:kh,emStrongLDelim:gh,delLDelim:yh,delRDelim:vh,url:me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",gi).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:me(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",gi).getRegex()},Ah={...ul,br:me(Fo).replace("{2,}","*").getRegex(),text:me(ul.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Vr={normal:Pl,gfm:lh,pedantic:ih},gr={normal:Ol,gfm:ul,breaks:Ah,pedantic:_h},Dh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xi=t=>Dh[t];function mt(t,e){if(e){if(He.escapeTest.test(t))return t.replace(He.escapeReplace,xi)}else if(He.escapeTestNoEncode.test(t))return t.replace(He.escapeReplaceNoEncode,xi);return t}function ki(t){try{t=encodeURI(t).replace(He.percentDecode,"%")}catch{return null}return t}function bi(t,e){let s=t.replace(He.findPipe,(a,i,c)=>{let o=!1,d=i;for(;--d>=0&&c[d]==="\\";)o=!o;return o?"|":" |"}),n=s.split(He.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(He.slashPipe,"|");return n}function xr(t,e,s){let n=t.length;if(n===0)return"";let r=0;for(;r<n&&t.charAt(n-r-1)===e;)r++;return t.slice(0,n-r)}function $h(t,e){if(t.indexOf(e[1])===-1)return-1;let s=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])s++;else if(t[n]===e[1]&&(s--,s<0))return n;return s>0?-2:-1}function Rh(t,e=0){let s=e,n="";for(let r of t)if(r===" "){let a=4-s%4;n+=" ".repeat(a),s+=a}else n+=r,s++;return n}function yi(t,e,s,n,r){let a=e.href,i=e.title||null,c=t[1].replace(r.other.outputLinkReplace,"$1");n.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:s,href:a,title:i,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,o}function zh(t,e,s){let n=t.match(s.other.indentCodeCompensation);if(n===null)return e;let r=n[1];return e.split(`
4
+ `).map(a=>{let i=a.match(s.other.beginningSpace);if(i===null)return a;let[c]=i;return c.length>=r.length?a.slice(r.length):a}).join(`
5
+ `)}var da=class{options;rules;lexer;constructor(t){this.options=t||ls}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let s=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?s:xr(s,`
6
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let s=e[0],n=zh(s,e[3]||"",this.rules);return{type:"code",raw:s,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let s=e[2].trim();if(this.rules.other.endingHash.test(s)){let n=xr(s,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(s=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:xr(e[0],`
7
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let s=xr(e[0],`
8
+ `).split(`
9
+ `),n="",r="",a=[];for(;s.length>0;){let i=!1,c=[],o;for(o=0;o<s.length;o++)if(this.rules.other.blockquoteStart.test(s[o]))c.push(s[o]),i=!0;else if(!i)c.push(s[o]);else break;s=s.slice(o);let d=c.join(`
10
+ `),u=d.replace(this.rules.other.blockquoteSetextReplace,`
11
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
12
+ ${d}`:d,r=r?`${r}
13
+ ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=f,s.length===0)break;let h=a.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let x=h,p=x.raw+`
14
+ `+s.join(`
15
+ `),g=this.blockquote(p);a[a.length-1]=g,n=n.substring(0,n.length-x.raw.length)+g.raw,r=r.substring(0,r.length-x.text.length)+g.text;break}else if(h?.type==="list"){let x=h,p=x.raw+`
16
+ `+s.join(`
17
+ `),g=this.list(p);a[a.length-1]=g,n=n.substring(0,n.length-h.raw.length)+g.raw,r=r.substring(0,r.length-x.raw.length)+g.raw,s=p.substring(a.at(-1).raw.length).split(`
18
+ `);continue}}return{type:"blockquote",raw:n,tokens:a,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let s=e[1].trim(),n=s.length>1,r={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");let a=this.rules.other.listItemRegex(s),i=!1;for(;t;){let o=!1,d="",u="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;d=e[0],t=t.substring(d.length);let f=Rh(e[2].split(`
19
+ `,1)[0],e[1].length),h=t.split(`
20
+ `,1)[0],x=!f.trim(),p=0;if(this.options.pedantic?(p=2,u=f.trimStart()):x?p=e[1].length+1:(p=f.search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=f.slice(p),p+=e[1].length),x&&this.rules.other.blankLine.test(h)&&(d+=h+`
21
+ `,t=t.substring(h.length+1),o=!0),!o){let g=this.rules.other.nextBulletRegex(p),k=this.rules.other.hrRegex(p),y=this.rules.other.fencesBeginRegex(p),b=this.rules.other.headingBeginRegex(p),m=this.rules.other.htmlBeginRegex(p),j=this.rules.other.blockquoteBeginRegex(p);for(;t;){let v=t.split(`
22
+ `,1)[0],w;if(h=v,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),w=h):w=h.replace(this.rules.other.tabCharGlobal," "),y.test(h)||b.test(h)||m.test(h)||j.test(h)||g.test(h)||k.test(h))break;if(w.search(this.rules.other.nonSpaceChar)>=p||!h.trim())u+=`
23
+ `+w.slice(p);else{if(x||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||y.test(f)||b.test(f)||k.test(f))break;u+=`
24
+ `+h}x=!h.trim(),d+=v+`
25
+ `,t=t.substring(v.length+1),f=w.slice(p)}}r.loose||(i?r.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(i=!0)),r.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),r.raw+=d}let c=r.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let o of r.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(o.raw);if(d){let u={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};o.checked=u.checked,r.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=u.raw+o.tokens[0].raw,o.tokens[0].text=u.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(u)):o.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):o.tokens.unshift(u)}}if(!r.loose){let d=o.tokens.filter(f=>f.type==="space"),u=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));r.loose=u}}if(r.loose)for(let o of r.items){o.loose=!0;for(let d of o.tokens)d.type==="text"&&(d.type="paragraph")}return r}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let s=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:s,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let s=bi(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
26
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(s.length===n.length){for(let i of n)this.rules.other.tableAlignRight.test(i)?a.align.push("right"):this.rules.other.tableAlignCenter.test(i)?a.align.push("center"):this.rules.other.tableAlignLeft.test(i)?a.align.push("left"):a.align.push(null);for(let i=0;i<s.length;i++)a.header.push({text:s[i],tokens:this.lexer.inline(s[i]),header:!0,align:a.align[i]});for(let i of r)a.rows.push(bi(i,a.header.length).map((c,o)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[o]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let s=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:s,tokens:this.lexer.inline(s)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let s=e[1].charAt(e[1].length-1)===`
27
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:s,tokens:this.lexer.inline(s)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let s=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let a=xr(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{let a=$h(e[2],"()");if(a===-2)return;if(a>-1){let i=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,i).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(n);a&&(n=a[1],r=a[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?n=n.slice(1):n=n.slice(1,-1)),yi(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){let n=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return yi(s,r,s[0],this.lexer,this.rules)}}emStrong(t,e,s=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||!n[1]&&!n[2]&&!n[3]&&!n[4]||n[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[3])||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,a,i,c=r,o=0,d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,e=e.slice(-1*t.length+r);(n=d.exec(e))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(i=[...a].length,n[3]||n[4]){c+=i;continue}else if((n[5]||n[6])&&r%3&&!((r+i)%3)){o+=i;continue}if(c-=i,c>0)continue;i=Math.min(i,i+c+o);let u=[...n[0]][0].length,f=t.slice(0,r+n.index+u+i);if(Math.min(r,i)%2){let x=f.slice(1,-1);return{type:"em",raw:f,text:x,tokens:this.lexer.inlineTokens(x)}}let h=f.slice(2,-2);return{type:"strong",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let s=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(s),r=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return n&&r&&(s=s.substring(1,s.length-1)),{type:"codespan",raw:e[0],text:s}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,s=""){let n=this.rules.inline.delLDelim.exec(t);if(n&&(!n[1]||!s||this.rules.inline.punctuation.exec(s))){let r=[...n[0]].length-1,a,i,c=r,o=this.rules.inline.delRDelim;for(o.lastIndex=0,e=e.slice(-1*t.length+r);(n=o.exec(e))!==null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a||(i=[...a].length,i!==r))continue;if(n[3]||n[4]){c+=i;continue}if(c-=i,c>0)continue;i=Math.min(i,i+c);let d=[...n[0]][0].length,u=t.slice(0,r+n.index+d+i),f=u.slice(r,-r);return{type:"del",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let s,n;return e[2]==="@"?(s=e[1],n="mailto:"+s):(s=e[1],n=s),{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);s=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let s=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:s}}}},ot=class fl{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ls,this.options.tokenizer=this.options.tokenizer||new da,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let s={other:He,block:Vr.normal,inline:gr.normal};this.options.pedantic?(s.block=Vr.pedantic,s.inline=gr.pedantic):this.options.gfm&&(s.block=Vr.gfm,this.options.breaks?s.inline=gr.breaks:s.inline=gr.gfm),this.tokenizer.rules=s}static get rules(){return{block:Vr,inline:gr}}static lex(e,s){return new fl(s).lex(e)}static lexInline(e,s){return new fl(s).inlineTokens(e)}lex(e){e=e.replace(He.carriageReturn,`
28
+ `),this.blockTokens(e,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let n=this.inlineQueue[s];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,s=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(He.tabCharGlobal," ").replace(He.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(i=>(r=i.call({lexer:this},e,s))?(e=e.substring(r.raw.length),s.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let i=s.at(-1);r.raw.length===1&&i!==void 0?i.raw+=`
29
+ `:s.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let i=s.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
30
+ `)?"":`
31
+ `)+r.raw,i.text+=`
32
+ `+r.text,this.inlineQueue.at(-1).src=i.text):s.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let i=s.at(-1);i?.type==="paragraph"||i?.type==="text"?(i.raw+=(i.raw.endsWith(`
33
+ `)?"":`
34
+ `)+r.raw,i.text+=`
35
+ `+r.raw,this.inlineQueue.at(-1).src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},s.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),s.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),s.push(r);continue}let a=e;if(this.options.extensions?.startBlock){let i=1/0,c=e.slice(1),o;this.options.extensions.startBlock.forEach(d=>{o=d.call({lexer:this},c),typeof o=="number"&&o>=0&&(i=Math.min(i,o))}),i<1/0&&i>=0&&(a=e.substring(0,i+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a))){let i=s.at(-1);n&&i?.type==="paragraph"?(i.raw+=(i.raw.endsWith(`
36
+ `)?"":`
37
+ `)+r.raw,i.text+=`
38
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):s.push(r),n=a.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let i=s.at(-1);i?.type==="text"?(i.raw+=(i.raw.endsWith(`
39
+ `)?"":`
40
+ `)+r.raw,i.text+=`
41
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):s.push(r);continue}if(e){let i="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(i);break}else throw new Error(i)}}return this.state.top=!0,s}inline(e,s=[]){return this.inlineQueue.push({src:e,tokens:s}),s}inlineTokens(e,s=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)o.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)a=r[2]?r[2].length:0,n=n.slice(0,r.index+a)+"["+"a".repeat(r[0].length-a-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,c="";for(;e;){i||(c=""),i=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},e,s))?(e=e.substring(o.raw.length),s.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let u=s.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):s.push(o);continue}if(o=this.tokenizer.emStrong(e,n,c)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.del(e,n,c)){e=e.substring(o.raw.length),s.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),s.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),s.push(o);continue}let d=e;if(this.options.extensions?.startInline){let u=1/0,f=e.slice(1),h;this.options.extensions.startInline.forEach(x=>{h=x.call({lexer:this},f),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(d=e.substring(0,u+1))}if(o=this.tokenizer.inlineText(d)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(c=o.raw.slice(-1)),i=!0;let u=s.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):s.push(o);continue}if(e){let u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return s}},ua=class{options;parser;constructor(t){this.options=t||ls}space(t){return""}code({text:t,lang:e,escaped:s}){let n=(e||"").match(He.notSpaceStart)?.[0],r=t.replace(He.endingNewline,"")+`
42
+ `;return n?'<pre><code class="language-'+mt(n)+'">'+(s?r:mt(r,!0))+`</code></pre>
43
+ `:"<pre><code>"+(s?r:mt(r,!0))+`</code></pre>
44
+ `}blockquote({tokens:t}){return`<blockquote>
45
+ ${this.parser.parse(t)}</blockquote>
46
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
47
+ `}hr(t){return`<hr>
48
+ `}list(t){let e=t.ordered,s=t.start,n="";for(let i=0;i<t.items.length;i++){let c=t.items[i];n+=this.listitem(c)}let r=e?"ol":"ul",a=e&&s!==1?' start="'+s+'"':"";return"<"+r+a+`>
49
+ `+n+"</"+r+`>
50
+ `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
51
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
52
+ `}table(t){let e="",s="";for(let r=0;r<t.header.length;r++)s+=this.tablecell(t.header[r]);e+=this.tablerow({text:s});let n="";for(let r=0;r<t.rows.length;r++){let a=t.rows[r];s="";for(let i=0;i<a.length;i++)s+=this.tablecell(a[i]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
53
+ <thead>
54
+ `+e+`</thead>
55
+ `+n+`</table>
56
+ `}tablerow({text:t}){return`<tr>
57
+ ${t}</tr>
58
+ `}tablecell(t){let e=this.parser.parseInline(t.tokens),s=t.header?"th":"td";return(t.align?`<${s} align="${t.align}">`:`<${s}>`)+e+`</${s}>
59
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${mt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:s}){let n=this.parser.parseInline(s),r=ki(t);if(r===null)return n;t=r;let a='<a href="'+t+'"';return e&&(a+=' title="'+mt(e)+'"'),a+=">"+n+"</a>",a}image({href:t,title:e,text:s,tokens:n}){n&&(s=this.parser.parseInline(n,this.parser.textRenderer));let r=ki(t);if(r===null)return mt(s);t=r;let a=`<img src="${t}" alt="${mt(s)}"`;return e&&(a+=` title="${mt(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:mt(t.text)}},Hl=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ct=class hl{options;renderer;textRenderer;constructor(e){this.options=e||ls,this.options.renderer=this.options.renderer||new ua,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Hl}static parse(e,s){return new hl(s).parse(e)}static parseInline(e,s){return new hl(s).parseInline(e)}parse(e){this.renderer.parser=this;let s="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let i=r,c=this.options.extensions.renderers[i.type].call({parser:this},i);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){s+=c||"";continue}}let a=r;switch(a.type){case"space":{s+=this.renderer.space(a);break}case"hr":{s+=this.renderer.hr(a);break}case"heading":{s+=this.renderer.heading(a);break}case"code":{s+=this.renderer.code(a);break}case"table":{s+=this.renderer.table(a);break}case"blockquote":{s+=this.renderer.blockquote(a);break}case"list":{s+=this.renderer.list(a);break}case"checkbox":{s+=this.renderer.checkbox(a);break}case"html":{s+=this.renderer.html(a);break}case"def":{s+=this.renderer.def(a);break}case"paragraph":{s+=this.renderer.paragraph(a);break}case"text":{s+=this.renderer.text(a);break}default:{let i='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(e,s=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let a=e[r];if(this.options.extensions?.renderers?.[a.type]){let c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=c||"";continue}}let i=a;switch(i.type){case"escape":{n+=s.text(i);break}case"html":{n+=s.html(i);break}case"link":{n+=s.link(i);break}case"image":{n+=s.image(i);break}case"checkbox":{n+=s.checkbox(i);break}case"strong":{n+=s.strong(i);break}case"em":{n+=s.em(i);break}case"codespan":{n+=s.codespan(i);break}case"br":{n+=s.br(i);break}case"del":{n+=s.del(i);break}case"text":{n+=s.text(i);break}default:{let c='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},br=class{options;block;constructor(t){this.options=t||ls}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?ot.lex:ot.lexInline}provideParser(t=this.block){return t?ct.parse:ct.parseInline}},Eh=class{defaults=zl();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ct;Renderer=ua;TextRenderer=Hl;Lexer=ot;Tokenizer=da;Hooks=br;constructor(...t){this.use(...t)}walkTokens(t,e){let s=[];for(let n of t)switch(s=s.concat(e.call(this,n)),n.type){case"table":{let r=n;for(let a of r.header)s=s.concat(this.walkTokens(a.tokens,e));for(let a of r.rows)for(let i of a)s=s.concat(this.walkTokens(i.tokens,e));break}case"list":{let r=n;s=s.concat(this.walkTokens(r.items,e));break}default:{let r=n;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(a=>{let i=r[a].flat(1/0);s=s.concat(this.walkTokens(i,e))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,e)))}}return s}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{let n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let a=e.renderers[r.name];a?e.renderers[r.name]=function(...i){let c=r.renderer.apply(this,i);return c===!1&&(c=a.apply(this,i)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[r.level];a?a.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),s.renderer){let r=this.defaults.renderer||new ua(this.defaults);for(let a in s.renderer){if(!(a in r))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,c=s.renderer[i],o=r[i];r[i]=(...d)=>{let u=c.apply(r,d);return u===!1&&(u=o.apply(r,d)),u||""}}n.renderer=r}if(s.tokenizer){let r=this.defaults.tokenizer||new da(this.defaults);for(let a in s.tokenizer){if(!(a in r))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,c=s.tokenizer[i],o=r[i];r[i]=(...d)=>{let u=c.apply(r,d);return u===!1&&(u=o.apply(r,d)),u}}n.tokenizer=r}if(s.hooks){let r=this.defaults.hooks||new br;for(let a in s.hooks){if(!(a in r))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,c=s.hooks[i],o=r[i];br.passThroughHooks.has(a)?r[i]=d=>{if(this.defaults.async&&br.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await c.call(r,d);return o.call(r,f)})();let u=c.call(r,d);return o.call(r,u)}:r[i]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await c.apply(r,d);return f===!1&&(f=await o.apply(r,d)),f})();let u=c.apply(r,d);return u===!1&&(u=o.apply(r,d)),u}}n.hooks=r}if(s.walkTokens){let r=this.defaults.walkTokens,a=s.walkTokens;n.walkTokens=function(i){let c=[];return c.push(a.call(this,i)),r&&(c=c.concat(r.call(this,i))),c}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ot.lex(t,e??this.defaults)}parser(t,e){return ct.parse(t,e??this.defaults)}parseMarkdown(t){return(e,s)=>{let n={...s},r={...this.defaults,...n},a=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&n.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let i=r.hooks?await r.hooks.preprocess(e):e,c=await(r.hooks?await r.hooks.provideLexer(t):t?ot.lex:ot.lexInline)(i,r),o=r.hooks?await r.hooks.processAllTokens(c):c;r.walkTokens&&await Promise.all(this.walkTokens(o,r.walkTokens));let d=await(r.hooks?await r.hooks.provideParser(t):t?ct.parse:ct.parseInline)(o,r);return r.hooks?await r.hooks.postprocess(d):d})().catch(a);try{r.hooks&&(e=r.hooks.preprocess(e));let i=(r.hooks?r.hooks.provideLexer(t):t?ot.lex:ot.lexInline)(e,r);r.hooks&&(i=r.hooks.processAllTokens(i)),r.walkTokens&&this.walkTokens(i,r.walkTokens);let c=(r.hooks?r.hooks.provideParser(t):t?ct.parse:ct.parseInline)(i,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(i){return a(i)}}}onError(t,e){return s=>{if(s.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+mt(s.message+"",!0)+"</pre>";return e?Promise.resolve(n):n}if(e)return Promise.reject(s);throw s}}},Jt=new Eh;function je(t,e){return Jt.parse(t,e)}je.options=je.setOptions=function(t){return Jt.setOptions(t),je.defaults=Jt.defaults,Io(je.defaults),je};je.getDefaults=zl;je.defaults=ls;je.use=function(...t){return Jt.use(...t),je.defaults=Jt.defaults,Io(je.defaults),je};je.walkTokens=function(t,e){return Jt.walkTokens(t,e)};je.parseInline=Jt.parseInline;je.Parser=ct;je.parser=ct.parse;je.Renderer=ua;je.TextRenderer=Hl;je.Lexer=ot;je.lexer=ot.lex;je.Tokenizer=da;je.Hooks=br;je.parse=je;je.options;je.setOptions;je.use;je.walkTokens;je.parseInline;ct.parse;ot.lex;const Ih=/\n[^\S\n]*(?:\n[^\S\n]*)+$/;function Lh(t){return t.flatMap((e,s)=>{var n;if(e.type==="space"||((n=t[s+1])===null||n===void 0?void 0:n.type)==="space")return[e];const r=(e.raw||"").match(Ih);return r?[{...e,raw:(e.raw||"").slice(0,-r[0].length)},{type:"space",raw:r[0]}]:[e]})}function Mh(t,e){const s=e.split(`
61
+ `).flatMap(n=>[n,""]).map(n=>`${t}${n}`).join(`
62
+ `);return s.slice(0,s.length-1)}function Ph(t,e){const s=[];return Array.from(t.entries()).forEach(([n,r])=>{if(!e){s.push(n);return}(e.marks||[]).find(a=>a.type===n&&wr(a.attrs,r.attrs))||s.push(n)}),s}function Fh(t,e){const s=[];return Array.from(e.entries()).forEach(([n,r])=>{const a=t.get(n);(!a||!wr(a.attrs,r.attrs))&&s.push({type:n,mark:r})}),s}function Oh(t,e,s,n){const r=!s,a=s&&(!s.marks||s.marks.length===0),i=s&&s.marks&&!n(e,new Map(s.marks.map(o=>[o.type,o]))),c=[];return(r||a||i)&&(s&&s.marks?Array.from(t.entries()).reverse().forEach(([o,d])=>{s.marks.find(u=>u.type===o&&wr(u.attrs,d.attrs))||c.push(o)}):(r||a)&&c.push(...Array.from(t.keys()).reverse())),c}function Hh(t,e){let s="";return Array.from(t.keys()).reverse().forEach(n=>{const r=e(n,t.get(n));r&&(s=r+s)}),t.clear(),s}function qh(t,e,s){let n="";return Array.from(t.entries()).forEach(([r,a])=>{const i=s(r,a);i&&(n+=i),e.set(r,a)}),n}function al(t){const e=(t.raw||t.text||"").match(/^(\s*)[-+*]\s+\[([ xX])\]\s+/);return e?{isTask:!0,checked:e[2].toLowerCase()==="x",indentLevel:e[1].length}:{isTask:!1,indentLevel:0}}function Qr(t,e){return typeof t!="string"?"json":e}const Kh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","circle","clippath","defs","ellipse","foreignobject","g","image","line","lineargradient","mask","path","polygon","polyline","radialgradient","rect","stop","switch","symbol","textpath","tspan","use","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]),Uh=/<\/?([a-zA-Z][\w-]*)/g;function Wh(t){const e=[];let s;for(;(s=Uh.exec(t))!==null;)e.push(s[1].toLowerCase());return e}function Gh(t){const e=t.toLowerCase();return e.includes("-")?!1:!Kh.has(e)}function Vh(t,e){return Wh(t).some(s=>Gh(s)?!e.has(s):!1)}var ji=class{constructor(t){var e,s,n,r,a;this.activeParseLexer=null,this.extensionRanks=new Map,this.baseExtensions=[],this.extensions=[],this.codeTypes=new Set,this.schemaParseDomTagsCache=null,this.inlineNodeTypesCache=null,this.lastParseResult=null,this.markedInstance=(e=t?.marked)!==null&&e!==void 0?e:je,this.indentStyle=(s=t==null||(n=t.indentation)===null||n===void 0?void 0:n.style)!==null&&s!==void 0?s:"space",this.indentSize=(r=t==null||(a=t.indentation)===null||a===void 0?void 0:a.size)!==null&&r!==void 0?r:2,this.baseExtensions=t?.extensions||[],t?.markedOptions&&typeof this.markedInstance.setOptions=="function"&&this.markedInstance.setOptions(t.markedOptions),this.registry=new Map,this.nodeTypeRegistry=new Map,t?.extensions&&(this.baseExtensions=t.extensions,pu(mu(t.extensions)).forEach(i=>this.registerExtension(i)))}get instance(){return this.markedInstance}get indentCharacter(){return this.indentStyle==="space"?" ":" "}get indentString(){return this.indentCharacter.repeat(this.indentSize)}hasMarked(){return!!this.markedInstance}registerExtension(t){var e,s;this.extensions.push(t);const n=wo(qt(t,"code")),r=t.name;n&&this.codeTypes.add(r),this.extensionRanks.has(r)||this.extensionRanks.set(r,this.extensionRanks.size);const a=qt(t,"markdownTokenName")||r,i=qt(t,"parseMarkdown"),c=qt(t,"renderMarkdown"),o=qt(t,"markdownTokenizer"),d=(e=qt(t,"markdownOptions"))!==null&&e!==void 0?e:null,u={tokenName:a,nodeName:r,parseMarkdown:i,renderMarkdown:c,isIndenting:(s=d?.indentsContent)!==null&&s!==void 0?s:!1,htmlReopen:d?.htmlReopen,tokenizer:o};if(a&&i){const f=this.registry.get(a)||[];f.push(u),this.registry.set(a,f)}if(c){const f=this.nodeTypeRegistry.get(r)||[];f.push(u),this.nodeTypeRegistry.set(r,f)}o&&this.hasMarked()&&this.registerTokenizer(o)}createLexer(){return new this.markedInstance.Lexer(this.markedInstance.defaults)}createTokenizerHelpers(t){return{inlineTokens:e=>t.inlineTokens(e),blockTokens:e=>t.blockTokens(e)}}tokenizeInline(t){var e;return((e=this.activeParseLexer)!==null&&e!==void 0?e:this.createLexer()).inlineTokens(t)}registerTokenizer(t){if(!this.hasMarked())return;const{name:e,start:s,level:n="inline",tokenize:r}=t,a=this.createTokenizerHelpers.bind(this),i=this.createLexer.bind(this);let c;s?c=typeof s=="function"?s:d=>d.indexOf(s):c=d=>{const u=r(d,[],this.createTokenizerHelpers(this.createLexer()));return u&&u.raw?d.indexOf(u.raw):-1};const o={name:e,level:n,start:c,tokenizer(d,u){const f=this.lexer?a(this.lexer):a(i()),h=r(d,u,f);if(h&&h.type)return{...h,type:h.type||e,raw:h.raw||"",tokens:h.tokens||[]}},childTokens:[]};this.markedInstance.use({extensions:[o]})}getHandlersForToken(t){try{return this.registry.get(t)||[]}catch{return[]}}getHandlerForToken(t){const e=this.getHandlersForToken(t);if(e.length>0)return e[0];const s=this.getHandlersForNodeType(t);return s.length>0?s[0]:void 0}getHandlersForNodeType(t){try{return this.nodeTypeRegistry.get(t)||[]}catch{return[]}}serialize(t){if(!t)return"";const e=this.renderNodes(t,t);return this.isEmptyOutput(e)?"":e}isEmptyOutput(t){return!t||t.trim()===""?!0:t.replace(/&nbsp;/g,"").replace(/\u00A0/g,"").trim()===""}parse(t){if(!this.hasMarked())throw new Error("No marked instance available for parsing");const e=this.activeParseLexer,s=this.createLexer();this.activeParseLexer=s;try{const n=s.lex(t);return{type:"doc",content:this.parseTokens(n,!0)}}finally{this.activeParseLexer=e}}parseTokens(t,e=!1){const s=e?Lh(t):t,n=s.reduce((i,c,o)=>(c.type!=="space"&&i.push(o),i),[]);let r=-1,a=0;return s.flatMap((i,c)=>{for(;a<n.length&&n[a]<c;)r=n[a],a+=1;if(e&&i.type==="space"){var o;const u=(o=n[a])!==null&&o!==void 0?o:-1;return this.createImplicitEmptyParagraphsFromSpace(i,r,u)}const d=this.parseToken(i,e);return d===null?[]:Array.isArray(d)?d:[d]})}createImplicitEmptyParagraphsFromSpace(t,e,s){const n=this.countParagraphSeparators(t.raw||"");if(n===0)return[];const r=Math.max(n-(e===-1||s===-1?0:1),0);return Array.from({length:r},()=>({type:"paragraph",content:[]}))}countParagraphSeparators(t){return(t.replace(/\r\n/g,`
63
+ `).match(/\n\n/g)||[]).length}parseToken(t,e=!1){if(!t.type)return null;if(t.type==="list")return this.parseListToken(t);const s=this.getHandlersForToken(t.type),n=this.createParseHelpers();if(s.find(r=>{if(!r.parseMarkdown)return!1;const a=r.parseMarkdown(t,n),i=this.normalizeParseResult(a);return i&&(!Array.isArray(i)||i.length>0)?(this.lastParseResult=i,!0):!1})&&this.lastParseResult){const r=this.lastParseResult;return this.lastParseResult=null,r}return this.parseFallbackToken(t,e)}parseListToken(t){if(!t.items||t.items.length===0)return this.parseTokenWithHandlers(t);const e=t.items.some(c=>al(c).isTask),s=t.items.some(c=>!al(c).isTask);if(!e||!s||this.getHandlersForToken("taskList").length===0)return this.parseTokenWithHandlers(t);const n=[];let r=[],a=null;for(let c=0;c<t.items.length;c+=1){const o=t.items[c],{isTask:d,checked:u,indentLevel:f}=al(o);let h=o;if(d){const p=(o.raw||o.text||"").split(`
64
+ `),g=p[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),k=g?g[2]:"";let y=[];if(p.length>1&&p.slice(1).join(`
65
+ `).trim()){const b=p.slice(1),m=b.filter(j=>j.trim());if(m.length>0){const j=Math.min(...m.map(w=>w.length-w.trimStart().length)),v=b.map(w=>w.trim()?w.slice(j):"").join(`
66
+ `).trim();v&&(y=this.markedInstance.lexer(`${v}
67
+ `))}}h={type:"taskItem",raw:"",mainContent:k,indentLevel:f,checked:u??!1,text:k,tokens:this.tokenizeInline(k),nestedTokens:y}}const x=d?"taskList":"list";a!==x?(r.length>0&&n.push({type:a,items:r}),r=[h],a=x):r.push(h)}r.length>0&&n.push({type:a,items:r});const i=[];for(let c=0;c<n.length;c+=1){const o=n[c],d={...t,type:o.type,items:o.items},u=this.parseToken(d);u&&(Array.isArray(u)?i.push(...u):i.push(u))}return i.length>0?i:null}parseTokenWithHandlers(t){if(!t.type)return null;const e=this.getHandlersForToken(t.type),s=this.createParseHelpers();if(e.find(n=>{if(!n.parseMarkdown)return!1;const r=n.parseMarkdown(t,s),a=this.normalizeParseResult(r);return a&&(!Array.isArray(a)||a.length>0)?(this.lastParseResult=a,!0):!1})&&this.lastParseResult){const n=this.lastParseResult;return this.lastParseResult=null,n}return this.parseFallbackToken(t)}createParseHelpers(){return{parseInline:t=>this.parseInlineTokens(t),tokenizeInline:t=>this.tokenizeInline(t),parseChildren:t=>this.parseTokens(t),parseBlockChildren:t=>this.parseTokens(t,!0),createTextNode:(t,e)=>({type:"text",text:t,marks:e||void 0}),createNode:(t,e,s)=>{const n={type:t,attrs:e||void 0,content:s||void 0};return(!e||Object.keys(e).length===0)&&delete n.attrs,n},applyMark:(t,e,s)=>({mark:t,content:e,attrs:s&&Object.keys(s).length>0?s:void 0})}}escapeRegex(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}parseInlineTokens(t){const e=[];for(let i=0;i<t.length;i+=1){const c=t[i];if(c.type==="text")e.push({type:"text",text:ri(c.text||"")});else if(c.type==="escape")e.push({type:"text",text:c.text||""});else if(c.type==="html"){var s,n;const o=((s=(n=c.raw)!==null&&n!==void 0?n:c.text)!==null&&s!==void 0?s:"").toString(),d=/^<\/[\s]*[\w-]+/i.test(o),u=o.match(/^<[\s]*([\w-]+)(\s|>|\/|$)/i);if(!d&&u&&!/\/>$/.test(o)){const h=u[1],x=this.escapeRegex(h),p=new RegExp(`^<\\/\\s*${x}\\b`,"i");let g=-1;const k=[o];for(let y=i+1;y<t.length;y+=1){var r,a;const b=t[y],m=((r=(a=b.raw)!==null&&a!==void 0?a:b.text)!==null&&r!==void 0?r:"").toString();if(k.push(m),b.type==="html"&&p.test(m)){g=y;break}}if(g!==-1){const y=k.join(""),b={type:"html",raw:y,text:y,block:!1},m=this.parseHTMLToken(b);if(m){const j=this.normalizeParseResult(m);Array.isArray(j)?e.push(...j):j&&e.push(j)}i=g;continue}}const f=this.parseHTMLToken(c);if(f){const h=this.normalizeParseResult(f);Array.isArray(h)?e.push(...h):h&&e.push(h)}}else if(c.type){const o=this.getHandlerForToken(c.type);if(o&&o.parseMarkdown){const d=this.createParseHelpers(),u=o.parseMarkdown(c,d);if(this.isMarkResult(u)){const f=this.applyMarkToContent(u.mark,u.content,u.attrs);e.push(...f)}else{const f=this.normalizeParseResult(u);Array.isArray(f)?e.push(...f):f&&e.push(f)}}else c.tokens&&e.push(...this.parseInlineTokens(c.tokens))}}for(let i=e.length-1;i>0;i-=1){const c=e[i],o=e[i-1];if(c.type==="text"&&o.type==="text"){const d=c.marks||[],u=o.marks||[];gu(d,u)&&(o.text=(o.text||"")+(c.text||""),e.splice(i,1))}}return e}applyMarkToContent(t,e,s){return e.map(n=>{if(n.type==="text"){const r=n.marks||[],a=s?{type:t,attrs:s}:{type:t};return{...n,marks:[...r,a]}}return{...n,content:n.content?this.applyMarkToContent(t,n.content,s):void 0}})}isMarkResult(t){return t&&typeof t=="object"&&"mark"in t}normalizeParseResult(t){return t?this.isMarkResult(t)?t.content:t:null}parseFallbackToken(t,e=!1){switch(t.type){case"paragraph":return{type:"paragraph",content:t.tokens?this.parseInlineTokens(t.tokens):[]};case"heading":return{type:"heading",attrs:{level:t.depth||1},content:t.tokens?this.parseInlineTokens(t.tokens):[]};case"text":return{type:"text",text:ri(t.text||"")};case"html":return this.parseHTMLToken(t);case"escape":return{type:"text",text:t.text||""};case"space":return null;default:return t.tokens?this.parseTokens(t.tokens,e):null}}parseHTMLToken(t){const e=t.text||t.raw||"";if(!e.trim())return null;if(this.isUnrecognizedHtml(e))return this.htmlAsLiteralText(e,!!t.block);if(typeof window>"u"||typeof window.DOMParser>"u")return this.htmlAsLiteralText(e,!!t.block);try{const s=xu(e,this.baseExtensions);if(s.type==="doc"&&s.content){if(t.block)return s.content;const n=this.toInlineContent(s.content);return n.length>0?n:null}return s}catch(s){throw new Error(`Failed to parse HTML in markdown: ${s}`)}}toInlineContent(t){const e=this.getInlineNodeTypes();return t.flatMap(s=>s.type&&e.has(s.type)?[s]:s.content?this.toInlineContent(s.content):[])}getInlineNodeTypes(){if(this.inlineNodeTypesCache)return this.inlineNodeTypesCache;const t=new Set(["text"]);try{const e=ai(this.baseExtensions);Object.values(e.nodes).forEach(s=>{s.isInline&&t.add(s.name)})}catch{}return this.inlineNodeTypesCache=t,t}isUnrecognizedHtml(t){return Vh(t,this.getSchemaParseDomTags())}getSchemaParseDomTags(){if(this.schemaParseDomTagsCache)return this.schemaParseDomTagsCache;const t=new Set;try{const e=ai(this.baseExtensions),s=n=>{const r=n?.parseDOM;Array.isArray(r)&&r.forEach(a=>{if(typeof a?.tag=="string"){const i=a.tag.match(/^[a-zA-Z][\w-]*/);i&&t.add(i[0].toLowerCase())}})};Object.values(e.nodes).forEach(n=>s(n.spec)),Object.values(e.marks).forEach(n=>s(n.spec))}catch{}return this.schemaParseDomTagsCache=t,t}htmlAsLiteralText(t,e){const s=t.replace(/\s+$/,"");return s?e?{type:"paragraph",content:[{type:"text",text:s}]}:{type:"text",text:s}:null}encodeTextForMarkdown(t,e,s){return s?.type!=null&&this.codeTypes.has(s.type)||(e.marks||[]).some(n=>this.codeTypes.has(typeof n=="string"?n:n.type))?t:this.escapeMarkdownSyntax(ku(t))}escapeMarkdownSyntax(t){return t.replace(/([\\`*_[\]~])/g,"\\$1")}renderNodeToMarkdown(t,e,s=0,n=0,r={}){var a;if(t.type==="text")return this.encodeTextForMarkdown(t.text||"",t,e);if(!t.type)return"";const i=this.getHandlerForToken(t.type);if(!i)return"";const c=Array.isArray(e?.content)&&s>0?e.content[s-1]:void 0,o={renderChildren:(u,f)=>{const h=i.isIndenting?n+1:n;return!Array.isArray(u)&&u.content?this.renderNodes(u.content,t,f||"",s,h):this.renderNodes(u,t,f||"",s,h)},renderChild:(u,f)=>{const h=i.isIndenting?n+1:n;return this.renderNodeToMarkdown(u,t,f,h)},indent:u=>this.indentString+u,wrapInBlock:Mh},d={index:s,level:n,parentType:e?.type,previousNode:c,meta:{parentAttrs:e?.attrs,...r}};return((a=i.renderMarkdown)===null||a===void 0?void 0:a.call(i,t,o,d))||""}renderNodes(t,e,s="",n=0,r=0){return Array.isArray(t)?this.renderNodesWithMarkBoundaries(t,e,s,r):t.type?this.renderNodeToMarkdown(t,e,n,r):""}renderNodesWithMarkBoundaries(t,e,s="",n=0){const r=[],a=new Map,i=new Set,c=new Map;return t.forEach((o,d)=>{const u=d<t.length-1?t[d+1]:null;if(o.type)if(o.type==="text"){let f=this.encodeTextForMarkdown(o.text||"",o,e);const h=new Map((o.marks||[]).map(v=>[v.type,v])),x=this.getMarksToOpenForSerialization(a,h,u),p=Ph(h,u),g=p.filter(v=>a.has(v)),k=g.length>0&&x.length>0;let y="";if(p.length>0&&!k){const v=f.match(/(\s+)$/);v&&(y=v[1],f=f.slice(0,-y.length))}k||p.slice().reverse().forEach(v=>{if(!a.has(v))return;const w=h.get(v),S=this.getMarkClosing(v,w,c.get(v));S&&(f+=S),a.has(v)&&(a.delete(v),c.delete(v))});let b="";if(x.length>0){const v=f.match(/^(\s+)/);v&&(b=v[1],f=f.slice(b.length))}x.forEach(({type:v,mark:w})=>{const S=i.has(v)?"html":"markdown",N=this.getMarkOpening(v,w,S);N&&(f=N+f),c.set(v,S),i.delete(v)}),k||x.slice().reverse().forEach(({type:v,mark:w})=>{a.set(v,w)}),f=b+f;let m;if(k){const v=new Set((u?.marks||[]).map(N=>N.type));x.forEach(({type:N})=>{v.has(N)&&this.getHtmlReopenTags(N)&&i.add(N)});const w=Array.from(a.keys()),S=g.slice().sort((N,T)=>w.indexOf(T)-w.indexOf(N));m=[...x.map(N=>N.type),...S]}else m=Oh(a,h,u,this.markSetsEqual.bind(this));let j="";if(m.length>0){const v=f.match(/(\s+)$/);v&&(j=v[1],f=f.slice(0,-j.length))}m.forEach(v=>{var w;const S=(w=a.get(v))!==null&&w!==void 0?w:h.get(v),N=this.getMarkClosing(v,S,c.get(v));N&&(f+=N),a.delete(v),c.delete(v)}),f+=j,f+=y,r.push(f)}else{const f=new Set((o.marks||[]).map(y=>y.type)),h=new Map,x=new Map;a.forEach((y,b)=>{if(f.has(b)){var m;h.set(b,y),x.set(b,(m=c.get(b))!==null&&m!==void 0?m:"markdown")}});const p=Hh(a,(y,b)=>this.getMarkClosing(y,b,c.get(y)));c.clear();const g=this.renderNodeToMarkdown(o,e,d,n),k=o.type==="hardBreak"?"":qh(h,a,(y,b)=>{var m;const j=(m=x.get(y))!==null&&m!==void 0?m:"markdown";return c.set(y,j),this.getMarkOpening(y,b,j)});r.push(p+g+k)}}),r.join(s)}getMarkOpening(t,e,s="markdown"){if(s==="html"){var n;return((n=this.getHtmlReopenTags(t))===null||n===void 0?void 0:n.open)||""}const r=this.getHandlersForNodeType(t),a=r.length>0?r[0]:void 0;if(!a||!a.renderMarkdown)return"";const i="__TIPTAP_MARKDOWN_PLACEHOLDER__",c={type:t,attrs:e.attrs||{},content:[{type:"text",text:i}]};try{const o=a.renderMarkdown(c,{renderChildren:()=>i,renderChild:()=>i,indent:u=>u,wrapInBlock:(u,f)=>u+f},{index:0,level:0,parentType:"text",meta:{}}),d=o.indexOf(i);return d>=0?o.substring(0,d):""}catch(o){throw new Error(`Failed to get mark opening for ${t}: ${o}`)}}getMarkClosing(t,e,s="markdown"){if(s==="html"){var n;return((n=this.getHtmlReopenTags(t))===null||n===void 0?void 0:n.close)||""}const r=this.getHandlersForNodeType(t),a=r.length>0?r[0]:void 0;if(!a||!a.renderMarkdown)return"";const i="__TIPTAP_MARKDOWN_PLACEHOLDER__",c={type:t,attrs:e.attrs||{},content:[{type:"text",text:i}]};try{const o=a.renderMarkdown(c,{renderChildren:()=>i,renderChild:()=>i,indent:f=>f,wrapInBlock:(f,h)=>f+h},{index:0,level:0,parentType:"text",meta:{}}),d=o.indexOf(i),u=d+33;return d>=0?o.substring(u):""}catch(o){throw new Error(`Failed to get mark closing for ${t}: ${o}`)}}getHtmlReopenTags(t){const e=this.getHandlersForNodeType(t),s=e.length>0?e[0]:void 0;return s?.htmlReopen}markSetsEqual(t,e){return t.size!==e.size?!1:Array.from(t.entries()).every(([s,n])=>{const r=e.get(s);return r&&wr(n.attrs,r.attrs)})}getMarksToOpenForSerialization(t,e,s){const n=Fh(t,e);if(n.length<=1)return n;const r=s?.marks||[],a=(d,u)=>r.some(f=>f.type===d&&wr(f.attrs,u)),i=(d,u)=>{var f,h;const x=(f=this.extensionRanks.get(d.type))!==null&&f!==void 0?f:Number.MAX_SAFE_INTEGER,p=(h=this.extensionRanks.get(u.type))!==null&&h!==void 0?h:Number.MAX_SAFE_INTEGER;return x!==p?p-x:d.type.localeCompare(u.type)},c=n.filter(d=>!a(d.type,d.mark.attrs)).sort(i),o=n.filter(d=>a(d.type,d.mark.attrs)).sort(i);return[...c,...o]}};const Wo=_l.create({name:"markdown",addOptions(){return{indentation:{style:"space",size:2},marked:void 0,markedOptions:{}}},addCommands(){return{setContent:(t,e)=>{if(!e?.contentType)return St.setContent(t,e);if(Qr(t,e?.contentType)!=="markdown"||!this.editor.markdown)return St.setContent(t,e);const s=this.editor.markdown.parse(t);return St.setContent(s,e)},insertContent:(t,e)=>{if(!e?.contentType)return St.insertContent(t,e);if(Qr(t,e?.contentType)!=="markdown"||!this.editor.markdown)return St.insertContent(t,e);const s=this.editor.markdown.parse(t);return St.insertContent(s,e)},insertContentAt:(t,e,s)=>{if(!s?.contentType)return St.insertContentAt(t,e,s);if(Qr(e,s?.contentType)!=="markdown"||!this.editor.markdown)return St.insertContentAt(t,e,s);const n=this.editor.markdown.parse(e);return St.insertContentAt(t,n,s)}}},addStorage(){return{manager:new ji({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:[]})}},onBeforeCreate(){var t;if(this.editor.markdown){console.error("[tiptap][markdown]: There is already a `markdown` property on the editor instance. This might lead to unexpected behavior.");return}if(this.storage.manager=new ji({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:this.editor.extensionManager.baseExtensions}),this.editor.markdown=this.storage.manager,this.editor.getMarkdown=()=>this.storage.manager.serialize(this.editor.getJSON()),!this.editor.options.contentType||Qr(this.editor.options.content,this.editor.options.contentType)!=="markdown")return;if(!this.editor.markdown)throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the Markdown extension is not added to the editor. Please add the Markdown extension to use this feature.');if(this.editor.options.content===void 0||typeof this.editor.options.content!="string")throw new Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the initial content is not a string. Please provide the initial content as a markdown string.');const e=this.editor.markdown.parse(this.editor.options.content);!((t=e.content)===null||t===void 0)&&t.length&&(this.editor.options.content=e)}});function fa(t){return t==="left"||t==="right"||t==="center"?t:null}function Qh(t){const e=(t.style.textAlign||"").trim().toLowerCase(),s=(t.getAttribute("align")||"").trim().toLowerCase();return fa(e||s)}function Yh(t){return fa(t?.align)}function Go(){return{default:null,parseHTML:t=>Qh(t),renderHTML:t=>t.align?{style:`text-align: ${t.align}`}:{}}}function Zh(t){var e;const s=t.parentElement,n=t.closest("table");if(!s||!n)return null;const r=Array.from(s.children).indexOf(t),a=(e=n.querySelectorAll("colgroup > col")[r])===null||e===void 0?void 0:e.getAttribute("width");return a?[parseInt(a,10)]:null}function Vo(t){const e=t.getAttribute("colwidth");return e?e.split(",").map(s=>parseInt(s,10)):Zh(t)}const Xh=/[ \t\r\n\f]+/g;function Qo(t){var e;return t.children.length>0?!1:((e=t.textContent)!==null&&e!==void 0?e:"").replace(Xh,"")===""}function Yo(t){const e=t.createAndFill();if(!e)throw new Error(`[tiptap error]: "${t.name}" has no default content to backfill.`);return e.content}const Jh=rs.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:Vo},align:Go()}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td",getAttrs:t=>Qo(t)?{}:!1,getContent:(t,e)=>Yo(e.nodes[this.name])},{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Ct(this.options.HTMLAttributes,t),0]}}),e1=rs.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:Vo},align:Go()}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th",getAttrs:t=>Qo(t)?{}:!1,getContent:(t,e)=>Yo(e.nodes[this.name])},{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Ct(this.options.HTMLAttributes,t),0]}}),t1=rs.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Ct(this.options.HTMLAttributes,t),0]}});function pl(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function vi(t,e,s,n,r,a){let i=0,c=!0,o=e.firstChild;const d=t.firstChild;if(d!==null)for(let h=0,x=0;h<d.childCount;h+=1){const{colspan:p,colwidth:g}=d.child(h).attrs;for(let k=0;k<p;k+=1,x+=1){const y=r===x?a:g&&g[k],b=y?`${y}px`:"";if(i+=y||n,y||(c=!1),o){if(o.style.width!==b){const[m,j]=pl(n,y);o.style.setProperty(m,j)}o=o.nextSibling}else{const m=document.createElement("col"),[j,v]=pl(n,y);m.style.setProperty(j,v),e.appendChild(m)}}}for(;o;){var u;const h=o.nextSibling;(u=o.parentNode)===null||u===void 0||u.removeChild(o),o=h}const f=t.attrs.style&&typeof t.attrs.style=="string"&&/\bwidth\s*:/i.test(t.attrs.style);c&&!f?(s.style.width=`${i}px`,s.style.minWidth=""):(s.style.width="",s.style.minWidth=`${i}px`)}var s1=class{constructor(t,e,s,n={}){this.node=t,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table"));for(const[r,a]of Object.entries(n))a!=null&&(r==="style"?this.table.style.cssText=String(a):this.table.setAttribute(r,String(a)));t.attrs.style&&(this.table.style.cssText=t.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),vi(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!==this.node.type?!1:(this.node=t,vi(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){const e=t.target,s=this.dom.contains(e),n=this.contentDOM.contains(e);return!!(s&&!n&&(t.type==="attributes"||t.type==="childList"||t.type==="characterData"))}};function n1(t,e,s,n){let r=0,a=!0;const i=[],c=t.firstChild;if(!c)return{};for(let u=0,f=0;u<c.childCount;u+=1){const{colspan:h,colwidth:x}=c.child(u).attrs;for(let p=0;p<h;p+=1,f+=1){const g=s===f?n:x&&x[p];r+=g||e,g||(a=!1);const[k,y]=pl(e,g);i.push(["col",{style:`${k}: ${y}`}])}}const o=a?`${r}px`:"",d=a?"":`${r}px`;return{colgroup:["colgroup",{},...i],tableWidth:o,tableMinWidth:d}}function wi(t,e){return t.createAndFill()}function r1(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(s=>{const n=t.nodes[s];n.spec.tableRole&&(e[n.spec.tableRole]=n)}),t.cached.tableNodeTypes=e,e}function a1(t,e,s,n,r){const a=r1(t),i=[],c=[];for(let d=0;d<s;d+=1){const u=wi(a.cell);if(u&&c.push(u),n){const f=wi(a.header_cell);f&&i.push(f)}}const o=[];for(let d=0;d<e;d+=1)o.push(a.row.createChecked(null,n&&d===0?i:c));return a.table.createChecked(null,o)}function l1(t){return t instanceof Bo}const Yr=({editor:t})=>{const{selection:e}=t.state;if(!l1(e))return!1;let s=0;const n=oa(e.ranges[0].$from,r=>r.type.name==="table");return n?.node.descendants(r=>{if(r.type.name==="table")return!1;["tableCell","tableHeader"].includes(r.type.name)&&(s+=1)}),s!==e.ranges.length?!1:(t.commands.deleteTable(),!0)};function Si(t,e){const s=t.mapping.map(e),n=oa(t.selection.$from,i=>i.type.name==="table");if(n?.pos===s)return;const r=t.doc.nodeAt(s);if(!r)return;const a=s+r.nodeSize-1;t.setSelection(So.near(t.doc.resolve(a),-1))}function i1(t){let e="",s=0;for(;s<t.length;){if(t[s]==="\\"&&s+1<t.length){e+=t[s]+t[s+1],s+=2;continue}if(t[s]!=="`"){e+=t[s++];continue}let n=0;for(;s+n<t.length&&t[s+n]==="`";)n+=1;let r=s+n,a=!1;for(;r<t.length;){if(t[r]!=="`"){r+=1;continue}let i=0;for(;r+i<t.length&&t[r+i]==="`";)i+=1;if(i===n){const c=t.slice(s+n,r);e+=t.slice(s,s+n)+c.replace(/\\\||\|/g,o=>o==="|"?"\\|":o)+t.slice(r,r+n),s=r+n,a=!0;break}r+=i}a||(e+=t.slice(s,s+n),s+=n)}return e}function o1(t){return t.split(`
68
+ `).map(e=>!e.includes("|")||!e.includes("`")?e:i1(e)).join(`
69
+ `)}function c1(t){return(t||"").replace(/\s+/g," ").trim()}function d1(t,e,s={}){var n;const r=(n=s.cellLineSeparator)!==null&&n!==void 0?n:"";if(!t||!t.content||t.content.length===0)return"";const a=[];t.content.forEach(p=>{const g=[];p.content&&p.content.forEach(k=>{let y="";k.content&&Array.isArray(k.content)&&k.content.length>1?y=k.content.map(v=>e.renderChildren(v)).join(r):y=k.content?e.renderChildren(k.content):"";const b=c1(y.split(r).join(`
70
+ `).replace(/[ \t]*\r?\n[ \t]*/g,"<br>")),m=k.type==="tableHeader",j=Yh(k.attrs);g.push({text:b,isHeader:m,align:j})}),a.push(g)});const i=a.reduce((p,g)=>Math.max(p,g.length),0);if(i===0)return"";const c=Array.from({length:i}).fill(0);a.forEach(p=>{for(let k=0;k<i;k+=1){var g;const y=(((g=p[k])===null||g===void 0?void 0:g.text)||"").length;y>c[k]&&(c[k]=y),c[k]<3&&(c[k]=3)}});const o=(p,g)=>p+" ".repeat(Math.max(0,g-p.length)),d=a[0],u=d.some(p=>p.isHeader),f=Array.from({length:i}).fill(null);a.forEach(p=>{for(let k=0;k<i;k+=1){var g;!f[k]&&(!((g=p[k])===null||g===void 0)&&g.align)&&(f[k]=p[k].align)}});let h=`
71
+ `;const x=Array.from({length:i}).map((p,g)=>u&&d[g]&&d[g].text||"");return h+=`| ${x.map((p,g)=>o(p,c[g])).join(" | ")} |
72
+ `,h+=`| ${c.map((p,g)=>{const k=Math.max(3,p),y=f[g];return y==="left"?`:${"-".repeat(k)}`:y==="right"?`${"-".repeat(k)}:`:y==="center"?`:${"-".repeat(k)}:`:"-".repeat(k)}).join(" | ")} |
73
+ `,(u?a.slice(1):a).forEach(p=>{h+=`| ${Array.from({length:i}).fill(0).map((g,k)=>o(p[k]&&p[k].text||"",c[k])).join(" | ")} |
74
+ `}),h}const u1=rs.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:s1,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:t,HTMLAttributes:e}){const{colgroup:s,tableWidth:n,tableMinWidth:r}=n1(t,this.options.cellMinWidth),a=e.style;function i(){return a||(n?`width: ${n}`:`min-width: ${r}`)}const c=["table",Ct(this.options.HTMLAttributes,e,{style:i()}),s,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},c]:c},parseMarkdown:(t,e)=>{const s=[],n=Array.isArray(t.align)?t.align:[];if(t.header){const r=[];t.header.forEach((a,i)=>{var c;const o=fa((c=n[i])!==null&&c!==void 0?c:a.align),d=o?{align:o}:{};r.push(e.createNode("tableHeader",d,[{type:"paragraph",content:e.parseInline(a.tokens)}]))}),s.push(e.createNode("tableRow",{},r))}return t.rows&&t.rows.forEach(r=>{const a=[];r.forEach((i,c)=>{var o;const d=fa((o=n[c])!==null&&o!==void 0?o:i.align),u=d?{align:d}:{};a.push(e.createNode("tableCell",u,[{type:"paragraph",content:e.parseInline(i.tokens)}]))}),s.push(e.createNode("tableRow",{},a))}),e.createNode("table",void 0,s)},renderMarkdown:(t,e)=>d1(t,e),markdownTokenizer:{name:"table",level:"block",start:t=>{const e=t.split(`
75
+ `);if(e.length<2)return-1;const s=e[1];return!/^[ \t|:]*-[ \t|:-]*$/.test(s)||!s.includes("|")?-1:e[0].includes("|")?0:-1},tokenize(t,e,s){const n=t.indexOf(`
76
+
77
+ `),r=n>=0?t.slice(0,n):t,a=r.split(`
78
+ `);if(a.length<2)return;const i=a[1];if(!/^[ \t|:]*-[ \t|:-]*$/.test(i)||!i.includes("|"))return;const c=o1(r);if(c===r)return;const o=s.blockTokens(c)[0];if(o?.type!=="table"||!o.raw)return;const d=o.raw.split(`
79
+ `).length,u=t.split(`
80
+ `).slice(0,d).join(`
81
+ `);return{...o,raw:u}}},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:s=!0}={})=>({tr:n,dispatch:r,editor:a})=>{const i=a1(a.schema,t,e,s);if(r){const c=n.selection.from+1;n.replaceSelectionWith(i).scrollIntoView().setSelection(So.near(n.doc.resolve(c)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>Fu(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Pu(t,e),deleteColumn:()=>({state:t,dispatch:e})=>{const s=oa(t.selection.$from,n=>n.type.name==="table");return Mu(t,e&&(n=>{s&&Si(n,s.pos),e(n)}))},addRowBefore:()=>({state:t,dispatch:e})=>Lu(t,e),addRowAfter:()=>({state:t,dispatch:e})=>Iu(t,e),deleteRow:()=>({state:t,dispatch:e})=>{const s=oa(t.selection.$from,n=>n.type.name==="table");return Eu(t,e&&(n=>{s&&Si(n,s.pos),e(n)}))},deleteTable:()=>({state:t,dispatch:e})=>zu(t,e),mergeCells:()=>({state:t,dispatch:e})=>ii(t,e),splitCell:()=>({state:t,dispatch:e})=>oi(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>ci("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>ci("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>Ru(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>ii(t,e)?!0:oi(t,e),setCellAttribute:(t,e)=>({state:s,dispatch:n})=>$u(t,e)(s,n),goToNextCell:()=>({state:t,dispatch:e})=>li(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>li(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Du(t),!0),setCellSelection:t=>({tr:e,dispatch:s})=>{if(s){const n=Bo.create(e.doc,t.anchorCell,t.headCell);e.setSelection(n)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Yr,"Mod-Backspace":Yr,Delete:Yr,"Mod-Delete":Yr}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[_u({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Au({allowTableNodeSelection:this.options.allowTableNodeSelection})]},addNodeView(){const t=this.options.resizable&&this.editor.isEditable,e=this.options.View;return t||!e?null:({node:s,view:n,HTMLAttributes:r})=>{const a=Ct(this.options.HTMLAttributes,r);return new e(s,this.options.cellMinWidth,n,a)}},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:wo(qt(t,"tableRole",e))}}}),f1=_l.create({name:"tableKit",addExtensions(){const t=[];return this.options.table!==!1&&t.push(u1.configure(this.options.table)),this.options.tableCell!==!1&&t.push(Jh.configure(this.options.tableCell)),this.options.tableHeader!==!1&&t.push(e1.configure(this.options.tableHeader)),this.options.tableRow!==!1&&t.push(t1.configure(this.options.tableRow)),t}});function h1(t){const e=R.c(25),{node:s,selected:n,editor:r,deleteNode:a}=t,i=X(),c=typeof s.attrs.href=="string"?s.attrs.href:"",o=typeof s.attrs.name=="string"?s.attrs.name:"";let d;e[0]!==o||e[1]!==i?(d=o||i("markdownEditor.fileNameFallback"),e[0]=o,e[1]=i,e[2]=d):d=e[2];const u=d,f=n&&"ring-2 ring-ring ring-offset-2 ring-offset-background";let h;e[3]!==f?(h=F("mx-0.5 inline-flex max-w-full select-none items-center gap-1.5 rounded-lg border border-border bg-card px-2 py-1 align-middle text-sm text-foreground",f),e[3]=f,e[4]=h):h=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(Uu,{size:14,className:"shrink-0 text-muted-foreground"}),e[5]=x):x=e[5];let p;e[6]!==u?(p=l.jsx("span",{className:"min-w-0 truncate",children:u}),e[6]=u,e[7]=p):p=e[7];let g;e[8]!==u||e[9]!==i?(g=i("markdownEditor.downloadFile",{name:u}),e[8]=u,e[9]=i,e[10]=g):g=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx(Ku,{size:14}),e[11]=k):k=e[11];let y;e[12]!==c||e[13]!==u||e[14]!==g?(y=l.jsx("a",{href:c,download:u,"aria-label":g,onMouseDown:m1,className:"shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:k}),e[12]=c,e[13]=u,e[14]=g,e[15]=y):y=e[15];let b;e[16]!==a||e[17]!==r.isEditable||e[18]!==i?(b=r.isEditable&&l.jsx("button",{type:"button","aria-label":i("markdownEditor.removeFile"),onMouseDown:p1,onClick:a,className:"shrink-0 classic:rounded-md compact:rounded-lg p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:l.jsx(Yt,{size:14})}),e[16]=a,e[17]=r.isEditable,e[18]=i,e[19]=b):b=e[19];let m;return e[20]!==h||e[21]!==p||e[22]!==y||e[23]!==b?(m=l.jsxs(Dl,{as:"span",className:h,children:[x,p,y,b]}),e[20]=h,e[21]=p,e[22]=y,e[23]=b,e[24]=m):m=e[24],m}function p1(t){return t.preventDefault()}function m1(t){return t.preventDefault()}function g1(t){return t.replace(/([[\]])/g,"\\$1")}const x1=rs.create({name:"attachment",group:"inline",inline:!0,atom:!0,draggable:!0,addAttributes(){return{href:{default:null,parseHTML:t=>t.getAttribute("href"),renderHTML:t=>t.href?{href:t.href}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-name")||t.textContent,renderHTML:t=>t.name?{"data-name":t.name}:{}}}},parseHTML(){return[{tag:"a[data-attachment]"}]},renderHTML({HTMLAttributes:t,node:e}){return["a",Ct(t,{"data-attachment":""}),typeof e.attrs.name=="string"?e.attrs.name:""]},renderMarkdown:t=>{const e=typeof t.attrs?.href=="string"?t.attrs.href:"",s=typeof t.attrs?.name=="string"?t.attrs.name:"";return`[${g1(s)}](${e})`},addNodeView(){return Al(h1)}});function k1(t){const e=R.c(5),{node:s,selected:n}=t,r=typeof s.attrs.name=="string"?s.attrs.name:"",a=n&&"ring-2 ring-ring";let i;e[0]!==a?(i=F("select-none rounded px-1 font-medium text-primary","bg-primary/10",a),e[0]=a,e[1]=i):i=e[1];let c;return e[2]!==r||e[3]!==i?(c=l.jsxs(Dl,{as:"span","data-testid":"mention-chip",className:i,children:["@",r]}),e[2]=r,e[3]=i,e[4]=c):c=e[4],c}const Zo=rs.create({name:"mention",group:"inline",inline:!0,atom:!0,selectable:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-mention-id"),renderHTML:t=>t.id?{"data-mention-id":t.id}:{}},name:{default:null,parseHTML:t=>t.getAttribute("data-mention-name"),renderHTML:t=>t.name?{"data-mention-name":t.name}:{}}}},parseHTML(){return[{tag:"span[data-mention-id]"}]},renderHTML({HTMLAttributes:t,node:e}){return["span",Ct(t),`@${typeof e.attrs.name=="string"?e.attrs.name:""}`]},renderMarkdown:t=>{const e=typeof t.attrs?.id=="string"?t.attrs.id:"",s=typeof t.attrs?.name=="string"?t.attrs.name:"";return e?uu(e,s):`@${s}`},addNodeView(){return Al(k1)}}),b1="studio.mention-members.",ml=new Map;function Ni(t){const e=ml.get(t);if(e)return e;try{const s=localStorage.getItem(t);if(!s)return;const n=JSON.parse(s);if(!Array.isArray(n))return;const r=n.filter(a=>!!a&&typeof a.id=="string"&&typeof a.name=="string");return ml.set(t,r),r}catch{return}}function y1(t,e){ml.set(t,e);try{localStorage.setItem(t,JSON.stringify(e))}catch{}}function j1(t,e){if(!t?.length)return e;const s=new Map(t.map(n=>[n.id,n]));return e.map(n=>{const r=s.get(n.id);return r&&r.name===n.name&&r.email===n.email&&r.image===n.image?r:n})}function v1(t){return t.map(e=>({id:e.userId,name:e.user?.name?.trim()||e.user?.email?.trim()||"",email:e.user?.email??"",image:e.user?.image??null})).filter(e=>!!e.name).sort((e,s)=>e.name.localeCompare(s.name))}function w1(t){const e=R.c(17),{locator:s}=Ge(),n=Wu(),r=`${b1}${s}`;let a;e[0]!==s?(a=Je.mentionMembers(s),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==r?(i=()=>Ni(r),e[2]=r,e[3]=i):i=e[3];let c;e[4]!==n||e[5]!==r?(c=async()=>{const x=await n.organization.listMembers(),p=j1(Ni(r),v1(x?.data?.members??[]));return y1(r,p),p},e[4]=n,e[5]=r,e[6]=c):c=e[6];let o;e[7]!==t||e[8]!==a||e[9]!==i||e[10]!==c?(o={queryKey:a,enabled:t,staleTime:0,placeholderData:i,queryFn:c},e[7]=t,e[8]=a,e[9]=i,e[10]=c,e[11]=o):o=e[11];const d=dr(o);let u;e[12]!==d.data?(u=d.data??[],e[12]=d.data,e[13]=u):u=e[13];const f=d.isFetching&&!d.data;let h;return e[14]!==u||e[15]!==f?(h={members:u,loading:f},e[14]=u,e[15]=f,e[16]=h):h=e[16],h}const Ci={query:"",range:null,rect:null,editor:null};class Xo{state=Ci;listeners=new Set;dismissal=null;latched=!1;subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));getSnapshot=()=>this.state;set(e){this.state=e;for(const s of this.listeners)s()}close(){this.latched=!1,this.set(Ci)}}const va=new bu("markdownEditorMention");function S1(t,e,s){t.chain().focus().insertContentAt(e,[{type:"mention",attrs:{id:s.id,name:s.name}},{type:"text",text:" "}]).run(),_o(t.view,va)}function N1(t,e,s){const n=Math.min(e+s,t.content.size);return e>=n?"":t.textBetween(e,n,"","")}function Jo(t,e){const s=e.getSnapshot().range??void 0;s&&s.to>s.from&&(e.dismissal={from:s.from,text:t.state.doc.textBetween(s.from,s.to,"")}),_o(t.view,va)}function ec(t){return _l.create({name:"mentionSuggestion",addProseMirrorPlugins(){const e={editor:this.editor,char:"@",pluginKey:va,allowedPrefixes:[" ",`
82
+ `],allow:({state:s,range:n})=>{const r=t.dismissal;return r?n.from===r.from&&N1(s.doc,r.from,r.text.length)===r.text?!1:(t.dismissal=null,!0):!0},items:()=>[],render:()=>({onStart:s=>{t.set({query:s.query,range:s.range,rect:s.clientRect??null,editor:s.editor})},onUpdate:s=>{t.set({query:s.query,range:s.range,rect:s.clientRect??null,editor:s.editor})},onKeyDown:({event:s})=>s.key==="Escape"?(Jo(this.editor,t),t.close(),!0):!1,onExit:()=>{t.latched||t.close()}})};return[qu(e)]}})}const Ti=256,C1=40,Bi=280,T1=140;function tc(t){const e=R.c(4),{store:s}=t,n=q.useSyncExternalStore(s.subscribe,s.getSnapshot),r=n.range!==null;let a;return e[0]!==r||e[1]!==n||e[2]!==s?(a=r?l.jsx(B1,{store:s,state:n}):null,e[0]=r,e[1]=n,e[2]=s,e[3]=a):a=e[3],a}function B1({store:t,state:e}){const s=X(),{members:n,loading:r}=w1(!0),[a,i]=q.useState(e.query),[c,o]=q.useState(null),d=_1(e.editor),u=d.getBoundingClientRect(),f=d===document.body?new DOMRect(0,0,window.innerWidth,window.innerHeight):u,h=e.rect?.()??new DOMRect(0,0,0,0),x=f.bottom-h.bottom,p=x<Bi&&h.top-f.top>x,g=(p?h.top-f.top:x)-8,k=Math.min(Bi,Math.max(g,T1))-C1,y={position:"absolute",width:Ti,left:Math.min(h.left,f.right-Ti-8)-u.left,...p?{bottom:u.bottom-h.top+6}:{top:h.bottom-u.top+6}},b=()=>{e.editor&&Jo(e.editor,t),t.close()},m=v=>{const w=v.relatedTarget;if((!w||e.editor?.view.dom.contains(w)===!0)&&t.latched){c?.focus();return}b()},j=v=>{!e.editor||!e.range||(S1(e.editor,e.range,v),t.close())};return Qi.createPortal(l.jsx("div",{style:y,"data-testid":"mention-menu",className:"z-50 overflow-hidden rounded-lg border border-border bg-popover shadow-md",children:l.jsxs(ns,{onKeyDown:v=>{v.key==="Escape"&&(v.preventDefault(),b(),e.editor?.commands.focus())},children:[l.jsx(es,{ref:o,autoFocus:!0,onFocus:()=>{t.latched=!0},value:a,onValueChange:i,placeholder:s("markdownEditor.mentionSearch"),onBlur:m}),l.jsxs(ss,{style:{maxHeight:k},children:[r?l.jsx("div",{className:"flex items-center justify-center py-6",children:l.jsx(dt,{size:"sm"})}):l.jsx(ts,{children:s("markdownEditor.mentionEmpty")}),n.map(v=>l.jsxs(Oe,{value:`${v.name} ${v.email}`,onSelect:()=>j(v),onMouseDown:w=>w.preventDefault(),className:"gap-2",children:[l.jsx(Le,{url:v.image??void 0,fallback:Me(v.name),shape:"circle",size:"xs"}),l.jsx("span",{className:"min-w-0 flex-1 truncate",children:v.name})]},v.id))]})]})}),d)}function _1(t){const e=t?.view.dom.closest('[role="dialog"]');return e instanceof HTMLElement?e:document.body}const A1=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,D1=rs.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{},resize:!1}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Ct(this.options.HTMLAttributes,t)]},parseMarkdown:(t,e)=>e.createNode("image",{src:t.href,title:t.title,alt:t.text}),renderMarkdown:t=>{var e,s,n,r,a,i;const c=(e=(s=t.attrs)===null||s===void 0?void 0:s.src)!==null&&e!==void 0?e:"",o=(n=(r=t.attrs)===null||r===void 0?void 0:r.alt)!==null&&n!==void 0?n:"",d=(a=(i=t.attrs)===null||i===void 0?void 0:i.title)!==null&&a!==void 0?a:"";return d?`![${o}](${c} "${d}")`:`![${o}](${c})`},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:t,minWidth:e,minHeight:s,alwaysPreserveAspectRatio:n}=this.options.resize,r=new Set(["src","width","height"]);return({node:a,getPos:i,HTMLAttributes:c,editor:o})=>{const d=document.createElement("img");d.draggable=!1;const u=Ct(this.options.HTMLAttributes,c);Object.entries(u).forEach(([y,b])=>{if(b!=null)switch(y){case"src":case"width":case"height":break;default:d.setAttribute(y,b)}}),u.src!==null&&(d.src=u.src);let f={...c};const h=y=>{if(typeof y=="string"&&y!==""){d.getAttribute("src")!==y&&(d.src=y);return}d.hasAttribute("src")&&d.removeAttribute("src"),d.src!==""&&(d.src="")};h(c.src);const x=y=>{if(y.type!==a.type)return!1;const b=o.extensionManager.attributes.filter(j=>j.type===y.type.name),m=vu(y,b);return Object.keys(f).forEach(j=>{!r.has(j)&&!(j in m)&&d.removeAttribute(j)}),Object.entries(m).forEach(([j,v])=>{r.has(j)||(v!=null?d.setAttribute(j,v):d.removeAttribute(j))}),h(m.src),f=m,!0},p=new ju({element:d,editor:o,node:a,getPos:i,onResize:(y,b)=>{d.style.width=`${y}px`,d.style.height=`${b}px`},onCommit:(y,b)=>{const m=i();m!==void 0&&this.editor.chain().setNodeSelection(m).updateAttributes(this.name,{width:y,height:b}).run()},onUpdate:x,options:{directions:t,min:{width:e,height:s},preserveAspectRatio:n===!0}}),g=p.dom,k=()=>{g.style.visibility="",g.style.pointerEvents=""};return g.style.visibility="hidden",g.style.pointerEvents="none",d.complete&&d.naturalWidth>0?k():(d.onload=k,d.onerror=k),p}},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[yu({find:A1,type:this.type,getAttributes:t=>{const[,,e,s,n]=t;return{src:s,alt:e,title:n}}})]}});var $1=D1;function R1(t){const e=R.c(16),{node:s,selected:n,editor:r,deleteNode:a}=t,i=X(),c=typeof s.attrs.src=="string"?s.attrs.src:"",o=typeof s.attrs.alt=="string"?s.attrs.alt:"";let d;e[0]!==o||e[1]!==i?(d=o||i("markdownEditor.imageAltFallback"),e[0]=o,e[1]=i,e[2]=d):d=e[2];const u=n&&"ring-2 ring-ring ring-offset-2 ring-offset-background";let f;e[3]!==u?(f=F("max-h-[420px] max-w-full rounded-lg border border-border object-contain",u),e[3]=u,e[4]=f):f=e[4];let h;e[5]!==c||e[6]!==d||e[7]!==f?(h=l.jsx("img",{src:c,alt:d,draggable:!1,className:f}),e[5]=c,e[6]=d,e[7]=f,e[8]=h):h=e[8];let x;e[9]!==a||e[10]!==r.isEditable||e[11]!==i?(x=r.isEditable&&l.jsx("button",{type:"button","aria-label":i("markdownEditor.removeImage"),onMouseDown:z1,onClick:a,className:"absolute right-2 top-2 flex size-7 items-center justify-center classic:rounded-md compact:rounded-lg border border-border bg-card text-muted-foreground opacity-0 shadow-sm transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/image:opacity-100",children:l.jsx(Yt,{size:14})}),e[9]=a,e[10]=r.isEditable,e[11]=i,e[12]=x):x=e[12];let p;return e[13]!==h||e[14]!==x?(p=l.jsxs(Dl,{className:"group/image relative my-3 w-fit max-w-full",children:[h,x]}),e[13]=h,e[14]=x,e[15]=p):p=e[15],p}function z1(t){return t.preventDefault()}const E1=$1.extend({addNodeView(){return Al(R1)}}).configure({inline:!1,allowBase64:!1}),gl="uploads",I1="editor-images",sc="editor-files",L1=new RegExp(`^/api/[^/]+/fs/${gl}/read$`),_i="http://relative.invalid";function M1(t){let e;try{e=new URL(t,_i)}catch{return!1}return e.origin!==_i||!L1.test(e.pathname)?!1:(e.searchParams.get("path")??"").startsWith(`${sc}/`)}const P1={openOnClick:!1,autolink:!0,HTMLAttributes:{rel:"noopener noreferrer",target:"_blank"}},F1=wu.extend({parseMarkdown:(t,e)=>{const s=typeof t.href=="string"?t.href:"";if(M1(s))return e.createNode("attachment",{href:s,name:t.text??""});const n=fu(s);return n?e.createNode("mention",{id:n,name:(t.text??"").replace(/^@/,"")}):e.applyMark("link",e.parseInline(t.tokens??[]),{href:s,title:t.title||null})}});function O1(t="",e){return[No.configure({heading:{levels:[1,2,3]},underline:!1,link:!1}),F1.configure(P1),Ao.configure({placeholder:t}),f1,Su,Nu.configure({nested:!0}),E1,x1,Zo,...e?[ec(e)]:[],Wo.configure({markedOptions:{breaks:!0}})]}const H1=/^(\s*)([-*+]|\d+[.)])\s+\S/,q1=/^\s*(```|~~~)/,K1=/^\s+(?![-*+>#]|\d+[.)]\s)\S/;function U1(t){const e=[];let s=!1,n=!1;for(const r of t.split(`
83
+ `)){if(q1.test(r)){s=!s,n=!1,e.push(r);continue}if(s){e.push(r);continue}if(H1.test(r)){n=!0,e.push(r);continue}if(!r.trim()){n=!1,e.push(r);continue}if(n&&K1.test(r)){e[e.length-1]=`${e[e.length-1]} ${r.trim()}`;continue}n=!1,e.push(r)}return e.join(`
84
+ `)}const W1=10,G1=25,V1={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function Q1(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??V1[t.type]??(ql(t)?".png":"")}function ql(t){return t.type.startsWith("image/")}function Y1(){const t=X(),{upload:e}=Gu(gl),s=Vu(gl),[n,r]=q.useState(0);return{uploadFile:async i=>{const c=ql(i),o=c?W1:G1;if(i.size>o*1024*1024)return Fe.error(t("markdownEditor.fileTooLarge",{name:i.name,max:String(o)})),null;const d=c?I1:sc,u=`${crypto.randomUUID()}${Q1(i)}`;r(f=>f+1);try{return await e.mutateAsync({dir:d,files:[new File([i],u,{type:i.type})]}),s(`${d}/${u}`)}catch{return Fe.error(t("markdownEditor.uploadFailed",{name:i.name})),null}finally{r(f=>f-1)}},pending:n}}const Z1=["outline-none","min-h-[200px] sm:min-h-[320px]","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0","[&_p]:my-3 [&_p]:leading-[1.5]","[&_h1]:my-3 [&_h1]:text-xl [&_h1]:font-semibold [&_h1]:leading-[1.5] [&_h1]:text-foreground","[&_h2]:my-3 [&_h2]:text-lg [&_h2]:font-semibold [&_h2]:leading-[1.5] [&_h2]:text-foreground","[&_h3]:my-3 [&_h3]:text-base [&_h3]:font-semibold [&_h3]:leading-[1.5] [&_h3]:text-foreground","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-5","[&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-5","[&_li]:my-0.5 [&_li>p]:my-0","[&_blockquote]:my-2 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground","[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em]","[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-[13px]","[&_pre_code]:bg-transparent [&_pre_code]:p-0","[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-2","[&_hr]:my-4 [&_hr]:border-border","[&_strong]:font-semibold [&_strong]:text-foreground","[&_table]:my-3 [&_table]:w-full [&_table]:table-fixed [&_table]:border-collapse","[&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:p-2 [&_th]:text-left [&_th]:font-semibold","[&_td]:border [&_td]:border-border [&_td]:p-2 [&_td]:align-top","[&_th>p]:my-0 [&_td>p]:my-0","[&_ul[data-type=taskList]]:my-3 [&_ul[data-type=taskList]]:list-none [&_ul[data-type=taskList]]:pl-0","[&_li[data-type=taskItem]]:flex [&_li[data-type=taskItem]]:items-start [&_li[data-type=taskItem]]:gap-2","[&_li[data-type=taskItem]>label]:mt-1 [&_li[data-type=taskItem]>label]:shrink-0","[&_li[data-type=taskItem]>div]:min-w-0 [&_li[data-type=taskItem]>div>p]:my-0"].join(" "),X1=["[&_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_p.is-editor-empty:first-child::before]:text-muted-foreground/50","[&_p.is-editor-empty:first-child::before]:float-left","[&_p.is-editor-empty:first-child::before]:h-0","[&_p.is-editor-empty:first-child::before]:pointer-events-none"].join(" ");function Ai(t,e,s,n){const r=t.state.schema.nodes[s];if(!r)return e;const a=t.state.tr.replaceWith(e,e,r.create(n)),i=a.mapping.map(e,1);return a.setSelection(Cu.near(a.doc.resolve(i))),t.dispatch(a),t.state.selection.to}function J1({defaultValue:t,onChange:e,placeholder:s,editable:n=!0}){const r=X(),{uploadFile:a,pending:i}=Y1(),[c]=q.useState(()=>new Xo),o=q.useRef(null),d=q.useRef(e),u=q.useRef(a);d.current=e,u.current=a;const f=(p,g,k)=>g.length===0?!1:((async()=>{let y=k;for(const b of g){const m=await u.current(b);m&&(y=ql(b)?Ai(p,y,"image",{src:m,alt:b.name}):Ai(p,y,"attachment",{href:m,name:b.name}))}})(),!0),h=Co({extensions:O1(s,c),content:U1(t),contentType:"markdown",editable:n,editorProps:{attributes:{role:"textbox","aria-label":s??"","aria-multiline":"true",class:F(Z1,X1)},handlePaste:(p,g)=>{const k=Array.from(g.clipboardData?.files??[]);return k.length===0?!1:(g.stopPropagation(),f(p,k,p.state.selection.to))},handleDrop:(p,g,k,y)=>{if(y)return!1;const b=Array.from(g.dataTransfer?.files??[]);if(b.length===0)return!1;const m=p.posAtCoords({left:g.clientX,top:g.clientY})?.pos;return m===void 0?!1:(g.stopPropagation(),f(p,b,m))}},onUpdate:({editor:p,transaction:g})=>{g.docChanged&&d.current(p.getMarkdown())}});if(!h)return null;const x=p=>{!p||p.length===0||f(h.view,Array.from(p),h.state.selection.to)};return l.jsxs("div",{className:"flex flex-col",children:[l.jsx(Gf,{editor:h}),l.jsx(tc,{store:c}),l.jsx(To,{editor:h,className:"text-[15px] text-muted-foreground"}),l.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-muted-foreground",children:[n&&l.jsx(pe,{type:"button",variant:"ghost",size:"icon-sm","aria-label":r("markdownEditor.attachFile"),onClick:()=>o.current?.click(),children:l.jsx(Yc,{size:14})}),i>0&&l.jsxs("span",{className:"inline-flex items-center gap-1.5","aria-live":"polite",role:"status",children:[l.jsx(dt,{className:"size-3"}),i===1?r("markdownEditor.uploading"):r("markdownEditor.uploadingCount",{count:String(i)})]})]}),l.jsx("input",{ref:o,type:"file",multiple:!0,className:"hidden",onChange:p=>{x(p.target.files),p.target.value=""}})]})}const ep="claude-subscription";function tp(t){const e=(t??[]).filter(s=>s.costUsd!==null);return e.length===0?null:{total:e.reduce((s,n)=>s+(n.costUsd??0),0),runCount:e.length,onSubscription:e.every(s=>s.costProvider===ep)}}function sp(t,e){const s=t.state==="open"&&!t.merged,n=t.mergeable===!1,r=t.checksStatus!=="failing";return{isOpen:s,hasConflict:n,showShip:e&&s&&r&&!n,showResolveConflict:e&&s&&n}}function nc(t){if(t.status!=="completed")return!1;const e=t.conclusion;return e==="success"||e==="neutral"||e==="skipped"}function np(t,e,s){return t!=="failing"||s||e.length===0?null:{passed:e.filter(nc).length,total:e.length}}function rp(t,e){return new URL(e,t).toString()}function rc(t){for(let e=t.length-1;e>=0;e--){const s=t[e];if(!s||s.action!=="status_changed")continue;if(typeof s.data?.retry=="number")return null;const n=s.data?.reason;return typeof n!="string"?null:Qu(n.replace(/^Error:\s*/,""))}return null}function ap({orgSlug:t,repo:e,repositories:s,returnTo:n}){const r=`/api/${encodeURIComponent(t)}/git-providers/github`,a=e?s.find(c=>c.path===e)?.accountId:null;if(!a)return{url:`${r}/install?returnTo=${encodeURIComponent(n)}`,ownerOnly:!1,owner:null};const i=e?.includes("/")?e.split("/")[0]:null;return{url:`${r}/accounts/${encodeURIComponent(a)}/manage`,ownerOnly:i!==null,owner:i}}const Di=()=>0;function lp(t){const{orgSlug:e,itemId:s,onPrs:n}=t,r=q.useRef(n);r.current=n;const a=q.useRef(null),i=q.useRef(""),c=`${e}:${s??""}`;(!a.current||i.current!==c)&&(i.current=c,a.current=o=>{if(!e||!s)return()=>{};const d=u=>{let f;try{f=JSON.parse(u.data)}catch{return}f.data?.id!==s||!Array.isArray(f.data.prs)||(r.current(f.data.prs),o())};return Ju.subscribe(e,d)}),q.useSyncExternalStore(a.current,Di,Di)}const ac=1440*60*1e3,ip=40;function lc(t){try{const e=window.localStorage.getItem(Yi.taskBoardPrs(t));return e?JSON.parse(e):{}}catch{return{}}}function op(t){const e=Date.now(),s=Object.entries(t).filter(([,n])=>e-n.updatedAt<=ac);for(s.sort(([,n],[,r])=>n.updatedAt-r.updatedAt);s.length>ip;)s.shift();return Object.fromEntries(s)}function $i(t,e){if(typeof window>"u")return null;const s=lc(t)[e];return!s||Date.now()-s.updatedAt>ac?null:s}function cp(t,e,s){if(!(typeof window>"u"))try{const n=lc(t);n[e]={data:s,updatedAt:Date.now()},window.localStorage.setItem(Yi.taskBoardPrs(t),JSON.stringify(op(n)))}catch{}}const dp=6e4,up=2e3,fp=t=>t.state===null;function Kl(t){const e=R.c(25),{org:s,locator:n}=Ge(),r=Tt(),a=ur();let i;e[0]!==t||e[1]!==n||e[2]!==a?(i=p=>{a.setQueryData(Je.taskBoardItemPrs(n,t??""),p)},e[0]=t,e[1]=n,e[2]=a,e[3]=i):i=e[3];let c;e[4]!==t||e[5]!==s.slug||e[6]!==i?(c={orgSlug:s.slug,itemId:t,onPrs:i},e[4]=t,e[5]=s.slug,e[6]=i,e[7]=c):c=e[7],lp(c);let o;e[8]!==t||e[9]!==n?(o=Je.taskBoardItemPrs(n,t??""),e[8]=t,e[9]=n,e[10]=o):o=e[10];const d=!!t;let u,f;e[11]!==t||e[12]!==n?(u=()=>t?$i(n,t)?.data??void 0:void 0,f=()=>t?$i(n,t)?.updatedAt:void 0,e[11]=t,e[12]=n,e[13]=u,e[14]=f):(u=e[13],f=e[14]);let h;e[15]!==t||e[16]!==n||e[17]!==r?(h=async()=>{const{prs:p}=await r.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:t});return cp(n,t,p),p},e[15]=t,e[16]=n,e[17]=r,e[18]=h):h=e[18];let x;return e[19]!==o||e[20]!==d||e[21]!==u||e[22]!==f||e[23]!==h?(x={queryKey:o,enabled:d,refetchInterval:hp,initialData:u,initialDataUpdatedAt:f,queryFn:h},e[19]=o,e[20]=d,e[21]=u,e[22]=f,e[23]=h,e[24]=x):x=e[24],dr(x)}function hp(t){return t.state.data?.some(fp)?up:dp}function pp(t){const e=R.c(10),{locator:s}=Ge(),n=Tt();let r;e[0]!==s||e[1]!==t?(r=Je.previewProbe(s,t??""),e[0]=s,e[1]=t,e[2]=r):r=e[2];const a=!!t;let i;e[3]!==n||e[4]!==t?(i=()=>n.call("TASK_BOARD_PREVIEW_PROBE",{url:t}),e[3]=n,e[4]=t,e[5]=i):i=e[5];let c;return e[6]!==r||e[7]!==a||e[8]!==i?(c={queryKey:r,enabled:a,staleTime:0,gcTime:0,retry:!1,queryFn:i},e[6]=r,e[7]=a,e[8]=i,e[9]=c):c=e[9],dr(c)}function Ul(t){const e=R.c(10),{locator:s}=Ge(),n=Tt();let r;e[0]!==t||e[1]!==s?(r=Je.taskBoardActivity(s,t??""),e[0]=t,e[1]=s,e[2]=r):r=e[2];const a=!!t;let i;e[3]!==t||e[4]!==n?(i=async()=>(await n.call("TASK_BOARD_ACTIVITY_LIST",{taskBoardItemId:t})).activity,e[3]=t,e[4]=n,e[5]=i):i=e[5];let c;return e[6]!==r||e[7]!==a||e[8]!==i?(c={queryKey:r,enabled:a,queryFn:i},e[6]=r,e[7]=a,e[8]=i,e[9]=c):c=e[9],dr(c)}function mp(t){const e=R.c(10),{locator:s}=Ge(),n=Tt(),r=ur();let a;e[0]!==t||e[1]!==n?(a=async()=>await n.call("TASK_BOARD_PROMOTE_TO_PRODUCTION",{taskBoardItemId:t}),e[0]=t,e[1]=n,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==r?(i=()=>{r.invalidateQueries({queryKey:Je.taskBoardItemPrs(s,t)}),r.invalidateQueries({queryKey:Je.taskBoardActivity(s,t)})},e[3]=t,e[4]=s,e[5]=r,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==i?(c={mutationFn:a,onSuccess:i},e[7]=a,e[8]=i,e[9]=c):c=e[9],Wt(c)}function gp(t){const e=R.c(10),{locator:s}=Ge(),n=Tt(),r=ur();let a;e[0]!==t||e[1]!==n?(a=async o=>await n.call("TASK_BOARD_RESOLVE_CONFLICT",{id:t,prNumber:o}),e[0]=t,e[1]=n,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==r?(i=()=>{r.invalidateQueries({queryKey:Je.taskBoardItemPrs(s,t)}),r.invalidateQueries({queryKey:Je.taskBoardActivity(s,t)})},e[3]=t,e[4]=s,e[5]=r,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==i?(c={mutationFn:a,onSuccess:i},e[7]=a,e[8]=i,e[9]=c):c=e[9],Wt(c)}function xp(t){const e=R.c(10),{locator:s}=Ge(),n=Tt(),r=ur();let a;e[0]!==t||e[1]!==n?(a=async()=>await n.call("TASK_BOARD_RUN_REVIEWER",{id:t}),e[0]=t,e[1]=n,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==s||e[5]!==r?(i=()=>{r.invalidateQueries({queryKey:Je.taskBoardActivity(s,t)})},e[3]=t,e[4]=s,e[5]=r,e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==i?(c={mutationFn:a,onSuccess:i},e[7]=a,e[8]=i,e[9]=c):c=e[9],Wt(c)}function ic(t){return t?Td:[]}function kp(t,e,s){return e.length===0?!0:Bd(t,e,{cycleStartedAt:s})}function bp(t,e){if(e.length===0)return null;const s=e.map(a=>t.find(i=>i.reviewer===a)),n=s.filter(a=>a?.verdict==="approved"),r={passed:n.length,total:e.length};return s.some(a=>a?.verdict==="changes_requested")?{...r,tone:"danger"}:n.length===0?{...r,tone:"danger"}:n.length<e.length?{...r,tone:"pending"}:{...r,tone:"ok"}}function yp(t){return t==="in_review"||t==="approved"}const jp=[],vp=[];function oc(t,e){const s=R.c(4),n=e===void 0?jp:e,r=tf();let a;if(s[0]!==r||s[1]!==n||s[2]!==t){const i=nf(r);a=od(i,[...t.map(wp),...n]),s[0]=r,s[1]=n,s[2]=t,s[3]=a}else a=s[3];return a}function wp(t){return t.repo}function Wl(t){const e=R.c(57),{members:s,onSelect:n}=t,r=X();let a;e[0]!==r?(a=r("taskBoard.taskDialog.assignToPlaceholder"),e[0]=r,e[1]=a):a=e[1];let i;e[2]!==r?(i=r("taskBoard.taskDialog.assignToPlaceholder"),e[2]=r,e[3]=i):i=e[3];let c;e[4]!==a||e[5]!==i?(c=l.jsx(es,{placeholder:a,"aria-label":i,className:"h-9"}),e[4]=a,e[5]=i,e[6]=c):c=e[6];let o;e[7]!==r?(o=r("taskBoard.taskDialog.noMembersFound"),e[7]=r,e[8]=o):o=e[8];let d;e[9]!==o?(d=l.jsx(ts,{children:o}),e[9]=o,e[10]=d):d=e[10];let u;e[11]!==r?(u=r("taskBoard.taskDialog.superAgentLabel"),e[11]=r,e[12]=u):u=e[12];let f;e[13]!==n?(f=()=>n(ye),e[13]=n,e[14]=f):f=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(We,{size:16}),e[15]=h):h=e[15];let x;e[16]!==r?(x=r("taskBoard.taskDialog.superAgentLabel"),e[16]=r,e[17]=x):x=e[17];let p;e[18]!==x?(p=l.jsx("span",{className:"truncate",children:x}),e[18]=x,e[19]=p):p=e[19];let g;e[20]!==p||e[21]!==u||e[22]!==f?(g=l.jsxs(Oe,{value:u,onSelect:f,className:"gap-2",children:[h,p]}),e[20]=p,e[21]=u,e[22]=f,e[23]=g):g=e[23];let k;e[24]!==r?(k=r("taskBoard.taskDialog.unassignedLabel"),e[24]=r,e[25]=k):k=e[25];let y;e[26]!==n?(y=()=>n(null),e[26]=n,e[27]=y):y=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=l.jsx(Zt,{size:16,className:"text-muted-foreground"}),e[28]=b):b=e[28];let m;e[29]!==r?(m=r("taskBoard.taskDialog.unassignedLabel"),e[29]=r,e[30]=m):m=e[30];let j;e[31]!==m?(j=l.jsx("span",{className:"truncate",children:m}),e[31]=m,e[32]=j):j=e[32];let v;e[33]!==k||e[34]!==y||e[35]!==j?(v=l.jsxs(Oe,{value:k,onSelect:y,className:"gap-2",children:[b,j]}),e[33]=k,e[34]=y,e[35]=j,e[36]=v):v=e[36];let w;e[37]!==g||e[38]!==v?(w=l.jsxs(Xe,{children:[g,v]}),e[37]=g,e[38]=v,e[39]=w):w=e[39];let S;e[40]!==r?(S=r("taskBoard.taskDialog.membersGroupHeading"),e[40]=r,e[41]=S):S=e[41];let N;if(e[42]!==s||e[43]!==n){let E;e[45]!==n?(E=$=>l.jsxs(Oe,{value:$.user?.name??$.userId,onSelect:()=>n($.userId),className:"gap-2",children:[l.jsx(Le,{url:$.user?.image??void 0,fallback:Me($.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate",children:$.user?.name??$.userId})]},$.userId),e[45]=n,e[46]=E):E=e[46],N=s.map(E),e[42]=s,e[43]=n,e[44]=N}else N=e[44];let T;e[47]!==S||e[48]!==N?(T=l.jsx(Xe,{heading:S,children:N}),e[47]=S,e[48]=N,e[49]=T):T=e[49];let C;e[50]!==w||e[51]!==T||e[52]!==d?(C=l.jsxs(ss,{children:[d,w,T]}),e[50]=w,e[51]=T,e[52]=d,e[53]=C):C=e[53];let D;return e[54]!==C||e[55]!==c?(D=l.jsxs(ns,{children:[c,C]}),e[54]=C,e[55]=c,e[56]=D):D=e[56],D}function Sp({tags:t,selectedIds:e,defaultColor:s,onToggle:n,onCreate:r,onDelete:a}){const i=X(),[c,o]=q.useState(""),[d,u]=q.useState(!1),[f,h]=q.useState(s),x=c.trim(),p=t.some(k=>k.name.toLowerCase()===x.toLowerCase()),g=async()=>{if(!(!x||p||d)){u(!0);try{await r(x,f),o("")}finally{u(!1)}}};return l.jsxs(ns,{children:[l.jsx(es,{value:c,onValueChange:o,placeholder:i("taskBoard.taskDialog.tagFilterPlaceholder"),"aria-label":i("taskBoard.taskDialog.tagFilterPlaceholder"),className:"h-9"}),l.jsxs(ss,{children:[x&&!p?l.jsx(Xe,{children:l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("input",{type:"color",value:f,onChange:k=>h(k.target.value),"aria-label":i("taskBoard.taskDialog.pickTagColorAriaLabel"),className:"ml-2 size-4 shrink-0 cursor-pointer appearance-none rounded-full border-0 bg-transparent p-0 [&::-moz-color-swatch]:rounded-full [&::-moz-color-swatch]:border-0 [&::-webkit-color-swatch]:rounded-full [&::-webkit-color-swatch]:border-0 [&::-webkit-color-swatch-wrapper]:p-0"}),l.jsxs(Oe,{value:`create-${x}`,disabled:d,onSelect:g,className:"flex-1 gap-2",children:[l.jsx(Qt,{size:16,className:"text-muted-foreground"}),l.jsx("span",{className:"truncate",children:i("taskBoard.taskDialog.createTagOption",{name:x})})]})]})}):l.jsx(ts,{children:i("taskBoard.taskDialog.noTagsFound")}),l.jsx(Xe,{children:t.map(k=>{const y=e.includes(k.id);return l.jsxs(Oe,{value:k.name,onSelect:()=>n(k.id),className:"group gap-2",children:[l.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:zt(k.color)}}),l.jsx("span",{className:"flex-1 truncate",children:k.name}),l.jsx("button",{type:"button","aria-label":i("taskBoard.taskDialog.deleteTagAriaLabel",{name:k.name}),className:"flex size-5 shrink-0 items-center justify-center classic:rounded-sm compact:rounded-lg text-muted-foreground opacity-0 hover:bg-background hover:text-destructive focus-visible:opacity-100 group-hover:opacity-100",onClick:b=>{b.stopPropagation(),a(k.id)},children:l.jsx(yl,{size:13})}),y&&l.jsx(Rt,{size:14,className:"shrink-0 text-foreground"})]},k.id)})})]})]})}function Np(t){if(!t)return[];const e=[],s=new Set,n=(i,c)=>{s.has(i)||(s.add(i),e.push({url:i,label:c.trim()||i}))},r=t.replace(/!\[[^\]]*\]\([^)]*\)/g,"");for(const i of r.matchAll(/\[([^\]]*)\]\((https?:\/\/[^)\s]+)[^)]*\)/g))n(i[2]??"",i[1]??"");const a=r.replace(/\[[^\]]*\]\([^)]*\)/g,"");for(const i of a.matchAll(/https?:\/\/[^\s)]+/g))n(i[0],i[0]);return e}function Cp(t){return{id:t.threadId,title:t.title,status:t.status,created_at:t.createdAt,virtual_mcp_id:t.virtualMcpId}}function Tp(t){const e=R.c(5),{title:s}=t;let n;e[0]!==s?(n=l.jsx(af,{className:"shrink-0 border-b border-border px-5 pb-5 pt-6 md:px-6",children:l.jsx(lf,{className:"truncate text-sm leading-snug",children:s})}),e[0]=s,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx("div",{className:"flex flex-1 items-center justify-center"}),e[2]=r):r=e[2];let a;return e[3]!==n?(a=l.jsxs(l.Fragment,{children:[n,r]}),e[3]=n,e[4]=a):a=e[4],a}function Bp(t){const e=R.c(12),{thread:s}=t,{org:n,locator:r}=Ge();let a;e[0]!==n.id||e[1]!==n.slug?(a={connectionId:Rc,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=a):a=e[2];const i=uf(a),c=$o(),o=sf(),{data:d}=Sl();let u;e[3]!==s?(u=Cp(s),e[3]=s,e[4]=u):u=e[4];let f;return e[5]!==i||e[6]!==c||e[7]!==r||e[8]!==d||e[9]!==u||e[10]!==o?(f=l.jsx(df,{thread:u,client:i,locator:r,connections:c,virtualMcps:o,members:d,meta:!1}),e[5]=i,e[6]=c,e[7]=r,e[8]=d,e[9]=u,e[10]=o,e[11]=f):f=e[11],f}function _p(t){const e=R.c(11),{thread:s,onClose:n}=t,r=X(),a=!!s;let i;e[0]!==n?(i=u=>!u&&n(),e[0]=n,e[1]=i):i=e[1];let c;e[2]!==r||e[3]!==s?(c=s&&l.jsx(q.Suspense,{fallback:l.jsx(Tp,{title:s.title??r("taskBoard.taskDialog.superAgentDefaultName")}),children:l.jsx(Bp,{thread:s})}),e[2]=r,e[3]=s,e[4]=c):c=e[4];let o;e[5]!==c?(o=l.jsx(of,{"data-testid":"task-thread-sheet",className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:c}),e[5]=c,e[6]=o):o=e[6];let d;return e[7]!==a||e[8]!==i||e[9]!==o?(d=l.jsx(cf,{open:a,onOpenChange:i,children:o}),e[7]=a,e[8]=i,e[9]=o,e[10]=d):d=e[10],d}function cc(t){const e=R.c(27),{id:s,author:n,avatar:r,createdAt:a,body:i,metadata:c,actions:o,onOpenThread:d,isReply:u,commentId:f}=t,h=X();let x;e[0]!==n?(x=l.jsx("span",{className:"text-sm font-medium text-foreground",children:n}),e[0]=n,e[1]=x):x=e[1];let p;e[2]!==a?(p=Tr(new Date(a)),e[2]=a,e[3]=p):p=e[3];let g;e[4]!==a||e[5]!==p?(g=l.jsx("time",{dateTime:a,className:"text-sm text-muted-foreground",children:p}),e[4]=a,e[5]=p,e[6]=g):g=e[6];let k;e[7]!==d||e[8]!==h?(k=d&&l.jsx(pe,{variant:"ghost",size:"sm",className:"h-7 text-xs text-muted-foreground",onClick:d,children:h("taskBoard.conversation.openChat")}),e[7]=d,e[8]=h,e[9]=k):k=e[9];let y;e[10]!==o||e[11]!==k?(y=l.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[k,o]}),e[10]=o,e[11]=k,e[12]=y):y=e[12];let b;e[13]!==r||e[14]!==c||e[15]!==x||e[16]!==g||e[17]!==y?(b=l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r,x,g,c,y]}),e[13]=r,e[14]=c,e[15]=x,e[16]=g,e[17]=y,e[18]=b):b=e[18];let m;e[19]!==i||e[20]!==s||e[21]!==u?(m=i&&l.jsx("div",{className:F("min-w-0 break-words pl-8 text-sm leading-relaxed text-foreground [&_li]:text-sm [&_p]:text-sm",u&&"ml-3 border-l border-border pl-5"),children:l.jsx(ba,{id:s,text:i})}),e[19]=i,e[20]=s,e[21]=u,e[22]=m):m=e[22];let j;return e[23]!==f||e[24]!==b||e[25]!==m?(j=l.jsxs("article",{"data-comment-id":f,"data-testid":"task-message",className:"group flex min-w-0 flex-col gap-1.5 py-3",children:[b,m]}),e[23]=f,e[24]=b,e[25]=m,e[26]=j):j=e[26],j}const Ap=["[&_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_p.is-editor-empty:first-child::before]:float-left","[&_p.is-editor-empty:first-child::before]:h-0","[&_p.is-editor-empty:first-child::before]:pointer-events-none"].join(" ");function Dp({placeholder:t,onSubmit:e,onEmptyChange:s,ref:n,className:r}){const[a]=q.useState(()=>new Xo),i=q.useRef(!1),c=Co({extensions:[No.configure({heading:!1,bulletList:!1,orderedList:!1,listItem:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,link:!1,underline:!1}),Zo,ec(a),Ao.configure({placeholder:t}),Wo],editorProps:{attributes:{role:"textbox","aria-label":t,"aria-multiline":"true",class:F("outline-none text-sm leading-relaxed text-foreground",Ap)},handleKeyDown:(d,u)=>u.key!=="Enter"||u.shiftKey||va.getState(d.state)?.active?!1:(u.preventDefault(),o(),!0)},onUpdate:({editor:d})=>s(d.isEmpty)});async function o(){if(!c||i.current)return;const d=c.getMarkdown().trim();if(d){i.current=!0,c.setEditable(!1);try{await e(d)!==!1&&(c.commands.clearContent(),s(!0))}finally{i.current=!1,c.isDestroyed||c.setEditable(!0)}}}return q.useImperativeHandle(n,()=>({submit:o,focus:()=>c?.commands.focus()})),l.jsxs(l.Fragment,{children:[l.jsx(To,{editor:c,className:r}),l.jsx(tc,{store:a})]})}function $p(t){const e=R.c(28),{thread:s,me:n,conversation:r,onReply:a,onDelete:i}=t,c=r===void 0?!0:r,o=c?"border-b border-border/50 pb-4":"rounded-xl bg-card card-shadow";let d;e[0]!==o?(d=F("flex flex-col",o),e[0]=o,e[1]=d):d=e[1];let u;e[2]!==n||e[3]!==i||e[4]!==s?(u=Ri(s,n)?()=>i(s.id):void 0,e[2]=n,e[3]=i,e[4]=s,e[5]=u):u=e[5];let f;e[6]!==c||e[7]!==u||e[8]!==s?(f=l.jsx(Ei,{conversation:c,comment:s,onDelete:u}),e[6]=c,e[7]=u,e[8]=s,e[9]=f):f=e[9];let h;if(e[10]!==c||e[11]!==n||e[12]!==i||e[13]!==s.replies){let g;e[15]!==c||e[16]!==n||e[17]!==i?(g=(k,y)=>l.jsxs(q.Fragment,{children:[l.jsx(zi,{inset:y>0}),l.jsx(Ei,{conversation:c,comment:k,onDelete:Ri(k,n)?()=>i(k.id):void 0,isReply:!0})]},k.id),e[15]=c,e[16]=n,e[17]=i,e[18]=g):g=e[18],h=s.replies.map(g),e[10]=c,e[11]=n,e[12]=i,e[13]=s.replies,e[14]=h}else h=e[14];let x;e[19]!==c||e[20]!==n||e[21]!==a?(x=!c&&a&&l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx(uc,{replyAuthor:n,onSubmit:a})]}),e[19]=c,e[20]=n,e[21]=a,e[22]=x):x=e[22];let p;return e[23]!==d||e[24]!==f||e[25]!==h||e[26]!==x?(p=l.jsxs("div",{className:d,children:[f,h,x]}),e[23]=d,e[24]=f,e[25]=h,e[26]=x,e[27]=p):p=e[27],p}function Ri(t,e){return t.author.id===e.id||t.author.isAgent===!0}function zi(t){const e=R.c(4),{inset:s}=t,n=s&&"ml-12";let r;e[0]!==n?(r=F("h-px bg-border/50",n),e[0]=n,e[1]=r):r=e[1];let a;return e[2]!==r?(a=l.jsx("span",{className:r}),e[2]=r,e[3]=a):a=e[3],a}function Ei(t){const e=R.c(39),{conversation:s,comment:n,isReply:r,onDelete:a}=t;if(!s){let d;e[0]!==n.author?(d=l.jsx(xl,{author:n.author}),e[0]=n.author,e[1]=d):d=e[1];let u;e[2]!==n.author.name?(u=l.jsx("span",{className:"text-sm font-medium text-foreground",children:n.author.name}),e[2]=n.author.name,e[3]=u):u=e[3];let f;e[4]!==n.createdAt?(f=Tr(new Date(n.createdAt)),e[4]=n.createdAt,e[5]=f):f=e[5];let h;e[6]!==f?(h=l.jsx("span",{className:"text-sm text-muted-foreground",children:f}),e[6]=f,e[7]=h):h=e[7];let x;e[8]!==a?(x=a&&l.jsx(Ii,{onDelete:a}),e[8]=a,e[9]=x):x=e[9];let p;e[10]!==d||e[11]!==u||e[12]!==h||e[13]!==x?(p=l.jsxs("div",{className:"flex items-center gap-2",children:[d,u,h,x]}),e[10]=d,e[11]=u,e[12]=h,e[13]=x,e[14]=p):p=e[14];const g=r&&"pl-8";let k;e[15]!==g?(k=F("text-sm leading-relaxed text-foreground [&_li]:text-sm [&_p]:text-sm",g),e[15]=g,e[16]=k):k=e[16];let y;e[17]!==n.body||e[18]!==n.id?(y=l.jsx(ba,{id:n.id,text:n.body}),e[17]=n.body,e[18]=n.id,e[19]=y):y=e[19];let b;e[20]!==k||e[21]!==y?(b=l.jsx("div",{className:k,children:y}),e[20]=k,e[21]=y,e[22]=b):b=e[22];let m;return e[23]!==b||e[24]!==p?(m=l.jsxs("div",{className:"group flex flex-col gap-1.5 p-4",children:[p,b]}),e[23]=b,e[24]=p,e[25]=m):m=e[25],m}let i;e[26]!==n.author?(i=l.jsx(xl,{author:n.author}),e[26]=n.author,e[27]=i):i=e[27];let c;e[28]!==a?(c=a&&l.jsx(Ii,{onDelete:a}),e[28]=a,e[29]=c):c=e[29];let o;return e[30]!==n.author.name||e[31]!==n.body||e[32]!==n.createdAt||e[33]!==n.id||e[34]!==n.onOpenThread||e[35]!==r||e[36]!==i||e[37]!==c?(o=l.jsx(cc,{id:n.id,commentId:n.id,author:n.author.name,avatar:i,createdAt:n.createdAt,body:n.body,isReply:r,onOpenThread:n.onOpenThread,actions:c}),e[30]=n.author.name,e[31]=n.body,e[32]=n.createdAt,e[33]=n.id,e[34]=n.onOpenThread,e[35]=r,e[36]=i,e[37]=c,e[38]=o):o=e[38],o}function Ii(t){const e=R.c(13),{onDelete:s}=t,n=X();let r;e[0]!==n?(r=n("taskBoard.taskDialog.commentActionsAriaLabel"),e[0]=n,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(ir,{size:16}),e[2]=a):a=e[2];let i;e[3]!==r?(i=l.jsx(qe,{asChild:!0,children:l.jsx("button",{type:"button","aria-label":r,className:"ml-auto flex size-7 shrink-0 items-center justify-center classic:rounded-md compact:rounded-lg text-muted-foreground opacity-0 transition-colors hover:bg-muted hover:text-foreground focus-visible:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100",children:a})}),e[3]=r,e[4]=i):i=e[4];let c;e[5]!==s||e[6]!==n?(c=s&&l.jsxs(Ne,{variant:"destructive",onSelect:s,children:[l.jsx(yl,{size:16}),n("taskBoard.taskDialog.commentDelete")]}),e[5]=s,e[6]=n,e[7]=c):c=e[7];let o;e[8]!==c?(o=l.jsx(Ke,{align:"end",className:"w-48",children:c}),e[8]=c,e[9]=o):o=e[9];let d;return e[10]!==i||e[11]!==o?(d=l.jsxs(Ue,{children:[i,o]}),e[10]=i,e[11]=o,e[12]=d):d=e[12],d}function xl(t){const e=R.c(7),{author:s}=t;if(s.isReviewer){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(pr,{size:24}),e[0]=i):i=e[0],i}if(s.isAgent){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(We,{size:24}),e[1]=i):i=e[1],i}const n=s.image??void 0;let r;e[2]!==s.name?(r=Me(s.name),e[2]=s.name,e[3]=r):r=e[3];let a;return e[4]!==n||e[5]!==r?(a=l.jsx(Le,{url:n,fallback:r,shape:"circle",size:"xs"}),e[4]=n,e[5]=r,e[6]=a):a=e[6],a}function dc(t){const e=R.c(2),{onSubmit:s}=t;let n;return e[0]!==s?(n=l.jsx(uc,{onSubmit:s}),e[0]=s,e[1]=n):n=e[1],n}function uc(t){const e=R.c(30),{onSubmit:s,replyAuthor:n}=t,r=X(),a=q.useRef(null),[i,c]=q.useState(!0);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>a.current?.submit(),e[0]=o):o=e[0];const d=o,u=n?"taskBoard.taskDialog.commentReplyPlaceholder":"taskBoard.taskDialog.commentPlaceholder";let f;e[1]!==r||e[2]!==u?(f=r(u),e[1]=r,e[2]=u,e[3]=f):f=e[3];const h=!n&&"min-h-10";let x;e[4]!==h?(x=F("w-full [&_.tiptap]:outline-none",h),e[4]=h,e[5]=x):x=e[5];let p;e[6]!==s||e[7]!==f||e[8]!==x?(p=l.jsx(Dp,{ref:a,placeholder:f,onSubmit:s,onEmptyChange:c,className:x}),e[6]=s,e[7]=f,e[8]=x,e[9]=p):p=e[9];const g=p;let k;e[10]!==r?(k=r("taskBoard.taskDialog.commentSubmitAriaLabel"),e[10]=r,e[11]=k):k=e[11];let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=l.jsx(ff,{size:16}),e[12]=y):y=e[12];let b;e[13]!==i||e[14]!==k?(b=l.jsx("button",{type:"button",disabled:i,onClick:d,"aria-label":k,className:"flex size-7 shrink-0 cursor-pointer items-center justify-center classic:rounded-md compact:rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-40",children:y}),e[13]=i,e[14]=k,e[15]=b):b=e[15];const m=b;let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=()=>a.current?.focus(),e[16]=j):j=e[16];const v=j;if(n){let N;e[17]!==n?(N=l.jsx("span",{className:"mt-0.5 shrink-0",children:l.jsx(xl,{author:n})}),e[17]=n,e[18]=N):N=e[18];let T;e[19]!==g?(T=l.jsx("div",{className:"min-w-0 flex-1 pt-0.5",children:g}),e[19]=g,e[20]=T):T=e[20];let C;return e[21]!==m||e[22]!==N||e[23]!==T?(C=l.jsxs("div",{"data-testid":"reply-composer",onClick:v,className:"relative flex cursor-text items-start gap-2 p-3",children:[N,T,m]}),e[21]=m,e[22]=N,e[23]=T,e[24]=C):C=e[24],C}let w;e[25]!==m?(w=l.jsx("div",{className:"flex items-center justify-end",children:m}),e[25]=m,e[26]=w):w=e[26];let S;return e[27]!==w||e[28]!==g?(S=l.jsxs("div",{"data-testid":"new-comment-composer",onClick:v,className:"relative flex cursor-text flex-col gap-1 rounded-xl bg-card p-3 card-shadow",children:[g,w]}),e[27]=w,e[28]=g,e[29]=S):S=e[29],S}function Rp(t){const e=t.filter(n=>!n.parentId).map(n=>({...n,replies:[]})),s=new Map(e.map(n=>[n.id,n]));for(const n of t)n.parentId&&s.get(n.parentId)?.replies.push(n);return e}function Gl(t){const e=R.c(37),{locator:s}=Ge(),n=Tt(),r=ur();let a;e[0]!==t||e[1]!==s?(a=Je.taskBoardComments(s,t??""),e[0]=t,e[1]=s,e[2]=a):a=e[2];const i=a,c=!!t;let o;e[3]!==t||e[4]!==n?(o=async()=>Rp((await n.call("TASK_BOARD_COMMENT_LIST",{taskBoardItemId:t})).comments),e[3]=t,e[4]=n,e[5]=o):o=e[5];let d;e[6]!==i||e[7]!==c||e[8]!==o?(d={queryKey:i,enabled:c,queryFn:o},e[6]=i,e[7]=c,e[8]=o,e[9]=d):d=e[9];const u=dr(d);let f;e[10]!==r||e[11]!==i?(f=()=>r.invalidateQueries({queryKey:i}),e[10]=r,e[11]=i,e[12]=f):f=e[12];const h=f;let x;e[13]!==t||e[14]!==n?(x=N=>n.call("TASK_BOARD_COMMENT_CREATE",{taskBoardItemId:t,...N}),e[13]=t,e[14]=n,e[15]=x):x=e[15];let p;e[16]!==h||e[17]!==x?(p={mutationFn:x,onSuccess:h},e[16]=h,e[17]=x,e[18]=p):p=e[18];const g=Wt(p);let k;e[19]!==n?(k=N=>n.call("TASK_BOARD_COMMENT_UPDATE",N),e[19]=n,e[20]=k):k=e[20];let y;e[21]!==h||e[22]!==k?(y={mutationFn:k,onSuccess:h},e[21]=h,e[22]=k,e[23]=y):y=e[23];const b=Wt(y);let m;e[24]!==n?(m=N=>n.call("TASK_BOARD_COMMENT_DELETE",{id:N}),e[24]=n,e[25]=m):m=e[25];let j;e[26]!==h||e[27]!==m?(j={mutationFn:m,onSuccess:h},e[26]=h,e[27]=m,e[28]=j):j=e[28];const v=Wt(j);let w;e[29]!==u.data?(w=u.data??[],e[29]=u.data,e[30]=w):w=e[30];let S;return e[31]!==g||e[32]!==u.isPending||e[33]!==v||e[34]!==b||e[35]!==w?(S={threads:w,isLoading:u.isPending,post:g,setResolved:b,remove:v},e[31]=g,e[32]=u.isPending,e[33]=v,e[34]=b,e[35]=w,e[36]=S):S=e[36],S}function zp(t){const e=R.c(24),{locator:s}=Ge(),n=Tt(),r=ur();let a;e[0]!==t||e[1]!==s?(a=Je.notificationSubscribers(s,t??""),e[0]=t,e[1]=s,e[2]=a):a=e[2];const i=a,c=!!t;let o;e[3]!==t||e[4]!==n?(o=async()=>(await n.call("NOTIFICATION_SUBSCRIPTION_LIST",{taskBoardItemId:t})).userIds,e[3]=t,e[4]=n,e[5]=o):o=e[5];let d;e[6]!==i||e[7]!==c||e[8]!==o?(d={queryKey:i,enabled:c,queryFn:o},e[6]=i,e[7]=c,e[8]=o,e[9]=d):d=e[9];const u=dr(d);let f;e[10]!==t||e[11]!==n?(f=y=>n.call("NOTIFICATION_SUBSCRIPTION_SET",{taskBoardItemId:t,subscribed:y}),e[10]=t,e[11]=n,e[12]=f):f=e[12];let h;e[13]!==r||e[14]!==i?(h=()=>r.invalidateQueries({queryKey:i}),e[13]=r,e[14]=i,e[15]=h):h=e[15];let x;e[16]!==f||e[17]!==h?(x={mutationFn:f,onSuccess:h},e[16]=f,e[17]=h,e[18]=x):x=e[18];const p=Wt(x);let g;e[19]!==u.data?(g=u.data??[],e[19]=u.data,e[20]=g):g=e[20];let k;return e[21]!==p||e[22]!==g?(k={subscriberIds:g,setSubscribed:p},e[21]=p,e[22]=g,e[23]=k):k=e[23],k}const Ep=3;function Ip(t){const e=R.c(23),{itemId:s,members:n}=t,r=X(),{data:a}=Zi.useSession(),i=a?.user?.id,{subscriberIds:c,setSubscribed:o}=zp(s);let d;e[0]!==i||e[1]!==c?(d=!!i&&c.includes(i),e[0]=i,e[1]=c,e[2]=d):d=e[2];const u=d;let f;if(e[3]!==s||e[4]!==n||e[5]!==i||e[6]!==o||e[7]!==u||e[8]!==c||e[9]!==r){const h=new Map(n.map(Pp)),x=i?h.get(i):void 0;let p;e[11]!==i?(p=S=>S!==i,e[11]=i,e[12]=p):p=e[12];const g=c.filter(p).map(S=>h.get(S)).filter(Mp),k=[...u&&x?[x]:[],...g],y=k.slice(0,Ep),b=k.length-y.length,m=!s||o.isPending;let j;e[13]!==o||e[14]!==u?(j=()=>o.mutate(!u),e[13]=o,e[14]=u,e[15]=j):j=e[15];let v;e[16]!==u||e[17]!==r?(v=r(u?"taskBoard.taskDialog.unsubscribe":"taskBoard.taskDialog.subscribe"),e[16]=u,e[17]=r,e[18]=v):v=e[18];let w;e[19]!==m||e[20]!==j||e[21]!==v?(w=l.jsx(pe,{type:"button",variant:"ghost",size:"sm",disabled:m,onClick:j,className:"h-7 px-2 text-sm font-normal text-muted-foreground",children:v}),e[19]=m,e[20]=j,e[21]=v,e[22]=w):w=e[22],f=l.jsxs("div",{className:"flex items-center gap-2",children:[w,y.length>0&&l.jsxs("span",{className:"inline-flex items-center",title:k.map(S=>S.user?.name??r("taskBoard.taskDialog.someoneLabel")).join(", "),children:[y.map(Lp),b>0&&l.jsxs("span",{className:"-ml-2 inline-flex size-6 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground ring-2 ring-background",children:["+",b]})]})]}),e[3]=s,e[4]=n,e[5]=i,e[6]=o,e[7]=u,e[8]=c,e[9]=r,e[10]=f}else f=e[10];return f}function Lp(t){return l.jsx(Le,{url:t.user?.image??void 0,fallback:Me(t.user?.name),shape:"circle",size:"xs",className:"-ml-2 ring-2 ring-background first:ml-0"},t.userId)}function Mp(t){return!!t}function Pp(t){return[t.userId,t]}function Fp({item:t,enabled:e,hidden:s,children:n}){const r=X(),a=hf({initial:!1,resize:"instant"}),i=Gl(t?.id),[c,o]=q.useState(null),d=i.threads.flatMap(f=>[f.id,...f.replies.map(h=>h.id)]);!i.isLoading&&(c===null||a.isAtBottom)&&d.join()!==c?.join()&&o(d);const u=c?d.filter(f=>!c.includes(f)).length:0;return!t||!e?l.jsx("div",{className:"min-w-0 sm:flex-1",children:n}):l.jsxs("div",{className:F("relative min-h-0 min-w-0 flex-1 flex-col",s?"hidden lg:flex":"flex"),children:[l.jsx("div",{"data-testid":"task-conversation-scroll",ref:a.scrollRef,className:"min-h-0 flex-1 overflow-y-auto",children:l.jsx("div",{ref:a.contentRef,children:n})}),t&&l.jsxs("div",{className:"relative shrink-0 border-t border-border bg-background px-5 pb-4 pt-3 sm:px-8",children:[!a.isAtBottom&&l.jsx("div",{className:"absolute inset-x-0 bottom-full flex justify-center pb-3 pointer-events-none",children:l.jsx(pe,{variant:"secondary",size:"sm",className:"pointer-events-auto rounded-full border border-border shadow-md",onClick:()=>{a.scrollToBottom()},children:u?r("taskBoard.conversation.newReplies",{count:u}):r("taskBoard.conversation.jumpToLatest")})}),l.jsx(dc,{onSubmit:async f=>{try{return await i.post.mutateAsync({body:f}),a.scrollToBottom(),!0}catch(h){return Fe.error(h instanceof Error?h.message:r("taskBoard.conversation.sendFailed")),!1}}})]})]})}function Vl(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function fc(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Li=560,Op=2e3,hc=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),Nt="inline-flex h-9 items-center justify-start gap-2 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted sm:border-transparent",Mi=4,Pi=1,kr="opacity-50";function Hp(t){const e=R.c(22),{threads:s}=t,n=X();let r,a,i,c,o,d;if(e[0]!==n||e[1]!==s){d=Symbol.for("react.early_return_sentinel");e:{const h=tp(s);if(!h){d=null;break e}const{total:x,runCount:p,onSubscription:g}=h,k=p===1,y=g?k?"taskBoard.taskDialog.costTooltipSubscriptionSingular":"taskBoard.taskDialog.costTooltipSubscriptionPlural":k?"taskBoard.taskDialog.costTooltipSingular":"taskBoard.taskDialog.costTooltipPlural";e[8]===Symbol.for("react.memo_cache_sentinel")?(i=F(Nt,"cursor-default hover:bg-transparent"),e[8]=i):i=e[8];const b=String(p);e[9]!==n||e[10]!==b||e[11]!==y?(c=n(y,{runs:b}),e[9]=n,e[10]=b,e[11]=y,e[12]=c):c=e[12],e[13]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(cu,{size:16,className:"shrink-0 text-muted-foreground"}),e[13]=o):o=e[13],r="tabular-nums",a=n("taskBoard.taskDialog.costEstimatePrefix",{amount:x.toLocaleString(void 0,{style:"currency",currency:"USD"})})}e[0]=n,e[1]=s,e[2]=r,e[3]=a,e[4]=i,e[5]=c,e[6]=o,e[7]=d}else r=e[2],a=e[3],i=e[4],c=e[5],o=e[6],d=e[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;let u;e[14]!==r||e[15]!==a?(u=l.jsx("span",{className:r,children:a}),e[14]=r,e[15]=a,e[16]=u):u=e[16];let f;return e[17]!==i||e[18]!==c||e[19]!==o||e[20]!==u?(f=l.jsxs("div",{className:i,title:c,children:[o,u]}),e[17]=i,e[18]=c,e[19]=o,e[20]=u,e[21]=f):f=e[21],f}function ea(t){const e=R.c(7),{label:s,children:n}=t;let r;e[0]!==s?(r=l.jsx("span",{className:"px-3 text-sm font-medium text-muted-foreground opacity-[0.74]",children:s}),e[0]=s,e[1]=r):r=e[1];let a;e[2]!==n?(a=l.jsx("div",{className:"flex flex-wrap gap-2 sm:flex-col sm:items-start sm:gap-1",children:n}),e[2]=n,e[3]=a):a=e[3];let i;return e[4]!==r||e[5]!==a?(i=l.jsxs("div",{className:"flex flex-col gap-2",children:[r,a]}),e[4]=r,e[5]=a,e[6]=i):i=e[6],i}function qp(t){const e=R.c(7),{item:s}=t,n=X(),{data:r}=Kl(s.id);if(!r||r.length===0)return null;let a;e[0]!==n?(a=n("taskBoard.taskDialog.reviewsLabel"),e[0]=n,e[1]=a):a=e[1];let i;e[2]!==r?(i=r.map(Kp),e[2]=r,e[3]=i):i=e[3];let c;return e[4]!==a||e[5]!==i?(c=l.jsx(ea,{label:a,children:i}),e[4]=a,e[5]=i,e[6]=c):c=e[6],c}function Kp(t){return l.jsx(pe,{asChild:!0,variant:"ghost",className:"h-9 w-full justify-start gap-2 px-3 font-medium",children:l.jsxs("a",{href:t.url,target:"_blank",rel:"noreferrer",title:t.title?`#${t.number} ${t.title}`:t.url,children:[l.jsx(Xr,{size:16,className:"shrink-0"}),l.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:t.title??`#${t.number}`})]})},t.url)}function Up(t){const e=R.c(11),{label:s,action:n,children:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(Et,{size:14,className:"shrink-0 transition-transform group-data-[state=closed]:-rotate-90"}),e[0]=a):a=e[0];let i;e[1]!==s?(i=l.jsxs(lu,{className:"group flex w-fit items-center gap-2 text-sm text-muted-foreground transition-colors hover:text-foreground",children:[s,a]}),e[1]=s,e[2]=i):i=e[2];let c;e[3]!==n||e[4]!==i?(c=l.jsxs("div",{className:"flex min-h-7 items-center justify-between gap-2",children:[i,n]}),e[3]=n,e[4]=i,e[5]=c):c=e[5];let o;e[6]!==r?(o=l.jsx(iu,{className:"-mx-2 -mb-2",children:l.jsx("div",{className:"px-2 pb-2",children:r})}),e[6]=r,e[7]=o):o=e[7];let d;return e[8]!==c||e[9]!==o?(d=l.jsxs(ou,{defaultOpen:!0,className:"flex flex-col gap-2",children:[c,o]}),e[8]=c,e[9]=o,e[10]=d):d=e[10],d}function pc(t){const e=R.c(424),{chrome:s,open:n,onClose:r,item:a,defaultStatus:i,defaultRepo:c,onSubmit:o,onDelete:d,onClone:u,onArchive:f,onOpenPreview:h,onNewChat:x,onAutoFix:p,onRerun:g,isSaving:k}=t,y=n===void 0?!0:n,b=ma(),m=X(),{org:j}=Ge();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const{agentId:w}=pa(v),{data:S}=Sl(),N=S?.data?.members??[],T=Cl("delivery_lanes_enabled"),{handleCopy:C,copied:D}=nl(),{handleCopy:E,copied:$}=nl(),{handleCopy:L,copied:M}=nl(),{data:B}=Nl();let A;e[1]!==B?(A=B===void 0?[]:B,e[1]=B,e[2]=A):A=e[2];const z=A,K=Zd(),U=Xd();let Q;e[3]===Symbol.for("react.memo_cache_sentinel")?(Q={slug:"mcp-github"},e[3]=Q):Q=e[3];const ee=$o(Q);let O;e[4]!==ee?(O=rf(ee),e[4]=ee,e[5]=O):O=e[5];const W=oc(vp,O),Z=uo(W),J=a?.title??"",re=a?.description??"",Y=a?.status??i??_d[0],ne=a?.priority??"medium",ce=a?.type??Ad,ue=a?.assigneeId??null,le=a?.repo??c??null,I=a?.dueDate;let H;e[6]!==I?(H=fc(I),e[6]=I,e[7]=H):H=e[7];let fe;e[8]!==a?.tags?(fe=a?.tags.map(Zp)??[],e[8]=a?.tags,e[9]=fe):fe=e[9];let de;e[10]!==Y||e[11]!==ne||e[12]!==ce||e[13]!==ue||e[14]!==le||e[15]!==H||e[16]!==fe||e[17]!==J||e[18]!==re?(de={title:J,description:re,status:Y,priority:ne,type:ce,assigneeId:ue,repo:le,dueDate:H,tagIds:fe},e[10]=Y,e[11]=ne,e[12]=ce,e[13]=ue,e[14]=le,e[15]=H,e[16]=fe,e[17]=J,e[18]=re,e[19]=de):de=e[19];const[be,Ce]=q.useState(de),{title:ae,description:ge,status:ie,priority:Te,assigneeId:G,repo:V,dueDate:he}=be;let ve;e[20]!==W||e[21]!==V?(ve=V?yr(V,W):void 0,e[20]=W,e[21]=V,e[22]=ve):ve=e[22];const ke=ve,Ae=be.type,we=be.tagIds,[Re,Ye]=q.useState(!1),[Be,Bt]=q.useState(!a),[ut,$e]=q.useState(!1),[et,os]=q.useState(!1),ft=et&&!Re;let yt;e[23]===Symbol.for("react.memo_cache_sentinel")?(yt=P=>{if(!P)return;const xe=()=>os(P.scrollHeight>Li);xe();const De=new ResizeObserver(xe);return De.observe(P),()=>De.disconnect()},e[23]=yt):yt=e[23];const Sa=yt,[cs,It]=q.useState(!1),[tt,ds]=q.useState(!1),[Lt,Mt]=q.useState(!1),[Pt,us]=q.useState(null);let _t;e[24]!==a?.threads||e[25]!==Pt?(_t=a?.threads.find(P=>P.threadId===Pt)??null,e[24]=a?.threads,e[25]=Pt,e[26]=_t):_t=e[26];const ht=_t,Ze=q.useRef(be),Ve=q.useRef(null),fs=q.useRef(o);let st;e[27]===Symbol.for("react.memo_cache_sentinel")?(st=()=>{Ve.current=null;const P=Ze.current;P.title.trim()&&fs.current({title:P.title.trim(),description:P.description.trim()||null,status:P.status,priority:P.priority,type:P.type,assigneeId:P.assigneeId,repo:P.repo,dueDate:P.dueDate?Vl(P.dueDate):null,tagIds:P.tagIds})},e[27]=st):st=e[27];const Pe=st;let nt;e[28]!==Pe||e[29]!==a||e[30]!==o?(nt=(P,xe)=>{const De=xe===void 0?!1:xe,Qe={...Ze.current,...P};Ze.current=Qe,fs.current=o,Ce(Qe),a&&(Ve.current&&clearTimeout(Ve.current),De?Ve.current=setTimeout(Pe,Op):Pe())},e[28]=Pe,e[29]=a,e[30]=o,e[31]=nt):nt=e[31];const oe=nt;let rt;e[32]!==Pe?(rt=()=>{Ve.current&&(clearTimeout(Ve.current),Pe())},e[32]=Pe,e[33]=rt):rt=e[33];const Ee=rt;let at;e[34]===Symbol.for("react.memo_cache_sentinel")?(at=()=>{Ve.current&&(clearTimeout(Ve.current),Ve.current=null)},e[34]=at):at=e[34];const jt=at;let vt;e[35]!==Ee||e[36]!==r?(vt=()=>{Ee(),r()},e[35]=Ee,e[36]=r,e[37]=vt):vt=e[37];const _=vt;let se;e[38]!==Ee?(se=P=>{if(P)return()=>Ee()},e[38]=Ee,e[39]=se):se=e[39];const Se=se;let Ie;e[40]!==_?(Ie=P=>{if(!P)return;const xe=De=>{if(De.key!=="Escape"||De.defaultPrevented||document.querySelector('[data-radix-popper-content-wrapper], [role="dialog"][data-state="open"]'))return;const Qe=De.target;if(Qe instanceof HTMLElement&&(Qe.isContentEditable||Qe instanceof HTMLInputElement||Qe instanceof HTMLTextAreaElement)){Qe.blur();return}_()};return document.addEventListener("keydown",xe),()=>document.removeEventListener("keydown",xe)},e[40]=_,e[41]=Ie):Ie=e[41];const lt=Ie;let pt;e[42]!==K||e[43]!==oe?(pt=async(P,xe)=>{const De=await K.mutateAsync({name:P,color:xe});oe({tagIds:[...Ze.current.tagIds,De.id]})},e[42]=K,e[43]=oe,e[44]=pt):pt=e[44];const Na=pt;let Dr;e[45]!==U||e[46]!==oe?(Dr=P=>{U.mutate(P),oe({tagIds:Ze.current.tagIds.filter(xe=>xe!==P)})},e[45]=U,e[46]=oe,e[47]=Dr):Dr=e[47];const Ca=Dr,hs=G===ye,$r=a&&p&&(ie==="triage"||ie==="todo")&&!hs,Rr=a&&g&&a.assigneeId===ye;let zr;e[48]!==a||e[49]!==j?(zr=a?fo(j.slug,a.keySeq):null,e[48]=a,e[49]=j,e[50]=zr):zr=e[50];const At=zr;let Er;e[51]!==G?(Er=P=>P.userId===G,e[51]=G,e[52]=Er):Er=e[52];const Ir=N.find(Er),wt=a?.assignedBy?N.find(P=>P.userId===a.assignedBy):void 0,Ft=a?N.find(P=>P.userId===a.createdBy):void 0;let Lr;e[53]!==ie?(Lr=il(ie),e[53]=ie,e[54]=Lr):Lr=e[54];const Ta=Lr.icon,_e=!!a&&Jr(a);let ps;e[55]!==b||e[56]!==ut||e[57]!==a||e[58]!==m?(ps=b&&a&&l.jsx(pe,{variant:"ghost",size:"sm",className:"lg:hidden",onClick:()=>$e(Yp),"aria-expanded":ut,children:m("taskBoard.conversation.details")}),e[55]=b,e[56]=ut,e[57]=a,e[58]=m,e[59]=ps):ps=e[59];let ms;e[60]!==k||e[61]!==a||e[62]!==m?(ms=a&&k&&l.jsx("span",{className:"mr-1 text-sm text-muted-foreground",children:m("taskBoard.taskDialog.savingLabel")}),e[60]=k,e[61]=a,e[62]=m,e[63]=ms):ms=e[63];let gs;e[64]!==b||e[65]!==a||e[66]!==m?(gs=a?.externalUrl&&l.jsx(Gt,{asChild:!0,variant:b?"secondary":"ghost",label:m("taskBoard.taskDialog.openInTrackerAriaLabel"),children:l.jsx("a",{href:a.externalUrl,target:"_blank",rel:"noreferrer",children:l.jsx(vr,{size:16})})}),e[64]=b,e[65]=a,e[66]=m,e[67]=gs):gs=e[67];let xs;e[68]!==w||e[69]!==b||e[70]!==D||e[71]!==E||e[72]!==ge||e[73]!==C||e[74]!==a||e[75]!==$||e[76]!==f||e[77]!==p||e[78]!==u||e[79]!==d||e[80]!==x||e[81]!==g||e[82]!==j||e[83]!==$r||e[84]!==Rr||e[85]!==ie||e[86]!==m?(xs=a&&l.jsxs(l.Fragment,{children:[l.jsx(Gt,{variant:b?"secondary":"ghost",label:m("taskBoard.taskDialog.shareAriaLabel"),onClick:()=>{E(`${window.location.origin}${ho(j.slug,a,w)}`),Fe.success(m("taskBoard.taskDialog.linkCopied"))},children:$?l.jsx(Rt,{size:16}):l.jsx(Zc,{size:16})}),l.jsxs(Ue,{modal:!1,children:[l.jsx(qe,{asChild:!0,children:l.jsx(pe,{variant:b?"secondary":"ghost",size:"icon-sm","aria-label":m("taskBoard.taskDialog.moreActionsAriaLabel"),children:l.jsx(ir,{size:16})})}),l.jsxs(Ke,{align:"end",className:"w-48",children:[x&&l.jsxs(Ne,{onSelect:x,children:[l.jsx(eo,{size:16}),m("taskBoard.taskDialog.newChatButton")]}),$r&&l.jsxs(Ne,{onSelect:p,children:[l.jsx(na,{size:16}),m("taskBoard.taskBoard.autoFix")]}),Rr&&l.jsxs(Ne,{onSelect:g,children:[l.jsx(ga,{size:16}),m("taskBoard.taskBoard.rerun")]}),(x||$r||Rr)&&l.jsx(Xi,{}),ge&&l.jsxs(Ne,{onSelect:()=>C(ge),children:[D?l.jsx(Rt,{size:16}):l.jsx(du,{size:16}),m("taskBoard.taskDialog.copyDescription")]}),u&&l.jsxs(Ne,{onSelect:u,children:[l.jsx(Xc,{size:16}),m("taskBoard.taskDialog.cloneTask")]}),f&&ie!=="archived"&&l.jsxs(Ne,{onSelect:()=>{jt(),f()},children:[l.jsx(zc,{size:16}),m("taskBoard.taskDialog.archiveTask")]}),d&&l.jsxs(Ne,{variant:"destructive",onSelect:()=>{jt(),d()},children:[l.jsx(yl,{size:16}),m("taskBoard.taskDialog.deleteTask")]})]})]})]}),e[68]=w,e[69]=b,e[70]=D,e[71]=E,e[72]=ge,e[73]=C,e[74]=a,e[75]=$,e[76]=f,e[77]=p,e[78]=u,e[79]=d,e[80]=x,e[81]=g,e[82]=j,e[83]=$r,e[84]=Rr,e[85]=ie,e[86]=m,e[87]=xs):xs=e[87];let ks;e[88]!==s||e[89]!==_||e[90]!==b||e[91]!==m?(ks=s==="dialog"&&l.jsx(Gt,{variant:b?"secondary":"ghost",label:m("taskBoard.taskDialog.closeAriaLabel"),onClick:_,children:l.jsx(Yt,{size:16})}),e[88]=s,e[89]=_,e[90]=b,e[91]=m,e[92]=ks):ks=e[92];let Mr;e[93]!==ps||e[94]!==ms||e[95]!==gs||e[96]!==xs||e[97]!==ks?(Mr=l.jsxs("div",{className:"flex items-center gap-2",children:[ps,ms,gs,xs,ks]}),e[93]=ps,e[94]=ms,e[95]=gs,e[96]=xs,e[97]=ks,e[98]=Mr):Mr=e[98];const Pr=Mr;let Fr;e[99]!==Pr||e[100]!==s||e[101]!==_||e[102]!==b||e[103]!==L||e[104]!==M||e[105]!==At||e[106]!==m?(Fr=b&&s==="page"?l.jsxs(l.Fragment,{children:[l.jsx(Kt.Breadcrumbs,{after:"page",parent:{label:m("taskBoard.taskDetail.breadcrumbTasks"),onSelect:_},items:[{key:"task",label:At??m("taskBoard.taskDetail.breadcrumbTask")}]}),l.jsx(Kt.Actions,{children:Pr})]}):l.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 px-6 pb-4 pt-6 sm:px-8",children:[s==="page"?l.jsx(Jd,{className:"-ml-2",children:l.jsxs(eu,{className:"text-[15px]",children:[l.jsx(si,{children:l.jsx(tu,{asChild:!0,className:"rounded-md px-2 py-1 text-muted-foreground hover:bg-accent",children:l.jsx("button",{type:"button",onClick:_,children:m("taskBoard.taskDetail.breadcrumbTasks")})})}),l.jsx(su,{}),l.jsx(si,{children:l.jsx(nu,{className:"px-2 py-1",children:At??m("taskBoard.taskDetail.breadcrumbTask")})})]})}):At?l.jsxs(pe,{variant:"ghost",size:"sm",title:At,"aria-label":m("taskBoard.taskDialog.copyIdAriaLabel"),className:"-ml-2 gap-2 px-2 text-[15px] text-muted-foreground hover:text-foreground",onClick:()=>{L(At),Fe.success(m("taskBoard.taskDialog.idCopied"))},children:[M?l.jsx(Rt,{size:16}):l.jsx(Xl,{size:16}),At]}):l.jsxs("span",{"aria-hidden":!0,className:"flex h-7 items-center gap-2 text-[15px] text-muted-foreground opacity-50",children:[l.jsx(Xl,{size:16}),"–"]}),Pr]}),e[99]=Pr,e[100]=s,e[101]=_,e[102]=b,e[103]=L,e[104]=M,e[105]=At,e[106]=m,e[107]=Fr):Fr=e[107];const Or=Fr;let bs;e[108]!==s||e[109]!==b||e[110]!==Or?(bs=s==="page"?l.jsx("div",{className:F("mx-auto w-full",b?"max-w-[1280px]":"max-w-[1040px]"),children:Or}):Or,e[108]=s,e[109]=b,e[110]=Or,e[111]=bs):bs=e[111];const Ba=b&&a?"overflow-hidden":"overflow-y-auto";let ys;e[112]!==Ba?(ys=F("flex min-h-0 flex-1 flex-col",Ba),e[112]=Ba,e[113]=ys):ys=e[113];const _a=b?"min-h-0 flex-1 lg:flex-row":"sm:flex-row",Aa=s==="page"&&"mx-auto w-full",Da=s==="page"&&(b?"max-w-[1280px]":"max-w-[1040px]");let js;e[114]!==_a||e[115]!==Aa||e[116]!==Da?(js=F("flex flex-col",_a,Aa,Da),e[114]=_a,e[115]=Aa,e[116]=Da,e[117]=js):js=e[117];const $a=!!a&&ut,Ra=b&&a&&l.jsxs("div",{className:"mb-3 flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(Le,{url:Ft?.user?.image??void 0,fallback:Me(Ft?.user?.name),shape:"circle",size:"xs"}),l.jsx("span",{className:"font-medium text-foreground",children:Jr(a)?m("taskBoard.taskDialog.createdBySystemLabel"):Ft?.user?.name??m("taskBoard.taskDialog.unknownCreatorLabel")}),l.jsx("time",{dateTime:a.createdAt,children:Tr(new Date(a.createdAt))}),!_e&&l.jsx(pe,{variant:"ghost",size:"sm",className:"ml-auto",onClick:()=>{Ee(),Bt(Qp)},children:m(Be?"taskBoard.conversation.doneEditing":"taskBoard.conversation.edit")})]}),za=b&&a&&!Be?l.jsx("h1",{className:"text-2xl font-semibold leading-snug text-foreground",children:ae}):l.jsx("textarea",{ref:Vp,value:ae,onChange:P=>{_e||(oe({title:P.target.value},!0),P.target.style.height="auto",P.target.style.height=`${P.target.scrollHeight}px`)},onKeyDown:Gp,onBlur:Ee,placeholder:m("taskBoard.taskDialog.taskTitlePlaceholder"),autoFocus:!a,rows:1,readOnly:_e,className:F("w-full resize-none overflow-hidden border-0 bg-transparent text-2xl font-semibold leading-snug text-foreground outline-none placeholder:text-foreground/30",_e&&"cursor-default")});let vs;e[118]!==b||e[119]!==a||e[120]!==z||e[121]!==we?(vs=b&&a&&we.length>0&&l.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:we.map(P=>{const xe=z.find(De=>De.id===P);return xe?l.jsx("span",{className:"rounded-md border border-border px-2 py-1",children:xe.name},P):null})}),e[118]=b,e[119]=a,e[120]=z,e[121]=we,e[122]=vs):vs=e[122];let ws;e[123]!==_e||e[124]!==m?(ws=_e&&l.jsxs("p",{className:"mb-3 mt-1 flex items-center gap-1.5 text-xs text-muted-foreground",children:[l.jsx(Ec,{size:12}),m("taskBoard.taskDialog.reportsContentLocked")]}),e[123]=_e,e[124]=m,e[125]=ws):ws=e[125];let Ss;e[126]!==za||e[127]!==vs||e[128]!==ws?(Ss=l.jsxs("div",{children:[za,vs,ws]}),e[126]=za,e[127]=vs,e[128]=ws,e[129]=Ss):Ss=e[129];let Ns;e[130]!==a||e[131]!==g||e[132]!==j?(Ns=a&&l.jsx(Nm,{item:a,orgSlug:j.slug,onRerun:g}),e[130]=a,e[131]=g,e[132]=j,e[133]=Ns):Ns=e[133];const Ea=ft&&"overflow-hidden";let Cs;e[134]!==Ea?(Cs=F("relative",Ea),e[134]=Ea,e[135]=Cs):Cs=e[135];let Ts;e[136]!==ft?(Ts=ft?{maxHeight:Li}:void 0,e[136]=ft,e[137]=Ts):Ts=e[137];let Hr;e[138]===Symbol.for("react.memo_cache_sentinel")?(Hr=()=>Ye(!0),e[138]=Hr):Hr=e[138];let Bs;e[139]!==b||e[140]!==_e||e[141]!==ge||e[142]!==Be||e[143]!==a||e[144]!==oe||e[145]!==m?(Bs=l.jsx("div",{ref:Sa,"data-testid":"task-description",children:b&&a&&!Be?l.jsx(ba,{id:`task-post-${a.id}`,text:ge}):l.jsx(J1,{defaultValue:ge,onChange:P=>oe({description:P},!0),placeholder:m("taskBoard.taskDialog.descriptionPlaceholder"),editable:!_e})}),e[139]=b,e[140]=_e,e[141]=ge,e[142]=Be,e[143]=a,e[144]=oe,e[145]=m,e[146]=Bs):Bs=e[146];let _s;e[147]!==ft?(_s=ft&&l.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-background to-transparent"}),e[147]=ft,e[148]=_s):_s=e[148];let As;e[149]!==Ee||e[150]!==Cs||e[151]!==Ts||e[152]!==Bs||e[153]!==_s?(As=l.jsxs("div",{className:Cs,style:Ts,onFocusCapture:Hr,onBlurCapture:Ee,children:[Bs,_s]}),e[149]=Ee,e[150]=Cs,e[151]=Ts,e[152]=Bs,e[153]=_s,e[154]=As):As=e[154];let Ds;e[155]!==Re||e[156]!==et||e[157]!==m?(Ds=et&&l.jsxs(pe,{type:"button",variant:"ghost",size:"sm",className:"mt-2 w-fit text-muted-foreground hover:text-foreground",onClick:()=>Ye(Wp),children:[l.jsx(Et,{size:14,className:F("transition-transform",Re&&"rotate-180")}),m(Re?"taskBoard.taskDialog.showLess":"taskBoard.taskDialog.showMore")]}),e[155]=Re,e[156]=et,e[157]=m,e[158]=Ds):Ds=e[158];let $s;e[159]!==As||e[160]!==Ds?($s=l.jsxs("div",{className:"flex flex-col py-6",children:[As,Ds]}),e[159]=As,e[160]=Ds,e[161]=$s):$s=e[161];let Rs;e[162]!==a?(Rs=a&&l.jsx("div",{className:"py-4",children:l.jsx("hr",{className:"border-border"})}),e[162]=a,e[163]=Rs):Rs=e[163];const Ia=a&&l.jsxs("div",{className:"flex flex-col gap-8",children:[!b&&l.jsx(Fi,{item:a,description:ge,onOpenPreview:h}),l.jsx(gm,{item:a,members:N,onOpenThread:P=>us(P.threadId)})]});let zs;e[164]!==$s||e[165]!==Rs||e[166]!==Ia?(zs=l.jsxs("div",{className:"flex flex-col",children:[$s,Rs,Ia]}),e[164]=$s,e[165]=Rs,e[166]=Ia,e[167]=zs):zs=e[167];let Es;e[168]!==Ra||e[169]!==Ss||e[170]!==Ns||e[171]!==zs?(Es=l.jsxs("div",{className:"flex min-w-0 flex-col gap-2 px-5 py-6 sm:px-8",children:[Ra,Ss,Ns,zs]}),e[168]=Ra,e[169]=Ss,e[170]=Ns,e[171]=zs,e[172]=Es):Es=e[172];let Is;e[173]!==b||e[174]!==a||e[175]!==$a||e[176]!==Es?(Is=l.jsx(Fp,{enabled:b,item:a,hidden:$a,children:Es}),e[173]=b,e[174]=a,e[175]=$a,e[176]=Es,e[177]=Is):Is=e[177];const Cc="task-inspector",La=b?"min-h-0 flex-1 overflow-y-auto lg:flex lg:w-[320px] lg:flex-none lg:border-l lg:border-t-0":"flex sm:w-[280px] sm:shrink-0 sm:border-l sm:border-t-0",Ma=b&&(a?ut?"flex":"hidden":"flex");let Ls;e[178]!==La||e[179]!==Ma?(Ls=F("w-full flex-col gap-6 border-t border-border p-6",La,Ma),e[178]=La,e[179]=Ma,e[180]=Ls):Ls=e[180];let Ms;e[181]!==a?(Ms=a&&l.jsx(qp,{item:a}),e[181]=a,e[182]=Ms):Ms=e[182];let Ps;e[183]!==m?(Ps=m("taskBoard.taskDialog.propertiesLabel"),e[183]=m,e[184]=Ps):Ps=e[184];let Fs;e[185]!==a||e[186]!==ie?(Fs=F(a?po({...a,status:ie}):il(ie).iconClassName),e[185]=a,e[186]=ie,e[187]=Fs):Fs=e[187];let Os;e[188]!==Ta||e[189]!==Fs?(Os=l.jsx(Ta,{size:16,className:Fs}),e[188]=Ta,e[189]=Fs,e[190]=Os):Os=e[190];let Hs;e[191]!==ie||e[192]!==m?(Hs=jr(ie,m),e[191]=ie,e[192]=m,e[193]=Hs):Hs=e[193];let qs;e[194]!==Os||e[195]!==Hs.label?(qs=l.jsx(qe,{asChild:!0,children:l.jsxs("button",{type:"button",className:Nt,children:[Os,Hs.label]})}),e[194]=Os,e[195]=Hs.label,e[196]=qs):qs=e[196];let Ks;if(e[197]!==T||e[198]!==oe||e[199]!==m){let P;e[201]!==oe||e[202]!==m?(P=xe=>{const{label:De,visual:Qe}=jr(xe,m),sl=Qe.icon;return l.jsxs(Ne,{onSelect:()=>oe({status:xe}),className:"gap-2",children:[l.jsx(sl,{size:16,className:Qe.iconClassName}),De]},xe)},e[201]=oe,e[202]=m,e[203]=P):P=e[203],Ks=mo(T).map(P),e[197]=T,e[198]=oe,e[199]=m,e[200]=Ks}else Ks=e[200];let Us;e[204]!==Ks?(Us=l.jsx(Ke,{align:"start",className:"w-44",children:Ks}),e[204]=Ks,e[205]=Us):Us=e[205];let Ws;e[206]!==qs||e[207]!==Us?(Ws=l.jsxs(Ue,{children:[qs,Us]}),e[206]=qs,e[207]=Us,e[208]=Ws):Ws=e[208];let Gs;e[209]!==_e||e[210]!==m?(Gs=_e?m("taskBoard.taskDialog.reportsContentLocked"):void 0,e[209]=_e,e[210]=m,e[211]=Gs):Gs=e[211];const Pa=_e&&"cursor-default opacity-60";let Vs;e[212]!==Pa?(Vs=F(Nt,Pa),e[212]=Pa,e[213]=Vs):Vs=e[213];const Fa=$t[Ae].icon;let qr;e[214]!==Fa?(qr=l.jsx(Fa,{size:16}),e[214]=Fa,e[215]=qr):qr=e[215];const Oa=qr,Ha=$t[Ae];let Qs;e[216]!==m||e[217]!==Ha.labelKey?(Qs=m(Ha.labelKey),e[216]=m,e[217]=Ha.labelKey,e[218]=Qs):Qs=e[218];let Ys;e[219]!==_e||e[220]!==Gs||e[221]!==Vs||e[222]!==Oa||e[223]!==Qs?(Ys=l.jsx(qe,{asChild:!0,children:l.jsxs("button",{type:"button",disabled:_e,title:Gs,className:Vs,children:[Oa,Qs]})}),e[219]=_e,e[220]=Gs,e[221]=Vs,e[222]=Oa,e[223]=Qs,e[224]=Ys):Ys=e[224];let Zs;e[225]!==oe||e[226]!==m?(Zs=go.map(P=>{const xe=$t[P].icon;return l.jsxs(Ne,{onSelect:()=>oe({type:P}),children:[l.jsx(xe,{size:16}),m($t[P].labelKey)]},P)}),e[225]=oe,e[226]=m,e[227]=Zs):Zs=e[227];let Xs;e[228]!==Zs?(Xs=l.jsx(Ke,{align:"start",className:"w-44",children:Zs}),e[228]=Zs,e[229]=Xs):Xs=e[229];let Js;e[230]!==Ys||e[231]!==Xs?(Js=l.jsxs(Ue,{children:[Ys,Xs]}),e[230]=Ys,e[231]=Xs,e[232]=Js):Js=e[232];let en;e[233]!==_e||e[234]!==m?(en=_e?m("taskBoard.taskDialog.reportsContentLocked"):void 0,e[233]=_e,e[234]=m,e[235]=en):en=e[235];const qa=Te==="none"&&kr,Ka=_e&&"cursor-default opacity-60";let tn;e[236]!==qa||e[237]!==Ka?(tn=F(Nt,qa,Ka),e[236]=qa,e[237]=Ka,e[238]=tn):tn=e[238];let sn;e[239]!==Te||e[240]!==m?(sn=Te==="none"?l.jsxs(l.Fragment,{children:[l.jsx(ir,{size:16}),m("taskBoard.taskDialog.setPriorityButton")]}):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:F("size-2 rounded-full",ze[Te].dotClassName)}),m(ze[Te].labelKey)]}),e[239]=Te,e[240]=m,e[241]=sn):sn=e[241];let nn;e[242]!==_e||e[243]!==en||e[244]!==tn||e[245]!==sn?(nn=l.jsx(qe,{asChild:!0,children:l.jsx("button",{type:"button",disabled:_e,title:en,className:tn,children:sn})}),e[242]=_e,e[243]=en,e[244]=tn,e[245]=sn,e[246]=nn):nn=e[246];let rn;e[247]!==oe||e[248]!==m?(rn=hr.map(P=>l.jsxs(Ne,{onSelect:()=>oe({priority:P}),children:[l.jsx("span",{className:F("size-2 rounded-full",ze[P].dotClassName)}),m(ze[P].labelKey)]},P)),e[247]=oe,e[248]=m,e[249]=rn):rn=e[249];let an;e[250]!==rn?(an=l.jsx(Ke,{align:"start",className:"w-40",children:rn}),e[250]=rn,e[251]=an):an=e[251];let ln;e[252]!==an||e[253]!==nn?(ln=l.jsxs(Ue,{children:[nn,an]}),e[252]=an,e[253]=nn,e[254]=ln):ln=e[254];const Ua=a&&l.jsx("div",{className:"inline-flex h-9 items-center justify-start gap-2 px-3 text-sm font-medium text-foreground",title:m("taskBoard.taskDialog.createdByLabel"),children:Jr(a)?l.jsxs(l.Fragment,{children:[l.jsx(na,{size:16,className:"text-muted-foreground"}),m("taskBoard.taskDialog.createdBySystemLabel")]}):Ft?l.jsxs(l.Fragment,{children:[l.jsx(Le,{url:Ft.user?.image??void 0,fallback:Me(Ft.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate",children:Ft.user?.name??m("taskBoard.taskDialog.unknownCreatorLabel")})]}):l.jsxs(l.Fragment,{children:[l.jsx(Zt,{size:16,className:"text-muted-foreground"}),m("taskBoard.taskDialog.unknownCreatorLabel")]})}),Wa=!G&&kr;let on;e[255]!==Wa?(on=F(Nt,Wa),e[255]=Wa,e[256]=on):on=e[256];const Ga=hs&&wt?l.jsxs(l.Fragment,{children:[l.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[l.jsx(Le,{url:wt.user?.image??void 0,fallback:Me(wt.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate",children:wt.user?.name??m("taskBoard.taskDialog.superAgentDefaultName")})]}),l.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[l.jsxs("span",{className:"inline-flex items-center",children:[l.jsx(Le,{url:wt.user?.image??void 0,fallback:Me(wt.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),l.jsx(We,{size:16,className:"ring-2 ring-background"})]}),m("taskBoard.taskDialog.superAgentLabel")]})]}):hs?l.jsxs(l.Fragment,{children:[l.jsx(We,{size:16}),m("taskBoard.taskDialog.superAgentLabel")]}):Ir?l.jsxs(l.Fragment,{children:[l.jsx(Le,{url:Ir.user?.image??void 0,fallback:Me(Ir.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate",children:Ir.user?.name??m("taskBoard.taskDialog.unassignedLabel")})]}):l.jsxs(l.Fragment,{children:[l.jsx(to,{size:16,className:"text-muted-foreground"}),m("taskBoard.taskDialog.assignButton")]});let cn;e[257]!==on||e[258]!==Ga?(cn=l.jsx(gt,{asChild:!0,children:l.jsx("button",{type:"button",className:on,children:Ga})}),e[257]=on,e[258]=Ga,e[259]=cn):cn=e[259];let dn;e[260]!==a?.assigneeId||e[261]!==g||e[262]!==oe?(dn=P=>{if(ds(!1),P===ye&&a?.assigneeId===ye){g?.();return}oe({assigneeId:P})},e[260]=a?.assigneeId,e[261]=g,e[262]=oe,e[263]=dn):dn=e[263];let un;e[264]!==N||e[265]!==dn?(un=l.jsx(kt,{align:"start",className:"w-56 p-0",children:l.jsx(Wl,{members:N,onSelect:dn})}),e[264]=N,e[265]=dn,e[266]=un):un=e[266];let fn;e[267]!==tt||e[268]!==cn||e[269]!==un?(fn=l.jsxs(bt,{open:tt,onOpenChange:ds,modal:!0,children:[cn,un]}),e[267]=tt,e[268]=cn,e[269]=un,e[270]=fn):fn=e[270];let hn;e[271]!==wt||e[272]!==hs||e[273]!==m?(hn=hs&&wt&&l.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[l.jsx("span",{className:"absolute -top-1.5 left-5 h-[calc(50%+0.375rem)] w-2.5 rounded-bl-md border-b border-l border-border"}),l.jsxs("span",{className:F(Nt,"pointer-events-none"),children:[l.jsx(We,{size:16}),m("taskBoard.taskDialog.superAgentLabel")]})]}),e[271]=wt,e[272]=hs,e[273]=m,e[274]=hn):hn=e[274];let pn;e[275]!==fn||e[276]!==hn?(pn=l.jsxs("div",{className:"flex flex-col",children:[fn,hn]}),e[275]=fn,e[276]=hn,e[277]=pn):pn=e[277];const Va=!he&&kr;let mn;e[278]!==Va?(mn=F(Nt,Va),e[278]=Va,e[279]=mn):mn=e[279];let Kr;e[280]===Symbol.for("react.memo_cache_sentinel")?(Kr=l.jsx(xt,{size:16,className:"text-muted-foreground"}),e[280]=Kr):Kr=e[280];let gn;e[281]!==he||e[282]!==m?(gn=he?hc.format(he):m("taskBoard.taskDialog.dueDateLabel"),e[281]=he,e[282]=m,e[283]=gn):gn=e[283];let xn;e[284]!==mn||e[285]!==gn?(xn=l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:mn,children:[Kr,gn]})}),e[284]=mn,e[285]=gn,e[286]=xn):xn=e[286];const Qa=he??void 0;let kn;e[287]!==oe?(kn=P=>{oe({dueDate:P??null}),P&&It(!1)},e[287]=oe,e[288]=kn):kn=e[288];let bn;e[289]!==Qa||e[290]!==kn?(bn=l.jsx(kt,{className:"w-auto p-0",align:"start",children:l.jsx(Bl,{mode:"single",selected:Qa,onSelect:kn,initialFocus:!0})}),e[289]=Qa,e[290]=kn,e[291]=bn):bn=e[291];let yn;e[292]!==cs||e[293]!==xn||e[294]!==bn?(yn=l.jsxs(bt,{open:cs,onOpenChange:It,children:[xn,bn]}),e[292]=cs,e[293]=xn,e[294]=bn,e[295]=yn):yn=e[295];const Ya=a?.threads;let jn;e[296]!==Ya?(jn=l.jsx(Hp,{threads:Ya}),e[296]=Ya,e[297]=jn):jn=e[297];let vn;e[298]!==ln||e[299]!==Ua||e[300]!==pn||e[301]!==yn||e[302]!==jn||e[303]!==Ps||e[304]!==Ws||e[305]!==Js?(vn=l.jsxs(ea,{label:Ps,children:[Ws,Js,ln,Ua,pn,yn,jn]}),e[298]=ln,e[299]=Ua,e[300]=pn,e[301]=yn,e[302]=jn,e[303]=Ps,e[304]=Ws,e[305]=Js,e[306]=vn):vn=e[306];let wn;e[307]!==m?(wn=m("taskBoard.taskDialog.labelsLabel"),e[307]=m,e[308]=wn):wn=e[308];let Sn;e[309]!==z||e[310]!==oe||e[311]!==m||e[312]!==we?(Sn=we.length===0?l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:F(Nt,kr),children:[l.jsx(sa,{size:16}),m("taskBoard.taskDialog.tagsButton")]})}):l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 sm:px-3",children:[we.map(P=>{const xe=z.find(De=>De.id===P);return xe?l.jsxs("div",{className:"inline-flex items-center gap-1.5 rounded-md border border-border px-2 py-1 text-sm font-medium text-foreground transition-colors hover:bg-muted",children:[l.jsxs("button",{type:"button",onClick:()=>Mt(!0),className:"inline-flex items-center gap-1.5",children:[l.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:zt(xe.color)}}),l.jsx("span",{className:"truncate",children:xe.name})]}),l.jsx("button",{type:"button","aria-label":m("taskBoard.taskDialog.removeTagAriaLabel",{name:xe.name}),className:"-mr-0.5 flex size-3.5 items-center justify-center classic:rounded-sm compact:rounded-lg text-muted-foreground hover:bg-background hover:text-foreground",onClick:()=>{oe({tagIds:we.filter(De=>De!==P)})},children:l.jsx(Yt,{size:10})})]},P):null}),l.jsx(gt,{asChild:!0,children:l.jsx("button",{type:"button","aria-label":m("taskBoard.taskDialog.addTagButton"),className:"flex size-7 items-center justify-center classic:rounded-md compact:rounded-lg border border-border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:l.jsx(Qt,{size:14})})})]}),e[309]=z,e[310]=oe,e[311]=m,e[312]=we,e[313]=Sn):Sn=e[313];let Nn;e[314]!==z.length?(Nn=Dd(z.length),e[314]=z.length,e[315]=Nn):Nn=e[315];let Cn;e[316]!==oe||e[317]!==we?(Cn=P=>oe({tagIds:we.includes(P)?we.filter(xe=>xe!==P):[...we,P]}),e[316]=oe,e[317]=we,e[318]=Cn):Cn=e[318];let Tn;e[319]!==Na||e[320]!==Ca||e[321]!==z||e[322]!==Nn||e[323]!==Cn||e[324]!==we?(Tn=l.jsx(kt,{align:"start",className:"w-56 p-0",children:l.jsx(Sp,{tags:z,selectedIds:we,defaultColor:Nn,onToggle:Cn,onCreate:Na,onDelete:Ca})}),e[319]=Na,e[320]=Ca,e[321]=z,e[322]=Nn,e[323]=Cn,e[324]=we,e[325]=Tn):Tn=e[325];let Bn;e[326]!==Sn||e[327]!==Tn||e[328]!==Lt?(Bn=l.jsxs(bt,{open:Lt,onOpenChange:Mt,modal:!0,children:[Sn,Tn]}),e[326]=Sn,e[327]=Tn,e[328]=Lt,e[329]=Bn):Bn=e[329];let _n;e[330]!==wn||e[331]!==Bn?(_n=l.jsx(ea,{label:wn,children:Bn}),e[330]=wn,e[331]=Bn,e[332]=_n):_n=e[332];const Za=ea;let An;e[333]!==m?(An=m("taskBoard.taskDialog.projectLabel"),e[333]=m,e[334]=An):An=e[334];const Xa=Ue,Ja=!V&&kr;let Dn;e[335]!==Ja?(Dn=F(Nt,"max-w-full",Ja),e[335]=Ja,e[336]=Dn):Dn=e[336];let $n;e[337]!==ke?($n=l.jsx(Vt,{entry:ke}),e[337]=ke,e[338]=$n):$n=e[338];let Rn;e[339]!==V||e[340]!==ke?.title||e[341]!==m?(Rn=ke?.title??V??m("taskBoard.taskDialog.projectButton"),e[339]=V,e[340]=ke?.title,e[341]=m,e[342]=Rn):Rn=e[342];let zn;e[343]!==Rn?(zn=l.jsx("span",{className:"min-w-0 truncate text-left",children:Rn}),e[343]=Rn,e[344]=zn):zn=e[344];let En;e[345]!==Dn||e[346]!==$n||e[347]!==zn?(En=l.jsx(qe,{asChild:!0,children:l.jsxs("button",{type:"button",className:Dn,children:[$n,zn]})}),e[345]=Dn,e[346]=$n,e[347]=zn,e[348]=En):En=e[348];const el=Ke,Tc="start",Bc="w-64";let In;e[349]!==oe?(In=()=>oe({repo:null}),e[349]=oe,e[350]=In):In=e[350];let Ln;e[351]!==m?(Ln=m("taskBoard.taskDialog.noProject"),e[351]=m,e[352]=Ln):Ln=e[352];let Mn;e[353]!==In||e[354]!==Ln?(Mn=l.jsx(Ne,{onSelect:In,children:Ln}),e[353]=In,e[354]=Ln,e[355]=Mn):Mn=e[355];let Ur;e[356]!==oe?(Ur=P=>l.jsx(Ne,{className:"gap-2",onSelect:()=>oe({repo:P.repo}),children:l.jsx($l,{entry:P})},P.id),e[356]=oe,e[357]=Ur):Ur=e[357];const tl=Z.map(Ur);let Pn;e[358]!==el||e[359]!==Mn||e[360]!==tl?(Pn=l.jsxs(el,{align:Tc,className:Bc,children:[Mn,tl]}),e[358]=el,e[359]=Mn,e[360]=tl,e[361]=Pn):Pn=e[361];let Fn;e[362]!==Xa||e[363]!==En||e[364]!==Pn?(Fn=l.jsxs(Xa,{children:[En,Pn]}),e[362]=Xa,e[363]=En,e[364]=Pn,e[365]=Fn):Fn=e[365];let On;e[366]!==Za||e[367]!==An||e[368]!==Fn?(On=l.jsx(Za,{label:An,children:Fn}),e[366]=Za,e[367]=An,e[368]=Fn,e[369]=On):On=e[369];let Hn;e[370]!==b||e[371]!==ge||e[372]!==a||e[373]!==h?(Hn=b&&a&&l.jsx(Fi,{item:a,description:ge,onOpenPreview:h}),e[370]=b,e[371]=ge,e[372]=a,e[373]=h,e[374]=Hn):Hn=e[374];let qn;e[375]!==vn||e[376]!==_n||e[377]!==On||e[378]!==Hn||e[379]!==Ls||e[380]!==Ms?(qn=l.jsxs("div",{"data-testid":Cc,className:Ls,children:[Ms,vn,_n,On,Hn]}),e[375]=vn,e[376]=_n,e[377]=On,e[378]=Hn,e[379]=Ls,e[380]=Ms,e[381]=qn):qn=e[381];let Kn;e[382]!==qn||e[383]!==js||e[384]!==Is?(Kn=l.jsxs("div",{className:js,children:[Is,qn]}),e[382]=qn,e[383]=js,e[384]=Is,e[385]=Kn):Kn=e[385];let Un;e[386]!==Kn||e[387]!==ys?(Un=l.jsx("div",{className:ys,children:Kn}),e[386]=Kn,e[387]=ys,e[388]=Un):Un=e[388];let Wn;e[389]!==us?(Wn=()=>us(null),e[389]=us,e[390]=Wn):Wn=e[390];let Gn;e[391]!==ht||e[392]!==Wn?(Gn=l.jsx(_p,{thread:ht,onClose:Wn}),e[391]=ht,e[392]=Wn,e[393]=Gn):Gn=e[393];let Vn;e[394]!==Pe||e[395]!==k||e[396]!==a||e[397]!==m||e[398]!==ae?(Vn=!a&&l.jsx("div",{className:"flex h-16 items-center justify-end border-t border-border px-4",children:l.jsxs(pe,{size:"sm",disabled:!ae.trim()||k,onClick:Pe,children:[l.jsx(Qt,{size:16}),m("taskBoard.taskDialog.createTaskButton")]})}),e[394]=Pe,e[395]=k,e[396]=a,e[397]=m,e[398]=ae,e[399]=Vn):Vn=e[399];let Wr;e[400]!==Un||e[401]!==Gn||e[402]!==Vn||e[403]!==bs?(Wr=l.jsxs(l.Fragment,{children:[bs,Un,Gn,Vn]}),e[400]=Un,e[401]=Gn,e[402]=Vn,e[403]=bs,e[404]=Wr):Wr=e[404];const Qn=Wr;if(s==="page"){let P;e[405]!==lt||e[406]!==Se?(P=De=>{const Qe=lt(De),sl=Se(De);return()=>{Qe?.(),sl?.()}},e[405]=lt,e[406]=Se,e[407]=P):P=e[407];let xe;return e[408]!==Qn||e[409]!==P?(xe=l.jsx("div",{ref:P,"data-testid":"task-detail",className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:Qn}),e[408]=Qn,e[409]=P,e[410]=xe):xe=e[410],xe}let Yn;e[411]!==_?(Yn=P=>!P&&_(),e[411]=_,e[412]=Yn):Yn=e[412];let Zn;e[413]!==m?(Zn=m("taskBoard.taskDialog.newTaskTitle"),e[413]=m,e[414]=Zn):Zn=e[414];let Xn;e[415]!==Zn?(Xn=l.jsx(aa,{className:"sr-only",children:Zn}),e[415]=Zn,e[416]=Xn):Xn=e[416];let Jn;e[417]!==Qn||e[418]!==Xn?(Jn=l.jsxs(la,{className:"flex max-h-[92vh] flex-col gap-0 overflow-hidden rounded-2xl p-0 sm:h-[90vh] sm:max-h-[820px] sm:max-w-[1040px]",closeButtonClassName:"hidden",children:[Xn,Qn]}),e[417]=Qn,e[418]=Xn,e[419]=Jn):Jn=e[419];let Gr;return e[420]!==y||e[421]!==Yn||e[422]!==Jn?(Gr=l.jsx(ia,{open:y,onOpenChange:Yn,children:Jn}),e[420]=y,e[421]=Yn,e[422]=Jn,e[423]=Gr):Gr=e[423],Gr}function Wp(t){return!t}function Gp(t){t.key==="Enter"&&t.preventDefault()}function Vp(t){t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)}function Qp(t){return!t}function Yp(t){return!t}function Zp(t){return t.id}function Xp(t){const e=R.c(2);let s;return e[0]!==t?(s=l.jsx(pc,{...t,chrome:"dialog"}),e[0]=t,e[1]=s):s=e[1],s}function Jp(t){const e=R.c(2);let s;return e[0]!==t?(s=l.jsx(pc,{...t,chrome:"page"}),e[0]=t,e[1]=s):s=e[1],s}function mc(t,e){switch(t.status){case"failed":return ud(t.failureKind)?{label:t.failureKind==="superseded"?e("taskBoard.taskDialog.threadStatusSuperseded"):e("taskBoard.taskDialog.threadStatusEndedAfterDelivery"),className:"text-muted-foreground",icon:Xt}:{label:e("taskBoard.taskDialog.threadStatusError"),className:"text-destructive",icon:Jc};case"requires_action":return{label:e("taskBoard.taskDialog.threadStatusNeedsInput"),className:"text-warning",icon:xa};case"in_progress":return{label:e("taskBoard.taskDialog.threadStatusRunning"),className:"text-primary",icon:jl,spin:!0};case"completed":return{label:e("taskBoard.taskDialog.threadStatusCompleted"),className:"text-success",icon:fr};case"expired":return{label:e("taskBoard.taskDialog.threadStatusExpired"),className:"text-muted-foreground",icon:Xt};default:return t.status}}function em(t){const e=R.c(28),{thread:s,startedBy:n,onOpen:r}=t,a=X();let i;if(e[0]!==r||e[1]!==n||e[2]!==a||e[3]!==s){const c=s.status?mc({...s,status:s.status},a):null,o=s.lastMessage;let d;e[5]!==s.title?(d=wl(s.title,"reviewer"),e[5]=s.title,e[6]=d):d=e[6];const u=d;let f;e[7]!==r||e[8]!==s?(f=()=>r?.(s),e[7]=r,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==u?(h=u?l.jsx(pr,{size:16,className:"shrink-0"}):l.jsx(We,{size:16,className:"shrink-0"}),e[10]=u,e[11]=h):h=e[11];let x;e[12]!==a||e[13]!==s.title?(x=s.title||a("taskBoard.taskDialog.superAgentDefaultName"),e[12]=a,e[13]=s.title,e[14]=x):x=e[14];let p;e[15]!==x?(p=l.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:x}),e[15]=x,e[16]=p):p=e[16];let g;e[17]!==n||e[18]!==a?(g=n&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"shrink-0 text-sm text-muted-foreground/50",children:a("taskBoard.taskDialog.startedByLabel")}),l.jsx(Le,{url:n.user?.image??void 0,fallback:Me(n.user?.name),shape:"circle",size:"2xs"}),l.jsx("span",{className:"truncate text-sm text-foreground",children:n.user?.name??a("taskBoard.taskDialog.someoneLabel")})]}),e[17]=n,e[18]=a,e[19]=g):g=e[19];let k;e[20]!==r||e[21]!==a?(k=r&&l.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1 text-xs text-muted-foreground/60 group-hover:text-foreground",children:[a("taskBoard.taskDialog.openThreadHint"),l.jsx(Nr,{size:14})]}),e[20]=r,e[21]=a,e[22]=k):k=e[22];let y;e[23]!==h||e[24]!==p||e[25]!==g||e[26]!==k?(y=l.jsxs("div",{className:"flex items-center gap-2",children:[h,p,g,k]}),e[23]=h,e[24]=p,e[25]=g,e[26]=k,e[27]=y):y=e[27],i=l.jsxs("button",{type:"button",disabled:!r,onClick:f,className:"group flex w-full flex-col gap-2 rounded-xl bg-card p-4 text-left card-shadow transition-colors enabled:hover:bg-muted/60 disabled:cursor-default",children:[y,c&&l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("span",{className:F("flex shrink-0 items-center gap-1.5",c.className),children:[c.spin?l.jsx(dt,{className:"size-[15px]",label:c.label}):l.jsx(c.icon,{size:15}),l.jsx("span",{className:"text-sm",children:c.label})]}),o&&l.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:o})]})]}),e[0]=r,e[1]=n,e[2]=a,e[3]=s,e[4]=i}else i=e[4];return i}function tm(t){const e=R.c(34),{thread:s,onOpen:n}=t,r=X();let a,i,c,o,d,u,f,h,x;if(e[0]!==n||e[1]!==r||e[2]!==s){const k=s.status?mc({...s,status:s.status},r):null,y=s.lastMessage;let b;e[12]!==s.title?(b=wl(s.title,"reviewer"),e[12]=s.title,e[13]=b):b=e[13];const m=b;x="border-b border-border/50 pb-4",a=cc,i=`run-${s.threadId}`;const j=m?"taskBoard.conversation.reviewer":"taskBoard.taskDialog.superAgentLabel";e[14]!==r||e[15]!==j?(c=r(j),e[14]=r,e[15]=j,e[16]=c):c=e[16],e[17]!==m?(o=m?l.jsx(pr,{size:24}):l.jsx(We,{size:24}),e[17]=m,e[18]=o):o=e[18],d=s.createdAt,u=y||s.title||"",e[19]!==n||e[20]!==s?(f=n?()=>n(s):void 0,e[19]=n,e[20]=s,e[21]=f):f=e[21],h=k&&l.jsxs("span",{className:F("flex shrink-0 items-center gap-1.5",k.className),children:[k.spin?l.jsx(dt,{className:"size-[15px]",label:k.label}):l.jsx(k.icon,{size:15}),l.jsx("span",{className:"text-xs",children:k.label})]}),e[0]=n,e[1]=r,e[2]=s,e[3]=a,e[4]=i,e[5]=c,e[6]=o,e[7]=d,e[8]=u,e[9]=f,e[10]=h,e[11]=x}else a=e[3],i=e[4],c=e[5],o=e[6],d=e[7],u=e[8],f=e[9],h=e[10],x=e[11];let p;e[22]!==a||e[23]!==i||e[24]!==c||e[25]!==o||e[26]!==d||e[27]!==u||e[28]!==f||e[29]!==h?(p=l.jsx(a,{id:i,author:c,avatar:o,createdAt:d,body:u,onOpenThread:f,metadata:h}),e[22]=a,e[23]=i,e[24]=c,e[25]=o,e[26]=d,e[27]=u,e[28]=f,e[29]=h,e[30]=p):p=e[30];let g;return e[31]!==x||e[32]!==p?(g=l.jsx("div",{className:x,children:p}),e[31]=x,e[32]=p,e[33]=g):g=e[33],g}function sm(t,e){return t.merged?{label:e("taskBoard.taskDialog.prStateMerged"),className:"text-special",icon:vo}:t.state==="closed"?{label:e("taskBoard.taskDialog.prStateClosed"),className:"text-destructive",icon:Xr}:t.draft?{label:e("taskBoard.taskDialog.prStateDraft"),className:"text-muted-foreground",icon:Xr}:{label:e("taskBoard.taskDialog.prStateOpen"),className:"text-success",icon:Xr}}function nm(t,e){switch(t){case"passing":return{label:e("taskBoard.taskDialog.prChecksPassing"),className:"text-success",icon:fr};case"failing":return{label:e("taskBoard.taskDialog.prChecksFailing"),className:"text-destructive",icon:Xt};case"pending":return{label:e("taskBoard.taskDialog.prChecksPending"),className:"text-warning",icon:jl};default:return null}}const rm=new Set(["failure","cancelled","timed_out","action_required","startup_failure","stale"]);function am(t){if(t.status!=="completed")return{icon:jl,className:"text-warning",spin:!0};const e=t.conclusion;return e&&rm.has(e)?{icon:Xt,className:"text-destructive",spin:!1}:nc(t)?{icon:fr,className:"text-success",spin:!1}:{icon:xa,className:"text-muted-foreground",spin:!1}}function lm(t){const e=R.c(46),{url:s,routes:n}=t,r=X(),{data:a,isPending:i,isError:c}=pp(s),o=a?.available??!1;if(i){let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(dt,{className:"size-[14px]"}),e[0]=T):T=e[0];let C;e[1]!==r?(C=r("taskBoard.taskDialog.previewLabel"),e[1]=r,e[2]=C):C=e[2];let D;return e[3]!==C?(D=l.jsxs(pe,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",disabled:!0,children:[T,C]}),e[3]=C,e[4]=D):D=e[4],D}if(!o||c){let T;e[5]!==r?(T=r("taskBoard.taskDialog.previewUnavailableTitle"),e[5]=r,e[6]=T):T=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=l.jsx(cl,{size:14}),e[7]=C):C=e[7];let D;e[8]!==r?(D=r("taskBoard.taskDialog.previewUnavailable"),e[8]=r,e[9]=D):D=e[9];let E;return e[10]!==T||e[11]!==D?(E=l.jsxs(pe,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",disabled:!0,title:T,children:[C,D]}),e[10]=T,e[11]=D,e[12]=E):E=e[12],E}const d=n.length>0&&"rounded-r-none";let u;e[13]!==d?(u=F("gap-1.5",d),e[13]=d,e[14]=u):u=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(cl,{size:14}),e[15]=f):f=e[15];let h;e[16]!==r?(h=r("taskBoard.taskDialog.previewLabel"),e[16]=r,e[17]=h):h=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=l.jsx(vr,{size:12}),e[18]=x):x=e[18];let p;e[19]!==h||e[20]!==s?(p=l.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",children:[f,h,x]}),e[19]=h,e[20]=s,e[21]=p):p=e[21];let g;e[22]!==u||e[23]!==p?(g=l.jsx(pe,{asChild:!0,type:"button",variant:"outline",size:"sm",className:u,children:p}),e[22]=u,e[23]=p,e[24]=g):g=e[24];const k=g;if(n.length===0)return k;let y;e[25]!==r?(y=r("taskBoard.taskDialog.previewRoutesLabel"),e[25]=r,e[26]=y):y=e[26];let b;e[27]!==r?(b=r("taskBoard.taskDialog.previewRoutesLabel"),e[27]=r,e[28]=b):b=e[28];let m;e[29]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx(Et,{size:14}),e[29]=m):m=e[29];let j;e[30]!==y||e[31]!==b?(j=l.jsx(qe,{asChild:!0,children:l.jsx(pe,{type:"button",variant:"outline",size:"sm",className:"rounded-l-none border-l-0 px-1.5","aria-label":y,title:b,children:m})}),e[30]=y,e[31]=b,e[32]=j):j=e[32];let v;if(e[33]!==n||e[34]!==s){let T;e[36]!==s?(T=C=>l.jsx(Ne,{asChild:!0,children:l.jsx("a",{href:rp(s,C),target:"_blank",rel:"noreferrer",className:"font-mono text-xs",children:C})},C),e[36]=s,e[37]=T):T=e[37],v=n.map(T),e[33]=n,e[34]=s,e[35]=v}else v=e[35];let w;e[38]!==v?(w=l.jsx(Ke,{align:"start",children:v}),e[38]=v,e[39]=w):w=e[39];let S;e[40]!==j||e[41]!==w?(S=l.jsxs(Ue,{children:[j,w]}),e[40]=j,e[41]=w,e[42]=S):S=e[42];let N;return e[43]!==k||e[44]!==S?(N=l.jsxs("div",{className:"flex items-center",children:[k,S]}),e[43]=k,e[44]=S,e[45]=N):N=e[45],N}function im(t){const e=R.c(54),{pr:s,routes:n,revalidating:r,previewThread:a,reviewsReady:i,shipPending:c,resolvePending:o,onShip:d,onResolveConflict:u,onOpenPreview:f}=t,h=X(),[x,p]=q.useState(!1);let g;if(e[0]!==x||e[1]!==f||e[2]!==u||e[3]!==d||e[4]!==s||e[5]!==a||e[6]!==o||e[7]!==r||e[8]!==i||e[9]!==n||e[10]!==c||e[11]!==h){const k=sm(s,h),y=nm(s.checksStatus,h);let b;e[13]!==s||e[14]!==i?(b=sp(s,i),e[13]=s,e[14]=i,e[15]=b):b=e[15];const{isOpen:m,hasConflict:j,showShip:v,showResolveConflict:w}=b,S=!!a||!!s.previewUrl||v||w,N=s.checks??[],T=N.length>0||y!=null,C=N.length>0,D=np(s.checksStatus,N,x),E=D?{label:h("taskBoard.taskDialog.prChecksScore",D),className:"text-warning",icon:Xt}:y,$=r&&"revalidating-ring";let L;e[16]!==$?(L=F("flex flex-col gap-3 rounded-xl bg-card p-3 card-shadow",$),e[16]=$,e[17]=L):L=e[17];const M=Nf(s.url)?.repo.provider??"github";let B;e[18]!==M?(B=l.jsx(Xu,{provider:M,className:"size-4 shrink-0 text-foreground"}),e[18]=M,e[19]=B):B=e[19];const A=s.title??`${s.repoOwner}/${s.repoName}`;let z;e[20]!==A?(z=l.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:A}),e[20]=A,e[21]=z):z=e[21];const K=F("flex shrink-0 items-center gap-1 text-xs font-medium",k.className);let U;e[22]!==k?(U=l.jsx(k.icon,{size:13}),e[22]=k,e[23]=U):U=e[23];let Q;e[24]!==k||e[25]!==U||e[26]!==K?(Q=l.jsxs("span",{className:K,children:[U,k.label]}),e[24]=k,e[25]=U,e[26]=K,e[27]=Q):Q=e[27];let ee;e[28]===Symbol.for("react.memo_cache_sentinel")?(ee=l.jsx(vr,{size:12,className:"text-muted-foreground/60 group-hover:text-foreground"}),e[28]=ee):ee=e[28];let O;e[29]!==s.number||e[30]!==s.url?(O=l.jsxs("a",{href:s.url,target:"_blank",rel:"noreferrer",title:s.url,className:"group flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-muted",children:["#",s.number,ee]}),e[29]=s.number,e[30]=s.url,e[31]=O):O=e[31];let te;e[32]!==Q||e[33]!==O||e[34]!==B||e[35]!==z?(te=l.jsxs("div",{className:"flex items-center gap-3",children:[B,z,Q,O]}),e[32]=Q,e[33]=O,e[34]=B,e[35]=z,e[36]=te):te=e[36];let W;e[37]!==j||e[38]!==m||e[39]!==h?(W=j&&m&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[l.jsx(Xt,{size:13,className:"shrink-0"}),h("taskBoard.taskDialog.prConflict")]}),e[37]=j,e[38]=m,e[39]=h,e[40]=W):W=e[40];let Z;e[41]!==S||e[42]!==f||e[43]!==u||e[44]!==d||e[45]!==s.previewUrl||e[46]!==a||e[47]!==o||e[48]!==n||e[49]!==c||e[50]!==w||e[51]!==v||e[52]!==h?(Z=S&&l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a&&l.jsxs(pe,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",title:h("taskBoard.taskDialog.openPreviewTitle"),onClick:()=>f?.(a),children:[l.jsx(eo,{size:13}),h("taskBoard.taskDialog.openPreviewButton")]}),s.previewUrl&&l.jsx(lm,{url:s.previewUrl,routes:n}),v&&l.jsx(pe,{type:"button",variant:"success",size:"sm",disabled:c,onClick:d,children:h("taskBoard.taskDialog.shipToProductionButton")}),w&&l.jsxs(pe,{type:"button",variant:"warning",size:"sm",className:"gap-1.5",disabled:o,title:h("taskBoard.taskDialog.resolveConflictTitle"),onClick:u,children:[l.jsx(vo,{size:13}),h("taskBoard.taskDialog.resolveConflictButton")]})]}),e[41]=S,e[42]=f,e[43]=u,e[44]=d,e[45]=s.previewUrl,e[46]=a,e[47]=o,e[48]=n,e[49]=c,e[50]=w,e[51]=v,e[52]=h,e[53]=Z):Z=e[53],g=l.jsxs("div",{className:L,children:[te,W,Z,T&&l.jsxs("div",{className:"border-t border-border pt-2 text-xs",children:[l.jsxs("button",{type:"button",disabled:!C,onClick:()=>p(om),className:"flex w-full items-center gap-1.5 font-medium disabled:cursor-default",children:[E?l.jsx(E.icon,{size:13,className:E.className}):l.jsx(fr,{size:13,className:"text-muted-foreground"}),l.jsx("span",{className:F(E?.className??"text-muted-foreground"),children:E?.label??h("taskBoard.taskDialog.prChecksLabel")}),C&&l.jsx(Nr,{size:14,className:F("ml-auto text-muted-foreground/60 transition-transform",x&&"rotate-90")})]}),x&&l.jsx("div",{className:"mt-2 flex flex-col gap-2",children:N.map((J,re)=>{const Y=am(J),ne=`${J.name}-${re}`;return l.jsxs("div",{className:"rounded-md bg-muted/40 p-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[Y.spin?l.jsx(dt,{className:F("size-[13px]",Y.className)}):l.jsx(Y.icon,{size:13,className:F("shrink-0",Y.className)}),l.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-foreground",children:J.name}),J.detailsUrl&&l.jsx("a",{href:J.detailsUrl,target:"_blank",rel:"noreferrer",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:l.jsx(vr,{size:12})})]}),J.summary&&l.jsx("div",{className:"mt-1.5 max-h-64 overflow-auto text-muted-foreground",children:l.jsx(ba,{id:`${s.url}-${ne}`,text:J.summary})})]},ne)})})]})]}),e[0]=x,e[1]=f,e[2]=u,e[3]=d,e[4]=s,e[5]=a,e[6]=o,e[7]=r,e[8]=i,e[9]=n,e[10]=c,e[11]=h,e[12]=g}else g=e[12];return g}function om(t){return!t}function cm(){const t=R.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(er,{className:"size-4 shrink-0 rounded"}),l.jsx(er,{className:"h-4 min-w-0 flex-1"}),l.jsx(er,{className:"h-4 w-16 shrink-0"}),l.jsx(er,{className:"h-4 w-10 shrink-0"})]}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsxs("div",{className:"flex flex-col gap-3 rounded-xl bg-card p-3 card-shadow",children:[e,l.jsxs("div",{className:"flex gap-2",children:[l.jsx(er,{className:"h-7 w-20"}),l.jsx(er,{className:"h-7 w-28"})]})]}),t[1]=s):s=t[1],s}function Fi(t){const e=R.c(62),{item:s,description:n,onOpenPreview:r}=t,a=X(),{data:i,isLoading:c,isFetching:o}=Kl(s.id),{data:d}=Ul(s.id),u=Tl(),f=mp(s.id),h=gp(s.id),x=Gl(s.id),p=ma();let g,k,y,b,m,j;if(e[0]!==d||e[1]!==x||e[2]!==p||e[3]!==n||e[4]!==s.previewRoutes||e[5]!==s.reviewCycleStartedAt||e[6]!==s.status||e[7]!==s.threads||e[8]!==r||e[9]!==f||e[10]!==i||e[11]!==o||e[12]!==c||e[13]!==h||e[14]!==u||e[15]!==a){j=Symbol.for("react.early_return_sentinel");e:{let S;e[22]!==x||e[23]!==p||e[24]!==n?(S=[n,...(p?x.threads:[]).flatMap(fm)],e[22]=x,e[23]=p,e[24]=n,e[25]=S):S=e[25];const N=Np(S.join(`
85
+
86
+ `)),T=c&&!i;if(!T&&(!i||i.length===0)&&N.length===0){j=null;break e}let C;e[26]!==d||e[27]!==s.reviewCycleStartedAt||e[28]!==s.status||e[29]!==u?(C=yp(s.status)&&kp(d??[],ic(u),s.reviewCycleStartedAt),e[26]=d,e[27]=s.reviewCycleStartedAt,e[28]=s.status,e[29]=u,e[30]=C):C=e[30];const D=C;let E;e[31]!==f||e[32]!==a?(E=()=>f.mutate(void 0,{onSuccess:z=>z?.merged?Fe.success(a("taskBoard.taskDialog.shipSuccess")):Fe.error(a("taskBoard.taskDialog.shipError")),onError:()=>Fe.error(a("taskBoard.taskDialog.shipError"))}),e[31]=f,e[32]=a,e[33]=E):E=e[33];const $=E;let L;e[34]!==h||e[35]!==a?(L=z=>h.mutate(z,{onSuccess:()=>Fe.success(a("taskBoard.taskDialog.resolveConflictSuccess")),onError:()=>Fe.error(a("taskBoard.taskDialog.resolveConflictError"))}),e[34]=h,e[35]=a,e[36]=L):L=e[36];const M=L;let B;e[37]!==s.threads||e[38]!==r?(B=r?s.threads.find(um):void 0,e[37]=s.threads,e[38]=r,e[39]=B):B=e[39];const A=B;g=Up,e[40]!==a?(m=a("taskBoard.taskDialog.linksLabel"),e[40]=a,e[41]=m):m=e[41],k="flex flex-col gap-1",e[42]!==s.previewRoutes||e[43]!==T||e[44]!==r||e[45]!==M||e[46]!==$||e[47]!==A||e[48]!==f||e[49]!==i||e[50]!==o||e[51]!==h||e[52]!==D?(y=T?l.jsx(cm,{}):(i??[]).map(z=>l.jsx(im,{pr:z,routes:s.previewRoutes??[],revalidating:o,previewThread:A,reviewsReady:D,shipPending:f.isPending,resolvePending:h.isPending,onShip:$,onResolveConflict:()=>M(z.number),onOpenPreview:r},z.url)),e[42]=s.previewRoutes,e[43]=T,e[44]=r,e[45]=M,e[46]=$,e[47]=A,e[48]=f,e[49]=i,e[50]=o,e[51]=h,e[52]=D,e[53]=y):y=e[53],b=N.map(dm)}e[0]=d,e[1]=x,e[2]=p,e[3]=n,e[4]=s.previewRoutes,e[5]=s.reviewCycleStartedAt,e[6]=s.status,e[7]=s.threads,e[8]=r,e[9]=f,e[10]=i,e[11]=o,e[12]=c,e[13]=h,e[14]=u,e[15]=a,e[16]=g,e[17]=k,e[18]=y,e[19]=b,e[20]=m,e[21]=j}else g=e[16],k=e[17],y=e[18],b=e[19],m=e[20],j=e[21];if(j!==Symbol.for("react.early_return_sentinel"))return j;let v;e[54]!==k||e[55]!==y||e[56]!==b?(v=l.jsxs("div",{className:k,children:[y,b]}),e[54]=k,e[55]=y,e[56]=b,e[57]=v):v=e[57];let w;return e[58]!==g||e[59]!==m||e[60]!==v?(w=l.jsx(g,{label:m,children:v}),e[58]=g,e[59]=m,e[60]=v,e[61]=w):w=e[61],w}function dm(t){return l.jsxs("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"group flex items-center gap-2 rounded-md px-1 py-1.5 transition-colors hover:bg-muted",children:[l.jsx(cl,{size:15,className:"shrink-0 text-muted-foreground"}),l.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:t.label}),l.jsx(vr,{size:13,className:"shrink-0 text-muted-foreground/50 group-hover:text-foreground"})]},t.url)}function um(t){return t.hasPreview&&t.virtualMcpId}function fm(t){return[t.body,...t.replies.map(hm)]}function hm(t){return t.body}function pm(t){const e=R.c(13),{item:s}=t,n=X(),r=Tl(),{data:a}=Kl(s.id),i=xp(s.id);if(!$d({reviewerEnabled:r,hasPullRequest:(a??[]).length>0,threadTitles:s.threads.map(mm)}))return null;const o=i.isPending;let d;e[0]!==n?(d=n("taskBoard.taskDialog.runReviewerTitle"),e[0]=n,e[1]=d):d=e[1];let u;e[2]!==i||e[3]!==n?(u=()=>i.mutate(void 0,{onSuccess:p=>p?.queued?Fe.success(n("taskBoard.taskDialog.runReviewerSuccess")):Fe.info(n("taskBoard.taskDialog.runReviewerAlreadyRunning")),onError:p=>Fe.error(p.message||n("taskBoard.taskDialog.runReviewerError"))}),e[2]=i,e[3]=n,e[4]=u):u=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(pr,{size:14,className:"shrink-0"}),e[5]=f):f=e[5];let h;e[6]!==n?(h=n("taskBoard.taskDialog.runReviewerButton"),e[6]=n,e[7]=h):h=e[7];let x;return e[8]!==i.isPending||e[9]!==d||e[10]!==u||e[11]!==h?(x=l.jsxs(pe,{type:"button",variant:"ghost",size:"sm",disabled:o,title:d,className:"h-7 gap-1.5 px-2 text-sm font-normal text-muted-foreground",onClick:u,children:[f,h]}),e[8]=i.isPending,e[9]=d,e[10]=u,e[11]=h,e[12]=x):x=e[12],x}function mm(t){return t.title}function gm(t){const e=R.c(26),{item:s,members:n,onOpenThread:r}=t,a=X(),i=ma(),{data:c}=Ul(s.id),{data:o}=Zi.useSession(),d=new Map(n.map(jm)),u={id:o?.user?.id??"me",name:o?.user?.name??a("taskBoard.taskDialog.commentYouLabel"),image:o?.user?.image},f=Gl(s.id),h=B=>s.threads.find(A=>A.threadId===B),x=B=>{const A=h(B);return i&&A&&r?()=>r(A):void 0},p=(B,A)=>{if(B===ye){const K=h(A),U=i&&!!K&&wl(K.title,"reviewer");return{id:B,name:a(U?"taskBoard.conversation.reviewer":"taskBoard.taskDialog.superAgentLabel"),isAgent:!0,isReviewer:U}}if(B===u.id)return u;const z=d.get(B);return{id:B,name:z?.user?.name??B,image:z?.user?.image}},g=f.threads.map(B=>({id:B.id,author:p(B.authorId,B.threadId),onOpenThread:x(B.threadId),body:B.body,createdAt:B.createdAt,resolved:B.resolved,replies:B.replies.map(A=>({id:A.id,author:p(A.authorId,A.threadId),onOpenThread:x(A.threadId),body:A.body,createdAt:A.createdAt,replies:[]}))})),k=[...(c??[]).filter(cd).map(ym),...s.threads.filter(dd).map(bm),...g.map(km)].sort((B,A)=>i?B.at-A.at:A.at-B.at),y=[],b=xm;for(const B of k){if(B.kind==="thread"){y.push({type:"thread",thread:B.thread});continue}if(B.kind==="comment"){y.push({type:"comment",comment:B.comment});continue}const A=y[y.length-1];A?.type==="timeline"&&(!i||b(A).toDateString()===new Date(B.at).toDateString())?A.items.push(B.activity):y.push({type:"timeline",items:[B.activity]})}const m="flex flex-col gap-5",j=i?"taskBoard.conversation.replies":"taskBoard.taskDialog.activityLabel";let v;e[0]!==a||e[1]!==j?(v=a(j),e[0]=a,e[1]=j,e[2]=v):v=e[2];let w;e[3]!==v?(w=l.jsx("h2",{className:"text-sm font-medium text-muted-foreground",children:v}),e[3]=v,e[4]=w):w=e[4];let S;e[5]!==s?(S=l.jsx(pm,{item:s}),e[5]=s,e[6]=S):S=e[6];let N;e[7]!==s.id||e[8]!==n?(N=l.jsx(Ip,{itemId:s.id,members:n}),e[7]=s.id,e[8]=n,e[9]=N):N=e[9];let T;e[10]!==S||e[11]!==N?(T=l.jsxs("div",{className:"flex items-center gap-1",children:[S,N]}),e[10]=S,e[11]=N,e[12]=T):T=e[12];let C;e[13]!==w||e[14]!==T?(C=l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[w,T]}),e[13]=w,e[14]=T,e[15]=C):C=e[15];const D="flex flex-col gap-5";let E;e[16]!==f||e[17]!==i||e[18]!==a?(E=!i&&l.jsx(dc,{onSubmit:async B=>{try{return await f.post.mutateAsync({body:B}),!0}catch(A){const z=A;return Fe.error(z instanceof Error?z.message:a("taskBoard.conversation.sendFailed")),!1}}}),e[16]=f,e[17]=i,e[18]=a,e[19]=E):E=e[19];const $=y.map((B,A)=>{const z=b(B),K=y[A-1],U=!K||b(K).toDateString()!==z.toDateString(),Q=()=>B.type==="timeline"?l.jsx(wm,{items:B.items,memberByUserId:d}):B.type==="comment"?l.jsx($p,{conversation:i,onReply:O=>f.post.mutate({body:O,parentId:B.comment.id}),thread:B.comment,me:u,onDelete:O=>f.remove.mutate(O)},`comment-${B.comment.id}`):i?l.jsx(tm,{thread:B.thread,onOpen:r},`thread-${B.thread.threadId}`):l.jsx(em,{thread:B.thread,startedBy:n.find(O=>O.userId===s.assignedBy),onOpen:r}),ee=B.type==="timeline"?B.items[0].id:B.type==="thread"?B.thread.threadId:B.comment.id;return l.jsxs(q.Fragment,{children:[i&&U&&l.jsxs("div",{className:"flex items-center gap-3 py-2 text-xs font-medium text-muted-foreground",children:[l.jsx("span",{className:"h-px flex-1 bg-border"}),l.jsx("time",{dateTime:z.toISOString(),children:z.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"})}),l.jsx("span",{className:"h-px flex-1 bg-border"})]}),Q()]},`${B.type}-${ee}`)});let L;e[20]!==E||e[21]!==$?(L=l.jsxs("div",{className:D,children:[E,$]}),e[20]=E,e[21]=$,e[22]=L):L=e[22];let M;return e[23]!==L||e[24]!==C?(M=l.jsxs("section",{className:m,children:[C,L]}),e[23]=L,e[24]=C,e[25]=M):M=e[25],M}function xm(t){return new Date(t.type==="timeline"?t.items[0].occurredAt:t.type==="thread"?t.thread.createdAt:t.comment.createdAt)}function km(t){return{kind:"comment",at:new Date(t.createdAt).getTime(),comment:t}}function bm(t){return{kind:"thread",at:new Date(t.createdAt).getTime(),thread:t}}function ym(t){return{kind:"activity",at:new Date(t.occurredAt).getTime(),activity:t}}function jm(t){return[t.userId,t]}function Ot(t){const e=R.c(7),{icon:s,label:n}=t;let r;e[0]!==s?(r=l.jsx("span",{className:"ml-1 mr-1 inline-flex h-[1lh] items-center align-top",children:s}),e[0]=s,e[1]=r):r=e[1];let a;e[2]!==n?(a=l.jsx("span",{className:"mr-1",children:n}),e[2]=n,e[3]=a):a=e[3];let i;return e[4]!==r||e[5]!==a?(i=l.jsxs(l.Fragment,{children:[r,a]}),e[4]=r,e[5]=a,e[6]=i):i=e[6],i}const ha="\0";function Zr(t){return`${ha}${t}${ha}`}function Ht(t,e){return t.split(new RegExp(`${ha}(\\w+)${ha}`)).map((s,n)=>l.jsx(q.Fragment,{children:n%2===0?s:e[s]},n))}function rr(t,e){return e(t==="qa"?"taskBoard.taskDialog.qaAgentLabel":t==="code_review"?"taskBoard.taskDialog.codeReviewerLabel":"taskBoard.taskDialog.reviewerLabel")}function vm(t,e,s){const n=h=>{const x=typeof h=="string"?fd[h]:void 0;if(!x)return String(h??"");const p=x.icon;return l.jsx(Ot,{icon:l.jsx(p,{size:14,className:x.iconClassName}),label:e(x.labelKey)})},r=h=>{const x=typeof h=="string"?ze[h]:void 0;return x?l.jsx(Ot,{icon:l.jsx("span",{className:F("size-2 rounded-full",x.dotClassName)}),label:e(x.labelKey)}):String(h??"")},a=h=>{const x=fc(typeof h=="string"?h:null);return x?l.jsx(Ot,{icon:l.jsx(xt,{size:14,className:"text-muted-foreground"}),label:hc.format(x)}):""},i=h=>!Array.isArray(h)||h.length===0?null:h.map((x,p)=>{const g=x;return l.jsx(Ot,{icon:l.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:zt(g.color)}}),label:g.name??""},g.id??p)}),c=h=>{if(h===ye)return l.jsx(Ot,{icon:l.jsx(We,{size:14}),label:e("taskBoard.taskDialog.superAgentLabel")});const x=typeof h=="string"?s.get(h):void 0;return l.jsx(Ot,{icon:l.jsx(Le,{url:x?.user?.image??void 0,fallback:Me(x?.user?.name),shape:"circle",size:"2xs"}),label:x?.user?.name??e("taskBoard.taskDialog.someoneLabel")})},o=h=>l.jsx(Ot,{icon:l.jsx(pr,{size:14}),label:rr(h,e)}),d=t.data,u=Zr("from"),f=Zr("to");switch(t.action){case"created":return e("taskBoard.taskDialog.activityCreated");case"duplicate_reported":{const h=typeof d.title=="string"?d.title:null;return h?e("taskBoard.taskDialog.activityDuplicateReportedTitled",{title:h}):e("taskBoard.taskDialog.activityDuplicateReported")}case"status_changed":{const h=rc([{action:"status_changed",data:d}])?.message??"";return typeof d.retry=="number"?e("taskBoard.taskDialog.activityRetryScheduled",{attempt:String(d.retry),of:String(d.of??d.retry),reason:h}):typeof d.retriesSpent=="number"&&d.retriesSpent>0?Ht(e("taskBoard.taskDialog.activityRetriesExhausted",{to:f,count:String(d.retriesSpent),reason:h}),{to:n(d.to)}):Ht(d.from?e("taskBoard.taskDialog.activityMovedFromTo",{from:u,to:f}):e("taskBoard.taskDialog.activityMovedTo",{to:f}),{from:n(d.from),to:n(d.to)})}case"assignee_changed":return d.to==null?e("taskBoard.taskDialog.activityUnassigned"):Ht(e(d.to===ye?"taskBoard.taskDialog.activityDelegated":"taskBoard.taskDialog.activityAssigned",{name:Zr("name")}),{name:c(d.to)});case"type_changed":return d.from?e("taskBoard.taskDialog.activityTypeFromTo",{from:u,to:f}):e("taskBoard.taskDialog.activityTypeSet",{to:f});case"priority_changed":return d.to==="none"?e("taskBoard.taskDialog.activityPriorityCleared"):Ht(!d.from||d.from==="none"?e("taskBoard.taskDialog.activityPrioritySet",{to:f}):e("taskBoard.taskDialog.activityPriorityFromTo",{from:u,to:f}),{from:r(d.from),to:r(d.to)});case"due_date_changed":return d.to==null?e("taskBoard.taskDialog.activityDueDateCleared"):Ht(d.from==null?e("taskBoard.taskDialog.activityDueDateSet",{to:f}):e("taskBoard.taskDialog.activityDueDateFromTo",{from:u,to:f}),{from:a(d.from),to:a(d.to)});case"title_changed":return e("taskBoard.taskDialog.activityRenamed",{to:String(d.to??"")});case"description_changed":return e("taskBoard.taskDialog.activityDescriptionUpdated");case"tags_changed":return!Array.isArray(d.to)||d.to.length===0?e("taskBoard.taskDialog.activityTagsCleared"):Ht(e("taskBoard.taskDialog.activityTagsSet",{to:f}),{to:i(d.to)});case"review_requested":return Ht(e("taskBoard.taskDialog.activityDelegated",{name:Zr("name")}),{name:o(d.reviewer)});case"review_approved":return typeof d.notes=="string"&&d.notes.trim()?e("taskBoard.taskDialog.activityReviewApprovedWithNotes",{reviewer:rr(d.reviewer,e),notes:d.notes}):e("taskBoard.taskDialog.activityReviewApproved",{reviewer:rr(d.reviewer,e)});case"review_changes_requested":return typeof d.notes=="string"&&d.notes.trim()?e("taskBoard.taskDialog.activityReviewChangesRequestedWithNotes",{reviewer:rr(d.reviewer,e),notes:d.notes}):e("taskBoard.taskDialog.activityReviewChangesRequested",{reviewer:rr(d.reviewer,e)});case"review_verdict_requested":return e("taskBoard.taskDialog.activityReviewVerdictRequested",{reviewer:rr(d.reviewer,e)});case"merge_conflict_resolution":return e("taskBoard.taskDialog.activityMergeConflictResolution");case"merge_failed":{const h=typeof d.detail=="string"?d.detail:"";switch(d.reason){case"no_pr":return e("taskBoard.taskDialog.activityMergeFailedNoPr");case"checks_failing":return e("taskBoard.taskDialog.activityMergeFailedChecksFailing");case"no_connection":return h?e("taskBoard.taskDialog.activityMergeFailedNoConnection",{detail:h}):e("taskBoard.taskDialog.activityMergeFailed");case"rate_limited":return e("taskBoard.taskDialog.activityMergeFailedRateLimited");case"conflict":return e("taskBoard.taskDialog.activityMergeFailedConflict");case"refused":return h?e("taskBoard.taskDialog.activityMergeFailedRefused",{detail:h}):e("taskBoard.taskDialog.activityMergeFailed");default:return h?e("taskBoard.taskDialog.activityMergeFailedError",{detail:h}):e("taskBoard.taskDialog.activityMergeFailed")}}default:{const h=t.action;return String(h)}}}function Oi(t){return!t||t===ye}function wm(t){const e=R.c(29),{items:s,memberByUserId:n}=t,r=X(),[a,i]=q.useState(!1);let c;e[0]!==n||e[1]!==r?(c=b=>Oi(b)?r("taskBoard.taskDialog.superAgentLabel"):n.get(b)?.user?.name??r("taskBoard.taskDialog.someoneLabel"),e[0]=n,e[1]=r,e[2]=c):c=e[2];const o=c;let d;e[3]!==n?(d=b=>{if(Oi(b))return l.jsx("span",{className:"z-10 flex size-4 shrink-0 items-center justify-center bg-background",children:l.jsx(We,{size:16})});const m=n.get(b);return l.jsx("span",{className:"z-10 shrink-0 rounded-full bg-background",children:l.jsx(Le,{url:m?.user?.image??void 0,fallback:Me(m?.user?.name),shape:"circle",size:"2xs"})})},e[3]=n,e[4]=d):d=e[4];const u=d,f=s.length>Mi&&!a;let h;e[5]!==f||e[6]!==s?(h=f?s.slice(0,Pi):s,e[5]=f,e[6]=s,e[7]=h):h=e[7];const x=h;let p;e[8]!==x.length?(p=x.length>1&&l.jsx("span",{"aria-hidden":!0,className:"absolute bottom-3 left-2 top-3 w-px bg-border"}),e[8]=x.length,e[9]=p):p=e[9];let g;if(e[10]!==u||e[11]!==o||e[12]!==n||e[13]!==r||e[14]!==x){let b;e[16]!==u||e[17]!==o||e[18]!==n||e[19]!==r?(b=m=>l.jsxs("div",{className:"relative flex items-center gap-2.5",children:[u(m.actorId),l.jsxs("span",{className:"min-w-0 truncate text-xs text-muted-foreground",children:[o(m.actorId)," ",vm(m,r,n),l.jsxs("span",{className:"text-muted-foreground/60",children:[" · ",Tr(new Date(m.occurredAt))]})]})]},m.id),e[16]=u,e[17]=o,e[18]=n,e[19]=r,e[20]=b):b=e[20],g=x.map(b),e[10]=u,e[11]=o,e[12]=n,e[13]=r,e[14]=x,e[15]=g}else g=e[15];let k;e[21]!==a||e[22]!==s.length||e[23]!==r?(k=s.length>Mi&&l.jsxs("button",{type:"button",onClick:()=>i(Sm),className:"relative flex items-center gap-2.5 text-left",children:[l.jsx("span",{className:"z-10 flex size-4 shrink-0 items-center justify-center rounded-full bg-background text-muted-foreground/60",children:l.jsx(ir,{size:14})}),l.jsx("span",{className:"text-xs text-muted-foreground/60 hover:text-foreground",children:a?r("taskBoard.taskDialog.timelineFoldLess"):r("taskBoard.taskDialog.timelineFoldMore",{count:String(s.length-Pi)})})]}),e[21]=a,e[22]=s.length,e[23]=r,e[24]=k):k=e[24];let y;return e[25]!==p||e[26]!==g||e[27]!==k?(y=l.jsxs("div",{className:"relative flex flex-col gap-4",children:[p,g,k]}),e[25]=p,e[26]=g,e[27]=k,e[28]=y):y=e[28],y}function Sm(t){return!t}function Nm(t){const e=R.c(59),{item:s,orgSlug:n,onRerun:r}=t,a=X(),{data:i}=Ul(s.id),{data:c}=Do();let o;e[0]!==i?(o=i??[],e[0]=i,e[1]=o):o=e[1];let d;e[2]!==o?(d=rc(o),e[2]=o,e[3]=d):d=e[3];const u=d;if(!u)return null;const f=u.code===di.githubNotAuthenticated,h=u.code===di.githubConnectionMissing;let x,p,g,k,y,b,m,j,v,w;if(e[4]!==h||e[5]!==u.message||e[6]!==s||e[7]!==f||e[8]!==n||e[9]!==c||e[10]!==a){p=ap({orgSlug:n,repo:s.repo,repositories:c??[],returnTo:ho(n,s)}),x=ru,w="destructive",g="mt-2 flex-col",j="flex items-start gap-3",e[21]===Symbol.for("react.memo_cache_sentinel")?(v=l.jsx(Xt,{}),e[21]=v):v=e[21],k="flex flex-col gap-1";let $;e[22]!==a?($=a("taskBoard.taskDialog.runFailedTitle"),e[22]=a,e[23]=$):$=e[23],e[24]!==$?(y=l.jsx(au,{children:$}),e[24]=$,e[25]=y):y=e[25];let L;e[26]!==h||e[27]!==u.message||e[28]!==f||e[29]!==a?(L=h?a("taskBoard.taskDialog.runFailedGithubMissing"):f?a("taskBoard.taskDialog.runFailedGithubAuth"):u.message,e[26]=h,e[27]=u.message,e[28]=f,e[29]=a,e[30]=L):L=e[30],e[31]!==L?(b=l.jsx(ni,{children:L}),e[31]=L,e[32]=b):b=e[32],m=f&&p.ownerOnly&&p.owner&&l.jsx(ni,{children:a("taskBoard.taskDialog.runFailedGithubOwnerOnly",{owner:p.owner})}),e[4]=h,e[5]=u.message,e[6]=s,e[7]=f,e[8]=n,e[9]=c,e[10]=a,e[11]=x,e[12]=p,e[13]=g,e[14]=k,e[15]=y,e[16]=b,e[17]=m,e[18]=j,e[19]=v,e[20]=w}else x=e[11],p=e[12],g=e[13],k=e[14],y=e[15],b=e[16],m=e[17],j=e[18],v=e[19],w=e[20];let S;e[33]!==k||e[34]!==y||e[35]!==b||e[36]!==m?(S=l.jsxs("div",{className:k,children:[y,b,m]}),e[33]=k,e[34]=y,e[35]=b,e[36]=m,e[37]=S):S=e[37];let N;e[38]!==S||e[39]!==j||e[40]!==v?(N=l.jsxs("div",{className:j,children:[v,S]}),e[38]=S,e[39]=j,e[40]=v,e[41]=N):N=e[41];let T;e[42]!==h||e[43]!==f||e[44]!==p||e[45]!==a?(T=(f||h)&&l.jsx(pe,{size:"sm",asChild:!0,children:l.jsx("a",{href:p.url,children:a(h?"taskBoard.taskDialog.runFailedLinkRepo":"taskBoard.taskDialog.runFailedReconnect")})}),e[42]=h,e[43]=f,e[44]=p,e[45]=a,e[46]=T):T=e[46];let C;e[47]!==r||e[48]!==a?(C=r&&l.jsxs(pe,{size:"sm",variant:"outline",onClick:r,children:[l.jsx(ga,{size:14}),a("taskBoard.taskBoard.rerun")]}),e[47]=r,e[48]=a,e[49]=C):C=e[49];let D;e[50]!==T||e[51]!==C?(D=l.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 self-start",children:[T,C]}),e[50]=T,e[51]=C,e[52]=D):D=e[52];let E;return e[53]!==x||e[54]!==g||e[55]!==N||e[56]!==D||e[57]!==w?(E=l.jsxs(x,{variant:w,className:g,children:[N,D]}),e[53]=x,e[54]=g,e[55]=N,e[56]=D,e[57]=w,e[58]=E):E=e[58],E}const Cm=["taskBoard.subscriptionPaywall.trialBenefitMonitoring","taskBoard.subscriptionPaywall.trialBenefitAutoFix","taskBoard.subscriptionPaywall.trialBenefitRuns"],Tm="https://decoims.com/image?src=decocms%2F7263a67f-fb83-410b-a5f2-e54e87deaaac%2Freport-kanban.png&quality=original&fit=cover";function Bm(t){const e=R.c(83),{kind:s,onOpenChange:n}=t,r=X(),{mutate:a,isPending:i}=pf("ORGANIZATION_BILLING_CHECKOUT_START","taskBoard.subscriptionPaywall.checkoutError");if(s==="trial_exhausted"){let j;e[0]!==r?(j=r("taskBoard.subscriptionPaywall.previewAlt"),e[0]=r,e[1]=j):j=e[1];let v;e[2]!==j?(v=l.jsx("div",{className:"overflow-hidden rounded-xl bg-muted",children:l.jsx("img",{src:Tm,alt:j,className:"h-[160px] w-full object-cover object-left-top"})}),e[2]=j,e[3]=v):v=e[3];let w;e[4]!==r?(w=r("taskBoard.subscriptionPaywall.trialTitle"),e[4]=r,e[5]=w):w=e[5];let S;e[6]!==w?(S=l.jsx(aa,{className:"text-xl font-semibold text-foreground",children:w}),e[6]=w,e[7]=S):S=e[7];let N;e[8]!==r?(N=Cm.map(J=>l.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[l.jsx(fr,{size:18,className:"mt-0.5 shrink-0 text-success","aria-hidden":!0}),l.jsx("span",{className:"leading-snug text-foreground",children:r(J)})]},J)),e[8]=r,e[9]=N):N=e[9];let T;e[10]!==N?(T=l.jsx("ul",{className:"flex flex-col gap-3",children:N}),e[10]=N,e[11]=T):T=e[11];let C;e[12]!==r?(C=r("taskBoard.subscriptionPaywall.trialPrice"),e[12]=r,e[13]=C):C=e[13];let D;e[14]!==C?(D=l.jsx("span",{className:"text-2xl font-semibold text-foreground",children:C}),e[14]=C,e[15]=D):D=e[15];let E;e[16]!==r?(E=r("taskBoard.subscriptionPaywall.trialPricePeriod"),e[16]=r,e[17]=E):E=e[17];let $;e[18]!==E?($=l.jsx("span",{className:"text-sm text-muted-foreground",children:E}),e[18]=E,e[19]=$):$=e[19];let L;e[20]!==$||e[21]!==D?(L=l.jsxs("div",{className:"flex items-baseline gap-1.5",children:[D,$]}),e[20]=$,e[21]=D,e[22]=L):L=e[22];let M;e[23]!==n?(M=()=>n(!1),e[23]=n,e[24]=M):M=e[24];let B;e[25]!==r?(B=r("taskBoard.subscriptionPaywall.notNowButton"),e[25]=r,e[26]=B):B=e[26];let A;e[27]!==i||e[28]!==M||e[29]!==B?(A=l.jsx(pe,{variant:"ghost",onClick:M,disabled:i,className:"order-2 w-full sm:order-none sm:w-auto",children:B}),e[27]=i,e[28]=M,e[29]=B,e[30]=A):A=e[30];let z;e[31]!==n||e[32]!==a?(z=()=>a(void 0,{onSuccess:()=>n(!1)}),e[31]=n,e[32]=a,e[33]=z):z=e[33];let K;e[34]!==i?(K=i&&l.jsx(dt,{className:"size-4"}),e[34]=i,e[35]=K):K=e[35];let U;e[36]!==r?(U=r("taskBoard.subscriptionPaywall.subscribeButton"),e[36]=r,e[37]=U):U=e[37];let Q;e[38]!==i||e[39]!==z||e[40]!==K||e[41]!==U?(Q=l.jsxs(pe,{disabled:i,onClick:z,className:"order-1 w-full gap-2 sm:order-none sm:w-auto",children:[K,U]}),e[38]=i,e[39]=z,e[40]=K,e[41]=U,e[42]=Q):Q=e[42];let ee;e[43]!==A||e[44]!==Q?(ee=l.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[A,Q]}),e[43]=A,e[44]=Q,e[45]=ee):ee=e[45];let O;e[46]!==L||e[47]!==ee?(O=l.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[L,ee]}),e[46]=L,e[47]=ee,e[48]=O):O=e[48];let te;e[49]!==O||e[50]!==S||e[51]!==T?(te=l.jsxs("div",{className:"flex flex-col gap-6 px-3 pb-3 pt-7",children:[S,T,O]}),e[49]=O,e[50]=S,e[51]=T,e[52]=te):te=e[52];let W;e[53]!==v||e[54]!==te?(W=l.jsxs(la,{className:"gap-0 p-3 sm:max-w-[440px]",closeButtonClassName:"z-10 classic:rounded-full bg-background/70 p-1 text-foreground backdrop-blur transition-colors hover:bg-background",children:[v,te]}),e[53]=v,e[54]=te,e[55]=W):W=e[55];let Z;return e[56]!==n||e[57]!==W?(Z=l.jsx(ia,{open:!0,onOpenChange:n,children:W}),e[56]=n,e[57]=W,e[58]=Z):Z=e[58],Z}let c;e[59]!==s||e[60]!==r?(c=s?{monthly_exhausted:{title:r("taskBoard.subscriptionPaywall.monthlyTitle"),description:r("taskBoard.subscriptionPaywall.monthlyDescription")},runs_exhausted:{title:r("taskBoard.subscriptionPaywall.runsTitle"),description:r("taskBoard.subscriptionPaywall.runsDescription")}}[s]:null,e[59]=s,e[60]=r,e[61]=c):c=e[61];const o=c,d=!!s,u=o?.title;let f;e[62]!==u?(f=l.jsx(aa,{children:u}),e[62]=u,e[63]=f):f=e[63];const h=o?.description;let x;e[64]!==h?(x=l.jsx(bo,{children:h}),e[64]=h,e[65]=x):x=e[65];let p;e[66]!==f||e[67]!==x?(p=l.jsxs(yo,{children:[f,x]}),e[66]=f,e[67]=x,e[68]=p):p=e[68];let g;e[69]!==n?(g=()=>n(!1),e[69]=n,e[70]=g):g=e[70];let k;e[71]!==r?(k=r("taskBoard.subscriptionPaywall.dismissButton"),e[71]=r,e[72]=k):k=e[72];let y;e[73]!==g||e[74]!==k?(y=l.jsx(jo,{children:l.jsx(pe,{variant:"ghost",onClick:g,children:k})}),e[73]=g,e[74]=k,e[75]=y):y=e[75];let b;e[76]!==y||e[77]!==p?(b=l.jsxs(la,{className:"sm:max-w-[440px]",children:[p,y]}),e[76]=y,e[77]=p,e[78]=b):b=e[78];let m;return e[79]!==n||e[80]!==b||e[81]!==d?(m=l.jsx(ia,{open:d,onOpenChange:n,children:b}),e[79]=n,e[80]=b,e[81]=d,e[82]=m):m=e[82],m}const _m=new Set(["completed","failed","expired"]);function Am(t){return t.threads.some(e=>e.status!==null&&!_m.has(e.status))}function Dm(t){const e=R.c(43),{items:s,pending:n,onOpenChange:r,onConfirm:a}=t,i=X(),c=s.length;let o;e[0]!==s?(o=s.some(Am),e[0]=s,e[1]=o):o=e[1];const d=o,u=c>0;let f;e[2]!==c||e[3]!==i?(f=c>1?i("taskBoard.rerun.titleMany",{count:c}):i("taskBoard.rerun.title"),e[2]=c,e[3]=i,e[4]=f):f=e[4];let h;e[5]!==f?(h=l.jsx(aa,{children:f}),e[5]=f,e[6]=h):h=e[6];let x;e[7]!==c||e[8]!==i||e[9]!==d?(x=c>1?i("taskBoard.rerun.descriptionMany",{count:c}):i(d?"taskBoard.rerun.descriptionTakeover":"taskBoard.rerun.description"),e[7]=c,e[8]=i,e[9]=d,e[10]=x):x=e[10];let p;e[11]!==x?(p=l.jsx(bo,{children:x}),e[11]=x,e[12]=p):p=e[12];let g;e[13]!==h||e[14]!==p?(g=l.jsxs(yo,{children:[h,p]}),e[13]=h,e[14]=p,e[15]=g):g=e[15];let k;e[16]!==r?(k=()=>r(!1),e[16]=r,e[17]=k):k=e[17];let y;e[18]!==i?(y=i("taskBoard.rerun.cancel"),e[18]=i,e[19]=y):y=e[19];let b;e[20]!==n||e[21]!==k||e[22]!==y?(b=l.jsx(pe,{variant:"outline",onClick:k,disabled:n,children:y}),e[20]=n,e[21]=k,e[22]=y,e[23]=b):b=e[23];let m;e[24]!==n?(m=n&&l.jsx(dt,{className:"size-4"}),e[24]=n,e[25]=m):m=e[25];let j;e[26]!==i?(j=i("taskBoard.rerun.confirm"),e[26]=i,e[27]=j):j=e[27];let v;e[28]!==a||e[29]!==n||e[30]!==m||e[31]!==j?(v=l.jsxs(pe,{onClick:a,disabled:n,children:[m,j]}),e[28]=a,e[29]=n,e[30]=m,e[31]=j,e[32]=v):v=e[32];let w;e[33]!==b||e[34]!==v?(w=l.jsxs(jo,{children:[b,v]}),e[33]=b,e[34]=v,e[35]=w):w=e[35];let S;e[36]!==w||e[37]!==g?(S=l.jsxs(la,{className:"max-w-md",children:[g,w]}),e[36]=w,e[37]=g,e[38]=S):S=e[38];let N;return e[39]!==r||e[40]!==S||e[41]!==u?(N=l.jsx(ia,{open:u,onOpenChange:r,children:S}),e[39]=r,e[40]=S,e[41]=u,e[42]=N):N=e[42],N}const Hi=380,$m=90,qi=5,Rm="cubic-bezier(0.22, 0.61, 0.36, 1)";function zm(t,e,s,n=!0){const r=q.useRef(new Map),a=q.useRef(new Map),i=q.useRef(!1);q.useLayoutEffect(()=>{const c=t.current;if(!c)return;if(!n){i.current=!0;return}const o=i.current;i.current=!1;const d=c.querySelectorAll("[data-flip-id]"),u=new Map,f=r.current;r.current=u;const h=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,x=[];for(const j of d){const v=j.dataset.flipId;if(!v)continue;const w=j.getBoundingClientRect(),S=j.dataset.flipLane;if(u.set(v,{rect:w,lane:S}),!s||o)continue;const N=f.get(v);if(!N)continue;const T=N.rect.left-w.left,C=N.rect.top-w.top;(T||C)&&x.push({el:j,dx:T,dy:C,lane:N.lane!==S})}if(!s||h||x.length===0)return;const p=a.current,g=j=>{j instanceof HTMLElement&&(p.set(j,(p.get(j)??0)+1),j.style.overflow="visible")},k=j=>{if(!(j instanceof HTMLElement))return;const v=(p.get(j)??1)-1;if(v>0){p.set(j,v);return}p.delete(j),j.style.overflow=""};for(const j of x){const v=j.lane?` rotate(${j.dx>0?qi:-qi}deg)`:"";j.el.style.transition="none",j.el.style.transform=`translate(${j.dx}px, ${j.dy}px)${v}`,j.lane&&(j.el.style.zIndex="10",g(j.el.closest("[data-lane-scroll]")))}let y=0;const b=[],m=requestAnimationFrame(()=>{for(const j of x){const v=j.lane?y++*$m:0;j.el.style.transition=`transform ${Hi}ms ${Rm} ${v}ms`,j.el.style.transform="",b.push(window.setTimeout(()=>{j.el.style.transition="",j.el.style.transform="",j.el.style.zIndex="",j.lane&&k(j.el.closest("[data-lane-scroll]"))},Hi+v+30))}});return()=>{cancelAnimationFrame(m);for(const j of b)clearTimeout(j);for(const j of x)j.el.style.transition="",j.el.style.transform="",j.el.style.zIndex="",j.lane&&k(j.el.closest("[data-lane-scroll]"))}},[e,t,s,n])}function Em(t,e=[]){const s=[[`# Task: ${t.title}`,t.description?.trim()].filter(Boolean).join(`
87
+
88
+ `)];if(e.length>0){const n=e.map(r=>{const a=r.merged?"merged":r.state??(r.draft?"draft":"open"),i=r.title?.trim()||`${r.repoOwner}/${r.repoName}`;return`- #${r.number} ${i} [${a}] ${r.url}`});s.push(["## Linked pull requests",...n].join(`
89
+ `))}if(t.threads.length>0){const n=t.threads.map(r=>{const a=r.title?.trim()||"Untitled chat";return r.status?`- ${a} [${r.status}]`:`- ${a}`});s.push(["## Other chats on this task",...n].join(`
90
+ `))}return s.join(`
91
+
92
+ `)}const Im=["assignee","priority","due","tags","project"];function gc(t,e){return Im.filter(s=>{switch(s){case"assignee":return t.assignee!==null;case"priority":return t.priority!==null;case"due":return t.due!==null;case"tags":return t.tags.length>0;case"project":return Cr(t.project,e);default:return s}})}function Lm(t,e){switch(e){case"assignee":return{...t,assignee:null};case"priority":return{...t,priority:null};case"due":return{...t,due:null};case"tags":return{...t,tags:[]};case"project":return{...t,project:null};default:return e}}function xc(t){const e=R.c(4),{priority:s}=t,n=ze[s];let r;e[0]!==n.dotClassName?(r=F("size-2 shrink-0 rounded-full",n.dotClassName),e[0]=n.dotClassName,e[1]=r):r=e[1];let a;return e[2]!==r?(a=l.jsx("span",{className:r}),e[2]=r,e[3]=a):a=e[3],a}function kc(t){const e=R.c(4),{color:s}=t;let n;e[0]!==s?(n=zt(s),e[0]=s,e[1]=n):n=e[1];let r;return e[2]!==n?(r=l.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:n}}),e[2]=n,e[3]=r):r=e[3],r}function bc(t){const e=R.c(91),{members:s,tags:n,index:r}=t,a=X();let i;e[0]!==s||e[1]!==a?(i=I=>s.find(H=>H.userId===I)?.user?.name??a("taskBoard.taskFilters.assigneeMember"),e[0]=s,e[1]=a,e[2]=i):i=e[2];const c=i;let o;e[3]!==a?(o=a("taskBoard.taskFilters.assigneeLabel"),e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(Zt,{size:14,className:"shrink-0"}),e[5]=d):d=e[5];let u;e[6]!==a?(u=a("taskBoard.taskFilters.assigneeUnassigned"),e[6]=a,e[7]=u):u=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Zt,{size:14,className:"shrink-0 text-muted-foreground"}),e[8]=f):f=e[8];let h;e[9]!==u?(h={id:or,label:u,glyph:f,apply:Qm,isSelected:Vm},e[9]=u,e[10]=h):h=e[10];let x;e[11]!==a?(x=a("taskBoard.taskFilters.assigneeSuperAgent"),e[11]=a,e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(We,{size:14}),e[13]=p):p=e[13];let g;e[14]!==x?(g={id:ye,label:x,glyph:p,apply:Gm,isSelected:Wm},e[14]=x,e[15]=g):g=e[15];let k;e[16]!==s||e[17]!==h||e[18]!==g?(k=[h,g,...s.map(Um)],e[16]=s,e[17]=h,e[18]=g,e[19]=k):k=e[19];let y;e[20]!==c||e[21]!==a?(y=I=>I.assignee===or?a("taskBoard.taskFilters.assigneeUnassigned"):I.assignee===ye?a("taskBoard.taskFilters.assigneeSuperAgent"):I.assignee?c(I.assignee):"",e[20]=c,e[21]=a,e[22]=y):y=e[22];let b;e[23]!==k||e[24]!==y||e[25]!==o?(b={id:"assignee",label:o,icon:d,options:k,valueLabel:y,valueGlyph:Km},e[23]=k,e[24]=y,e[25]=o,e[26]=b):b=e[26];const m=b;let j;e[27]!==a?(j=a("taskBoard.taskFilters.priorityLabel"),e[27]=a,e[28]=j):j=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=l.jsx(io,{size:14,className:"shrink-0"}),e[29]=v):v=e[29];let w;e[30]!==a?(w=hr.map(I=>({id:I,label:a(ze[I].labelKey),glyph:l.jsx(xc,{priority:I}),apply:H=>({...H,priority:I}),isSelected:H=>H.priority===I})),e[30]=a,e[31]=w):w=e[31];let S;e[32]!==a?(S=I=>I.priority?a(ze[I.priority].labelKey):"",e[32]=a,e[33]=S):S=e[33];let N;e[34]!==j||e[35]!==w||e[36]!==S?(N={id:"priority",label:j,icon:v,options:w,valueLabel:S,valueGlyph:qm},e[34]=j,e[35]=w,e[36]=S,e[37]=N):N=e[37];const T=N;let C;e[38]!==a?(C=a("taskBoard.taskFilters.dueDateLabel"),e[38]=a,e[39]=C):C=e[39];let D;e[40]===Symbol.for("react.memo_cache_sentinel")?(D=l.jsx(xt,{size:14,className:"shrink-0"}),e[40]=D):D=e[40];let E;e[41]!==a?(E=co.map(I=>({id:I,label:a(ra(I)),glyph:l.jsx(xt,{size:14,className:F("shrink-0",I==="overdue"?"text-destructive":"text-muted-foreground")}),apply:H=>({...H,due:I}),isSelected:H=>H.due===I})),e[41]=a,e[42]=E):E=e[42];let $;e[43]!==a?($=I=>I.due?a(ra(I.due)):"",e[43]=a,e[44]=$):$=e[44];let L;e[45]!==C||e[46]!==E||e[47]!==$?(L={id:"due",label:C,icon:D,options:E,valueLabel:$,valueGlyph:Hm},e[45]=C,e[46]=E,e[47]=$,e[48]=L):L=e[48];const M=L;let B;e[49]!==a?(B=a("taskBoard.taskFilters.tagsLabel"),e[49]=a,e[50]=B):B=e[50];let A;e[51]===Symbol.for("react.memo_cache_sentinel")?(A=l.jsx(sa,{size:14,className:"shrink-0"}),e[51]=A):A=e[51];let z;e[52]!==n?(z=n.map(Om),e[52]=n,e[53]=z):z=e[53];let K;e[54]!==a||e[55]!==n?(K=I=>I.tags.length===1?n.find(H=>H.id===I.tags[0])?.name??a("taskBoard.taskFilters.tagsLabel"):a("taskBoard.taskFilters.tagsSelectedCount",{count:I.tags.length}),e[54]=a,e[55]=n,e[56]=K):K=e[56];let U;e[57]!==n?(U=I=>I.tags.length===1?l.jsx(kc,{color:n.find(H=>H.id===I.tags[0])?.color}):l.jsx(sa,{size:14,className:"shrink-0"}),e[57]=n,e[58]=U):U=e[58];let Q;e[59]!==B||e[60]!==z||e[61]!==K||e[62]!==U?(Q={id:"tags",label:B,icon:A,multi:!0,options:z,valueLabel:K,valueGlyph:U},e[59]=B,e[60]=z,e[61]=K,e[62]=U,e[63]=Q):Q=e[63];const ee=Q;let O;e[64]!==a?(O=a("taskBoard.taskFilters.projectLabel"),e[64]=a,e[65]=O):O=e[65];let te;e[66]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx(Vt,{entry:void 0}),e[66]=te):te=e[66];let W;e[67]!==a?(W=a("taskBoard.taskFilters.projectNone"),e[67]=a,e[68]=W):W=e[68];let Z;e[69]===Symbol.for("react.memo_cache_sentinel")?(Z=l.jsx(Vt,{entry:void 0}),e[69]=Z):Z=e[69];let J;e[70]!==W?(J={id:cr,label:W,glyph:Z,apply:Fm,isSelected:Pm},e[70]=W,e[71]=J):J=e[71];let re;e[72]!==r.entries||e[73]!==J?(re=[J,...r.entries.map(Mm)],e[72]=r.entries,e[73]=J,e[74]=re):re=e[74];let Y;e[75]!==r||e[76]!==a?(Y=I=>I.project===cr?a("taskBoard.taskFilters.projectNone"):I.project?yr(I.project,r)?.title??I.project:"",e[75]=r,e[76]=a,e[77]=Y):Y=e[77];let ne;e[78]!==r?(ne=I=>l.jsx(Vt,{entry:I.project?yr(I.project,r):void 0}),e[78]=r,e[79]=ne):ne=e[79];let ce;e[80]!==O||e[81]!==re||e[82]!==Y||e[83]!==ne?(ce={id:"project",label:O,icon:te,options:re,valueLabel:Y,valueGlyph:ne},e[80]=O,e[81]=re,e[82]=Y,e[83]=ne,e[84]=ce):ce=e[84];const ue=ce;let le;return e[85]!==m||e[86]!==M||e[87]!==T||e[88]!==ue||e[89]!==ee?(le=[m,T,M,ee,ue],e[85]=m,e[86]=M,e[87]=T,e[88]=ue,e[89]=ee,e[90]=le):le=e[90],le}function Mm(t){return{id:t.id,label:t.title,glyph:l.jsx(Vt,{entry:t}),apply:e=>({...e,project:t.id}),isSelected:e=>e.project===t.id}}function Pm(t){return t.project===cr}function Fm(t){return{...t,project:cr}}function Om(t){return{id:t.id,label:t.name,glyph:l.jsx(kc,{color:t.color}),apply:e=>({...e,tags:e.tags.includes(t.id)?e.tags.filter(s=>s!==t.id):[...e.tags,t.id]}),isSelected:e=>e.tags.includes(t.id)}}function Hm(){return l.jsx(xt,{size:14,className:"shrink-0"})}function qm(t){return t.priority?l.jsx(xc,{priority:t.priority}):null}function Km(t){return t.assignee===ye?l.jsx(We,{size:14}):l.jsx(Zt,{size:14,className:"shrink-0"})}function Um(t){return{id:t.userId,label:t.user?.name??t.userId,glyph:l.jsx(Le,{url:t.user?.image??void 0,fallback:Me(t.user?.name),shape:"circle",size:"2xs"}),apply:e=>({...e,assignee:t.userId}),isSelected:e=>e.assignee===t.userId}}function Wm(t){return t.assignee===ye}function Gm(t){return{...t,assignee:ye}}function Vm(t){return t.assignee===or}function Qm(t){return{...t,assignee:or}}function Ql(t){const e=R.c(5),{count:s}=t,n=X();let r;e[0]!==s||e[1]!==n?(r=n("taskBoard.viewControls.matchCount",{count:s}),e[0]=s,e[1]=n,e[2]=r):r=e[2];let a;return e[3]!==r?(a=l.jsx("span",{className:"ml-auto shrink-0 text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=a):a=e[4],a}function Sr(t){const e=R.c(2),{children:s}=t;let n;return e[0]!==s?(n=l.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center",children:s}),e[0]=s,e[1]=n):n=e[1],n}function Ym(t){const e=R.c(22),{field:s,open:n,countFor:r,onSelect:a}=t;let i;e[0]!==s.icon?(i=l.jsx(Sr,{children:s.icon}),e[0]=s.icon,e[1]=i):i=e[1];let c;e[2]!==s.label?(c=l.jsx("span",{className:"truncate",children:s.label}),e[2]=s.label,e[3]=c):c=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(Nr,{size:12,className:"ml-auto shrink-0 text-muted-foreground/60"}),e[4]=o):o=e[4];let d;e[5]!==s.label||e[6]!==i||e[7]!==c?(d=l.jsx(id,{asChild:!0,children:l.jsxs(Oe,{value:s.label,children:[i,c,o]})}),e[5]=s.label,e[6]=i,e[7]=c,e[8]=d):d=e[8];let u;if(e[9]!==r||e[10]!==s.options||e[11]!==a){let x;e[13]!==r||e[14]!==a?(x=p=>l.jsx(Jm,{option:p,count:r(p),onSelect:()=>a(p)},p.id),e[13]=r,e[14]=a,e[15]=x):x=e[15],u=s.options.map(x),e[9]=r,e[10]=s.options,e[11]=a,e[12]=u}else u=e[12];let f;e[16]!==u?(f=l.jsx(kt,{side:"right",align:"start",alignOffset:-5,className:"max-h-72 w-64 overflow-y-auto p-1",onOpenAutoFocus:Xm,onCloseAutoFocus:Zm,children:u}),e[16]=u,e[17]=f):f=e[17];let h;return e[18]!==n||e[19]!==d||e[20]!==f?(h=l.jsxs(bt,{open:n,children:[d,f]}),e[18]=n,e[19]=d,e[20]=f,e[21]=h):h=e[21],h}function Zm(t){return t.preventDefault()}function Xm(t){return t.preventDefault()}function Jm(t){const e=R.c(12),{option:s,count:n,onSelect:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=F(lo({highlight:"hover"})),e[0]=a):a=e[0];let i;e[1]!==s.glyph?(i=l.jsx(Sr,{children:s.glyph}),e[1]=s.glyph,e[2]=i):i=e[2];let c;e[3]!==s.label?(c=l.jsx("span",{className:"truncate",children:s.label}),e[3]=s.label,e[4]=c):c=e[4];let o;e[5]!==n?(o=l.jsx(Ql,{count:n}),e[5]=n,e[6]=o):o=e[6];let d;return e[7]!==r||e[8]!==i||e[9]!==c||e[10]!==o?(d=l.jsxs("button",{type:"button",className:a,onClick:r,children:[i,c,o]}),e[7]=r,e[8]=i,e[9]=c,e[10]=o,e[11]=d):d=e[11],d}function eg(t){const e=R.c(19),{field:s,option:n,count:r,onSelect:a}=t,i=`${s.label} ${n.label}`;let c;e[0]!==s.icon?(c=l.jsx(Sr,{children:s.icon}),e[0]=s.icon,e[1]=c):c=e[1];let o;e[2]!==s.label?(o=l.jsx("span",{className:"shrink-0 text-muted-foreground",children:s.label}),e[2]=s.label,e[3]=o):o=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=l.jsx(Nr,{size:12,className:"shrink-0 text-muted-foreground/60"}),e[4]=d):d=e[4];let u;e[5]!==n.glyph?(u=l.jsx(Sr,{children:n.glyph}),e[5]=n.glyph,e[6]=u):u=e[6];let f;e[7]!==n.label?(f=l.jsx("span",{className:"truncate",children:n.label}),e[7]=n.label,e[8]=f):f=e[8];let h;e[9]!==r?(h=l.jsx(Ql,{count:r}),e[9]=r,e[10]=h):h=e[10];let x;return e[11]!==a||e[12]!==i||e[13]!==c||e[14]!==o||e[15]!==u||e[16]!==f||e[17]!==h?(x=l.jsxs(Oe,{value:i,onSelect:a,children:[c,o,d,u,f,h]}),e[11]=a,e[12]=i,e[13]=c,e[14]=o,e[15]=u,e[16]=f,e[17]=h,e[18]=x):x=e[18],x}const tg=new Set(["ArrowDown","ArrowUp","ArrowRight"]);function sg(t){const e=R.c(50),{filters:s,items:n,index:r,fields:a,onChange:i,onClose:c}=t,o=X(),[d,u]=q.useState(""),[f,h]=q.useState(""),[x,p]=q.useState(!1);let g;e[0]!==s||e[1]!==i||e[2]!==c?(g=(L,M)=>{i(M.apply(s)),L.multi||c()},e[0]=s,e[1]=i,e[2]=c,e[3]=g):g=e[3];const k=g;let y;e[4]!==s||e[5]!==r||e[6]!==n?(y=L=>n.filter(M=>vl(M,L.apply(s),r)).length,e[4]=s,e[5]=r,e[6]=n,e[7]=y):y=e[7];const b=y;let m,j,v,w,S,N,T,C,D;if(e[8]!==f||e[9]!==x||e[10]!==b||e[11]!==a||e[12]!==d||e[13]!==k||e[14]!==o){const L=a.filter(ng);j=ns,N=f,T=h,e[24]===Symbol.for("react.memo_cache_sentinel")?(C=z=>{tg.has(z.key)&&p(!0)},e[24]=C):C=e[24];let M;e[25]!==o?(M=o("taskBoard.viewControls.addFilter"),e[25]=o,e[26]=M):M=e[26];let B;e[27]!==o?(B=o("taskBoard.viewControls.addFilter"),e[27]=o,e[28]=B):B=e[28],e[29]!==d||e[30]!==M||e[31]!==B?(D=l.jsx(es,{size:"sm",value:d,onValueChange:u,placeholder:M,"aria-label":B,className:"h-9"}),e[29]=d,e[30]=M,e[31]=B,e[32]=D):D=e[32],m=ss,e[33]===Symbol.for("react.memo_cache_sentinel")?(v=()=>p(!0),e[33]=v):v=e[33];let A;e[34]!==o?(A=o("taskBoard.viewControls.noMatches"),e[34]=o,e[35]=A):A=e[35],e[36]!==A?(w=l.jsx(ts,{children:A}),e[36]=A,e[37]=w):w=e[37],S=d.trim()===""?l.jsx(Xe,{children:L.map(z=>l.jsx(Ym,{field:z,open:x&&f===z.label,countFor:b,onSelect:K=>k(z,K)},z.id))}):l.jsx(Xe,{children:L.flatMap(z=>z.options.map(K=>l.jsx(eg,{field:z,option:K,count:b(K),onSelect:()=>k(z,K)},`${z.id}:${K.id}`)))}),e[8]=f,e[9]=x,e[10]=b,e[11]=a,e[12]=d,e[13]=k,e[14]=o,e[15]=m,e[16]=j,e[17]=v,e[18]=w,e[19]=S,e[20]=N,e[21]=T,e[22]=C,e[23]=D}else m=e[15],j=e[16],v=e[17],w=e[18],S=e[19],N=e[20],T=e[21],C=e[22],D=e[23];let E;e[38]!==m||e[39]!==v||e[40]!==w||e[41]!==S?(E=l.jsxs(m,{onPointerMove:v,children:[w,S]}),e[38]=m,e[39]=v,e[40]=w,e[41]=S,e[42]=E):E=e[42];let $;return e[43]!==j||e[44]!==E||e[45]!==N||e[46]!==T||e[47]!==C||e[48]!==D?($=l.jsxs(j,{value:N,onValueChange:T,onKeyDown:C,children:[D,E]}),e[43]=j,e[44]=E,e[45]=N,e[46]=T,e[47]=C,e[48]=D,e[49]=$):$=e[49],$}function ng(t){return t.options.length>0}function yc(t){const e=R.c(14);let s,n;e[0]!==t?({trigger:n,...s}=t,e[0]=t,e[1]=s,e[2]=n):(s=e[1],n=e[2]);const[r,a]=q.useState(!1);let i;e[3]!==n?(i=l.jsx(gt,{asChild:!0,children:n}),e[3]=n,e[4]=i):i=e[4];let c;e[5]!==s||e[6]!==r?(c=r&&l.jsx(sg,{...s,onClose:()=>a(!1)}),e[5]=s,e[6]=r,e[7]=c):c=e[7];let o;e[8]!==c?(o=l.jsx(kt,{align:"end",className:"w-72 p-0",children:c}),e[8]=c,e[9]=o):o=e[9];let d;return e[10]!==r||e[11]!==i||e[12]!==o?(d=l.jsxs(bt,{open:r,onOpenChange:a,children:[i,o]}),e[10]=r,e[11]=i,e[12]=o,e[13]=d):d=e[13],d}function rg(t){const e=R.c(20),{filters:s,items:n,members:r,tags:a,index:i,onChange:c}=t,o=X();let d;e[0]!==i||e[1]!==r||e[2]!==a?(d={members:r,tags:a,index:i},e[0]=i,e[1]=r,e[2]=a,e[3]=d):d=e[3];const u=bc(d);let f;e[4]!==s||e[5]!==i?(f=gc(s,i),e[4]=s,e[5]=i,e[6]=f):f=e[6];const h=f.length>0;let x;e[7]!==o?(x=o("taskBoard.viewControls.filterLabel"),e[7]=o,e[8]=x):x=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=l.jsx(bl,{}),e[9]=p):p=e[9];let g;e[10]!==h||e[11]!==x?(g=l.jsx(Gt,{label:x,tooltipSide:"bottom",variant:"secondary","aria-pressed":h,children:p}),e[10]=h,e[11]=x,e[12]=g):g=e[12];let k;return e[13]!==u||e[14]!==s||e[15]!==i||e[16]!==n||e[17]!==c||e[18]!==g?(k=l.jsx(yc,{filters:s,items:n,index:i,fields:u,onChange:c,trigger:g}),e[13]=u,e[14]=s,e[15]=i,e[16]=n,e[17]=c,e[18]=g,e[19]=k):k=e[19],k}function ag(t){const e=R.c(29),{field:s,filters:n,items:r,index:a,onChange:i,onClose:c}=t;let o;if(e[0]!==s.label||e[1]!==s.multi||e[2]!==s.options||e[3]!==n||e[4]!==a||e[5]!==r||e[6]!==i||e[7]!==c){let d;e[9]!==n?(d=j=>j.isSelected(n),e[9]=n,e[10]=d):d=e[10];const u=s.options.filter(d);let f;e[11]!==n?(f=j=>!j.isSelected(n),e[11]=n,e[12]=f):f=e[12];const h=s.options.filter(f);let x;e[13]!==s.multi||e[14]!==n||e[15]!==i||e[16]!==c?(x=j=>{i(j.apply(n)),s.multi||c()},e[13]=s.multi,e[14]=n,e[15]=i,e[16]=c,e[17]=x):x=e[17];const p=x;let g;e[18]!==n||e[19]!==a||e[20]!==r||e[21]!==p?(g=(j,v)=>l.jsxs("button",{type:"button",className:F(lo({highlight:"hover"})),onClick:()=>p(j),children:[l.jsx(Sr,{children:j.glyph}),l.jsx("span",{className:"truncate",children:j.label}),v?l.jsx(Ql,{count:r.filter(w=>vl(w,j.apply(n),a)).length}):l.jsx(Rt,{size:14,className:"ml-auto shrink-0"})]},j.id),e[18]=n,e[19]=a,e[20]=r,e[21]=p,e[22]=g):g=e[22];const k=g;let y;e[23]!==s.label?(y=l.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:s.label}),e[23]=s.label,e[24]=y):y=e[24];let b;e[25]!==k?(b=j=>k(j,!1),e[25]=k,e[26]=b):b=e[26];let m;e[27]!==k?(m=j=>k(j,!0),e[27]=k,e[28]=m):m=e[28],o=l.jsxs("div",{className:"flex max-h-72 flex-col overflow-y-auto p-1",children:[y,u.map(b),u.length>0&&h.length>0&&l.jsx(dl,{className:"my-1"}),h.map(m)]}),e[0]=s.label,e[1]=s.multi,e[2]=s.options,e[3]=n,e[4]=a,e[5]=r,e[6]=i,e[7]=c,e[8]=o}else o=e[8];return o}function lg(t){const e=R.c(22),{field:s,filters:n,items:r,index:a,onChange:i}=t,[c,o]=q.useState(!1);let d;e[0]!==s||e[1]!==n?(d=s.valueGlyph(n),e[0]=s,e[1]=n,e[2]=d):d=e[2];let u;e[3]!==s||e[4]!==n?(u=s.valueLabel(n),e[3]=s,e[4]=n,e[5]=u):u=e[5];let f;e[6]!==d||e[7]!==u?(f=l.jsx(gt,{asChild:!0,children:l.jsxs("button",{type:"button",className:"flex h-full max-w-[12rem] items-center gap-1.5 truncate px-2.5 text-foreground hover:bg-accent",children:[d,u]})}),e[6]=d,e[7]=u,e[8]=f):f=e[8];let h;e[9]!==s||e[10]!==n||e[11]!==a||e[12]!==r||e[13]!==i||e[14]!==c?(h=c&&l.jsx(ag,{field:s,filters:n,items:r,index:a,onChange:i,onClose:()=>o(!1)}),e[9]=s,e[10]=n,e[11]=a,e[12]=r,e[13]=i,e[14]=c,e[15]=h):h=e[15];let x;e[16]!==h?(x=l.jsx(kt,{align:"start",className:"w-64 p-0",children:h}),e[16]=h,e[17]=x):x=e[17];let p;return e[18]!==c||e[19]!==f||e[20]!==x?(p=l.jsxs(bt,{open:c,onOpenChange:o,children:[f,x]}),e[18]=c,e[19]=f,e[20]=x,e[21]=p):p=e[21],p}function ig(t){const e=R.c(38),{filters:s,items:n,members:r,tags:a,index:i,onChange:c}=t,o=X();let d;e[0]!==i||e[1]!==r||e[2]!==a?(d={members:r,tags:a,index:i},e[0]=i,e[1]=r,e[2]=a,e[3]=d):d=e[3];const u=bc(d);let f,h,x;if(e[4]!==u||e[5]!==s||e[6]!==i||e[7]!==n||e[8]!==c||e[9]!==o){x=Symbol.for("react.early_return_sentinel");e:{const w=gc(s,i);if(w.length===0){x=null;break e}f="mx-3 flex h-11 shrink-0 items-center gap-2 overflow-x-auto rounded-xl border border-border px-2 no-scrollbar",h=w.map(S=>{const N=u.find(T=>T.id===S);return N?l.jsxs(xf,{variant:"outline",size:"segmented",children:[l.jsxs("span",{className:"flex h-full items-center gap-1.5 px-2.5 text-foreground",children:[N.icon,N.label]}),l.jsx(dl,{orientation:"vertical"}),l.jsx("span",{className:"px-2 text-muted-foreground",children:N.multi?o("taskBoard.viewControls.isAnyOf"):o("taskBoard.viewControls.is")}),l.jsx(dl,{orientation:"vertical"}),l.jsx(lg,{field:N,filters:s,items:n,index:i,onChange:c}),l.jsx(Gt,{label:o("taskBoard.viewControls.removeFilter",{field:N.label}),size:"icon-sm",onClick:()=>c(Lm(s,S)),children:l.jsx(Yt,{})})]},S):null})}e[4]=u,e[5]=s,e[6]=i,e[7]=n,e[8]=c,e[9]=o,e[10]=f,e[11]=h,e[12]=x}else f=e[10],h=e[11],x=e[12];if(x!==Symbol.for("react.early_return_sentinel"))return x;let p;e[13]!==o?(p=o("taskBoard.viewControls.addAnotherFilter"),e[13]=o,e[14]=p):p=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(Qt,{}),e[15]=g):g=e[15];let k;e[16]!==p?(k=l.jsx(Gt,{label:p,children:g}),e[16]=p,e[17]=k):k=e[17];let y;e[18]!==u||e[19]!==s||e[20]!==i||e[21]!==n||e[22]!==c||e[23]!==k?(y=l.jsx(yc,{filters:s,items:n,index:i,fields:u,onChange:c,trigger:k}),e[18]=u,e[19]=s,e[20]=i,e[21]=n,e[22]=c,e[23]=k,e[24]=y):y=e[24];let b;e[25]!==s.search||e[26]!==c?(b=()=>c({...ka,search:s.search}),e[25]=s.search,e[26]=c,e[27]=b):b=e[27];let m;e[28]!==o?(m=o("taskBoard.viewControls.clear"),e[28]=o,e[29]=m):m=e[29];let j;e[30]!==m||e[31]!==b?(j=l.jsx("div",{className:"ml-auto",children:l.jsx(pe,{variant:"ghost",size:"sm",onClick:b,children:m})}),e[30]=m,e[31]=b,e[32]=j):j=e[32];let v;return e[33]!==j||e[34]!==f||e[35]!==h||e[36]!==y?(v=l.jsxs("div",{className:f,children:[h,y,j]}),e[33]=j,e[34]=f,e[35]=h,e[36]=y,e[37]=v):v=e[37],v}function og(t){const e=R.c(6),{onClick:s}=t,n=X();let r;e[0]!==n?(r=n("taskBoard.taskFilters.boardSettingsLabel"),e[0]=n,e[1]=r):r=e[1];const a=r;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(oo,{}),e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==s?(c=l.jsx(Gt,{label:a,tooltipSide:"bottom",variant:"secondary",onClick:s,children:i}),e[3]=a,e[4]=s,e[5]=c):c=e[5],c}const cg=["overdue","today","week","none"],ar=t=>typeof t=="string"&&t!==""?t:null;function dg(t){const e=ar(t.priority),s=ar(t.due),n=ar(t.tags);return{layout:t.view==="list"?"list":"board",filters:{search:ar(t.q)??"",assignee:ar(t.assignee),priority:hr.includes(e)?e:null,due:cg.includes(s)?s:null,tags:n?n.split(",").filter(Boolean):[],project:ar(t.repo)}}}function ug(t,e){return{view:e==="list"?"list":void 0,q:t.search===""?void 0:t.search,assignee:t.assignee??void 0,priority:t.priority??void 0,due:t.due??void 0,tags:t.tags.length>0?t.tags.join(","):void 0,repo:t.project??void 0}}function fg(t,e){const s=new Set(e.map(n=>n.id));return new Set([...t].filter(n=>s.has(n)))}function hg(){const t=R.c(16);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const s=Vi(e),n=kl();let r;t[1]!==s?(r=dg(s),t[1]=s,t[2]=r):r=t[2];const{filters:a,layout:i}=r;let c;t[3]!==n?(c=(h,x)=>n({to:".",search:p=>({...p,...ug(h,x)}),replace:!0}),t[3]=n,t[4]=c):c=t[4];const o=c;let d;t[5]!==i||t[6]!==o?(d=h=>o(h,i),t[5]=i,t[6]=o,t[7]=d):d=t[7];let u;t[8]!==a||t[9]!==o?(u=h=>o(a,h),t[8]=a,t[9]=o,t[10]=u):u=t[10];let f;return t[11]!==a||t[12]!==i||t[13]!==d||t[14]!==u?(f={filters:a,layout:i,setFilters:d,setLayout:u},t[11]=a,t[12]=i,t[13]=d,t[14]=u,t[15]=f):f=t[15],f}Ic(()=>import("./route--7-PGBU_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174])).catch(()=>{});const pg=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function jc(t){const e=new Date(t),s=e.getTime()<Date.now();return{label:pg.format(e),overdue:s}}const is="inline-flex items-center gap-1 rounded-full border-[length:var(--border-hairline)] border-border px-2 py-0.5 text-xs font-medium text-muted-foreground",_r=12,Ar="size-3.5",ll=2;function mg(){const t=R.c(9),e=X();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=F(is,"border-warning/50 text-warning"),t[0]=s):s=t[0];let n;t[1]!==e?(n=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=n):n=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx(xa,{size:_r}),t[3]=r):r=t[3];let a;t[4]!==e?(a=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=a):a=t[5];let i;return t[6]!==n||t[7]!==a?(i=l.jsxs("span",{className:s,title:n,children:[r,a]}),t[6]=n,t[7]=a,t[8]=i):i=t[8],i}function gg(){const t=R.c(9),e=X();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=F(is,"border-warning/50 text-warning"),t[0]=s):s=t[0];let n;t[1]!==e?(n=e("taskBoard.taskBoard.handedToHumanBadgeTitle"),t[1]=e,t[2]=n):n=t[2];let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=l.jsx(xa,{size:_r}),t[3]=r):r=t[3];let a;t[4]!==e?(a=e("taskBoard.taskBoard.needsYou"),t[4]=e,t[5]=a):a=t[5];let i;return t[6]!==n||t[7]!==a?(i=l.jsxs("span",{className:s,title:n,children:[r,a]}),t[6]=n,t[7]=a,t[8]=i):i=t[8],i}function xg(t){const e=R.c(20),{priority:s,onChange:n}=t,r=X(),a=ze[s];let i;e[0]!==a.labelKey||e[1]!==r?(i=r(a.labelKey),e[0]=a.labelKey,e[1]=r,e[2]=i):i=e[2];const c=i,o=a.icon;let d;e[3]!==a.iconClassName?(d=F(Ar,"shrink-0",a.iconClassName),e[3]=a.iconClassName,e[4]=d):d=e[4];let u;e[5]!==a.icon||e[6]!==c||e[7]!==d?(u=l.jsx(o,{className:d,"aria-label":c}),e[5]=a.icon,e[6]=c,e[7]=d,e[8]=u):u=e[8];const f=u;if(!n){let p;return e[9]!==f||e[10]!==c?(p=l.jsx(wa,{label:c,children:f}),e[9]=f,e[10]=c,e[11]=p):p=e[11],p}let h;e[12]!==n||e[13]!==s||e[14]!==r?(h=hr.map(p=>{const g=ze[p].icon;return l.jsxs(Ne,{onSelect:()=>n(p),className:F("gap-2",p===s&&"bg-accent"),children:[l.jsx(g,{size:_r,className:F("shrink-0",ze[p].iconClassName)}),r(ze[p].labelKey)]},p)}),e[12]=n,e[13]=s,e[14]=r,e[15]=h):h=e[15];let x;return e[16]!==f||e[17]!==c||e[18]!==h?(x=l.jsx(vc,{label:c,glyph:f,children:h}),e[16]=f,e[17]=c,e[18]=h,e[19]=x):x=e[19],x}function vc(t){const e=R.c(8),{label:s,glyph:n,children:r}=t;let a;e[0]!==n||e[1]!==s?(a=l.jsx(qe,{asChild:!0,children:l.jsx(pe,{variant:"ghost",size:"icon-sm",title:s,"aria-label":s,onClick:yg,onPointerDown:bg,className:"-m-1.5",children:n})}),e[0]=n,e[1]=s,e[2]=a):a=e[2];let i;e[3]!==r?(i=l.jsx(Ke,{align:"start",className:"w-36",onClick:kg,children:r}),e[3]=r,e[4]=i):i=e[4];let c;return e[5]!==a||e[6]!==i?(c=l.jsxs(Ue,{children:[a,i]}),e[5]=a,e[6]=i,e[7]=c):c=e[7],c}function kg(t){return t.stopPropagation()}function bg(t){return t.stopPropagation()}function yg(t){return t.stopPropagation()}function wa(t){const e=R.c(7),{label:s,children:n}=t;let r;e[0]!==n?(r=l.jsx(no,{asChild:!0,children:l.jsx("span",{className:"flex shrink-0 items-center",children:n})}),e[0]=n,e[1]=r):r=e[1];let a;e[2]!==s?(a=l.jsx(ro,{side:"top",children:s}),e[2]=s,e[3]=a):a=e[3];let i;return e[4]!==r||e[5]!==a?(i=l.jsxs(ao,{children:[r,a]}),e[4]=r,e[5]=a,e[6]=i):i=e[6],i}function jg(t){const e=R.c(20),{type:s,onChange:n}=t,r=X(),a=$t[s];let i;e[0]!==a.labelKey||e[1]!==r?(i=r(a.labelKey),e[0]=a.labelKey,e[1]=r,e[2]=i):i=e[2];const c=i,o=a.icon;let d;e[3]!==a.iconClassName?(d=F(Ar,"shrink-0",a.iconClassName),e[3]=a.iconClassName,e[4]=d):d=e[4];let u;e[5]!==a.icon||e[6]!==c||e[7]!==d?(u=l.jsx(o,{className:d,"aria-label":c}),e[5]=a.icon,e[6]=c,e[7]=d,e[8]=u):u=e[8];const f=u;if(!n){let p;return e[9]!==f||e[10]!==c?(p=l.jsx(wa,{label:c,children:f}),e[9]=f,e[10]=c,e[11]=p):p=e[11],p}let h;e[12]!==n||e[13]!==r||e[14]!==s?(h=go.map(p=>{const g=$t[p].icon;return l.jsxs(Ne,{onSelect:()=>n(p),className:F("gap-2",p===s&&"bg-accent"),children:[l.jsx(g,{size:_r,className:F("shrink-0",$t[p].iconClassName)}),r($t[p].labelKey)]},p)}),e[12]=n,e[13]=r,e[14]=s,e[15]=h):h=e[15];let x;return e[16]!==f||e[17]!==c||e[18]!==h?(x=l.jsx(vc,{label:c,glyph:f,children:h}),e[16]=f,e[17]=c,e[18]=h,e[19]=x):x=e[19],x}function vg(t){const e=R.c(46),{iso:s,onChange:n}=t;let r;e[0]!==s?(r=Sd(s),e[0]=s,e[1]=r):r=e[1];const a=r;let i;e[2]!==s?(i=jc(s),e[2]=s,e[3]=i):i=e[3];const{label:c}=i;let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsx(xt,{className:Ar}),e[4]=o):o=e[4];let d;e[5]!==c?(d=l.jsxs(l.Fragment,{children:[o,c]}),e[5]=c,e[6]=d):d=e[6];const u=d;let f,h,x,p,g,k,y,b,m,j;if(e[7]!==u||e[8]!==n||e[9]!==a){g=Symbol.for("react.early_return_sentinel");e:{const E=F("shrink-0 items-center gap-1.5 text-xs font-medium tabular-nums text-muted-foreground/70",a==="overdue"&&"text-destructive",a==="soon"&&"text-warning");if(!n){g=l.jsx("span",{className:F("flex",E),children:u});break e}x=Ue,h=qe,p=!0,f=pe,k="ghost",y="sm",b=Ng,m=Sg,j=F("-mx-1.5 h-auto px-1.5 py-1 font-medium",E)}e[7]=u,e[8]=n,e[9]=a,e[10]=f,e[11]=h,e[12]=x,e[13]=p,e[14]=g,e[15]=k,e[16]=y,e[17]=b,e[18]=m,e[19]=j}else f=e[10],h=e[11],x=e[12],p=e[13],g=e[14],k=e[15],y=e[16],b=e[17],m=e[18],j=e[19];if(g!==Symbol.for("react.early_return_sentinel"))return g;let v;e[20]!==f||e[21]!==u||e[22]!==k||e[23]!==y||e[24]!==b||e[25]!==m||e[26]!==j?(v=l.jsx(f,{variant:k,size:y,onClick:b,onPointerDown:m,className:j,children:u}),e[20]=f,e[21]=u,e[22]=k,e[23]=y,e[24]=b,e[25]=m,e[26]=j,e[27]=v):v=e[27];let w;e[28]!==h||e[29]!==p||e[30]!==v?(w=l.jsx(h,{asChild:p,children:v}),e[28]=h,e[29]=p,e[30]=v,e[31]=w):w=e[31];let S;e[32]!==s?(S=new Date(s),e[32]=s,e[33]=S):S=e[33];let N;e[34]!==s?(N=new Date(s),e[34]=s,e[35]=N):N=e[35];let T;e[36]!==n?(T=E=>E&&n(Vl(E)),e[36]=n,e[37]=T):T=e[37];let C;e[38]!==S||e[39]!==N||e[40]!==T?(C=l.jsx(Ke,{align:"start",className:"w-auto p-0",onClick:wg,children:l.jsx(Bl,{mode:"single",selected:S,defaultMonth:N,onSelect:T,initialFocus:!0})}),e[38]=S,e[39]=N,e[40]=T,e[41]=C):C=e[41];let D;return e[42]!==x||e[43]!==w||e[44]!==C?(D=l.jsxs(x,{children:[w,C]}),e[42]=x,e[43]=w,e[44]=C,e[45]=D):D=e[45],D}function wg(t){return t.stopPropagation()}function Sg(t){return t.stopPropagation()}function Ng(t){return t.stopPropagation()}function Cg(t){const e=R.c(8),{action:s}=t;let n;e[0]!==s?(n=i=>{i.stopPropagation(),s.onClick()},e[0]=s,e[1]=n):n=e[1];let r;e[2]!==s.icon?(r=l.jsx(s.icon,{className:Ar}),e[2]=s.icon,e[3]=r):r=e[3];let a;return e[4]!==s.label||e[5]!==n||e[6]!==r?(a=l.jsxs(pe,{variant:"outline",size:"sm",onClick:n,onPointerDown:Bg,ref:Tg,className:"absolute -top-0.5 right-0 h-6 gap-1.5 classic:rounded-full px-2 text-xs font-medium shadow-sm pointer-events-none opacity-0 transition-opacity focus-visible:pointer-events-auto focus-visible:opacity-100 group-hover:pointer-events-auto group-hover:opacity-100",children:[r,s.label]}),e[4]=s.label,e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function Tg(t){return t?.parentElement?.style.setProperty("--fade-text-end",`${t.offsetWidth}px`)}function Bg(t){return t.stopPropagation()}function _g(t){const e=R.c(36),{item:s,checks:n,assignee:r,assignedBy:a,members:i,onAssign:c,onPriorityChange:o,onTypeChange:d,onDueDateChange:u}=t,{org:f}=Ge();let h;e[0]!==s.keySeq||e[1]!==f.slug?(h=fo(f.slug,s.keySeq),e[0]=s.keySeq,e[1]=f.slug,e[2]=h):h=e[2];const x=h;let p;e[3]!==s.type||e[4]!==d?(p=l.jsx(jg,{type:s.type,onChange:d}),e[3]=s.type,e[4]=d,e[5]=p):p=e[5];let g;e[6]!==x?(g=l.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/70",children:x}),e[6]=x,e[7]=g):g=e[7];let k;e[8]!==p||e[9]!==g?(k=l.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[p,g]}),e[8]=p,e[9]=g,e[10]=k):k=e[10];let y;e[11]!==s.dueDate||e[12]!==u?(y=s.dueDate&&l.jsx(vg,{iso:s.dueDate,onChange:u}),e[11]=s.dueDate,e[12]=u,e[13]=y):y=e[13];let b;e[14]!==k||e[15]!==y?(b=l.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[k,y]}),e[14]=k,e[15]=y,e[16]=b):b=e[16];let m;e[17]!==s.priority||e[18]!==o?(m=(s.priority!=="none"||o)&&l.jsx(xg,{priority:s.priority,onChange:o}),e[17]=s.priority,e[18]=o,e[19]=m):m=e[19];let j;e[20]!==n||e[21]!==s.reviewVerdicts?(j=n&&l.jsx($g,{summary:n.summary,verdicts:s.reviewVerdicts,enabled:n.enabled}),e[20]=n,e[21]=s.reviewVerdicts,e[22]=j):j=e[22];let v;e[23]!==a||e[24]!==r||e[25]!==s||e[26]!==i||e[27]!==c?(v=l.jsx(Sc,{item:s,assignee:r,assignedBy:a,members:i,onAssign:c,showDelegation:!1}),e[23]=a,e[24]=r,e[25]=s,e[26]=i,e[27]=c,e[28]=v):v=e[28];let w;e[29]!==m||e[30]!==j||e[31]!==v?(w=l.jsxs("span",{className:"flex shrink-0 items-center gap-2",children:[m,j,v]}),e[29]=m,e[30]=j,e[31]=v,e[32]=w):w=e[32];let S;return e[33]!==w||e[34]!==b?(S=l.jsxs("div",{className:"mt-auto flex shrink-0 items-center justify-between gap-2 pt-1",children:[b,w]}),e[33]=w,e[34]=b,e[35]=S):S=e[35],S}function Ag(t){const e=R.c(10),{priority:s}=t,n=X(),r=ze[s];let a;e[0]!==r.labelKey||e[1]!==n?(a=n(r.labelKey),e[0]=r.labelKey,e[1]=n,e[2]=a):a=e[2];const i=a;let c;e[3]!==r.dotClassName?(c=F("size-2 shrink-0 rounded-full",r.dotClassName),e[3]=r.dotClassName,e[4]=c):c=e[4];let o;e[5]!==c?(o=l.jsx("span",{className:c}),e[5]=c,e[6]=o):o=e[6];let d;return e[7]!==i||e[8]!==o?(d=l.jsxs("span",{className:is,title:i,children:[o,i]}),e[7]=i,e[8]=o,e[9]=d):d=e[9],d}function Dg(t){const e=R.c(7),{iso:s}=t;let n,r;if(e[0]!==s){const{label:c,overdue:o}=jc(s);n=c,r=F(is,o&&"border-destructive/50 text-destructive"),e[0]=s,e[1]=n,e[2]=r}else n=e[1],r=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=l.jsx(xt,{size:_r}),e[3]=a):a=e[3];let i;return e[4]!==n||e[5]!==r?(i=l.jsxs("span",{className:r,children:[a,n]}),e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function wc(t){const e=R.c(8),{tag:s}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=F(is,"text-foreground"),e[0]=n):n=e[0];let r;e[1]!==s.color?(r=zt(s.color),e[1]=s.color,e[2]=r):r=e[2];let a;e[3]!==r?(a={borderColor:r},e[3]=r,e[4]=a):a=e[4];let i;return e[5]!==a||e[6]!==s.name?(i=l.jsx("span",{className:n,style:a,children:s.name}),e[5]=a,e[6]=s.name,e[7]=i):i=e[7],i}function $g(t){const e=R.c(26),{summary:s,verdicts:n,enabled:r}=t,a=X();let i;if(e[0]!==r||e[1]!==a||e[2]!==n){let m;e[4]!==a||e[5]!==n?(m=j=>{const v=n.find(N=>N.reviewer===j),w=a("taskBoard.taskDialog.reviewerLabel"),S=v?v.verdict==="changes_requested"?a("taskBoard.taskBoard.checksChangesRequested"):a(v.verified?"taskBoard.taskBoard.checksApproved":"taskBoard.taskBoard.checksUnverified"):a("taskBoard.taskBoard.checksPending");return l.jsxs("span",{className:"flex items-center gap-1.5 whitespace-nowrap",children:[l.jsx(pr,{size:12}),w," — ",S]},j)},e[4]=a,e[5]=n,e[6]=m):m=e[6],i=r.map(m),e[0]=r,e[1]=a,e[2]=n,e[3]=i}else i=e[3];let c;e[7]!==i?(c=l.jsx("span",{className:"flex flex-col gap-0.5",children:i}),e[7]=i,e[8]=c):c=e[8];const o=c,d=s.tone==="ok"&&"text-success",u=s.tone==="pending"&&"text-warning",f=s.tone==="danger"&&"text-destructive";let h;e[9]!==d||e[10]!==u||e[11]!==f?(h=F("flex shrink-0 items-center gap-1.5 text-xs font-medium tabular-nums",d,u,f),e[9]=d,e[10]=u,e[11]=f,e[12]=h):h=e[12];const x=String(s.passed),p=String(s.total);let g;e[13]!==a||e[14]!==x||e[15]!==p?(g=a("taskBoard.taskBoard.checksLabel",{passed:x,total:p}),e[13]=a,e[14]=x,e[15]=p,e[16]=g):g=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx(fr,{className:Ar}),e[17]=k):k=e[17];let y;e[18]!==s.passed||e[19]!==s.total||e[20]!==h||e[21]!==g?(y=l.jsxs("span",{className:h,"aria-label":g,children:[k,s.passed,"/",s.total]}),e[18]=s.passed,e[19]=s.total,e[20]=h,e[21]=g,e[22]=y):y=e[22];let b;return e[23]!==o||e[24]!==y?(b=l.jsx(wa,{label:o,children:y}),e[23]=o,e[24]=y,e[25]=b):b=e[25],b}function Rg(t){const e=R.c(14),{state:s}=t,n=X(),r=s==="running",a=r?"taskBoard.taskBoard.agentRunning":"taskBoard.taskBoard.agentFailed";let i;e[0]!==n||e[1]!==a?(i=n(a),e[0]=n,e[1]=a,e[2]=i):i=e[2];const c=i;let o;e[3]!==c||e[4]!==r?(o=r?l.jsx(dt,{className:"size-3.5 text-primary",label:c}):l.jsx(Pc,{size:14,className:"shrink-0 text-destructive","aria-label":c}),e[3]=c,e[4]=r,e[5]=o):o=e[5];let d;e[6]!==c||e[7]!==o?(d=l.jsx(wa,{label:c,children:o}),e[6]=c,e[7]=o,e[8]=d):d=e[8];let u;e[9]!==c?(u=l.jsx("span",{className:"sr-only",children:c}),e[9]=c,e[10]=u):u=e[10];let f;return e[11]!==d||e[12]!==u?(f=l.jsxs("span",{className:"mt-px flex shrink-0 items-center",children:[d,u]}),e[11]=d,e[12]=u,e[13]=f):f=e[13],f}function zg(t){const e=R.c(3),s=ic(Tl());if(t.reviewVerdicts.length===0&&t.status!=="in_review"&&!t.reviewCycleStartedAt)return null;const n=bp(t.reviewVerdicts,s);let r;return e[0]!==s||e[1]!==n?(r=n?{summary:n,enabled:s}:null,e[0]=s,e[1]=n,e[2]=r):r=e[2],r}function Sc(t){const e=R.c(35),{item:s,assignee:n,assignedBy:r,members:a,onAssign:i,showDelegation:c}=t,o=c===void 0?!0:c,d=X(),[u,f]=q.useState(!1);if(s.assigneeId===ye){let j;e[0]!==r||e[1]!==d?(j=r?.user?.name?d("taskBoard.taskBoard.assignedToSuperAgentBy",{name:r.user.name}):d("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=r,e[1]=d,e[2]=j):j=e[2];const v=j;if(!o){let T;return e[3]!==r||e[4]!==v?(T=r?l.jsx(Le,{url:r.user?.image??void 0,fallback:Me(r.user?.name),shape:"circle",size:"xs",title:v}):null,e[3]=r,e[4]=v,e[5]=T):T=e[5],T}let w;e[6]!==r?(w=r&&l.jsx(Le,{url:r.user?.image??void 0,fallback:Me(r.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[6]=r,e[7]=w):w=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=l.jsx(We,{size:20,className:"ring-2 ring-background"}),e[8]=S):S=e[8];let N;return e[9]!==w||e[10]!==v?(N=l.jsxs("span",{className:"inline-flex items-center",title:v,children:[w,S]}),e[9]=w,e[10]=v,e[11]=N):N=e[11],N}if(n){const j=n.user?.image??void 0,v=n.user?.name;let w;e[12]!==v?(w=Me(v),e[12]=v,e[13]=w):w=e[13];let S;return e[14]!==j||e[15]!==w?(S=l.jsx(Le,{url:j,fallback:w,shape:"circle",size:"xs"}),e[14]=j,e[15]=w,e[16]=S):S=e[16],S}if(!i||!a?.length)return null;let h;e[17]!==d?(h=d("taskBoard.taskBoard.assignButton"),e[17]=d,e[18]=h):h=e[18];let x;e[19]!==d?(x=d("taskBoard.taskBoard.assignButton"),e[19]=d,e[20]=x):x=e[20];let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=j=>{j.stopPropagation(),f(!0)},e[21]=p):p=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g=l.jsx(to,{size:13}),e[22]=g):g=e[22];let k;e[23]!==h||e[24]!==x?(k=l.jsx(gt,{asChild:!0,children:l.jsx("button",{type:"button",title:h,"aria-label":x,onClick:p,className:"flex size-6 shrink-0 items-center justify-center rounded-full border border-dashed border-muted-foreground/40 text-muted-foreground/40 transition-colors hover:border-muted-foreground hover:text-muted-foreground",children:g})}),e[23]=h,e[24]=x,e[25]=k):k=e[25];let y;e[26]!==i?(y=j=>{i(j),f(!1)},e[26]=i,e[27]=y):y=e[27];let b;e[28]!==a||e[29]!==y?(b=l.jsx(kt,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Eg,children:l.jsx(Wl,{members:a,onSelect:y})}),e[28]=a,e[29]=y,e[30]=b):b=e[30];let m;return e[31]!==u||e[32]!==k||e[33]!==b?(m=l.jsxs(bt,{open:u,onOpenChange:f,children:[k,b]}),e[31]=u,e[32]=k,e[33]=b,e[34]=m):m=e[34],m}function Eg(t){return t.stopPropagation()}function C2(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(qf,{children:l.jsx(Ig,{})}),t[0]=e):e=t[0],e}function Ig(){const t=R.c(101),e=ma(),s=X(),{items:n,isLoading:r}=hd(),{data:a}=Nl();let i;t[0]!==a?(i=a===void 0?[]:a,t[0]=a,t[1]=i):i=t[1];const c=i,o=pd(),d=Do();let u,f;if(t[2]!==d.data){const _=(d.data??[]).filter(Yg);u=_.length>0,f=_.map(Qg),t[2]=d.data,t[3]=u,t[4]=f}else u=t[3],f=t[4];const h=f,[x,p]=q.useState(!1);let g;t[5]!==u?(g=_=>_===ye&&!u?(p(!0),!0):!1,t[5]=u,t[6]=g):g=t[6];const k=g,[y,b]=q.useState(null),m=_=>{const se=mf(_);if(se){b(se),Zl("task_limit_banner_shown",{organization_id:ae.id,kind:se});return}Fe.error(_.message||s("taskBoard.taskBoard.actionError"))},j=_=>{!_||_.dataset.tracked==="true"||(_.dataset.tracked="true",Zl("task_board_opened",{organization_id:ae.id}))};let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=[],t[7]=v):v=t[7];const[w,S]=q.useState(v),N=()=>{if(w.length!==0){if(k(ye)){S([]);return}for(const _ of w)o.rerun.mutate({id:_.id},{onError:se=>m(se)});S([]),Y()}},{data:T}=Sl();let C,D;t[8]!==T?.data?.members?(C=T?.data?.members??[],D=new Map(C.map(Vg)),t[8]=T?.data?.members,t[9]=C,t[10]=D):(C=t[9],D=t[10]);const E=D,{filters:$,setFilters:L,layout:M,setLayout:B}=hg(),A=oc(n,h);let z;t[11]!==A?(z=uo(A),t[11]=A,t[12]=z):z=t[12];const K=z;let U;t[13]!==$.project||t[14]!==A?(U=$.project?yr($.project,A)?.repo??null:null,t[13]=$.project,t[14]=A,t[15]=U):U=t[15];const Q=U,[ee]=Ji();let O;t[16]===Symbol.for("react.memo_cache_sentinel")?(O=new Set,t[16]=O):O=t[16];const[te,W]=q.useState(O);let Z;t[17]===Symbol.for("react.memo_cache_sentinel")?(Z=_=>W(se=>{const Se=new Set(se);return Se.has(_)?Se.delete(_):Se.add(_),Se}),t[17]=Z):Z=t[17];const J=Z,re=_=>W(se=>{const Se=new Set(se);for(const Ie of Ye)Ie.status===_&&Se.add(Ie.id);return Se}),Y=()=>W(new Set),ne=_=>{L(_),Y()},[ce,ue]=q.useState(!1),[le,I]=q.useState(null),{setTaskId:H}=kf(),{create:fe}=ef(),de=Tt(),{org:be,locator:Ce}=Ge(),ae=be,ge=kl(),ie=()=>{ge({to:"/$org/settings/task-board",params:{org:ae.slug}})};let Te;t[18]===Symbol.for("react.memo_cache_sentinel")?(Te={strict:!1},t[18]=Te):Te=t[18];const{taskKey:G}=pa(Te),V=md(n,G)??null,he=!!G&&!V&&!r,ve=V?Jl(ae.slug,V):null;let ke;t[19]!==ge||t[20]!==G?(ke=()=>{G&&ge({to:".",params:Gg,search:Wg,replace:!0})},t[19]=ge,t[20]=G,t[21]=ke):ke=t[21];const Ae=ke,we=async _=>{const se=crypto.randomUUID(),Se=Mc(ae.id).id,Ie=await de.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:_.id}).then(Ug).catch(Kg),lt=Em(_,Ie),pt={type:"doc",content:[{type:"paragraph",content:[Tu({id:_.id,name:_.title,char:"@",kind:"task",metadata:{title:_.title,description:_.description,context:lt}}),{type:"text",text:" "}]}]};gf(sessionStorage,Ce,se,pt);try{await fe({id:se,virtual_mcp_id:Se}),await o.link.mutateAsync({id:_.id,linkThreadId:se})}catch{}H(se,Se)};let Re;t[22]!==$||t[23]!==A?(Re=_=>vl(_,$,A),t[22]=$,t[23]=A,t[24]=Re):Re=t[24];const Ye=n.filter(Re),Be=fg(te,Ye);let Bt;t[25]!==ee?(Bt=_=>!jd.includes(_.status)||ee.shownTaskBoardLanes.includes(_.status),t[25]=ee,t[26]=Bt):Bt=t[26];const ut=Ye.filter(Bt);let $e;t[27]!==$||t[28]!==A||t[29]!==L?($e=_=>{const se=vd({repo:_},$.project,A);se!==$.project&&L({...$,project:se})},t[27]=$,t[28]=A,t[29]=L,t[30]=$e):$e=t[30];const et=$e;let os;t[31]===Symbol.for("react.memo_cache_sentinel")?(os=()=>{I(null),ue(!0)},t[31]=os):os=t[31];const ft=os;let yt;t[32]===Symbol.for("react.memo_cache_sentinel")?(yt=_=>{I(_),ue(!0)},t[32]=yt):yt=t[32];const Sa=yt,cs=_=>{ge({to:".",params:se=>({...se,taskKey:Jl(ae.slug,_)}),search:qg})};let It;t[33]===Symbol.for("react.memo_cache_sentinel")?(It=()=>{ue(!1),I(null)},t[33]=It):It=t[33];const tt=It;if(r&&n.length===0){let _;return t[34]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx("div",{className:"flex flex-1 items-center justify-center",children:l.jsx(dt,{className:"size-5 text-muted-foreground"})}),t[34]=_):_=t[34],_}if(he){let _;return t[35]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(Yl,{to:".",params:Hg,search:Og,replace:!0}),t[35]=_):_=t[35],_}if(ve&&ve!==G)return l.jsx(Yl,{to:".",params:_=>({..._,taskKey:ve}),search:Fg,replace:!0});const ds=e?l.jsxs(l.Fragment,{children:[!V&&l.jsxs(l.Fragment,{children:[l.jsx(Kt.Title,{children:s("taskBoard.taskBoard.tasksTitle")}),l.jsxs(Kt.Actions,{secondary:n.length>0&&l.jsx(l.Fragment,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Qd,{value:$.search,onChange:_=>ne({...$,search:_}),label:s("taskBoard.taskFilters.searchLabel"),placeholder:s("taskBoard.taskFilters.searchPlaceholder"),clearLabel:s("taskBoard.taskFilters.searchClearLabel")}),l.jsx(rg,{filters:$,items:n,members:C,tags:c,index:A,onChange:ne}),l.jsx(og,{onClick:ie})]})}),children:[l.jsx(hi,{}),l.jsxs(pe,{size:"sm",onClick:ft,children:[l.jsx(Qt,{size:16}),s("taskBoard.taskBoard.newTask")]})]}),l.jsx(Lc.Toolbar.Left.Portal,{children:l.jsxs(Kt.Tabs,{children:[l.jsx(Kt.Tab,{active:M==="board","aria-label":s("taskBoard.taskBoard.layoutViewAriaLabel",{label:s("common.taskBoard.boardView")}),onClick:()=>B("board"),children:s("common.taskBoard.boardView")}),l.jsx(Kt.Tab,{active:M==="list","aria-label":s("taskBoard.taskBoard.layoutViewAriaLabel",{label:s("common.taskBoard.listView")}),onClick:()=>{B("list"),Y()},children:s("common.taskBoard.listView")})]})})]}),l.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 sm:px-8",children:l.jsx(fi,{})}),l.jsx(ig,{filters:$,items:n,members:C,tags:c,index:A,onChange:ne})]}):l.jsx(l.Fragment,{children:l.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[l.jsx("h1",{className:"text-xl font-medium text-foreground",children:s("taskBoard.taskBoard.tasksTitle")}),l.jsx(fi,{}),l.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[n.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"sm:hidden",children:l.jsx(Hf,{filters:$,members:C,tags:c,index:A,onChange:ne,onOpenBoardSettings:ie})}),l.jsx("div",{className:"hidden sm:block",children:l.jsx(Of,{filters:$,members:C,tags:c,index:A,onChange:ne,onOpenBoardSettings:ie})})]}),l.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[l.jsx(hi,{}),l.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[l.jsx(Ui,{active:M==="list",onClick:()=>{B("list"),Y()},icon:so,label:s("common.taskBoard.listView")}),l.jsx(Ui,{active:M==="board",onClick:()=>B("board"),icon:ed,label:s("common.taskBoard.boardView")})]}),l.jsxs(pe,{size:"sm",onClick:ft,children:[l.jsx(Qt,{size:16}),s("taskBoard.taskBoard.newTask")]})]})]})]})}),Lt=n.length===0?l.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:l.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:s("taskBoard.taskBoard.noTasksYet")})}):Ye.length===0?l.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:l.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:[s("taskBoard.taskBoard.noTasksMatch"),l.jsx(pe,{variant:"outline",size:"sm",onClick:()=>ne(ka),children:s("taskBoard.taskBoard.clearFilters")})]})}):M==="board"?l.jsx(Xg,{visible:!V,items:Ye,members:C,memberByUserId:E,selectedIds:Be,onToggleSelect:J,onSelectAllInLane:re,onOpen:cs,onCreate:Sa,onMove:(_,se,Se)=>{const Ie=xo(Se,_.length);_.forEach((lt,pt)=>o.update.mutate({id:lt,status:se,sortOrder:Ie[pt]}))},onAssign:(_,se)=>{k(se)||o.update.mutate({id:_,assigneeId:se},{onError:m})},onPriorityChange:(_,se)=>o.update.mutate({id:_,priority:se}),onTypeChange:(_,se)=>o.update.mutate({id:_,type:se}),onDueDateChange:(_,se)=>o.update.mutate({id:_,dueDate:se}),onAutoFix:_=>{k(ye)||o.update.mutate({id:_.id,assigneeId:ye},{onError:m})},onRerun:_=>S([_])}):l.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:l.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:ut.map(_=>l.jsx(cx,{item:_,assignee:_.assigneeId?E.get(_.assigneeId):void 0,assignedBy:_.assignedBy?E.get(_.assignedBy):void 0,onOpen:()=>cs(_)},_.id))})});let Mt;t[36]!==ds||t[37]!==Lt?(Mt=l.jsxs(l.Fragment,{children:[ds,Lt]}),t[36]=ds,t[37]=Lt,t[38]=Mt):Mt=t[38];const Pt=Mt,us="relative flex min-h-0 flex-1 flex-col",_t=F("flex min-h-0 flex-1 flex-col",V&&"hidden");let ht;t[39]!==Pt||t[40]!==_t?(ht=l.jsx("div",{className:_t,children:Pt}),t[39]=Pt,t[40]=_t,t[41]=ht):ht=t[41];let Ze;t[42]!==o.create||t[43]!==o.remove||t[44]!==o.update||t[45]!==k||t[46]!==Ae||t[47]!==m||t[48]!==V||t[49]!==S||t[50]!==H||t[51]!==we||t[52]!==s||t[53]!==et?(Ze=V&&l.jsx(Jp,{item:V,onClose:()=>Ae(),isSaving:o.update.isPending,onSubmit:_=>{if(k(_.assigneeId)){Ae();return}const{title:se,description:Se,priority:Ie,...lt}=_,pt=Jr(V)?{}:{title:se,description:Se,priority:Ie};o.update.mutate({id:V.id,...lt,...pt},{onError:m})},onDelete:()=>{o.remove.mutate(V.id),Ae()},onClone:()=>{o.create.mutate({title:s("taskBoard.taskDialog.cloneTitle",{title:V.title}),description:V.description,status:V.status,priority:V.priority,repo:V.repo,dueDate:V.dueDate,tagIds:V.tags.map(Pg)}),et(V.repo??null),Fe.success(s("taskBoard.taskDialog.cloneSuccess")),Ae()},onArchive:()=>{o.update.mutate({id:V.id,status:"archived"}),Fe.success(s("taskBoard.taskDialog.archiveSuccess")),Ae()},onNewChat:()=>{we(V)},onAutoFix:()=>{k(ye)||(o.update.mutate({id:V.id,assigneeId:ye},{onError:m}),Ae())},onRerun:()=>{Ae(),S([V])},onOpenPreview:_=>{_.virtualMcpId&&H(_.threadId,_.virtualMcpId,{panel:"site-editor"})}},V.id),t[42]=o.create,t[43]=o.remove,t[44]=o.update,t[45]=k,t[46]=Ae,t[47]=m,t[48]=V,t[49]=S,t[50]=H,t[51]=we,t[52]=s,t[53]=et,t[54]=Ze):Ze=t[54];const Ve=ce?`new-${le??"default"}`:"closed",fs=le??void 0;let st;t[55]!==o.create||t[56]!==k||t[57]!==tt||t[58]!==et?(st=_=>{if(k(_.assigneeId)){tt();return}o.create.mutate(_),et(_.repo??null),tt()},t[55]=o.create,t[56]=k,t[57]=tt,t[58]=et,t[59]=st):st=t[59];let Pe;t[60]!==o.create.isPending||t[61]!==Q||t[62]!==tt||t[63]!==ce||t[64]!==Ve||t[65]!==fs||t[66]!==st?(Pe=l.jsx(Xp,{open:ce,onClose:tt,defaultStatus:fs,defaultRepo:Q,isSaving:o.create.isPending,onSubmit:st},Ve),t[60]=o.create.isPending,t[61]=Q,t[62]=tt,t[63]=ce,t[64]=Ve,t[65]=fs,t[66]=st,t[67]=Pe):Pe=t[67];let nt;t[68]!==x?(nt=l.jsx(Yd,{mode:"link",open:x,onOpenChange:p}),t[68]=x,t[69]=nt):nt=t[69];let oe;t[70]===Symbol.for("react.memo_cache_sentinel")?(oe=_=>!_&&b(null),t[70]=oe):oe=t[70];let rt;t[71]!==y?(rt=l.jsx(Bm,{kind:y,onOpenChange:oe}),t[71]=y,t[72]=rt):rt=t[72];let Ee;t[73]!==S?(Ee=_=>!_&&S([]),t[73]=S,t[74]=Ee):Ee=t[74];let at;t[75]!==o.rerun.isPending||t[76]!==N||t[77]!==w||t[78]!==Ee?(at=l.jsx(Dm,{items:w,pending:o.rerun.isPending,onOpenChange:Ee,onConfirm:N}),t[75]=o.rerun.isPending,t[76]=N,t[77]=w,t[78]=Ee,t[79]=at):at=t[79];let jt;t[80]!==o.removeMany||t[81]!==o.update||t[82]!==k||t[83]!==Y||t[84]!==n||t[85]!==C||t[86]!==m||t[87]!==V||t[88]!==K||t[89]!==Be||t[90]!==S?(jt=Be.size>0&&!V&&l.jsx(Zg,{count:Be.size,members:C,projectEntries:K,onSetRepo:_=>{for(const se of Be)o.update.mutate({id:se,repo:_});Y()},onMoveTo:_=>{for(const se of Be)o.update.mutate({id:se,status:_});Y()},onSetPriority:_=>{for(const se of Be)o.update.mutate({id:se,priority:_});Y()},onAddTag:_=>{for(const se of Be){const Se=n.find(lt=>lt.id===se);if(!Se)continue;const Ie=Se.tags.map(Mg);Ie.includes(_)||o.update.mutate({id:se,tagIds:[...Ie,_]})}Y()},onAssign:_=>{if(!k(_)){for(const se of Be)o.update.mutate({id:se,assigneeId:_},{onError:m});Y()}},onSetDueDate:_=>{const se=Vl(_);for(const Se of Be)o.update.mutate({id:Se,dueDate:se});Y()},onAutoFix:Be.size>0&&Array.from(Be).every(_=>{const se=n.find(Se=>Se.id===_);return se&&(se.status==="triage"||se.status==="todo")&&se.assigneeId!==ye})?()=>{if(!k(ye)){for(const _ of Be)o.update.mutate({id:_,assigneeId:ye},{onError:m});Y()}}:void 0,onRerun:(()=>{const _=Array.from(Be).flatMap(se=>{const Se=n.find(Ie=>Ie.id===se);return Se?[Se]:[]});return _.length===Be.size&&_.every(Lg)?()=>S(_):void 0})(),onDelete:()=>{o.removeMany.mutate(Array.from(Be)),Y()},onClear:Y}),t[80]=o.removeMany,t[81]=o.update,t[82]=k,t[83]=Y,t[84]=n,t[85]=C,t[86]=m,t[87]=V,t[88]=K,t[89]=Be,t[90]=S,t[91]=jt):jt=t[91];let vt;return t[92]!==ht||t[93]!==Ze||t[94]!==Pe||t[95]!==nt||t[96]!==rt||t[97]!==at||t[98]!==jt||t[99]!==j?(vt=l.jsxs("div",{ref:j,className:us,children:[ht,Ze,Pe,nt,rt,at,jt]}),t[92]=ht,t[93]=Ze,t[94]=Pe,t[95]=nt,t[96]=rt,t[97]=at,t[98]=jt,t[99]=j,t[100]=vt):vt=t[100],vt}function Lg(t){return t.assigneeId===ye&&t.status!=="done"}function Mg(t){return t.id}function Pg(t){return t.id}function Fg(t){return t}function Og(t){return t}function Hg(t){return{...t,taskKey:void 0}}function qg(t){return t}function Kg(){return[]}function Ug(t){return t.prs}function Wg(t){return t}function Gg(t){return{...t,taskKey:void 0}}function Vg(t){return[t.userId,t]}function Qg(t){return t.path}function Yg(t){return t.usable}function Zg(t){const e=R.c(104),{count:s,members:n,projectEntries:r,onSetRepo:a,onMoveTo:i,onSetPriority:c,onAddTag:o,onAssign:d,onSetDueDate:u,onAutoFix:f,onRerun:h,onDelete:x,onClear:p}=t,g=X(),{data:k}=Nl();let y;e[0]!==k?(y=k===void 0?[]:k,e[0]=k,e[1]=y):y=e[1];const b=y,m=Cl("delivery_lanes_enabled");let j;e[2]!==s||e[3]!==g?(j=g("taskBoard.taskBoard.selectedCount",{count:s}),e[2]=s,e[3]=g,e[4]=j):j=e[4];let v;e[5]!==j?(v=l.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:j}),e[5]=j,e[6]=v):v=e[6];let w;e[7]!==g?(w=g("taskBoard.taskBoard.actionsButton"),e[7]=g,e[8]=w):w=e[8];let S;e[9]!==w?(S=l.jsx(qe,{asChild:!0,children:l.jsx("button",{type:"button",className:"flex items-center gap-1.5 classic:rounded-full compact:rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:w})}),e[9]=w,e[10]=S):S=e[10];let N;e[11]!==g?(N=g("taskBoard.taskBoard.moveToButton"),e[11]=g,e[12]=N):N=e[12];let T;e[13]!==N?(T=l.jsx(sr,{children:N}),e[13]=N,e[14]=T):T=e[14];let C;if(e[15]!==m||e[16]!==i||e[17]!==g){let ae;e[19]!==i||e[20]!==g?(ae=ge=>l.jsx(Ne,{onClick:()=>i(ge),children:jr(ge,g).label},ge),e[19]=i,e[20]=g,e[21]=ae):ae=e[21],C=mo(m).map(ae),e[15]=m,e[16]=i,e[17]=g,e[18]=C}else C=e[18];let D;e[22]!==C?(D=l.jsx(nr,{children:C}),e[22]=C,e[23]=D):D=e[23];let E;e[24]!==D||e[25]!==T?(E=l.jsxs(tr,{children:[T,D]}),e[24]=D,e[25]=T,e[26]=E):E=e[26];let $;e[27]!==g?($=g("taskBoard.taskBoard.changePriorityButton"),e[27]=g,e[28]=$):$=e[28];let L;e[29]!==$?(L=l.jsx(sr,{children:$}),e[29]=$,e[30]=L):L=e[30];let M;e[31]!==c||e[32]!==g?(M=hr.map(ae=>l.jsxs(Ne,{onClick:()=>c(ae),children:[l.jsx("span",{className:F("size-2 rounded-full",ze[ae].dotClassName)}),g(ze[ae].labelKey)]},ae)),e[31]=c,e[32]=g,e[33]=M):M=e[33];let B;e[34]!==M?(B=l.jsx(nr,{children:M}),e[34]=M,e[35]=B):B=e[35];let A;e[36]!==L||e[37]!==B?(A=l.jsxs(tr,{children:[L,B]}),e[36]=L,e[37]=B,e[38]=A):A=e[38];let z;e[39]!==g?(z=g("taskBoard.taskBoard.assignButton"),e[39]=g,e[40]=z):z=e[40];let K;e[41]!==z?(K=l.jsx(sr,{children:z}),e[41]=z,e[42]=K):K=e[42];let U;e[43]!==n||e[44]!==d?(U=l.jsx(nr,{className:"w-56 p-0",children:l.jsx(Wl,{members:n,onSelect:d})}),e[43]=n,e[44]=d,e[45]=U):U=e[45];let Q;e[46]!==K||e[47]!==U?(Q=l.jsxs(tr,{children:[K,U]}),e[46]=K,e[47]=U,e[48]=Q):Q=e[48];let ee;e[49]!==a||e[50]!==r||e[51]!==g?(ee=r.length>0&&l.jsxs(tr,{children:[l.jsx(sr,{children:g("taskBoard.taskBoard.assignProjectButton")}),l.jsxs(nr,{className:"w-64",children:[l.jsx(Ne,{onClick:()=>a(null),children:g("taskBoard.taskDialog.noProject")}),r.map(ae=>l.jsx(Ne,{className:"gap-2",onClick:()=>a(ae.repo),children:l.jsx($l,{entry:ae})},ae.id))]})]}),e[49]=a,e[50]=r,e[51]=g,e[52]=ee):ee=e[52];let O;e[53]!==g?(O=g("taskBoard.taskBoard.dueDateButton"),e[53]=g,e[54]=O):O=e[54];let te;e[55]!==O?(te=l.jsx(sr,{children:O}),e[55]=O,e[56]=te):te=e[56];let W;e[57]!==u?(W=l.jsx(nr,{className:"w-auto p-0",children:l.jsx(Bl,{mode:"single",onSelect:ae=>ae&&u(ae),initialFocus:!0})}),e[57]=u,e[58]=W):W=e[58];let Z;e[59]!==te||e[60]!==W?(Z=l.jsxs(tr,{children:[te,W]}),e[59]=te,e[60]=W,e[61]=Z):Z=e[61];let J;e[62]!==o||e[63]!==b||e[64]!==g?(J=b.length>0&&l.jsxs(tr,{children:[l.jsx(sr,{children:g("taskBoard.taskBoard.addTagButton")}),l.jsx(nr,{children:b.map(ae=>l.jsxs(Ne,{onClick:()=>o(ae.id),children:[l.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:zt(ae.color)}}),ae.name]},ae.id))})]}),e[62]=o,e[63]=b,e[64]=g,e[65]=J):J=e[65];let re;e[66]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx(Xi,{}),e[66]=re):re=e[66];let Y;e[67]!==g?(Y=g("taskBoard.taskBoard.deleteSelectedButton"),e[67]=g,e[68]=Y):Y=e[68];let ne;e[69]!==x||e[70]!==Y?(ne=l.jsx(Ne,{variant:"destructive",onClick:x,children:Y}),e[69]=x,e[70]=Y,e[71]=ne):ne=e[71];let ce;e[72]!==E||e[73]!==A||e[74]!==Q||e[75]!==ee||e[76]!==Z||e[77]!==J||e[78]!==ne?(ce=l.jsxs(Ke,{align:"center",side:"top",children:[E,A,Q,ee,Z,J,re,ne]}),e[72]=E,e[73]=A,e[74]=Q,e[75]=ee,e[76]=Z,e[77]=J,e[78]=ne,e[79]=ce):ce=e[79];let ue;e[80]!==ce||e[81]!==S?(ue=l.jsxs(Ue,{children:[S,ce]}),e[80]=ce,e[81]=S,e[82]=ue):ue=e[82];let le;e[83]!==f||e[84]!==g?(le=f&&l.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-1.5 classic:rounded-full compact:rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[l.jsx(na,{size:14}),g("taskBoard.taskBoard.autoFix")]}),e[83]=f,e[84]=g,e[85]=le):le=e[85];let I;e[86]!==h||e[87]!==g?(I=h&&l.jsxs("button",{type:"button",onClick:h,className:"flex items-center gap-1.5 classic:rounded-full compact:rounded-lg border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[l.jsx(ga,{size:14}),g("taskBoard.taskBoard.rerun")]}),e[86]=h,e[87]=g,e[88]=I):I=e[88];let H;e[89]!==g?(H=g("taskBoard.taskBoard.clearSelectionButton"),e[89]=g,e[90]=H):H=e[90];let fe;e[91]!==g?(fe=g("taskBoard.taskBoard.clearSelectionButton"),e[91]=g,e[92]=fe):fe=e[92];let de;e[93]===Symbol.for("react.memo_cache_sentinel")?(de=l.jsx(Yt,{size:16}),e[93]=de):de=e[93];let be;e[94]!==p||e[95]!==H||e[96]!==fe?(be=l.jsx("button",{type:"button","aria-label":H,title:fe,onClick:p,className:"flex size-8 shrink-0 items-center justify-center classic:rounded-full compact:rounded-lg text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:de}),e[94]=p,e[95]=H,e[96]=fe,e[97]=be):be=e[97];let Ce;return e[98]!==ue||e[99]!==le||e[100]!==I||e[101]!==be||e[102]!==v?(Ce=l.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:l.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[v,ue,le,I,be]})}),e[98]=ue,e[99]=le,e[100]=I,e[101]=be,e[102]=v,e[103]=Ce):Ce=e[103],Ce}function Ki(t,e){return t.sortOrder-e.sortOrder}function Xg(t){const e=R.c(21),{items:s,members:n,memberByUserId:r,selectedIds:a,onToggleSelect:i,onSelectAllInLane:c,onOpen:o,onCreate:d,onMove:u,onAutoFix:f,onRerun:h,onAssign:x,onPriorityChange:p,onTypeChange:g,onDueDateChange:k,visible:y}=t,b=Cl("delivery_lanes_enabled"),[m,j]=q.useState(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=[],e[0]=v):v=e[0];const[w,S]=q.useState(v);let N;e[1]===Symbol.for("react.memo_cache_sentinel")?(N=new Map,e[1]=N):N=e[1];const[T,C]=q.useState(N),[D,E]=Ji(),$=q.useRef(null);let L;e[2]===Symbol.for("react.memo_cache_sentinel")?(L=G=>{if($.current=G,!G)return;const V=he=>{if(he.deltaX!==0||he.deltaY===0||G.scrollWidth<=G.clientWidth)return;for(let ke=he.target;ke&&ke!==G;ke=ke.parentElement)if(ke.hasAttribute("data-lane-scroll"))return;he.preventDefault();const ve=he.deltaMode===1?16:he.deltaMode===2?G.clientWidth:1;G.scrollLeft=G.scrollLeft+he.deltaY*ve};return G.addEventListener("wheel",V,{passive:!1}),()=>{$.current=null,G.removeEventListener("wheel",V)}},e[2]=L):L=e[2];const M=L,B=T.size>0?s.map(G=>{const V=T.get(G.id);return V?{...G,...V}:G}):s;if(T.size>0&&!m){const G=[...T].filter(V=>{const[he,ve]=V,ke=s.find(Ae=>Ae.id===he);return ke?.status===ve.status&&ke.sortOrder===ve.sortOrder});G.length>0&&C(V=>{const he=new Map(V);for(const[ve]of G)he.delete(ve);return he})}zm($,B.map(nx).join(","),m===null,y);const A=G=>B.filter(V=>V.status===G).sort(Ki),{lanes:z,hidden:K,hideable:U}=gd({deliveryEnabled:b,shownLanes:D.shownTaskBoardLanes,occupied:B.map(sx)});let Q;e[3]!==E?(Q=(G,V)=>E(he=>({...he,shownTaskBoardLanes:V?[...he.shownTaskBoardLanes,G]:he.shownTaskBoardLanes.filter(ve=>ve!==G)})),e[3]=E,e[4]=Q):Q=e[4];const ee=Q,O=G=>wd({overId:G,statusOf:V=>B.find(he=>he.id===V)?.status});let te;e[5]!==a?(te=G=>a.has(G)&&a.size>1?[G,...Array.from(a).filter(V=>V!==G)]:[G],e[5]=a,e[6]=te):te=e[6];const W=te;let Z;e[7]===Symbol.for("react.memo_cache_sentinel")?(Z=(G,V,he)=>{const ve=xo(he,G.length);C(ke=>{const Ae=new Map(ke);return G.forEach((we,Re)=>Ae.set(we,{status:V,sortOrder:ve[Re]})),Ae})},e[7]=Z):Z=e[7];const J=Z;let re;e[8]===Symbol.for("react.memo_cache_sentinel")?(re={activationConstraint:{distance:4}},e[8]=re):re=e[8];let Y;e[9]===Symbol.for("react.memo_cache_sentinel")?(Y={coordinateGetter:Hd},e[9]=Y):Y=e[9];const ne=Ed(ti(Ld,re),ti(Id,Y)),ce=G=>{const V=String(G.active.id),he=O(G.over?.id),ve=B.find(Re=>Re.id===V);if(!he||!ve||ve.status===he)return;const ke=W(V),Ae=String(G.over?.id??""),we=A(he).filter(Re=>!ke.includes(Re.id));J(ke,he,ei(we,Ae.startsWith(ol)?null:Ae,V))},ue=G=>{const V=String(G.active.id);j(null);const he=O(G.over?.id)??B.find($e=>$e.id===V)?.status;if(!he){C(new Map);return}const ve=W(V),ke=A(he),Ae=String(G.over?.id??""),we=ke.findIndex($e=>$e.id===V),Re=Ae.startsWith(ol)?ke.length-1:ke.findIndex($e=>$e.id===Ae),Ye=we===-1||Re===-1?ke:qd(ke,we,Re);if(s.filter($e=>$e.status===he).sort(Ki).map(tx).join()===Ye.map(ex).join()){C(new Map);return}const Bt=Ye.slice(Ye.findIndex($e=>$e.id===V)+1).find($e=>!ve.includes($e.id)),ut=ei(ke.filter($e=>!ve.includes($e.id)),Bt?.id??null,V);J(ve,he,ut),S(ve),u(ve,he,ut)},le=m?B.find(G=>G.id===m):null;let I;e[10]!==m||e[11]!==W?(I=m?W(m):[],e[10]=m,e[11]=W,e[12]=I):I=e[12];const H=I;let fe;e[13]===Symbol.for("react.memo_cache_sentinel")?(fe=G=>{j(String(G.active.id)),S([])},e[13]=fe):fe=e[13];let de;e[14]===Symbol.for("react.memo_cache_sentinel")?(de=()=>{j(null),C(new Map)},e[14]=de):de=e[14];const be=Qi.createPortal,Ce=Md,ae=null,ge=le&&l.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[l.jsx(Nc,{item:le,assignee:le.assigneeId?r.get(le.assigneeId):void 0,assignedBy:le.assignedBy?r.get(le.assignedBy):void 0,selected:a.has(le.id),onOpen:Jg,className:"w-full shadow-lg"}),H.length>1&&l.jsx("span",{className:"absolute -top-2 -right-2 flex h-5 min-w-5 items-center justify-center rounded-full bg-foreground px-1.5 text-[11px] font-semibold text-background",children:H.length})]});let ie;e[15]!==Ce||e[16]!==ge?(ie=l.jsx(Ce,{dropAnimation:ae,children:ge}),e[15]=Ce,e[16]=ge,e[17]=ie):ie=e[17];let Te;return e[18]!==be||e[19]!==ie?(Te=be(ie,document.body),e[18]=be,e[19]=ie,e[20]=Te):Te=e[20],l.jsxs(Pd,{sensors:ne,collisionDetection:Fd,onDragStart:fe,onDragOver:ce,onDragEnd:ue,onDragCancel:de,children:[l.jsx("div",{ref:M,className:"min-h-0 flex-1 overflow-x-auto",children:l.jsxs("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:[z.map(G=>l.jsx(ax,{status:G,items:A(G),members:n,memberByUserId:r,selectedIds:a,isTarget:le?.status===G,hiddenIds:H,landedIds:w,onToggleSelect:i,onSelectAllInLane:c,onOpen:o,onCreate:d,onAutoFix:f,onRerun:h,onAssign:x,onPriorityChange:p,onTypeChange:g,onDueDateChange:k,onHide:U.includes(G)?()=>ee(G,!1):void 0},G)),K.length>0&&l.jsx(rx,{statuses:K,countOf:G=>A(G).length,onShow:G=>ee(G,!0)})]})}),Te]})}function Jg(){}function ex(t){return t.id}function tx(t){return t.id}function sx(t){return t.status}function nx(t){return`${t.id}:${t.status}`}function rx(t){const e=R.c(19),{statuses:s,countOf:n,onShow:r}=t,a=X();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(Nr,{size:14,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=i):i=e[0];let c;e[1]!==a?(c=a("taskBoard.taskBoard.hiddenColumns"),e[1]=a,e[2]=c):c=e[2];let o;e[3]!==c?(o=l.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-2 py-1.5 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground [&::-webkit-details-marker]:hidden",children:[i,c]}),e[3]=c,e[4]=o):o=e[4];let d;if(e[5]!==n||e[6]!==r||e[7]!==s||e[8]!==a){let h;e[10]!==n||e[11]!==r||e[12]!==a?(h=x=>{const{label:p,visual:g}=jr(x,a),k=g.icon;return l.jsxs("div",{"data-hidden-lane":x,className:"flex items-center gap-2 rounded-xl bg-background px-3 py-2.5 card-shadow",children:[l.jsx(k,{size:15,className:F("shrink-0",g.iconClassName)}),l.jsx("span",{className:"text-sm font-medium text-foreground",children:p}),l.jsx("span",{className:"ml-auto text-[11px] font-medium text-muted-foreground",children:n(x)}),l.jsxs(Ue,{children:[l.jsx(qe,{asChild:!0,children:l.jsx("button",{type:"button","aria-label":a("taskBoard.taskBoard.laneMenuAriaLabel",{lane:p}),className:"flex size-6 shrink-0 items-center justify-center classic:rounded-md compact:rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:l.jsx(ir,{size:15})})}),l.jsx(Ke,{align:"end",children:l.jsx(Ne,{onClick:()=>r(x),children:a("taskBoard.taskBoard.showColumn")})})]})]},x)},e[10]=n,e[11]=r,e[12]=a,e[13]=h):h=e[13],d=s.map(h),e[5]=n,e[6]=r,e[7]=s,e[8]=a,e[9]=d}else d=e[9];let u;e[14]!==d?(u=l.jsx("div",{className:"flex flex-col gap-2 px-1 pt-1",children:d}),e[14]=d,e[15]=u):u=e[15];let f;return e[16]!==o||e[17]!==u?(f=l.jsxs("details",{className:"group h-full w-[300px] shrink-0 py-1",children:[o,u]}),e[16]=o,e[17]=u,e[18]=f):f=e[18],f}function ax(t){const e=R.c(100),{status:s,items:n,members:r,memberByUserId:a,selectedIds:i,isTarget:c,hiddenIds:o,landedIds:d,onToggleSelect:u,onSelectAllInLane:f,onOpen:h,onCreate:x,onAutoFix:p,onRerun:g,onAssign:k,onPriorityChange:y,onTypeChange:b,onDueDateChange:m,onHide:j}=t,v=X(),{label:w,visual:S}=jr(s,v),N=S.icon,T=`${ol}${s}`;let C;e[0]!==T?(C={id:T},e[0]=T,e[1]=C):C=e[1];const{setNodeRef:D}=Od(C),E=c&&"bg-muted/50";let $;e[2]!==E?($=F("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",E),e[2]=E,e[3]=$):$=e[3];const L=c?"bg-muted":"bg-background";let M;e[4]!==L?(M=F("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",L),e[4]=L,e[5]=M):M=e[5];const B=15,A=F("shrink-0",S.iconClassName.replace(/\banimate-\S+\b/g,"").trim());let z;e[6]!==N||e[7]!==A?(z=l.jsx(N,{size:B,className:A}),e[6]=N,e[7]=A,e[8]=z):z=e[8];let K;e[9]!==w?(K=l.jsx("span",{className:"text-sm font-medium text-foreground",children:w}),e[9]=w,e[10]=K):K=e[10];let U;e[11]!==n.length?(U=l.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:n.length}),e[11]=n.length,e[12]=U):U=e[12];let Q;e[13]!==w||e[14]!==v?(Q=v("taskBoard.taskBoard.laneMenuAriaLabel",{lane:w}),e[13]=w,e[14]=v,e[15]=Q):Q=e[15];let ee;e[16]===Symbol.for("react.memo_cache_sentinel")?(ee=l.jsx(ir,{size:15}),e[16]=ee):ee=e[16];let O;e[17]!==Q?(O=l.jsx(qe,{asChild:!0,children:l.jsx("button",{type:"button","aria-label":Q,className:"ml-auto flex size-6 shrink-0 items-center justify-center classic:rounded-md compact:rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ee})}),e[17]=Q,e[18]=O):O=e[18];let te;e[19]!==f||e[20]!==s?(te=()=>f(s),e[19]=f,e[20]=s,e[21]=te):te=e[21];let W;e[22]!==v?(W=v("taskBoard.taskBoard.selectAllInLane"),e[22]=v,e[23]=W):W=e[23];let Z;e[24]!==te||e[25]!==W?(Z=l.jsx(Ne,{onClick:te,children:W}),e[24]=te,e[25]=W,e[26]=Z):Z=e[26];let J;e[27]!==j||e[28]!==v?(J=j&&l.jsx(Ne,{onClick:j,children:v("taskBoard.taskBoard.hideColumn")}),e[27]=j,e[28]=v,e[29]=J):J=e[29];let re;e[30]!==Z||e[31]!==J?(re=l.jsxs(Ke,{align:"end",children:[Z,J]}),e[30]=Z,e[31]=J,e[32]=re):re=e[32];let Y;e[33]!==O||e[34]!==re?(Y=l.jsxs(Ue,{children:[O,re]}),e[33]=O,e[34]=re,e[35]=Y):Y=e[35];let ne;e[36]!==w||e[37]!==v?(ne=v("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:w}),e[36]=w,e[37]=v,e[38]=ne):ne=e[38];let ce;e[39]!==w||e[40]!==v?(ce=v("taskBoard.taskBoard.newTaskInLaneTitle",{lane:w}),e[39]=w,e[40]=v,e[41]=ce):ce=e[41];let ue;e[42]!==x||e[43]!==s?(ue=()=>x(s),e[42]=x,e[43]=s,e[44]=ue):ue=e[44];let le;e[45]===Symbol.for("react.memo_cache_sentinel")?(le=l.jsx(Qt,{size:15}),e[45]=le):le=e[45];let I;e[46]!==ne||e[47]!==ce||e[48]!==ue?(I=l.jsx("button",{type:"button","aria-label":ne,title:ce,onClick:ue,className:"flex size-6 shrink-0 items-center justify-center classic:rounded-md compact:rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:le}),e[46]=ne,e[47]=ce,e[48]=ue,e[49]=I):I=e[49];let H;e[50]!==K||e[51]!==U||e[52]!==Y||e[53]!==I||e[54]!==M||e[55]!==z?(H=l.jsxs("div",{className:M,children:[z,K,U,Y,I]}),e[50]=K,e[51]=U,e[52]=Y,e[53]=I,e[54]=M,e[55]=z,e[56]=H):H=e[56];let fe;e[57]!==n?(fe=n.map(lx),e[57]=n,e[58]=fe):fe=e[58];let de;if(e[59]!==o||e[60]!==n||e[61]!==d||e[62]!==a||e[63]!==r||e[64]!==k||e[65]!==p||e[66]!==m||e[67]!==h||e[68]!==y||e[69]!==g||e[70]!==u||e[71]!==b||e[72]!==i){let ge;e[74]!==o||e[75]!==d||e[76]!==a||e[77]!==r||e[78]!==k||e[79]!==p||e[80]!==m||e[81]!==h||e[82]!==y||e[83]!==g||e[84]!==u||e[85]!==b||e[86]!==i?(ge=ie=>l.jsx(ix,{item:ie,assignee:ie.assigneeId?a.get(ie.assigneeId):void 0,assignedBy:ie.assignedBy?a.get(ie.assignedBy):void 0,members:r,selected:i.has(ie.id),hidden:o.includes(ie.id),landed:d.includes(ie.id),onToggleSelect:()=>u(ie.id),onOpen:()=>h(ie),onAutoFix:p?()=>p(ie):void 0,onRerun:g?()=>g(ie):void 0,onAssign:k?Te=>k(ie.id,Te):void 0,onPriorityChange:y?Te=>y(ie.id,Te):void 0,onTypeChange:b?Te=>b(ie.id,Te):void 0,onDueDateChange:m?Te=>m(ie.id,Te):void 0},ie.id),e[74]=o,e[75]=d,e[76]=a,e[77]=r,e[78]=k,e[79]=p,e[80]=m,e[81]=h,e[82]=y,e[83]=g,e[84]=u,e[85]=b,e[86]=i,e[87]=ge):ge=e[87],de=n.map(ge),e[59]=o,e[60]=n,e[61]=d,e[62]=a,e[63]=r,e[64]=k,e[65]=p,e[66]=m,e[67]=h,e[68]=y,e[69]=g,e[70]=u,e[71]=b,e[72]=i,e[73]=de}else de=e[73];let be;e[88]!==fe||e[89]!==de?(be=l.jsx(Kd,{items:fe,strategy:Ud,children:de}),e[88]=fe,e[89]=de,e[90]=be):be=e[90];let Ce;e[91]!==D||e[92]!==s||e[93]!==be?(Ce=l.jsx("div",{ref:D,"data-lane-scroll":s,className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto px-1 pt-1 pb-16 [scrollbar-width:thin] [&::-webkit-scrollbar]:w-1",children:be}),e[91]=D,e[92]=s,e[93]=be,e[94]=Ce):Ce=e[94];let ae;return e[95]!==s||e[96]!==H||e[97]!==Ce||e[98]!==$?(ae=l.jsxs("div",{"data-lane":s,className:$,children:[H,Ce]}),e[95]=s,e[96]=H,e[97]=Ce,e[98]=$,e[99]=ae):ae=e[99],ae}function lx(t){return t.id}function ix(t){const e=R.c(29);let s,n,r,a;e[0]!==t?({item:n,hidden:s,landed:r,...a}=t,e[0]=t,e[1]=s,e[2]=n,e[3]=r,e[4]=a):(s=e[1],n=e[2],r=e[3],a=e[4]);let i;e[5]!==n.id?(i={id:n.id},e[5]=n.id,e[6]=i):i=e[6];const{attributes:c,listeners:o,setNodeRef:d,transform:u,transition:f,isDragging:h}=Wd(i),x=n.id,p=n.status;let g;e[7]!==c||e[8]!==o?(g={attributes:c,listeners:o},e[7]=c,e[8]=o,e[9]=g):g=e[9];const k=r&&"animate-card-land";let y;e[10]!==k?(y=F("w-full",k),e[10]=k,e[11]=y):y=e[11];let b;e[12]!==u?(b=Gd.Translate.toString(u),e[12]=u,e[13]=b):b=e[13];const m=h||s?0:void 0;let j;e[14]!==b||e[15]!==m||e[16]!==f?(j={transform:b,transition:f,opacity:m},e[14]=b,e[15]=m,e[16]=f,e[17]=j):j=e[17];let v;e[18]!==n||e[19]!==a||e[20]!==d||e[21]!==g||e[22]!==y||e[23]!==j?(v=l.jsx(Nc,{...a,item:n,dragRef:d,bindings:g,className:y,style:j}),e[18]=n,e[19]=a,e[20]=d,e[21]=g,e[22]=y,e[23]=j,e[24]=v):v=e[24];let w;return e[25]!==n.id||e[26]!==n.status||e[27]!==v?(w=l.jsx("div",{className:"flex","data-flip-id":x,"data-flip-lane":p,children:v}),e[25]=n.id,e[26]=n.status,e[27]=v,e[28]=w):w=e[28],w}function Nc(t){const e=R.c(71),{item:s,assignee:n,assignedBy:r,members:a,selected:i,className:c,dragRef:o,bindings:d,style:u,onToggleSelect:f,onOpen:h,onAutoFix:x,onRerun:p,onAssign:g,onPriorityChange:k,onTypeChange:y,onDueDateChange:b}=t,m=X(),j=zg(s);let v;e[0]!==s?(v=xd(s),e[0]=s,e[1]=v):v=e[1];const w=v;let S,N,T,C,D,E,$,L,M,B,A,z;if(e[2]!==d?.attributes||e[3]!==d?.listeners||e[4]!==c||e[5]!==o||e[6]!==s||e[7]!==x||e[8]!==h||e[9]!==p||e[10]!==f||e[11]!==w||e[12]!==i||e[13]!==u||e[14]!==m){N=kd(s)?m("taskBoard.taskBoard.blockedBadgeTitle"):null;const re=x&&(s.status==="triage"||s.status==="todo")&&s.assigneeId!==ye,Y=p&&!re&&s.assigneeId===ye&&s.status!=="done";S=re?{icon:na,label:m("taskBoard.taskBoard.autoFix"),onClick:x}:Y?{icon:ga,label:m("taskBoard.taskBoard.rerun"),onClick:p}:null,L="button",M=o,B=u,A=d?.attributes,z=d?.listeners,e[27]!==h||e[28]!==f?(T=ne=>{ne.shiftKey&&f?f():h()},e[27]=h,e[28]=f,e[29]=T):T=e[29],C=F("group relative flex shrink-0 cursor-grab flex-col gap-3 rounded-xl px-3.5 pt-3.5 pb-2.5 text-left card-shadow active:cursor-grabbing",N?"bg-warning/10 hover:bg-warning/15":"bg-card hover:bg-accent/60",w==="failed"?"card-ring-destructive":N&&"card-ring-warning",i&&"bg-accent",c),$="flex items-start gap-2",E="relative min-w-0 flex-1 text-[14px] font-[450] leading-snug",D=F("block text-foreground line-clamp-2",S&&"group-hover:fade-text-end"),e[2]=d?.attributes,e[3]=d?.listeners,e[4]=c,e[5]=o,e[6]=s,e[7]=x,e[8]=h,e[9]=p,e[10]=f,e[11]=w,e[12]=i,e[13]=u,e[14]=m,e[15]=S,e[16]=N,e[17]=T,e[18]=C,e[19]=D,e[20]=E,e[21]=$,e[22]=L,e[23]=M,e[24]=B,e[25]=A,e[26]=z}else S=e[15],N=e[16],T=e[17],C=e[18],D=e[19],E=e[20],$=e[21],L=e[22],M=e[23],B=e[24],A=e[25],z=e[26];let K;e[30]!==s.title||e[31]!==D?(K=l.jsx("span",{className:D,children:s.title}),e[30]=s.title,e[31]=D,e[32]=K):K=e[32];let U;e[33]!==S?(U=S&&l.jsx(Cg,{action:S}),e[33]=S,e[34]=U):U=e[34];let Q;e[35]!==K||e[36]!==U||e[37]!==E?(Q=l.jsxs("div",{className:E,children:[K,U]}),e[35]=K,e[36]=U,e[37]=E,e[38]=Q):Q=e[38];let ee;e[39]!==N?(ee=N&&l.jsx("span",{className:"sr-only",children:N}),e[39]=N,e[40]=ee):ee=e[40];let O;e[41]!==w?(O=w&&l.jsx(Rg,{state:w}),e[41]=w,e[42]=O):O=e[42];let te;e[43]!==Q||e[44]!==ee||e[45]!==O||e[46]!==$?(te=l.jsxs("div",{className:$,children:[Q,ee,O]}),e[43]=Q,e[44]=ee,e[45]=O,e[46]=$,e[47]=te):te=e[47];let W;e[48]!==s.tags?(W=s.tags.length>0&&l.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5",children:[s.tags.slice(0,ll).map(ox),s.tags.length>ll&&l.jsxs("span",{className:is,children:["+",s.tags.length-ll]})]}),e[48]=s.tags,e[49]=W):W=e[49];let Z;e[50]!==r||e[51]!==n||e[52]!==j||e[53]!==s||e[54]!==a||e[55]!==g||e[56]!==b||e[57]!==k||e[58]!==y?(Z=l.jsx(_g,{item:s,checks:j,assignee:n,assignedBy:r,members:a,onAssign:g,onPriorityChange:k,onTypeChange:y,onDueDateChange:b}),e[50]=r,e[51]=n,e[52]=j,e[53]=s,e[54]=a,e[55]=g,e[56]=b,e[57]=k,e[58]=y,e[59]=Z):Z=e[59];let J;return e[60]!==T||e[61]!==C||e[62]!==te||e[63]!==W||e[64]!==Z||e[65]!==L||e[66]!==M||e[67]!==B||e[68]!==A||e[69]!==z?(J=l.jsxs("button",{type:L,ref:M,style:B,...A,...z,onClick:T,className:C,children:[te,W,Z]}),e[60]=T,e[61]=C,e[62]=te,e[63]=W,e[64]=Z,e[65]=L,e[66]=M,e[67]=B,e[68]=A,e[69]=z,e[70]=J):J=e[70],J}function ox(t){return l.jsx(wc,{tag:t},t.id)}function cx(t){const e=R.c(38),{item:s,assignee:n,assignedBy:r,onOpen:a}=t;let i;e[0]!==s.status?(i=il(s.status),e[0]=s.status,e[1]=i):i=e[1];const c=i.icon;let o;e[2]!==s?(o=F("shrink-0",po(s)),e[2]=s,e[3]=o):o=e[3];let d;e[4]!==c||e[5]!==o?(d=l.jsx(c,{size:16,className:o}),e[4]=c,e[5]=o,e[6]=d):d=e[6];let u;e[7]!==s.title?(u=l.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:s.title}),e[7]=s.title,e[8]=u):u=e[8];let f;e[9]!==s?(f=bd(s)&&l.jsx(mg,{}),e[9]=s,e[10]=f):f=e[10];let h;e[11]!==s?(h=yd(s)&&l.jsx(gg,{}),e[11]=s,e[12]=h):h=e[12];let x;e[13]!==s.priority?(x=s.priority!=="none"&&l.jsx("span",{className:"hidden sm:inline-flex",children:l.jsx(Ag,{priority:s.priority})}),e[13]=s.priority,e[14]=x):x=e[14];let p;e[15]!==s.dueDate?(p=s.dueDate&&l.jsx("span",{className:"hidden sm:inline-flex",children:l.jsx(Dg,{iso:s.dueDate})}),e[15]=s.dueDate,e[16]=p):p=e[16];let g;e[17]!==s.tags?(g=s.tags.length>0&&l.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[s.tags.slice(0,2).map(dx),s.tags.length>2&&l.jsxs("span",{className:is,children:["+",s.tags.length-2]})]}),e[17]=s.tags,e[18]=g):g=e[18];let k;e[19]!==r||e[20]!==n||e[21]!==s?(k=l.jsx(Sc,{item:s,assignee:n,assignedBy:r}),e[19]=r,e[20]=n,e[21]=s,e[22]=k):k=e[22];let y;e[23]!==s.createdAt?(y=Tr(new Date(s.createdAt)),e[23]=s.createdAt,e[24]=y):y=e[24];let b;e[25]!==y?(b=l.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:y}),e[25]=y,e[26]=b):b=e[26];let m;return e[27]!==a||e[28]!==k||e[29]!==b||e[30]!==d||e[31]!==u||e[32]!==f||e[33]!==h||e[34]!==x||e[35]!==p||e[36]!==g?(m=l.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[d,u,f,h,x,p,g,k,b]}),e[27]=a,e[28]=k,e[29]=b,e[30]=d,e[31]=u,e[32]=f,e[33]=h,e[34]=x,e[35]=p,e[36]=g,e[37]=m):m=e[37],m}function dx(t){return l.jsx(wc,{tag:t},t.id)}function Ui(t){const e=R.c(14),{active:s,onClick:n,icon:r,label:a}=t,i=X();let c;e[0]!==a||e[1]!==i?(c=i("taskBoard.taskBoard.layoutViewAriaLabel",{label:a}),e[0]=a,e[1]=i,e[2]=c):c=e[2];const o=s?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[3]!==o?(d=F("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",o),e[3]=o,e[4]=d):d=e[4];let u;e[5]!==r?(u=l.jsx(r,{size:14}),e[5]=r,e[6]=u):u=e[6];let f;return e[7]!==s||e[8]!==a||e[9]!==n||e[10]!==c||e[11]!==d||e[12]!==u?(f=l.jsxs("button",{type:"button",onClick:n,"aria-label":c,"aria-pressed":s,className:d,children:[u,a]}),e[7]=s,e[8]=a,e[9]=n,e[10]=c,e[11]=d,e[12]=u,e[13]=f):f=e[13],f}function T2(t){const e=R.c(5),{seed:s,children:n}=t;let r;e[0]!==s?(r=()=>{const c=new Fc({defaultOptions:{queries:{staleTime:1/0,gcTime:1/0,retry:!1,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchInterval:!1}}});return s(c),c},e[0]=s,e[1]=r):r=e[1];const[a]=q.useState(r);let i;return e[2]!==n||e[3]!==a?(i=l.jsx("div",{"aria-hidden":"true",inert:!0,className:"pointer-events-none absolute inset-0 select-none overflow-hidden",children:l.jsx(Oc,{fallback:null,children:l.jsx(q.Suspense,{fallback:null,children:l.jsx(Hc,{client:a,children:n})})})}),e[2]=n,e[3]=a,e[4]=i):i=e[4],i}const Wi=new Date().toISOString();function Dt(t,e,s,n,r,a){return{id:t,organizationId:"preview",title:e,description:null,repositoryId:null,status:s,priority:r,type:n,assigneeId:null,assignedBy:null,repo:null,dueDate:null,sortOrder:a,keySeq:a,externalUrl:null,previewRoutes:[],source:null,retryAttempts:0,reviewCycleStartedAt:null,threads:[],tags:[],reviewVerdicts:[],createdBy:"preview",createdAt:Wi,updatedBy:"preview",updatedAt:Wi}}function B2(){return{items:[Dt("p1","Fix checkout shipping estimate","todo","bug","high",1),Dt("p2","Add size guide to product page","todo","feature","medium",2),Dt("p3","Compress hero images","todo","chore","low",3),Dt("p4","Rewrite category descriptions","in_progress","feature","medium",4),Dt("p5","Audit broken redirects","in_progress","chore","high",5),Dt("p6","New arrivals landing page","in_review","feature","high",6),Dt("p7","Speed up search results","done","chore","medium",7),Dt("p8","Black Friday banner","done","feature","urgent",8)],repos:[],columns:[]}}export{T2 as P,C2 as T,B2 as m};