@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8

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 (236) hide show
  1. package/package.json +4 -4
  2. package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
  3. package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
  4. package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
  5. package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
  6. package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
  7. package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
  8. package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
  9. package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
  10. package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
  11. package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
  12. package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
  13. package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
  14. package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
  15. package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
  16. package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
  17. package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
  18. package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
  19. package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
  20. package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
  21. package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
  22. package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
  23. package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
  24. package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
  25. package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
  26. package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
  27. package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
  28. package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
  29. package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
  30. package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
  31. package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
  32. package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
  33. package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
  34. package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
  35. package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
  36. package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
  37. package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
  38. package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
  39. package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
  40. package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
  41. package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
  42. package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
  43. package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
  44. package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
  45. package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
  46. package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
  47. package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
  48. package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
  49. package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
  50. package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
  51. package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
  52. package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
  53. package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
  54. package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
  55. package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
  56. package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
  57. package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
  58. package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
  59. package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
  60. package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
  61. package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
  62. package/dist/angular-html-LD6QEAZE.mjs +0 -7
  63. package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
  64. package/dist/angular-ts-FGK7I2F5.mjs +0 -37
  65. package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
  66. package/dist/angular-ts-XZTE5LQS.mjs +0 -37
  67. package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
  68. package/dist/apl-VB2EG5RZ.mjs +0 -22
  69. package/dist/apl-VB2EG5RZ.mjs.map +0 -1
  70. package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
  71. package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
  72. package/dist/blade-EZDWULER.mjs +0 -26
  73. package/dist/blade-EZDWULER.mjs.map +0 -1
  74. package/dist/blade-HS4Z7O3Y.mjs +0 -26
  75. package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
  76. package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
  77. package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
  78. package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
  79. package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
  80. package/dist/chunk-2BAFECUC.mjs +0 -28
  81. package/dist/chunk-2BAFECUC.mjs.map +0 -1
  82. package/dist/chunk-BF5LDW2L.mjs +0 -65
  83. package/dist/chunk-BF5LDW2L.mjs.map +0 -1
  84. package/dist/chunk-BUEC2HNL.mjs +0 -762
  85. package/dist/chunk-BUEC2HNL.mjs.map +0 -1
  86. package/dist/chunk-CRGJ2YCV.mjs +0 -109
  87. package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
  88. package/dist/chunk-DKZXT4VQ.mjs +0 -19
  89. package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
  90. package/dist/chunk-DYQXFOGA.mjs +0 -34
  91. package/dist/chunk-DYQXFOGA.mjs.map +0 -1
  92. package/dist/chunk-ENI667QL.mjs +0 -806
  93. package/dist/chunk-ENI667QL.mjs.map +0 -1
  94. package/dist/chunk-GEUZOPED.mjs +0 -1834
  95. package/dist/chunk-GEUZOPED.mjs.map +0 -1
  96. package/dist/chunk-GU7334FJ.mjs +0 -538
  97. package/dist/chunk-GU7334FJ.mjs.map +0 -1
  98. package/dist/chunk-HNKEYT4A.mjs +0 -4693
  99. package/dist/chunk-HNKEYT4A.mjs.map +0 -1
  100. package/dist/chunk-HTMHAYGC.mjs +0 -14
  101. package/dist/chunk-HTMHAYGC.mjs.map +0 -1
  102. package/dist/chunk-JRLFMJ6U.mjs +0 -1923
  103. package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
  104. package/dist/chunk-JYRND4DC.mjs +0 -22
  105. package/dist/chunk-JYRND4DC.mjs.map +0 -1
  106. package/dist/chunk-KFEPUFID.mjs +0 -52
  107. package/dist/chunk-KFEPUFID.mjs.map +0 -1
  108. package/dist/chunk-M3UH7XZX.mjs +0 -6222
  109. package/dist/chunk-M3UH7XZX.mjs.map +0 -1
  110. package/dist/chunk-ND4RYWG7.mjs +0 -12
  111. package/dist/chunk-ND4RYWG7.mjs.map +0 -1
  112. package/dist/chunk-VLSLBZME.mjs +0 -51
  113. package/dist/chunk-VLSLBZME.mjs.map +0 -1
  114. package/dist/chunk-WJBV3P3K.mjs +0 -55
  115. package/dist/chunk-WJBV3P3K.mjs.map +0 -1
  116. package/dist/chunk-X2TQ2HDS.mjs +0 -44
  117. package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
  118. package/dist/chunk-YIDZOZG3.mjs +0 -103
  119. package/dist/chunk-YIDZOZG3.mjs.map +0 -1
  120. package/dist/chunk-YLW7IP7V.mjs +0 -14525
  121. package/dist/chunk-YLW7IP7V.mjs.map +0 -1
  122. package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
  123. package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
  124. package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
  125. package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
  126. package/dist/cobol-PNTKRG5I.mjs +0 -17
  127. package/dist/cobol-PNTKRG5I.mjs.map +0 -1
  128. package/dist/crystal-BSMHK65A.mjs +0 -23
  129. package/dist/crystal-BSMHK65A.mjs.map +0 -1
  130. package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
  131. package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
  132. package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
  133. package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
  134. package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
  135. package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
  136. package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
  137. package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
  138. package/dist/edge-JOI74UJM.mjs +0 -19
  139. package/dist/edge-JOI74UJM.mjs.map +0 -1
  140. package/dist/elixir-FEL6DDPJ.mjs +0 -15
  141. package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
  142. package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
  143. package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
  144. package/dist/erb-Q2D6FWX3.mjs +0 -32
  145. package/dist/erb-Q2D6FWX3.mjs.map +0 -1
  146. package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
  147. package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
  148. package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
  149. package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
  150. package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
  151. package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
  152. package/dist/glimmer-js-B32LCGFA.mjs +0 -19
  153. package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
  154. package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
  155. package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
  156. package/dist/hack-3ZNSL4KD.mjs +0 -17
  157. package/dist/hack-3ZNSL4KD.mjs.map +0 -1
  158. package/dist/handlebars-ICBC3AZK.mjs +0 -19
  159. package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
  160. package/dist/html-BGY5P773.mjs +0 -6
  161. package/dist/html-BGY5P773.mjs.map +0 -1
  162. package/dist/html-derivative-3HGXHHFE.mjs +0 -7
  163. package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
  164. package/dist/index.css +0 -2385
  165. package/dist/index.css.map +0 -1
  166. package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
  167. package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
  168. package/dist/jinja-WL6HNMB5.mjs +0 -22
  169. package/dist/jinja-WL6HNMB5.mjs.map +0 -1
  170. package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
  171. package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
  172. package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
  173. package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
  174. package/dist/katex-4R42CMCB.mjs +0 -4
  175. package/dist/katex-4R42CMCB.mjs.map +0 -1
  176. package/dist/liquid-YS3YPW54.mjs +0 -19
  177. package/dist/liquid-YS3YPW54.mjs.map +0 -1
  178. package/dist/logo-mark-OHF64HAY.svg +0 -8
  179. package/dist/mdc-A66KLOT4.mjs +0 -20
  180. package/dist/mdc-A66KLOT4.mjs.map +0 -1
  181. package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
  182. package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
  183. package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
  184. package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
  185. package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
  186. package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
  187. package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
  188. package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
  189. package/dist/nim-HUBKBJHZ.mjs +0 -26
  190. package/dist/nim-HUBKBJHZ.mjs.map +0 -1
  191. package/dist/perl-QHAMWWQ5.mjs +0 -22
  192. package/dist/perl-QHAMWWQ5.mjs.map +0 -1
  193. package/dist/php-FS5GKSPN.mjs +0 -11
  194. package/dist/php-FS5GKSPN.mjs.map +0 -1
  195. package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
  196. package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
  197. package/dist/pug-WTY5FMEA.mjs +0 -17
  198. package/dist/pug-WTY5FMEA.mjs.map +0 -1
  199. package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
  200. package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
  201. package/dist/razor-BAB7LFWZ.mjs +0 -17
  202. package/dist/razor-BAB7LFWZ.mjs.map +0 -1
  203. package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
  204. package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
  205. package/dist/rst-AY7U27YM.mjs +0 -41
  206. package/dist/rst-AY7U27YM.mjs.map +0 -1
  207. package/dist/rst-Y2VLYMJI.mjs +0 -41
  208. package/dist/rst-Y2VLYMJI.mjs.map +0 -1
  209. package/dist/ruby-K4BNEYWG.mjs +0 -22
  210. package/dist/ruby-K4BNEYWG.mjs.map +0 -1
  211. package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
  212. package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
  213. package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
  214. package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
  215. package/dist/soy-5QMQV2KL.mjs +0 -15
  216. package/dist/soy-5QMQV2KL.mjs.map +0 -1
  217. package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
  218. package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
  219. package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
  220. package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
  221. package/dist/templ-VSARRSO2.mjs +0 -17
  222. package/dist/templ-VSARRSO2.mjs.map +0 -1
  223. package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
  224. package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
  225. package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
  226. package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
  227. package/dist/twig-HNMWLN6H.mjs +0 -40
  228. package/dist/twig-HNMWLN6H.mjs.map +0 -1
  229. package/dist/vue-7OSX6ZY5.mjs +0 -10
  230. package/dist/vue-7OSX6ZY5.mjs.map +0 -1
  231. package/dist/vue-html-AQH2V2EU.mjs +0 -20
  232. package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
  233. package/dist/vue-vine-GCYT2IGV.mjs +0 -29
  234. package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
  235. package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
  236. package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
