@vunk/plus 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/components/bubble-list/index.css +0 -22
  2. package/components/bubble-list/index.mjs +413 -9
  3. package/components/bubble-list/src/core/index.vue.d.ts +57 -0
  4. package/components/bubble-list/src/index.vue.d.ts +57 -0
  5. package/components/chat-independent/src/index.vue.d.ts +57 -0
  6. package/components/drawer/index.mjs +1 -1
  7. package/components/index3.mjs +20 -79450
  8. package/components/scrollbar/index.mjs +89 -15
  9. package/components/scrollbar/src/bar.d.ts +4 -0
  10. package/components/scrollbar/src/bar.vue.d.ts +26 -0
  11. package/components/scrollbar/src/index.vue.d.ts +57 -0
  12. package/components/scrollbar/src/thumb.d.ts +4 -0
  13. package/components/scrollbar/src/thumb.vue.d.ts +13 -0
  14. package/components/scrollbar/src/types.d.ts +5 -1
  15. package/components/tables-v1/src/ctx.d.ts +2 -2
  16. package/components/tables-v1/src/index.vue.d.ts +6 -6
  17. package/components/tables-v1-checkbox/src/ctx.d.ts +2 -2
  18. package/components/tables-v1-checkbox/src/index.vue.d.ts +12 -12
  19. package/components/text/src/ctx.d.ts +1 -1
  20. package/components/text/src/index.vue.d.ts +2 -2
  21. package/components/xgplayer/index.mjs +2 -16357
  22. package/index.css +0 -22
  23. package/package.json +1 -1
  24. package/components/_baseUniq-BXtq6_NW.mjs +0 -239
  25. package/components/abap-B7h4dtBh.mjs +0 -6
  26. package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
  27. package/components/ada-BZS802Se.mjs +0 -6
  28. package/components/andromeeda-CrngpmZk.mjs +0 -3
  29. package/components/apache-D4roVlsU.mjs +0 -6
  30. package/components/apex-D6mfw0H5.mjs +0 -6
  31. package/components/apl-DDK-VObo.mjs +0 -18
  32. package/components/applescript-C43Knf0G.mjs +0 -6
  33. package/components/ara-DRBH84ND.mjs +0 -6
  34. package/components/arc-Js_tyW10.mjs +0 -131
  35. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
  36. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
  37. package/components/asm-3tg4MVib.mjs +0 -6
  38. package/components/astro-v4FYbRud.mjs +0 -19
  39. package/components/aurora-x-wJ4-eM2h.mjs +0 -3
  40. package/components/awk-ChreaG-G.mjs +0 -6
  41. package/components/ayu-dark-BEKp3oqs.mjs +0 -3
  42. package/components/ballerina-B0yt0TYU.mjs +0 -6
  43. package/components/batch-Ce_EX3Sx.mjs +0 -14
  44. package/components/beancount-BRIsdQEB.mjs +0 -6
  45. package/components/berry-Brv4WWdL.mjs +0 -14
  46. package/components/bibtex-BLeFwAes.mjs +0 -6
  47. package/components/bicep-BVrgfErX.mjs +0 -6
  48. package/components/blade-By3Sw_Ex.mjs +0 -22
  49. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
  50. package/components/c-C4VtT7JA.mjs +0 -6
  51. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
  52. package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
  53. package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
  54. package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
  55. package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
  56. package/components/cdc-30ktANo3.mjs +0 -14
  57. package/components/channel-BBZy6zOT.mjs +0 -7
  58. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
  59. package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
  60. package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
  61. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
  62. package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
  63. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
  64. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
  65. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
  66. package/components/clarity-6uBl6Vpb.mjs +0 -6
  67. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
  68. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
  69. package/components/clojure-COBRmwo8.mjs +0 -14
  70. package/components/clone-CEJtuQzg.mjs +0 -8
  71. package/components/cmake-CDfQILeU.mjs +0 -6
  72. package/components/cobol-BOOIiISO.mjs +0 -13
  73. package/components/coffee-DO_RGoZp.mjs +0 -9
  74. package/components/cpp-DAK8ktHO.mjs +0 -25
  75. package/components/crystal-CBGbbyVp.mjs +0 -19
  76. package/components/cs-h3ksD6-P.mjs +0 -14
  77. package/components/css-BtVcDqlU.mjs +0 -6
  78. package/components/cue-BFSVLV6N.mjs +0 -6
  79. package/components/cypher-Dl2CXoXF.mjs +0 -14
  80. package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
  81. package/components/d-9qSZPw74.mjs +0 -6
  82. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
  83. package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
  84. package/components/dart-CCSsOg9l.mjs +0 -6
  85. package/components/dax-CvsmLV-B.mjs +0 -6
  86. package/components/defaultLocale-DVr69WTU.mjs +0 -202
  87. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
  88. package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
  89. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
  90. package/components/diff-BEdzuHlE.mjs +0 -6
  91. package/components/dockerfile-B3DP334t.mjs +0 -14
  92. package/components/dracula-B8-AVrwI.mjs +0 -3
  93. package/components/dracula-soft-BHeefow7.mjs +0 -3
  94. package/components/dream-maker-CNLQpoF-.mjs +0 -6
  95. package/components/elixir-0rTCSSfp.mjs +0 -11
  96. package/components/elm-BhwiZPvf.mjs +0 -10
  97. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
  98. package/components/erb-Lra8TlYM.mjs +0 -27
  99. package/components/erlang-D2NNgvtR.mjs +0 -17
  100. package/components/everforest-dark-Cg1xdODP.mjs +0 -3
  101. package/components/everforest-light-BmTD3bxe.mjs +0 -3
  102. package/components/fish-BU5HSdZy.mjs +0 -6
  103. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
  104. package/components/fs-CdBSddpF.mjs +0 -17
  105. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
  106. package/components/gdresource-CAbkn6H_.mjs +0 -11
  107. package/components/gdscript-Be_cubqt.mjs +0 -6
  108. package/components/gdshader-BEzE4j_3.mjs +0 -6
  109. package/components/gherkin-xCNF9gh8.mjs +0 -6
  110. package/components/git-commit-PP9xCApN.mjs +0 -9
  111. package/components/git-rebase-DqdGofLo.mjs +0 -9
  112. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
  113. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
  114. package/components/github-dark-O22yVQaY.mjs +0 -3
  115. package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
  116. package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
  117. package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
  118. package/components/github-light-BTbR9xVK.mjs +0 -3
  119. package/components/github-light-default-DWEonwFe.mjs +0 -3
  120. package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
  121. package/components/glimmer-js-BkPYTyD4.mjs +0 -23
  122. package/components/glsl-CGsiYPcu.mjs +0 -9
  123. package/components/gnuplot-tV8vezdE.mjs +0 -6
  124. package/components/go-CBmVHZBz.mjs +0 -6
  125. package/components/graph-3zJxsO-i.mjs +0 -425
  126. package/components/graphql-D4pgneW3.mjs +0 -15
  127. package/components/groovy-Bn4MhXgW.mjs +0 -6
  128. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
  129. package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
  130. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
  131. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
  132. package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
  133. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
  134. package/components/gts-d3WsqAZM.mjs +0 -23
  135. package/components/hack-CwaBuF5l.mjs +0 -13
  136. package/components/haml-gLijj4rW.mjs +0 -11
  137. package/components/hbs-CFi5SpI3.mjs +0 -23
  138. package/components/hcl-axoq0Ycu.mjs +0 -6
  139. package/components/hjson-I7LcauIB.mjs +0 -6
  140. package/components/hlsl-TRzjajlb.mjs +0 -6
  141. package/components/houston-CF_ws8Cq.mjs +0 -3
  142. package/components/hs-DXSGqUFF.mjs +0 -14
  143. package/components/html-CLq-n30c.mjs +0 -11
  144. package/components/html-derivative-C8POX8SL.mjs +0 -9
  145. package/components/http-BYUKZ6kX.mjs +0 -20
  146. package/components/imba-C4923lSV.mjs +0 -6
  147. package/components/index4.mjs +0 -78
  148. package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
  149. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
  150. package/components/init-ZxktEp_H.mjs +0 -15
  151. package/components/java-BfXh-0uJ.mjs +0 -6
  152. package/components/jinja-html-BmW4v_vu.mjs +0 -11
  153. package/components/jison-C9kAT_Oj.mjs +0 -9
  154. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
  155. package/components/js-CN_xSsjU.mjs +0 -14
  156. package/components/json-TjWBGEk1.mjs +0 -6
  157. package/components/json5-DCGCKrmX.mjs +0 -6
  158. package/components/jsonc-DLVLp8id.mjs +0 -6
  159. package/components/jsonl-B-R_pDGg.mjs +0 -6
  160. package/components/jsonnet-Cs8BnnC6.mjs +0 -6
  161. package/components/jssm-D_YBQ_cM.mjs +0 -14
  162. package/components/jsx-BPmvoin2.mjs +0 -6
  163. package/components/julia-C-JjBobP.mjs +0 -19
  164. package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
  165. package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
  166. package/components/kanagawa-wave-DExoagcR.mjs +0 -3
  167. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
  168. package/components/kotlin-BM2ZNTMh.mjs +0 -6
  169. package/components/kusto-D9MF7CZf.mjs +0 -14
  170. package/components/laserwave-DF03wMlf.mjs +0 -3
  171. package/components/latex-BsqkLZB_.mjs +0 -10
  172. package/components/layout-sGZIJplX.mjs +0 -2043
  173. package/components/less-BAzLMJNR.mjs +0 -6
  174. package/components/light-plus-DS08Xg5J.mjs +0 -3
  175. package/components/linear-DqgVh5FN.mjs +0 -336
  176. package/components/liquid-f2VHt0dg.mjs +0 -15
  177. package/components/lisp-DAq1kaby.mjs +0 -6
  178. package/components/logo-D9l7oEJ8.mjs +0 -6
  179. package/components/lua-CH3ttzl_.mjs +0 -9
  180. package/components/makefile-D2qLe7q0.mjs +0 -14
  181. package/components/marko-DwRyI_--.mjs +0 -15
  182. package/components/material-theme-B8B2U48Q.mjs +0 -3
  183. package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
  184. package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
  185. package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
  186. package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
  187. package/components/matlab-7XHduepk.mjs +0 -6
  188. package/components/md-BIvDPr-W.mjs +0 -14
  189. package/components/mdc-Rx6hWSHn.mjs +0 -16
  190. package/components/mdx-D5wExp-O.mjs +0 -6
  191. package/components/mermaid-CUjtoYEe.mjs +0 -6
  192. package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
  193. package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
  194. package/components/min-BngCxx8g.mjs +0 -109
  195. package/components/min-dark-BNaN9fWk.mjs +0 -3
  196. package/components/min-light-CMrjentn.mjs +0 -3
  197. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
  198. package/components/mojo-CrbF881p.mjs +0 -6
  199. package/components/monokai-DelygWXa.mjs +0 -3
  200. package/components/narrat-DOwkIbBe.mjs +0 -14
  201. package/components/nf-DHfvJ2gH.mjs +0 -14
  202. package/components/nginx-B_jWsywZ.mjs +0 -10
  203. package/components/night-owl-DSS199ra.mjs +0 -3
  204. package/components/nim-yzbnZKJd.mjs +0 -22
  205. package/components/nix--3K2gyjg.mjs +0 -6
  206. package/components/nord-CvDbBq5M.mjs +0 -3
  207. package/components/objective-c-DkOBZg1J.mjs +0 -14
  208. package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
  209. package/components/ocaml-B1kfGk9Y.mjs +0 -6
  210. package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
  211. package/components/one-light-BwwAsfsj.mjs +0 -3
  212. package/components/ordinal-DSZU4PqD.mjs +0 -76
  213. package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
  214. package/components/pascal-CU8Kjkr_.mjs +0 -6
  215. package/components/perl-FH6su6vZ.mjs +0 -18
  216. package/components/php-Dnl1TfYH.mjs +0 -20
  217. package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
  218. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
  219. package/components/plastic-BjwMpBc0.mjs +0 -3
  220. package/components/plsql-B3Na24V4.mjs +0 -6
  221. package/components/poimandres-ChWyhPrn.mjs +0 -3
  222. package/components/postcss-kj1IbjVd.mjs +0 -6
  223. package/components/powerquery-B-e1fO-k.mjs +0 -6
  224. package/components/prisma-bmxcSDxq.mjs +0 -6
  225. package/components/prolog-BT9GCzqD.mjs +0 -6
  226. package/components/properties-D6yKO1eW.mjs +0 -14
  227. package/components/proto-BIXM0k1a.mjs +0 -6
  228. package/components/ps1-aFyNx8UH.mjs +0 -18
  229. package/components/pug-BrOx0bSt.mjs +0 -21
  230. package/components/puppet-N15G4Usj.mjs +0 -6
  231. package/components/purescript-DrwsEYNH.mjs +0 -6
  232. package/components/python-D2s92fRP.mjs +0 -14
  233. package/components/ql-DTm-NCRo.mjs +0 -14
  234. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
  235. package/components/r-oprfD2-9.mjs +0 -6
  236. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
  237. package/components/raku-xArQd_rF.mjs +0 -14
  238. package/components/razor-BoXCAbWQ.mjs +0 -13
  239. package/components/red-DByOl5N0.mjs +0 -3
  240. package/components/reg-CULnG2WX.mjs +0 -6
  241. package/components/rel-CHRwzjd4.mjs +0 -6
  242. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
  243. package/components/riscv-BNQ9cVpw.mjs +0 -6
  244. package/components/rose-pine-LL9gXmP2.mjs +0 -3
  245. package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
  246. package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
  247. package/components/rst-bEtD1v7N.mjs +0 -36
  248. package/components/ruby-BmfBy6EV.mjs +0 -44
  249. package/components/rust-Bf_fdNdL.mjs +0 -14
  250. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
  251. package/components/sas-BLBgC3TA.mjs +0 -9
  252. package/components/sass-BheygBdF.mjs +0 -6
  253. package/components/scala-B-_7vFVn.mjs +0 -6
  254. package/components/scheme-BSHdPinv.mjs +0 -6
  255. package/components/scss-Dq-LbI_c.mjs +0 -9
  256. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
  257. package/components/shaderlab-BOQRTiQi.mjs +0 -17
  258. package/components/shellsession-Cu3c0QAc.mjs +0 -17
  259. package/components/slack-dark-BEe10hxO.mjs +0 -3
  260. package/components/slack-ochin-BKmu9pBc.mjs +0 -3
  261. package/components/smalltalk-qxcGy4fT.mjs +0 -6
  262. package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
  263. package/components/solarized-dark-BBl5y5sR.mjs +0 -3
  264. package/components/solarized-light-DW9b_AY8.mjs +0 -3
  265. package/components/solidity-CewKZgp-.mjs +0 -6
  266. package/components/sparql-DswowMAp.mjs +0 -9
  267. package/components/splunk-gK6Iw_P9.mjs +0 -14
  268. package/components/sql-DzUuSofg.mjs +0 -6
  269. package/components/ssh-config-Bk_I5wDR.mjs +0 -6
  270. package/components/stata-Dl7wDdBE.mjs +0 -9
  271. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
  272. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
  273. package/components/stylus-qRNkxrFU.mjs +0 -14
  274. package/components/svelte-B9qv3vkS.mjs +0 -15
  275. package/components/swift-BRQRsam8.mjs +0 -6
  276. package/components/synthwave-84-CoUef9sh.mjs +0 -3
  277. package/components/system-verilog-BcESSvRn.mjs +0 -6
  278. package/components/tasl-DfOr2qHi.mjs +0 -6
  279. package/components/tcl-CTsc4-t7.mjs +0 -6
  280. package/components/tex-CumJx1zu.mjs +0 -9
  281. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
  282. package/components/tokyo-night-DjtLpAEY.mjs +0 -3
  283. package/components/toml-vHPzWDj6.mjs +0 -6
  284. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
  285. package/components/tsx-CmGGo4Hm.mjs +0 -6
  286. package/components/turtle-BnC7StHY.mjs +0 -6
  287. package/components/twig-0XKNpXN1.mjs +0 -35
  288. package/components/typescript-CgxwwAuC.mjs +0 -14
  289. package/components/v-Bmdjo9cy.mjs +0 -6
  290. package/components/vb-DuF6ZenW.mjs +0 -14
  291. package/components/verilog-CCb_iTfF.mjs +0 -6
  292. package/components/vesper-4Q1cEwPL.mjs +0 -3
  293. package/components/vhdl-DMqk4T2s.mjs +0 -6
  294. package/components/vimscript-aKp9YbYm.mjs +0 -18
  295. package/components/vitesse-black-BqNLki8b.mjs +0 -3
  296. package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
  297. package/components/vitesse-light-476zM4e6.mjs +0 -3
  298. package/components/vue-DVNNTw2l.mjs +0 -40
  299. package/components/vue-html-Cr5wciIP.mjs +0 -16
  300. package/components/vyper-DYedWgAE.mjs +0 -14
  301. package/components/wasm-BBh6f151.mjs +0 -6
  302. package/components/wasm-DDgzZJey.mjs +0 -7
  303. package/components/wenyan-BdqozpMZ.mjs +0 -6
  304. package/components/wgsl-Vo-hHVWH.mjs +0 -6
  305. package/components/wolfram-CRmjUoI4.mjs +0 -6
  306. package/components/xml-BMzZeaqs.mjs +0 -9
  307. package/components/xsl-CAhvzxWv.mjs +0 -10
  308. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
  309. package/components/yml-BhSrWWMS.mjs +0 -14
  310. package/components/zenscript-DFINJL6j.mjs +0 -6
  311. package/components/zig-CS4FMAZp.mjs +0 -6
  312. package/components/zsh-hcK4TBd7.mjs +0 -26
