lookatstudy-mobile 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/package.json +1 -1
  2. package/web/assets/{CanvasStage-u_7YeGk1.js → CanvasStage-sR8T2IFn.js} +1 -1
  3. package/web/assets/{CommandPalette-Q5j7BQf4.js → CommandPalette-xoHRtFTt.js} +1 -1
  4. package/web/assets/{CourseSearchPanel-BYGHjhnk.js → CourseSearchPanel-Blz5uOZo.js} +2 -2
  5. package/web/assets/{ExamView-DU5X7LyZ.js → ExamView-DcD9-XhK.js} +1 -1
  6. package/web/assets/ReviewPanel-DPX_Gbvn.js +1 -0
  7. package/web/assets/{SettingsView-CD9th6O0.js → SettingsView-DpSiGIUo.js} +3 -3
  8. package/web/assets/Tableau10-CvOaoHrI.js +1 -0
  9. package/web/assets/{VoicePanel-Cvl2BLq2.js → VoicePanel-BFuMIduE.js} +1 -1
  10. package/web/assets/abnfDiagram-N423BO3Z-BRYm-LZF.js +1 -0
  11. package/web/assets/abnfDiagram-VCTEODGH-ODA7YWAP-B--kWzEh.js +1 -0
  12. package/web/assets/arc-DIdxrd7q.js +1 -0
  13. package/web/assets/architectureDiagram-5GKGNRK7-C4PU3XN7-DzOQ5fo_.js +36 -0
  14. package/web/assets/architectureDiagram-T3A2C74G-BhljJtMX.js +36 -0
  15. package/web/assets/{arrow-right-B0QrRNSR.js → arrow-right-DtCWRkvj.js} +1 -1
  16. package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-BxiaVwV9.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-D3KXfJhJ.js} +2 -2
  17. package/web/assets/{blockDiagram-VBNYF7ZC-BAnlmDNm.js → blockDiagram-VBNYF7ZC-Dr7ZTeLw.js} +3 -3
  18. package/web/assets/{c4Diagram-5PPSVZJV-MUU8xp1X.js → c4Diagram-5PPSVZJV-CPi9fgO4.js} +2 -2
  19. package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-7rpgYEob.js → c4Diagram-UCG6FXSJ-75X3U2P3-Bj0Dw0IT.js} +2 -2
  20. package/web/assets/channel-aqWuF1WT.js +1 -0
  21. package/web/assets/{chunk-2GRJ4B5K-BZ6Sj0-3.js → chunk-2GRJ4B5K-DeZ82qe7.js} +1 -1
  22. package/web/assets/{chunk-2Q5K7J3B-BkOSQBqV.js → chunk-2Q5K7J3B-B1WwbyzY.js} +1 -1
  23. package/web/assets/{chunk-5RXB4S5H-DgXJvWY0.js → chunk-5RXB4S5H-BX9ZzOwO.js} +1 -1
  24. package/web/assets/{chunk-5VM5RSS4-D-BptZQ9.js → chunk-5VM5RSS4-9-QvfnU2.js} +1 -1
  25. package/web/assets/{chunk-6Q2QTUOP-DIJ0lWTD.js → chunk-6Q2QTUOP-Dkt-zdDg.js} +1 -1
  26. package/web/assets/{chunk-7XDTSPCN-vxuDBi1y.js → chunk-7XDTSPCN-DOxJ22Ws.js} +1 -1
  27. package/web/assets/{chunk-CTNIYPP6-F5ZMIO6O.js → chunk-CTNIYPP6-2D6eMEGx.js} +1 -1
  28. package/web/assets/{chunk-CXNFBKHE-CFr1EfBh.js → chunk-CXNFBKHE-BETxgCVr.js} +1 -1
  29. package/web/assets/{chunk-GF5L2VYU-jqePwawx.js → chunk-GF5L2VYU-JBwf_TWs.js} +1 -1
  30. package/web/assets/{chunk-ISA7TJRJ-DiKuu0wz.js → chunk-ISA7TJRJ-DGTMMKAm.js} +1 -1
  31. package/web/assets/{chunk-JWPE2WC7-CLC3hqKr.js → chunk-JWPE2WC7-B_A1as9r.js} +1 -1
  32. package/web/assets/{chunk-KBJHAD2P-DSEKcYpO.js → chunk-KBJHAD2P-bmR9qwSi.js} +1 -1
  33. package/web/assets/{chunk-LV3HUYFY-P2e0-qZ6.js → chunk-LV3HUYFY-D8UFu3pb.js} +1 -1
  34. package/web/assets/{chunk-M3IUQBOH-Bdt4MjFy.js → chunk-M3IUQBOH-r4ZZKIWR.js} +1 -1
  35. package/web/assets/{chunk-NDIOYS4C-7HlPLAGd.js → chunk-NDIOYS4C-BuC155ii.js} +1 -1
  36. package/web/assets/{chunk-RE4WF27V-D4vIv_G3.js → chunk-RE4WF27V-DJoYieaa.js} +1 -1
  37. package/web/assets/{chunk-RYQCIY6F-tTcuHeqw.js → chunk-RYQCIY6F-DNF6lO1-.js} +1 -1
  38. package/web/assets/{chunk-VII2H2IX-BkXECJ1Z.js → chunk-VII2H2IX-DBudi9Y-.js} +1 -1
  39. package/web/assets/{chunk-X5GNSKZ3-D7yjZGWk.js → chunk-X5GNSKZ3-Dzcgoim8.js} +1 -1
  40. package/web/assets/{chunk-XCWWM2C3-C_es6n6S.js → chunk-XCWWM2C3-3YSDgOL-.js} +1 -1
  41. package/web/assets/{chunk-XXDRQBXY-Bsuow-B8.js → chunk-XXDRQBXY-B5LLJm9i.js} +1 -1
  42. package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-DhFaZ76j.js +1 -0
  43. package/web/assets/classDiagram-JCYQIIEL-CNvSQ-RA.js +1 -0
  44. package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-DhFaZ76j.js +1 -0
  45. package/web/assets/classDiagram-v2-OCEON4UE-CNvSQ-RA.js +1 -0
  46. package/web/assets/{core-Bgf5ngI5.js → core-Cf-iwesp.js} +4 -4
  47. package/web/assets/cose-bilkent-JH36ORCC-DweZYTE6.js +1 -0
  48. package/web/assets/cose-bilkent-JH36ORCC-OB24KH3T-D3S0f4LW.js +1 -0
  49. package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-DY90g1OE.js → cynefin-OW5HDTMX-GVF3BKWE-DrtBkvjj.js} +1 -1
  50. package/web/assets/{cynefin-VYW2F7L2-DjqH_9VW.js → cynefin-VYW2F7L2-lYm8p8qp.js} +1 -1
  51. package/web/assets/cynefinDiagram-5FMLGOSQ-H3WIRU3N-CGurIKbY.js +62 -0
  52. package/web/assets/cynefinDiagram-MW4NZA55-EMZxCSzT.js +62 -0
  53. package/web/assets/{dagre-3AP2YEHR-DCERTXHT-BwLHkvZV.js → dagre-3AP2YEHR-DCERTXHT-B3xLLC4U.js} +2 -2
  54. package/web/assets/{dagre-VZM6K2ZE-0zjstOys.js → dagre-VZM6K2ZE-lqYJ3WXC.js} +2 -2
  55. package/web/assets/{diagram-7IWD3JNH-CoRwcTua.js → diagram-7IWD3JNH-DXSSf7q4.js} +2 -2
  56. package/web/assets/{diagram-B4RE2ZJO-Cau1H7nm.js → diagram-B4RE2ZJO-ak7sOZ19.js} +2 -2
  57. package/web/assets/diagram-LBJQPF4R-XmQxOAH-.js +24 -0
  58. package/web/assets/diagram-Q27KOJAE-D-yQEvjN.js +24 -0
  59. package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-C7lZT5bQ.js → diagram-S7CK7UJ4-MULGZGEL-D5WNGIG9.js} +2 -2
  60. package/web/assets/diagram-UB23O5K3-CRgze-MQ.js +41 -0
  61. package/web/assets/diagram-UQ7AKVKN-YQBY353J-CSvMx1Fm.js +41 -0
  62. package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-BW8LpgQJ.js → diagram-VSXAHHWV-WLNH2ELY-DMVZ0M5s.js} +2 -2
  63. package/web/assets/diagram-VX7I27RA-XW6YQV5G-NONTq7mV.js +24 -0
  64. package/web/assets/diagram-Z3DM3KII-HG7RF65D-D0VfGCJh.js +24 -0
  65. package/web/assets/ebnfDiagram-BXEA7PRR-D0k0RumW.js +1 -0
  66. package/web/assets/ebnfDiagram-PWID7BFC-OKY4VHYD-By7cMb-m.js +1 -0
  67. package/web/assets/{elk.bundled-DP5Rghza.js → elk.bundled-DCJrDGbL.js} +1 -1
  68. package/web/assets/{erDiagram-JOGREHBK-Dz3-stVV.js → erDiagram-JOGREHBK-DxDlKHXu.js} +4 -4
  69. package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-DoltPq2T.js → erDiagram-SSCWMZ5O-PIPKOIK7-DwWrIKUB.js} +2 -2
  70. package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-EXpUdCkE.js → flowDiagram-A5DVABFB-2Z4AVO5R-eqJKcw9W.js} +1 -1
  71. package/web/assets/{flowDiagram-UKHOOZJN--KUxj2rZ.js → flowDiagram-UKHOOZJN-CC84JD3t.js} +1 -1
  72. package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-B3_qeHhv.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-CWOtJ46k.js} +6 -6
  73. package/web/assets/{ganttDiagram-PKOTCBZU-DDw97tpG.js → ganttDiagram-PKOTCBZU-Bw78KC7C.js} +3 -3
  74. package/web/assets/gitGraphDiagram-DS77QQ5N-CywKDUgv.js +106 -0
  75. package/web/assets/gitGraphDiagram-WWUBYQGX-DMWMLL3G-DIUZBjRH.js +106 -0
  76. package/web/assets/{index-CrB9w7Gs.js → index-BLO7CDRf.js} +2 -2
  77. package/web/assets/{index-C-4sKCSr.js → index-BNNZmZ7L.js} +13 -13
  78. package/web/assets/{index-CRlVl931.js → index-CAFnQS2L.js} +1 -1
  79. package/web/assets/index-Coa1vpTG.css +1 -0
  80. package/web/assets/index-WF4B6heO.js +21 -0
  81. package/web/assets/infoDiagram-6WML65LV-DFCB1zK_.js +2 -0
  82. package/web/assets/infoDiagram-RXCK75RN-HANS5KVC-CR0XCzL1.js +2 -0
  83. package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-DR-PXM0c.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-BQmMapB0.js} +4 -4
  84. package/web/assets/{ishikawaDiagram-WSZJBQD7-Bf-J9Ov1.js → ishikawaDiagram-WSZJBQD7-CDVYsb8F.js} +6 -6
  85. package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-jFQUZit6.js → journeyDiagram-EYS64GPL-OAPELBT7-Bv57BEbI.js} +2 -2
  86. package/web/assets/{journeyDiagram-NVQOT4AX-CWed0L5n.js → journeyDiagram-NVQOT4AX-BUhHhw49.js} +2 -2
  87. package/web/assets/{kanban-definition-27J2QSJJ-DhTIozq4.js → kanban-definition-27J2QSJJ-DJWi_jsV.js} +2 -2
  88. package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-MOg0W8Vc.js → kanban-definition-3QL26DDD-I7RKWQQY-DeQuTmff.js} +2 -2
  89. package/web/assets/{katex-N6JRN4PM-DUl1EV3T.js → katex-N6JRN4PM-CsmS8bAu.js} +1 -1
  90. package/web/assets/{linear-BHfMepXe.js → linear-DQOfHiUP.js} +1 -1
  91. package/web/assets/main-Bkgg11ZB.js +462 -0
  92. package/web/assets/mermaid-layout-elk.core-DDX9gcIM.js +2 -0
  93. package/web/assets/{mermaid.core-BVbO1Vp8.js → mermaid.core-D0rh4nEj.js} +13 -13
  94. package/web/assets/{mindmap-definition-FAOFIHXS-UC1xDIuF.js → mindmap-definition-FAOFIHXS-nqKMiE2n.js} +2 -2
  95. package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-DyTkl7Qq.js → mindmap-definition-FBJOCRG2-KIYZG64Y-CgkstHv4.js} +2 -2
  96. package/web/assets/pegDiagram-VL7TDLO6-Cy8v2veR.js +1 -0
  97. package/web/assets/pegDiagram-XKGWAZYB-OIP57N6J-DHOcOx86.js +1 -0
  98. package/web/assets/{pet-BawFRWlx.js → pet-DaccG5xt.js} +1 -1
  99. package/web/assets/pie-5VdQHRMI.js +1 -0
  100. package/web/assets/{pieDiagram-7S7Q4E2Y-Bggk64R7.js → pieDiagram-7S7Q4E2Y-D2e6HI5F.js} +2 -2
  101. package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-DbtP5dKZ.js → pieDiagram-E7YTZNPT-2UOTW327-9oqFgJEQ.js} +3 -3
  102. package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-CbdnLdcx.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-aRI00491.js} +2 -2
  103. package/web/assets/{quadrantDiagram-CIZ2JOQS-D8oWqljf.js → quadrantDiagram-CIZ2JOQS-BxVU5r4V.js} +2 -2
  104. package/web/assets/railroadDiagram-AXF67PYL-CxcdKdyz.js +1 -0
  105. package/web/assets/railroadDiagram-O6MQD6OU-34742W6X-82y7OitY.js +1 -0
  106. package/web/assets/{render-O7CIS3YK-C5zxvpoJ.js → render-O7CIS3YK-0coM2jiE.js} +15 -15
  107. package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-vkMFulyy.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-CiCBt9Q_.js} +2 -2
  108. package/web/assets/{requirementDiagram-LRYGKXZP-4uQ-OIOg.js → requirementDiagram-LRYGKXZP-a-jqBbh4.js} +4 -4
  109. package/web/assets/{rotate-ccw-C3k3pTDh.js → rotate-ccw-DPfbZXyQ.js} +1 -1
  110. package/web/assets/sankeyDiagram-P5KCCOFB-3D3M4XPB-vVOpmIBk.js +40 -0
  111. package/web/assets/{sankeyDiagram-W5VNT64P-CdtMmhMM.js → sankeyDiagram-W5VNT64P-CXBDBsJf.js} +2 -2
  112. package/web/assets/{sequenceDiagram-SI44F4Z6-BTa9vGYr.js → sequenceDiagram-SI44F4Z6-BEzEovun.js} +2 -2
  113. package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-Du5hMpfL.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-BAt30Hjd.js} +2 -2
  114. package/web/assets/sizeCapture-X5ZJPWSS-CqVF9LHS.js +1 -0
  115. package/web/assets/sizeCapture-X5ZJPWSS-PSGVOMYM-DPuPQlRM.js +1 -0
  116. package/web/assets/stateDiagram-HBIQ2CUA-4M2S6MAN-DnF-bmgm.js +1 -0
  117. package/web/assets/stateDiagram-OKZ733FA-CKebmBa5.js +1 -0
  118. package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-BLTGkUFQ.js +1 -0
  119. package/web/assets/stateDiagram-v2-UEYNNEHI-BLjk4IRo.js +1 -0
  120. package/web/assets/swimlanes-SLNWSIFB-M10HmJH-.js +2 -0
  121. package/web/assets/swimlanes-XN3QIQJK-N6N2CCQ6-DzcOR4_D.js +1 -0
  122. package/web/assets/swimlanesDiagram-ULZ7WXOC-DCxkAVHU.js +8 -0
  123. package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-JLTPHNIv.js +8 -0
  124. package/web/assets/time-BgujFIZT.js +1 -0
  125. package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-Cba_QLsv.js → timeline-definition-24CTP7MA-KN7RSRVM-CMhLQnxM.js} +2 -2
  126. package/web/assets/{timeline-definition-Z64GVDOM-nDvkF_F-.js → timeline-definition-Z64GVDOM-LcGdwXI-.js} +2 -2
  127. package/web/assets/transform-B5_amWNh.js +1 -0
  128. package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-Bjm0zDVN.js → vennDiagram-4TSXK5OY-AKJ7LXAN-CKicd48A.js} +2 -2
  129. package/web/assets/{vennDiagram-T6HMQDX7-KudBxp6e.js → vennDiagram-T6HMQDX7-D7hxv4W7.js} +2 -2
  130. package/web/assets/{wardleyDiagram-T6FBY63Y-d1R0A5mS.js → wardleyDiagram-T6FBY63Y-DnTzvRkP.js} +2 -2
  131. package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-BOTe--eD.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-CBmbko0H.js} +2 -2
  132. package/web/assets/{xychartDiagram-ELKLHX3M-ChfX530c.js → xychartDiagram-ELKLHX3M-B1fLmbSX.js} +3 -3
  133. package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-DcSRUgks.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-D1kFCVEP.js} +3 -3
  134. package/web/index.html +3 -3
  135. package/web/pet.html +3 -3
  136. package/web/assets/MindmapView-C61d4ddf.js +0 -4
  137. package/web/assets/ReviewPanel-DoLMdlpR.js +0 -1
  138. package/web/assets/Tableau10-Cz3F1amA.js +0 -1
  139. package/web/assets/abnfDiagram-N423BO3Z-BvTcLUtE.js +0 -1
  140. package/web/assets/abnfDiagram-VCTEODGH-ODA7YWAP-NpbseUTF.js +0 -1
  141. package/web/assets/arc-Bb-hQPAI.js +0 -1
  142. package/web/assets/architectureDiagram-5GKGNRK7-C4PU3XN7-DGtDmisd.js +0 -36
  143. package/web/assets/architectureDiagram-T3A2C74G-huu8moy9.js +0 -36
  144. package/web/assets/channel-BJoUn5Z8.js +0 -1
  145. package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-B3DqqoSe.js +0 -1
  146. package/web/assets/classDiagram-JCYQIIEL-C2n-a_rM.js +0 -1
  147. package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-B3DqqoSe.js +0 -1
  148. package/web/assets/classDiagram-v2-OCEON4UE-C2n-a_rM.js +0 -1
  149. package/web/assets/colors-Cc3OSVma.js +0 -1
  150. package/web/assets/cose-bilkent-JH36ORCC-OB24KH3T-DM0H6Gci.js +0 -1
  151. package/web/assets/cose-bilkent-JH36ORCC-x05QuEnY.js +0 -1
  152. package/web/assets/cynefinDiagram-5FMLGOSQ-H3WIRU3N-DoaOZ7iJ.js +0 -62
  153. package/web/assets/cynefinDiagram-MW4NZA55-DI8ePik6.js +0 -62
  154. package/web/assets/diagram-LBJQPF4R-CZIgxCTB.js +0 -24
  155. package/web/assets/diagram-Q27KOJAE-B_LnuCra.js +0 -24
  156. package/web/assets/diagram-UB23O5K3-qTFCSozX.js +0 -41
  157. package/web/assets/diagram-UQ7AKVKN-YQBY353J-CIootVI_.js +0 -41
  158. package/web/assets/diagram-VX7I27RA-XW6YQV5G-DfhGfGMR.js +0 -24
  159. package/web/assets/diagram-Z3DM3KII-HG7RF65D-seunnnEY.js +0 -24
  160. package/web/assets/ebnfDiagram-BXEA7PRR-ksZAvx5f.js +0 -1
  161. package/web/assets/ebnfDiagram-PWID7BFC-OKY4VHYD-Bvj1acAA.js +0 -1
  162. package/web/assets/gitGraphDiagram-DS77QQ5N-DXUcbzn4.js +0 -106
  163. package/web/assets/gitGraphDiagram-WWUBYQGX-DMWMLL3G-BrLu7NzO.js +0 -106
  164. package/web/assets/index-BUFumkqO.js +0 -21
  165. package/web/assets/index-CODVWHV0.js +0 -416
  166. package/web/assets/index-CU6ublfJ.js +0 -1
  167. package/web/assets/index-DjoBjasB.css +0 -1
  168. package/web/assets/index-H1bePBGl.js +0 -3
  169. package/web/assets/infoDiagram-6WML65LV-rLhQ8DQz.js +0 -2
  170. package/web/assets/infoDiagram-RXCK75RN-HANS5KVC-BhbqgWa_.js +0 -2
  171. package/web/assets/main-D3HpSUyK.js +0 -462
  172. package/web/assets/mermaid-layout-elk.core-KBAfwQxu.js +0 -2
  173. package/web/assets/min-tv6RD-6E.js +0 -1
  174. package/web/assets/pegDiagram-VL7TDLO6-D3DtO4SS.js +0 -1
  175. package/web/assets/pegDiagram-XKGWAZYB-OIP57N6J-D6RFGa8P.js +0 -1
  176. package/web/assets/pie-xhYaZtwS.js +0 -1
  177. package/web/assets/railroadDiagram-AXF67PYL-DqYMsbyG.js +0 -1
  178. package/web/assets/railroadDiagram-O6MQD6OU-34742W6X-BxDZ-lKK.js +0 -1
  179. package/web/assets/sankeyDiagram-P5KCCOFB-3D3M4XPB-Ct2_9lW6.js +0 -40
  180. package/web/assets/sizeCapture-X5ZJPWSS-PSGVOMYM-Dv_CbP4j.js +0 -1
  181. package/web/assets/sizeCapture-X5ZJPWSS-xJHPAAZ7.js +0 -1
  182. package/web/assets/stateDiagram-HBIQ2CUA-4M2S6MAN-BhhZM57P.js +0 -1
  183. package/web/assets/stateDiagram-OKZ733FA-CHCQNs83.js +0 -1
  184. package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-CNwPFEas.js +0 -1
  185. package/web/assets/stateDiagram-v2-UEYNNEHI-uaaN79rE.js +0 -1
  186. package/web/assets/step-SI6FXFD6.js +0 -1
  187. package/web/assets/swimlanes-SLNWSIFB-Bste-JE-.js +0 -2
  188. package/web/assets/swimlanes-XN3QIQJK-N6N2CCQ6-03elMVxe.js +0 -1
  189. package/web/assets/swimlanesDiagram-ULZ7WXOC-CNw-u2S_.js +0 -8
  190. package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-jhFh1EB2.js +0 -8
  191. package/web/assets/time-CLfYygnx.js +0 -1
  192. package/web/assets/transform-CzGDKG_M.js +0 -1