@@ -1,1179 +0,0 @@
1
- import { getDiagramElement } from './chunk-7EWC2ACY.mjs';
2
- import { setupViewPortForSVG } from './chunk-2BAFECUC.mjs';
3
- import { getRegisteredLayoutAlgorithm, render } from './chunk-BF5LDW2L.mjs';
4
- import './chunk-ENI667QL.mjs';
5
- import './chunk-KFMFHSJF.mjs';
6
- import './chunk-M3UH7XZX.mjs';
7
- import './chunk-6WA5F2SG.mjs';
8
- import './chunk-YIDZOZG3.mjs';
9
- import './chunk-BUEC2HNL.mjs';
10
- import { utils_default } from './chunk-GU7334FJ.mjs';
11
- import './chunk-ZGPFSRJJ.mjs';
12
- import { setAccTitle, getAccTitle, setAccDescription, getAccDescription, setDiagramTitle, getDiagramTitle, getConfig2, clear } from './chunk-HNKEYT4A.mjs';
13
- import './chunk-7O6EKIFY.mjs';
14
- import { __name, log, __export } from './chunk-WHXHCOFP.mjs';
15
- import './chunk-RAC6KEKF.mjs';
16
- import './chunk-SH6YXSHR.mjs';
17
-
18
- // ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.mjs
19
- var parser = function() {
20
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
21
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
22
- return o2;
23
- }, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [5, 6, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $V5 = [1, 22], $V6 = [2, 7], $V7 = [1, 26], $V8 = [1, 27], $V9 = [1, 28], $Va = [1, 29], $Vb = [1, 33], $Vc = [1, 34], $Vd = [1, 35], $Ve = [1, 36], $Vf = [1, 37], $Vg = [1, 38], $Vh = [1, 24], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 30], $Vl = [1, 39], $Vm = [1, 40], $Vn = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $Vo = [1, 61], $Vp = [89, 90], $Vq = [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], $Vr = [27, 29], $Vs = [1, 70], $Vt = [1, 71], $Vu = [1, 72], $Vv = [1, 73], $Vw = [1, 74], $Vx = [1, 75], $Vy = [1, 76], $Vz = [1, 83], $VA = [1, 80], $VB = [1, 84], $VC = [1, 85], $VD = [1, 86], $VE = [1, 87], $VF = [1, 88], $VG = [1, 89], $VH = [1, 90], $VI = [1, 91], $VJ = [1, 92], $VK = [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], $VL = [63, 64], $VM = [1, 101], $VN = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 76, 77, 89, 90], $VO = [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], $VP = [1, 110], $VQ = [1, 106], $VR = [1, 107], $VS = [1, 108], $VT = [1, 109], $VU = [1, 111], $VV = [1, 116], $VW = [1, 117], $VX = [1, 114], $VY = [1, 115];
24
- var parser2 = {
25
- trace: /* @__PURE__ */ __name(function trace() {
26
- }, "trace"),
27
- yy: {},
28
- 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 },
29
- 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" },
30
- 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]],
31
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
32
- var $0 = $$.length - 1;
33
- switch (yystate) {
34
- case 4:
35
- this.$ = $$[$0].trim();
36
- yy.setAccTitle(this.$);
37
- break;
38
- case 5:
39
- case 6:
40
- this.$ = $$[$0].trim();
41
- yy.setAccDescription(this.$);
42
- break;
43
- case 7:
44
- this.$ = [];
45
- break;
46
- case 17:
47
- yy.setDirection("TB");
48
- break;
49
- case 18:
50
- yy.setDirection("BT");
51
- break;
52
- case 19:
53
- yy.setDirection("RL");
54
- break;
55
- case 20:
56
- yy.setDirection("LR");
57
- break;
58
- case 21:
59
- yy.addRequirement($$[$0 - 3], $$[$0 - 4]);
60
- break;
61
- case 22:
62
- yy.addRequirement($$[$0 - 5], $$[$0 - 6]);
63
- yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
64
- break;
65
- case 23:
66
- yy.setNewReqId($$[$0 - 2]);
67
- break;
68
- case 24:
69
- yy.setNewReqText($$[$0 - 2]);
70
- break;
71
- case 25:
72
- yy.setNewReqRisk($$[$0 - 2]);
73
- break;
74
- case 26:
75
- yy.setNewReqVerifyMethod($$[$0 - 2]);
76
- break;
77
- case 29:
78
- this.$ = yy.RequirementType.REQUIREMENT;
79
- break;
80
- case 30:
81
- this.$ = yy.RequirementType.FUNCTIONAL_REQUIREMENT;
82
- break;
83
- case 31:
84
- this.$ = yy.RequirementType.INTERFACE_REQUIREMENT;
85
- break;
86
- case 32:
87
- this.$ = yy.RequirementType.PERFORMANCE_REQUIREMENT;
88
- break;
89
- case 33:
90
- this.$ = yy.RequirementType.PHYSICAL_REQUIREMENT;
91
- break;
92
- case 34:
93
- this.$ = yy.RequirementType.DESIGN_CONSTRAINT;
94
- break;
95
- case 35:
96
- this.$ = yy.RiskLevel.LOW_RISK;
97
- break;
98
- case 36:
99
- this.$ = yy.RiskLevel.MED_RISK;
100
- break;
101
- case 37:
102
- this.$ = yy.RiskLevel.HIGH_RISK;
103
- break;
104
- case 38:
105
- this.$ = yy.VerifyType.VERIFY_ANALYSIS;
106
- break;
107
- case 39:
108
- this.$ = yy.VerifyType.VERIFY_DEMONSTRATION;
109
- break;
110
- case 40:
111
- this.$ = yy.VerifyType.VERIFY_INSPECTION;
112
- break;
113
- case 41:
114
- this.$ = yy.VerifyType.VERIFY_TEST;
115
- break;
116
- case 42:
117
- yy.addElement($$[$0 - 3]);
118
- break;
119
- case 43:
120
- yy.addElement($$[$0 - 5]);
121
- yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
122
- break;
123
- case 44:
124
- yy.setNewElementType($$[$0 - 2]);
125
- break;
126
- case 45:
127
- yy.setNewElementDocRef($$[$0 - 2]);
128
- break;
129
- case 48:
130
- yy.addRelationship($$[$0 - 2], $$[$0], $$[$0 - 4]);
131
- break;
132
- case 49:
133
- yy.addRelationship($$[$0 - 2], $$[$0 - 4], $$[$0]);
134
- break;
135
- case 50:
136
- this.$ = yy.Relationships.CONTAINS;
137
- break;
138
- case 51:
139
- this.$ = yy.Relationships.COPIES;
140
- break;
141
- case 52:
142
- this.$ = yy.Relationships.DERIVES;
143
- break;
144
- case 53:
145
- this.$ = yy.Relationships.SATISFIES;
146
- break;
147
- case 54:
148
- this.$ = yy.Relationships.VERIFIES;
149
- break;
150
- case 55:
151
- this.$ = yy.Relationships.REFINES;
152
- break;
153
- case 56:
154
- this.$ = yy.Relationships.TRACES;
155
- break;
156
- case 57:
157
- this.$ = $$[$0 - 2];
158
- yy.defineClass($$[$0 - 1], $$[$0]);
159
- break;
160
- case 58:
161
- yy.setClass($$[$0 - 1], $$[$0]);
162
- break;
163
- case 59:
164
- yy.setClass([$$[$0 - 2]], $$[$0]);
165
- break;
166
- case 60:
167
- case 62:
168
- this.$ = [$$[$0]];
169
- break;
170
- case 61:
171
- case 63:
172
- this.$ = $$[$0 - 2].concat([$$[$0]]);
173
- break;
174
- case 64:
175
- this.$ = $$[$0 - 2];
176
- yy.setCssStyle($$[$0 - 1], $$[$0]);
177
- break;
178
- case 65:
179
- this.$ = [$$[$0]];
180
- break;
181
- case 66:
182
- $$[$0 - 2].push($$[$0]);
183
- this.$ = $$[$0 - 2];
184
- break;
185
- case 68:
186
- this.$ = $$[$0 - 1] + $$[$0];
187
- break;
188
- }
189
- }, "anonymous"),
190
- table: [{ 3: 1, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, o($V4, [2, 6]), { 3: 12, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [2, 2] }, { 4: 17, 5: $V5, 7: 13, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, o($V4, [2, 4]), o($V4, [2, 5]), { 1: [2, 1] }, { 8: [1, 41] }, { 4: 17, 5: $V5, 7: 42, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 43, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 44, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 45, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 46, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 47, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 48, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 49, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 50, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 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] }, o($Vn, [2, 17]), o($Vn, [2, 18]), o($Vn, [2, 19]), o($Vn, [2, 20]), { 30: 60, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 63, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 64, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, o($Vp, [2, 29]), o($Vp, [2, 30]), o($Vp, [2, 31]), o($Vp, [2, 32]), o($Vp, [2, 33]), o($Vp, [2, 34]), o($Vq, [2, 81]), o($Vq, [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] }, o($Vr, [2, 79]), o($Vr, [2, 80]), { 27: [1, 67], 29: [1, 68] }, o($Vr, [2, 85]), o($Vr, [2, 86]), { 62: 69, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 62: 77, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 30: 78, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 73: 79, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 60]), o($VK, [2, 62]), { 73: 93, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, { 30: 94, 33: 62, 75: $Vo, 76: $VA, 89: $Vl, 90: $Vm }, { 5: [1, 95] }, { 30: 96, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 5: [1, 97] }, { 30: 98, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 63: [1, 99] }, o($VL, [2, 50]), o($VL, [2, 51]), o($VL, [2, 52]), o($VL, [2, 53]), o($VL, [2, 54]), o($VL, [2, 55]), o($VL, [2, 56]), { 64: [1, 100] }, o($Vn, [2, 59], { 76: $VA }), o($Vn, [2, 64], { 76: $VM }), { 33: 103, 75: [1, 102], 89: $Vl, 90: $Vm }, o($VN, [2, 65], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), o($VO, [2, 67]), o($VO, [2, 69]), o($VO, [2, 70]), o($VO, [2, 71]), o($VO, [2, 72]), o($VO, [2, 73]), o($VO, [2, 74]), o($VO, [2, 75]), o($VO, [2, 76]), o($VO, [2, 77]), o($VO, [2, 78]), o($Vn, [2, 57], { 76: $VM }), o($Vn, [2, 58], { 76: $VA }), { 5: $VP, 28: 105, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 27: [1, 112], 76: $VA }, { 5: $VV, 40: $VW, 56: 113, 57: $VX, 59: $VY }, { 27: [1, 118], 76: $VA }, { 33: 119, 89: $Vl, 90: $Vm }, { 33: 120, 89: $Vl, 90: $Vm }, { 75: $Vz, 78: 121, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 61]), o($VK, [2, 63]), o($VO, [2, 68]), o($Vn, [2, 21]), { 32: [1, 122] }, { 32: [1, 123] }, { 32: [1, 124] }, { 32: [1, 125] }, { 5: $VP, 28: 126, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, o($Vn, [2, 28]), { 5: [1, 127] }, o($Vn, [2, 42]), { 32: [1, 128] }, { 32: [1, 129] }, { 5: $VV, 40: $VW, 56: 130, 57: $VX, 59: $VY }, o($Vn, [2, 47]), { 5: [1, 131] }, o($Vn, [2, 48]), o($Vn, [2, 49]), o($VN, [2, 66], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), { 33: 132, 89: $Vl, 90: $Vm }, { 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] }, o($Vn, [2, 27]), { 5: $VP, 28: 145, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 58: 146, 89: [1, 147], 90: [1, 148] }, { 60: 149, 89: [1, 150], 90: [1, 151] }, o($Vn, [2, 46]), { 5: $VV, 40: $VW, 56: 152, 57: $VX, 59: $VY }, { 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] }, o($Vn, [2, 22]), { 5: [1, 157] }, { 5: [2, 87] }, { 5: [2, 88] }, { 5: [1, 158] }, { 5: [2, 89] }, { 5: [2, 90] }, o($Vn, [2, 43]), { 5: $VP, 28: 159, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 160, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 161, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 162, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VV, 40: $VW, 56: 163, 57: $VX, 59: $VY }, { 5: $VV, 40: $VW, 56: 164, 57: $VX, 59: $VY }, o($Vn, [2, 23]), o($Vn, [2, 24]), o($Vn, [2, 25]), o($Vn, [2, 26]), o($Vn, [2, 44]), o($Vn, [2, 45])],
191
- 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] },
192
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
193
- if (hash.recoverable) {
194
- this.trace(str);
195
- } else {
196
- var error = new Error(str);
197
- error.hash = hash;
198
- throw error;
199
- }
200
- }, "parseError"),
201
- parse: /* @__PURE__ */ __name(function parse(input) {
202
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
203
- var args = lstack.slice.call(arguments, 1);
204
- var lexer2 = Object.create(this.lexer);
205
- var sharedState = { yy: {} };
206
- for (var k in this.yy) {
207
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
208
- sharedState.yy[k] = this.yy[k];
209
- }
210
- }
211
- lexer2.setInput(input, sharedState.yy);
212
- sharedState.yy.lexer = lexer2;
213
- sharedState.yy.parser = this;
214
- if (typeof lexer2.yylloc == "undefined") {
215
- lexer2.yylloc = {};
216
- }
217
- var yyloc = lexer2.yylloc;
218
- lstack.push(yyloc);
219
- var ranges = lexer2.options && lexer2.options.ranges;
220
- if (typeof sharedState.yy.parseError === "function") {
221
- this.parseError = sharedState.yy.parseError;
222
- } else {
223
- this.parseError = Object.getPrototypeOf(this).parseError;
224
- }
225
- function popStack(n) {
226
- stack.length = stack.length - 2 * n;
227
- vstack.length = vstack.length - n;
228
- lstack.length = lstack.length - n;
229
- }
230
- __name(popStack, "popStack");
231
- function lex() {
232
- var token;
233
- token = tstack.pop() || lexer2.lex() || EOF;
234
- if (typeof token !== "number") {
235
- if (token instanceof Array) {
236
- tstack = token;
237
- token = tstack.pop();
238
- }
239
- token = self.symbols_[token] || token;
240
- }
241
- return token;
242
- }
243
- __name(lex, "lex");
244
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
245
- while (true) {
246
- state = stack[stack.length - 1];
247
- if (this.defaultActions[state]) {
248
- action = this.defaultActions[state];
249
- } else {
250
- if (symbol === null || typeof symbol == "undefined") {
251
- symbol = lex();
252
- }
253
- action = table[state] && table[state][symbol];
254
- }
255
- if (typeof action === "undefined" || !action.length || !action[0]) {
256
- var errStr = "";
257
- expected = [];
258
- for (p in table[state]) {
259
- if (this.terminals_[p] && p > TERROR) {
260
- expected.push("'" + this.terminals_[p] + "'");
261
- }
262
- }
263
- if (lexer2.showPosition) {
264
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
265
- } else {
266
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
267
- }
268
- this.parseError(errStr, {
269
- text: lexer2.match,
270
- token: this.terminals_[symbol] || symbol,
271
- line: lexer2.yylineno,
272
- loc: yyloc,
273
- expected
274
- });
275
- }
276
- if (action[0] instanceof Array && action.length > 1) {
277
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
278
- }
279
- switch (action[0]) {
280
- case 1:
281
- stack.push(symbol);
282
- vstack.push(lexer2.yytext);
283
- lstack.push(lexer2.yylloc);
284
- stack.push(action[1]);
285
- symbol = null;
286
- {
287
- yyleng = lexer2.yyleng;
288
- yytext = lexer2.yytext;
289
- yylineno = lexer2.yylineno;
290
- yyloc = lexer2.yylloc;
291
- }
292
- break;
293
- case 2:
294
- len = this.productions_[action[1]][1];
295
- yyval.$ = vstack[vstack.length - len];
296
- yyval._$ = {
297
- first_line: lstack[lstack.length - (len || 1)].first_line,
298
- last_line: lstack[lstack.length - 1].last_line,
299
- first_column: lstack[lstack.length - (len || 1)].first_column,
300
- last_column: lstack[lstack.length - 1].last_column
301
- };
302
- if (ranges) {
303
- yyval._$.range = [
304
- lstack[lstack.length - (len || 1)].range[0],
305
- lstack[lstack.length - 1].range[1]
306
- ];
307
- }
308
- r = this.performAction.apply(yyval, [
309
- yytext,
310
- yyleng,
311
- yylineno,
312
- sharedState.yy,
313
- action[1],
314
- vstack,
315
- lstack
316
- ].concat(args));
317
- if (typeof r !== "undefined") {
318
- return r;
319
- }
320
- if (len) {
321
- stack = stack.slice(0, -1 * len * 2);
322
- vstack = vstack.slice(0, -1 * len);
323
- lstack = lstack.slice(0, -1 * len);
324
- }
325
- stack.push(this.productions_[action[1]][0]);
326
- vstack.push(yyval.$);
327
- lstack.push(yyval._$);
328
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
329
- stack.push(newState);
330
- break;
331
- case 3:
332
- return true;
333
- }
334
- }
335
- return true;
336
- }, "parse")
337
- };
338
- var lexer = /* @__PURE__ */ function() {
339
- var lexer2 = {
340
- EOF: 1,
341
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
342
- if (this.yy.parser) {
343
- this.yy.parser.parseError(str, hash);
344
- } else {
345
- throw new Error(str);
346
- }
347
- }, "parseError"),
348
- // resets the lexer, sets new input
349
- setInput: /* @__PURE__ */ __name(function(input, yy) {
350
- this.yy = yy || this.yy || {};
351
- this._input = input;
352
- this._more = this._backtrack = this.done = false;
353
- this.yylineno = this.yyleng = 0;
354
- this.yytext = this.matched = this.match = "";
355
- this.conditionStack = ["INITIAL"];
356
- this.yylloc = {
357
- first_line: 1,
358
- first_column: 0,
359
- last_line: 1,
360
- last_column: 0
361
- };
362
- if (this.options.ranges) {
363
- this.yylloc.range = [0, 0];
364
- }
365
- this.offset = 0;
366
- return this;
367
- }, "setInput"),
368
- // consumes and returns one char from the input
369
- input: /* @__PURE__ */ __name(function() {
370
- var ch = this._input[0];
371
- this.yytext += ch;
372
- this.yyleng++;
373
- this.offset++;
374
- this.match += ch;
375
- this.matched += ch;
376
- var lines = ch.match(/(?:\r\n?|\n).*/g);
377
- if (lines) {
378
- this.yylineno++;
379
- this.yylloc.last_line++;
380
- } else {
381
- this.yylloc.last_column++;
382
- }
383
- if (this.options.ranges) {
384
- this.yylloc.range[1]++;
385
- }
386
- this._input = this._input.slice(1);
387
- return ch;
388
- }, "input"),
389
- // unshifts one char (or a string) into the input
390
- unput: /* @__PURE__ */ __name(function(ch) {
391
- var len = ch.length;
392
- var lines = ch.split(/(?:\r\n?|\n)/g);
393
- this._input = ch + this._input;
394
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
395
- this.offset -= len;
396
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
397
- this.match = this.match.substr(0, this.match.length - 1);
398
- this.matched = this.matched.substr(0, this.matched.length - 1);
399
- if (lines.length - 1) {
400
- this.yylineno -= lines.length - 1;
401
- }
402
- var r = this.yylloc.range;
403
- this.yylloc = {
404
- first_line: this.yylloc.first_line,
405
- last_line: this.yylineno + 1,
406
- first_column: this.yylloc.first_column,
407
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
408
- };
409
- if (this.options.ranges) {
410
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
411
- }
412
- this.yyleng = this.yytext.length;
413
- return this;
414
- }, "unput"),
415
- // When called from action, caches matched text and appends it on next action
416
- more: /* @__PURE__ */ __name(function() {
417
- this._more = true;
418
- return this;
419
- }, "more"),
420
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
421
- reject: /* @__PURE__ */ __name(function() {
422
- if (this.options.backtrack_lexer) {
423
- this._backtrack = true;
424
- } else {
425
- 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).\n" + this.showPosition(), {
426
- text: "",
427
- token: null,
428
- line: this.yylineno
429
- });
430
- }
431
- return this;
432
- }, "reject"),
433
- // retain first n characters of the match
434
- less: /* @__PURE__ */ __name(function(n) {
435
- this.unput(this.match.slice(n));
436
- }, "less"),
437
- // displays already matched input, i.e. for error messages
438
- pastInput: /* @__PURE__ */ __name(function() {
439
- var past = this.matched.substr(0, this.matched.length - this.match.length);
440
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
441
- }, "pastInput"),
442
- // displays upcoming input, i.e. for error messages
443
- upcomingInput: /* @__PURE__ */ __name(function() {
444
- var next = this.match;
445
- if (next.length < 20) {
446
- next += this._input.substr(0, 20 - next.length);
447
- }
448
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
449
- }, "upcomingInput"),
450
- // displays the character position where the lexing error occurred, i.e. for error messages
451
- showPosition: /* @__PURE__ */ __name(function() {
452
- var pre = this.pastInput();
453
- var c = new Array(pre.length + 1).join("-");
454
- return pre + this.upcomingInput() + "\n" + c + "^";
455
- }, "showPosition"),
456
- // test the lexed token: return FALSE when not a match, otherwise return token
457
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
458
- var token, lines, backup;
459
- if (this.options.backtrack_lexer) {
460
- backup = {
461
- yylineno: this.yylineno,
462
- yylloc: {
463
- first_line: this.yylloc.first_line,
464
- last_line: this.last_line,
465
- first_column: this.yylloc.first_column,
466
- last_column: this.yylloc.last_column
467
- },
468
- yytext: this.yytext,
469
- match: this.match,
470
- matches: this.matches,
471
- matched: this.matched,
472
- yyleng: this.yyleng,
473
- offset: this.offset,
474
- _more: this._more,
475
- _input: this._input,
476
- yy: this.yy,
477
- conditionStack: this.conditionStack.slice(0),
478
- done: this.done
479
- };
480
- if (this.options.ranges) {
481
- backup.yylloc.range = this.yylloc.range.slice(0);
482
- }
483
- }
484
- lines = match[0].match(/(?:\r\n?|\n).*/g);
485
- if (lines) {
486
- this.yylineno += lines.length;
487
- }
488
- this.yylloc = {
489
- first_line: this.yylloc.last_line,
490
- last_line: this.yylineno + 1,
491
- first_column: this.yylloc.last_column,
492
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
493
- };
494
- this.yytext += match[0];
495
- this.match += match[0];
496
- this.matches = match;
497
- this.yyleng = this.yytext.length;
498
- if (this.options.ranges) {
499
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
500
- }
501
- this._more = false;
502
- this._backtrack = false;
503
- this._input = this._input.slice(match[0].length);
504
- this.matched += match[0];
505
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
506
- if (this.done && this._input) {
507
- this.done = false;
508
- }
509
- if (token) {
510
- return token;
511
- } else if (this._backtrack) {
512
- for (var k in backup) {
513
- this[k] = backup[k];
514
- }
515
- return false;
516
- }
517
- return false;
518
- }, "test_match"),
519
- // return next match in input
520
- next: /* @__PURE__ */ __name(function() {
521
- if (this.done) {
522
- return this.EOF;
523
- }
524
- if (!this._input) {
525
- this.done = true;
526
- }
527
- var token, match, tempMatch, index;
528
- if (!this._more) {
529
- this.yytext = "";
530
- this.match = "";
531
- }
532
- var rules = this._currentRules();
533
- for (var i = 0; i < rules.length; i++) {
534
- tempMatch = this._input.match(this.rules[rules[i]]);
535
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
536
- match = tempMatch;
537
- index = i;
538
- if (this.options.backtrack_lexer) {
539
- token = this.test_match(tempMatch, rules[i]);
540
- if (token !== false) {
541
- return token;
542
- } else if (this._backtrack) {
543
- match = false;
544
- continue;
545
- } else {
546
- return false;
547
- }
548
- } else if (!this.options.flex) {
549
- break;
550
- }
551
- }
552
- }
553
- if (match) {
554
- token = this.test_match(match, rules[index]);
555
- if (token !== false) {
556
- return token;
557
- }
558
- return false;
559
- }
560
- if (this._input === "") {
561
- return this.EOF;
562
- } else {
563
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
564
- text: "",
565
- token: null,
566
- line: this.yylineno
567
- });
568
- }
569
- }, "next"),
570
- // return next match that has a token
571
- lex: /* @__PURE__ */ __name(function lex() {
572
- var r = this.next();
573
- if (r) {
574
- return r;
575
- } else {
576
- return this.lex();
577
- }
578
- }, "lex"),
579
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
580
- begin: /* @__PURE__ */ __name(function begin(condition) {
581
- this.conditionStack.push(condition);
582
- }, "begin"),
583
- // pop the previously active lexer condition state off the condition stack
584
- popState: /* @__PURE__ */ __name(function popState() {
585
- var n = this.conditionStack.length - 1;
586
- if (n > 0) {
587
- return this.conditionStack.pop();
588
- } else {
589
- return this.conditionStack[0];
590
- }
591
- }, "popState"),
592
- // produce the lexer rule set which is active for the currently active lexer condition state
593
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
594
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
595
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
596
- } else {
597
- return this.conditions["INITIAL"].rules;
598
- }
599
- }, "_currentRules"),
600
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
601
- topState: /* @__PURE__ */ __name(function topState(n) {
602
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
603
- if (n >= 0) {
604
- return this.conditionStack[n];
605
- } else {
606
- return "INITIAL";
607
- }
608
- }, "topState"),
609
- // alias for begin(condition)
610
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
611
- this.begin(condition);
612
- }, "pushState"),
613
- // return the number of states currently on the stack
614
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
615
- return this.conditionStack.length;
616
- }, "stateStackSize"),
617
- options: { "case-insensitive": true },
618
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
619
- switch ($avoiding_name_collisions) {
620
- case 0:
621
- return "title";
622
- case 1:
623
- this.begin("acc_title");
624
- return 9;
625
- case 2:
626
- this.popState();
627
- return "acc_title_value";
628
- case 3:
629
- this.begin("acc_descr");
630
- return 11;
631
- case 4:
632
- this.popState();
633
- return "acc_descr_value";
634
- case 5:
635
- this.begin("acc_descr_multiline");
636
- break;
637
- case 6:
638
- this.popState();
639
- break;
640
- case 7:
641
- return "acc_descr_multiline_value";
642
- case 8:
643
- return 21;
644
- case 9:
645
- return 22;
646
- case 10:
647
- return 23;
648
- case 11:
649
- return 24;
650
- case 12:
651
- return 5;
652
- case 13:
653
- break;
654
- case 14:
655
- break;
656
- case 15:
657
- break;
658
- case 16:
659
- return 8;
660
- case 17:
661
- return 6;
662
- case 18:
663
- return 27;
664
- case 19:
665
- return 40;
666
- case 20:
667
- return 29;
668
- case 21:
669
- return 32;
670
- case 22:
671
- return 31;
672
- case 23:
673
- return 34;
674
- case 24:
675
- return 36;
676
- case 25:
677
- return 38;
678
- case 26:
679
- return 41;
680
- case 27:
681
- return 42;
682
- case 28:
683
- return 43;
684
- case 29:
685
- return 44;
686
- case 30:
687
- return 45;
688
- case 31:
689
- return 46;
690
- case 32:
691
- return 47;
692
- case 33:
693
- return 48;
694
- case 34:
695
- return 49;
696
- case 35:
697
- return 50;
698
- case 36:
699
- return 51;
700
- case 37:
701
- return 52;
702
- case 38:
703
- return 53;
704
- case 39:
705
- return 54;
706
- case 40:
707
- return 65;
708
- case 41:
709
- return 66;
710
- case 42:
711
- return 67;
712
- case 43:
713
- return 68;
714
- case 44:
715
- return 69;
716
- case 45:
717
- return 70;
718
- case 46:
719
- return 71;
720
- case 47:
721
- return 57;
722
- case 48:
723
- return 59;
724
- case 49:
725
- this.begin("style");
726
- return 77;
727
- case 50:
728
- return 75;
729
- case 51:
730
- return 81;
731
- case 52:
732
- return 88;
733
- case 53:
734
- return "PERCENT";
735
- case 54:
736
- return 86;
737
- case 55:
738
- return 84;
739
- case 56:
740
- break;
741
- case 57:
742
- this.begin("string");
743
- break;
744
- case 58:
745
- this.popState();
746
- break;
747
- case 59:
748
- this.begin("style");
749
- return 72;
750
- case 60:
751
- this.begin("style");
752
- return 74;
753
- case 61:
754
- return 61;
755
- case 62:
756
- return 64;
757
- case 63:
758
- return 63;
759
- case 64:
760
- this.begin("string");
761
- break;
762
- case 65:
763
- this.popState();
764
- break;
765
- case 66:
766
- return "qString";
767
- case 67:
768
- yy_.yytext = yy_.yytext.trim();
769
- return 89;
770
- case 68:
771
- return 75;
772
- case 69:
773
- return 80;
774
- case 70:
775
- return 76;
776
- }
777
- }, "anonymous"),
778
- 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],
779
- conditions: { "acc_descr_multiline": { "rules": [6, 7, 68, 69, 70], "inclusive": false }, "acc_descr": { "rules": [4, 68, 69, 70], "inclusive": false }, "acc_title": { "rules": [2, 68, 69, 70], "inclusive": false }, "style": { "rules": [50, 51, 52, 53, 54, 55, 56, 57, 58, 68, 69, 70], "inclusive": false }, "unqString": { "rules": [68, 69, 70], "inclusive": false }, "token": { "rules": [68, 69, 70], "inclusive": false }, "string": { "rules": [65, 66, 68, 69, 70], "inclusive": false }, "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": true } }
780
- };
781
- return lexer2;
782
- }();
783
- parser2.lexer = lexer;
784
- function Parser() {
785
- this.yy = {};
786
- }
787
- __name(Parser, "Parser");
788
- Parser.prototype = parser2;
789
- parser2.Parser = Parser;
790
- return new Parser();
791
- }();
792
- parser.parser = parser;
793
- var requirementDiagram_default = parser;
794
- var RequirementDB = class {
795
- constructor() {
796
- this.relations = [];
797
- this.latestRequirement = this.getInitialRequirement();
798
- this.requirements = /* @__PURE__ */ new Map();
799
- this.latestElement = this.getInitialElement();
800
- this.elements = /* @__PURE__ */ new Map();
801
- this.classes = /* @__PURE__ */ new Map();
802
- this.direction = "TB";
803
- this.RequirementType = {
804
- REQUIREMENT: "Requirement",
805
- FUNCTIONAL_REQUIREMENT: "Functional Requirement",
806
- INTERFACE_REQUIREMENT: "Interface Requirement",
807
- PERFORMANCE_REQUIREMENT: "Performance Requirement",
808
- PHYSICAL_REQUIREMENT: "Physical Requirement",
809
- DESIGN_CONSTRAINT: "Design Constraint"
810
- };
811
- this.RiskLevel = {
812
- LOW_RISK: "Low",
813
- MED_RISK: "Medium",
814
- HIGH_RISK: "High"
815
- };
816
- this.VerifyType = {
817
- VERIFY_ANALYSIS: "Analysis",
818
- VERIFY_DEMONSTRATION: "Demonstration",
819
- VERIFY_INSPECTION: "Inspection",
820
- VERIFY_TEST: "Test"
821
- };
822
- this.Relationships = {
823
- CONTAINS: "contains",
824
- COPIES: "copies",
825
- DERIVES: "derives",
826
- SATISFIES: "satisfies",
827
- VERIFIES: "verifies",
828
- REFINES: "refines",
829
- TRACES: "traces"
830
- };
831
- this.setAccTitle = setAccTitle;
832
- this.getAccTitle = getAccTitle;
833
- this.setAccDescription = setAccDescription;
834
- this.getAccDescription = getAccDescription;
835
- this.setDiagramTitle = setDiagramTitle;
836
- this.getDiagramTitle = getDiagramTitle;
837
- this.getConfig = /* @__PURE__ */ __name(() => getConfig2().requirement, "getConfig");
838
- this.clear();
839
- this.setDirection = this.setDirection.bind(this);
840
- this.addRequirement = this.addRequirement.bind(this);
841
- this.setNewReqId = this.setNewReqId.bind(this);
842
- this.setNewReqRisk = this.setNewReqRisk.bind(this);
843
- this.setNewReqText = this.setNewReqText.bind(this);
844
- this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this);
845
- this.addElement = this.addElement.bind(this);
846
- this.setNewElementType = this.setNewElementType.bind(this);
847
- this.setNewElementDocRef = this.setNewElementDocRef.bind(this);
848
- this.addRelationship = this.addRelationship.bind(this);
849
- this.setCssStyle = this.setCssStyle.bind(this);
850
- this.setClass = this.setClass.bind(this);
851
- this.defineClass = this.defineClass.bind(this);
852
- this.setAccTitle = this.setAccTitle.bind(this);
853
- this.setAccDescription = this.setAccDescription.bind(this);
854
- }
855
- static {
856
- __name(this, "RequirementDB");
857
- }
858
- getDirection() {
859
- return this.direction;
860
- }
861
- setDirection(dir) {
862
- this.direction = dir;
863
- }
864
- resetLatestRequirement() {
865
- this.latestRequirement = this.getInitialRequirement();
866
- }
867
- resetLatestElement() {
868
- this.latestElement = this.getInitialElement();
869
- }
870
- getInitialRequirement() {
871
- return {
872
- requirementId: "",
873
- text: "",
874
- risk: "",
875
- verifyMethod: "",
876
- name: "",
877
- type: "",
878
- cssStyles: [],
879
- classes: ["default"]
880
- };
881
- }
882
- getInitialElement() {
883
- return {
884
- name: "",
885
- type: "",
886
- docRef: "",
887
- cssStyles: [],
888
- classes: ["default"]
889
- };
890
- }
891
- addRequirement(name, type) {
892
- if (!this.requirements.has(name)) {
893
- this.requirements.set(name, {
894
- name,
895
- type,
896
- requirementId: this.latestRequirement.requirementId,
897
- text: this.latestRequirement.text,
898
- risk: this.latestRequirement.risk,
899
- verifyMethod: this.latestRequirement.verifyMethod,
900
- cssStyles: [],
901
- classes: ["default"]
902
- });
903
- }
904
- this.resetLatestRequirement();
905
- return this.requirements.get(name);
906
- }
907
- getRequirements() {
908
- return this.requirements;
909
- }
910
- setNewReqId(id) {
911
- if (this.latestRequirement !== void 0) {
912
- this.latestRequirement.requirementId = id;
913
- }
914
- }
915
- setNewReqText(text) {
916
- if (this.latestRequirement !== void 0) {
917
- this.latestRequirement.text = text;
918
- }
919
- }
920
- setNewReqRisk(risk) {
921
- if (this.latestRequirement !== void 0) {
922
- this.latestRequirement.risk = risk;
923
- }
924
- }
925
- setNewReqVerifyMethod(verifyMethod) {
926
- if (this.latestRequirement !== void 0) {
927
- this.latestRequirement.verifyMethod = verifyMethod;
928
- }
929
- }
930
- addElement(name) {
931
- if (!this.elements.has(name)) {
932
- this.elements.set(name, {
933
- name,
934
- type: this.latestElement.type,
935
- docRef: this.latestElement.docRef,
936
- cssStyles: [],
937
- classes: ["default"]
938
- });
939
- log.info("Added new element: ", name);
940
- }
941
- this.resetLatestElement();
942
- return this.elements.get(name);
943
- }
944
- getElements() {
945
- return this.elements;
946
- }
947
- setNewElementType(type) {
948
- if (this.latestElement !== void 0) {
949
- this.latestElement.type = type;
950
- }
951
- }
952
- setNewElementDocRef(docRef) {
953
- if (this.latestElement !== void 0) {
954
- this.latestElement.docRef = docRef;
955
- }
956
- }
957
- addRelationship(type, src, dst) {
958
- this.relations.push({
959
- type,
960
- src,
961
- dst
962
- });
963
- }
964
- getRelationships() {
965
- return this.relations;
966
- }
967
- clear() {
968
- this.relations = [];
969
- this.resetLatestRequirement();
970
- this.requirements = /* @__PURE__ */ new Map();
971
- this.resetLatestElement();
972
- this.elements = /* @__PURE__ */ new Map();
973
- this.classes = /* @__PURE__ */ new Map();
974
- clear();
975
- }
976
- setCssStyle(ids, styles) {
977
- for (const id of ids) {
978
- const node = this.requirements.get(id) ?? this.elements.get(id);
979
- if (!styles || !node) {
980
- return;
981
- }
982
- for (const s of styles) {
983
- if (s.includes(",")) {
984
- node.cssStyles.push(...s.split(","));
985
- } else {
986
- node.cssStyles.push(s);
987
- }
988
- }
989
- }
990
- }
991
- setClass(ids, classNames) {
992
- for (const id of ids) {
993
- const node = this.requirements.get(id) ?? this.elements.get(id);
994
- if (node) {
995
- for (const _class of classNames) {
996
- node.classes.push(_class);
997
- const styles = this.classes.get(_class)?.styles;
998
- if (styles) {
999
- node.cssStyles.push(...styles);
1000
- }
1001
- }
1002
- }
1003
- }
1004
- }
1005
- defineClass(ids, style) {
1006
- for (const id of ids) {
1007
- let styleClass = this.classes.get(id);
1008
- if (styleClass === void 0) {
1009
- styleClass = { id, styles: [], textStyles: [] };
1010
- this.classes.set(id, styleClass);
1011
- }
1012
- if (style) {
1013
- style.forEach(function(s) {
1014
- if (/color/.exec(s)) {
1015
- const newStyle = s.replace("fill", "bgFill");
1016
- styleClass.textStyles.push(newStyle);
1017
- }
1018
- styleClass.styles.push(s);
1019
- });
1020
- }
1021
- this.requirements.forEach((value) => {
1022
- if (value.classes.includes(id)) {
1023
- value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1024
- }
1025
- });
1026
- this.elements.forEach((value) => {
1027
- if (value.classes.includes(id)) {
1028
- value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1029
- }
1030
- });
1031
- }
1032
- }
1033
- getClasses() {
1034
- return this.classes;
1035
- }
1036
- getData() {
1037
- const config = getConfig2();
1038
- const nodes = [];
1039
- const edges = [];
1040
- for (const requirement of this.requirements.values()) {
1041
- const node = requirement;
1042
- node.id = requirement.name;
1043
- node.cssStyles = requirement.cssStyles;
1044
- node.cssClasses = requirement.classes.join(" ");
1045
- node.shape = "requirementBox";
1046
- node.look = config.look;
1047
- nodes.push(node);
1048
- }
1049
- for (const element of this.elements.values()) {
1050
- const node = element;
1051
- node.shape = "requirementBox";
1052
- node.look = config.look;
1053
- node.id = element.name;
1054
- node.cssStyles = element.cssStyles;
1055
- node.cssClasses = element.classes.join(" ");
1056
- nodes.push(node);
1057
- }
1058
- for (const relation of this.relations) {
1059
- let counter = 0;
1060
- const isContains = relation.type === this.Relationships.CONTAINS;
1061
- const edge = {
1062
- id: `${relation.src}-${relation.dst}-${counter}`,
1063
- start: this.requirements.get(relation.src)?.name ?? this.elements.get(relation.src)?.name,
1064
- end: this.requirements.get(relation.dst)?.name ?? this.elements.get(relation.dst)?.name,
1065
- label: `&lt;&lt;${relation.type}&gt;&gt;`,
1066
- classes: "relationshipLine",
1067
- style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
1068
- labelpos: "c",
1069
- thickness: "normal",
1070
- type: "normal",
1071
- pattern: isContains ? "normal" : "dashed",
1072
- arrowTypeStart: isContains ? "requirement_contains" : "",
1073
- arrowTypeEnd: isContains ? "" : "requirement_arrow",
1074
- look: config.look
1075
- };
1076
- edges.push(edge);
1077
- counter++;
1078
- }
1079
- return { nodes, edges, other: {}, config, direction: this.getDirection() };
1080
- }
1081
- };
1082
- var getStyles = /* @__PURE__ */ __name((options) => `
1083
-
1084
- marker {
1085
- fill: ${options.relationColor};
1086
- stroke: ${options.relationColor};
1087
- }
1088
-
1089
- marker.cross {
1090
- stroke: ${options.lineColor};
1091
- }
1092
-
1093
- svg {
1094
- font-family: ${options.fontFamily};
1095
- font-size: ${options.fontSize};
1096
- }
1097
-
1098
- .reqBox {
1099
- fill: ${options.requirementBackground};
1100
- fill-opacity: 1.0;
1101
- stroke: ${options.requirementBorderColor};
1102
- stroke-width: ${options.requirementBorderSize};
1103
- }
1104
-
1105
- .reqTitle, .reqLabel{
1106
- fill: ${options.requirementTextColor};
1107
- }
1108
- .reqLabelBox {
1109
- fill: ${options.relationLabelBackground};
1110
- fill-opacity: 1.0;
1111
- }
1112
-
1113
- .req-title-line {
1114
- stroke: ${options.requirementBorderColor};
1115
- stroke-width: ${options.requirementBorderSize};
1116
- }
1117
- .relationshipLine {
1118
- stroke: ${options.relationColor};
1119
- stroke-width: 1;
1120
- }
1121
- .relationshipLabel {
1122
- fill: ${options.relationLabelColor};
1123
- }
1124
- .divider {
1125
- stroke: ${options.nodeBorder};
1126
- stroke-width: 1;
1127
- }
1128
- .label {
1129
- font-family: ${options.fontFamily};
1130
- color: ${options.nodeTextColor || options.textColor};
1131
- }
1132
- .label text,span {
1133
- fill: ${options.nodeTextColor || options.textColor};
1134
- color: ${options.nodeTextColor || options.textColor};
1135
- }
1136
- .labelBkg {
1137
- background-color: ${options.edgeLabelBackground};
1138
- }
1139
-
1140
- `, "getStyles");
1141
- var styles_default = getStyles;
1142
- var requirementRenderer_exports = {};
1143
- __export(requirementRenderer_exports, {
1144
- draw: () => draw
1145
- });
1146
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
1147
- log.info("REF0:");
1148
- log.info("Drawing requirement diagram (unified)", id);
1149
- const { securityLevel, state: conf, layout } = getConfig2();
1150
- const data4Layout = diag.db.getData();
1151
- const svg = getDiagramElement(id, securityLevel);
1152
- data4Layout.type = diag.type;
1153
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
1154
- data4Layout.nodeSpacing = conf?.nodeSpacing ?? 50;
1155
- data4Layout.rankSpacing = conf?.rankSpacing ?? 50;
1156
- data4Layout.markers = ["requirement_contains", "requirement_arrow"];
1157
- data4Layout.diagramId = id;
1158
- await render(data4Layout, svg);
1159
- const padding = 8;
1160
- utils_default.insertTitle(
1161
- svg,
1162
- "requirementDiagramTitleText",
1163
- conf?.titleTopMargin ?? 25,
1164
- diag.db.getDiagramTitle()
1165
- );
1166
- setupViewPortForSVG(svg, padding, "requirementDiagram", conf?.useMaxWidth ?? true);
1167
- }, "draw");
1168
- var diagram = {
1169
- parser: requirementDiagram_default,
1170
- get db() {
1171
- return new RequirementDB();
1172
- },
1173
- renderer: requirementRenderer_exports,
1174
- styles: styles_default
1175
- };
1176
-
1177
- export { diagram };
1178
- //# sourceMappingURL=requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map
1179
- //# sourceMappingURL=requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map