decocms 4.371.0 → 4.371.1
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.
- package/dist/client/assets/{AlertCircle-t16GmFFD.js → AlertCircle-C0-TxiO6.js} +1 -1
- package/dist/client/assets/{AreaChart-CxQ7Ao3R.js → AreaChart-CoPMvbKJ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-HY7Uv4__.js → ArrowLeft-DJPAQw7U.js} +1 -1
- package/dist/client/assets/{ArrowRight-BXtyrNon.js → ArrowRight-BdNCMkoU.js} +1 -1
- package/dist/client/assets/{ArrowUp-cZ3ikcyU.js → ArrowUp-CA0-gutj.js} +1 -1
- package/dist/client/assets/{CartesianChart-Byp0SnUn.js → CartesianChart-CZW-iNRU.js} +1 -1
- package/dist/client/assets/{Check-BTpIoLcV.js → Check-DPmkVp9o.js} +1 -1
- package/dist/client/assets/{CheckCircle-B8akZhwz.js → CheckCircle-L1uNWTeX.js} +1 -1
- package/dist/client/assets/{ChevronRight-CKnzeSGF.js → ChevronRight-Cy9RadCH.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DLLN3Jrh.js → ChevronSelectorVertical-Re7oyhI4.js} +1 -1
- package/dist/client/assets/{ChevronUp-CT0pFhxd.js → ChevronUp-DlAlGiaE.js} +1 -1
- package/dist/client/assets/{Copy01-CgV4lgMd.js → Copy01-DR-j5GBU.js} +1 -1
- package/dist/client/assets/{CreditCard01-CMgoHghV.js → CreditCard01-BdreiyNN.js} +1 -1
- package/dist/client/assets/{Database01-B6M3QRum.js → Database01-BJzPZhLQ.js} +1 -1
- package/dist/client/assets/{DotsVertical-DrQAveG6.js → DotsVertical-OZudxO2A.js} +1 -1
- package/dist/client/assets/{Download01-CS4QK_TT.js → Download01-CFE3dmp0.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DqCobLbp.js → ErrorBarContext-C5wObTqe.js} +1 -1
- package/dist/client/assets/{Eye-CtzcB9Un.js → Eye-j3TWnyRQ.js} +1 -1
- package/dist/client/assets/{File02-DD4AutCj.js → File02-BJKQz8dh.js} +1 -1
- package/dist/client/assets/{GitBranch01-cLKM3ULo.js → GitBranch01-CoQ__zNu.js} +1 -1
- package/dist/client/assets/{Globe01-CJEubxiw.js → Globe01-DvG6lHau.js} +1 -1
- package/dist/client/assets/{HardDrive-D3CIiO3U.js → HardDrive-5vJRcklo.js} +1 -1
- package/dist/client/assets/{Image01-DMSxcNyE.js → Image01-CYlbNXO1.js} +1 -1
- package/dist/client/assets/{Key01-CvpaWm2K.js → Key01-ul8Oow4l.js} +1 -1
- package/dist/client/assets/{Line-D7fF0vo9.js → Line-UJg13jRB.js} +1 -1
- package/dist/client/assets/{Link01-BTaDUtVY.js → Link01-DhrAf5on.js} +1 -1
- package/dist/client/assets/{LinkExternal01-De6j4Np2.js → LinkExternal01-Cnnt0i1n.js} +1 -1
- package/dist/client/assets/{MessageCircle01-p8E5OK7n.js → MessageCircle01-Csmtku99.js} +1 -1
- package/dist/client/assets/{Monitor01-BJeNu-a1.js → Monitor01-CwroNIhL.js} +1 -1
- package/dist/client/assets/{Package-DK9dOLCk.js → Package-BdaUmaHt.js} +1 -1
- package/dist/client/assets/{Palette-BqLqu4oe.js → Palette-DWnrHTYs.js} +1 -1
- package/dist/client/assets/{Play-CY5YidfV.js → Play-DdxMPTZZ.js} +1 -1
- package/dist/client/assets/{Plus-DYzEMfHc.js → Plus-DeeK2M8D.js} +1 -1
- package/dist/client/assets/{Printer-AhWbME7S.js → Printer-Dxx0wBbQ.js} +1 -1
- package/dist/client/assets/{SearchLg-DENgfmiG.js → SearchLg-D2PFuerf.js} +1 -1
- package/dist/client/assets/{SearchMd-DtsFz9nf.js → SearchMd-K12rQhTx.js} +1 -1
- package/dist/client/assets/{Sector-C6vlgUZH.js → Sector-CGboweI9.js} +1 -1
- package/dist/client/assets/{Settings02-mu2qB12n.js → Settings02-C2D3KrJO.js} +1 -1
- package/dist/client/assets/{Share07-BGCT37w6.js → Share07-CuCcaIKs.js} +1 -1
- package/dist/client/assets/{Shield01-zQZfrJSD.js → Shield01-Eo3hV7_Y.js} +1 -1
- package/dist/client/assets/{Stars01-ClJSo3pH.js → Stars01-CLBXU-E8.js} +1 -1
- package/dist/client/assets/{Sun-Dhb69X-z.js → Sun-Cl84jAMG.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CF7Zn7df.js → SwitchHorizontal01-DixKYGlF.js} +1 -1
- package/dist/client/assets/{Tool01-C3d-Z_qI.js → Tool01-050h7b-t.js} +1 -1
- package/dist/client/assets/{Tool02-DdREhml_.js → Tool02-CArhDp9C.js} +1 -1
- package/dist/client/assets/{Trash01-CBgUpFSF.js → Trash01-CO8Ng7lf.js} +1 -1
- package/dist/client/assets/{TrendUp01-yM3PpNYw.js → TrendUp01-BvUgeJGM.js} +1 -1
- package/dist/client/assets/{Upload01-CanSzxYG.js → Upload01-KPhkQ5vY.js} +1 -1
- package/dist/client/assets/{User01-D2w9GFKA.js → User01-Dz0JolLa.js} +1 -1
- package/dist/client/assets/{UserSquare-C2XBN0YV.js → UserSquare-CSZkAXD6.js} +1 -1
- package/dist/client/assets/{Users01-BQOAhGFf.js → Users01-DtyA-vKe.js} +1 -1
- package/dist/client/assets/{Users03-BMu5SlYc.js → Users03-D_di5oKF.js} +1 -1
- package/dist/client/assets/{X-BxXVKNVf.js → X-C0TLYkbc.js} +1 -1
- package/dist/client/assets/{XCircle-DP3A0LYH.js → XCircle-rfqM8vls.js} +1 -1
- package/dist/client/assets/{XClose-Dd96BjAd.js → XClose-D1BXFiFY.js} +1 -1
- package/dist/client/assets/{Zap-BANQ7xNU.js → Zap-ClPuBau2.js} +1 -1
- package/dist/client/assets/{ZoomOut-DGKL8Wmf.js → ZoomOut-B3aFTWVJ.js} +1 -1
- package/dist/client/assets/{access-gate-BGu2iYOi.js → access-gate-CEH6pmZh.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DgwnOh0x.js → add-connection-dialog-D0P3BW60.js} +1 -1
- package/dist/client/assets/{agent-analytics-biEccnxy.js → agent-analytics-JvtpHiQo.js} +1 -1
- package/dist/client/assets/agent-app-C24O_B5I.js +1 -0
- package/dist/client/assets/{agent-assets-COUJ9ZJd.js → agent-assets-M-IJ3mW0.js} +1 -1
- package/dist/client/assets/{agent-automation-D9iXVVXu.js → agent-automation-_OOPkMyR.js} +1 -1
- package/dist/client/assets/{agent-automations-QIrwC1O7.js → agent-automations-B65IGibY.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-KplOnImN.js → agent-connect-sources-BScxWVBc.js} +1 -1
- package/dist/client/assets/agent-deck-B9hyeW87.js +1 -0
- package/dist/client/assets/{agent-e2e-CTQhpy53.js → agent-e2e-CWv13Eol.js} +1 -1
- package/dist/client/assets/{agent-experiments-DZFK3iS3.js → agent-experiments-sfC6Lqe2.js} +1 -1
- package/dist/client/assets/agent-file-bM_cVpDM.js +1 -0
- package/dist/client/assets/{agent-git-BabNMQHA.js → agent-git-DAdJx1Wg.js} +1 -1
- package/dist/client/assets/{agent-hosting-DirfXB27.js → agent-hosting-DwMOxMly.js} +1 -1
- package/dist/client/assets/{agent-icon-lNRuSVKm.js → agent-icon-BiGnObzK.js} +1 -1
- package/dist/client/assets/agent-library-file-Dgi210Ns.js +1 -0
- package/dist/client/assets/{agent-monitor-DECNBEXB.js → agent-monitor-N7BiRxoQ.js} +1 -1
- package/dist/client/assets/{agent-overview-DWxUWHsJ.js → agent-overview-FYkyBP9v.js} +1 -1
- package/dist/client/assets/agent-settings-D5dc8WiN.js +1 -0
- package/dist/client/assets/{agent-site-editor-v3O0k9a-.js → agent-site-editor-CauI0s_F.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-0MnA4pc9.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-C51QB5JC.js → agent-site-editor-content-DusAz1gD.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-DRFSg53h.js → agent-site-editor-preview-BD0l2ruL.js} +3 -3
- package/dist/client/assets/agent-view-Bd1H6lfA.js +1 -0
- package/dist/client/assets/{agent-view-guard-COPTapPw.js → agent-view-guard-DEZqe5Yn.js} +1 -1
- package/dist/client/assets/{agents-list-CYL-jlyp.js → agents-list-D9aYDM-r.js} +1 -1
- package/dist/client/assets/{ai-providers-BqV7vqKs.js → ai-providers-WLbGZ32j.js} +1 -1
- package/dist/client/assets/{alert-BXMnJYMc.js → alert-V7Wm-pHG.js} +1 -1
- package/dist/client/assets/{alert-dialog-BZ1o5787.js → alert-dialog-C6pDLcOY.js} +1 -1
- package/dist/client/assets/api-keys-C8RdXgwE.js +1 -0
- package/dist/client/assets/{api-keys-CtP9k40v.js → api-keys-DBx-sLNL.js} +1 -1
- package/dist/client/assets/app-editor-Df3InrIn.js +1 -0
- package/dist/client/assets/{asset-utils-BW6hS-Vv.js → asset-utils-Q0S5-J4d.js} +1 -1
- package/dist/client/assets/{auth-DVaX653V.js → auth-_OTb7ucb.js} +1 -1
- package/dist/client/assets/{auth-catchall-DhfVQhLT.js → auth-catchall-BwKuZoDY.js} +1 -1
- package/dist/client/assets/{auth-entry-GbJBUVUc.js → auth-entry-BjjjeSsi.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Jtf6zhHc.js → auth-split-layout-CmEK87QP.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth--PwyxHrV.js → authenticate-and-persist-oauth-sk9wyiL9.js} +1 -1
- package/dist/client/assets/{automation-list-row-B-BmiLOQ.js → automation-list-row-BQRrv-mM.js} +1 -1
- package/dist/client/assets/{automation-runs-CvN-ViNb.js → automation-runs-xXo7y48P.js} +1 -1
- package/dist/client/assets/automations-n3slcnWV.js +1 -0
- package/dist/client/assets/{autosend-RrsCJCzF.js → autosend-CxCswIxl.js} +1 -1
- package/dist/client/assets/{avatar-DMDwxyOC.js → avatar-CmhAIXd1.js} +1 -1
- package/dist/client/assets/{badge-B04u7Iz2.js → badge-BQcRAjbm.js} +1 -1
- package/dist/client/assets/{block-document-SaUEGHtk.js → block-document-zcRRzAU8.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DSGBiDKx.js → blocks-preview-workspace-context-CTa2E8XJ.js} +1 -1
- package/dist/client/assets/{breadcrumb-BJ4kb7XU.js → breadcrumb-PsRIPYAp.js} +1 -1
- package/dist/client/assets/{buckets-7YwbOBu-.js → buckets-C2Mnw28r.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DloH7rHc.js → build-improve-prompt-doc-CDk0pfsj.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DnL23siN.js → bulk-category-panel-BKOt3Cbt.js} +1 -1
- package/dist/client/assets/{calendar-Luncm321.js → calendar-D3SnfVOV.js} +1 -1
- package/dist/client/assets/{capability-load-error-BJGXRamj.js → capability-load-error-B43iJrev.js} +1 -1
- package/dist/client/assets/{cards-C3iU5bAV.js → cards-BsJjaCyl.js} +1 -1
- package/dist/client/assets/category-editor-TFP8Cyaa.js +1 -0
- package/dist/client/assets/{chart-DfwQDWkm.js → chart-lZgAUDLm.js} +1 -1
- package/dist/client/assets/{chat-context-C7331aUi.js → chat-context-CoBHiltL.js} +1 -1
- package/dist/client/assets/{chat-draft-CcTVi1jY.js → chat-draft-DJUheoUs.js} +1 -1
- package/dist/client/assets/{checkbox-B0iv1edQ.js → checkbox-yqUkf7OW.js} +1 -1
- package/dist/client/assets/{choose-editor-9ovU6jNU.js → choose-editor-zOeLxhki.js} +1 -1
- package/dist/client/assets/{cli-auth-success-z4vItwgl.js → cli-auth-success-B2eElmbs.js} +1 -1
- package/dist/client/assets/{client-icons-C7cHoTwc.js → client-icons-DJ6NR0Tk.js} +1 -1
- package/dist/client/assets/{collapsible-CShI5lwF.js → collapsible-Pw-T7X4Y.js} +1 -1
- package/dist/client/assets/{collection-detail-CLJhAF6s.js → collection-detail-C9uuji1v.js} +1 -1
- package/dist/client/assets/{collection-display-button-vfXKWThj.js → collection-display-button-Cvh7SCuv.js} +1 -1
- package/dist/client/assets/{collection-search-Cic15zOR.js → collection-search-DcP3oL8c.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BU7rIamq.js → collection-table-wrapper-BO3Rmslm.js} +1 -1
- package/dist/client/assets/{collection-tabs-BTXpTMr3.js → collection-tabs-Bz5VoH82.js} +1 -1
- package/dist/client/assets/{combobox-DfVRTnqi.js → combobox-D96oyObH.js} +1 -1
- package/dist/client/assets/{command-DUkP3zmM.js → command-DsHSX_Q2.js} +1 -1
- package/dist/client/assets/{command-palette-store-XBis5rCY.js → command-palette-store-Bh-jT81a.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-XflWfJ9i.js → companion-mcps-section-BZZMPLgr.js} +1 -1
- package/dist/client/assets/{connect-DDoS2TK3.js → connect-Ch5IvlMi.js} +1 -1
- package/dist/client/assets/{connect-layout-DM55x4tY.js → connect-layout-BkgI1aqK.js} +1 -1
- package/dist/client/assets/{connection-_jyHU_UL.js → connection-Ckax9kml.js} +1 -1
- package/dist/client/assets/{connection-card-vQXsRR_o.js → connection-card-DRjApK4U.js} +1 -1
- package/dist/client/assets/{connection-detail-CogPySTK.js → connection-detail-DRDHHCoy.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DYV1KRrv.js → connection-form-helpers-CTatDCFh.js} +1 -1
- package/dist/client/assets/{connections-kvIrjgCr.js → connections-j1dRKolw.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-ClFMpd19.js → create-organization-dialog-7AMbRjLu.js} +1 -1
- package/dist/client/assets/{decofile-api-BARSeSQx.js → decofile-api-DSJZcFNx.js} +1 -1
- package/dist/client/assets/{decopilot-cUeMFk1c.js → decopilot-CXbwfTk8.js} +1 -1
- package/dist/client/assets/{dialog-DolMafrK.js → dialog-2OQ2LxEM.js} +1 -1
- package/dist/client/assets/{discover-B3B2qs5r.js → discover-3w5WqvOf.js} +1 -1
- package/dist/client/assets/{domain-settings-BrduqtvC.js → domain-settings-DGdcQovP.js} +1 -1
- package/dist/client/assets/{download-app-dialog-DWrK0S2y.js → download-app-dialog-CooL40cq.js} +1 -1
- package/dist/client/assets/{drawer-bj1-7vWq.js → drawer-l3m_rTVV.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DKi6r-jI.js → dropdown-menu-C_Ad2-Sm.js} +1 -1
- package/dist/client/assets/{editor-sstVZH8z.js → editor-B8X3kLOx.js} +1 -1
- package/dist/client/assets/{empty-state-BiMiwfS8.js → empty-state-BenBb6xP.js} +1 -1
- package/dist/client/assets/{empty-state-DPrgdHnO.js → empty-state-DQUIOtOI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-amssTZqV.js → extract-connection-data-CPB2KH-s.js} +1 -1
- package/dist/client/assets/{feature-gate-GAGlxl_2.js → feature-gate-CHkTViSe.js} +1 -1
- package/dist/client/assets/{feature-paywall-DMe1WEQb.js → feature-paywall-BZprTeyJ.js} +1 -1
- package/dist/client/assets/{file-explorer-BYtr5WOs.js → file-explorer-CIIwmsmj.js} +1 -1
- package/dist/client/assets/{file-preview-x7-MgY1v.js → file-preview-DKi27zOw.js} +1 -1
- package/dist/client/assets/{file-share-button-CHL077fF.js → file-share-button-DjCMHoE-.js} +1 -1
- package/dist/client/assets/{file-type-icon-BerVMYpw.js → file-type-icon-OdO3rqaU.js} +1 -1
- package/dist/client/assets/{folder-icon-Bg2SHYwX.js → folder-icon-BJeoal6K.js} +1 -1
- package/dist/client/assets/{form-WXGHvZBn.js → form-DYY0T0Ph.js} +1 -1
- package/dist/client/assets/{gateway-client-y-HOSL5d.js → gateway-client-BVNanaRY.js} +1 -1
- package/dist/client/assets/{general-D9GzeSHC.js → general-Bmhe5AJi.js} +1 -1
- package/dist/client/assets/{github-icon-xpbWHYjC.js → github-icon-B5oLQet2.js} +1 -1
- package/dist/client/assets/{home-COmXCSEO.js → home-B6NFDC2N.js} +1 -1
- package/dist/client/assets/{hooks-eaxU4Dzu.js → hooks-BgSBJTIE.js} +1 -1
- package/dist/client/assets/{hooks-BILYBqoD.js → hooks-HpwgoFC5.js} +1 -1
- package/dist/client/assets/{index-B7iD44NA.js → index-1AZZF6nw.js} +1 -1
- package/dist/client/assets/{index-D92nJk4M.js → index-7tmEKxvy.js} +1 -1
- package/dist/client/assets/{index-O_d7IbvI.js → index-BWTOyWG7.js} +1 -1
- package/dist/client/assets/{index-6k60hctk.js → index-CGYjjYlC.js} +1 -1
- package/dist/client/assets/{index-CNbjwBIU.js → index-Ci-eaOqX.js} +1 -1
- package/dist/client/assets/{index-DXrLYuI6.js → index-Cl114pPG.js} +1 -1
- package/dist/client/assets/{index-BZcH2pUx.js → index-CoMP2Qdd.js} +1 -1
- package/dist/client/assets/{index-B1Ek4vGo.js → index-CzgZcCrm.js} +1 -1
- package/dist/client/assets/{index-jx3Y2kdg.js → index-D3XkEo8t.js} +1 -1
- package/dist/client/assets/{index-FOz1yCID.js → index-D47f-PFy.js} +1 -1
- package/dist/client/assets/{index-DeyF98wZ.js → index-DgsWrxen.js} +1 -1
- package/dist/client/assets/{index-CBkYTSk4.js → index-FkXidNHj.js} +1 -1
- package/dist/client/assets/{index--n-dBO4n.js → index-cls_6rd9.js} +1 -1
- package/dist/client/assets/{index-DL6tNiwC.js → index-mdGKLoWD.js} +1 -1
- package/dist/client/assets/{index-qv1lKMAY.js → index-nKkHSRkb.js} +4 -4
- package/dist/client/assets/{index-redirect-7NIIY2-H.js → index-redirect-D2zoJEqW.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D2W8J0Sg.js → infiniteQueryObserver-D7k-PkZ6.js} +1 -1
- package/dist/client/assets/{infra-billing-BjnHYAtH.js → infra-billing-lE5HyC-e.js} +1 -1
- package/dist/client/assets/{input-Dw_TZvOF.js → input-BgRPV9Bc.js} +1 -1
- package/dist/client/assets/{input-9LgasDbE.js → input-DngpeZVh.js} +1 -1
- package/dist/client/assets/{input-EAOo-JzH.js → input-Hsf1nkXM.js} +1 -1
- package/dist/client/assets/{integration-icon-c5d5aRDM.js → integration-icon-CAGkW7Vy.js} +1 -1
- package/dist/client/assets/{label-Bgsg6RCX.js → label-DcafVRIf.js} +1 -1
- package/dist/client/assets/{last-preview-page-BHdE8VOh.js → last-preview-page-BGeX2_0f.js} +1 -1
- package/dist/client/assets/{layout-38S5RZcK.js → layout-Cfj-m9Vm.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DIghDqst.js → legacy-agents-deep-CCrce5H7.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Cwlrj11s.js → legacy-main-redirect-BVdYhAaQ.js} +1 -1
- package/dist/client/assets/{library-DNT0Vlf2.js → library-CtjRCYrQ.js} +1 -1
- package/dist/client/assets/{login-DPHQRhM8.js → login-GKg8GpoY.js} +1 -1
- package/dist/client/assets/{markdown-lF3Contj.js → markdown-Fz2AMvvg.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D-GVC0tc.js → mcp-app-renderer-HogOC3ED.js} +1 -1
- package/dist/client/assets/{mcp-oauth-U4XVBJvp.js → mcp-oauth-qdU_HYnI.js} +1 -1
- package/dist/client/assets/{members-rlKFIDOd.js → members-oZ2JcSPa.js} +1 -1
- package/dist/client/assets/{message-templates-COCKPF_j.js → message-templates-wJN9a2dq.js} +1 -1
- package/dist/client/assets/{mini-report-page-4fm2Gma4.js → mini-report-page-Dn9HZU--.js} +1 -1
- package/dist/client/assets/mock-board-DH9Tffqt.js +90 -0
- package/dist/client/assets/{monaco-editor-CpryQexh.js → monaco-editor-BclCUfzv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-amLI2_4T.js → monitoring-stats-row-Dpg2dq7g.js} +1 -1
- package/dist/client/assets/{multi-select-DktytD4b.js → multi-select-BBOHfLXQ.js} +1 -1
- package/dist/client/assets/{mustache-bGjyq4Y8.js → mustache-hckfV8Mc.js} +1 -1
- package/dist/client/assets/{oauth-callback-BGv_pC2u.js → oauth-callback-CotnqZr8.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DYfIZtC5.js → oauth-callback-ai-provider-Bh1LI6or.js} +1 -1
- package/dist/client/assets/{onboarding-JPD5RTmZ.js → onboarding-D4HY7XPs.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-sNbzDk5B.js → optimistic-project-sidebar-views-BqE9-IPQ.js} +1 -1
- package/dist/client/assets/{org-file-open-context-BdlrYhRi.js → org-file-open-context-RAQRxz7Y.js} +1 -1
- package/dist/client/assets/{organization-choice-BmFHTd6w.js → organization-choice-Cbwl3aYW.js} +1 -1
- package/dist/client/assets/{orgs-BLZZjg7h.js → orgs-BOm76Qov.js} +1 -1
- package/dist/client/assets/{page-seo-form-B63QGw1B.js → page-seo-form-S97ODJb7.js} +1 -1
- package/dist/client/assets/{pair-DfGiG3T_.js → pair-DbMQbz7t.js} +1 -1
- package/dist/client/assets/{plan-ladder-C6XrZTK_.js → plan-ladder-ClbbuzfM.js} +1 -1
- package/dist/client/assets/{popover-DXqnrxWm.js → popover-DHIkZZwQ.js} +1 -1
- package/dist/client/assets/{post-calendar-BEqoPsPL.js → post-calendar-DvSRyUm7.js} +1 -1
- package/dist/client/assets/{post-editor-Bgv2aEHo.js → post-editor-DXEU7s2o.js} +1 -1
- package/dist/client/assets/{preview-content-BzJz-rqC.js → preview-content-BtWytI1q.js} +1 -1
- package/dist/client/assets/{preview-dialog-C36d2-QU.js → preview-dialog-OzfdHBBk.js} +1 -1
- package/dist/client/assets/{primitives-CILwTmm9.js → primitives-DLh0L8ih.js} +1 -1
- package/dist/client/assets/{profile-wM3nq8sT.js → profile-VoVqqpuY.js} +1 -1
- package/dist/client/assets/{project-app-view-B18knvHF.js → project-app-view-DpLfdpL2.js} +1 -1
- package/dist/client/assets/{project-feed-CagoiOgJ.js → project-feed-a0SRH40x.js} +1 -1
- package/dist/client/assets/{project-icon-DcnxWFko.js → project-icon-Dt_k_hQy.js} +1 -1
- package/dist/client/assets/project-reports-Bk5BmKl4.js +1 -0
- package/dist/client/assets/project-tasks-BRrKkill.js +1 -0
- package/dist/client/assets/{prompts-BYFEa2h4.js → prompts-B1SyYTL0.js} +1 -1
- package/dist/client/assets/record-editor-CpnzJCaG.js +1 -0
- package/dist/client/assets/{redirect-editor-CnmXhshy.js → redirect-editor-5yzH5kJ-.js} +1 -1
- package/dist/client/assets/{registry-layout-CO1epL8c.js → registry-layout-BOjfbx0W.js} +1 -1
- package/dist/client/assets/registry-rQQyAfb6.js +2 -0
- package/dist/client/assets/reports-Ck0M_7wE.js +1 -0
- package/dist/client/assets/{reports-Dz80d2QD.js → reports-fMF8-4_i.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BsZYJKFw.js → reports-onboarding-BYaeqyQv.js} +1 -1
- package/dist/client/assets/{reports-tab-EPHyWKvN.js → reports-tab-CXSSXSVr.js} +2 -2
- package/dist/client/assets/{repositories-dTK3uJ7B.js → repositories-BBwZB-kM.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DBLrlkWB.js → repository-import-picker-BBpOZXsN.js} +1 -1
- package/dist/client/assets/{repository-picker-vqQMlbpT.js → repository-picker-CfD8NzRM.js} +1 -1
- package/dist/client/assets/{require-capability-W3M3ed6h.js → require-capability-BASN-Vyd.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DC4bK3NA.js → required-auth-layout-DlBZkx8e.js} +1 -1
- package/dist/client/assets/{reset-password-Bw7rbc8I.js → reset-password-BOMK7K-7.js} +1 -1
- package/dist/client/assets/{resizable-B_I79GN8.js → resizable-Ch3JDnYL.js} +1 -1
- package/dist/client/assets/{review-settings-CJsad7fK.js → review-settings-Bex1hdqn.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-g27yMK7k.js → rich-text-link-control-DTZMDLIw.js} +1 -1
- package/dist/client/assets/{roles-CDRoBq55.js → roles-wsvlJ7ed.js} +1 -1
- package/dist/client/assets/{route-BruqcMqr.js → route-B5u_glun.js} +1 -1
- package/dist/client/assets/{route-DGrkXM2z.js → route-MZ4GFC5q.js} +1 -1
- package/dist/client/assets/{route-4XtYc2Ky.js → route-W-Jj2n6u.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CO-y-ACU.js → runnable-block-editor-Dy0rH5lU.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-D_8Qa0hB.js → sandbox-lifecycle-context-CIMm9hbd.js} +1 -1
- package/dist/client/assets/{schema-RsSldpa7.js → schema-DghDa6ek.js} +1 -1
- package/dist/client/assets/{scroll-area-DLgeDa9R.js → scroll-area-Bz1vCdzu.js} +1 -1
- package/dist/client/assets/{search-input-CQqhqXmZ.js → search-input-1ZuaPRD7.js} +1 -1
- package/dist/client/assets/{secrets-CFlOEQnu.js → secrets-DLdPUMBL.js} +1 -1
- package/dist/client/assets/{sections-editor-CJ1_oViR.js → sections-editor-BPeiNTic.js} +1 -1
- package/dist/client/assets/{select-C6j3bHbU.js → select-CdddrVx0.js} +1 -1
- package/dist/client/assets/{select-model-BsBUXM5E.js → select-model-BF_1NMgR.js} +1 -1
- package/dist/client/assets/{seo-editor-CqiBU4aN.js → seo-editor-CIVS059r.js} +1 -1
- package/dist/client/assets/{settings-tab-39j0L8io.js → settings-tab-ASIRJjj3.js} +1 -1
- package/dist/client/assets/{sheet-yKKRJGVA.js → sheet-CvOZfy0z.js} +1 -1
- package/dist/client/assets/{shell-layout-DUllgRrj.js → shell-layout-CRL_zfb1.js} +1 -1
- package/dist/client/assets/{sidebar-0NBbAcoO.js → sidebar-CV7ufyrR.js} +1 -1
- package/dist/client/assets/{skill-preview-C165TBMS.js → skill-preview-BbMw8FqN.js} +1 -1
- package/dist/client/assets/{skills-_N8f2nsw.js → skills-6iZZYNFv.js} +1 -1
- package/dist/client/assets/{sso-b4zihAaX.js → sso-SdEpd0cn.js} +1 -1
- package/dist/client/assets/{store-BxMh7GID.js → store-DCS-Gmyp.js} +1 -1
- package/dist/client/assets/store-registry-DYMg0tKB.js +2 -0
- package/dist/client/assets/{switch-BtXPXo_j.js → switch-DvCQgbRQ.js} +1 -1
- package/dist/client/assets/{synced-repos-DemfexbS.js → synced-repos-D5oMhxJF.js} +1 -1
- package/dist/client/assets/{table-CJRAm-V4.js → table-BxWM9cyb.js} +1 -1
- package/dist/client/assets/{tabs-ZML7sfwI.js → tabs-L4f-E-B1.js} +1 -1
- package/dist/client/assets/{task-board-f3GCJvgs.js → task-board-Cp2U1K9O.js} +1 -1
- package/dist/client/assets/{task-route-DbM9IwcH.js → task-route-CNEvIr3Q.js} +1 -1
- package/dist/client/assets/{task-status-CNJDcBko.js → task-status-DPV9M5UQ.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-u-ior8SC.js → taskboard-analytics-C-CFwikI.js} +1 -1
- package/dist/client/assets/{tasks-KTAUFc1i.js → tasks-C5Fy83uo.js} +1 -1
- package/dist/client/assets/tasks-CzGA7vaG.js +1 -0
- package/dist/client/assets/{textarea-Ch_8EMpS.js → textarea-DaZKtfNF.js} +1 -1
- package/dist/client/assets/{thread-intent-B8_Igzy9.js → thread-intent-BxYojNc6.js} +1 -1
- package/dist/client/assets/{thread-route-BF1kNRK0.js → thread-route-DnPIeWG_.js} +1 -1
- package/dist/client/assets/{thread-route-DfLkrN6w.js → thread-route-SAxtri8_.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DxaFuNuW.js → thread-sheet-body-rvw_0vLm.js} +1 -1
- package/dist/client/assets/{toggle-group-D35jMnWw.js → toggle-group-CdWbHpWf.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BeNQ87YG.js → toolbar-icon-button-D59rYDPz.js} +1 -1
- package/dist/client/assets/{tooltip-D3hrSfAd.js → tooltip-DUmiRhmo.js} +1 -1
- package/dist/client/assets/{track-uxF1GB69.js → track-DYgFTCAU.js} +1 -1
- package/dist/client/assets/{types-DizT6fP4.js → types-B3eKh2CO.js} +1 -1
- package/dist/client/assets/{usage-stats-B-M5giW9.js → usage-stats-CHHoYVjA.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B2tolGlx.js → use-ai-providers-B5dR5vUw.js} +1 -1
- package/dist/client/assets/{use-automations-CQkQXgF8.js → use-automations-CTceOFoF.js} +1 -1
- package/dist/client/assets/{use-autosave-C2vvEbwM.js → use-autosave-URyqsdnZ.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CXdhJYrm.js → use-connect-companion-Dfdpnf2o.js} +1 -1
- package/dist/client/assets/{use-connection-BtGGmt0M.js → use-connection-BrqTSVj6.js} +1 -1
- package/dist/client/assets/{use-copy-SbhQGjoA.js → use-copy-BSyL6TSO.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bm4ZDhWK.js → use-create-virtual-mcp-Dw8Zc1Ud.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Dn1q05u_.js → use-date-fns-locale-DM4yM54o.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-ZIdQpnNR.js → use-debounced-autosave-DjQzT60v.js} +1 -1
- package/dist/client/assets/{use-debounced-value-2oFF1WEN.js → use-debounced-value-BjcwhDr9.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DqoTIuu7.js → use-deco-credits-D21Pbmyv.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CuTXTRBR.js → use-decopilot-events-CNzthIdX.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DzINDI7q.js → use-delete-connection-CVSY4ll3.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CBdLmf5q.js → use-deployment-admin-C-GqCr8K.js} +1 -1
- package/dist/client/assets/{use-entitlements-BivgY5kT.js → use-entitlements-tLMMxrZd.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-dC7p2k6s.js → use-fast-preview-draft-url-Dk8Ktazm.js} +1 -1
- package/dist/client/assets/{use-file-configs-BX0L-9mE.js → use-file-configs-DRzLwnWx.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-ZhvdGkpY.js → use-infinite-scroll-BOW7TpXu.js} +1 -1
- package/dist/client/assets/{use-join-requests-CHaP7Kis.js → use-join-requests-CqPFDa-P.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DgXNGjZx.js → use-main-panel-tabs-r6NEI9Bh.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-I2D4FtBo.js → use-mcp-auth-status-D1-JP6_b.js} +1 -1
- package/dist/client/assets/{use-mcp-client-ywBbWlsZ.js → use-mcp-client-CgD872ML.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CfR5Gc7W.js → use-mcp-prompts-XZ7YPEUr.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C1Bm7_BP.js → use-mcp-tools-KwKOV8rm.js} +1 -1
- package/dist/client/assets/{use-members-vXo7GDuE.js → use-members-R8U953eg.js} +1 -1
- package/dist/client/assets/{use-mobile-DaGIh2Ci.js → use-mobile-AM6xFr_B.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-JIUkpR0J.js → use-navigate-to-agent-OO46tTZp.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BiRRNmol.js → use-open-billing-url-BWUxLBlY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BHqa5vb4.js → use-org-auth-client-Bd-VOGg-.js} +1 -1
- package/dist/client/assets/{use-org-fs-B2BTkwLF.js → use-org-fs-BZtNVHKP.js} +1 -1
- package/dist/client/assets/{use-org-notice-BOycsuXQ.js → use-org-notice-Dyky16Pk.js} +1 -1
- package/dist/client/assets/{use-org-sso-BUbkUyRE.js → use-org-sso-Z_koUL2r.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Cifap3T7.js → use-organization-roles-fQNOgdP0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BHFsVXOd.js → use-organization-settings-Bd7AH03U.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CQQhAdgp.js → use-panel-navigate-DxN5IO61.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C1QgaWe2.js → use-project-native-view-presence-BXk9uZik.js} +1 -1
- package/dist/client/assets/{use-project-scope-ByZYyEr6.js → use-project-scope-D7rsxoOl.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dg52VSSM.js → use-registry-connections-CntwhWiV.js} +1 -1
- package/dist/client/assets/{use-releases-3QtKRlMJ.js → use-releases-BdeuWcKl.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CuC_fY4R.js → use-reports-diagnostic-e6Hr1e9d.js} +1 -1
- package/dist/client/assets/{use-route-default-main-BK0WdK-8.js → use-route-default-main-CEHe4dR8.js} +1 -1
- package/dist/client/assets/{use-secrets-BDVXCurZ.js → use-secrets-zKiWKge6.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BvWi0nGH.js → use-section-preview-base-CZmbFB2G.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DI3vOHvv.js → use-session-runtime-B7GVhOZP.js} +1 -1
- package/dist/client/assets/{use-tags-BUyBYPKz.js → use-tags-SPOeXMVI.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CTl1JMWT.js → use-task-board-analytics-DxZEgds6.js} +1 -1
- package/dist/client/assets/{use-task-metadata-2M_NCkGF.js → use-task-metadata-Cw595lWp.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DWntNrGT.js → use-thread-outputs-CMynNSlr.js} +1 -1
- package/dist/client/assets/{use-view-mode-25w-ODpd.js → use-view-mode-aCYPhx0y.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-72ymGbkB.js → use-virtual-mcp-JT5XfjaF.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-2tolEpNN.js +1 -0
- package/dist/client/assets/{useQueries-cRQlxMAB.js → useQueries-CHy_Rsz7.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B_PS73nL.js +1 -0
- package/dist/client/assets/{users-D8tFka2r.js → users-C2T36D4M.js} +1 -1
- package/dist/client/assets/{utils-Dxw1OvqE.js → utils-BKVYxzxg.js} +1 -1
- package/dist/client/assets/{variant-calendar-CxupiN2W.js → variant-calendar-cHDBecFa.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-Bv3rxn78.js → variant-matcher-override-fecd-gJF.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CDEffjIb.js → view-mode-toggle-m_5iG4rS.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C2HrZtbe.js → virtual-mcp-Gk9zfI9X.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-_uguOLHG.js +0 -1
- package/dist/client/assets/agent-deck-CzayJGW9.js +0 -1
- package/dist/client/assets/agent-file-itGu49yN.js +0 -1
- package/dist/client/assets/agent-library-file-Cb2ahfzi.js +0 -1
- package/dist/client/assets/agent-settings-DLW7Y42b.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Dzhq4cRN.js +0 -2
- package/dist/client/assets/agent-view-BGVrukNO.js +0 -1
- package/dist/client/assets/api-keys-CpLluBDt.js +0 -1
- package/dist/client/assets/app-editor-BHLxcxFh.js +0 -1
- package/dist/client/assets/automations-Dj7dLQYg.js +0 -1
- package/dist/client/assets/category-editor-Mr_TSzCC.js +0 -1
- package/dist/client/assets/mock-board-BhU9kaH-.js +0 -90
- package/dist/client/assets/project-reports-BC8DTIPY.js +0 -1
- package/dist/client/assets/project-tasks-Bn_dTITj.js +0 -1
- package/dist/client/assets/record-editor-if7xFrnd.js +0 -1
- package/dist/client/assets/registry-4lgPOb48.js +0 -2
- package/dist/client/assets/reports-88p9EFJ8.js +0 -1
- package/dist/client/assets/store-registry-DNYUtZkG.js +0 -2
- package/dist/client/assets/tasks-BgOq8Mh_.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CDV0bH8B.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BoYSe3ey.js +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/route-BruqcMqr.js","assets/index-qv1lKMAY.js","assets/index-DTEWW9mB.css","assets/index-O_d7IbvI.js","assets/ArrowUp-cZ3ikcyU.js","assets/chat-context-C7331aUi.js","assets/use-panel-navigate-CQQhAdgp.js","assets/thread-route-DfLkrN6w.js","assets/use-project-scope-ByZYyEr6.js","assets/use-virtual-mcp-72ymGbkB.js","assets/use-mcp-client-ywBbWlsZ.js","assets/auth-DVaX653V.js","assets/github-repo-BknN0SVI.js","assets/autosend-RrsCJCzF.js","assets/thread-intent-B8_Igzy9.js","assets/slugify-CEUa2lfQ.js","assets/hooks-BILYBqoD.js","assets/backoff-8mStPHYB.js","assets/task-board-f3GCJvgs.js","assets/schema-RsSldpa7.js","assets/use-is-desktop-app-BNujXJc_.js","assets/use-entitlements-BivgY5kT.js","assets/use-ai-providers-B2tolGlx.js","assets/location-oTTXFrSF.js","assets/use-decopilot-events-CuTXTRBR.js","assets/use-organization-settings-BHFsVXOd.js","assets/gateway-client-y-HOSL5d.js","assets/tooltip-D3hrSfAd.js","assets/index-DeyF98wZ.js","assets/dialog-DolMafrK.js","assets/X-BxXVKNVf.js","assets/drawer-bj1-7vWq.js","assets/collection-search-Cic15zOR.js","assets/SearchMd-DtsFz9nf.js","assets/use-mobile-DaGIh2Ci.js","assets/use-mcp-prompts-CfR5Gc7W.js","assets/index-B1Ek4vGo.js","assets/form-WXGHvZBn.js","assets/label-Bgsg6RCX.js","assets/input-EAOo-JzH.js","assets/utils-CVEq3hMx.js","assets/org-file-open-context-BdlrYhRi.js","assets/input-9LgasDbE.js","assets/command-palette-store-XBis5rCY.js","assets/chat-draft-CcTVi1jY.js","assets/use-session-runtime-DI3vOHvv.js","assets/ArrowRight-BXtyrNon.js","assets/agent-icon-lNRuSVKm.js","assets/AlertCircle-t16GmFFD.js","assets/Tool01-C3d-Z_qI.js","assets/ArrowLeft-HY7Uv4__.js","assets/Tool02-DdREhml_.js","assets/TrendUp01-yM3PpNYw.js","assets/ZoomOut-DGKL8Wmf.js","assets/Users03-BMu5SlYc.js","assets/CheckCircle-B8akZhwz.js","assets/Check-BTpIoLcV.js","assets/ChevronUp-CT0pFhxd.js","assets/ChevronRight-CKnzeSGF.js","assets/ChevronSelectorVertical-DLLN3Jrh.js","assets/DotsVertical-DrQAveG6.js","assets/UserSquare-C2XBN0YV.js","assets/Copy01-CgV4lgMd.js","assets/CreditCard01-CMgoHghV.js","assets/Database01-B6M3QRum.js","assets/MessageCircle01-p8E5OK7n.js","assets/Download01-CS4QK_TT.js","assets/Printer-AhWbME7S.js","assets/Settings02-mu2qB12n.js","assets/Eye-CtzcB9Un.js","assets/File02-DD4AutCj.js","assets/Share07-BGCT37w6.js","assets/GitBranch01-cLKM3ULo.js","assets/Globe01-CJEubxiw.js","assets/SwitchHorizontal01-CF7Zn7df.js","assets/HardDrive-D3CIiO3U.js","assets/Image01-DMSxcNyE.js","assets/Key01-CvpaWm2K.js","assets/Link01-BTaDUtVY.js","assets/LinkExternal01-De6j4Np2.js","assets/Monitor01-BJeNu-a1.js","assets/Sun-Dhb69X-z.js","assets/Package-DK9dOLCk.js","assets/Palette-BqLqu4oe.js","assets/Play-CY5YidfV.js","assets/Plus-DYzEMfHc.js","assets/SearchLg-DENgfmiG.js","assets/Shield01-zQZfrJSD.js","assets/Stars01-ClJSo3pH.js","assets/Trash01-CBgUpFSF.js","assets/Upload01-CanSzxYG.js","assets/User01-D2w9GFKA.js","assets/Users01-BQOAhGFf.js","assets/XCircle-DP3A0LYH.js","assets/XClose-Dd96BjAd.js","assets/Zap-BANQ7xNU.js","assets/select-C6j3bHbU.js","assets/usage-stats-B-M5giW9.js","assets/use-copy-SbhQGjoA.js","assets/markdown-lF3Contj.js","assets/format-time-BtXRrtv4.js","assets/differenceInSeconds-C3x8sHUj.js","assets/tabs-ZML7sfwI.js","assets/use-deco-credits-DqoTIuu7.js","assets/toggle-group-D35jMnWw.js","assets/tool-namespace-DmnQIdtF.js","assets/use-open-billing-url-BiRRNmol.js","assets/decopilot-cUeMFk1c.js","assets/checkbox-B0iv1edQ.js","assets/ai-providers-logos-DD3qZ33J.js","assets/avatar-DMDwxyOC.js","assets/download-app-dialog-DWrK0S2y.js","assets/popover-DXqnrxWm.js","assets/index-jx3Y2kdg.js","assets/input-Dw_TZvOF.js","assets/hooks-eaxU4Dzu.js","assets/use-org-fs-B2BTkwLF.js","assets/dropdown-menu-DKi6r-jI.js","assets/question-004-sINsf4GQ.js","assets/use-members-vXo7GDuE.js","assets/use-org-auth-client-BHqa5vb4.js","assets/feature-paywall-DMe1WEQb.js","assets/plan-ladder-C6XrZTK_.js","assets/add-connection-dialog-DgwnOh0x.js","assets/extract-connection-data-amssTZqV.js","assets/metadata-dUsYcpuu.js","assets/github-D4UJ99TO.js","assets/connection-_jyHU_UL.js","assets/connection-card-vQXsRR_o.js","assets/use-registry-connections-Dg52VSSM.js","assets/use-connection-BtGGmt0M.js","assets/useInfiniteQuery-CDV0bH8B.js","assets/infiniteQueryObserver-D2W8J0Sg.js","assets/retry-i8LvYSZg.js","assets/connection-slug-CITJ0kGN.js","assets/integration-icon-c5d5aRDM.js","assets/textarea-Ch_8EMpS.js","assets/connection-form-helpers-DYV1KRrv.js","assets/authenticate-and-persist-oauth--PwyxHrV.js","assets/mcp-oauth-U4XVBJvp.js","assets/collection-tabs-BTXpTMr3.js","assets/badge-B04u7Iz2.js","assets/use-infinite-scroll-ZhvdGkpY.js","assets/useSuspenseInfiniteQuery-BoYSe3ey.js","assets/pair-DfGiG3T_.js","assets/collapsible-CShI5lwF.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-D-GVC0tc.js","assets/types-DizT6fP4.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/shell-layout-DUllgRrj.js","assets/anchors-yqDzZN4K.js","assets/use-org-notice-BOycsuXQ.js","assets/command-DUkP3zmM.js","assets/index-DL6tNiwC.js","assets/project-icon-DcnxWFko.js","assets/required-auth-layout-DC4bK3NA.js","assets/use-org-sso-BUbkUyRE.js","assets/shell-layout-CuFt8bor.css","assets/sheet-yKKRJGVA.js","assets/use-navigate-to-agent-JIUkpR0J.js","assets/use-thread-outputs-DWntNrGT.js","assets/file-type-icon-BerVMYpw.js","assets/decofile-api-BARSeSQx.js","assets/use-releases-3QtKRlMJ.js","assets/serial-task-queue-CGOeQgpr.js","assets/sandbox-lifecycle-context-D_8Qa0hB.js","assets/sandbox-url-D3mC8qhT.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/empty-state-DPrgdHnO.js","assets/index-6k60hctk.js","assets/index-DXrLYuI6.js","assets/resizable-B_I79GN8.js","assets/use-route-default-main-BK0WdK-8.js","assets/toolbar-icon-button-BeNQ87YG.js","assets/alert-dialog-BZ1o5787.js","assets/task-status-CNJDcBko.js","assets/use-main-panel-tabs-DgXNGjZx.js","assets/use-mcp-tools-C1Bm7_BP.js","assets/use-task-metadata-2M_NCkGF.js","assets/use-project-native-view-presence-C1QgaWe2.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-BX0L-9mE.js","assets/site-slug-uya6Wp4-.js","assets/virtual-mcp-C2HrZtbe.js","assets/legacy-main-redirect-Cwlrj11s.js","assets/preview-dialog-C36d2-QU.js","assets/preview-content-BzJz-rqC.js","assets/file-preview-x7-MgY1v.js","assets/utils-Dxw1OvqE.js","assets/editor-sstVZH8z.js","assets/file-share-button-CHL077fF.js","assets/blocks-preview-workspace-context-DSGBiDKx.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as R,b as Z,f as Qr,d as za,j as i,B as de,L as Do,l as I,eG as Ro,eH as $o,r as L,M as Xe,m as Xn,K as at,aw as ll,h as Tt,t as Ge,J as ol,_ as zt,n as pr,e as Gn,x as Eo,a as cl,as as Zr,ai as Mo,D as Io,ax as Fn,u as zo,au as Lo,v as dl,N as gi,o as xi,ag as Po,F as Oo,eI as Fo,E as Ho,eJ as qo}from"./index-qv1lKMAY.js";import{T as st,n as Uo,i as Ko,a as Wo,b as ki,K as Go,P as Vo,d as Qo,D as Zo,f as Yo,e as Xo,g as Jo,s as ec,S as tc,v as sc,u as nc,C as rc}from"./rich-text-link-control-g27yMK7k.js";import{u as ul}from"./use-task-board-analytics-CTl1JMWT.js";import{C as ac}from"./combobox-DfVRTnqi.js";import{e as ic,W as lc,X as oc,Z as cc,x as dc,aH as uc,aE as fc,aI as La,aJ as hc,U as Zn,aK as bi,aL as pc,w as fl,c as Pa,aM as mc,d as hl,K as gc,O as Yr,z as Mr,an as Oa,a5 as Xr,aN as xc,n as kc}from"./agent-icon-lNRuSVKm.js";import{g as Ue}from"./get-initials-D-f_fDFw.js";import{A as Ke}from"./avatar-DMDwxyOC.js";import{T as bc,a as yc,c as wc}from"./tooltip-D3hrSfAd.js";import{i as Jn}from"./CheckCircle-B8akZhwz.js";import{i as Fa}from"./ChevronRight-CKnzeSGF.js";import{i as pl}from"./SwitchHorizontal01-CF7Zn7df.js";import{s as dr}from"./Plus-DYzEMfHc.js";import{i as Yn}from"./X-BxXVKNVf.js";import{a as or,b as Ir,P as zr}from"./popover-DXqnrxWm.js";import{a as we,g as Ha,D as Ve,b as Qe,c as Ze,h as Hn,i as qn,j as Un}from"./dropdown-menu-DKi6r-jI.js";import{b as vc,S as jt,m as mr,s as ml,k as gl,t as xl,n as kl,o as bl,q as _a,l as ur,r as yl,f as It,T as wl,e as Ye,P as Jr,v as jc,w as vl,x as Sc,y as Tc,z as Cc,A as Nc,B as _c,u as Bc,C as Ac,a as yi,D as Dc,E as Rc,F as jl,G as $c,i as Ec,c as Mc,H as Ic,I as zc,J as Lc,L as Ba,K as wi,M as Pc,N as Oc,O as Fc,Q as Hc,R as qc}from"./task-route-DbM9IwcH.js";import{R as Uc}from"./repository-import-picker-DBLrlkWB.js";import{a as qa}from"./use-members-vXo7GDuE.js";import{a as Ua}from"./format-time-BtXRrtv4.js";import{u as Ka,a as Kc,b as Wc}from"./use-tags-BUyBYPKz.js";import{a as Wa,g as Sl}from"./use-organization-settings-BHFsVXOd.js";import{d as Pr,b as Or,D as Fr,h as Tl,c as Cl,e as Nl}from"./dialog-DolMafrK.js";import{B as Gc,a as Vc,b as vi,c as Qc,d as Zc,e as Yc}from"./breadcrumb-BJ4kb7XU.js";import{C as Ga}from"./calendar-Luncm321.js";import{A as ji,a as Xc,b as Jc}from"./alert-BXMnJYMc.js";import{C as ed,a as td,b as sd}from"./collapsible-CShI5lwF.js";import{u as ja}from"./use-copy-SbhQGjoA.js";import{i as qt}from"./AlertCircle-t16GmFFD.js";import{i as Vn}from"./Check-BTpIoLcV.js";import{t as Va}from"./ChevronUp-CT0pFhxd.js";import{i as _l,b as nd}from"./UserSquare-C2XBN0YV.js";import{a as rd}from"./Copy01-CgV4lgMd.js";import{i as Aa}from"./Globe01-CJEubxiw.js";import{n as fr}from"./LinkExternal01-De6j4Np2.js";import{m as ad,a as id,M as Bl}from"./markdown-lF3Contj.js";import{R as ld,e as od,S as De,C as cd,D as dd,i as Al,n as ud,f as fd}from"./task-board-f3GCJvgs.js";import{a as hd,E as Qa,r as wt,t as pd,v as md,w as Dl,x as Ft,y as Si,z as gd,A as xd,B as Ti,C as kd,G as hr,N as Kt,m as St,H as Hr,T as Rl,R as Za,I as Ya,h as bd,J as yd,K as wd,L as vd,O as jd,Q as Sd,s as $l,S as Td,u as El,b as Ml,U as Cd,c as Nd}from"./index-B1Ek4vGo.js";import{B as _d,c as Bd,t as Ad,C as Il,f as Dd,g as Ci,s as Rd,m as Ni,a as _i,b as $d,d as Bi,e as Ed,h as Md,i as Id,j as zd,k as Ld,l as Pd,n as Od}from"./index-CBkYTSk4.js";import{i as Fd}from"./Link01-BTaDUtVY.js";import{s as Hd}from"./Trash01-CBgUpFSF.js";import{c as qd,e as zl,s as Ll}from"./hooks-eaxU4Dzu.js";import{n as Ud}from"./Download01-CS4QK_TT.js";import{i as Kd}from"./File02-DD4AutCj.js";import{d as Xa,e as Ja,c as ei,C as ti,b as Qn,a as qr}from"./command-DUkP3zmM.js";import{u as Wd}from"./use-org-auth-client-BHqa5vb4.js";import{h as Gd,b as Vd}from"./use-org-fs-B2BTkwLF.js";import{d as Qd,S as Ai}from"./sandbox-start-errors-BK_aDCyt.js";import{p as Zd,r as Yd,u as Pl,G as Xd}from"./repository-picker-vqQMlbpT.js";import{i as Jd,c as eu}from"./hooks-BILYBqoD.js";import{u as Ol}from"./use-connection-BtGGmt0M.js";import{e as tu,b as su}from"./use-virtual-mcp-72ymGbkB.js";import{s as nu}from"./use-project-scope-ByZYyEr6.js";import{l as ru}from"./github-repo-scope-C8GSbvaz.js";import{s as au}from"./User01-D2w9GFKA.js";import{c as iu,S as lu,a as ou,b as cu}from"./sheet-yKKRJGVA.js";import{T as du}from"./thread-sheet-body-DxaFuNuW.js";import{u as uu}from"./use-mcp-client-ywBbWlsZ.js";import{i as fu}from"./ArrowUp-cZ3ikcyU.js";import{i as hu}from"./ChevronSelectorVertical-DLLN3Jrh.js";import{u as pu}from"./use-open-billing-url-BiRRNmol.js";import{s as mu,w as gu}from"./chat-draft-CcTVi1jY.js";import{u as xu}from"./shell-layout-DUllgRrj.js";const ku={github:"pull",gitlab:"-/merge_requests",bitbucket:"pull-requests"};function bu(t,e){return`${Yd(t)}/${ku[t.provider]}/${e}`}const yu=[{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}],wu={"api.github.com":"github.com","api.bitbucket.org":"bitbucket.org"};function vu(t){const e=t.toLowerCase();return wu[e]??e}function ju(t,e){const s=Number(t[3]);if(!Number.isSafeInteger(s)||s<=0)return null;const r=vu(t[1]),n=t[2],a=e?decodeURIComponent(n):n;if(/^\d+$/.test(a))return null;const l=Zd(`https://${r}/${a}`);return l?{repo:l,number:s,url:bu(l,s)}:null}function Su(t){const e=t.trim();if(!e)return null;for(const{re:s,api:r}of yu){const n=s.exec(e),a=n?ju(n,r===!0):null;if(a)return a}return null}function Tu(){const t=R.c(5),e=Z(),s=Qr({strict:!1}).org??"",{data:r}=ul();if(!r?.isCrossOrgView)return null;let n;t[0]!==s||t[1]!==e?(n=e("taskBoard.analytics.bannerOrg",{org:s}),t[0]=s,t[1]=e,t[2]=n):n=t[2];let a;return t[3]!==n?(a=i.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:n}),t[3]=n,t[4]=a):a=t[4],a}function Cu(){const t=R.c(28),e=Z(),s=za(),r=Qr({strict:!1}).org??"",{data:n}=ul();if(!n?.isTaskBoardAdmin)return null;let a;t[0]!==n.orgs?(a=n.orgs.map(Nu),t[0]=n.orgs,t[1]=a):a=t[1];const l=a;let o;t[2]!==s?(o=b=>s({to:"/$org/tasks/{-$taskKey}",params:{org:b}}),t[2]=s,t[3]=o):o=t[3];let c;t[4]!==e?(c=e("taskBoard.analytics.orgPickerPlaceholder"),t[4]=e,t[5]=c):c=t[5];let d;t[6]!==e?(d=e("taskBoard.analytics.orgSearch"),t[6]=e,t[7]=d):d=t[7];let u;t[8]!==e?(u=e("taskBoard.analytics.orgEmpty"),t[8]=e,t[9]=u):u=t[9];let f;t[10]!==l||t[11]!==r||t[12]!==o||t[13]!==c||t[14]!==d||t[15]!==u?(f=i.jsx(ac,{options:l,value:r,onChange:o,width:"w-[200px]",placeholder:c,searchPlaceholder:d,emptyMessage:u}),t[10]=l,t[11]=r,t[12]=o,t[13]=c,t[14]=d,t[15]=u,t[16]=f):f=t[16];let h;t[17]!==r?(h={org:r},t[17]=r,t[18]=h):h=t[18];let x;t[19]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(ic,{size:16}),t[19]=x):x=t[19];let g;t[20]!==e?(g=e("taskBoard.analytics.openAnalytics"),t[20]=e,t[21]=g):g=t[21];let p;t[22]!==h||t[23]!==g?(p=i.jsx(de,{size:"sm",variant:"outline",asChild:!0,children:i.jsxs(Do,{to:"/$org/taskboard-analytics",params:h,children:[x,g]})}),t[22]=h,t[23]=g,t[24]=p):p=t[24];let k;return t[25]!==f||t[26]!==p?(k=i.jsxs(i.Fragment,{children:[f,p]}),t[25]=f,t[26]=p,t[27]=k):k=t[27],k}function Nu(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function si(t){const e=R.c(11),{size:s,className:r}=t,n=s===void 0?16:s;let a;e[0]!==r?(a=I("inline-flex shrink-0 items-center justify-center rounded-full",r),e[0]=r,e[1]=a):a=e[1];let l;e[2]!==n?(l={width:n,height:n,backgroundColor:`${Ro}26`},e[2]=n,e[3]=l):l=e[3];const o=n*.6,c=n*.6;let d;e[4]!==o||e[5]!==c?(d=i.jsx("img",{src:$o,alt:"Reviewer",style:{width:o,height:c}}),e[4]=o,e[5]=c,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==l||e[9]!==d?(u=i.jsx("span",{className:a,style:l,children:d}),e[7]=a,e[8]=l,e[9]=d,e[10]=u):u=e[10],u}function _u(t){const e=R.c(30),{editor:s}=t,r=Z(),[n,a]=L.useState(!1),[l,o]=L.useState(""),[c,d]=L.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]!==n?(h=()=>{if(n){a(!1);return}const S=s.getAttributes("link").href;o(typeof S=="string"?S:""),d(!1),a(!0)},e[2]=s,e[3]=n,e[4]=h):h=e[4];const x=h;let g;e[5]!==s?(g=()=>{s.chain().focus().extendMarkRange("link").unsetLink().run(),a(!1)},e[5]=s,e[6]=g):g=e[6];const p=g;let k;e[7]!==l||e[8]!==s||e[9]!==p?(k=()=>{const S=Uo(l);if(S===""){p();return}if(!Ko(S)){d(!0);return}s.chain().focus().extendMarkRange("link").setLink({href:S}).run(),a(!1)},e[7]=l,e[8]=s,e[9]=p,e[10]=k):k=e[10];const b=k;let m;e[11]!==r?(m=r("markdownEditor.link"),e[11]=r,e[12]=m):m=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Fd,{size:14}),e[13]=y):y=e[13];let v;e[14]!==f||e[15]!==m||e[16]!==x?(v=i.jsx(st,{active:f,label:m,onClick:x,children:y}),e[14]=f,e[15]=m,e[16]=x,e[17]=v):v=e[17];let w;e[18]!==f||e[19]!==b||e[20]!==l||e[21]!==s||e[22]!==c||e[23]!==n||e[24]!==p||e[25]!==r?(w=n&&i.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:[i.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":c,placeholder:r("markdownEditor.linkPlaceholder"),value:l,onChange:S=>{o(S.target.value),d(!1)},onKeyDown:S=>{S.key==="Enter"?(S.preventDefault(),b()):S.key==="Escape"&&(S.preventDefault(),a(!1),s.chain().focus().run())},className:I("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",c&&"text-destructive")}),i.jsx(st,{active:!1,label:r("markdownEditor.linkApply"),onClick:b,children:i.jsx(Vn,{size:14})}),f&&i.jsx(st,{active:!1,label:r("markdownEditor.linkRemove"),onClick:p,children:i.jsx(Hd,{size:14})})]}),e[18]=f,e[19]=b,e[20]=l,e[21]=s,e[22]=c,e[23]=n,e[24]=p,e[25]=r,e[26]=w):w=e[26];let j;return e[27]!==v||e[28]!==w?(j=i.jsxs("div",{className:"relative",children:[v,w]}),e[27]=v,e[28]=w,e[29]=j):j=e[29],j}const Sa=()=>{const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},Di=t=>{const e=R.c(2),{children:s}=t;let r;return e[0]!==s?(r=i.jsx("span",{className:"text-[11px] font-semibold leading-none",children:s}),e[0]=s,e[1]=r):r=e[1],r},Fl=[1,2,3],Bu=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Au(t){const e=R.c(20),{editor:s}=t,r=Z(),[n,a]=L.useState(null);let l;e[0]!==s?(l={editor:s,selector:Du},e[0]=s,e[1]=l):l=e[1];const o=hd(l);let c;e[2]!==r?(c=r("markdownEditor.heading1"),e[2]=r,e[3]=c):c=e[3];let d;e[4]!==r?(d=r("markdownEditor.heading2"),e[4]=r,e[5]=d):d=e[5];let u;e[6]!==r?(u=r("markdownEditor.heading3"),e[6]=r,e[7]=u):u=e[7];let f;e[8]!==c||e[9]!==d||e[10]!==u?(f={1:c,2:d,3:u},e[8]=c,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]!==n||e[15]!==o||e[16]!==r?(x=n&&i.jsxs(_d,{editor:s,shouldShow:Bu,appendTo:n,className:"flex items-center gap-0.5 rounded-lg border border-border bg-popover p-1 shadow-md","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[i.jsx(st,{active:o.bold,label:r("markdownEditor.bold"),onClick:()=>s.chain().focus().toggleBold().run(),children:i.jsx(lc,{size:14})}),i.jsx(st,{active:o.italic,label:r("markdownEditor.italic"),onClick:()=>s.chain().focus().toggleItalic().run(),children:i.jsx(oc,{size:14})}),i.jsx(st,{active:o.strike,label:r("markdownEditor.strikethrough"),onClick:()=>s.chain().focus().toggleStrike().run(),children:i.jsx(cc,{size:14})}),i.jsx(st,{active:o.code,label:r("markdownEditor.code"),onClick:()=>s.chain().focus().toggleCode().run(),children:i.jsx(dc,{size:14})}),i.jsx(Sa,{}),Fl.map((p,k)=>i.jsx(st,{active:o.headings[k]??!1,label:h[p],onClick:()=>s.chain().focus().toggleHeading({level:p}).run(),children:i.jsx(Di,{children:`H${p}`})},p)),i.jsx(Sa,{}),i.jsx(st,{active:o.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>s.chain().focus().toggleBulletList().run(),children:i.jsx(pl,{size:14})}),i.jsx(st,{active:o.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>s.chain().focus().toggleOrderedList().run(),children:i.jsx(Di,{children:"1."})}),i.jsx(st,{active:o.blockquote,label:r("markdownEditor.quote"),onClick:()=>s.chain().focus().toggleBlockquote().run(),children:i.jsx(uc,{size:14})}),i.jsx(Sa,{}),i.jsx(_u,{editor:s})]}),e[12]=s,e[13]=h,e[14]=n,e[15]=o,e[16]=r,e[17]=x):x=e[17];let g;return e[18]!==x?(g=i.jsx("div",{ref:a,className:"relative z-20",children:x}),e[18]=x,e[19]=g):g=e[19],g}function Du(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:Fl.map(s=>e.isActive("heading",{level:s})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}function ni(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Wt=ni();function Hl(t){Wt=t}var Ht={exec:()=>null};function le(t,e=""){let s=typeof t=="string"?t:t.source,r={replace:(n,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Oe.caret,"$1"),s=s.replace(n,l),r},getRegex:()=>new RegExp(s,e)};return r}var Ru=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Oe={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)}}>`)},$u=/^(?:[ \t]*(?:\n|$))+/,Eu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ri=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ql=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ul=le(ql).replace(/bull/g,ri).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(),zu=le(ql).replace(/bull/g,ri).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(),ai=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Lu=/^[^\n]+/,ii=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Pu=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ii).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ou=le(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ri).getRegex(),ea="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",li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fu=le("^ {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",li).replace("tag",ea).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Kl=le(ai).replace("hr",gr).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",ea).getRegex(),Hu=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Kl).getRegex(),oi={blockquote:Hu,code:Eu,def:Pu,fences:Mu,heading:Iu,hr:gr,html:Fu,lheading:Ul,list:Ou,newline:$u,paragraph:Kl,table:Ht,text:Lu},Ri=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).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",ea).getRegex(),qu={...oi,lheading:zu,table:Ri,paragraph:le(ai).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ri).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",ea).getRegex()},Uu={...oi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",li).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:Ht,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(ai).replace("hr",gr).replace("heading",` *#{1,6} *[^
|
|
3
|
-
]`).replace("lheading",Ul).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ku=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wl=/^( {2,}|\\)\n(?!\s*$)/,Gu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,er=/[\p{P}\p{S}]/u,ta=/[\s\p{P}\p{S}]/u,ci=/[^\s\p{P}\p{S}]/u,Vu=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ta).getRegex(),Gl=/(?!~)[\p{P}\p{S}]/u,Qu=/(?!~)[\s\p{P}\p{S}]/u,Zu=/(?:[^\s\p{P}\p{S}]|~)/u,Yu=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ru?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Vl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Xu=le(Vl,"u").replace(/punct/g,er).getRegex(),Ju=le(Vl,"u").replace(/punct/g,Gl).getRegex(),Ql="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ef=le(Ql,"gu").replace(/notPunctSpace/g,ci).replace(/punctSpace/g,ta).replace(/punct/g,er).getRegex(),tf=le(Ql,"gu").replace(/notPunctSpace/g,Zu).replace(/punctSpace/g,Qu).replace(/punct/g,Gl).getRegex(),sf=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ci).replace(/punctSpace/g,ta).replace(/punct/g,er).getRegex(),nf=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,er).getRegex(),rf="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",af=le(rf,"gu").replace(/notPunctSpace/g,ci).replace(/punctSpace/g,ta).replace(/punct/g,er).getRegex(),lf=le(/\\(punct)/,"gu").replace(/punct/g,er).getRegex(),of=le(/^<(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(),cf=le(li).replace("(?:-->|$)","-->").getRegex(),df=le("^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",cf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ur=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,uf=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ur).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Zl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Ur).replace("ref",ii).getRegex(),Yl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",ii).getRegex(),ff=le("reflink|nolink(?!\\()","g").replace("reflink",Zl).replace("nolink",Yl).getRegex(),$i=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,di={_backpedal:Ht,anyPunctuation:lf,autolink:of,blockSkip:Yu,br:Wl,code:Wu,del:Ht,delLDelim:Ht,delRDelim:Ht,emStrongLDelim:Xu,emStrongRDelimAst:ef,emStrongRDelimUnd:sf,escape:Ku,link:uf,nolink:Yl,punctuation:Vu,reflink:Zl,reflinkSearch:ff,tag:df,text:Gu,url:Ht},hf={...di,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Ur).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ur).getRegex()},Da={...di,emStrongRDelimAst:tf,emStrongLDelim:Ju,delLDelim:nf,delRDelim:af,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",$i).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:le(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",$i).getRegex()},pf={...Da,br:le(Wl).replace("{2,}","*").getRegex(),text:le(Da.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Dr={normal:oi,gfm:qu,pedantic:Uu},ar={normal:di,gfm:Da,breaks:pf,pedantic:hf},mf={"&":"&","<":"<",">":">",'"':""","'":"'"},Ei=t=>mf[t];function ut(t,e){if(e){if(Oe.escapeTest.test(t))return t.replace(Oe.escapeReplace,Ei)}else if(Oe.escapeTestNoEncode.test(t))return t.replace(Oe.escapeReplaceNoEncode,Ei);return t}function Mi(t){try{t=encodeURI(t).replace(Oe.percentDecode,"%")}catch{return null}return t}function Ii(t,e){let s=t.replace(Oe.findPipe,(a,l,o)=>{let c=!1,d=l;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),r=s.split(Oe.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(Oe.slashPipe,"|");return r}function ir(t,e,s){let r=t.length;if(r===0)return"";let n=0;for(;n<r&&t.charAt(r-n-1)===e;)n++;return t.slice(0,r-n)}function gf(t,e){if(t.indexOf(e[1])===-1)return-1;let s=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])s++;else if(t[r]===e[1]&&(s--,s<0))return r;return s>0?-2:-1}function xf(t,e=0){let s=e,r="";for(let n of t)if(n===" "){let a=4-s%4;r+=" ".repeat(a),s+=a}else r+=n,s++;return r}function zi(t,e,s,r,n){let a=e.href,l=e.title||null,o=t[1].replace(n.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:s,href:a,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}function kf(t,e,s){let r=t.match(s.other.indentCodeCompensation);if(r===null)return e;let n=r[1];return e.split(`
|
|
4
|
-
`).map(a=>{let l=a.match(s.other.beginningSpace);if(l===null)return a;let[o]=l;return o.length>=n.length?a.slice(n.length):a}).join(`
|
|
5
|
-
`)}var Kr=class{options;rules;lexer;constructor(t){this.options=t||Wt}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:ir(s,`
|
|
6
|
-
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let s=e[0],r=kf(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:r}}}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 r=ir(s,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(s=r.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:ir(e[0],`
|
|
7
|
-
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let s=ir(e[0],`
|
|
8
|
-
`).split(`
|
|
9
|
-
`),r="",n="",a=[];for(;s.length>0;){let l=!1,o=[],c;for(c=0;c<s.length;c++)if(this.rules.other.blockquoteStart.test(s[c]))o.push(s[c]),l=!0;else if(!l)o.push(s[c]);else break;s=s.slice(c);let d=o.join(`
|
|
10
|
-
`),u=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
11
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
12
|
-
${d}`:d,n=n?`${n}
|
|
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,g=x.raw+`
|
|
14
|
-
`+s.join(`
|
|
15
|
-
`),p=this.blockquote(g);a[a.length-1]=p,r=r.substring(0,r.length-x.raw.length)+p.raw,n=n.substring(0,n.length-x.text.length)+p.text;break}else if(h?.type==="list"){let x=h,g=x.raw+`
|
|
16
|
-
`+s.join(`
|
|
17
|
-
`),p=this.list(g);a[a.length-1]=p,r=r.substring(0,r.length-h.raw.length)+p.raw,n=n.substring(0,n.length-x.raw.length)+p.raw,s=g.substring(a.at(-1).raw.length).split(`
|
|
18
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let s=e[1].trim(),r=s.length>1,n={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");let a=this.rules.other.listItemRegex(s),l=!1;for(;t;){let c=!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=xf(e[2].split(`
|
|
19
|
-
`,1)[0],e[1].length),h=t.split(`
|
|
20
|
-
`,1)[0],x=!f.trim(),g=0;if(this.options.pedantic?(g=2,u=f.trimStart()):x?g=e[1].length+1:(g=f.search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=f.slice(g),g+=e[1].length),x&&this.rules.other.blankLine.test(h)&&(d+=h+`
|
|
21
|
-
`,t=t.substring(h.length+1),c=!0),!c){let p=this.rules.other.nextBulletRegex(g),k=this.rules.other.hrRegex(g),b=this.rules.other.fencesBeginRegex(g),m=this.rules.other.headingBeginRegex(g),y=this.rules.other.htmlBeginRegex(g),v=this.rules.other.blockquoteBeginRegex(g);for(;t;){let w=t.split(`
|
|
22
|
-
`,1)[0],j;if(h=w,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),j=h):j=h.replace(this.rules.other.tabCharGlobal," "),b.test(h)||m.test(h)||y.test(h)||v.test(h)||p.test(h)||k.test(h))break;if(j.search(this.rules.other.nonSpaceChar)>=g||!h.trim())u+=`
|
|
23
|
-
`+j.slice(g);else{if(x||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(f)||m.test(f)||k.test(f))break;u+=`
|
|
24
|
-
`+h}x=!h.trim(),d+=w+`
|
|
25
|
-
`,t=t.substring(w.length+1),f=j.slice(g)}}n.loose||(l?n.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),n.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),n.raw+=d}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.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(c.raw);if(d){let u={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!n.loose){let d=c.tokens.filter(f=>f.type==="space"),u=d.length>0&&d.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return n}}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," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=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:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let s=Ii(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
26
|
-
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(s.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<s.length;l++)a.header.push({text:s[l],tokens:this.lexer.inline(s[l]),header:!0,align:a.align[l]});for(let l of n)a.rows.push(Ii(l,a.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:a.align[c]})));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=ir(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{let a=gf(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],n=a[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(s)?r=r.slice(1):r=r.slice(1,-1)),zi(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.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 r=(s[2]||s[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[r.toLowerCase()];if(!n){let a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return zi(s,n,s[0],this.lexer,this.rules)}}emStrong(t,e,s=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&s.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!s||this.rules.inline.punctuation.exec(s))){let n=[...r[0]].length-1,a,l,o=n,c=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,e=e.slice(-1*t.length+n);(r=d.exec(e))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(l=[...a].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+c);let u=[...r[0]][0].length,f=t.slice(0,n+r.index+u+l);if(Math.min(n,l)%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," "),r=this.rules.other.nonSpaceChar.test(s),n=this.rules.other.startingSpaceChar.test(s)&&this.rules.other.endingSpaceChar.test(s);return r&&n&&(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 r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!s||this.rules.inline.punctuation.exec(s))){let n=[...r[0]].length-1,a,l,o=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+n);(r=c.exec(e))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(l=[...a].length,l!==n))continue;if(r[3]||r[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let d=[...r[0]][0].length,u=t.slice(0,n+r.index+d+l),f=u.slice(n,-n);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,r;return e[2]==="@"?(s=e[1],r="mailto:"+s):(s=e[1],r=s),{type:"link",raw:e[0],text:s,href:r,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let s,r;if(e[2]==="@")s=e[0],r="mailto:"+s;else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);s=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:s,href:r,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}}}},nt=class Ra{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Wt,this.options.tokenizer=this.options.tokenizer||new Kr,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:Oe,block:Dr.normal,inline:ar.normal};this.options.pedantic?(s.block=Dr.pedantic,s.inline=ar.pedantic):this.options.gfm&&(s.block=Dr.gfm,this.options.breaks?s.inline=ar.breaks:s.inline=ar.gfm),this.tokenizer.rules=s}static get rules(){return{block:Dr,inline:ar}}static lex(e,s){return new Ra(s).lex(e)}static lexInline(e,s){return new Ra(s).inlineTokens(e)}lex(e){e=e.replace(Oe.carriageReturn,`
|
|
28
|
-
`),this.blockTokens(e,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){let r=this.inlineQueue[s];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,s=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Oe.tabCharGlobal," ").replace(Oe.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(l=>(n=l.call({lexer:this},e,s))?(e=e.substring(n.raw.length),s.push(n),!0):!1))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let l=s.at(-1);n.raw.length===1&&l!==void 0?l.raw+=`
|
|
29
|
-
`:s.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let l=s.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
30
|
-
`)?"":`
|
|
31
|
-
`)+n.raw,l.text+=`
|
|
32
|
-
`+n.text,this.inlineQueue.at(-1).src=l.text):s.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let l=s.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
33
|
-
`)?"":`
|
|
34
|
-
`)+n.raw,l.text+=`
|
|
35
|
-
`+n.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},s.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),s.push(n);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,o=e.slice(1),c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},o),typeof c=="number"&&c>=0&&(l=Math.min(l,c))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){let l=s.at(-1);r&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
|
|
36
|
-
`)?"":`
|
|
37
|
-
`)+n.raw,l.text+=`
|
|
38
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):s.push(n),r=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let l=s.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
39
|
-
`)?"":`
|
|
40
|
-
`)+n.raw,l.text+=`
|
|
41
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):s.push(n);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}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 r=e,n=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,n.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)a=n[2]?n[2].length:0,r=r.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let l=!1,o="";for(;e;){l||(o=""),l=!1;let c;if(this.options.extensions?.inline?.some(u=>(c=u.call({lexer:this},e,s))?(e=e.substring(c.raw.length),s.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);let u=s.at(-1);c.type==="text"&&u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):s.push(c);continue}if(c=this.tokenizer.emStrong(e,r,o)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.del(e,r,o)){e=e.substring(c.raw.length),s.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),s.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),s.push(c);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(c=this.tokenizer.inlineText(d)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),l=!0;let u=s.at(-1);u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):s.push(c);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}},Wr=class{options;parser;constructor(t){this.options=t||Wt}space(t){return""}code({text:t,lang:e,escaped:s}){let r=(e||"").match(Oe.notSpaceStart)?.[0],n=t.replace(Oe.endingNewline,"")+`
|
|
42
|
-
`;return r?'<pre><code class="language-'+ut(r)+'">'+(s?n:ut(n,!0))+`</code></pre>
|
|
43
|
-
`:"<pre><code>"+(s?n:ut(n,!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,r="";for(let l=0;l<t.items.length;l++){let o=t.items[l];r+=this.listitem(o)}let n=e?"ol":"ul",a=e&&s!==1?' start="'+s+'"':"";return"<"+n+a+`>
|
|
49
|
-
`+r+"</"+n+`>
|
|
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 n=0;n<t.header.length;n++)s+=this.tablecell(t.header[n]);e+=this.tablerow({text:s});let r="";for(let n=0;n<t.rows.length;n++){let a=t.rows[n];s="";for(let l=0;l<a.length;l++)s+=this.tablecell(a[l]);r+=this.tablerow({text:s})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
53
|
-
<thead>
|
|
54
|
-
`+e+`</thead>
|
|
55
|
-
`+r+`</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>${ut(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 r=this.parser.parseInline(s),n=Mi(t);if(n===null)return r;t=n;let a='<a href="'+t+'"';return e&&(a+=' title="'+ut(e)+'"'),a+=">"+r+"</a>",a}image({href:t,title:e,text:s,tokens:r}){r&&(s=this.parser.parseInline(r,this.parser.textRenderer));let n=Mi(t);if(n===null)return ut(s);t=n;let a=`<img src="${t}" alt="${ut(s)}"`;return e&&(a+=` title="${ut(e)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ut(t.text)}},ui=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}},rt=class $a{options;renderer;textRenderer;constructor(e){this.options=e||Wt,this.options.renderer=this.options.renderer||new Wr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ui}static parse(e,s){return new $a(s).parse(e)}static parseInline(e,s){return new $a(s).parseInline(e)}parse(e){this.renderer.parser=this;let s="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let l=n,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){s+=o||"";continue}}let a=n;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 l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}parseInline(e,s=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let a=e[n];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=o||"";continue}}let l=a;switch(l.type){case"escape":{r+=s.text(l);break}case"html":{r+=s.html(l);break}case"link":{r+=s.link(l);break}case"image":{r+=s.image(l);break}case"checkbox":{r+=s.checkbox(l);break}case"strong":{r+=s.strong(l);break}case"em":{r+=s.em(l);break}case"codespan":{r+=s.codespan(l);break}case"br":{r+=s.br(l);break}case"del":{r+=s.del(l);break}case"text":{r+=s.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},cr=class{options;block;constructor(t){this.options=t||Wt}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?nt.lex:nt.lexInline}provideParser(t=this.block){return t?rt.parse:rt.parseInline}},bf=class{defaults=ni();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=rt;Renderer=Wr;TextRenderer=ui;Lexer=nt;Tokenizer=Kr;Hooks=cr;constructor(...t){this.use(...t)}walkTokens(t,e){let s=[];for(let r of t)switch(s=s.concat(e.call(this,r)),r.type){case"table":{let n=r;for(let a of n.header)s=s.concat(this.walkTokens(a.tokens,e));for(let a of n.rows)for(let l of a)s=s.concat(this.walkTokens(l.tokens,e));break}case"list":{let n=r;s=s.concat(this.walkTokens(n.items,e));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(a=>{let l=n[a].flat(1/0);s=s.concat(this.walkTokens(l,e))}):n.tokens&&(s=s.concat(this.walkTokens(n.tokens,e)))}}return s}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{let r={...s};if(r.async=this.defaults.async||r.async||!1,s.extensions&&(s.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=e.renderers[n.name];a?e.renderers[n.name]=function(...l){let o=n.renderer.apply(this,l);return o===!1&&(o=a.apply(this,l)),o}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[n.level];a?a.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),s.renderer){let n=this.defaults.renderer||new Wr(this.defaults);for(let a in s.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,o=s.renderer[l],c=n[l];n[l]=(...d)=>{let u=o.apply(n,d);return u===!1&&(u=c.apply(n,d)),u||""}}r.renderer=n}if(s.tokenizer){let n=this.defaults.tokenizer||new Kr(this.defaults);for(let a in s.tokenizer){if(!(a in n))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,o=s.tokenizer[l],c=n[l];n[l]=(...d)=>{let u=o.apply(n,d);return u===!1&&(u=c.apply(n,d)),u}}r.tokenizer=n}if(s.hooks){let n=this.defaults.hooks||new cr;for(let a in s.hooks){if(!(a in n))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,o=s.hooks[l],c=n[l];cr.passThroughHooks.has(a)?n[l]=d=>{if(this.defaults.async&&cr.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await o.call(n,d);return c.call(n,f)})();let u=o.call(n,d);return c.call(n,u)}:n[l]=(...d)=>{if(this.defaults.async)return(async()=>{let f=await o.apply(n,d);return f===!1&&(f=await c.apply(n,d)),f})();let u=o.apply(n,d);return u===!1&&(u=c.apply(n,d)),u}}r.hooks=n}if(s.walkTokens){let n=this.defaults.walkTokens,a=s.walkTokens;r.walkTokens=function(l){let o=[];return o.push(a.call(this,l)),n&&(o=o.concat(n.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return nt.lex(t,e??this.defaults)}parser(t,e){return rt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,s)=>{let r={...s},n={...this.defaults,...r},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.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(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,o=await(n.hooks?await n.hooks.provideLexer(t):t?nt.lex:nt.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let d=await(n.hooks?await n.hooks.provideParser(t):t?rt.parse:rt.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(d):d})().catch(a);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer(t):t?nt.lex:nt.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let o=(n.hooks?n.hooks.provideParser(t):t?rt.parse:rt.parseInline)(l,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(l){return a(l)}}}onError(t,e){return s=>{if(s.message+=`
|
|
60
|
-
Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+ut(s.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(s);throw s}}},Ut=new bf;function he(t,e){return Ut.parse(t,e)}he.options=he.setOptions=function(t){return Ut.setOptions(t),he.defaults=Ut.defaults,Hl(he.defaults),he};he.getDefaults=ni;he.defaults=Wt;he.use=function(...t){return Ut.use(...t),he.defaults=Ut.defaults,Hl(he.defaults),he};he.walkTokens=function(t,e){return Ut.walkTokens(t,e)};he.parseInline=Ut.parseInline;he.Parser=rt;he.parser=rt.parse;he.Renderer=Wr;he.TextRenderer=ui;he.Lexer=nt;he.lexer=nt.lex;he.Tokenizer=Kr;he.Hooks=cr;he.parse=he;he.options;he.setOptions;he.use;he.walkTokens;he.parseInline;rt.parse;nt.lex;const yf=/\n[^\S\n]*(?:\n[^\S\n]*)+$/;function wf(t){return t.flatMap((e,s)=>{var r;if(e.type==="space"||((r=t[s+1])===null||r===void 0?void 0:r.type)==="space")return[e];const n=(e.raw||"").match(yf);return n?[{...e,raw:(e.raw||"").slice(0,-n[0].length)},{type:"space",raw:n[0]}]:[e]})}function vf(t,e){const s=e.split(`
|
|
61
|
-
`).flatMap(r=>[r,""]).map(r=>`${t}${r}`).join(`
|
|
62
|
-
`);return s.slice(0,s.length-1)}function jf(t,e){const s=[];return Array.from(t.entries()).forEach(([r,n])=>{if(!e){s.push(r);return}(e.marks||[]).find(a=>a.type===r&&hr(a.attrs,n.attrs))||s.push(r)}),s}function Sf(t,e){const s=[];return Array.from(e.entries()).forEach(([r,n])=>{const a=t.get(r);(!a||!hr(a.attrs,n.attrs))&&s.push({type:r,mark:n})}),s}function Tf(t,e,s,r){const n=!s,a=s&&(!s.marks||s.marks.length===0),l=s&&s.marks&&!r(e,new Map(s.marks.map(c=>[c.type,c]))),o=[];return(n||a||l)&&(s&&s.marks?Array.from(t.entries()).reverse().forEach(([c,d])=>{s.marks.find(u=>u.type===c&&hr(u.attrs,d.attrs))||o.push(c)}):(n||a)&&o.push(...Array.from(t.keys()).reverse())),o}function Cf(t,e){let s="";return Array.from(t.keys()).reverse().forEach(r=>{const n=e(r,t.get(r));n&&(s=n+s)}),t.clear(),s}function Nf(t,e,s){let r="";return Array.from(t.entries()).forEach(([n,a])=>{const l=s(n,a);l&&(r+=l),e.set(n,a)}),r}function Ta(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 Rr(t,e){return typeof t!="string"?"json":e}const _f=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"]),Bf=/<\/?([a-zA-Z][\w-]*)/g;function Af(t){const e=[];let s;for(;(s=Bf.exec(t))!==null;)e.push(s[1].toLowerCase());return e}function Df(t){const e=t.toLowerCase();return e.includes("-")?!1:!_f.has(e)}function Rf(t,e){return Af(t).some(s=>Df(s)?!e.has(s):!1)}var Li=class{constructor(t){var e,s,r,n,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:he,this.indentStyle=(s=t==null||(r=t.indentation)===null||r===void 0?void 0:r.style)!==null&&s!==void 0?s:"space",this.indentSize=(n=t==null||(a=t.indentation)===null||a===void 0?void 0:a.size)!==null&&n!==void 0?n: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,pd(md(t.extensions)).forEach(l=>this.registerExtension(l)))}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 r=Dl(Ft(t,"code")),n=t.name;r&&this.codeTypes.add(n),this.extensionRanks.has(n)||this.extensionRanks.set(n,this.extensionRanks.size);const a=Ft(t,"markdownTokenName")||n,l=Ft(t,"parseMarkdown"),o=Ft(t,"renderMarkdown"),c=Ft(t,"markdownTokenizer"),d=(e=Ft(t,"markdownOptions"))!==null&&e!==void 0?e:null,u={tokenName:a,nodeName:n,parseMarkdown:l,renderMarkdown:o,isIndenting:(s=d?.indentsContent)!==null&&s!==void 0?s:!1,htmlReopen:d?.htmlReopen,tokenizer:c};if(a&&l){const f=this.registry.get(a)||[];f.push(u),this.registry.set(a,f)}if(o){const f=this.nodeTypeRegistry.get(n)||[];f.push(u),this.nodeTypeRegistry.set(n,f)}c&&this.hasMarked()&&this.registerTokenizer(c)}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:r="inline",tokenize:n}=t,a=this.createTokenizerHelpers.bind(this),l=this.createLexer.bind(this);let o;s?o=typeof s=="function"?s:d=>d.indexOf(s):o=d=>{const u=n(d,[],this.createTokenizerHelpers(this.createLexer()));return u&&u.raw?d.indexOf(u.raw):-1};const c={name:e,level:r,start:o,tokenizer(d,u){const f=this.lexer?a(this.lexer):a(l()),h=n(d,u,f);if(h&&h.type)return{...h,type:h.type||e,raw:h.raw||"",tokens:h.tokens||[]}},childTokens:[]};this.markedInstance.use({extensions:[c]})}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(/ /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 r=s.lex(t);return{type:"doc",content:this.parseTokens(r,!0)}}finally{this.activeParseLexer=e}}parseTokens(t,e=!1){const s=e?wf(t):t,r=s.reduce((l,o,c)=>(o.type!=="space"&&l.push(c),l),[]);let n=-1,a=0;return s.flatMap((l,o)=>{for(;a<r.length&&r[a]<o;)n=r[a],a+=1;if(e&&l.type==="space"){var c;const u=(c=r[a])!==null&&c!==void 0?c:-1;return this.createImplicitEmptyParagraphsFromSpace(l,n,u)}const d=this.parseToken(l,e);return d===null?[]:Array.isArray(d)?d:[d]})}createImplicitEmptyParagraphsFromSpace(t,e,s){const r=this.countParagraphSeparators(t.raw||"");if(r===0)return[];const n=Math.max(r-(e===-1||s===-1?0:1),0);return Array.from({length:n},()=>({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),r=this.createParseHelpers();if(s.find(n=>{if(!n.parseMarkdown)return!1;const a=n.parseMarkdown(t,r),l=this.normalizeParseResult(a);return l&&(!Array.isArray(l)||l.length>0)?(this.lastParseResult=l,!0):!1})&&this.lastParseResult){const n=this.lastParseResult;return this.lastParseResult=null,n}return this.parseFallbackToken(t,e)}parseListToken(t){if(!t.items||t.items.length===0)return this.parseTokenWithHandlers(t);const e=t.items.some(o=>Ta(o).isTask),s=t.items.some(o=>!Ta(o).isTask);if(!e||!s||this.getHandlersForToken("taskList").length===0)return this.parseTokenWithHandlers(t);const r=[];let n=[],a=null;for(let o=0;o<t.items.length;o+=1){const c=t.items[o],{isTask:d,checked:u,indentLevel:f}=Ta(c);let h=c;if(d){const g=(c.raw||c.text||"").split(`
|
|
64
|
-
`),p=g[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),k=p?p[2]:"";let b=[];if(g.length>1&&g.slice(1).join(`
|
|
65
|
-
`).trim()){const m=g.slice(1),y=m.filter(v=>v.trim());if(y.length>0){const v=Math.min(...y.map(j=>j.length-j.trimStart().length)),w=m.map(j=>j.trim()?j.slice(v):"").join(`
|
|
66
|
-
`).trim();w&&(b=this.markedInstance.lexer(`${w}
|
|
67
|
-
`))}}h={type:"taskItem",raw:"",mainContent:k,indentLevel:f,checked:u??!1,text:k,tokens:this.tokenizeInline(k),nestedTokens:b}}const x=d?"taskList":"list";a!==x?(n.length>0&&r.push({type:a,items:n}),n=[h],a=x):n.push(h)}n.length>0&&r.push({type:a,items:n});const l=[];for(let o=0;o<r.length;o+=1){const c=r[o],d={...t,type:c.type,items:c.items},u=this.parseToken(d);u&&(Array.isArray(u)?l.push(...u):l.push(u))}return l.length>0?l:null}parseTokenWithHandlers(t){if(!t.type)return null;const e=this.getHandlersForToken(t.type),s=this.createParseHelpers();if(e.find(r=>{if(!r.parseMarkdown)return!1;const n=r.parseMarkdown(t,s),a=this.normalizeParseResult(n);return a&&(!Array.isArray(a)||a.length>0)?(this.lastParseResult=a,!0):!1})&&this.lastParseResult){const r=this.lastParseResult;return this.lastParseResult=null,r}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 r={type:t,attrs:e||void 0,content:s||void 0};return(!e||Object.keys(e).length===0)&&delete r.attrs,r},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 l=0;l<t.length;l+=1){const o=t[l];if(o.type==="text")e.push({type:"text",text:Si(o.text||"")});else if(o.type==="escape")e.push({type:"text",text:o.text||""});else if(o.type==="html"){var s,r;const c=((s=(r=o.raw)!==null&&r!==void 0?r:o.text)!==null&&s!==void 0?s:"").toString(),d=/^<\/[\s]*[\w-]+/i.test(c),u=c.match(/^<[\s]*([\w-]+)(\s|>|\/|$)/i);if(!d&&u&&!/\/>$/.test(c)){const h=u[1],x=this.escapeRegex(h),g=new RegExp(`^<\\/\\s*${x}\\b`,"i");let p=-1;const k=[c];for(let b=l+1;b<t.length;b+=1){var n,a;const m=t[b],y=((n=(a=m.raw)!==null&&a!==void 0?a:m.text)!==null&&n!==void 0?n:"").toString();if(k.push(y),m.type==="html"&&g.test(y)){p=b;break}}if(p!==-1){const b=k.join(""),m={type:"html",raw:b,text:b,block:!1},y=this.parseHTMLToken(m);if(y){const v=this.normalizeParseResult(y);Array.isArray(v)?e.push(...v):v&&e.push(v)}l=p;continue}}const f=this.parseHTMLToken(o);if(f){const h=this.normalizeParseResult(f);Array.isArray(h)?e.push(...h):h&&e.push(h)}}else if(o.type){const c=this.getHandlerForToken(o.type);if(c&&c.parseMarkdown){const d=this.createParseHelpers(),u=c.parseMarkdown(o,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 o.tokens&&e.push(...this.parseInlineTokens(o.tokens))}}for(let l=e.length-1;l>0;l-=1){const o=e[l],c=e[l-1];if(o.type==="text"&&c.type==="text"){const d=o.marks||[],u=c.marks||[];gd(d,u)&&(c.text=(c.text||"")+(o.text||""),e.splice(l,1))}}return e}applyMarkToContent(t,e,s){return e.map(r=>{if(r.type==="text"){const n=r.marks||[],a=s?{type:t,attrs:s}:{type:t};return{...r,marks:[...n,a]}}return{...r,content:r.content?this.applyMarkToContent(t,r.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:Si(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=xd(e,this.baseExtensions);if(s.type==="doc"&&s.content){if(t.block)return s.content;const r=this.toInlineContent(s.content);return r.length>0?r: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=Ti(this.baseExtensions);Object.values(e.nodes).forEach(s=>{s.isInline&&t.add(s.name)})}catch{}return this.inlineNodeTypesCache=t,t}isUnrecognizedHtml(t){return Rf(t,this.getSchemaParseDomTags())}getSchemaParseDomTags(){if(this.schemaParseDomTagsCache)return this.schemaParseDomTagsCache;const t=new Set;try{const e=Ti(this.baseExtensions),s=r=>{const n=r?.parseDOM;Array.isArray(n)&&n.forEach(a=>{if(typeof a?.tag=="string"){const l=a.tag.match(/^[a-zA-Z][\w-]*/);l&&t.add(l[0].toLowerCase())}})};Object.values(e.nodes).forEach(r=>s(r.spec)),Object.values(e.marks).forEach(r=>s(r.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(r=>this.codeTypes.has(typeof r=="string"?r:r.type))?t:this.escapeMarkdownSyntax(kd(t))}escapeMarkdownSyntax(t){return t.replace(/([\\`*_[\]~])/g,"\\$1")}renderNodeToMarkdown(t,e,s=0,r=0,n={}){var a;if(t.type==="text")return this.encodeTextForMarkdown(t.text||"",t,e);if(!t.type)return"";const l=this.getHandlerForToken(t.type);if(!l)return"";const o=Array.isArray(e?.content)&&s>0?e.content[s-1]:void 0,c={renderChildren:(u,f)=>{const h=l.isIndenting?r+1:r;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=l.isIndenting?r+1:r;return this.renderNodeToMarkdown(u,t,f,h)},indent:u=>this.indentString+u,wrapInBlock:vf},d={index:s,level:r,parentType:e?.type,previousNode:o,meta:{parentAttrs:e?.attrs,...n}};return((a=l.renderMarkdown)===null||a===void 0?void 0:a.call(l,t,c,d))||""}renderNodes(t,e,s="",r=0,n=0){return Array.isArray(t)?this.renderNodesWithMarkBoundaries(t,e,s,n):t.type?this.renderNodeToMarkdown(t,e,r,n):""}renderNodesWithMarkBoundaries(t,e,s="",r=0){const n=[],a=new Map,l=new Set,o=new Map;return t.forEach((c,d)=>{const u=d<t.length-1?t[d+1]:null;if(c.type)if(c.type==="text"){let f=this.encodeTextForMarkdown(c.text||"",c,e);const h=new Map((c.marks||[]).map(w=>[w.type,w])),x=this.getMarksToOpenForSerialization(a,h,u),g=jf(h,u),p=g.filter(w=>a.has(w)),k=p.length>0&&x.length>0;let b="";if(g.length>0&&!k){const w=f.match(/(\s+)$/);w&&(b=w[1],f=f.slice(0,-b.length))}k||g.slice().reverse().forEach(w=>{if(!a.has(w))return;const j=h.get(w),S=this.getMarkClosing(w,j,o.get(w));S&&(f+=S),a.has(w)&&(a.delete(w),o.delete(w))});let m="";if(x.length>0){const w=f.match(/^(\s+)/);w&&(m=w[1],f=f.slice(m.length))}x.forEach(({type:w,mark:j})=>{const S=l.has(w)?"html":"markdown",T=this.getMarkOpening(w,j,S);T&&(f=T+f),o.set(w,S),l.delete(w)}),k||x.slice().reverse().forEach(({type:w,mark:j})=>{a.set(w,j)}),f=m+f;let y;if(k){const w=new Set((u?.marks||[]).map(T=>T.type));x.forEach(({type:T})=>{w.has(T)&&this.getHtmlReopenTags(T)&&l.add(T)});const j=Array.from(a.keys()),S=p.slice().sort((T,N)=>j.indexOf(N)-j.indexOf(T));y=[...x.map(T=>T.type),...S]}else y=Tf(a,h,u,this.markSetsEqual.bind(this));let v="";if(y.length>0){const w=f.match(/(\s+)$/);w&&(v=w[1],f=f.slice(0,-v.length))}y.forEach(w=>{var j;const S=(j=a.get(w))!==null&&j!==void 0?j:h.get(w),T=this.getMarkClosing(w,S,o.get(w));T&&(f+=T),a.delete(w),o.delete(w)}),f+=v,f+=b,n.push(f)}else{const f=new Set((c.marks||[]).map(b=>b.type)),h=new Map,x=new Map;a.forEach((b,m)=>{if(f.has(m)){var y;h.set(m,b),x.set(m,(y=o.get(m))!==null&&y!==void 0?y:"markdown")}});const g=Cf(a,(b,m)=>this.getMarkClosing(b,m,o.get(b)));o.clear();const p=this.renderNodeToMarkdown(c,e,d,r),k=c.type==="hardBreak"?"":Nf(h,a,(b,m)=>{var y;const v=(y=x.get(b))!==null&&y!==void 0?y:"markdown";return o.set(b,v),this.getMarkOpening(b,m,v)});n.push(g+p+k)}}),n.join(s)}getMarkOpening(t,e,s="markdown"){if(s==="html"){var r;return((r=this.getHtmlReopenTags(t))===null||r===void 0?void 0:r.open)||""}const n=this.getHandlersForNodeType(t),a=n.length>0?n[0]:void 0;if(!a||!a.renderMarkdown)return"";const l="__TIPTAP_MARKDOWN_PLACEHOLDER__",o={type:t,attrs:e.attrs||{},content:[{type:"text",text:l}]};try{const c=a.renderMarkdown(o,{renderChildren:()=>l,renderChild:()=>l,indent:u=>u,wrapInBlock:(u,f)=>u+f},{index:0,level:0,parentType:"text",meta:{}}),d=c.indexOf(l);return d>=0?c.substring(0,d):""}catch(c){throw new Error(`Failed to get mark opening for ${t}: ${c}`)}}getMarkClosing(t,e,s="markdown"){if(s==="html"){var r;return((r=this.getHtmlReopenTags(t))===null||r===void 0?void 0:r.close)||""}const n=this.getHandlersForNodeType(t),a=n.length>0?n[0]:void 0;if(!a||!a.renderMarkdown)return"";const l="__TIPTAP_MARKDOWN_PLACEHOLDER__",o={type:t,attrs:e.attrs||{},content:[{type:"text",text:l}]};try{const c=a.renderMarkdown(o,{renderChildren:()=>l,renderChild:()=>l,indent:f=>f,wrapInBlock:(f,h)=>f+h},{index:0,level:0,parentType:"text",meta:{}}),d=c.indexOf(l),u=d+33;return d>=0?c.substring(u):""}catch(c){throw new Error(`Failed to get mark closing for ${t}: ${c}`)}}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,r])=>{const n=e.get(s);return n&&hr(r.attrs,n.attrs)})}getMarksToOpenForSerialization(t,e,s){const r=Sf(t,e);if(r.length<=1)return r;const n=s?.marks||[],a=(d,u)=>n.some(f=>f.type===d&&hr(f.attrs,u)),l=(d,u)=>{var f,h;const x=(f=this.extensionRanks.get(d.type))!==null&&f!==void 0?f:Number.MAX_SAFE_INTEGER,g=(h=this.extensionRanks.get(u.type))!==null&&h!==void 0?h:Number.MAX_SAFE_INTEGER;return x!==g?g-x:d.type.localeCompare(u.type)},o=r.filter(d=>!a(d.type,d.mark.attrs)).sort(l),c=r.filter(d=>a(d.type,d.mark.attrs)).sort(l);return[...o,...c]}};const Xl=Qa.create({name:"markdown",addOptions(){return{indentation:{style:"space",size:2},marked:void 0,markedOptions:{}}},addCommands(){return{setContent:(t,e)=>{if(!e?.contentType)return wt.setContent(t,e);if(Rr(t,e?.contentType)!=="markdown"||!this.editor.markdown)return wt.setContent(t,e);const s=this.editor.markdown.parse(t);return wt.setContent(s,e)},insertContent:(t,e)=>{if(!e?.contentType)return wt.insertContent(t,e);if(Rr(t,e?.contentType)!=="markdown"||!this.editor.markdown)return wt.insertContent(t,e);const s=this.editor.markdown.parse(t);return wt.insertContent(s,e)},insertContentAt:(t,e,s)=>{if(!s?.contentType)return wt.insertContentAt(t,e,s);if(Rr(e,s?.contentType)!=="markdown"||!this.editor.markdown)return wt.insertContentAt(t,e,s);const r=this.editor.markdown.parse(e);return wt.insertContentAt(t,r,s)}}},addStorage(){return{manager:new Li({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 Li({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||Rr(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 Gr(t){return t==="left"||t==="right"||t==="center"?t:null}function $f(t){const e=(t.style.textAlign||"").trim().toLowerCase(),s=(t.getAttribute("align")||"").trim().toLowerCase();return Gr(e||s)}function Ef(t){return Gr(t?.align)}function Jl(){return{default:null,parseHTML:t=>$f(t),renderHTML:t=>t.align?{style:`text-align: ${t.align}`}:{}}}function Mf(t){var e;const s=t.parentElement,r=t.closest("table");if(!s||!r)return null;const n=Array.from(s.children).indexOf(t),a=(e=r.querySelectorAll("colgroup > col")[n])===null||e===void 0?void 0:e.getAttribute("width");return a?[parseInt(a,10)]:null}function eo(t){const e=t.getAttribute("colwidth");return e?e.split(",").map(s=>parseInt(s,10)):Mf(t)}const If=/[ \t\r\n\f]+/g;function to(t){var e;return t.children.length>0?!1:((e=t.textContent)!==null&&e!==void 0?e:"").replace(If,"")===""}function so(t){const e=t.createAndFill();if(!e)throw new Error(`[tiptap error]: "${t.name}" has no default content to backfill.`);return e.content}const zf=Kt.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:eo},align:Jl()}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td",getAttrs:t=>to(t)?{}:!1,getContent:(t,e)=>so(e.nodes[this.name])},{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",St(this.options.HTMLAttributes,t),0]}}),Lf=Kt.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:eo},align:Jl()}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th",getAttrs:t=>to(t)?{}:!1,getContent:(t,e)=>so(e.nodes[this.name])},{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",St(this.options.HTMLAttributes,t),0]}}),Pf=Kt.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",St(this.options.HTMLAttributes,t),0]}});function Ea(t,e){return e?["width",`${Math.max(e,t)}px`]:["min-width",`${t}px`]}function Pi(t,e,s,r,n,a){let l=0,o=!0,c=e.firstChild;const d=t.firstChild;if(d!==null)for(let h=0,x=0;h<d.childCount;h+=1){const{colspan:g,colwidth:p}=d.child(h).attrs;for(let k=0;k<g;k+=1,x+=1){const b=n===x?a:p&&p[k],m=b?`${b}px`:"";if(l+=b||r,b||(o=!1),c){if(c.style.width!==m){const[y,v]=Ea(r,b);c.style.setProperty(y,v)}c=c.nextSibling}else{const y=document.createElement("col"),[v,w]=Ea(r,b);y.style.setProperty(v,w),e.appendChild(y)}}}for(;c;){var u;const h=c.nextSibling;(u=c.parentNode)===null||u===void 0||u.removeChild(c),c=h}const f=t.attrs.style&&typeof t.attrs.style=="string"&&/\bwidth\s*:/i.test(t.attrs.style);o&&!f?(s.style.width=`${l}px`,s.style.minWidth=""):(s.style.width="",s.style.minWidth=`${l}px`)}var Of=class{constructor(t,e,s,r={}){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[n,a]of Object.entries(r))a!=null&&(n==="style"?this.table.style.cssText=String(a):this.table.setAttribute(n,String(a)));t.attrs.style&&(this.table.style.cssText=t.attrs.style),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Pi(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,Pi(t,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(t){const e=t.target,s=this.dom.contains(e),r=this.contentDOM.contains(e);return!!(s&&!r&&(t.type==="attributes"||t.type==="childList"||t.type==="characterData"))}};function Ff(t,e,s,r){let n=0,a=!0;const l=[],o=t.firstChild;if(!o)return{};for(let u=0,f=0;u<o.childCount;u+=1){const{colspan:h,colwidth:x}=o.child(u).attrs;for(let g=0;g<h;g+=1,f+=1){const p=s===f?r:x&&x[g];n+=p||e,p||(a=!1);const[k,b]=Ea(e,p);l.push(["col",{style:`${k}: ${b}`}])}}const c=a?`${n}px`:"",d=a?"":`${n}px`;return{colgroup:["colgroup",{},...l],tableWidth:c,tableMinWidth:d}}function Oi(t,e){return t.createAndFill()}function Hf(t){if(t.cached.tableNodeTypes)return t.cached.tableNodeTypes;const e={};return Object.keys(t.nodes).forEach(s=>{const r=t.nodes[s];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),t.cached.tableNodeTypes=e,e}function qf(t,e,s,r,n){const a=Hf(t),l=[],o=[];for(let d=0;d<s;d+=1){const u=Oi(a.cell);if(u&&o.push(u),r){const f=Oi(a.header_cell);f&&l.push(f)}}const c=[];for(let d=0;d<e;d+=1)c.push(a.row.createChecked(null,r&&d===0?l:o));return a.table.createChecked(null,c)}function Uf(t){return t instanceof Il}const $r=({editor:t})=>{const{selection:e}=t.state;if(!Uf(e))return!1;let s=0;const r=Hr(e.ranges[0].$from,n=>n.type.name==="table");return r?.node.descendants(n=>{if(n.type.name==="table")return!1;["tableCell","tableHeader"].includes(n.type.name)&&(s+=1)}),s!==e.ranges.length?!1:(t.commands.deleteTable(),!0)};function Fi(t,e){const s=t.mapping.map(e),r=Hr(t.selection.$from,l=>l.type.name==="table");if(r?.pos===s)return;const n=t.doc.nodeAt(s);if(!n)return;const a=s+n.nodeSize-1;t.setSelection(Rl.near(t.doc.resolve(a),-1))}function Kf(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 r=0;for(;s+r<t.length&&t[s+r]==="`";)r+=1;let n=s+r,a=!1;for(;n<t.length;){if(t[n]!=="`"){n+=1;continue}let l=0;for(;n+l<t.length&&t[n+l]==="`";)l+=1;if(l===r){const o=t.slice(s+r,n);e+=t.slice(s,s+r)+o.replace(/\\\||\|/g,c=>c==="|"?"\\|":c)+t.slice(n,n+r),s=n+r,a=!0;break}n+=l}a||(e+=t.slice(s,s+r),s+=r)}return e}function Wf(t){return t.split(`
|
|
68
|
-
`).map(e=>!e.includes("|")||!e.includes("`")?e:Kf(e)).join(`
|
|
69
|
-
`)}function Gf(t){return(t||"").replace(/\s+/g," ").trim()}function Vf(t,e,s={}){var r;const n=(r=s.cellLineSeparator)!==null&&r!==void 0?r:"";if(!t||!t.content||t.content.length===0)return"";const a=[];t.content.forEach(g=>{const p=[];g.content&&g.content.forEach(k=>{let b="";k.content&&Array.isArray(k.content)&&k.content.length>1?b=k.content.map(w=>e.renderChildren(w)).join(n):b=k.content?e.renderChildren(k.content):"";const m=Gf(b.split(n).join(`
|
|
70
|
-
`).replace(/[ \t]*\r?\n[ \t]*/g,"<br>")),y=k.type==="tableHeader",v=Ef(k.attrs);p.push({text:m,isHeader:y,align:v})}),a.push(p)});const l=a.reduce((g,p)=>Math.max(g,p.length),0);if(l===0)return"";const o=Array.from({length:l}).fill(0);a.forEach(g=>{for(let k=0;k<l;k+=1){var p;const b=(((p=g[k])===null||p===void 0?void 0:p.text)||"").length;b>o[k]&&(o[k]=b),o[k]<3&&(o[k]=3)}});const c=(g,p)=>g+" ".repeat(Math.max(0,p-g.length)),d=a[0],u=d.some(g=>g.isHeader),f=Array.from({length:l}).fill(null);a.forEach(g=>{for(let k=0;k<l;k+=1){var p;!f[k]&&(!((p=g[k])===null||p===void 0)&&p.align)&&(f[k]=g[k].align)}});let h=`
|
|
71
|
-
`;const x=Array.from({length:l}).map((g,p)=>u&&d[p]&&d[p].text||"");return h+=`| ${x.map((g,p)=>c(g,o[p])).join(" | ")} |
|
|
72
|
-
`,h+=`| ${o.map((g,p)=>{const k=Math.max(3,g),b=f[p];return b==="left"?`:${"-".repeat(k)}`:b==="right"?`${"-".repeat(k)}:`:b==="center"?`:${"-".repeat(k)}:`:"-".repeat(k)}).join(" | ")} |
|
|
73
|
-
`,(u?a.slice(1):a).forEach(g=>{h+=`| ${Array.from({length:l}).fill(0).map((p,k)=>c(g[k]&&g[k].text||"",o[k])).join(" | ")} |
|
|
74
|
-
`}),h}const Qf=Kt.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:Of,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:r,tableMinWidth:n}=Ff(t,this.options.cellMinWidth),a=e.style;function l(){return a||(r?`width: ${r}`:`min-width: ${n}`)}const o=["table",St(this.options.HTMLAttributes,e,{style:l()}),s,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},o]:o},parseMarkdown:(t,e)=>{const s=[],r=Array.isArray(t.align)?t.align:[];if(t.header){const n=[];t.header.forEach((a,l)=>{var o;const c=Gr((o=r[l])!==null&&o!==void 0?o:a.align),d=c?{align:c}:{};n.push(e.createNode("tableHeader",d,[{type:"paragraph",content:e.parseInline(a.tokens)}]))}),s.push(e.createNode("tableRow",{},n))}return t.rows&&t.rows.forEach(n=>{const a=[];n.forEach((l,o)=>{var c;const d=Gr((c=r[o])!==null&&c!==void 0?c:l.align),u=d?{align:d}:{};a.push(e.createNode("tableCell",u,[{type:"paragraph",content:e.parseInline(l.tokens)}]))}),s.push(e.createNode("tableRow",{},a))}),e.createNode("table",void 0,s)},renderMarkdown:(t,e)=>Vf(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 r=t.indexOf(`
|
|
76
|
-
|
|
77
|
-
`),n=r>=0?t.slice(0,r):t,a=n.split(`
|
|
78
|
-
`);if(a.length<2)return;const l=a[1];if(!/^[ \t|:]*-[ \t|:-]*$/.test(l)||!l.includes("|"))return;const o=Wf(n);if(o===n)return;const c=s.blockTokens(o)[0];if(c?.type!=="table"||!c.raw)return;const d=c.raw.split(`
|
|
79
|
-
`).length,u=t.split(`
|
|
80
|
-
`).slice(0,d).join(`
|
|
81
|
-
`);return{...c,raw:u}}},addCommands(){return{insertTable:({rows:t=3,cols:e=3,withHeaderRow:s=!0}={})=>({tr:r,dispatch:n,editor:a})=>{const l=qf(a.schema,t,e,s);if(n){const o=r.selection.from+1;r.replaceSelectionWith(l).scrollIntoView().setSelection(Rl.near(r.doc.resolve(o)))}return!0},addColumnBefore:()=>({state:t,dispatch:e})=>Od(t,e),addColumnAfter:()=>({state:t,dispatch:e})=>Pd(t,e),deleteColumn:()=>({state:t,dispatch:e})=>{const s=Hr(t.selection.$from,r=>r.type.name==="table");return Ld(t,e&&(r=>{s&&Fi(r,s.pos),e(r)}))},addRowBefore:()=>({state:t,dispatch:e})=>zd(t,e),addRowAfter:()=>({state:t,dispatch:e})=>Id(t,e),deleteRow:()=>({state:t,dispatch:e})=>{const s=Hr(t.selection.$from,r=>r.type.name==="table");return Md(t,e&&(r=>{s&&Fi(r,s.pos),e(r)}))},deleteTable:()=>({state:t,dispatch:e})=>Ed(t,e),mergeCells:()=>({state:t,dispatch:e})=>Ni(t,e),splitCell:()=>({state:t,dispatch:e})=>_i(t,e),toggleHeaderColumn:()=>({state:t,dispatch:e})=>Bi("column")(t,e),toggleHeaderRow:()=>({state:t,dispatch:e})=>Bi("row")(t,e),toggleHeaderCell:()=>({state:t,dispatch:e})=>$d(t,e),mergeOrSplit:()=>({state:t,dispatch:e})=>Ni(t,e)?!0:_i(t,e),setCellAttribute:(t,e)=>({state:s,dispatch:r})=>Rd(t,e)(s,r),goToNextCell:()=>({state:t,dispatch:e})=>Ci(1)(t,e),goToPreviousCell:()=>({state:t,dispatch:e})=>Ci(-1)(t,e),fixTables:()=>({state:t,dispatch:e})=>(e&&Dd(t),!0),setCellSelection:t=>({tr:e,dispatch:s})=>{if(s){const r=Il.create(e.doc,t.anchorCell,t.headCell);e.setSelection(r)}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:$r,"Mod-Backspace":$r,Delete:$r,"Mod-Delete":$r}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Bd({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Ad({allowTableNodeSelection:this.options.allowTableNodeSelection})]},addNodeView(){const t=this.options.resizable&&this.editor.isEditable,e=this.options.View;return t||!e?null:({node:s,view:r,HTMLAttributes:n})=>{const a=St(this.options.HTMLAttributes,n);return new e(s,this.options.cellMinWidth,r,a)}},extendNodeSchema(t){const e={name:t.name,options:t.options,storage:t.storage};return{tableRole:Dl(Ft(t,"tableRole",e))}}}),Zf=Qa.create({name:"tableKit",addExtensions(){const t=[];return this.options.table!==!1&&t.push(Qf.configure(this.options.table)),this.options.tableCell!==!1&&t.push(zf.configure(this.options.tableCell)),this.options.tableHeader!==!1&&t.push(Lf.configure(this.options.tableHeader)),this.options.tableRow!==!1&&t.push(Pf.configure(this.options.tableRow)),t}});function Yf(t){const e=R.c(25),{node:s,selected:r,editor:n,deleteNode:a}=t,l=Z(),o=typeof s.attrs.href=="string"?s.attrs.href:"",c=typeof s.attrs.name=="string"?s.attrs.name:"";let d;e[0]!==c||e[1]!==l?(d=c||l("markdownEditor.fileNameFallback"),e[0]=c,e[1]=l,e[2]=d):d=e[2];const u=d,f=r&&"ring-2 ring-ring ring-offset-2 ring-offset-background";let h;e[3]!==f?(h=I("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=i.jsx(Kd,{size:14,className:"shrink-0 text-muted-foreground"}),e[5]=x):x=e[5];let g;e[6]!==u?(g=i.jsx("span",{className:"min-w-0 truncate",children:u}),e[6]=u,e[7]=g):g=e[7];let p;e[8]!==u||e[9]!==l?(p=l("markdownEditor.downloadFile",{name:u}),e[8]=u,e[9]=l,e[10]=p):p=e[10];let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(Ud,{size:14}),e[11]=k):k=e[11];let b;e[12]!==o||e[13]!==u||e[14]!==p?(b=i.jsx("a",{href:o,download:u,"aria-label":p,onMouseDown:Jf,className:"shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:k}),e[12]=o,e[13]=u,e[14]=p,e[15]=b):b=e[15];let m;e[16]!==a||e[17]!==n.isEditable||e[18]!==l?(m=n.isEditable&&i.jsx("button",{type:"button","aria-label":l("markdownEditor.removeFile"),onMouseDown:Xf,onClick:a,className:"shrink-0 rounded-md p-0.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:i.jsx(Yn,{size:14})}),e[16]=a,e[17]=n.isEditable,e[18]=l,e[19]=m):m=e[19];let y;return e[20]!==h||e[21]!==g||e[22]!==b||e[23]!==m?(y=i.jsxs(Ya,{as:"span",className:h,children:[x,g,b,m]}),e[20]=h,e[21]=g,e[22]=b,e[23]=m,e[24]=y):y=e[24],y}function Xf(t){return t.preventDefault()}function Jf(t){return t.preventDefault()}function eh(t){return t.replace(/([[\]])/g,"\\$1")}const th=Kt.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",St(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`[${eh(s)}](${e})`},addNodeView(){return Za(Yf)}});function sh(t){const e=R.c(5),{node:s,selected:r}=t,n=typeof s.attrs.name=="string"?s.attrs.name:"",a=r&&"ring-2 ring-ring";let l;e[0]!==a?(l=I("select-none rounded px-1 font-medium text-primary","bg-primary/10",a),e[0]=a,e[1]=l):l=e[1];let o;return e[2]!==n||e[3]!==l?(o=i.jsxs(Ya,{as:"span","data-testid":"mention-chip",className:l,children:["@",n]}),e[2]=n,e[3]=l,e[4]=o):o=e[4],o}const no=Kt.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",St(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?ad(e,s):`@${s}`},addNodeView(){return Za(sh)}}),nh="studio.mention-members.",Ma=new Map;function Hi(t){const e=Ma.get(t);if(e)return e;try{const s=localStorage.getItem(t);if(!s)return;const r=JSON.parse(s);if(!Array.isArray(r))return;const n=r.filter(a=>!!a&&typeof a.id=="string"&&typeof a.name=="string");return Ma.set(t,n),n}catch{return}}function rh(t,e){Ma.set(t,e);try{localStorage.setItem(t,JSON.stringify(e))}catch{}}function ah(t,e){if(!t?.length)return e;const s=new Map(t.map(r=>[r.id,r]));return e.map(r=>{const n=s.get(r.id);return n&&n.name===r.name&&n.email===r.email&&n.image===r.image?n:r})}function ih(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 lh(t){const e=R.c(17),{locator:s}=Xe(),r=Wd(),n=`${nh}${s}`;let a;e[0]!==s?(a=at.mentionMembers(s),e[0]=s,e[1]=a):a=e[1];let l;e[2]!==n?(l=()=>Hi(n),e[2]=n,e[3]=l):l=e[3];let o;e[4]!==r||e[5]!==n?(o=async()=>{const x=await r.organization.listMembers(),g=ah(Hi(n),ih(x?.data?.members??[]));return rh(n,g),g},e[4]=r,e[5]=n,e[6]=o):o=e[6];let c;e[7]!==t||e[8]!==a||e[9]!==l||e[10]!==o?(c={queryKey:a,enabled:t,staleTime:0,placeholderData:l,queryFn:o},e[7]=t,e[8]=a,e[9]=l,e[10]=o,e[11]=c):c=e[11];const d=Xn(c);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 qi={query:"",range:null,rect:null,editor:null};class ro{state=qi;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(qi)}}const sa=new bd("markdownEditorMention");function oh(t,e,s){t.chain().focus().insertContentAt(e,[{type:"mention",attrs:{id:s.id,name:s.name}},{type:"text",text:" "}]).run(),zl(t.view,sa)}function ch(t,e,s){const r=Math.min(e+s,t.content.size);return e>=r?"":t.textBetween(e,r,"","")}function ao(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,"")}),zl(t.view,sa)}function io(t){return Qa.create({name:"mentionSuggestion",addProseMirrorPlugins(){const e={editor:this.editor,char:"@",pluginKey:sa,allowedPrefixes:[" ",`
|
|
82
|
-
`],allow:({state:s,range:r})=>{const n=t.dismissal;return n?r.from===n.from&&ch(s.doc,n.from,n.text.length)===n.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"?(ao(this.editor,t),t.close(),!0):!1,onExit:()=>{t.latched||t.close()}})};return[qd(e)]}})}const Ui=256,dh=40,Ki=280,uh=140;function lo(t){const e=R.c(4),{store:s}=t,r=L.useSyncExternalStore(s.subscribe,s.getSnapshot),n=r.range!==null;let a;return e[0]!==n||e[1]!==r||e[2]!==s?(a=n?i.jsx(fh,{store:s,state:r}):null,e[0]=n,e[1]=r,e[2]=s,e[3]=a):a=e[3],a}function fh({store:t,state:e}){const s=Z(),{members:r,loading:n}=lh(!0),[a,l]=L.useState(e.query),[o,c]=L.useState(null),d=hh(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,g=x<Ki&&h.top-f.top>x,p=(g?h.top-f.top:x)-8,k=Math.min(Ki,Math.max(p,uh))-dh,b={position:"absolute",width:Ui,left:Math.min(h.left,f.right-Ui-8)-u.left,...g?{bottom:u.bottom-h.top+6}:{top:h.bottom-u.top+6}},m=()=>{e.editor&&ao(e.editor,t),t.close()},y=w=>{const j=w.relatedTarget;if((!j||e.editor?.view.dom.contains(j)===!0)&&t.latched){o?.focus();return}m()},v=w=>{!e.editor||!e.range||(oh(e.editor,e.range,w),t.close())};return ll.createPortal(i.jsx("div",{style:b,"data-testid":"mention-menu",className:"z-50 overflow-hidden rounded-lg border border-border bg-popover shadow-md",children:i.jsxs(Xa,{onKeyDown:w=>{w.key==="Escape"&&(w.preventDefault(),m(),e.editor?.commands.focus())},children:[i.jsx(Ja,{ref:c,autoFocus:!0,onFocus:()=>{t.latched=!0},value:a,onValueChange:l,placeholder:s("markdownEditor.mentionSearch"),onBlur:y}),i.jsxs(ei,{style:{maxHeight:k},children:[n?i.jsx("div",{className:"flex items-center justify-center py-6",children:i.jsx(Tt,{size:"sm"})}):i.jsx(ti,{children:s("markdownEditor.mentionEmpty")}),r.map(w=>i.jsxs(Qn,{value:`${w.name} ${w.email}`,onSelect:()=>v(w),onMouseDown:j=>j.preventDefault(),className:"gap-2",children:[i.jsx(Ke,{url:w.image??void 0,fallback:Ue(w.name),shape:"circle",size:"xs"}),i.jsx("span",{className:"min-w-0 flex-1 truncate",children:w.name})]},w.id))]})]})}),d)}function hh(t){const e=t?.view.dom.closest('[role="dialog"]');return e instanceof HTMLElement?e:document.body}const ph=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,mh=Kt.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",St(this.options.HTMLAttributes,t)]},parseMarkdown:(t,e)=>e.createNode("image",{src:t.href,title:t.title,alt:t.text}),renderMarkdown:t=>{var e,s,r,n,a,l;const o=(e=(s=t.attrs)===null||s===void 0?void 0:s.src)!==null&&e!==void 0?e:"",c=(r=(n=t.attrs)===null||n===void 0?void 0:n.alt)!==null&&r!==void 0?r:"",d=(a=(l=t.attrs)===null||l===void 0?void 0:l.title)!==null&&a!==void 0?a:"";return d?``:``},addNodeView(){if(!this.options.resize||!this.options.resize.enabled||typeof document>"u")return null;const{directions:t,minWidth:e,minHeight:s,alwaysPreserveAspectRatio:r}=this.options.resize,n=new Set(["src","width","height"]);return({node:a,getPos:l,HTMLAttributes:o,editor:c})=>{const d=document.createElement("img");d.draggable=!1;const u=St(this.options.HTMLAttributes,o);Object.entries(u).forEach(([b,m])=>{if(m!=null)switch(b){case"src":case"width":case"height":break;default:d.setAttribute(b,m)}}),u.src!==null&&(d.src=u.src);let f={...o};const h=b=>{if(typeof b=="string"&&b!==""){d.getAttribute("src")!==b&&(d.src=b);return}d.hasAttribute("src")&&d.removeAttribute("src"),d.src!==""&&(d.src="")};h(o.src);const x=b=>{if(b.type!==a.type)return!1;const m=c.extensionManager.attributes.filter(v=>v.type===b.type.name),y=vd(b,m);return Object.keys(f).forEach(v=>{!n.has(v)&&!(v in y)&&d.removeAttribute(v)}),Object.entries(y).forEach(([v,w])=>{n.has(v)||(w!=null?d.setAttribute(v,w):d.removeAttribute(v))}),h(y.src),f=y,!0},g=new wd({element:d,editor:c,node:a,getPos:l,onResize:(b,m)=>{d.style.width=`${b}px`,d.style.height=`${m}px`},onCommit:(b,m)=>{const y=l();y!==void 0&&this.editor.chain().setNodeSelection(y).updateAttributes(this.name,{width:b,height:m}).run()},onUpdate:x,options:{directions:t,min:{width:e,height:s},preserveAspectRatio:r===!0}}),p=g.dom,k=()=>{p.style.visibility="",p.style.pointerEvents=""};return p.style.visibility="hidden",p.style.pointerEvents="none",d.complete&&d.naturalWidth>0?k():(d.onload=k,d.onerror=k),g}},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[yd({find:ph,type:this.type,getAttributes:t=>{const[,,e,s,r]=t;return{src:s,alt:e,title:r}}})]}});var gh=mh;function xh(t){const e=R.c(16),{node:s,selected:r,editor:n,deleteNode:a}=t,l=Z(),o=typeof s.attrs.src=="string"?s.attrs.src:"",c=typeof s.attrs.alt=="string"?s.attrs.alt:"";let d;e[0]!==c||e[1]!==l?(d=c||l("markdownEditor.imageAltFallback"),e[0]=c,e[1]=l,e[2]=d):d=e[2];const u=r&&"ring-2 ring-ring ring-offset-2 ring-offset-background";let f;e[3]!==u?(f=I("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]!==o||e[6]!==d||e[7]!==f?(h=i.jsx("img",{src:o,alt:d,draggable:!1,className:f}),e[5]=o,e[6]=d,e[7]=f,e[8]=h):h=e[8];let x;e[9]!==a||e[10]!==n.isEditable||e[11]!==l?(x=n.isEditable&&i.jsx("button",{type:"button","aria-label":l("markdownEditor.removeImage"),onMouseDown:kh,onClick:a,className:"absolute right-2 top-2 flex size-7 items-center justify-center rounded-md 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:i.jsx(Yn,{size:14})}),e[9]=a,e[10]=n.isEditable,e[11]=l,e[12]=x):x=e[12];let g;return e[13]!==h||e[14]!==x?(g=i.jsxs(Ya,{className:"group/image relative my-3 w-fit max-w-full",children:[h,x]}),e[13]=h,e[14]=x,e[15]=g):g=e[15],g}function kh(t){return t.preventDefault()}const bh=gh.extend({addNodeView(){return Za(xh)}}).configure({inline:!1,allowBase64:!1}),Ia="uploads",yh="editor-images",oo="editor-files",wh=new RegExp(`^/api/[^/]+/fs/${Ia}/read$`),Wi="http://relative.invalid";function vh(t){let e;try{e=new URL(t,Wi)}catch{return!1}return e.origin!==Wi||!wh.test(e.pathname)?!1:(e.searchParams.get("path")??"").startsWith(`${oo}/`)}const jh={openOnClick:!1,autolink:!0,HTMLAttributes:{rel:"noopener noreferrer",target:"_blank"}},Sh=jd.extend({parseMarkdown:(t,e)=>{const s=typeof t.href=="string"?t.href:"";if(vh(s))return e.createNode("attachment",{href:s,name:t.text??""});const r=id(s);return r?e.createNode("mention",{id:r,name:(t.text??"").replace(/^@/,"")}):e.applyMark("link",e.parseInline(t.tokens??[]),{href:s,title:t.title||null})}});function Th(t="",e){return[$l.configure({heading:{levels:[1,2,3]},underline:!1,link:!1}),Sh.configure(jh),Ll.configure({placeholder:t}),Zf,Sd,Td.configure({nested:!0}),bh,th,no,...e?[io(e)]:[],Xl.configure({markedOptions:{breaks:!0}})]}const Ch=/^(\s*)([-*+]|\d+[.)])\s+\S/,Nh=/^\s*(```|~~~)/,_h=/^\s+(?![-*+>#]|\d+[.)]\s)\S/;function Bh(t){const e=[];let s=!1,r=!1;for(const n of t.split(`
|
|
83
|
-
`)){if(Nh.test(n)){s=!s,r=!1,e.push(n);continue}if(s){e.push(n);continue}if(Ch.test(n)){r=!0,e.push(n);continue}if(!n.trim()){r=!1,e.push(n);continue}if(r&&_h.test(n)){e[e.length-1]=`${e[e.length-1]} ${n.trim()}`;continue}r=!1,e.push(n)}return e.join(`
|
|
84
|
-
`)}const Ah=10,Dh=25,Rh={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function $h(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Rh[t.type]??(fi(t)?".png":"")}function fi(t){return t.type.startsWith("image/")}function Eh(){const t=Z(),{upload:e}=Gd(Ia),s=Vd(Ia),[r,n]=L.useState(0);return{uploadFile:async l=>{const o=fi(l),c=o?Ah:Dh;if(l.size>c*1024*1024)return Ge.error(t("markdownEditor.fileTooLarge",{name:l.name,max:String(c)})),null;const d=o?yh:oo,u=`${crypto.randomUUID()}${$h(l)}`;n(f=>f+1);try{return await e.mutateAsync({dir:d,files:[new File([l],u,{type:l.type})]}),s(`${d}/${u}`)}catch{return Ge.error(t("markdownEditor.uploadFailed",{name:l.name})),null}finally{n(f=>f-1)}},pending:r}}const Mh=["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(" "),Ih=["[&_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 Gi(t,e,s,r){const n=t.state.schema.nodes[s];if(!n)return e;const a=t.state.tr.replaceWith(e,e,n.create(r)),l=a.mapping.map(e,1);return a.setSelection(Cd.near(a.doc.resolve(l))),t.dispatch(a),t.state.selection.to}function zh({defaultValue:t,onChange:e,placeholder:s,editable:r=!0}){const n=Z(),{uploadFile:a,pending:l}=Eh(),[o]=L.useState(()=>new ro),c=L.useRef(null),d=L.useRef(e),u=L.useRef(a);d.current=e,u.current=a;const f=(g,p,k)=>p.length===0?!1:((async()=>{let b=k;for(const m of p){const y=await u.current(m);y&&(b=fi(m)?Gi(g,b,"image",{src:y,alt:m.name}):Gi(g,b,"attachment",{href:y,name:m.name}))}})(),!0),h=El({extensions:Th(s,o),content:Bh(t),contentType:"markdown",editable:r,editorProps:{attributes:{role:"textbox","aria-label":s??"","aria-multiline":"true",class:I(Mh,Ih)},handlePaste:(g,p)=>{const k=Array.from(p.clipboardData?.files??[]);return k.length===0?!1:(p.stopPropagation(),f(g,k,g.state.selection.to))},handleDrop:(g,p,k,b)=>{if(b)return!1;const m=Array.from(p.dataTransfer?.files??[]);if(m.length===0)return!1;const y=g.posAtCoords({left:p.clientX,top:p.clientY})?.pos;return y===void 0?!1:(p.stopPropagation(),f(g,m,y))}},onUpdate:({editor:g,transaction:p})=>{p.docChanged&&d.current(g.getMarkdown())}});if(!h)return null;const x=g=>{!g||g.length===0||f(h.view,Array.from(g),h.state.selection.to)};return i.jsxs("div",{className:"flex flex-col",children:[i.jsx(Au,{editor:h}),i.jsx(lo,{store:o}),i.jsx(Ml,{editor:h,className:"text-[15px] text-muted-foreground"}),i.jsxs("div",{className:"mt-4 flex items-center gap-2 text-xs text-muted-foreground",children:[r&&i.jsx(de,{type:"button",variant:"ghost",size:"icon-sm","aria-label":n("markdownEditor.attachFile"),onClick:()=>c.current?.click(),children:i.jsx(fc,{size:14})}),l>0&&i.jsxs("span",{className:"inline-flex items-center gap-1.5","aria-live":"polite",role:"status",children:[i.jsx(Tt,{className:"size-3"}),l===1?n("markdownEditor.uploading"):n("markdownEditor.uploadingCount",{count:String(l)})]})]}),i.jsx("input",{ref:c,type:"file",multiple:!0,className:"hidden",onChange:g=>{x(g.target.files),g.target.value=""}})]})}const Lh="claude-subscription";function Ph(t){const e=(t??[]).filter(s=>s.costUsd!==null);return e.length===0?null:{total:e.reduce((s,r)=>s+(r.costUsd??0),0),runCount:e.length,onSubscription:e.every(s=>s.costProvider===Lh)}}function Oh(t,e){const s=t.state==="open"&&!t.merged,r=t.mergeable===!1,n=t.checksStatus!=="failing";return{isOpen:s,hasConflict:r,showShip:e&&s&&n&&!r,showResolveConflict:e&&s&&r}}function co(t){if(t.status!=="completed")return!1;const e=t.conclusion;return e==="success"||e==="neutral"||e==="skipped"}function Fh(t,e,s){return t!=="failing"||s||e.length===0?null:{passed:e.filter(co).length,total:e.length}}function Hh(t,e){return new URL(e,t).toString()}function uo(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 r=s.data?.reason;return typeof r!="string"?null:Qd(r.replace(/^Error:\s*/,""))}return null}function qh({orgSlug:t,repo:e,repositories:s,returnTo:r}){const n=`/api/${encodeURIComponent(t)}/git-providers/github`,a=e?s.find(o=>o.path===e)?.accountId:null;if(!a)return{url:`${n}/install?returnTo=${encodeURIComponent(r)}`,ownerOnly:!1,owner:null};const l=e?.includes("/")?e.split("/")[0]:null;return{url:`${n}/accounts/${encodeURIComponent(a)}/manage`,ownerOnly:l!==null,owner:l}}const Vi=()=>0;function Uh(t){const{orgSlug:e,itemId:s,onPrs:r}=t,n=L.useRef(r);n.current=r;const a=L.useRef(null),l=L.useRef(""),o=`${e}:${s??""}`;(!a.current||l.current!==o)&&(l.current=o,a.current=c=>{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)||(n.current(f.data.prs),c())};return Jd.subscribe(e,d)}),L.useSyncExternalStore(a.current,Vi,Vi)}const fo=1440*60*1e3,Kh=40;function ho(t){try{const e=window.localStorage.getItem(ol.taskBoardPrs(t));return e?JSON.parse(e):{}}catch{return{}}}function Wh(t){const e=Date.now(),s=Object.entries(t).filter(([,r])=>e-r.updatedAt<=fo);for(s.sort(([,r],[,n])=>r.updatedAt-n.updatedAt);s.length>Kh;)s.shift();return Object.fromEntries(s)}function Qi(t,e){if(typeof window>"u")return null;const s=ho(t)[e];return!s||Date.now()-s.updatedAt>fo?null:s}function Gh(t,e,s){if(!(typeof window>"u"))try{const r=ho(t);r[e]={data:s,updatedAt:Date.now()},window.localStorage.setItem(ol.taskBoardPrs(t),JSON.stringify(Wh(r)))}catch{}}const Vh=6e4,Qh=2e3,Zh=t=>t.state===null;function po(t){const e=R.c(25),{org:s,locator:r}=Xe(),n=zt(),a=pr();let l;e[0]!==t||e[1]!==r||e[2]!==a?(l=g=>{a.setQueryData(at.taskBoardItemPrs(r,t??""),g)},e[0]=t,e[1]=r,e[2]=a,e[3]=l):l=e[3];let o;e[4]!==t||e[5]!==s.slug||e[6]!==l?(o={orgSlug:s.slug,itemId:t,onPrs:l},e[4]=t,e[5]=s.slug,e[6]=l,e[7]=o):o=e[7],Uh(o);let c;e[8]!==t||e[9]!==r?(c=at.taskBoardItemPrs(r,t??""),e[8]=t,e[9]=r,e[10]=c):c=e[10];const d=!!t;let u,f;e[11]!==t||e[12]!==r?(u=()=>t?Qi(r,t)?.data??void 0:void 0,f=()=>t?Qi(r,t)?.updatedAt:void 0,e[11]=t,e[12]=r,e[13]=u,e[14]=f):(u=e[13],f=e[14]);let h;e[15]!==t||e[16]!==r||e[17]!==n?(h=async()=>{const{prs:g}=await n.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:t});return Gh(r,t,g),g},e[15]=t,e[16]=r,e[17]=n,e[18]=h):h=e[18];let x;return e[19]!==c||e[20]!==d||e[21]!==u||e[22]!==f||e[23]!==h?(x={queryKey:c,enabled:d,refetchInterval:Yh,initialData:u,initialDataUpdatedAt:f,queryFn:h},e[19]=c,e[20]=d,e[21]=u,e[22]=f,e[23]=h,e[24]=x):x=e[24],Xn(x)}function Yh(t){return t.state.data?.some(Zh)?Qh:Vh}function Xh(t){const e=R.c(10),{locator:s}=Xe(),r=zt();let n;e[0]!==s||e[1]!==t?(n=at.previewProbe(s,t??""),e[0]=s,e[1]=t,e[2]=n):n=e[2];const a=!!t;let l;e[3]!==r||e[4]!==t?(l=()=>r.call("TASK_BOARD_PREVIEW_PROBE",{url:t}),e[3]=r,e[4]=t,e[5]=l):l=e[5];let o;return e[6]!==n||e[7]!==a||e[8]!==l?(o={queryKey:n,enabled:a,staleTime:0,gcTime:0,retry:!1,queryFn:l},e[6]=n,e[7]=a,e[8]=l,e[9]=o):o=e[9],Xn(o)}function hi(t){const e=R.c(10),{locator:s}=Xe(),r=zt();let n;e[0]!==t||e[1]!==s?(n=at.taskBoardActivity(s,t??""),e[0]=t,e[1]=s,e[2]=n):n=e[2];const a=!!t;let l;e[3]!==t||e[4]!==r?(l=async()=>(await r.call("TASK_BOARD_ACTIVITY_LIST",{taskBoardItemId:t})).activity,e[3]=t,e[4]=r,e[5]=l):l=e[5];let o;return e[6]!==n||e[7]!==a||e[8]!==l?(o={queryKey:n,enabled:a,queryFn:l},e[6]=n,e[7]=a,e[8]=l,e[9]=o):o=e[9],Xn(o)}function Jh(t){const e=R.c(10),{locator:s}=Xe(),r=zt(),n=pr();let a;e[0]!==t||e[1]!==r?(a=async()=>await r.call("TASK_BOARD_PROMOTE_TO_PRODUCTION",{taskBoardItemId:t}),e[0]=t,e[1]=r,e[2]=a):a=e[2];let l;e[3]!==t||e[4]!==s||e[5]!==n?(l=()=>{n.invalidateQueries({queryKey:at.taskBoardItemPrs(s,t)}),n.invalidateQueries({queryKey:at.taskBoardActivity(s,t)})},e[3]=t,e[4]=s,e[5]=n,e[6]=l):l=e[6];let o;return e[7]!==a||e[8]!==l?(o={mutationFn:a,onSuccess:l},e[7]=a,e[8]=l,e[9]=o):o=e[9],Gn(o)}function ep(t){const e=R.c(10),{locator:s}=Xe(),r=zt(),n=pr();let a;e[0]!==t||e[1]!==r?(a=async c=>await r.call("TASK_BOARD_RESOLVE_CONFLICT",{id:t,prNumber:c}),e[0]=t,e[1]=r,e[2]=a):a=e[2];let l;e[3]!==t||e[4]!==s||e[5]!==n?(l=()=>{n.invalidateQueries({queryKey:at.taskBoardItemPrs(s,t)}),n.invalidateQueries({queryKey:at.taskBoardActivity(s,t)})},e[3]=t,e[4]=s,e[5]=n,e[6]=l):l=e[6];let o;return e[7]!==a||e[8]!==l?(o={mutationFn:a,onSuccess:l},e[7]=a,e[8]=l,e[9]=o):o=e[9],Gn(o)}function mo(t){return t?ld:[]}function tp(t,e,s){return e.length===0?!0:od(t,e,{cycleStartedAt:s})}function sp(t,e){if(e.length===0)return null;const s=e.map(a=>t.find(l=>l.reviewer===a)),r=s.filter(a=>a?.verdict==="approved"),n={passed:r.length,total:e.length};return s.some(a=>a?.verdict==="changes_requested")?{...n,tone:"danger"}:r.length===0?{...n,tone:"danger"}:r.length<e.length?{...n,tone:"pending"}:{...n,tone:"ok"}}function np(t){return t==="in_review"||t==="approved"}const rp=[],ap=[];function go(t,e){const s=R.c(4),r=e===void 0?rp:e,n=tu();let a;if(s[0]!==n||s[1]!==r||s[2]!==t){const l=nu(n);a=vc(l,[...t.map(ip),...r]),s[0]=n,s[1]=r,s[2]=t,s[3]=a}else a=s[3];return a}function ip(t){return t.repo}function pi(t){const e=R.c(57),{members:s,onSelect:r}=t,n=Z();let a;e[0]!==n?(a=n("taskBoard.taskDialog.assignToPlaceholder"),e[0]=n,e[1]=a):a=e[1];let l;e[2]!==n?(l=n("taskBoard.taskDialog.assignToPlaceholder"),e[2]=n,e[3]=l):l=e[3];let o;e[4]!==a||e[5]!==l?(o=i.jsx(Ja,{placeholder:a,"aria-label":l,className:"h-9"}),e[4]=a,e[5]=l,e[6]=o):o=e[6];let c;e[7]!==n?(c=n("taskBoard.taskDialog.noMembersFound"),e[7]=n,e[8]=c):c=e[8];let d;e[9]!==c?(d=i.jsx(ti,{children:c}),e[9]=c,e[10]=d):d=e[10];let u;e[11]!==n?(u=n("taskBoard.taskDialog.superAgentLabel"),e[11]=n,e[12]=u):u=e[12];let f;e[13]!==r?(f=()=>r(De),e[13]=r,e[14]=f):f=e[14];let h;e[15]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsx(jt,{size:16}),e[15]=h):h=e[15];let x;e[16]!==n?(x=n("taskBoard.taskDialog.superAgentLabel"),e[16]=n,e[17]=x):x=e[17];let g;e[18]!==x?(g=i.jsx("span",{className:"truncate",children:x}),e[18]=x,e[19]=g):g=e[19];let p;e[20]!==g||e[21]!==u||e[22]!==f?(p=i.jsxs(Qn,{value:u,onSelect:f,className:"gap-2",children:[h,g]}),e[20]=g,e[21]=u,e[22]=f,e[23]=p):p=e[23];let k;e[24]!==n?(k=n("taskBoard.taskDialog.unassignedLabel"),e[24]=n,e[25]=k):k=e[25];let b;e[26]!==r?(b=()=>r(null),e[26]=r,e[27]=b):b=e[27];let m;e[28]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(au,{size:16,className:"text-muted-foreground"}),e[28]=m):m=e[28];let y;e[29]!==n?(y=n("taskBoard.taskDialog.unassignedLabel"),e[29]=n,e[30]=y):y=e[30];let v;e[31]!==y?(v=i.jsx("span",{className:"truncate",children:y}),e[31]=y,e[32]=v):v=e[32];let w;e[33]!==k||e[34]!==b||e[35]!==v?(w=i.jsxs(Qn,{value:k,onSelect:b,className:"gap-2",children:[m,v]}),e[33]=k,e[34]=b,e[35]=v,e[36]=w):w=e[36];let j;e[37]!==p||e[38]!==w?(j=i.jsxs(qr,{children:[p,w]}),e[37]=p,e[38]=w,e[39]=j):j=e[39];let S;e[40]!==n?(S=n("taskBoard.taskDialog.membersGroupHeading"),e[40]=n,e[41]=S):S=e[41];let T;if(e[42]!==s||e[43]!==r){let D;e[45]!==r?(D=E=>i.jsxs(Qn,{value:E.user?.name??E.userId,onSelect:()=>r(E.userId),className:"gap-2",children:[i.jsx(Ke,{url:E.user?.image??void 0,fallback:Ue(E.user?.name),shape:"circle",size:"2xs"}),i.jsx("span",{className:"truncate",children:E.user?.name??E.userId})]},E.userId),e[45]=r,e[46]=D):D=e[46],T=s.map(D),e[42]=s,e[43]=r,e[44]=T}else T=e[44];let N;e[47]!==S||e[48]!==T?(N=i.jsx(qr,{heading:S,children:T}),e[47]=S,e[48]=T,e[49]=N):N=e[49];let _;e[50]!==j||e[51]!==N||e[52]!==d?(_=i.jsxs(ei,{children:[d,j,N]}),e[50]=j,e[51]=N,e[52]=d,e[53]=_):_=e[53];let $;return e[54]!==_||e[55]!==o?($=i.jsxs(Xa,{children:[o,_]}),e[54]=_,e[55]=o,e[56]=$):$=e[56],$}function lp({tags:t,selectedIds:e,defaultColor:s,onToggle:r,onCreate:n,onDelete:a}){const l=Z(),[o,c]=L.useState(""),[d,u]=L.useState(!1),[f,h]=L.useState(s),x=o.trim(),g=t.some(k=>k.name.toLowerCase()===x.toLowerCase()),p=async()=>{if(!(!x||g||d)){u(!0);try{await n(x,f),c("")}finally{u(!1)}}};return i.jsxs(Xa,{children:[i.jsx(Ja,{value:o,onValueChange:c,placeholder:l("taskBoard.taskDialog.tagFilterPlaceholder"),"aria-label":l("taskBoard.taskDialog.tagFilterPlaceholder"),className:"h-9"}),i.jsxs(ei,{children:[x&&!g?i.jsx(qr,{children:i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("input",{type:"color",value:f,onChange:k=>h(k.target.value),"aria-label":l("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"}),i.jsxs(Qn,{value:`create-${x}`,disabled:d,onSelect:p,className:"flex-1 gap-2",children:[i.jsx(dr,{size:16,className:"text-muted-foreground"}),i.jsx("span",{className:"truncate",children:l("taskBoard.taskDialog.createTagOption",{name:x})})]})]})}):i.jsx(ti,{children:l("taskBoard.taskDialog.noTagsFound")}),i.jsx(qr,{children:t.map(k=>{const b=e.includes(k.id);return i.jsxs(Qn,{value:k.name,onSelect:()=>r(k.id),className:"group gap-2",children:[i.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:mr(k.color)}}),i.jsx("span",{className:"flex-1 truncate",children:k.name}),i.jsx("button",{type:"button","aria-label":l("taskBoard.taskDialog.deleteTagAriaLabel",{name:k.name}),className:"flex size-5 shrink-0 items-center justify-center rounded-sm text-muted-foreground opacity-0 hover:bg-background hover:text-destructive focus-visible:opacity-100 group-hover:opacity-100",onClick:m=>{m.stopPropagation(),a(k.id)},children:i.jsx(La,{size:13})}),b&&i.jsx(Vn,{size:14,className:"shrink-0 text-foreground"})]},k.id)})})]})]})}function op(t){if(!t)return[];const e=[],s=new Set,r=(l,o)=>{s.has(l)||(s.add(l),e.push({url:l,label:o.trim()||l}))},n=t.replace(/!\[[^\]]*\]\([^)]*\)/g,"");for(const l of n.matchAll(/\[([^\]]*)\]\((https?:\/\/[^)\s]+)[^)]*\)/g))r(l[2]??"",l[1]??"");const a=n.replace(/\[[^\]]*\]\([^)]*\)/g,"");for(const l of a.matchAll(/https?:\/\/[^\s)]+/g))r(l[0],l[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 dp(t){const e=R.c(5),{title:s}=t;let r;e[0]!==s?(r=i.jsx(iu,{className:"shrink-0 border-b border-border px-5 pb-5 pt-6 md:px-6",children:i.jsx(lu,{className:"truncate text-sm leading-snug",children:s})}),e[0]=s,e[1]=r):r=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("div",{className:"flex flex-1 items-center justify-center"}),e[2]=n):n=e[2];let a;return e[3]!==r?(a=i.jsxs(i.Fragment,{children:[r,n]}),e[3]=r,e[4]=a):a=e[4],a}function up(t){const e=R.c(12),{thread:s}=t,{org:r,locator:n}=Xe();let a;e[0]!==r.id||e[1]!==r.slug?(a={connectionId:Eo,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=a):a=e[2];const l=uu(a),o=Ol(),c=su(),{data:d}=qa();let u;e[3]!==s?(u=cp(s),e[3]=s,e[4]=u):u=e[4];let f;return e[5]!==l||e[6]!==o||e[7]!==n||e[8]!==d||e[9]!==u||e[10]!==c?(f=i.jsx(du,{thread:u,client:l,locator:n,connections:o,virtualMcps:c,members:d,meta:!1}),e[5]=l,e[6]=o,e[7]=n,e[8]=d,e[9]=u,e[10]=c,e[11]=f):f=e[11],f}function fp(t){const e=R.c(11),{thread:s,onClose:r}=t,n=Z(),a=!!s;let l;e[0]!==r?(l=u=>!u&&r(),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==n||e[3]!==s?(o=s&&i.jsx(L.Suspense,{fallback:i.jsx(dp,{title:s.title??n("taskBoard.taskDialog.superAgentDefaultName")}),children:i.jsx(up,{thread:s})}),e[2]=n,e[3]=s,e[4]=o):o=e[4];let c;e[5]!==o?(c=i.jsx(ou,{"data-testid":"task-thread-sheet",className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:o}),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==l||e[9]!==c?(d=i.jsx(cu,{open:a,onOpenChange:l,children:c}),e[7]=a,e[8]=l,e[9]=c,e[10]=d):d=e[10],d}const hp=["[&_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 pp(t){const e=R.c(24),{placeholder:s,onSubmit:r,onEmptyChange:n,ref:a,className:l}=t,[o]=L.useState(mp);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=$l.configure({heading:!1,bulletList:!1,orderedList:!1,listItem:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,link:!1,underline:!1}),e[0]=c):c=e[0];let d;e[1]!==o?(d=io(o),e[1]=o,e[2]=d):d=e[2];let u;e[3]!==s?(u=Ll.configure({placeholder:s}),e[3]=s,e[4]=u):u=e[4];let f;e[5]!==d||e[6]!==u?(f=[c,no,d,u,Xl],e[5]=d,e[6]=u,e[7]=f):f=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=I("outline-none text-sm leading-relaxed text-foreground",hp),e[8]=h):h=e[8];let x;e[9]!==s?(x={role:"textbox","aria-label":s,"aria-multiline":"true",class:h},e[9]=s,e[10]=x):x=e[10];let g;e[11]!==n?(g=w=>{const{editor:j}=w;return n(j.isEmpty)},e[11]=n,e[12]=g):g=e[12];const p=El({extensions:f,editorProps:{attributes:x,handleKeyDown:(w,j)=>j.key!=="Enter"||j.shiftKey||sa.getState(w.state)?.active?!1:(j.preventDefault(),k(),!0)},onUpdate:g});function k(){if(!p)return;const w=p.getMarkdown().trim();w&&(r(w),p.commands.clearContent(),n(!0))}let b;e[13]!==p?.commands||e[14]!==k?(b=()=>({submit:k,focus:()=>p?.commands.focus()}),e[13]=p?.commands,e[14]=k,e[15]=b):b=e[15],L.useImperativeHandle(a,b);let m;e[16]!==l||e[17]!==p?(m=i.jsx(Ml,{editor:p,className:l}),e[16]=l,e[17]=p,e[18]=m):m=e[18];let y;e[19]!==o?(y=i.jsx(lo,{store:o}),e[19]=o,e[20]=y):y=e[20];let v;return e[21]!==y||e[22]!==m?(v=i.jsxs(i.Fragment,{children:[m,y]}),e[21]=y,e[22]=m,e[23]=v):v=e[23],v}function mp(){return new ro}function gp(t){const e=R.c(40),{thread:s,me:r,onReply:n,onDelete:a,onToggleResolved:l}=t,o=Z(),[c,d]=L.useState(!1);if(s.resolved&&!c){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>d(!0),e[0]=m):m=e[0];let y;e[1]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(hc,{size:16,className:"shrink-0 text-muted-foreground"}),e[1]=y):y=e[1];let v;e[2]!==o||e[3]!==s?(v=kp(s,o),e[2]=o,e[3]=s,e[4]=v):v=e[4];let w;e[5]!==v?(w=i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:v}),e[5]=v,e[6]=w):w=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j=i.jsx(hu,{size:16,className:"shrink-0 text-muted-foreground"}),e[7]=j):j=e[7];let S;return e[8]!==w?(S=i.jsxs("button",{type:"button",onClick:m,className:"flex w-full items-center gap-2.5 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-muted/60",children:[y,w,j]}),e[8]=w,e[9]=S):S=e[9],S}let u;e[10]!==o||e[11]!==s.resolved?(u=s.resolved&&i.jsxs(i.Fragment,{children:[i.jsxs("button",{type:"button",onClick:()=>d(!1),className:"flex items-center justify-between gap-2 rounded-t-xl bg-muted/40 px-4 py-2.5 text-left text-sm text-muted-foreground transition-colors hover:text-foreground",children:[o("taskBoard.taskDialog.commentCollapseThread"),i.jsx(Yn,{size:14,"aria-hidden":!0})]}),i.jsx(Ca,{})]}),e[10]=o,e[11]=s.resolved,e[12]=u):u=e[12];let f;e[13]!==r||e[14]!==a||e[15]!==s?(f=Zi(s,r)?()=>a(s.id):void 0,e[13]=r,e[14]=a,e[15]=s,e[16]=f):f=e[16];let h;e[17]!==l||e[18]!==f||e[19]!==s?(h=i.jsx(Yi,{comment:s,onDelete:f,resolved:s.resolved,onToggleResolved:l}),e[17]=l,e[18]=f,e[19]=s,e[20]=h):h=e[20];let x;if(e[21]!==r||e[22]!==a||e[23]!==s.replies){let m;e[25]!==r||e[26]!==a?(m=(y,v)=>i.jsxs(L.Fragment,{children:[i.jsx(Ca,{inset:v>0}),i.jsx(Yi,{comment:y,onDelete:Zi(y,r)?()=>a(y.id):void 0,isReply:!0})]},y.id),e[25]=r,e[26]=a,e[27]=m):m=e[27],x=s.replies.map(m),e[21]=r,e[22]=a,e[23]=s.replies,e[24]=x}else x=e[24];let g;e[28]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(Ca,{}),e[28]=g):g=e[28];let p;e[29]!==o?(p=o("taskBoard.taskDialog.commentReplyPlaceholder"),e[29]=o,e[30]=p):p=e[30];let k;e[31]!==r||e[32]!==n||e[33]!==p?(k=i.jsx(ko,{variant:"reply",placeholder:p,author:r,onSubmit:n}),e[31]=r,e[32]=n,e[33]=p,e[34]=k):k=e[34];let b;return e[35]!==u||e[36]!==h||e[37]!==x||e[38]!==k?(b=i.jsxs("div",{className:"flex flex-col rounded-xl bg-card card-shadow",children:[u,h,x,g,k]}),e[35]=u,e[36]=h,e[37]=x,e[38]=k,e[39]=b):b=e[39],b}function Zi(t,e){return t.author.id===e.id||t.author.isAgent===!0}const xp=new Intl.ListFormat(void 0,{style:"long",type:"conjunction"});function kp(t,e){const s=[t,...t.replies],r=xp.format([...new Set(s.map(n=>n.author.name))]);return s.length===1?e("taskBoard.taskDialog.commentResolvedSummaryOne",{names:r}):e("taskBoard.taskDialog.commentResolvedSummaryMany",{count:s.length,names:r})}function bp(t){const e=R.c(6),{me:s,onSubmit:r}=t,n=Z();let a;e[0]!==n?(a=n("taskBoard.taskDialog.commentPlaceholder"),e[0]=n,e[1]=a):a=e[1];let l;return e[2]!==s||e[3]!==r||e[4]!==a?(l=i.jsx(ko,{variant:"root",placeholder:a,author:s,onSubmit:r}),e[2]=s,e[3]=r,e[4]=a,e[5]=l):l=e[5],l}function Ca(t){const e=R.c(4),{inset:s}=t,r=s&&"ml-12";let n;e[0]!==r?(n=I("h-px bg-border/50",r),e[0]=r,e[1]=n):n=e[1];let a;return e[2]!==n?(a=i.jsx("span",{className:n}),e[2]=n,e[3]=a):a=e[3],a}function Yi(t){const e=R.c(28),{comment:s,isReply:r,resolved:n,onDelete:a,onToggleResolved:l}=t;let o;e[0]!==s.author?(o=i.jsx(xo,{author:s.author}),e[0]=s.author,e[1]=o):o=e[1];let c;e[2]!==s.author.name?(c=i.jsx("span",{className:"text-sm font-medium text-foreground",children:s.author.name}),e[2]=s.author.name,e[3]=c):c=e[3];let d;e[4]!==s.createdAt?(d=Ua(new Date(s.createdAt)),e[4]=s.createdAt,e[5]=d):d=e[5];let u;e[6]!==d?(u=i.jsx("span",{className:"text-sm text-muted-foreground",children:d}),e[6]=d,e[7]=u):u=e[7];let f;e[8]!==a||e[9]!==l||e[10]!==n?(f=(a||l)&&i.jsx(yp,{resolved:n,onDelete:a,onToggleResolved:l}),e[8]=a,e[9]=l,e[10]=n,e[11]=f):f=e[11];let h;e[12]!==o||e[13]!==c||e[14]!==u||e[15]!==f?(h=i.jsxs("div",{className:"flex items-center gap-2",children:[o,c,u,f]}),e[12]=o,e[13]=c,e[14]=u,e[15]=f,e[16]=h):h=e[16];const x=r&&"pl-8";let g;e[17]!==x?(g=I("text-sm leading-relaxed text-foreground [&_li]:text-sm [&_p]:text-sm",x),e[17]=x,e[18]=g):g=e[18];let p;e[19]!==s.body||e[20]!==s.id?(p=i.jsx(Bl,{id:s.id,text:s.body}),e[19]=s.body,e[20]=s.id,e[21]=p):p=e[21];let k;e[22]!==g||e[23]!==p?(k=i.jsx("div",{className:g,children:p}),e[22]=g,e[23]=p,e[24]=k):k=e[24];let b;return e[25]!==k||e[26]!==h?(b=i.jsxs("div",{className:"group flex flex-col gap-1.5 p-4",children:[h,k]}),e[25]=k,e[26]=h,e[27]=b):b=e[27],b}function yp(t){const e=R.c(18),{resolved:s,onDelete:r,onToggleResolved:n}=t,a=Z();let l;e[0]!==a?(l=a("taskBoard.taskDialog.commentActionsAriaLabel"),e[0]=a,e[1]=l):l=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx(Zn,{size:16}),e[2]=o):o=e[2];let c;e[3]!==l?(c=i.jsx(Ve,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":l,className:"ml-auto flex size-7 shrink-0 items-center justify-center rounded-md 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:o})}),e[3]=l,e[4]=c):c=e[4];let d;e[5]!==n||e[6]!==s||e[7]!==a?(d=n&&i.jsxs(i.Fragment,{children:[i.jsxs(we,{onSelect:n,children:[i.jsx(Vn,{size:16}),a(s?"taskBoard.taskDialog.commentUnresolveThread":"taskBoard.taskDialog.commentResolveThread")]}),i.jsx(Ha,{})]}),e[5]=n,e[6]=s,e[7]=a,e[8]=d):d=e[8];let u;e[9]!==r||e[10]!==a?(u=r&&i.jsxs(we,{variant:"destructive",onSelect:r,children:[i.jsx(La,{size:16}),a("taskBoard.taskDialog.commentDelete")]}),e[9]=r,e[10]=a,e[11]=u):u=e[11];let f;e[12]!==d||e[13]!==u?(f=i.jsxs(Qe,{align:"end",className:"w-48",children:[d,u]}),e[12]=d,e[13]=u,e[14]=f):f=e[14];let h;return e[15]!==c||e[16]!==f?(h=i.jsxs(Ze,{children:[c,f]}),e[15]=c,e[16]=f,e[17]=h):h=e[17],h}function xo(t){const e=R.c(6),{author:s}=t;if(s.isAgent){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(jt,{size:24}),e[0]=l):l=e[0],l}const r=s.image??void 0;let n;e[1]!==s.name?(n=Ue(s.name),e[1]=s.name,e[2]=n):n=e[2];let a;return e[3]!==r||e[4]!==n?(a=i.jsx(Ke,{url:r,fallback:n,shape:"circle",size:"xs"}),e[3]=r,e[4]=n,e[5]=a):a=e[5],a}function ko(t){const e=R.c(27),{variant:s,placeholder:r,author:n,onSubmit:a}=t,l=Z(),o=L.useRef(null),[c,d]=L.useState(!0);let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>o.current?.submit(),e[0]=u):u=e[0];const f=u,h=s==="root"&&"min-h-10";let x;e[1]!==h?(x=I("w-full [&_.tiptap]:outline-none",h),e[1]=h,e[2]=x):x=e[2];let g;e[3]!==a||e[4]!==r||e[5]!==x?(g=i.jsx(pp,{ref:o,placeholder:r,onSubmit:a,onEmptyChange:d,className:x}),e[3]=a,e[4]=r,e[5]=x,e[6]=g):g=e[6];const p=g;let k;e[7]!==l?(k=l("taskBoard.taskDialog.commentSubmitAriaLabel"),e[7]=l,e[8]=k):k=e[8];let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=i.jsx(fu,{size:16}),e[9]=b):b=e[9];let m;e[10]!==c||e[11]!==k?(m=i.jsx("button",{type:"button",disabled:c,onClick:f,"aria-label":k,className:"flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-40",children:b}),e[10]=c,e[11]=k,e[12]=m):m=e[12];const y=m;let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=()=>o.current?.focus(),e[13]=v):v=e[13];const w=v;if(s==="root"){let N;e[14]!==y?(N=i.jsx("div",{className:"flex items-center justify-end",children:y}),e[14]=y,e[15]=N):N=e[15];let _;return e[16]!==N||e[17]!==p?(_=i.jsxs("div",{"data-testid":"new-comment-composer",onClick:w,className:"relative flex cursor-text flex-col gap-1 rounded-xl bg-card p-3 card-shadow",children:[p,N]}),e[16]=N,e[17]=p,e[18]=_):_=e[18],_}let j;e[19]!==n?(j=i.jsx("span",{className:"mt-0.5 shrink-0",children:i.jsx(xo,{author:n})}),e[19]=n,e[20]=j):j=e[20];let S;e[21]!==p?(S=i.jsx("div",{className:"min-w-0 flex-1 pt-0.5",children:p}),e[21]=p,e[22]=S):S=e[22];let T;return e[23]!==y||e[24]!==S||e[25]!==j?(T=i.jsxs("div",{"data-testid":"reply-composer",onClick:w,className:"relative flex cursor-text items-start gap-2 p-3",children:[j,S,y]}),e[23]=y,e[24]=S,e[25]=j,e[26]=T):T=e[26],T}function wp(t){const e=t.filter(r=>!r.parentId).map(r=>({...r,replies:[]})),s=new Map(e.map(r=>[r.id,r]));for(const r of t)r.parentId&&s.get(r.parentId)?.replies.push(r);return e}function vp(t){const e=R.c(36),{locator:s}=Xe(),r=zt(),n=pr();let a;e[0]!==t||e[1]!==s?(a=at.taskBoardComments(s,t??""),e[0]=t,e[1]=s,e[2]=a):a=e[2];const l=a,o=!!t;let c;e[3]!==t||e[4]!==r?(c=async()=>wp((await r.call("TASK_BOARD_COMMENT_LIST",{taskBoardItemId:t})).comments),e[3]=t,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==l||e[7]!==o||e[8]!==c?(d={queryKey:l,enabled:o,queryFn:c},e[6]=l,e[7]=o,e[8]=c,e[9]=d):d=e[9];const u=Xn(d);let f;e[10]!==n||e[11]!==l?(f=()=>n.invalidateQueries({queryKey:l}),e[10]=n,e[11]=l,e[12]=f):f=e[12];const h=f;let x;e[13]!==t||e[14]!==r?(x=T=>r.call("TASK_BOARD_COMMENT_CREATE",{taskBoardItemId:t,...T}),e[13]=t,e[14]=r,e[15]=x):x=e[15];let g;e[16]!==h||e[17]!==x?(g={mutationFn:x,onSuccess:h},e[16]=h,e[17]=x,e[18]=g):g=e[18];const p=Gn(g);let k;e[19]!==r?(k=T=>r.call("TASK_BOARD_COMMENT_UPDATE",T),e[19]=r,e[20]=k):k=e[20];let b;e[21]!==h||e[22]!==k?(b={mutationFn:k,onSuccess:h},e[21]=h,e[22]=k,e[23]=b):b=e[23];const m=Gn(b);let y;e[24]!==r?(y=T=>r.call("TASK_BOARD_COMMENT_DELETE",{id:T}),e[24]=r,e[25]=y):y=e[25];let v;e[26]!==h||e[27]!==y?(v={mutationFn:y,onSuccess:h},e[26]=h,e[27]=y,e[28]=v):v=e[28];const w=Gn(v);let j;e[29]!==u.data?(j=u.data??[],e[29]=u.data,e[30]=j):j=e[30];let S;return e[31]!==p||e[32]!==w||e[33]!==m||e[34]!==j?(S={threads:j,post:p,setResolved:m,remove:w},e[31]=p,e[32]=w,e[33]=m,e[34]=j,e[35]=S):S=e[35],S}function jp(t){const e=R.c(24),{locator:s}=Xe(),r=zt(),n=pr();let a;e[0]!==t||e[1]!==s?(a=at.notificationSubscribers(s,t??""),e[0]=t,e[1]=s,e[2]=a):a=e[2];const l=a,o=!!t;let c;e[3]!==t||e[4]!==r?(c=async()=>(await r.call("NOTIFICATION_SUBSCRIPTION_LIST",{taskBoardItemId:t})).userIds,e[3]=t,e[4]=r,e[5]=c):c=e[5];let d;e[6]!==l||e[7]!==o||e[8]!==c?(d={queryKey:l,enabled:o,queryFn:c},e[6]=l,e[7]=o,e[8]=c,e[9]=d):d=e[9];const u=Xn(d);let f;e[10]!==t||e[11]!==r?(f=b=>r.call("NOTIFICATION_SUBSCRIPTION_SET",{taskBoardItemId:t,subscribed:b}),e[10]=t,e[11]=r,e[12]=f):f=e[12];let h;e[13]!==n||e[14]!==l?(h=()=>n.invalidateQueries({queryKey:l}),e[13]=n,e[14]=l,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 g=Gn(x);let p;e[19]!==u.data?(p=u.data??[],e[19]=u.data,e[20]=p):p=e[20];let k;return e[21]!==g||e[22]!==p?(k={subscriberIds:p,setSubscribed:g},e[21]=g,e[22]=p,e[23]=k):k=e[23],k}const Sp=3;function Tp(t){const e=R.c(23),{itemId:s,members:r}=t,n=Z(),{data:a}=cl.useSession(),l=a?.user?.id,{subscriberIds:o,setSubscribed:c}=jp(s);let d;e[0]!==l||e[1]!==o?(d=!!l&&o.includes(l),e[0]=l,e[1]=o,e[2]=d):d=e[2];const u=d;let f;if(e[3]!==s||e[4]!==r||e[5]!==l||e[6]!==c||e[7]!==u||e[8]!==o||e[9]!==n){const h=new Map(r.map(_p)),x=l?h.get(l):void 0;let g;e[11]!==l?(g=S=>S!==l,e[11]=l,e[12]=g):g=e[12];const p=o.filter(g).map(S=>h.get(S)).filter(Np),k=[...u&&x?[x]:[],...p],b=k.slice(0,Sp),m=k.length-b.length,y=!s||c.isPending;let v;e[13]!==c||e[14]!==u?(v=()=>c.mutate(!u),e[13]=c,e[14]=u,e[15]=v):v=e[15];let w;e[16]!==u||e[17]!==n?(w=n(u?"taskBoard.taskDialog.unsubscribe":"taskBoard.taskDialog.subscribe"),e[16]=u,e[17]=n,e[18]=w):w=e[18];let j;e[19]!==y||e[20]!==v||e[21]!==w?(j=i.jsx(de,{type:"button",variant:"ghost",size:"sm",disabled:y,onClick:v,className:"h-7 px-2 text-sm font-normal text-muted-foreground",children:w}),e[19]=y,e[20]=v,e[21]=w,e[22]=j):j=e[22],f=i.jsxs("div",{className:"flex items-center gap-2",children:[j,b.length>0&&i.jsxs("span",{className:"inline-flex items-center",title:k.map(S=>S.user?.name??n("taskBoard.taskDialog.someoneLabel")).join(", "),children:[b.map(Cp),m>0&&i.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:["+",m]})]})]}),e[3]=s,e[4]=r,e[5]=l,e[6]=c,e[7]=u,e[8]=o,e[9]=n,e[10]=f}else f=e[10];return f}function Cp(t){return i.jsx(Ke,{url:t.user?.image??void 0,fallback:Ue(t.user?.name),shape:"circle",size:"xs",className:"-ml-2 ring-2 ring-background first:ml-0"},t.userId)}function Np(t){return!!t}function _p(t){return[t.userId,t]}function mi(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function bo(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Xi=560,Bp=2e3,yo=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),vt="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",Ji=4,el=1,lr="opacity-50";function Ap(t){const e=R.c(22),{threads:s}=t,r=Z();let n,a,l,o,c,d;if(e[0]!==r||e[1]!==s){d=Symbol.for("react.early_return_sentinel");e:{const h=Ph(s);if(!h){d=null;break e}const{total:x,runCount:g,onSubscription:p}=h,k=g===1,b=p?k?"taskBoard.taskDialog.costTooltipSubscriptionSingular":"taskBoard.taskDialog.costTooltipSubscriptionPlural":k?"taskBoard.taskDialog.costTooltipSingular":"taskBoard.taskDialog.costTooltipPlural";e[8]===Symbol.for("react.memo_cache_sentinel")?(l=I(vt,"cursor-default hover:bg-transparent"),e[8]=l):l=e[8];const m=String(g);e[9]!==r||e[10]!==m||e[11]!==b?(o=r(b,{runs:m}),e[9]=r,e[10]=m,e[11]=b,e[12]=o):o=e[12],e[13]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(nd,{size:16,className:"shrink-0 text-muted-foreground"}),e[13]=c):c=e[13],n="tabular-nums",a=r("taskBoard.taskDialog.costEstimatePrefix",{amount:x.toLocaleString(void 0,{style:"currency",currency:"USD"})})}e[0]=r,e[1]=s,e[2]=n,e[3]=a,e[4]=l,e[5]=o,e[6]=c,e[7]=d}else n=e[2],a=e[3],l=e[4],o=e[5],c=e[6],d=e[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;let u;e[14]!==n||e[15]!==a?(u=i.jsx("span",{className:n,children:a}),e[14]=n,e[15]=a,e[16]=u):u=e[16];let f;return e[17]!==l||e[18]!==o||e[19]!==c||e[20]!==u?(f=i.jsxs("div",{className:l,title:o,children:[c,u]}),e[17]=l,e[18]=o,e[19]=c,e[20]=u,e[21]=f):f=e[21],f}function Lr(t){const e=R.c(7),{label:s,children:r}=t;let n;e[0]!==s?(n=i.jsx("span",{className:"px-3 text-sm font-medium text-muted-foreground opacity-[0.74]",children:s}),e[0]=s,e[1]=n):n=e[1];let a;e[2]!==r?(a=i.jsx("div",{className:"flex flex-wrap gap-2 sm:flex-col sm:items-start sm:gap-1",children:r}),e[2]=r,e[3]=a):a=e[3];let l;return e[4]!==n||e[5]!==a?(l=i.jsxs("div",{className:"flex flex-col gap-2",children:[n,a]}),e[4]=n,e[5]=a,e[6]=l):l=e[6],l}function Dp(t){const e=R.c(7),{item:s}=t,r=Z(),{data:n}=po(s.id);if(!n||n.length===0)return null;let a;e[0]!==r?(a=r("taskBoard.taskDialog.reviewsLabel"),e[0]=r,e[1]=a):a=e[1];let l;e[2]!==n?(l=n.map(Rp),e[2]=n,e[3]=l):l=e[3];let o;return e[4]!==a||e[5]!==l?(o=i.jsx(Lr,{label:a,children:l}),e[4]=a,e[5]=l,e[6]=o):o=e[6],o}function Rp(t){return i.jsx(de,{asChild:!0,variant:"ghost",className:"h-9 w-full justify-start gap-2 px-3 font-medium",children:i.jsxs("a",{href:t.url,target:"_blank",rel:"noreferrer",title:t.title?`#${t.number} ${t.title}`:t.url,children:[i.jsx(Mr,{size:16,className:"shrink-0"}),i.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:t.title??`#${t.number}`})]})},t.url)}function wo(t){const e=R.c(11),{label:s,action:r,children:n}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Va,{size:14,className:"shrink-0 transition-transform group-data-[state=closed]:-rotate-90"}),e[0]=a):a=e[0];let l;e[1]!==s?(l=i.jsxs(ed,{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]=l):l=e[2];let o;e[3]!==r||e[4]!==l?(o=i.jsxs("div",{className:"flex min-h-7 items-center justify-between gap-2",children:[l,r]}),e[3]=r,e[4]=l,e[5]=o):o=e[5];let c;e[6]!==n?(c=i.jsx(td,{children:n}),e[6]=n,e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==c?(d=i.jsxs(sd,{defaultOpen:!0,className:"flex flex-col gap-2",children:[o,c]}),e[8]=o,e[9]=c,e[10]=d):d=e[10],d}function vo(t){const e=R.c(466),{chrome:s,open:r,onClose:n,item:a,defaultStatus:l,defaultRepo:o,onSubmit:c,onDelete:d,onClone:u,onArchive:f,onOpenPreview:h,onNewChat:x,onAutoFix:g,onRerun:p,isSaving:k}=t,b=r===void 0?!0:r,m=Z(),{org:y}=Xe();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={strict:!1},e[0]=v):v=e[0];const{agentId:w}=Qr(v),{data:j}=qa();let S;e[1]!==j?.data?.members?(S=j?.data?.members??[],e[1]=j?.data?.members,e[2]=S):S=e[2];const T=S,N=Wa("delivery_lanes_enabled"),{handleCopy:_,copied:$}=ja(),{handleCopy:D,copied:E}=ja(),{handleCopy:P,copied:O}=ja(),{data:z}=Ka();let V;e[3]!==z?(V=z===void 0?[]:z,e[3]=z,e[4]=V):V=e[4];const F=V,Q=Kc(),W=Wc();let H;e[5]===Symbol.for("react.memo_cache_sentinel")?(H={slug:"mcp-github"},e[5]=H):H=e[5];const Y=Ol(H);let G;e[6]!==Y?(G=ru(Y),e[6]=Y,e[7]=G):G=e[7];const q=go(ap,G),ne=ml(q),ae=a?.title??"",te=a?.description??"",oe=a?.status??l??cd[0],ue=a?.priority??"medium",_e=a?.type??dd,Ae=a?.assigneeId??null,pe=a?.repo??o??null,ge=a?.dueDate;let ke;e[8]!==ge?(ke=bo(ge),e[8]=ge,e[9]=ke):ke=e[9];let xe;e[10]!==a?.tags?(xe=a?.tags.map(Ip)??[],e[10]=a?.tags,e[11]=xe):xe=e[11];let Be;e[12]!==te||e[13]!==oe||e[14]!==ue||e[15]!==_e||e[16]!==Ae||e[17]!==pe||e[18]!==ke||e[19]!==xe||e[20]!==ae?(Be={title:ae,description:te,status:oe,priority:ue,type:_e,assigneeId:Ae,repo:pe,dueDate:ke,tagIds:xe},e[12]=te,e[13]=oe,e[14]=ue,e[15]=_e,e[16]=Ae,e[17]=pe,e[18]=ke,e[19]=xe,e[20]=ae,e[21]=Be):Be=e[21];const[Se,Te]=L.useState(Be),{title:ee,description:me,status:K,priority:be,assigneeId:B,repo:se,dueDate:J}=Se;let fe;e[22]!==q||e[23]!==se?(fe=se?gl(se,q):void 0,e[22]=q,e[23]=se,e[24]=fe):fe=e[24];const ie=fe,Ie=Se.type,ve=Se.tagIds,[$e,Ce]=L.useState(!1),[it,tr]=L.useState(!1),ze=it&&!$e;let je;e[25]===Symbol.for("react.memo_cache_sentinel")?(je=A=>{if(!A)return;const re=()=>tr(A.scrollHeight>Xi);re();const ye=new ResizeObserver(re);return ye.observe(A),()=>ye.disconnect()},e[25]=je):je=e[25];const Vt=je,[sr,Lt]=L.useState(!1),[nr,rr]=L.useState(!1),[Ct,lt]=L.useState(!1),[ot,Je]=L.useState(null);let ft;e[26]!==a?.threads||e[27]!==ot?(ft=a?.threads.find(A=>A.threadId===ot)??null,e[26]=a?.threads,e[27]=ot,e[28]=ft):ft=e[28];const Nt=ft,ct=L.useRef(Se),qe=L.useRef(null),ht=L.useRef(c);let et;e[29]===Symbol.for("react.memo_cache_sentinel")?(et=()=>{qe.current=null;const A=ct.current;A.title.trim()&&ht.current({title:A.title.trim(),description:A.description.trim()||null,status:A.status,priority:A.priority,type:A.type,assigneeId:A.assigneeId,repo:A.repo,dueDate:A.dueDate?mi(A.dueDate):null,tagIds:A.tagIds})},e[29]=et):et=e[29];const Le=et;let pt;e[30]!==Le||e[31]!==a||e[32]!==c?(pt=(A,re)=>{const ye=re===void 0?!1:re,Me={...ct.current,...A};ct.current=Me,ht.current=c,Te(Me),a&&(qe.current&&clearTimeout(qe.current),ye?qe.current=setTimeout(Le,Bp):Le())},e[30]=Le,e[31]=a,e[32]=c,e[33]=pt):pt=e[33];const U=pt;let mt;e[34]!==Le?(mt=()=>{qe.current&&(clearTimeout(qe.current),Le())},e[34]=Le,e[35]=mt):mt=e[35];const Fe=mt;let gt;e[36]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>{qe.current&&(clearTimeout(qe.current),qe.current=null)},e[36]=gt):gt=e[36];const Qt=gt;let _t;e[37]!==Fe||e[38]!==n?(_t=()=>{Fe(),n()},e[37]=Fe,e[38]=n,e[39]=_t):_t=e[39];const Re=_t;let xt;e[40]!==Fe?(xt=A=>{if(A)return()=>Fe()},e[40]=Fe,e[41]=xt):xt=e[41];const Bt=xt;let kt;e[42]!==Re?(kt=A=>{if(!A)return;const re=ye=>{if(ye.key!=="Escape"||ye.defaultPrevented||document.querySelector('[data-radix-popper-content-wrapper], [role="dialog"][data-state="open"]'))return;const Me=ye.target;if(Me instanceof HTMLElement&&(Me.isContentEditable||Me instanceof HTMLInputElement||Me instanceof HTMLTextAreaElement)){Me.blur();return}Re()};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},e[42]=Re,e[43]=kt):kt=e[43];const At=kt;let tt;e[44]!==Q||e[45]!==U?(tt=async(A,re)=>{const ye=await Q.mutateAsync({name:A,color:re});U({tagIds:[...ct.current.tagIds,ye.id]})},e[44]=Q,e[45]=U,e[46]=tt):tt=e[46];const Dt=tt;let bt;e[47]!==W||e[48]!==U?(bt=A=>{W.mutate(A),U({tagIds:ct.current.tagIds.filter(re=>re!==A)})},e[47]=W,e[48]=U,e[49]=bt):bt=e[49];const C=bt,M=B===De,ce=a&&g&&(K==="triage"||K==="todo")&&!M,Ee=a&&p&&a.assigneeId===De;let We;e[50]!==a||e[51]!==y?(We=a?xl(y.slug,a.keySeq):null,e[50]=a,e[51]=y,e[52]=We):We=e[52];const Pe=We;let br;if(e[53]!==B||e[54]!==T){let A;e[56]!==B?(A=re=>re.userId===B,e[56]=B,e[57]=A):A=e[57],br=T.find(A),e[53]=B,e[54]=T,e[55]=br}else br=e[55];const yt=br;let yr;e[58]!==a||e[59]!==T?(yr=a?.assignedBy?T.find(A=>A.userId===a.assignedBy):void 0,e[58]=a,e[59]=T,e[60]=yr):yr=e[60];const He=yr;let wr;e[61]!==K?(wr=_a(K),e[61]=K,e[62]=wr):wr=e[62];const ra=wr.icon;let Ne,Zt,Yt,Xt,Jt,es,Rt,ts,ss,ns,rs,as,$t,is,Et;if(e[63]!==w||e[64]!==s||e[65]!==Re||e[66]!==$||e[67]!==P||e[68]!==D||e[69]!==me||e[70]!==Fe||e[71]!==_||e[72]!==O||e[73]!==k||e[74]!==a||e[75]!==Pe||e[76]!==E||e[77]!==f||e[78]!==g||e[79]!==u||e[80]!==d||e[81]!==x||e[82]!==p||e[83]!==y||e[84]!==U||e[85]!==ce||e[86]!==Ee||e[87]!==K||e[88]!==m||e[89]!==ee){Ne=!!a&&Al(a);let A;e[105]!==s||e[106]!==Re||e[107]!==P||e[108]!==O||e[109]!==Pe||e[110]!==m?(A=s==="page"?i.jsx(Gc,{className:"-ml-2",children:i.jsxs(Vc,{className:"text-[15px]",children:[i.jsx(vi,{children:i.jsx(Qc,{asChild:!0,className:"rounded-md px-2 py-1 text-muted-foreground hover:bg-accent",children:i.jsx("button",{type:"button",onClick:Re,children:m("taskBoard.taskDetail.breadcrumbTasks")})})}),i.jsx(Zc,{}),i.jsx(vi,{children:i.jsx(Yc,{className:"px-2 py-1",children:Pe??m("taskBoard.taskDetail.breadcrumbTask")})})]})}):Pe?i.jsxs(de,{variant:"ghost",size:"sm",title:Pe,"aria-label":m("taskBoard.taskDialog.copyIdAriaLabel"),className:"-ml-2 gap-2 px-2 text-[15px] text-muted-foreground hover:text-foreground",onClick:()=>{P(Pe),Ge.success(m("taskBoard.taskDialog.idCopied"))},children:[O?i.jsx(Vn,{size:16}):i.jsx(bi,{size:16}),Pe]}):i.jsxs("span",{"aria-hidden":!0,className:"flex h-7 items-center gap-2 text-[15px] text-muted-foreground opacity-50",children:[i.jsx(bi,{size:16}),"–"]}),e[105]=s,e[106]=Re,e[107]=P,e[108]=O,e[109]=Pe,e[110]=m,e[111]=A):A=e[111];let re;e[112]!==k||e[113]!==a||e[114]!==m?(re=a&&k&&i.jsx("span",{className:"mr-1 text-sm text-muted-foreground",children:m("taskBoard.taskDialog.savingLabel")}),e[112]=k,e[113]=a,e[114]=m,e[115]=re):re=e[115];let ye;e[116]!==a||e[117]!==m?(ye=a?.externalUrl&&i.jsx(de,{asChild:!0,variant:"ghost",size:"icon-sm","aria-label":m("taskBoard.taskDialog.openInTrackerAriaLabel"),title:a.externalUrl,className:"text-muted-foreground hover:text-foreground",children:i.jsx("a",{href:a.externalUrl,target:"_blank",rel:"noreferrer",children:i.jsx(fr,{size:16})})}),e[116]=a,e[117]=m,e[118]=ye):ye=e[118];let Me;e[119]!==w||e[120]!==$||e[121]!==D||e[122]!==me||e[123]!==_||e[124]!==a||e[125]!==E||e[126]!==f||e[127]!==g||e[128]!==u||e[129]!==d||e[130]!==x||e[131]!==p||e[132]!==y||e[133]!==ce||e[134]!==Ee||e[135]!==K||e[136]!==m?(Me=a&&i.jsxs(i.Fragment,{children:[i.jsx(de,{variant:"ghost",size:"icon-sm","aria-label":m("taskBoard.taskDialog.shareAriaLabel"),title:m("taskBoard.taskDialog.shareTitle"),className:"text-muted-foreground hover:text-foreground",onClick:()=>{D(`${window.location.origin}${kl(y.slug,a,w)}`),Ge.success(m("taskBoard.taskDialog.linkCopied"))},children:E?i.jsx(Vn,{size:16}):i.jsx(pc,{size:16})}),i.jsxs(Ze,{modal:!1,children:[i.jsx(Ve,{asChild:!0,children:i.jsx(de,{variant:"ghost",size:"icon-sm","aria-label":m("taskBoard.taskDialog.moreActionsAriaLabel"),className:"text-muted-foreground hover:text-foreground data-[state=open]:bg-accent data-[state=open]:text-foreground",children:i.jsx(Zn,{size:16})})}),i.jsxs(Qe,{align:"end",className:"w-48",children:[x&&i.jsxs(we,{onSelect:x,children:[i.jsx(fl,{size:16}),m("taskBoard.taskDialog.newChatButton")]}),ce&&i.jsxs(we,{onSelect:g,children:[i.jsx(Pa,{size:16}),m("taskBoard.taskBoard.autoFix")]}),Ee&&i.jsxs(we,{onSelect:p,children:[i.jsx(Zr,{size:16}),m("taskBoard.taskBoard.rerun")]}),(x||ce||Ee)&&i.jsx(Ha,{}),me&&i.jsxs(we,{onSelect:()=>_(me),children:[$?i.jsx(Vn,{size:16}):i.jsx(rd,{size:16}),m("taskBoard.taskDialog.copyDescription")]}),u&&i.jsxs(we,{onSelect:u,children:[i.jsx(mc,{size:16}),m("taskBoard.taskDialog.cloneTask")]}),f&&K!=="archived"&&i.jsxs(we,{onSelect:()=>{Qt(),f()},children:[i.jsx(Mo,{size:16}),m("taskBoard.taskDialog.archiveTask")]}),d&&i.jsxs(we,{variant:"destructive",onSelect:()=>{Qt(),d()},children:[i.jsx(La,{size:16}),m("taskBoard.taskDialog.deleteTask")]})]})]})]}),e[119]=w,e[120]=$,e[121]=D,e[122]=me,e[123]=_,e[124]=a,e[125]=E,e[126]=f,e[127]=g,e[128]=u,e[129]=d,e[130]=x,e[131]=p,e[132]=y,e[133]=ce,e[134]=Ee,e[135]=K,e[136]=m,e[137]=Me):Me=e[137];let dt;e[138]!==s||e[139]!==Re||e[140]!==m?(dt=s==="dialog"&&i.jsx(de,{variant:"ghost",size:"icon-sm","aria-label":m("taskBoard.taskDialog.closeAriaLabel"),className:"text-muted-foreground hover:text-foreground",onClick:Re,children:i.jsx(Yn,{size:16})}),e[138]=s,e[139]=Re,e[140]=m,e[141]=dt):dt=e[141];let On;e[142]!==re||e[143]!==ye||e[144]!==Me||e[145]!==dt?(On=i.jsxs("div",{className:"flex items-center gap-0.5",children:[re,ye,Me,dt]}),e[142]=re,e[143]=ye,e[144]=Me,e[145]=dt,e[146]=On):On=e[146];let _r;e[147]!==A||e[148]!==On?(_r=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 px-6 pb-4 pt-6 sm:px-8",children:[A,On]}),e[147]=A,e[148]=On,e[149]=_r):_r=e[149];const Br=_r;e[150]!==s||e[151]!==Br?(Et=s==="page"?i.jsx("div",{className:"mx-auto w-full max-w-[1040px]",children:Br}):Br,e[150]=s,e[151]=Br,e[152]=Et):Et=e[152],is="flex min-h-0 flex-1 flex-col overflow-y-auto";const va=s==="page"&&"mx-auto w-full max-w-[1040px]";e[153]!==va?($t=I("flex flex-col sm:flex-row",va),e[153]=va,e[154]=$t):$t=e[154],as="flex min-w-0 flex-col gap-2 p-6 sm:flex-1 sm:p-8 sm:pt-6",Zt=Mp,Yt=ee,Xt=Ar=>{Ne||(U({title:Ar.target.value},!0),Ar.target.style.height="auto",Ar.target.style.height=`${Ar.target.scrollHeight}px`)},Jt=Ep,es=Fe,e[155]!==m?(Rt=m("taskBoard.taskDialog.taskTitlePlaceholder"),e[155]=m,e[156]=Rt):Rt=e[156],ts=!0,ss=1,ns=Ne,rs=I("w-full resize-none overflow-hidden border-0 bg-transparent text-2xl font-semibold leading-snug text-foreground outline-none placeholder:text-foreground/30",Ne&&"cursor-default"),e[63]=w,e[64]=s,e[65]=Re,e[66]=$,e[67]=P,e[68]=D,e[69]=me,e[70]=Fe,e[71]=_,e[72]=O,e[73]=k,e[74]=a,e[75]=Pe,e[76]=E,e[77]=f,e[78]=g,e[79]=u,e[80]=d,e[81]=x,e[82]=p,e[83]=y,e[84]=U,e[85]=ce,e[86]=Ee,e[87]=K,e[88]=m,e[89]=ee,e[90]=Ne,e[91]=Zt,e[92]=Yt,e[93]=Xt,e[94]=Jt,e[95]=es,e[96]=Rt,e[97]=ts,e[98]=ss,e[99]=ns,e[100]=rs,e[101]=as,e[102]=$t,e[103]=is,e[104]=Et}else Ne=e[90],Zt=e[91],Yt=e[92],Xt=e[93],Jt=e[94],es=e[95],Rt=e[96],ts=e[97],ss=e[98],ns=e[99],rs=e[100],as=e[101],$t=e[102],is=e[103],Et=e[104];let ls;e[157]!==Zt||e[158]!==Yt||e[159]!==Xt||e[160]!==Jt||e[161]!==es||e[162]!==Rt||e[163]!==ts||e[164]!==ss||e[165]!==ns||e[166]!==rs?(ls=i.jsx("textarea",{ref:Zt,value:Yt,onChange:Xt,onKeyDown:Jt,onBlur:es,placeholder:Rt,autoFocus:ts,rows:ss,readOnly:ns,className:rs}),e[157]=Zt,e[158]=Yt,e[159]=Xt,e[160]=Jt,e[161]=es,e[162]=Rt,e[163]=ts,e[164]=ss,e[165]=ns,e[166]=rs,e[167]=ls):ls=e[167];let os;e[168]!==Ne||e[169]!==m?(os=Ne&&i.jsxs("p",{className:"mb-3 mt-1 flex items-center gap-1.5 text-xs text-muted-foreground",children:[i.jsx(Io,{size:12}),m("taskBoard.taskDialog.reportsContentLocked")]}),e[168]=Ne,e[169]=m,e[170]=os):os=e[170];let cs;e[171]!==ls||e[172]!==os?(cs=i.jsxs("div",{children:[ls,os]}),e[171]=ls,e[172]=os,e[173]=cs):cs=e[173];let ds;e[174]!==a||e[175]!==p||e[176]!==y?(ds=a&&i.jsx(lm,{item:a,orgSlug:y.slug,onRerun:p}),e[174]=a,e[175]=p,e[176]=y,e[177]=ds):ds=e[177];const aa=ze&&"overflow-hidden";let us;e[178]!==aa?(us=I("relative",aa),e[178]=aa,e[179]=us):us=e[179];let fs;e[180]!==ze?(fs=ze?{maxHeight:Xi}:void 0,e[180]=ze,e[181]=fs):fs=e[181];let vr;e[182]===Symbol.for("react.memo_cache_sentinel")?(vr=()=>Ce(!0),e[182]=vr):vr=e[182];let hs;e[183]!==U?(hs=A=>U({description:A},!0),e[183]=U,e[184]=hs):hs=e[184];let ps;e[185]!==m?(ps=m("taskBoard.taskDialog.descriptionPlaceholder"),e[185]=m,e[186]=ps):ps=e[186];const ia=!Ne;let ms;e[187]!==me||e[188]!==hs||e[189]!==ps||e[190]!==ia?(ms=i.jsx("div",{ref:Vt,"data-testid":"task-description",children:i.jsx(zh,{defaultValue:me,onChange:hs,placeholder:ps,editable:ia})}),e[187]=me,e[188]=hs,e[189]=ps,e[190]=ia,e[191]=ms):ms=e[191];let gs;e[192]!==ze?(gs=ze&&i.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[192]=ze,e[193]=gs):gs=e[193];let xs;e[194]!==Fe||e[195]!==us||e[196]!==fs||e[197]!==ms||e[198]!==gs?(xs=i.jsxs("div",{className:us,style:fs,onFocusCapture:vr,onBlurCapture:Fe,children:[ms,gs]}),e[194]=Fe,e[195]=us,e[196]=fs,e[197]=ms,e[198]=gs,e[199]=xs):xs=e[199];let ks;e[200]!==$e||e[201]!==it||e[202]!==m?(ks=it&&i.jsxs(de,{type:"button",variant:"ghost",size:"sm",className:"mt-2 w-fit text-muted-foreground hover:text-foreground",onClick:()=>Ce($p),children:[i.jsx(Va,{size:14,className:I("transition-transform",$e&&"rotate-180")}),m($e?"taskBoard.taskDialog.showLess":"taskBoard.taskDialog.showMore")]}),e[200]=$e,e[201]=it,e[202]=m,e[203]=ks):ks=e[203];let bs;e[204]!==xs||e[205]!==ks?(bs=i.jsxs("div",{className:"flex flex-col py-6",children:[xs,ks]}),e[204]=xs,e[205]=ks,e[206]=bs):bs=e[206];let ys;e[207]!==a?(ys=a&&i.jsx("div",{className:"py-4",children:i.jsx("hr",{className:"border-border"})}),e[207]=a,e[208]=ys):ys=e[208];let ws;e[209]!==He||e[210]!==yt||e[211]!==me||e[212]!==a||e[213]!==T||e[214]!==h||e[215]!==Je?(ws=a&&i.jsxs("div",{className:"flex flex-col gap-8",children:[i.jsx(Qp,{item:a,description:me,onOpenPreview:h}),i.jsx(Xp,{item:a,members:T,startedBy:He??yt,onOpenThread:A=>Je(A.threadId)})]}),e[209]=He,e[210]=yt,e[211]=me,e[212]=a,e[213]=T,e[214]=h,e[215]=Je,e[216]=ws):ws=e[216];let vs;e[217]!==bs||e[218]!==ys||e[219]!==ws?(vs=i.jsxs("div",{className:"flex flex-col",children:[bs,ys,ws]}),e[217]=bs,e[218]=ys,e[219]=ws,e[220]=vs):vs=e[220];let js;e[221]!==as||e[222]!==cs||e[223]!==ds||e[224]!==vs?(js=i.jsxs("div",{className:as,children:[cs,ds,vs]}),e[221]=as,e[222]=cs,e[223]=ds,e[224]=vs,e[225]=js):js=e[225];const _o="flex w-full shrink-0 flex-col gap-8 border-t border-border p-6 sm:sticky sm:top-0 sm:max-h-dvh sm:w-[300px] sm:self-start sm:overflow-y-auto sm:border-t-0";let Ss;e[226]!==a?(Ss=a&&i.jsx(Dp,{item:a}),e[226]=a,e[227]=Ss):Ss=e[227];let Ts;e[228]!==m?(Ts=m("taskBoard.taskDialog.propertiesLabel"),e[228]=m,e[229]=Ts):Ts=e[229];let Cs;e[230]!==a||e[231]!==K?(Cs=I(a?bl({...a,status:K}):_a(K).iconClassName),e[230]=a,e[231]=K,e[232]=Cs):Cs=e[232];let Ns;e[233]!==ra||e[234]!==Cs?(Ns=i.jsx(ra,{size:16,className:Cs}),e[233]=ra,e[234]=Cs,e[235]=Ns):Ns=e[235];let _s;e[236]!==K||e[237]!==m?(_s=ur(K,m),e[236]=K,e[237]=m,e[238]=_s):_s=e[238];let Bs;e[239]!==Ns||e[240]!==_s.label?(Bs=i.jsx(Ve,{asChild:!0,children:i.jsxs("button",{type:"button",className:vt,children:[Ns,_s.label]})}),e[239]=Ns,e[240]=_s.label,e[241]=Bs):Bs=e[241];let As;if(e[242]!==N||e[243]!==U||e[244]!==m){let A;e[246]!==U||e[247]!==m?(A=re=>{const{label:ye,visual:Me}=ur(re,m),dt=Me.icon;return i.jsxs(we,{onSelect:()=>U({status:re}),className:"gap-2",children:[i.jsx(dt,{size:16,className:Me.iconClassName}),ye]},re)},e[246]=U,e[247]=m,e[248]=A):A=e[248],As=yl(N).map(A),e[242]=N,e[243]=U,e[244]=m,e[245]=As}else As=e[245];let Ds;e[249]!==As?(Ds=i.jsx(Qe,{align:"start",className:"w-44",children:As}),e[249]=As,e[250]=Ds):Ds=e[250];let Rs;e[251]!==Bs||e[252]!==Ds?(Rs=i.jsxs(Ze,{children:[Bs,Ds]}),e[251]=Bs,e[252]=Ds,e[253]=Rs):Rs=e[253];let $s;e[254]!==Ne||e[255]!==m?($s=Ne?m("taskBoard.taskDialog.reportsContentLocked"):void 0,e[254]=Ne,e[255]=m,e[256]=$s):$s=e[256];const la=Ne&&"cursor-default opacity-60";let Es;e[257]!==la?(Es=I(vt,la),e[257]=la,e[258]=Es):Es=e[258];const oa=It[Ie].icon;let jr;e[259]!==oa?(jr=i.jsx(oa,{size:16}),e[259]=oa,e[260]=jr):jr=e[260];const ca=jr,da=It[Ie];let Ms;e[261]!==m||e[262]!==da.labelKey?(Ms=m(da.labelKey),e[261]=m,e[262]=da.labelKey,e[263]=Ms):Ms=e[263];let Is;e[264]!==Ne||e[265]!==$s||e[266]!==Es||e[267]!==ca||e[268]!==Ms?(Is=i.jsx(Ve,{asChild:!0,children:i.jsxs("button",{type:"button",disabled:Ne,title:$s,className:Es,children:[ca,Ms]})}),e[264]=Ne,e[265]=$s,e[266]=Es,e[267]=ca,e[268]=Ms,e[269]=Is):Is=e[269];let zs;e[270]!==U||e[271]!==m?(zs=wl.map(A=>{const re=It[A].icon;return i.jsxs(we,{onSelect:()=>U({type:A}),children:[i.jsx(re,{size:16}),m(It[A].labelKey)]},A)}),e[270]=U,e[271]=m,e[272]=zs):zs=e[272];let Ls;e[273]!==zs?(Ls=i.jsx(Qe,{align:"start",className:"w-44",children:zs}),e[273]=zs,e[274]=Ls):Ls=e[274];let Ps;e[275]!==Is||e[276]!==Ls?(Ps=i.jsxs(Ze,{children:[Is,Ls]}),e[275]=Is,e[276]=Ls,e[277]=Ps):Ps=e[277];let Os;e[278]!==Ne||e[279]!==m?(Os=Ne?m("taskBoard.taskDialog.reportsContentLocked"):void 0,e[278]=Ne,e[279]=m,e[280]=Os):Os=e[280];const ua=be==="none"&&lr,fa=Ne&&"cursor-default opacity-60";let Fs;e[281]!==ua||e[282]!==fa?(Fs=I(vt,ua,fa),e[281]=ua,e[282]=fa,e[283]=Fs):Fs=e[283];let Hs;e[284]!==be||e[285]!==m?(Hs=be==="none"?i.jsxs(i.Fragment,{children:[i.jsx(Zn,{size:16}),m("taskBoard.taskDialog.setPriorityButton")]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:I("size-2 rounded-full",Ye[be].dotClassName)}),m(Ye[be].labelKey)]}),e[284]=be,e[285]=m,e[286]=Hs):Hs=e[286];let qs;e[287]!==Ne||e[288]!==Os||e[289]!==Fs||e[290]!==Hs?(qs=i.jsx(Ve,{asChild:!0,children:i.jsx("button",{type:"button",disabled:Ne,title:Os,className:Fs,children:Hs})}),e[287]=Ne,e[288]=Os,e[289]=Fs,e[290]=Hs,e[291]=qs):qs=e[291];let Us;e[292]!==U||e[293]!==m?(Us=Jr.map(A=>i.jsxs(we,{onSelect:()=>U({priority:A}),children:[i.jsx("span",{className:I("size-2 rounded-full",Ye[A].dotClassName)}),m(Ye[A].labelKey)]},A)),e[292]=U,e[293]=m,e[294]=Us):Us=e[294];let Ks;e[295]!==Us?(Ks=i.jsx(Qe,{align:"start",className:"w-40",children:Us}),e[295]=Us,e[296]=Ks):Ks=e[296];let Ws;e[297]!==qs||e[298]!==Ks?(Ws=i.jsxs(Ze,{children:[qs,Ks]}),e[297]=qs,e[298]=Ks,e[299]=Ws):Ws=e[299];const ha=!B&&lr;let Gs;e[300]!==ha?(Gs=I(vt,ha),e[300]=ha,e[301]=Gs):Gs=e[301];let Vs;e[302]!==He||e[303]!==yt||e[304]!==M||e[305]!==m?(Vs=M&&He?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[i.jsx(Ke,{url:He.user?.image??void 0,fallback:Ue(He.user?.name),shape:"circle",size:"2xs"}),i.jsx("span",{className:"truncate",children:He.user?.name??m("taskBoard.taskDialog.superAgentDefaultName")})]}),i.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[i.jsxs("span",{className:"inline-flex items-center",children:[i.jsx(Ke,{url:He.user?.image??void 0,fallback:Ue(He.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),i.jsx(jt,{size:16,className:"ring-2 ring-background"})]}),m("taskBoard.taskDialog.superAgentLabel")]})]}):M?i.jsxs(i.Fragment,{children:[i.jsx(jt,{size:16}),m("taskBoard.taskDialog.superAgentLabel")]}):yt?i.jsxs(i.Fragment,{children:[i.jsx(Ke,{url:yt.user?.image??void 0,fallback:Ue(yt.user?.name),shape:"circle",size:"2xs"}),i.jsx("span",{className:"truncate",children:yt.user?.name??m("taskBoard.taskDialog.unassignedLabel")})]}):i.jsxs(i.Fragment,{children:[i.jsx(hl,{size:16,className:"text-muted-foreground"}),m("taskBoard.taskDialog.assignButton")]}),e[302]=He,e[303]=yt,e[304]=M,e[305]=m,e[306]=Vs):Vs=e[306];let Qs;e[307]!==Gs||e[308]!==Vs?(Qs=i.jsx(or,{asChild:!0,children:i.jsx("button",{type:"button",className:Gs,children:Vs})}),e[307]=Gs,e[308]=Vs,e[309]=Qs):Qs=e[309];let Zs;e[310]!==a?.assigneeId||e[311]!==p||e[312]!==U?(Zs=A=>{if(rr(!1),A===De&&a?.assigneeId===De){p?.();return}U({assigneeId:A})},e[310]=a?.assigneeId,e[311]=p,e[312]=U,e[313]=Zs):Zs=e[313];let Ys;e[314]!==T||e[315]!==Zs?(Ys=i.jsx(Ir,{align:"start",className:"w-56 p-0",children:i.jsx(pi,{members:T,onSelect:Zs})}),e[314]=T,e[315]=Zs,e[316]=Ys):Ys=e[316];let Xs;e[317]!==nr||e[318]!==Qs||e[319]!==Ys?(Xs=i.jsxs(zr,{open:nr,onOpenChange:rr,modal:!0,children:[Qs,Ys]}),e[317]=nr,e[318]=Qs,e[319]=Ys,e[320]=Xs):Xs=e[320];let Js;e[321]!==He||e[322]!==M||e[323]!==m?(Js=M&&He&&i.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[i.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"}),i.jsxs("span",{className:I(vt,"pointer-events-none"),children:[i.jsx(jt,{size:16}),m("taskBoard.taskDialog.superAgentLabel")]})]}),e[321]=He,e[322]=M,e[323]=m,e[324]=Js):Js=e[324];let en;e[325]!==Xs||e[326]!==Js?(en=i.jsxs("div",{className:"flex flex-col",children:[Xs,Js]}),e[325]=Xs,e[326]=Js,e[327]=en):en=e[327];const pa=!J&&lr;let tn;e[328]!==pa?(tn=I(vt,pa),e[328]=pa,e[329]=tn):tn=e[329];let Sr;e[330]===Symbol.for("react.memo_cache_sentinel")?(Sr=i.jsx(Yr,{size:16,className:"text-muted-foreground"}),e[330]=Sr):Sr=e[330];let sn;e[331]!==J||e[332]!==m?(sn=J?yo.format(J):m("taskBoard.taskDialog.dueDateLabel"),e[331]=J,e[332]=m,e[333]=sn):sn=e[333];let nn;e[334]!==tn||e[335]!==sn?(nn=i.jsx(or,{asChild:!0,children:i.jsxs("button",{type:"button",className:tn,children:[Sr,sn]})}),e[334]=tn,e[335]=sn,e[336]=nn):nn=e[336];const ma=J??void 0;let rn;e[337]!==U?(rn=A=>{U({dueDate:A??null}),A&&Lt(!1)},e[337]=U,e[338]=rn):rn=e[338];let an;e[339]!==ma||e[340]!==rn?(an=i.jsx(Ir,{className:"w-auto p-0",align:"start",children:i.jsx(Ga,{mode:"single",selected:ma,onSelect:rn,initialFocus:!0})}),e[339]=ma,e[340]=rn,e[341]=an):an=e[341];let ln;e[342]!==sr||e[343]!==nn||e[344]!==an?(ln=i.jsxs(zr,{open:sr,onOpenChange:Lt,children:[nn,an]}),e[342]=sr,e[343]=nn,e[344]=an,e[345]=ln):ln=e[345];const ga=a?.threads;let on;e[346]!==ga?(on=i.jsx(Ap,{threads:ga}),e[346]=ga,e[347]=on):on=e[347];let cn;e[348]!==en||e[349]!==ln||e[350]!==on||e[351]!==Ts||e[352]!==Rs||e[353]!==Ps||e[354]!==Ws?(cn=i.jsxs(Lr,{label:Ts,children:[Rs,Ps,Ws,en,ln,on]}),e[348]=en,e[349]=ln,e[350]=on,e[351]=Ts,e[352]=Rs,e[353]=Ps,e[354]=Ws,e[355]=cn):cn=e[355];let dn;e[356]!==m?(dn=m("taskBoard.taskDialog.labelsLabel"),e[356]=m,e[357]=dn):dn=e[357];let un;e[358]!==F||e[359]!==U||e[360]!==m||e[361]!==ve?(un=ve.length===0?i.jsx(or,{asChild:!0,children:i.jsxs("button",{type:"button",className:I(vt,lr),children:[i.jsx(gc,{size:16}),m("taskBoard.taskDialog.tagsButton")]})}):i.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 sm:px-3",children:[ve.map(A=>{const re=F.find(ye=>ye.id===A);return re?i.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:[i.jsxs("button",{type:"button",onClick:()=>lt(!0),className:"inline-flex items-center gap-1.5",children:[i.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:mr(re.color)}}),i.jsx("span",{className:"truncate",children:re.name})]}),i.jsx("button",{type:"button","aria-label":m("taskBoard.taskDialog.removeTagAriaLabel",{name:re.name}),className:"-mr-0.5 flex size-3.5 items-center justify-center rounded-sm text-muted-foreground hover:bg-background hover:text-foreground",onClick:()=>{U({tagIds:ve.filter(ye=>ye!==A)})},children:i.jsx(Yn,{size:10})})]},A):null}),i.jsx(or,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":m("taskBoard.taskDialog.addTagButton"),className:"flex size-7 items-center justify-center rounded-md border border-border text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:i.jsx(dr,{size:14})})})]}),e[358]=F,e[359]=U,e[360]=m,e[361]=ve,e[362]=un):un=e[362];let fn;e[363]!==F.length?(fn=ud(F.length),e[363]=F.length,e[364]=fn):fn=e[364];let hn;e[365]!==U||e[366]!==ve?(hn=A=>U({tagIds:ve.includes(A)?ve.filter(re=>re!==A):[...ve,A]}),e[365]=U,e[366]=ve,e[367]=hn):hn=e[367];let pn;e[368]!==Dt||e[369]!==C||e[370]!==F||e[371]!==fn||e[372]!==hn||e[373]!==ve?(pn=i.jsx(Ir,{align:"start",className:"w-56 p-0",children:i.jsx(lp,{tags:F,selectedIds:ve,defaultColor:fn,onToggle:hn,onCreate:Dt,onDelete:C})}),e[368]=Dt,e[369]=C,e[370]=F,e[371]=fn,e[372]=hn,e[373]=ve,e[374]=pn):pn=e[374];let mn;e[375]!==un||e[376]!==pn||e[377]!==Ct?(mn=i.jsxs(zr,{open:Ct,onOpenChange:lt,modal:!0,children:[un,pn]}),e[375]=un,e[376]=pn,e[377]=Ct,e[378]=mn):mn=e[378];let gn;e[379]!==dn||e[380]!==mn?(gn=i.jsx(Lr,{label:dn,children:mn}),e[379]=dn,e[380]=mn,e[381]=gn):gn=e[381];const xa=Lr;let xn;e[382]!==m?(xn=m("taskBoard.taskDialog.projectLabel"),e[382]=m,e[383]=xn):xn=e[383];const ka=Ze,ba=!se&&lr;let kn;e[384]!==ba?(kn=I(vt,"max-w-full",ba),e[384]=ba,e[385]=kn):kn=e[385];let bn;e[386]!==ie?(bn=i.jsx(jc,{entry:ie}),e[386]=ie,e[387]=bn):bn=e[387];let yn;e[388]!==se||e[389]!==ie?.title||e[390]!==m?(yn=ie?.title??se??m("taskBoard.taskDialog.projectButton"),e[388]=se,e[389]=ie?.title,e[390]=m,e[391]=yn):yn=e[391];let wn;e[392]!==yn?(wn=i.jsx("span",{className:"min-w-0 truncate text-left",children:yn}),e[392]=yn,e[393]=wn):wn=e[393];let vn;e[394]!==kn||e[395]!==bn||e[396]!==wn?(vn=i.jsx(Ve,{asChild:!0,children:i.jsxs("button",{type:"button",className:kn,children:[bn,wn]})}),e[394]=kn,e[395]=bn,e[396]=wn,e[397]=vn):vn=e[397];const ya=Qe,Bo="start",Ao="w-64";let jn;e[398]!==U?(jn=()=>U({repo:null}),e[398]=U,e[399]=jn):jn=e[399];let Sn;e[400]!==m?(Sn=m("taskBoard.taskDialog.noProject"),e[400]=m,e[401]=Sn):Sn=e[401];let Tn;e[402]!==jn||e[403]!==Sn?(Tn=i.jsx(we,{onSelect:jn,children:Sn}),e[402]=jn,e[403]=Sn,e[404]=Tn):Tn=e[404];let Tr;e[405]!==U?(Tr=A=>i.jsx(we,{className:"gap-2",onSelect:()=>U({repo:A.repo}),children:i.jsx(vl,{entry:A})},A.id),e[405]=U,e[406]=Tr):Tr=e[406];const wa=ne.map(Tr);let Cn;e[407]!==ya||e[408]!==Tn||e[409]!==wa?(Cn=i.jsxs(ya,{align:Bo,className:Ao,children:[Tn,wa]}),e[407]=ya,e[408]=Tn,e[409]=wa,e[410]=Cn):Cn=e[410];let Nn;e[411]!==ka||e[412]!==vn||e[413]!==Cn?(Nn=i.jsxs(ka,{children:[vn,Cn]}),e[411]=ka,e[412]=vn,e[413]=Cn,e[414]=Nn):Nn=e[414];let _n;e[415]!==xa||e[416]!==xn||e[417]!==Nn?(_n=i.jsx(xa,{label:xn,children:Nn}),e[415]=xa,e[416]=xn,e[417]=Nn,e[418]=_n):_n=e[418];let Bn;e[419]!==cn||e[420]!==gn||e[421]!==_n||e[422]!==Ss?(Bn=i.jsxs("div",{className:_o,children:[Ss,cn,gn,_n]}),e[419]=cn,e[420]=gn,e[421]=_n,e[422]=Ss,e[423]=Bn):Bn=e[423];let An;e[424]!==Bn||e[425]!==$t||e[426]!==js?(An=i.jsxs("div",{className:$t,children:[js,Bn]}),e[424]=Bn,e[425]=$t,e[426]=js,e[427]=An):An=e[427];let Dn;e[428]!==An||e[429]!==is?(Dn=i.jsx("div",{className:is,children:An}),e[428]=An,e[429]=is,e[430]=Dn):Dn=e[430];let Rn;e[431]!==Je?(Rn=()=>Je(null),e[431]=Je,e[432]=Rn):Rn=e[432];let $n;e[433]!==Nt||e[434]!==Rn?($n=i.jsx(fp,{thread:Nt,onClose:Rn}),e[433]=Nt,e[434]=Rn,e[435]=$n):$n=e[435];let En;e[436]!==Le||e[437]!==k||e[438]!==a||e[439]!==m||e[440]!==ee?(En=!a&&i.jsx("div",{className:"flex h-16 items-center justify-end border-t border-border px-4",children:i.jsxs(de,{size:"sm",disabled:!ee.trim()||k,onClick:Le,children:[i.jsx(dr,{size:16}),m("taskBoard.taskDialog.createTaskButton")]})}),e[436]=Le,e[437]=k,e[438]=a,e[439]=m,e[440]=ee,e[441]=En):En=e[441];let Cr;e[442]!==Dn||e[443]!==$n||e[444]!==En||e[445]!==Et?(Cr=i.jsxs(i.Fragment,{children:[Et,Dn,$n,En]}),e[442]=Dn,e[443]=$n,e[444]=En,e[445]=Et,e[446]=Cr):Cr=e[446];const Mn=Cr;if(s==="page"){let A;e[447]!==At||e[448]!==Bt?(A=ye=>{const Me=At(ye),dt=Bt(ye);return()=>{Me?.(),dt?.()}},e[447]=At,e[448]=Bt,e[449]=A):A=e[449];let re;return e[450]!==Mn||e[451]!==A?(re=i.jsx("div",{ref:A,"data-testid":"task-detail",className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:Mn}),e[450]=Mn,e[451]=A,e[452]=re):re=e[452],re}let In;e[453]!==Re?(In=A=>!A&&Re(),e[453]=Re,e[454]=In):In=e[454];let zn;e[455]!==m?(zn=m("taskBoard.taskDialog.newTaskTitle"),e[455]=m,e[456]=zn):zn=e[456];let Ln;e[457]!==zn?(Ln=i.jsx(Pr,{className:"sr-only",children:zn}),e[457]=zn,e[458]=Ln):Ln=e[458];let Pn;e[459]!==Mn||e[460]!==Ln?(Pn=i.jsxs(Or,{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:[Ln,Mn]}),e[459]=Mn,e[460]=Ln,e[461]=Pn):Pn=e[461];let Nr;return e[462]!==b||e[463]!==In||e[464]!==Pn?(Nr=i.jsx(Fr,{open:b,onOpenChange:In,children:Pn}),e[462]=b,e[463]=In,e[464]=Pn,e[465]=Nr):Nr=e[465],Nr}function $p(t){return!t}function Ep(t){t.key==="Enter"&&t.preventDefault()}function Mp(t){t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)}function Ip(t){return t.id}function zp(t){const e=R.c(2);let s;return e[0]!==t?(s=i.jsx(vo,{...t,chrome:"dialog"}),e[0]=t,e[1]=s):s=e[1],s}function Lp(t){const e=R.c(2);let s;return e[0]!==t?(s=i.jsx(vo,{...t,chrome:"page"}),e[0]=t,e[1]=s):s=e[1],s}function Pp(t,e){switch(t.status){case"failed":return Cc(t.failureKind)?{label:t.failureKind==="superseded"?e("taskBoard.taskDialog.threadStatusSuperseded"):e("taskBoard.taskDialog.threadStatusEndedAfterDelivery"),className:"text-muted-foreground",icon:qt}:{label:e("taskBoard.taskDialog.threadStatusError"),className:"text-destructive",icon:xc};case"requires_action":return{label:e("taskBoard.taskDialog.threadStatusNeedsInput"),className:"text-warning",icon:Xr};case"in_progress":return{label:e("taskBoard.taskDialog.threadStatusRunning"),className:"text-primary",icon:Oa,spin:!0};case"completed":return{label:e("taskBoard.taskDialog.threadStatusCompleted"),className:"text-success",icon:Jn};case"expired":return{label:e("taskBoard.taskDialog.threadStatusExpired"),className:"text-muted-foreground",icon:qt};default:return t.status}}function Op(t){const e=R.c(28),{thread:s,startedBy:r,onOpen:n}=t,a=Z();let l;if(e[0]!==n||e[1]!==r||e[2]!==a||e[3]!==s){const o=s.status?Pp({...s,status:s.status},a):null,c=s.lastMessage;let d;e[5]!==s.title?(d=fd(s.title,"reviewer"),e[5]=s.title,e[6]=d):d=e[6];const u=d;let f;e[7]!==n||e[8]!==s?(f=()=>n?.(s),e[7]=n,e[8]=s,e[9]=f):f=e[9];let h;e[10]!==u?(h=u?i.jsx(si,{size:16,className:"shrink-0"}):i.jsx(jt,{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 g;e[15]!==x?(g=i.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:x}),e[15]=x,e[16]=g):g=e[16];let p;e[17]!==r||e[18]!==a?(p=r&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"shrink-0 text-sm text-muted-foreground/50",children:a("taskBoard.taskDialog.startedByLabel")}),i.jsx(Ke,{url:r.user?.image??void 0,fallback:Ue(r.user?.name),shape:"circle",size:"2xs"}),i.jsx("span",{className:"truncate text-sm text-foreground",children:r.user?.name??a("taskBoard.taskDialog.someoneLabel")})]}),e[17]=r,e[18]=a,e[19]=p):p=e[19];let k;e[20]!==n||e[21]!==a?(k=n&&i.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"),i.jsx(Fa,{size:14})]}),e[20]=n,e[21]=a,e[22]=k):k=e[22];let b;e[23]!==h||e[24]!==g||e[25]!==p||e[26]!==k?(b=i.jsxs("div",{className:"flex items-center gap-2",children:[h,g,p,k]}),e[23]=h,e[24]=g,e[25]=p,e[26]=k,e[27]=b):b=e[27],l=i.jsxs("button",{type:"button",disabled:!n,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:[b,o&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:I("flex shrink-0 items-center gap-1.5",o.className),children:[o.spin?i.jsx(Tt,{className:"size-[15px]",label:o.label}):i.jsx(o.icon,{size:15}),i.jsx("span",{className:"text-sm",children:o.label})]}),c&&i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:c})]})]}),e[0]=n,e[1]=r,e[2]=a,e[3]=s,e[4]=l}else l=e[4];return l}function Fp(t,e){return t.merged?{label:e("taskBoard.taskDialog.prStateMerged"),className:"text-special",icon:_l}:t.state==="closed"?{label:e("taskBoard.taskDialog.prStateClosed"),className:"text-destructive",icon:Mr}:t.draft?{label:e("taskBoard.taskDialog.prStateDraft"),className:"text-muted-foreground",icon:Mr}:{label:e("taskBoard.taskDialog.prStateOpen"),className:"text-success",icon:Mr}}function Hp(t,e){switch(t){case"passing":return{label:e("taskBoard.taskDialog.prChecksPassing"),className:"text-success",icon:Jn};case"failing":return{label:e("taskBoard.taskDialog.prChecksFailing"),className:"text-destructive",icon:qt};case"pending":return{label:e("taskBoard.taskDialog.prChecksPending"),className:"text-warning",icon:Oa};default:return null}}const qp=new Set(["failure","cancelled","timed_out","action_required","startup_failure","stale"]);function Up(t){if(t.status!=="completed")return{icon:Oa,className:"text-warning",spin:!0};const e=t.conclusion;return e&&qp.has(e)?{icon:qt,className:"text-destructive",spin:!1}:co(t)?{icon:Jn,className:"text-success",spin:!1}:{icon:Xr,className:"text-muted-foreground",spin:!1}}function Kp(t){const e=R.c(46),{url:s,routes:r}=t,n=Z(),{data:a,isPending:l,isError:o}=Xh(s),c=a?.available??!1;if(l){let N;e[0]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx(Tt,{className:"size-[14px]"}),e[0]=N):N=e[0];let _;e[1]!==n?(_=n("taskBoard.taskDialog.previewLabel"),e[1]=n,e[2]=_):_=e[2];let $;return e[3]!==_?($=i.jsxs(de,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",disabled:!0,children:[N,_]}),e[3]=_,e[4]=$):$=e[4],$}if(!c||o){let N;e[5]!==n?(N=n("taskBoard.taskDialog.previewUnavailableTitle"),e[5]=n,e[6]=N):N=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=i.jsx(Aa,{size:14}),e[7]=_):_=e[7];let $;e[8]!==n?($=n("taskBoard.taskDialog.previewUnavailable"),e[8]=n,e[9]=$):$=e[9];let D;return e[10]!==N||e[11]!==$?(D=i.jsxs(de,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",disabled:!0,title:N,children:[_,$]}),e[10]=N,e[11]=$,e[12]=D):D=e[12],D}const d=r.length>0&&"rounded-r-none";let u;e[13]!==d?(u=I("gap-1.5",d),e[13]=d,e[14]=u):u=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx(Aa,{size:14}),e[15]=f):f=e[15];let h;e[16]!==n?(h=n("taskBoard.taskDialog.previewLabel"),e[16]=n,e[17]=h):h=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(fr,{size:12}),e[18]=x):x=e[18];let g;e[19]!==h||e[20]!==s?(g=i.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",children:[f,h,x]}),e[19]=h,e[20]=s,e[21]=g):g=e[21];let p;e[22]!==u||e[23]!==g?(p=i.jsx(de,{asChild:!0,type:"button",variant:"outline",size:"sm",className:u,children:g}),e[22]=u,e[23]=g,e[24]=p):p=e[24];const k=p;if(r.length===0)return k;let b;e[25]!==n?(b=n("taskBoard.taskDialog.previewRoutesLabel"),e[25]=n,e[26]=b):b=e[26];let m;e[27]!==n?(m=n("taskBoard.taskDialog.previewRoutesLabel"),e[27]=n,e[28]=m):m=e[28];let y;e[29]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(Va,{size:14}),e[29]=y):y=e[29];let v;e[30]!==b||e[31]!==m?(v=i.jsx(Ve,{asChild:!0,children:i.jsx(de,{type:"button",variant:"outline",size:"sm",className:"rounded-l-none border-l-0 px-1.5","aria-label":b,title:m,children:y})}),e[30]=b,e[31]=m,e[32]=v):v=e[32];let w;if(e[33]!==r||e[34]!==s){let N;e[36]!==s?(N=_=>i.jsx(we,{asChild:!0,children:i.jsx("a",{href:Hh(s,_),target:"_blank",rel:"noreferrer",className:"font-mono text-xs",children:_})},_),e[36]=s,e[37]=N):N=e[37],w=r.map(N),e[33]=r,e[34]=s,e[35]=w}else w=e[35];let j;e[38]!==w?(j=i.jsx(Qe,{align:"start",children:w}),e[38]=w,e[39]=j):j=e[39];let S;e[40]!==v||e[41]!==j?(S=i.jsxs(Ze,{children:[v,j]}),e[40]=v,e[41]=j,e[42]=S):S=e[42];let T;return e[43]!==k||e[44]!==S?(T=i.jsxs("div",{className:"flex items-center",children:[k,S]}),e[43]=k,e[44]=S,e[45]=T):T=e[45],T}function Wp(t){const e=R.c(54),{pr:s,routes:r,revalidating:n,previewThread:a,reviewsReady:l,shipPending:o,resolvePending:c,onShip:d,onResolveConflict:u,onOpenPreview:f}=t,h=Z(),[x,g]=L.useState(!1);let p;if(e[0]!==x||e[1]!==f||e[2]!==u||e[3]!==d||e[4]!==s||e[5]!==a||e[6]!==c||e[7]!==n||e[8]!==l||e[9]!==r||e[10]!==o||e[11]!==h){const k=Fp(s,h),b=Hp(s.checksStatus,h);let m;e[13]!==s||e[14]!==l?(m=Oh(s,l),e[13]=s,e[14]=l,e[15]=m):m=e[15];const{isOpen:y,hasConflict:v,showShip:w,showResolveConflict:j}=m,S=!!a||!!s.previewUrl||w||j,T=s.checks??[],N=T.length>0||b!=null,_=T.length>0,$=Fh(s.checksStatus,T,x),D=$?{label:h("taskBoard.taskDialog.prChecksScore",$),className:"text-warning",icon:qt}:b,E=n&&"revalidating-ring";let P;e[16]!==E?(P=I("flex flex-col gap-3 rounded-xl bg-card p-3 card-shadow",E),e[16]=E,e[17]=P):P=e[17];const O=Su(s.url)?.repo.provider??"github";let z;e[18]!==O?(z=i.jsx(Xd,{provider:O,className:"size-4 shrink-0 text-foreground"}),e[18]=O,e[19]=z):z=e[19];const V=s.title??`${s.repoOwner}/${s.repoName}`;let F;e[20]!==V?(F=i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:V}),e[20]=V,e[21]=F):F=e[21];const Q=I("flex shrink-0 items-center gap-1 text-xs font-medium",k.className);let W;e[22]!==k?(W=i.jsx(k.icon,{size:13}),e[22]=k,e[23]=W):W=e[23];let H;e[24]!==k||e[25]!==W||e[26]!==Q?(H=i.jsxs("span",{className:Q,children:[W,k.label]}),e[24]=k,e[25]=W,e[26]=Q,e[27]=H):H=e[27];let Y;e[28]===Symbol.for("react.memo_cache_sentinel")?(Y=i.jsx(fr,{size:12,className:"text-muted-foreground/60 group-hover:text-foreground"}),e[28]=Y):Y=e[28];let G;e[29]!==s.number||e[30]!==s.url?(G=i.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,Y]}),e[29]=s.number,e[30]=s.url,e[31]=G):G=e[31];let X;e[32]!==H||e[33]!==G||e[34]!==z||e[35]!==F?(X=i.jsxs("div",{className:"flex items-center gap-3",children:[z,F,H,G]}),e[32]=H,e[33]=G,e[34]=z,e[35]=F,e[36]=X):X=e[36];let q;e[37]!==v||e[38]!==y||e[39]!==h?(q=v&&y&&i.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-warning",children:[i.jsx(qt,{size:13,className:"shrink-0"}),h("taskBoard.taskDialog.prConflict")]}),e[37]=v,e[38]=y,e[39]=h,e[40]=q):q=e[40];let ne;e[41]!==S||e[42]!==f||e[43]!==u||e[44]!==d||e[45]!==s.previewUrl||e[46]!==a||e[47]!==c||e[48]!==r||e[49]!==o||e[50]!==j||e[51]!==w||e[52]!==h?(ne=S&&i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[a&&i.jsxs(de,{type:"button",variant:"outline",size:"sm",className:"gap-1.5",title:h("taskBoard.taskDialog.openPreviewTitle"),onClick:()=>f?.(a),children:[i.jsx(fl,{size:13}),h("taskBoard.taskDialog.openPreviewButton")]}),s.previewUrl&&i.jsx(Kp,{url:s.previewUrl,routes:r}),w&&i.jsx(de,{type:"button",variant:"success",size:"sm",disabled:o,onClick:d,children:h("taskBoard.taskDialog.shipToProductionButton")}),j&&i.jsxs(de,{type:"button",variant:"warning",size:"sm",className:"gap-1.5",disabled:c,title:h("taskBoard.taskDialog.resolveConflictTitle"),onClick:u,children:[i.jsx(_l,{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]=c,e[48]=r,e[49]=o,e[50]=j,e[51]=w,e[52]=h,e[53]=ne):ne=e[53],p=i.jsxs("div",{className:P,children:[X,q,ne,N&&i.jsxs("div",{className:"border-t border-border pt-2 text-xs",children:[i.jsxs("button",{type:"button",disabled:!_,onClick:()=>g(Gp),className:"flex w-full items-center gap-1.5 font-medium disabled:cursor-default",children:[D?i.jsx(D.icon,{size:13,className:D.className}):i.jsx(Jn,{size:13,className:"text-muted-foreground"}),i.jsx("span",{className:I(D?.className??"text-muted-foreground"),children:D?.label??h("taskBoard.taskDialog.prChecksLabel")}),_&&i.jsx(Fa,{size:14,className:I("ml-auto text-muted-foreground/60 transition-transform",x&&"rotate-90")})]}),x&&i.jsx("div",{className:"mt-2 flex flex-col gap-2",children:T.map((ae,te)=>{const oe=Up(ae),ue=`${ae.name}-${te}`;return i.jsxs("div",{className:"rounded-md bg-muted/40 p-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[oe.spin?i.jsx(Tt,{className:I("size-[13px]",oe.className)}):i.jsx(oe.icon,{size:13,className:I("shrink-0",oe.className)}),i.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-foreground",children:ae.name}),ae.detailsUrl&&i.jsx("a",{href:ae.detailsUrl,target:"_blank",rel:"noreferrer",className:"shrink-0 text-muted-foreground/60 hover:text-foreground",children:i.jsx(fr,{size:12})})]}),ae.summary&&i.jsx("div",{className:"mt-1.5 max-h-64 overflow-auto text-muted-foreground",children:i.jsx(Bl,{id:`${s.url}-${ue}`,text:ae.summary})})]},ue)})})]})]}),e[0]=x,e[1]=f,e[2]=u,e[3]=d,e[4]=s,e[5]=a,e[6]=c,e[7]=n,e[8]=l,e[9]=r,e[10]=o,e[11]=h,e[12]=p}else p=e[12];return p}function Gp(t){return!t}function Vp(){const t=R.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Fn,{className:"size-4 shrink-0 rounded"}),i.jsx(Fn,{className:"h-4 min-w-0 flex-1"}),i.jsx(Fn,{className:"h-4 w-16 shrink-0"}),i.jsx(Fn,{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=i.jsxs("div",{className:"flex flex-col gap-3 rounded-xl bg-card p-3 card-shadow",children:[e,i.jsxs("div",{className:"flex gap-2",children:[i.jsx(Fn,{className:"h-7 w-20"}),i.jsx(Fn,{className:"h-7 w-28"})]})]}),t[1]=s):s=t[1],s}function Qp(t){const e=R.c(56),{item:s,description:r,onOpenPreview:n}=t,a=Z(),{data:l,isLoading:o,isFetching:c}=po(s.id),{data:d}=hi(s.id),u=Sl(),f=Jh(s.id),h=ep(s.id);let x,g,p,k,b,m;if(e[0]!==d||e[1]!==r||e[2]!==s.previewRoutes||e[3]!==s.reviewCycleStartedAt||e[4]!==s.status||e[5]!==s.threads||e[6]!==n||e[7]!==f||e[8]!==l||e[9]!==c||e[10]!==o||e[11]!==h||e[12]!==u||e[13]!==a){m=Symbol.for("react.early_return_sentinel");e:{const w=op(r),j=o&&!l;if(!j&&(!l||l.length===0)&&w.length===0){m=null;break e}let S;e[20]!==d||e[21]!==s.reviewCycleStartedAt||e[22]!==s.status||e[23]!==u?(S=np(s.status)&&tp(d??[],mo(u),s.reviewCycleStartedAt),e[20]=d,e[21]=s.reviewCycleStartedAt,e[22]=s.status,e[23]=u,e[24]=S):S=e[24];const T=S;let N;e[25]!==f||e[26]!==a?(N=()=>f.mutate(void 0,{onSuccess:O=>O?.merged?Ge.success(a("taskBoard.taskDialog.shipSuccess")):Ge.error(a("taskBoard.taskDialog.shipError")),onError:()=>Ge.error(a("taskBoard.taskDialog.shipError"))}),e[25]=f,e[26]=a,e[27]=N):N=e[27];const _=N;let $;e[28]!==h||e[29]!==a?($=O=>h.mutate(O,{onSuccess:()=>Ge.success(a("taskBoard.taskDialog.resolveConflictSuccess")),onError:()=>Ge.error(a("taskBoard.taskDialog.resolveConflictError"))}),e[28]=h,e[29]=a,e[30]=$):$=e[30];const D=$;let E;e[31]!==s.threads||e[32]!==n?(E=n?s.threads.find(Yp):void 0,e[31]=s.threads,e[32]=n,e[33]=E):E=e[33];const P=E;x=wo,e[34]!==a?(b=a("taskBoard.taskDialog.linksLabel"),e[34]=a,e[35]=b):b=e[35],g="flex flex-col gap-1",e[36]!==s.previewRoutes||e[37]!==j||e[38]!==n||e[39]!==D||e[40]!==_||e[41]!==P||e[42]!==f||e[43]!==l||e[44]!==c||e[45]!==h||e[46]!==T?(p=j?i.jsx(Vp,{}):(l??[]).map(O=>i.jsx(Wp,{pr:O,routes:s.previewRoutes??[],revalidating:c,previewThread:P,reviewsReady:T,shipPending:f.isPending,resolvePending:h.isPending,onShip:_,onResolveConflict:()=>D(O.number),onOpenPreview:n},O.url)),e[36]=s.previewRoutes,e[37]=j,e[38]=n,e[39]=D,e[40]=_,e[41]=P,e[42]=f,e[43]=l,e[44]=c,e[45]=h,e[46]=T,e[47]=p):p=e[47],k=w.map(Zp)}e[0]=d,e[1]=r,e[2]=s.previewRoutes,e[3]=s.reviewCycleStartedAt,e[4]=s.status,e[5]=s.threads,e[6]=n,e[7]=f,e[8]=l,e[9]=c,e[10]=o,e[11]=h,e[12]=u,e[13]=a,e[14]=x,e[15]=g,e[16]=p,e[17]=k,e[18]=b,e[19]=m}else x=e[14],g=e[15],p=e[16],k=e[17],b=e[18],m=e[19];if(m!==Symbol.for("react.early_return_sentinel"))return m;let y;e[48]!==g||e[49]!==p||e[50]!==k?(y=i.jsxs("div",{className:g,children:[p,k]}),e[48]=g,e[49]=p,e[50]=k,e[51]=y):y=e[51];let v;return e[52]!==x||e[53]!==b||e[54]!==y?(v=i.jsx(x,{label:b,children:y}),e[52]=x,e[53]=b,e[54]=y,e[55]=v):v=e[55],v}function Zp(t){return i.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:[i.jsx(Aa,{size:15,className:"shrink-0 text-muted-foreground"}),i.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:t.label}),i.jsx(fr,{size:13,className:"shrink-0 text-muted-foreground/50 group-hover:text-foreground"})]},t.url)}function Yp(t){return t.hasPreview&&t.virtualMcpId}function Xp(t){const e=R.c(7),{item:s,members:r,startedBy:n,onOpenThread:a}=t,l=Z(),{data:o}=hi(s.id),{data:c}=cl.useSession(),d=new Map(r.map(nm)),u={id:c?.user?.id??"me",name:c?.user?.name??l("taskBoard.taskDialog.commentYouLabel"),image:c?.user?.image},f=vp(s.id),h=y=>{if(y===De)return{id:y,name:l("taskBoard.taskDialog.superAgentLabel"),isAgent:!0};if(y===u.id)return u;const v=d.get(y);return{id:y,name:v?.user?.name??y,image:v?.user?.image}},x=f.threads.map(y=>({id:y.id,author:h(y.authorId),body:y.body,createdAt:y.createdAt,resolved:y.resolved,replies:y.replies.map(v=>({id:v.id,author:h(v.authorId),body:v.body,createdAt:v.createdAt,replies:[]}))})),g=[...(o??[]).filter(Sc).map(sm),...s.threads.filter(Tc).map(tm),...x.map(em)].sort(Jp),p=[];for(const y of g){if(y.kind==="thread"){p.push({type:"thread",thread:y.thread});continue}if(y.kind==="comment"){p.push({type:"comment",comment:y.comment});continue}const v=p[p.length-1];v?.type==="timeline"?v.items.push(y.activity):p.push({type:"timeline",items:[y.activity]})}let k;e[0]!==l?(k=l("taskBoard.taskDialog.activityLabel"),e[0]=l,e[1]=k):k=e[1];let b;e[2]!==s.id||e[3]!==r?(b=i.jsx(Tp,{itemId:s.id,members:r}),e[2]=s.id,e[3]=r,e[4]=b):b=e[4];let m;return e[5]!==f.post?(m=y=>f.post.mutate({body:y}),e[5]=f.post,e[6]=m):m=e[6],i.jsx(wo,{label:k,action:b,children:i.jsxs("div",{className:"flex flex-col gap-5",children:[i.jsx(bp,{me:u,onSubmit:m}),p.map((y,v)=>y.type==="timeline"?i.jsx(am,{items:y.items,memberByUserId:d},`timeline-${v}`):y.type==="comment"?i.jsx(gp,{thread:y.comment,me:u,onReply:w=>f.post.mutate({body:w,parentId:y.comment.id}),onDelete:w=>f.remove.mutate(w),onToggleResolved:()=>f.setResolved.mutate({id:y.comment.id,resolved:!y.comment.resolved})},`comment-${y.comment.id}`):i.jsx(Op,{thread:y.thread,startedBy:n,onOpen:a},`thread-${y.thread.threadId}`))]})})}function Jp(t,e){return e.at-t.at}function em(t){return{kind:"comment",at:new Date(t.createdAt).getTime(),comment:t}}function tm(t){return{kind:"thread",at:new Date(t.createdAt).getTime(),thread:t}}function sm(t){return{kind:"activity",at:new Date(t.occurredAt).getTime(),activity:t}}function nm(t){return[t.userId,t]}function Pt(t){const e=R.c(7),{icon:s,label:r}=t;let n;e[0]!==s?(n=i.jsx("span",{className:"ml-1 mr-1 inline-flex h-[1lh] items-center align-top",children:s}),e[0]=s,e[1]=n):n=e[1];let a;e[2]!==r?(a=i.jsx("span",{className:"mr-1",children:r}),e[2]=r,e[3]=a):a=e[3];let l;return e[4]!==n||e[5]!==a?(l=i.jsxs(i.Fragment,{children:[n,a]}),e[4]=n,e[5]=a,e[6]=l):l=e[6],l}const Vr="\0";function Er(t){return`${Vr}${t}${Vr}`}function Ot(t,e){return t.split(new RegExp(`${Vr}(\\w+)${Vr}`)).map((s,r)=>i.jsx(L.Fragment,{children:r%2===0?s:e[s]},r))}function Kn(t,e){return e(t==="qa"?"taskBoard.taskDialog.qaAgentLabel":t==="code_review"?"taskBoard.taskDialog.codeReviewerLabel":"taskBoard.taskDialog.reviewerLabel")}function rm(t,e,s){const r=h=>{const x=typeof h=="string"?Nc[h]:void 0;if(!x)return String(h??"");const g=x.icon;return i.jsx(Pt,{icon:i.jsx(g,{size:14,className:x.iconClassName}),label:e(x.labelKey)})},n=h=>{const x=typeof h=="string"?Ye[h]:void 0;return x?i.jsx(Pt,{icon:i.jsx("span",{className:I("size-2 rounded-full",x.dotClassName)}),label:e(x.labelKey)}):String(h??"")},a=h=>{const x=bo(typeof h=="string"?h:null);return x?i.jsx(Pt,{icon:i.jsx(Yr,{size:14,className:"text-muted-foreground"}),label:yo.format(x)}):""},l=h=>!Array.isArray(h)||h.length===0?null:h.map((x,g)=>{const p=x;return i.jsx(Pt,{icon:i.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:mr(p.color)}}),label:p.name??""},p.id??g)}),o=h=>{if(h===De)return i.jsx(Pt,{icon:i.jsx(jt,{size:14}),label:e("taskBoard.taskDialog.superAgentLabel")});const x=typeof h=="string"?s.get(h):void 0;return i.jsx(Pt,{icon:i.jsx(Ke,{url:x?.user?.image??void 0,fallback:Ue(x?.user?.name),shape:"circle",size:"2xs"}),label:x?.user?.name??e("taskBoard.taskDialog.someoneLabel")})},c=h=>i.jsx(Pt,{icon:i.jsx(si,{size:14}),label:Kn(h,e)}),d=t.data,u=Er("from"),f=Er("to");switch(t.action){case"created":return e("taskBoard.taskDialog.activityCreated");case"status_changed":{const h=uo([{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?Ot(e("taskBoard.taskDialog.activityRetriesExhausted",{to:f,count:String(d.retriesSpent),reason:h}),{to:r(d.to)}):Ot(d.from?e("taskBoard.taskDialog.activityMovedFromTo",{from:u,to:f}):e("taskBoard.taskDialog.activityMovedTo",{to:f}),{from:r(d.from),to:r(d.to)})}case"assignee_changed":return d.to==null?e("taskBoard.taskDialog.activityUnassigned"):Ot(e(d.to===De?"taskBoard.taskDialog.activityDelegated":"taskBoard.taskDialog.activityAssigned",{name:Er("name")}),{name:o(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"):Ot(!d.from||d.from==="none"?e("taskBoard.taskDialog.activityPrioritySet",{to:f}):e("taskBoard.taskDialog.activityPriorityFromTo",{from:u,to:f}),{from:n(d.from),to:n(d.to)});case"due_date_changed":return d.to==null?e("taskBoard.taskDialog.activityDueDateCleared"):Ot(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"):Ot(e("taskBoard.taskDialog.activityTagsSet",{to:f}),{to:l(d.to)});case"review_requested":return Ot(e("taskBoard.taskDialog.activityDelegated",{name:Er("name")}),{name:c(d.reviewer)});case"review_approved":return typeof d.notes=="string"&&d.notes.trim()?e("taskBoard.taskDialog.activityReviewApprovedWithNotes",{reviewer:Kn(d.reviewer,e),notes:d.notes}):e("taskBoard.taskDialog.activityReviewApproved",{reviewer:Kn(d.reviewer,e)});case"review_changes_requested":return typeof d.notes=="string"&&d.notes.trim()?e("taskBoard.taskDialog.activityReviewChangesRequestedWithNotes",{reviewer:Kn(d.reviewer,e),notes:d.notes}):e("taskBoard.taskDialog.activityReviewChangesRequested",{reviewer:Kn(d.reviewer,e)});case"review_verdict_requested":return e("taskBoard.taskDialog.activityReviewVerdictRequested",{reviewer:Kn(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 tl(t){return!t||t===De}function am(t){const e=R.c(29),{items:s,memberByUserId:r}=t,n=Z(),[a,l]=L.useState(!1);let o;e[0]!==r||e[1]!==n?(o=m=>tl(m)?n("taskBoard.taskDialog.superAgentLabel"):r.get(m)?.user?.name??n("taskBoard.taskDialog.someoneLabel"),e[0]=r,e[1]=n,e[2]=o):o=e[2];const c=o;let d;e[3]!==r?(d=m=>{if(tl(m))return i.jsx("span",{className:"z-10 flex size-4 shrink-0 items-center justify-center bg-background",children:i.jsx(jt,{size:16})});const y=r.get(m);return i.jsx("span",{className:"z-10 shrink-0 rounded-full bg-background",children:i.jsx(Ke,{url:y?.user?.image??void 0,fallback:Ue(y?.user?.name),shape:"circle",size:"2xs"})})},e[3]=r,e[4]=d):d=e[4];const u=d,f=s.length>Ji&&!a;let h;e[5]!==f||e[6]!==s?(h=f?s.slice(0,el):s,e[5]=f,e[6]=s,e[7]=h):h=e[7];const x=h;let g;e[8]!==x.length?(g=x.length>1&&i.jsx("span",{"aria-hidden":!0,className:"absolute bottom-3 left-2 top-3 w-px bg-border"}),e[8]=x.length,e[9]=g):g=e[9];let p;if(e[10]!==u||e[11]!==c||e[12]!==r||e[13]!==n||e[14]!==x){let m;e[16]!==u||e[17]!==c||e[18]!==r||e[19]!==n?(m=y=>i.jsxs("div",{className:"relative flex items-center gap-2.5",children:[u(y.actorId),i.jsxs("span",{className:"min-w-0 truncate text-xs text-muted-foreground",children:[c(y.actorId)," ",rm(y,n,r),i.jsxs("span",{className:"text-muted-foreground/60",children:[" · ",Ua(new Date(y.occurredAt))]})]})]},y.id),e[16]=u,e[17]=c,e[18]=r,e[19]=n,e[20]=m):m=e[20],p=x.map(m),e[10]=u,e[11]=c,e[12]=r,e[13]=n,e[14]=x,e[15]=p}else p=e[15];let k;e[21]!==a||e[22]!==s.length||e[23]!==n?(k=s.length>Ji&&i.jsxs("button",{type:"button",onClick:()=>l(im),className:"relative flex items-center gap-2.5 text-left",children:[i.jsx("span",{className:"z-10 flex size-4 shrink-0 items-center justify-center rounded-full bg-background text-muted-foreground/60",children:i.jsx(Zn,{size:14})}),i.jsx("span",{className:"text-xs text-muted-foreground/60 hover:text-foreground",children:a?n("taskBoard.taskDialog.timelineFoldLess"):n("taskBoard.taskDialog.timelineFoldMore",{count:String(s.length-el)})})]}),e[21]=a,e[22]=s.length,e[23]=n,e[24]=k):k=e[24];let b;return e[25]!==g||e[26]!==p||e[27]!==k?(b=i.jsxs("div",{className:"relative flex flex-col gap-4",children:[g,p,k]}),e[25]=g,e[26]=p,e[27]=k,e[28]=b):b=e[28],b}function im(t){return!t}function lm(t){const e=R.c(59),{item:s,orgSlug:r,onRerun:n}=t,a=Z(),{data:l}=hi(s.id),{data:o}=Pl();let c;e[0]!==l?(c=l??[],e[0]=l,e[1]=c):c=e[1];let d;e[2]!==c?(d=uo(c),e[2]=c,e[3]=d):d=e[3];const u=d;if(!u)return null;const f=u.code===Ai.githubNotAuthenticated,h=u.code===Ai.githubConnectionMissing;let x,g,p,k,b,m,y,v,w,j;if(e[4]!==h||e[5]!==u.message||e[6]!==s||e[7]!==f||e[8]!==r||e[9]!==o||e[10]!==a){g=qh({orgSlug:r,repo:s.repo,repositories:o??[],returnTo:kl(r,s)}),x=Xc,j="destructive",p="mt-2 flex-col",v="flex items-start gap-3",e[21]===Symbol.for("react.memo_cache_sentinel")?(w=i.jsx(qt,{}),e[21]=w):w=e[21],k="flex flex-col gap-1";let E;e[22]!==a?(E=a("taskBoard.taskDialog.runFailedTitle"),e[22]=a,e[23]=E):E=e[23],e[24]!==E?(b=i.jsx(Jc,{children:E}),e[24]=E,e[25]=b):b=e[25];let P;e[26]!==h||e[27]!==u.message||e[28]!==f||e[29]!==a?(P=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]=P):P=e[30],e[31]!==P?(m=i.jsx(ji,{children:P}),e[31]=P,e[32]=m):m=e[32],y=f&&g.ownerOnly&&g.owner&&i.jsx(ji,{children:a("taskBoard.taskDialog.runFailedGithubOwnerOnly",{owner:g.owner})}),e[4]=h,e[5]=u.message,e[6]=s,e[7]=f,e[8]=r,e[9]=o,e[10]=a,e[11]=x,e[12]=g,e[13]=p,e[14]=k,e[15]=b,e[16]=m,e[17]=y,e[18]=v,e[19]=w,e[20]=j}else x=e[11],g=e[12],p=e[13],k=e[14],b=e[15],m=e[16],y=e[17],v=e[18],w=e[19],j=e[20];let S;e[33]!==k||e[34]!==b||e[35]!==m||e[36]!==y?(S=i.jsxs("div",{className:k,children:[b,m,y]}),e[33]=k,e[34]=b,e[35]=m,e[36]=y,e[37]=S):S=e[37];let T;e[38]!==S||e[39]!==v||e[40]!==w?(T=i.jsxs("div",{className:v,children:[w,S]}),e[38]=S,e[39]=v,e[40]=w,e[41]=T):T=e[41];let N;e[42]!==h||e[43]!==f||e[44]!==g||e[45]!==a?(N=(f||h)&&i.jsx(de,{size:"sm",asChild:!0,children:i.jsx("a",{href:g.url,children:a(h?"taskBoard.taskDialog.runFailedLinkRepo":"taskBoard.taskDialog.runFailedReconnect")})}),e[42]=h,e[43]=f,e[44]=g,e[45]=a,e[46]=N):N=e[46];let _;e[47]!==n||e[48]!==a?(_=n&&i.jsxs(de,{size:"sm",variant:"outline",onClick:n,children:[i.jsx(Zr,{size:14}),a("taskBoard.taskBoard.rerun")]}),e[47]=n,e[48]=a,e[49]=_):_=e[49];let $;e[50]!==N||e[51]!==_?($=i.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 self-start",children:[N,_]}),e[50]=N,e[51]=_,e[52]=$):$=e[52];let D;return e[53]!==x||e[54]!==p||e[55]!==T||e[56]!==$||e[57]!==j?(D=i.jsxs(x,{variant:j,className:p,children:[T,$]}),e[53]=x,e[54]=p,e[55]=T,e[56]=$,e[57]=j,e[58]=D):D=e[58],D}const om=["taskBoard.subscriptionPaywall.trialBenefitMonitoring","taskBoard.subscriptionPaywall.trialBenefitAutoFix","taskBoard.subscriptionPaywall.trialBenefitRuns"],cm="https://decoims.com/image?src=decocms%2F7263a67f-fb83-410b-a5f2-e54e87deaaac%2Freport-kanban.png&quality=original&fit=cover";function dm(t){const e=R.c(83),{kind:s,onOpenChange:r}=t,n=Z(),{mutate:a,isPending:l}=pu("ORGANIZATION_BILLING_CHECKOUT_START","taskBoard.subscriptionPaywall.checkoutError");if(s==="trial_exhausted"){let v;e[0]!==n?(v=n("taskBoard.subscriptionPaywall.previewAlt"),e[0]=n,e[1]=v):v=e[1];let w;e[2]!==v?(w=i.jsx("div",{className:"overflow-hidden rounded-xl bg-muted",children:i.jsx("img",{src:cm,alt:v,className:"h-[160px] w-full object-cover object-left-top"})}),e[2]=v,e[3]=w):w=e[3];let j;e[4]!==n?(j=n("taskBoard.subscriptionPaywall.trialTitle"),e[4]=n,e[5]=j):j=e[5];let S;e[6]!==j?(S=i.jsx(Pr,{className:"text-xl font-semibold text-foreground",children:j}),e[6]=j,e[7]=S):S=e[7];let T;e[8]!==n?(T=om.map(ae=>i.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[i.jsx(Jn,{size:18,className:"mt-0.5 shrink-0 text-success","aria-hidden":!0}),i.jsx("span",{className:"leading-snug text-foreground",children:n(ae)})]},ae)),e[8]=n,e[9]=T):T=e[9];let N;e[10]!==T?(N=i.jsx("ul",{className:"flex flex-col gap-3",children:T}),e[10]=T,e[11]=N):N=e[11];let _;e[12]!==n?(_=n("taskBoard.subscriptionPaywall.trialPrice"),e[12]=n,e[13]=_):_=e[13];let $;e[14]!==_?($=i.jsx("span",{className:"text-2xl font-semibold text-foreground",children:_}),e[14]=_,e[15]=$):$=e[15];let D;e[16]!==n?(D=n("taskBoard.subscriptionPaywall.trialPricePeriod"),e[16]=n,e[17]=D):D=e[17];let E;e[18]!==D?(E=i.jsx("span",{className:"text-sm text-muted-foreground",children:D}),e[18]=D,e[19]=E):E=e[19];let P;e[20]!==E||e[21]!==$?(P=i.jsxs("div",{className:"flex items-baseline gap-1.5",children:[$,E]}),e[20]=E,e[21]=$,e[22]=P):P=e[22];let O;e[23]!==r?(O=()=>r(!1),e[23]=r,e[24]=O):O=e[24];let z;e[25]!==n?(z=n("taskBoard.subscriptionPaywall.notNowButton"),e[25]=n,e[26]=z):z=e[26];let V;e[27]!==l||e[28]!==O||e[29]!==z?(V=i.jsx(de,{variant:"ghost",onClick:O,disabled:l,className:"order-2 w-full sm:order-none sm:w-auto",children:z}),e[27]=l,e[28]=O,e[29]=z,e[30]=V):V=e[30];let F;e[31]!==r||e[32]!==a?(F=()=>a(void 0,{onSuccess:()=>r(!1)}),e[31]=r,e[32]=a,e[33]=F):F=e[33];let Q;e[34]!==l?(Q=l&&i.jsx(Tt,{className:"size-4"}),e[34]=l,e[35]=Q):Q=e[35];let W;e[36]!==n?(W=n("taskBoard.subscriptionPaywall.subscribeButton"),e[36]=n,e[37]=W):W=e[37];let H;e[38]!==l||e[39]!==F||e[40]!==Q||e[41]!==W?(H=i.jsxs(de,{disabled:l,onClick:F,className:"order-1 w-full gap-2 sm:order-none sm:w-auto",children:[Q,W]}),e[38]=l,e[39]=F,e[40]=Q,e[41]=W,e[42]=H):H=e[42];let Y;e[43]!==V||e[44]!==H?(Y=i.jsxs("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[V,H]}),e[43]=V,e[44]=H,e[45]=Y):Y=e[45];let G;e[46]!==P||e[47]!==Y?(G=i.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[P,Y]}),e[46]=P,e[47]=Y,e[48]=G):G=e[48];let X;e[49]!==G||e[50]!==S||e[51]!==N?(X=i.jsxs("div",{className:"flex flex-col gap-6 px-3 pb-3 pt-7",children:[S,N,G]}),e[49]=G,e[50]=S,e[51]=N,e[52]=X):X=e[52];let q;e[53]!==w||e[54]!==X?(q=i.jsxs(Or,{className:"gap-0 p-3 sm:max-w-[440px]",closeButtonClassName:"z-10 rounded-full bg-background/70 p-1 text-foreground backdrop-blur transition-colors hover:bg-background",children:[w,X]}),e[53]=w,e[54]=X,e[55]=q):q=e[55];let ne;return e[56]!==r||e[57]!==q?(ne=i.jsx(Fr,{open:!0,onOpenChange:r,children:q}),e[56]=r,e[57]=q,e[58]=ne):ne=e[58],ne}let o;e[59]!==s||e[60]!==n?(o=s?{monthly_exhausted:{title:n("taskBoard.subscriptionPaywall.monthlyTitle"),description:n("taskBoard.subscriptionPaywall.monthlyDescription")},runs_exhausted:{title:n("taskBoard.subscriptionPaywall.runsTitle"),description:n("taskBoard.subscriptionPaywall.runsDescription")}}[s]:null,e[59]=s,e[60]=n,e[61]=o):o=e[61];const c=o,d=!!s,u=c?.title;let f;e[62]!==u?(f=i.jsx(Pr,{children:u}),e[62]=u,e[63]=f):f=e[63];const h=c?.description;let x;e[64]!==h?(x=i.jsx(Tl,{children:h}),e[64]=h,e[65]=x):x=e[65];let g;e[66]!==f||e[67]!==x?(g=i.jsxs(Cl,{children:[f,x]}),e[66]=f,e[67]=x,e[68]=g):g=e[68];let p;e[69]!==r?(p=()=>r(!1),e[69]=r,e[70]=p):p=e[70];let k;e[71]!==n?(k=n("taskBoard.subscriptionPaywall.dismissButton"),e[71]=n,e[72]=k):k=e[72];let b;e[73]!==p||e[74]!==k?(b=i.jsx(Nl,{children:i.jsx(de,{variant:"ghost",onClick:p,children:k})}),e[73]=p,e[74]=k,e[75]=b):b=e[75];let m;e[76]!==b||e[77]!==g?(m=i.jsxs(Or,{className:"sm:max-w-[440px]",children:[g,b]}),e[76]=b,e[77]=g,e[78]=m):m=e[78];let y;return e[79]!==r||e[80]!==m||e[81]!==d?(y=i.jsx(Fr,{open:d,onOpenChange:r,children:m}),e[79]=r,e[80]=m,e[81]=d,e[82]=y):y=e[82],y}const um=new Set(["completed","failed","expired"]);function fm(t){return t.threads.some(e=>e.status!==null&&!um.has(e.status))}function hm(t){const e=R.c(43),{items:s,pending:r,onOpenChange:n,onConfirm:a}=t,l=Z(),o=s.length;let c;e[0]!==s?(c=s.some(fm),e[0]=s,e[1]=c):c=e[1];const d=c,u=o>0;let f;e[2]!==o||e[3]!==l?(f=o>1?l("taskBoard.rerun.titleMany",{count:o}):l("taskBoard.rerun.title"),e[2]=o,e[3]=l,e[4]=f):f=e[4];let h;e[5]!==f?(h=i.jsx(Pr,{children:f}),e[5]=f,e[6]=h):h=e[6];let x;e[7]!==o||e[8]!==l||e[9]!==d?(x=o>1?l("taskBoard.rerun.descriptionMany",{count:o}):l(d?"taskBoard.rerun.descriptionTakeover":"taskBoard.rerun.description"),e[7]=o,e[8]=l,e[9]=d,e[10]=x):x=e[10];let g;e[11]!==x?(g=i.jsx(Tl,{children:x}),e[11]=x,e[12]=g):g=e[12];let p;e[13]!==h||e[14]!==g?(p=i.jsxs(Cl,{children:[h,g]}),e[13]=h,e[14]=g,e[15]=p):p=e[15];let k;e[16]!==n?(k=()=>n(!1),e[16]=n,e[17]=k):k=e[17];let b;e[18]!==l?(b=l("taskBoard.rerun.cancel"),e[18]=l,e[19]=b):b=e[19];let m;e[20]!==r||e[21]!==k||e[22]!==b?(m=i.jsx(de,{variant:"outline",onClick:k,disabled:r,children:b}),e[20]=r,e[21]=k,e[22]=b,e[23]=m):m=e[23];let y;e[24]!==r?(y=r&&i.jsx(Tt,{className:"size-4"}),e[24]=r,e[25]=y):y=e[25];let v;e[26]!==l?(v=l("taskBoard.rerun.confirm"),e[26]=l,e[27]=v):v=e[27];let w;e[28]!==a||e[29]!==r||e[30]!==y||e[31]!==v?(w=i.jsxs(de,{onClick:a,disabled:r,children:[y,v]}),e[28]=a,e[29]=r,e[30]=y,e[31]=v,e[32]=w):w=e[32];let j;e[33]!==m||e[34]!==w?(j=i.jsxs(Nl,{children:[m,w]}),e[33]=m,e[34]=w,e[35]=j):j=e[35];let S;e[36]!==j||e[37]!==p?(S=i.jsxs(Or,{className:"max-w-md",children:[p,j]}),e[36]=j,e[37]=p,e[38]=S):S=e[38];let T;return e[39]!==n||e[40]!==S||e[41]!==u?(T=i.jsx(Fr,{open:u,onOpenChange:n,children:S}),e[39]=n,e[40]=S,e[41]=u,e[42]=T):T=e[42],T}const sl=380,pm=90,nl=5,mm="cubic-bezier(0.22, 0.61, 0.36, 1)";function gm(t,e,s,r=!0){const n=L.useRef(new Map),a=L.useRef(new Map),l=L.useRef(!1);L.useLayoutEffect(()=>{const o=t.current;if(!o)return;if(!r){l.current=!0;return}const c=l.current;l.current=!1;const d=o.querySelectorAll("[data-flip-id]"),u=new Map,f=n.current;n.current=u;const h=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,x=[];for(const v of d){const w=v.dataset.flipId;if(!w)continue;const j=v.getBoundingClientRect(),S=v.dataset.flipLane;if(u.set(w,{rect:j,lane:S}),!s||c)continue;const T=f.get(w);if(!T)continue;const N=T.rect.left-j.left,_=T.rect.top-j.top;(N||_)&&x.push({el:v,dx:N,dy:_,lane:T.lane!==S})}if(!s||h||x.length===0)return;const g=a.current,p=v=>{v instanceof HTMLElement&&(g.set(v,(g.get(v)??0)+1),v.style.overflow="visible")},k=v=>{if(!(v instanceof HTMLElement))return;const w=(g.get(v)??1)-1;if(w>0){g.set(v,w);return}g.delete(v),v.style.overflow=""};for(const v of x){const w=v.lane?` rotate(${v.dx>0?nl:-nl}deg)`:"";v.el.style.transition="none",v.el.style.transform=`translate(${v.dx}px, ${v.dy}px)${w}`,v.lane&&(v.el.style.zIndex="10",p(v.el.closest("[data-lane-scroll]")))}let b=0;const m=[],y=requestAnimationFrame(()=>{for(const v of x){const w=v.lane?b++*pm:0;v.el.style.transition=`transform ${sl}ms ${mm} ${w}ms`,v.el.style.transform="",m.push(window.setTimeout(()=>{v.el.style.transition="",v.el.style.transform="",v.el.style.zIndex="",v.lane&&k(v.el.closest("[data-lane-scroll]"))},sl+w+30))}});return()=>{cancelAnimationFrame(y);for(const v of m)clearTimeout(v);for(const v of x)v.el.style.transition="",v.el.style.transform="",v.el.style.zIndex="",v.lane&&k(v.el.closest("[data-lane-scroll]"))}},[e,t,s,r])}function xm(t,e=[]){const s=[[`# Task: ${t.title}`,t.description?.trim()].filter(Boolean).join(`
|
|
85
|
-
|
|
86
|
-
`)];if(e.length>0){const r=e.map(n=>{const a=n.merged?"merged":n.state??(n.draft?"draft":"open"),l=n.title?.trim()||`${n.repoOwner}/${n.repoName}`;return`- #${n.number} ${l} [${a}] ${n.url}`});s.push(["## Linked pull requests",...r].join(`
|
|
87
|
-
`))}if(t.threads.length>0){const r=t.threads.map(n=>{const a=n.title?.trim()||"Untitled chat";return n.status?`- ${a} [${n.status}]`:`- ${a}`});s.push(["## Other chats on this task",...r].join(`
|
|
88
|
-
`))}return s.join(`
|
|
89
|
-
|
|
90
|
-
`)}const km=["overdue","today","week","none"],Wn=t=>typeof t=="string"&&t!==""?t:null;function bm(t){const e=Wn(t.priority),s=Wn(t.due),r=Wn(t.tags);return{layout:t.view==="list"?"list":"board",filters:{search:Wn(t.q)??"",assignee:Wn(t.assignee),priority:Jr.includes(e)?e:null,due:km.includes(s)?s:null,tags:r?r.split(",").filter(Boolean):[],project:Wn(t.repo)}}}function ym(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 wm(t,e){const s=new Set(e.map(r=>r.id));return new Set([...t].filter(r=>s.has(r)))}function vm(){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=zo(e),r=za();let n;t[1]!==s?(n=bm(s),t[1]=s,t[2]=n):n=t[2];const{filters:a,layout:l}=n;let o;t[3]!==r?(o=(h,x)=>r({to:".",search:g=>({...g,...ym(h,x)}),replace:!0}),t[3]=r,t[4]=o):o=t[4];const c=o;let d;t[5]!==l||t[6]!==c?(d=h=>c(h,l),t[5]=l,t[6]=c,t[7]=d):d=t[7];let u;t[8]!==a||t[9]!==c?(u=h=>c(a,h),t[8]=a,t[9]=c,t[10]=u):u=t[10];let f;return t[11]!==a||t[12]!==l||t[13]!==d||t[14]!==u?(f={filters:a,layout:l,setFilters:d,setLayout:u},t[11]=a,t[12]=l,t[13]=d,t[14]=u,t[15]=f):f=t[15],f}Lo(()=>import("./route-BruqcMqr.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,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192])).catch(()=>{});const jm=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function jo(t){const e=new Date(t),s=e.getTime()<Date.now();return{label:jm.format(e),overdue:s}}const Gt="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",xr=12,kr="size-3.5",Na=2;function Sm(){const t=R.c(9),e=Z();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=I(Gt,"border-warning/50 text-warning"),t[0]=s):s=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.blockedBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(Xr,{size:xr}),t[3]=n):n=t[3];let a;t[4]!==e?(a=e("taskBoard.taskBoard.needsInput"),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==r||t[7]!==a?(l=i.jsxs("span",{className:s,title:r,children:[n,a]}),t[6]=r,t[7]=a,t[8]=l):l=t[8],l}function Tm(){const t=R.c(9),e=Z();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=I(Gt,"border-warning/50 text-warning"),t[0]=s):s=t[0];let r;t[1]!==e?(r=e("taskBoard.taskBoard.handedToHumanBadgeTitle"),t[1]=e,t[2]=r):r=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(Xr,{size:xr}),t[3]=n):n=t[3];let a;t[4]!==e?(a=e("taskBoard.taskBoard.needsYou"),t[4]=e,t[5]=a):a=t[5];let l;return t[6]!==r||t[7]!==a?(l=i.jsxs("span",{className:s,title:r,children:[n,a]}),t[6]=r,t[7]=a,t[8]=l):l=t[8],l}function Cm(t){const e=R.c(20),{priority:s,onChange:r}=t,n=Z(),a=Ye[s];let l;e[0]!==a.labelKey||e[1]!==n?(l=n(a.labelKey),e[0]=a.labelKey,e[1]=n,e[2]=l):l=e[2];const o=l,c=a.icon;let d;e[3]!==a.iconClassName?(d=I(kr,"shrink-0",a.iconClassName),e[3]=a.iconClassName,e[4]=d):d=e[4];let u;e[5]!==a.icon||e[6]!==o||e[7]!==d?(u=i.jsx(c,{className:d,"aria-label":o}),e[5]=a.icon,e[6]=o,e[7]=d,e[8]=u):u=e[8];const f=u;if(!r){let g;return e[9]!==f||e[10]!==o?(g=i.jsx(na,{label:o,children:f}),e[9]=f,e[10]=o,e[11]=g):g=e[11],g}let h;e[12]!==r||e[13]!==s||e[14]!==n?(h=Jr.map(g=>{const p=Ye[g].icon;return i.jsxs(we,{onSelect:()=>r(g),className:I("gap-2",g===s&&"bg-accent"),children:[i.jsx(p,{size:xr,className:I("shrink-0",Ye[g].iconClassName)}),n(Ye[g].labelKey)]},g)}),e[12]=r,e[13]=s,e[14]=n,e[15]=h):h=e[15];let x;return e[16]!==f||e[17]!==o||e[18]!==h?(x=i.jsx(So,{label:o,glyph:f,children:h}),e[16]=f,e[17]=o,e[18]=h,e[19]=x):x=e[19],x}function So(t){const e=R.c(8),{label:s,glyph:r,children:n}=t;let a;e[0]!==r||e[1]!==s?(a=i.jsx(Ve,{asChild:!0,children:i.jsx(de,{variant:"ghost",size:"icon-sm",title:s,"aria-label":s,onClick:Bm,onPointerDown:_m,className:"-m-1.5",children:r})}),e[0]=r,e[1]=s,e[2]=a):a=e[2];let l;e[3]!==n?(l=i.jsx(Qe,{align:"start",className:"w-36",onClick:Nm,children:n}),e[3]=n,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=i.jsxs(Ze,{children:[a,l]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function Nm(t){return t.stopPropagation()}function _m(t){return t.stopPropagation()}function Bm(t){return t.stopPropagation()}function na(t){const e=R.c(7),{label:s,children:r}=t;let n;e[0]!==r?(n=i.jsx(bc,{asChild:!0,children:i.jsx("span",{className:"flex shrink-0 items-center",children:r})}),e[0]=r,e[1]=n):n=e[1];let a;e[2]!==s?(a=i.jsx(yc,{side:"top",children:s}),e[2]=s,e[3]=a):a=e[3];let l;return e[4]!==n||e[5]!==a?(l=i.jsxs(wc,{children:[n,a]}),e[4]=n,e[5]=a,e[6]=l):l=e[6],l}function Am(t){const e=R.c(20),{type:s,onChange:r}=t,n=Z(),a=It[s];let l;e[0]!==a.labelKey||e[1]!==n?(l=n(a.labelKey),e[0]=a.labelKey,e[1]=n,e[2]=l):l=e[2];const o=l,c=a.icon;let d;e[3]!==a.iconClassName?(d=I(kr,"shrink-0",a.iconClassName),e[3]=a.iconClassName,e[4]=d):d=e[4];let u;e[5]!==a.icon||e[6]!==o||e[7]!==d?(u=i.jsx(c,{className:d,"aria-label":o}),e[5]=a.icon,e[6]=o,e[7]=d,e[8]=u):u=e[8];const f=u;if(!r){let g;return e[9]!==f||e[10]!==o?(g=i.jsx(na,{label:o,children:f}),e[9]=f,e[10]=o,e[11]=g):g=e[11],g}let h;e[12]!==r||e[13]!==n||e[14]!==s?(h=wl.map(g=>{const p=It[g].icon;return i.jsxs(we,{onSelect:()=>r(g),className:I("gap-2",g===s&&"bg-accent"),children:[i.jsx(p,{size:xr,className:I("shrink-0",It[g].iconClassName)}),n(It[g].labelKey)]},g)}),e[12]=r,e[13]=n,e[14]=s,e[15]=h):h=e[15];let x;return e[16]!==f||e[17]!==o||e[18]!==h?(x=i.jsx(So,{label:o,glyph:f,children:h}),e[16]=f,e[17]=o,e[18]=h,e[19]=x):x=e[19],x}function Dm(t){const e=R.c(46),{iso:s,onChange:r}=t;let n;e[0]!==s?(n=qc(s),e[0]=s,e[1]=n):n=e[1];const a=n;let l;e[2]!==s?(l=jo(s),e[2]=s,e[3]=l):l=e[3];const{label:o}=l;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(Yr,{className:kr}),e[4]=c):c=e[4];let d;e[5]!==o?(d=i.jsxs(i.Fragment,{children:[c,o]}),e[5]=o,e[6]=d):d=e[6];const u=d;let f,h,x,g,p,k,b,m,y,v;if(e[7]!==u||e[8]!==r||e[9]!==a){p=Symbol.for("react.early_return_sentinel");e:{const D=I("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(!r){p=i.jsx("span",{className:I("flex",D),children:u});break e}x=Ze,h=Ve,g=!0,f=de,k="ghost",b="sm",m=Em,y=$m,v=I("-mx-1.5 h-auto px-1.5 py-1 font-medium",D)}e[7]=u,e[8]=r,e[9]=a,e[10]=f,e[11]=h,e[12]=x,e[13]=g,e[14]=p,e[15]=k,e[16]=b,e[17]=m,e[18]=y,e[19]=v}else f=e[10],h=e[11],x=e[12],g=e[13],p=e[14],k=e[15],b=e[16],m=e[17],y=e[18],v=e[19];if(p!==Symbol.for("react.early_return_sentinel"))return p;let w;e[20]!==f||e[21]!==u||e[22]!==k||e[23]!==b||e[24]!==m||e[25]!==y||e[26]!==v?(w=i.jsx(f,{variant:k,size:b,onClick:m,onPointerDown:y,className:v,children:u}),e[20]=f,e[21]=u,e[22]=k,e[23]=b,e[24]=m,e[25]=y,e[26]=v,e[27]=w):w=e[27];let j;e[28]!==h||e[29]!==g||e[30]!==w?(j=i.jsx(h,{asChild:g,children:w}),e[28]=h,e[29]=g,e[30]=w,e[31]=j):j=e[31];let S;e[32]!==s?(S=new Date(s),e[32]=s,e[33]=S):S=e[33];let T;e[34]!==s?(T=new Date(s),e[34]=s,e[35]=T):T=e[35];let N;e[36]!==r?(N=D=>D&&r(mi(D)),e[36]=r,e[37]=N):N=e[37];let _;e[38]!==S||e[39]!==T||e[40]!==N?(_=i.jsx(Qe,{align:"start",className:"w-auto p-0",onClick:Rm,children:i.jsx(Ga,{mode:"single",selected:S,defaultMonth:T,onSelect:N,initialFocus:!0})}),e[38]=S,e[39]=T,e[40]=N,e[41]=_):_=e[41];let $;return e[42]!==x||e[43]!==j||e[44]!==_?($=i.jsxs(x,{children:[j,_]}),e[42]=x,e[43]=j,e[44]=_,e[45]=$):$=e[45],$}function Rm(t){return t.stopPropagation()}function $m(t){return t.stopPropagation()}function Em(t){return t.stopPropagation()}function Mm(t){const e=R.c(8),{action:s}=t;let r;e[0]!==s?(r=l=>{l.stopPropagation(),s.onClick()},e[0]=s,e[1]=r):r=e[1];let n;e[2]!==s.icon?(n=i.jsx(s.icon,{className:kr}),e[2]=s.icon,e[3]=n):n=e[3];let a;return e[4]!==s.label||e[5]!==r||e[6]!==n?(a=i.jsxs(de,{variant:"outline",size:"sm",onClick:r,onPointerDown:zm,ref:Im,className:"absolute -top-0.5 right-0 h-6 gap-1.5 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:[n,s.label]}),e[4]=s.label,e[5]=r,e[6]=n,e[7]=a):a=e[7],a}function Im(t){return t?.parentElement?.style.setProperty("--fade-text-end",`${t.offsetWidth}px`)}function zm(t){return t.stopPropagation()}function Lm(t){const e=R.c(36),{item:s,checks:r,assignee:n,assignedBy:a,members:l,onAssign:o,onPriorityChange:c,onTypeChange:d,onDueDateChange:u}=t,{org:f}=Xe();let h;e[0]!==s.keySeq||e[1]!==f.slug?(h=xl(f.slug,s.keySeq),e[0]=s.keySeq,e[1]=f.slug,e[2]=h):h=e[2];const x=h;let g;e[3]!==s.type||e[4]!==d?(g=i.jsx(Am,{type:s.type,onChange:d}),e[3]=s.type,e[4]=d,e[5]=g):g=e[5];let p;e[6]!==x?(p=i.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/70",children:x}),e[6]=x,e[7]=p):p=e[7];let k;e[8]!==g||e[9]!==p?(k=i.jsxs("span",{className:"flex shrink-0 items-center gap-1.5",children:[g,p]}),e[8]=g,e[9]=p,e[10]=k):k=e[10];let b;e[11]!==s.dueDate||e[12]!==u?(b=s.dueDate&&i.jsx(Dm,{iso:s.dueDate,onChange:u}),e[11]=s.dueDate,e[12]=u,e[13]=b):b=e[13];let m;e[14]!==k||e[15]!==b?(m=i.jsxs("span",{className:"flex min-w-0 items-center gap-3",children:[k,b]}),e[14]=k,e[15]=b,e[16]=m):m=e[16];let y;e[17]!==s.priority||e[18]!==c?(y=(s.priority!=="none"||c)&&i.jsx(Cm,{priority:s.priority,onChange:c}),e[17]=s.priority,e[18]=c,e[19]=y):y=e[19];let v;e[20]!==r||e[21]!==s.reviewVerdicts?(v=r&&i.jsx(Fm,{summary:r.summary,verdicts:s.reviewVerdicts,enabled:r.enabled}),e[20]=r,e[21]=s.reviewVerdicts,e[22]=v):v=e[22];let w;e[23]!==a||e[24]!==n||e[25]!==s||e[26]!==l||e[27]!==o?(w=i.jsx(Co,{item:s,assignee:n,assignedBy:a,members:l,onAssign:o,showDelegation:!1}),e[23]=a,e[24]=n,e[25]=s,e[26]=l,e[27]=o,e[28]=w):w=e[28];let j;e[29]!==y||e[30]!==v||e[31]!==w?(j=i.jsxs("span",{className:"flex shrink-0 items-center gap-2",children:[y,v,w]}),e[29]=y,e[30]=v,e[31]=w,e[32]=j):j=e[32];let S;return e[33]!==j||e[34]!==m?(S=i.jsxs("div",{className:"mt-auto flex shrink-0 items-center justify-between gap-2 pt-1",children:[m,j]}),e[33]=j,e[34]=m,e[35]=S):S=e[35],S}function Pm(t){const e=R.c(10),{priority:s}=t,r=Z(),n=Ye[s];let a;e[0]!==n.labelKey||e[1]!==r?(a=r(n.labelKey),e[0]=n.labelKey,e[1]=r,e[2]=a):a=e[2];const l=a;let o;e[3]!==n.dotClassName?(o=I("size-2 shrink-0 rounded-full",n.dotClassName),e[3]=n.dotClassName,e[4]=o):o=e[4];let c;e[5]!==o?(c=i.jsx("span",{className:o}),e[5]=o,e[6]=c):c=e[6];let d;return e[7]!==l||e[8]!==c?(d=i.jsxs("span",{className:Gt,title:l,children:[c,l]}),e[7]=l,e[8]=c,e[9]=d):d=e[9],d}function Om(t){const e=R.c(7),{iso:s}=t;let r,n;if(e[0]!==s){const{label:o,overdue:c}=jo(s);r=o,n=I(Gt,c&&"border-destructive/50 text-destructive"),e[0]=s,e[1]=r,e[2]=n}else r=e[1],n=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(Yr,{size:xr}),e[3]=a):a=e[3];let l;return e[4]!==r||e[5]!==n?(l=i.jsxs("span",{className:n,children:[a,r]}),e[4]=r,e[5]=n,e[6]=l):l=e[6],l}function To(t){const e=R.c(8),{tag:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=I(Gt,"text-foreground"),e[0]=r):r=e[0];let n;e[1]!==s.color?(n=mr(s.color),e[1]=s.color,e[2]=n):n=e[2];let a;e[3]!==n?(a={borderColor:n},e[3]=n,e[4]=a):a=e[4];let l;return e[5]!==a||e[6]!==s.name?(l=i.jsx("span",{className:r,style:a,children:s.name}),e[5]=a,e[6]=s.name,e[7]=l):l=e[7],l}function Fm(t){const e=R.c(26),{summary:s,verdicts:r,enabled:n}=t,a=Z();let l;if(e[0]!==n||e[1]!==a||e[2]!==r){let y;e[4]!==a||e[5]!==r?(y=v=>{const w=r.find(T=>T.reviewer===v),j=a("taskBoard.taskDialog.reviewerLabel"),S=w?w.verdict==="changes_requested"?a("taskBoard.taskBoard.checksChangesRequested"):a(w.verified?"taskBoard.taskBoard.checksApproved":"taskBoard.taskBoard.checksUnverified"):a("taskBoard.taskBoard.checksPending");return i.jsxs("span",{className:"flex items-center gap-1.5 whitespace-nowrap",children:[i.jsx(si,{size:12}),j," — ",S]},v)},e[4]=a,e[5]=r,e[6]=y):y=e[6],l=n.map(y),e[0]=n,e[1]=a,e[2]=r,e[3]=l}else l=e[3];let o;e[7]!==l?(o=i.jsx("span",{className:"flex flex-col gap-0.5",children:l}),e[7]=l,e[8]=o):o=e[8];const c=o,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=I("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),g=String(s.total);let p;e[13]!==a||e[14]!==x||e[15]!==g?(p=a("taskBoard.taskBoard.checksLabel",{passed:x,total:g}),e[13]=a,e[14]=x,e[15]=g,e[16]=p):p=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(Jn,{className:kr}),e[17]=k):k=e[17];let b;e[18]!==s.passed||e[19]!==s.total||e[20]!==h||e[21]!==p?(b=i.jsxs("span",{className:h,"aria-label":p,children:[k,s.passed,"/",s.total]}),e[18]=s.passed,e[19]=s.total,e[20]=h,e[21]=p,e[22]=b):b=e[22];let m;return e[23]!==c||e[24]!==b?(m=i.jsx(na,{label:c,children:b}),e[23]=c,e[24]=b,e[25]=m):m=e[25],m}function Hm(t){const e=R.c(14),{state:s}=t,r=Z(),n=s==="running",a=n?"taskBoard.taskBoard.agentRunning":"taskBoard.taskBoard.agentFailed";let l;e[0]!==r||e[1]!==a?(l=r(a),e[0]=r,e[1]=a,e[2]=l):l=e[2];const o=l;let c;e[3]!==o||e[4]!==n?(c=n?i.jsx(Tt,{className:"size-3.5 text-primary",label:o}):i.jsx(Oo,{size:14,className:"shrink-0 text-destructive","aria-label":o}),e[3]=o,e[4]=n,e[5]=c):c=e[5];let d;e[6]!==o||e[7]!==c?(d=i.jsx(na,{label:o,children:c}),e[6]=o,e[7]=c,e[8]=d):d=e[8];let u;e[9]!==o?(u=i.jsx("span",{className:"sr-only",children:o}),e[9]=o,e[10]=u):u=e[10];let f;return e[11]!==d||e[12]!==u?(f=i.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 qm(t){const e=R.c(3),s=mo(Sl());if(t.reviewVerdicts.length===0&&t.status!=="in_review"&&!t.reviewCycleStartedAt)return null;const r=sp(t.reviewVerdicts,s);let n;return e[0]!==s||e[1]!==r?(n=r?{summary:r,enabled:s}:null,e[0]=s,e[1]=r,e[2]=n):n=e[2],n}function Co(t){const e=R.c(35),{item:s,assignee:r,assignedBy:n,members:a,onAssign:l,showDelegation:o}=t,c=o===void 0?!0:o,d=Z(),[u,f]=L.useState(!1);if(s.assigneeId===De){let v;e[0]!==n||e[1]!==d?(v=n?.user?.name?d("taskBoard.taskBoard.assignedToSuperAgentBy",{name:n.user.name}):d("taskBoard.taskBoard.assignedToSuperAgent"),e[0]=n,e[1]=d,e[2]=v):v=e[2];const w=v;if(!c){let N;return e[3]!==n||e[4]!==w?(N=n?i.jsx(Ke,{url:n.user?.image??void 0,fallback:Ue(n.user?.name),shape:"circle",size:"xs",title:w}):null,e[3]=n,e[4]=w,e[5]=N):N=e[5],N}let j;e[6]!==n?(j=n&&i.jsx(Ke,{url:n.user?.image??void 0,fallback:Ue(n.user?.name),shape:"circle",size:"xs",className:"-mr-2 ring-2 ring-background"}),e[6]=n,e[7]=j):j=e[7];let S;e[8]===Symbol.for("react.memo_cache_sentinel")?(S=i.jsx(jt,{size:20,className:"ring-2 ring-background"}),e[8]=S):S=e[8];let T;return e[9]!==j||e[10]!==w?(T=i.jsxs("span",{className:"inline-flex items-center",title:w,children:[j,S]}),e[9]=j,e[10]=w,e[11]=T):T=e[11],T}if(r){const v=r.user?.image??void 0,w=r.user?.name;let j;e[12]!==w?(j=Ue(w),e[12]=w,e[13]=j):j=e[13];let S;return e[14]!==v||e[15]!==j?(S=i.jsx(Ke,{url:v,fallback:j,shape:"circle",size:"xs"}),e[14]=v,e[15]=j,e[16]=S):S=e[16],S}if(!l||!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 g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g=v=>{v.stopPropagation(),f(!0)},e[21]=g):g=e[21];let p;e[22]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(hl,{size:13}),e[22]=p):p=e[22];let k;e[23]!==h||e[24]!==x?(k=i.jsx(or,{asChild:!0,children:i.jsx("button",{type:"button",title:h,"aria-label":x,onClick:g,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:p})}),e[23]=h,e[24]=x,e[25]=k):k=e[25];let b;e[26]!==l?(b=v=>{l(v),f(!1)},e[26]=l,e[27]=b):b=e[27];let m;e[28]!==a||e[29]!==b?(m=i.jsx(Ir,{className:"w-56 p-0",align:"end",side:"bottom",onClick:Um,children:i.jsx(pi,{members:a,onSelect:b})}),e[28]=a,e[29]=b,e[30]=m):m=e[30];let y;return e[31]!==u||e[32]!==k||e[33]!==m?(y=i.jsxs(zr,{open:u,onOpenChange:f,children:[k,m]}),e[31]=u,e[32]=k,e[33]=m,e[34]=y):y=e[34],y}function Um(t){return t.stopPropagation()}function Ng(){const t=R.c(107),e=Z(),{items:s,isLoading:r}=_c(),{data:n}=Ka();let a;t[0]!==n?(a=n===void 0?[]:n,t[0]=n,t[1]=a):a=t[1];const l=a,o=Bc(),c=Pl();let d,u;if(t[2]!==c.data){const C=(c.data??[]).filter(r1);d=C.length>0,u=C.map(n1),t[2]=c.data,t[3]=d,t[4]=u}else d=t[3],u=t[4];const f=u,[h,x]=L.useState(!1);let g;t[5]!==d?(g=C=>C===De&&!d?(x(!0),!0):!1,t[5]=d,t[6]=g):g=t[6];const p=g,[k,b]=L.useState(null),m=C=>{const M=mu(C);if(M){b(M),xi("task_limit_banner_shown",{organization_id:Te.id,kind:M});return}Ge.error(C.message||e("taskBoard.taskBoard.actionError"))},y=C=>{!C||C.dataset.tracked==="true"||(C.dataset.tracked="true",xi("task_board_opened",{organization_id:Te.id}))};let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=[],t[7]=v):v=t[7];const[w,j]=L.useState(v),S=()=>{if(w.length!==0){if(p(De)){j([]);return}for(const C of w)o.rerun.mutate({id:C.id},{onError:M=>m(M)});j([]),te()}},{data:T}=qa();let N,_;t[8]!==T?.data?.members?(N=T?.data?.members??[],_=new Map(N.map(s1)),t[8]=T?.data?.members,t[9]=N,t[10]=_):(N=t[9],_=t[10]);const $=_,{filters:D,setFilters:E,layout:P,setLayout:O}=vm(),z=go(s,f);let V;t[11]!==z?(V=ml(z),t[11]=z,t[12]=V):V=t[12];const F=V;let Q;t[13]!==D.project||t[14]!==z?(Q=D.project?gl(D.project,z)?.repo??null:null,t[13]=D.project,t[14]=z,t[15]=Q):Q=t[15];const W=Q,[H]=dl();let Y;t[16]===Symbol.for("react.memo_cache_sentinel")?(Y=new Set,t[16]=Y):Y=t[16];const[G,X]=L.useState(Y);let q;t[17]===Symbol.for("react.memo_cache_sentinel")?(q=C=>X(M=>{const ce=new Set(M);return ce.has(C)?ce.delete(C):ce.add(C),ce}),t[17]=q):q=t[17];const ne=q,ae=C=>X(M=>{const ce=new Set(M);for(const Ee of $e)Ee.status===C&&ce.add(Ee.id);return ce}),te=()=>X(new Set),oe=C=>{E(C),te()},[ue,_e]=L.useState(!1),[Ae,pe]=L.useState(null),{setTaskId:ge}=xu(),{create:ke}=eu(),xe=zt(),{org:Be,locator:Se}=Xe(),Te=Be,ee=za(),me=()=>{ee({to:"/$org/settings/task-board",params:{org:Te.slug}})};let K;t[18]===Symbol.for("react.memo_cache_sentinel")?(K={strict:!1},t[18]=K):K=t[18];const{taskKey:be}=Qr(K),B=Ac(s,be)??null,se=!!be&&!B&&!r,J=B?yi(Te.slug,B):null;let fe;t[19]!==ee||t[20]!==be?(fe=()=>{be&&ee({to:".",params:t1,search:e1,replace:!0})},t[19]=ee,t[20]=be,t[21]=fe):fe=t[21];const ie=fe,Ie=async C=>{const M=crypto.randomUUID(),ce=Po(Te.id).id,Ee=await xe.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:C.id}).then(Jm).catch(Xm),We=xm(C,Ee),Pe={type:"doc",content:[{type:"paragraph",content:[Nd({id:C.id,name:C.title,char:"@",kind:"task",metadata:{title:C.title,description:C.description,context:We}}),{type:"text",text:" "}]}]};gu(sessionStorage,Se,M,Pe);try{await ke({id:M,virtual_mcp_id:ce}),await o.link.mutateAsync({id:C.id,linkThreadId:M})}catch{}ge(M,ce)};let ve;t[22]!==D||t[23]!==z?(ve=C=>Oc(C,D,z),t[22]=D,t[23]=z,t[24]=ve):ve=t[24];const $e=s.filter(ve),Ce=wm(G,$e);let it;t[25]!==H?(it=C=>!Fc.includes(C.status)||H.shownTaskBoardLanes.includes(C.status),t[25]=H,t[26]=it):it=t[26];const tr=$e.filter(it);let ze;t[27]!==D||t[28]!==z||t[29]!==E?(ze=C=>{const M=Hc({repo:C},D.project,z);M!==D.project&&E({...D,project:M})},t[27]=D,t[28]=z,t[29]=E,t[30]=ze):ze=t[30];const je=ze;let Vt;t[31]===Symbol.for("react.memo_cache_sentinel")?(Vt=()=>{pe(null),_e(!0)},t[31]=Vt):Vt=t[31];const sr=Vt;let Lt;t[32]===Symbol.for("react.memo_cache_sentinel")?(Lt=C=>{pe(C),_e(!0)},t[32]=Lt):Lt=t[32];const nr=Lt,rr=C=>{ee({to:".",params:M=>({...M,taskKey:yi(Te.slug,C)}),search:Ym})};let Ct;t[33]===Symbol.for("react.memo_cache_sentinel")?(Ct=()=>{_e(!1),pe(null)},t[33]=Ct):Ct=t[33];const lt=Ct;if(r&&s.length===0){let C;return t[34]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx("div",{className:"flex flex-1 items-center justify-center",children:i.jsx(Tt,{className:"size-5 text-muted-foreground"})}),t[34]=C):C=t[34],C}if(se){let C;return t[35]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(gi,{to:".",params:Zm,search:Qm,replace:!0}),t[35]=C):C=t[35],C}if(J&&J!==be)return i.jsx(gi,{to:".",params:C=>({...C,taskKey:J}),search:Vm,replace:!0});let ot;t[36]!==e?(ot=e("taskBoard.taskBoard.tasksTitle"),t[36]=e,t[37]=ot):ot=t[37];let Je;t[38]!==ot?(Je=i.jsx("h1",{className:"text-xl font-medium text-foreground",children:ot}),t[38]=ot,t[39]=Je):Je=t[39];let ft;t[40]===Symbol.for("react.memo_cache_sentinel")?(ft=i.jsx(Tu,{}),t[40]=ft):ft=t[40];let Nt;t[41]===Symbol.for("react.memo_cache_sentinel")?(Nt=i.jsx(Cu,{}),t[41]=Nt):Nt=t[41];let ct;t[42]!==e?(ct=e("common.taskBoard.listView"),t[42]=e,t[43]=ct):ct=t[43];const qe=P==="board";let ht;t[44]!==O?(ht=()=>O("board"),t[44]=O,t[45]=ht):ht=t[45];let et;t[46]!==e?(et=e("common.taskBoard.boardView"),t[46]=e,t[47]=et):et=t[47];let Le;t[48]!==qe||t[49]!==ht||t[50]!==et?(Le=i.jsx(rl,{active:qe,onClick:ht,icon:kc,label:et}),t[48]=qe,t[49]=ht,t[50]=et,t[51]=Le):Le=t[51];let pt;t[52]===Symbol.for("react.memo_cache_sentinel")?(pt=i.jsx(dr,{size:16}),t[52]=pt):pt=t[52];let U;t[53]!==e?(U=e("taskBoard.taskBoard.newTask"),t[53]=e,t[54]=U):U=t[54];let mt;t[55]!==U?(mt=i.jsxs(de,{size:"sm",onClick:sr,children:[pt,U]}),t[55]=U,t[56]=mt):mt=t[56];const Fe=i.jsxs(i.Fragment,{children:[i.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:[Je,ft,i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.length>0&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"sm:hidden",children:i.jsx(Dc,{filters:D,members:N,tags:l,index:z,onChange:oe,onOpenBoardSettings:me})}),i.jsx("div",{className:"hidden sm:block",children:i.jsx(Rc,{filters:D,members:N,tags:l,index:z,onChange:oe,onOpenBoardSettings:me})})]}),i.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[Nt,i.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[i.jsx(rl,{active:P==="list",onClick:()=>{O("list"),te()},icon:pl,label:ct}),Le]}),mt]})]})]}),s.length===0?i.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:i.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:e("taskBoard.taskBoard.noTasksYet")})}):$e.length===0?i.jsx("div",{className:"mx-auto w-full max-w-[1680px] px-4 pt-6 sm:px-8",children:i.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:[e("taskBoard.taskBoard.noTasksMatch"),i.jsx(de,{variant:"outline",size:"sm",onClick:()=>oe(Ic),children:e("taskBoard.taskBoard.clearFilters")})]})}):P==="board"?i.jsx(i1,{visible:!B,items:$e,members:N,memberByUserId:$,selectedIds:Ce,onToggleSelect:ne,onSelectAllInLane:ae,onOpen:rr,onCreate:nr,onMove:(C,M,ce)=>{const Ee=jl(ce,C.length);C.forEach((We,Pe)=>o.update.mutate({id:We,status:M,sortOrder:Ee[Pe]}))},onAssign:(C,M)=>{p(M)||o.update.mutate({id:C,assigneeId:M},{onError:m})},onPriorityChange:(C,M)=>o.update.mutate({id:C,priority:M}),onTypeChange:(C,M)=>o.update.mutate({id:C,type:M}),onDueDateChange:(C,M)=>o.update.mutate({id:C,dueDate:M}),onAutoFix:C=>{p(De)||o.update.mutate({id:C.id,assigneeId:De},{onError:m})},onRerun:C=>j([C])}):i.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:i.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:tr.map(C=>i.jsx(x1,{item:C,assignee:C.assigneeId?$.get(C.assigneeId):void 0,assignedBy:C.assignedBy?$.get(C.assignedBy):void 0,onOpen:()=>rr(C)},C.id))})})]});let gt;t[57]!==o.create||t[58]!==o.remove||t[59]!==o.update||t[60]!==p||t[61]!==ie||t[62]!==m||t[63]!==B||t[64]!==j||t[65]!==ge||t[66]!==Ie||t[67]!==e||t[68]!==je?(gt=B&&i.jsx(Lp,{item:B,onClose:()=>ie(),isSaving:o.update.isPending,onSubmit:C=>{if(p(C.assigneeId)){ie();return}const{title:M,description:ce,priority:Ee,...We}=C,Pe=Al(B)?{}:{title:M,description:ce,priority:Ee};o.update.mutate({id:B.id,...We,...Pe},{onError:m})},onDelete:()=>{o.remove.mutate(B.id),ie()},onClone:()=>{o.create.mutate({title:e("taskBoard.taskDialog.cloneTitle",{title:B.title}),description:B.description,status:B.status,priority:B.priority,repo:B.repo,dueDate:B.dueDate,tagIds:B.tags.map(Gm)}),je(B.repo??null),Ge.success(e("taskBoard.taskDialog.cloneSuccess")),ie()},onArchive:()=>{o.update.mutate({id:B.id,status:"archived"}),Ge.success(e("taskBoard.taskDialog.archiveSuccess")),ie()},onNewChat:()=>{Ie(B)},onAutoFix:()=>{p(De)||(o.update.mutate({id:B.id,assigneeId:De},{onError:m}),ie())},onRerun:()=>{ie(),j([B])},onOpenPreview:C=>{C.virtualMcpId&&ge(C.threadId,C.virtualMcpId,{panel:"site-editor"})}},B.id),t[57]=o.create,t[58]=o.remove,t[59]=o.update,t[60]=p,t[61]=ie,t[62]=m,t[63]=B,t[64]=j,t[65]=ge,t[66]=Ie,t[67]=e,t[68]=je,t[69]=gt):gt=t[69];const Qt=ue?`new-${Ae??"default"}`:"closed",_t=Ae??void 0;let Re;t[70]!==o.create||t[71]!==p||t[72]!==lt||t[73]!==je?(Re=C=>{if(p(C.assigneeId)){lt();return}o.create.mutate(C),je(C.repo??null),lt()},t[70]=o.create,t[71]=p,t[72]=lt,t[73]=je,t[74]=Re):Re=t[74];let xt;t[75]!==o.create.isPending||t[76]!==W||t[77]!==lt||t[78]!==ue||t[79]!==Qt||t[80]!==_t||t[81]!==Re?(xt=i.jsx(zp,{open:ue,onClose:lt,defaultStatus:_t,defaultRepo:W,isSaving:o.create.isPending,onSubmit:Re},Qt),t[75]=o.create.isPending,t[76]=W,t[77]=lt,t[78]=ue,t[79]=Qt,t[80]=_t,t[81]=Re,t[82]=xt):xt=t[82];let Bt;t[83]!==h?(Bt=i.jsx(Uc,{mode:"link",open:h,onOpenChange:x}),t[83]=h,t[84]=Bt):Bt=t[84];let kt;t[85]===Symbol.for("react.memo_cache_sentinel")?(kt=C=>!C&&b(null),t[85]=kt):kt=t[85];let At;t[86]!==k?(At=i.jsx(dm,{kind:k,onOpenChange:kt}),t[86]=k,t[87]=At):At=t[87];let tt;t[88]!==j?(tt=C=>!C&&j([]),t[88]=j,t[89]=tt):tt=t[89];let Dt;t[90]!==o.rerun.isPending||t[91]!==S||t[92]!==w||t[93]!==tt?(Dt=i.jsx(hm,{items:w,pending:o.rerun.isPending,onOpenChange:tt,onConfirm:S}),t[90]=o.rerun.isPending,t[91]=S,t[92]=w,t[93]=tt,t[94]=Dt):Dt=t[94];let bt;return t[95]!==o.removeMany||t[96]!==o.update||t[97]!==p||t[98]!==te||t[99]!==s||t[100]!==N||t[101]!==m||t[102]!==B||t[103]!==F||t[104]!==Ce||t[105]!==j?(bt=Ce.size>0&&!B&&i.jsx(a1,{count:Ce.size,members:N,projectEntries:F,onSetRepo:C=>{for(const M of Ce)o.update.mutate({id:M,repo:C});te()},onMoveTo:C=>{for(const M of Ce)o.update.mutate({id:M,status:C});te()},onSetPriority:C=>{for(const M of Ce)o.update.mutate({id:M,priority:C});te()},onAddTag:C=>{for(const M of Ce){const ce=s.find(We=>We.id===M);if(!ce)continue;const Ee=ce.tags.map(Wm);Ee.includes(C)||o.update.mutate({id:M,tagIds:[...Ee,C]})}te()},onAssign:C=>{if(!p(C)){for(const M of Ce)o.update.mutate({id:M,assigneeId:C},{onError:m});te()}},onSetDueDate:C=>{const M=mi(C);for(const ce of Ce)o.update.mutate({id:ce,dueDate:M});te()},onAutoFix:Ce.size>0&&Array.from(Ce).every(C=>{const M=s.find(ce=>ce.id===C);return M&&(M.status==="triage"||M.status==="todo")&&M.assigneeId!==De})?()=>{if(!p(De)){for(const C of Ce)o.update.mutate({id:C,assigneeId:De},{onError:m});te()}}:void 0,onRerun:(()=>{const C=Array.from(Ce).flatMap(M=>{const ce=s.find(Ee=>Ee.id===M);return ce?[ce]:[]});return C.length===Ce.size&&C.every(Km)?()=>j(C):void 0})(),onDelete:()=>{o.removeMany.mutate(Array.from(Ce)),te()},onClear:te}),t[95]=o.removeMany,t[96]=o.update,t[97]=p,t[98]=te,t[99]=s,t[100]=N,t[101]=m,t[102]=B,t[103]=F,t[104]=Ce,t[105]=j,t[106]=bt):bt=t[106],i.jsxs("div",{ref:y,className:"relative flex min-h-0 flex-1 flex-col",children:[i.jsx("div",{className:I("flex min-h-0 flex-1 flex-col",B&&"hidden"),children:Fe}),gt,xt,Bt,At,Dt,bt]})}function Km(t){return t.assigneeId===De&&t.status!=="done"}function Wm(t){return t.id}function Gm(t){return t.id}function Vm(t){return t}function Qm(t){return t}function Zm(t){return{...t,taskKey:void 0}}function Ym(t){return t}function Xm(){return[]}function Jm(t){return t.prs}function e1(t){return t}function t1(t){return{...t,taskKey:void 0}}function s1(t){return[t.userId,t]}function n1(t){return t.path}function r1(t){return t.usable}function a1(t){const e=R.c(104),{count:s,members:r,projectEntries:n,onSetRepo:a,onMoveTo:l,onSetPriority:o,onAddTag:c,onAssign:d,onSetDueDate:u,onAutoFix:f,onRerun:h,onDelete:x,onClear:g}=t,p=Z(),{data:k}=Ka();let b;e[0]!==k?(b=k===void 0?[]:k,e[0]=k,e[1]=b):b=e[1];const m=b,y=Wa("delivery_lanes_enabled");let v;e[2]!==s||e[3]!==p?(v=p("taskBoard.taskBoard.selectedCount",{count:s}),e[2]=s,e[3]=p,e[4]=v):v=e[4];let w;e[5]!==v?(w=i.jsx("span",{className:"pl-1 text-sm font-medium text-foreground",children:v}),e[5]=v,e[6]=w):w=e[6];let j;e[7]!==p?(j=p("taskBoard.taskBoard.actionsButton"),e[7]=p,e[8]=j):j=e[8];let S;e[9]!==j?(S=i.jsx(Ve,{asChild:!0,children:i.jsx("button",{type:"button",className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:j})}),e[9]=j,e[10]=S):S=e[10];let T;e[11]!==p?(T=p("taskBoard.taskBoard.moveToButton"),e[11]=p,e[12]=T):T=e[12];let N;e[13]!==T?(N=i.jsx(qn,{children:T}),e[13]=T,e[14]=N):N=e[14];let _;if(e[15]!==y||e[16]!==l||e[17]!==p){let ee;e[19]!==l||e[20]!==p?(ee=me=>i.jsx(we,{onClick:()=>l(me),children:ur(me,p).label},me),e[19]=l,e[20]=p,e[21]=ee):ee=e[21],_=yl(y).map(ee),e[15]=y,e[16]=l,e[17]=p,e[18]=_}else _=e[18];let $;e[22]!==_?($=i.jsx(Un,{children:_}),e[22]=_,e[23]=$):$=e[23];let D;e[24]!==$||e[25]!==N?(D=i.jsxs(Hn,{children:[N,$]}),e[24]=$,e[25]=N,e[26]=D):D=e[26];let E;e[27]!==p?(E=p("taskBoard.taskBoard.changePriorityButton"),e[27]=p,e[28]=E):E=e[28];let P;e[29]!==E?(P=i.jsx(qn,{children:E}),e[29]=E,e[30]=P):P=e[30];let O;e[31]!==o||e[32]!==p?(O=Jr.map(ee=>i.jsxs(we,{onClick:()=>o(ee),children:[i.jsx("span",{className:I("size-2 rounded-full",Ye[ee].dotClassName)}),p(Ye[ee].labelKey)]},ee)),e[31]=o,e[32]=p,e[33]=O):O=e[33];let z;e[34]!==O?(z=i.jsx(Un,{children:O}),e[34]=O,e[35]=z):z=e[35];let V;e[36]!==P||e[37]!==z?(V=i.jsxs(Hn,{children:[P,z]}),e[36]=P,e[37]=z,e[38]=V):V=e[38];let F;e[39]!==p?(F=p("taskBoard.taskBoard.assignButton"),e[39]=p,e[40]=F):F=e[40];let Q;e[41]!==F?(Q=i.jsx(qn,{children:F}),e[41]=F,e[42]=Q):Q=e[42];let W;e[43]!==r||e[44]!==d?(W=i.jsx(Un,{className:"w-56 p-0",children:i.jsx(pi,{members:r,onSelect:d})}),e[43]=r,e[44]=d,e[45]=W):W=e[45];let H;e[46]!==Q||e[47]!==W?(H=i.jsxs(Hn,{children:[Q,W]}),e[46]=Q,e[47]=W,e[48]=H):H=e[48];let Y;e[49]!==a||e[50]!==n||e[51]!==p?(Y=n.length>0&&i.jsxs(Hn,{children:[i.jsx(qn,{children:p("taskBoard.taskBoard.assignProjectButton")}),i.jsxs(Un,{className:"w-64",children:[i.jsx(we,{onClick:()=>a(null),children:p("taskBoard.taskDialog.noProject")}),n.map(ee=>i.jsx(we,{className:"gap-2",onClick:()=>a(ee.repo),children:i.jsx(vl,{entry:ee})},ee.id))]})]}),e[49]=a,e[50]=n,e[51]=p,e[52]=Y):Y=e[52];let G;e[53]!==p?(G=p("taskBoard.taskBoard.dueDateButton"),e[53]=p,e[54]=G):G=e[54];let X;e[55]!==G?(X=i.jsx(qn,{children:G}),e[55]=G,e[56]=X):X=e[56];let q;e[57]!==u?(q=i.jsx(Un,{className:"w-auto p-0",children:i.jsx(Ga,{mode:"single",onSelect:ee=>ee&&u(ee),initialFocus:!0})}),e[57]=u,e[58]=q):q=e[58];let ne;e[59]!==X||e[60]!==q?(ne=i.jsxs(Hn,{children:[X,q]}),e[59]=X,e[60]=q,e[61]=ne):ne=e[61];let ae;e[62]!==c||e[63]!==m||e[64]!==p?(ae=m.length>0&&i.jsxs(Hn,{children:[i.jsx(qn,{children:p("taskBoard.taskBoard.addTagButton")}),i.jsx(Un,{children:m.map(ee=>i.jsxs(we,{onClick:()=>c(ee.id),children:[i.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:mr(ee.color)}}),ee.name]},ee.id))})]}),e[62]=c,e[63]=m,e[64]=p,e[65]=ae):ae=e[65];let te;e[66]===Symbol.for("react.memo_cache_sentinel")?(te=i.jsx(Ha,{}),e[66]=te):te=e[66];let oe;e[67]!==p?(oe=p("taskBoard.taskBoard.deleteSelectedButton"),e[67]=p,e[68]=oe):oe=e[68];let ue;e[69]!==x||e[70]!==oe?(ue=i.jsx(we,{variant:"destructive",onClick:x,children:oe}),e[69]=x,e[70]=oe,e[71]=ue):ue=e[71];let _e;e[72]!==D||e[73]!==V||e[74]!==H||e[75]!==Y||e[76]!==ne||e[77]!==ae||e[78]!==ue?(_e=i.jsxs(Qe,{align:"center",side:"top",children:[D,V,H,Y,ne,ae,te,ue]}),e[72]=D,e[73]=V,e[74]=H,e[75]=Y,e[76]=ne,e[77]=ae,e[78]=ue,e[79]=_e):_e=e[79];let Ae;e[80]!==_e||e[81]!==S?(Ae=i.jsxs(Ze,{children:[S,_e]}),e[80]=_e,e[81]=S,e[82]=Ae):Ae=e[82];let pe;e[83]!==f||e[84]!==p?(pe=f&&i.jsxs("button",{type:"button",onClick:f,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[i.jsx(Pa,{size:14}),p("taskBoard.taskBoard.autoFix")]}),e[83]=f,e[84]=p,e[85]=pe):pe=e[85];let ge;e[86]!==h||e[87]!==p?(ge=h&&i.jsxs("button",{type:"button",onClick:h,className:"flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[i.jsx(Zr,{size:14}),p("taskBoard.taskBoard.rerun")]}),e[86]=h,e[87]=p,e[88]=ge):ge=e[88];let ke;e[89]!==p?(ke=p("taskBoard.taskBoard.clearSelectionButton"),e[89]=p,e[90]=ke):ke=e[90];let xe;e[91]!==p?(xe=p("taskBoard.taskBoard.clearSelectionButton"),e[91]=p,e[92]=xe):xe=e[92];let Be;e[93]===Symbol.for("react.memo_cache_sentinel")?(Be=i.jsx(Yn,{size:16}),e[93]=Be):Be=e[93];let Se;e[94]!==g||e[95]!==ke||e[96]!==xe?(Se=i.jsx("button",{type:"button","aria-label":ke,title:xe,onClick:g,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:Be}),e[94]=g,e[95]=ke,e[96]=xe,e[97]=Se):Se=e[97];let Te;return e[98]!==Ae||e[99]!==pe||e[100]!==ge||e[101]!==Se||e[102]!==w?(Te=i.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-6 z-20 flex justify-center",children:i.jsxs("div",{className:"pointer-events-auto flex items-center gap-2 rounded-full bg-background px-3 py-2 card-shadow",children:[w,Ae,pe,ge,Se]})}),e[98]=Ae,e[99]=pe,e[100]=ge,e[101]=Se,e[102]=w,e[103]=Te):Te=e[103],Te}function rl(t){const e=R.c(14),{active:s,onClick:r,icon:n,label:a}=t,l=Z();let o;e[0]!==a||e[1]!==l?(o=l("taskBoard.taskBoard.layoutViewAriaLabel",{label:a}),e[0]=a,e[1]=l,e[2]=o):o=e[2];const c=s?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[3]!==c?(d=I("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",c),e[3]=c,e[4]=d):d=e[4];let u;e[5]!==n?(u=i.jsx(n,{size:14}),e[5]=n,e[6]=u):u=e[6];let f;return e[7]!==s||e[8]!==a||e[9]!==r||e[10]!==o||e[11]!==d||e[12]!==u?(f=i.jsxs("button",{type:"button",onClick:r,"aria-label":o,"aria-pressed":s,className:d,children:[u,a]}),e[7]=s,e[8]=a,e[9]=r,e[10]=o,e[11]=d,e[12]=u,e[13]=f):f=e[13],f}function al(t,e){return t.sortOrder-e.sortOrder}function i1(t){const e=R.c(21),{items:s,members:r,memberByUserId:n,selectedIds:a,onToggleSelect:l,onSelectAllInLane:o,onOpen:c,onCreate:d,onMove:u,onAutoFix:f,onRerun:h,onAssign:x,onPriorityChange:g,onTypeChange:p,onDueDateChange:k,visible:b}=t,m=Wa("delivery_lanes_enabled"),[y,v]=L.useState(null);let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=[],e[0]=w):w=e[0];const[j,S]=L.useState(w);let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=new Map,e[1]=T):T=e[1];const[N,_]=L.useState(T),[$,D]=dl(),E=L.useRef(null);let P;e[2]===Symbol.for("react.memo_cache_sentinel")?(P=B=>{if(E.current=B,!B)return;const se=J=>{if(J.deltaX!==0||J.deltaY===0||B.scrollWidth<=B.clientWidth)return;for(let ie=J.target;ie&&ie!==B;ie=ie.parentElement)if(ie.hasAttribute("data-lane-scroll"))return;J.preventDefault();const fe=J.deltaMode===1?16:J.deltaMode===2?B.clientWidth:1;B.scrollLeft=B.scrollLeft+J.deltaY*fe};return B.addEventListener("wheel",se,{passive:!1}),()=>{E.current=null,B.removeEventListener("wheel",se)}},e[2]=P):P=e[2];const O=P,z=N.size>0?s.map(B=>{const se=N.get(B.id);return se?{...B,...se}:B}):s;if(N.size>0&&!y){const B=[...N].filter(se=>{const[J,fe]=se,ie=s.find(Ie=>Ie.id===J);return ie?.status===fe.status&&ie.sortOrder===fe.sortOrder});B.length>0&&_(se=>{const J=new Map(se);for(const[fe]of B)J.delete(fe);return J})}gm(E,z.map(u1).join(","),y===null,b);const V=B=>z.filter(se=>se.status===B).sort(al),{lanes:F,hidden:Q,hideable:W}=$c({deliveryEnabled:m,shownLanes:$.shownTaskBoardLanes,occupied:z.map(d1)});let H;e[3]!==D?(H=(B,se)=>D(J=>({...J,shownTaskBoardLanes:se?[...J.shownTaskBoardLanes,B]:J.shownTaskBoardLanes.filter(fe=>fe!==B)})),e[3]=D,e[4]=H):H=e[4];const Y=H,G=B=>Pc({overId:B,statusOf:se=>z.find(J=>J.id===se)?.status});let X;e[5]!==a?(X=B=>a.has(B)&&a.size>1?[B,...Array.from(a).filter(se=>se!==B)]:[B],e[5]=a,e[6]=X):X=e[6];const q=X;let ne;e[7]===Symbol.for("react.memo_cache_sentinel")?(ne=(B,se,J)=>{const fe=jl(J,B.length);_(ie=>{const Ie=new Map(ie);return B.forEach((ve,$e)=>Ie.set(ve,{status:se,sortOrder:fe[$e]})),Ie})},e[7]=ne):ne=e[7];const ae=ne;let te;e[8]===Symbol.for("react.memo_cache_sentinel")?(te={activationConstraint:{distance:4}},e[8]=te):te=e[8];let oe;e[9]===Symbol.for("react.memo_cache_sentinel")?(oe={coordinateGetter:ec},e[9]=oe):oe=e[9];const ue=Wo(ki(Vo,te),ki(Go,oe)),_e=B=>{const se=String(B.active.id),J=G(B.over?.id),fe=z.find($e=>$e.id===se);if(!J||!fe||fe.status===J)return;const ie=q(se),Ie=String(B.over?.id??""),ve=V(J).filter($e=>!ie.includes($e.id));ae(ie,J,wi(ve,Ie.startsWith(Ba)?null:Ie,se))},Ae=B=>{const se=String(B.active.id);v(null);const J=G(B.over?.id)??z.find(je=>je.id===se)?.status;if(!J){_(new Map);return}const fe=q(se),ie=V(J),Ie=String(B.over?.id??""),ve=ie.findIndex(je=>je.id===se),$e=Ie.startsWith(Ba)?ie.length-1:ie.findIndex(je=>je.id===Ie),Ce=ve===-1||$e===-1?ie:Xo(ie,ve,$e);if(s.filter(je=>je.status===J).sort(al).map(c1).join()===Ce.map(o1).join()){_(new Map);return}const tr=Ce.slice(Ce.findIndex(je=>je.id===se)+1).find(je=>!fe.includes(je.id)),ze=wi(ie.filter(je=>!fe.includes(je.id)),tr?.id??null,se);ae(fe,J,ze),S(fe),u(fe,J,ze)},pe=y?z.find(B=>B.id===y):null;let ge;e[10]!==y||e[11]!==q?(ge=y?q(y):[],e[10]=y,e[11]=q,e[12]=ge):ge=e[12];const ke=ge;let xe;e[13]===Symbol.for("react.memo_cache_sentinel")?(xe=B=>{v(String(B.active.id)),S([])},e[13]=xe):xe=e[13];let Be;e[14]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>{v(null),_(new Map)},e[14]=Be):Be=e[14];const Se=ll.createPortal,Te=Qo,ee=null,me=pe&&i.jsxs("div",{className:"relative w-[292px] cursor-grabbing",children:[i.jsx(No,{item:pe,assignee:pe.assigneeId?n.get(pe.assigneeId):void 0,assignedBy:pe.assignedBy?n.get(pe.assignedBy):void 0,selected:a.has(pe.id),onOpen:l1,className:"w-full shadow-lg"}),ke.length>1&&i.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:ke.length})]});let K;e[15]!==Te||e[16]!==me?(K=i.jsx(Te,{dropAnimation:ee,children:me}),e[15]=Te,e[16]=me,e[17]=K):K=e[17];let be;return e[18]!==Se||e[19]!==K?(be=Se(K,document.body),e[18]=Se,e[19]=K,e[20]=be):be=e[20],i.jsxs(Zo,{sensors:ue,collisionDetection:Yo,onDragStart:xe,onDragOver:_e,onDragEnd:Ae,onDragCancel:Be,children:[i.jsx("div",{ref:O,className:"min-h-0 flex-1 overflow-x-auto",children:i.jsxs("div",{className:"mx-auto flex h-full w-full max-w-[1680px] gap-3 px-4 pt-6 sm:px-8",children:[F.map(B=>i.jsx(h1,{status:B,items:V(B),members:r,memberByUserId:n,selectedIds:a,isTarget:pe?.status===B,hiddenIds:ke,landedIds:j,onToggleSelect:l,onSelectAllInLane:o,onOpen:c,onCreate:d,onAutoFix:f,onRerun:h,onAssign:x,onPriorityChange:g,onTypeChange:p,onDueDateChange:k,onHide:W.includes(B)?()=>Y(B,!1):void 0},B)),Q.length>0&&i.jsx(f1,{statuses:Q,countOf:B=>V(B).length,onShow:B=>Y(B,!0)})]})}),be]})}function l1(){}function o1(t){return t.id}function c1(t){return t.id}function d1(t){return t.status}function u1(t){return`${t.id}:${t.status}`}function f1(t){const e=R.c(19),{statuses:s,countOf:r,onShow:n}=t,a=Z();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(Fa,{size:14,className:"shrink-0 transition-transform group-open:rotate-90"}),e[0]=l):l=e[0];let o;e[1]!==a?(o=a("taskBoard.taskBoard.hiddenColumns"),e[1]=a,e[2]=o):o=e[2];let c;e[3]!==o?(c=i.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:[l,o]}),e[3]=o,e[4]=c):c=e[4];let d;if(e[5]!==r||e[6]!==n||e[7]!==s||e[8]!==a){let h;e[10]!==r||e[11]!==n||e[12]!==a?(h=x=>{const{label:g,visual:p}=ur(x,a),k=p.icon;return i.jsxs("div",{"data-hidden-lane":x,className:"flex items-center gap-2 rounded-xl bg-background px-3 py-2.5 card-shadow",children:[i.jsx(k,{size:15,className:I("shrink-0",p.iconClassName)}),i.jsx("span",{className:"text-sm font-medium text-foreground",children:g}),i.jsx("span",{className:"ml-auto text-[11px] font-medium text-muted-foreground",children:r(x)}),i.jsxs(Ze,{children:[i.jsx(Ve,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":a("taskBoard.taskBoard.laneMenuAriaLabel",{lane:g}),className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:i.jsx(Zn,{size:15})})}),i.jsx(Qe,{align:"end",children:i.jsx(we,{onClick:()=>n(x),children:a("taskBoard.taskBoard.showColumn")})})]})]},x)},e[10]=r,e[11]=n,e[12]=a,e[13]=h):h=e[13],d=s.map(h),e[5]=r,e[6]=n,e[7]=s,e[8]=a,e[9]=d}else d=e[9];let u;e[14]!==d?(u=i.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]!==c||e[17]!==u?(f=i.jsxs("details",{className:"group h-full w-[300px] shrink-0 py-1",children:[c,u]}),e[16]=c,e[17]=u,e[18]=f):f=e[18],f}function h1(t){const e=R.c(100),{status:s,items:r,members:n,memberByUserId:a,selectedIds:l,isTarget:o,hiddenIds:c,landedIds:d,onToggleSelect:u,onSelectAllInLane:f,onOpen:h,onCreate:x,onAutoFix:g,onRerun:p,onAssign:k,onPriorityChange:b,onTypeChange:m,onDueDateChange:y,onHide:v}=t,w=Z(),{label:j,visual:S}=ur(s,w),T=S.icon,N=`${Ba}${s}`;let _;e[0]!==N?(_={id:N},e[0]=N,e[1]=_):_=e[1];const{setNodeRef:$}=Jo(_),D=o&&"bg-muted/50";let E;e[2]!==D?(E=I("flex h-full w-[300px] shrink-0 flex-col rounded-xl py-1 transition-colors",D),e[2]=D,e[3]=E):E=e[3];const P=o?"bg-muted":"bg-background";let O;e[4]!==P?(O=I("sticky top-0 z-10 flex items-center gap-2 px-2 py-1.5 transition-colors",P),e[4]=P,e[5]=O):O=e[5];const z=15,V=I("shrink-0",S.iconClassName.replace(/\banimate-\S+\b/g,"").trim());let F;e[6]!==T||e[7]!==V?(F=i.jsx(T,{size:z,className:V}),e[6]=T,e[7]=V,e[8]=F):F=e[8];let Q;e[9]!==j?(Q=i.jsx("span",{className:"text-sm font-medium text-foreground",children:j}),e[9]=j,e[10]=Q):Q=e[10];let W;e[11]!==r.length?(W=i.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:r.length}),e[11]=r.length,e[12]=W):W=e[12];let H;e[13]!==j||e[14]!==w?(H=w("taskBoard.taskBoard.laneMenuAriaLabel",{lane:j}),e[13]=j,e[14]=w,e[15]=H):H=e[15];let Y;e[16]===Symbol.for("react.memo_cache_sentinel")?(Y=i.jsx(Zn,{size:15}),e[16]=Y):Y=e[16];let G;e[17]!==H?(G=i.jsx(Ve,{asChild:!0,children:i.jsx("button",{type:"button","aria-label":H,className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:Y})}),e[17]=H,e[18]=G):G=e[18];let X;e[19]!==f||e[20]!==s?(X=()=>f(s),e[19]=f,e[20]=s,e[21]=X):X=e[21];let q;e[22]!==w?(q=w("taskBoard.taskBoard.selectAllInLane"),e[22]=w,e[23]=q):q=e[23];let ne;e[24]!==X||e[25]!==q?(ne=i.jsx(we,{onClick:X,children:q}),e[24]=X,e[25]=q,e[26]=ne):ne=e[26];let ae;e[27]!==v||e[28]!==w?(ae=v&&i.jsx(we,{onClick:v,children:w("taskBoard.taskBoard.hideColumn")}),e[27]=v,e[28]=w,e[29]=ae):ae=e[29];let te;e[30]!==ne||e[31]!==ae?(te=i.jsxs(Qe,{align:"end",children:[ne,ae]}),e[30]=ne,e[31]=ae,e[32]=te):te=e[32];let oe;e[33]!==G||e[34]!==te?(oe=i.jsxs(Ze,{children:[G,te]}),e[33]=G,e[34]=te,e[35]=oe):oe=e[35];let ue;e[36]!==j||e[37]!==w?(ue=w("taskBoard.taskBoard.newTaskInLaneAriaLabel",{lane:j}),e[36]=j,e[37]=w,e[38]=ue):ue=e[38];let _e;e[39]!==j||e[40]!==w?(_e=w("taskBoard.taskBoard.newTaskInLaneTitle",{lane:j}),e[39]=j,e[40]=w,e[41]=_e):_e=e[41];let Ae;e[42]!==x||e[43]!==s?(Ae=()=>x(s),e[42]=x,e[43]=s,e[44]=Ae):Ae=e[44];let pe;e[45]===Symbol.for("react.memo_cache_sentinel")?(pe=i.jsx(dr,{size:15}),e[45]=pe):pe=e[45];let ge;e[46]!==ue||e[47]!==_e||e[48]!==Ae?(ge=i.jsx("button",{type:"button","aria-label":ue,title:_e,onClick:Ae,className:"flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:pe}),e[46]=ue,e[47]=_e,e[48]=Ae,e[49]=ge):ge=e[49];let ke;e[50]!==Q||e[51]!==W||e[52]!==oe||e[53]!==ge||e[54]!==O||e[55]!==F?(ke=i.jsxs("div",{className:O,children:[F,Q,W,oe,ge]}),e[50]=Q,e[51]=W,e[52]=oe,e[53]=ge,e[54]=O,e[55]=F,e[56]=ke):ke=e[56];let xe;e[57]!==r?(xe=r.map(p1),e[57]=r,e[58]=xe):xe=e[58];let Be;if(e[59]!==c||e[60]!==r||e[61]!==d||e[62]!==a||e[63]!==n||e[64]!==k||e[65]!==g||e[66]!==y||e[67]!==h||e[68]!==b||e[69]!==p||e[70]!==u||e[71]!==m||e[72]!==l){let me;e[74]!==c||e[75]!==d||e[76]!==a||e[77]!==n||e[78]!==k||e[79]!==g||e[80]!==y||e[81]!==h||e[82]!==b||e[83]!==p||e[84]!==u||e[85]!==m||e[86]!==l?(me=K=>i.jsx(m1,{item:K,assignee:K.assigneeId?a.get(K.assigneeId):void 0,assignedBy:K.assignedBy?a.get(K.assignedBy):void 0,members:n,selected:l.has(K.id),hidden:c.includes(K.id),landed:d.includes(K.id),onToggleSelect:()=>u(K.id),onOpen:()=>h(K),onAutoFix:g?()=>g(K):void 0,onRerun:p?()=>p(K):void 0,onAssign:k?be=>k(K.id,be):void 0,onPriorityChange:b?be=>b(K.id,be):void 0,onTypeChange:m?be=>m(K.id,be):void 0,onDueDateChange:y?be=>y(K.id,be):void 0},K.id),e[74]=c,e[75]=d,e[76]=a,e[77]=n,e[78]=k,e[79]=g,e[80]=y,e[81]=h,e[82]=b,e[83]=p,e[84]=u,e[85]=m,e[86]=l,e[87]=me):me=e[87],Be=r.map(me),e[59]=c,e[60]=r,e[61]=d,e[62]=a,e[63]=n,e[64]=k,e[65]=g,e[66]=y,e[67]=h,e[68]=b,e[69]=p,e[70]=u,e[71]=m,e[72]=l,e[73]=Be}else Be=e[73];let Se;e[88]!==xe||e[89]!==Be?(Se=i.jsx(tc,{items:xe,strategy:sc,children:Be}),e[88]=xe,e[89]=Be,e[90]=Se):Se=e[90];let Te;e[91]!==$||e[92]!==s||e[93]!==Se?(Te=i.jsx("div",{ref:$,"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:Se}),e[91]=$,e[92]=s,e[93]=Se,e[94]=Te):Te=e[94];let ee;return e[95]!==s||e[96]!==ke||e[97]!==Te||e[98]!==E?(ee=i.jsxs("div",{"data-lane":s,className:E,children:[ke,Te]}),e[95]=s,e[96]=ke,e[97]=Te,e[98]=E,e[99]=ee):ee=e[99],ee}function p1(t){return t.id}function m1(t){const e=R.c(29);let s,r,n,a;e[0]!==t?({item:r,hidden:s,landed:n,...a}=t,e[0]=t,e[1]=s,e[2]=r,e[3]=n,e[4]=a):(s=e[1],r=e[2],n=e[3],a=e[4]);let l;e[5]!==r.id?(l={id:r.id},e[5]=r.id,e[6]=l):l=e[6];const{attributes:o,listeners:c,setNodeRef:d,transform:u,transition:f,isDragging:h}=nc(l),x=r.id,g=r.status;let p;e[7]!==o||e[8]!==c?(p={attributes:o,listeners:c},e[7]=o,e[8]=c,e[9]=p):p=e[9];const k=n&&"animate-card-land";let b;e[10]!==k?(b=I("w-full",k),e[10]=k,e[11]=b):b=e[11];let m;e[12]!==u?(m=rc.Translate.toString(u),e[12]=u,e[13]=m):m=e[13];const y=h||s?0:void 0;let v;e[14]!==m||e[15]!==y||e[16]!==f?(v={transform:m,transition:f,opacity:y},e[14]=m,e[15]=y,e[16]=f,e[17]=v):v=e[17];let w;e[18]!==r||e[19]!==a||e[20]!==d||e[21]!==p||e[22]!==b||e[23]!==v?(w=i.jsx(No,{...a,item:r,dragRef:d,bindings:p,className:b,style:v}),e[18]=r,e[19]=a,e[20]=d,e[21]=p,e[22]=b,e[23]=v,e[24]=w):w=e[24];let j;return e[25]!==r.id||e[26]!==r.status||e[27]!==w?(j=i.jsx("div",{className:"flex","data-flip-id":x,"data-flip-lane":g,children:w}),e[25]=r.id,e[26]=r.status,e[27]=w,e[28]=j):j=e[28],j}function No(t){const e=R.c(71),{item:s,assignee:r,assignedBy:n,members:a,selected:l,className:o,dragRef:c,bindings:d,style:u,onToggleSelect:f,onOpen:h,onAutoFix:x,onRerun:g,onAssign:p,onPriorityChange:k,onTypeChange:b,onDueDateChange:m}=t,y=Z(),v=qm(s);let w;e[0]!==s?(w=zc(s),e[0]=s,e[1]=w):w=e[1];const j=w;let S,T,N,_,$,D,E,P,O,z,V,F;if(e[2]!==d?.attributes||e[3]!==d?.listeners||e[4]!==o||e[5]!==c||e[6]!==s||e[7]!==x||e[8]!==h||e[9]!==g||e[10]!==f||e[11]!==j||e[12]!==l||e[13]!==u||e[14]!==y){T=Lc(s)?y("taskBoard.taskBoard.blockedBadgeTitle"):null;const te=x&&(s.status==="triage"||s.status==="todo")&&s.assigneeId!==De,oe=g&&!te&&s.assigneeId===De&&s.status!=="done";S=te?{icon:Pa,label:y("taskBoard.taskBoard.autoFix"),onClick:x}:oe?{icon:Zr,label:y("taskBoard.taskBoard.rerun"),onClick:g}:null,P="button",O=c,z=u,V=d?.attributes,F=d?.listeners,e[27]!==h||e[28]!==f?(N=ue=>{ue.shiftKey&&f?f():h()},e[27]=h,e[28]=f,e[29]=N):N=e[29],_=I("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",T?"bg-warning/10 hover:bg-warning/15":"bg-card hover:bg-accent/60",j==="failed"?"card-ring-destructive":T&&"card-ring-warning",l&&"bg-accent",o),E="flex items-start gap-2",D="relative min-w-0 flex-1 text-[14px] font-[450] leading-snug",$=I("block text-foreground line-clamp-2",S&&"group-hover:fade-text-end"),e[2]=d?.attributes,e[3]=d?.listeners,e[4]=o,e[5]=c,e[6]=s,e[7]=x,e[8]=h,e[9]=g,e[10]=f,e[11]=j,e[12]=l,e[13]=u,e[14]=y,e[15]=S,e[16]=T,e[17]=N,e[18]=_,e[19]=$,e[20]=D,e[21]=E,e[22]=P,e[23]=O,e[24]=z,e[25]=V,e[26]=F}else S=e[15],T=e[16],N=e[17],_=e[18],$=e[19],D=e[20],E=e[21],P=e[22],O=e[23],z=e[24],V=e[25],F=e[26];let Q;e[30]!==s.title||e[31]!==$?(Q=i.jsx("span",{className:$,children:s.title}),e[30]=s.title,e[31]=$,e[32]=Q):Q=e[32];let W;e[33]!==S?(W=S&&i.jsx(Mm,{action:S}),e[33]=S,e[34]=W):W=e[34];let H;e[35]!==Q||e[36]!==W||e[37]!==D?(H=i.jsxs("div",{className:D,children:[Q,W]}),e[35]=Q,e[36]=W,e[37]=D,e[38]=H):H=e[38];let Y;e[39]!==T?(Y=T&&i.jsx("span",{className:"sr-only",children:T}),e[39]=T,e[40]=Y):Y=e[40];let G;e[41]!==j?(G=j&&i.jsx(Hm,{state:j}),e[41]=j,e[42]=G):G=e[42];let X;e[43]!==H||e[44]!==Y||e[45]!==G||e[46]!==E?(X=i.jsxs("div",{className:E,children:[H,Y,G]}),e[43]=H,e[44]=Y,e[45]=G,e[46]=E,e[47]=X):X=e[47];let q;e[48]!==s.tags?(q=s.tags.length>0&&i.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5",children:[s.tags.slice(0,Na).map(g1),s.tags.length>Na&&i.jsxs("span",{className:Gt,children:["+",s.tags.length-Na]})]}),e[48]=s.tags,e[49]=q):q=e[49];let ne;e[50]!==n||e[51]!==r||e[52]!==v||e[53]!==s||e[54]!==a||e[55]!==p||e[56]!==m||e[57]!==k||e[58]!==b?(ne=i.jsx(Lm,{item:s,checks:v,assignee:r,assignedBy:n,members:a,onAssign:p,onPriorityChange:k,onTypeChange:b,onDueDateChange:m}),e[50]=n,e[51]=r,e[52]=v,e[53]=s,e[54]=a,e[55]=p,e[56]=m,e[57]=k,e[58]=b,e[59]=ne):ne=e[59];let ae;return e[60]!==N||e[61]!==_||e[62]!==X||e[63]!==q||e[64]!==ne||e[65]!==P||e[66]!==O||e[67]!==z||e[68]!==V||e[69]!==F?(ae=i.jsxs("button",{type:P,ref:O,style:z,...V,...F,onClick:N,className:_,children:[X,q,ne]}),e[60]=N,e[61]=_,e[62]=X,e[63]=q,e[64]=ne,e[65]=P,e[66]=O,e[67]=z,e[68]=V,e[69]=F,e[70]=ae):ae=e[70],ae}function g1(t){return i.jsx(To,{tag:t},t.id)}function x1(t){const e=R.c(38),{item:s,assignee:r,assignedBy:n,onOpen:a}=t;let l;e[0]!==s.status?(l=_a(s.status),e[0]=s.status,e[1]=l):l=e[1];const o=l.icon;let c;e[2]!==s?(c=I("shrink-0",bl(s)),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==o||e[5]!==c?(d=i.jsx(o,{size:16,className:c}),e[4]=o,e[5]=c,e[6]=d):d=e[6];let u;e[7]!==s.title?(u=i.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=Ec(s)&&i.jsx(Sm,{}),e[9]=s,e[10]=f):f=e[10];let h;e[11]!==s?(h=Mc(s)&&i.jsx(Tm,{}),e[11]=s,e[12]=h):h=e[12];let x;e[13]!==s.priority?(x=s.priority!=="none"&&i.jsx("span",{className:"hidden sm:inline-flex",children:i.jsx(Pm,{priority:s.priority})}),e[13]=s.priority,e[14]=x):x=e[14];let g;e[15]!==s.dueDate?(g=s.dueDate&&i.jsx("span",{className:"hidden sm:inline-flex",children:i.jsx(Om,{iso:s.dueDate})}),e[15]=s.dueDate,e[16]=g):g=e[16];let p;e[17]!==s.tags?(p=s.tags.length>0&&i.jsxs("span",{className:"hidden items-center gap-1.5 sm:inline-flex",children:[s.tags.slice(0,2).map(k1),s.tags.length>2&&i.jsxs("span",{className:Gt,children:["+",s.tags.length-2]})]}),e[17]=s.tags,e[18]=p):p=e[18];let k;e[19]!==n||e[20]!==r||e[21]!==s?(k=i.jsx(Co,{item:s,assignee:r,assignedBy:n}),e[19]=n,e[20]=r,e[21]=s,e[22]=k):k=e[22];let b;e[23]!==s.createdAt?(b=Ua(new Date(s.createdAt)),e[23]=s.createdAt,e[24]=b):b=e[24];let m;e[25]!==b?(m=i.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:b}),e[25]=b,e[26]=m):m=e[26];let y;return e[27]!==a||e[28]!==k||e[29]!==m||e[30]!==d||e[31]!==u||e[32]!==f||e[33]!==h||e[34]!==x||e[35]!==g||e[36]!==p?(y=i.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,g,p,k,m]}),e[27]=a,e[28]=k,e[29]=m,e[30]=d,e[31]=u,e[32]=f,e[33]=h,e[34]=x,e[35]=g,e[36]=p,e[37]=y):y=e[37],y}function k1(t){return i.jsx(To,{tag:t},t.id)}function _g(t){const e=R.c(5),{seed:s,children:r}=t;let n;e[0]!==s?(n=()=>{const o=new Fo({defaultOptions:{queries:{staleTime:1/0,gcTime:1/0,retry:!1,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchInterval:!1}}});return s(o),o},e[0]=s,e[1]=n):n=e[1];const[a]=L.useState(n);let l;return e[2]!==r||e[3]!==a?(l=i.jsx("div",{"aria-hidden":"true",inert:!0,className:"pointer-events-none absolute inset-0 select-none overflow-hidden",children:i.jsx(Ho,{fallback:null,children:i.jsx(L.Suspense,{fallback:null,children:i.jsx(qo,{client:a,children:r})})})}),e[2]=r,e[3]=a,e[4]=l):l=e[4],l}const il=new Date().toISOString();function Mt(t,e,s,r,n,a){return{id:t,organizationId:"preview",title:e,description:null,status:s,priority:n,type:r,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:il,updatedBy:"preview",updatedAt:il}}function Bg(){return{items:[Mt("p1","Fix checkout shipping estimate","todo","bug","high",1),Mt("p2","Add size guide to product page","todo","feature","medium",2),Mt("p3","Compress hero images","todo","chore","low",3),Mt("p4","Rewrite category descriptions","in_progress","feature","medium",4),Mt("p5","Audit broken redirects","in_progress","chore","high",5),Mt("p6","New arrivals landing page","in_review","feature","high",6),Mt("p7","Speed up search results","done","chore","medium",7),Mt("p8","Black Friday banner","done","feature","urgent",8)],repos:[],columns:[]}}export{_g as P,Ng as T,Bg as m};
|