@band-app/server 0.9.0 → 0.9.2
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/{DockviewTerminalContainer-DTMR0Pwz.js → DockviewTerminalContainer-DWHIc-4-.js} +2 -2
- package/dist/client/assets/TerminalPanel-m73O5CIc.js +4 -0
- package/dist/client/assets/{_basePickBy-DJWAkaF0.js → _basePickBy-BKaMH_7t.js} +1 -1
- package/dist/client/assets/{_baseUniq-FEm9-P2D.js → _baseUniq-CQkxA8qy.js} +1 -1
- package/dist/client/assets/addon-search-DCE88ROn.js +7 -0
- package/dist/client/assets/addon-webgl-CeRvQWkA.js +58 -0
- package/dist/client/assets/{arc-CPPy8LJ7.js → arc-Bose4Nlr.js} +1 -1
- package/dist/client/assets/{architectureDiagram-VXUJARFQ-CnVtE-oS.js → architectureDiagram-VXUJARFQ-2sFlOIMR.js} +1 -1
- package/dist/client/assets/{blockDiagram-VD42YOAC-B-RhgMhe.js → blockDiagram-VD42YOAC-DJAsEjOI.js} +1 -1
- package/dist/client/assets/{c4Diagram-YG6GDRKO-B8VrSS8f.js → c4Diagram-YG6GDRKO-DheiVuNi.js} +1 -1
- package/dist/client/assets/channel-BnzmiQbl.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-_tB3SRRs.js → chunk-4BX2VUAB-DvXp34cF.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-v_BTOAps.js → chunk-55IACEB6-CDyPx-Tg.js} +1 -1
- package/dist/client/assets/{chunk-B4BG7PRW-5Px4nD1U.js → chunk-B4BG7PRW-BTtdtPVg.js} +1 -1
- package/dist/client/assets/{chunk-DI55MBZ5-DD7BAjfI.js → chunk-DI55MBZ5-9GoKl76p.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-DwxW4g8y.js → chunk-FMBD7UC4-C01REv3a.js} +1 -1
- package/dist/client/assets/{chunk-QN33PNHL-Cp7Y9ku0.js → chunk-QN33PNHL-CoCCh58U.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-ByfjbCRs.js → chunk-QZHKN3VN-DDFTrbxS.js} +1 -1
- package/dist/client/assets/{chunk-TZMSLE5B-Cty3yzGm.js → chunk-TZMSLE5B-DfvMfmy7.js} +1 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-BH5EB2Fv.js +1 -0
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-BH5EB2Fv.js +1 -0
- package/dist/client/assets/clone-Bat0lHCp.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-CuZNFcRJ.js → cose-bilkent-S5V4N54A-B7exDDfj.js} +1 -1
- package/dist/client/assets/{dagre-6UL2VRFP-ChhVONtn.js → dagre-6UL2VRFP-Cel7r0v3.js} +2 -2
- package/dist/client/assets/{diagram-PSM6KHXK-AKiiqmtg.js → diagram-PSM6KHXK-C7lbk8Kf.js} +1 -1
- package/dist/client/assets/{diagram-QEK2KX5R-DKFD2YXL.js → diagram-QEK2KX5R-DvlCS56Z.js} +1 -1
- package/dist/client/assets/{diagram-S2PKOQOG-kKPeG7jX.js → diagram-S2PKOQOG-HSl5Oecr.js} +1 -1
- package/dist/client/assets/{erDiagram-Q2GNP2WA-ZnoAiEdS.js → erDiagram-Q2GNP2WA-B2_RJg2L.js} +1 -1
- package/dist/client/assets/{flowDiagram-NV44I4VS-Baxcbjc5.js → flowDiagram-NV44I4VS-BPYCHaLb.js} +1 -1
- package/dist/client/assets/{ganttDiagram-JELNMOA3-CBb3nHo0.js → ganttDiagram-JELNMOA3-CD-msupP.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-BTFZnSDI.js → gitGraphDiagram-V2S2FVAM-xwVYLUhE.js} +1 -1
- package/dist/client/assets/{graph-MrEC2xKX.js → graph-Dbv1AWta.js} +1 -1
- package/dist/client/assets/{highlighted-body-B3W2YXNL-BS2hJfWh.js → highlighted-body-B3W2YXNL-CGkNHhPo.js} +1 -1
- package/dist/client/assets/{index-DJQTsQGO.js → index-A2XaYyYw.js} +1 -1
- package/dist/client/assets/{index-CVRHdbPK.js → index-B5YiIiNq.js} +1 -1
- package/dist/client/assets/{index-CfEE8a0_.js → index-B7ZSAY53.js} +1 -1
- package/dist/client/assets/{index-Ch0l8OjM.js → index-BBs4HyTg.js} +1 -1
- package/dist/client/assets/{index-rV38Cr7z.js → index-BDzzWD64.js} +1 -1
- package/dist/client/assets/{index-BdJiXI-P.js → index-BptuxjE6.js} +1 -1
- package/dist/client/assets/{index-DDMeeyZ8.js → index-BwhOjkOO.js} +1 -1
- package/dist/client/assets/{index-B_GvXb7m.js → index-C5NAzmgp.js} +1 -1
- package/dist/client/assets/{index-CIdqPvjZ.js → index-CESm9EUT.js} +1 -1
- package/dist/client/assets/{index-VXPLEG91.js → index-CF0KBM34.js} +1 -1
- package/dist/client/assets/{index-BDN9e11q.js → index-C_SXPmbV.js} +1 -1
- package/dist/client/assets/{index-aPJvCOPb.js → index-CiPtBqSR.js} +1 -1
- package/dist/client/assets/{index-CBisgMx2.js → index-D5rP0BSv.js} +1 -1
- package/dist/client/assets/{index-DOXhz9pD.js → index-D9aDcgku.js} +1 -1
- package/dist/client/assets/{index-7DARDVRb.js → index-DGsskOgM.js} +1 -1
- package/dist/client/assets/{index-CVeoY9iI.js → index-Do3joW0D.js} +1 -1
- package/dist/client/assets/{index-D4NhPj-o.js → index-DsmQlt3C.js} +1 -1
- package/dist/client/assets/{index-CuQunDRR.js → index-qKsRlhz3.js} +1 -1
- package/dist/client/assets/{infoDiagram-HS3SLOUP-oFwyD78x.js → infoDiagram-HS3SLOUP-hfH1C_pr.js} +1 -1
- package/dist/client/assets/{journeyDiagram-XKPGCS4Q-lo9DdnCu.js → journeyDiagram-XKPGCS4Q-ZSxc6ITj.js} +1 -1
- package/dist/client/assets/{kanban-definition-3W4ZIXB7-4rwLVKZW.js → kanban-definition-3W4ZIXB7-U4z7vSSP.js} +1 -1
- package/dist/client/assets/{layout-1mxSpUNJ.js → layout-BkxMGu4B.js} +1 -1
- package/dist/client/assets/{linear-Dkz4-xmm.js → linear-Bdy4hNwe.js} +1 -1
- package/dist/client/assets/{main-3mnrWI33.js → main-DwiBxZvA.js} +215 -215
- package/dist/client/assets/main-Tt4WZJMG.css +1 -0
- package/dist/client/assets/{mindmap-definition-VGOIOE7T-C9DGZ2wo.js → mindmap-definition-VGOIOE7T-CJyNknV7.js} +1 -1
- package/dist/client/assets/{pieDiagram-ADFJNKIX-CIJsYcr_.js → pieDiagram-ADFJNKIX-DwfChKVB.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-AYHSOK5B-LYETacVk.js → quadrantDiagram-AYHSOK5B-QD4JEDeD.js} +1 -1
- package/dist/client/assets/{requirementDiagram-UZGBJVZJ-QMgoQzIc.js → requirementDiagram-UZGBJVZJ-DBOLPRLx.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-TZEHDZUN-BR64MzNX.js → sankeyDiagram-TZEHDZUN-D73QuPjf.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-WL72ISMW-B1Wc3LIZ.js → sequenceDiagram-WL72ISMW-sQ_Dekb1.js} +1 -1
- package/dist/client/assets/{square-terminal-VVrCccPf.js → square-terminal-BmZtdUqJ.js} +1 -1
- package/dist/client/assets/{stateDiagram-FKZM4ZOC-Bimijufb.js → stateDiagram-FKZM4ZOC-DejJZefR.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-C3KpG1Lu.js +1 -0
- package/dist/client/assets/{timeline-definition-IT6M3QCI-CaCnBJch.js → timeline-definition-IT6M3QCI-5gT-CArs.js} +1 -1
- package/dist/client/assets/{treemap-GDKQZRPO-CeDCW21U.js → treemap-GDKQZRPO-Sm5U59Kz.js} +1 -1
- package/dist/client/assets/{useSessionListContext-DsCz19Pd.js → useSessionListContext-iz8sf9L6.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId-C8WDf9jx.js → workspace._workspaceId-CgBppz9O.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.changes-upws5-8z.js → workspace._workspaceId.changes-Dn42JgBH.js} +1 -1
- package/dist/client/assets/workspace._workspaceId.code-C3Nx-w_a.js +1 -0
- package/dist/client/assets/{workspace._workspaceId.code._-Ceg9Aq5G.js → workspace._workspaceId.code._-OCcsWq1e.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.code.index-ClXlPUEL.js → workspace._workspaceId.code.index-D8CkYPgV.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.index-e__7t5a1.js → workspace._workspaceId.index-BBhBKPNM.js} +1 -1
- package/dist/client/assets/{workspace._workspaceId.terminal-DHlQ0uu7.js → workspace._workspaceId.terminal-B_mQrV6_.js} +2 -2
- package/dist/client/assets/xterm-AZ511Krh.css +1 -0
- package/dist/client/assets/xterm-iwIWEtGc.js +10 -0
- package/dist/client/assets/{xychartDiagram-PRI3JC2R-U_1LNIry.js → xychartDiagram-PRI3JC2R-h6Sm8OTK.js} +2 -2
- package/dist/server/assets/{DockviewTerminalContainer-BCSFPnwD.js → DockviewTerminalContainer-TTt325-b.js} +3 -3
- package/dist/server/assets/{TerminalPanel-Da-2bxgG.js → TerminalPanel-DRzfuu-T.js} +154 -5
- package/dist/server/assets/{_basePickBy-SBHiqTXX.js → _basePickBy-wC54TbQu.js} +2 -2
- package/dist/server/assets/{_baseUniq-DPIyDr4x.js → _baseUniq-rn84LOSK.js} +1 -1
- package/dist/server/assets/{_tanstack-start-manifest_v-C_DVF4Z3.js → _tanstack-start-manifest_v-fymioLKZ.js} +1 -1
- package/dist/server/assets/addon-search-BS53_-cp.js +1247 -0
- package/dist/server/assets/addon-webgl-BeO2q2vc.js +2167 -0
- package/dist/server/assets/{arc-ZDC2L6mg.js → arc-DdlCXdeL.js} +1 -1
- package/dist/server/assets/{architecture-7HQA4BMR-CB5Azb5t.js → architecture-7HQA4BMR-CHMWBrpq.js} +6 -6
- package/dist/server/assets/{architectureDiagram-VXUJARFQ-Qsrsg-uI.js → architectureDiagram-VXUJARFQ-CqvTF0VE.js} +6 -6
- package/dist/server/assets/{blockDiagram-VD42YOAC-CP4tRTmG.js → blockDiagram-VD42YOAC-Bc-Qk0S9.js} +6 -6
- package/dist/server/assets/{c4Diagram-YG6GDRKO-B6OsjqeL.js → c4Diagram-YG6GDRKO-COi5PFIX.js} +2 -2
- package/dist/server/assets/{channel-BJqsX8gK.js → channel-B2GZC_H9.js} +1 -1
- package/dist/server/assets/{chunk-4BX2VUAB-DzxL-Vlj.js → chunk-4BX2VUAB-rhgtjYHc.js} +1 -1
- package/dist/server/assets/{chunk-55IACEB6-BznKDRi0.js → chunk-55IACEB6-CLPQZ1p7.js} +1 -1
- package/dist/server/assets/{chunk-B4BG7PRW-c8DbjAi7.js → chunk-B4BG7PRW-6Vb3MfoD.js} +4 -4
- package/dist/server/assets/{chunk-DI55MBZ5-DYkuYgNP.js → chunk-DI55MBZ5-D-VoOG5D.js} +3 -3
- package/dist/server/assets/{chunk-FMBD7UC4-D3Myc1HK.js → chunk-FMBD7UC4-CByHMCvr.js} +1 -1
- package/dist/server/assets/{chunk-QN33PNHL-DdNxAwkp.js → chunk-QN33PNHL-CRZHpta9.js} +1 -1
- package/dist/server/assets/{chunk-QZHKN3VN-TJbRnd9f.js → chunk-QZHKN3VN-ncUfNOMa.js} +1 -1
- package/dist/server/assets/{chunk-TZMSLE5B-CxQdoi6h.js → chunk-TZMSLE5B-BGxlM2si.js} +1 -1
- package/dist/server/assets/{classDiagram-v2-WZHVMYZB-IOVBIWh6.js → classDiagram-2ON5EDUG-SabF3eWj.js} +5 -5
- package/dist/server/assets/{classDiagram-2ON5EDUG-IOVBIWh6.js → classDiagram-v2-WZHVMYZB-SabF3eWj.js} +5 -5
- package/dist/server/assets/{clone-A7GSbvNR.js → clone-CQGJ84x8.js} +1 -1
- package/dist/server/assets/{cose-bilkent-S5V4N54A-BbaFLHYm.js → cose-bilkent-S5V4N54A-WSuuldrv.js} +1 -1
- package/dist/server/assets/{dagre-6UL2VRFP-Bp8x8Mkv.js → dagre-6UL2VRFP-DZfpOMzg.js} +6 -6
- package/dist/server/assets/{diagram-PSM6KHXK-ZKIV5gl5.js → diagram-PSM6KHXK-DCKwYA11.js} +7 -7
- package/dist/server/assets/{diagram-QEK2KX5R-ENECOyQd.js → diagram-QEK2KX5R-GhJ4dzVD.js} +6 -6
- package/dist/server/assets/{diagram-S2PKOQOG-7SMgq4LB.js → diagram-S2PKOQOG-DBeAGiPC.js} +6 -6
- package/dist/server/assets/{erDiagram-Q2GNP2WA-mHeHQZph.js → erDiagram-Q2GNP2WA-XphQqWxZ.js} +4 -4
- package/dist/server/assets/{flowDiagram-NV44I4VS-pTU34caI.js → flowDiagram-NV44I4VS-Cw9n-l35.js} +5 -5
- package/dist/server/assets/{ganttDiagram-JELNMOA3-B9-9mkf4.js → ganttDiagram-JELNMOA3-CqqJbuET.js} +2 -2
- package/dist/server/assets/{gitGraph-G5XIXVHT-68r2EbJb.js → gitGraph-G5XIXVHT-DvgCllrO.js} +6 -6
- package/dist/server/assets/{gitGraphDiagram-V2S2FVAM-CXj_hNTZ.js → gitGraphDiagram-V2S2FVAM-CUIK26NP.js} +7 -7
- package/dist/server/assets/{graph--fuCvixs.js → graph-B-wfb0D4.js} +2 -2
- package/dist/server/assets/{highlighted-body-B3W2YXNL-DJufNUHF.js → highlighted-body-B3W2YXNL-BVGB-5j8.js} +1 -1
- package/dist/server/assets/{index-AsjLe9eZ.js → index-BCNMZ2-I.js} +2 -2
- package/dist/server/assets/{index-BolAqCkn.js → index-BHR21Rwx.js} +2 -2
- package/dist/server/assets/{index-FBfgxNp1.js → index-BUKmWu07.js} +3 -3
- package/dist/server/assets/{index-B6HcpJov.js → index-BUSq_KFc.js} +5 -5
- package/dist/server/assets/{index-C_FHzNiq.js → index-BoCTcQyA.js} +2 -2
- package/dist/server/assets/{index-DA-nC30D.js → index-CMs8dLKE.js} +2 -2
- package/dist/server/assets/{index-BSPyhc2t.js → index-CznnHJPs.js} +2 -2
- package/dist/server/assets/{index-CQ3_WP_c.js → index-D4Zt6M4l.js} +2 -2
- package/dist/server/assets/{index-CfPJkLrt.js → index-D6pmvl-E.js} +2 -2
- package/dist/server/assets/{index-Ctq8nouX.js → index-DAlp0b3q.js} +2 -2
- package/dist/server/assets/{index-DgRltpic.js → index-DEkonSBc.js} +4 -4
- package/dist/server/assets/{index-B4cboZEK.js → index-DqCcM85h.js} +2 -2
- package/dist/server/assets/{index-JauattMS.js → index-O9-otWU5.js} +2 -2
- package/dist/server/assets/{index-D9dAcVgg.js → index-a-16Ui_6.js} +1 -1
- package/dist/server/assets/{index-ChucNhe1.js → index-g309PIeU.js} +5 -5
- package/dist/server/assets/{index-thBo3ZQF.js → index-tbrMCGeF.js} +2 -2
- package/dist/server/assets/{index-BY__qPtY.js → index-wCTie1M2.js} +1 -1
- package/dist/server/assets/{index-BMhls_mP.js → index-zE6_NUk4.js} +3 -3
- package/dist/server/assets/{info-VBDWY6EO-DY1jJr3X.js → info-VBDWY6EO-7gpYhbqJ.js} +6 -6
- package/dist/server/assets/{infoDiagram-HS3SLOUP-B6M5J7al.js → infoDiagram-HS3SLOUP-DuA859Z1.js} +5 -5
- package/dist/server/assets/{journeyDiagram-XKPGCS4Q-DlXB8U9o.js → journeyDiagram-XKPGCS4Q-PiSB9SFS.js} +4 -4
- package/dist/server/assets/{kanban-definition-3W4ZIXB7-C17kXkGE.js → kanban-definition-3W4ZIXB7-Fl-z0jKd.js} +2 -2
- package/dist/server/assets/{layout-DtjOA0vY.js → layout-BwTTgoVB.js} +4 -4
- package/dist/server/assets/{linear-m15QQpKT.js → linear-6z47mrNn.js} +1 -1
- package/dist/server/assets/{mermaid-3ZIDBTTL-DshSJqMO.js → mermaid-3ZIDBTTL-rjgzkBvP.js} +1 -1
- package/dist/server/assets/{mermaid-parser.core-LDgr4CW-.js → mermaid-parser.core-OR3z5VGq.js} +11 -11
- package/dist/server/assets/{mindmap-definition-VGOIOE7T-mtvWltnU.js → mindmap-definition-VGOIOE7T-RsSUd0h5.js} +3 -3
- package/dist/server/assets/{packet-DYOGHKS2-CYYSXK1h.js → packet-DYOGHKS2-DdI3YR11.js} +6 -6
- package/dist/server/assets/{pie-VRWISCQL-CWqjVMl3.js → pie-VRWISCQL-CvLwiHxU.js} +6 -6
- package/dist/server/assets/{pieDiagram-ADFJNKIX-Dp5PMO-9.js → pieDiagram-ADFJNKIX-CS1QqpkR.js} +7 -7
- package/dist/server/assets/{quadrantDiagram-AYHSOK5B-Emk5w_FF.js → quadrantDiagram-AYHSOK5B-sOsgkH1q.js} +2 -2
- package/dist/server/assets/{radar-ZZBFDIW7-C4fGyCNG.js → radar-ZZBFDIW7-DcuGjSpy.js} +6 -6
- package/dist/server/assets/{requirementDiagram-UZGBJVZJ-BFx3mPBU.js → requirementDiagram-UZGBJVZJ-DxsTf_dF.js} +3 -3
- package/dist/server/assets/{router-B9HVgTRx.js → router-zkGZin-Y.js} +629 -356
- package/dist/server/assets/{sankeyDiagram-TZEHDZUN-CdhDQVra.js → sankeyDiagram-TZEHDZUN-Dv69rb4x.js} +1 -1
- package/dist/server/assets/{sequenceDiagram-WL72ISMW-D5nqoNmF.js → sequenceDiagram-WL72ISMW-DdZyEvL3.js} +3 -3
- package/dist/server/assets/{square-terminal-D-98qeQh.js → square-terminal-hlWJQE0a.js} +1 -1
- package/dist/server/assets/{stateDiagram-FKZM4ZOC-DegPKhzE.js → stateDiagram-FKZM4ZOC-D3Tj81-E.js} +8 -8
- package/dist/server/assets/{stateDiagram-v2-4FDKWEC3-CyBVK9Nd.js → stateDiagram-v2-4FDKWEC3-Dx5gqfCT.js} +4 -4
- package/dist/server/assets/{timeline-definition-IT6M3QCI-tvTSRDgB.js → timeline-definition-IT6M3QCI-CcjZ3wnd.js} +2 -2
- package/dist/server/assets/{treemap-GDKQZRPO-5-jKUpIN.js → treemap-GDKQZRPO-BRethL8T.js} +6 -6
- package/dist/server/assets/{workspace._workspaceId-CePk4lAs.js → workspace._workspaceId-7fdVKeNu.js} +2 -2
- package/dist/server/assets/{workspace._workspaceId.changes-Cu_-SRPF.js → workspace._workspaceId.changes-OtWo7a6k.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.code._-C5FPkpSY.js → workspace._workspaceId.code._-C8dWBJOO.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.code.index-Crmc16LI.js → workspace._workspaceId.code.index-DpGdriuG.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.index-xl9QlCX1.js → workspace._workspaceId.index-DGG24yQO.js} +1 -1
- package/dist/server/assets/{workspace._workspaceId.terminal-wcBXHH_7.js → workspace._workspaceId.terminal-BCUV7dQN.js} +2 -2
- package/dist/server/assets/xterm-CkV9CBvP.js +8028 -0
- package/dist/server/assets/{xychartDiagram-PRI3JC2R-CniJ7uun.js → xychartDiagram-PRI3JC2R-C01ACkIV.js} +2 -2
- package/dist/server/server.js +2 -2
- package/dist/start-server.mjs +120 -35
- package/package.json +8 -6
- package/dist/client/assets/TerminalPanel-P0Ue9bhc.js +0 -4
- package/dist/client/assets/channel-B1eOC6X0.js +0 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-U7rVez2A.js +0 -1
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-U7rVez2A.js +0 -1
- package/dist/client/assets/clone-BPRzYwkw.js +0 -1
- package/dist/client/assets/main-CFEKOhg6.css +0 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-CWzs2bwO.js +0 -1
- package/dist/client/assets/workspace._workspaceId.code-Lxdwg6nV.js +0 -1
- package/dist/client/assets/xterm-B-qIQCd3.js +0 -16
- package/dist/client/assets/xterm-DDGTF8rc.css +0 -1
- package/dist/server/assets/xterm-R4LLEgbX.js +0 -8417
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{Z as gi,$ as xi,ak as Xt,aj as di,a0 as fi,a1 as pi,a2 as a,a5 as Nt,aA as mi,a6 as yi,ap as bi,ay as St,a9 as Ai,aw as Yt,ax as wi,aR as Ci,
|
|
1
|
+
import{Z as gi,$ as xi,ak as Xt,aj as di,a0 as fi,a1 as pi,a2 as a,a5 as Nt,aA as mi,a6 as yi,ap as bi,ay as St,a9 as Ai,aw as Yt,ax as wi,aR as Ci,b_ as Si,aZ as Wt}from"./main-DwiBxZvA.js";import{i as _i}from"./init-Gi6I4Gst.js";import{o as ki}from"./ordinal-Cboi1Yqb.js";import{l as zt}from"./linear-Bdy4hNwe.js";import"./defaultLocale-DX6XiGOO.js";function Ri(e,t,i){e=+e,t=+t,i=(n=arguments.length)<2?(t=e,e=0,1):n<3?1:+i;for(var s=-1,n=Math.max(0,Math.ceil((t-e)/i))|0,o=new Array(n);++s<n;)o[s]=e+s*i;return o}function yt(){var e=ki().unknown(void 0),t=e.domain,i=e.range,s=0,n=1,o,g,m=!1,p=0,k=0,v=.5;delete e.unknown;function C(){var b=t().length,E=n<s,D=E?n:s,P=E?s:n;o=(P-D)/Math.max(1,b-p+k*2),m&&(o=Math.floor(o)),D+=(P-D-o*(b-p))*v,g=o*(1-p),m&&(D=Math.round(D),g=Math.round(g));var I=Ri(b).map(function(y){return D+o*y});return i(E?I.reverse():I)}return e.domain=function(b){return arguments.length?(t(b),C()):t()},e.range=function(b){return arguments.length?([s,n]=b,s=+s,n=+n,C()):[s,n]},e.rangeRound=function(b){return[s,n]=b,s=+s,n=+n,m=!0,C()},e.bandwidth=function(){return g},e.step=function(){return o},e.round=function(b){return arguments.length?(m=!!b,C()):m},e.padding=function(b){return arguments.length?(p=Math.min(1,k=+b),C()):p},e.paddingInner=function(b){return arguments.length?(p=Math.min(1,b),C()):p},e.paddingOuter=function(b){return arguments.length?(k=+b,C()):k},e.align=function(b){return arguments.length?(v=Math.max(0,Math.min(1,b)),C()):v},e.copy=function(){return yt(t(),[s,n]).round(m).paddingInner(p).paddingOuter(k).align(v)},_i.apply(C(),arguments)}var bt=(function(){var e=a(function(O,h,u,x){for(u=u||{},x=O.length;x--;u[O[x]]=h);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],o=[1,6],g=[1,7],m=[1,5,10,12,14,16,18,19,21,23,34,35,36],p=[1,25],k=[1,26],v=[1,28],C=[1,29],b=[1,30],E=[1,31],D=[1,32],P=[1,33],I=[1,34],y=[1,35],_=[1,36],c=[1,37],W=[1,43],z=[1,42],U=[1,47],X=[1,50],l=[1,10,12,14,16,18,19,21,23,34,35,36],L=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],R=[1,64],$={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(h,u,x,d,w,r,at){var f=r.length-1;switch(w){case 5:d.setOrientation(r[f]);break;case 9:d.setDiagramTitle(r[f].text.trim());break;case 12:d.setLineData({text:"",type:"text"},r[f]);break;case 13:d.setLineData(r[f-1],r[f]);break;case 14:d.setBarData({text:"",type:"text"},r[f]);break;case 15:d.setBarData(r[f-1],r[f]);break;case 16:this.$=r[f].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=r[f].trim(),d.setAccDescription(this.$);break;case 19:this.$=r[f-1];break;case 20:this.$=[Number(r[f-2]),...r[f]];break;case 21:this.$=[Number(r[f])];break;case 22:d.setXAxisTitle(r[f]);break;case 23:d.setXAxisTitle(r[f-1]);break;case 24:d.setXAxisTitle({type:"text",text:""});break;case 25:d.setXAxisBand(r[f]);break;case 26:d.setXAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 27:this.$=r[f-1];break;case 28:this.$=[r[f-2],...r[f]];break;case 29:this.$=[r[f]];break;case 30:d.setYAxisTitle(r[f]);break;case 31:d.setYAxisTitle(r[f-1]);break;case 32:d.setYAxisTitle({type:"text",text:""});break;case 33:d.setYAxisRangeData(Number(r[f-2]),Number(r[f]));break;case 37:this.$={text:r[f],type:"text"};break;case 38:this.$={text:r[f],type:"text"};break;case 39:this.$={text:r[f],type:"markdown"};break;case 40:this.$=r[f];break;case 41:this.$=r[f-1]+""+r[f];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:o,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:o,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:o,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,34]),e(m,[2,35]),e(m,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:o,36:g}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,34:n,35:o,36:g}),{11:23,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:39,13:38,24:W,27:z,29:40,30:41,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:45,15:44,27:U,33:46,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:49,17:48,24:X,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{11:52,17:51,24:X,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},{20:[1,53]},{22:[1,54]},e(l,[2,18]),{1:[2,2]},e(l,[2,8]),e(l,[2,9]),e(L,[2,37],{40:55,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c}),e(L,[2,38]),e(L,[2,39]),e(S,[2,40]),e(S,[2,42]),e(S,[2,43]),e(S,[2,44]),e(S,[2,45]),e(S,[2,46]),e(S,[2,47]),e(S,[2,48]),e(S,[2,49]),e(S,[2,50]),e(S,[2,51]),e(l,[2,10]),e(l,[2,22],{30:41,29:56,24:W,27:z}),e(l,[2,24]),e(l,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,11]),e(l,[2,30],{33:60,27:U}),e(l,[2,32]),{31:[1,61]},e(l,[2,12]),{17:62,24:X},{25:63,27:R},e(l,[2,14]),{17:65,24:X},e(l,[2,16]),e(l,[2,17]),e(S,[2,41]),e(l,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(l,[2,31]),{27:[1,69]},e(l,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(l,[2,15]),e(l,[2,26]),e(l,[2,27]),{11:59,32:72,37:24,38:p,39:k,40:27,41:v,42:C,43:b,44:E,45:D,46:P,47:I,48:y,49:_,50:c},e(l,[2,33]),e(l,[2,19]),{25:73,27:R},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(h,u){if(u.recoverable)this.trace(h);else{var x=new Error(h);throw x.hash=u,x}},"parseError"),parse:a(function(h){var u=this,x=[0],d=[],w=[null],r=[],at=this.table,f="",lt=0,It=0,hi=2,Mt=1,li=r.slice.call(arguments,1),T=Object.create(this.lexer),Y={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(Y.yy[dt]=this.yy[dt]);T.setInput(h,Y.yy),Y.yy.lexer=T,Y.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var ft=T.yylloc;r.push(ft);var ci=T.options&&T.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ui(V){x.length=x.length-2*V,w.length=w.length-V,r.length=r.length-V}a(ui,"popStack");function Vt(){var V;return V=d.pop()||T.lex()||Mt,typeof V!="number"&&(V instanceof Array&&(d=V,V=d.pop()),V=u.symbols_[V]||V),V}a(Vt,"lex");for(var M,H,B,pt,j={},ct,F,Bt,ut;;){if(H=x[x.length-1],this.defaultActions[H]?B=this.defaultActions[H]:((M===null||typeof M>"u")&&(M=Vt()),B=at[H]&&at[H][M]),typeof B>"u"||!B.length||!B[0]){var mt="";ut=[];for(ct in at[H])this.terminals_[ct]&&ct>hi&&ut.push("'"+this.terminals_[ct]+"'");T.showPosition?mt="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+T.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[M]||M)+"'":mt="Parse error on line "+(lt+1)+": Unexpected "+(M==Mt?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(mt,{text:T.match,token:this.terminals_[M]||M,line:T.yylineno,loc:ft,expected:ut})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+M);switch(B[0]){case 1:x.push(M),w.push(T.yytext),r.push(T.yylloc),x.push(B[1]),M=null,It=T.yyleng,f=T.yytext,lt=T.yylineno,ft=T.yylloc;break;case 2:if(F=this.productions_[B[1]][1],j.$=w[w.length-F],j._$={first_line:r[r.length-(F||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(F||1)].first_column,last_column:r[r.length-1].last_column},ci&&(j._$.range=[r[r.length-(F||1)].range[0],r[r.length-1].range[1]]),pt=this.performAction.apply(j,[f,It,lt,Y.yy,B[1],w,r].concat(li)),typeof pt<"u")return pt;F&&(x=x.slice(0,-1*F*2),w=w.slice(0,-1*F),r=r.slice(0,-1*F)),x.push(this.productions_[B[1]][0]),w.push(j.$),r.push(j._$),Bt=at[x[x.length-2]][x[x.length-1]],x.push(Bt);break;case 3:return!0}}return!0},"parse")},Et=(function(){var O={EOF:1,parseError:a(function(u,x){if(this.yy.parser)this.yy.parser.parseError(u,x);else throw new Error(u)},"parseError"),setInput:a(function(h,u){return this.yy=u||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var u=h.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var u=h.length,x=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var w=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),u=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
|
5
5
|
`+u+"^"},"showPosition"),test_match:a(function(h,u){var x,d,w;if(this.options.backtrack_lexer&&(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(w.yylloc.range=this.yylloc.range.slice(0))),d=h[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],x=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var r in w)this[r]=w[r];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,u,x,d;this._more||(this.yytext="",this.match="");for(var w=this._currentRules(),r=0;r<w.length;r++)if(x=this._input.match(this.rules[w[r]]),x&&(!u||x[0].length>u[0].length)){if(u=x,d=r,this.options.backtrack_lexer){if(h=this.test_match(x,w[r]),h!==!1)return h;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(h=this.test_match(u,w[d]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var u=this.next();return u||this.lex()},"lex"),begin:a(function(u){this.conditionStack.push(u)},"begin"),popState:a(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:a(function(u){this.begin(u)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(u,x,d,w){switch(d){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return O})();$.lexer=Et;function N(){this.yy={}}return a(N,"Parser"),N.prototype=$,$.Parser=N,new N})();bt.parser=bt;var Ti=bt;function At(e){return e.type==="bar"}a(At,"isBarPlot");function _t(e){return e.type==="band"}a(_t,"isBandAxisData");function q(e){return e.type==="linear"}a(q,"isLinearAxisData");var G,Ht=(G=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,g)=>Math.max(g.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const g=Si(n,1,o),m=g?g.width:o.length*i,p=g?g.height:i;s.width=Math.max(s.width,m),s.height=Math.max(s.height,p)}return n.remove(),s}},a(G,"TextDimensionCalculatorWithFont"),G),Ot=.7,Ft=.2,Q,Ut=(Q=class{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Ot*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Ot*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ft*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ft*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},a(Q,"BaseAxis"),Q),Z,Di=(Z=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Nt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},a(Z,"BandAxis"),Z),K,vi=(K=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},a(K,"LinearAxis"),K);function wt(e,t,i,s){const n=new Ht(s);return _t(e)?new Di(t,i,e.categories,e.title,n):new vi(t,i,[e.min,e.max],e.title,n)}a(wt,"getAxis");var J,Pi=(J=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},a(J,"ChartTitle"),J);function $t(e,t,i,s){const n=new Ht(s);return new Pi(n,e,t,i)}a($t,"getChartTitleComponent");var tt,Li=(tt=class{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=Wt().y(s=>s[0]).x(s=>s[1])(t):i=Wt().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},a(tt,"LinePlot"),tt),it,Ei=(it=class{constructor(t,i,s,n,o,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=g}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},a(it,"BarPlot"),it),et,Ii=(et=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Li(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}},a(et,"BasePlot"),et);function jt(e,t,i){return new Ii(e,t,i)}a(jt,"getPlotComponent");var st,Mi=(st=class{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:$t(t,i,s,n),plot:jt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),m=this.componentStore.plot.calculateSpace({width:o,height:g});t-=m.width,i-=m.height,m=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=m.height,i-=m.height,this.componentStore.xAxis.setAxisPosition("bottom"),m=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=m.height,this.componentStore.yAxis.setAxisPosition("left"),m=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=m.width,t-=m.width,t>0&&(o+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+g}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),m=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:m});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,n=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,o=s+p.height,t>0&&(g+=t,t=0),i>0&&(m+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:m}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+m]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(k=>At(k))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},a(st,"Orchestrator"),st),nt,Vi=(nt=class{static build(t,i,s,n){return new Mi(t,i,s,n).getDrawableElement()}},a(nt,"XYChartBuilder"),nt),rt=0,qt,ot=Tt(),ht=Rt(),A=Dt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function Rt(){const e=Ci(),t=St();return Yt(e.xyChart,t.themeVariables.xyChart)}a(Rt,"getChartDefaultThemeConfig");function Tt(){const e=St();return Yt(wi.xyChart,e.xyChart)}a(Tt,"getChartDefaultConfig");function Dt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Dt,"getChartDefaultData");function xt(e){const t=St();return Ai(e.trim(),t)}a(xt,"textSanitizer");function Gt(e){qt=e}a(Gt,"setTmpSVGG");function Qt(e){e==="horizontal"?ot.chartOrientation="horizontal":ot.chartOrientation="vertical"}a(Qt,"setOrientation");function Zt(e){A.xAxis.title=xt(e.text)}a(Zt,"setXAxisTitle");function vt(e,t){A.xAxis={type:"linear",title:A.xAxis.title,min:e,max:t},gt=!0}a(vt,"setXAxisRangeData");function Kt(e){A.xAxis={type:"band",title:A.xAxis.title,categories:e.map(t=>xt(t.text))},gt=!0}a(Kt,"setXAxisBand");function Jt(e){A.yAxis.title=xt(e.text)}a(Jt,"setYAxisTitle");function ti(e,t){A.yAxis={type:"linear",title:A.yAxis.title,min:e,max:t},kt=!0}a(ti,"setYAxisRangeData");function ii(e){const t=Math.min(...e),i=Math.max(...e),s=q(A.yAxis)?A.yAxis.min:1/0,n=q(A.yAxis)?A.yAxis.max:-1/0;A.yAxis={type:"linear",title:A.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}a(ii,"setYAxisRangeFromPlotData");function Pt(e){let t=[];if(e.length===0)return t;if(!gt){const i=q(A.xAxis)?A.xAxis.min:1/0,s=q(A.xAxis)?A.xAxis.max:-1/0;vt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),_t(A.xAxis)&&(t=A.xAxis.categories.map((i,s)=>[i,e[s]])),q(A.xAxis)){const i=A.xAxis.min,s=A.xAxis.max,n=(s-i)/(e.length-1),o=[];for(let g=i;g<=s;g+=n)o.push(`${g}`);t=o.map((g,m)=>[g,e[m]])}return t}a(Pt,"transformDataWithoutCategory");function Lt(e){return Ct[e===0?0:e%Ct.length]}a(Lt,"getPlotColorFromPalette");function ei(e,t){const i=Pt(t);A.plots.push({type:"line",strokeFill:Lt(rt),strokeWidth:2,data:i}),rt++}a(ei,"setLineData");function si(e,t){const i=Pt(t);A.plots.push({type:"bar",fill:Lt(rt),data:i}),rt++}a(si,"setBarData");function ni(){if(A.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return A.title=Xt(),Vi.build(ot,A,ht,qt)}a(ni,"getDrawableElem");function ai(){return ht}a(ai,"getChartThemeConfig");function ri(){return ot}a(ri,"getChartConfig");function oi(){return A}a(oi,"getXYChartData");var Bi=a(function(){bi(),rt=0,ot=Tt(),A=Dt(),ht=Rt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),Wi={getDrawableElem:ni,clear:Bi,setAccTitle:pi,getAccTitle:fi,setDiagramTitle:di,getDiagramTitle:Xt,getAccDescription:xi,setAccDescription:gi,setOrientation:Qt,setXAxisTitle:Zt,setXAxisRangeData:vt,setXAxisBand:Kt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:Gt,getChartThemeConfig:ai,getChartConfig:ri,getXYChartData:oi},zi=a((e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),g=n.getChartConfig(),m=n.getXYChartData().plots[0].data.map(y=>y[1]);function p(y){return y==="top"?"text-before-edge":"middle"}a(p,"getDominantBaseLine");function k(y){return y==="left"?"start":y==="right"?"end":"middle"}a(k,"getTextAnchor");function v(y){return`translate(${y.x}, ${y.y}) rotate(${y.rotation||0})`}a(v,"getTextTransformation"),Nt.debug(`Rendering xychart chart
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var u=this.next();return u||this.lex()},"lex"),begin:a(function(u){this.conditionStack.push(u)},"begin"),popState:a(function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},"topState"),pushState:a(function(u){this.begin(u)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(u,x,d,w){switch(d){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 44:break;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return O})();$.lexer=Et;function N(){this.yy={}}return a(N,"Parser"),N.prototype=$,$.Parser=N,new N})();bt.parser=bt;var Ti=bt;function At(e){return e.type==="bar"}a(At,"isBarPlot");function _t(e){return e.type==="band"}a(_t,"isBandAxisData");function q(e){return e.type==="linear"}a(q,"isLinearAxisData");var G,Ht=(G=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((o,g)=>Math.max(g.length,o),0)*i,height:i};const s={width:0,height:0},n=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const o of t){const g=Si(n,1,o),m=g?g.width:o.length*i,p=g?g.height:i;s.width=Math.max(s.width,m),s.height=Math.max(s.height,p)}return n.remove(),s}},a(G,"TextDimensionCalculatorWithFont"),G),Ot=.7,Ft=.2,Q,Ut=(Q=class{constructor(t,i,s,n){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,this.axisPosition==="left"||this.axisPosition==="right"?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){Ot*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(Ot*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ft*t.width;this.outerPadding=Math.min(s.width/2,n);const o=s.height+this.axisConfig.labelPadding*2;this.labelTextHeight=s.height,o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),n=Ft*t.height;this.outerPadding=Math.min(s.height/2,n);const o=s.width+this.axisConfig.labelPadding*2;o<=i&&(i-=o,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const s=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=s.height+this.axisConfig.titlePadding*2;this.titleTextHeight=s.height,n<=i&&(i-=n,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return this.axisPosition==="left"||this.axisPosition==="right"?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(i),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${i},${this.getScaleValue(s)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(s)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i} L ${this.getScaleValue(s)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(i=>({text:i.toString(),x:this.getScaleValue(i),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(s=>({path:`M ${this.getScaleValue(s)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(s)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");return this.axisPosition==="bottom"?this.getDrawableElementsForBottomAxis():this.axisPosition==="top"?this.getDrawableElementsForTopAxis():[]}},a(Q,"BaseAxis"),Q),K,Di=(K=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.categories=s,this.scale=yt().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=yt().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),Nt.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},a(K,"BandAxis"),K),Z,vi=(Z=class extends Ut{constructor(t,i,s,n,o){super(t,n,o,i),this.domain=s,this.scale=zt().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];this.axisPosition==="left"&&t.reverse(),this.scale=zt().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},a(Z,"LinearAxis"),Z);function wt(e,t,i,s){const n=new Ht(s);return _t(e)?new Di(t,i,e.categories,e.title,n):new vi(t,i,[e.min,e.max],e.title,n)}a(wt,"getAxis");var J,Pi=(J=class{constructor(t,i,s,n){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),n=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=n&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=n,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},a(J,"ChartTitle"),J);function $t(e,t,i,s){const n=new Ht(s);return new Pi(n,e,t,i)}a($t,"getChartTitleComponent");var tt,Li=(tt=class{constructor(t,i,s,n,o){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=n,this.plotIndex=o}getDrawableElement(){const t=this.plotData.data.map(s=>[this.xAxis.getScaleValue(s[0]),this.yAxis.getScaleValue(s[1])]);let i;return this.orientation==="horizontal"?i=Wt().y(s=>s[0]).x(s=>s[1])(t):i=Wt().x(s=>s[0]).y(s=>s[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},a(tt,"LinePlot"),tt),it,Ei=(it=class{constructor(t,i,s,n,o,g){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=n,this.orientation=o,this.plotIndex=g}getDrawableElement(){const t=this.barData.data.map(o=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),s=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*(1-.05),n=s/2;return this.orientation==="horizontal"?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:this.boundingRect.x,y:o[0]-n,height:s,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(o=>({x:o[0]-n,y:o[1],width:s,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},a(it,"BarPlot"),it),et,Ii=(et=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const n=new Li(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break;case"bar":{const n=new Ei(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...n.getDrawableElement())}break}return t}},a(et,"BasePlot"),et);function jt(e,t,i){return new Ii(e,t,i)}a(jt,"getPlotComponent");var st,Mi=(st=class{constructor(t,i,s,n){this.chartConfig=t,this.chartData=i,this.componentStore={title:$t(t,i,s,n),plot:jt(t,i,s),xAxis:wt(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},n),yAxis:wt(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},n)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),g=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),m=this.componentStore.plot.calculateSpace({width:o,height:g});t-=m.width,i-=m.height,m=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),n=m.height,i-=m.height,this.componentStore.xAxis.setAxisPosition("bottom"),m=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=m.height,this.componentStore.yAxis.setAxisPosition("left"),m=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=m.width,t-=m.width,t>0&&(o+=t,t=0),i>0&&(g+=i,i=0),this.componentStore.plot.calculateSpace({width:o,height:g}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.xAxis.setRange([s,s+o]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:n+g}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(p=>At(p))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,n=0,o=0,g=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),m=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:g,height:m});t-=p.width,i-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=p.height,i-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=p.width,n=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=p.height,o=s+p.height,t>0&&(g+=t,t=0),i>0&&(m+=i,i=0),this.componentStore.plot.calculateSpace({width:g,height:m}),this.componentStore.plot.setBoundingBoxXY({x:n,y:o}),this.componentStore.yAxis.setRange([n,n+g]),this.componentStore.yAxis.setBoundingBoxXY({x:n,y:s}),this.componentStore.xAxis.setRange([o,o+m]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some(k=>At(k))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation==="horizontal"?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},a(st,"Orchestrator"),st),nt,Vi=(nt=class{static build(t,i,s,n){return new Mi(t,i,s,n).getDrawableElement()}},a(nt,"XYChartBuilder"),nt),rt=0,qt,ot=Tt(),ht=Rt(),A=Dt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1;function Rt(){const e=Ci(),t=St();return Yt(e.xyChart,t.themeVariables.xyChart)}a(Rt,"getChartDefaultThemeConfig");function Tt(){const e=St();return Yt(wi.xyChart,e.xyChart)}a(Tt,"getChartDefaultConfig");function Dt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}a(Dt,"getChartDefaultData");function xt(e){const t=St();return Ai(e.trim(),t)}a(xt,"textSanitizer");function Gt(e){qt=e}a(Gt,"setTmpSVGG");function Qt(e){e==="horizontal"?ot.chartOrientation="horizontal":ot.chartOrientation="vertical"}a(Qt,"setOrientation");function Kt(e){A.xAxis.title=xt(e.text)}a(Kt,"setXAxisTitle");function vt(e,t){A.xAxis={type:"linear",title:A.xAxis.title,min:e,max:t},gt=!0}a(vt,"setXAxisRangeData");function Zt(e){A.xAxis={type:"band",title:A.xAxis.title,categories:e.map(t=>xt(t.text))},gt=!0}a(Zt,"setXAxisBand");function Jt(e){A.yAxis.title=xt(e.text)}a(Jt,"setYAxisTitle");function ti(e,t){A.yAxis={type:"linear",title:A.yAxis.title,min:e,max:t},kt=!0}a(ti,"setYAxisRangeData");function ii(e){const t=Math.min(...e),i=Math.max(...e),s=q(A.yAxis)?A.yAxis.min:1/0,n=q(A.yAxis)?A.yAxis.max:-1/0;A.yAxis={type:"linear",title:A.yAxis.title,min:Math.min(s,t),max:Math.max(n,i)}}a(ii,"setYAxisRangeFromPlotData");function Pt(e){let t=[];if(e.length===0)return t;if(!gt){const i=q(A.xAxis)?A.xAxis.min:1/0,s=q(A.xAxis)?A.xAxis.max:-1/0;vt(Math.min(i,1),Math.max(s,e.length))}if(kt||ii(e),_t(A.xAxis)&&(t=A.xAxis.categories.map((i,s)=>[i,e[s]])),q(A.xAxis)){const i=A.xAxis.min,s=A.xAxis.max,n=(s-i)/(e.length-1),o=[];for(let g=i;g<=s;g+=n)o.push(`${g}`);t=o.map((g,m)=>[g,e[m]])}return t}a(Pt,"transformDataWithoutCategory");function Lt(e){return Ct[e===0?0:e%Ct.length]}a(Lt,"getPlotColorFromPalette");function ei(e,t){const i=Pt(t);A.plots.push({type:"line",strokeFill:Lt(rt),strokeWidth:2,data:i}),rt++}a(ei,"setLineData");function si(e,t){const i=Pt(t);A.plots.push({type:"bar",fill:Lt(rt),data:i}),rt++}a(si,"setBarData");function ni(){if(A.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return A.title=Xt(),Vi.build(ot,A,ht,qt)}a(ni,"getDrawableElem");function ai(){return ht}a(ai,"getChartThemeConfig");function ri(){return ot}a(ri,"getChartConfig");function oi(){return A}a(oi,"getXYChartData");var Bi=a(function(){bi(),rt=0,ot=Tt(),A=Dt(),ht=Rt(),Ct=ht.plotColorPalette.split(",").map(e=>e.trim()),gt=!1,kt=!1},"clear"),Wi={getDrawableElem:ni,clear:Bi,setAccTitle:pi,getAccTitle:fi,setDiagramTitle:di,getDiagramTitle:Xt,getAccDescription:xi,setAccDescription:gi,setOrientation:Qt,setXAxisTitle:Kt,setXAxisRangeData:vt,setXAxisBand:Zt,setYAxisTitle:Jt,setYAxisRangeData:ti,setLineData:ei,setBarData:si,setTmpSVGG:Gt,getChartThemeConfig:ai,getChartConfig:ri,getXYChartData:oi},zi=a((e,t,i,s)=>{const n=s.db,o=n.getChartThemeConfig(),g=n.getChartConfig(),m=n.getXYChartData().plots[0].data.map(y=>y[1]);function p(y){return y==="top"?"text-before-edge":"middle"}a(p,"getDominantBaseLine");function k(y){return y==="left"?"start":y==="right"?"end":"middle"}a(k,"getTextAnchor");function v(y){return`translate(${y.x}, ${y.y}) rotate(${y.rotation||0})`}a(v,"getTextTransformation"),Nt.debug(`Rendering xychart chart
|
|
7
7
|
`+e);const C=mi(t),b=C.append("g").attr("class","main"),E=b.append("rect").attr("width",g.width).attr("height",g.height).attr("class","background");yi(C,g.height,g.width,!0),C.attr("viewBox",`0 0 ${g.width} ${g.height}`),E.attr("fill",o.backgroundColor),n.setTmpSVGG(C.append("g").attr("class","mermaid-tmp-group"));const D=n.getDrawableElem(),P={};function I(y){let _=b,c="";for(const[W]of y.entries()){let z=b;W>0&&P[c]&&(z=P[c]),c+=y[W],_=P[c],_||(_=P[c]=z.append("g").attr("class",y[W]))}return _}a(I,"getGroup");for(const y of D){if(y.data.length===0)continue;const _=I(y.groupTexts);switch(y.type){case"rect":if(_.selectAll("rect").data(y.data).enter().append("rect").attr("x",c=>c.x).attr("y",c=>c.y).attr("width",c=>c.width).attr("height",c=>c.height).attr("fill",c=>c.fill).attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth),g.showDataLabel)if(g.chartOrientation==="horizontal"){let c=function(l,L){const{data:S,label:R}=l;return L*R.length*W<=S.width-10};a(c,"fitsHorizontally");const W=.7,z=y.data.map((l,L)=>({data:l,label:m[L].toString()})).filter(l=>l.data.width>0&&l.data.height>0),U=z.map(l=>{const{data:L}=l;let S=L.height*.7;for(;!c(l,S)&&S>0;)S-=1;return S}),X=Math.floor(Math.min(...U));_.selectAll("text").data(z).enter().append("text").attr("x",l=>l.data.x+l.data.width-10).attr("y",l=>l.data.y+l.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${X}px`).text(l=>l.label)}else{let c=function(l,L,S){const{data:R,label:$}=l,N=L*$.length*.7,O=R.x+R.width/2,h=O-N/2,u=O+N/2,x=h>=R.x&&u<=R.x+R.width,d=R.y+S+L<=R.y+R.height;return x&&d};a(c,"fitsInBar");const W=10,z=y.data.map((l,L)=>({data:l,label:m[L].toString()})).filter(l=>l.data.width>0&&l.data.height>0),U=z.map(l=>{const{data:L,label:S}=l;let R=L.width/(S.length*.7);for(;!c(l,R,W)&&R>0;)R-=1;return R}),X=Math.floor(Math.min(...U));_.selectAll("text").data(z).enter().append("text").attr("x",l=>l.data.x+l.data.width/2).attr("y",l=>l.data.y+W).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${X}px`).text(l=>l.label)}break;case"text":_.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",c=>c.fill).attr("font-size",c=>c.fontSize).attr("dominant-baseline",c=>p(c.verticalPos)).attr("text-anchor",c=>k(c.horizontalPos)).attr("transform",c=>v(c)).text(c=>c.text);break;case"path":_.selectAll("path").data(y.data).enter().append("path").attr("d",c=>c.path).attr("fill",c=>c.fill?c.fill:"none").attr("stroke",c=>c.strokeFill).attr("stroke-width",c=>c.strokeWidth);break}}},"draw"),Oi={draw:zi},Ui={parser:Ti,db:Wi,renderer:Oi};export{Ui as diagram};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, R as React } from "../server.js";
|
|
2
|
-
import { F as useAdapter, G as useQueryClient, H as useQuery, t as trpc, J as DockviewReact, K as Columns2, M as Rows2, O as Plus, X } from "./router-
|
|
3
|
-
import { S as SquareTerminal } from "./square-terminal-
|
|
2
|
+
import { F as useAdapter, G as useQueryClient, H as useQuery, t as trpc, J as DockviewReact, K as Columns2, M as Rows2, O as Plus, X } from "./router-zkGZin-Y.js";
|
|
3
|
+
import { S as SquareTerminal } from "./square-terminal-hlWJQE0a.js";
|
|
4
4
|
import "node:async_hooks";
|
|
5
5
|
import "node:stream";
|
|
6
6
|
import "util";
|
|
@@ -12,7 +12,7 @@ import "node:process";
|
|
|
12
12
|
import "node:path";
|
|
13
13
|
import "node:url";
|
|
14
14
|
const TerminalPanel = reactExports.lazy(
|
|
15
|
-
() => import("./TerminalPanel-
|
|
15
|
+
() => import("./TerminalPanel-DRzfuu-T.js").then((m) => ({ default: m.TerminalPanel }))
|
|
16
16
|
);
|
|
17
17
|
function uuid() {
|
|
18
18
|
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../server.js";
|
|
2
|
-
import { bb as openExternalUrl } from "./router-
|
|
2
|
+
import { b as useSettingsQuery, bb as openExternalUrl, bc as SearchBar } from "./router-zkGZin-Y.js";
|
|
3
3
|
import "node:async_hooks";
|
|
4
4
|
import "node:stream";
|
|
5
5
|
import "util";
|
|
@@ -10,6 +10,25 @@ import "node:stream/web";
|
|
|
10
10
|
import "node:process";
|
|
11
11
|
import "node:path";
|
|
12
12
|
import "node:url";
|
|
13
|
+
const SEARCH_DECORATIONS = {
|
|
14
|
+
matchBackground: "#515c6a",
|
|
15
|
+
activeMatchBackground: "#a9913680",
|
|
16
|
+
matchOverviewRuler: "#a9913680",
|
|
17
|
+
activeMatchColorOverviewRuler: "#a99136"
|
|
18
|
+
};
|
|
19
|
+
const DEFAULT_SEARCH_OPTIONS = {
|
|
20
|
+
caseSensitive: false,
|
|
21
|
+
wholeWord: false,
|
|
22
|
+
regex: false
|
|
23
|
+
};
|
|
24
|
+
function toXtermSearchOptions(opts) {
|
|
25
|
+
return {
|
|
26
|
+
caseSensitive: opts.caseSensitive,
|
|
27
|
+
wholeWord: opts.wholeWord,
|
|
28
|
+
regex: opts.regex,
|
|
29
|
+
decorations: SEARCH_DECORATIONS
|
|
30
|
+
};
|
|
31
|
+
}
|
|
13
32
|
const DARK_TERMINAL_THEME = {
|
|
14
33
|
background: "#1e1e1e",
|
|
15
34
|
foreground: "#e8e8e8",
|
|
@@ -58,24 +77,66 @@ function TerminalPanel({
|
|
|
58
77
|
const containerRef = reactExports.useRef(null);
|
|
59
78
|
const terminalRef = reactExports.useRef(null);
|
|
60
79
|
const fitAddonRef = reactExports.useRef(null);
|
|
80
|
+
const searchAddonRef = reactExports.useRef(null);
|
|
81
|
+
const webglAddonRef = reactExports.useRef(null);
|
|
61
82
|
const wsRef = reactExports.useRef(null);
|
|
62
83
|
const onTitleChangeRef = reactExports.useRef(onTitleChange);
|
|
63
84
|
onTitleChangeRef.current = onTitleChange;
|
|
85
|
+
const { settings } = useSettingsQuery();
|
|
86
|
+
const useWebGLRenderer = settings.useWebGLTerminalRenderer ?? true;
|
|
87
|
+
const useWebGLRendererRef = reactExports.useRef(useWebGLRenderer);
|
|
88
|
+
useWebGLRendererRef.current = useWebGLRenderer;
|
|
89
|
+
const [searchOpen, setSearchOpen] = reactExports.useState(false);
|
|
90
|
+
const [searchQuery, setSearchQuery] = reactExports.useState("");
|
|
91
|
+
const [searchOptions, setSearchOptions] = reactExports.useState(DEFAULT_SEARCH_OPTIONS);
|
|
92
|
+
const [matchInfo, setMatchInfo] = reactExports.useState({
|
|
93
|
+
total: 0,
|
|
94
|
+
current: 0
|
|
95
|
+
});
|
|
96
|
+
const searchBarRef = reactExports.useRef(null);
|
|
97
|
+
const openSearchRef = reactExports.useRef(() => {
|
|
98
|
+
});
|
|
64
99
|
reactExports.useEffect(() => {
|
|
65
100
|
if (!containerRef.current) return;
|
|
66
101
|
let cancelled = false;
|
|
67
102
|
let cleanup;
|
|
68
103
|
Promise.all([
|
|
69
|
-
import("./xterm-
|
|
104
|
+
import("./xterm-CkV9CBvP.js"),
|
|
70
105
|
import("./addon-fit-D89xfLfG.js"),
|
|
71
|
-
import("./addon-web-links-CzLDtFWc.js")
|
|
72
|
-
|
|
106
|
+
import("./addon-web-links-CzLDtFWc.js"),
|
|
107
|
+
import("./addon-search-BS53_-cp.js"),
|
|
108
|
+
import("./addon-webgl-BeO2q2vc.js")
|
|
109
|
+
]).then(([xtermMod, fitMod, webLinksMod, searchMod, webglMod]) => {
|
|
110
|
+
const { Terminal: XTerm } = xtermMod;
|
|
111
|
+
const { FitAddon: XFitAddon } = fitMod;
|
|
112
|
+
const { WebLinksAddon: XWebLinksAddon } = webLinksMod;
|
|
113
|
+
const { SearchAddon: XSearchAddon } = searchMod;
|
|
114
|
+
const { WebglAddon: XWebglAddon } = webglMod;
|
|
73
115
|
if (cancelled || !containerRef.current) return;
|
|
116
|
+
const wantsWebGL = useWebGLRendererRef.current;
|
|
74
117
|
Promise.resolve({ });
|
|
75
118
|
const terminal = new XTerm({
|
|
119
|
+
// Opt in to addon-only APIs (decorations, markers, etc.) that
|
|
120
|
+
// xterm.js 6.1-beta gates behind this flag. Without it, the search
|
|
121
|
+
// addon's `findNext` throws "You must set the allowProposedApi
|
|
122
|
+
// option to true to use proposed API" the first time the user
|
|
123
|
+
// types in the find bar. The addons we ship (search, webgl) are
|
|
124
|
+
// first-party xterm.js addons that depend on these APIs.
|
|
125
|
+
allowProposedApi: true,
|
|
76
126
|
cursorBlink: true,
|
|
77
127
|
fontSize: 13,
|
|
78
128
|
fontFamily: "'SF Mono', Menlo, Monaco, 'Courier New', monospace",
|
|
129
|
+
// iTerm-style row spacing — only safe with the WebGL renderer.
|
|
130
|
+
// The WebGL addon redraws box-drawing (U+2500-U+257F), block
|
|
131
|
+
// elements (U+2580-U+259F), powerline separators, and other
|
|
132
|
+
// continuous glyphs at the full cell rect (via its `customGlyphs`
|
|
133
|
+
// option, default true) so a 1.2 lineHeight doesn't slice horizontal
|
|
134
|
+
// gaps through the opencode banner, claude-code's powerline
|
|
135
|
+
// statusline, or other ASCII art. xterm.js's DOM renderer does
|
|
136
|
+
// NOT do this — falling back to it means we have to revert to
|
|
137
|
+
// lineHeight: 1.0 to keep block art continuous.
|
|
138
|
+
// See https://github.com/band-app/band/issues/391 for history.
|
|
139
|
+
lineHeight: wantsWebGL ? 1.2 : 1,
|
|
79
140
|
macOptionIsMeta: true,
|
|
80
141
|
// Alt+Left/Right → word navigation on macOS
|
|
81
142
|
scrollback: 1e4,
|
|
@@ -92,8 +153,41 @@ function TerminalPanel({
|
|
|
92
153
|
terminal.loadAddon(fitAddon);
|
|
93
154
|
terminal.loadAddon(new XWebLinksAddon((_event, uri) => openExternalUrl(uri)));
|
|
94
155
|
terminal.open(containerRef.current);
|
|
156
|
+
let webglContextLossDisposable;
|
|
157
|
+
const attachWebGL = () => {
|
|
158
|
+
try {
|
|
159
|
+
const addon = new XWebglAddon({ customGlyphs: true });
|
|
160
|
+
terminal.loadAddon(addon);
|
|
161
|
+
webglAddonRef.current = addon;
|
|
162
|
+
webglContextLossDisposable?.dispose();
|
|
163
|
+
webglContextLossDisposable = addon.onContextLoss(() => {
|
|
164
|
+
console.warn("[TerminalPanel] WebGL context lost, reattaching addon");
|
|
165
|
+
addon.dispose();
|
|
166
|
+
webglAddonRef.current = null;
|
|
167
|
+
attachWebGL();
|
|
168
|
+
});
|
|
169
|
+
return true;
|
|
170
|
+
} catch (err) {
|
|
171
|
+
console.warn("[TerminalPanel] WebGL renderer unavailable, falling back to DOM", err);
|
|
172
|
+
return false;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
if (wantsWebGL) attachWebGL();
|
|
176
|
+
const searchAddon = new XSearchAddon();
|
|
177
|
+
terminal.loadAddon(searchAddon);
|
|
178
|
+
const searchResultsDisposable = searchAddon.onDidChangeResults((event) => {
|
|
179
|
+
setMatchInfo({
|
|
180
|
+
total: event.resultCount,
|
|
181
|
+
current: event.resultIndex >= 0 ? event.resultIndex + 1 : 0
|
|
182
|
+
});
|
|
183
|
+
});
|
|
95
184
|
terminal.attachCustomKeyEventHandler((e) => {
|
|
96
185
|
if (e.type === "keydown") {
|
|
186
|
+
if ((e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey && e.key.toLowerCase() === "f") {
|
|
187
|
+
e.preventDefault();
|
|
188
|
+
openSearchRef.current();
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
97
191
|
if (e.key === "Enter" && e.shiftKey && !e.altKey && !e.metaKey && !e.ctrlKey) {
|
|
98
192
|
terminal.input("\x1B[13;2u");
|
|
99
193
|
return false;
|
|
@@ -113,6 +207,7 @@ function TerminalPanel({
|
|
|
113
207
|
});
|
|
114
208
|
terminalRef.current = terminal;
|
|
115
209
|
fitAddonRef.current = fitAddon;
|
|
210
|
+
searchAddonRef.current = searchAddon;
|
|
116
211
|
const containerEl = containerRef.current;
|
|
117
212
|
let lastTouchY = null;
|
|
118
213
|
const onTouchStart = (e) => {
|
|
@@ -207,6 +302,8 @@ function TerminalPanel({
|
|
|
207
302
|
cleanup = () => {
|
|
208
303
|
themeObserver.disconnect();
|
|
209
304
|
resizeObserver.disconnect();
|
|
305
|
+
searchResultsDisposable.dispose();
|
|
306
|
+
webglContextLossDisposable?.dispose();
|
|
210
307
|
containerEl.removeEventListener("touchstart", onTouchStart);
|
|
211
308
|
containerEl.removeEventListener("touchmove", onTouchMove);
|
|
212
309
|
containerEl.removeEventListener("touchend", onTouchEnd);
|
|
@@ -215,6 +312,8 @@ function TerminalPanel({
|
|
|
215
312
|
terminal.dispose();
|
|
216
313
|
terminalRef.current = null;
|
|
217
314
|
fitAddonRef.current = null;
|
|
315
|
+
searchAddonRef.current = null;
|
|
316
|
+
webglAddonRef.current = null;
|
|
218
317
|
wsRef.current = null;
|
|
219
318
|
};
|
|
220
319
|
});
|
|
@@ -243,7 +342,57 @@ function TerminalPanel({
|
|
|
243
342
|
window.addEventListener("band:focus-terminal", handler);
|
|
244
343
|
return () => window.removeEventListener("band:focus-terminal", handler);
|
|
245
344
|
}, [visible]);
|
|
246
|
-
|
|
345
|
+
const handleOpenSearch = reactExports.useCallback(() => {
|
|
346
|
+
setSearchOpen(true);
|
|
347
|
+
requestAnimationFrame(() => {
|
|
348
|
+
searchBarRef.current?.focus();
|
|
349
|
+
searchBarRef.current?.select();
|
|
350
|
+
});
|
|
351
|
+
}, []);
|
|
352
|
+
openSearchRef.current = handleOpenSearch;
|
|
353
|
+
const handleCloseSearch = reactExports.useCallback(() => {
|
|
354
|
+
searchAddonRef.current?.clearDecorations();
|
|
355
|
+
setSearchOpen(false);
|
|
356
|
+
setSearchQuery("");
|
|
357
|
+
setMatchInfo({ total: 0, current: 0 });
|
|
358
|
+
terminalRef.current?.focus();
|
|
359
|
+
}, []);
|
|
360
|
+
const handleNext = reactExports.useCallback(() => {
|
|
361
|
+
if (!searchQuery) return;
|
|
362
|
+
searchAddonRef.current?.findNext(searchQuery, toXtermSearchOptions(searchOptions));
|
|
363
|
+
}, [searchQuery, searchOptions]);
|
|
364
|
+
const handlePrevious = reactExports.useCallback(() => {
|
|
365
|
+
if (!searchQuery) return;
|
|
366
|
+
searchAddonRef.current?.findPrevious(searchQuery, toXtermSearchOptions(searchOptions));
|
|
367
|
+
}, [searchQuery, searchOptions]);
|
|
368
|
+
reactExports.useEffect(() => {
|
|
369
|
+
const addon = searchAddonRef.current;
|
|
370
|
+
if (!addon) return;
|
|
371
|
+
if (!searchQuery) {
|
|
372
|
+
addon.clearDecorations();
|
|
373
|
+
setMatchInfo({ total: 0, current: 0 });
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
addon.findNext(searchQuery, toXtermSearchOptions(searchOptions));
|
|
377
|
+
}, [searchQuery, searchOptions]);
|
|
378
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex h-full w-full flex-col", children: [
|
|
379
|
+
searchOpen && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
380
|
+
SearchBar,
|
|
381
|
+
{
|
|
382
|
+
ref: searchBarRef,
|
|
383
|
+
query: searchQuery,
|
|
384
|
+
onQueryChange: setSearchQuery,
|
|
385
|
+
options: searchOptions,
|
|
386
|
+
onOptionsChange: setSearchOptions,
|
|
387
|
+
placeholder: "Find in terminal...",
|
|
388
|
+
matchInfo,
|
|
389
|
+
onNext: handleNext,
|
|
390
|
+
onPrevious: handlePrevious,
|
|
391
|
+
onClose: handleCloseSearch
|
|
392
|
+
}
|
|
393
|
+
),
|
|
394
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "relative min-h-0 flex-1", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: containerRef, className: "absolute inset-2 overflow-hidden" }) })
|
|
395
|
+
] });
|
|
247
396
|
}
|
|
248
397
|
export {
|
|
249
398
|
TerminalPanel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as isSymbol, c as baseFlatten, g as baseIteratee, k as keys, h as baseFindIndex, j as baseEach, l as arrayMap, m as hasPath, n as castPath, t as toKey, o as baseGet } from "./_baseUniq-
|
|
2
|
-
import {
|
|
1
|
+
import { e as isSymbol, c as baseFlatten, g as baseIteratee, k as keys, h as baseFindIndex, j as baseEach, l as arrayMap, m as hasPath, n as castPath, t as toKey, o as baseGet } from "./_baseUniq-rn84LOSK.js";
|
|
2
|
+
import { c6 as isObject, bH as baseRest, c7 as isIterateeCall, c8 as keysIn, c9 as eq, ca as isArrayLike, cb as isArray, cc as identity, cd as isIndex, ce as assignValue } from "./router-zkGZin-Y.js";
|
|
3
3
|
var reWhitespace = /\s/;
|
|
4
4
|
function trimmedEndIndex(string) {
|
|
5
5
|
var index = string.length;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cA as isObjectLike, cB as baseGetTag, cb as isArray, cC as Symbol$1, ca as isArrayLike, cD as arrayLikeKeys, cE as baseKeys, cF as memoize, cG as isArguments, cH as copyObject, c8 as keysIn, cI as getPrototype, cJ as cloneArrayBuffer, cK as cloneTypedArray, cL as getTag, cy as baseUnary, cM as nodeUtil, c6 as isObject, cN as copyArray, cO as isBuffer, cP as cloneBuffer, cQ as initCloneObject, cR as Stack, ce as assignValue, cS as MapCache, c9 as eq, cT as Uint8Array, cU as isTypedArray, cV as isLength, cd as isIndex, cc as identity, cw as baseFor, cW as Set } from "./router-zkGZin-Y.js";
|
|
2
2
|
var symbolTag$3 = "[object Symbol]";
|
|
3
3
|
function isSymbol(value) {
|
|
4
4
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$3;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/__root.tsx", "children": ["/", "/workspace/$workspaceId"], "preloads": ["/assets/main-
|
|
1
|
+
const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/__root.tsx", "children": ["/", "/workspace/$workspaceId"], "preloads": ["/assets/main-DwiBxZvA.js"], "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }] }, "/": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/index.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/index-B7ZSAY53.js"] }, "/workspace/$workspaceId": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.tsx", "children": ["/workspace/$workspaceId/changes", "/workspace/$workspaceId/code", "/workspace/$workspaceId/terminal", "/workspace/$workspaceId/"], "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId-CgBppz9O.js", "/assets/square-terminal-BmZtdUqJ.js", "/assets/useSessionListContext-iz8sf9L6.js"] }, "/workspace/$workspaceId/changes": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.changes.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.changes-Dn42JgBH.js"] }, "/workspace/$workspaceId/code": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.code.tsx", "children": ["/workspace/$workspaceId/code/$", "/workspace/$workspaceId/code/"], "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.code-C3Nx-w_a.js"] }, "/workspace/$workspaceId/terminal": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.terminal.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.terminal-B_mQrV6_.js"] }, "/workspace/$workspaceId/": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.index.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.index-BBhBKPNM.js"] }, "/workspace/$workspaceId/code/$": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.code.$.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.code._-OCcsWq1e.js"] }, "/workspace/$workspaceId/code/": { "filePath": "/Users/runner/work/band/band/apps/web/src/routes/workspace.$workspaceId.code.index.tsx", "assets": [{ "tag": "link", "attrs": { "rel": "stylesheet", "href": "/assets/main-Tt4WZJMG.css", "type": "text/css" } }], "preloads": ["/assets/workspace._workspaceId.code.index-D8CkYPgV.js"] } }, "clientEntry": "/assets/main-DwiBxZvA.js" });
|
|
2
2
|
export {
|
|
3
3
|
tsrStartManifest
|
|
4
4
|
};
|