@cyberismo/backend 0.0.24 → 0.0.25

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 (194) hide show
  1. package/dist/app.d.ts +3 -3
  2. package/dist/app.js +58 -29
  3. package/dist/app.js.map +1 -1
  4. package/dist/domain/cards/lib.js +4 -1
  5. package/dist/domain/cards/lib.js.map +1 -1
  6. package/dist/domain/cards/service.js +2 -1
  7. package/dist/domain/cards/service.js.map +1 -1
  8. package/dist/domain/mcp/index.d.ts +8 -2
  9. package/dist/domain/mcp/index.js +68 -65
  10. package/dist/domain/mcp/index.js.map +1 -1
  11. package/dist/domain/projects/index.d.ts +15 -0
  12. package/dist/domain/projects/index.js +35 -0
  13. package/dist/domain/projects/index.js.map +1 -0
  14. package/dist/domain/resources/service.js +2 -2
  15. package/dist/domain/resources/service.js.map +1 -1
  16. package/dist/export.d.ts +7 -3
  17. package/dist/export.js +32 -16
  18. package/dist/export.js.map +1 -1
  19. package/dist/index.d.ts +5 -4
  20. package/dist/index.js +4 -3
  21. package/dist/index.js.map +1 -1
  22. package/dist/main.js +41 -6
  23. package/dist/main.js.map +1 -1
  24. package/dist/middleware/auth.js +10 -0
  25. package/dist/middleware/auth.js.map +1 -1
  26. package/dist/middleware/commandManager.d.ts +12 -0
  27. package/dist/middleware/commandManager.js +33 -7
  28. package/dist/middleware/commandManager.js.map +1 -1
  29. package/dist/project-registry.d.ts +50 -0
  30. package/dist/project-registry.js +77 -0
  31. package/dist/project-registry.js.map +1 -0
  32. package/dist/public/THIRD-PARTY.txt +3482 -4525
  33. package/dist/public/assets/architecture-7EHR7CIX-BhpB9ddF.js +1 -0
  34. package/dist/public/assets/architectureDiagram-3BPJPVTR-BQYiU_EO.js +36 -0
  35. package/dist/public/assets/blockDiagram-GPEHLZMM-DuyikC3X.js +132 -0
  36. package/dist/public/assets/{c4Diagram-AHTNJAMY-CW7AUKhY.js → c4Diagram-AAUBKEIU-BG8_sPEr.js} +6 -6
  37. package/dist/public/assets/channel-BxgB7fMy.js +1 -0
  38. package/dist/public/assets/chunk-2J33WTMH-vNq8B1aw.js +1 -0
  39. package/dist/public/assets/chunk-4BX2VUAB-DFDBsmSo.js +1 -0
  40. package/dist/public/assets/chunk-55IACEB6-DCVUQPWM.js +1 -0
  41. package/dist/public/assets/chunk-727SXJPM-C5ihZMyl.js +206 -0
  42. package/dist/public/assets/chunk-AQP2D5EJ-XGOtp2xP.js +231 -0
  43. package/dist/public/assets/{chunk-FMBD7UC4-DChB7ne2.js → chunk-FMBD7UC4-Da1lR6Mn.js} +1 -1
  44. package/dist/public/assets/chunk-ND2GUHAM-ZOvpvr6K.js +1 -0
  45. package/dist/public/assets/chunk-QZHKN3VN-D33jzvFT.js +1 -0
  46. package/dist/public/assets/classDiagram-4FO5ZUOK-hWfZv7hZ.js +1 -0
  47. package/dist/public/assets/classDiagram-v2-Q7XG4LA2-hWfZv7hZ.js +1 -0
  48. package/dist/public/assets/cose-bilkent-S5V4N54A-DO4z-ix4.js +1 -0
  49. package/dist/public/assets/{cytoscape.esm-DpmcErfs.js → cytoscape.esm-C8YCVR3_.js} +3 -3
  50. package/dist/public/assets/dagre-BM42HDAG-DlpRfzgA.js +4 -0
  51. package/dist/public/assets/dagre-Bx709z4p.js +1 -0
  52. package/dist/public/assets/diagram-2AECGRRQ-D-t_ImBP.js +43 -0
  53. package/dist/public/assets/diagram-5GNKFQAL-CBgUMlXz.js +10 -0
  54. package/dist/public/assets/diagram-KO2AKTUF-XoB2TgQt.js +3 -0
  55. package/dist/public/assets/diagram-LMA3HP47-D1Sbl_eS.js +24 -0
  56. package/dist/public/assets/diagram-OG6HWLK6-DKP4aiIY.js +24 -0
  57. package/dist/public/assets/erDiagram-TEJ5UH35-DYxfHOOK.js +85 -0
  58. package/dist/public/assets/eventmodeling-FCH6USID-cF_1Mq4g.js +1 -0
  59. package/dist/public/assets/flowDiagram-I6XJVG4X-BDHPsmlq.js +162 -0
  60. package/dist/public/assets/ganttDiagram-6RSMTGT7-bGgIvBPN.js +292 -0
  61. package/dist/public/assets/gitGraph-WXDBUCRP-DOFshjLy.js +1 -0
  62. package/dist/public/assets/gitGraphDiagram-PVQCEYII-xSwLjGd-.js +106 -0
  63. package/dist/public/assets/graphlib-B8gBHxth.js +1 -0
  64. package/dist/public/assets/index-DGPv1qic.js +1028 -0
  65. package/dist/public/assets/index-DvHiopvR.css +1 -0
  66. package/dist/public/assets/info-J43DQDTF-BuJNK7zQ.js +1 -0
  67. package/dist/public/assets/infoDiagram-5YYISTIA-BanxuIib.js +2 -0
  68. package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-B3HoSFaq.js → ishikawaDiagram-YF4QCWOH-DWNWYxz5.js} +6 -6
  69. package/dist/public/assets/{journeyDiagram-VCZTEJTY-kH30WNF3.js → journeyDiagram-JHISSGLW-I58P5XNg.js} +6 -6
  70. package/dist/public/assets/kanban-definition-UN3LZRKU-CMRWbDti.js +89 -0
  71. package/dist/public/assets/mermaid-parser.core-Dz__fM3g.js +161 -0
  72. package/dist/public/assets/{mindmap-definition-QFDTVHPH-CNWWI4MF.js → mindmap-definition-RKZ34NQL-C47gCcpC.js} +29 -29
  73. package/dist/public/assets/packet-YPE3B663-Cczitw2-.js +1 -0
  74. package/dist/public/assets/pie-LRSECV5Y-rO-Aqx6h.js +1 -0
  75. package/dist/public/assets/pieDiagram-4H26LBE5-VZAxHzjD.js +30 -0
  76. package/dist/public/assets/quadrantDiagram-W4KKPZXB-BY8JORvE.js +7 -0
  77. package/dist/public/assets/radar-GUYGQ44K-SSIGuQjW.js +1 -0
  78. package/dist/public/assets/requirementDiagram-4Y6WPE33-XhNBeFwj.js +84 -0
  79. package/dist/public/assets/sankeyDiagram-5OEKKPKP-H7I2OESy.js +40 -0
  80. package/dist/public/assets/sequenceDiagram-3UESZ5HK-jnTLwq-X.js +162 -0
  81. package/dist/public/assets/stateDiagram-AJRCARHV-BKcf2bdX.js +1 -0
  82. package/dist/public/assets/stateDiagram-v2-BHNVJYJU-wpO0gnsG.js +1 -0
  83. package/dist/public/assets/{timeline-definition-GMOUNBTQ-9MnBod43.js → timeline-definition-PNZ67QCA-BZbaBDRH.js} +8 -8
  84. package/dist/public/assets/treeView-BLDUP644-DkGx4HkR.js +1 -0
  85. package/dist/public/assets/treemap-LRROVOQU-yCyuONQh.js +1 -0
  86. package/dist/public/assets/vennDiagram-CIIHVFJN-nY9Pep3o.js +34 -0
  87. package/dist/public/assets/wardley-L42UT6IY-CXWWFUgk.js +1 -0
  88. package/dist/public/assets/wardleyDiagram-YWT4CUSO-CM0yrkHd.js +78 -0
  89. package/dist/public/assets/{xychartDiagram-5P7HB3ND-BcqyvmmW.js → xychartDiagram-2RQKCTM6-1ZAtqvyQ.js} +6 -6
  90. package/dist/public/config.json +1 -0
  91. package/dist/public/index.html +2 -31
  92. package/package.json +9 -5
  93. package/src/app.ts +71 -31
  94. package/src/domain/cards/lib.ts +4 -1
  95. package/src/domain/cards/service.ts +2 -1
  96. package/src/domain/mcp/index.ts +83 -78
  97. package/src/domain/projects/index.ts +39 -0
  98. package/src/domain/resources/service.ts +2 -0
  99. package/src/export.ts +44 -21
  100. package/src/index.ts +6 -5
  101. package/src/main.ts +46 -6
  102. package/src/middleware/auth.ts +10 -0
  103. package/src/middleware/commandManager.ts +47 -9
  104. package/src/project-registry.ts +110 -0
  105. package/dist/public/assets/arc-DFTvTCxD.js +0 -1
  106. package/dist/public/assets/architecture-YZFGNWBL-DsWVZJri.js +0 -1
  107. package/dist/public/assets/architectureDiagram-Q4EWVU46-AN0fWZIG.js +0 -36
  108. package/dist/public/assets/array-xS8TccZC.js +0 -1
  109. package/dist/public/assets/blockDiagram-DXYQGD6D-RrIidZT3.js +0 -132
  110. package/dist/public/assets/channel-BxffgrNT.js +0 -1
  111. package/dist/public/assets/chunk-2KRD3SAO-D5XH6bj9.js +0 -1
  112. package/dist/public/assets/chunk-336JU56O-CVDEj5x8.js +0 -2
  113. package/dist/public/assets/chunk-426QAEUC-CIWkCWTf.js +0 -1
  114. package/dist/public/assets/chunk-4BX2VUAB-O8dxzEpn.js +0 -1
  115. package/dist/public/assets/chunk-4TB4RGXK-Bt4fWDlh.js +0 -206
  116. package/dist/public/assets/chunk-55IACEB6-R-yr7oHq.js +0 -1
  117. package/dist/public/assets/chunk-5FUZZQ4R-D7L4hZzZ.js +0 -62
  118. package/dist/public/assets/chunk-5PVQY5BW-D46cRkay.js +0 -2
  119. package/dist/public/assets/chunk-67CJDMHE-1fLguPDq.js +0 -1
  120. package/dist/public/assets/chunk-7N4EOEYR-BPbEiVZr.js +0 -1
  121. package/dist/public/assets/chunk-AA7GKIK3-DZOqN73n.js +0 -1
  122. package/dist/public/assets/chunk-BSJP7CBP-BQPMRa-Q.js +0 -1
  123. package/dist/public/assets/chunk-CFjPhJqf.js +0 -1
  124. package/dist/public/assets/chunk-CIAEETIT-CoKBG93U.js +0 -1
  125. package/dist/public/assets/chunk-EDXVE4YY-BxmMvdBY.js +0 -1
  126. package/dist/public/assets/chunk-ENJZ2VHE-BrjxYY_T.js +0 -10
  127. package/dist/public/assets/chunk-FOC6F5B3-DyK4SoM2.js +0 -1
  128. package/dist/public/assets/chunk-ICPOFSXX-6-ABzkfw.js +0 -122
  129. package/dist/public/assets/chunk-K5T4RW27-432kjUXO.js +0 -94
  130. package/dist/public/assets/chunk-KGLVRYIC-ChpiuJys.js +0 -1
  131. package/dist/public/assets/chunk-LIHQZDEY-C65uflEj.js +0 -1
  132. package/dist/public/assets/chunk-ORNJ4GCN-DPvOqXKg.js +0 -1
  133. package/dist/public/assets/chunk-OYMX7WX6-BecMUsrL.js +0 -231
  134. package/dist/public/assets/chunk-QZHKN3VN-d1i_Lm1t.js +0 -1
  135. package/dist/public/assets/chunk-U2HBQHQK-C6yvwOAo.js +0 -70
  136. package/dist/public/assets/chunk-X2U36JSP-D1C3tOED.js +0 -1
  137. package/dist/public/assets/chunk-XPW4576I-BH37LuuF.js +0 -32
  138. package/dist/public/assets/chunk-YZCP3GAM-D83gHdmx.js +0 -1
  139. package/dist/public/assets/chunk-ZZ45TVLE-DrCjtkdu.js +0 -1
  140. package/dist/public/assets/classDiagram-6PBFFD2Q-CRYacdjd.js +0 -1
  141. package/dist/public/assets/classDiagram-v2-HSJHXN6E-qOJXC_A9.js +0 -1
  142. package/dist/public/assets/clone-Bno0nirE.js +0 -1
  143. package/dist/public/assets/colors-DZGTowqM.js +0 -1
  144. package/dist/public/assets/cose-bilkent-S5V4N54A-BdSMsFO7.js +0 -1
  145. package/dist/public/assets/dagre-D0KOcyEK.js +0 -1
  146. package/dist/public/assets/dagre-KV5264BT-C_l1Bck_.js +0 -4
  147. package/dist/public/assets/defaultLocale-B6dPnyNg.js +0 -1
  148. package/dist/public/assets/diagram-5BDNPKRD-D6FxiIv1.js +0 -10
  149. package/dist/public/assets/diagram-G4DWMVQ6-COGBv7tQ.js +0 -24
  150. package/dist/public/assets/diagram-MMDJMWI5-U6E9w334.js +0 -43
  151. package/dist/public/assets/diagram-TYMM5635-Tvfdnlo4.js +0 -24
  152. package/dist/public/assets/dist-C6vvxvVV.js +0 -1
  153. package/dist/public/assets/erDiagram-SMLLAGMA-VcPXkmy9.js +0 -85
  154. package/dist/public/assets/flatten-BKeNCJRx.js +0 -1
  155. package/dist/public/assets/flowDiagram-DWJPFMVM-PRQdlypB.js +0 -162
  156. package/dist/public/assets/ganttDiagram-T4ZO3ILL-CSVaTciZ.js +0 -292
  157. package/dist/public/assets/gitGraph-7Q5UKJZL-C6GVmHC4.js +0 -1
  158. package/dist/public/assets/gitGraphDiagram-UUTBAWPF-DMa-Gcy1.js +0 -106
  159. package/dist/public/assets/graphlib-BYojtb6k.js +0 -1
  160. package/dist/public/assets/identity-nF-8qK2-.js +0 -1
  161. package/dist/public/assets/index-oVbUFngg.js +0 -737
  162. package/dist/public/assets/index-ypsafPwV.css +0 -1
  163. package/dist/public/assets/info-OMHHGYJF-CjsmQeYR.js +0 -1
  164. package/dist/public/assets/infoDiagram-42DDH7IO-COL_Na4w.js +0 -2
  165. package/dist/public/assets/init-B9nbfZCT.js +0 -1
  166. package/dist/public/assets/isEmpty-Di-NpihJ.js +0 -1
  167. package/dist/public/assets/kanban-definition-6JOO6SKY-RdjEsejt.js +0 -89
  168. package/dist/public/assets/line-DrKJYWGi.js +0 -1
  169. package/dist/public/assets/linear-C8MDrvxz.js +0 -1
  170. package/dist/public/assets/mermaid-parser.core-BeZK8g2G.js +0 -4
  171. package/dist/public/assets/ordinal-BXaEVJbT.js +0 -1
  172. package/dist/public/assets/packet-4T2RLAQJ-Dq0Z9G3r.js +0 -1
  173. package/dist/public/assets/path-C7Bv0Qdk.js +0 -1
  174. package/dist/public/assets/pie-ZZUOXDRM-Coeb8Atk.js +0 -1
  175. package/dist/public/assets/pieDiagram-DEJITSTG-CrDW-30P.js +0 -30
  176. package/dist/public/assets/quadrantDiagram-34T5L4WZ-BoDA5WQ-.js +0 -7
  177. package/dist/public/assets/radar-PYXPWWZC-BF2NN2TG.js +0 -1
  178. package/dist/public/assets/range-DuD7Go1R.js +0 -1
  179. package/dist/public/assets/reduce-5tLTMRkg.js +0 -1
  180. package/dist/public/assets/requirementDiagram-MS252O5E-BnG7epLH.js +0 -84
  181. package/dist/public/assets/rough.esm-DE7XMpOC.js +0 -1
  182. package/dist/public/assets/sankeyDiagram-XADWPNL6-oyTFoxhB.js +0 -10
  183. package/dist/public/assets/sequenceDiagram-FGHM5R23-hwG2jT_2.js +0 -157
  184. package/dist/public/assets/src-ps-3oTnY.js +0 -1
  185. package/dist/public/assets/stateDiagram-FHFEXIEX-BiYqw63j.js +0 -1
  186. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-CggSrcDh.js +0 -1
  187. package/dist/public/assets/time-Bgnk7ODM.js +0 -1
  188. package/dist/public/assets/treeView-SZITEDCU-IRdgIoRV.js +0 -1
  189. package/dist/public/assets/treemap-DK8fitek.js +0 -1
  190. package/dist/public/assets/treemap-W4RFUUIX-C-JBwyWW.js +0 -1
  191. package/dist/public/assets/vennDiagram-DHZGUBPP-sEA6JNL-.js +0 -34
  192. package/dist/public/assets/wardley-RL74JXVD-DdU04Q7E.js +0 -1
  193. package/dist/public/assets/wardleyDiagram-NUSXRM2D-Dws321pY.js +0 -20
  194. /package/dist/public/assets/{katex-Bfn1OZEl.js → katex-C4eR7coU.js} +0 -0
