lookatstudy-mobile 0.31.2 → 0.31.3
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/package.json +1 -1
- package/server.cjs +57 -3
- package/web/assets/{CanvasStage-BbqLSbD4.js → CanvasStage-Ccxan7wh.js} +1 -1
- package/web/assets/{CommandPalette-DQ5w84ic.js → CommandPalette-D8HzDvja.js} +1 -1
- package/web/assets/{CourseSearchPanel-ThxY4JL1.js → CourseSearchPanel-Dp11zUeA.js} +1 -1
- package/web/assets/{ExamView-DVLRcljJ.js → ExamView-BkOpDSyH.js} +1 -1
- package/web/assets/{ReviewPanel-D1jKVMQK.js → ReviewPanel-CyvrUQ9n.js} +1 -1
- package/web/assets/{SettingsView-BHoTkY38.js → SettingsView-DWTo5AIC.js} +2 -2
- package/web/assets/{VoicePanel-BP1Ur7sF.js → VoicePanel-CZfLESc_.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-Ca-5zS8J.js → abnfDiagram-VCTEODGH-CPRwAUhv.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-ODA7YWAP-ZI6_0Jfq.js → abnfDiagram-VCTEODGH-ODA7YWAP-Dp2Ugi00.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-C4PU3XN7-B2bOUqy0.js → architectureDiagram-5GKGNRK7-C4PU3XN7-BSi9GIa8.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-DCEYr1uX.js → architectureDiagram-5GKGNRK7-CratLAN7.js} +1 -1
- package/web/assets/{arrow-right---oCZhx2.js → arrow-right-BsX3ZJnE.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-Dx9xiTwp.js → blockDiagram-I7D4REHJ-D53LWAaI.js} +1 -1
- package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-Do5yGQuh.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-ydsf1o4S.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-DXh9Ebug.js → c4Diagram-7LVT6UL2-zyk0vkS1.js} +1 -1
- package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-DH7ShBLp.js → c4Diagram-UCG6FXSJ-75X3U2P3-DoTJpJZT.js} +1 -1
- package/web/assets/channel-D1pzr5s8.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-Bbluh_im.js → chunk-2Q5K7J3B-Bb-Fbn7J.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-CwJZ1eAQ.js → chunk-5VM5RSS4-BUnm5mZw.js} +1 -1
- package/web/assets/{chunk-7XDTSPCN-3TtQfLC2.js → chunk-7XDTSPCN-BJpcbmYi.js} +1 -1
- package/web/assets/{chunk-CTNIYPP6--48noAMq.js → chunk-CTNIYPP6-_5LkeW58.js} +1 -1
- package/web/assets/{chunk-CXNFBKHE-BMfLUSYr.js → chunk-CXNFBKHE-Cl_w1xK3.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DQz5Eh8R.js → chunk-F27PBJKO-DOnNDX_T.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-mEHtzDJe.js → chunk-IMKFNOWR-DcOUgIY6.js} +1 -1
- package/web/assets/{chunk-ISA7TJRJ-Cua7d2fi.js → chunk-ISA7TJRJ-4ehz2eVS.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-DqWkk9f8.js → chunk-JWPE2WC7-gdjQngWd.js} +1 -1
- package/web/assets/{chunk-LV3HUYFY-BCzMQT8Q.js → chunk-LV3HUYFY-0dwD8rCC.js} +1 -1
- package/web/assets/{chunk-M3IUQBOH-B-r9ydC6.js → chunk-M3IUQBOH-kelT6RI-.js} +1 -1
- package/web/assets/{chunk-NDIOYS4C-DkAwrWHj.js → chunk-NDIOYS4C-DO0anlkR.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-BjpioqkZ.js → chunk-POPQ4Y6H-v0VjJgg_.js} +1 -1
- package/web/assets/{chunk-RE4WF27V-CJEnGv6g.js → chunk-RE4WF27V-DxIwGJut.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-DGaiaQgi.js → chunk-SVP7TREG-L0IIA3ui.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-DqXyoflV.js → chunk-TICWLB2K-DGxX8kin.js} +1 -1
- package/web/assets/{chunk-VII2H2IX-CHqS8QXi.js → chunk-VII2H2IX-CPilSdxU.js} +1 -1
- package/web/assets/{chunk-X5GNSKZ3-CPiurspk.js → chunk-X5GNSKZ3-C6884RNs.js} +1 -1
- package/web/assets/{chunk-XCWWM2C3-CnpRc-BX.js → chunk-XCWWM2C3-CqqN87BO.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-xXPgDheN.js → chunk-XXDRQBXY-DWCWq3oG.js} +1 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-bHJ5LzCU.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-B1mvkdHx.js +1 -0
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-bHJ5LzCU.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-B1mvkdHx.js +1 -0
- package/web/assets/{core-iYZpQJa6.js → core-4rNLJNcM.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-Dr_WUhVB.js → cose-bilkent-JH36ORCC-BRAHxXkx.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-OB24KH3T-CQsWVK5X.js → cose-bilkent-JH36ORCC-OB24KH3T-PEuVsnbK.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-fybCqBi3.js → cynefin-OW5HDTMX-B96xQPn_.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-DwLRaQ37.js → cynefin-OW5HDTMX-GVF3BKWE-CmwiFdFp.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-H3WIRU3N-D7Mzcgjs.js → cynefinDiagram-5FMLGOSQ-H3WIRU3N-BS4Rn_lU.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-BLqywzF8.js → cynefinDiagram-5FMLGOSQ-WsNJrzND.js} +1 -1
- package/web/assets/{dagre-3AP2YEHR-DCERTXHT-C3dpohva.js → dagre-3AP2YEHR-DCERTXHT-DqLa7f22.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-QPjECY_W.js → dagre-GXQ25YYZ-ChTZSRWH.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-CwZRApeF.js → diagram-S7CK7UJ4-Cte8nBIL.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-Czqn_Fna.js → diagram-S7CK7UJ4-MULGZGEL-DrYBAuoV.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-Bo8gzrdx.js → diagram-UQ7AKVKN-BdhZy6LW.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-YQBY353J-CgDXcRAT.js → diagram-UQ7AKVKN-YQBY353J-SIQXtTtG.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-0w4db5zY.js → diagram-VSXAHHWV-C9IXdf46.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-DbTl04rE.js → diagram-VSXAHHWV-WLNH2ELY-eoBcSKFt.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-DJvH_pmt.js → diagram-VX7I27RA-CFTomYjh.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-XW6YQV5G-fzWHr6UJ.js → diagram-VX7I27RA-XW6YQV5G-Bd1uZFA4.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-DsT5qGVe.js → diagram-Z3DM3KII-Dqfg4VTQ.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-HG7RF65D-CDqb1-LL.js → diagram-Z3DM3KII-HG7RF65D-BwiG8Jl0.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-BoB0yBxV.js → ebnfDiagram-PWID7BFC-Cxj0Vv3C.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-OKY4VHYD-Dl7tZHv0.js → ebnfDiagram-PWID7BFC-OKY4VHYD-CBeGh1kf.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-TcPkrxxF.js → erDiagram-RLTQ6QDP-g318DvBL.js} +1 -1
- package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-C13XODn3.js → erDiagram-SSCWMZ5O-PIPKOIK7-B-Gfdf5U.js} +1 -1
- package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-DNbmNTnm.js → flowDiagram-A5DVABFB-2Z4AVO5R-CCYPuJH_.js} +1 -1
- package/web/assets/{flowDiagram-HODETNUW-D2o5XxIm.js → flowDiagram-HODETNUW-B9oC9dAn.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-C5IgtJLL.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-7FynKk0s.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-D36iMZvH.js → ganttDiagram-EL5Y4UJY-hu6hQzSA.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DMWMLL3G-BA7YVBKU.js → gitGraphDiagram-WWUBYQGX-DMWMLL3G-CLS0NrEQ.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DoayvLMW.js → gitGraphDiagram-WWUBYQGX-yTtXkuKU.js} +1 -1
- package/web/assets/{index-DtMB_WdP.js → index-BTHtdpYN.js} +1 -1
- package/web/assets/{index-Zmq94tKz.js → index-Brv5KtDR.js} +3 -3
- package/web/assets/{index-5UvRMS_e.js → index-DJ_vjgYj.js} +1 -1
- package/web/assets/{infoDiagram-27XIBGKW-DbMBXMvx.js → infoDiagram-27XIBGKW-c42LSbRO.js} +1 -1
- package/web/assets/{infoDiagram-RXCK75RN-HANS5KVC-NdEBDyb0.js → infoDiagram-RXCK75RN-HANS5KVC-CVdQLogu.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-CzqV69s-.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-BE12eSht.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-j9THtiQE.js → ishikawaDiagram-5VMMS53U-DzJncJmv.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-C3h3msUP.js → journeyDiagram-3NMN7TZE-wTWsGARh.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-ChETfPiS.js → journeyDiagram-EYS64GPL-OAPELBT7-DYBkNRJQ.js} +1 -1
- package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-Wjr70XLu.js → kanban-definition-3QL26DDD-I7RKWQQY-DXa9FemT.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-C1b6cL5N.js → kanban-definition-UXKFOSKX-M71sF3uC.js} +1 -1
- package/web/assets/{katex-N6JRN4PM-BIpBcqrZ.js → katex-N6JRN4PM-vlvahC1J.js} +1 -1
- package/web/assets/{layout-D2XzcM9d.js → layout-CDVV66Zl.js} +1 -1
- package/web/assets/{main-Dj875aWF.js → main-CmX_gEtO.js} +8 -8
- package/web/assets/{mermaid-layout-elk.core-CNNSrMhF.js → mermaid-layout-elk.core-VAQhTNif.js} +2 -2
- package/web/assets/{mermaid.core-CnNeOEec.js → mermaid.core-BBr71c1E.js} +5 -5
- package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-CE91aZQc.js → mindmap-definition-FBJOCRG2-KIYZG64Y-BJs0jBiv.js} +1 -1
- package/web/assets/{mindmap-definition-YA3MSWOX-Dz0JwUgH.js → mindmap-definition-YA3MSWOX-5jMWortW.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-BEOg8IHd.js → pegDiagram-XKGWAZYB-DWJAfH3i.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-OIP57N6J-CB6_i_dk.js → pegDiagram-XKGWAZYB-OIP57N6J-SoiZ0uez.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-C_aP-GDD.js → pieDiagram-E7YTZNPT-2UOTW327-4wOQMxnh.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-Btcl-uz0.js → pieDiagram-E7YTZNPT-CcLjyCkM.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-CA7HBTBO.js → quadrantDiagram-AXDQQJYC-Df75lDtG.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-CAd5tIhG.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-CTIClnUv.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-34742W6X-CLWiLZG6.js → railroadDiagram-O6MQD6OU-34742W6X-BUdIAX73.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-B7dkMwzi.js → railroadDiagram-O6MQD6OU-CGPAxOfe.js} +1 -1
- package/web/assets/{render-O7CIS3YK-DQb_czkx.js → render-O7CIS3YK-BysEI-dU.js} +7 -7
- package/web/assets/{requirementDiagram-BXWQKSXE-C70GJhMZ.js → requirementDiagram-BXWQKSXE-DmpSPAPs.js} +1 -1
- package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-Bc0CRxi2.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-C658Njt8.js} +1 -1
- package/web/assets/{rotate-ccw-JEjtXKlH.js → rotate-ccw-D1E9nBsz.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-3D3M4XPB-B9PL6--N.js → sankeyDiagram-P5KCCOFB-3D3M4XPB-0LGs5Ekr.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-BJl2AqaQ.js → sankeyDiagram-P5KCCOFB-8tWaAOQW.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-DtmTM2Q1.js → sequenceDiagram-WJ2MYXX4-Cu8XQLW7.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-DH1L8a7Q.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-Do020RsJ.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-e9akerky.js → sizeCapture-INFHLROL-C4il96Zo.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-PSGVOMYM-CSyLq32l.js → sizeCapture-X5ZJPWSS-PSGVOMYM-Dl4mKOl5.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-Dc057ccO.js → stateDiagram-D77RDMKH-DZehEkpF.js} +1 -1
- package/web/assets/{stateDiagram-HBIQ2CUA-4M2S6MAN-D_uV5i1Q.js → stateDiagram-HBIQ2CUA-4M2S6MAN-CVgF7-_1.js} +1 -1
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-Bte2wVWv.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-v1GXQ5wD.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-ILKBiMPk.js → swimlanes-42K2YHIH-BQWg4acA.js} +1 -1
- package/web/assets/{swimlanes-XN3QIQJK-N6N2CCQ6-CJ7qUhPg.js → swimlanes-XN3QIQJK-N6N2CCQ6-DekhJu9e.js} +1 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-zx5EFXza.js +8 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-BQyNIwz7.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-BckRkRye.js → timeline-definition-24CTP7MA-BT6KUlBa.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-DxSbNuQs.js → timeline-definition-24CTP7MA-KN7RSRVM-Du30VadP.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-hG9roRh0.js → vennDiagram-4TSXK5OY-AKJ7LXAN-DQjUgbCT.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-Bxkq0y0p.js → vennDiagram-4TSXK5OY-DTkmcJDL.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-CLmKLRJP.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-BDk6JeO1.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-CaTbamBI.js → wardleyDiagram-VM6X3IG4-C-NFt9uI.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-CHtC3u6M.js → xychartDiagram-S5SC5T6Z-CxTqubEh.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-ZjDcqfTl.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-CcfG2mA9.js} +1 -1
- package/web/index.html +1 -1
- package/web/assets/channel-CNRWz7VW.js +0 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-C5s2iR9J.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-Cjli-tvb.js +0 -1
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-C5s2iR9J.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-Cjli-tvb.js +0 -1
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DBkBTIqA.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-D6iIkIH3.js +0 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-lkgr5sGZ.js +0 -8
- package/web/assets/swimlanesDiagram-VR7AAH4N-D-ke9u7H.js +0 -8
package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-DbTl04rE.js → diagram-VSXAHHWV-WLNH2ELY-eoBcSKFt.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{p as se}from"./chunk-VII2H2IX-
|
|
1
|
+
import{p as se}from"./chunk-VII2H2IX-CPilSdxU.js";import{p as le,i as de}from"./cynefin-OW5HDTMX-GVF3BKWE-CmwiFdFp.js";import{o as ce,n as me,s as ue,g as xe,a as fe,b as ge,_ as o,l as h,c as ie,B as he,p as pe,C as be,A as D,D as ve,h as M,w as k,aH as we}from"./render-O7CIS3YK-BysEI-dU.js";import{_ as l}from"./mermaid-layout-elk.core-VAQhTNif.js";import{s as ye}from"./transform-Bd_a5eGM.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var ae="position frame",re="frame positioned",R="position relation",oe="relation positioned",Pe=o(function(e){h.debug("options str",e)},"setOptions"),Se=o(function(){return{}},"getOptions"),Be=o(function(){N(),pe()},"clear");function N(){$={}}l(N,"reset");o(N,"reset");var Fe=ve.eventmodeling,Me=o(()=>be({...Fe,...D().eventmodeling}),"getConfig"),$={};function T(){let e=ke;const{ast:n}=$,t=S();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=_(i,n.dataEntities,t);e=y(e,{$kind:ae,index:a,frame:i,textProps:r});let d;Y(i)?(h.debug("source frame",i.sourceFrames),d=n.frames.filter(c=>i.sourceFrames.some(m=>m.$refText===c.name)),d.forEach(c=>{e=y(e,{$kind:R,index:a,frame:i,sourceFrame:c})})):e=y(e,{$kind:R,index:a,frame:i})}),e={...e,sortedSwimlanesArray:B(e.swimlanes)},e}l(T,"getState");o(T,"getState");function C(e){$.ast=e}l(C,"setAst");o(C,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function S(){return s}l(S,"getDiagramProps");o(S,"getDiagramProps");var ke={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}l(I,"extractNamespace");o(I,"extractNamespace");function O(e){const n=e.split(".");return n.length===2?n[1]:e}l(O,"extractName");o(O,"extractName");function W(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}l(W,"findSwimlaneByNamespace");o(W,"findSwimlaneByNamespace");function w(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}l(w,"findNextAvailableIndex");o(w,"findNextAvailableIndex");function H(e,n){const t=I(e.entityIdentifier),i=W(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:w(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:w(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:w(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}l(H,"calculateSwimlaneProps");o(H,"calculateSwimlaneProps");function U(e){const{themeVariables:n}=D();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}l(U,"calculateEntityVisualProps");o(U,"calculateEntityVisualProps");function _(e,n,t){const i=D(),a=M(O(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${k(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=M(r,i),r=k(r,t.textMaxWidth,d),r=r.replaceAll(" "," ")),e.dataReference){const b=n.find(F=>{var v;return F.name===((v=e.dataReference)==null?void 0:v.$refText)});b&&(r=b.dataBlockValue,r=r.substring(r.indexOf(`{
|
|
2
2
|
`)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=M(r,i),r=k(r,t.textMaxWidth,d),r=r.replaceAll(" "," "),r+="<br/>")}const u=r!==void 0;u&&(m+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const f={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},x=we(m,f),p=u?x.width/3:x.width,g={content:m,width:p,height:x.height};return h.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}l(_,"calculateTextProps");o(_,"calculateTextProps");function V(e,n){const t=n,i=U(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:re,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}l(V,"decidePositionFrame");o(V,"decidePositionFrame");function L(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}l(L,"calculateX");o(L,"calculateX");function X(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}l(X,"calculateMaxRight");o(X,"calculateMaxRight");function B(e){return Object.values(e).sort((n,t)=>n.index-t.index)}l(B,"sortedSwimlanesArray");o(B,"sortedSwimlanesArray");function G(e,n){const t=n,i=H(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=L(a,d,r),u=m+c.width+s.boxPadding,f=X(Object.values(e.swimlanes),u);a.r=m+c.width,a.maxHeight=Math.max(a.maxHeight,c.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const x={x:m,y:s.swimlanePadding+a.y,r:u,dimension:c,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},p={...e,boxes:[...e.boxes,x],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:f},g=B(p.swimlanes);g.length>0&&(g[0].y=0);for(let b=1;b<g.length;b++){const F=g[b],v=g[b-1];F.y=v.y+v.height+s.swimlaneGap}return p}l(G,"evolveFramePositioned");o(G,"evolveFramePositioned");function j(e,n){return e===0&&n.sourceFrames.length===0}l(j,"isFirstFrame");o(j,"isFirstFrame");function Y(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}l(Y,"hasSourceFrame");o(Y,"hasSourceFrame");function P(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}l(P,"findBoxByFrame");o(P,"findBoxByFrame");function z(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}l(z,"findBoxByLineIndex");o(z,"findBoxByLineIndex");function K(e,n){const t=n;if(de(t.frame)||j(t.index,t.frame))return[];const i=P(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=P(e.boxes,t.sourceFrame):a=z(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:oe,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}l(K,"decidePositionRelation");o(K,"decidePositionRelation");function q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}l(q,"evolveRelationPositioned");o(q,"evolveRelationPositioned");var Ee={[ae]:V,[R]:K},Re={[re]:G,[oe]:q};function J(e,n){const t=Ee[n.$kind];if(t==null)return[];const i=t(e,n);return h.debug("decided events",i),i}l(J,"decide");o(J,"decide");function Q(e,n){const t=n.reduce((i,a)=>{const r=Re[a.$kind];return r==null?i:r(i,a)},e);return h.debug("evolve events",{state:e,newState:t,events:n}),t}l(Q,"evolve");o(Q,"evolve");function y(e,n){const t=J(e,n);return Q(e,t)}l(y,"dispatch");o(y,"dispatch");var A={getConfig:Me,setOptions:Pe,getOptions:Se,clear:Be,setAccTitle:ge,getAccTitle:fe,getAccDescription:xe,setAccDescription:ue,setDiagramTitle:me,getDiagramTitle:ce,setAst:C,getDiagramProps:S,getState:T},Ae={parse:o(async e=>{const n=await le("eventmodeling",e);h.debug(n),A.setAst(n),se(n,A)},"parse")},E=ie(),De=E==null?void 0:E.eventmodeling;function Z(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}l(Z,"renderD3Box");o(Z,"renderD3Box");function ee(e,n){return e>n}l(ee,"dirUpwards");o(ee,"dirUpwards");function te(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,c=ee(r,d),m=a.sourceBox.x+a.sourceBox.dimension.width*2/3,u=a.targetBox.x+a.targetBox.dimension.width/3;let f,x;h.debug(`rendering relation up=${c} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),c?(f=r,x=d+a.targetBox.dimension.height):(f=r+a.sourceBox.dimension.height,x=d);const p=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",p).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${f} L${u} ${x}`)}}l(te,"renderD3Relation");o(te,"renderD3Relation");function ne(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",c),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}l(ne,"renderD3Swimlane");o(ne,"renderD3Swimlane");var Ne=o(function(e,n,t,i){if(h.debug("in eventmodeling renderer",e+`
|
|
3
3
|
`,"id:",n,t),!De)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=ie(),c=ye(`[id="${n}"]`),m=a.getDiagramProps(),u=a.getState(),f=`em-arrowhead-${n}`,x=r.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(ne(c,u.maxR,m,r)),u.boxes.forEach(Z(c,m)),u.relations.forEach(te(c,m,f,r)),c.append("defs").append("marker").attr("id",f).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",x),he(void 0,c,(d==null?void 0:d.padding)??30,d==null?void 0:d.useMaxWidth)},"draw"),$e={draw:Ne},Te=o(e=>"","getStyles"),Ce=Te,Xe={parser:Ae,db:A,renderer:$e,styles:Ce};export{Xe as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as de}from"./chunk-JWPE2WC7-DqWkk9f8.js";import{_ as m,H as he,z as Y,B as O,F as me,d as ue,l as X,a7 as L,b as fe,a as ye,o as ge,p as Se,g as xe,s as be,D as ve,a8 as Ce,q as we}from"./mermaid.core-CnNeOEec.js";import{s as Te}from"./chunk-POPQ4Y6H-BjpioqkZ.js";import{p as $e}from"./cynefin-OW5HDTMX-fybCqBi3.js";import{s as H}from"./transform-Bd_a5eGM.js";import{f as V}from"./defaultLocale-5voVPcsN.js";import{o as G}from"./ordinal-Cboi1Yqb.js";import{h as Le,t as Fe}from"./index-CvYzv8kf.js";import"./main-Dj875aWF.js";import"./index-CJuEfFQr.js";import"./init-Gi6I4Gst.js";var z,te=(z=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const r=ve,n=Y();return O({...r.treemap,...n.treemap??{}})}addNode(r,n){this.nodes.push(r),this.levels.set(r,n),n===0&&(this.outerNodes.push(r),this.root??(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,n){const l=this.classes.get(r)??{id:r,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{Ce(s)&&(l!=null&&l.textStyles?l.textStyles.push(s):l.textStyles=[s]),l!=null&&l.styles?l.styles.push(s):l.styles=[s]}),this.classes.set(r,l)}getClasses(){return this.classes}getStylesForClass(r){var n;return((n=this.classes.get(r))==null?void 0:n.styles)??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(z,"TreeMapDB"),z);function ae(p){if(!p.length)return[];const r=[],n=[];return p.forEach(l=>{const o={name:l.name,children:l.type==="Leaf"?void 0:[]};for(o.classSelector=l==null?void 0:l.classSelector,l!=null&&l.cssCompiledStyles&&(o.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(o.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)r.push(o);else{const s=n[n.length-1].node;s.children?s.children.push(o):s.children=[o]}l.type!=="Leaf"&&n.push({node:o,level:l.level})}),r}m(ae,"buildHierarchy");var ze=m((p,r)=>{de(p,r);const n=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&r.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ne(d),a=d.classSelector?r.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};n.push(x)}const l=ae(n),o=m((s,d)=>{for(const h of s)r.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(l,0)},"populate"),Ne=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{var r;try{const l=await $e("treemap",p);X.debug("Treemap AST:",l);const o=(r=le.parser)==null?void 0:r.yy;if(!(o instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(l,o)}catch(n){throw X.error("Error parsing treemap:",n),n}},"parse")},Ae=10,F=10,M=25,De=m((p,r,n,l)=>{const o=l.db,s=o.getConfig(),d=s.padding??Ae,h=o.getDiagramTitle(),k=o.getRoot(),{themeVariables:a}=Y();if(!k)return;const N=h?30:0,x=me(r),j=s.nodeWidth?s.nodeWidth*F:960,q=s.nodeHeight?s.nodeHeight*F:500,R=j,U=q+N;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";b=m(u=>"$"+V(","+i)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(i=>"$"+V(t||"")(i),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const J=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),K=Fe().size([j,q]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),oe=K.descendants().filter(e=>e.children&&e.children.length>0),D=J.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${r}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),i=e.data.name;t.text(i);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=i;for(;w.length>0;){if(w=i.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Q=K.leaves(),g=Q.length>20,ne=g?16:38,E=g?14:28,T=g?4:8,P=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=J.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ne}px;fill:`+W(e.data.name)+";",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),i=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=i-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(P,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(P,Math.min(E,Math.round(c*v))),!(S<P&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return i+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${r}-${i})`).text(t=>t.value?b(t.value):"").each(function(t){const i=H(this),u=this.parentNode;if(!u){i.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){i.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(P,Math.min(E,Math.round(f*.6)));i.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;i.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;i.node().getComputedTextLength()>pe||S+c>ee||c<P?i.style("display","none"):i.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),Pe=m(function(p,r){return r.db.getClasses()},"getClasses"),Ve={draw:De,getClasses:Pe},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const r=he(),n=Y(),l=O(r,n.themeVariables),o=O(Me,p),s=o.titleColor??l.titleColor,d=o.labelColor??l.textColor,h=o.valueColor??l.textColor;return`
|
|
1
|
+
import{p as de}from"./chunk-JWPE2WC7-gdjQngWd.js";import{_ as m,H as he,z as Y,B as O,F as me,d as ue,l as X,a7 as L,b as fe,a as ye,o as ge,p as Se,g as xe,s as be,D as ve,a8 as Ce,q as we}from"./mermaid.core-BBr71c1E.js";import{s as Te}from"./chunk-POPQ4Y6H-v0VjJgg_.js";import{p as $e}from"./cynefin-OW5HDTMX-B96xQPn_.js";import{s as H}from"./transform-Bd_a5eGM.js";import{f as V}from"./defaultLocale-5voVPcsN.js";import{o as G}from"./ordinal-Cboi1Yqb.js";import{h as Le,t as Fe}from"./index-CvYzv8kf.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./init-Gi6I4Gst.js";var z,te=(z=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const r=ve,n=Y();return O({...r.treemap,...n.treemap??{}})}addNode(r,n){this.nodes.push(r),this.levels.set(r,n),n===0&&(this.outerNodes.push(r),this.root??(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,n){const l=this.classes.get(r)??{id:r,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{Ce(s)&&(l!=null&&l.textStyles?l.textStyles.push(s):l.textStyles=[s]),l!=null&&l.styles?l.styles.push(s):l.styles=[s]}),this.classes.set(r,l)}getClasses(){return this.classes}getStylesForClass(r){var n;return((n=this.classes.get(r))==null?void 0:n.styles)??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(z,"TreeMapDB"),z);function ae(p){if(!p.length)return[];const r=[],n=[];return p.forEach(l=>{const o={name:l.name,children:l.type==="Leaf"?void 0:[]};for(o.classSelector=l==null?void 0:l.classSelector,l!=null&&l.cssCompiledStyles&&(o.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(o.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)r.push(o);else{const s=n[n.length-1].node;s.children?s.children.push(o):s.children=[o]}l.type!=="Leaf"&&n.push({node:o,level:l.level})}),r}m(ae,"buildHierarchy");var ze=m((p,r)=>{de(p,r);const n=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&r.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ne(d),a=d.classSelector?r.getStylesForClass(d.classSelector):[],N=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:N};n.push(x)}const l=ae(n),o=m((s,d)=>{for(const h of s)r.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(l,0)},"populate"),Ne=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{var r;try{const l=await $e("treemap",p);X.debug("Treemap AST:",l);const o=(r=le.parser)==null?void 0:r.yy;if(!(o instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(l,o)}catch(n){throw X.error("Error parsing treemap:",n),n}},"parse")},Ae=10,F=10,M=25,De=m((p,r,n,l)=>{const o=l.db,s=o.getConfig(),d=s.padding??Ae,h=o.getDiagramTitle(),k=o.getRoot(),{themeVariables:a}=Y();if(!k)return;const N=h?30:0,x=me(r),j=s.nodeWidth?s.nodeWidth*F:960,q=s.nodeHeight?s.nodeHeight*F:500,R=j,U=q+N;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";b=m(u=>"$"+V(","+i)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(i=>"$"+V(t||"")(i),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",N/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const J=x.append("g").attr("transform",`translate(0, ${N})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),K=Fe().size([j,q]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),oe=K.descendants().filter(e=>e.children&&e.children.length>0),D=J.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${r}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),i=e.data.name;t.text(i);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=i;for(;w.length>0;){if(w=i.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Q=K.leaves(),g=Q.length>20,ne=g?16:38,E=g?14:28,T=g?4:8,P=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=J.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ne}px;fill:`+W(e.data.name)+";",i=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),i=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=i-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(P,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(P,Math.min(E,Math.round(c*v))),!(S<P&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return i+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${r}-${i})`).text(t=>t.value?b(t.value):"").each(function(t){const i=H(this),u=this.parentNode;if(!u){i.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){i.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(P,Math.min(E,Math.round(f*.6)));i.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;i.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;i.node().getComputedTextLength()>pe||S+c>ee||c<P?i.style("display","none"):i.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),Pe=m(function(p,r){return r.db.getClasses()},"getClasses"),Ve={draw:De,getClasses:Pe},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const r=he(),n=Y(),l=O(r,n.themeVariables),o=O(Me,p),s=o.titleColor??l.titleColor,d=o.labelColor??l.textColor,h=o.valueColor??l.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${o.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${o.sectionStrokeWidth};
|
package/web/assets/{diagram-VX7I27RA-XW6YQV5G-fzWHr6UJ.js → diagram-VX7I27RA-XW6YQV5G-Bd1uZFA4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as he}from"./chunk-VII2H2IX-CHqS8QXi.js";import{p as me}from"./cynefin-OW5HDTMX-GVF3BKWE-DwLRaQ37.js";import{_ as m,I as ue,A as Y,C as O,G as fe,d as ye,l as X,aK as F,b as ge,a as Se,n as xe,o as be,g as ve,s as Ce,D as we,aL as Te,p as $e}from"./render-O7CIS3YK-DQb_czkx.js";import{s as Le}from"./chunk-ISA7TJRJ-Cua7d2fi.js";import{_ as ae}from"./mermaid-layout-elk.core-CNNSrMhF.js";import{s as H}from"./transform-Bd_a5eGM.js";import{f as M}from"./defaultLocale-5voVPcsN.js";import{o as G}from"./ordinal-Cboi1Yqb.js";import{h as Fe,t as Ne}from"./index-CvYzv8kf.js";import"./main-Dj875aWF.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const r=we,n=Y();return O({...r.treemap,...n.treemap??{}})}addNode(r,n){this.nodes.push(r),this.levels.set(r,n),n===0&&(this.outerNodes.push(r),this.root??(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,n){const l=this.classes.get(r)??{id:r,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{Te(s)&&(l!=null&&l.textStyles?l.textStyles.push(s):l.textStyles=[s]),l!=null&&l.styles?l.styles.push(s):l.styles=[s]}),this.classes.set(r,l)}getClasses(){return this.classes}getStylesForClass(r){var n;return((n=this.classes.get(r))==null?void 0:n.styles)??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const r=[],n=[];return p.forEach(l=>{const o={name:l.name,children:l.type==="Leaf"?void 0:[]};for(o.classSelector=l==null?void 0:l.classSelector,l!=null&&l.cssCompiledStyles&&(o.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(o.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)r.push(o);else{const s=n[n.length-1].node;s.children?s.children.push(o):s.children=[o]}l.type!=="Leaf"&&n.push({node:o,level:l.level})}),r}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,r)=>{he(p,r);const n=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&r.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?r.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};n.push(x)}const l=j(n),o=m((s,d)=>{for(const h of s)r.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(l,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{var r;try{const l=await me("treemap",p);X.debug("Treemap AST:",l);const o=(r=se.parser)==null?void 0:r.yy;if(!(o instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(l,o)}catch(n){throw X.error("Error parsing treemap:",n),n}},"parse")},De=10,N=10,V=25,Pe=m((p,r,n,l)=>{const o=l.db,s=o.getConfig(),d=s.padding??De,h=o.getDiagramTitle(),k=o.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(r),K=s.nodeWidth?s.nodeWidth*N:960,U=s.nodeHeight?s.nodeHeight*N:500,R=K,q=U+z;x.attr("viewBox",`0 0 ${R} ${q}`),ye(x,q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+M(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";b=m(u=>"$"+M(","+i)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(i=>"$"+M(t||"")(i),"valueFormat")}else b=M(e)}catch(e){X.error("Error creating format function:",e),b=M(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),_=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const J=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),oe=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),Q=Ne().size([K,U]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(oe),ne=Q.descendants().filter(e=>e.children&&e.children.length>0),D=J.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${r}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+_(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),i=e.data.name;t.text(i);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=i;for(;w.length>0;){if(w=i.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+_(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Z=Q.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,P=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,E=J.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+_(e.data.name)+";",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),i=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=i-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(P,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(P,Math.min(W,Math.round(c*v))),!(S<P&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+_(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return i+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${r}-${i})`).text(t=>t.value?b(t.value):"").each(function(t){const i=H(this),u=this.parentNode;if(!u){i.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){i.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(P,Math.min(W,Math.round(f*.6)));i.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;i.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;i.node().getComputedTextLength()>de||S+c>te||c<P?i.style("display","none"):i.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),Me=m(function(p,r){return r.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:Me},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},_e=m(({treemap:p}={})=>{const r=ue(),n=Y(),l=O(r,n.themeVariables),o=O(ke,p),s=o.titleColor??l.titleColor,d=o.labelColor??l.textColor,h=o.valueColor??l.textColor;return`
|
|
1
|
+
import{p as he}from"./chunk-VII2H2IX-CPilSdxU.js";import{p as me}from"./cynefin-OW5HDTMX-GVF3BKWE-CmwiFdFp.js";import{_ as m,I as ue,A as Y,C as O,G as fe,d as ye,l as X,aK as F,b as ge,a as Se,n as xe,o as be,g as ve,s as Ce,D as we,aL as Te,p as $e}from"./render-O7CIS3YK-BysEI-dU.js";import{s as Le}from"./chunk-ISA7TJRJ-4ehz2eVS.js";import{_ as ae}from"./mermaid-layout-elk.core-VAQhTNif.js";import{s as H}from"./transform-Bd_a5eGM.js";import{f as M}from"./defaultLocale-5voVPcsN.js";import{o as G}from"./ordinal-Cboi1Yqb.js";import{h as Fe,t as Ne}from"./index-CvYzv8kf.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const r=we,n=Y();return O({...r.treemap,...n.treemap??{}})}addNode(r,n){this.nodes.push(r),this.levels.set(r,n),n===0&&(this.outerNodes.push(r),this.root??(this.root=r))}getRoot(){return{name:"",children:this.outerNodes}}addClass(r,n){const l=this.classes.get(r)??{id:r,styles:[],textStyles:[]},o=n.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");o&&o.forEach(s=>{Te(s)&&(l!=null&&l.textStyles?l.textStyles.push(s):l.textStyles=[s]),l!=null&&l.styles?l.styles.push(s):l.styles=[s]}),this.classes.set(r,l)}getClasses(){return this.classes}getStylesForClass(r){var n;return((n=this.classes.get(r))==null?void 0:n.styles)??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const r=[],n=[];return p.forEach(l=>{const o={name:l.name,children:l.type==="Leaf"?void 0:[]};for(o.classSelector=l==null?void 0:l.classSelector,l!=null&&l.cssCompiledStyles&&(o.cssCompiledStyles=l.cssCompiledStyles),l.type==="Leaf"&&l.value!==void 0&&(o.value=l.value);n.length>0&&n[n.length-1].level>=l.level;)n.pop();if(n.length===0)r.push(o);else{const s=n[n.length-1].node;s.children?s.children.push(o):s.children=[o]}l.type!=="Leaf"&&n.push({node:o,level:l.level})}),r}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,r)=>{he(p,r);const n=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&r.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?r.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};n.push(x)}const l=j(n),o=m((s,d)=>{for(const h of s)r.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(l,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{var r;try{const l=await me("treemap",p);X.debug("Treemap AST:",l);const o=(r=se.parser)==null?void 0:r.yy;if(!(o instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(l,o)}catch(n){throw X.error("Error parsing treemap:",n),n}},"parse")},De=10,N=10,V=25,Pe=m((p,r,n,l)=>{const o=l.db,s=o.getConfig(),d=s.padding??De,h=o.getDiagramTitle(),k=o.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(r),K=s.nodeWidth?s.nodeWidth*N:960,U=s.nodeHeight?s.nodeHeight*N:500,R=K,q=U+z;x.attr("viewBox",`0 0 ${R} ${q}`),ye(x,q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+M(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";b=m(u=>"$"+M(","+i)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(i=>"$"+M(t||"")(i),"valueFormat")}else b=M(e)}catch(e){X.error("Error creating format function:",e),b=M(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),_=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const J=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),oe=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),Q=Ne().size([K,U]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(oe),ne=Q.descendants().filter(e=>e.children&&e.children.length>0),D=J.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${r}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+_(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),i=e.data.name;t.text(i);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=i;for(;w.length>0;){if(w=i.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+_(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Z=Q.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,P=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,E=J.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);E.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),E.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),E.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+_(e.data.name)+";",i=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),i=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=i-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(P,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(P,Math.min(W,Math.round(c*v))),!(S<P&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&E.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+_(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return i+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${r}-${i})`).text(t=>t.value?b(t.value):"").each(function(t){const i=H(this),u=this.parentNode;if(!u){i.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){i.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(P,Math.min(W,Math.round(f*.6)));i.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;i.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;i.node().getComputedTextLength()>de||S+c>te||c<P?i.style("display","none"):i.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",(s==null?void 0:s.useMaxWidth)||!1)},"draw"),Me=m(function(p,r){return r.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:Me},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},_e=m(({treemap:p}={})=>{const r=ue(),n=Y(),l=O(r,n.themeVariables),o=O(ke,p),s=o.titleColor??l.titleColor,d=o.labelColor??l.textColor,h=o.valueColor??l.textColor;return`
|
|
2
2
|
.treemapNode.section {
|
|
3
3
|
stroke: ${o.sectionStrokeColor};
|
|
4
4
|
stroke-width: ${o.sectionStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as $}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as $}from"./chunk-JWPE2WC7-gdjQngWd.js";import{_ as b,B as m,F as C,d as S,l as w,b as D,a as T,o as z,p as F,g as P,s as E,z as A,D as W,q as _}from"./mermaid.core-BBr71c1E.js";import{p as N}from"./cynefin-OW5HDTMX-B96xQPn_.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./transform-Bd_a5eGM.js";var L=W.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=D,this.getAccTitle=T,this.setDiagramTitle=z,this.getDiagramTitle=F,this.getAccDescription=P,this.setAccDescription=E}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){_(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{$(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${o+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??(i=a+(d??1)-1),d??(d=i-a+1),o=i,w.debug(`Packet block ${a} - ${o} with label ${c}`);r.length<=l+1&&t.getPacket().length<M;){const[p,s]=I({start:a,end:i,bits:d,label:c},n,l);if(r.push(p),p.end+1===n*l&&(t.pushWord(r),r=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}t.pushWord(r)},"populate"),I=b((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{var r;const t=await N("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,o)},"parse")},O=b((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=C(t);f.attr("viewBox",`0 0 ${k} ${g}`),S(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())j(f,B,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=b((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),q={draw:O},G={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},H=b(({packet:e}={})=>{const t=m(G,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
package/web/assets/{diagram-Z3DM3KII-HG7RF65D-CDqb1-LL.js → diagram-Z3DM3KII-HG7RF65D-BwiG8Jl0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as $}from"./chunk-VII2H2IX-
|
|
1
|
+
import{p as $}from"./chunk-VII2H2IX-CPilSdxU.js";import{p as C}from"./cynefin-OW5HDTMX-GVF3BKWE-CmwiFdFp.js";import{_ as m,C as u,G as S,d as D,l as w,b as P,a as T,n as z,o as A,g as E,s as F,A as _,D as W,p as N}from"./render-O7CIS3YK-BysEI-dU.js";import{_ as L}from"./mermaid-layout-elk.core-VAQhTNif.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./transform-Bd_a5eGM.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var M=W.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=z,this.getDiagramTitle=A,this.getAccDescription=E,this.setAccDescription=F}getConfig(){const t=u({...M,..._().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){N(),this.packet=[]}},L(b,"PacketDB"),m(b,"PacketDB"),b),Y=1e4,G=m((e,t)=>{$(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??(a=o+1),a!==o+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${o+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??(i=a+(d??1)-1),d??(d=i-a+1),o=i,w.debug(`Packet block ${a} - ${o} with label ${c}`);r.length<=l+1&&t.getPacket().length<Y;){const[p,s]=I({start:a,end:i,bits:d,label:c},n,l);if(r.push(p),p.end+1===n*l&&(t.pushWord(r),r=[],n++),!s)break;({start:a,end:i,bits:d,label:c}=s)}}t.pushWord(r)},"populate"),I=m((e,t,o)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:m(async e=>{var r;const t=await C("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),G(t,o)},"parse")},O=m((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())j(f,B,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=m((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),H={draw:O},K={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=m(({packet:e}={})=>{const t=u(K,e);return`
|
|
2
2
|
.packetByte {
|
|
3
3
|
font-size: ${t.byteFontSize};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,r as l,d as n}from"./chunk-SVP7TREG-
|
|
1
|
+
import{g as m,r as l,d as n}from"./chunk-SVP7TREG-L0IIA3ui.js";import{p}from"./chunk-JWPE2WC7-gdjQngWd.js";import{_ as t,l as o}from"./mermaid.core-BBr71c1E.js";import"./transform-Bd_a5eGM.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-B96xQPn_.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},$={parser:g,db:n,renderer:l,styles:m};export{$ as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as m,r as l,d as n}from"./chunk-XCWWM2C3-
|
|
1
|
+
import{g as m,r as l,d as n}from"./chunk-XCWWM2C3-CqqN87BO.js";import{p}from"./chunk-VII2H2IX-CPilSdxU.js";import{M as u,a as f}from"./cynefin-OW5HDTMX-GVF3BKWE-CmwiFdFp.js";import{_ as t,l as o}from"./render-O7CIS3YK-BysEI-dU.js";import"./transform-Bd_a5eGM.js";import"./mermaid-layout-elk.core-VAQhTNif.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var c=f().RailroadEbnf.parser.LangiumParser,s=t(e=>{const r=e.alternatives.map(E);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformChoice"),E=t(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),i=t(e=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return s(e.element);case"EbnfOptional":return{type:"optional",element:s(e.element)};case"EbnfRepetition":return{type:"repetition",element:s(e.element),min:0,max:1/0};default:throw new Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),b=t((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},i(r.except)]};default:throw new Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),d=t(e=>e.postfixes.reduce((r,a)=>b(r,a),i(e.base)),"transformTerm"),y=t(e=>({name:e.name,definition:s(e.definition)}),"transformRule"),v=t(e=>{p(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(y(r)))},"populateDb"),g={parse:t(e=>{n.clear(),o.debug("[EBNF Parser] Starting Langium parse");const r=c.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const a=r.value;o.debug("[EBNF Parser] Parsed rules:",a.rules.length),v(a),o.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:n}},F={parser:g,db:n,renderer:l,styles:m};export{F as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ut}from"./chunk-XXDRQBXY-xXPgDheN.js";import{s as Kt}from"./chunk-POPQ4Y6H-BjpioqkZ.js";import{_ as f,b as Zt,a as jt,s as qt,g as Wt,o as Ht,p as Qt,c as tt,l as F,j as Xt,q as Jt,r as $t,t as te,u as ee,v as se,x as ie,y as re}from"./mermaid.core-CnNeOEec.js";import{s as ne}from"./transform-Bd_a5eGM.js";import{c as ae}from"./channel-CNRWz7VW.js";import"./main-Dj875aWF.js";import"./index-CJuEfFQr.js";var Ot=(function(){var s=f(function(G,a,h,d){for(h=h||{},d=G.length;d--;h[G[d]]=a);return h},"o"),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],c=[2,2],o=[1,7],r=[1,9],l=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],x=[1,19],T=[1,28],I=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],It=[6,9,45,50],z=[6,9,12,44,45,50,51,52],nt=[1,101],at=[1,100],ot=[1,99],J=[18,61],At=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(a,h,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(n,c,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:r,23:l,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:x,46:T,47:I,51:N,53:D,54:L,55:w},s(n,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,c,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:x,51:N,53:D,54:L,55:w},{10:51,43:x,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:x,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:r,23:l,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:x,46:T,47:I,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(It,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:x,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:nt,53:at,76:ot},{15:102,43:V,44:M},{10:103,43:x,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:At,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(It,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:nt,53:at,76:ot},{15:127,43:V,44:M},{13:128,43:nt,53:at,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:At},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:nt,53:at,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(a,h){if(h.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=h,d}},"parseError"),parse:f(function(a){var h=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(a,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=h.symbols_[S]||S),S}f(wt,"lex");for(var E,P,O,St,U={},ht,A,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?O=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),O=$[P]&&$[P][E]),typeof O>"u"||!O.length||!O[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
1
|
+
import{g as Ut}from"./chunk-XXDRQBXY-DWCWq3oG.js";import{s as Kt}from"./chunk-POPQ4Y6H-v0VjJgg_.js";import{_ as f,b as Zt,a as jt,s as qt,g as Wt,o as Ht,p as Qt,c as tt,l as F,j as Xt,q as Jt,r as $t,t as te,u as ee,v as se,x as ie,y as re}from"./mermaid.core-BBr71c1E.js";import{s as ne}from"./transform-Bd_a5eGM.js";import{c as ae}from"./channel-D1pzr5s8.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";var Ot=(function(){var s=f(function(G,a,h,d){for(h=h||{},d=G.length;d--;h[G[d]]=a);return h},"o"),n=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],c=[2,2],o=[1,7],r=[1,9],l=[1,10],y=[1,11],b=[1,12],k=[1,30],R=[1,23],p=[1,24],g=[1,25],C=[1,26],v=[1,27],x=[1,19],T=[1,28],I=[1,29],N=[1,20],D=[1,18],L=[1,21],w=[1,22],xt=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],pt=[1,36],ft=[1,37],bt=[1,38],gt=[1,39],yt=[1,40],Z=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],V=[1,46],M=[1,47],j=[1,57],q=[43,51,53,54,55,74,75],W=[1,70],H=[1,68],B=[1,65],Q=[1,69],X=[1,71],et=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],st=[1,78],it=[1,77],rt=[1,76],Nt=[69,70,71,72,73],Ct=[1,91],It=[6,9,45,50],z=[6,9,12,44,45,50,51,52],nt=[1,101],at=[1,100],ot=[1,99],J=[18,61],At=[1,110],Rt=[1,109],vt=[20,43,51,53,54,55],_t=[18,61,64,66],kt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(function(a,h,d,i,_,t,$){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(n,c,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:r,23:l,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:R,38:p,39:g,40:C,41:v,43:x,46:T,47:I,51:N,53:D,54:L,55:w},s(n,xt,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:pt,70:ft,71:bt,72:gt,73:yt}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,c,{5:44}),s(Z,[2,58]),s(Z,[2,59]),s(Z,[2,60]),s(Z,[2,61]),s(Z,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:V,44:M},{15:48,43:V,44:M},{15:49,43:V,44:M},{10:50,43:x,51:N,53:D,54:L,55:w},{10:51,43:x,51:N,53:D,54:L,55:w},{15:52,43:V,44:M},{17:53,18:[1,54],56:55,57:56,61:j},{10:58,43:x,51:N,53:D,54:L,55:w},{68:59,74:[1,60],75:[1,61]},s(q,[2,77]),s(q,[2,78]),s(q,[2,79]),s(q,[2,80]),s(q,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:r,23:l,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:R,38:p,39:g,40:C,41:v,43:x,46:T,47:I,51:N,53:D,54:L,55:w},{12:W,42:64,44:H,45:B,48:66,49:67,51:Q,52:X},s(et,[2,41]),s(et,[2,42]),{15:72,43:V,44:M,45:B},{12:W,42:73,44:H,45:B,48:66,49:67,51:Q,52:X},{6:st,9:it,19:[1,75],35:74,50:rt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:B,69:pt,70:ft,71:bt,72:gt,73:yt}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:j},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:pt,70:ft,71:bt,72:gt,73:yt},s(Nt,[2,82]),s(Nt,[2,83]),s(u,[2,31]),s(u,xt),{6:st,9:it,35:90,45:Ct,50:rt},{43:[1,92],44:[1,93]},s(It,[2,47],{49:94,12:W,44:H,51:Q,52:X}),s(z,[2,49]),s(z,[2,54]),s(z,[2,55]),s(z,[2,56]),s(z,[2,57]),s(u,[2,45],{45:B}),{6:st,9:it,35:95,45:Ct,50:rt},s(u,[2,32]),{10:97,36:96,43:x,51:N,53:D,54:L,55:w},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:nt,53:at,76:ot},{15:102,43:V,44:M},{10:103,43:x,51:N,53:D,54:L,55:w},{17:104,18:[1,105],56:55,57:56,61:j},s(u,[2,11]),{18:[2,64]},s(J,[2,65],{59:106,60:107,63:108,65:At,66:Rt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:W,44:H,48:113,49:67,51:Q,52:X},s(et,[2,43]),s(et,[2,44]),s(z,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:N,53:D,54:L,55:w},s(vt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:B},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s(J,[2,66],{60:120,64:[1,121],66:Rt}),s(J,[2,67]),s(_t,[2,72]),s(J,[2,75]),s(_t,[2,74]),{17:122,18:[1,123],56:55,57:56,61:j},{15:124,43:V,44:M},s(It,[2,48],{49:94,12:W,44:H,51:Q,52:X}),{6:st,9:it,35:125,50:rt},s(vt,[2,35]),{13:126,43:nt,53:at,76:ot},{15:127,43:V,44:M},{13:128,43:nt,53:at,76:ot},s(u,[2,12]),s(J,[2,68]),{63:129,65:At},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:B}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:B},s(u,[2,9]),s(_t,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:j},{13:135,43:nt,53:at,76:ot},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(function(a,h){if(h.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=h,d}},"parseError"),parse:f(function(a){var h=this,d=[0],i=[],_=[null],t=[],$=this.table,e="",lt=0,Dt=0,Ft=2,Lt=1,Yt=t.slice.call(arguments,1),m=Object.create(this.lexer),Y={yy:{}};for(var mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,mt)&&(Y.yy[mt]=this.yy[mt]);m.setInput(a,Y.yy),Y.yy.lexer=m,Y.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Et=m.yylloc;t.push(Et);var Pt=m.options&&m.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(S){d.length=d.length-2*S,_.length=_.length-S,t.length=t.length-S}f(zt,"popStack");function wt(){var S;return S=i.pop()||m.lex()||Lt,typeof S!="number"&&(S instanceof Array&&(i=S,S=i.pop()),S=h.symbols_[S]||S),S}f(wt,"lex");for(var E,P,O,St,U={},ht,A,Vt,ut;;){if(P=d[d.length-1],this.defaultActions[P]?O=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=wt()),O=$[P]&&$[P][E]),typeof O>"u"||!O.length||!O[0]){var Tt="";ut=[];for(ht in $[P])this.terminals_[ht]&&ht>Ft&&ut.push("'"+this.terminals_[ht]+"'");m.showPosition?Tt="Parse error on line "+(lt+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+ut.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Tt="Parse error on line "+(lt+1)+": Unexpected "+(E==Lt?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Tt,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Et,expected:ut})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(O[0]){case 1:d.push(E),_.push(m.yytext),t.push(m.yylloc),d.push(O[1]),E=null,Dt=m.yyleng,e=m.yytext,lt=m.yylineno,Et=m.yylloc;break;case 2:if(A=this.productions_[O[1]][1],U.$=_[_.length-A],U._$={first_line:t[t.length-(A||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(A||1)].first_column,last_column:t[t.length-1].last_column},Pt&&(U._$.range=[t[t.length-(A||1)].range[0],t[t.length-1].range[1]]),St=this.performAction.apply(U,[e,Dt,lt,Y.yy,O[1],_,t].concat(Yt)),typeof St<"u")return St;A&&(d=d.slice(0,-1*A*2),_=_.slice(0,-1*A),t=t.slice(0,-1*A)),d.push(this.productions_[O[1]][0]),_.push(U.$),t.push(U._$),Vt=$[d[d.length-2]][d[d.length-1]],d.push(Vt);break;case 3:return!0}}return!0},"parse")},Gt=(function(){var G={EOF:1,parseError:f(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:f(function(a,h){return this.yy=h||this.yy||{},this._input=a,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:f(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var h=a.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:f(function(a){var h=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(a){this.unput(this.match.slice(a))},"less"),pastInput:f(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var a=this.pastInput(),h=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Kt}from"./chunk-NDIOYS4C-DkAwrWHj.js";import{_ as f,b as Zt,a as jt,s as qt,g as Wt,n as Ht,o as Qt,c as st,l as Y,i as Xt,p as Jt,q as $t,t as te,u as ee,v as se,x as ie,y as re,z as ae}from"./render-O7CIS3YK-DQb_czkx.js";import{s as ne}from"./chunk-ISA7TJRJ-Cua7d2fi.js";import{s as oe}from"./transform-Bd_a5eGM.js";import{_ as E}from"./mermaid-layout-elk.core-CNNSrMhF.js";import"./main-Dj875aWF.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var Nt=(function(){var s=f(function(F,n,h,d){for(h=h||{},d=F.length;d--;h[F[d]]=n);return h},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],l=[2,2],o=[1,7],r=[1,9],c=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],N=[1,19],x=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],lt=[1,100],ct=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,h,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,l,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:r,23:c,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:N,46:x,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,l,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:N,51:C,53:L,54:w,55:V},{10:51,43:N,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:N,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:r,23:c,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:N,46:x,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:N,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:lt,76:ct},{15:102,43:M,44:B},{10:103,43:N,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:N,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:lt,76:ct},{15:127,43:M,44:B},{13:128,43:ot,53:lt,76:ct},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:lt,76:ct},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,h){if(h.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=h,d}},"parseError"),"parseError"),parse:f(E(function(n){var h=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=h.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,xt,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var Ot="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?Ot="Parse error on line "+(ht+1)+`:
|
|
1
|
+
import{g as Kt}from"./chunk-NDIOYS4C-DO0anlkR.js";import{_ as f,b as Zt,a as jt,s as qt,g as Wt,n as Ht,o as Qt,c as st,l as Y,i as Xt,p as Jt,q as $t,t as te,u as ee,v as se,x as ie,y as re,z as ae}from"./render-O7CIS3YK-BysEI-dU.js";import{s as ne}from"./chunk-ISA7TJRJ-4ehz2eVS.js";import{s as oe}from"./transform-Bd_a5eGM.js";import{_ as E}from"./mermaid-layout-elk.core-VAQhTNif.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var Nt=(function(){var s=f(function(F,n,h,d){for(h=h||{},d=F.length;d--;h[F[d]]=n);return h},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],l=[2,2],o=[1,7],r=[1,9],c=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],N=[1,19],x=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],lt=[1,100],ct=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,h,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,l,{5:3}),{6:[1,4],7:5,8:6,9:o,10:8,21:r,23:c,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:N,46:x,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,l,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:N,51:C,53:L,54:w,55:V},{10:51,43:N,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:N,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:o,10:8,21:r,23:c,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:N,46:x,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:N,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:lt,76:ct},{15:102,43:M,44:B},{10:103,43:N,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:N,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:lt,76:ct},{15:127,43:M,44:B},{13:128,43:ot,53:lt,76:ct},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:lt,76:ct},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,h){if(h.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=h,d}},"parseError"),"parseError"),parse:f(E(function(n){var h=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=h.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,xt,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var Ot="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?Ot="Parse error on line "+(ht+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+dt.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Ot="Parse error on line "+(ht+1)+": Unexpected "+(S==Vt?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Ot,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:St,expected:dt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+S);switch(O[0]){case 1:d.push(S),_.push(m.yytext),t.push(m.yylloc),d.push(O[1]),S=null,wt=m.yyleng,e=m.yytext,ht=m.yylineno,St=m.yylloc;break;case 2:if(R=this.productions_[O[1]][1],Z.$=_[_.length-R],Z._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Ut&&(Z._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),xt=this.performAction.apply(Z,[e,wt,ht,P.yy,O[1],_,t].concat(zt)),typeof xt<"u")return xt;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[O[1]][0]),_.push(Z.$),t.push(Z._$),Bt=et[d[d.length-2]][d[d.length-1]],d.push(Bt);break;case 3:return!0}}return!0},"parse"),"parse")},Yt=(function(){var F={EOF:1,parseError:f(E(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),"parseError"),setInput:f(function(n,h){return this.yy=h||this.yy||{},this._input=n,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:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var h=n.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var h=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),h=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as k,as as Qt,K as zt,l as ee,c as me,x as Zt,y as Jt,z as nt,b as $t,s as e1,n as t1,a as s1,g as i1,o as r1,i as a1,L as n1,M as u1,aX as o1,q as rt,R as l1,p as c1,aw as h1,t as d1,u as p1}from"./render-O7CIS3YK-
|
|
1
|
+
import{_ as k,as as Qt,K as zt,l as ee,c as me,x as Zt,y as Jt,z as nt,b as $t,s as e1,n as t1,a as s1,g as i1,o as r1,i as a1,L as n1,M as u1,aX as o1,q as rt,R as l1,p as c1,aw as h1,t as d1,u as p1}from"./render-O7CIS3YK-BysEI-dU.js";import{g as f1}from"./chunk-CXNFBKHE-Cl_w1xK3.js";import{g as g1}from"./chunk-NDIOYS4C-DO0anlkR.js";import{s as b1}from"./chunk-ISA7TJRJ-4ehz2eVS.js";import{f as A1}from"./chunk-LV3HUYFY-0dwD8rCC.js";import{_ as Y}from"./mermaid-layout-elk.core-VAQhTNif.js";import{s as at}from"./transform-Bd_a5eGM.js";var k1="flowchart-",De,m1=(De=class{constructor(){this.vertexCounter=0,this.config=me(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=$t,this.setAccDescription=e1,this.setDiagramTitle=t1,this.getAccTitle=s1,this.getAccDescription=i1,this.getDiagramTitle=r1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return a1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,l,g,h={},m){var F,c;if(!i||i.trim().length===0)return;let u;if(m!==void 0){let d;m.includes(`
|
|
2
2
|
`)?d=m+`
|
|
3
3
|
`:d=`{
|
|
4
4
|
`+m+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Xt}from"./chunk-5VM5RSS4-
|
|
1
|
+
import{g as Xt}from"./chunk-5VM5RSS4-BUnm5mZw.js";import{g as Qt}from"./chunk-XXDRQBXY-DWCWq3oG.js";import{s as Jt}from"./chunk-POPQ4Y6H-v0VjJgg_.js";import{_ as k,aP as Zt,J as Mt,l as $,c as ke,v as $t,x as e1,y as rt,b as t1,s as s1,o as i1,a as r1,g as a1,p as n1,j as u1,K as o1,L as l1,bH as c1,r as st,Q as h1,q as d1,aT as p1,t as f1}from"./mermaid.core-BBr71c1E.js";import{f as g1}from"./chunk-F27PBJKO-DOnNDX_T.js";import{s as it}from"./transform-Bd_a5eGM.js";import{c as b1}from"./channel-D1pzr5s8.js";var A1="flowchart-",Pe,k1=(Pe=class{constructor(){this.vertexCounter=0,this.config=ke(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=t1,this.setAccDescription=s1,this.setDiagramTitle=i1,this.getAccTitle=r1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return u1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,l,g,h={},m){var F,c;if(!i||i.trim().length===0)return;let u;if(m!==void 0){let d;m.includes(`
|
|
2
2
|
`)?d=m+`
|
|
3
3
|
`:d=`{
|
|
4
4
|
`+m+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as de,s as fe,o as he,n as me,a as ke,b as ye,_ as l,c as mt,d as ge,l as lt,i as pe,p as ve,F as ee,r as Te,z as xe}from"./render-O7CIS3YK-DQb_czkx.js";import{_ as Y,a as ut,b as Ct}from"./mermaid-layout-elk.core-CNNSrMhF.js";import{s as bt}from"./transform-Bd_a5eGM.js";import{t as be,m as we,a as _e,i as De,b as Se,c as Bt,d as qt,e as Ce,f as Me,g as Ee,h as Ie,j as Ye,k as $e,l as Le,n as Gt,o as Xt,p as Ut,s as Zt,q as Qt,r as Fe}from"./time-C0TNQg6r.js";import{l as Ae}from"./linear-CZIIlCMp.js";import"./main-Dj875aWF.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-5voVPcsN.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(A){return A.add(4-A.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var F=b.startOf;b.startOf=function(A,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(A)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(A,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,F={},A=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=F[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=F.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=F.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=A(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=F&&F.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(r,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var r=L[v];if(typeof r=="string")y+=r.length;else{var d=r.regex,f=r.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(n){var S=n.afternoon;if(S!==void 0){var o=n.hours;S?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),F=this.$locale(),!m&&y&&(F=W.Ls[y]),this.$d=(function(u,_,n,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,nt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var J,Z=M||0,ct=R||0,tt=E||0,rt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt+60*P.offset*1e3)):n?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt)):(J=new Date(ot,G,ft,Z,ct,tt,rt),nt&&(J=S(J).week(nt).toDate()),J)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),F={}}else if(I instanceof Array)for(var r=I.length,d=1;d<=r;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===r&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,F=this.$locale();if(!this.isValid())return g.bind(this)(p);var A=this.$utils(),w=(p||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return F.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return F.ordinal(b.week(),"W");case"w":case"ww":return A.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return A.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return A.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,F=31536e6,A=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:F,months:A,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(r){T.$d[N(r)]=h[r]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(r){return r!=null?Number(r):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/F),h%=F,this.$d.months=D(h/A),h%=A,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var d=L(r,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),K=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,r,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=r);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],F=[1,32],A=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(Y(function(r,d,f,u,_,n,S){var o=n.length-1;switch(_){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(r,d){if(d.recoverable)this.trace(r);else{var f=new Error(r);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(r){var d=this,f=[0],u=[],_=[null],n=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=n.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(r,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var nt=E.yylloc;n.push(nt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,n.length=n.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,J,Z,ct,tt={},rt,et,Ht,xt;;){if(J=f[f.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((G===null||typeof G>"u")&&(G=ot()),Z=S[J]&&S[J][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(rt in S[J])this.terminals_[rt]&&rt>C&&xt.push("'"+this.terminals_[rt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
|
|
1
|
+
import{g as de,s as fe,o as he,n as me,a as ke,b as ye,_ as l,c as mt,d as ge,l as lt,i as pe,p as ve,F as ee,r as Te,z as xe}from"./render-O7CIS3YK-BysEI-dU.js";import{_ as Y,a as ut,b as Ct}from"./mermaid-layout-elk.core-VAQhTNif.js";import{s as bt}from"./transform-Bd_a5eGM.js";import{t as be,m as we,a as _e,i as De,b as Se,c as Bt,d as qt,e as Ce,f as Me,g as Ee,h as Ie,j as Ye,k as $e,l as Le,n as Gt,o as Xt,p as Ut,s as Zt,q as Qt,r as Fe}from"./time-C0TNQg6r.js";import{l as Ae}from"./linear-CZIIlCMp.js";import"./main-CmX_gEtO.js";import"./index-CJuEfFQr.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-5voVPcsN.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(A){return A.add(4-A.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(A){if(!this.$utils().u(A))return this.add(7*(A-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(A){return this.$utils().u(A)?this.day()||7:this.day(this.day()%7?A:A-7)};var F=b.startOf;b.startOf=function(A,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(A)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(A,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,F={},A=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=F[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=F.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=F.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=A(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=F&&F.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(r,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var r=L[v];if(typeof r=="string")y+=r.length;else{var d=r.regex,f=r.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(n){var S=n.afternoon;if(S!==void 0){var o=n.hours;S?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(A=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),F=this.$locale(),!m&&y&&(F=W.Ls[y]),this.$d=(function(u,_,n,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,nt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var J,Z=M||0,ct=R||0,tt=E||0,rt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt+60*P.offset*1e3)):n?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt)):(J=new Date(ot,G,ft,Z,ct,tt,rt),nt&&(J=S(J).week(nt).toDate()),J)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),F={}}else if(I instanceof Array)for(var r=I.length,d=1;d<=r;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===r&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,F=this.$locale();if(!this.isValid())return g.bind(this)(p);var A=this.$utils(),w=(p||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return F.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return F.ordinal(b.week(),"W");case"w":case"ww":return A.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return A.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return A.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,F=31536e6,A=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:F,months:A,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(r){T.$d[N(r)]=h[r]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(r){return r!=null?Number(r):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/F),h%=F,this.$d.months=D(h/A),h%=A,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var d=L(r,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),K=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,r,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=r);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],F=[1,32],A=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(Y(function(r,d,f,u,_,n,S){var o=n.length-1;switch(_){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:F,19:18,20:A,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(r,d){if(d.recoverable)this.trace(r);else{var f=new Error(r);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(r){var d=this,f=[0],u=[],_=[null],n=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=n.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(r,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var nt=E.yylloc;n.push(nt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,n.length=n.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,J,Z,ct,tt={},rt,et,Ht,xt;;){if(J=f[f.length-1],this.defaultActions[J]?Z=this.defaultActions[J]:((G===null||typeof G>"u")&&(G=ot()),Z=S[J]&&S[J][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(rt in S[J])this.terminals_[rt]&&rt>C&&xt.push("'"+this.terminals_[rt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+xt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Et="Parse error on line "+(H+1)+": Unexpected "+(G==M?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Et,{text:E.match,token:this.terminals_[G]||G,line:E.yylineno,loc:nt,expected:xt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+G);switch(Z[0]){case 1:f.push(G),_.push(E.yytext),n.push(E.yylloc),f.push(Z[1]),G=null,c=E.yyleng,o=E.yytext,H=E.yylineno,nt=E.yylloc;break;case 2:if(et=this.productions_[Z[1]][1],tt.$=_[_.length-et],tt._$={first_line:n[n.length-(et||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(et||1)].first_column,last_column:n[n.length-1].last_column},at&&(tt._$.range=[n[n.length-(et||1)].range[0],n[n.length-1].range[1]]),ct=this.performAction.apply(tt,[o,c,H,j.yy,Z[1],_,n].concat(R)),typeof ct<"u")return ct;et&&(f=f.slice(0,-1*et*2),_=_.slice(0,-1*et),n=n.slice(0,-1*et)),f.push(this.productions_[Z[1]][0]),_.push(tt.$),n.push(tt._$),Ht=S[f[f.length-2]][f[f.length-1]],f.push(Ht);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var y={EOF:1,parseError:l(Y(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),"parseError"),setInput:l(function(r,d){return this.yy=d||this.yy||{},this._input=r,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:l(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var d=r.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:l(function(r){var d=r.length,f=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var _=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(r){this.unput(this.match.slice(r))},"less"),pastInput:l(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var r=this.pastInput(),d=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|