wiki-viewer 2.12.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +14 -1
  3. package/.next/standalone/.next/build-manifest.json +3 -3
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/required-server-files.json +1 -1
  6. package/.next/standalone/.next/routes-manifest.json +81 -3
  7. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/api/agent/activity/route.js.nft.json +1 -1
  16. package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/approve/route.js +1 -1
  17. package/.next/standalone/.next/server/app/api/agent/admin/registrations/[regId]/deny/route.js +1 -1
  18. package/.next/standalone/.next/server/app/api/agent/admin/registrations/route.js +1 -1
  19. package/.next/standalone/.next/server/app/api/agent/events/[...path]/route.js.nft.json +1 -1
  20. package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js +7 -7
  21. package/.next/standalone/.next/server/app/api/agent/files/[...path]/route.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js +7 -7
  23. package/.next/standalone/.next/server/app/api/agent/fs/file/[...path]/route.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js +1 -1
  25. package/.next/standalone/.next/server/app/api/agent/fs/ls/[[...path]]/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/agent/fs/move/route.js +1 -1
  27. package/.next/standalone/.next/server/app/api/agent/fs/move/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/agent/fs/search/route.js +1 -1
  29. package/.next/standalone/.next/server/app/api/agent/fs/search/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/agent/live/attach/route/app-paths-manifest.json +3 -0
  31. package/.next/standalone/.next/server/app/api/agent/{internal/span → live/attach}/route.js +11 -11
  32. package/.next/standalone/.next/server/app/api/agent/live/attach/route.js.nft.json +1 -0
  33. package/.next/standalone/.next/server/app/api/agent/live/attach/route_client-reference-manifest.js +3 -0
  34. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route/app-paths-manifest.json +3 -0
  35. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route/build-manifest.json +9 -0
  36. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route/server-reference-manifest.json +4 -0
  37. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route.js +17 -0
  38. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route.js.map +5 -0
  39. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route.js.nft.json +1 -0
  40. package/.next/standalone/.next/server/app/api/agent/live/md-preview/route_client-reference-manifest.js +3 -0
  41. package/.next/standalone/.next/server/app/api/agent/live/poll/route/app-paths-manifest.json +3 -0
  42. package/.next/standalone/.next/server/app/api/agent/live/poll/route/build-manifest.json +9 -0
  43. package/.next/standalone/.next/server/app/api/agent/live/poll/route/server-reference-manifest.json +4 -0
  44. package/.next/standalone/.next/server/app/api/agent/live/poll/route.js +17 -0
  45. package/.next/standalone/.next/server/app/api/agent/live/poll/route.js.map +5 -0
  46. package/.next/standalone/.next/server/app/api/agent/live/poll/route.js.nft.json +1 -0
  47. package/.next/standalone/.next/server/app/api/agent/live/poll/route_client-reference-manifest.js +3 -0
  48. package/.next/standalone/.next/server/app/api/agent/live/reply/route/app-paths-manifest.json +3 -0
  49. package/.next/standalone/.next/server/app/api/agent/live/reply/route/build-manifest.json +9 -0
  50. package/.next/standalone/.next/server/app/api/agent/live/reply/route/server-reference-manifest.json +4 -0
  51. package/.next/standalone/.next/server/app/api/agent/live/reply/route.js +17 -0
  52. package/.next/standalone/.next/server/app/api/agent/live/reply/route.js.map +5 -0
  53. package/.next/standalone/.next/server/app/api/agent/{internal/span → live/reply}/route.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/api/agent/live/reply/route_client-reference-manifest.js +3 -0
  55. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route/app-paths-manifest.json +3 -0
  56. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route/build-manifest.json +9 -0
  57. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route/server-reference-manifest.json +4 -0
  58. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route.js +18 -0
  59. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route.js.map +5 -0
  60. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route.js.nft.json +1 -0
  61. package/.next/standalone/.next/server/app/api/agent/live/web-preview/route_client-reference-manifest.js +3 -0
  62. package/.next/standalone/.next/server/app/api/agent/settings/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js +9 -9
  64. package/.next/standalone/.next/server/app/api/agent/sidecar/[...path]/route.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
  66. package/.next/standalone/.next/server/app/api/assets/[...path]/route.js.nft.json +1 -1
  67. package/.next/standalone/.next/server/app/api/pdf/save/route.js.nft.json +1 -1
  68. package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js +1 -1
  69. package/.next/standalone/.next/server/app/api/share/[token]/asset/route.js.nft.json +1 -1
  70. package/.next/standalone/.next/server/app/api/share/[token]/route.js +1 -1
  71. package/.next/standalone/.next/server/app/api/share/[token]/route.js.nft.json +1 -1
  72. package/.next/standalone/.next/server/app/api/share/route.js +1 -1
  73. package/.next/standalone/.next/server/app/api/share/route.js.nft.json +1 -1
  74. package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
  75. package/.next/standalone/.next/server/app/api/system/reveal/route.js.nft.json +1 -1
  76. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/branch/route.js.nft.json +1 -1
  77. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/open/route.js.nft.json +1 -1
  78. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/refresh/route.js.nft.json +1 -1
  79. package/.next/standalone/.next/server/app/api/system/workspaces/[id]/route.js.nft.json +1 -1
  80. package/.next/standalone/.next/server/app/api/system/workspaces/route.js.nft.json +1 -1
  81. package/.next/standalone/.next/server/app/api/upload/[...path]/route.js.nft.json +1 -1
  82. package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
  83. package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js +1 -1
  84. package/.next/standalone/.next/server/app/api/wiki/backlinks/route.js.nft.json +1 -1
  85. package/.next/standalone/.next/server/app/api/wiki/content/route.js +1 -1
  86. package/.next/standalone/.next/server/app/api/wiki/content/route.js.nft.json +1 -1
  87. package/.next/standalone/.next/server/app/api/wiki/download/route.js.nft.json +1 -1
  88. package/.next/standalone/.next/server/app/api/wiki/folder/route.js.nft.json +1 -1
  89. package/.next/standalone/.next/server/app/api/wiki/git-branches/route.js.nft.json +1 -1
  90. package/.next/standalone/.next/server/app/api/wiki/git-checkout/route.js.nft.json +1 -1
  91. package/.next/standalone/.next/server/app/api/wiki/git-diff/route.js.nft.json +1 -1
  92. package/.next/standalone/.next/server/app/api/wiki/git-file-info/route.js.nft.json +1 -1
  93. package/.next/standalone/.next/server/app/api/wiki/git-history/route.js.nft.json +1 -1
  94. package/.next/standalone/.next/server/app/api/wiki/git-pull/route.js.nft.json +1 -1
  95. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route/app-paths-manifest.json +3 -0
  96. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route/build-manifest.json +9 -0
  97. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route/server-reference-manifest.json +4 -0
  98. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route.js +18 -0
  99. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route.js.map +5 -0
  100. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route.js.nft.json +1 -0
  101. package/.next/standalone/.next/server/app/api/wiki/live/md-request/route_client-reference-manifest.js +3 -0
  102. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route/app-paths-manifest.json +3 -0
  103. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route/build-manifest.json +9 -0
  104. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route/server-reference-manifest.json +4 -0
  105. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route.js +18 -0
  106. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route.js.map +5 -0
  107. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route.js.nft.json +1 -0
  108. package/.next/standalone/.next/server/app/api/wiki/live/md-resolve/route_client-reference-manifest.js +3 -0
  109. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route/app-paths-manifest.json +3 -0
  110. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route/build-manifest.json +9 -0
  111. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route/server-reference-manifest.json +4 -0
  112. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route.js +16 -0
  113. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route.js.map +5 -0
  114. package/.next/standalone/.next/server/app/api/wiki/live/md-status/route.js.nft.json +1 -0
  115. package/.next/standalone/.next/server/app/api/{agent/internal/span → wiki/live/md-status}/route_client-reference-manifest.js +1 -1
  116. package/.next/standalone/.next/server/app/api/wiki/live/request/route/app-paths-manifest.json +3 -0
  117. package/.next/standalone/.next/server/app/api/wiki/live/request/route/build-manifest.json +9 -0
  118. package/.next/standalone/.next/server/app/api/wiki/live/request/route/server-reference-manifest.json +4 -0
  119. package/.next/standalone/.next/server/app/api/wiki/live/request/route.js +16 -0
  120. package/.next/standalone/.next/server/app/api/wiki/live/request/route.js.map +5 -0
  121. package/.next/standalone/.next/server/app/api/wiki/live/request/route.js.nft.json +1 -0
  122. package/.next/standalone/.next/server/app/api/wiki/live/request/route_client-reference-manifest.js +3 -0
  123. package/.next/standalone/.next/server/app/api/wiki/live/status/route/app-paths-manifest.json +3 -0
  124. package/.next/standalone/.next/server/app/api/wiki/live/status/route/build-manifest.json +9 -0
  125. package/.next/standalone/.next/server/app/api/wiki/live/status/route/server-reference-manifest.json +4 -0
  126. package/.next/standalone/.next/server/app/api/wiki/live/status/route.js +17 -0
  127. package/.next/standalone/.next/server/app/api/wiki/live/status/route.js.map +5 -0
  128. package/.next/standalone/.next/server/app/api/wiki/live/status/route.js.nft.json +1 -0
  129. package/.next/standalone/.next/server/app/api/wiki/live/status/route_client-reference-manifest.js +3 -0
  130. package/.next/standalone/.next/server/app/api/wiki/move/route.js.nft.json +1 -1
  131. package/.next/standalone/.next/server/app/api/wiki/new-file/route.js.nft.json +1 -1
  132. package/.next/standalone/.next/server/app/api/wiki/outlinks/route.js.nft.json +1 -1
  133. package/.next/standalone/.next/server/app/api/wiki/page/route.js.nft.json +1 -1
  134. package/.next/standalone/.next/server/app/api/wiki/presence/route.js.nft.json +1 -1
  135. package/.next/standalone/.next/server/app/api/wiki/route.js.nft.json +1 -1
  136. package/.next/standalone/.next/server/app/api/wiki/scratch/route.js.nft.json +1 -1
  137. package/.next/standalone/.next/server/app/api/wiki/search/route.js +1 -1
  138. package/.next/standalone/.next/server/app/api/wiki/search/route.js.nft.json +1 -1
  139. package/.next/standalone/.next/server/app/api/wiki/slugs/route.js.nft.json +1 -1
  140. package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
  141. package/.next/standalone/.next/server/app/api/wiki/watch/route.js.nft.json +1 -1
  142. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route/app-paths-manifest.json +3 -0
  143. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route/build-manifest.json +9 -0
  144. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route/server-reference-manifest.json +4 -0
  145. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route.js +7 -0
  146. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route.js.map +5 -0
  147. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route.js.nft.json +1 -0
  148. package/.next/standalone/.next/server/app/api/wiki/web-tweak/picker.js/route_client-reference-manifest.js +3 -0
  149. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route/app-paths-manifest.json +3 -0
  150. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route/build-manifest.json +9 -0
  151. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route/server-reference-manifest.json +4 -0
  152. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route.js +16 -0
  153. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route.js.map +5 -0
  154. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route.js.nft.json +1 -0
  155. package/.next/standalone/.next/server/app/api/wiki/web-tweak/request/route_client-reference-manifest.js +3 -0
  156. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route/app-paths-manifest.json +3 -0
  157. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route/build-manifest.json +9 -0
  158. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route/server-reference-manifest.json +4 -0
  159. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route.js +17 -0
  160. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route.js.map +5 -0
  161. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route.js.nft.json +1 -0
  162. package/.next/standalone/.next/server/app/api/wiki/web-tweak/resolve/route_client-reference-manifest.js +3 -0
  163. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route/app-paths-manifest.json +3 -0
  164. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route/build-manifest.json +9 -0
  165. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route/server-reference-manifest.json +4 -0
  166. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route.js +16 -0
  167. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route.js.map +5 -0
  168. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route.js.nft.json +1 -0
  169. package/.next/standalone/.next/server/app/api/wiki/web-tweak/status/route_client-reference-manifest.js +3 -0
  170. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  171. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  172. package/.next/standalone/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  173. package/.next/standalone/.next/server/app/signin/page_client-reference-manifest.js +1 -1
  174. package/.next/standalone/.next/server/app-paths-manifest.json +14 -1
  175. package/.next/standalone/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_031ecpl.js +274 -0
  176. package/.next/standalone/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0afqvqi.js +3 -0
  177. package/.next/standalone/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0ofi5.l.js +3 -0
  178. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__07wa2lq._.js → [root-of-the-server]__0-l8919._.js} +2 -2
  179. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0e~2gkf._.js → [root-of-the-server]__0-vsohg._.js} +2 -2
  180. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.xk8gi._.js +1 -1
  181. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0002pqj._.js +1 -1
  182. package/.next/standalone/.next/server/chunks/[root-of-the-server]__01v1udu._.js +16 -0
  183. package/.next/standalone/.next/server/chunks/[root-of-the-server]__01y-312._.js +1 -1
  184. package/.next/standalone/.next/server/chunks/[root-of-the-server]__020sc-x._.js +1 -1
  185. package/.next/standalone/.next/server/chunks/[root-of-the-server]__02373p-._.js +1 -1
  186. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0n2r6u9._.js → [root-of-the-server]__03c8~ck._.js} +2 -2
  187. package/.next/standalone/.next/server/chunks/[root-of-the-server]__03qy0.z._.js +55 -0
  188. package/.next/standalone/.next/server/chunks/[root-of-the-server]__056pu9b._.js +1 -1
  189. package/.next/standalone/.next/server/chunks/[root-of-the-server]__06kspyc._.js +3 -0
  190. package/.next/standalone/.next/server/chunks/[root-of-the-server]__07bxa4u._.js +90 -0
  191. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08xiuca._.js +1 -1
  192. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0936qml._.js +43 -0
  193. package/.next/standalone/.next/server/chunks/[root-of-the-server]__09g2xhj._.js +3 -0
  194. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0badnl7._.js +43 -0
  195. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bqhp4b._.js +1 -1
  196. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0dk42.p._.js +90 -0
  197. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e_irm6._.js +1 -1
  198. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0iksibp._.js +3 -0
  199. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0jlrhzi._.js +55 -0
  200. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kamtmx._.js +50 -0
  201. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kpcc70._.js +3 -0
  202. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0laknd~._.js +3 -0
  203. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0m.o598._.js +3 -0
  204. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0mgvfb5._.js +1 -1
  205. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0n7uto3._.js +1 -1
  206. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0oxzq2p._.js +8 -0
  207. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0r-3u3v._.js +8 -0
  208. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0t8r97l._.js +50 -0
  209. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0vuw0yp._.js +50 -0
  210. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0xoz8e8._.js → [root-of-the-server]__0wtrbmm._.js} +2 -2
  211. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0y4lx2l._.js +50 -0
  212. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0z5xk6f._.js +1 -1
  213. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0zrcu6l._.js +20 -0
  214. package/.next/standalone/.next/server/chunks/[root-of-the-server]__10-ona2._.js +20 -0
  215. package/.next/standalone/.next/server/chunks/[root-of-the-server]__130a-u1._.js +50 -0
  216. package/.next/standalone/.next/server/chunks/_079xuln._.js +1 -1
  217. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_live_attach_route_actions_0cy5eae.js +3 -0
  218. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_live_md-preview_route_actions_07po~tm.js +3 -0
  219. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_live_poll_route_actions_0tef7r~.js +3 -0
  220. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_live_reply_route_actions_0modpib.js +3 -0
  221. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_live_web-preview_route_actions_0qjm1cw.js +3 -0
  222. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_live_md-request_route_actions_0z5ad2q.js +3 -0
  223. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_live_md-resolve_route_actions_0_8g88b.js +3 -0
  224. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_live_md-status_route_actions_02ykgzf.js +3 -0
  225. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_live_request_route_actions_00m8pc2.js +3 -0
  226. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_live_status_route_actions_0v.pypx.js +3 -0
  227. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_web-tweak_picker_js_route_actions_118~f~j.js +3 -0
  228. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_web-tweak_request_route_actions_0wlzrco.js +3 -0
  229. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_web-tweak_resolve_route_actions_0wq6pw5.js +3 -0
  230. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_wiki_web-tweak_status_route_actions_0vr4h6u.js +3 -0
  231. package/.next/standalone/.next/server/chunks/ssr/{0~w0_katex_dist_katex_mjs_0-fyxoz._.js → 0~w0_katex_dist_katex_mjs_0okh~tf._.js} +1 -1
  232. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_blockDiagram-GPEHLZMM_mjs_0v204vn._.js +1 -1
  233. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_c4Diagram-AAUBKEIU_mjs_0.iwqva._.js +1 -1
  234. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-3OPIFGDE_mjs_09p1amp._.js +1 -1
  235. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-5ZQYHXKU_mjs_0z1.978._.js +1 -1
  236. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-727SXJPM_mjs_115~dsb._.js +1 -1
  237. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-AQP2D5EJ_mjs_0euza.d._.js +1 -1
  238. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-CSCIHK7Q_mjs_01i7moi._.js +2 -2
  239. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-KSCS5N6A_mjs_0v4oeem._.js +1 -1
  240. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_chunk-O5CBEL6O_mjs_11437bo._.js +1 -1
  241. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_dagre-BM42HDAG_mjs_05ekknz._.js +1 -1
  242. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_diagram-OG6HWLK6_mjs_0t5sus6._.js +1 -1
  243. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_erDiagram-TEJ5UH35_mjs_0v6rnqy._.js +1 -1
  244. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_flowDiagram-I6XJVG4X_mjs_13pu1pv._.js +1 -1
  245. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_gitGraphDiagram-PVQCEYII_mjs_0jp8i-h._.js +1 -1
  246. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_ishikawaDiagram-YF4QCWOH_mjs_0tcayi4._.js +1 -1
  247. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_journeyDiagram-JHISSGLW_mjs_0-ln2o9._.js +1 -1
  248. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_kanban-definition-UN3LZRKU_mjs_0_sdvmq._.js +1 -1
  249. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_mindmap-definition-RKZ34NQL_mjs_002sdr9._.js +1 -1
  250. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0re1qsf._.js +1 -1
  251. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_requirementDiagram-4Y6WPE33_mjs_067p6fg._.js +1 -1
  252. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_sankeyDiagram-5OEKKPKP_mjs_11ifrnu._.js +1 -1
  253. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_sequenceDiagram-3UESZ5HK_mjs_015n5fb._.js +1 -1
  254. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0q8ykwx._.js +1 -1
  255. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_timeline-definition-PNZ67QCA_mjs_0ie6b6s._.js +1 -1
  256. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_vennDiagram-CIIHVFJN_mjs_0hds9fe._.js +1 -1
  257. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_wardleyDiagram-YWT4CUSO_mjs_0s.dkn9._.js +1 -1
  258. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_chunks_mermaid_core_xychartDiagram-2RQKCTM6_mjs_0v-eh5w._.js +1 -1
  259. package/.next/standalone/.next/server/chunks/ssr/12y~_mermaid_dist_mermaid_core_mjs_0hj_n-~._.js +1 -1
  260. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0~4py6h._.js → [root-of-the-server]__0t5fses._.js} +2 -2
  261. package/.next/standalone/.next/server/chunks/ssr/_0d9d~c~._.js +1 -1
  262. package/.next/standalone/.next/server/chunks/ssr/_0kkaybx._.js +1 -1
  263. package/.next/standalone/.next/server/chunks/ssr/_0oq8kwv._.js +284 -12
  264. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f0qocb._.js → node_modules__pnpm_0-l23--._.js} +2 -2
  265. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0_g0a7t._.js → node_modules__pnpm_00d-n5v._.js} +2 -2
  266. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0v7wopg._.js → node_modules__pnpm_014r.0e._.js} +2 -2
  267. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0zdl7-7._.js → node_modules__pnpm_03j578g._.js} +2 -2
  268. package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_04rulr6._.js +1 -1
  269. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_09y5c~i._.js → node_modules__pnpm_05qsb2c._.js} +2 -2
  270. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0sdy2lv._.js → node_modules__pnpm_08i5ti8._.js} +2 -2
  271. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0b6_242._.js → node_modules__pnpm_09t82cx._.js} +2 -2
  272. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f6r-u~._.js → node_modules__pnpm_09~hu70._.js} +3 -3
  273. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0pggrwu._.js → node_modules__pnpm_0cfriah._.js} +2 -2
  274. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_02qa21p._.js → node_modules__pnpm_0ct341~._.js} +2 -2
  275. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0d4-t2b._.js → node_modules__pnpm_0eps_u_._.js} +2 -2
  276. package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0fb6~r_._.js +1 -1
  277. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0q9s5k5._.js → node_modules__pnpm_0k47joo._.js} +2 -2
  278. package/.next/standalone/.next/server/chunks/ssr/node_modules__pnpm_0l9eomm._.js +1 -1
  279. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0q_v1_2._.js → node_modules__pnpm_0nsy85b._.js} +1 -1
  280. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0vahm7l._.js → node_modules__pnpm_0n~wbom._.js} +2 -2
  281. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0.xieh4._.js → node_modules__pnpm_0o1._vw._.js} +2 -2
  282. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0kib6pw._.js → node_modules__pnpm_0t21hj7._.js} +2 -2
  283. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0~wqhb9._.js → node_modules__pnpm_0tl8mi0._.js} +2 -2
  284. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0f9artj._.js → node_modules__pnpm_0tqv.ym._.js} +2 -2
  285. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_05c~go7._.js → node_modules__pnpm_0v9mhna._.js} +3 -3
  286. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_07hg43b._.js → node_modules__pnpm_0w8.hpb._.js} +1 -1
  287. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0_zd0nt._.js → node_modules__pnpm_0wrxa~f._.js} +2 -2
  288. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0g_tlt-._.js → node_modules__pnpm_0xrjcxa._.js} +2 -2
  289. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0ghm84g._.js → node_modules__pnpm_0xrusyy._.js} +3 -3
  290. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0c6q9~6._.js → node_modules__pnpm_0y.wb-7._.js} +1 -1
  291. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0tvmv0e._.js → node_modules__pnpm_0yu-3eu._.js} +2 -2
  292. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_0k6yfdh._.js → node_modules__pnpm_11q1n~-._.js} +2 -2
  293. package/.next/standalone/.next/server/chunks/ssr/{node_modules__pnpm_01~03ak._.js → node_modules__pnpm_1323nh~._.js} +2 -2
  294. package/.next/standalone/.next/server/functions-config-manifest.json +15 -2
  295. package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
  296. package/.next/standalone/.next/server/pages/500.html +1 -1
  297. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  298. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  299. package/.next/standalone/.next/static/chunks/0k~5ok-cacnor.js +417 -0
  300. package/.next/standalone/.next/static/chunks/{04um2f1eeqcss.js → 0noq2zqrh0z_0.js} +1 -1
  301. package/.next/standalone/.next/static/chunks/{04f8lhbw6m9ee.js → 0tn7wdt213lbb.js} +1 -1
  302. package/.next/standalone/.next/static/chunks/{138ap~9f.rqkh.css → 12-umagms5yro.css} +1 -1
  303. package/.next/standalone/.next/static/chunks/17446l.6t9j17.css +1 -0
  304. package/.next/standalone/.test-floor +1 -1
  305. package/.next/standalone/_status.md +19 -0
  306. package/.next/standalone/meta/contract.md +67 -0
  307. package/.next/standalone/meta/overview.md +10 -0
  308. package/.next/standalone/package.json +1 -1
  309. package/.next/standalone/queries/lint-2026-08-15.md +28 -0
  310. package/.next/standalone/server.js +1 -1
  311. package/.next/standalone/specs/changes/block-preconditions/proposal.md +90 -0
  312. package/.next/standalone/specs/changes/blockref-frontmatter-misalign/proposal.md +81 -0
  313. package/.next/standalone/specs/changes/collective-agent-review/design.md +183 -0
  314. package/.next/standalone/specs/changes/collective-agent-review/proposal.md +138 -0
  315. package/.next/standalone/specs/changes/collective-agent-review/requirements.md +100 -0
  316. package/.next/standalone/specs/changes/collective-agent-review/tasks.md +62 -0
  317. package/.next/standalone/specs/changes/live-collab/design.md +141 -0
  318. package/.next/standalone/specs/changes/live-collab/proposal.md +133 -0
  319. package/.next/standalone/specs/changes/live-collab/requirements.md +91 -0
  320. package/.next/standalone/specs/changes/live-collab/tasks.md +39 -0
  321. package/.next/standalone/specs/changes/live-collab-web/findings-termdeck.md +120 -0
  322. package/.next/standalone/specs/changes/live-collab-web/proposal.md +184 -0
  323. package/.next/standalone/specs/changes/live-unified/design.md +49 -0
  324. package/.next/standalone/specs/changes/live-unified/proposal.md +54 -0
  325. package/.next/standalone/specs/changes/web-tweak-variants/proposal.md +65 -0
  326. package/.next/standalone/wp-test-6mm5qr/burst-0.txt +1 -0
  327. package/.next/standalone/wp-test-6mm5qr/burst-1.txt +1 -0
  328. package/.next/standalone/wp-test-6mm5qr/burst-10.txt +1 -0
  329. package/.next/standalone/wp-test-6mm5qr/burst-11.txt +1 -0
  330. package/.next/standalone/wp-test-6mm5qr/burst-12.txt +1 -0
  331. package/.next/standalone/wp-test-6mm5qr/burst-13.txt +1 -0
  332. package/.next/standalone/wp-test-6mm5qr/burst-14.txt +1 -0
  333. package/.next/standalone/wp-test-6mm5qr/burst-15.txt +1 -0
  334. package/.next/standalone/wp-test-6mm5qr/burst-16.txt +1 -0
  335. package/.next/standalone/wp-test-6mm5qr/burst-17.txt +1 -0
  336. package/.next/standalone/wp-test-6mm5qr/burst-18.txt +1 -0
  337. package/.next/standalone/wp-test-6mm5qr/burst-19.txt +1 -0
  338. package/.next/standalone/wp-test-6mm5qr/burst-2.txt +1 -0
  339. package/.next/standalone/wp-test-6mm5qr/burst-20.txt +1 -0
  340. package/.next/standalone/wp-test-6mm5qr/burst-21.txt +1 -0
  341. package/.next/standalone/wp-test-6mm5qr/burst-22.txt +1 -0
  342. package/.next/standalone/wp-test-6mm5qr/burst-23.txt +1 -0
  343. package/.next/standalone/wp-test-6mm5qr/burst-24.txt +1 -0
  344. package/.next/standalone/wp-test-6mm5qr/burst-25.txt +1 -0
  345. package/.next/standalone/wp-test-6mm5qr/burst-26.txt +1 -0
  346. package/.next/standalone/wp-test-6mm5qr/burst-27.txt +1 -0
  347. package/.next/standalone/wp-test-6mm5qr/burst-28.txt +1 -0
  348. package/.next/standalone/wp-test-6mm5qr/burst-29.txt +1 -0
  349. package/.next/standalone/wp-test-6mm5qr/burst-3.txt +1 -0
  350. package/.next/standalone/wp-test-6mm5qr/burst-30.txt +1 -0
  351. package/.next/standalone/wp-test-6mm5qr/burst-31.txt +1 -0
  352. package/.next/standalone/wp-test-6mm5qr/burst-32.txt +1 -0
  353. package/.next/standalone/wp-test-6mm5qr/burst-33.txt +1 -0
  354. package/.next/standalone/wp-test-6mm5qr/burst-34.txt +1 -0
  355. package/.next/standalone/wp-test-6mm5qr/burst-35.txt +1 -0
  356. package/.next/standalone/wp-test-6mm5qr/burst-36.txt +1 -0
  357. package/.next/standalone/wp-test-6mm5qr/burst-37.txt +1 -0
  358. package/.next/standalone/wp-test-6mm5qr/burst-38.txt +1 -0
  359. package/.next/standalone/wp-test-6mm5qr/burst-39.txt +1 -0
  360. package/.next/standalone/wp-test-6mm5qr/burst-4.txt +1 -0
  361. package/.next/standalone/wp-test-6mm5qr/burst-40.txt +1 -0
  362. package/.next/standalone/wp-test-6mm5qr/burst-41.txt +1 -0
  363. package/.next/standalone/wp-test-6mm5qr/burst-42.txt +1 -0
  364. package/.next/standalone/wp-test-6mm5qr/burst-43.txt +1 -0
  365. package/.next/standalone/wp-test-6mm5qr/burst-44.txt +1 -0
  366. package/.next/standalone/wp-test-6mm5qr/burst-45.txt +1 -0
  367. package/.next/standalone/wp-test-6mm5qr/burst-46.txt +1 -0
  368. package/.next/standalone/wp-test-6mm5qr/burst-47.txt +1 -0
  369. package/.next/standalone/wp-test-6mm5qr/burst-48.txt +1 -0
  370. package/.next/standalone/wp-test-6mm5qr/burst-49.txt +1 -0
  371. package/.next/standalone/wp-test-6mm5qr/burst-5.txt +1 -0
  372. package/.next/standalone/wp-test-6mm5qr/burst-6.txt +1 -0
  373. package/.next/standalone/wp-test-6mm5qr/burst-7.txt +1 -0
  374. package/.next/standalone/wp-test-6mm5qr/burst-8.txt +1 -0
  375. package/.next/standalone/wp-test-6mm5qr/burst-9.txt +1 -0
  376. package/.next/standalone/wp-test-SiMBLk/child/nested.txt +1 -0
  377. package/.next/standalone/wp-test-SiMBLk/rootfile.txt +1 -0
  378. package/.next/standalone/wp-test-bFyuuZ/child/nested.txt +1 -0
  379. package/.next/standalone/wp-test-bFyuuZ/rootfile.txt +1 -0
  380. package/.next/standalone/wp-test-dn9shN/after-reset.txt +1 -0
  381. package/.next/standalone/wp-test-gL64l2/shared.txt +1 -0
  382. package/.next/standalone/wp-test-mlyQ7q/test.txt +1 -0
  383. package/.next/standalone/wp-test-o3g2XI/shared.txt +1 -0
  384. package/.next/standalone/wp-test-oHeYCM/subA/a.txt +1 -0
  385. package/.next/standalone/wp-test-oHeYCM/subB/b.txt +1 -0
  386. package/package.json +1 -1
  387. package/.next/standalone/.next/server/app/api/agent/internal/span/route/app-paths-manifest.json +0 -3
  388. package/.next/standalone/.next/server/chunks/[root-of-the-server]__04vo55d._.js +0 -3
  389. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0_g-.kr._.js +0 -20
  390. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0bpv09n._.js +0 -20
  391. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e1kbl7._.js +0 -3
  392. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0omny3u._.js +0 -3
  393. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0q~ky91._.js +0 -16
  394. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0r--676._.js +0 -3
  395. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0x.030x._.js +0 -3
  396. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0xlo2r_._.js +0 -3
  397. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_agent_internal_span_route_actions_121if52.js +0 -3
  398. package/.next/standalone/.next/static/chunks/0gogvjz6oxo51.css +0 -1
  399. package/.next/standalone/.next/static/chunks/11ehczv8yax~_.js +0 -145
  400. /package/.next/standalone/.next/server/app/api/agent/{internal/span → live/attach}/route/build-manifest.json +0 -0
  401. /package/.next/standalone/.next/server/app/api/agent/{internal/span → live/attach}/route/server-reference-manifest.json +0 -0
  402. /package/.next/standalone/.next/server/app/api/agent/{internal/span → live/attach}/route.js.map +0 -0
  403. /package/.next/standalone/.next/static/{AsrmwC0YfrYEMAXj2s0Wx → BXRSlvxAOCUzi4h8wCLQi}/_buildManifest.js +0 -0
  404. /package/.next/standalone/.next/static/{AsrmwC0YfrYEMAXj2s0Wx → BXRSlvxAOCUzi4h8wCLQi}/_clientMiddlewareManifest.js +0 -0
  405. /package/.next/standalone/.next/static/{AsrmwC0YfrYEMAXj2s0Wx → BXRSlvxAOCUzi4h8wCLQi}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[246378,a=>{"use strict";var b=a.i(604225),c=a.i(762939);a.i(43066);var d=a.i(951),e=a.i(455784),f=function(){var a=(0,c.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,3],d=[1,4],e=[1,5],f=[1,6],g=[1,7],h=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],i=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],j=[55,56,57],k=[2,36],l=[1,37],m=[1,36],n=[1,38],o=[1,35],p=[1,43],q=[1,41],r=[1,45],s=[1,14],t=[1,23],u=[1,18],v=[1,19],w=[1,20],x=[1,21],y=[1,22],z=[1,24],A=[1,25],B=[1,26],C=[1,27],D=[1,28],E=[1,29],F=[1,32],G=[1,33],H=[1,34],I=[1,39],J=[1,40],K=[1,42],L=[1,44],M=[1,63],N=[1,62],O=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],P=[1,66],Q=[1,67],R=[1,68],S=[1,69],T=[1,70],U=[1,71],V=[1,72],W=[1,73],X=[1,74],Y=[1,75],Z=[1,76],$=[1,77],_=[4,5,6,7,8,9,10,11,12,13,14,15,18],aa=[1,91],ab=[1,92],ac=[1,93],ad=[1,100],ae=[1,94],af=[1,97],ag=[1,95],ah=[1,96],ai=[1,98],aj=[1,99],ak=[1,103],al=[10,55,56,57],am=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],an={trace:(0,c.__name)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,c.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 23:case 68:this.$=f[h];break;case 24:case 69:this.$=f[h-1]+""+f[h];break;case 26:this.$=f[h-1]+f[h];break;case 27:this.$=[f[h].trim()];break;case 28:f[h-2].push(f[h].trim()),this.$=f[h-2];break;case 29:this.$=f[h-4],d.addClass(f[h-2],f[h]);break;case 37:this.$=[];break;case 42:this.$=f[h].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(f[h].substr(8)),this.$=f[h].substr(8);break;case 47:d.addPoint(f[h-3],"",f[h-1],f[h],[]);break;case 48:d.addPoint(f[h-4],f[h-3],f[h-1],f[h],[]);break;case 49:d.addPoint(f[h-4],"",f[h-2],f[h-1],f[h]);break;case 50:d.addPoint(f[h-5],f[h-4],f[h-2],f[h-1],f[h]);break;case 51:d.setXAxisLeftText(f[h-2]),d.setXAxisRightText(f[h]);break;case 52:f[h-1].text+=" ⟶ ",d.setXAxisLeftText(f[h-1]);break;case 53:d.setXAxisLeftText(f[h]);break;case 54:d.setYAxisBottomText(f[h-2]),d.setYAxisTopText(f[h]);break;case 55:f[h-1].text+=" ⟶ ",d.setYAxisBottomText(f[h-1]);break;case 56:d.setYAxisBottomText(f[h]);break;case 57:d.setQuadrant1Text(f[h]);break;case 58:d.setQuadrant2Text(f[h]);break;case 59:d.setQuadrant3Text(f[h]);break;case 60:d.setQuadrant4Text(f[h]);break;case 64:case 66:this.$={text:f[h],type:"text"};break;case 65:this.$={text:f[h-1].text+""+f[h],type:f[h-1].type};break;case 67:this.$={text:f[h],type:"markdown"}}},"anonymous"),table:[{18:b,26:1,27:2,28:d,55:e,56:f,57:g},{1:[3]},{18:b,26:8,27:2,28:d,55:e,56:f,57:g},{18:b,26:9,27:2,28:d,55:e,56:f,57:g},a(h,[2,33],{29:10}),a(i,[2,61]),a(i,[2,62]),a(i,[2,63]),{1:[2,30]},{1:[2,31]},a(j,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:l,5:m,10:n,12:o,13:p,14:q,15:r,18:s,25:t,35:u,37:v,39:w,41:x,42:y,48:z,50:A,51:B,52:C,53:D,54:E,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(h,[2,34]),{27:46,55:e,56:f,57:g},a(j,[2,37]),a(j,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:l,5:m,10:n,12:o,13:p,14:q,15:r,18:s,25:t,35:u,37:v,39:w,41:x,42:y,48:z,50:A,51:B,52:C,53:D,54:E,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(j,[2,39]),a(j,[2,40]),a(j,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},a(j,[2,45]),a(j,[2,46]),{18:[1,51]},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:52,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:53,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:54,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:55,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:56,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:57,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,44:[1,58],47:[1,59],58:61,59:60,63:H,64:I,65:J,66:K,67:L},a(O,[2,64]),a(O,[2,66]),a(O,[2,67]),a(O,[2,70]),a(O,[2,71]),a(O,[2,72]),a(O,[2,73]),a(O,[2,74]),a(O,[2,75]),a(O,[2,76]),a(O,[2,77]),a(O,[2,78]),a(O,[2,79]),a(O,[2,80]),a(O,[2,81]),a(h,[2,35]),a(j,[2,38]),a(j,[2,42]),a(j,[2,43]),a(j,[2,44]),{3:65,4:P,5:Q,6:R,7:S,8:T,9:U,10:V,11:W,12:X,13:Y,14:Z,15:$,21:64},a(j,[2,53],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,49:[1,78],63:H,64:I,65:J,66:K,67:L}),a(j,[2,56],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,49:[1,79],63:H,64:I,65:J,66:K,67:L}),a(j,[2,57],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,58],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,59],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,60],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),{45:[1,80]},{44:[1,81]},a(O,[2,65]),a(O,[2,82]),a(O,[2,83]),a(O,[2,84]),{3:83,4:P,5:Q,6:R,7:S,8:T,9:U,10:V,11:W,12:X,13:Y,14:Z,15:$,18:[1,82]},a(_,[2,23]),a(_,[2,1]),a(_,[2,2]),a(_,[2,3]),a(_,[2,4]),a(_,[2,5]),a(_,[2,6]),a(_,[2,7]),a(_,[2,8]),a(_,[2,9]),a(_,[2,10]),a(_,[2,11]),a(_,[2,12]),a(j,[2,52],{58:31,43:84,4:l,5:m,10:n,12:o,13:p,14:q,15:r,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(j,[2,55],{58:31,43:85,4:l,5:m,10:n,12:o,13:p,14:q,15:r,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),{46:[1,86]},{45:[1,87]},{4:aa,5:ab,6:ac,8:ad,11:ae,13:af,16:90,17:ag,18:ah,19:ai,20:aj,22:89,23:88},a(_,[2,24]),a(j,[2,51],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,54],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,47],{22:89,16:90,23:101,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),{46:[1,102]},a(j,[2,29],{10:ak}),a(al,[2,27],{16:104,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),a(am,[2,25]),a(am,[2,13]),a(am,[2,14]),a(am,[2,15]),a(am,[2,16]),a(am,[2,17]),a(am,[2,18]),a(am,[2,19]),a(am,[2,20]),a(am,[2,21]),a(am,[2,22]),a(j,[2,49],{10:ak}),a(j,[2,48],{22:89,16:90,23:105,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),{4:aa,5:ab,6:ac,8:ad,11:ae,13:af,16:90,17:ag,18:ah,19:ai,20:aj,22:106},a(am,[2,26]),a(j,[2,50],{10:ak}),a(al,[2,28],{16:104,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,c.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,c.__name)(function(a){var b=this,d=[0],e=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=e.pop()||n.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.__name)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,c.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=d[d.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:d.push(t),f.push(n.yytext),g.push(n.yylloc),d.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(d=d.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),d.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[d[d.length-2]][d[d.length-1]],d.push(A);break;case 3:return!0}}return!0},"parse")};function ao(){this.yy={}}return an.lexer={EOF:1,parseError:(0,c.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,c.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,c.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.__name)(function(){return this._more=!0,this},"more"),reject:(0,c.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,c.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,c.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,c.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,c.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,c.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,c.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,c.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.__name)(function(a,b,c,d){switch(c){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}},(0,c.__name)(ao,"Parser"),ao.prototype=an,an.Parser=ao,new ao}();f.parser=f;var g=(0,b.getThemeVariables)(),h=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{(0,c.__name)(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:b.defaultConfig_default.quadrantChart?.chartWidth||500,chartWidth:b.defaultConfig_default.quadrantChart?.chartHeight||500,titlePadding:b.defaultConfig_default.quadrantChart?.titlePadding||10,titleFontSize:b.defaultConfig_default.quadrantChart?.titleFontSize||20,quadrantPadding:b.defaultConfig_default.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:b.defaultConfig_default.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:b.defaultConfig_default.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:b.defaultConfig_default.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:b.defaultConfig_default.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:b.defaultConfig_default.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:b.defaultConfig_default.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:b.defaultConfig_default.quadrantChart?.pointTextPadding||5,pointLabelFontSize:b.defaultConfig_default.quadrantChart?.pointLabelFontSize||12,pointRadius:b.defaultConfig_default.quadrantChart?.pointRadius||5,xAxisPosition:b.defaultConfig_default.quadrantChart?.xAxisPosition||"top",yAxisPosition:b.defaultConfig_default.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:b.defaultConfig_default.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:b.defaultConfig_default.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:g.quadrant1Fill,quadrant2Fill:g.quadrant2Fill,quadrant3Fill:g.quadrant3Fill,quadrant4Fill:g.quadrant4Fill,quadrant1TextFill:g.quadrant1TextFill,quadrant2TextFill:g.quadrant2TextFill,quadrant3TextFill:g.quadrant3TextFill,quadrant4TextFill:g.quadrant4TextFill,quadrantPointFill:g.quadrantPointFill,quadrantPointTextFill:g.quadrantPointTextFill,quadrantXAxisTextFill:g.quadrantXAxisTextFill,quadrantYAxisTextFill:g.quadrantYAxisTextFill,quadrantTitleFill:g.quadrantTitleFill,quadrantInternalBorderStrokeFill:g.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:g.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,c.log.info("clear called")}setData(a){this.data={...this.data,...a}}addPoints(a){this.data.points=[...a,...this.data.points]}addClass(a,b){this.classes.set(a,b)}setConfig(a){c.log.trace("setConfig called with: ",a),this.config={...this.config,...a}}setThemeConfig(a){c.log.trace("setThemeConfig called with: ",a),this.themeConfig={...this.themeConfig,...a}}calculateSpace(a,b,c,d){let e=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,f={top:"top"===a&&b?e:0,bottom:"bottom"===a&&b?e:0},g=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,h={left:"left"===this.config.yAxisPosition&&c?g:0,right:"right"===this.config.yAxisPosition&&c?g:0},i=this.config.titleFontSize+2*this.config.titlePadding,j={top:d?i:0},k=this.config.quadrantPadding+h.left,l=this.config.quadrantPadding+f.top+j.top,m=this.config.chartWidth-2*this.config.quadrantPadding-h.left-h.right,n=this.config.chartHeight-2*this.config.quadrantPadding-f.top-f.bottom-j.top;return{xAxisSpace:f,yAxisSpace:h,titleSpace:j,quadrantSpace:{quadrantLeft:k,quadrantTop:l,quadrantWidth:m,quadrantHalfWidth:m/2,quadrantHeight:n,quadrantHalfHeight:n/2}}}getAxisLabels(a,b,c,d){let{quadrantSpace:e,titleSpace:f}=d,{quadrantHalfHeight:g,quadrantHeight:h,quadrantLeft:i,quadrantHalfWidth:j,quadrantTop:k,quadrantWidth:l}=e,m=!!this.data.xAxisRightText,n=!!this.data.yAxisTopText,o=[];return this.data.xAxisLeftText&&b&&o.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:i+(m?j/2:0),y:"top"===a?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+k+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&b&&o.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:i+j+(m?j/2:0),y:"top"===a?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+k+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&c&&o.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+i+l+this.config.quadrantPadding,y:k+h-(n?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:n?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&c&&o.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+i+l+this.config.quadrantPadding,y:k+g-(n?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:n?"center":"left",horizontalPos:"top",rotation:-90}),o}getQuadrants(a){let{quadrantSpace:b}=a,{quadrantHalfHeight:c,quadrantLeft:d,quadrantHalfWidth:e,quadrantTop:f}=b,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d+e,y:f,width:e,height:c,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d,y:f,width:e,height:c,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d,y:f+c,width:e,height:c,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d+e,y:f+c,width:e,height:c,fill:this.themeConfig.quadrant4Fill}];for(let a of g)a.text.x=a.x+a.width/2,0===this.data.points.length?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return g}getQuadrantPoints(a){let{quadrantSpace:b}=a,{quadrantHeight:c,quadrantLeft:e,quadrantTop:f,quadrantWidth:g}=b,h=(0,d.scaleLinear)().domain([0,1]).range([e,g+e]),i=(0,d.scaleLinear)().domain([0,1]).range([c+f,f]);return this.data.points.map(a=>{let b=this.classes.get(a.className);return b&&(a={...b,...a}),{x:h(a.x),y:i(a.y),fill:a.color??this.themeConfig.quadrantPointFill,radius:a.radius??this.config.pointRadius,text:{text:a.text,fill:this.themeConfig.quadrantPointTextFill,x:h(a.x),y:i(a.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:a.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:a.strokeWidth??"0px"}})}getBorders(a){let b=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:c}=a,{quadrantHalfHeight:d,quadrantHeight:e,quadrantLeft:f,quadrantHalfWidth:g,quadrantTop:h,quadrantWidth:i}=c;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-b,y1:h,x2:f+i+b,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f+i,y1:h+b,x2:f+i,y2:h+e-b},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-b,y1:h+e,x2:f+i+b,y2:h+e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f,y1:h+b,x2:f,y2:h+e-b},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+g,y1:h+b,x2:f+g,y2:h+e-b},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+b,y1:h+d,x2:f+i-b,y2:h+d}]}getTitle(a){if(a)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let a=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),b=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),c=this.config.showTitle&&!!this.data.titleText,d=this.data.points.length>0?"bottom":this.config.xAxisPosition,e=this.calculateSpace(d,a,b,c);return{points:this.getQuadrantPoints(e),quadrants:this.getQuadrants(e),axisLabels:this.getAxisLabels(d,a,b,e),borderLines:this.getBorders(e),title:this.getTitle(c)}}},i=class extends Error{static{(0,c.__name)(this,"InvalidStyleError")}constructor(a,b,c){super(`value for ${a} ${b} is invalid, please use a valid ${c}`),this.name="InvalidStyleError"}};function j(a){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(a)}function k(a){return!/^\d+$/.test(a)}function l(a){return!/^\d+px$/.test(a)}(0,c.__name)(j,"validateHexCode"),(0,c.__name)(k,"validateNumber"),(0,c.__name)(l,"validateSizeInPixels");var m=(0,b.getConfig2)();function n(a){return(0,b.sanitizeText)(a.trim(),m)}(0,c.__name)(n,"textSanitizer");var o=new h;function p(a){o.setData({quadrant1Text:n(a.text)})}function q(a){o.setData({quadrant2Text:n(a.text)})}function r(a){o.setData({quadrant3Text:n(a.text)})}function s(a){o.setData({quadrant4Text:n(a.text)})}function t(a){o.setData({xAxisLeftText:n(a.text)})}function u(a){o.setData({xAxisRightText:n(a.text)})}function v(a){o.setData({yAxisTopText:n(a.text)})}function w(a){o.setData({yAxisBottomText:n(a.text)})}function x(a){let b={};for(let c of a){let[a,d]=c.trim().split(/\s*:\s*/);if("radius"===a){if(k(d))throw new i(a,d,"number");b.radius=parseInt(d)}else if("color"===a){if(j(d))throw new i(a,d,"hex code");b.color=d}else if("stroke-color"===a){if(j(d))throw new i(a,d,"hex code");b.strokeColor=d}else if("stroke-width"===a){if(l(d))throw new i(a,d,"number of pixels (eg. 10px)");b.strokeWidth=d}else throw Error(`style named ${a} is not supported.`)}return b}function y(a,b,c,d,e){let f=x(e);o.addPoints([{x:c,y:d,text:n(a.text),className:b,...f}])}function z(a,b){o.addClass(a,x(b))}function A(a){o.setConfig({chartWidth:a})}function B(a){o.setConfig({chartHeight:a})}function C(){let{themeVariables:a,quadrantChart:c}=(0,b.getConfig2)();return c&&o.setConfig(c),o.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),o.setData({titleText:(0,b.getDiagramTitle)()}),o.build()}(0,c.__name)(p,"setQuadrant1Text"),(0,c.__name)(q,"setQuadrant2Text"),(0,c.__name)(r,"setQuadrant3Text"),(0,c.__name)(s,"setQuadrant4Text"),(0,c.__name)(t,"setXAxisLeftText"),(0,c.__name)(u,"setXAxisRightText"),(0,c.__name)(v,"setYAxisTopText"),(0,c.__name)(w,"setYAxisBottomText"),(0,c.__name)(x,"parseStyles"),(0,c.__name)(y,"addPoint"),(0,c.__name)(z,"addClass"),(0,c.__name)(A,"setWidth"),(0,c.__name)(B,"setHeight"),(0,c.__name)(C,"getQuadrantData");var D={setWidth:A,setHeight:B,setQuadrant1Text:p,setQuadrant2Text:q,setQuadrant3Text:r,setQuadrant4Text:s,setXAxisLeftText:t,setXAxisRightText:u,setYAxisTopText:v,setYAxisBottomText:w,parseStyles:x,addPoint:y,addClass:z,getQuadrantData:C,clear:(0,c.__name)(function(){o.clear(),(0,b.clear)()},"clear"),setAccTitle:b.setAccTitle,getAccTitle:b.getAccTitle,setDiagramTitle:b.setDiagramTitle,getDiagramTitle:b.getDiagramTitle,getAccDescription:b.getAccDescription,setAccDescription:b.setAccDescription},E={parser:f,db:D,renderer:{draw:(0,c.__name)((a,d,f,g)=>{let h;function i(a){return"top"===a?"hanging":"middle"}function j(a){return"left"===a?"start":"middle"}function k(a){return`translate(${a.x}, ${a.y}) rotate(${a.rotation||0})`}(0,c.__name)(i,"getDominantBaseLine"),(0,c.__name)(j,"getTextAnchor"),(0,c.__name)(k,"getTransformation");let l=(0,b.getConfig2)();c.log.debug("Rendering quadrant chart\n"+a);let m=l.securityLevel;"sandbox"===m&&(h=(0,e.select)("#i"+d));let n=("sandbox"===m?(0,e.select)(h.nodes()[0].contentDocument.body):(0,e.select)("body")).select(`[id="${d}"]`),o=n.append("g").attr("class","main"),p=l.quadrantChart?.chartWidth??500,q=l.quadrantChart?.chartHeight??500;(0,b.configureSvgSize)(n,q,p,l.quadrantChart?.useMaxWidth??!0),n.attr("viewBox","0 0 "+p+" "+q),g.db.setHeight(q),g.db.setWidth(p);let r=g.db.getQuadrantData(),s=o.append("g").attr("class","quadrants"),t=o.append("g").attr("class","border"),u=o.append("g").attr("class","data-points"),v=o.append("g").attr("class","labels"),w=o.append("g").attr("class","title");r.title&&w.append("text").attr("x",0).attr("y",0).attr("fill",r.title.fill).attr("font-size",r.title.fontSize).attr("dominant-baseline",i(r.title.horizontalPos)).attr("text-anchor",j(r.title.verticalPos)).attr("transform",k(r.title)).text(r.title.text),r.borderLines&&t.selectAll("line").data(r.borderLines).enter().append("line").attr("x1",a=>a.x1).attr("y1",a=>a.y1).attr("x2",a=>a.x2).attr("y2",a=>a.y2).style("stroke",a=>a.strokeFill).style("stroke-width",a=>a.strokeWidth);let x=s.selectAll("g.quadrant").data(r.quadrants).enter().append("g").attr("class","quadrant");x.append("rect").attr("x",a=>a.x).attr("y",a=>a.y).attr("width",a=>a.width).attr("height",a=>a.height).attr("fill",a=>a.fill),x.append("text").attr("x",0).attr("y",0).attr("fill",a=>a.text.fill).attr("font-size",a=>a.text.fontSize).attr("dominant-baseline",a=>i(a.text.horizontalPos)).attr("text-anchor",a=>j(a.text.verticalPos)).attr("transform",a=>k(a.text)).text(a=>a.text.text),v.selectAll("g.label").data(r.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(a=>a.text).attr("fill",a=>a.fill).attr("font-size",a=>a.fontSize).attr("dominant-baseline",a=>i(a.horizontalPos)).attr("text-anchor",a=>j(a.verticalPos)).attr("transform",a=>k(a));let y=u.selectAll("g.data-point").data(r.points).enter().append("g").attr("class","data-point");y.append("circle").attr("cx",a=>a.x).attr("cy",a=>a.y).attr("r",a=>a.radius).attr("fill",a=>a.fill).attr("stroke",a=>a.strokeColor).attr("stroke-width",a=>a.strokeWidth),y.append("text").attr("x",0).attr("y",0).text(a=>a.text.text).attr("fill",a=>a.text.fill).attr("font-size",a=>a.text.fontSize).attr("dominant-baseline",a=>i(a.text.horizontalPos)).attr("text-anchor",a=>j(a.text.verticalPos)).attr("transform",a=>k(a.text))},"draw")},styles:(0,c.__name)(()=>"","styles")};a.s(["diagram",0,E])}];