@@ -1 +0,0 @@
1
- @media (width<=800px){.breadcrumbs{display:none}}[role=treeitem][aria-selected=false]:hover .treenode{background-color:var(--joy-palette-background-level1,#dedede)}[role=treeitem][aria-selected=true]{outline:none}.resizeHandle{width:2px}.resizeHandle:hover,.resizeHandle:active{background-color:var(--joy-palette-primary-500,#0b6bcb)}.cyberismo-svg-wrapper svg{max-height:100vh}.doc .MuiButton-root{margin-top:12px}.doc table.tableblock{border-collapse:collapse}.doc{color:var(--joy-palette-text-primary,#333);font-size:inherit;-webkit-hyphens:auto;hyphens:auto;margin:0;padding:0;line-height:1.6}@media screen and (width>=1024px){.doc{flex:auto;min-width:0;margin:0;font-size:.94444rem}}.doc h1,.doc h2,.doc h3,.doc h4,.doc h5,.doc h6{color:var(--joy-palette-text-primary,#191919);-webkit-hyphens:none;hyphens:none;margin:1rem 0 0;font-weight:400;line-height:1.3}.doc>h1.page:first-child{margin:1.5rem 0;font-size:2rem}@media screen and (width>=769px){.doc>h1.page:first-child{margin-top:2.5rem}}.doc>h1.page:first-child+aside.toc.embedded{margin-top:-.5rem}.doc>h2#name+.sectionbody{margin-top:1rem}#preamble+.sect1,.doc .sect1+.sect1{margin-top:2rem}.doc h1.sect0{background:var(--joy-palette-background-surface,#f0f0f0);margin:1.5rem -1rem 0;padding:.5rem 1rem;font-size:1.8em}.doc h2:not(.discrete){border-bottom:1px solid var(--joy-palette-divider,#e1e1e1);margin-left:-1rem;margin-right:-1rem;padding:.4rem 1rem .1rem}.doc h3:not(.discrete),.doc h4:not(.discrete){font-weight:600}.doc h1 .anchor,.doc h2 .anchor,.doc h3 .anchor,.doc h4 .anchor,.doc h5 .anchor,.doc h6 .anchor{visibility:hidden;width:1.75ex;margin-left:-1.5ex;padding-top:.05em;font-size:.8em;font-weight:400;text-decoration:none;position:absolute}.doc h1 .anchor:before,.doc h2 .anchor:before,.doc h3 .anchor:before,.doc h4 .anchor:before,.doc h5 .anchor:before,.doc h6 .anchor:before{content:"§"}.doc h1:hover .anchor,.doc h2:hover .anchor,.doc h3:hover .anchor,.doc h4:hover .anchor,.doc h5:hover .anchor,.doc h6:hover .anchor{visibility:visible}.doc dl,.doc p{margin:0}.doc a{color:var(--joy-palette-primary-600,#1565c0)}.doc a:hover{color:var(--joy-palette-primary-700,#104d92)}.doc a.bare{-webkit-hyphens:none;hyphens:none}.doc a.unresolved{color:var(--joy-palette-danger-500,#d32f2f)}.doc i.fa{-webkit-hyphens:none;hyphens:none;font-style:normal}.doc .colist>table code,.doc p code,.doc thead code{color:var(--joy-palette-text-primary,#222);background:var(--joy-palette-background-level1,#fafafa);border-radius:.25em;padding:.125em .25em;font-size:.95em}.doc code,.doc pre{-webkit-hyphens:none;hyphens:none}.doc pre{margin:0;font-size:.88889rem;line-height:1.5}.doc blockquote{margin:0}.doc .paragraph.lead>p{font-size:1rem}.doc .right{float:right}.doc .left{float:left}.doc .float-gap.right{margin:0 1rem 1rem 0}.doc .float-gap.left{margin:0 0 1rem 1rem}.doc .float-group:after{content:"";clear:both;display:table}.doc .text-left{text-align:left}.doc .text-center{text-align:center}.doc .text-right{text-align:right}.doc .text-justify{text-align:justify}.doc .stretch{width:100%}.doc .big{font-size:larger}.doc .small{font-size:smaller}.doc .underline{text-decoration:underline}.doc .line-through{text-decoration:line-through}.doc .dlist,.doc .exampleblock,.doc .hdlist,.doc .imageblock,.doc .listingblock,.doc .literalblock,.doc .olist,.doc .paragraph,.doc .partintro,.doc .quoteblock,.doc .sidebarblock,.doc .tabs,.doc .ulist,.doc .verseblock,.doc .videoblock,.doc details,.doc hr{margin:1rem 0 0}.doc .tablecontainer,.doc .tablecontainer+*,.doc :not(.tablecontainer)>table.tableblock,.doc :not(.tablecontainer)>table.tableblock+*,.doc>table.tableblock,.doc>table.tableblock+*{margin-top:1.5rem}.doc table.tableblock{font-size:.83333rem}.doc p.tableblock+p.tableblock{margin-top:.5rem}.doc table.tableblock pre{font-size:inherit}.doc td.tableblock>.content{word-wrap:anywhere}.doc td.tableblock>.content>:first-child{margin-top:0}.doc table.tableblock td{padding:.5rem}.doc table.tableblock th{background:var(--joy-palette-background-level1,#fbfcfe);padding:.5rem}.doc table.tableblock,.doc table.tableblock>*>tr>*{border:0 solid var(--joy-palette-divider,#e1e1e1)}.doc table.grid-all>*>tr>*{border-width:1px}.doc table.grid-cols>*>tr>*{border-width:0 1px}.doc table.grid-rows>*>tr>*{border-width:1px 0}.doc table.grid-all>thead th,.doc table.grid-rows>thead th{border-bottom-width:2.5px}.doc table.frame-all{border-width:1px}.doc table.frame-ends{border-width:1px 0}.doc table.frame-sides{border-width:0 1px}.doc table.frame-none>colgroup+*>:first-child>*,.doc table.frame-sides>colgroup+*>:first-child>*{border-top-width:0}.doc table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}.doc table.frame-ends>*>tr>:first-child,.doc table.frame-none>*>tr>:first-child{border-left-width:0}.doc table.frame-ends>*>tr>:last-child,.doc table.frame-none>*>tr>:last-child{border-right-width:0}.doc table.stripes-all>tbody>tr,.doc table.stripes-even>tbody>tr:nth-of-type(2n),.doc table.stripes-hover>tbody>tr:hover,.doc table.stripes-odd>tbody>tr:nth-of-type(odd){background:var(--joy-palette-background-level1,#fafafa)}.doc table.tableblock>tfoot{background:var(--joy-palette-background-surface,#f0f0f0)}.doc .halign-left{text-align:left}.doc .halign-right{text-align:right}.doc .halign-center{text-align:center}.doc .valign-top{vertical-align:top}.doc .valign-bottom{vertical-align:bottom}.doc .valign-middle{vertical-align:middle}.doc .admonitionblock{margin:1.4rem 0 0}.doc .admonitionblock p,.doc .admonitionblock td.content{font-size:.88889rem}.doc .admonitionblock td.content>.title+*,.doc .admonitionblock td.content>:not(.title):first-child{margin-top:0}.doc .admonitionblock td.content pre{font-size:.83333rem}.doc .admonitionblock>table{table-layout:fixed;width:100%;position:relative}.doc .admonitionblock td.content{background:var(--joy-palette-background-level1,#fafafa);word-wrap:anywhere;width:100%;padding:1rem 1rem .75rem}.doc .admonitionblock td.icon{padding:0;font-size:.83333rem;line-height:1;position:absolute;top:0;left:0;transform:translate(-.5rem,-50%)}.doc .admonitionblock td.icon i{filter:none;height:1.25rem;vertical-align:initial;border-radius:.45rem;align-items:center;width:fit-content;padding:0 .5rem;display:inline-flex}.doc .admonitionblock td.icon i:after{content:attr(title);text-transform:uppercase;font-style:normal;font-weight:600}.doc .admonitionblock td.icon i.icon-caution{color:#fff;background-color:#a0439c}.doc .admonitionblock td.icon i.icon-important{color:#fff;background-color:#d32f2f}.doc .admonitionblock td.icon i.icon-note{color:#fff;background-color:#217ee7}.doc .admonitionblock td.icon i.icon-tip{color:#fff;background-color:#41af46}.doc .admonitionblock td.icon i.icon-warning{color:#fff;background-color:#e18114}.doc .imageblock,.doc .videoblock{flex-direction:column;align-items:center;display:flex}.doc .imageblock .content{text-align:center;align-self:stretch}.doc .imageblock.text-left,.doc .videoblock.text-left{align-items:flex-start}.doc .imageblock.text-left .content{text-align:left}.doc .imageblock.text-right,.doc .videoblock.text-right{align-items:flex-end}.doc .imageblock.text-right .content{text-align:right}.doc .image>img,.doc .image>object,.doc .image>svg,.doc .imageblock img,.doc .imageblock object,.doc .imageblock svg{vertical-align:middle;max-width:100%;max-height:75vh;display:inline-block}.doc .image:not(.left):not(.right)>img{margin-top:-.2em}.doc .videoblock iframe,.doc .videoblock video{vertical-align:middle;max-width:100%}#preamble .abstract blockquote{background:var(--joy-palette-background-surface,#f0f0f0);border-left:5px solid var(--joy-palette-divider,#e1e1e1);color:var(--joy-palette-text-secondary,#4a4a4a);padding:.75em 1em;font-size:.88889rem}.doc .quoteblock,.doc .verseblock{background:var(--joy-palette-background-level1,#fafafa);border-left:5px solid var(--joy-palette-neutral-500,#5d5d5d);color:var(--joy-palette-text-secondary,#5d5d5d)}.doc .quoteblock{padding:.25rem 2rem 1.25rem}.doc .quoteblock .attribution{color:var(--joy-palette-text-tertiary,#8e8e8e);margin-top:.75rem;font-size:.83333rem}.doc .quoteblock blockquote{margin-top:1rem}.doc .quoteblock .paragraph{font-style:italic}.doc .quoteblock cite{padding-left:1em}.doc .verseblock{padding:1rem 2rem;font-size:1.15em}.doc .verseblock pre{font-family:inherit;font-size:inherit}.doc ol,.doc ul{margin:0;padding:0 0 0 2rem}.doc ol.none,.doc ol.unnumbered,.doc ol.unstyled,.doc ul.checklist,.doc ul.no-bullet,.doc ul.none,.doc ul.unstyled{list-style-type:none}.doc ol.unnumbered,.doc ul.no-bullet{padding-left:1.25rem}.doc ol.unstyled,.doc ul.unstyled{padding-left:0}.doc ul.circle{list-style-type:circle}.doc ul.disc{list-style-type:disc}.doc ul.square{list-style-type:square}.doc ul.circle ul:not([class]),.doc ul.disc ul:not([class]),.doc ul.square ul:not([class]){list-style:inherit}.doc ol.arabic{list-style-type:decimal}.doc ol.decimal{list-style-type:decimal-leading-zero}.doc ol.loweralpha{list-style-type:lower-alpha}.doc ol.upperalpha{list-style-type:upper-alpha}.doc ol.lowerroman{list-style-type:lower-roman}.doc ol.upperroman{list-style-type:upper-roman}.doc ol.lowergreek{list-style-type:lower-greek}.doc ul.checklist{padding-left:1.75rem}.doc .dlist .dlist,.doc .dlist .olist,.doc .dlist .ulist,.doc .olist .dlist,.doc .olist .olist,.doc .olist .ulist,.doc .olist li+li,.doc .ulist .dlist,.doc .ulist .olist,.doc .ulist .ulist,.doc .ulist li+li{margin-top:.5rem}.doc .admonitionblock .listingblock,.doc .olist .listingblock,.doc .ulist .listingblock{padding:0}.doc .admonitionblock .title,.doc .exampleblock .title,.doc .imageblock .title,.doc .listingblock .title,.doc .literalblock .title,.doc .openblock .title,.doc .videoblock .title,.doc table.tableblock caption{color:var(--joy-palette-text-secondary,#5d5d5d);-webkit-hyphens:none;hyphens:none;letter-spacing:.01em;padding-bottom:.075rem;font-size:.88889rem;font-style:italic;font-weight:600}.doc table.tableblock caption{text-align:left}.doc .olist .title,.doc .ulist .title{margin-bottom:.25rem;font-style:italic;font-weight:600}.doc .imageblock .title,.doc .videoblock .title{margin-top:.5rem;padding-bottom:0}.doc details{margin-left:1rem}.doc details>summary{margin-bottom:.5rem;line-height:1.6;display:block;position:relative}.doc details>summary::-webkit-details-marker{display:none}.doc details>summary:before{content:"";border:.3em solid #0000;border-left:.5em solid;border-right-width:0;position:absolute;top:.5em;left:-1rem;transform:translate(15%)}.doc details[open]>summary:before{border-width:.5rem .3rem 0;border-color:currentColor #0000 #0000;transform:translateY(15%)}.doc details>summary:after{content:"";width:1rem;height:1em;position:absolute;top:.3em;left:-1rem}.doc details.result{margin-top:.25rem}.doc details.result>summary{color:var(--joy-palette-text-secondary,#5d5d5d);margin-bottom:0;font-style:italic}.doc details.result>.content{margin-left:-1rem}.doc .exampleblock>.content,.doc details.result>.content{background:var(--joy-palette-background-body,#fff);border:.25rem solid var(--joy-palette-neutral-500,#5d5d5d);border-radius:.5rem;padding:.75rem}.doc .exampleblock>.content:after,.doc details.result>.content:after{content:"";clear:both;display:table}.doc .exampleblock>.content>:first-child,.doc details>.content>:first-child{margin-top:0}.doc .sidebarblock{background:var(--joy-palette-neutral-softBg,#e1e1e1);border-radius:.75rem;padding:.75rem 1.5rem}.doc .sidebarblock>.content>.title{text-align:center;margin-bottom:.5rem;font-size:1.25rem;font-weight:600;line-height:1.3}.doc .sidebarblock>.content>.title+*,.doc .sidebarblock>.content>:not(.title):first-child{margin-top:0}.doc .listingblock.wrap pre,.doc table.tableblock pre{white-space:pre-wrap}.doc .listingblock pre:not(.highlight),.doc .literalblock pre,.doc pre.highlight>code{background:var(--joy-palette-background-level1,#fafafa);-webkit-box-shadow:inset 0 0 1.75px var(--joy-palette-divider,#e1e1e1);box-shadow:inset 0 0 1.75px var(--joy-palette-divider,#e1e1e1);padding:.875em;display:block;overflow-x:auto}.doc .listingblock>.content{position:relative}.doc .source-toolbox{visibility:hidden;color:gray;-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:1;font-family:Roboto,sans-serif;font-size:.72222rem;line-height:1;display:flex;position:absolute;top:.25rem;right:.5rem}.doc .listingblock:hover .source-toolbox{visibility:visible}.doc .source-toolbox .source-lang{text-transform:uppercase;letter-spacing:.075em}.doc .source-toolbox>:not(:last-child):after{content:"|";letter-spacing:0;padding:0 1ch}.doc .source-toolbox .copy-button{color:inherit;font-size:inherit;line-height:inherit;background:0 0;border:none;outline:none;flex-direction:column;align-items:center;width:1em;height:1em;padding:0;display:flex}.doc .source-toolbox .copy-icon{width:inherit;height:inherit;flex:none}.doc .source-toolbox img.copy-icon{filter:invert(50.2%)}.doc .source-toolbox svg.copy-icon{fill:currentColor}.doc .source-toolbox .copy-toast{background-color:var(--joy-palette-neutral-800,#333);color:var(--joy-palette-common-white,#fff);cursor:auto;opacity:0;border-radius:.25em;flex:none;justify-content:center;margin-top:1em;padding:.5em;transition:opacity .5s .5s;display:inline-flex;position:relative}.doc .source-toolbox .copy-toast:after{content:"";border:.55em solid #0000;border-left-color:var(--joy-palette-neutral-800,#333);transform-origin:0;width:1em;height:1em;position:absolute;top:0;transform:rotate(-90deg)translate(50%)translateY(50%)}.doc .source-toolbox .copy-button.clicked .copy-toast{opacity:1;transition:none}.doc .language-console .hljs-meta{-webkit-user-select:none;user-select:none}.doc .dlist dt{font-style:italic}.doc .dlist dd{margin:0 0 0 1.5rem}.doc .dlist dd+dt,.doc .dlist dd>p:first-child{margin-top:.5rem}.doc td.hdlist1,.doc td.hdlist2{vertical-align:top;padding:.5rem 0 0}.doc tr:first-child>.hdlist1,.doc tr:first-child>.hdlist2{padding-top:0}.doc td.hdlist1{padding-right:.25rem;font-weight:600}.doc td.hdlist2{padding-left:.25rem}.doc .colist{margin:.25rem 0 -.25rem;font-size:.88889rem}.doc .colist>table>tbody>tr>:first-child,.doc .colist>table>tr>:first-child{vertical-align:top;padding:.25em .5rem 0}.doc .colist>table>tbody>tr>:last-child,.doc .colist>table>tr>:last-child{padding:.25rem 0}.doc .conum[data-value]{text-align:center;letter-spacing:-.25ex;text-indent:-.25ex;border:1px solid;border-radius:100%;width:1.25em;height:1.25em;font-family:Roboto,sans-serif;font-size:.75rem;font-style:normal;line-height:1.2;display:inline-block}.doc .conum[data-value]:after{content:attr(data-value)}.doc .conum[data-value]+b{display:none}.doc hr{border:solid var(--joy-palette-divider,#e1e1e1);border-width:2px 0 0;height:0}.doc b.button{white-space:nowrap}.doc b.button:before{content:"[";padding-right:.25em}.doc b.button:after{content:"]";padding-left:.25em}.doc kbd{background:var(--joy-palette-background-level1,#fafafa);border:1px solid var(--joy-palette-neutral-400,#c1c1c1);-webkit-box-shadow:0 1px 0 var(--joy-palette-neutral-400,#c1c1c1), 0 0 0 .1em var(--joy-palette-background-body,#fff) inset;box-shadow:0 1px 0 var(--joy-palette-neutral-400,#c1c1c1), inset 0 0 0 .1em var(--joy-palette-background-body,#fff);vertical-align:text-bottom;white-space:nowrap;border-radius:.25em;padding:.25em .5em;font-size:.66667rem;display:inline-block}.doc .keyseq,.doc kbd{line-height:1}.doc .keyseq{font-size:.88889rem}.doc .keyseq kbd{margin:0 .125em}.doc .keyseq kbd:first-child{margin-left:0}.doc .keyseq kbd:last-child{margin-right:0}.doc .menuseq,.doc .path{-webkit-hyphens:none;hyphens:none}.doc .menuseq i.caret:before{content:"›";font-size:1.1em;font-weight:600;line-height:.90909}.doc :not(pre).nowrap{white-space:nowrap}.doc .nobreak{-webkit-hyphens:none;hyphens:none;word-wrap:normal}.doc :not(pre).pre-wrap{white-space:pre-wrap}#footnotes{margin:2rem -.5rem 0;font-size:.85em;line-height:1.5}.doc td.tableblock>.content #footnotes{margin:2rem 0 0}#footnotes hr{border-top-width:1px;width:20%;margin-top:0}#footnotes .footnote{margin:.5em 0 0 1em}#footnotes .footnote+.footnote{margin-top:.25em}#footnotes .footnote>a:first-of-type{text-align:right;width:1.5em;margin-left:-2em;display:inline-block}.toc-menu{color:var(--joy-palette-text-secondary,#5d5d5d)}.toc.sidebar .toc-menu{margin-right:.75rem;position:sticky;top:6rem}.toc .toc-menu h3{color:var(--joy-palette-text-primary,#333);margin:0 -.5px;padding-bottom:.25rem;font-size:.88889rem;font-weight:600;line-height:1.3}.toc.sidebar .toc-menu h3{flex-direction:column;justify-content:flex-end;height:2.5rem;display:flex}.toc .toc-menu ul{margin:0;padding:0;font-size:.83333rem;line-height:1.2;list-style:none}.toc.sidebar .toc-menu ul{-ms-scroll-chaining:none;overscroll-behavior:none;max-height:calc(100vh - 8.5rem);overflow-y:auto}@supports (scrollbar-width:none){.toc.sidebar .toc-menu ul{scrollbar-width:none}}.toc .toc-menu ul::-webkit-scrollbar{width:0;height:0}@media screen and (width>=1024px){.toc .toc-menu h3{font-size:.83333rem}.toc .toc-menu ul{font-size:.75rem}}.toc .toc-menu li{margin:0}.toc .toc-menu li[data-level="2"] a{padding-left:1.25rem}.toc .toc-menu li[data-level="3"] a{padding-left:2rem}.toc .toc-menu a{color:inherit;border-left:2px solid var(--joy-palette-divider,#e1e1e1);padding:.25rem 0 .25rem .5rem;text-decoration:none;display:inline-block}.sidebar.toc .toc-menu a{outline:none;display:block}.toc .toc-menu a:hover{color:var(--joy-palette-primary-600,#1565c0)}.toc .toc-menu a.is-active{border-left-color:var(--joy-palette-primary-500,#2a7ee4);color:var(--joy-palette-primary-500,#2a7ee4)}.sidebar.toc .toc-menu a:focus{background:var(--joy-palette-background-level1,#fafafa)}.toc .toc-menu .is-hidden-toc{display:none!important}.contentSidebar{min-width:160px}.doc .videoblock .content{width:100%;max-width:100%;position:relative}.doc .videoblock .content:before{content:"";padding-top:56.25%;display:block}.doc .videoblock .content>iframe,.doc .videoblock .content>video{background:#000;border:0;display:block;position:absolute;inset:0;width:100%!important;height:100%!important}
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-432kjUXO.js";import{n as e}from"./chunk-KGLVRYIC-ChpiuJys.js";export{e as createInfoServices};
@@ -1,2 +0,0 @@
1
- import{c as e}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{_ as t,v as n}from"./src-ps-3oTnY.js";import{t as r}from"./chunk-426QAEUC-CIWkCWTf.js";import{t as i}from"./mermaid-parser.core-BeZK8g2G.js";var a={parse:t(async e=>{let t=await i(`info`,e);n.debug(t)},`parse`)},o={version:`11.14.0`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((t,i,a)=>{n.debug(`rendering info diagram
2
- `+t);let o=r(i);e(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -1 +0,0 @@
1
- function e(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function t(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}export{e as n,t};
@@ -1 +0,0 @@
1
- import{C as e,E as t,O as n,S as r,b as i,c as a,d as o,i as s,m as c,p as l,s as u,u as d}from"./identity-nF-8qK2-.js";var f=c(Object.keys,Object),p=Object.prototype.hasOwnProperty;function m(e){if(!l(e))return f(e);var t=[];for(var n in Object(e))p.call(e,n)&&n!=`constructor`&&t.push(n);return t}var h=r(n,`DataView`),g=r(n,`Promise`),_=r(n,`Set`),v=r(n,`WeakMap`),y=`[object Map]`,b=`[object Object]`,x=`[object Promise]`,S=`[object Set]`,C=`[object WeakMap]`,w=`[object DataView]`,T=e(h),E=e(i),D=e(g),O=e(_),k=e(v),A=t;(h&&A(new h(new ArrayBuffer(1)))!=w||i&&A(new i)!=y||g&&A(g.resolve())!=x||_&&A(new _)!=S||v&&A(new v)!=C)&&(A=function(n){var r=t(n),i=r==b?n.constructor:void 0,a=i?e(i):``;if(a)switch(a){case T:return w;case E:return y;case D:return x;case O:return S;case k:return C}return r});var j=A,M=`[object Map]`,N=`[object Set]`,P=Object.prototype.hasOwnProperty;function F(e){if(e==null)return!0;if(a(e)&&(d(e)||typeof e==`string`||typeof e.splice==`function`||u(e)||s(e)||o(e)))return!e.length;var t=j(e);if(t==M||t==N)return!e.size;if(l(e))return!m(e).length;for(var n in e)if(P.call(e,n))return!1;return!0}export{m as i,j as n,_ as r,F as t};
@@ -1,89 +0,0 @@
1
- import{K as e,L as t,Q as n,Z as r,b as i,d as a,et as o}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{_ as s,v as c}from"./src-ps-3oTnY.js";import"./chunk-5PVQY5BW-D46cRkay.js";import{t as l}from"./chunk-426QAEUC-CIWkCWTf.js";import{n as u,t as d}from"./chunk-XPW4576I-BH37LuuF.js";import"./chunk-ZZ45TVLE-DrCjtkdu.js";import"./chunk-X2U36JSP-D1C3tOED.js";import"./chunk-U2HBQHQK-C6yvwOAo.js";import{a as f,c as p,i as m}from"./chunk-5FUZZQ4R-D7L4hZzZ.js";import{t as h}from"./chunk-FMBD7UC4-DChB7ne2.js";var g=(function(){var e=s(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,4],n=[1,13],r=[1,12],i=[1,15],a=[1,16],o=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:s(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:s(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s];break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:c},{6:n,9:22,12:11,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:o,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:n,12:21,13:r,14:14,16:i,17:a,18:17,19:18,20:o,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:s(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:s(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}s(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}s(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
- `+h.showPosition()+`
3
- Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:s(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:s(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:s(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:s(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:s(function(){return this._more=!0,this},`more`),reject:s(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:s(function(e){this.unput(this.match.slice(e))},`less`),pastInput:s(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:s(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:s(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
- `+t+`^`},`showPosition`),test_match:s(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[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+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:s(function(){return this.next()||this.lex()},`lex`),begin:s(function(e){this.conditionStack.push(e)},`begin`),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:s(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:s(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:s(function(e){this.begin(e)},`pushState`),stateStackSize:s(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:s(function(e,t,n,r){switch(n){case 0:return this.pushState(`shapeData`),t.yytext=``,24;case 1:return this.pushState(`shapeDataStr`),24;case 2:return this.popState(),24;case 3:return t.yytext=t.yytext.replace(/\n\s*/g,`<br/>`),24;case 4:return 24;case 5:this.popState();break;case 6:return e.getLogger().trace(`Found comment`,t.yytext),6;case 7:return 8;case 8:this.begin(`CLASS`);break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 12:return e.getLogger().trace(`SPACELINE`),6;case 13:return 7;case 14:return 16;case 15:e.getLogger().trace(`end icon`),this.popState();break;case 16:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),20;case 17:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),20;case 18:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),20;case 19:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),20;case 20:return this.begin(`NODE`),20;case 21:return this.begin(`NODE`),20;case 22:return this.begin(`NODE`),20;case 23:return this.begin(`NODE`),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin(`NSTR2`);break;case 28:return`NODE_DESCR`;case 29:this.popState();break;case 30:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 31:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 32:this.popState();break;case 33:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 35:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 36:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 37:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 38:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 39:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 40:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 41:return e.getLogger().trace(`Long description:`,t.yytext),21;case 42:return e.getLogger().trace(`Long description:`,t.yytext),21}},`anonymous`),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}}})();function S(){this.yy={}}return s(S,`Parser`),S.prototype=x,x.Parser=S,new S})();g.parser=g;var _=g,v=[],y=[],b=0,x={},S=s(()=>{v=[],y=[],b=0,x={}},`clear`),C=s(e=>{if(v.length===0)return null;let t=v[0].level,n=null;for(let e=v.length-1;e>=0;e--)if(v[e].level===t&&!n&&(n=v[e]),v[e].level<t)throw Error(`Items without section detected, found section ("`+v[e].label+`")`);return e===n?.level?null:n},`getSection`),w=s(function(){return y},`getSections`),T=s(function(){let e=[],n=[],r=w(),a=i();for(let e of r){let r={id:e.id,label:t(e.label??``,a),labelType:`markdown`,isGroup:!0,ticket:e.ticket,shape:`kanbanSection`,level:e.level,look:a.look};n.push(r);let i=v.filter(t=>t.parentId===e.id);for(let r of i){let i={id:r.id,parentId:e.id,label:t(r.label??``,a),labelType:`markdown`,isGroup:!1,ticket:r?.ticket,priority:r?.priority,assigned:r?.assigned,icon:r?.icon,shape:`kanbanItem`,level:r.level,rx:5,ry:5,cssStyles:[`text-align: left`]};n.push(i)}}return{nodes:n,edges:e,other:{},config:i()}},`getData`),E=s((e,n,r,o,s)=>{let c=i(),l=c.mindmap?.padding??a.mindmap.padding;switch(o){case D.ROUNDED_RECT:case D.RECT:case D.HEXAGON:l*=2}let f={id:t(n,c)||`kbn`+ b++,level:e,label:t(r,c),width:c.mindmap?.maxNodeWidth??a.mindmap.maxNodeWidth,padding:l,isGroup:!1};if(s!==void 0){let e;e=s.includes(`
7
- `)?s+`
8
- `:`{
9
- `+s+`
10
- }`;let t=u(e,{schema:d});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes(`_`)))throw Error(`No such shape: ${t.shape}. Shape names should be lowercase.`);t?.shape&&t.shape===`kanbanItem`&&(f.shape=t?.shape),t?.label&&(f.label=t?.label),t?.icon&&(f.icon=t?.icon.toString()),t?.assigned&&(f.assigned=t?.assigned.toString()),t?.ticket&&(f.ticket=t?.ticket.toString()),t?.priority&&(f.priority=t?.priority)}let p=C(e);p?f.parentId=p.id||`kbn`+ b++:y.push(f),v.push(f)},`addNode`),D={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O={clear:S,addNode:E,getSections:w,getData:T,nodeType:D,getType:s((e,t)=>{switch(c.debug(`In get type`,e,t),e){case`[`:return D.RECT;case`(`:return t===`)`?D.ROUNDED_RECT:D.CLOUD;case`((`:return D.CIRCLE;case`)`:return D.CLOUD;case`))`:return D.BANG;case`{{`:return D.HEXAGON;default:return D.DEFAULT}},`getType`),setElementForId:s((e,t)=>{x[e]=t},`setElementForId`),decorateNode:s(e=>{if(!e)return;let n=i(),r=v[v.length-1];e.icon&&(r.icon=t(e.icon,n)),e.class&&(r.cssClasses=t(e.class,n))},`decorateNode`),type2Str:s(e=>{switch(e){case D.DEFAULT:return`no-border`;case D.RECT:return`rect`;case D.ROUNDED_RECT:return`rounded-rect`;case D.CIRCLE:return`circle`;case D.CLOUD:return`cloud`;case D.BANG:return`bang`;case D.HEXAGON:return`hexgon`;default:return`no-border`}},`type2Str`),getLogger:s(()=>c,`getLogger`),getElementById:s(e=>x[e],`getElementById`)},k={draw:s(async(t,n,r,o)=>{c.debug(`Rendering kanban diagram
11
- `+t);let s=o.db.getData(),u=i();u.htmlLabels=!1;let d=l(n);for(let e of s.nodes)e.domId=`${n}-${e.id}`;let h=d.append(`g`);h.attr(`class`,`sections`);let g=d.append(`g`);g.attr(`class`,`items`);let _=s.nodes.filter(e=>e.isGroup),v=0,y=[],b=25;for(let e of _){let t=u?.kanban?.sectionWidth||200;v+=1,e.x=t*v+(v-1)*10/2,e.width=t,e.y=0,e.height=t*3,e.rx=5,e.ry=5,e.cssClasses=e.cssClasses+` section-`+v;let n=await m(h,e);b=Math.max(b,n?.labelBBox?.height),y.push(n)}let x=0;for(let e of _){let t=y[x];x+=1;let n=u?.kanban?.sectionWidth||200,r=-n*3/2+b,i=r,a=s.nodes.filter(t=>t.parentId===e.id);for(let t of a){if(t.isGroup)throw Error(`Groups within groups are not allowed in Kanban diagrams`);t.x=e.x,t.width=n-1.5*10;let r=(await f(g,t,{config:u})).node().getBBox();t.y=i+r.height/2,await p(t),i=t.y+r.height/2+10/2}let o=t.cluster.select(`rect`),c=Math.max(i-r+30,50)+(b-25);o.attr(`height`,c)}e(void 0,d,u.mindmap?.padding??a.kanban.padding,u.mindmap?.useMaxWidth??a.kanban.useMaxWidth)},`draw`)},A=s(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],o(e[`lineColor`+t])?e[`lineColor`+t]=n(e[`lineColor`+t],20):e[`lineColor`+t]=r(e[`lineColor`+t],20);let i=s((t,i)=>e.darkMode?r(t,i):n(t,i),`adjuster`);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
12
- .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
13
- fill: ${i(e[`cScale`+n],10)};
14
- stroke: ${i(e[`cScale`+n],10)};
15
-
16
- }
17
- .section-${n-1} text {
18
- fill: ${e[`cScaleLabel`+n]};
19
- }
20
- .node-icon-${n-1} {
21
- font-size: 40px;
22
- color: ${e[`cScaleLabel`+n]};
23
- }
24
- .section-edge-${n-1}{
25
- stroke: ${e[`cScale`+n]};
26
- }
27
- .edge-depth-${n-1}{
28
- stroke-width: ${r};
29
- }
30
- .section-${n-1} line {
31
- stroke: ${e[`cScaleInv`+n]} ;
32
- stroke-width: 3;
33
- }
34
-
35
- .disabled, .disabled circle, .disabled text {
36
- fill: lightgray;
37
- }
38
- .disabled text {
39
- fill: #efefef;
40
- }
41
-
42
- .node rect,
43
- .node circle,
44
- .node ellipse,
45
- .node polygon,
46
- .node path {
47
- fill: ${e.background};
48
- stroke: ${e.nodeBorder};
49
- stroke-width: 1px;
50
- }
51
-
52
- .kanban-ticket-link {
53
- fill: ${e.background};
54
- stroke: ${e.nodeBorder};
55
- text-decoration: underline;
56
- }
57
- `}return t},`genSections`),j={db:O,renderer:k,parser:_,styles:s(e=>`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${A(e)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${e.git0};
64
- }
65
- .section-root text {
66
- fill: ${e.gitBranchLabel0};
67
- }
68
- .icon-container {
69
- height:100%;
70
- display: flex;
71
- justify-content: center;
72
- align-items: center;
73
- }
74
- .edge {
75
- fill: none;
76
- }
77
- .cluster-label, .label {
78
- color: ${e.textColor};
79
- fill: ${e.textColor};
80
- }
81
- .kanban-label {
82
- dy: 1em;
83
- alignment-baseline: middle;
84
- text-anchor: middle;
85
- dominant-baseline: middle;
86
- text-align: center;
87
- }
88
- ${h()}
89
- `,`getStyles`)};export{j as diagram};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./path-C7Bv0Qdk.js";import{t as n}from"./array-xS8TccZC.js";import{$ as r}from"./chunk-5PVQY5BW-D46cRkay.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{i as n,a as r,o as t};
@@ -1 +0,0 @@
1
- import{c as e,l as t,s as n}from"./src-ps-3oTnY.js";import{a as r,i,n as a,t as o}from"./defaultLocale-B6dPnyNg.js";import{n as s}from"./init-B9nbfZCT.js";function c(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function l(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function u(e){let t,n,r;e.length===2?(t=e===c||e===l?e:d,n=e,r=e):(t=c,n=(t,n)=>c(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function d(){return 0}function f(e){return e===null?NaN:+e}function*p(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var m=u(c),h=m.right,g=m.left;u(f).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e){return Math.max(0,-r(Math.abs(e)))}function T(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(r(t)/3)))*3-r(Math.abs(e)))}function E(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,r(t)-r(e))+1}function D(e){return function(){return e}}function O(e){return+e}var k=[0,1];function A(e){return e}function j(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:D(isNaN(t)?NaN:.5)}function M(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function N(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=j(i,r),a=n(o,a)):(r=j(r,i),a=n(a,o)),function(e){return a(r(e))}}function P(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=j(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=h(e,t,1,r)-1;return a[n](i[n](t))}}function F(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function I(){var r=k,i=k,a=e,o,s,c,l=A,u,d,f;function p(){var e=Math.min(r.length,i.length);return l!==A&&(l=M(r[0],r[e-1])),u=e>2?P:N,d=f=null,m}function m(e){return e==null||isNaN(e=+e)?c:(d||=u(r.map(o),i,a))(o(l(e)))}return m.invert=function(e){return l(s((f||=u(i,r.map(o),t))(e)))},m.domain=function(e){return arguments.length?(r=Array.from(e,O),p()):r.slice()},m.range=function(e){return arguments.length?(i=Array.from(e),p()):i.slice()},m.rangeRound=function(e){return i=Array.from(e),a=n,p()},m.clamp=function(e){return arguments.length?(l=e?!0:A,p()):l!==A},m.interpolate=function(e){return arguments.length?(a=e,p()):a},m.unknown=function(e){return arguments.length?(c=e,m):c},function(e,t){return o=e,s=t,p()}}function L(){return I()(A,A)}function R(e,t,n,r){var s=C(e,t,n),c;switch(r=i(r??`,f`),r.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(c=T(s,l))&&(r.precision=c),a(r,l);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(c=E(s,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=c-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(c=w(s))&&(r.precision=c-(r.type===`%`)*2);break}return o(r)}function z(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return R(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function B(){var e=L();return e.copy=function(){return F(e,B())},s.apply(e,arguments),z(e)}export{p as _,F as a,O as c,w as d,C as f,f as g,h,L as i,E as l,g as m,z as n,A as o,x as p,R as r,I as s,B as t,T as u,u as v,c as y};
@@ -1,4 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/info-OMHHGYJF-CjsmQeYR.js","assets/chunk-K5T4RW27-432kjUXO.js","assets/chunk-CFjPhJqf.js","assets/isEmpty-Di-NpihJ.js","assets/identity-nF-8qK2-.js","assets/reduce-5tLTMRkg.js","assets/flatten-BKeNCJRx.js","assets/chunk-KGLVRYIC-ChpiuJys.js","assets/packet-4T2RLAQJ-Dq0Z9G3r.js","assets/chunk-FOC6F5B3-DyK4SoM2.js","assets/pie-ZZUOXDRM-Coeb8Atk.js","assets/chunk-AA7GKIK3-DZOqN73n.js","assets/treeView-SZITEDCU-IRdgIoRV.js","assets/chunk-ORNJ4GCN-DPvOqXKg.js","assets/architecture-YZFGNWBL-DsWVZJri.js","assets/chunk-7N4EOEYR-BPbEiVZr.js","assets/gitGraph-7Q5UKJZL-C6GVmHC4.js","assets/chunk-67CJDMHE-1fLguPDq.js","assets/radar-PYXPWWZC-BF2NN2TG.js","assets/chunk-2KRD3SAO-D5XH6bj9.js","assets/treemap-W4RFUUIX-C-JBwyWW.js","assets/chunk-LIHQZDEY-C65uflEj.js","assets/wardley-RL74JXVD-DdU04Q7E.js","assets/chunk-CIAEETIT-CoKBG93U.js"])))=>i.map(i=>d[i]);
2
- import{at as e}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{m as t}from"./chunk-K5T4RW27-432kjUXO.js";import"./chunk-7N4EOEYR-BPbEiVZr.js";import"./chunk-67CJDMHE-1fLguPDq.js";import"./chunk-KGLVRYIC-ChpiuJys.js";import"./chunk-FOC6F5B3-DyK4SoM2.js";import"./chunk-AA7GKIK3-DZOqN73n.js";import"./chunk-2KRD3SAO-D5XH6bj9.js";import"./chunk-ORNJ4GCN-DPvOqXKg.js";import"./chunk-LIHQZDEY-C65uflEj.js";import"./chunk-CIAEETIT-CoKBG93U.js";var n={},r={info:t(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-OMHHGYJF-CjsmQeYR.js`);return{createInfoServices:e}},__vite__mapDeps([0,1,2,3,4,5,6,7]));n.info=t().Info.parser.LangiumParser},`info`),packet:t(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-4T2RLAQJ-Dq0Z9G3r.js`);return{createPacketServices:e}},__vite__mapDeps([8,1,2,3,4,5,6,9]));n.packet=t().Packet.parser.LangiumParser},`packet`),pie:t(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-ZZUOXDRM-Coeb8Atk.js`);return{createPieServices:e}},__vite__mapDeps([10,1,2,3,4,5,6,11]));n.pie=t().Pie.parser.LangiumParser},`pie`),treeView:t(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-SZITEDCU-IRdgIoRV.js`);return{createTreeViewServices:e}},__vite__mapDeps([12,1,2,3,4,5,6,13]));n.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:t(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-YZFGNWBL-DsWVZJri.js`);return{createArchitectureServices:e}},__vite__mapDeps([14,1,2,3,4,5,6,15]));n.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:t(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-7Q5UKJZL-C6GVmHC4.js`);return{createGitGraphServices:e}},__vite__mapDeps([16,1,2,3,4,5,6,17]));n.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),radar:t(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-PYXPWWZC-BF2NN2TG.js`);return{createRadarServices:e}},__vite__mapDeps([18,1,2,3,4,5,6,19]));n.radar=t().Radar.parser.LangiumParser},`radar`),treemap:t(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-W4RFUUIX-C-JBwyWW.js`);return{createTreemapServices:e}},__vite__mapDeps([20,1,2,3,4,5,6,21]));n.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:t(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-RL74JXVD-DdU04Q7E.js`);return{createWardleyServices:e}},__vite__mapDeps([22,1,2,3,4,5,6,23]));n.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function i(e,t){let i=r[e];if(!i)throw Error(`Unknown diagram type: ${e}`);n[e]||await i();let o=n[e].parse(t);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new a(o);return o.value}t(i,`parse`);var a=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
3
- `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
4
- `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{t(this,`MermaidParseError`)}};export{i as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./init-B9nbfZCT.js";var t=class extends Map{constructor(e,t=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(i(this,e),t)}delete(e){return super.delete(a(this,e))}},n=class extends Set{constructor(e,t=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let t of e)this.add(t)}has(e){return super.has(r(this,e))}add(e){return super.add(i(this,e))}delete(e){return super.delete(a(this,e))}};function r({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function i({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function a({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function o(e){return typeof e==`object`&&e?e.valueOf():e}var s=Symbol(`implicit`);function c(){var n=new t,r=[],i=[],a=s;function o(e){let t=n.get(e);if(t===void 0){if(a!==s)return a;n.set(e,t=r.push(e)-1)}return i[t%i.length]}return o.domain=function(e){if(!arguments.length)return r.slice();r=[],n=new t;for(let t of e)n.has(t)||n.set(t,r.push(t)-1);return o},o.range=function(e){return arguments.length?(i=Array.from(e),o):i.slice()},o.unknown=function(e){return arguments.length?(a=e,o):a},o.copy=function(){return c(r,i).unknown(a)},e.apply(o,arguments),o}export{c as n,n as r,s as t};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-432kjUXO.js";import{n as e}from"./chunk-FOC6F5B3-DyK4SoM2.js";export{e as createPacketServices};
@@ -1 +0,0 @@
1
- var e=Math.PI,t=2*e,n=1e-6,r=t-n;function i(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function a(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return i;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var o=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?i:a(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,i,a,o){if(t=+t,r=+r,i=+i,a=+a,o=+o,o<0)throw Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,l=i-t,u=a-r,d=s-t,f=c-r,p=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>n)if(!(Math.abs(f*l-u*d)>n)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let m=i-s,h=a-c,g=l*l+u*u,_=m*m+h*h,v=Math.sqrt(g),y=Math.sqrt(p),b=o*Math.tan((e-Math.acos((g+p-_)/(2*v*y)))/2),x=b/y,S=b/v;Math.abs(x-1)>n&&this._append`L${t+x*d},${r+x*f}`,this._append`A${o},${o},0,0,${+(f*m>d*h)},${this._x1=t+S*l},${this._y1=r+S*u}`}}arc(i,a,o,s,c,l){if(i=+i,a=+a,o=+o,l=!!l,o<0)throw Error(`negative radius: ${o}`);let u=o*Math.cos(s),d=o*Math.sin(s),f=i+u,p=a+d,m=1^l,h=l?s-c:c-s;this._x1===null?this._append`M${f},${p}`:(Math.abs(this._x1-f)>n||Math.abs(this._y1-p)>n)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%t+t),h>r?this._append`A${o},${o},0,1,${m},${i-u},${a-d}A${o},${o},0,1,${m},${this._x1=f},${this._y1=p}`:h>n&&this._append`A${o},${o},0,${+(h>=e)},${m},${this._x1=i+o*Math.cos(c)},${this._y1=a+o*Math.sin(c)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function s(){return new o}s.prototype=o.prototype;function c(e){return function(){return e}}function l(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new o(t)}export{c as n,s as r,l as t};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-432kjUXO.js";import{n as e}from"./chunk-AA7GKIK3-DZOqN73n.js";export{e as createPieServices};
@@ -1,30 +0,0 @@
1
- import{B as e,C as t,V as n,W as r,_ as i,a,b as o,c as s,d as c,v as l}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{_ as u,v as d}from"./src-ps-3oTnY.js";import{n as f}from"./ordinal-BXaEVJbT.js";import{n as p}from"./path-C7Bv0Qdk.js";import{m}from"./dist-C6vvxvVV.js";import{t as h}from"./arc-DFTvTCxD.js";import{t as g}from"./array-xS8TccZC.js";import{f as _,r as v}from"./chunk-5PVQY5BW-D46cRkay.js";import{t as y}from"./chunk-426QAEUC-CIWkCWTf.js";import{t as b}from"./chunk-4BX2VUAB-O8dxzEpn.js";import{t as x}from"./mermaid-parser.core-BeZK8g2G.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=p(0),i=p(m),a=p(0);function o(o){var s,c=(o=g(o)).length,l,u,d=0,f=Array(c),p=Array(c),h=+r.apply(this,arguments),_=Math.min(m,Math.max(-m,i.apply(this,arguments)-h)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(_-c*b)/d:0;s<c;++s,h=v)l=f[s],x=p[l],v=h+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:h,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:p(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:p(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:p(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:p(+e),o):a},o}var T=c.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:u(()=>structuredClone(k),`getConfig`),clear:u(()=>{D=new Map,O=E.showData,a()},`clear`),setDiagramTitle:r,getDiagramTitle:t,setAccTitle:n,getAccTitle:l,setAccDescription:e,getAccDescription:i,addSection:u(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),d.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:u(()=>D,`getSections`),setShowData:u(e=>{O=e},`setShowData`),getShowData:u(()=>O,`getShowData`)},j=u((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:u(async e=>{let t=await x(`pie`,e);d.debug(t),j(t,A)},`parse`)},N=u(e=>`
2
- .pieCircle{
3
- stroke: ${e.pieStrokeColor};
4
- stroke-width : ${e.pieStrokeWidth};
5
- opacity : ${e.pieOpacity};
6
- }
7
- .pieOuterCircle{
8
- stroke: ${e.pieOuterStrokeColor};
9
- stroke-width: ${e.pieOuterStrokeWidth};
10
- fill: none;
11
- }
12
- .pieTitleText {
13
- text-anchor: middle;
14
- font-size: ${e.pieTitleTextSize};
15
- fill: ${e.pieTitleTextColor};
16
- font-family: ${e.fontFamily};
17
- }
18
- .slice {
19
- font-family: ${e.fontFamily};
20
- fill: ${e.pieSectionTextColor};
21
- font-size:${e.pieSectionTextSize};
22
- // fill: white;
23
- }
24
- .legend text {
25
- fill: ${e.pieLegendTextColor};
26
- font-family: ${e.fontFamily};
27
- font-size: ${e.pieLegendTextSize};
28
- }
29
- `,`getStyles`),P=u(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:u((e,t,n,r)=>{d.debug(`rendering pie chart
30
- `+e);let i=r.db,a=o(),c=v(i.getConfig(),a.pie),l=y(t),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:p}=a,[m]=_(p.pieOuterStrokeWidth);m??=2;let g=c.textPosition,b=h().innerRadius(0).outerRadius(185),x=h().innerRadius(185*g).outerRadius(185*g);u.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let S=i.getSections(),C=P(S),w=[p.pie1,p.pie2,p.pie3,p.pie4,p.pie5,p.pie6,p.pie7,p.pie8,p.pie9,p.pie10,p.pie11,p.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=f(w).domain([...S.keys()]);u.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),u.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=u.append(`text`).text(i.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=u.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>i.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;l.attr(`viewBox`,`${I} 0 ${L} 450`),s(l,450,L,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
@@ -1,7 +0,0 @@
1
- import{B as e,C as t,E as n,L as r,V as i,W as a,_ as o,a as s,b as c,c as l,d as u,v as d}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{_ as f,m as p,v as m}from"./src-ps-3oTnY.js";import{t as h}from"./linear-C8MDrvxz.js";var g=(function(){var e=f(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[1,7],o=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],s=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[55,56,57],l=[2,36],u=[1,37],d=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,14],v=[1,23],y=[1,18],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,24],T=[1,25],E=[1,26],D=[1,27],O=[1,28],k=[1,29],A=[1,32],j=[1,33],M=[1,34],N=[1,39],P=[1,40],F=[1,42],I=[1,44],L=[1,62],R=[1,61],z=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],B=[1,65],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,90],U=[1,91],W=[1,92],G=[1,99],K=[1,93],q=[1,96],J=[1,94],Y=[1,95],X=[1,97],Z=[1,98],de=[1,102],fe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],pe={trace:f(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:f(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s];break}},`anonymous`),table:[{18:t,26:1,27:2,28:n,55:r,56:i,57:a},{1:[3]},{18:t,26:8,27:2,28:n,55:r,56:i,57:a},{18:t,26:9,27:2,28:n,55:r,56:i,57:a},e(o,[2,33],{29:10}),e(s,[2,61]),e(s,[2,62]),e(s,[2,63]),{1:[2,30]},{1:[2,31]},e(c,l,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:d,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(o,[2,34]),{27:45,55:r,56:i,57:a},e(c,[2,37]),e(c,l,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:u,5:d,10:p,12:m,13:h,14:g,18:_,25:v,35:y,37:b,39:x,41:S,42:C,48:w,50:T,51:E,52:D,53:O,54:k,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(c,[2,39]),e(c,[2,40]),e(c,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},e(c,[2,45]),e(c,[2,46]),{18:[1,50]},{4:u,5:d,10:p,12:m,13:h,14:g,43:51,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,10:p,12:m,13:h,14:g,43:52,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,10:p,12:m,13:h,14:g,43:53,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,10:p,12:m,13:h,14:g,43:54,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,10:p,12:m,13:h,14:g,43:55,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,10:p,12:m,13:h,14:g,43:56,58:31,60:A,61:j,63:M,64:N,65:P,66:F,67:I},{4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,44:[1,57],47:[1,58],58:60,59:59,63:M,64:N,65:P,66:F,67:I},e(z,[2,64]),e(z,[2,66]),e(z,[2,67]),e(z,[2,70]),e(z,[2,71]),e(z,[2,72]),e(z,[2,73]),e(z,[2,74]),e(z,[2,75]),e(z,[2,76]),e(z,[2,77]),e(z,[2,78]),e(z,[2,79]),e(z,[2,80]),e(o,[2,35]),e(c,[2,38]),e(c,[2,42]),e(c,[2,43]),e(c,[2,44]),{3:64,4:B,5:ee,6:te,7:ne,8:re,9:ie,10:ae,11:oe,12:se,13:ce,14:le,15:ue,21:63},e(c,[2,53],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,77],63:M,64:N,65:P,66:F,67:I}),e(c,[2,56],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,49:[1,78],63:M,64:N,65:P,66:F,67:I}),e(c,[2,57],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(c,[2,58],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(c,[2,59],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(c,[2,60],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),{45:[1,79]},{44:[1,80]},e(z,[2,65]),e(z,[2,81]),e(z,[2,82]),e(z,[2,83]),{3:82,4:B,5:ee,6:te,7:ne,8:re,9:ie,10:ae,11:oe,12:se,13:ce,14:le,15:ue,18:[1,81]},e(V,[2,23]),e(V,[2,1]),e(V,[2,2]),e(V,[2,3]),e(V,[2,4]),e(V,[2,5]),e(V,[2,6]),e(V,[2,7]),e(V,[2,8]),e(V,[2,9]),e(V,[2,10]),e(V,[2,11]),e(V,[2,12]),e(c,[2,52],{58:31,43:83,4:u,5:d,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),e(c,[2,55],{58:31,43:84,4:u,5:d,10:p,12:m,13:h,14:g,60:A,61:j,63:M,64:N,65:P,66:F,67:I}),{46:[1,85]},{45:[1,86]},{4:H,5:U,6:W,8:G,11:K,13:q,16:89,17:J,18:Y,19:X,20:Z,22:88,23:87},e(V,[2,24]),e(c,[2,51],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(c,[2,54],{59:59,58:60,4:u,5:d,8:L,10:p,12:m,13:h,14:g,18:R,63:M,64:N,65:P,66:F,67:I}),e(c,[2,47],{22:88,16:89,23:100,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,101]},e(c,[2,29],{10:de}),e(fe,[2,27],{16:103,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),e(Q,[2,25]),e(Q,[2,13]),e(Q,[2,14]),e(Q,[2,15]),e(Q,[2,16]),e(Q,[2,17]),e(Q,[2,18]),e(Q,[2,19]),e(Q,[2,20]),e(Q,[2,21]),e(Q,[2,22]),e(c,[2,49],{10:de}),e(c,[2,48],{22:88,16:89,23:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:89,17:J,18:Y,19:X,20:Z,22:105},e(Q,[2,26]),e(c,[2,50],{10:de}),e(fe,[2,28],{16:103,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:f(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:f(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}f(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}f(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],o[w])this.terminals_[O]&&O>d&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(c+1)+`:
2
- `+h.showPosition()+`
3
- Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(l=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,u>0&&u--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,l,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};pe.lexer=(function(){return{EOF:1,parseError:f(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:f(function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:f(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),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
- `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:f(function(e){this.unput(this.match.slice(e))},`less`),pastInput:f(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:f(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:f(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
- `+t+`^`},`showPosition`),test_match:f(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[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+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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:f(function(){return this.next()||this.lex()},`lex`),begin:f(function(e){this.conditionStack.push(e)},`begin`),popState:f(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:f(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:f(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:f(function(e){this.begin(e)},`pushState`),stateStackSize:f(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:f(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}}})();function $(){this.yy={}}return f($,`Parser`),$.prototype=pe,pe.Parser=$,new $})();g.parser=g;var _=g,v=n(),y=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{f(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:u.quadrantChart?.chartWidth||500,chartWidth:u.quadrantChart?.chartHeight||500,titlePadding:u.quadrantChart?.titlePadding||10,titleFontSize:u.quadrantChart?.titleFontSize||20,quadrantPadding:u.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:u.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:u.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:u.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:u.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:u.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:u.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:u.quadrantChart?.pointTextPadding||5,pointLabelFontSize:u.quadrantChart?.pointLabelFontSize||12,pointRadius:u.quadrantChart?.pointRadius||5,xAxisPosition:u.quadrantChart?.xAxisPosition||`top`,yAxisPosition:u.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:u.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:u.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:v.quadrant1Fill,quadrant2Fill:v.quadrant2Fill,quadrant3Fill:v.quadrant3Fill,quadrant4Fill:v.quadrant4Fill,quadrant1TextFill:v.quadrant1TextFill,quadrant2TextFill:v.quadrant2TextFill,quadrant3TextFill:v.quadrant3TextFill,quadrant4TextFill:v.quadrant4TextFill,quadrantPointFill:v.quadrantPointFill,quadrantPointTextFill:v.quadrantPointTextFill,quadrantXAxisTextFill:v.quadrantXAxisTextFill,quadrantYAxisTextFill:v.quadrantYAxisTextFill,quadrantTitleFill:v.quadrantTitleFill,quadrantInternalBorderStrokeFill:v.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:v.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,m.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){m.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){m.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:r,quadrantTop:i,quadrantWidth:a}=t,o=h().domain([0,1]).range([r,a+r]),s=h().domain([0,1]).range([n+i,i]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:o(e.x),y:s(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:o(e.x),y:s(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},b=class extends Error{static{f(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function x(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}f(x,`validateHexCode`);function S(e){return!/^\d+$/.test(e)}f(S,`validateNumber`);function C(e){return!/^\d+px$/.test(e)}f(C,`validateSizeInPixels`);var w=c();function T(e){return r(e.trim(),w)}f(T,`textSanitizer`);var E=new y;function D(e){E.setData({quadrant1Text:T(e.text)})}f(D,`setQuadrant1Text`);function O(e){E.setData({quadrant2Text:T(e.text)})}f(O,`setQuadrant2Text`);function k(e){E.setData({quadrant3Text:T(e.text)})}f(k,`setQuadrant3Text`);function A(e){E.setData({quadrant4Text:T(e.text)})}f(A,`setQuadrant4Text`);function j(e){E.setData({xAxisLeftText:T(e.text)})}f(j,`setXAxisLeftText`);function M(e){E.setData({xAxisRightText:T(e.text)})}f(M,`setXAxisRightText`);function N(e){E.setData({yAxisTopText:T(e.text)})}f(N,`setYAxisTopText`);function P(e){E.setData({yAxisBottomText:T(e.text)})}f(P,`setYAxisBottomText`);function F(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(S(r))throw new b(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(x(r))throw new b(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(x(r))throw new b(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(C(r))throw new b(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}f(F,`parseStyles`);function I(e,t,n,r,i){let a=F(i);E.addPoints([{x:n,y:r,text:T(e.text),className:t,...a}])}f(I,`addPoint`);function L(e,t){E.addClass(e,F(t))}f(L,`addClass`);function R(e){E.setConfig({chartWidth:e})}f(R,`setWidth`);function z(e){E.setConfig({chartHeight:e})}f(z,`setHeight`);function B(){let{themeVariables:e,quadrantChart:n}=c();return n&&E.setConfig(n),E.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),E.setData({titleText:t()}),E.build()}f(B,`getQuadrantData`);var ee={parser:_,db:{setWidth:R,setHeight:z,setQuadrant1Text:D,setQuadrant2Text:O,setQuadrant3Text:k,setQuadrant4Text:A,setXAxisLeftText:j,setXAxisRightText:M,setYAxisTopText:N,setYAxisBottomText:P,parseStyles:F,addPoint:I,addClass:L,getQuadrantData:B,clear:f(function(){E.clear(),s()},`clear`),setAccTitle:i,getAccTitle:d,setDiagramTitle:a,getDiagramTitle:t,getAccDescription:o,setAccDescription:e},renderer:{draw:f((e,t,n,r)=>{function i(e){return e===`top`?`hanging`:`middle`}f(i,`getDominantBaseLine`);function a(e){return e===`left`?`start`:`middle`}f(a,`getTextAnchor`);function o(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}f(o,`getTransformation`);let s=c();m.debug(`Rendering quadrant chart
7
- `+e);let u=s.securityLevel,d;u===`sandbox`&&(d=p(`#i`+t));let h=p(u===`sandbox`?d.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`),g=h.append(`g`).attr(`class`,`main`),_=s.quadrantChart?.chartWidth??500,v=s.quadrantChart?.chartHeight??500;l(h,v,_,s.quadrantChart?.useMaxWidth??!0),h.attr(`viewBox`,`0 0 `+_+` `+v),r.db.setHeight(v),r.db.setWidth(_);let y=r.db.getQuadrantData(),b=g.append(`g`).attr(`class`,`quadrants`),x=g.append(`g`).attr(`class`,`border`),S=g.append(`g`).attr(`class`,`data-points`),C=g.append(`g`).attr(`class`,`labels`),w=g.append(`g`).attr(`class`,`title`);y.title&&w.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,y.title.fill).attr(`font-size`,y.title.fontSize).attr(`dominant-baseline`,i(y.title.horizontalPos)).attr(`text-anchor`,a(y.title.verticalPos)).attr(`transform`,o(y.title)).text(y.title.text),y.borderLines&&x.selectAll(`line`).data(y.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let T=b.selectAll(`g.quadrant`).data(y.quadrants).enter().append(`g`).attr(`class`,`quadrant`);T.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),T.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text)).text(e=>e.text.text),C.selectAll(`g.label`).data(y.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>i(e.horizontalPos)).attr(`text-anchor`,e=>a(e.verticalPos)).attr(`transform`,e=>o(e));let E=S.selectAll(`g.data-point`).data(y.points).enter().append(`g`).attr(`class`,`data-point`);E.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),E.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>i(e.text.horizontalPos)).attr(`text-anchor`,e=>a(e.text.verticalPos)).attr(`transform`,e=>o(e.text))},`draw`)},styles:f(()=>``,`styles`)};export{ee as diagram};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-432kjUXO.js";import{n as e}from"./chunk-2KRD3SAO-D5XH6bj9.js";export{e as createRadarServices};
@@ -1 +0,0 @@
1
- function e(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}export{e as t};
@@ -1 +0,0 @@
1
- import{D as e,E as t,T as n,_ as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,n as d,r as f,s as p,t as m,u as h,v as g,x as _,y as v}from"./identity-nF-8qK2-.js";import{i as y,n as b,r as x}from"./isEmpty-Di-NpihJ.js";function ee(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var te=`__lodash_hash_undefined__`;function ne(e){return this.__data__.set(e,te),this}function re(e){return this.__data__.has(e)}function S(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new v;++t<n;)this.add(e[t])}S.prototype.add=S.prototype.push=ne,S.prototype.has=re;function ie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function C(e,t){return e.has(t)}var ae=1,oe=2;function w(e,t,n,r,i,a){var o=n&ae,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&oe?new S:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!ie(t,function(e,t){if(!C(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function se(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var ce=1,le=2,ue=`[object Boolean]`,de=`[object Date]`,fe=`[object Error]`,pe=`[object Map]`,me=`[object Number]`,he=`[object RegExp]`,ge=`[object Set]`,_e=`[object String]`,ve=`[object Symbol]`,ye=`[object ArrayBuffer]`,be=`[object DataView]`,E=e?e.prototype:void 0,D=E?E.valueOf:void 0;function xe(e,t,n,r,i,a,o){switch(n){case be:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ye:return!(e.byteLength!=t.byteLength||!a(new c(e),new c(t)));case ue:case de:case me:return _(+e,+t);case fe:return e.name==t.name&&e.message==t.message;case he:case _e:return e==t+``;case pe:var s=se;case ge:var l=r&ce;if(s||=T,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=le,o.set(e,t);var d=w(s(e),s(t),r,i,a,o);return o.delete(e),d;case ve:if(D)return D.call(e)==D.call(t)}return!1}function O(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function k(e,t,n){var r=t(e);return h(e)?r:O(r,n(e))}function A(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function j(){return[]}var Se=Object.prototype.propertyIsEnumerable,M=Object.getOwnPropertySymbols,N=M?function(e){return e==null?[]:(e=Object(e),A(M(e),function(t){return Se.call(e,t)}))}:j;function P(e){return i(e)?d(e):y(e)}function F(e){return k(e,P,N)}var Ce=1,we=Object.prototype.hasOwnProperty;function Te(e,t,n,r,i,a){var o=n&Ce,s=F(e),c=s.length;if(c!=F(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:we.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Ee=1,I=`[object Arguments]`,L=`[object Array]`,R=`[object Object]`,z=Object.prototype.hasOwnProperty;function De(e,t,n,i,a,o){var s=h(e),c=h(t),u=s?L:b(e),d=c?L:b(t);u=u==I?R:u,d=d==I?R:d;var f=u==R,m=d==R,g=u==d;if(g&&p(e)){if(!p(t))return!1;s=!0,f=!1}if(g&&!f)return o||=new r,s||l(e)?w(e,t,n,i,a,o):xe(e,t,u,n,i,a,o);if(!(n&Ee)){var _=f&&z.call(e,`__wrapped__`),v=m&&z.call(t,`__wrapped__`);if(_||v){var y=_?e.value():e,x=v?t.value():t;return o||=new r,a(y,x,n,i,o)}}return g?(o||=new r,Te(e,t,n,i,a,o)):!1}function B(e,t,n,r,i){return e===t?!0:e==null||t==null||!o(e)&&!o(t)?e!==e&&t!==t:De(e,t,n,r,B,i)}var Oe=1,ke=2;function Ae(e,t,n,i){var a=n.length,o=a,s=!i;if(e==null)return!o;for(e=Object(e);a--;){var c=n[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=n[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===void 0&&!(l in e))return!1}else{var f=new r;if(i)var p=i(u,d,l,e,t,f);if(!(p===void 0?B(d,u,Oe|ke,i,f):p))return!1}}return!0}function V(e){return e===e&&!n(e)}function je(e){for(var t=P(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,V(i)]}return t}function H(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Me(e){var t=je(e);return t.length==1&&t[0][2]?H(t[0][0],t[0][1]):function(n){return n===e||Ae(n,e,t)}}var Ne=`[object Symbol]`;function U(e){return typeof e==`symbol`||o(e)&&t(e)==Ne}var Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/;function W(e,t){if(h(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||U(e)?!0:Fe.test(e)||!Pe.test(e)||t!=null&&e in Object(t)}var Ie=500;function Le(e){var t=g(e,function(e){return n.size===Ie&&n.clear(),e}),n=t.cache;return t}var Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/\\(\\)?/g,Be=Le(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Re,function(e,n,r,i){t.push(r?i.replace(ze,`$1`):n||e)}),t}),Ve=1/0,G=e?e.prototype:void 0,K=G?G.toString:void 0;function q(e){if(typeof e==`string`)return e;if(h(e))return ee(e,q)+``;if(U(e))return K?K.call(e):``;var t=e+``;return t==`0`&&1/e==-Ve?`-0`:t}function He(e){return e==null?``:q(e)}function J(e,t){return h(e)?e:W(e,t)?[e]:Be(He(e))}var Ue=1/0;function Y(e){if(typeof e==`string`||U(e))return e;var t=e+``;return t==`0`&&1/e==-Ue?`-0`:t}function X(e,t){t=J(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Y(t[n++])];return n&&n==r?e:void 0}function We(e,t,n){var r=e==null?void 0:X(e,t);return r===void 0?n:r}function Ge(e,t){return e!=null&&t in Object(e)}function Ke(e,t,n){t=J(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=Y(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&u(i)&&f(s,i)&&(h(e)||a(e)))}function qe(e,t){return e!=null&&Ke(e,t,Ge)}var Je=1,Ye=2;function Xe(e,t){return W(e)&&V(t)?H(Y(e),t):function(n){var r=We(n,e);return r===void 0&&r===t?qe(n,e):B(t,r,Je|Ye)}}function Ze(e){return function(t){return t?.[e]}}function Qe(e){return function(t){return X(t,e)}}function $e(e){return W(e)?Ze(Y(e)):Qe(e)}function Z(e){return typeof e==`function`?e:e==null?m:typeof e==`object`?h(e)?Xe(e[0],e[1]):Me(e):$e(e)}function et(e,t){return e&&s(e,t,P)}function tt(e,t){return function(n,r){if(n==null)return n;if(!i(n))return e(n,r);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&r(s[o],o,s)!==!1;);return n}}var Q=tt(et);function nt(e,t){var n=[];return Q(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function rt(e,t){return(h(e)?A:nt)(e,Z(t,3))}var it=e?e.isConcatSpreadable:void 0;function at(e){return h(e)||a(e)||!!(it&&e&&e[it])}function ot(e,t,n,r,i){var a=-1,o=e.length;for(n||=at,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ot(s,t-1,n,r,i):O(i,s):r||(i[i.length]=s)}return i}function st(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function ct(e){return e!==e}function lt(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ut(e,t,n){return t===t?lt(e,t,n):st(e,ct,n)}function dt(e,t){return!!(e!=null&&e.length)&&ut(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function pt(){}var mt=x&&1/T(new x([,-0]))[1]==1/0?function(e){return new x(e)}:pt,ht=200;function gt(e,t,n){var r=-1,i=dt,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=ft;else if(a>=ht){var l=t?null:mt(e);if(l)return T(l);o=!1,i=C,c=new S}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function _t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function $(e){return typeof e==`function`?e:m}function vt(e,t){return(h(e)?_t:Q)(e,$(t))}function yt(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function bt(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function xt(e,t,n){var r=h(e)?yt:bt,i=arguments.length<3;return r(e,Z(t,4),n,i,Q)}export{j as C,ee as E,N as S,O as T,J as _,gt as a,F as b,rt as c,Z as d,Ze as f,Y as g,X as h,_t as i,Q as l,Ke as m,vt as n,st as o,qe as p,$ as r,ot as s,xt as t,et as u,He as v,k as w,P as x,U as y};
@@ -1,84 +0,0 @@
1
- import{B as e,C as t,V as n,W as r,_ as i,a,b as o,v as s,y as c}from"./chunk-ICPOFSXX-6-ABzkfw.js";import{_ as l,g as u,v as d}from"./src-ps-3oTnY.js";import{h as f}from"./chunk-5PVQY5BW-D46cRkay.js";import"./chunk-BSJP7CBP-BQPMRa-Q.js";import"./chunk-ZZ45TVLE-DrCjtkdu.js";import"./chunk-X2U36JSP-D1C3tOED.js";import"./chunk-U2HBQHQK-C6yvwOAo.js";import"./chunk-5FUZZQ4R-D7L4hZzZ.js";import"./chunk-ENJZ2VHE-BrjxYY_T.js";import{r as p,t as m}from"./chunk-336JU56O-CVDEj5x8.js";import{t as h}from"./chunk-55IACEB6-R-yr7oHq.js";import{t as g}from"./chunk-EDXVE4YY-BxmMvdBY.js";var _=(function(){var e=l(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,3],n=[1,4],r=[1,5],i=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],o=[1,22],s=[2,7],c=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:l(function(){},`trace`),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:`error`,5:`NEWLINE`,6:`RD`,8:`EOF`,9:`acc_title`,10:`acc_title_value`,11:`acc_descr`,12:`acc_descr_value`,13:`acc_descr_multiline_value`,21:`direction_tb`,22:`direction_bt`,23:`direction_rl`,24:`direction_lr`,27:`STRUCT_START`,29:`STYLE_SEPARATOR`,31:`ID`,32:`COLONSEP`,34:`TEXT`,36:`RISK`,38:`VERIFYMTHD`,40:`STRUCT_STOP`,41:`REQUIREMENT`,42:`FUNCTIONAL_REQUIREMENT`,43:`INTERFACE_REQUIREMENT`,44:`PERFORMANCE_REQUIREMENT`,45:`PHYSICAL_REQUIREMENT`,46:`DESIGN_CONSTRAINT`,47:`LOW_RISK`,48:`MED_RISK`,49:`HIGH_RISK`,50:`VERIFY_ANALYSIS`,51:`VERIFY_DEMONSTRATION`,52:`VERIFY_INSPECTION`,53:`VERIFY_TEST`,54:`ELEMENT`,57:`TYPE`,59:`DOCREF`,61:`END_ARROW_L`,63:`LINE`,64:`END_ARROW_R`,65:`CONTAINS`,66:`COPIES`,67:`DERIVES`,68:`SATISFIES`,69:`VERIFIES`,70:`REFINES`,71:`TRACES`,72:`CLASSDEF`,74:`CLASS`,75:`ALPHA`,76:`COMMA`,77:`STYLE`,80:`NUM`,81:`COLON`,82:`UNIT`,83:`SPACE`,84:`BRKT`,85:`PCT`,86:`MINUS`,87:`LABEL`,88:`SEMICOLON`,89:`unqString`,90:`qString`},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:l(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s];break}},`anonymous`),table:[{3:1,4:2,6:t,9:n,11:r,13:i},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:n,11:r,13:i},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:t,9:n,11:r,13:i},{1:[2,2]},{4:17,5:o,7:13,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:o,7:42,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:43,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:44,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:45,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:46,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:47,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:48,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:49,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:o,7:50,8:s,9:n,11:r,13:i,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},e(D,[2,29]),e(D,[2,30]),e(D,[2,31]),e(D,[2,32]),e(D,[2,33]),e(D,[2,34]),e(O,[2,81]),e(O,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(k,[2,79]),e(k,[2,80]),{27:[1,67],29:[1,68]},e(k,[2,85]),e(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},e(oe,[2,60]),e(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},e(H,[2,50]),e(H,[2,51]),e(H,[2,52]),e(H,[2,53]),e(H,[2,54]),e(H,[2,55]),e(H,[2,56]),{64:[1,100]},e(T,[2,59],{76:M}),e(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},e(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),e(U,[2,67]),e(U,[2,69]),e(U,[2,70]),e(U,[2,71]),e(U,[2,72]),e(U,[2,73]),e(U,[2,74]),e(U,[2,75]),e(U,[2,76]),e(U,[2,77]),e(U,[2,78]),e(T,[2,57],{76:se}),e(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},e(oe,[2,61]),e(oe,[2,63]),e(U,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:l(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:l(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,u=0,d=0,f=2,p=1,m=a.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;a.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,i.length-=e,a.length-=e}l(b,`popStack`);function x(){var e=r.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}l(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=o[w]&&o[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],o[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(c+1)+`:
2
- `+h.showPosition()+`
3
- Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),i.push(h.yytext),a.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,s=h.yytext,c=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=i[i.length-k],D._$={first_line:a[a.length-(k||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(k||1)].first_column,last_column:a[a.length-1].last_column},y&&(D._$.range=[a[a.length-(k||1)].range[0],a[a.length-1].range[1]]),E=this.performAction.apply(D,[s,u,c,g.yy,T[1],i,a].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),a=a.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),i.push(D.$),a.push(D._$),ee=o[n[n.length-2]][n[n.length-1]],n.push(ee);break;case 3:return!0}}return!0},`parse`)};le.lexer=(function(){return{EOF:1,parseError:l(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:l(function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:l(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),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(e){this.unput(this.match.slice(e))},`less`),pastInput:l(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:l(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:l(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
- `+t+`^`},`showPosition`),test_match:l(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[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+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):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(function(){return this.next()||this.lex()},`lex`),begin:l(function(e){this.conditionStack.push(e)},`begin`),popState:l(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:l(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:l(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:l(function(e){this.begin(e)},`pushState`),stateStackSize:l(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:l(function(e,t,n,r){switch(n){case 0:return`title`;case 1:return this.begin(`acc_title`),9;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),11;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:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin(`style`),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return`PERCENT`;case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin(`string`);break;case 58:this.popState();break;case 59:return this.begin(`style`),72;case 60:return this.begin(`style`),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin(`string`);break;case 65:this.popState();break;case 66:return`qString`;case 67:return t.yytext=t.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},`anonymous`),rules:[/^(?:title\s[^#\n;]+)/i,/^(?: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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}}})();function ue(){this.yy={}}return l(ue,`Parser`),ue.prototype=le,le.Parser=ue,new ue})();_.parser=_;var v=_,y=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction=`TB`,this.RequirementType={REQUIREMENT:`Requirement`,FUNCTIONAL_REQUIREMENT:`Functional Requirement`,INTERFACE_REQUIREMENT:`Interface Requirement`,PERFORMANCE_REQUIREMENT:`Performance Requirement`,PHYSICAL_REQUIREMENT:`Physical Requirement`,DESIGN_CONSTRAINT:`Design Constraint`},this.RiskLevel={LOW_RISK:`Low`,MED_RISK:`Medium`,HIGH_RISK:`High`},this.VerifyType={VERIFY_ANALYSIS:`Analysis`,VERIFY_DEMONSTRATION:`Demonstration`,VERIFY_INSPECTION:`Inspection`,VERIFY_TEST:`Test`},this.Relationships={CONTAINS:`contains`,COPIES:`copies`,DERIVES:`derives`,SATISFIES:`satisfies`,VERIFIES:`verifies`,REFINES:`refines`,TRACES:`traces`},this.setAccTitle=n,this.getAccTitle=s,this.setAccDescription=e,this.getAccDescription=i,this.setDiagramTitle=r,this.getDiagramTitle=t,this.getConfig=l(()=>o().requirement,`getConfig`),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{l(this,`RequirementDB`)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:``,text:``,risk:``,verifyMethod:``,name:``,type:``,cssStyles:[],classes:[`default`]}}getInitialElement(){return{name:``,type:``,docRef:``,cssStyles:[],classes:[`default`]}}addRequirement(e,t){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:[`default`]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:[`default`]}),d.info(`Added new element: `,e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,t,n){this.relations.push({type:e,src:t,dst:n})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,a()}setCssStyle(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(!t||!e)return;for(let n of t)n.includes(`,`)?e.cssStyles.push(...n.split(`,`)):e.cssStyles.push(n)}}setClass(e,t){for(let n of e){let e=this.requirements.get(n)??this.elements.get(n);if(e)for(let n of t){e.classes.push(n);let t=this.classes.get(n)?.styles;t&&e.cssStyles.push(...t)}}}defineClass(e,t){for(let n of e){let e=this.classes.get(n);e===void 0&&(e={id:n,styles:[],textStyles:[]},this.classes.set(n,e)),t&&t.forEach(function(t){if(/color/.exec(t)){let n=t.replace(`fill`,`bgFill`);e.textStyles.push(n)}e.styles.push(t)}),this.requirements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))}),this.elements.forEach(e=>{e.classes.includes(n)&&e.cssStyles.push(...t.flatMap(e=>e.split(`,`)))})}}getClasses(){return this.classes}getData(){let e=o(),t=[],n=[];for(let n of this.requirements.values()){let r=n;r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.shape=`requirementBox`,r.look=e.look,r.colorIndex=t.length,t.push(r)}for(let n of this.elements.values()){let r=n;r.shape=`requirementBox`,r.look=e.look,r.id=n.name,r.cssStyles=n.cssStyles,r.cssClasses=n.classes.join(` `),r.colorIndex=t.length,t.push(r)}for(let t of this.relations){let r=0,i=t.type===this.Relationships.CONTAINS,a={id:`${t.src}-${t.dst}-${r}`,start:this.requirements.get(t.src)?.name??this.elements.get(t.src)?.name,end:this.requirements.get(t.dst)?.name??this.elements.get(t.dst)?.name,label:`&lt;&lt;${t.type}&gt;&gt;`,classes:`relationshipLine`,style:[`fill:none`,i?``:`stroke-dasharray: 10,7`],labelpos:`c`,thickness:`normal`,type:`normal`,pattern:i?`normal`:`dashed`,arrowTypeStart:i?`requirement_contains`:``,arrowTypeEnd:i?``:`requirement_arrow`,look:e.look,labelType:`markdown`};n.push(a),r++}return{nodes:t,edges:n,other:{},config:e,direction:this.getDirection()}}},b=l(e=>{let{themeVariables:t,look:n}=c(),{bkgColorArray:r,borderColorArray:i}=t;if(!i?.length)return``;let a=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)a+=`
7
-
8
- [data-look="${n}"][data-color-id="color-${t}"].node path {
9
- stroke: ${i[t]};
10
- fill: ${r?.length?r[t]:``};
11
- }
12
-
13
- [data-look="${n}"][data-color-id="color-${t}"].node rect {
14
- stroke: ${i[t]};
15
- fill: ${r?.length?r[t]:``};
16
- }
17
- `;return a},`genColor`),x=l(e=>{let{look:t,themeVariables:n}=c(),{requirementEdgeLabelBackground:r}=n;return`
18
- ${b(e)}
19
- marker {
20
- fill: ${e.relationColor};
21
- stroke: ${e.relationColor};
22
- }
23
-
24
- marker.cross {
25
- stroke: ${e.lineColor};
26
- }
27
-
28
- svg {
29
- font-family: ${e.fontFamily};
30
- font-size: ${e.fontSize};
31
- }
32
-
33
- .reqBox {
34
- fill: ${e.requirementBackground};
35
- fill-opacity: 1.0;
36
- stroke: ${e.requirementBorderColor};
37
- stroke-width: ${e.requirementBorderSize};
38
- }
39
-
40
- .reqTitle, .reqLabel{
41
- fill: ${e.requirementTextColor};
42
- }
43
- .reqLabelBox {
44
- fill: ${e.relationLabelBackground};
45
- fill-opacity: 1.0;
46
- }
47
-
48
- .req-title-line {
49
- stroke: ${e.requirementBorderColor};
50
- stroke-width: ${e.requirementBorderSize};
51
- }
52
- .relationshipLine {
53
- stroke: ${e.relationColor};
54
- stroke-width: ${t===`neo`?e.strokeWidth:`1px`};
55
- }
56
- .relationshipLabel {
57
- fill: ${e.relationLabelColor};
58
- }
59
- .edgeLabel {
60
- background-color: ${e.edgeLabelBackground};
61
- }
62
- .edgeLabel .label rect {
63
- fill: ${e.edgeLabelBackground};
64
- }
65
- .edgeLabel .label text {
66
- fill: ${e.relationLabelColor};
67
- }
68
- .divider {
69
- stroke: ${e.nodeBorder};
70
- stroke-width: 1;
71
- }
72
- .label {
73
- font-family: ${e.fontFamily};
74
- color: ${e.nodeTextColor||e.textColor};
75
- }
76
- .label text,span {
77
- fill: ${e.nodeTextColor||e.textColor};
78
- color: ${e.nodeTextColor||e.textColor};
79
- }
80
- .labelBkg {
81
- background-color: ${r??e.edgeLabelBackground};
82
- }
83
-
84
- `},`getStyles`),S={};u(S,{draw:()=>C});var C=l(async function(e,t,n,r){d.info(`REF0:`),d.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:i,state:a,layout:s,look:c}=o(),l=r.db.getData(),u=h(t,i);l.type=r.type,l.layoutAlgorithm=m(s),l.nodeSpacing=a?.nodeSpacing??50,l.rankSpacing=a?.rankSpacing??50,l.markers=c===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await p(l,u),f.insertTitle(u,`requirementDiagramTitleText`,a?.titleTopMargin??25,r.db.getDiagramTitle()),g(u,8,`requirementDiagram`,a?.useMaxWidth??!0)},`draw`),w={parser:v,get db(){return new y},renderer:S,styles:x};export{w as diagram};