decocms 4.518.3 → 4.520.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-Docp8wLu.js → ActiveShapeUtils-a2DoNLsg.js} +1 -1
- package/dist/client/assets/{AlertCircle-DbgHFTtO.js → AlertCircle-CePpxiVL.js} +1 -1
- package/dist/client/assets/{AreaChart-CcL-fFKM.js → AreaChart-futTS77r.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B24gv2xe.js → ArrowLeft-DPa6sZRI.js} +1 -1
- package/dist/client/assets/{ArrowUp-CgN1Qhsf.js → ArrowUp-Bc6Es12Z.js} +1 -1
- package/dist/client/assets/{BarChart-CCFGMu0H.js → BarChart-CJBobvga.js} +1 -1
- package/dist/client/assets/{Building02-DBmpU4M6.js → Building02-BbEppJaI.js} +1 -1
- package/dist/client/assets/{CartesianChart-DHq2iPiU.js → CartesianChart-D2mofn_H.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Do09x_e5.js → CategoricalChart-1f5JjzPP.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cqp__I1R.js → CheckCircle-Dlz5XR1a.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Bg2KdIAv.js → ChevronSelectorVertical-BjvpkKQW.js} +1 -1
- package/dist/client/assets/{ChevronUp-BJfOFayd.js → ChevronUp-CHckv_8T.js} +1 -1
- package/dist/client/assets/{Copy01-C8oI3ru2.js → Copy01-ynYolVGY.js} +1 -1
- package/dist/client/assets/{CreditCard01-DBg0t5KK.js → CreditCard01-CJRwgkVP.js} +1 -1
- package/dist/client/assets/{DotsVertical-MgtYn_XR.js → DotsVertical-xGYJd_oZ.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Bjgx2BpF.js → ErrorBarContext-Bu4h-9ud.js} +1 -1
- package/dist/client/assets/{Globe04-8XNa-DGn.js → Globe04-rKrlqbJ3.js} +1 -1
- package/dist/client/assets/{Image01-BYSI_JTy.js → Image01-J72Rm0Yr.js} +1 -1
- package/dist/client/assets/{Key01-CVBy3Esl.js → Key01-GACmaKDe.js} +1 -1
- package/dist/client/assets/{Link01-1YHKCfLl.js → Link01-Dy_bSHLe.js} +1 -1
- package/dist/client/assets/{LinkBroken01-D8vKURBw.js → LinkBroken01-Dbb_PbFz.js} +1 -1
- package/dist/client/assets/{Minus-D7Nn8Jj1.js → Minus-cuNEQYA9.js} +1 -1
- package/dist/client/assets/{Monitor01-th-leB7u.js → Monitor01-CW3G0lSo.js} +1 -1
- package/dist/client/assets/{Play-B3knqxcb.js → Play-RPF1C2F0.js} +1 -1
- package/dist/client/assets/{Plus-Bf8vM3Sx.js → Plus-DXIMcQkQ.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DevuDJh8.js → ReferenceLine-CYgqeMqY.js} +1 -1
- package/dist/client/assets/{SearchMd-C1vd4NNy.js → SearchMd-DQ6xirDN.js} +1 -1
- package/dist/client/assets/{Sector-CjducGVR.js → Sector-fbb2Py22.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Bkku1Te9.js → ShoppingBag01-B81IcYcu.js} +1 -1
- package/dist/client/assets/{Sun-C_rfv84K.js → Sun-Bd7hlMAK.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DsxrRdFb.js → SwitchHorizontal01-QjLd4gai.js} +1 -1
- package/dist/client/assets/{Tool01-XzMXqYKz.js → Tool01-D7eccoeh.js} +1 -1
- package/dist/client/assets/{Trash01-C68DqBe-.js → Trash01-CTrNlbT8.js} +1 -1
- package/dist/client/assets/{Upload01-D4h8lLWj.js → Upload01-B9oMCz-6.js} +1 -1
- package/dist/client/assets/{User01-BKJMa06q.js → User01-BgWUolo8.js} +1 -1
- package/dist/client/assets/{UserSquare-ezkB_C7H.js → UserSquare-CZXKi88L.js} +1 -1
- package/dist/client/assets/{Users01-sQ3Jopve.js → Users01-B7zAiC4m.js} +1 -1
- package/dist/client/assets/{XClose-5-Y_ZVDY.js → XClose-C9XzQkao.js} +1 -1
- package/dist/client/assets/{ZoomOut-CTwXyALk.js → ZoomOut-DKNOmfuK.js} +1 -1
- package/dist/client/assets/{access-gate-BAeTdIKF.js → access-gate-BBEga0hz.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CzGzxkZf.js → add-connection-dialog-ldH4ynvN.js} +1 -1
- package/dist/client/assets/agent-analytics-CAeIvLpw.js +1 -0
- package/dist/client/assets/agent-app-BIZw6O6x.js +1 -0
- package/dist/client/assets/{agent-assets-CDrWVXsZ.js → agent-assets-BTuYhb0x.js} +1 -1
- package/dist/client/assets/{agent-automation-CANuyesn.js → agent-automation-CPVX6Ssc.js} +1 -1
- package/dist/client/assets/{agent-automations-FCLkmptj.js → agent-automations-Depk4_IZ.js} +1 -1
- package/dist/client/assets/agent-calendar-rSYcBUhL.js +1 -0
- package/dist/client/assets/{agent-connect-sources-DPRFzy_W.js → agent-connect-sources-B_w_bZyW.js} +1 -1
- package/dist/client/assets/agent-deck-BdTe1uEF.js +1 -0
- package/dist/client/assets/{agent-e2e-CGsydJDk.js → agent-e2e-BUjIk9_k.js} +1 -1
- package/dist/client/assets/agent-experiments-C9MFznl7.js +1 -0
- package/dist/client/assets/{agent-file-DZxHfHqj.js → agent-file-CD0Yoa7I.js} +1 -1
- package/dist/client/assets/{agent-hosting-DLdgWaMb.js → agent-hosting-DZFLF8mA.js} +1 -1
- package/dist/client/assets/{agent-icon-Bl0Q4nDQ.js → agent-icon-DtT3h4UX.js} +1 -1
- package/dist/client/assets/agent-library-ClrTwj50.js +1 -0
- package/dist/client/assets/agent-library-file-CAlMp336.js +1 -0
- package/dist/client/assets/agent-monitor-Bn4RTzzk.js +1 -0
- package/dist/client/assets/{agent-overview-DmbW8VOm.js → agent-overview-D3DqJ6Lq.js} +1 -1
- package/dist/client/assets/{agent-releases-DJsbXDlS.js → agent-releases-JCAWDH6g.js} +1 -1
- package/dist/client/assets/agent-settings-DUBumxG4.js +1 -0
- package/dist/client/assets/{agent-site-editor-Dn7we51s.js → agent-site-editor-DmMopyU6.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CXdBuByv.js +2 -0
- package/dist/client/assets/agent-site-editor-content-xxngWBr2.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DBUt1iNd.js +1 -0
- package/dist/client/assets/agent-view-BiUQ1gj5.js +1 -0
- package/dist/client/assets/{agent-view-guard-B0aDsWRb.js → agent-view-guard-MrJ6Jxxx.js} +1 -1
- package/dist/client/assets/{agents-list-lOOhfuKV.js → agents-list-6A96PYcg.js} +1 -1
- package/dist/client/assets/{ai-providers-Bm7atoS5.js → ai-providers-DLOQtpHm.js} +1 -1
- package/dist/client/assets/{alert-fsJICKf8.js → alert-BEazQOeN.js} +1 -1
- package/dist/client/assets/{alert-dialog-SFY1grIM.js → alert-dialog-DdGCb0IF.js} +1 -1
- package/dist/client/assets/{analytics-sections-KGMek742.js → analytics-sections-BO4YnAjA.js} +1 -1
- package/dist/client/assets/{analytics-tab-DrPnNwhC.js → analytics-tab-DaOlRgMk.js} +1 -1
- package/dist/client/assets/{api-keys-DGMEM3Pu.js → api-keys-BJgy-lS2.js} +1 -1
- package/dist/client/assets/api-keys-bhSN63jL.js +1 -0
- package/dist/client/assets/{app-editor-6m_ygtwU.js → app-editor-DLE8thcF.js} +1 -1
- package/dist/client/assets/{asset-utils-DJKQ3jqO.js → asset-utils-BCgXGBCC.js} +1 -1
- package/dist/client/assets/{auth-k-50r1Jm.js → auth-D6exVMlw.js} +1 -1
- package/dist/client/assets/{auth-catchall-BDasxET4.js → auth-catchall-DvDQWdKb.js} +1 -1
- package/dist/client/assets/{auth-entry-CIp781XC.js → auth-entry-C86oFADV.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DKyMuscv.js → auth-split-layout-DyRJlWjB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Citp3_ku.js → authenticate-and-persist-oauth-ByNJ3IhY.js} +1 -1
- package/dist/client/assets/{automation-list-row-DCYvqhb1.js → automation-list-row-CX5dszCC.js} +1 -1
- package/dist/client/assets/{automation-runs-Bv01EPr_.js → automation-runs-CHeG76Ew.js} +1 -1
- package/dist/client/assets/{automations-CMa4N4ws.js → automations-BpcPPmZL.js} +1 -1
- package/dist/client/assets/{autosend-BUGExBM4.js → autosend-DJIOdR-h.js} +1 -1
- package/dist/client/assets/{avatar-DZp2nksb.js → avatar-49aPXdv7.js} +1 -1
- package/dist/client/assets/{badge-B8Ivcb6S.js → badge-Xi0bu-aJ.js} +1 -1
- package/dist/client/assets/{block-document-t9Z4rWQI.js → block-document-Cn8tlonv.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-guMABPcp.js → blocks-preview-workspace-context-QgOcURJH.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Ch0bvZWI.js → blocks-tab-states-BG-MFk9Q.js} +1 -1
- package/dist/client/assets/{blog-schema-DGhK3ld9.js → blog-schema-BO9IdDkD.js} +1 -1
- package/dist/client/assets/{buckets-PCZkbjVY.js → buckets-xqarwZ-o.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-Ba28GGJ7.js → build-improve-prompt-doc-D7Pi_LQA.js} +1 -1
- package/dist/client/assets/{calendar-BDnGPQeR.js → calendar-HcE4WZuE.js} +1 -1
- package/dist/client/assets/{campaigns-view-BzxbPG_g.js → campaigns-view-BLsQazTL.js} +1 -1
- package/dist/client/assets/{capability-load-error-h9GaAVI2.js → capability-load-error-BzCsh693.js} +1 -1
- package/dist/client/assets/{category-editor-BCaNtr8G.js → category-editor-Cwe6Gn4P.js} +1 -1
- package/dist/client/assets/{cdn-tab-BxlHc73J.js → cdn-tab-tnk9RtCD.js} +1 -1
- package/dist/client/assets/{chart-CF2951Pl.js → chart-BKCzQrbM.js} +1 -1
- package/dist/client/assets/{chat-context-C_P788VD.js → chat-context-CwxNIspy.js} +1 -1
- package/dist/client/assets/{chat-draft-Cd62GOk3.js → chat-draft-Czzd6Fgc.js} +1 -1
- package/dist/client/assets/{checkbox-D_LpTCuo.js → checkbox-IscGSBh9.js} +1 -1
- package/dist/client/assets/{choose-editor-CB85FQ98.js → choose-editor-uAgHg51i.js} +1 -1
- package/dist/client/assets/{cli-auth-success-6cvMKGqI.js → cli-auth-success-BhFG_H4z.js} +1 -1
- package/dist/client/assets/{client-icons-CwlNIvVS.js → client-icons-CZ-ZSlxS.js} +1 -1
- package/dist/client/assets/cms-settings-editor-DVlUigtK.js +1 -0
- package/dist/client/assets/{collapsible-BHKr0Yuy.js → collapsible-D314pUSB.js} +1 -1
- package/dist/client/assets/{collection-detail--pNpxuBG.js → collection-detail-CuIOpuSM.js} +1 -1
- package/dist/client/assets/{collection-display-button-CmGqnHZR.js → collection-display-button-kbHHi0Kq.js} +1 -1
- package/dist/client/assets/{collection-search-BfeTverb.js → collection-search-DCYm5aP4.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DbYcMpOp.js → collection-table-wrapper-DDG00R7J.js} +1 -1
- package/dist/client/assets/{collection-tabs-BCwnkCTo.js → collection-tabs-CpRvK4aY.js} +1 -1
- package/dist/client/assets/{column-rules-cuIMwEgL.js → column-rules-yLNPamrN.js} +1 -1
- package/dist/client/assets/{combobox-Br3ekqoF.js → combobox-uDe7w0z0.js} +1 -1
- package/dist/client/assets/{command-9a3EU_B7.js → command-DcKOVszs.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Bict1-Py.js → companion-mcps-section-DZ2ioXzY.js} +1 -1
- package/dist/client/assets/{config-HnMhGwJ8.js → config-DlkgY7Jy.js} +1 -1
- package/dist/client/assets/{connect-layout-CoCuwn0R.js → connect-layout-DU417orE.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-tW0_dVgF.js → connect-source-dialog-B6k_6_M9.js} +1 -1
- package/dist/client/assets/{connect-CPP1LzMI.js → connect-wFJx1iR7.js} +1 -1
- package/dist/client/assets/{connection-DA0DdtmE.js → connection-CLuVf0UF.js} +1 -1
- package/dist/client/assets/{connection-card-D6khbIvi.js → connection-card-BaWG41H0.js} +1 -1
- package/dist/client/assets/{connection-detail-3DINZ9Ps.js → connection-detail-B8vzaLYN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CD1Glq-b.js → connection-form-helpers-BWk506qj.js} +1 -1
- package/dist/client/assets/{connections-5zgE9hOg.js → connections-ajPWQmhT.js} +1 -1
- package/dist/client/assets/{content-tab-DsX079ZZ.js → content-tab-C9mWHRiZ.js} +3 -3
- package/dist/client/assets/{context-D_yEBKdV.js → context-BZM48LEC.js} +1 -1
- package/dist/client/assets/{context-menu-CQmIAsNX.js → context-menu-DuBXLH-0.js} +1 -1
- package/dist/client/assets/{context-shell-Cm9pkJeZ.js → context-shell-DBFau4jR.js} +3 -3
- package/dist/client/assets/{core.esm-KXf7B9P5.js → core.esm-r_1fOlla.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CU3HQ3J9.js → create-organization-dialog-DinRNNUe.js} +1 -1
- package/dist/client/assets/{daily-pulse-BTMsF03t.js → daily-pulse-DIrHsqZA.js} +1 -1
- package/dist/client/assets/{discover-CF8v9Owa.js → discover-fUj70D62.js} +1 -1
- package/dist/client/assets/{domain-settings-BE6GV0Yp.js → domain-settings-CLujyp1m.js} +1 -1
- package/dist/client/assets/{drawer-BTNZfEU6.js → drawer-CyiQimHr.js} +1 -1
- package/dist/client/assets/{editor-swke_0an.js → editor-BpL3QDOn.js} +1 -1
- package/dist/client/assets/{editor-classes-DQrtem9w.js → editor-classes-DA3QHiC-.js} +1 -1
- package/dist/client/assets/{empty-state-CkRk6emt.js → empty-state-B0G_CGwR.js} +1 -1
- package/dist/client/assets/{empty-state-DjnYxJoJ.js → empty-state-Bw4axBb5.js} +1 -1
- package/dist/client/assets/{experiments-tab-6fYgjeCj.js → experiments-tab-BkzMMdcP.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DLYJ3Xgw.js → experiments-tab-choice-BYO4Dw1S.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BcSeYo2b.js → extract-connection-data-CwDf8Ns1.js} +1 -1
- package/dist/client/assets/{feature-gate-DnDfxxPc.js → feature-gate-BxG3yqt8.js} +1 -1
- package/dist/client/assets/{feature-paywall-DbYyln6a.js → feature-paywall-BHK5XVuW.js} +1 -1
- package/dist/client/assets/{file-explorer-CmXZRbDC.js → file-explorer-CPGV5tot.js} +1 -1
- package/dist/client/assets/{file-preview-CB-QuWoi.js → file-preview-BdEwMhOt.js} +1 -1
- package/dist/client/assets/{file-share-button-5DKLtCO8.js → file-share-button-C4MFpt4s.js} +1 -1
- package/dist/client/assets/{file-type-icon-BlPndn8R.js → file-type-icon-BnEUVv2h.js} +1 -1
- package/dist/client/assets/{folder-icon-50i43Zdi.js → folder-icon-DOB3P9Vd.js} +1 -1
- package/dist/client/assets/{form-CWlPjOiE.js → form-CpnGThcL.js} +1 -1
- package/dist/client/assets/{general-DiUoRhmp.js → general-7WS5B97k.js} +1 -1
- package/dist/client/assets/{home-DgNlH8AE.js → home-CfcdGSri.js} +1 -1
- package/dist/client/assets/{icon-button-BjI92SlL.js → icon-button-B1pb2_kW.js} +1 -1
- package/dist/client/assets/{index-DYNe4TdA.js → index-B-nEUC-m.js} +1 -1
- package/dist/client/assets/{index-YbD_X2Sg.js → index-B6fYZNK2.js} +1 -1
- package/dist/client/assets/{index-YVO_Peic.js → index-BlsmUzy2.js} +1 -1
- package/dist/client/assets/{index-BiGgRVLA.js → index-CDmfe_Ze.js} +1 -1
- package/dist/client/assets/{index-CImJlq71.js → index-CMKEBGKX.js} +36 -36
- package/dist/client/assets/{index-DfzKVEQZ.js → index-CMr2QK3C.js} +1 -1
- package/dist/client/assets/{index-D5TlKaB4.js → index-CXV4VJ6T.js} +1 -1
- package/dist/client/assets/{index-UjSXE0Iy.js → index-CZWqOlKo.js} +1 -1
- package/dist/client/assets/{index-D8VCkLtE.js → index-C_uum72U.js} +1 -1
- package/dist/client/assets/{index-BzTLQsHh.js → index-D2b1OQG0.js} +1 -1
- package/dist/client/assets/{index-DQ2PXCBR.js → index-DwGMmQy3.js} +1 -1
- package/dist/client/assets/{index-BT89s1_n.js → index-Okf21u4l.js} +1 -1
- package/dist/client/assets/{index-YTcaUBCs.js → index-P7t2U4iN.js} +1 -1
- package/dist/client/assets/{index-redirect-DDzvngbU.js → index-redirect-B2074CyX.js} +1 -1
- package/dist/client/assets/{index-AzZxgAUy.js → index-tbca9DY7.js} +1 -1
- package/dist/client/assets/{index-ChO_KP9v.js → index-uNmIis3_.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BPnYbZuQ.js → infiniteQueryObserver-sZS50x9h.js} +1 -1
- package/dist/client/assets/{infra-billing-BqdikAj2.js → infra-billing-Cf1YDWV8.js} +1 -1
- package/dist/client/assets/{input-BHFkZ3T9.js → input-DlOSVkNE.js} +3 -3
- package/dist/client/assets/{input-Cs9OOIz-.js → input-qA_oxMGt.js} +1 -1
- package/dist/client/assets/{integration-icon-B9snkXuC.js → integration-icon-mkTLlJYZ.js} +1 -1
- package/dist/client/assets/{jira-icon-DIYO8jdA.js → jira-icon-C5lcBXYi.js} +1 -1
- package/dist/client/assets/{label-CfvfFl3x.js → label-8_hsm0_y.js} +1 -1
- package/dist/client/assets/{layout-BRYkue1F.js → layout-C4N_3p9u.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Sb6HNynM.js → legacy-agents-deep-Zsw21wnc.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DxGhnvQi.js → legacy-main-redirect-RzdE-Ynb.js} +1 -1
- package/dist/client/assets/library-CKihNjtp.js +1 -0
- package/dist/client/assets/{login-BoKhcWPb.js → login-B439_6KR.js} +1 -1
- package/dist/client/assets/{markdown-BDnIqP7U.js → markdown-yQLRhm2z.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-vmvnP_G4.js → mcp-app-renderer-gJ1lyd1u.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Bf1ymd_L.js → mcp-oauth-B64tInkO.js} +1 -1
- package/dist/client/assets/{mcp-oauth-De4zWGdY.js → mcp-oauth-BFUDXDf6.js} +1 -1
- package/dist/client/assets/{members-C_49FqGn.js → members-Beq92g_c.js} +1 -1
- package/dist/client/assets/{memory-DB-8JkBQ.js → memory-BkOPkUkc.js} +1 -1
- package/dist/client/assets/{mini-report-page-UFZ1_IfA.js → mini-report-page-BWPJGpfB.js} +1 -1
- package/dist/client/assets/{mock-board-uI6Kjr1q.js → mock-board-qTnFSOlt.js} +5 -5
- package/dist/client/assets/{monaco-editor-FMQP-sIq.js → monaco-editor-C2ej8TCv.js} +1 -1
- package/dist/client/assets/{monitoring-D8MQ-E4C.js → monitoring-BdT45NJd.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BGPZUteu.js → monitoring-stats-row-QRt_yzIW.js} +1 -1
- package/dist/client/assets/{multi-select-CjpZ72b0.js → multi-select-D4sL81eP.js} +1 -1
- package/dist/client/assets/{mustache-wrPcgRSJ.js → mustache-3jnCJNSv.js} +1 -1
- package/dist/client/assets/{named-rule-uses-DUhhItNP.js → named-rule-uses-u1am7LRC.js} +1 -1
- package/dist/client/assets/{named-rule-view-DuazhL5D.js → named-rule-view-B49ZuZC_.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CEUx8Wuz.js → new-project-dialog-DCNrhfVx.js} +1 -1
- package/dist/client/assets/{oauth-callback-VCDp4Mdt.js → oauth-callback-D1lTLeuO.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DA8fj9mx.js → oauth-callback-ai-provider-uHk7H4_s.js} +1 -1
- package/dist/client/assets/{onboarding-CNAboKGM.js → onboarding-Cqmu7Q1I.js} +1 -1
- package/dist/client/assets/{openai-conversation-DzWEkMFW.js → openai-conversation-D9oaPp7I.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DtUy3pl1.js → optimistic-project-sidebar-views-C2xkkt2n.js} +1 -1
- package/dist/client/assets/{order-monitor-day-AyxJmcAH.js → order-monitor-day-Bn2RftCy.js} +1 -1
- package/dist/client/assets/{organization-choice-BQVJgGgg.js → organization-choice-DbSR_Tq1.js} +1 -1
- package/dist/client/assets/{orgs-D0MWQorV.js → orgs-Dv6ZMLaR.js} +1 -1
- package/dist/client/assets/{page-seo-form-Dbm_mNqs.js → page-seo-form-CYdB-eYU.js} +1 -1
- package/dist/client/assets/{pair-CNR7-_qK.js → pair-DIRyClgs.js} +1 -1
- package/dist/client/assets/{parse-sections-BYTdQHxf.js → parse-sections-CvCJ7mYl.js} +1 -1
- package/dist/client/assets/{plan-CEyzI8hm.js → plan-bTtLskYs.js} +1 -1
- package/dist/client/assets/{plan-ladder-Chib98li.js → plan-ladder-DNfn-N6n.js} +1 -1
- package/dist/client/assets/{popover-BqGcOxqn.js → popover-n_tcLsd5.js} +1 -1
- package/dist/client/assets/{post-calendar-2c7rIKCZ.js → post-calendar-DnSIZDH2.js} +1 -1
- package/dist/client/assets/{post-editor-CRPwAV6k.js → post-editor-Ds8VBbi2.js} +1 -1
- package/dist/client/assets/{preview-content-C3GD-BQD.js → preview-content-YpNvTcZt.js} +1 -1
- package/dist/client/assets/{preview-dialog-vLTpbCc0.js → preview-dialog-DJ8srmsM.js} +1 -1
- package/dist/client/assets/{preview-panel-C6xrnpJj.js → preview-panel-C7cA2AYG.js} +1 -1
- package/dist/client/assets/{preview-tab-CBRKeC1b.js → preview-tab-lR6Zy9Kz.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DHVGLlrb.js → product-picker-dialog-BQZeexho.js} +1 -1
- package/dist/client/assets/{profile-C5h78yhG.js → profile-D9pE1ZCt.js} +1 -1
- package/dist/client/assets/project-app-view-BJMSCiLQ.js +1 -0
- package/dist/client/assets/{project-apps-D7YctFcN.js → project-apps-CKpWGbT4.js} +1 -1
- package/dist/client/assets/{project-feed-CpfPTWDh.js → project-feed-BFyTaEPY.js} +1 -1
- package/dist/client/assets/{project-icon-B-MVviOF.js → project-icon-BozuiJlT.js} +1 -1
- package/dist/client/assets/project-reports-B6AQHucI.js +1 -0
- package/dist/client/assets/project-tasks-DFBfLTNl.js +1 -0
- package/dist/client/assets/{projects-DrGNXye1.js → projects-Bj8bu01s.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B6Ieq7wG.js → projects-empty-state-Co0D5JhR.js} +1 -1
- package/dist/client/assets/{prompts-DszjlGng.js → prompts-CUYrqR6B.js} +1 -1
- package/dist/client/assets/record-editor-Dq4w4KU3.js +1 -0
- package/dist/client/assets/{redirect-editor-D4gU7n0c.js → redirect-editor-tsiTjzIT.js} +1 -1
- package/dist/client/assets/{releases-api-CK0jSLYO.js → releases-api-DuhgreiH.js} +1 -1
- package/dist/client/assets/{reports-CjnzDShS.js → reports-BG2If9Qe.js} +1 -1
- package/dist/client/assets/reports-DhdnjILE.js +1 -0
- package/dist/client/assets/{reports-onboarding-C81Upwj7.js → reports-onboarding-DMCkOYqe.js} +1 -1
- package/dist/client/assets/{reports-tab-DJdkQM-o.js → reports-tab-LnruJoPA.js} +2 -2
- package/dist/client/assets/repositories-CBH2GIms.js +1 -0
- package/dist/client/assets/{repositories-IyZ5mwlx.js → repositories-D-cEWI3N.js} +1 -1
- package/dist/client/assets/{repository-binding-wXpkgUS5.js → repository-binding-BBtZf2zz.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DWw4DnKc.js → repository-import-picker-Dm0ES3Rv.js} +1 -1
- package/dist/client/assets/{repository-picker-fHOvHVjl.js → repository-picker-CPuj3bZ1.js} +1 -1
- package/dist/client/assets/{require-capability-B4IJOpH-.js → require-capability-C24QIC4M.js} +1 -1
- package/dist/client/assets/{required-auth-layout-p9wTtbkA.js → required-auth-layout-PhuA3Ewp.js} +1 -1
- package/dist/client/assets/{reset-password-CpXnMk-E.js → reset-password-C8SdUbOh.js} +1 -1
- package/dist/client/assets/{resizable-CykEr2xO.js → resizable-miZzhQuc.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-dNyXGxcc.js → resolve-tab-icon-CpfXvomr.js} +1 -1
- package/dist/client/assets/{review-settings-D36VxF8a.js → review-settings-BrKUWarQ.js} +1 -1
- package/dist/client/assets/{roles-DPB4O14g.js → roles-BlQqDK5V.js} +1 -1
- package/dist/client/assets/{route-rXh3k9jX.js → route-C1AFWDaT.js} +1 -1
- package/dist/client/assets/route-DSfRBjPS.js +1 -0
- package/dist/client/assets/{route-CH9GHNDj.js → route-fvDFg13s.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-CvNZGRDu.js → runnable-block-editor-Bn4b767r.js} +3 -3
- package/dist/client/assets/{sandbox-lifecycle-context-CsnW_1kh.js → sandbox-lifecycle-context-DR0GTBJX.js} +1 -1
- package/dist/client/assets/{schema-BjLtWzT5.js → schema-BRZOWw0d.js} +1 -1
- package/dist/client/assets/{schema-BXcU44Bp.js → schema-CylodOUQ.js} +1 -1
- package/dist/client/assets/{scroll-area-BZP0xkZ2.js → scroll-area-BH2Oy8PV.js} +1 -1
- package/dist/client/assets/{search-input-CLbrLBK4.js → search-input-RbNJNFgo.js} +1 -1
- package/dist/client/assets/{search-toggle-Bz--u_u6.js → search-toggle-BKYod6Wy.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-DZQPZkTr.js → secret-ciphertext-IJ4Mey7K.js} +1 -1
- package/dist/client/assets/{secret-picker-r4BGxMfM.js → secret-picker-C-cbBnBP.js} +1 -1
- package/dist/client/assets/{secrets-CzuDVgfq.js → secrets-BvD9KlhJ.js} +1 -1
- package/dist/client/assets/{sections-DE80daGy.js → sections-C2rk7uX1.js} +1 -1
- package/dist/client/assets/{sections-editor-C5rNMLKQ.js → sections-editor-DTbMqnxy.js} +1 -1
- package/dist/client/assets/{select-CO-KeEXe.js → select-B-vRTlp8.js} +1 -1
- package/dist/client/assets/{select-model-B9aWAF7v.js → select-model-jzXUtlUA.js} +1 -1
- package/dist/client/assets/{seo-editor-C5HGby9p.js → seo-editor-BqtZxWFt.js} +1 -1
- package/dist/client/assets/{separator-Dr93-tcp.js → separator-DQdTCaJ6.js} +1 -1
- package/dist/client/assets/settings-tab-CPth5xHx.js +1 -0
- package/dist/client/assets/{sheet-DYqe447t.js → sheet-DIT9lGlU.js} +1 -1
- package/dist/client/assets/{shell-layout-Bmd6dXD4.js → shell-layout-NV-fbXIm.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CNazOyJI.js → site-draft-actions-DpuJ9efE.js} +1 -1
- package/dist/client/assets/site-draft-view-D6YYVH6j.js +2 -0
- package/dist/client/assets/site-editor-CpNSE9w9.js +1 -0
- package/dist/client/assets/{site-editor-toast-Ckx512no.js → site-editor-toast-hxv14akZ.js} +1 -1
- package/dist/client/assets/{skills-Dq2dQBym.js → skills-Dmur65NR.js} +1 -1
- package/dist/client/assets/{slider-Dm9m4Zom.js → slider-DL5ZrKD2.js} +1 -1
- package/dist/client/assets/{sortable.esm-PpUBUYvN.js → sortable.esm-CmQjLRc-.js} +1 -1
- package/dist/client/assets/{sso-et00F2-M.js → sso-DJaANv0k.js} +1 -1
- package/dist/client/assets/{suggestion-CaGvyBH6.js → suggestion-Dp-vLwaS.js} +1 -1
- package/dist/client/assets/{switch-DGiOaGRn.js → switch-CWqn4x2S.js} +1 -1
- package/dist/client/assets/{symbol-ZVON6uKU.js → symbol-9K-WFQbg.js} +1 -1
- package/dist/client/assets/{synced-repos-CKQ3x7oT.js → synced-repos-C6pBMypP.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DLj4dmeB.js → tab-icon-glyph-CM3k-yhU.js} +1 -1
- package/dist/client/assets/{table-DcqK9CO1.js → table-Clkje7xI.js} +1 -1
- package/dist/client/assets/{tabs-CU2NQvm6.js → tabs-SpJ7v19a.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-Cs9bBLeR.js → task-assignee-avatar-D7x8Ztl2.js} +1 -1
- package/dist/client/assets/{task-board-CRvOV9zQ.js → task-board-CEgpYip9.js} +1 -1
- package/dist/client/assets/{task-route-BPQ9h0t-.js → task-route-0IGfE2Sp.js} +1 -1
- package/dist/client/assets/{task-status-k_KZvqi3.js → task-status-DxuW2r4d.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DXKp_Xl8.js → taskboard-analytics-D5efiDoG.js} +1 -1
- package/dist/client/assets/{tasks-CJWFfvRo.js → tasks-BOOTk53y.js} +1 -1
- package/dist/client/assets/tasks-DBKhuSFQ.js +1 -0
- package/dist/client/assets/{textarea-Bp989dUN.js → textarea-DhtVYf8e.js} +1 -1
- package/dist/client/assets/{thread-analytics-CMG9NspT.js → thread-analytics-WxV3T9V2.js} +1 -1
- package/dist/client/assets/{thread-intent-DXY7orZh.js → thread-intent-BS7K-UuZ.js} +1 -1
- package/dist/client/assets/{thread-route-ChN9O-1A.js → thread-route-BZhEwUGV.js} +1 -1
- package/dist/client/assets/{thread-route-B1rrIJuw.js → thread-route-BkotEDA1.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D-x-TABK.js → thread-sheet-body-F9Cd7VsI.js} +1 -1
- package/dist/client/assets/{time-range-picker-B10kjTj_.js → time-range-picker-DgOYXLpU.js} +1 -1
- package/dist/client/assets/{toggle-group-K25Bl_Tm.js → toggle-group-errY3aOY.js} +1 -1
- package/dist/client/assets/{tool-namespace-ln4cIuCt.js → tool-namespace-BVXAR9Sk.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-NAoOtagz.js → toolbar-icon-button-Cq4ZT7sJ.js} +1 -1
- package/dist/client/assets/{tooltip-BB8x2ajM.js → tooltip-WTx8RFDb.js} +1 -1
- package/dist/client/assets/{tooltipContext-DG-hvJrr.js → tooltipContext-Ccm0pmDN.js} +1 -1
- package/dist/client/assets/{track-DwVNsvWy.js → track-DGHY3NJe.js} +1 -1
- package/dist/client/assets/{types-D4eFbg3n.js → types-C2kyJgqF.js} +1 -1
- package/dist/client/assets/{url-slug-Ck137SN4.js → url-slug-eBdSwuRg.js} +1 -1
- package/dist/client/assets/{usage-stats-DpZZQ75-.js → usage-stats-BCvxtMFR.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cng_Zcqq.js → use-ai-providers-BUYCLrsq.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-5US13ud-.js → use-apply-named-rule-D8uSRmIc.js} +1 -1
- package/dist/client/assets/{use-automations-BV-J2Ily.js → use-automations-BKnx1LOU.js} +1 -1
- package/dist/client/assets/{use-autosave-By6DVzfK.js → use-autosave-C0kQXP3a.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CNkklJiF.js → use-chat-layout-state-CoSgX-8p.js} +1 -1
- package/dist/client/assets/{use-clock-tick-D95T8222.js → use-clock-tick-BVcS6c_m.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BRWaN5AJ.js → use-connect-companion-Dfch6Pn5.js} +1 -1
- package/dist/client/assets/{use-connection-CAJy9ePc.js → use-connection-C2QTK4P4.js} +1 -1
- package/dist/client/assets/{use-content-sync-3FE60C_P.js → use-content-sync-cSja7hdH.js} +1 -1
- package/dist/client/assets/{use-copy-CvMH5zdo.js → use-copy-DedJIHzN.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DTJ0zfpe.js → use-create-virtual-mcp-JDXemb5m.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D3Iz1MzV.js → use-date-fns-locale-ByEf5sEV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CGLCHS8I.js → use-debounced-autosave-C_RB3agc.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DvzjOUVw.js → use-debounced-value-ELHlrW87.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D1dKlqXc.js → use-deco-credits-D6gi2fbm.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DvJkZDam.js → use-decopilot-events-CwR46UgN.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D1ttYwJz.js → use-delete-connection-BTgka6iQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BpF0owio.js → use-deployment-admin-BCN-ylik.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-C_TDHMYN.js → use-fast-preview-draft-url-CVZxF7Um.js} +1 -1
- package/dist/client/assets/{use-file-configs-Bf0fhL21.js → use-file-configs-Br5njpmm.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DFw-YlJH.js → use-inbox-feed-Dz2zKYVV.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CwPqy0HC.js → use-infinite-scroll-C3u8iypP.js} +1 -1
- package/dist/client/assets/{use-join-requests-Z3CFtAeL.js → use-join-requests-D2Wm3dTe.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Cp-duvYv.js → use-main-panel-tabs-CTK-I6l5.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Db86wDh0.js → use-mcp-auth-status-BPhXIpD4.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BT3MLYTJ.js → use-mcp-client-COM3gP2O.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DvHpjECx.js → use-mcp-prompts-1pj8Mn9o.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DY3R7rf0.js → use-mcp-tools-DVMy4xzU.js} +1 -1
- package/dist/client/assets/{use-members-DrsTuCTp.js → use-members-BXYZ5GWT.js} +1 -1
- package/dist/client/assets/{use-mobile-Nz4my9ZZ.js → use-mobile-Bq3CXRKG.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Ck3YCWT9.js → use-move-blocks-BrZbG7eM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DqXhqPI9.js → use-navigate-to-agent-F9oDR6Aw.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BPZ_x4uz.js → use-open-billing-url-D4P9ija_.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BVmUiQl1.js → use-org-auth-client-C3gy1liR.js} +1 -1
- package/dist/client/assets/{use-org-fs-qBxAqXun.js → use-org-fs-BRfBBlvJ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-C4sXoqIp.js → use-org-repo-syncs-IArfEyUi.js} +1 -1
- package/dist/client/assets/{use-org-sso-B4zmaZVL.js → use-org-sso-ChkTjfH5.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CfuwXcGJ.js → use-organization-roles-Dx88n2m6.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DKJZVR_x.js → use-organization-settings-dAOl4U_-.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D57HPY2x.js → use-panel-navigate-CW6DUzf9.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-C3HlYZwC.js → use-project-native-view-presence-CTc7wMZF.js} +1 -1
- package/dist/client/assets/{use-project-scope-CnnlA-du.js → use-project-scope-BFye4eeg.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CeorMBvV.js → use-recent-apps-BU79Go-x.js} +1 -1
- package/dist/client/assets/{use-releases-fI9YxkQH.js → use-releases-CfZAXBwl.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-J_fRdq7J.js → use-reports-diagnostic-CJiI0aEe.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CioMqxnO.js → use-sandbox-events-Bryc2tH_.js} +1 -1
- package/dist/client/assets/{use-secrets-OlxyEwyb.js → use-secrets-BBwZJiLY.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C3ZuHMr0.js → use-section-preview-base-B5gtsawP.js} +1 -1
- package/dist/client/assets/{use-session-runtime-DfVwDDov.js → use-session-runtime-C6i7UtWU.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-D3qR_zRH.js → use-sidebar-collapsed-CKSL9ORL.js} +1 -1
- package/dist/client/assets/{use-tags-CxN5zuRZ.js → use-tags-C7NcCL7l.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-C-0VTjUE.js → use-task-board-analytics-CmTEpb8g.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BH7aE_i8.js → use-task-board-events-bChrXXDv.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BLDfRR9k.js → use-task-board-item-prs-B5n2Imtn.js} +1 -1
- package/dist/client/assets/{use-task-metadata-xGzNCL2M.js → use-task-metadata-CyLevNIC.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DJdxAjR-.js → use-thread-analytics-BdSD31wi.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-D8VLF1dw.js → use-thread-outputs-COl9UfXy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-EcJS-_aQ.js +1 -0
- package/dist/client/assets/{useQueries-1QlJ0aQr.js → useQueries-Dgo1k5er.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-XLLgwpcB.js +1 -0
- package/dist/client/assets/{users-C4R4jnJb.js → users-BOMrf4Fo.js} +1 -1
- package/dist/client/assets/{utils-Dc05pOUY.js → utils-fsgeKe9W.js} +1 -1
- package/dist/client/assets/{variant-calendar-B48hMXng.js → variant-calendar-CGX7TiEA.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-f1vt09fC.js → variant-matcher-override-D3H0IPwr.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CP4uoCBU.js → virtual-mcp-th0bGjq5.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-HKRMih-U.js → watch-sse-pool-9c6_Ze8B.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-CyvLQ78l.js +0 -1
- package/dist/client/assets/agent-app-CNlTu6Xl.js +0 -1
- package/dist/client/assets/agent-calendar-ChKa8nwx.js +0 -1
- package/dist/client/assets/agent-deck-DgzTTX-H.js +0 -1
- package/dist/client/assets/agent-experiments-g1fOqVOr.js +0 -1
- package/dist/client/assets/agent-library-T0msL9vO.js +0 -1
- package/dist/client/assets/agent-library-file-Dc6tLUFf.js +0 -1
- package/dist/client/assets/agent-monitor-64lw2Ndx.js +0 -1
- package/dist/client/assets/agent-settings-BEGX73lw.js +0 -1
- package/dist/client/assets/agent-site-editor-code-MGF1GSqb.js +0 -2
- package/dist/client/assets/agent-site-editor-content-KSRD36m4.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-jNYBd5Qs.js +0 -1
- package/dist/client/assets/agent-view-Cmt42rZM.js +0 -1
- package/dist/client/assets/api-keys-DxiLI10z.js +0 -1
- package/dist/client/assets/cms-settings-editor-CoBhi6-0.js +0 -1
- package/dist/client/assets/library-BWuIS4mc.js +0 -1
- package/dist/client/assets/project-app-view-C3iPvweM.js +0 -1
- package/dist/client/assets/project-reports-qKDYuHCF.js +0 -1
- package/dist/client/assets/project-tasks-C08bqxWt.js +0 -1
- package/dist/client/assets/record-editor-zoDoy66N.js +0 -1
- package/dist/client/assets/reports-CalnjK7E.js +0 -1
- package/dist/client/assets/repositories-C7NPKiSj.js +0 -1
- package/dist/client/assets/route-DsIfFih1.js +0 -1
- package/dist/client/assets/settings-tab-OQ9gNE2t.js +0 -1
- package/dist/client/assets/site-draft-view-CaiajxbQ.js +0 -2
- package/dist/client/assets/site-editor-BC9YFkDH.js +0 -1
- package/dist/client/assets/tasks-DfOAe8MK.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BwyrFPWF.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DJXxpWPx.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-CImJlq71.js";import{u as de}from"./use-mobile-Nz4my9ZZ.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-D3qR_zRH.js";import{a as Z,R as pe,b as ge}from"./resizable-CykEr2xO.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-CNkklJiF.js";import{O as je,m as q}from"./agent-icon-Bl0Q4nDQ.js";import{c as G,T as U,a as Y}from"./tooltip-BB8x2ajM.js";import{T as A}from"./toolbar-icon-button-NAoOtagz.js";import{a as Se}from"./use-project-scope-CnnlA-du.js";import{c as ve}from"./repository-binding-wXpkgUS5.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
1
|
+
import{c as w,au as te,aw as ne,b as Q,a2 as se,aa as ae,k as ie,j as s,l as oe,n as X,r as M,d as le,aL as K,H as W,P as z,aT as re,B as ce}from"./index-CMKEBGKX.js";import{u as de}from"./use-mobile-Bq3CXRKG.js";import{h as ue,c as he,u as me,m as fe}from"./use-sidebar-collapsed-CKSL9ORL.js";import{a as Z,R as pe,b as ge}from"./resizable-miZzhQuc.js";import{c as xe,r as be,m as ye}from"./use-chat-layout-state-CoSgX-8p.js";import{O as je,m as q}from"./agent-icon-DtT3h4UX.js";import{c as G,T as U,a as Y}from"./tooltip-WTx8RFDb.js";import{T as A}from"./toolbar-icon-button-Cq4ZT7sJ.js";import{a as Se}from"./use-project-scope-BFye4eeg.js";import{c as ve}from"./repository-binding-BBtZf2zz.js";function J(l,e){const a=typeof l=="number"?l:Number(l);return!Number.isFinite(a)||a<=0||a>=100?e:a}function Ce(l,e){const a=w.c(8);let o;a[0]!==e?(o=c=>J(c,e),a[0]=e,a[1]=o):o=a[1];const[t,i]=te(l,o);let n;a[2]!==e||a[3]!==t?(n=J(t,e),a[2]=e,a[3]=t,a[4]=n):n=a[4];let d;return a[5]!==i||a[6]!==n?(d=[n,i],a[5]=i,a[6]=n,a[7]=d):d=a[7],d}const Te=33;function Le(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.sidePanelWidth(),l[0]=e):e=l[0],Ce(e,Te)}function Ne(l){const e=w.c(54),{actions:a,navigation:o}=l,t=Q(),{org:i}=se(),n=Se(),d=ve(n),c=ue(),{toggleSidebar:r}=he(),h=me(),u=ee(),m=ae();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={select:we},e[0]=x):x=e[0];const f=ie(x),b=f?.mainView==="overview";let L;e[1]!==d?.title||e[2]!==t?(L=d?.title??t("common.loading"),e[1]=d?.title,e[2]=t,e[3]=L):L=e[3];const p=L;let C;e[4]!==b||e[5]!==f?.mainView||e[6]!==f?.pageTitle||e[7]!==m||e[8]!==p||e[9]!==n||e[10]!==t?(C=b?n?p:t("sidebar.navDestinations.home"):m&&f?.mainView==="files"?t("sidebar.navDestinations.context"):t(f?.pageTitle??"page.view"),e[4]=b,e[5]=f?.mainView,e[6]=f?.pageTitle,e[7]=m,e[8]=p,e[9]=n,e[10]=t,e[11]=C):C=e[11];const v=C,N=n??"";let g;e[12]!==i.slug||e[13]!==N?(g={to:"/$org/projects/$agentId",params:{org:i.slug,agentId:N}},e[12]=i.slug,e[13]=N,e[14]=g):g=e[14];const S=g;let y;if(e[15]!==c||e[16]!==b||e[17]!==i.slug||e[18]!==S||e[19]!==p||e[20]!==n||e[21]!==t||e[22]!==v){if(y=[],c){let T;e[24]!==t?(T=t("sidebar.navDestinations.settings"),e[24]=t,e[25]=T):T=e[25];let E;e[26]!==i.slug?(E={to:"/$org/settings/general",params:{org:i.slug}},e[26]=i.slug,e[27]=E):E=e[27];let B;e[28]!==T||e[29]!==E?(B={key:"settings",label:T,link:E},e[28]=T,e[29]=E,e[30]=B):B=e[30],y.push(B)}else if(n&&!b){let T;e[31]!==S||e[32]!==p?(T={key:"project",label:p,link:S},e[31]=S,e[32]=p,e[33]=T):T=e[33],y.push(T)}let R;e[34]!==v?(R={key:"page",label:v},e[34]=v,e[35]=R):R=e[35],y.push(R),e[15]=c,e[16]=b,e[17]=i.slug,e[18]=S,e[19]=p,e[20]=n,e[21]=t,e[22]=v,e[23]=y}else y=e[23];const j=m&&h;let P;e[36]!==u||e[37]!==j||e[38]!==t?(P=j&&u&&!u.threadless&&s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{"aria-label":t(u.threadOpen?"page.closeThread":"page.openThread"),"aria-pressed":u.threadOpen,active:u.threadOpen,onClick:u.toggleThread,children:s.jsx(je,{size:16})})}),s.jsx(Y,{side:"bottom",children:t(u.threadOpen?"page.closeThread":"page.openThread")})]}),e[36]=u,e[37]=j,e[38]=t,e[39]=P):P=e[39];const D=P;let O;e[40]!==m||e[41]!==j||e[42]!==t||e[43]!==r?(O=m?s.jsxs(G,{children:[s.jsx(U,{asChild:!0,children:s.jsx(A,{className:oe(!j&&"md:hidden"),onClick:r,"aria-label":t("page.expandSidebar"),children:s.jsx(q,{size:16})})}),s.jsx(Y,{side:"bottom",children:t("page.expandSidebar")})]}):s.jsx(A,{className:"md:hidden",onClick:r,"aria-label":t("layouts.shellControls.toggleSidebar"),children:s.jsx(q,{size:16})}),e[40]=m,e[41]=j,e[42]=t,e[43]=r,e[44]=O):O=e[44];let _;e[45]!==D||e[46]!==O?(_=s.jsxs(s.Fragment,{children:[O,D]}),e[45]=D,e[46]=O,e[47]=_):_=e[47];let I;return e[48]!==a||e[49]!==y||e[50]!==o||e[51]!==i.name||e[52]!==_?(I=s.jsx(X.Header,{leading:_,breadcrumbs:y,scope:i.name,actions:a,navigation:o}),e[48]=a,e[49]=y,e[50]=o,e[51]=i.name,e[52]=_,e[53]=I):I=e[53],I}function we(l){return l.matches.findLast(Pe)?.staticData}function Pe(l){return l.staticData.pageTitle}const k="chat-layout-thread",$="chat-layout-content",H=M.createContext(null);function ze(){return V()}function ee(){return M.use(H)}function V(){const l=M.use(H);if(!l)throw new Error("ChatLayout regions require a ChatLayout");return l}function Oe(l){const e=w.c(23),{children:a,...o}=l,t=de(),i=le(),n=M.useRef(null),[d,c]=Le(),{threadOpen:r,contentOpen:h}=o,u=xe(o),m=r&&h?d:u.side,x=100-m,f=g=>{const S=g.getLayout(),y=S[k],j=S[$];typeof y!="number"||typeof j!="number"||Math.abs(y-m)<.001&&Math.abs(j-x)<.001||g.setLayout({[k]:m,[$]:x})},b=be({visibility:o,threadVisibilityExplicit:o.threadVisibilityExplicit});let L;e[0]!==t||e[1]!==o||e[2]!==b?(L={...o,isMobile:t,mobileSurface:b},e[0]=t,e[1]=o,e[2]=b,e[3]=L):L=e[3];const p=L;let C;e[4]!==t||e[5]!==o||e[6]!==i||e[7]!==r||e[8]!==p?(C=!o.threadless&&s.jsx(fe,{open:t?p.mobileSurface==="chat":r,onToggle:()=>{t?i({to:".",search:g=>({...g,...ye(p.mobileSurface==="chat"?"main":"chat")}),replace:!0}):o.toggleThread()}}),e[4]=t,e[5]=o,e[6]=i,e[7]=r,e[8]=p,e[9]=C):C=e[9];let v;e[10]!==a||e[11]!==h||e[12]!==x||e[13]!==t||e[14]!==c||e[15]!==f||e[16]!==r||e[17]!==m?(v=t?s.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:a}):s.jsx(pe,{ref:g=>{if(n.current=g,!g)return;let S=!0;return queueMicrotask(()=>{S&&f(g)}),()=>{S=!1,n.current===g&&(n.current=null)}},defaultLayout:{[k]:m,[$]:x},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0 [&>[data-chat-layout-panel-open]]:!min-w-[320px]",style:{overflow:"visible"},onLayoutChanged:(g,S)=>{const{isUserInteraction:y}=S;if(!y){const P=n.current;P&&f(P);return}const j=g[k];r&&h&&typeof j=="number"&&j>0&&j<100&&c(j)},children:a}),e[10]=a,e[11]=h,e[12]=x,e[13]=t,e[14]=c,e[15]=f,e[16]=r,e[17]=m,e[18]=v):v=e[18];let N;return e[19]!==C||e[20]!==v||e[21]!==p?(N=s.jsxs(H,{value:p,children:[C,v]}),e[19]=C,e[20]=v,e[21]=p,e[22]=N):N=e[22],N}function _e(l){const e=w.c(16),{children:a,topbar:o}=l,t=V();if(t.isMobile){let u;return e[0]!==a||e[1]!==t.mobileSurface||e[2]!==o?(u=t.mobileSurface==="chat"?s.jsxs(z,{variant:"plain","data-slot":"chat-layout-thread",children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}):null,e[0]=a,e[1]=t.mobileSurface,e[2]=o,e[3]=u):u=e[3],u}const i=t.threadOpen?"":void 0;let n;e[4]!==a||e[5]!==t.threadOpen||e[6]!==o?(n=t.threadOpen&&s.jsxs(s.Fragment,{children:[o,s.jsx(z.Content,{"data-testid":"chat-panel",children:a})]}),e[4]=a,e[5]=t.threadOpen,e[6]=o,e[7]=n):n=e[7];let d;e[8]!==n?(d=s.jsx("div",{className:"h-full min-h-0 p-0.5",children:s.jsx(z,{"data-testid":"side-panel",children:n})}),e[8]=n,e[9]=d):d=e[9];let c;e[10]!==i||e[11]!==d?(c=s.jsx(Z,{id:k,defaultSize:"33%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":i,className:"min-w-0 overflow-hidden bg-sidebar",children:d}),e[10]=i,e[11]=d,e[12]=c):c=e[12];let r;e[13]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ge,{className:"bg-sidebar"}),e[13]=r):r=e[13];let h;return e[14]!==c?(h=s.jsxs(s.Fragment,{children:[c,r]}),e[14]=c,e[15]=h):h=e[15],h}function Ee({children:l,routeId:e}){return l}function F(l){const e=w.c(23),{children:a,actions:o,drawer:t,aside:i}=l,n=V();if(n.isMobile&&n.mobileSurface!=="main")return null;const d=n.isMobile?"plain":"card";let c;e[0]!==o||e[1]!==n.contentNavigation?(c=s.jsx(Ne,{navigation:n.contentNavigation,actions:o}),e[0]=o,e[1]=n.contentNavigation,e[2]=c):c=e[2];let r;e[3]!==a||e[4]!==n.contentKey?(r=s.jsx(K,{children:s.jsx(Ee,{routeId:n.contentKey,children:a})}),e[3]=a,e[4]=n.contentKey,e[5]=r):r=e[5];let h;e[6]!==n.contentKey||e[7]!==r?(h=s.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:s.jsx(W,{children:r},n.contentKey)}),e[6]=n.contentKey,e[7]=r,e[8]=h):h=e[8];let u;e[9]!==t||e[10]!==h?(u=s.jsxs(z.Content,{children:[h,t]}),e[9]=t,e[10]=h,e[11]=u):u=e[11];let m;e[12]!==c||e[13]!==u?(m=s.jsxs(X.Breadcrumbs.Provider,{children:[c,u]}),e[12]=c,e[13]=u,e[14]=m):m=e[14];let x;e[15]!==d||e[16]!==m?(x=s.jsx(z,{"data-testid":"main-panel",variant:d,children:m}),e[15]=d,e[16]=m,e[17]=x):x=e[17];const f=x;let b;return e[18]!==i||e[19]!==n.contentOpen||e[20]!==n.isMobile||e[21]!==f?(b=n.isMobile?f:s.jsx(Z,{id:$,defaultSize:"67%",minSize:"20%",collapsible:!0,collapsedSize:"0%","data-chat-layout-panel-open":n.contentOpen?"":void 0,className:"min-w-0 overflow-hidden bg-sidebar",children:s.jsxs("div",{className:"flex h-full min-h-0",children:[s.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:f}),i&&s.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:s.jsx(z,{"data-testid":"aside-panel",children:s.jsx(W,{children:s.jsx(K,{children:i})},M.isValidElement(i)?i.key??void 0:void 0)})})]})}),e[18]=i,e[19]=n.contentOpen,e[20]=n.isMobile,e[21]=f,e[22]=b):b=e[22],b}function ke(){const l=w.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(F,{children:s.jsx(re,{})}),l[0]=e):e=l[0],e}function Me(l){const e=w.c(18),{error:a,reset:o}=l,t=Q();let i;e[0]!==t?(i=t("common.errorBoundary.somethingWentWrong"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==i?(n=s.jsx("h2",{className:"text-lg font-medium",children:i}),e[2]=i,e[3]=n):n=e[3];let d;e[4]!==a.message||e[5]!==t?(d=a.message||t("common.errorBoundary.unexpectedError"),e[4]=a.message,e[5]=t,e[6]=d):d=e[6];let c;e[7]!==d?(c=s.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:d}),e[7]=d,e[8]=c):c=e[8];let r;e[9]!==t?(r=t("common.errorBoundary.tryAgain"),e[9]=t,e[10]=r):r=e[10];let h;e[11]!==o||e[12]!==r?(h=s.jsx(ce,{variant:"outline",onClick:o,children:r}),e[11]=o,e[12]=r,e[13]=h):h=e[13];let u;return e[14]!==n||e[15]!==c||e[16]!==h?(u=s.jsx(F,{children:s.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[n,c,h]})}),e[14]=n,e[15]=c,e[16]=h,e[17]=u):u=e[17],u}const Ie=Object.assign(Oe,{Thread:_e,Content:F}),qe=Object.freeze(Object.defineProperty({__proto__:null,ChatLayout:Ie,ChatLayoutError:Me,ChatLayoutPending:ke,useChatLayout:ze,useOptionalChatLayout:ee},Symbol.toStringTag,{value:"Module"}));export{Ie as C,Ne as R,qe as i,ze as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-
|
|
1
|
+
import{r as l,by as ce,j as p,bE as _,bD as B,bB as C,bI as le,bx as de,bU as ue,bQ as fe,bJ as me}from"./index-CMKEBGKX.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,T]=W(M),J=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:b=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),w=r==="horizontal"?ge:ve,[S=[],I]=ce({prop:h,defaultProp:b,onChange:x=>{[...m.current][f.current]?.focus(),i(x)}}),V=l.useRef(S);function j(x){const y=ye(S,x);K(x,y)}function se(x){K(x,f.current)}function ae(){const x=V.current[f.current];S[f.current]!==x&&d(S)}function K(x,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((x-n)/c)*c+n,U),A=Y(z,[n,s]);I((E=[])=>{const P=xe(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(w,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(V.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:j,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&K(n,0,{commit:!0}),onEndKeyDown:()=>!a&&K(s,S.length-1,{commit:!0}),onStepKeyDown:({event:x,direction:y})=>{if(!a){const z=$.includes(x.key)||x.shiftKey&&X.includes(x.key)?10:1,A=f.current,E=S[A],P=c*z*y;K(E+P,A,{commit:!0})}}})})})})});J.displayName=M;var[Q,q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:b,...h}=e,[i,d]=l.useState(null),v=C(t,w=>d(w)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(w){const S=R.current||i.getBoundingClientRect(),I=[0,S.width],j=O(I,f?[o,n]:[n,o]);return R.current=S,j(w-S.left)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=D(w.clientX);r?.(S)},onSlideMove:w=>{const S=D(w.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:w=>{const I=G[f?"from-left":"from-right"].includes(w.key);b?.({event:w,direction:I?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...b}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],w=O(f,v?[n,o]:[o,n]);return d.current=m,w(g-m.top)}return p.jsx(Q,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...b,ref:i,style:{...b.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...b}=e,h=T(M,o);return p.jsx(B.span,{...b,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(ee,o);return p.jsx(B.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=T(N,o),c=q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,b=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...b):0,i=100-Math.max(...b);return p.jsx(B.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(be,{...e,ref:c,index:r})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=T(L,o),a=q(L,o),[u,b]=l.useState(null),h=C(t,D=>b(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(B.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var we="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(B.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=we;function xe(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ke=J,Ae=te,Be=ne,Te=oe;export{Be as R,Ae as T,Ke as a,Te as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as $,b as j,r as E,j as b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-CImJlq71.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-DpZZQ75-.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-DQrtem9w.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-CaGvyBH6.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-DfzKVEQZ.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-Bl0Q4nDQ.js";import{i as kn}from"./SwitchHorizontal01-DsxrRdFb.js";import{i as xn}from"./Link01-1YHKCfLl.js";import{s as bn}from"./Trash01-C68DqBe-.js";import{i as wn,b as yn}from"./use-org-fs-qBxAqXun.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-BDnIqP7U.js";import{A as Rn}from"./avatar-DZp2nksb.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-9a3EU_B7.js";import{u as zn}from"./use-org-auth-client-BVmUiQl1.js";import{I as Pn}from"./icon-button-BjI92SlL.js";function Hn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Ut(a);if(M===""){g();return}if(!Gt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Zn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Zn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Vn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Qn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={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)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).replace(/bull/g,we).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(),tr=A(lt).replace(/bull/g,we).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(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="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",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ir=A("^ {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",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ut=A(ye).replace("hr",K).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",ae).getRegex(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).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",ae).getRegex(),or={...Ae,lheading:tr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).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",ae).getRegex()},lr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).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:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
1
|
+
import{c as $,b as j,r as E,j as b,l as q,af as vt,t as ue,aW as Xe,a2 as At,m as Mt,K as St,b3 as Ct,h as Je}from"./index-CMKEBGKX.js";import{a as Rt,n as Ye,E as ie,o as Et,x as $t,y as P,z as _t,A as Lt,B as et,C as N,G as Ee,H as It,I as zt,J as $e,K as Pt,L as V,N as D,m as H,O as Y,T as tt,R as ke,Q as xe,U as Ht,V as jt,W as Nt,X as Ot,Y as Bt,s as Dt,Z as Ft,u as qt,b as Wt}from"./usage-stats-BCvxtMFR.js";import{T as _,n as Ut,i as Gt,E as Zt}from"./editor-classes-DA3QHiC-.js";import{a as Vt,e as nt,s as Kt,S as Qt}from"./suggestion-Dp-vLwaS.js";import{B as Xt,c as Jt,t as Yt,C as rt,f as en,g as _e,s as tn,m as Le,a as Ie,b as nn,d as ze,e as rn,h as sn,i as an,j as on,k as ln,l as cn,n as un}from"./index-CMr2QK3C.js";import{ai as hn,aj as dn,al as pn,a0 as fn,be as gn,aW as mn}from"./agent-icon-DtT3h4UX.js";import{i as kn}from"./SwitchHorizontal01-QjLd4gai.js";import{i as xn}from"./Link01-Dy_bSHLe.js";import{s as bn}from"./Trash01-CTrNlbT8.js";import{i as wn,b as yn}from"./use-org-fs-BRfBBlvJ.js";import{E as Pe,i as st,b as Tn,c as vn,d as it,A as An,e as Mn,m as Sn,f as Cn}from"./markdown-yQLRhm2z.js";import{A as Rn}from"./avatar-49aPXdv7.js";import{d as En,e as $n,c as _n,C as Ln,b as In}from"./command-DcKOVszs.js";import{u as zn}from"./use-org-auth-client-C3gy1liR.js";import{I as Pn}from"./icon-button-B1pb2_kW.js";function Hn(t){const e=$.c(30),{editor:n}=t,r=j(),[s,i]=E.useState(!1),[a,l]=E.useState(""),[o,u]=E.useState(!1);let c;e[0]!==n?(c=n.isActive("link"),e[0]=n,e[1]=c):c=e[1];const h=c;let d;e[2]!==n||e[3]!==s?(d=()=>{if(s){i(!1);return}const M=n.getAttributes("link").href;l(typeof M=="string"?M:""),u(!1),i(!0)},e[2]=n,e[3]=s,e[4]=d):d=e[4];const f=d;let p;e[5]!==n?(p=()=>{n.chain().focus().extendMarkRange("link").unsetLink().run(),i(!1)},e[5]=n,e[6]=p):p=e[6];const g=p;let m;e[7]!==a||e[8]!==n||e[9]!==g?(m=()=>{const M=Ut(a);if(M===""){g();return}if(!Gt(M)){u(!0);return}n.chain().focus().extendMarkRange("link").setLink({href:M}).run(),i(!1)},e[7]=a,e[8]=n,e[9]=g,e[10]=m):m=e[10];const k=m;let w;e[11]!==r?(w=r("markdownEditor.link"),e[11]=r,e[12]=w):w=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(xn,{size:14}),e[13]=y):y=e[13];let T;e[14]!==h||e[15]!==w||e[16]!==f?(T=b.jsx(_,{active:h,label:w,onClick:f,children:y}),e[14]=h,e[15]=w,e[16]=f,e[17]=T):T=e[17];let x;e[18]!==h||e[19]!==k||e[20]!==a||e[21]!==n||e[22]!==o||e[23]!==s||e[24]!==g||e[25]!==r?(x=s&&b.jsxs("div",{className:"absolute left-0 top-full z-20 mt-1.5 flex w-64 items-center gap-0.5 rounded-md bg-popover p-1 shadow-soft",onBlur:M=>{M.currentTarget.contains(M.relatedTarget)||i(!1)},children:[b.jsx("input",{autoFocus:!0,type:"text","aria-label":r("markdownEditor.linkInputAriaLabel"),"aria-invalid":o,placeholder:r("markdownEditor.linkPlaceholder"),value:a,onChange:M=>{l(M.target.value),u(!1)},onKeyDown:M=>{M.key==="Enter"?(M.preventDefault(),k()):M.key==="Escape"&&(M.preventDefault(),i(!1),n.chain().focus().run())},className:q("h-7 min-w-0 flex-1 rounded bg-transparent px-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none",o&&"text-destructive")}),b.jsx(_,{active:!1,label:r("markdownEditor.linkApply"),onClick:k,children:b.jsx(vt,{size:14})}),h&&b.jsx(_,{active:!1,label:r("markdownEditor.linkRemove"),onClick:g,children:b.jsx(bn,{size:14})})]}),e[18]=h,e[19]=k,e[20]=a,e[21]=n,e[22]=o,e[23]=s,e[24]=g,e[25]=r,e[26]=x):x=e[26];let v;return e[27]!==T||e[28]!==x?(v=b.jsxs("div",{className:"relative",children:[T,x]}),e[27]=T,e[28]=x,e[29]=v):v=e[29],v}const le=()=>{const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=b.jsx("div",{className:"mx-0.5 h-4 w-px bg-border"}),t[0]=e):e=t[0],e},He=t=>{const e=$.c(2),{children:n}=t;let r;return e[0]!==n?(r=b.jsx("span",{className:"text-2xs font-semibold leading-none",children:n}),e[0]=n,e[1]=r):r=e[1],r},at=[1,2,3],jn=({editor:t,state:e})=>t.isEditable&&!e.selection.empty&&!t.isActive("image")&&!t.isActive("attachment")&&!t.isActive("codeBlock");function Nn(t){const e=$.c(20),{editor:n}=t,r=j(),[s,i]=E.useState(null);let a;e[0]!==n?(a={editor:n,selector:On},e[0]=n,e[1]=a):a=e[1];const l=Rt(a);let o;e[2]!==r?(o=r("markdownEditor.heading1"),e[2]=r,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("markdownEditor.heading2"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==r?(c=r("markdownEditor.heading3"),e[6]=r,e[7]=c):c=e[7];let h;e[8]!==o||e[9]!==u||e[10]!==c?(h={1:o,2:u,3:c},e[8]=o,e[9]=u,e[10]=c,e[11]=h):h=e[11];const d=h;let f;e[12]!==n||e[13]!==d||e[14]!==s||e[15]!==l||e[16]!==r?(f=s&&b.jsxs(Xt,{editor:n,shouldShow:jn,appendTo:s,className:"flex items-center gap-0.5 rounded-lg bg-popover p-1 shadow-soft","aria-label":r("markdownEditor.toolbarAriaLabel"),children:[b.jsx(_,{active:l.bold,label:r("markdownEditor.bold"),onClick:()=>n.chain().focus().toggleBold().run(),children:b.jsx(hn,{size:14})}),b.jsx(_,{active:l.italic,label:r("markdownEditor.italic"),onClick:()=>n.chain().focus().toggleItalic().run(),children:b.jsx(dn,{size:14})}),b.jsx(_,{active:l.strike,label:r("markdownEditor.strikethrough"),onClick:()=>n.chain().focus().toggleStrike().run(),children:b.jsx(pn,{size:14})}),b.jsx(_,{active:l.code,label:r("markdownEditor.code"),onClick:()=>n.chain().focus().toggleCode().run(),children:b.jsx(fn,{size:14})}),b.jsx(le,{}),at.map((g,m)=>b.jsx(_,{active:l.headings[m]??!1,label:d[g],onClick:()=>n.chain().focus().toggleHeading({level:g}).run(),children:b.jsx(He,{children:`H${g}`})},g)),b.jsx(le,{}),b.jsx(_,{active:l.bulletList,label:r("markdownEditor.bulletList"),onClick:()=>n.chain().focus().toggleBulletList().run(),children:b.jsx(kn,{size:14})}),b.jsx(_,{active:l.orderedList,label:r("markdownEditor.orderedList"),onClick:()=>n.chain().focus().toggleOrderedList().run(),children:b.jsx(He,{children:"1."})}),b.jsx(_,{active:l.blockquote,label:r("markdownEditor.quote"),onClick:()=>n.chain().focus().toggleBlockquote().run(),children:b.jsx(gn,{size:14})}),b.jsx(le,{}),b.jsx(Hn,{editor:n})]}),e[12]=n,e[13]=d,e[14]=s,e[15]=l,e[16]=r,e[17]=f):f=e[17];let p;return e[18]!==f?(p=b.jsx("div",{ref:i,className:"relative z-20",children:f}),e[18]=f,e[19]=p):p=e[19],p}function On(t){const{editor:e}=t;return{bold:e.isActive("bold"),italic:e.isActive("italic"),strike:e.isActive("strike"),code:e.isActive("code"),headings:at.map(n=>e.isActive("heading",{level:n})),bulletList:e.isActive("bulletList"),orderedList:e.isActive("orderedList"),blockquote:e.isActive("blockquote")}}const Bn=10,Dn=25,Fn={"image/png":".png","image/jpeg":".jpg","image/gif":".gif","image/webp":".webp","image/avif":".avif","image/svg+xml":".svg"};function qn(t){return t.name.match(/\.[a-z0-9]{1,8}$/i)?.[0]??Fn[t.type]??""}function Wn(){const t=$.c(4),e=j(),{upload:n}=wn(Pe),r=yn(Pe);let s;return t[0]!==r||t[1]!==e||t[2]!==n?(s={uploadFile:async a=>{const l=st(a),o=l?Bn:Dn;if(a.size>o*1024*1024)return ue.error(e("markdownEditor.fileTooLarge",{name:a.name,max:String(o)})),null;const u=l?Tn:vn,c=`${crypto.randomUUID()}${qn(a)}`;try{return await n.mutateAsync({dir:u,files:[new File([a],c,{type:a.type})]}),r(`${u}/${c}`)}catch{return ue.error(e("markdownEditor.uploadFailed",{name:a.name})),null}}},t[0]=r,t[1]=e,t[2]=n,t[3]=s):s=t[3],s}const ee=new Ye("uploadSlots"),Un=ie.create({name:"uploadSlots",addProseMirrorPlugins(){return[new Et({key:ee,state:{init:()=>new Map,apply(t,e){const n=t.getMeta(ee);if(!t.docChanged&&!n)return e;const r=new Map;for(const[s,i]of e)r.set(s,t.mapping.map(i));if(n){const[s,i]=n;i===null?r.delete(s):r.set(s,i)}return r}}})]}});function he(t,e,n){return t.setMeta(ee,[e,n])}function Gn(t,e){return ee.getState(t)?.get(e)}function Zn(t,e,n,r,s){const{schema:i}=t.state,a=i.nodes[n];if(!a)return;const l=a.create(r),o=t.state.selection.to===e,u=t.state.doc.resolve(e),c=u.parent.textBetween(Math.max(0,u.parentOffset-1),u.parentOffset,void 0,""),h=()=>i.text(" "),d=l.isInline?[...c&&!/\s/.test(c)?[h()]:[],l,h()]:l,f=t.state.tr.replaceWith(e,e,d);let p=e,g=e;f.mapping.maps.at(-1)?.forEach((T,x,v,M)=>{p=v,g=M});let m;f.doc.nodesBetween(p,g,(T,x)=>{T===l&&(m=x+T.nodeSize)});let k=m??g;m!==void 0&&l.isInline&&(k+=1);const w=i.nodes.paragraph;m!==void 0&&l.isBlock&&w&&(f.doc.resolve(m).nodeAfter?.isTextblock||f.insert(m,w.create()),k=m+1);const y=$t.near(f.doc.resolve(k));o&&f.setSelection(y),s&&he(f,s,y.to),t.dispatch(f)}function Vn(t){return!t||t.files.length===0?[]:t.getData("text/html")!==""&&t.getData("text/plain").trim()!==""?[]:Array.from(t.files)}function Kn(t=!0){const e=j(),{uploadFile:n}=Wn(),r=E.useRef(n);r.current=n;const[s,i]=E.useState(0),a=E.useRef(0),l=h=>{a.current+=h,i(a.current)},o=(h,d,f)=>{if(!t||d.length===0)return!1;l(d.length);const p=Symbol("upload");return h.dispatch(he(h.state.tr,p,f)),(async()=>{for(const g of d)try{const m=await r.current(g);if(!m||h.isDestroyed)continue;const k=st(g);Zn(h,Gn(h.state,p)??h.state.selection.to,k?"image":"attachment",k?{src:m,alt:g.name}:{href:m,name:g.name},p)}catch{ue.error(e("markdownEditor.uploadFailed",{name:g.name}))}finally{l(-1)}h.isDestroyed||h.dispatch(he(h.state.tr,p,null))})(),!0};return{pending:s,uploading:()=>a.current>0,uploadInto:o,handlePaste:(h,d)=>{const f=Vn(d.clipboardData);return f.length===0?!1:(d.stopPropagation(),o(h,f,h.state.selection.to))},handleDrop:(h,d,f,p)=>{if(p)return!1;const g=Array.from(d.dataTransfer?.files??[]);if(g.length===0)return!1;const m=h.posAtCoords({left:d.clientX,top:d.clientY})?.pos;return m===void 0?!1:(d.stopPropagation(),o(h,g,m))}}}function be(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var F=be();function ot(t){F=t}var O={exec:()=>null};function A(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(R.caret,"$1"),n=n.replace(s,a),r},getRegex:()=>new RegExp(n,e)};return r}var Qn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),R={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)}}>`)},Xn=/^(?:[ \t]*(?:\n|$))+/,Jn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,K=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,er=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,lt=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ct=A(lt).replace(/bull/g,we).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(),tr=A(lt).replace(/bull/g,we).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(),ye=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nr=/^[^\n]+/,Te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rr=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sr=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),ae="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",ve=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ir=A("^ {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",ve).replace("tag",ae).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ut=A(ye).replace("hr",K).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",ae).getRegex(),ar=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ut).getRegex(),Ae={blockquote:ar,code:Jn,def:rr,fences:Yn,heading:er,hr:K,html:ir,lheading:ct,list:sr,newline:Xn,paragraph:ut,table:O,text:nr},je=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",K).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",ae).getRegex(),or={...Ae,lheading:tr,table:je,paragraph:A(ye).replace("hr",K).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",je).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",ae).getRegex()},lr={...Ae,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ve).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:O,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(ye).replace("hr",K).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",ct).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ur=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ht=/^( {2,}|\\)\n(?!\s*$)/,hr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,W=/[\p{P}\p{S}]/u,oe=/[\s\p{P}\p{S}]/u,Me=/[^\s\p{P}\p{S}]/u,dr=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,oe).getRegex(),dt=/(?!~)[\p{P}\p{S}]/u,pr=/(?!~)[\s\p{P}\p{S}]/u,fr=/(?:[^\s\p{P}\p{S}]|~)/u,gr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Qn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pt=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mr=A(pt,"u").replace(/punct/g,W).getRegex(),kr=A(pt,"u").replace(/punct/g,dt).getRegex(),ft="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",xr=A(ft,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),br=A(ft,"gu").replace(/notPunctSpace/g,fr).replace(/punctSpace/g,pr).replace(/punct/g,dt).getRegex(),wr=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),yr=A(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,W).getRegex(),Tr="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",vr=A(Tr,"gu").replace(/notPunctSpace/g,Me).replace(/punctSpace/g,oe).replace(/punct/g,W).getRegex(),Ar=A(/\\(punct)/,"gu").replace(/punct/g,W).getRegex(),Mr=A(/^<(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(),Sr=A(ve).replace("(?:-->|$)","-->").getRegex(),Cr=A("^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",Sr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Rr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gt=A(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",Te).getRegex(),mt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Te).getRegex(),Er=A("reflink|nolink(?!\\()","g").replace("reflink",gt).replace("nolink",mt).getRegex(),Ne=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Se={_backpedal:O,anyPunctuation:Ar,autolink:Mr,blockSkip:gr,br:ht,code:ur,del:O,delLDelim:O,delRDelim:O,emStrongLDelim:mr,emStrongRDelimAst:xr,emStrongRDelimUnd:wr,escape:cr,link:Rr,nolink:mt,punctuation:dr,reflink:gt,reflinkSearch:Er,tag:Cr,text:hr,url:O},$r={...Se,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},de={...Se,emStrongRDelimAst:br,emStrongLDelim:kr,delLDelim:yr,delRDelim:vr,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ne).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:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ne).getRegex()},_r={...de,br:A(ht).replace("{2,}","*").getRegex(),text:A(de.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Q={normal:Ae,gfm:or,pedantic:lr},U={normal:Se,gfm:de,breaks:_r,pedantic:$r},Lr={"&":"&","<":"<",">":">",'"':""","'":"'"},Oe=t=>Lr[t];function z(t,e){if(e){if(R.escapeTest.test(t))return t.replace(R.escapeReplace,Oe)}else if(R.escapeTestNoEncode.test(t))return t.replace(R.escapeReplaceNoEncode,Oe);return t}function Be(t){try{t=encodeURI(t).replace(R.percentDecode,"%")}catch{return null}return t}function De(t,e){let n=t.replace(R.findPipe,(i,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),r=n.split(R.splitPipe),s=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(;s<r.length;s++)r[s]=r[s].trim().replace(R.slashPipe,"|");return r}function G(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function Ir(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function zr(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function Fe(t,e,n,r,s){let i=e.href,a=e.title||null,l=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:a,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function Pr(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
|
|
3
3
|
`).map(i=>{let a=i.match(n.other.beginningSpace);if(a===null)return i;let[l]=a;return l.length>=s.length?i.slice(s.length):i}).join(`
|
|
4
4
|
`)}var ne=class{options;rules;lexer;constructor(t){this.options=t||F}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 n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:G(n,`
|