@@ -1,9 +1,9 @@
1
- import{g as Bt}from"./chunk-XXDRQBXY-Bsuow-B8.js";import{s as Ft}from"./chunk-KBJHAD2P-DSEKcYpO.js";import{_ as p,b as Yt,a as Pt,s as zt,g as Gt,n as Kt,o as Ut,c as rt,l as V,p as Zt,q as jt,r as Wt,t as qt,u as Qt,v as Xt,x as Ht}from"./mermaid.core-BVbO1Vp8.js";import{s as Jt}from"./transform-CzGDKG_M.js";import{c as $t}from"./channel-BJoUn5Z8.js";import"./main-D3HpSUyK.js";import"./index-C-4sKCSr.js";import"./step-SI6FXFD6.js";var gt=(function(){var s=p(function(I,n,a,l){for(a=a||{},l=I.length;l--;a[I[l]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],h=[1,11],c=[1,12],u=[1,13],y=[1,23],d=[1,24],k=[1,25],W=[1,26],q=[1,27],S=[1,19],Q=[1,28],B=[1,29],D=[1,20],R=[1,18],T=[1,21],x=[1,22],at=[1,36],ct=[1,37],ot=[1,38],lt=[1,39],ht=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,71,72],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],bt=[66,67,68,69,70],mt=[1,85],kt=[1,84],Et=[1,82],St=[1,83],Tt=[6,10,42,47],L=[6,10,13,41,42,47,48,49],H=[1,93],J=[1,92],$=[1,91],Z=[19,58],Ot=[1,102],Nt=[1,101],ut=[19,58,61,63],dt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes: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:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:p(function(n,a,l,r,f,t,j){var e=t.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 68:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 80:case 81:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 67:case 70:this.$=t[e];break;case 66:this.$=t[e-1]+t[e];break;case 69:t[e-2].push(t[e]),this.$=t[e-2];break;case 71:this.$=t[e].replace(/"/g,"");break;case 72:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:h,26:c,28:u,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:W,37:q,40:S,43:Q,44:B,48:D,50:R,51:T,52:x},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:h,26:c,28:u,29:14,30:15,31:16,32:17,33:y,34:d,35:k,36:W,37:q,40:S,43:Q,44:B,48:D,50:R,51:T,52:x},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:at,67:ct,68:ot,69:lt,70:ht}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:x},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:D,50:R,51:T,52:x},{65:57,71:[1,58],72:[1,59]},s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(P,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:at,67:ct,68:ot,69:lt,70:ht}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:at,67:ct,68:ot,69:lt,70:ht},s(bt,[2,78]),s(bt,[2,79]),{6:mt,10:kt,39:81,42:Et,47:St},{40:[1,86],41:[1,87]},s(Tt,[2,43],{46:88,13:z,41:G,48:K,49:U}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:mt,10:kt,39:89,42:Et,47:St},{14:90,40:H,50:J,73:$},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:x},{18:96,19:[1,97],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:98,57:99,60:100,62:Ot,63:Nt}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:z,41:G,45:105,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(Z,[2,62],{57:110,61:[1,111],63:Nt}),s(Z,[2,63]),s(ut,[2,68]),s(Z,[2,71]),s(ut,[2,70]),{18:112,19:[1,113],53:53,54:54,58:Y},{16:114,40:O,41:N},s(Tt,[2,44],{46:88,13:z,41:G,48:K,49:U}),{14:115,40:H,50:J,73:$},{16:116,40:O,41:N},{14:117,40:H,50:J,73:$},s(i,[2,13]),s(Z,[2,64]),{60:118,62:Ot},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(ut,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:Y},{14:124,40:H,50:J,73:$},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:p(function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},"parseError"),parse:p(function(n){var a=this,l=[0],r=[],f=[null],t=[],j=this.table,e="",et=0,At=0,Lt=2,It=1,wt=t.slice.call(arguments,1),_=Object.create(this.lexer),C={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(C.yy[pt]=this.yy[pt]);_.setInput(n,C.yy),C.yy.lexer=_,C.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ft=_.yylloc;t.push(ft);var Vt=_.options&&_.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(b){l.length=l.length-2*b,f.length=f.length-b,t.length=t.length-b}p(Mt,"popStack");function Rt(){var b;return b=r.pop()||_.lex()||It,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}p(Rt,"lex");for(var g,v,m,yt,w={},st,E,xt,it;;){if(v=l[l.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=Rt()),m=j[v]&&j[v][g]),typeof m>"u"||!m.length||!m[0]){var _t="";it=[];for(st in j[v])this.terminals_[st]&&st>Lt&&it.push("'"+this.terminals_[st]+"'");_.showPosition?_t="Parse error on line "+(et+1)+`:
1
+ import{g as Bt}from"./chunk-XXDRQBXY-B5LLJm9i.js";import{s as Ft}from"./chunk-KBJHAD2P-bmR9qwSi.js";import{_ as p,b as Yt,a as Pt,s as zt,g as Gt,n as Kt,o as Ut,c as rt,l as V,p as Zt,q as jt,r as Wt,t as qt,u as Qt,v as Xt,x as Ht}from"./mermaid.core-D0rh4nEj.js";import{s as Jt}from"./transform-B5_amWNh.js";import{c as $t}from"./channel-aqWuF1WT.js";import"./main-Bkgg11ZB.js";import"./index-BNNZmZ7L.js";var gt=(function(){var s=p(function(I,n,a,l){for(a=a||{},l=I.length;l--;a[I[l]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],o=[1,10],h=[1,11],c=[1,12],u=[1,13],y=[1,23],d=[1,24],m=[1,25],W=[1,26],q=[1,27],S=[1,19],Q=[1,28],B=[1,29],D=[1,20],R=[1,18],T=[1,21],x=[1,22],at=[1,36],ct=[1,37],ot=[1,38],lt=[1,39],ht=[1,40],F=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,66,67,68,69,70],O=[1,45],N=[1,46],Y=[1,55],P=[40,48,50,51,52,71,72],z=[1,66],G=[1,64],A=[1,61],K=[1,65],U=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,66,67,68,69,70],bt=[66,67,68,69,70],kt=[1,85],mt=[1,84],Et=[1,82],St=[1,83],Tt=[6,10,42,47],L=[6,10,13,41,42,47,48,49],H=[1,93],J=[1,92],$=[1,91],Z=[19,58],Ot=[1,102],Nt=[1,101],ut=[19,58,61,63],dt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes: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:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,"?":59,attributeKeyType:60,",":61,ATTRIBUTE_KEY:62,COMMENT:63,cardinality:64,relType:65,ZERO_OR_ONE:66,ZERO_OR_MORE:67,ONE_OR_MORE:68,ONLY_ONE:69,MD_PARENT:70,NON_IDENTIFYING:71,IDENTIFYING:72,WORD:73,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",59:"?",61:",",62:"ATTRIBUTE_KEY",63:"COMMENT",66:"ZERO_OR_ONE",67:"ZERO_OR_MORE",68:"ONE_OR_MORE",69:"ONLY_ONE",70:"MD_PARENT",71:"NON_IDENTIFYING",72:"IDENTIFYING",73:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[54,2],[55,1],[56,1],[56,3],[60,1],[57,1],[12,3],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[14,1],[14,1],[14,1]],performAction:p(function(n,a,l,r,f,t,j){var e=t.length-1;switch(f){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 59:case 68:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 80:case 81:this.$=t[e].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 82:this.$=t[e];break;case 60:t[e].push(t[e-1]),this.$=t[e];break;case 61:this.$={type:t[e-1],name:t[e]};break;case 62:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 63:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 64:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 65:case 67:case 70:this.$=t[e];break;case 66:this.$=t[e-1]+t[e];break;case 69:t[e-2].push(t[e]),this.$=t[e-2];break;case 71:this.$=t[e].replace(/"/g,"");break;case 72:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 73:this.$=r.Cardinality.ZERO_OR_ONE;break;case 74:this.$=r.Cardinality.ZERO_OR_MORE;break;case 75:this.$=r.Cardinality.ONE_OR_MORE;break;case 76:this.$=r.Cardinality.ONLY_ONE;break;case 77:this.$=r.Cardinality.MD_PARENT;break;case 78:this.$=r.Identification.NON_IDENTIFYING;break;case 79:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:o,24:h,26:c,28:u,29:14,30:15,31:16,32:17,33:y,34:d,35:m,36:W,37:q,40:S,43:Q,44:B,48:D,50:R,51:T,52:x},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:30,11:9,22:o,24:h,26:c,28:u,29:14,30:15,31:16,32:17,33:y,34:d,35:m,36:W,37:q,40:S,43:Q,44:B,48:D,50:R,51:T,52:x},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:31,64:35,15:[1,32],17:[1,33],20:[1,34],66:at,67:ct,68:ot,69:lt,70:ht}),{23:[1,41]},{25:[1,42]},{27:[1,43]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(F,[2,54]),s(F,[2,55]),s(F,[2,56]),s(F,[2,57]),s(F,[2,58]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:44,40:O,41:N},{16:47,40:O,41:N},{16:48,40:O,41:N},s(i,[2,4]),{11:49,40:S,48:D,50:R,51:T,52:x},{16:50,40:O,41:N},{18:51,19:[1,52],53:53,54:54,58:Y},{11:56,40:S,48:D,50:R,51:T,52:x},{65:57,71:[1,58],72:[1,59]},s(P,[2,73]),s(P,[2,74]),s(P,[2,75]),s(P,[2,76]),s(P,[2,77]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:z,38:60,41:G,42:A,45:62,46:63,48:K,49:U},s(X,[2,37]),s(X,[2,38]),{16:68,40:O,41:N,42:A},{13:z,38:69,41:G,42:A,45:62,46:63,48:K,49:U},{13:[1,70],15:[1,71]},s(i,[2,17],{64:35,12:72,17:[1,73],42:A,66:at,67:ct,68:ot,69:lt,70:ht}),{19:[1,74]},s(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:Y},{55:76,58:[1,77]},{58:[2,65],59:[1,78]},{21:[1,79]},{64:80,66:at,67:ct,68:ot,69:lt,70:ht},s(bt,[2,78]),s(bt,[2,79]),{6:kt,10:mt,39:81,42:Et,47:St},{40:[1,86],41:[1,87]},s(Tt,[2,43],{46:88,13:z,41:G,48:K,49:U}),s(L,[2,45]),s(L,[2,50]),s(L,[2,51]),s(L,[2,52]),s(L,[2,53]),s(i,[2,41],{42:A}),{6:kt,10:mt,39:89,42:Et,47:St},{14:90,40:H,50:J,73:$},{16:94,40:O,41:N},{11:95,40:S,48:D,50:R,51:T,52:x},{18:96,19:[1,97],53:53,54:54,58:Y},s(i,[2,12]),{19:[2,60]},s(Z,[2,61],{56:98,57:99,60:100,62:Ot,63:Nt}),s([19,58,62,63],[2,67]),{58:[2,66]},s(i,[2,22],{15:[1,104],17:[1,103]}),s([40,48,50,51,52],[2,72]),s(i,[2,36]),{13:z,41:G,45:105,46:63,48:K,49:U},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(X,[2,39]),s(X,[2,40]),s(L,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,80]),s(i,[2,81]),s(i,[2,82]),{13:[1,106],42:A},{13:[1,108],15:[1,107]},{19:[1,109]},s(i,[2,15]),s(Z,[2,62],{57:110,61:[1,111],63:Nt}),s(Z,[2,63]),s(ut,[2,68]),s(Z,[2,71]),s(ut,[2,70]),{18:112,19:[1,113],53:53,54:54,58:Y},{16:114,40:O,41:N},s(Tt,[2,44],{46:88,13:z,41:G,48:K,49:U}),{14:115,40:H,50:J,73:$},{16:116,40:O,41:N},{14:117,40:H,50:J,73:$},s(i,[2,13]),s(Z,[2,64]),{60:118,62:Ot},{19:[1,119]},s(i,[2,20]),s(i,[2,23],{17:[1,120],42:A}),s(i,[2,11]),{13:[1,121],42:A},s(i,[2,10]),s(ut,[2,69]),s(i,[2,18]),{18:122,19:[1,123],53:53,54:54,58:Y},{14:124,40:H,50:J,73:$},{19:[1,125]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{75:[2,60],78:[2,66]},parseError:p(function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},"parseError"),parse:p(function(n){var a=this,l=[0],r=[],f=[null],t=[],j=this.table,e="",et=0,At=0,Lt=2,It=1,wt=t.slice.call(arguments,1),_=Object.create(this.lexer),C={yy:{}};for(var pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,pt)&&(C.yy[pt]=this.yy[pt]);_.setInput(n,C.yy),C.yy.lexer=_,C.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var ft=_.yylloc;t.push(ft);var Vt=_.options&&_.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(b){l.length=l.length-2*b,f.length=f.length-b,t.length=t.length-b}p(Mt,"popStack");function Rt(){var b;return b=r.pop()||_.lex()||It,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}p(Rt,"lex");for(var g,v,k,yt,w={},st,E,xt,it;;){if(v=l[l.length-1],this.defaultActions[v]?k=this.defaultActions[v]:((g===null||typeof g>"u")&&(g=Rt()),k=j[v]&&j[v][g]),typeof k>"u"||!k.length||!k[0]){var _t="";it=[];for(st in j[v])this.terminals_[st]&&st>Lt&&it.push("'"+this.terminals_[st]+"'");_.showPosition?_t="Parse error on line "+(et+1)+`:
2
2
  `+_.showPosition()+`
3
- Expecting `+it.join(", ")+", got '"+(this.terminals_[g]||g)+"'":_t="Parse error on line "+(et+1)+": Unexpected "+(g==It?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(_t,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:ft,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(m[0]){case 1:l.push(g),f.push(_.yytext),t.push(_.yylloc),l.push(m[1]),g=null,At=_.yyleng,e=_.yytext,et=_.yylineno,ft=_.yylloc;break;case 2:if(E=this.productions_[m[1]][1],w.$=f[f.length-E],w._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Vt&&(w._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),yt=this.performAction.apply(w,[e,At,et,C.yy,m[1],f,t].concat(wt)),typeof yt<"u")return yt;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[m[1]][0]),f.push(w.$),t.push(w._$),xt=j[l[l.length-2]][l[l.length-1]],l.push(xt);break;case 3:return!0}}return!0},"parse")},Dt=(function(){var I={EOF:1,parseError:p(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:p(function(n,a){return this.yy=a||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:p(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(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:p(function(n){var a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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).
3
+ Expecting `+it.join(", ")+", got '"+(this.terminals_[g]||g)+"'":_t="Parse error on line "+(et+1)+": Unexpected "+(g==It?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(_t,{text:_.match,token:this.terminals_[g]||g,line:_.yylineno,loc:ft,expected:it})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(k[0]){case 1:l.push(g),f.push(_.yytext),t.push(_.yylloc),l.push(k[1]),g=null,At=_.yyleng,e=_.yytext,et=_.yylineno,ft=_.yylloc;break;case 2:if(E=this.productions_[k[1]][1],w.$=f[f.length-E],w._$={first_line:t[t.length-(E||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(E||1)].first_column,last_column:t[t.length-1].last_column},Vt&&(w._$.range=[t[t.length-(E||1)].range[0],t[t.length-1].range[1]]),yt=this.performAction.apply(w,[e,At,et,C.yy,k[1],f,t].concat(wt)),typeof yt<"u")return yt;E&&(l=l.slice(0,-1*E*2),f=f.slice(0,-1*E),t=t.slice(0,-1*E)),l.push(this.productions_[k[1]][0]),f.push(w.$),t.push(w._$),xt=j[l[l.length-2]][l[l.length-1]],l.push(xt);break;case 3:return!0}}return!0},"parse")},Dt=(function(){var I={EOF:1,parseError:p(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:p(function(n,a){return this.yy=a||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:p(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(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:p(function(n){var a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=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),l.length-1&&(this.yylineno-=l.length-1);var f=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:l?(l.length===r.length?this.yylloc.first_column:0)+r[r.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(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:p(function(n){this.unput(this.match.slice(n))},"less"),pastInput:p(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:p(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:p(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
5
  `+a+"^"},"showPosition"),test_match:p(function(n,a){var l,r,f;if(this.options.backtrack_lexer&&(f={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(f.yylloc.range=this.yylloc.range.slice(0))),r=n[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var t in f)this[t]=f[t];return!1}return!1},"test_match"),next:p(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,l,r;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),t=0;t<f.length;t++)if(l=this._input.match(this.rules[f[t]]),l&&(!a||l[0].length>a[0].length)){if(a=l,r=t,this.options.backtrack_lexer){if(n=this.test_match(l,f[t]),n!==!1)return n;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(n=this.test_match(a,f[r]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:p(function(){var a=this.next();return a||this.lex()},"lex"),begin:p(function(a){this.conditionStack.push(a)},"begin"),popState:p(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:p(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:p(function(a){this.begin(a)},"pushState"),stateStackSize:p(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:p(function(a,l,r,f){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 73;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 62;case 25:return 58;case 26:return 58;case 27:this.begin("block_bq");break;case 28:return 58;case 29:this.popState();break;case 30:return 63;case 31:break;case 32:return this.popState(),19;case 33:return l.yytext[0];case 34:return 20;case 35:return 21;case 36:return this.begin("style"),44;case 37:return this.popState(),10;case 38:break;case 39:return 13;case 40:return 42;case 41:return 49;case 42:return this.begin("style"),37;case 43:return 43;case 44:return 66;case 45:return 68;case 46:return 68;case 47:return 68;case 48:return 66;case 49:return 66;case 50:return 67;case 51:return 67;case 52:return 67;case 53:return 67;case 54:return 67;case 55:return 68;case 56:return 67;case 57:return 68;case 58:return 69;case 59:return 69;case 60:return 51;case 61:return 69;case 62:return 69;case 63:return 69;case 64:return 52;case 65:return 48;case 66:return 69;case 67:return 66;case 68:return 67;case 69:return 68;case 70:return 70;case 71:return 71;case 72:return 72;case 73:return 72;case 74:return 71;case 75:return 71;case 76:return 71;case 77:return 41;case 78:return 47;case 79:return 40;case 80:return l.yytext[0];case 81:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[37,38,39,40,41,77,78],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[28,29],inclusive:!1},block:{rules:[23,24,25,26,27,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,34,35,36,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,79,80,81],inclusive:!0}}};return I})();dt.lexer=Dt;function tt(){this.yy={}}return p(tt,"Parser"),tt.prototype=dt,dt.Parser=tt,new tt})();gt.parser=gt;var te=gt,M,ee=(M=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Yt,this.getAccTitle=Pt,this.setAccDescription=zt,this.getAccDescription=Gt,this.setDiagramTitle=Kt,this.getDiagramTitle=Ut,this.getConfig=p(()=>rt().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(i,o=""){var h;return this.entities.has(i)?!((h=this.entities.get(i))!=null&&h.alias)&&o&&(this.entities.get(i).alias=o,V.info(`Add alias '${o}' to entity '${i}'`)):(this.entities.set(i,{id:`entity-${i}-${this.entities.size}`,label:i,attributes:[],alias:o,shape:"erBox",look:rt().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),V.info("Added new entity :",i)),this.entities.get(i)}getEntity(i){return this.entities.get(i)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(i,o){const h=this.addEntity(i);let c;for(c=o.length-1;c>=0;c--)o[c].keys||(o[c].keys=[]),o[c].comment||(o[c].comment=""),h.attributes.push(o[c]),V.debug("Added attribute ",o[c].name)}addRelationship(i,o,h,c){const u=this.entities.get(i),y=this.entities.get(h);if(!u||!y)return;const d={entityA:u.id,roleA:o,entityB:y.id,relSpec:c};this.relationships.push(d),V.debug("Added new relationship :",d)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(i){this.direction=i}getCompiledStyles(i){let o=[];for(const h of i){const c=this.classes.get(h);c!=null&&c.styles&&(o=[...o,...c.styles??[]].map(u=>u.trim())),c!=null&&c.textStyles&&(o=[...o,...c.textStyles??[]].map(u=>u.trim()))}return o}addCssStyles(i,o){for(const h of i){const c=this.entities.get(h);if(!o||!c)return;for(const u of o)c.cssStyles.push(u)}}addClass(i,o){i.forEach(h=>{let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),o&&o.forEach(function(u){if(/color/.exec(u)){const y=u.replace("fill","bgFill");c.textStyles.push(y)}c.styles.push(u)})})}setClass(i,o){for(const h of i){const c=this.entities.get(h);if(c)for(const u of o)c.cssClasses+=" "+u}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Zt()}getData(){const i=[],o=[],h=rt();let c=0;for(const y of this.entities.keys()){const d=this.entities.get(y);d&&(d.cssCompiledStyles=this.getCompiledStyles(d.cssClasses.split(" ")),d.colorIndex=c++,i.push(d))}let u=0;for(const y of this.relationships){const d={id:jt(y.entityA,y.entityB,{prefix:"id",counter:u++}),type:"normal",curve:"basis",start:y.entityA,end:y.entityB,label:y.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:y.relSpec.cardB.toLowerCase(),arrowTypeEnd:y.relSpec.cardA.toLowerCase(),pattern:y.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:h.look,labelType:"markdown"};o.push(d)}return{nodes:i,edges:o,other:{},config:h,direction:"TB"}}},p(M,"ErDB"),M),vt={};qt(vt,{draw:()=>se});var se=p(async function(s,i,o,h){V.info("REF0:"),V.info("Drawing er diagram (unified)",i);const{securityLevel:c,er:u,layout:y}=rt(),d=h.db.getData(),k=Bt(i,c);d.type=h.type,d.layoutAlgorithm=Qt(y),d.config.flowchart.nodeSpacing=(u==null?void 0:u.nodeSpacing)||140,d.config.flowchart.rankSpacing=(u==null?void 0:u.rankSpacing)||80,d.direction=h.db.getDirection();const{config:W}=d,{look:q}=W;q==="neo"?d.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:d.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],d.diagramId=i,await Xt(d,k),d.layoutAlgorithm==="elk"&&k.select(".edges").lower();const S=k.selectAll('[id*="-background"]');Array.from(S).length>0&&S.each(function(){const B=Jt(this),R=B.attr("id").replace("-background",""),T=k.select(`#${CSS.escape(R)}`);if(!T.empty()){const x=T.attr("transform");B.attr("transform",x)}});const Q=8;Ht.insertTitle(k,"erDiagramTitleText",(u==null?void 0:u.titleTopMargin)??25,h.db.getDiagramTitle()),Ft(k,Q,"erDiagram",(u==null?void 0:u.useMaxWidth)??!0)},"draw"),Ct=p((s,i)=>{const o=$t,h=o(s,"r"),c=o(s,"g"),u=o(s,"b");return Wt(h,c,u,i)},"fade"),nt=new Set(["redux-color","redux-dark-color"]),ie=p(s=>{const{theme:i,look:o,bkgColorArray:h,borderColorArray:c}=s;if(!nt.has(i))return"";const u=(h==null?void 0:h.length)>0;let y="";for(let d=0;d<s.THEME_COLOR_LIMIT;d++)y+=`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:p(function(){var a=this.next();return a||this.lex()},"lex"),begin:p(function(a){this.conditionStack.push(a)},"begin"),popState:p(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:p(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:p(function(a){this.begin(a)},"pushState"),stateStackSize:p(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:p(function(a,l,r,f){switch(r){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 73;case 16:return 4;case 17:return this.begin("block"),17;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 62;case 25:return 58;case 26:return 58;case 27:this.begin("block_bq");break;case 28:return 58;case 29:this.popState();break;case 30:return 63;case 31:break;case 32:return this.popState(),19;case 33:return l.yytext[0];case 34:return 20;case 35:return 21;case 36:return this.begin("style"),44;case 37:return this.popState(),10;case 38:break;case 39:return 13;case 40:return 42;case 41:return 49;case 42:return this.begin("style"),37;case 43:return 43;case 44:return 66;case 45:return 68;case 46:return 68;case 47:return 68;case 48:return 66;case 49:return 66;case 50:return 67;case 51:return 67;case 52:return 67;case 53:return 67;case 54:return 67;case 55:return 68;case 56:return 67;case 57:return 68;case 58:return 69;case 59:return 69;case 60:return 51;case 61:return 69;case 62:return 69;case 63:return 69;case 64:return 52;case 65:return 48;case 66:return 69;case 67:return 66;case 68:return 67;case 69:return 68;case 70:return 70;case 71:return 71;case 72:return 72;case 73:return 72;case 74:return 71;case 75:return 71;case 76:return 71;case 77:return 41;case 78:return 47;case 79:return 40;case 80:return l.yytext[0];case 81:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[37,38,39,40,41,77,78],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[28,29],inclusive:!1},block:{rules:[23,24,25,26,27,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,34,35,36,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,79,80,81],inclusive:!0}}};return I})();dt.lexer=Dt;function tt(){this.yy={}}return p(tt,"Parser"),tt.prototype=dt,dt.Parser=tt,new tt})();gt.parser=gt;var te=gt,M,ee=(M=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Yt,this.getAccTitle=Pt,this.setAccDescription=zt,this.getAccDescription=Gt,this.setDiagramTitle=Kt,this.getDiagramTitle=Ut,this.getConfig=p(()=>rt().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}addEntity(i,o=""){var h;return this.entities.has(i)?!((h=this.entities.get(i))!=null&&h.alias)&&o&&(this.entities.get(i).alias=o,V.info(`Add alias '${o}' to entity '${i}'`)):(this.entities.set(i,{id:`entity-${i}-${this.entities.size}`,label:i,attributes:[],alias:o,shape:"erBox",look:rt().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),V.info("Added new entity :",i)),this.entities.get(i)}getEntity(i){return this.entities.get(i)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(i,o){const h=this.addEntity(i);let c;for(c=o.length-1;c>=0;c--)o[c].keys||(o[c].keys=[]),o[c].comment||(o[c].comment=""),h.attributes.push(o[c]),V.debug("Added attribute ",o[c].name)}addRelationship(i,o,h,c){const u=this.entities.get(i),y=this.entities.get(h);if(!u||!y)return;const d={entityA:u.id,roleA:o,entityB:y.id,relSpec:c};this.relationships.push(d),V.debug("Added new relationship :",d)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(i){this.direction=i}getCompiledStyles(i){let o=[];for(const h of i){const c=this.classes.get(h);c!=null&&c.styles&&(o=[...o,...c.styles??[]].map(u=>u.trim())),c!=null&&c.textStyles&&(o=[...o,...c.textStyles??[]].map(u=>u.trim()))}return o}addCssStyles(i,o){for(const h of i){const c=this.entities.get(h);if(!o||!c)return;for(const u of o)c.cssStyles.push(u)}}addClass(i,o){i.forEach(h=>{let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),o&&o.forEach(function(u){if(/color/.exec(u)){const y=u.replace("fill","bgFill");c.textStyles.push(y)}c.styles.push(u)})})}setClass(i,o){for(const h of i){const c=this.entities.get(h);if(c)for(const u of o)c.cssClasses+=" "+u}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Zt()}getData(){const i=[],o=[],h=rt();let c=0;for(const y of this.entities.keys()){const d=this.entities.get(y);d&&(d.cssCompiledStyles=this.getCompiledStyles(d.cssClasses.split(" ")),d.colorIndex=c++,i.push(d))}let u=0;for(const y of this.relationships){const d={id:jt(y.entityA,y.entityB,{prefix:"id",counter:u++}),type:"normal",curve:"basis",start:y.entityA,end:y.entityB,label:y.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:y.relSpec.cardB.toLowerCase(),arrowTypeEnd:y.relSpec.cardA.toLowerCase(),pattern:y.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:h.look,labelType:"markdown"};o.push(d)}return{nodes:i,edges:o,other:{},config:h,direction:"TB"}}},p(M,"ErDB"),M),vt={};qt(vt,{draw:()=>se});var se=p(async function(s,i,o,h){V.info("REF0:"),V.info("Drawing er diagram (unified)",i);const{securityLevel:c,er:u,layout:y}=rt(),d=h.db.getData(),m=Bt(i,c);d.type=h.type,d.layoutAlgorithm=Qt(y),d.config.flowchart.nodeSpacing=(u==null?void 0:u.nodeSpacing)||140,d.config.flowchart.rankSpacing=(u==null?void 0:u.rankSpacing)||80,d.direction=h.db.getDirection();const{config:W}=d,{look:q}=W;q==="neo"?d.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:d.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],d.diagramId=i,await Xt(d,m),d.layoutAlgorithm==="elk"&&m.select(".edges").lower();const S=m.selectAll('[id*="-background"]');Array.from(S).length>0&&S.each(function(){const B=Jt(this),R=B.attr("id").replace("-background",""),T=m.select(`#${CSS.escape(R)}`);if(!T.empty()){const x=T.attr("transform");B.attr("transform",x)}});const Q=8;Ht.insertTitle(m,"erDiagramTitleText",(u==null?void 0:u.titleTopMargin)??25,h.db.getDiagramTitle()),Ft(m,Q,"erDiagram",(u==null?void 0:u.useMaxWidth)??!0)},"draw"),Ct=p((s,i)=>{const o=$t,h=o(s,"r"),c=o(s,"g"),u=o(s,"b");return Wt(h,c,u,i)},"fade"),nt=new Set(["redux-color","redux-dark-color"]),ie=p(s=>{const{theme:i,look:o,bkgColorArray:h,borderColorArray:c}=s;if(!nt.has(i))return"";const u=(h==null?void 0:h.length)>0;let y="";for(let d=0;d<s.THEME_COLOR_LIMIT;d++)y+=`
7
7
 
8
8
  [data-look="${o}"][data-color-id="color-${d}"].node path {
9
9
  stroke: ${c[d]};
@@ -82,4 +82,4 @@ Expecting `+it.join(", ")+", got '"+(this.terminals_[g]||g)+"'":_t="Parse error
82
82
  [data-look=neo].labelBkg {
83
83
  background-color: ${Ct(s.tertiaryColor,.5)};
84
84
  }
85
- `},"getStyles"),ne=re,fe={parser:te,get db(){return new ee},renderer:vt,styles:ne};export{fe as diagram};
85
+ `},"getStyles"),ne=re,pe={parser:te,get db(){return new ee},renderer:vt,styles:ne};export{pe as diagram};
@@ -1,4 +1,4 @@
1
- import{g as Kt}from"./chunk-NDIOYS4C-7HlPLAGd.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-C5zxvpoJ.js";import{s as ne}from"./chunk-ISA7TJRJ-DiKuu0wz.js";import{s as oe}from"./transform-CzGDKG_M.js";import{_ as E}from"./mermaid-layout-elk.core-KBAfwQxu.js";import"./main-D3HpSUyK.js";import"./index-C-4sKCSr.js";import"./step-SI6FXFD6.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-BuC155ii.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-0coM2jiE.js";import{s as ne}from"./chunk-ISA7TJRJ-DGTMMKAm.js";import{s as oe}from"./transform-B5_amWNh.js";import{_ as E}from"./mermaid-layout-elk.core-DDX9gcIM.js";import"./main-Bkgg11ZB.js";import"./index-BNNZmZ7L.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()+`
@@ -96,4 +96,4 @@ Expecting `+dt.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Ot="Parse error
96
96
  .cluster-label text {
97
97
  fill: ${s.titleColor??s.textColor};
98
98
  }
99
- `},"getStyles"),pe=de,Te={parser:le,get db(){return new ce},renderer:Ft,styles:pe};export{Te as diagram};
99
+ `},"getStyles"),pe=de,Se={parser:le,get db(){return new ce},renderer:Ft,styles:pe};export{Se as diagram};
@@ -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-C5zxvpoJ.js";import{g as f1}from"./chunk-CXNFBKHE-CFr1EfBh.js";import{g as g1}from"./chunk-NDIOYS4C-7HlPLAGd.js";import{s as b1}from"./chunk-ISA7TJRJ-DiKuu0wz.js";import{f as A1}from"./chunk-LV3HUYFY-P2e0-qZ6.js";import{_ as Y}from"./mermaid-layout-elk.core-KBAfwQxu.js";import{s as at}from"./transform-CzGDKG_M.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(`
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-0coM2jiE.js";import{g as f1}from"./chunk-CXNFBKHE-BETxgCVr.js";import{g as g1}from"./chunk-NDIOYS4C-BuC155ii.js";import{s as b1}from"./chunk-ISA7TJRJ-DGTMMKAm.js";import{f as A1}from"./chunk-LV3HUYFY-D8UFu3pb.js";import{_ as Y}from"./mermaid-layout-elk.core-DDX9gcIM.js";import{s as at}from"./transform-B5_amWNh.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-D-BptZQ9.js";import{g as Qt}from"./chunk-XXDRQBXY-Bsuow-B8.js";import{s as Jt}from"./chunk-KBJHAD2P-DSEKcYpO.js";import{_ as m,aR as Zt,I as Mt,l as J,c as g1,u as $t,v as te,x as rt,b as ee,s as se,n as ie,a as re,g as ae,o as ne,j as ue,J as le,K as oe,aV as ce,q as st,P as he,p as de,aU as pe,r as fe}from"./mermaid.core-BVbO1Vp8.js";import{f as ge}from"./chunk-2GRJ4B5K-BZ6Sj0-3.js";import{s as it}from"./transform-CzGDKG_M.js";import{c as be}from"./channel-BJoUn5Z8.js";var Ae="flowchart-",G1,ke=(G1=class{constructor(){this.vertexCounter=0,this.config=g1(),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=ee,this.setAccDescription=se,this.setDiagramTitle=ie,this.getAccTitle=re,this.getAccDescription=ae,this.getDiagramTitle=ne,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 ue.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 a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,u,o,h,c={},g){var L,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let f;g.includes(`
1
+ import{g as Xt}from"./chunk-5VM5RSS4-9-QvfnU2.js";import{g as Qt}from"./chunk-XXDRQBXY-B5LLJm9i.js";import{s as Jt}from"./chunk-KBJHAD2P-bmR9qwSi.js";import{_ as m,aR as Zt,I as Mt,l as J,c as g1,u as $t,v as te,x as rt,b as ee,s as se,n as ie,a as re,g as ae,o as ne,j as ue,J as le,K as oe,aV as ce,q as st,P as he,p as de,aU as pe,r as fe}from"./mermaid.core-D0rh4nEj.js";import{f as ge}from"./chunk-2GRJ4B5K-DeZ82qe7.js";import{s as it}from"./transform-B5_amWNh.js";import{c as be}from"./channel-aqWuF1WT.js";var Ae="flowchart-",G1,ke=(G1=class{constructor(){this.vertexCounter=0,this.config=g1(),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=ee,this.setAccDescription=se,this.setDiagramTitle=ie,this.getAccTitle=re,this.getAccDescription=ae,this.getDiagramTitle=ne,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 ue.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 a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,u,o,h,c={},g){var L,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let f;g.includes(`
2
2
  `)?f=g+`
3
3
  `:f=`{
4
4
  `+g+`
@@ -1,9 +1,9 @@
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-C5zxvpoJ.js";import{_ as Y,a as ut,b as Ct}from"./mermaid-layout-elk.core-KBAfwQxu.js";import{s as bt}from"./transform-CzGDKG_M.js";import{t as be,i as we,a as _e,b as Bt,c as qt,d as De,e as Se,f as Ce,g as Me,h as Ee,j as Ie,k as Ye,l as Gt,m as Xt,n as Ut,s as Zt,o as Qt,p as $e}from"./time-CLfYygnx.js";import{m as Le,a as Fe}from"./min-tv6RD-6E.js";import{l as Ae}from"./linear-BHfMepXe.js";import"./main-D3HpSUyK.js";import"./index-C-4sKCSr.js";import"./step-SI6FXFD6.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(n,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 n=L[v];if(typeof n=="string")y+=n.length;else{var d=n.regex,f=n.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(r){var S=r.afternoon;if(S!==void 0){var o=r.hours;S?o<12&&(r.hours+=12):o===12&&(r.hours=0),delete r.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,_,r,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,rt=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,nt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,nt+60*P.offset*1e3)):r?new Date(Date.UTC(ot,G,ft,Z,ct,tt,nt)):(J=new Date(ot,G,ft,Z,ct,tt,nt),rt&&(J=S(J).week(rt).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 n=I.length,d=1;d<=n;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===n&&(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(n){T.$d[N(n)]=h[n]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(n){return n!=null?Number(n):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"),n=this.$d.seconds||0;this.$d.milliseconds&&(n+=this.$d.milliseconds/1e3,n=Math.round(1e3*n)/1e3);var d=L(n,"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,n,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=n);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(n,d,f,u,_,r,S){var o=r.length-1;switch(_){case 1:return r[o-1];case 2:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[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(r[o].substr(11)),this.$=r[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=r[o].substr(18);break;case 19:u.TopAxis(),this.$=r[o].substr(8);break;case 20:u.setAxisFormat(r[o].substr(11)),this.$=r[o].substr(11);break;case 21:u.setTickInterval(r[o].substr(13)),this.$=r[o].substr(13);break;case 22:u.setExcludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 23:u.setIncludes(r[o].substr(9)),this.$=r[o].substr(9);break;case 24:u.setTodayMarker(r[o].substr(12)),this.$=r[o].substr(12);break;case 27:u.setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 28:this.$=r[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=r[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 33:u.addTask(r[o-1],r[o]),this.$="task";break;case 34:this.$=r[o-1],u.setClickEvent(r[o-1],r[o],null);break;case 35:this.$=r[o-2],u.setClickEvent(r[o-2],r[o-1],r[o]);break;case 36:this.$=r[o-2],u.setClickEvent(r[o-2],r[o-1],null),u.setLink(r[o-2],r[o]);break;case 37:this.$=r[o-3],u.setClickEvent(r[o-3],r[o-2],r[o-1]),u.setLink(r[o-3],r[o]);break;case 38:this.$=r[o-2],u.setClickEvent(r[o-2],r[o],null),u.setLink(r[o-2],r[o-1]);break;case 39:this.$=r[o-3],u.setClickEvent(r[o-3],r[o-1],r[o]),u.setLink(r[o-3],r[o-2]);break;case 40:this.$=r[o-1],u.setLink(r[o-1],r[o]);break;case 41:case 47:this.$=r[o-1]+" "+r[o];break;case 42:case 43:case 45:this.$=r[o-2]+" "+r[o-1]+" "+r[o];break;case 44:case 46:this.$=r[o-3]+" "+r[o-2]+" "+r[o-1]+" "+r[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(n,d){if(d.recoverable)this.trace(n);else{var f=new Error(n);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(n){var d=this,f=[0],u=[],_=[null],r=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=r.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(n,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var rt=E.yylloc;r.push(rt);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,r.length=r.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={},nt,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(nt in S[J])this.terminals_[nt]&&nt>C&&xt.push("'"+this.terminals_[nt]+"'");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-0coM2jiE.js";import{_ as Y,a as ut,b as Ct}from"./mermaid-layout-elk.core-DDX9gcIM.js";import{s as bt}from"./transform-B5_amWNh.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-BgujFIZT.js";import{l as Ae}from"./linear-DQOfHiUP.js";import"./main-Bkgg11ZB.js";import"./index-BNNZmZ7L.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
- 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:rt,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),r.push(E.yylloc),f.push(Z[1]),G=null,c=E.yyleng,o=E.yytext,H=E.yylineno,rt=E.yylloc;break;case 2:if(et=this.productions_[Z[1]][1],tt.$=_[_.length-et],tt._$={first_line:r[r.length-(et||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(et||1)].first_column,last_column:r[r.length-1].last_column},at&&(tt._$.range=[r[r.length-(et||1)].range[0],r[r.length-1].range[1]]),ct=this.performAction.apply(tt,[o,c,H,j.yy,Z[1],_,r].concat(R)),typeof ct<"u")return ct;et&&(f=f.slice(0,-1*et*2),_=_.slice(0,-1*et),r=r.slice(0,-1*et)),f.push(this.productions_[Z[1]][0]),_.push(tt.$),r.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(n,d){return this.yy=d||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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.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),n},"input"),unput:l(function(n){var d=n.length,f=n.split(/(?:\r\n?|\n)/g);this._input=n+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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(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:l(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:l(function(){var n=this.pastInput(),d=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+d+"^"},"showPosition"),test_match:l(function(n,d){var f,u,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var r in _)this[r]=_[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,d,f,u;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),r=0;r<_.length;r++)if(f=this._input.match(this.rules[_[r]]),f&&(!d||f[0].length>d[0].length)){if(d=f,u=r,this.options.backtrack_lexer){if(n=this.test_match(f,_[r]),n!==!1)return n;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(n=this.test_match(d,_[u]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(Y(function(){var d=this.next();return d||this.lex()},"lex"),"lex"),begin:l(Y(function(d){this.conditionStack.push(d)},"begin"),"begin"),popState:l(Y(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:l(Y(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:l(Y(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),"topState"),pushState:l(Y(function(d){this.begin(d)},"pushState"),"pushState"),stateStackSize:l(Y(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:l(Y(function(d,f,u,_){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return y})();m.lexer=T;function v(){this.yy={}}return Y(v,"Parser"),l(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Yt.parser=Yt;var Be=Yt;K.default.extend(ze.default);K.default.extend(Ne.default);K.default.extend(je.default);var Jt={friday:5,saturday:6},st="",At="",Ot=void 0,Wt="",yt=[],gt=[],Pt=new Map,Vt=[],Dt=[],pt="",Rt="",se=["active","done","crit","milestone","vert"],zt=[],ht="",Tt=!1,Nt=!1,jt="sunday",St="saturday",$t=0,qe=l(function(){Vt=[],Dt=[],pt="",zt=[],wt=0,Ft=void 0,_t=void 0,X=[],st="",At="",Rt="",Ot=void 0,Wt="",yt=[],gt=[],Tt=!1,Nt=!1,$t=0,Pt=new Map,ht="",ve(),jt="sunday",St="saturday"},"clear"),Ge=l(function(t){ht=t},"setDiagramId"),Xe=l(function(t){At=t},"setAxisFormat"),Ue=l(function(){return At},"getAxisFormat"),Ze=l(function(t){Ot=t},"setTickInterval"),Qe=l(function(){return Ot},"getTickInterval"),Je=l(function(t){Wt=t},"setTodayMarker"),Ke=l(function(){return Wt},"getTodayMarker"),ts=l(function(t){st=t},"setDateFormat"),es=l(function(){Tt=!0},"enableInclusiveEndDates"),ss=l(function(){return Tt},"endDatesAreInclusive"),is=l(function(){Nt=!0},"enableTopAxis"),rs=l(function(){return Nt},"topAxisEnabled"),ns=l(function(t){Rt=t},"setDisplayMode"),as=l(function(){return Rt},"getDisplayMode"),os=l(function(){return st},"getDateFormat"),ie=l((t,s)=>{const i=s.toLowerCase().split(/[\s,]+/).filter(e=>e!=="");return[...new Set([...t,...i])]},"mergeTokens"),cs=l(function(t){yt=ie(yt,t)},"setIncludes"),ls=l(function(){return yt},"getIncludes"),us=l(function(t){gt=ie(gt,t)},"setExcludes"),ds=l(function(){return gt},"getExcludes"),fs=l(function(){return Pt},"getLinks"),hs=l(function(t){pt=t,Vt.push(t)},"addSection"),ms=l(function(){return Vt},"getSections"),ks=l(function(){let t=Kt();const s=10;let i=0;for(;!t&&i<s;)t=Kt(),i++;return Dt=X,Dt},"getTasks"),re=l(function(t,s,i,e){const a=t.format(s.trim()),g=t.format("YYYY-MM-DD");return e.includes(a)||e.includes(g)?!1:i.includes("weekends")&&(t.isoWeekday()===Jt[St]||t.isoWeekday()===Jt[St]+1)||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(a)||i.includes(g)},"isInvalidDate"),ys=l(function(t){jt=t},"setWeekday"),gs=l(function(){return jt},"getWeekday"),ps=l(function(t){St=t},"setWeekend"),ne=l(function(t,s,i,e){if(!i.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=(0,K.default)(t.startTime):a=(0,K.default)(t.startTime,s,!0),a=a.add(1,"d");let g;t.endTime instanceof Date?g=(0,K.default)(t.endTime):g=(0,K.default)(t.endTime,s,!0);const[p,b]=vs(a,g,s,i,e);t.endTime=p.toDate(),t.renderEndTime=b},"checkTaskDates"),vs=l(function(t,s,i,e,a){let g=!1,p=null;const b=s.add(1e4,"d");for(;t<=s;){if(g||(p=s.toDate()),g=re(t,i,e,a),g&&(s=s.add(1,"d"),s>b))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,p]},"fixTaskDates"),Lt=l(function(t,s,i){if(i=i.trim(),l(b=>{const F=b.trim();return F==="x"||F==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(i))return new Date(Number(i));const g=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let b=null;for(const A of g.groups.ids.split(" ")){let w=dt(A);w!==void 0&&(!b||w.endTime>b.endTime)&&(b=w)}if(b)return b.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return p.toDate();{lt.debug("Invalid date:"+i),lt.debug("With date format:"+s.trim());const b=new Date(i);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+i);return b}},"getStartDate"),ae=l(function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=l(function(t,s,i,e=!1){i=i.trim();const g=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let w=null;for(const O of g.groups.ids.split(" ")){let z=dt(O);z!==void 0&&(!w||z.startTime<w.startTime)&&(w=z)}if(w)return w.startTime;const V=new Date;return V.setHours(0,0,0,0),V}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return e&&(p=p.add(1,"d")),p.toDate();let b=(0,K.default)(t);const[F,A]=ae(i);if(!Number.isNaN(F)){const w=b.add(F,A);w.isValid()&&(b=w)}return b.toDate()},"getEndDate"),wt=0,kt=l(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),Ts=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let p=0;p<e.length;p++)e[p]=e[p].trim();let g="";switch(e.length){case 1:a.id=kt(),a.startTime=t.endTime,g=e[0];break;case 2:a.id=kt(),a.startTime=Lt(void 0,st,e[0]),g=e[1];break;case 3:a.id=kt(e[0]),a.startTime=Lt(void 0,st,e[1]),g=e[2];break}return g&&(a.endTime=oe(a.startTime,st,g,Tt),a.manualEndTime=(0,K.default)(g,"YYYY-MM-DD",!0).isValid(),ne(a,st,gt,yt)),a},"compileData"),xs=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let g=0;g<e.length;g++)e[g]=e[g].trim();switch(e.length){case 1:a.id=kt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:e[0]};break;case 2:a.id=kt(),a.startTime={type:"getStartDate",startData:e[0]},a.endTime={data:e[1]};break;case 3:a.id=kt(e[0]),a.startTime={type:"getStartDate",startData:e[1]},a.endTime={data:e[2]};break}return a},"parseData"),Ft,_t,X=[],ce={},bs=l(function(t,s){const i={section:pt,type:pt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},e=xs(_t,s);i.raw.startTime=e.startTime,i.raw.endTime=e.endTime,i.id=e.id,i.prevTaskId=_t,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,i.vert?i.order=-1:(i.order=$t,$t++);const a=X.push(i);_t=i.id,ce[i.id]=a-1},"addTask"),dt=l(function(t){const s=ce[t];return X[s]},"findTaskById"),ws=l(function(t,s){const i={section:pt,type:pt,description:t,task:t,classes:[]},e=Ts(Ft,s);i.startTime=e.startTime,i.endTime=e.endTime,i.id=e.id,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,Ft=i,Dt.push(i)},"addTaskOrg"),Kt=l(function(){const t=l(function(i){const e=X[i];let a="";switch(X[i].raw.startTime.type){case"prevTaskEnd":{const g=dt(e.prevTaskId);e.startTime=g.endTime;break}case"getStartDate":a=Lt(void 0,st,X[i].raw.startTime.startData),a&&(X[i].startTime=a);break}return X[i].startTime&&(X[i].endTime=oe(X[i].startTime,st,X[i].raw.endTime.data,Tt),X[i].endTime&&(X[i].processed=!0,X[i].manualEndTime=(0,K.default)(X[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),ne(X[i],st,gt,yt))),X[i].processed},"compileTask");let s=!0;for(const[i,e]of X.entries())t(i),s=s&&e.processed;return s},"compileTasks"),_s=l(function(t,s){let i=s;mt().securityLevel!=="loose"&&(i=(0,Re.sanitizeUrl)(s)),t.split(",").forEach(function(e){dt(e)!==void 0&&(ue(e,()=>{window.open(i,"_self")}),Pt.set(e,i))}),le(t,"clickable")},"setLink"),le=l(function(t,s){t.split(",").forEach(function(i){let e=dt(i);e!==void 0&&e.classes.push(s)})},"setClass"),Ds=l(function(t,s,i){if(mt().securityLevel!=="loose"||s===void 0)return;let e=[];if(typeof i=="string"){e=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<e.length;g++){let p=e[g].trim();p.startsWith('"')&&p.endsWith('"')&&(p=p.substr(1,p.length-2)),e[g]=p}}e.length===0&&e.push(t),dt(t)!==void 0&&ue(t,()=>{xe.runFunc(s,...e)})},"setClickFun"),ue=l(function(t,s){zt.push(function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}"]`);e!==null&&e.addEventListener("click",function(){s()})},function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}-text"]`);e!==null&&e.addEventListener("click",function(){s()})})},"pushFun"),Ss=l(function(t,s,i){t.split(",").forEach(function(e){Ds(e,s,i)}),le(t,"clickable")},"setClickEvent"),Cs=l(function(t){zt.forEach(function(s){s(t)})},"bindFunctions"),Ms={getConfig:l(()=>mt().gantt,"getConfig"),clear:qe,setDateFormat:ts,getDateFormat:os,enableInclusiveEndDates:es,endDatesAreInclusive:ss,enableTopAxis:is,topAxisEnabled:rs,setAxisFormat:Xe,getAxisFormat:Ue,setTickInterval:Ze,getTickInterval:Qe,setTodayMarker:Je,getTodayMarker:Ke,setAccTitle:ye,getAccTitle:ke,setDiagramTitle:me,getDiagramTitle:he,setDiagramId:Ge,setDisplayMode:ns,getDisplayMode:as,setAccDescription:fe,getAccDescription:de,addSection:hs,getSections:ms,getTasks:ks,addTask:bs,findTaskById:dt,addTaskOrg:ws,setIncludes:cs,getIncludes:ls,setExcludes:us,getExcludes:ds,setClickEvent:Ss,setLink:_s,getLinks:fs,bindFunctions:Cs,parseDuration:ae,isInvalidDate:re,setWeekday:ys,getWeekday:gs,setWeekend:ps};function Mt(t,s,i){let e=!0;for(;e;)e=!1,i.forEach(function(a){const g="^\\s*"+a+"\\s*$",p=new RegExp(g);t[0].match(p)&&(s[a]=!0,t.shift(1),e=!0)})}Y(Mt,"getTaskTags");l(Mt,"getTaskTags");vt.default.extend(He.default);var Es=l(function(){lt.debug("Something is calling, setConf, remove the call")},"setConf"),te={monday:Ye,tuesday:Ie,wednesday:Ee,thursday:Me,friday:Ce,saturday:Se,sunday:De},Is=l((t,s)=>{let i=[...t].map(()=>-1/0),e=[...t].sort((g,p)=>g.startTime-p.startTime||g.order-p.order),a=0;for(const g of e)for(let p=0;p<i.length;p++)if(g.startTime>=i[p]){i[p]=g.endTime,g.order=p+s,p>a&&(a=p);break}return a},"getMaxIntersections"),it,It=1e4,Ys=l(function(t,s,i,e){const a=mt().gantt;e.db.setDiagramId(s);const g=mt().securityLevel;let p;g==="sandbox"&&(p=bt("#i"+s));const b=g==="sandbox"?bt(p.nodes()[0].contentDocument.body):bt("body"),F=g==="sandbox"?p.nodes()[0].contentDocument:document,A=F.getElementById(s);it=A.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const w=e.db.getTasks(),V=w.filter(m=>!m.vert);let O=[];for(const m of V)O.push(m.type);O=I(O);const z={};let U=2*a.topPadding;if(e.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const v of V)m[v.section]===void 0?m[v.section]=[v]:m[v.section].push(v);let T=0;for(const v of Object.keys(m)){const y=Is(m[v],T)+1;T+=y,U+=y*(a.barHeight+a.barGap),z[v]=y}}else{U+=V.length*(a.barHeight+a.barGap);for(const m of O)z[m]=V.filter(T=>T.type===m).length}A.setAttribute("viewBox","0 0 "+it+" "+U);const N=b.select(`[id="${s}"]`),k=be().domain([Le(w,function(m){return m.startTime}),Fe(w,function(m){return m.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function D(m,T){const v=m.startTime,y=T.startTime;let n=0;return v>y?n=1:v<y&&(n=-1),n}Y(D,"taskCompare"),l(D,"taskCompare"),w.sort(D),W(w,it,U),ge(N,U,it,a.useMaxWidth),N.append("text").text(e.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function W(m,T,v){const y=a.barHeight,n=y+a.barGap,d=a.topPadding,f=a.leftPadding,u=Ae().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(we);q(n,d,f,T,v,m,e.db.getExcludes(),e.db.getIncludes()),$(f,d,T,v),L(m,n,d,f,y,u,T),x(n,d),h(f,d,T,v)}Y(W,"makeGantt"),l(W,"makeGantt");function L(m,T,v,y,n,d,f){m.sort((c,C)=>c.vert===C.vert?0:c.vert?1:-1);const u=m.filter(c=>!c.vert),r=[...new Set(u.map(c=>c.order))].map(c=>u.find(C=>C.order===c));N.append("g").selectAll("rect").data(r).enter().append("rect").attr("x",0).attr("y",function(c,C){return C=c.order,C*T+v-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",T).attr("class",function(c){for(const[C,M]of O.entries())if(c.type===M)return"section section"+C%a.numberSectionStyles;return"section section0"}).enter();const S=N.append("g").selectAll("rect").data(m).enter(),o=e.db.getLinks();if(S.append("rect").attr("id",function(c){return s+"-"+c.id}).attr("rx",3).attr("ry",3).attr("x",function(c){return c.milestone?k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))-.5*n:k(c.startTime)+y}).attr("y",function(c,C){return C=c.order,c.vert?a.gridLineStartPadding:C*T+v}).attr("width",function(c){return c.milestone?n:c.vert?.08*n:k(c.renderEndTime||c.endTime)-k(c.startTime)}).attr("height",function(c){return c.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:n}).attr("transform-origin",function(c,C){return C=c.order,(k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))).toString()+"px "+(C*T+v+.5*n).toString()+"px"}).attr("class",function(c){const C="task";let M="";c.classes.length>0&&(M=c.classes.join(" "));let R=0;for(const[j,P]of O.entries())c.type===P&&(R=j%a.numberSectionStyles);let E="";return c.active?c.crit?E+=" activeCrit":E=" active":c.done?c.crit?E=" doneCrit":E=" done":c.crit&&(E+=" crit"),E.length===0&&(E=" task"),c.milestone&&(E=" milestone "+E),c.vert&&(E=" vert "+E),E+=R,E+=" "+M,C+E}),S.append("text").attr("id",function(c){return s+"-"+c.id+"-text"}).text(function(c){return c.task}).attr("font-size",a.fontSize).attr("x",function(c){let C=k(c.startTime),M=k(c.renderEndTime||c.endTime);if(c.milestone&&(C+=.5*(k(c.endTime)-k(c.startTime))-.5*n,M=C+n),c.vert)return k(c.startTime)+y;const R=this.getBBox().width;return R>M-C?M+R+1.5*a.leftPadding>f?C+y-5:M+y+5:(M-C)/2+C+y}).attr("y",function(c,C){return c.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(C=c.order,C*T+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",n).attr("class",function(c){const C=k(c.startTime);let M=k(c.endTime);c.milestone&&(M=C+n);const R=this.getBBox().width;let E="";c.classes.length>0&&(E=c.classes.join(" "));let j=0;for(const[rt,at]of O.entries())c.type===at&&(j=rt%a.numberSectionStyles);let P="";return c.active&&(c.crit?P="activeCritText"+j:P="activeText"+j),c.done?c.crit?P=P+" doneCritText"+j:P=P+" doneText"+j:c.crit&&(P=P+" critText"+j),c.milestone&&(P+=" milestoneText"),c.vert&&(P+=" vertText"),R>M-C?M+R+1.5*a.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+j+" "+P:E+" taskTextOutsideRight taskTextOutside"+j+" "+P+" width-"+R:E+" taskText taskText"+j+" "+P+" width-"+R}),mt().securityLevel==="sandbox"){let c;c=bt("#i"+s);const C=c.nodes()[0].contentDocument;S.filter(function(M){return o.has(M.id)}).each(function(M){var R=C.querySelector("#"+CSS.escape(s+"-"+M.id)),E=C.querySelector("#"+CSS.escape(s+"-"+M.id+"-text"));const j=R.parentNode;var P=C.createElement("a");P.setAttribute("xlink:href",o.get(M.id)),P.setAttribute("target","_top"),j.appendChild(P),P.appendChild(R),P.appendChild(E)})}}Y(L,"drawRects"),l(L,"drawRects");function q(m,T,v,y,n,d,f,u){if(f.length===0&&u.length===0)return;let _,r;for(const{startTime:M,endTime:R}of d)(_===void 0||M<_)&&(_=M),(r===void 0||R>r)&&(r=R);if(!_||!r)return;if((0,vt.default)(r).diff((0,vt.default)(_),"year")>5){lt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=e.db.getDateFormat(),o=[];let H=null,c=(0,vt.default)(_);for(;c.valueOf()<=r;)e.db.isInvalidDate(c,S,f,u)?H?H.end=c:H={start:c,end:c}:H&&(o.push(H),H=null),c=c.add(1,"d");N.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",M=>s+"-exclude-"+M.start.format("YYYY-MM-DD")).attr("x",M=>k(M.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",M=>k(M.end.endOf("day"))-k(M.start.startOf("day"))).attr("height",n-T-a.gridLineStartPadding).attr("transform-origin",function(M,R){return(k(M.start)+v+.5*(k(M.end)-k(M.start))).toString()+"px "+(R*m+.5*n).toString()+"px"}).attr("class","exclude-range")}Y(q,"drawExcludeDays"),l(q,"drawExcludeDays");function B(m,T,v,y){if(v<=0||m>T)return 1/0;const n=T-m,d=vt.default.duration({[y??"day"]:v}).asMilliseconds();return d<=0?1/0:Math.ceil(n/d)}Y(B,"getEstimatedTickCount"),l(B,"getEstimatedTickCount");function $(m,T,v,y){const n=e.db.getDateFormat(),d=e.db.getAxisFormat();let f;d?f=d:n==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let u=_e(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));const r=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(e.db.getTickInterval()||a.tickInterval);if(r!==null){const S=parseInt(r[1],10);if(isNaN(S)||S<=0)lt.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{const o=r[2],H=e.db.getWeekday()||a.weekday,c=k.domain(),C=c[0],M=c[1],R=B(C,M,S,o);if(R>It)lt.warn(`The tick interval "${S}${o}" would generate ${R} ticks, which exceeds the maximum allowed (${It}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(o){case"millisecond":u.ticks(Qt.every(S));break;case"second":u.ticks(Zt.every(S));break;case"minute":u.ticks(Ut.every(S));break;case"hour":u.ticks(Xt.every(S));break;case"day":u.ticks(Gt.every(S));break;case"week":u.ticks(te[H].every(S));break;case"month":u.ticks(qt.every(S));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+m+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),e.db.topAxisEnabled()||a.topAxis){let S=$e(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));if(r!==null){const o=parseInt(r[1],10);if(isNaN(o)||o<=0)lt.warn(`Invalid tick interval value: "${r[1]}". Skipping custom tick interval.`);else{const H=r[2],c=e.db.getWeekday()||a.weekday,C=k.domain(),M=C[0],R=C[1];if(B(M,R,o,H)<=It)switch(H){case"millisecond":S.ticks(Qt.every(o));break;case"second":S.ticks(Zt.every(o));break;case"minute":S.ticks(Ut.every(o));break;case"hour":S.ticks(Xt.every(o));break;case"day":S.ticks(Gt.every(o));break;case"week":S.ticks(te[c].every(o));break;case"month":S.ticks(qt.every(o));break}}}N.append("g").attr("class","grid").attr("transform","translate("+m+", "+T+")").call(S).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}Y($,"makeGrid"),l($,"makeGrid");function x(m,T){let v=0;const y=Object.keys(z).map(n=>[n,z[n]]);N.append("g").selectAll("text").data(y).enter().append(function(n){const d=n[0].split(pe.lineBreakRegex),f=-(d.length-1)/2,u=F.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[_,r]of d.entries()){const S=F.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),_>0&&S.setAttribute("dy","1em"),S.textContent=r,u.appendChild(S)}return u}).attr("x",10).attr("y",function(n,d){if(d>0)for(let f=0;f<d;f++)return v+=y[d-1][1],n[1]*m/2+v*m+T;else return n[1]*m/2+T}).attr("font-size",a.sectionFontSize).attr("class",function(n){for(const[d,f]of O.entries())if(n[0]===f)return"sectionTitle sectionTitle"+d%a.numberSectionStyles;return"sectionTitle"})}Y(x,"vertLabels"),l(x,"vertLabels");function h(m,T,v,y){const n=e.db.getTodayMarker();if(n==="off")return;const d=N.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",k(f)+m).attr("x2",k(f)+m).attr("y1",a.titleTopMargin).attr("y2",y-a.titleTopMargin).attr("class","today"),n!==""&&u.attr("style",n.replace(/,/g,";"))}Y(h,"drawToday"),l(h,"drawToday");function I(m){const T={},v=[];for(let y=0,n=m.length;y<n;++y)Object.prototype.hasOwnProperty.call(T,m[y])||(T[m[y]]=!0,v.push(m[y]));return v}Y(I,"checkUnique"),l(I,"checkUnique")},"draw"),$s={setConf:Es,draw:Ys},Ls=l(t=>`
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
+ `+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()+`
5
+ `+d+"^"},"showPosition"),test_match:l(function(r,d){var f,u,_;if(this.options.backtrack_lexer&&(_={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(_.yylloc.range=this.yylloc.range.slice(0))),u=r[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var n in _)this[n]=_[n];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,d,f,u;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),n=0;n<_.length;n++)if(f=this._input.match(this.rules[_[n]]),f&&(!d||f[0].length>d[0].length)){if(d=f,u=n,this.options.backtrack_lexer){if(r=this.test_match(f,_[n]),r!==!1)return r;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(r=this.test_match(d,_[u]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(Y(function(){var d=this.next();return d||this.lex()},"lex"),"lex"),begin:l(Y(function(d){this.conditionStack.push(d)},"begin"),"begin"),popState:l(Y(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:l(Y(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:l(Y(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),"topState"),pushState:l(Y(function(d){this.begin(d)},"pushState"),"pushState"),stateStackSize:l(Y(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{"case-insensitive":!0},performAction:l(Y(function(d,f,u,_){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return y})();m.lexer=T;function v(){this.yy={}}return Y(v,"Parser"),l(v,"Parser"),v.prototype=m,m.Parser=v,new v})();Yt.parser=Yt;var Be=Yt;K.default.extend(ze.default);K.default.extend(Ne.default);K.default.extend(je.default);var Jt={friday:5,saturday:6},st="",At="",Ot=void 0,Wt="",yt=[],gt=[],Pt=new Map,Vt=[],Dt=[],pt="",Rt="",se=["active","done","crit","milestone","vert"],zt=[],ht="",Tt=!1,Nt=!1,jt="sunday",St="saturday",$t=0,qe=l(function(){Vt=[],Dt=[],pt="",zt=[],wt=0,Ft=void 0,_t=void 0,X=[],st="",At="",Rt="",Ot=void 0,Wt="",yt=[],gt=[],Tt=!1,Nt=!1,$t=0,Pt=new Map,ht="",ve(),jt="sunday",St="saturday"},"clear"),Ge=l(function(t){ht=t},"setDiagramId"),Xe=l(function(t){At=t},"setAxisFormat"),Ue=l(function(){return At},"getAxisFormat"),Ze=l(function(t){Ot=t},"setTickInterval"),Qe=l(function(){return Ot},"getTickInterval"),Je=l(function(t){Wt=t},"setTodayMarker"),Ke=l(function(){return Wt},"getTodayMarker"),ts=l(function(t){st=t},"setDateFormat"),es=l(function(){Tt=!0},"enableInclusiveEndDates"),ss=l(function(){return Tt},"endDatesAreInclusive"),is=l(function(){Nt=!0},"enableTopAxis"),ns=l(function(){return Nt},"topAxisEnabled"),rs=l(function(t){Rt=t},"setDisplayMode"),as=l(function(){return Rt},"getDisplayMode"),os=l(function(){return st},"getDateFormat"),ie=l((t,s)=>{const i=s.toLowerCase().split(/[\s,]+/).filter(e=>e!=="");return[...new Set([...t,...i])]},"mergeTokens"),cs=l(function(t){yt=ie(yt,t)},"setIncludes"),ls=l(function(){return yt},"getIncludes"),us=l(function(t){gt=ie(gt,t)},"setExcludes"),ds=l(function(){return gt},"getExcludes"),fs=l(function(){return Pt},"getLinks"),hs=l(function(t){pt=t,Vt.push(t)},"addSection"),ms=l(function(){return Vt},"getSections"),ks=l(function(){let t=Kt();const s=10;let i=0;for(;!t&&i<s;)t=Kt(),i++;return Dt=X,Dt},"getTasks"),ne=l(function(t,s,i,e){const a=t.format(s.trim()),g=t.format("YYYY-MM-DD");return e.includes(a)||e.includes(g)?!1:i.includes("weekends")&&(t.isoWeekday()===Jt[St]||t.isoWeekday()===Jt[St]+1)||i.includes(t.format("dddd").toLowerCase())?!0:i.includes(a)||i.includes(g)},"isInvalidDate"),ys=l(function(t){jt=t},"setWeekday"),gs=l(function(){return jt},"getWeekday"),ps=l(function(t){St=t},"setWeekend"),re=l(function(t,s,i,e){if(!i.length||t.manualEndTime)return;let a;t.startTime instanceof Date?a=(0,K.default)(t.startTime):a=(0,K.default)(t.startTime,s,!0),a=a.add(1,"d");let g;t.endTime instanceof Date?g=(0,K.default)(t.endTime):g=(0,K.default)(t.endTime,s,!0);const[p,b]=vs(a,g,s,i,e);t.endTime=p.toDate(),t.renderEndTime=b},"checkTaskDates"),vs=l(function(t,s,i,e,a){let g=!1,p=null;const b=s.add(1e4,"d");for(;t<=s;){if(g||(p=s.toDate()),g=ne(t,i,e,a),g&&(s=s.add(1,"d"),s>b))throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[s,p]},"fixTaskDates"),Lt=l(function(t,s,i){if(i=i.trim(),l(b=>{const F=b.trim();return F==="x"||F==="X"},"isTimestampFormat")(s)&&/^\d+$/.test(i))return new Date(Number(i));const g=/^after\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let b=null;for(const A of g.groups.ids.split(" ")){let w=dt(A);w!==void 0&&(!b||w.endTime>b.endTime)&&(b=w)}if(b)return b.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return p.toDate();{lt.debug("Invalid date:"+i),lt.debug("With date format:"+s.trim());const b=new Date(i);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+i);return b}},"getStartDate"),ae=l(function(t){const s=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return s!==null?[Number.parseFloat(s[1]),s[2]]:[NaN,"ms"]},"parseDuration"),oe=l(function(t,s,i,e=!1){i=i.trim();const g=/^until\s+(?<ids>[\d\w- ]+)/.exec(i);if(g!==null){let w=null;for(const O of g.groups.ids.split(" ")){let z=dt(O);z!==void 0&&(!w||z.startTime<w.startTime)&&(w=z)}if(w)return w.startTime;const V=new Date;return V.setHours(0,0,0,0),V}let p=(0,K.default)(i,s.trim(),!0);if(p.isValid())return e&&(p=p.add(1,"d")),p.toDate();let b=(0,K.default)(t);const[F,A]=ae(i);if(!Number.isNaN(F)){const w=b.add(F,A);w.isValid()&&(b=w)}return b.toDate()},"getEndDate"),wt=0,kt=l(function(t){return t===void 0?(wt=wt+1,"task"+wt):t},"parseId"),Ts=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let p=0;p<e.length;p++)e[p]=e[p].trim();let g="";switch(e.length){case 1:a.id=kt(),a.startTime=t.endTime,g=e[0];break;case 2:a.id=kt(),a.startTime=Lt(void 0,st,e[0]),g=e[1];break;case 3:a.id=kt(e[0]),a.startTime=Lt(void 0,st,e[1]),g=e[2];break}return g&&(a.endTime=oe(a.startTime,st,g,Tt),a.manualEndTime=(0,K.default)(g,"YYYY-MM-DD",!0).isValid(),re(a,st,gt,yt)),a},"compileData"),xs=l(function(t,s){let i;s.substr(0,1)===":"?i=s.substr(1,s.length):i=s;const e=i.split(","),a={};Mt(e,a,se);for(let g=0;g<e.length;g++)e[g]=e[g].trim();switch(e.length){case 1:a.id=kt(),a.startTime={type:"prevTaskEnd",id:t},a.endTime={data:e[0]};break;case 2:a.id=kt(),a.startTime={type:"getStartDate",startData:e[0]},a.endTime={data:e[1]};break;case 3:a.id=kt(e[0]),a.startTime={type:"getStartDate",startData:e[1]},a.endTime={data:e[2]};break}return a},"parseData"),Ft,_t,X=[],ce={},bs=l(function(t,s){const i={section:pt,type:pt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:s},task:t,classes:[]},e=xs(_t,s);i.raw.startTime=e.startTime,i.raw.endTime=e.endTime,i.id=e.id,i.prevTaskId=_t,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,i.vert?i.order=-1:(i.order=$t,$t++);const a=X.push(i);_t=i.id,ce[i.id]=a-1},"addTask"),dt=l(function(t){const s=ce[t];return X[s]},"findTaskById"),ws=l(function(t,s){const i={section:pt,type:pt,description:t,task:t,classes:[]},e=Ts(Ft,s);i.startTime=e.startTime,i.endTime=e.endTime,i.id=e.id,i.active=e.active,i.done=e.done,i.crit=e.crit,i.milestone=e.milestone,i.vert=e.vert,Ft=i,Dt.push(i)},"addTaskOrg"),Kt=l(function(){const t=l(function(i){const e=X[i];let a="";switch(X[i].raw.startTime.type){case"prevTaskEnd":{const g=dt(e.prevTaskId);e.startTime=g.endTime;break}case"getStartDate":a=Lt(void 0,st,X[i].raw.startTime.startData),a&&(X[i].startTime=a);break}return X[i].startTime&&(X[i].endTime=oe(X[i].startTime,st,X[i].raw.endTime.data,Tt),X[i].endTime&&(X[i].processed=!0,X[i].manualEndTime=(0,K.default)(X[i].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),re(X[i],st,gt,yt))),X[i].processed},"compileTask");let s=!0;for(const[i,e]of X.entries())t(i),s=s&&e.processed;return s},"compileTasks"),_s=l(function(t,s){let i=s;mt().securityLevel!=="loose"&&(i=(0,Re.sanitizeUrl)(s)),t.split(",").forEach(function(e){dt(e)!==void 0&&(ue(e,()=>{window.open(i,"_self")}),Pt.set(e,i))}),le(t,"clickable")},"setLink"),le=l(function(t,s){t.split(",").forEach(function(i){let e=dt(i);e!==void 0&&e.classes.push(s)})},"setClass"),Ds=l(function(t,s,i){if(mt().securityLevel!=="loose"||s===void 0)return;let e=[];if(typeof i=="string"){e=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let g=0;g<e.length;g++){let p=e[g].trim();p.startsWith('"')&&p.endsWith('"')&&(p=p.substr(1,p.length-2)),e[g]=p}}e.length===0&&e.push(t),dt(t)!==void 0&&ue(t,()=>{xe.runFunc(s,...e)})},"setClickFun"),ue=l(function(t,s){zt.push(function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}"]`);e!==null&&e.addEventListener("click",function(){s()})},function(){const i=ht?`${ht}-${t}`:t,e=document.querySelector(`[id="${i}-text"]`);e!==null&&e.addEventListener("click",function(){s()})})},"pushFun"),Ss=l(function(t,s,i){t.split(",").forEach(function(e){Ds(e,s,i)}),le(t,"clickable")},"setClickEvent"),Cs=l(function(t){zt.forEach(function(s){s(t)})},"bindFunctions"),Ms={getConfig:l(()=>mt().gantt,"getConfig"),clear:qe,setDateFormat:ts,getDateFormat:os,enableInclusiveEndDates:es,endDatesAreInclusive:ss,enableTopAxis:is,topAxisEnabled:ns,setAxisFormat:Xe,getAxisFormat:Ue,setTickInterval:Ze,getTickInterval:Qe,setTodayMarker:Je,getTodayMarker:Ke,setAccTitle:ye,getAccTitle:ke,setDiagramTitle:me,getDiagramTitle:he,setDiagramId:Ge,setDisplayMode:rs,getDisplayMode:as,setAccDescription:fe,getAccDescription:de,addSection:hs,getSections:ms,getTasks:ks,addTask:bs,findTaskById:dt,addTaskOrg:ws,setIncludes:cs,getIncludes:ls,setExcludes:us,getExcludes:ds,setClickEvent:Ss,setLink:_s,getLinks:fs,bindFunctions:Cs,parseDuration:ae,isInvalidDate:ne,setWeekday:ys,getWeekday:gs,setWeekend:ps};function Mt(t,s,i){let e=!0;for(;e;)e=!1,i.forEach(function(a){const g="^\\s*"+a+"\\s*$",p=new RegExp(g);t[0].match(p)&&(s[a]=!0,t.shift(1),e=!0)})}Y(Mt,"getTaskTags");l(Mt,"getTaskTags");vt.default.extend(He.default);var Es=l(function(){lt.debug("Something is calling, setConf, remove the call")},"setConf"),te={monday:Le,tuesday:$e,wednesday:Ye,thursday:Ie,friday:Ee,saturday:Me,sunday:Ce},Is=l((t,s)=>{let i=[...t].map(()=>-1/0),e=[...t].sort((g,p)=>g.startTime-p.startTime||g.order-p.order),a=0;for(const g of e)for(let p=0;p<i.length;p++)if(g.startTime>=i[p]){i[p]=g.endTime,g.order=p+s,p>a&&(a=p);break}return a},"getMaxIntersections"),it,It=1e4,Ys=l(function(t,s,i,e){const a=mt().gantt;e.db.setDiagramId(s);const g=mt().securityLevel;let p;g==="sandbox"&&(p=bt("#i"+s));const b=g==="sandbox"?bt(p.nodes()[0].contentDocument.body):bt("body"),F=g==="sandbox"?p.nodes()[0].contentDocument:document,A=F.getElementById(s);it=A.parentElement.offsetWidth,it===void 0&&(it=1200),a.useWidth!==void 0&&(it=a.useWidth);const w=e.db.getTasks(),V=w.filter(m=>!m.vert);let O=[];for(const m of V)O.push(m.type);O=I(O);const z={};let U=2*a.topPadding;if(e.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const m={};for(const v of V)m[v.section]===void 0?m[v.section]=[v]:m[v.section].push(v);let T=0;for(const v of Object.keys(m)){const y=Is(m[v],T)+1;T+=y,U+=y*(a.barHeight+a.barGap),z[v]=y}}else{U+=V.length*(a.barHeight+a.barGap);for(const m of O)z[m]=V.filter(T=>T.type===m).length}A.setAttribute("viewBox","0 0 "+it+" "+U);const N=b.select(`[id="${s}"]`),k=be().domain([we(w,function(m){return m.startTime}),_e(w,function(m){return m.endTime})]).rangeRound([0,it-a.leftPadding-a.rightPadding]);function D(m,T){const v=m.startTime,y=T.startTime;let r=0;return v>y?r=1:v<y&&(r=-1),r}Y(D,"taskCompare"),l(D,"taskCompare"),w.sort(D),W(w,it,U),ge(N,U,it,a.useMaxWidth),N.append("text").text(e.db.getDiagramTitle()).attr("x",it/2).attr("y",a.titleTopMargin).attr("class","titleText");function W(m,T,v){const y=a.barHeight,r=y+a.barGap,d=a.topPadding,f=a.leftPadding,u=Ae().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(De);q(r,d,f,T,v,m,e.db.getExcludes(),e.db.getIncludes()),$(f,d,T,v),L(m,r,d,f,y,u,T),x(r,d),h(f,d,T,v)}Y(W,"makeGantt"),l(W,"makeGantt");function L(m,T,v,y,r,d,f){m.sort((c,C)=>c.vert===C.vert?0:c.vert?1:-1);const u=m.filter(c=>!c.vert),n=[...new Set(u.map(c=>c.order))].map(c=>u.find(C=>C.order===c));N.append("g").selectAll("rect").data(n).enter().append("rect").attr("x",0).attr("y",function(c,C){return C=c.order,C*T+v-2}).attr("width",function(){return f-a.rightPadding/2}).attr("height",T).attr("class",function(c){for(const[C,M]of O.entries())if(c.type===M)return"section section"+C%a.numberSectionStyles;return"section section0"}).enter();const S=N.append("g").selectAll("rect").data(m).enter(),o=e.db.getLinks();if(S.append("rect").attr("id",function(c){return s+"-"+c.id}).attr("rx",3).attr("ry",3).attr("x",function(c){return c.milestone?k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))-.5*r:k(c.startTime)+y}).attr("y",function(c,C){return C=c.order,c.vert?a.gridLineStartPadding:C*T+v}).attr("width",function(c){return c.milestone?r:c.vert?.08*r:k(c.renderEndTime||c.endTime)-k(c.startTime)}).attr("height",function(c){return c.vert?u.length*(a.barHeight+a.barGap)+a.barHeight*2:r}).attr("transform-origin",function(c,C){return C=c.order,(k(c.startTime)+y+.5*(k(c.endTime)-k(c.startTime))).toString()+"px "+(C*T+v+.5*r).toString()+"px"}).attr("class",function(c){const C="task";let M="";c.classes.length>0&&(M=c.classes.join(" "));let R=0;for(const[j,P]of O.entries())c.type===P&&(R=j%a.numberSectionStyles);let E="";return c.active?c.crit?E+=" activeCrit":E=" active":c.done?c.crit?E=" doneCrit":E=" done":c.crit&&(E+=" crit"),E.length===0&&(E=" task"),c.milestone&&(E=" milestone "+E),c.vert&&(E=" vert "+E),E+=R,E+=" "+M,C+E}),S.append("text").attr("id",function(c){return s+"-"+c.id+"-text"}).text(function(c){return c.task}).attr("font-size",a.fontSize).attr("x",function(c){let C=k(c.startTime),M=k(c.renderEndTime||c.endTime);if(c.milestone&&(C+=.5*(k(c.endTime)-k(c.startTime))-.5*r,M=C+r),c.vert)return k(c.startTime)+y;const R=this.getBBox().width;return R>M-C?M+R+1.5*a.leftPadding>f?C+y-5:M+y+5:(M-C)/2+C+y}).attr("y",function(c,C){return c.vert?a.gridLineStartPadding+u.length*(a.barHeight+a.barGap)+60:(C=c.order,C*T+a.barHeight/2+(a.fontSize/2-2)+v)}).attr("text-height",r).attr("class",function(c){const C=k(c.startTime);let M=k(c.endTime);c.milestone&&(M=C+r);const R=this.getBBox().width;let E="";c.classes.length>0&&(E=c.classes.join(" "));let j=0;for(const[nt,at]of O.entries())c.type===at&&(j=nt%a.numberSectionStyles);let P="";return c.active&&(c.crit?P="activeCritText"+j:P="activeText"+j),c.done?c.crit?P=P+" doneCritText"+j:P=P+" doneText"+j:c.crit&&(P=P+" critText"+j),c.milestone&&(P+=" milestoneText"),c.vert&&(P+=" vertText"),R>M-C?M+R+1.5*a.leftPadding>f?E+" taskTextOutsideLeft taskTextOutside"+j+" "+P:E+" taskTextOutsideRight taskTextOutside"+j+" "+P+" width-"+R:E+" taskText taskText"+j+" "+P+" width-"+R}),mt().securityLevel==="sandbox"){let c;c=bt("#i"+s);const C=c.nodes()[0].contentDocument;S.filter(function(M){return o.has(M.id)}).each(function(M){var R=C.querySelector("#"+CSS.escape(s+"-"+M.id)),E=C.querySelector("#"+CSS.escape(s+"-"+M.id+"-text"));const j=R.parentNode;var P=C.createElement("a");P.setAttribute("xlink:href",o.get(M.id)),P.setAttribute("target","_top"),j.appendChild(P),P.appendChild(R),P.appendChild(E)})}}Y(L,"drawRects"),l(L,"drawRects");function q(m,T,v,y,r,d,f,u){if(f.length===0&&u.length===0)return;let _,n;for(const{startTime:M,endTime:R}of d)(_===void 0||M<_)&&(_=M),(n===void 0||R>n)&&(n=R);if(!_||!n)return;if((0,vt.default)(n).diff((0,vt.default)(_),"year")>5){lt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const S=e.db.getDateFormat(),o=[];let H=null,c=(0,vt.default)(_);for(;c.valueOf()<=n;)e.db.isInvalidDate(c,S,f,u)?H?H.end=c:H={start:c,end:c}:H&&(o.push(H),H=null),c=c.add(1,"d");N.append("g").selectAll("rect").data(o).enter().append("rect").attr("id",M=>s+"-exclude-"+M.start.format("YYYY-MM-DD")).attr("x",M=>k(M.start.startOf("day"))+v).attr("y",a.gridLineStartPadding).attr("width",M=>k(M.end.endOf("day"))-k(M.start.startOf("day"))).attr("height",r-T-a.gridLineStartPadding).attr("transform-origin",function(M,R){return(k(M.start)+v+.5*(k(M.end)-k(M.start))).toString()+"px "+(R*m+.5*r).toString()+"px"}).attr("class","exclude-range")}Y(q,"drawExcludeDays"),l(q,"drawExcludeDays");function B(m,T,v,y){if(v<=0||m>T)return 1/0;const r=T-m,d=vt.default.duration({[y??"day"]:v}).asMilliseconds();return d<=0?1/0:Math.ceil(r/d)}Y(B,"getEstimatedTickCount"),l(B,"getEstimatedTickCount");function $(m,T,v,y){const r=e.db.getDateFormat(),d=e.db.getAxisFormat();let f;d?f=d:r==="D"?f="%d":f=a.axisFormat??"%Y-%m-%d";let u=Se(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));const n=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(e.db.getTickInterval()||a.tickInterval);if(n!==null){const S=parseInt(n[1],10);if(isNaN(S)||S<=0)lt.warn(`Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`);else{const o=n[2],H=e.db.getWeekday()||a.weekday,c=k.domain(),C=c[0],M=c[1],R=B(C,M,S,o);if(R>It)lt.warn(`The tick interval "${S}${o}" would generate ${R} ticks, which exceeds the maximum allowed (${It}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(o){case"millisecond":u.ticks(Qt.every(S));break;case"second":u.ticks(Zt.every(S));break;case"minute":u.ticks(Ut.every(S));break;case"hour":u.ticks(Xt.every(S));break;case"day":u.ticks(Gt.every(S));break;case"week":u.ticks(te[H].every(S));break;case"month":u.ticks(qt.every(S));break}}}if(N.append("g").attr("class","grid").attr("transform","translate("+m+", "+(y-50)+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),e.db.topAxisEnabled()||a.topAxis){let S=Fe(k).tickSize(-y+T+a.gridLineStartPadding).tickFormat(Bt(f));if(n!==null){const o=parseInt(n[1],10);if(isNaN(o)||o<=0)lt.warn(`Invalid tick interval value: "${n[1]}". Skipping custom tick interval.`);else{const H=n[2],c=e.db.getWeekday()||a.weekday,C=k.domain(),M=C[0],R=C[1];if(B(M,R,o,H)<=It)switch(H){case"millisecond":S.ticks(Qt.every(o));break;case"second":S.ticks(Zt.every(o));break;case"minute":S.ticks(Ut.every(o));break;case"hour":S.ticks(Xt.every(o));break;case"day":S.ticks(Gt.every(o));break;case"week":S.ticks(te[c].every(o));break;case"month":S.ticks(qt.every(o));break}}}N.append("g").attr("class","grid").attr("transform","translate("+m+", "+T+")").call(S).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}Y($,"makeGrid"),l($,"makeGrid");function x(m,T){let v=0;const y=Object.keys(z).map(r=>[r,z[r]]);N.append("g").selectAll("text").data(y).enter().append(function(r){const d=r[0].split(pe.lineBreakRegex),f=-(d.length-1)/2,u=F.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",f+"em");for(const[_,n]of d.entries()){const S=F.createElementNS("http://www.w3.org/2000/svg","tspan");S.setAttribute("alignment-baseline","central"),S.setAttribute("x","10"),_>0&&S.setAttribute("dy","1em"),S.textContent=n,u.appendChild(S)}return u}).attr("x",10).attr("y",function(r,d){if(d>0)for(let f=0;f<d;f++)return v+=y[d-1][1],r[1]*m/2+v*m+T;else return r[1]*m/2+T}).attr("font-size",a.sectionFontSize).attr("class",function(r){for(const[d,f]of O.entries())if(r[0]===f)return"sectionTitle sectionTitle"+d%a.numberSectionStyles;return"sectionTitle"})}Y(x,"vertLabels"),l(x,"vertLabels");function h(m,T,v,y){const r=e.db.getTodayMarker();if(r==="off")return;const d=N.append("g").attr("class","today"),f=new Date,u=d.append("line");u.attr("x1",k(f)+m).attr("x2",k(f)+m).attr("y1",a.titleTopMargin).attr("y2",y-a.titleTopMargin).attr("class","today"),r!==""&&u.attr("style",r.replace(/,/g,";"))}Y(h,"drawToday"),l(h,"drawToday");function I(m){const T={},v=[];for(let y=0,r=m.length;y<r;++y)Object.prototype.hasOwnProperty.call(T,m[y])||(T[m[y]]=!0,v.push(m[y]));return v}Y(I,"checkUnique"),l(I,"checkUnique")},"draw"),$s={setConf:Es,draw:Ys},Ls=l(t=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${t.fontFamily};
9
9
  }
@@ -289,4 +289,4 @@ Expecting `+xt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Et="Parse error
289
289
  fill: ${t.titleColor||t.textColor};
290
290
  font-family: ${t.fontFamily};
291
291
  }
292
- `,"getStyles"),Fs=Ls,Gs={parser:Be,db:Ms,renderer:$s,styles:Fs};export{Gs as diagram};
292
+ `,"getStyles"),Fs=Ls,Bs={parser:Be,db:Ms,renderer:$s,styles:Fs};export{Bs as diagram};