@@ -1,1173 +0,0 @@
1
- import { g as getDiagramElement } from './chunk-BFAMUDN2-DHLCoYMN.mjs';
2
- import { s as setupViewPortForSVG } from './chunk-SKB7J2MH-BlwHRDiW.mjs';
3
- import { _ as __name, D as __export, l as log, c as getConfig2, p as getRegisteredLayoutAlgorithm, r as render$1, u as utils_default, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, q as setDiagramTitle, t as getDiagramTitle, z as clear$2 } from './mermaid.core-CAqkCmS1.mjs';
4
- import './index3.mjs';
5
- import 'vue';
6
- import '@vunk/plus/components/bubble-templates';
7
- import 'element-plus';
8
- import './index4.mjs';
9
- import '@vueuse/core';
10
- import '@vunk/plus/components/scrollbar';
11
- import './_plugin-vue_export-helper.mjs';
12
- import '@vunk/shared/function';
13
- import '@vunk/plus/components/agent-chat-provider';
14
-
15
- var _a;
16
- var parser = function() {
17
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
18
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
19
- return o2;
20
- }, "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];
21
- var parser2 = {
22
- trace: /* @__PURE__ */ __name(function trace() {
23
- }, "trace"),
24
- yy: {},
25
- 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 },
26
- 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" },
27
- 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]],
28
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
29
- var $0 = $$.length - 1;
30
- switch (yystate) {
31
- case 4:
32
- this.$ = $$[$0].trim();
33
- yy.setAccTitle(this.$);
34
- break;
35
- case 5:
36
- case 6:
37
- this.$ = $$[$0].trim();
38
- yy.setAccDescription(this.$);
39
- break;
40
- case 7:
41
- this.$ = [];
42
- break;
43
- case 17:
44
- yy.setDirection("TB");
45
- break;
46
- case 18:
47
- yy.setDirection("BT");
48
- break;
49
- case 19:
50
- yy.setDirection("RL");
51
- break;
52
- case 20:
53
- yy.setDirection("LR");
54
- break;
55
- case 21:
56
- yy.addRequirement($$[$0 - 3], $$[$0 - 4]);
57
- break;
58
- case 22:
59
- yy.addRequirement($$[$0 - 5], $$[$0 - 6]);
60
- yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
61
- break;
62
- case 23:
63
- yy.setNewReqId($$[$0 - 2]);
64
- break;
65
- case 24:
66
- yy.setNewReqText($$[$0 - 2]);
67
- break;
68
- case 25:
69
- yy.setNewReqRisk($$[$0 - 2]);
70
- break;
71
- case 26:
72
- yy.setNewReqVerifyMethod($$[$0 - 2]);
73
- break;
74
- case 29:
75
- this.$ = yy.RequirementType.REQUIREMENT;
76
- break;
77
- case 30:
78
- this.$ = yy.RequirementType.FUNCTIONAL_REQUIREMENT;
79
- break;
80
- case 31:
81
- this.$ = yy.RequirementType.INTERFACE_REQUIREMENT;
82
- break;
83
- case 32:
84
- this.$ = yy.RequirementType.PERFORMANCE_REQUIREMENT;
85
- break;
86
- case 33:
87
- this.$ = yy.RequirementType.PHYSICAL_REQUIREMENT;
88
- break;
89
- case 34:
90
- this.$ = yy.RequirementType.DESIGN_CONSTRAINT;
91
- break;
92
- case 35:
93
- this.$ = yy.RiskLevel.LOW_RISK;
94
- break;
95
- case 36:
96
- this.$ = yy.RiskLevel.MED_RISK;
97
- break;
98
- case 37:
99
- this.$ = yy.RiskLevel.HIGH_RISK;
100
- break;
101
- case 38:
102
- this.$ = yy.VerifyType.VERIFY_ANALYSIS;
103
- break;
104
- case 39:
105
- this.$ = yy.VerifyType.VERIFY_DEMONSTRATION;
106
- break;
107
- case 40:
108
- this.$ = yy.VerifyType.VERIFY_INSPECTION;
109
- break;
110
- case 41:
111
- this.$ = yy.VerifyType.VERIFY_TEST;
112
- break;
113
- case 42:
114
- yy.addElement($$[$0 - 3]);
115
- break;
116
- case 43:
117
- yy.addElement($$[$0 - 5]);
118
- yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
119
- break;
120
- case 44:
121
- yy.setNewElementType($$[$0 - 2]);
122
- break;
123
- case 45:
124
- yy.setNewElementDocRef($$[$0 - 2]);
125
- break;
126
- case 48:
127
- yy.addRelationship($$[$0 - 2], $$[$0], $$[$0 - 4]);
128
- break;
129
- case 49:
130
- yy.addRelationship($$[$0 - 2], $$[$0 - 4], $$[$0]);
131
- break;
132
- case 50:
133
- this.$ = yy.Relationships.CONTAINS;
134
- break;
135
- case 51:
136
- this.$ = yy.Relationships.COPIES;
137
- break;
138
- case 52:
139
- this.$ = yy.Relationships.DERIVES;
140
- break;
141
- case 53:
142
- this.$ = yy.Relationships.SATISFIES;
143
- break;
144
- case 54:
145
- this.$ = yy.Relationships.VERIFIES;
146
- break;
147
- case 55:
148
- this.$ = yy.Relationships.REFINES;
149
- break;
150
- case 56:
151
- this.$ = yy.Relationships.TRACES;
152
- break;
153
- case 57:
154
- this.$ = $$[$0 - 2];
155
- yy.defineClass($$[$0 - 1], $$[$0]);
156
- break;
157
- case 58:
158
- yy.setClass($$[$0 - 1], $$[$0]);
159
- break;
160
- case 59:
161
- yy.setClass([$$[$0 - 2]], $$[$0]);
162
- break;
163
- case 60:
164
- case 62:
165
- this.$ = [$$[$0]];
166
- break;
167
- case 61:
168
- case 63:
169
- this.$ = $$[$0 - 2].concat([$$[$0]]);
170
- break;
171
- case 64:
172
- this.$ = $$[$0 - 2];
173
- yy.setCssStyle($$[$0 - 1], $$[$0]);
174
- break;
175
- case 65:
176
- this.$ = [$$[$0]];
177
- break;
178
- case 66:
179
- $$[$0 - 2].push($$[$0]);
180
- this.$ = $$[$0 - 2];
181
- break;
182
- case 68:
183
- this.$ = $$[$0 - 1] + $$[$0];
184
- break;
185
- }
186
- }, "anonymous"),
187
- 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])],
188
- 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] },
189
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
190
- if (hash.recoverable) {
191
- this.trace(str);
192
- } else {
193
- var error = new Error(str);
194
- error.hash = hash;
195
- throw error;
196
- }
197
- }, "parseError"),
198
- parse: /* @__PURE__ */ __name(function parse(input) {
199
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
200
- var args = lstack.slice.call(arguments, 1);
201
- var lexer2 = Object.create(this.lexer);
202
- var sharedState = { yy: {} };
203
- for (var k in this.yy) {
204
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
205
- sharedState.yy[k] = this.yy[k];
206
- }
207
- }
208
- lexer2.setInput(input, sharedState.yy);
209
- sharedState.yy.lexer = lexer2;
210
- sharedState.yy.parser = this;
211
- if (typeof lexer2.yylloc == "undefined") {
212
- lexer2.yylloc = {};
213
- }
214
- var yyloc = lexer2.yylloc;
215
- lstack.push(yyloc);
216
- var ranges = lexer2.options && lexer2.options.ranges;
217
- if (typeof sharedState.yy.parseError === "function") {
218
- this.parseError = sharedState.yy.parseError;
219
- } else {
220
- this.parseError = Object.getPrototypeOf(this).parseError;
221
- }
222
- function popStack(n) {
223
- stack.length = stack.length - 2 * n;
224
- vstack.length = vstack.length - n;
225
- lstack.length = lstack.length - n;
226
- }
227
- __name(popStack, "popStack");
228
- function lex() {
229
- var token;
230
- token = tstack.pop() || lexer2.lex() || EOF;
231
- if (typeof token !== "number") {
232
- if (token instanceof Array) {
233
- tstack = token;
234
- token = tstack.pop();
235
- }
236
- token = self.symbols_[token] || token;
237
- }
238
- return token;
239
- }
240
- __name(lex, "lex");
241
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
242
- while (true) {
243
- state = stack[stack.length - 1];
244
- if (this.defaultActions[state]) {
245
- action = this.defaultActions[state];
246
- } else {
247
- if (symbol === null || typeof symbol == "undefined") {
248
- symbol = lex();
249
- }
250
- action = table[state] && table[state][symbol];
251
- }
252
- if (typeof action === "undefined" || !action.length || !action[0]) {
253
- var errStr = "";
254
- expected = [];
255
- for (p in table[state]) {
256
- if (this.terminals_[p] && p > TERROR) {
257
- expected.push("'" + this.terminals_[p] + "'");
258
- }
259
- }
260
- if (lexer2.showPosition) {
261
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
262
- } else {
263
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
264
- }
265
- this.parseError(errStr, {
266
- text: lexer2.match,
267
- token: this.terminals_[symbol] || symbol,
268
- line: lexer2.yylineno,
269
- loc: yyloc,
270
- expected
271
- });
272
- }
273
- if (action[0] instanceof Array && action.length > 1) {
274
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
275
- }
276
- switch (action[0]) {
277
- case 1:
278
- stack.push(symbol);
279
- vstack.push(lexer2.yytext);
280
- lstack.push(lexer2.yylloc);
281
- stack.push(action[1]);
282
- symbol = null;
283
- {
284
- yyleng = lexer2.yyleng;
285
- yytext = lexer2.yytext;
286
- yylineno = lexer2.yylineno;
287
- yyloc = lexer2.yylloc;
288
- }
289
- break;
290
- case 2:
291
- len = this.productions_[action[1]][1];
292
- yyval.$ = vstack[vstack.length - len];
293
- yyval._$ = {
294
- first_line: lstack[lstack.length - (len || 1)].first_line,
295
- last_line: lstack[lstack.length - 1].last_line,
296
- first_column: lstack[lstack.length - (len || 1)].first_column,
297
- last_column: lstack[lstack.length - 1].last_column
298
- };
299
- if (ranges) {
300
- yyval._$.range = [
301
- lstack[lstack.length - (len || 1)].range[0],
302
- lstack[lstack.length - 1].range[1]
303
- ];
304
- }
305
- r = this.performAction.apply(yyval, [
306
- yytext,
307
- yyleng,
308
- yylineno,
309
- sharedState.yy,
310
- action[1],
311
- vstack,
312
- lstack
313
- ].concat(args));
314
- if (typeof r !== "undefined") {
315
- return r;
316
- }
317
- if (len) {
318
- stack = stack.slice(0, -1 * len * 2);
319
- vstack = vstack.slice(0, -1 * len);
320
- lstack = lstack.slice(0, -1 * len);
321
- }
322
- stack.push(this.productions_[action[1]][0]);
323
- vstack.push(yyval.$);
324
- lstack.push(yyval._$);
325
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
326
- stack.push(newState);
327
- break;
328
- case 3:
329
- return true;
330
- }
331
- }
332
- return true;
333
- }, "parse")
334
- };
335
- var lexer = /* @__PURE__ */ function() {
336
- var lexer2 = {
337
- EOF: 1,
338
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
339
- if (this.yy.parser) {
340
- this.yy.parser.parseError(str, hash);
341
- } else {
342
- throw new Error(str);
343
- }
344
- }, "parseError"),
345
- // resets the lexer, sets new input
346
- setInput: /* @__PURE__ */ __name(function(input, yy) {
347
- this.yy = yy || this.yy || {};
348
- this._input = input;
349
- this._more = this._backtrack = this.done = false;
350
- this.yylineno = this.yyleng = 0;
351
- this.yytext = this.matched = this.match = "";
352
- this.conditionStack = ["INITIAL"];
353
- this.yylloc = {
354
- first_line: 1,
355
- first_column: 0,
356
- last_line: 1,
357
- last_column: 0
358
- };
359
- if (this.options.ranges) {
360
- this.yylloc.range = [0, 0];
361
- }
362
- this.offset = 0;
363
- return this;
364
- }, "setInput"),
365
- // consumes and returns one char from the input
366
- input: /* @__PURE__ */ __name(function() {
367
- var ch = this._input[0];
368
- this.yytext += ch;
369
- this.yyleng++;
370
- this.offset++;
371
- this.match += ch;
372
- this.matched += ch;
373
- var lines = ch.match(/(?:\r\n?|\n).*/g);
374
- if (lines) {
375
- this.yylineno++;
376
- this.yylloc.last_line++;
377
- } else {
378
- this.yylloc.last_column++;
379
- }
380
- if (this.options.ranges) {
381
- this.yylloc.range[1]++;
382
- }
383
- this._input = this._input.slice(1);
384
- return ch;
385
- }, "input"),
386
- // unshifts one char (or a string) into the input
387
- unput: /* @__PURE__ */ __name(function(ch) {
388
- var len = ch.length;
389
- var lines = ch.split(/(?:\r\n?|\n)/g);
390
- this._input = ch + this._input;
391
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
392
- this.offset -= len;
393
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
394
- this.match = this.match.substr(0, this.match.length - 1);
395
- this.matched = this.matched.substr(0, this.matched.length - 1);
396
- if (lines.length - 1) {
397
- this.yylineno -= lines.length - 1;
398
- }
399
- var r = this.yylloc.range;
400
- this.yylloc = {
401
- first_line: this.yylloc.first_line,
402
- last_line: this.yylineno + 1,
403
- first_column: this.yylloc.first_column,
404
- 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
405
- };
406
- if (this.options.ranges) {
407
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
408
- }
409
- this.yyleng = this.yytext.length;
410
- return this;
411
- }, "unput"),
412
- // When called from action, caches matched text and appends it on next action
413
- more: /* @__PURE__ */ __name(function() {
414
- this._more = true;
415
- return this;
416
- }, "more"),
417
- // 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.
418
- reject: /* @__PURE__ */ __name(function() {
419
- if (this.options.backtrack_lexer) {
420
- this._backtrack = true;
421
- } else {
422
- 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(), {
423
- text: "",
424
- token: null,
425
- line: this.yylineno
426
- });
427
- }
428
- return this;
429
- }, "reject"),
430
- // retain first n characters of the match
431
- less: /* @__PURE__ */ __name(function(n) {
432
- this.unput(this.match.slice(n));
433
- }, "less"),
434
- // displays already matched input, i.e. for error messages
435
- pastInput: /* @__PURE__ */ __name(function() {
436
- var past = this.matched.substr(0, this.matched.length - this.match.length);
437
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
438
- }, "pastInput"),
439
- // displays upcoming input, i.e. for error messages
440
- upcomingInput: /* @__PURE__ */ __name(function() {
441
- var next = this.match;
442
- if (next.length < 20) {
443
- next += this._input.substr(0, 20 - next.length);
444
- }
445
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
446
- }, "upcomingInput"),
447
- // displays the character position where the lexing error occurred, i.e. for error messages
448
- showPosition: /* @__PURE__ */ __name(function() {
449
- var pre = this.pastInput();
450
- var c = new Array(pre.length + 1).join("-");
451
- return pre + this.upcomingInput() + "\n" + c + "^";
452
- }, "showPosition"),
453
- // test the lexed token: return FALSE when not a match, otherwise return token
454
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
455
- var token, lines, backup;
456
- if (this.options.backtrack_lexer) {
457
- backup = {
458
- yylineno: this.yylineno,
459
- yylloc: {
460
- first_line: this.yylloc.first_line,
461
- last_line: this.last_line,
462
- first_column: this.yylloc.first_column,
463
- last_column: this.yylloc.last_column
464
- },
465
- yytext: this.yytext,
466
- match: this.match,
467
- matches: this.matches,
468
- matched: this.matched,
469
- yyleng: this.yyleng,
470
- offset: this.offset,
471
- _more: this._more,
472
- _input: this._input,
473
- yy: this.yy,
474
- conditionStack: this.conditionStack.slice(0),
475
- done: this.done
476
- };
477
- if (this.options.ranges) {
478
- backup.yylloc.range = this.yylloc.range.slice(0);
479
- }
480
- }
481
- lines = match[0].match(/(?:\r\n?|\n).*/g);
482
- if (lines) {
483
- this.yylineno += lines.length;
484
- }
485
- this.yylloc = {
486
- first_line: this.yylloc.last_line,
487
- last_line: this.yylineno + 1,
488
- first_column: this.yylloc.last_column,
489
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
490
- };
491
- this.yytext += match[0];
492
- this.match += match[0];
493
- this.matches = match;
494
- this.yyleng = this.yytext.length;
495
- if (this.options.ranges) {
496
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
497
- }
498
- this._more = false;
499
- this._backtrack = false;
500
- this._input = this._input.slice(match[0].length);
501
- this.matched += match[0];
502
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
503
- if (this.done && this._input) {
504
- this.done = false;
505
- }
506
- if (token) {
507
- return token;
508
- } else if (this._backtrack) {
509
- for (var k in backup) {
510
- this[k] = backup[k];
511
- }
512
- return false;
513
- }
514
- return false;
515
- }, "test_match"),
516
- // return next match in input
517
- next: /* @__PURE__ */ __name(function() {
518
- if (this.done) {
519
- return this.EOF;
520
- }
521
- if (!this._input) {
522
- this.done = true;
523
- }
524
- var token, match, tempMatch, index;
525
- if (!this._more) {
526
- this.yytext = "";
527
- this.match = "";
528
- }
529
- var rules = this._currentRules();
530
- for (var i = 0; i < rules.length; i++) {
531
- tempMatch = this._input.match(this.rules[rules[i]]);
532
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
533
- match = tempMatch;
534
- index = i;
535
- if (this.options.backtrack_lexer) {
536
- token = this.test_match(tempMatch, rules[i]);
537
- if (token !== false) {
538
- return token;
539
- } else if (this._backtrack) {
540
- match = false;
541
- continue;
542
- } else {
543
- return false;
544
- }
545
- } else if (!this.options.flex) {
546
- break;
547
- }
548
- }
549
- }
550
- if (match) {
551
- token = this.test_match(match, rules[index]);
552
- if (token !== false) {
553
- return token;
554
- }
555
- return false;
556
- }
557
- if (this._input === "") {
558
- return this.EOF;
559
- } else {
560
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
561
- text: "",
562
- token: null,
563
- line: this.yylineno
564
- });
565
- }
566
- }, "next"),
567
- // return next match that has a token
568
- lex: /* @__PURE__ */ __name(function lex() {
569
- var r = this.next();
570
- if (r) {
571
- return r;
572
- } else {
573
- return this.lex();
574
- }
575
- }, "lex"),
576
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
577
- begin: /* @__PURE__ */ __name(function begin(condition) {
578
- this.conditionStack.push(condition);
579
- }, "begin"),
580
- // pop the previously active lexer condition state off the condition stack
581
- popState: /* @__PURE__ */ __name(function popState() {
582
- var n = this.conditionStack.length - 1;
583
- if (n > 0) {
584
- return this.conditionStack.pop();
585
- } else {
586
- return this.conditionStack[0];
587
- }
588
- }, "popState"),
589
- // produce the lexer rule set which is active for the currently active lexer condition state
590
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
591
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
592
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
593
- } else {
594
- return this.conditions["INITIAL"].rules;
595
- }
596
- }, "_currentRules"),
597
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
598
- topState: /* @__PURE__ */ __name(function topState(n) {
599
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
600
- if (n >= 0) {
601
- return this.conditionStack[n];
602
- } else {
603
- return "INITIAL";
604
- }
605
- }, "topState"),
606
- // alias for begin(condition)
607
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
608
- this.begin(condition);
609
- }, "pushState"),
610
- // return the number of states currently on the stack
611
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
612
- return this.conditionStack.length;
613
- }, "stateStackSize"),
614
- options: { "case-insensitive": true },
615
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
616
- switch ($avoiding_name_collisions) {
617
- case 0:
618
- return "title";
619
- case 1:
620
- this.begin("acc_title");
621
- return 9;
622
- case 2:
623
- this.popState();
624
- return "acc_title_value";
625
- case 3:
626
- this.begin("acc_descr");
627
- return 11;
628
- case 4:
629
- this.popState();
630
- return "acc_descr_value";
631
- case 5:
632
- this.begin("acc_descr_multiline");
633
- break;
634
- case 6:
635
- this.popState();
636
- break;
637
- case 7:
638
- return "acc_descr_multiline_value";
639
- case 8:
640
- return 21;
641
- case 9:
642
- return 22;
643
- case 10:
644
- return 23;
645
- case 11:
646
- return 24;
647
- case 12:
648
- return 5;
649
- case 13:
650
- break;
651
- case 14:
652
- break;
653
- case 15:
654
- break;
655
- case 16:
656
- return 8;
657
- case 17:
658
- return 6;
659
- case 18:
660
- return 27;
661
- case 19:
662
- return 40;
663
- case 20:
664
- return 29;
665
- case 21:
666
- return 32;
667
- case 22:
668
- return 31;
669
- case 23:
670
- return 34;
671
- case 24:
672
- return 36;
673
- case 25:
674
- return 38;
675
- case 26:
676
- return 41;
677
- case 27:
678
- return 42;
679
- case 28:
680
- return 43;
681
- case 29:
682
- return 44;
683
- case 30:
684
- return 45;
685
- case 31:
686
- return 46;
687
- case 32:
688
- return 47;
689
- case 33:
690
- return 48;
691
- case 34:
692
- return 49;
693
- case 35:
694
- return 50;
695
- case 36:
696
- return 51;
697
- case 37:
698
- return 52;
699
- case 38:
700
- return 53;
701
- case 39:
702
- return 54;
703
- case 40:
704
- return 65;
705
- case 41:
706
- return 66;
707
- case 42:
708
- return 67;
709
- case 43:
710
- return 68;
711
- case 44:
712
- return 69;
713
- case 45:
714
- return 70;
715
- case 46:
716
- return 71;
717
- case 47:
718
- return 57;
719
- case 48:
720
- return 59;
721
- case 49:
722
- this.begin("style");
723
- return 77;
724
- case 50:
725
- return 75;
726
- case 51:
727
- return 81;
728
- case 52:
729
- return 88;
730
- case 53:
731
- return "PERCENT";
732
- case 54:
733
- return 86;
734
- case 55:
735
- return 84;
736
- case 56:
737
- break;
738
- case 57:
739
- this.begin("string");
740
- break;
741
- case 58:
742
- this.popState();
743
- break;
744
- case 59:
745
- this.begin("style");
746
- return 72;
747
- case 60:
748
- this.begin("style");
749
- return 74;
750
- case 61:
751
- return 61;
752
- case 62:
753
- return 64;
754
- case 63:
755
- return 63;
756
- case 64:
757
- this.begin("string");
758
- break;
759
- case 65:
760
- this.popState();
761
- break;
762
- case 66:
763
- return "qString";
764
- case 67:
765
- yy_.yytext = yy_.yytext.trim();
766
- return 89;
767
- case 68:
768
- return 75;
769
- case 69:
770
- return 80;
771
- case 70:
772
- return 76;
773
- }
774
- }, "anonymous"),
775
- 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],
776
- 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 } }
777
- };
778
- return lexer2;
779
- }();
780
- parser2.lexer = lexer;
781
- function Parser() {
782
- this.yy = {};
783
- }
784
- __name(Parser, "Parser");
785
- Parser.prototype = parser2;
786
- parser2.Parser = Parser;
787
- return new Parser();
788
- }();
789
- parser.parser = parser;
790
- var requirementDiagram_default = parser;
791
- var RequirementDB = (_a = class {
792
- constructor() {
793
- this.relations = [];
794
- this.latestRequirement = this.getInitialRequirement();
795
- this.requirements = /* @__PURE__ */ new Map();
796
- this.latestElement = this.getInitialElement();
797
- this.elements = /* @__PURE__ */ new Map();
798
- this.classes = /* @__PURE__ */ new Map();
799
- this.direction = "TB";
800
- this.RequirementType = {
801
- REQUIREMENT: "Requirement",
802
- FUNCTIONAL_REQUIREMENT: "Functional Requirement",
803
- INTERFACE_REQUIREMENT: "Interface Requirement",
804
- PERFORMANCE_REQUIREMENT: "Performance Requirement",
805
- PHYSICAL_REQUIREMENT: "Physical Requirement",
806
- DESIGN_CONSTRAINT: "Design Constraint"
807
- };
808
- this.RiskLevel = {
809
- LOW_RISK: "Low",
810
- MED_RISK: "Medium",
811
- HIGH_RISK: "High"
812
- };
813
- this.VerifyType = {
814
- VERIFY_ANALYSIS: "Analysis",
815
- VERIFY_DEMONSTRATION: "Demonstration",
816
- VERIFY_INSPECTION: "Inspection",
817
- VERIFY_TEST: "Test"
818
- };
819
- this.Relationships = {
820
- CONTAINS: "contains",
821
- COPIES: "copies",
822
- DERIVES: "derives",
823
- SATISFIES: "satisfies",
824
- VERIFIES: "verifies",
825
- REFINES: "refines",
826
- TRACES: "traces"
827
- };
828
- this.setAccTitle = setAccTitle;
829
- this.getAccTitle = getAccTitle;
830
- this.setAccDescription = setAccDescription;
831
- this.getAccDescription = getAccDescription;
832
- this.setDiagramTitle = setDiagramTitle;
833
- this.getDiagramTitle = getDiagramTitle;
834
- this.getConfig = /* @__PURE__ */ __name(() => getConfig2().requirement, "getConfig");
835
- this.clear();
836
- this.setDirection = this.setDirection.bind(this);
837
- this.addRequirement = this.addRequirement.bind(this);
838
- this.setNewReqId = this.setNewReqId.bind(this);
839
- this.setNewReqRisk = this.setNewReqRisk.bind(this);
840
- this.setNewReqText = this.setNewReqText.bind(this);
841
- this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this);
842
- this.addElement = this.addElement.bind(this);
843
- this.setNewElementType = this.setNewElementType.bind(this);
844
- this.setNewElementDocRef = this.setNewElementDocRef.bind(this);
845
- this.addRelationship = this.addRelationship.bind(this);
846
- this.setCssStyle = this.setCssStyle.bind(this);
847
- this.setClass = this.setClass.bind(this);
848
- this.defineClass = this.defineClass.bind(this);
849
- this.setAccTitle = this.setAccTitle.bind(this);
850
- this.setAccDescription = this.setAccDescription.bind(this);
851
- }
852
- getDirection() {
853
- return this.direction;
854
- }
855
- setDirection(dir) {
856
- this.direction = dir;
857
- }
858
- resetLatestRequirement() {
859
- this.latestRequirement = this.getInitialRequirement();
860
- }
861
- resetLatestElement() {
862
- this.latestElement = this.getInitialElement();
863
- }
864
- getInitialRequirement() {
865
- return {
866
- requirementId: "",
867
- text: "",
868
- risk: "",
869
- verifyMethod: "",
870
- name: "",
871
- type: "",
872
- cssStyles: [],
873
- classes: ["default"]
874
- };
875
- }
876
- getInitialElement() {
877
- return {
878
- name: "",
879
- type: "",
880
- docRef: "",
881
- cssStyles: [],
882
- classes: ["default"]
883
- };
884
- }
885
- addRequirement(name, type) {
886
- if (!this.requirements.has(name)) {
887
- this.requirements.set(name, {
888
- name,
889
- type,
890
- requirementId: this.latestRequirement.requirementId,
891
- text: this.latestRequirement.text,
892
- risk: this.latestRequirement.risk,
893
- verifyMethod: this.latestRequirement.verifyMethod,
894
- cssStyles: [],
895
- classes: ["default"]
896
- });
897
- }
898
- this.resetLatestRequirement();
899
- return this.requirements.get(name);
900
- }
901
- getRequirements() {
902
- return this.requirements;
903
- }
904
- setNewReqId(id) {
905
- if (this.latestRequirement !== void 0) {
906
- this.latestRequirement.requirementId = id;
907
- }
908
- }
909
- setNewReqText(text) {
910
- if (this.latestRequirement !== void 0) {
911
- this.latestRequirement.text = text;
912
- }
913
- }
914
- setNewReqRisk(risk) {
915
- if (this.latestRequirement !== void 0) {
916
- this.latestRequirement.risk = risk;
917
- }
918
- }
919
- setNewReqVerifyMethod(verifyMethod) {
920
- if (this.latestRequirement !== void 0) {
921
- this.latestRequirement.verifyMethod = verifyMethod;
922
- }
923
- }
924
- addElement(name) {
925
- if (!this.elements.has(name)) {
926
- this.elements.set(name, {
927
- name,
928
- type: this.latestElement.type,
929
- docRef: this.latestElement.docRef,
930
- cssStyles: [],
931
- classes: ["default"]
932
- });
933
- log.info("Added new element: ", name);
934
- }
935
- this.resetLatestElement();
936
- return this.elements.get(name);
937
- }
938
- getElements() {
939
- return this.elements;
940
- }
941
- setNewElementType(type) {
942
- if (this.latestElement !== void 0) {
943
- this.latestElement.type = type;
944
- }
945
- }
946
- setNewElementDocRef(docRef) {
947
- if (this.latestElement !== void 0) {
948
- this.latestElement.docRef = docRef;
949
- }
950
- }
951
- addRelationship(type, src, dst) {
952
- this.relations.push({
953
- type,
954
- src,
955
- dst
956
- });
957
- }
958
- getRelationships() {
959
- return this.relations;
960
- }
961
- clear() {
962
- this.relations = [];
963
- this.resetLatestRequirement();
964
- this.requirements = /* @__PURE__ */ new Map();
965
- this.resetLatestElement();
966
- this.elements = /* @__PURE__ */ new Map();
967
- this.classes = /* @__PURE__ */ new Map();
968
- clear$2();
969
- }
970
- setCssStyle(ids, styles) {
971
- for (const id of ids) {
972
- const node = this.requirements.get(id) ?? this.elements.get(id);
973
- if (!styles || !node) {
974
- return;
975
- }
976
- for (const s of styles) {
977
- if (s.includes(",")) {
978
- node.cssStyles.push(...s.split(","));
979
- } else {
980
- node.cssStyles.push(s);
981
- }
982
- }
983
- }
984
- }
985
- setClass(ids, classNames) {
986
- var _a2;
987
- for (const id of ids) {
988
- const node = this.requirements.get(id) ?? this.elements.get(id);
989
- if (node) {
990
- for (const _class of classNames) {
991
- node.classes.push(_class);
992
- const styles = (_a2 = this.classes.get(_class)) == null ? void 0 : _a2.styles;
993
- if (styles) {
994
- node.cssStyles.push(...styles);
995
- }
996
- }
997
- }
998
- }
999
- }
1000
- defineClass(ids, style) {
1001
- for (const id of ids) {
1002
- let styleClass = this.classes.get(id);
1003
- if (styleClass === void 0) {
1004
- styleClass = { id, styles: [], textStyles: [] };
1005
- this.classes.set(id, styleClass);
1006
- }
1007
- if (style) {
1008
- style.forEach(function(s) {
1009
- if (/color/.exec(s)) {
1010
- const newStyle = s.replace("fill", "bgFill");
1011
- styleClass.textStyles.push(newStyle);
1012
- }
1013
- styleClass.styles.push(s);
1014
- });
1015
- }
1016
- this.requirements.forEach((value) => {
1017
- if (value.classes.includes(id)) {
1018
- value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1019
- }
1020
- });
1021
- this.elements.forEach((value) => {
1022
- if (value.classes.includes(id)) {
1023
- value.cssStyles.push(...style.flatMap((s) => s.split(",")));
1024
- }
1025
- });
1026
- }
1027
- }
1028
- getClasses() {
1029
- return this.classes;
1030
- }
1031
- getData() {
1032
- var _a2, _b, _c, _d;
1033
- const config = getConfig2();
1034
- const nodes = [];
1035
- const edges = [];
1036
- for (const requirement of this.requirements.values()) {
1037
- const node = requirement;
1038
- node.id = requirement.name;
1039
- node.cssStyles = requirement.cssStyles;
1040
- node.cssClasses = requirement.classes.join(" ");
1041
- node.shape = "requirementBox";
1042
- node.look = config.look;
1043
- nodes.push(node);
1044
- }
1045
- for (const element of this.elements.values()) {
1046
- const node = element;
1047
- node.shape = "requirementBox";
1048
- node.look = config.look;
1049
- node.id = element.name;
1050
- node.cssStyles = element.cssStyles;
1051
- node.cssClasses = element.classes.join(" ");
1052
- nodes.push(node);
1053
- }
1054
- for (const relation of this.relations) {
1055
- let counter = 0;
1056
- const isContains = relation.type === this.Relationships.CONTAINS;
1057
- const edge = {
1058
- id: `${relation.src}-${relation.dst}-${counter}`,
1059
- start: ((_a2 = this.requirements.get(relation.src)) == null ? void 0 : _a2.name) ?? ((_b = this.elements.get(relation.src)) == null ? void 0 : _b.name),
1060
- end: ((_c = this.requirements.get(relation.dst)) == null ? void 0 : _c.name) ?? ((_d = this.elements.get(relation.dst)) == null ? void 0 : _d.name),
1061
- label: `&lt;&lt;${relation.type}&gt;&gt;`,
1062
- classes: "relationshipLine",
1063
- style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
1064
- labelpos: "c",
1065
- thickness: "normal",
1066
- type: "normal",
1067
- pattern: isContains ? "normal" : "dashed",
1068
- arrowTypeStart: isContains ? "requirement_contains" : "",
1069
- arrowTypeEnd: isContains ? "" : "requirement_arrow",
1070
- look: config.look
1071
- };
1072
- edges.push(edge);
1073
- counter++;
1074
- }
1075
- return { nodes, edges, other: {}, config, direction: this.getDirection() };
1076
- }
1077
- }, __name(_a, "RequirementDB"), _a);
1078
- var getStyles = /* @__PURE__ */ __name((options) => `
1079
-
1080
- marker {
1081
- fill: ${options.relationColor};
1082
- stroke: ${options.relationColor};
1083
- }
1084
-
1085
- marker.cross {
1086
- stroke: ${options.lineColor};
1087
- }
1088
-
1089
- svg {
1090
- font-family: ${options.fontFamily};
1091
- font-size: ${options.fontSize};
1092
- }
1093
-
1094
- .reqBox {
1095
- fill: ${options.requirementBackground};
1096
- fill-opacity: 1.0;
1097
- stroke: ${options.requirementBorderColor};
1098
- stroke-width: ${options.requirementBorderSize};
1099
- }
1100
-
1101
- .reqTitle, .reqLabel{
1102
- fill: ${options.requirementTextColor};
1103
- }
1104
- .reqLabelBox {
1105
- fill: ${options.relationLabelBackground};
1106
- fill-opacity: 1.0;
1107
- }
1108
-
1109
- .req-title-line {
1110
- stroke: ${options.requirementBorderColor};
1111
- stroke-width: ${options.requirementBorderSize};
1112
- }
1113
- .relationshipLine {
1114
- stroke: ${options.relationColor};
1115
- stroke-width: 1;
1116
- }
1117
- .relationshipLabel {
1118
- fill: ${options.relationLabelColor};
1119
- }
1120
- .divider {
1121
- stroke: ${options.nodeBorder};
1122
- stroke-width: 1;
1123
- }
1124
- .label {
1125
- font-family: ${options.fontFamily};
1126
- color: ${options.nodeTextColor || options.textColor};
1127
- }
1128
- .label text,span {
1129
- fill: ${options.nodeTextColor || options.textColor};
1130
- color: ${options.nodeTextColor || options.textColor};
1131
- }
1132
- .labelBkg {
1133
- background-color: ${options.edgeLabelBackground};
1134
- }
1135
-
1136
- `, "getStyles");
1137
- var styles_default = getStyles;
1138
- var requirementRenderer_exports = {};
1139
- __export(requirementRenderer_exports, {
1140
- draw: () => draw
1141
- });
1142
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
1143
- log.info("REF0:");
1144
- log.info("Drawing requirement diagram (unified)", id);
1145
- const { securityLevel, state: conf, layout } = getConfig2();
1146
- const data4Layout = diag.db.getData();
1147
- const svg = getDiagramElement(id, securityLevel);
1148
- data4Layout.type = diag.type;
1149
- data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
1150
- data4Layout.nodeSpacing = (conf == null ? void 0 : conf.nodeSpacing) ?? 50;
1151
- data4Layout.rankSpacing = (conf == null ? void 0 : conf.rankSpacing) ?? 50;
1152
- data4Layout.markers = ["requirement_contains", "requirement_arrow"];
1153
- data4Layout.diagramId = id;
1154
- await render$1(data4Layout, svg);
1155
- const padding = 8;
1156
- utils_default.insertTitle(
1157
- svg,
1158
- "requirementDiagramTitleText",
1159
- (conf == null ? void 0 : conf.titleTopMargin) ?? 25,
1160
- diag.db.getDiagramTitle()
1161
- );
1162
- setupViewPortForSVG(svg, padding, "requirementDiagram", (conf == null ? void 0 : conf.useMaxWidth) ?? true);
1163
- }, "draw");
1164
- var diagram = {
1165
- parser: requirementDiagram_default,
1166
- get db() {
1167
- return new RequirementDB();
1168
- },
1169
- renderer: requirementRenderer_exports,
1170
- styles: styles_default
1171
- };
1172
-
1173
- export { diagram };