1
+ module.exports=[246378,a=>{"use strict";var b=a.i(523526),c=a.i(762939);a.i(43066);var d=a.i(951),e=a.i(455784),f=function(){var a=(0,c.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,3],d=[1,4],e=[1,5],f=[1,6],g=[1,7],h=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],i=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],j=[55,56,57],k=[2,36],l=[1,37],m=[1,36],n=[1,38],o=[1,35],p=[1,43],q=[1,41],r=[1,45],s=[1,14],t=[1,23],u=[1,18],v=[1,19],w=[1,20],x=[1,21],y=[1,22],z=[1,24],A=[1,25],B=[1,26],C=[1,27],D=[1,28],E=[1,29],F=[1,32],G=[1,33],H=[1,34],I=[1,39],J=[1,40],K=[1,42],L=[1,44],M=[1,63],N=[1,62],O=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],P=[1,66],Q=[1,67],R=[1,68],S=[1,69],T=[1,70],U=[1,71],V=[1,72],W=[1,73],X=[1,74],Y=[1,75],Z=[1,76],$=[1,77],_=[4,5,6,7,8,9,10,11,12,13,14,15,18],aa=[1,91],ab=[1,92],ac=[1,93],ad=[1,100],ae=[1,94],af=[1,97],ag=[1,95],ah=[1,96],ai=[1,98],aj=[1,99],ak=[1,103],al=[10,55,56,57],am=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],an={trace:(0,c.__name)(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:(0,c.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 23:case 68:this.$=f[h];break;case 24:case 69:this.$=f[h-1]+""+f[h];break;case 26:this.$=f[h-1]+f[h];break;case 27:this.$=[f[h].trim()];break;case 28:f[h-2].push(f[h].trim()),this.$=f[h-2];break;case 29:this.$=f[h-4],d.addClass(f[h-2],f[h]);break;case 37:this.$=[];break;case 42:this.$=f[h].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(f[h].substr(8)),this.$=f[h].substr(8);break;case 47:d.addPoint(f[h-3],"",f[h-1],f[h],[]);break;case 48:d.addPoint(f[h-4],f[h-3],f[h-1],f[h],[]);break;case 49:d.addPoint(f[h-4],"",f[h-2],f[h-1],f[h]);break;case 50:d.addPoint(f[h-5],f[h-4],f[h-2],f[h-1],f[h]);break;case 51:d.setXAxisLeftText(f[h-2]),d.setXAxisRightText(f[h]);break;case 52:f[h-1].text+=" ⟶ ",d.setXAxisLeftText(f[h-1]);break;case 53:d.setXAxisLeftText(f[h]);break;case 54:d.setYAxisBottomText(f[h-2]),d.setYAxisTopText(f[h]);break;case 55:f[h-1].text+=" ⟶ ",d.setYAxisBottomText(f[h-1]);break;case 56:d.setYAxisBottomText(f[h]);break;case 57:d.setQuadrant1Text(f[h]);break;case 58:d.setQuadrant2Text(f[h]);break;case 59:d.setQuadrant3Text(f[h]);break;case 60:d.setQuadrant4Text(f[h]);break;case 64:case 66:this.$={text:f[h],type:"text"};break;case 65:this.$={text:f[h-1].text+""+f[h],type:f[h-1].type};break;case 67:this.$={text:f[h],type:"markdown"}}},"anonymous"),table:[{18:b,26:1,27:2,28:d,55:e,56:f,57:g},{1:[3]},{18:b,26:8,27:2,28:d,55:e,56:f,57:g},{18:b,26:9,27:2,28:d,55:e,56:f,57:g},a(h,[2,33],{29:10}),a(i,[2,61]),a(i,[2,62]),a(i,[2,63]),{1:[2,30]},{1:[2,31]},a(j,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:l,5:m,10:n,12:o,13:p,14:q,15:r,18:s,25:t,35:u,37:v,39:w,41:x,42:y,48:z,50:A,51:B,52:C,53:D,54:E,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(h,[2,34]),{27:46,55:e,56:f,57:g},a(j,[2,37]),a(j,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:l,5:m,10:n,12:o,13:p,14:q,15:r,18:s,25:t,35:u,37:v,39:w,41:x,42:y,48:z,50:A,51:B,52:C,53:D,54:E,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(j,[2,39]),a(j,[2,40]),a(j,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},a(j,[2,45]),a(j,[2,46]),{18:[1,51]},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:52,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:53,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:54,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:55,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:56,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,10:n,12:o,13:p,14:q,15:r,43:57,58:31,60:F,61:G,63:H,64:I,65:J,66:K,67:L},{4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,44:[1,58],47:[1,59],58:61,59:60,63:H,64:I,65:J,66:K,67:L},a(O,[2,64]),a(O,[2,66]),a(O,[2,67]),a(O,[2,70]),a(O,[2,71]),a(O,[2,72]),a(O,[2,73]),a(O,[2,74]),a(O,[2,75]),a(O,[2,76]),a(O,[2,77]),a(O,[2,78]),a(O,[2,79]),a(O,[2,80]),a(O,[2,81]),a(h,[2,35]),a(j,[2,38]),a(j,[2,42]),a(j,[2,43]),a(j,[2,44]),{3:65,4:P,5:Q,6:R,7:S,8:T,9:U,10:V,11:W,12:X,13:Y,14:Z,15:$,21:64},a(j,[2,53],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,49:[1,78],63:H,64:I,65:J,66:K,67:L}),a(j,[2,56],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,49:[1,79],63:H,64:I,65:J,66:K,67:L}),a(j,[2,57],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,58],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,59],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,60],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),{45:[1,80]},{44:[1,81]},a(O,[2,65]),a(O,[2,82]),a(O,[2,83]),a(O,[2,84]),{3:83,4:P,5:Q,6:R,7:S,8:T,9:U,10:V,11:W,12:X,13:Y,14:Z,15:$,18:[1,82]},a(_,[2,23]),a(_,[2,1]),a(_,[2,2]),a(_,[2,3]),a(_,[2,4]),a(_,[2,5]),a(_,[2,6]),a(_,[2,7]),a(_,[2,8]),a(_,[2,9]),a(_,[2,10]),a(_,[2,11]),a(_,[2,12]),a(j,[2,52],{58:31,43:84,4:l,5:m,10:n,12:o,13:p,14:q,15:r,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),a(j,[2,55],{58:31,43:85,4:l,5:m,10:n,12:o,13:p,14:q,15:r,60:F,61:G,63:H,64:I,65:J,66:K,67:L}),{46:[1,86]},{45:[1,87]},{4:aa,5:ab,6:ac,8:ad,11:ae,13:af,16:90,17:ag,18:ah,19:ai,20:aj,22:89,23:88},a(_,[2,24]),a(j,[2,51],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,54],{59:60,58:61,4:l,5:m,8:M,10:n,12:o,13:p,14:q,15:r,18:N,63:H,64:I,65:J,66:K,67:L}),a(j,[2,47],{22:89,16:90,23:101,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),{46:[1,102]},a(j,[2,29],{10:ak}),a(al,[2,27],{16:104,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),a(am,[2,25]),a(am,[2,13]),a(am,[2,14]),a(am,[2,15]),a(am,[2,16]),a(am,[2,17]),a(am,[2,18]),a(am,[2,19]),a(am,[2,20]),a(am,[2,21]),a(am,[2,22]),a(j,[2,49],{10:ak}),a(j,[2,48],{22:89,16:90,23:105,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj}),{4:aa,5:ab,6:ac,8:ad,11:ae,13:af,16:90,17:ag,18:ah,19:ai,20:aj,22:106},a(am,[2,26]),a(j,[2,50],{10:ak}),a(al,[2,28],{16:104,4:aa,5:ab,6:ac,8:ad,11:ae,13:af,17:ag,18:ah,19:ai,20:aj})],defaultActions:{8:[2,30],9:[2,31]},parseError:(0,c.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,c.__name)(function(a){var b=this,d=[0],e=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=e.pop()||n.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.__name)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,c.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=d[d.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:d.push(t),f.push(n.yytext),g.push(n.yylloc),d.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(d=d.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),d.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[d[d.length-2]][d[d.length-1]],d.push(A);break;case 3:return!0}}return!0},"parse")};function ao(){this.yy={}}return an.lexer={EOF:1,parseError:(0,c.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,c.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,c.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.__name)(function(){return this._more=!0,this},"more"),reject:(0,c.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,c.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,c.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,c.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,c.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,c.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,c.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,c.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.__name)(function(a,b,c,d){switch(c){case 0:case 1:case 3:break;case 2:return 55;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 23:case 25:case 31:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 24:this.begin("string");break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}},(0,c.__name)(ao,"Parser"),ao.prototype=an,an.Parser=ao,new ao}();f.parser=f;var g=(0,b.getThemeVariables)(),h=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{(0,c.__name)(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:b.defaultConfig_default.quadrantChart?.chartWidth||500,chartWidth:b.defaultConfig_default.quadrantChart?.chartHeight||500,titlePadding:b.defaultConfig_default.quadrantChart?.titlePadding||10,titleFontSize:b.defaultConfig_default.quadrantChart?.titleFontSize||20,quadrantPadding:b.defaultConfig_default.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:b.defaultConfig_default.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:b.defaultConfig_default.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:b.defaultConfig_default.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:b.defaultConfig_default.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:b.defaultConfig_default.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:b.defaultConfig_default.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:b.defaultConfig_default.quadrantChart?.pointTextPadding||5,pointLabelFontSize:b.defaultConfig_default.quadrantChart?.pointLabelFontSize||12,pointRadius:b.defaultConfig_default.quadrantChart?.pointRadius||5,xAxisPosition:b.defaultConfig_default.quadrantChart?.xAxisPosition||"top",yAxisPosition:b.defaultConfig_default.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:b.defaultConfig_default.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:b.defaultConfig_default.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:g.quadrant1Fill,quadrant2Fill:g.quadrant2Fill,quadrant3Fill:g.quadrant3Fill,quadrant4Fill:g.quadrant4Fill,quadrant1TextFill:g.quadrant1TextFill,quadrant2TextFill:g.quadrant2TextFill,quadrant3TextFill:g.quadrant3TextFill,quadrant4TextFill:g.quadrant4TextFill,quadrantPointFill:g.quadrantPointFill,quadrantPointTextFill:g.quadrantPointTextFill,quadrantXAxisTextFill:g.quadrantXAxisTextFill,quadrantYAxisTextFill:g.quadrantYAxisTextFill,quadrantTitleFill:g.quadrantTitleFill,quadrantInternalBorderStrokeFill:g.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:g.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,c.log.info("clear called")}setData(a){this.data={...this.data,...a}}addPoints(a){this.data.points=[...a,...this.data.points]}addClass(a,b){this.classes.set(a,b)}setConfig(a){c.log.trace("setConfig called with: ",a),this.config={...this.config,...a}}setThemeConfig(a){c.log.trace("setThemeConfig called with: ",a),this.themeConfig={...this.themeConfig,...a}}calculateSpace(a,b,c,d){let e=2*this.config.xAxisLabelPadding+this.config.xAxisLabelFontSize,f={top:"top"===a&&b?e:0,bottom:"bottom"===a&&b?e:0},g=2*this.config.yAxisLabelPadding+this.config.yAxisLabelFontSize,h={left:"left"===this.config.yAxisPosition&&c?g:0,right:"right"===this.config.yAxisPosition&&c?g:0},i=this.config.titleFontSize+2*this.config.titlePadding,j={top:d?i:0},k=this.config.quadrantPadding+h.left,l=this.config.quadrantPadding+f.top+j.top,m=this.config.chartWidth-2*this.config.quadrantPadding-h.left-h.right,n=this.config.chartHeight-2*this.config.quadrantPadding-f.top-f.bottom-j.top;return{xAxisSpace:f,yAxisSpace:h,titleSpace:j,quadrantSpace:{quadrantLeft:k,quadrantTop:l,quadrantWidth:m,quadrantHalfWidth:m/2,quadrantHeight:n,quadrantHalfHeight:n/2}}}getAxisLabels(a,b,c,d){let{quadrantSpace:e,titleSpace:f}=d,{quadrantHalfHeight:g,quadrantHeight:h,quadrantLeft:i,quadrantHalfWidth:j,quadrantTop:k,quadrantWidth:l}=e,m=!!this.data.xAxisRightText,n=!!this.data.yAxisTopText,o=[];return this.data.xAxisLeftText&&b&&o.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:i+(m?j/2:0),y:"top"===a?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+k+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&b&&o.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:i+j+(m?j/2:0),y:"top"===a?this.config.xAxisLabelPadding+f.top:this.config.xAxisLabelPadding+k+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&c&&o.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+i+l+this.config.quadrantPadding,y:k+h-(n?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:n?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&c&&o.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:"left"===this.config.yAxisPosition?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+i+l+this.config.quadrantPadding,y:k+g-(n?g/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:n?"center":"left",horizontalPos:"top",rotation:-90}),o}getQuadrants(a){let{quadrantSpace:b}=a,{quadrantHalfHeight:c,quadrantLeft:d,quadrantHalfWidth:e,quadrantTop:f}=b,g=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d+e,y:f,width:e,height:c,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d,y:f,width:e,height:c,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d,y:f+c,width:e,height:c,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:d+e,y:f+c,width:e,height:c,fill:this.themeConfig.quadrant4Fill}];for(let a of g)a.text.x=a.x+a.width/2,0===this.data.points.length?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return g}getQuadrantPoints(a){let{quadrantSpace:b}=a,{quadrantHeight:c,quadrantLeft:e,quadrantTop:f,quadrantWidth:g}=b,h=(0,d.scaleLinear)().domain([0,1]).range([e,g+e]),i=(0,d.scaleLinear)().domain([0,1]).range([c+f,f]);return this.data.points.map(a=>{let b=this.classes.get(a.className);return b&&(a={...b,...a}),{x:h(a.x),y:i(a.y),fill:a.color??this.themeConfig.quadrantPointFill,radius:a.radius??this.config.pointRadius,text:{text:a.text,fill:this.themeConfig.quadrantPointTextFill,x:h(a.x),y:i(a.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:a.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:a.strokeWidth??"0px"}})}getBorders(a){let b=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:c}=a,{quadrantHalfHeight:d,quadrantHeight:e,quadrantLeft:f,quadrantHalfWidth:g,quadrantTop:h,quadrantWidth:i}=c;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-b,y1:h,x2:f+i+b,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f+i,y1:h+b,x2:f+i,y2:h+e-b},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f-b,y1:h+e,x2:f+i+b,y2:h+e},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:f,y1:h+b,x2:f,y2:h+e-b},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+g,y1:h+b,x2:f+g,y2:h+e-b},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:f+b,y1:h+d,x2:f+i-b,y2:h+d}]}getTitle(a){if(a)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let a=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),b=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),c=this.config.showTitle&&!!this.data.titleText,d=this.data.points.length>0?"bottom":this.config.xAxisPosition,e=this.calculateSpace(d,a,b,c);return{points:this.getQuadrantPoints(e),quadrants:this.getQuadrants(e),axisLabels:this.getAxisLabels(d,a,b,e),borderLines:this.getBorders(e),title:this.getTitle(c)}}},i=class extends Error{static{(0,c.__name)(this,"InvalidStyleError")}constructor(a,b,c){super(`value for ${a} ${b} is invalid, please use a valid ${c}`),this.name="InvalidStyleError"}};function j(a){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(a)}function k(a){return!/^\d+$/.test(a)}function l(a){return!/^\d+px$/.test(a)}(0,c.__name)(j,"validateHexCode"),(0,c.__name)(k,"validateNumber"),(0,c.__name)(l,"validateSizeInPixels");var m=(0,b.getConfig2)();function n(a){return(0,b.sanitizeText)(a.trim(),m)}(0,c.__name)(n,"textSanitizer");var o=new h;function p(a){o.setData({quadrant1Text:n(a.text)})}function q(a){o.setData({quadrant2Text:n(a.text)})}function r(a){o.setData({quadrant3Text:n(a.text)})}function s(a){o.setData({quadrant4Text:n(a.text)})}function t(a){o.setData({xAxisLeftText:n(a.text)})}function u(a){o.setData({xAxisRightText:n(a.text)})}function v(a){o.setData({yAxisTopText:n(a.text)})}function w(a){o.setData({yAxisBottomText:n(a.text)})}function x(a){let b={};for(let c of a){let[a,d]=c.trim().split(/\s*:\s*/);if("radius"===a){if(k(d))throw new i(a,d,"number");b.radius=parseInt(d)}else if("color"===a){if(j(d))throw new i(a,d,"hex code");b.color=d}else if("stroke-color"===a){if(j(d))throw new i(a,d,"hex code");b.strokeColor=d}else if("stroke-width"===a){if(l(d))throw new i(a,d,"number of pixels (eg. 10px)");b.strokeWidth=d}else throw Error(`style named ${a} is not supported.`)}return b}function y(a,b,c,d,e){let f=x(e);o.addPoints([{x:c,y:d,text:n(a.text),className:b,...f}])}function z(a,b){o.addClass(a,x(b))}function A(a){o.setConfig({chartWidth:a})}function B(a){o.setConfig({chartHeight:a})}function C(){let{themeVariables:a,quadrantChart:c}=(0,b.getConfig2)();return c&&o.setConfig(c),o.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),o.setData({titleText:(0,b.getDiagramTitle)()}),o.build()}(0,c.__name)(p,"setQuadrant1Text"),(0,c.__name)(q,"setQuadrant2Text"),(0,c.__name)(r,"setQuadrant3Text"),(0,c.__name)(s,"setQuadrant4Text"),(0,c.__name)(t,"setXAxisLeftText"),(0,c.__name)(u,"setXAxisRightText"),(0,c.__name)(v,"setYAxisTopText"),(0,c.__name)(w,"setYAxisBottomText"),(0,c.__name)(x,"parseStyles"),(0,c.__name)(y,"addPoint"),(0,c.__name)(z,"addClass"),(0,c.__name)(A,"setWidth"),(0,c.__name)(B,"setHeight"),(0,c.__name)(C,"getQuadrantData");var D={setWidth:A,setHeight:B,setQuadrant1Text:p,setQuadrant2Text:q,setQuadrant3Text:r,setQuadrant4Text:s,setXAxisLeftText:t,setXAxisRightText:u,setYAxisTopText:v,setYAxisBottomText:w,parseStyles:x,addPoint:y,addClass:z,getQuadrantData:C,clear:(0,c.__name)(function(){o.clear(),(0,b.clear)()},"clear"),setAccTitle:b.setAccTitle,getAccTitle:b.getAccTitle,setDiagramTitle:b.setDiagramTitle,getDiagramTitle:b.getDiagramTitle,getAccDescription:b.getAccDescription,setAccDescription:b.setAccDescription},E={parser:f,db:D,renderer:{draw:(0,c.__name)((a,d,f,g)=>{let h;function i(a){return"top"===a?"hanging":"middle"}function j(a){return"left"===a?"start":"middle"}function k(a){return`translate(${a.x}, ${a.y}) rotate(${a.rotation||0})`}(0,c.__name)(i,"getDominantBaseLine"),(0,c.__name)(j,"getTextAnchor"),(0,c.__name)(k,"getTransformation");let l=(0,b.getConfig2)();c.log.debug("Rendering quadrant chart\n"+a);let m=l.securityLevel;"sandbox"===m&&(h=(0,e.select)("#i"+d));let n=("sandbox"===m?(0,e.select)(h.nodes()[0].contentDocument.body):(0,e.select)("body")).select(`[id="${d}"]`),o=n.append("g").attr("class","main"),p=l.quadrantChart?.chartWidth??500,q=l.quadrantChart?.chartHeight??500;(0,b.configureSvgSize)(n,q,p,l.quadrantChart?.useMaxWidth??!0),n.attr("viewBox","0 0 "+p+" "+q),g.db.setHeight(q),g.db.setWidth(p);let r=g.db.getQuadrantData(),s=o.append("g").attr("class","quadrants"),t=o.append("g").attr("class","border"),u=o.append("g").attr("class","data-points"),v=o.append("g").attr("class","labels"),w=o.append("g").attr("class","title");r.title&&w.append("text").attr("x",0).attr("y",0).attr("fill",r.title.fill).attr("font-size",r.title.fontSize).attr("dominant-baseline",i(r.title.horizontalPos)).attr("text-anchor",j(r.title.verticalPos)).attr("transform",k(r.title)).text(r.title.text),r.borderLines&&t.selectAll("line").data(r.borderLines).enter().append("line").attr("x1",a=>a.x1).attr("y1",a=>a.y1).attr("x2",a=>a.x2).attr("y2",a=>a.y2).style("stroke",a=>a.strokeFill).style("stroke-width",a=>a.strokeWidth);let x=s.selectAll("g.quadrant").data(r.quadrants).enter().append("g").attr("class","quadrant");x.append("rect").attr("x",a=>a.x).attr("y",a=>a.y).attr("width",a=>a.width).attr("height",a=>a.height).attr("fill",a=>a.fill),x.append("text").attr("x",0).attr("y",0).attr("fill",a=>a.text.fill).attr("font-size",a=>a.text.fontSize).attr("dominant-baseline",a=>i(a.text.horizontalPos)).attr("text-anchor",a=>j(a.text.verticalPos)).attr("transform",a=>k(a.text)).text(a=>a.text.text),v.selectAll("g.label").data(r.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(a=>a.text).attr("fill",a=>a.fill).attr("font-size",a=>a.fontSize).attr("dominant-baseline",a=>i(a.horizontalPos)).attr("text-anchor",a=>j(a.verticalPos)).attr("transform",a=>k(a));let y=u.selectAll("g.data-point").data(r.points).enter().append("g").attr("class","data-point");y.append("circle").attr("cx",a=>a.x).attr("cy",a=>a.y).attr("r",a=>a.radius).attr("fill",a=>a.fill).attr("stroke",a=>a.strokeColor).attr("stroke-width",a=>a.strokeWidth),y.append("text").attr("x",0).attr("y",0).text(a=>a.text.text).attr("fill",a=>a.text.fill).attr("font-size",a=>a.text.fontSize).attr("dominant-baseline",a=>i(a.text.horizontalPos)).attr("text-anchor",a=>j(a.text.verticalPos)).attr("transform",a=>k(a.text))},"draw")},styles:(0,c.__name)(()=>"","styles")};a.s(["diagram",0,E])}];
2
2
 
3
3
  //# sourceMappingURL=12y~_mermaid_dist_chunks_mermaid_core_quadrantDiagram-W4KKPZXB_mjs_0re1qsf._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[869918,a=>{"use strict";var b=a.i(394900),c=a.i(432623),d=a.i(616300);a.i(762927),a.i(764901),a.i(215586),a.i(211193),a.i(706860),a.i(654669);var e=a.i(197112),f=a.i(604225),g=a.i(762939),h=function(){var a=(0,g.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,3],c=[1,4],d=[1,5],e=[1,6],f=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],h=[1,22],i=[2,7],j=[1,26],k=[1,27],l=[1,28],m=[1,29],n=[1,33],o=[1,34],p=[1,35],q=[1,36],r=[1,37],s=[1,38],t=[1,24],u=[1,31],v=[1,32],w=[1,30],x=[1,39],y=[1,40],z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],A=[1,61],B=[89,90],C=[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],D=[27,29],E=[1,70],F=[1,71],G=[1,72],H=[1,73],I=[1,74],J=[1,75],K=[1,76],L=[1,83],M=[1,80],N=[1,84],O=[1,85],P=[1,86],Q=[1,87],R=[1,88],S=[1,89],T=[1,90],U=[1,91],V=[1,92],W=[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],X=[63,64],Y=[1,101],Z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],$=[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],_=[1,110],aa=[1,106],ab=[1,107],ac=[1,108],ad=[1,109],ae=[1,111],af=[1,116],ag=[1,117],ah=[1,114],ai=[1,115],aj={trace:(0,g.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,g.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 5:case 6:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:d.setDirection("TB");break;case 18:d.setDirection("BT");break;case 19:d.setDirection("RL");break;case 20:d.setDirection("LR");break;case 21:d.addRequirement(f[h-3],f[h-4]);break;case 22:d.addRequirement(f[h-5],f[h-6]),d.setClass([f[h-5]],f[h-3]);break;case 23:d.setNewReqId(f[h-2]);break;case 24:d.setNewReqText(f[h-2]);break;case 25:d.setNewReqRisk(f[h-2]);break;case 26:d.setNewReqVerifyMethod(f[h-2]);break;case 29:this.$=d.RequirementType.REQUIREMENT;break;case 30:this.$=d.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=d.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=d.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=d.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=d.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=d.RiskLevel.LOW_RISK;break;case 36:this.$=d.RiskLevel.MED_RISK;break;case 37:this.$=d.RiskLevel.HIGH_RISK;break;case 38:this.$=d.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=d.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=d.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=d.VerifyType.VERIFY_TEST;break;case 42:d.addElement(f[h-3]);break;case 43:d.addElement(f[h-5]),d.setClass([f[h-5]],f[h-3]);break;case 44:d.setNewElementType(f[h-2]);break;case 45:d.setNewElementDocRef(f[h-2]);break;case 48:d.addRelationship(f[h-2],f[h],f[h-4]);break;case 49:d.addRelationship(f[h-2],f[h-4],f[h]);break;case 50:this.$=d.Relationships.CONTAINS;break;case 51:this.$=d.Relationships.COPIES;break;case 52:this.$=d.Relationships.DERIVES;break;case 53:this.$=d.Relationships.SATISFIES;break;case 54:this.$=d.Relationships.VERIFIES;break;case 55:this.$=d.Relationships.REFINES;break;case 56:this.$=d.Relationships.TRACES;break;case 57:this.$=f[h-2],d.defineClass(f[h-1],f[h]);break;case 58:d.setClass(f[h-1],f[h]);break;case 59:d.setClass([f[h-2]],f[h]);break;case 60:case 62:case 65:this.$=[f[h]];break;case 61:case 63:this.$=f[h-2].concat([f[h]]);break;case 64:this.$=f[h-2],d.setCssStyle(f[h-1],f[h]);break;case 66:f[h-2].push(f[h]),this.$=f[h-2];break;case 68:this.$=f[h-1]+f[h]}},"anonymous"),table:[{3:1,4:2,6:b,9:c,11:d,13:e},{1:[3]},{3:8,4:2,5:[1,7],6:b,9:c,11:d,13:e},{5:[1,9]},{10:[1,10]},{12:[1,11]},a(f,[2,6]),{3:12,4:2,6:b,9:c,11:d,13:e},{1:[2,2]},{4:17,5:h,7:13,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},a(f,[2,4]),a(f,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:h,7:42,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:43,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:44,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:45,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:46,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:47,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:48,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:49,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:50,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{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]},a(z,[2,17]),a(z,[2,18]),a(z,[2,19]),a(z,[2,20]),{30:60,33:62,75:A,89:x,90:y},{30:63,33:62,75:A,89:x,90:y},{30:64,33:62,75:A,89:x,90:y},a(B,[2,29]),a(B,[2,30]),a(B,[2,31]),a(B,[2,32]),a(B,[2,33]),a(B,[2,34]),a(C,[2,81]),a(C,[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]},a(D,[2,79]),a(D,[2,80]),{27:[1,67],29:[1,68]},a(D,[2,85]),a(D,[2,86]),{62:69,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{62:77,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{30:78,33:62,75:A,89:x,90:y},{73:79,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,60]),a(W,[2,62]),{73:93,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},{30:94,33:62,75:A,76:M,89:x,90:y},{5:[1,95]},{30:96,33:62,75:A,89:x,90:y},{5:[1,97]},{30:98,33:62,75:A,89:x,90:y},{63:[1,99]},a(X,[2,50]),a(X,[2,51]),a(X,[2,52]),a(X,[2,53]),a(X,[2,54]),a(X,[2,55]),a(X,[2,56]),{64:[1,100]},a(z,[2,59],{76:M}),a(z,[2,64],{76:Y}),{33:103,75:[1,102],89:x,90:y},a(Z,[2,65],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),a($,[2,67]),a($,[2,69]),a($,[2,70]),a($,[2,71]),a($,[2,72]),a($,[2,73]),a($,[2,74]),a($,[2,75]),a($,[2,76]),a($,[2,77]),a($,[2,78]),a(z,[2,57],{76:Y}),a(z,[2,58],{76:M}),{5:_,28:105,31:aa,34:ab,36:ac,38:ad,40:ae},{27:[1,112],76:M},{5:af,40:ag,56:113,57:ah,59:ai},{27:[1,118],76:M},{33:119,89:x,90:y},{33:120,89:x,90:y},{75:L,78:121,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,61]),a(W,[2,63]),a($,[2,68]),a(z,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:_,28:126,31:aa,34:ab,36:ac,38:ad,40:ae},a(z,[2,28]),{5:[1,127]},a(z,[2,42]),{32:[1,128]},{32:[1,129]},{5:af,40:ag,56:130,57:ah,59:ai},a(z,[2,47]),{5:[1,131]},a(z,[2,48]),a(z,[2,49]),a(Z,[2,66],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),{33:132,89:x,90:y},{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]},a(z,[2,27]),{5:_,28:145,31:aa,34:ab,36:ac,38:ad,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},a(z,[2,46]),{5:af,40:ag,56:152,57:ah,59:ai},{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]},a(z,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},a(z,[2,43]),{5:_,28:159,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:160,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:161,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:162,31:aa,34:ab,36:ac,38:ad,40:ae},{5:af,40:ag,56:163,57:ah,59:ai},{5:af,40:ag,56:164,57:ah,59:ai},a(z,[2,23]),a(z,[2,24]),a(z,[2,25]),a(z,[2,26]),a(z,[2,44]),a(z,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,g.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,g.__name)(function(a){var b=this,c=[0],d=[],e=[null],f=[],h=this.table,i="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.__name)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,g.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function ak(){this.yy={}}return aj.lexer={EOF:1,parseError:(0,g.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,g.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,g.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,g.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.__name)(function(){return this._more=!0,this},"more"),reject:(0,g.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,g.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,g.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,g.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,g.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,g.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,g.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,g.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,g.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,g.__name)(function(a,b,c,d){switch(c){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return b.yytext=b.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,g.__name)(ak,"Parser"),ak.prototype=aj,aj.Parser=ak,new ak}();h.parser=h;var i=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=f.setAccTitle,this.getAccTitle=f.getAccTitle,this.setAccDescription=f.setAccDescription,this.getAccDescription=f.getAccDescription,this.setDiagramTitle=f.setDiagramTitle,this.getDiagramTitle=f.getDiagramTitle,this.getConfig=(0,g.__name)(()=>(0,f.getConfig2)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,g.__name)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(a){this.direction=a}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(a,b){return this.requirements.has(a)||this.requirements.set(a,{name:a,type:b,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(a)}getRequirements(){return this.requirements}setNewReqId(a){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=a)}setNewReqText(a){void 0!==this.latestRequirement&&(this.latestRequirement.text=a)}setNewReqRisk(a){void 0!==this.latestRequirement&&(this.latestRequirement.risk=a)}setNewReqVerifyMethod(a){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=a)}addElement(a){return this.elements.has(a)||(this.elements.set(a,{name:a,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),g.log.info("Added new element: ",a)),this.resetLatestElement(),this.elements.get(a)}getElements(){return this.elements}setNewElementType(a){void 0!==this.latestElement&&(this.latestElement.type=a)}setNewElementDocRef(a){void 0!==this.latestElement&&(this.latestElement.docRef=a)}addRelationship(a,b,c){this.relations.push({type:a,src:b,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,f.clear)()}setCssStyle(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(!b||!a)return;for(let c of b)c.includes(",")?a.cssStyles.push(...c.split(",")):a.cssStyles.push(c)}}setClass(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(a)for(let c of b){a.classes.push(c);let b=this.classes.get(c)?.styles;b&&a.cssStyles.push(...b)}}}defineClass(a,b){for(let c of a){let a=this.classes.get(c);void 0===a&&(a={id:c,styles:[],textStyles:[]},this.classes.set(c,a)),b&&b.forEach(function(b){if(/color/.exec(b)){let c=b.replace("fill","bgFill");a.textStyles.push(c)}a.styles.push(b)}),this.requirements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))}),this.elements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))})}}getClasses(){return this.classes}getData(){let a=(0,f.getConfig2)(),b=[],c=[];for(let c of this.requirements.values())c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.shape="requirementBox",c.look=a.look,c.colorIndex=b.length,b.push(c);for(let c of this.elements.values())c.shape="requirementBox",c.look=a.look,c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.colorIndex=b.length,b.push(c);for(let b of this.relations){let d=0,e=b.type===this.Relationships.CONTAINS,f={id:`${b.src}-${b.dst}-${d}`,start:this.requirements.get(b.src)?.name??this.elements.get(b.src)?.name,end:this.requirements.get(b.dst)?.name??this.elements.get(b.dst)?.name,label:`&lt;&lt;${b.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",e?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:e?"normal":"dashed",arrowTypeStart:e?"requirement_contains":"",arrowTypeEnd:e?"":"requirement_arrow",look:a.look,labelType:"markdown"};c.push(f),d++}return{nodes:b,edges:c,other:{},config:a,direction:this.getDirection()}}},j=(0,g.__name)(a=>{let{themeVariables:b,look:c}=(0,f.getConfig)(),{bkgColorArray:d,borderColorArray:e}=b;if(!e?.length)return"";let g="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)g+=`
1
+ module.exports=[869918,a=>{"use strict";var b=a.i(394900),c=a.i(432623),d=a.i(616300);a.i(762927),a.i(764901),a.i(215586),a.i(211193),a.i(706860),a.i(654669);var e=a.i(197112),f=a.i(523526),g=a.i(762939),h=function(){var a=(0,g.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,3],c=[1,4],d=[1,5],e=[1,6],f=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],h=[1,22],i=[2,7],j=[1,26],k=[1,27],l=[1,28],m=[1,29],n=[1,33],o=[1,34],p=[1,35],q=[1,36],r=[1,37],s=[1,38],t=[1,24],u=[1,31],v=[1,32],w=[1,30],x=[1,39],y=[1,40],z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],A=[1,61],B=[89,90],C=[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],D=[27,29],E=[1,70],F=[1,71],G=[1,72],H=[1,73],I=[1,74],J=[1,75],K=[1,76],L=[1,83],M=[1,80],N=[1,84],O=[1,85],P=[1,86],Q=[1,87],R=[1,88],S=[1,89],T=[1,90],U=[1,91],V=[1,92],W=[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],X=[63,64],Y=[1,101],Z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],$=[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],_=[1,110],aa=[1,106],ab=[1,107],ac=[1,108],ad=[1,109],ae=[1,111],af=[1,116],ag=[1,117],ah=[1,114],ai=[1,115],aj={trace:(0,g.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,g.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 5:case 6:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:d.setDirection("TB");break;case 18:d.setDirection("BT");break;case 19:d.setDirection("RL");break;case 20:d.setDirection("LR");break;case 21:d.addRequirement(f[h-3],f[h-4]);break;case 22:d.addRequirement(f[h-5],f[h-6]),d.setClass([f[h-5]],f[h-3]);break;case 23:d.setNewReqId(f[h-2]);break;case 24:d.setNewReqText(f[h-2]);break;case 25:d.setNewReqRisk(f[h-2]);break;case 26:d.setNewReqVerifyMethod(f[h-2]);break;case 29:this.$=d.RequirementType.REQUIREMENT;break;case 30:this.$=d.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=d.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=d.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=d.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=d.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=d.RiskLevel.LOW_RISK;break;case 36:this.$=d.RiskLevel.MED_RISK;break;case 37:this.$=d.RiskLevel.HIGH_RISK;break;case 38:this.$=d.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=d.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=d.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=d.VerifyType.VERIFY_TEST;break;case 42:d.addElement(f[h-3]);break;case 43:d.addElement(f[h-5]),d.setClass([f[h-5]],f[h-3]);break;case 44:d.setNewElementType(f[h-2]);break;case 45:d.setNewElementDocRef(f[h-2]);break;case 48:d.addRelationship(f[h-2],f[h],f[h-4]);break;case 49:d.addRelationship(f[h-2],f[h-4],f[h]);break;case 50:this.$=d.Relationships.CONTAINS;break;case 51:this.$=d.Relationships.COPIES;break;case 52:this.$=d.Relationships.DERIVES;break;case 53:this.$=d.Relationships.SATISFIES;break;case 54:this.$=d.Relationships.VERIFIES;break;case 55:this.$=d.Relationships.REFINES;break;case 56:this.$=d.Relationships.TRACES;break;case 57:this.$=f[h-2],d.defineClass(f[h-1],f[h]);break;case 58:d.setClass(f[h-1],f[h]);break;case 59:d.setClass([f[h-2]],f[h]);break;case 60:case 62:case 65:this.$=[f[h]];break;case 61:case 63:this.$=f[h-2].concat([f[h]]);break;case 64:this.$=f[h-2],d.setCssStyle(f[h-1],f[h]);break;case 66:f[h-2].push(f[h]),this.$=f[h-2];break;case 68:this.$=f[h-1]+f[h]}},"anonymous"),table:[{3:1,4:2,6:b,9:c,11:d,13:e},{1:[3]},{3:8,4:2,5:[1,7],6:b,9:c,11:d,13:e},{5:[1,9]},{10:[1,10]},{12:[1,11]},a(f,[2,6]),{3:12,4:2,6:b,9:c,11:d,13:e},{1:[2,2]},{4:17,5:h,7:13,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},a(f,[2,4]),a(f,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:h,7:42,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:43,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:44,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:45,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:46,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:47,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:48,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:49,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:h,7:50,8:i,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{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]},a(z,[2,17]),a(z,[2,18]),a(z,[2,19]),a(z,[2,20]),{30:60,33:62,75:A,89:x,90:y},{30:63,33:62,75:A,89:x,90:y},{30:64,33:62,75:A,89:x,90:y},a(B,[2,29]),a(B,[2,30]),a(B,[2,31]),a(B,[2,32]),a(B,[2,33]),a(B,[2,34]),a(C,[2,81]),a(C,[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]},a(D,[2,79]),a(D,[2,80]),{27:[1,67],29:[1,68]},a(D,[2,85]),a(D,[2,86]),{62:69,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{62:77,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{30:78,33:62,75:A,89:x,90:y},{73:79,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,60]),a(W,[2,62]),{73:93,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},{30:94,33:62,75:A,76:M,89:x,90:y},{5:[1,95]},{30:96,33:62,75:A,89:x,90:y},{5:[1,97]},{30:98,33:62,75:A,89:x,90:y},{63:[1,99]},a(X,[2,50]),a(X,[2,51]),a(X,[2,52]),a(X,[2,53]),a(X,[2,54]),a(X,[2,55]),a(X,[2,56]),{64:[1,100]},a(z,[2,59],{76:M}),a(z,[2,64],{76:Y}),{33:103,75:[1,102],89:x,90:y},a(Z,[2,65],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),a($,[2,67]),a($,[2,69]),a($,[2,70]),a($,[2,71]),a($,[2,72]),a($,[2,73]),a($,[2,74]),a($,[2,75]),a($,[2,76]),a($,[2,77]),a($,[2,78]),a(z,[2,57],{76:Y}),a(z,[2,58],{76:M}),{5:_,28:105,31:aa,34:ab,36:ac,38:ad,40:ae},{27:[1,112],76:M},{5:af,40:ag,56:113,57:ah,59:ai},{27:[1,118],76:M},{33:119,89:x,90:y},{33:120,89:x,90:y},{75:L,78:121,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,61]),a(W,[2,63]),a($,[2,68]),a(z,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:_,28:126,31:aa,34:ab,36:ac,38:ad,40:ae},a(z,[2,28]),{5:[1,127]},a(z,[2,42]),{32:[1,128]},{32:[1,129]},{5:af,40:ag,56:130,57:ah,59:ai},a(z,[2,47]),{5:[1,131]},a(z,[2,48]),a(z,[2,49]),a(Z,[2,66],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),{33:132,89:x,90:y},{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]},a(z,[2,27]),{5:_,28:145,31:aa,34:ab,36:ac,38:ad,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},a(z,[2,46]),{5:af,40:ag,56:152,57:ah,59:ai},{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]},a(z,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},a(z,[2,43]),{5:_,28:159,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:160,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:161,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:162,31:aa,34:ab,36:ac,38:ad,40:ae},{5:af,40:ag,56:163,57:ah,59:ai},{5:af,40:ag,56:164,57:ah,59:ai},a(z,[2,23]),a(z,[2,24]),a(z,[2,25]),a(z,[2,26]),a(z,[2,44]),a(z,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,g.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,g.__name)(function(a){var b=this,c=[0],d=[],e=[null],f=[],h=this.table,i="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.__name)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,g.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function ak(){this.yy={}}return aj.lexer={EOF:1,parseError:(0,g.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,g.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,g.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,g.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.__name)(function(){return this._more=!0,this},"more"),reject:(0,g.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,g.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,g.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,g.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,g.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,g.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,g.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,g.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,g.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,g.__name)(function(a,b,c,d){switch(c){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return b.yytext=b.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,g.__name)(ak,"Parser"),ak.prototype=aj,aj.Parser=ak,new ak}();h.parser=h;var i=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=f.setAccTitle,this.getAccTitle=f.getAccTitle,this.setAccDescription=f.setAccDescription,this.getAccDescription=f.getAccDescription,this.setDiagramTitle=f.setDiagramTitle,this.getDiagramTitle=f.getDiagramTitle,this.getConfig=(0,g.__name)(()=>(0,f.getConfig2)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,g.__name)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(a){this.direction=a}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(a,b){return this.requirements.has(a)||this.requirements.set(a,{name:a,type:b,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(a)}getRequirements(){return this.requirements}setNewReqId(a){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=a)}setNewReqText(a){void 0!==this.latestRequirement&&(this.latestRequirement.text=a)}setNewReqRisk(a){void 0!==this.latestRequirement&&(this.latestRequirement.risk=a)}setNewReqVerifyMethod(a){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=a)}addElement(a){return this.elements.has(a)||(this.elements.set(a,{name:a,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),g.log.info("Added new element: ",a)),this.resetLatestElement(),this.elements.get(a)}getElements(){return this.elements}setNewElementType(a){void 0!==this.latestElement&&(this.latestElement.type=a)}setNewElementDocRef(a){void 0!==this.latestElement&&(this.latestElement.docRef=a)}addRelationship(a,b,c){this.relations.push({type:a,src:b,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,f.clear)()}setCssStyle(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(!b||!a)return;for(let c of b)c.includes(",")?a.cssStyles.push(...c.split(",")):a.cssStyles.push(c)}}setClass(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(a)for(let c of b){a.classes.push(c);let b=this.classes.get(c)?.styles;b&&a.cssStyles.push(...b)}}}defineClass(a,b){for(let c of a){let a=this.classes.get(c);void 0===a&&(a={id:c,styles:[],textStyles:[]},this.classes.set(c,a)),b&&b.forEach(function(b){if(/color/.exec(b)){let c=b.replace("fill","bgFill");a.textStyles.push(c)}a.styles.push(b)}),this.requirements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))}),this.elements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))})}}getClasses(){return this.classes}getData(){let a=(0,f.getConfig2)(),b=[],c=[];for(let c of this.requirements.values())c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.shape="requirementBox",c.look=a.look,c.colorIndex=b.length,b.push(c);for(let c of this.elements.values())c.shape="requirementBox",c.look=a.look,c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.colorIndex=b.length,b.push(c);for(let b of this.relations){let d=0,e=b.type===this.Relationships.CONTAINS,f={id:`${b.src}-${b.dst}-${d}`,start:this.requirements.get(b.src)?.name??this.elements.get(b.src)?.name,end:this.requirements.get(b.dst)?.name??this.elements.get(b.dst)?.name,label:`&lt;&lt;${b.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",e?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:e?"normal":"dashed",arrowTypeStart:e?"requirement_contains":"",arrowTypeEnd:e?"":"requirement_arrow",look:a.look,labelType:"markdown"};c.push(f),d++}return{nodes:b,edges:c,other:{},config:a,direction:this.getDirection()}}},j=(0,g.__name)(a=>{let{themeVariables:b,look:c}=(0,f.getConfig)(),{bkgColorArray:d,borderColorArray:e}=b;if(!e?.length)return"";let g="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)g+=`
2
2
 
3
3
  [data-look="${c}"][data-color-id="color-${b}"].node path {
4
4
  stroke: ${e[b]};
@@ -1,4 +1,4 @@
1
- module.exports=[469630,a=>{"use strict";var b=a.i(604225),c=a.i(762939);a.i(43066);var d=a.i(455784),e=a.i(349876);let f=function(a){for(var b=a.length/6|0,c=Array(b),d=0;d<b;)c[d]="#"+a.slice(6*d,6*++d);return c}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function g(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c<b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c<e||void 0===c&&e>=e)&&(c=e)}return c}function h(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c>b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c>e||void 0===c&&e>=e)&&(c=e)}return c}function i(a,b){let c=0;if(void 0===b)for(let b of a)(b*=1)&&(c+=b);else{let d=-1;for(let e of a)(e=+b(e,++d,a))&&(c+=e)}return c}function j(a){return a.target.depth}function k(a,b){return a.sourceLinks.length?a.depth:b-1}function l(a){return function(){return a}}function m(a,b){return o(a.source,b.source)||a.index-b.index}function n(a,b){return o(a.target,b.target)||a.index-b.index}function o(a,b){return a.y0-b.y0}function p(a){return a.value}function q(a){return a.index}function r(a){return a.nodes}function s(a){return a.links}function t(a,b){let c=a.get(b);if(!c)throw Error("missing: "+b);return c}function u({nodes:a}){for(let b of a){let a=b.y0,c=a;for(let c of b.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let a of b.targetLinks)a.y1=c+a.width/2,c+=a.width}}var v=Math.PI,w=2*v,x=w-1e-6;function y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function z(){return new y}y.prototype=z.prototype={constructor:y,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a*=1,b*=1,c*=1,d*=1,e*=1;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(e<0)throw Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>1e-6)if(Math.abs(k*h-i*j)>1e-6&&e){var m=c-f,n=d-g,o=h*h+i*i,p=Math.sqrt(o),q=Math.sqrt(l),r=e*Math.tan((v-Math.acos((o+l-(m*m+n*n))/(2*p*q)))/2),s=r/q,t=r/p;Math.abs(s-1)>1e-6&&(this._+="L"+(a+s*j)+","+(b+s*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+t*h)+","+(this._y1=b+t*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b)},arc:function(a,b,c,d,e,f){a*=1,b*=1,c*=1,f=!!f;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(c<0)throw Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-j)>1e-6)&&(this._+="L"+i+","+j),c&&(l<0&&(l=l%w+w),l>x?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):l>1e-6&&(this._+="A"+c+","+c+",0,"+ +(l>=v)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var A=Array.prototype.slice;function B(a){return function(){return a}}function C(a){return a[0]}function D(a){return a[1]}function E(a){return a.source}function F(a){return a.target}function G(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b=(b+d)/2,c,b,e,d,e)}function H(a){return[a.source.x1,a.y0]}function I(a){return[a.target.x0,a.y1]}var J=function(){var a=(0,c.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,9],d=[1,10],e=[1,5,10,12],f={trace:(0,c.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,c.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 7:let i=d.findOrCreateNode(f[h-4].trim().replaceAll('""','"')),j=d.findOrCreateNode(f[h-2].trim().replaceAll('""','"')),k=parseFloat(f[h].trim());d.addLink(i,j,k);break;case 8:case 9:case 11:this.$=f[h];break;case 10:this.$=f[h-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:b,20:d},{1:[2,6],7:11,10:[1,12]},a(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},a(e,[2,8]),a(e,[2,9]),{19:[1,16]},a(e,[2,11]),{1:[2,1]},{1:[2,5]},a(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:b,20:d},{15:18,16:7,17:8,18:b,20:d},{18:[1,19]},a(d,[2,3]),{12:[1,20]},a(e,[2,10]),{15:21,16:7,17:8,18:b,20:d},a([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,c.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,c.__name)(function(a){var b=this,d=[0],e=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=e.pop()||n.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.__name)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,c.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=d[d.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:d.push(t),f.push(n.yytext),g.push(n.yylloc),d.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(d=d.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),d.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[d[d.length-2]][d[d.length-1]],d.push(A);break;case 3:return!0}}return!0},"parse")};function g(){this.yy={}}return f.lexer={EOF:1,parseError:(0,c.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,c.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,c.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.__name)(function(){return this._more=!0,this},"more"),reject:(0,c.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,c.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,c.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,c.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,c.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,c.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,c.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,c.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.__name)(function(a,b,c,d){switch(c){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,c.__name)(g,"Parser"),g.prototype=f,f.Parser=g,new g}();J.parser=J;var K=[],L=[],M=new Map,N=(0,c.__name)(()=>{K=[],L=[],M=new Map,(0,b.clear)()},"clear"),O=class{constructor(a,b,c=0){this.source=a,this.target=b,this.value=c}static{(0,c.__name)(this,"SankeyLink")}},P=(0,c.__name)((a,b,c)=>{K.push(new O(a,b,c))},"addLink"),Q=class{constructor(a){this.ID=a}static{(0,c.__name)(this,"SankeyNode")}},R=(0,c.__name)(a=>{a=b.common_default.sanitizeText(a,(0,b.getConfig2)());let c=M.get(a);return void 0===c&&(c=new Q(a),M.set(a,c),L.push(c)),c},"findOrCreateNode"),S=(0,c.__name)(()=>L,"getNodes"),T=(0,c.__name)(()=>K,"getLinks"),U=(0,c.__name)(()=>({nodes:L.map(a=>({id:a.ID})),links:K.map(a=>({source:a.source.ID,target:a.target.ID,value:a.value}))}),"getGraph"),V={nodesMap:M,getConfig:(0,c.__name)(()=>(0,b.getConfig2)().sankey,"getConfig"),getNodes:S,getLinks:T,getGraph:U,addLink:P,findOrCreateNode:R,getAccTitle:b.getAccTitle,setAccTitle:b.setAccTitle,getAccDescription:b.getAccDescription,setAccDescription:b.setAccDescription,getDiagramTitle:b.getDiagramTitle,setDiagramTitle:b.setDiagramTitle,clear:N},W=class a{static{(0,c.__name)(this,"Uid")}static{this.count=0}static next(b){return new a(b+ ++a.count)}constructor(a){this.id=a,this.href=`#${a}`}toString(){return"url("+this.href+")"}},X={left:function(a){return a.depth},right:function(a,b){return b-1-a.height},center:function(a){return a.targetLinks.length?a.depth:a.sourceLinks.length?h(a.sourceLinks,j)-1:0},justify:k},Y=(0,c.__name)(a=>{let b=0,c=0;for(let d of a){let a=d.value??0;a>b&&(b=a,c=d.layer??0)}return c},"findCentralNodeLayer"),Z=(0,c.__name)(function(a,j,v,w){let x,y,{securityLevel:J,sankey:K}=(0,b.getConfig2)(),L=b.defaultConfig2.sankey;"sandbox"===J&&(x=(0,d.select)("#i"+j));let M="sandbox"===J?(0,d.select)(x.nodes()[0].contentDocument.body):(0,d.select)("body"),N="sandbox"===J?M.select(`[id="${j}"]`):(0,d.select)(`[id="${j}"]`),O=K?.width??L.width,P=K?.height??L.width,Q=K?.useMaxWidth??L.useMaxWidth,R=K?.nodeAlignment??L.nodeAlignment,S=K?.prefix??L.prefix,T=K?.suffix??L.suffix,U=K?.showValues??L.showValues,V=K?.nodeWidth??L.nodeWidth??10,Z=K?.nodePadding??L.nodePadding??12,$=K?.labelStyle??L.labelStyle??"legacy",_=K?.nodeColors??{},aa=w.db.getGraph(),ab=X[R];(function(){let a,b,c=0,d=0,e=1,f=1,j=24,v=8,w,x=q,y=k,z=r,A=s,B=6;function C(){let k={nodes:z.apply(null,arguments),links:A.apply(null,arguments)};return function({nodes:a,links:c}){for(let[b,c]of a.entries())c.index=b,c.sourceLinks=[],c.targetLinks=[];let d=new Map(a.map((b,c)=>[x(b,c,a),b]));for(let[a,b]of c.entries()){b.index=a;let{source:c,target:e}=b;"object"!=typeof c&&(c=b.source=t(d,c)),"object"!=typeof e&&(e=b.target=t(d,e)),c.sourceLinks.push(b),e.targetLinks.push(b)}if(null!=b)for(let{sourceLinks:c,targetLinks:d}of a)c.sort(b),d.sort(b)}(k),function({nodes:a}){for(let b of a)b.value=void 0===b.fixedValue?Math.max(i(b.sourceLinks,p),i(b.targetLinks,p)):b.fixedValue}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{target:b}of(a.depth=e,a.sourceLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{source:b}of(a.height=e,a.targetLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function(k){let l=function({nodes:b}){let d=g(b,a=>a.depth)+1,f=(e-c-j)/(d-1),h=Array(d);for(let a of b){let b=Math.max(0,Math.min(d-1,Math.floor(y.call(null,a,d))));a.layer=b,a.x0=c+b*f,a.x1=a.x0+j,h[b]?h[b].push(a):h[b]=[a]}if(a)for(let b of h)b.sort(a);return h}(k);w=Math.min(v,(f-d)/(g(l,a=>a.length)-1));let q=h(l,a=>(f-d-(a.length-1)*w)/i(a,p));for(let a of l){let c=d;for(let b of a)for(let a of(b.y0=c,b.y1=c+b.value*q,c=b.y1+w,b.sourceLinks))a.width=a.value*q;c=(f-c+w)/(a.length+1);for(let b=0;b<a.length;++b){let d=a[b];d.y0+=c*(b+1),d.y1+=c*(b+1)}var r=a;if(void 0===b)for(let{sourceLinks:a,targetLinks:b}of r)a.sort(n),b.sort(m)}for(let b=0;b<B;++b){let c=Math.pow(.99,b),d=Math.max(1-c,(b+1)/B);(function(b,c,d){for(let e=b.length,f=e-2;f>=0;--f){let e=b[f];for(let a of e){let b=0,d=0;for(let{target:c,value:e}of a.sourceLinks){let f=e*(c.layer-a.layer);b+=function(a,b){let c=b.y0-(b.targetLinks.length-1)*w/2;for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c+=e+w}for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c-=e}return c}(a,c)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&e.sort(o),D(e,d)}})(l,c,d),function(b,c,d){for(let e=1,f=b.length;e<f;++e){let f=b[e];for(let a of f){let b=0,d=0;for(let{source:c,value:e}of a.targetLinks){let f=e*(a.layer-c.layer);b+=function(a,b){let c=a.y0-(a.sourceLinks.length-1)*w/2;for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c+=e+w}for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c-=e}return c}(c,a)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&f.sort(o),D(f,d)}}(l,c,d)}}(k),u(k),k}function D(a,b){let c=a.length>>1,e=a[c];F(a,e.y0-w,c-1,b),E(a,e.y1+w,c+1,b),F(a,f,a.length-1,b),E(a,d,0,b)}function E(a,b,c,d){for(;c<a.length;++c){let e=a[c],f=(b-e.y0)*d;f>1e-6&&(e.y0+=f,e.y1+=f),b=e.y1+w}}function F(a,b,c,d){for(;c>=0;--c){let e=a[c],f=(e.y1-b)*d;f>1e-6&&(e.y0-=f,e.y1-=f),b=e.y0-w}}function G({sourceLinks:a,targetLinks:c}){if(void 0===b){for(let{source:{sourceLinks:a}}of c)a.sort(n);for(let{target:{targetLinks:b}}of a)b.sort(m)}}return C.update=function(a){return u(a),a},C.nodeId=function(a){return arguments.length?(x="function"==typeof a?a:l(a),C):x},C.nodeAlign=function(a){return arguments.length?(y="function"==typeof a?a:l(a),C):y},C.nodeSort=function(b){return arguments.length?(a=b,C):a},C.nodeWidth=function(a){return arguments.length?(j=+a,C):j},C.nodePadding=function(a){return arguments.length?(v=w=+a,C):v},C.nodes=function(a){return arguments.length?(z="function"==typeof a?a:l(a),C):z},C.links=function(a){return arguments.length?(A="function"==typeof a?a:l(a),C):A},C.linkSort=function(a){return arguments.length?(b=a,C):b},C.size=function(a){return arguments.length?(c=d=0,e=+a[0],f=+a[1],C):[e-c,f-d]},C.extent=function(a){return arguments.length?(c=+a[0][0],e=+a[1][0],d=+a[0][1],f=+a[1][1],C):[[c,d],[e,f]]},C.iterations=function(a){return arguments.length?(B=+a,C):B},C})().nodeId(a=>a.id).nodeWidth(V).nodePadding(Z+15*!!U).nodeAlign(ab).extent([[0,0],[O,P]])(aa);let ac=Y(aa.nodes),ad=(0,e.scaleOrdinal)(f),ae=(0,c.__name)(a=>_[a]??ad(a),"getNodeColor");N.append("g").attr("class","nodes").selectAll(".node").data(aa.nodes).join("g").attr("class","node").attr("id",a=>(a.uid=W.next("node-")).id).attr("transform",function(a){return"translate("+a.x0+","+a.y0+")"}).attr("x",a=>a.x0).attr("y",a=>a.y0).append("rect").attr("height",a=>a.y1-a.y0).attr("width",a=>a.x1-a.x0).attr("fill",a=>ae(a.id));let af=(0,c.__name)(({id:a,value:b})=>U?`${a}
1
+ module.exports=[469630,a=>{"use strict";var b=a.i(523526),c=a.i(762939);a.i(43066);var d=a.i(455784),e=a.i(349876);let f=function(a){for(var b=a.length/6|0,c=Array(b),d=0;d<b;)c[d]="#"+a.slice(6*d,6*++d);return c}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function g(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c<b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c<e||void 0===c&&e>=e)&&(c=e)}return c}function h(a,b){let c;if(void 0===b)for(let b of a)null!=b&&(c>b||void 0===c&&b>=b)&&(c=b);else{let d=-1;for(let e of a)null!=(e=b(e,++d,a))&&(c>e||void 0===c&&e>=e)&&(c=e)}return c}function i(a,b){let c=0;if(void 0===b)for(let b of a)(b*=1)&&(c+=b);else{let d=-1;for(let e of a)(e=+b(e,++d,a))&&(c+=e)}return c}function j(a){return a.target.depth}function k(a,b){return a.sourceLinks.length?a.depth:b-1}function l(a){return function(){return a}}function m(a,b){return o(a.source,b.source)||a.index-b.index}function n(a,b){return o(a.target,b.target)||a.index-b.index}function o(a,b){return a.y0-b.y0}function p(a){return a.value}function q(a){return a.index}function r(a){return a.nodes}function s(a){return a.links}function t(a,b){let c=a.get(b);if(!c)throw Error("missing: "+b);return c}function u({nodes:a}){for(let b of a){let a=b.y0,c=a;for(let c of b.sourceLinks)c.y0=a+c.width/2,a+=c.width;for(let a of b.targetLinks)a.y1=c+a.width/2,c+=a.width}}var v=Math.PI,w=2*v,x=w-1e-6;function y(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function z(){return new y}y.prototype=z.prototype={constructor:y,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a*=1,b*=1,c*=1,d*=1,e*=1;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(e<0)throw Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>1e-6)if(Math.abs(k*h-i*j)>1e-6&&e){var m=c-f,n=d-g,o=h*h+i*i,p=Math.sqrt(o),q=Math.sqrt(l),r=e*Math.tan((v-Math.acos((o+l-(m*m+n*n))/(2*p*q)))/2),s=r/q,t=r/p;Math.abs(s-1)>1e-6&&(this._+="L"+(a+s*j)+","+(b+s*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+t*h)+","+(this._y1=b+t*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b)},arc:function(a,b,c,d,e,f){a*=1,b*=1,c*=1,f=!!f;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(c<0)throw Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-j)>1e-6)&&(this._+="L"+i+","+j),c&&(l<0&&(l=l%w+w),l>x?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):l>1e-6&&(this._+="A"+c+","+c+",0,"+ +(l>=v)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var A=Array.prototype.slice;function B(a){return function(){return a}}function C(a){return a[0]}function D(a){return a[1]}function E(a){return a.source}function F(a){return a.target}function G(a,b,c,d,e){a.moveTo(b,c),a.bezierCurveTo(b=(b+d)/2,c,b,e,d,e)}function H(a){return[a.source.x1,a.y0]}function I(a){return[a.target.x0,a.y1]}var J=function(){var a=(0,c.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,9],d=[1,10],e=[1,5,10,12],f={trace:(0,c.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,c.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 7:let i=d.findOrCreateNode(f[h-4].trim().replaceAll('""','"')),j=d.findOrCreateNode(f[h-2].trim().replaceAll('""','"')),k=parseFloat(f[h].trim());d.addLink(i,j,k);break;case 8:case 9:case 11:this.$=f[h];break;case 10:this.$=f[h-1]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:b,20:d},{1:[2,6],7:11,10:[1,12]},a(d,[2,4],{9:13,5:[1,14]}),{12:[1,15]},a(e,[2,8]),a(e,[2,9]),{19:[1,16]},a(e,[2,11]),{1:[2,1]},{1:[2,5]},a(d,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:b,20:d},{15:18,16:7,17:8,18:b,20:d},{18:[1,19]},a(d,[2,3]),{12:[1,20]},a(e,[2,10]),{15:21,16:7,17:8,18:b,20:d},a([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,c.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,c.__name)(function(a){var b=this,d=[0],e=[],f=[null],g=[],h=this.table,i="",j=0,k=0,l=0,m=g.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;g.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=e.pop()||n.lex()||1)&&(a instanceof Array&&(a=(e=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.__name)(function(a){d.length=d.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,c.__name)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=d[d.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:d.push(t),f.push(n.yytext),g.push(n.yylloc),d.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=f[f.length-z],C._$={first_line:g[g.length-(z||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(z||1)].first_column,last_column:g[g.length-1].last_column},r&&(C._$.range=[g[g.length-(z||1)].range[0],g[g.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],f,g].concat(m))))return x;z&&(d=d.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),d.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[d[d.length-2]][d[d.length-1]],d.push(A);break;case 3:return!0}}return!0},"parse")};function g(){this.yy={}}return f.lexer={EOF:1,parseError:(0,c.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,c.__name)(function(a,b){return this.yy=b||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.__name)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,c.__name)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.__name)(function(){return this._more=!0,this},"more"),reject:(0,c.__name)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,c.__name)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.__name)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,c.__name)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,c.__name)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,c.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,c.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.__name)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,c.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,c.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.__name)(function(a,b,c,d){switch(c){case 0:case 1:return this.pushState("csv"),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;case 6:return 20;case 7:return this.popState("escaped_text"),18;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}},(0,c.__name)(g,"Parser"),g.prototype=f,f.Parser=g,new g}();J.parser=J;var K=[],L=[],M=new Map,N=(0,c.__name)(()=>{K=[],L=[],M=new Map,(0,b.clear)()},"clear"),O=class{constructor(a,b,c=0){this.source=a,this.target=b,this.value=c}static{(0,c.__name)(this,"SankeyLink")}},P=(0,c.__name)((a,b,c)=>{K.push(new O(a,b,c))},"addLink"),Q=class{constructor(a){this.ID=a}static{(0,c.__name)(this,"SankeyNode")}},R=(0,c.__name)(a=>{a=b.common_default.sanitizeText(a,(0,b.getConfig2)());let c=M.get(a);return void 0===c&&(c=new Q(a),M.set(a,c),L.push(c)),c},"findOrCreateNode"),S=(0,c.__name)(()=>L,"getNodes"),T=(0,c.__name)(()=>K,"getLinks"),U=(0,c.__name)(()=>({nodes:L.map(a=>({id:a.ID})),links:K.map(a=>({source:a.source.ID,target:a.target.ID,value:a.value}))}),"getGraph"),V={nodesMap:M,getConfig:(0,c.__name)(()=>(0,b.getConfig2)().sankey,"getConfig"),getNodes:S,getLinks:T,getGraph:U,addLink:P,findOrCreateNode:R,getAccTitle:b.getAccTitle,setAccTitle:b.setAccTitle,getAccDescription:b.getAccDescription,setAccDescription:b.setAccDescription,getDiagramTitle:b.getDiagramTitle,setDiagramTitle:b.setDiagramTitle,clear:N},W=class a{static{(0,c.__name)(this,"Uid")}static{this.count=0}static next(b){return new a(b+ ++a.count)}constructor(a){this.id=a,this.href=`#${a}`}toString(){return"url("+this.href+")"}},X={left:function(a){return a.depth},right:function(a,b){return b-1-a.height},center:function(a){return a.targetLinks.length?a.depth:a.sourceLinks.length?h(a.sourceLinks,j)-1:0},justify:k},Y=(0,c.__name)(a=>{let b=0,c=0;for(let d of a){let a=d.value??0;a>b&&(b=a,c=d.layer??0)}return c},"findCentralNodeLayer"),Z=(0,c.__name)(function(a,j,v,w){let x,y,{securityLevel:J,sankey:K}=(0,b.getConfig2)(),L=b.defaultConfig2.sankey;"sandbox"===J&&(x=(0,d.select)("#i"+j));let M="sandbox"===J?(0,d.select)(x.nodes()[0].contentDocument.body):(0,d.select)("body"),N="sandbox"===J?M.select(`[id="${j}"]`):(0,d.select)(`[id="${j}"]`),O=K?.width??L.width,P=K?.height??L.width,Q=K?.useMaxWidth??L.useMaxWidth,R=K?.nodeAlignment??L.nodeAlignment,S=K?.prefix??L.prefix,T=K?.suffix??L.suffix,U=K?.showValues??L.showValues,V=K?.nodeWidth??L.nodeWidth??10,Z=K?.nodePadding??L.nodePadding??12,$=K?.labelStyle??L.labelStyle??"legacy",_=K?.nodeColors??{},aa=w.db.getGraph(),ab=X[R];(function(){let a,b,c=0,d=0,e=1,f=1,j=24,v=8,w,x=q,y=k,z=r,A=s,B=6;function C(){let k={nodes:z.apply(null,arguments),links:A.apply(null,arguments)};return function({nodes:a,links:c}){for(let[b,c]of a.entries())c.index=b,c.sourceLinks=[],c.targetLinks=[];let d=new Map(a.map((b,c)=>[x(b,c,a),b]));for(let[a,b]of c.entries()){b.index=a;let{source:c,target:e}=b;"object"!=typeof c&&(c=b.source=t(d,c)),"object"!=typeof e&&(e=b.target=t(d,e)),c.sourceLinks.push(b),e.targetLinks.push(b)}if(null!=b)for(let{sourceLinks:c,targetLinks:d}of a)c.sort(b),d.sort(b)}(k),function({nodes:a}){for(let b of a)b.value=void 0===b.fixedValue?Math.max(i(b.sourceLinks,p),i(b.targetLinks,p)):b.fixedValue}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{target:b}of(a.depth=e,a.sourceLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function({nodes:a}){let b=a.length,c=new Set(a),d=new Set,e=0;for(;c.size;){for(let a of c)for(let{source:b}of(a.height=e,a.targetLinks))d.add(b);if(++e>b)throw Error("circular link");c=d,d=new Set}}(k),function(k){let l=function({nodes:b}){let d=g(b,a=>a.depth)+1,f=(e-c-j)/(d-1),h=Array(d);for(let a of b){let b=Math.max(0,Math.min(d-1,Math.floor(y.call(null,a,d))));a.layer=b,a.x0=c+b*f,a.x1=a.x0+j,h[b]?h[b].push(a):h[b]=[a]}if(a)for(let b of h)b.sort(a);return h}(k);w=Math.min(v,(f-d)/(g(l,a=>a.length)-1));let q=h(l,a=>(f-d-(a.length-1)*w)/i(a,p));for(let a of l){let c=d;for(let b of a)for(let a of(b.y0=c,b.y1=c+b.value*q,c=b.y1+w,b.sourceLinks))a.width=a.value*q;c=(f-c+w)/(a.length+1);for(let b=0;b<a.length;++b){let d=a[b];d.y0+=c*(b+1),d.y1+=c*(b+1)}var r=a;if(void 0===b)for(let{sourceLinks:a,targetLinks:b}of r)a.sort(n),b.sort(m)}for(let b=0;b<B;++b){let c=Math.pow(.99,b),d=Math.max(1-c,(b+1)/B);(function(b,c,d){for(let e=b.length,f=e-2;f>=0;--f){let e=b[f];for(let a of e){let b=0,d=0;for(let{target:c,value:e}of a.sourceLinks){let f=e*(c.layer-a.layer);b+=function(a,b){let c=b.y0-(b.targetLinks.length-1)*w/2;for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c+=e+w}for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c-=e}return c}(a,c)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&e.sort(o),D(e,d)}})(l,c,d),function(b,c,d){for(let e=1,f=b.length;e<f;++e){let f=b[e];for(let a of f){let b=0,d=0;for(let{source:c,value:e}of a.targetLinks){let f=e*(a.layer-c.layer);b+=function(a,b){let c=a.y0-(a.sourceLinks.length-1)*w/2;for(let{target:d,width:e}of a.sourceLinks){if(d===b)break;c+=e+w}for(let{source:d,width:e}of b.targetLinks){if(d===a)break;c-=e}return c}(c,a)*f,d+=f}if(!(d>0))continue;let e=(b/d-a.y0)*c;a.y0+=e,a.y1+=e,G(a)}void 0===a&&f.sort(o),D(f,d)}}(l,c,d)}}(k),u(k),k}function D(a,b){let c=a.length>>1,e=a[c];F(a,e.y0-w,c-1,b),E(a,e.y1+w,c+1,b),F(a,f,a.length-1,b),E(a,d,0,b)}function E(a,b,c,d){for(;c<a.length;++c){let e=a[c],f=(b-e.y0)*d;f>1e-6&&(e.y0+=f,e.y1+=f),b=e.y1+w}}function F(a,b,c,d){for(;c>=0;--c){let e=a[c],f=(e.y1-b)*d;f>1e-6&&(e.y0-=f,e.y1-=f),b=e.y0-w}}function G({sourceLinks:a,targetLinks:c}){if(void 0===b){for(let{source:{sourceLinks:a}}of c)a.sort(n);for(let{target:{targetLinks:b}}of a)b.sort(m)}}return C.update=function(a){return u(a),a},C.nodeId=function(a){return arguments.length?(x="function"==typeof a?a:l(a),C):x},C.nodeAlign=function(a){return arguments.length?(y="function"==typeof a?a:l(a),C):y},C.nodeSort=function(b){return arguments.length?(a=b,C):a},C.nodeWidth=function(a){return arguments.length?(j=+a,C):j},C.nodePadding=function(a){return arguments.length?(v=w=+a,C):v},C.nodes=function(a){return arguments.length?(z="function"==typeof a?a:l(a),C):z},C.links=function(a){return arguments.length?(A="function"==typeof a?a:l(a),C):A},C.linkSort=function(a){return arguments.length?(b=a,C):b},C.size=function(a){return arguments.length?(c=d=0,e=+a[0],f=+a[1],C):[e-c,f-d]},C.extent=function(a){return arguments.length?(c=+a[0][0],e=+a[1][0],d=+a[0][1],f=+a[1][1],C):[[c,d],[e,f]]},C.iterations=function(a){return arguments.length?(B=+a,C):B},C})().nodeId(a=>a.id).nodeWidth(V).nodePadding(Z+15*!!U).nodeAlign(ab).extent([[0,0],[O,P]])(aa);let ac=Y(aa.nodes),ad=(0,e.scaleOrdinal)(f),ae=(0,c.__name)(a=>_[a]??ad(a),"getNodeColor");N.append("g").attr("class","nodes").selectAll(".node").data(aa.nodes).join("g").attr("class","node").attr("id",a=>(a.uid=W.next("node-")).id).attr("transform",function(a){return"translate("+a.x0+","+a.y0+")"}).attr("x",a=>a.x0).attr("y",a=>a.y0).append("rect").attr("height",a=>a.y1-a.y0).attr("width",a=>a.x1-a.x0).attr("fill",a=>ae(a.id));let af=(0,c.__name)(({id:a,value:b})=>U?`${a}
2
2
  ${S}${Math.round(100*b)/100}${T}`:a,"getText"),ag=(0,c.__name)(a=>"outlined"===$?(a.layer??0)<ac?{x:a.x0-6,anchor:"end"}:{x:a.x1+6,anchor:"start"}:a.x0<O/2?{x:a.x1+6,anchor:"start"}:{x:a.x0-6,anchor:"end"},"getLabelPosition"),ah=N.append("g").attr("class","node-labels").attr("font-size",14),ai=(0,c.__name)(a=>ah.selectAll(a?`.${a}`:"text").data(aa.nodes).join("text").attr("class",a??null).attr("x",a=>ag(a).x).attr("y",a=>(a.y1+a.y0)/2).attr("dy",`${U?"0":"0.35"}em`).attr("text-anchor",a=>ag(a).anchor).text(af),"appendLabel");"outlined"===$?(ai("sankey-label-bg"),ai("sankey-label-fg")):ai();let aj=N.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(aa.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),ak=K?.linkColor??"gradient";if("gradient"===ak){let a=aj.append("linearGradient").attr("id",a=>(a.uid=W.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",a=>a.source.x1).attr("x2",a=>a.target.x0);a.append("stop").attr("offset","0%").attr("stop-color",a=>ae(a.source.id)),a.append("stop").attr("offset","100%").attr("stop-color",a=>ae(a.target.id))}switch(ak){case"gradient":y=(0,c.__name)(a=>a.uid,"coloring");break;case"source":y=(0,c.__name)(a=>ae(a.source.id),"coloring");break;case"target":y=(0,c.__name)(a=>ae(a.target.id),"coloring");break;default:y=ak}aj.append("path").attr("d",(function(a){var b=E,c=F,d=C,e=D,f=null;function g(){var g,h=A.call(arguments),i=b.apply(this,h),j=c.apply(this,h);if(f||(f=g=z()),a(f,+d.apply(this,(h[0]=i,h)),+e.apply(this,h),+d.apply(this,(h[0]=j,h)),+e.apply(this,h)),g)return f=null,g+""||null}return g.source=function(a){return arguments.length?(b=a,g):b},g.target=function(a){return arguments.length?(c=a,g):c},g.x=function(a){return arguments.length?(d="function"==typeof a?a:B(+a),g):d},g.y=function(a){return arguments.length?(e="function"==typeof a?a:B(+a),g):e},g.context=function(a){return arguments.length?(f=null==a?null:a,g):f},g})(G).source(H).target(I)).attr("stroke",y).attr("stroke-width",a=>Math.max(1,a.width)),(0,b.setupGraphViewbox)(void 0,N,0,Q)},"draw"),$=(0,c.__name)(a=>a.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim(),"prepareTextForParsing"),_=(0,c.__name)(a=>`.label {
3
3
  font-family: ${a.fontFamily};
4
4
  }