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,4 +1,4 @@
1
- module.exports=[472339,a=>{"use strict";var b=a.i(894369),c=a.i(357904),d=a.i(491702),e=a.i(197112),f=a.i(604225),g=a.i(762939);a.i(43066);var h=a.i(455784),i=a.i(319120),j=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,2],c=[1,3],d=[1,4],e=[2,4],f=[1,9],h=[1,11],i=[1,12],j=[1,14],k=[1,15],l=[1,17],m=[1,18],n=[1,19],o=[1,25],p=[1,26],q=[1,27],r=[1,28],s=[1,29],t=[1,30],u=[1,31],v=[1,32],w=[1,33],x=[1,34],y=[1,35],z=[1,36],A=[1,37],B=[1,38],C=[1,39],D=[1,40],E=[1,42],F=[1,43],G=[1,44],H=[1,45],I=[1,46],J=[1,47],K=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],M=[1,80],N=[1,81],O=[1,82],P=[1,83],Q=[1,84],R=[1,85],S=[1,86],T=[1,87],U=[1,88],V=[1,89],W=[1,90],X=[1,91],Y=[1,92],Z=[1,93],$=[1,94],_=[1,95],aa=[1,96],ab=[1,97],ac=[1,98],ad=[1,99],ae=[1,100],af=[1,101],ag=[1,102],ah=[1,103],ai=[1,104],aj=[1,105],ak=[2,78],al=[4,5,17,51,53,54],am=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],an=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],ao=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ap=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],aq=[5,52],ar=[70,71,72,73],as=[1,151],at={trace:(0,g.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,g.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 3:return d.apply(f[h]),f[h];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:f[h-1].push(f[h]),this.$=f[h-1];break;case 6:case 7:case 12:case 13:case 67:this.$=f[h];break;case 16:f[h].type="createParticipant",this.$=f[h];break;case 17:f[h-1].unshift({type:"boxStart",boxData:d.parseBoxData(f[h-2])}),f[h-1].push({type:"boxEnd",boxText:f[h-2]}),this.$=f[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(f[h-2]),sequenceIndexStep:Number(f[h-1]),sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(f[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:d.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:d.LINETYPE.ACTIVE_START,actor:f[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:d.LINETYPE.ACTIVE_END,actor:f[h-1].actor};break;case 30:d.setDiagramTitle(f[h].substring(6)),this.$=f[h].substring(6);break;case 31:d.setDiagramTitle(f[h].substring(7)),this.$=f[h].substring(7);break;case 32:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 33:case 34:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 35:f[h-1].unshift({type:"loopStart",loopText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.LOOP_START}),f[h-1].push({type:"loopEnd",loopText:f[h-2],signalType:d.LINETYPE.LOOP_END}),this.$=f[h-1];break;case 36:f[h-1].unshift({type:"rectStart",color:d.parseMessage(f[h-2]),signalType:d.LINETYPE.RECT_START}),f[h-1].push({type:"rectEnd",color:d.parseMessage(f[h-2]),signalType:d.LINETYPE.RECT_END}),this.$=f[h-1];break;case 37:f[h-1].unshift({type:"optStart",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.OPT_START}),f[h-1].push({type:"optEnd",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.OPT_END}),this.$=f[h-1];break;case 38:f[h-1].unshift({type:"altStart",altText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.ALT_START}),f[h-1].push({type:"altEnd",signalType:d.LINETYPE.ALT_END}),this.$=f[h-1];break;case 39:f[h-1].unshift({type:"parStart",parText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.PAR_START}),f[h-1].push({type:"parEnd",signalType:d.LINETYPE.PAR_END}),this.$=f[h-1];break;case 40:f[h-1].unshift({type:"parStart",parText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.PAR_OVER_START}),f[h-1].push({type:"parEnd",signalType:d.LINETYPE.PAR_END}),this.$=f[h-1];break;case 41:f[h-1].unshift({type:"criticalStart",criticalText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.CRITICAL_START}),f[h-1].push({type:"criticalEnd",signalType:d.LINETYPE.CRITICAL_END}),this.$=f[h-1];break;case 42:f[h-1].unshift({type:"breakStart",breakText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.BREAK_START}),f[h-1].push({type:"breakEnd",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.BREAK_END}),this.$=f[h-1];break;case 44:this.$=f[h-3].concat([{type:"option",optionText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.CRITICAL_OPTION},f[h]]);break;case 46:this.$=f[h-3].concat([{type:"and",parText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.PAR_AND},f[h]]);break;case 48:this.$=f[h-3].concat([{type:"else",altText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.ALT_ELSE},f[h]]);break;case 49:case 54:f[h-3].draw="participant",f[h-3].type="addParticipant",f[h-3].description=d.parseMessage(f[h-1]),this.$=f[h-3];break;case 50:case 55:f[h-1].draw="participant",f[h-1].type="addParticipant",this.$=f[h-1];break;case 51:case 56:f[h-3].draw="actor",f[h-3].type="addParticipant",f[h-3].description=d.parseMessage(f[h-1]),this.$=f[h-3];break;case 52:case 57:f[h-1].draw="actor",f[h-1].type="addParticipant",this.$=f[h-1];break;case 53:f[h-1].type="destroyParticipant",this.$=f[h-1];break;case 58:this.$=[f[h-1],{type:"addNote",placement:f[h-2],actor:f[h-1].actor,text:f[h]}];break;case 59:f[h-2]=[].concat(f[h-1],f[h-1]).slice(0,2),f[h-2][0]=f[h-2][0].actor,f[h-2][1]=f[h-2][1].actor,this.$=[f[h-1],{type:"addNote",placement:d.PLACEMENT.OVER,actor:f[h-2].slice(0,2),text:f[h]}];break;case 60:this.$=[f[h-1],{type:"addLinks",actor:f[h-1].actor,text:f[h]}];break;case 61:this.$=[f[h-1],{type:"addALink",actor:f[h-1].actor,text:f[h]}];break;case 62:this.$=[f[h-1],{type:"addProperties",actor:f[h-1].actor,text:f[h]}];break;case 63:this.$=[f[h-1],{type:"addDetails",actor:f[h-1].actor,text:f[h]}];break;case 66:this.$=[f[h-2],f[h]];break;case 68:this.$=d.PLACEMENT.LEFTOF;break;case 69:this.$=d.PLACEMENT.RIGHTOF;break;case 70:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0},{type:"activeStart",signalType:d.LINETYPE.ACTIVE_START,actor:f[h-1].actor}];break;case 71:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h]},{type:"activeEnd",signalType:d.LINETYPE.ACTIVE_END,actor:f[h-4].actor}];break;case 72:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0,centralConnection:d.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:d.LINETYPE.CENTRAL_CONNECTION,actor:f[h-1].actor}];break;case 73:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-2],msg:f[h],activate:!1,centralConnection:d.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:d.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:f[h-4].actor}];break;case 74:this.$=[f[h-5],f[h-1],{type:"addMessage",from:f[h-5].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0,centralConnection:d.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:d.LINETYPE.CENTRAL_CONNECTION,actor:f[h-1].actor},{type:"centralConnectionReverse",signalType:d.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:f[h-5].actor}];break;case 75:this.$=[f[h-3],f[h-1],{type:"addMessage",from:f[h-3].actor,to:f[h-1].actor,signalType:f[h-2],msg:f[h]}];break;case 76:this.$={type:"addParticipant",actor:f[h-1],config:f[h]};break;case 77:this.$=f[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:f[h]};break;case 79:this.$=d.LINETYPE.SOLID_OPEN;break;case 80:this.$=d.LINETYPE.DOTTED_OPEN;break;case 81:this.$=d.LINETYPE.SOLID;break;case 82:this.$=d.LINETYPE.SOLID_TOP;break;case 83:this.$=d.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=d.LINETYPE.STICK_TOP;break;case 85:this.$=d.LINETYPE.STICK_BOTTOM;break;case 86:this.$=d.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=d.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=d.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=d.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=d.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=d.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=d.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=d.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=d.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=d.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=d.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=d.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=d.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=d.LINETYPE.DOTTED;break;case 100:this.$=d.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=d.LINETYPE.SOLID_CROSS;break;case 102:this.$=d.LINETYPE.DOTTED_CROSS;break;case 103:this.$=d.LINETYPE.SOLID_POINT;break;case 104:this.$=d.LINETYPE.DOTTED_POINT;break;case 105:this.$=d.parseMessage(f[h].trim().substring(1))}},"anonymous"),table:[{3:1,4:b,5:c,6:d},{1:[3]},{3:5,4:b,5:c,6:d},{3:6,4:b,5:c,6:d},a([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],e,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},a(K,[2,5]),{9:48,13:13,14:j,15:k,18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},a(K,[2,7]),a(K,[2,8]),a(K,[2,9]),a(K,[2,15]),{13:49,51:B,53:C,54:D},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:J},{23:56,73:J},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},a(K,[2,30]),a(K,[2,31]),{33:[1,62]},{35:[1,63]},a(K,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:J},{69:78,72:[1,79],78:M,79:N,80:O,81:P,82:Q,83:R,84:S,85:T,86:U,87:V,88:W,89:X,90:Y,91:Z,92:$,93:_,94:aa,95:ab,96:ac,97:ad,98:ae,99:af,100:ag,101:ah,102:ai,103:aj},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:J},{23:111,73:J},{23:112,73:J},{23:113,73:J},a([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ak),a(K,[2,6]),a(K,[2,16]),a(al,[2,10],{11:114}),a(K,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},a(K,[2,22]),{5:[1,118]},{5:[1,119]},a(K,[2,25]),a(K,[2,26]),a(K,[2,27]),a(K,[2,28]),a(K,[2,29]),a(K,[2,32]),a(K,[2,33]),a(am,e,{7:120}),a(am,e,{7:121}),a(am,e,{7:122}),a(an,e,{41:123,7:124}),a(ao,e,{43:125,7:126}),a(ao,e,{7:126,43:127}),a(ap,e,{46:128,7:129}),a(am,e,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},a(aq,ak,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:J},{69:146,78:M,79:N,80:O,81:P,82:Q,83:R,84:S,85:T,86:U,87:V,88:W,89:X,90:Y,91:Z,92:$,93:_,94:aa,95:ab,96:ac,97:ad,98:ae,99:af,100:ag,101:ah,102:ai,103:aj},a(ar,[2,79]),a(ar,[2,80]),a(ar,[2,81]),a(ar,[2,82]),a(ar,[2,83]),a(ar,[2,84]),a(ar,[2,85]),a(ar,[2,86]),a(ar,[2,87]),a(ar,[2,88]),a(ar,[2,89]),a(ar,[2,90]),a(ar,[2,91]),a(ar,[2,92]),a(ar,[2,93]),a(ar,[2,94]),a(ar,[2,95]),a(ar,[2,96]),a(ar,[2,97]),a(ar,[2,98]),a(ar,[2,99]),a(ar,[2,100]),a(ar,[2,101]),a(ar,[2,102]),a(ar,[2,103]),a(ar,[2,104]),{23:147,73:J},{23:149,60:148,73:J},{73:[2,68]},{73:[2,69]},{58:150,104:as},{58:152,104:as},{58:153,104:as},{58:154,104:as},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:B,53:C,54:D},{5:[1,160]},a(K,[2,20]),a(K,[2,21]),a(K,[2,23]),a(K,[2,24]),{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,161],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,162],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,163],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,164]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,47],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,50:[1,165],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,166]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,45],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,49:[1,167],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,168]},{17:[1,169]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,43],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,48:[1,170],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,171],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{16:[1,172]},a(K,[2,50]),{16:[1,173]},a(K,[2,55]),a(aq,[2,76]),{76:[1,174]},{16:[1,175]},a(K,[2,52]),{16:[1,176]},a(K,[2,57]),a(K,[2,53]),{23:177,73:J},{23:178,73:J},{23:179,73:J},{58:180,104:as},{23:181,72:[1,182],73:J},{58:183,104:as},{58:184,104:as},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},a(K,[2,17]),a(al,[2,11]),{13:186,51:B,53:C,54:D},a(al,[2,13]),a(al,[2,14]),a(K,[2,19]),a(K,[2,35]),a(K,[2,36]),a(K,[2,37]),a(K,[2,38]),{16:[1,187]},a(K,[2,39]),{16:[1,188]},a(K,[2,40]),a(K,[2,41]),{16:[1,189]},a(K,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:as},{58:196,104:as},{58:197,104:as},{5:[2,75]},{58:198,104:as},{23:199,73:J},{5:[2,58]},{5:[2,59]},{23:200,73:J},a(al,[2,12]),a(an,e,{7:124,41:201}),a(ao,e,{7:126,43:202}),a(ap,e,{7:129,46:203}),a(K,[2,49]),a(K,[2,54]),a(aq,[2,77]),a(K,[2,51]),a(K,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:as},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},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 au(){this.yy={}}return at.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:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return b.yytext=b.yytext.trim(),73;case 12:return b.yytext=b.yytext.trim(),this.begin("ALIAS"),73;case 13:return b.yytext=b.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return b.yytext=b.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,g.__name)(au,"Parser"),au.prototype=at,at.Parser=au,new au}();j.parser=j;var k={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},l={FILLED:0,OPEN:1},m={LEFTOF:0,RIGHTOF:1,OVER:2},n=class{constructor(){this.state=new d.ImperativeState(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=f.setAccTitle,this.setAccDescription=f.setAccDescription,this.setDiagramTitle=f.setDiagramTitle,this.getAccTitle=f.getAccTitle,this.getAccDescription=f.getAccDescription,this.getDiagramTitle=f.getDiagramTitle,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,f.getConfig2)().wrap),this.LINETYPE=k,this.ARROWTYPE=l,this.PLACEMENT=m}static{(0,g.__name)(this,"SequenceDB")}addBox(a){this.state.records.boxes.push({name:a.text,wrap:a.wrap??this.autoWrap(),fill:a.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(a,c,d,e,f){let g,h=this.state.records.currentBox;if(void 0!==f){let a;a=f.includes("\n")?f+"\n":"{\n"+f+"\n}",g=(0,b.load)(a,{schema:b.JSON_SCHEMA})}e=g?.type??e,g?.alias&&(!d||d.text===c)&&(d={text:g.alias,wrap:d?.wrap,type:e});let i=this.state.records.actors.get(a);if(i){if(this.state.records.currentBox&&i.box&&this.state.records.currentBox!==i.box)throw Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(h=i.box?i.box:this.state.records.currentBox,i.box=h,i&&c===i.name&&null==d)return}if(d?.text==null&&(d={text:c,type:e}),(null==e||null==d.text)&&(d={text:c,type:e}),this.state.records.actors.set(a,{box:h,name:c,description:d.text,wrap:d.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:e??"participant"}),this.state.records.prevActor){let b=this.state.records.actors.get(this.state.records.prevActor);b&&(b.nextActor=a)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(a),this.state.records.prevActor=a}activationCount(a){let b,c=0;if(!a)return 0;for(b=0;b<this.state.records.messages.length;b++)this.state.records.messages[b].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[b].from===a&&c++,this.state.records.messages[b].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[b].from===a&&c--;return c}addMessage(a,b,c,d){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:b,message:c.text,wrap:c.wrap??this.autoWrap(),answer:d})}addSignal(a,b,c,d,e=!1,f){if(d===this.LINETYPE.ACTIVE_END&&1>this.activationCount(a??"")){let b=Error("Trying to inactivate an inactive participant ("+a+")");throw b.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},b}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:b,message:c?.text??"",wrap:c?.wrap??this.autoWrap(),type:d,activate:e,centralConnection:f??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(a=>a.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(a){return this.state.records.actors.get(a)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(a){this.state.records.wrapEnabled=a}extractWrap(a){if(void 0===a)return{};a=a.trim();let b=null!==/^:?wrap:/.exec(a)||null===/^:?nowrap:/.exec(a)&&void 0;return{cleanedText:(void 0===b?a:a.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:b}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,f.getConfig2)().sequence?.wrap??!1}clear(){this.state.reset(),(0,f.clear)()}parseMessage(a){let b=a.trim(),{wrap:c,cleanedText:d}=this.extractWrap(b),e={text:d,wrap:c};return g.log.debug(`parseMessage: ${JSON.stringify(e)}`),e}parseBoxData(a){let b=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(a),c=b?.[1]?b[1].trim():"transparent",d=b?.[2]?b[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",c)||(c="transparent",d=a.trim());else{let b=new Option().style;b.color=c,b.color!==c&&(c="transparent",d=a.trim())}let{wrap:e,cleanedText:g}=this.extractWrap(d);return{text:g?(0,f.sanitizeText)(g,(0,f.getConfig2)()):void 0,color:c,wrap:e}}addNote(a,b,c){let d={actor:a,placement:b,message:c.text,wrap:c.wrap??this.autoWrap()},e=[].concat(a,a);this.state.records.notes.push(d),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e[0],to:e[1],message:c.text,wrap:c.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:b})}addLinks(a,b){let c=this.getActor(a);try{let a=(0,f.sanitizeText)(b.text,(0,f.getConfig2)());a=(a=a.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");let d=JSON.parse(a);this.insertLinks(c,d)}catch(a){g.log.error("error while parsing actor link text",a)}}addALink(a,b){let c=this.getActor(a);try{let a={},d=(0,f.sanitizeText)(b.text,(0,f.getConfig2)()),e=d.indexOf("@"),g=(d=(d=d.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,e-1).trim(),h=d.slice(e+1).trim();a[g]=h,this.insertLinks(c,a)}catch(a){g.log.error("error while parsing actor link text",a)}}insertLinks(a,b){if(null==a.links)a.links=b;else for(let c in b)a.links[c]=b[c]}addProperties(a,b){let c=this.getActor(a);try{let a=(0,f.sanitizeText)(b.text,(0,f.getConfig2)()),d=JSON.parse(a);this.insertProperties(c,d)}catch(a){g.log.error("error while parsing actor properties text",a)}}insertProperties(a,b){if(null==a.properties)a.properties=b;else for(let c in b)a.properties[c]=b[c]}boxEnd(){this.state.records.currentBox=void 0}addDetails(a,b){let c=this.getActor(a),d=document.getElementById(b.text);try{let a=d.innerHTML,b=JSON.parse(a);b.properties&&this.insertProperties(c,b.properties),b.links&&this.insertLinks(c,b.links)}catch(a){g.log.error("error while parsing actor details text",a)}}getActorProperty(a,b){if(a?.properties!==void 0)return a.properties[b]}apply(a){if(Array.isArray(a))a.forEach(a=>{this.apply(a)});else switch(a.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:a.sequenceIndex,step:a.sequenceIndexStep,visible:a.sequenceVisible},wrap:!1,type:a.signalType});break;case"addParticipant":this.addActor(a.actor,a.actor,a.description,a.draw,a.config);break;case"createParticipant":if(this.state.records.actors.has(a.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=a.actor,this.addActor(a.actor,a.actor,a.description,a.draw,a.config),this.state.records.createdActors.set(a.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=a.actor,this.state.records.destroyedActors.set(a.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"addNote":this.addNote(a.actor,a.placement,a.text);break;case"addLinks":this.addLinks(a.actor,a.text);break;case"addALink":this.addALink(a.actor,a.text);break;case"addProperties":this.addProperties(a.actor,a.text);break;case"addDetails":this.addDetails(a.actor,a.text);break;case"addMessage":if(this.state.records.lastCreated)if(a.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(a.to!==this.state.records.lastDestroyed&&a.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(a.from,a.to,a.msg,a.signalType,a.activate,a.centralConnection);break;case"boxStart":this.addBox(a.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,a.loopText,a.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"rectStart":this.addSignal(void 0,void 0,a.color,a.signalType);break;case"optStart":this.addSignal(void 0,void 0,a.optText,a.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,a.altText,a.signalType);break;case"setAccTitle":(0,f.setAccTitle)(a.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,a.parText,a.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,a.criticalText,a.signalType);break;case"option":this.addSignal(void 0,void 0,a.optionText,a.signalType);break;case"breakStart":this.addSignal(void 0,void 0,a.breakText,a.signalType)}}getConfig(){return(0,f.getConfig2)().sequence}},o=(0,g.__name)(a=>{let b=a.dropShadow??"none",{look:c}=(0,f.getConfig2)();return`.actor {
1
+ module.exports=[472339,a=>{"use strict";var b=a.i(894369),c=a.i(357904),d=a.i(491702),e=a.i(197112),f=a.i(523526),g=a.i(762939);a.i(43066);var h=a.i(455784),i=a.i(319120),j=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,2],c=[1,3],d=[1,4],e=[2,4],f=[1,9],h=[1,11],i=[1,12],j=[1,14],k=[1,15],l=[1,17],m=[1,18],n=[1,19],o=[1,25],p=[1,26],q=[1,27],r=[1,28],s=[1,29],t=[1,30],u=[1,31],v=[1,32],w=[1,33],x=[1,34],y=[1,35],z=[1,36],A=[1,37],B=[1,38],C=[1,39],D=[1,40],E=[1,42],F=[1,43],G=[1,44],H=[1,45],I=[1,46],J=[1,47],K=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],L=[1,74],M=[1,80],N=[1,81],O=[1,82],P=[1,83],Q=[1,84],R=[1,85],S=[1,86],T=[1,87],U=[1,88],V=[1,89],W=[1,90],X=[1,91],Y=[1,92],Z=[1,93],$=[1,94],_=[1,95],aa=[1,96],ab=[1,97],ac=[1,98],ad=[1,99],ae=[1,100],af=[1,101],ag=[1,102],ah=[1,103],ai=[1,104],aj=[1,105],ak=[2,78],al=[4,5,17,51,53,54],am=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],an=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],ao=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ap=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],aq=[5,52],ar=[70,71,72,73],as=[1,151],at={trace:(0,g.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:(0,g.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 3:return d.apply(f[h]),f[h];case 4:case 10:case 8:case 9:case 14:this.$=[];break;case 5:case 11:f[h-1].push(f[h]),this.$=f[h-1];break;case 6:case 7:case 12:case 13:case 67:this.$=f[h];break;case 16:f[h].type="createParticipant",this.$=f[h];break;case 17:f[h-1].unshift({type:"boxStart",boxData:d.parseBoxData(f[h-2])}),f[h-1].push({type:"boxEnd",boxText:f[h-2]}),this.$=f[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(f[h-2]),sequenceIndexStep:Number(f[h-1]),sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(f[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:d.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:d.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:d.LINETYPE.ACTIVE_START,actor:f[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:d.LINETYPE.ACTIVE_END,actor:f[h-1].actor};break;case 30:d.setDiagramTitle(f[h].substring(6)),this.$=f[h].substring(6);break;case 31:d.setDiagramTitle(f[h].substring(7)),this.$=f[h].substring(7);break;case 32:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 33:case 34:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 35:f[h-1].unshift({type:"loopStart",loopText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.LOOP_START}),f[h-1].push({type:"loopEnd",loopText:f[h-2],signalType:d.LINETYPE.LOOP_END}),this.$=f[h-1];break;case 36:f[h-1].unshift({type:"rectStart",color:d.parseMessage(f[h-2]),signalType:d.LINETYPE.RECT_START}),f[h-1].push({type:"rectEnd",color:d.parseMessage(f[h-2]),signalType:d.LINETYPE.RECT_END}),this.$=f[h-1];break;case 37:f[h-1].unshift({type:"optStart",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.OPT_START}),f[h-1].push({type:"optEnd",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.OPT_END}),this.$=f[h-1];break;case 38:f[h-1].unshift({type:"altStart",altText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.ALT_START}),f[h-1].push({type:"altEnd",signalType:d.LINETYPE.ALT_END}),this.$=f[h-1];break;case 39:f[h-1].unshift({type:"parStart",parText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.PAR_START}),f[h-1].push({type:"parEnd",signalType:d.LINETYPE.PAR_END}),this.$=f[h-1];break;case 40:f[h-1].unshift({type:"parStart",parText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.PAR_OVER_START}),f[h-1].push({type:"parEnd",signalType:d.LINETYPE.PAR_END}),this.$=f[h-1];break;case 41:f[h-1].unshift({type:"criticalStart",criticalText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.CRITICAL_START}),f[h-1].push({type:"criticalEnd",signalType:d.LINETYPE.CRITICAL_END}),this.$=f[h-1];break;case 42:f[h-1].unshift({type:"breakStart",breakText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.BREAK_START}),f[h-1].push({type:"breakEnd",optText:d.parseMessage(f[h-2]),signalType:d.LINETYPE.BREAK_END}),this.$=f[h-1];break;case 44:this.$=f[h-3].concat([{type:"option",optionText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.CRITICAL_OPTION},f[h]]);break;case 46:this.$=f[h-3].concat([{type:"and",parText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.PAR_AND},f[h]]);break;case 48:this.$=f[h-3].concat([{type:"else",altText:d.parseMessage(f[h-1]),signalType:d.LINETYPE.ALT_ELSE},f[h]]);break;case 49:case 54:f[h-3].draw="participant",f[h-3].type="addParticipant",f[h-3].description=d.parseMessage(f[h-1]),this.$=f[h-3];break;case 50:case 55:f[h-1].draw="participant",f[h-1].type="addParticipant",this.$=f[h-1];break;case 51:case 56:f[h-3].draw="actor",f[h-3].type="addParticipant",f[h-3].description=d.parseMessage(f[h-1]),this.$=f[h-3];break;case 52:case 57:f[h-1].draw="actor",f[h-1].type="addParticipant",this.$=f[h-1];break;case 53:f[h-1].type="destroyParticipant",this.$=f[h-1];break;case 58:this.$=[f[h-1],{type:"addNote",placement:f[h-2],actor:f[h-1].actor,text:f[h]}];break;case 59:f[h-2]=[].concat(f[h-1],f[h-1]).slice(0,2),f[h-2][0]=f[h-2][0].actor,f[h-2][1]=f[h-2][1].actor,this.$=[f[h-1],{type:"addNote",placement:d.PLACEMENT.OVER,actor:f[h-2].slice(0,2),text:f[h]}];break;case 60:this.$=[f[h-1],{type:"addLinks",actor:f[h-1].actor,text:f[h]}];break;case 61:this.$=[f[h-1],{type:"addALink",actor:f[h-1].actor,text:f[h]}];break;case 62:this.$=[f[h-1],{type:"addProperties",actor:f[h-1].actor,text:f[h]}];break;case 63:this.$=[f[h-1],{type:"addDetails",actor:f[h-1].actor,text:f[h]}];break;case 66:this.$=[f[h-2],f[h]];break;case 68:this.$=d.PLACEMENT.LEFTOF;break;case 69:this.$=d.PLACEMENT.RIGHTOF;break;case 70:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0},{type:"activeStart",signalType:d.LINETYPE.ACTIVE_START,actor:f[h-1].actor}];break;case 71:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h]},{type:"activeEnd",signalType:d.LINETYPE.ACTIVE_END,actor:f[h-4].actor}];break;case 72:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0,centralConnection:d.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:d.LINETYPE.CENTRAL_CONNECTION,actor:f[h-1].actor}];break;case 73:this.$=[f[h-4],f[h-1],{type:"addMessage",from:f[h-4].actor,to:f[h-1].actor,signalType:f[h-2],msg:f[h],activate:!1,centralConnection:d.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:d.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:f[h-4].actor}];break;case 74:this.$=[f[h-5],f[h-1],{type:"addMessage",from:f[h-5].actor,to:f[h-1].actor,signalType:f[h-3],msg:f[h],activate:!0,centralConnection:d.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:d.LINETYPE.CENTRAL_CONNECTION,actor:f[h-1].actor},{type:"centralConnectionReverse",signalType:d.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:f[h-5].actor}];break;case 75:this.$=[f[h-3],f[h-1],{type:"addMessage",from:f[h-3].actor,to:f[h-1].actor,signalType:f[h-2],msg:f[h]}];break;case 76:this.$={type:"addParticipant",actor:f[h-1],config:f[h]};break;case 77:this.$=f[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:f[h]};break;case 79:this.$=d.LINETYPE.SOLID_OPEN;break;case 80:this.$=d.LINETYPE.DOTTED_OPEN;break;case 81:this.$=d.LINETYPE.SOLID;break;case 82:this.$=d.LINETYPE.SOLID_TOP;break;case 83:this.$=d.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=d.LINETYPE.STICK_TOP;break;case 85:this.$=d.LINETYPE.STICK_BOTTOM;break;case 86:this.$=d.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=d.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=d.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=d.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=d.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=d.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=d.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=d.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=d.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=d.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=d.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=d.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=d.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=d.LINETYPE.DOTTED;break;case 100:this.$=d.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=d.LINETYPE.SOLID_CROSS;break;case 102:this.$=d.LINETYPE.DOTTED_CROSS;break;case 103:this.$=d.LINETYPE.SOLID_POINT;break;case 104:this.$=d.LINETYPE.DOTTED_POINT;break;case 105:this.$=d.parseMessage(f[h].trim().substring(1))}},"anonymous"),table:[{3:1,4:b,5:c,6:d},{1:[3]},{3:5,4:b,5:c,6:d},{3:6,4:b,5:c,6:d},a([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],e,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},a(K,[2,5]),{9:48,13:13,14:j,15:k,18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},a(K,[2,7]),a(K,[2,8]),a(K,[2,9]),a(K,[2,15]),{13:49,51:B,53:C,54:D},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:J},{23:56,73:J},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},a(K,[2,30]),a(K,[2,31]),{33:[1,62]},{35:[1,63]},a(K,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:L},{23:75,55:76,73:L},{23:77,73:J},{69:78,72:[1,79],78:M,79:N,80:O,81:P,82:Q,83:R,84:S,85:T,86:U,87:V,88:W,89:X,90:Y,91:Z,92:$,93:_,94:aa,95:ab,96:ac,97:ad,98:ae,99:af,100:ag,101:ah,102:ai,103:aj},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:J},{23:111,73:J},{23:112,73:J},{23:113,73:J},a([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ak),a(K,[2,6]),a(K,[2,16]),a(al,[2,10],{11:114}),a(K,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},a(K,[2,22]),{5:[1,118]},{5:[1,119]},a(K,[2,25]),a(K,[2,26]),a(K,[2,27]),a(K,[2,28]),a(K,[2,29]),a(K,[2,32]),a(K,[2,33]),a(am,e,{7:120}),a(am,e,{7:121}),a(am,e,{7:122}),a(an,e,{41:123,7:124}),a(ao,e,{43:125,7:126}),a(ao,e,{7:126,43:127}),a(ap,e,{46:128,7:129}),a(am,e,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},a(aq,ak,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:J},{69:146,78:M,79:N,80:O,81:P,82:Q,83:R,84:S,85:T,86:U,87:V,88:W,89:X,90:Y,91:Z,92:$,93:_,94:aa,95:ab,96:ac,97:ad,98:ae,99:af,100:ag,101:ah,102:ai,103:aj},a(ar,[2,79]),a(ar,[2,80]),a(ar,[2,81]),a(ar,[2,82]),a(ar,[2,83]),a(ar,[2,84]),a(ar,[2,85]),a(ar,[2,86]),a(ar,[2,87]),a(ar,[2,88]),a(ar,[2,89]),a(ar,[2,90]),a(ar,[2,91]),a(ar,[2,92]),a(ar,[2,93]),a(ar,[2,94]),a(ar,[2,95]),a(ar,[2,96]),a(ar,[2,97]),a(ar,[2,98]),a(ar,[2,99]),a(ar,[2,100]),a(ar,[2,101]),a(ar,[2,102]),a(ar,[2,103]),a(ar,[2,104]),{23:147,73:J},{23:149,60:148,73:J},{73:[2,68]},{73:[2,69]},{58:150,104:as},{58:152,104:as},{58:153,104:as},{58:154,104:as},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:B,53:C,54:D},{5:[1,160]},a(K,[2,20]),a(K,[2,21]),a(K,[2,23]),a(K,[2,24]),{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,161],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,162],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,163],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,164]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,47],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,50:[1,165],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,166]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,45],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,49:[1,167],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{17:[1,168]},{17:[1,169]},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[2,43],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,48:[1,170],51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{4:f,5:h,8:8,9:10,10:i,13:13,14:j,15:k,17:[1,171],18:16,19:l,22:m,23:41,24:n,25:20,26:21,27:22,28:23,29:24,30:o,31:p,32:q,34:r,36:s,37:t,38:u,39:v,40:w,42:x,44:y,45:z,47:A,51:B,53:C,54:D,56:E,61:F,62:G,63:H,64:I,73:J},{16:[1,172]},a(K,[2,50]),{16:[1,173]},a(K,[2,55]),a(aq,[2,76]),{76:[1,174]},{16:[1,175]},a(K,[2,52]),{16:[1,176]},a(K,[2,57]),a(K,[2,53]),{23:177,73:J},{23:178,73:J},{23:179,73:J},{58:180,104:as},{23:181,72:[1,182],73:J},{58:183,104:as},{58:184,104:as},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},a(K,[2,17]),a(al,[2,11]),{13:186,51:B,53:C,54:D},a(al,[2,13]),a(al,[2,14]),a(K,[2,19]),a(K,[2,35]),a(K,[2,36]),a(K,[2,37]),a(K,[2,38]),{16:[1,187]},a(K,[2,39]),{16:[1,188]},a(K,[2,40]),a(K,[2,41]),{16:[1,189]},a(K,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:as},{58:196,104:as},{58:197,104:as},{5:[2,75]},{58:198,104:as},{23:199,73:J},{5:[2,58]},{5:[2,59]},{23:200,73:J},a(al,[2,12]),a(an,e,{7:124,41:201}),a(ao,e,{7:126,43:202}),a(ap,e,{7:129,46:203}),a(K,[2,49]),a(K,[2,54]),a(aq,[2,77]),a(K,[2,51]),a(K,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:as},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},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 au(){this.yy={}}return at.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:case 59:case 92:return 5;case 1:case 2:case 3:case 4:case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;case 10:return this.popState(),this.popState(),77;case 11:case 60:return b.yytext=b.yytext.trim(),73;case 12:return b.yytext=b.yytext.trim(),this.begin("ALIAS"),73;case 13:return b.yytext=b.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return b.yytext=b.yytext.trim(),this.popState(),10;case 16:return this.begin("LINE"),15;case 17:return this.begin("ID"),51;case 18:return this.begin("ID"),53;case 19:return 14;case 20:return this.begin("ID"),54;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin("LINE"),37;case 24:return this.begin("LINE"),38;case 25:return this.begin("LINE"),39;case 26:return this.begin("LINE"),40;case 27:return this.begin("LINE"),50;case 28:return this.begin("LINE"),42;case 29:return this.begin("LINE"),44;case 30:return this.begin("LINE"),49;case 31:return this.begin("LINE"),45;case 32:return this.begin("LINE"),48;case 33:return this.begin("LINE"),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;case 45:return this.begin("ID"),24;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;case 49:return this.popState(),"acc_title_value";case 50:return this.begin("acc_descr"),34;case 51:return this.popState(),"acc_descr_value";case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}},(0,g.__name)(au,"Parser"),au.prototype=at,at.Parser=au,new au}();j.parser=j;var k={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},l={FILLED:0,OPEN:1},m={LEFTOF:0,RIGHTOF:1,OVER:2},n=class{constructor(){this.state=new d.ImperativeState(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=f.setAccTitle,this.setAccDescription=f.setAccDescription,this.setDiagramTitle=f.setDiagramTitle,this.getAccTitle=f.getAccTitle,this.getAccDescription=f.getAccDescription,this.getDiagramTitle=f.getDiagramTitle,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,f.getConfig2)().wrap),this.LINETYPE=k,this.ARROWTYPE=l,this.PLACEMENT=m}static{(0,g.__name)(this,"SequenceDB")}addBox(a){this.state.records.boxes.push({name:a.text,wrap:a.wrap??this.autoWrap(),fill:a.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(a,c,d,e,f){let g,h=this.state.records.currentBox;if(void 0!==f){let a;a=f.includes("\n")?f+"\n":"{\n"+f+"\n}",g=(0,b.load)(a,{schema:b.JSON_SCHEMA})}e=g?.type??e,g?.alias&&(!d||d.text===c)&&(d={text:g.alias,wrap:d?.wrap,type:e});let i=this.state.records.actors.get(a);if(i){if(this.state.records.currentBox&&i.box&&this.state.records.currentBox!==i.box)throw Error(`A same participant should only be defined in one Box: ${i.name} can't be in '${i.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(h=i.box?i.box:this.state.records.currentBox,i.box=h,i&&c===i.name&&null==d)return}if(d?.text==null&&(d={text:c,type:e}),(null==e||null==d.text)&&(d={text:c,type:e}),this.state.records.actors.set(a,{box:h,name:c,description:d.text,wrap:d.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:e??"participant"}),this.state.records.prevActor){let b=this.state.records.actors.get(this.state.records.prevActor);b&&(b.nextActor=a)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(a),this.state.records.prevActor=a}activationCount(a){let b,c=0;if(!a)return 0;for(b=0;b<this.state.records.messages.length;b++)this.state.records.messages[b].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[b].from===a&&c++,this.state.records.messages[b].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[b].from===a&&c--;return c}addMessage(a,b,c,d){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:b,message:c.text,wrap:c.wrap??this.autoWrap(),answer:d})}addSignal(a,b,c,d,e=!1,f){if(d===this.LINETYPE.ACTIVE_END&&1>this.activationCount(a??"")){let b=Error("Trying to inactivate an inactive participant ("+a+")");throw b.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},b}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:a,to:b,message:c?.text??"",wrap:c?.wrap??this.autoWrap(),type:d,activate:e,centralConnection:f??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(a=>a.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(a){return this.state.records.actors.get(a)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(a){this.state.records.wrapEnabled=a}extractWrap(a){if(void 0===a)return{};a=a.trim();let b=null!==/^:?wrap:/.exec(a)||null===/^:?nowrap:/.exec(a)&&void 0;return{cleanedText:(void 0===b?a:a.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:b}}autoWrap(){return void 0!==this.state.records.wrapEnabled?this.state.records.wrapEnabled:(0,f.getConfig2)().sequence?.wrap??!1}clear(){this.state.reset(),(0,f.clear)()}parseMessage(a){let b=a.trim(),{wrap:c,cleanedText:d}=this.extractWrap(b),e={text:d,wrap:c};return g.log.debug(`parseMessage: ${JSON.stringify(e)}`),e}parseBoxData(a){let b=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(a),c=b?.[1]?b[1].trim():"transparent",d=b?.[2]?b[2].trim():void 0;if(window?.CSS)window.CSS.supports("color",c)||(c="transparent",d=a.trim());else{let b=new Option().style;b.color=c,b.color!==c&&(c="transparent",d=a.trim())}let{wrap:e,cleanedText:g}=this.extractWrap(d);return{text:g?(0,f.sanitizeText)(g,(0,f.getConfig2)()):void 0,color:c,wrap:e}}addNote(a,b,c){let d={actor:a,placement:b,message:c.text,wrap:c.wrap??this.autoWrap()},e=[].concat(a,a);this.state.records.notes.push(d),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e[0],to:e[1],message:c.text,wrap:c.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:b})}addLinks(a,b){let c=this.getActor(a);try{let a=(0,f.sanitizeText)(b.text,(0,f.getConfig2)());a=(a=a.replace(/&equals;/g,"=")).replace(/&amp;/g,"&");let d=JSON.parse(a);this.insertLinks(c,d)}catch(a){g.log.error("error while parsing actor link text",a)}}addALink(a,b){let c=this.getActor(a);try{let a={},d=(0,f.sanitizeText)(b.text,(0,f.getConfig2)()),e=d.indexOf("@"),g=(d=(d=d.replace(/&equals;/g,"=")).replace(/&amp;/g,"&")).slice(0,e-1).trim(),h=d.slice(e+1).trim();a[g]=h,this.insertLinks(c,a)}catch(a){g.log.error("error while parsing actor link text",a)}}insertLinks(a,b){if(null==a.links)a.links=b;else for(let c in b)a.links[c]=b[c]}addProperties(a,b){let c=this.getActor(a);try{let a=(0,f.sanitizeText)(b.text,(0,f.getConfig2)()),d=JSON.parse(a);this.insertProperties(c,d)}catch(a){g.log.error("error while parsing actor properties text",a)}}insertProperties(a,b){if(null==a.properties)a.properties=b;else for(let c in b)a.properties[c]=b[c]}boxEnd(){this.state.records.currentBox=void 0}addDetails(a,b){let c=this.getActor(a),d=document.getElementById(b.text);try{let a=d.innerHTML,b=JSON.parse(a);b.properties&&this.insertProperties(c,b.properties),b.links&&this.insertLinks(c,b.links)}catch(a){g.log.error("error while parsing actor details text",a)}}getActorProperty(a,b){if(a?.properties!==void 0)return a.properties[b]}apply(a){if(Array.isArray(a))a.forEach(a=>{this.apply(a)});else switch(a.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:a.sequenceIndex,step:a.sequenceIndexStep,visible:a.sequenceVisible},wrap:!1,type:a.signalType});break;case"addParticipant":this.addActor(a.actor,a.actor,a.description,a.draw,a.config);break;case"createParticipant":if(this.state.records.actors.has(a.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=a.actor,this.addActor(a.actor,a.actor,a.description,a.draw,a.config),this.state.records.createdActors.set(a.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=a.actor,this.state.records.destroyedActors.set(a.actor,this.state.records.messages.length);break;case"activeStart":case"centralConnection":case"centralConnectionReverse":case"activeEnd":this.addSignal(a.actor,void 0,void 0,a.signalType);break;case"addNote":this.addNote(a.actor,a.placement,a.text);break;case"addLinks":this.addLinks(a.actor,a.text);break;case"addALink":this.addALink(a.actor,a.text);break;case"addProperties":this.addProperties(a.actor,a.text);break;case"addDetails":this.addDetails(a.actor,a.text);break;case"addMessage":if(this.state.records.lastCreated)if(a.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(a.to!==this.state.records.lastDestroyed&&a.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(a.from,a.to,a.msg,a.signalType,a.activate,a.centralConnection);break;case"boxStart":this.addBox(a.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,a.loopText,a.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":this.addSignal(void 0,void 0,void 0,a.signalType);break;case"rectStart":this.addSignal(void 0,void 0,a.color,a.signalType);break;case"optStart":this.addSignal(void 0,void 0,a.optText,a.signalType);break;case"altStart":case"else":this.addSignal(void 0,void 0,a.altText,a.signalType);break;case"setAccTitle":(0,f.setAccTitle)(a.text);break;case"parStart":case"and":this.addSignal(void 0,void 0,a.parText,a.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,a.criticalText,a.signalType);break;case"option":this.addSignal(void 0,void 0,a.optionText,a.signalType);break;case"breakStart":this.addSignal(void 0,void 0,a.breakText,a.signalType)}}getConfig(){return(0,f.getConfig2)().sequence}},o=(0,g.__name)(a=>{let b=a.dropShadow??"none",{look:c}=(0,f.getConfig2)();return`.actor {
2
2
  stroke: ${a.actorBorder};
3
3
  fill: ${a.actorBkg};
4
4
  stroke-width: ${a.strokeWidth??1};
@@ -1,3 +1,3 @@
1
- module.exports=[598989,a=>{"use strict";var b,c=a.i(927163);a.i(394900),a.i(432623),a.i(616300),a.i(762927),a.i(764901),a.i(215586),a.i(211193),a.i(706860),a.i(654669);var d=a.i(197112),e=a.i(604225),f=a.i(762939);a.i(43066);var g=a.i(455784);a.i(721555);var h=a.i(987282);a.i(648504);var i=a.i(553342),j=a.i(298648),k=a.i(129393),l=(0,f.__name)(a=>a.append("circle").attr("class","start-state").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit),"drawStartState"),m=(0,f.__name)(a=>a.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,e.getConfig2)().state.textHeight).attr("class","divider").attr("x2",2*(0,e.getConfig2)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),n=(0,f.__name)((a,b)=>{let c=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+2*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),d=c.node().getBBox();return a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",d.width+2*(0,e.getConfig2)().state.padding).attr("height",d.height+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),c},"drawSimpleState"),o=(0,f.__name)((a,b)=>{let c=(0,f.__name)(function(a,b,c){let d=a.append("tspan").attr("x",2*(0,e.getConfig2)().state.padding).text(b);c||d.attr("dy",(0,e.getConfig2)().state.textHeight)},"addTspan"),d=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+1.3*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.descriptions[0]).node().getBBox(),g=d.height,h=a.append("text").attr("x",(0,e.getConfig2)().state.padding).attr("y",g+.4*(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.dividerMargin+(0,e.getConfig2)().state.textHeight).attr("class","state-description"),i=!0,j=!0;b.descriptions.forEach(function(a){i||(c(h,a,j),j=!1),i=!1});let k=a.append("line").attr("x1",(0,e.getConfig2)().state.padding).attr("y1",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("y2",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("class","descr-divider"),l=h.node().getBBox(),m=Math.max(l.width,d.width);return k.attr("x2",m+3*(0,e.getConfig2)().state.padding),a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",m+2*(0,e.getConfig2)().state.padding).attr("height",l.height+g+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),a},"drawDescrState"),p=(0,f.__name)((a,b,c)=>{let d,f=(0,e.getConfig2)().state.padding,g=2*(0,e.getConfig2)().state.padding,h=a.node().getBBox(),i=h.width,j=h.x,k=a.append("text").attr("x",0).attr("y",(0,e.getConfig2)().state.titleShift).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),l=k.node().getBBox().width+g,m=Math.max(l,i);m===i&&(m+=g);let n=a.node().getBBox();b.doc,d=j-f,l>i&&(d=(i-m)/2+f),Math.abs(j-n.x)<f&&l>i&&(d=j-(l-i)/2);let o=1-(0,e.getConfig2)().state.textHeight;return a.insert("rect",":first-child").attr("x",d).attr("y",o).attr("class",c?"alt-composit":"composit").attr("width",m).attr("height",n.height+(0,e.getConfig2)().state.textHeight+(0,e.getConfig2)().state.titleShift+1).attr("rx","0"),k.attr("x",d+f),l<=i&&k.attr("x",j+(m-g)/2-l/2+f),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",3*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",n.height+3+2*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a},"addTitleAndBox"),q=(0,f.__name)(a=>(a.append("circle").attr("class","end-state-outer").attr("r",(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding),a.append("circle").attr("class","end-state-inner").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2)),"drawEndState"),r=(0,f.__name)((a,b)=>{let c=(0,e.getConfig2)().state.forkWidth,d=(0,e.getConfig2)().state.forkHeight;if(b.parentId){let a=c;c=d,d=a}return a.append("rect").style("stroke","black").style("fill","black").attr("width",c).attr("height",d).attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding)},"drawForkJoinState"),s=(0,f.__name)((a,b,c,d)=>{let f=0,g=d.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=a.replace(/\r\n/g,"<br/>"),i=(h=h.replace(/\n/g,"<br/>")).split(e.common_default.lineBreakRegex),j=1.25*(0,e.getConfig2)().state.noteMargin;for(let a of i){let d=a.trim();if(d.length>0){let a=g.append("tspan");a.text(d),0===j&&(j+=a.node().getBBox().height),f+=j,a.attr("x",b+(0,e.getConfig2)().state.noteMargin),a.attr("y",c+f+1.25*(0,e.getConfig2)().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:f}},"_drawLongText"),t=(0,f.__name)((a,b)=>{b.attr("class","state-note");let c=b.append("rect").attr("x",0).attr("y",(0,e.getConfig2)().state.padding),{textWidth:d,textHeight:f}=s(a,0,0,b.append("g"));return c.attr("height",f+2*(0,e.getConfig2)().state.noteMargin),c.attr("width",d+2*(0,e.getConfig2)().state.noteMargin),c},"drawNote"),u=(0,f.__name)(function(a,b){let c=b.id,d={id:c,label:b.id,width:0,height:0},f=a.append("g").attr("id",c).attr("class","stateGroup");"start"===b.type&&l(f),"end"===b.type&&q(f),("fork"===b.type||"join"===b.type)&&r(f,b),"note"===b.type&&t(b.note.text,f),"divider"===b.type&&m(f),"default"===b.type&&0===b.descriptions.length&&n(f,b),"default"===b.type&&b.descriptions.length>0&&o(f,b);let g=f.node().getBBox();return d.width=g.width+2*(0,e.getConfig2)().state.padding,d.height=g.height+2*(0,e.getConfig2)().state.padding,d},"drawState"),v=0,w=(0,f.__name)(function(a,b,g){let h=(0,f.__name)(function(a){switch(a){case c.StateDB.relationType.AGGREGATION:return"aggregation";case c.StateDB.relationType.EXTENSION:return"extension";case c.StateDB.relationType.COMPOSITION:return"composition";case c.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");b.points=b.points.filter(a=>!Number.isNaN(a.y));let i=b.points,l=(0,j.line)().x(function(a){return a.x}).y(function(a){return a.y}).curve(k.curveBasis),m=a.append("path").attr("d",l(i)).attr("id","edge"+v).attr("class","transition"),n="";if((0,e.getConfig2)().state.arrowMarkerAbsolute&&(n=(0,e.getUrl)(!0)),m.attr("marker-end","url("+n+"#"+h(c.StateDB.relationType.DEPENDENCY)+"End)"),void 0!==g.title){let c=a.append("g").attr("class","stateLabel"),{x:h,y:i}=d.utils_default.calcLabelPosition(b.points),j=e.common_default.getRows(g.title),k=0,l=[],m=0,n=0;for(let a=0;a<=j.length;a++){let b=c.append("text").attr("text-anchor","middle").text(j[a]).attr("x",h).attr("y",i+k),d=b.node().getBBox();m=Math.max(m,d.width),n=Math.min(n,d.x),f.log.info(d.x,h,i+k),0===k&&(k=b.node().getBBox().height,f.log.info("Title height",k,i)),l.push(b)}let o=k*j.length;if(j.length>1){let a=(j.length-1)*k*.5;l.forEach((b,c)=>b.attr("y",i+c*k-a)),o=k*j.length}let p=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",h-m/2-(0,e.getConfig2)().state.padding/2).attr("y",i-o/2-(0,e.getConfig2)().state.padding/2-3.5).attr("width",m+(0,e.getConfig2)().state.padding).attr("height",o+(0,e.getConfig2)().state.padding),f.log.info(p)}v++},"drawEdge"),x={},y=(0,f.__name)(function(){},"setConf"),z=(0,f.__name)(function(a){a.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),A=(0,f.__name)(function(a,c,d,h){let i;b=(0,e.getConfig2)().state;let j=(0,e.getConfig2)().securityLevel;"sandbox"===j&&(i=(0,g.select)("#i"+c));let k="sandbox"===j?(0,g.select)(i.nodes()[0].contentDocument.body):(0,g.select)("body"),l="sandbox"===j?i.nodes()[0].contentDocument:document;f.log.debug("Rendering diagram "+a);let m=k.select(`[id='${c}']`);z(m),C(h.db.getRootDoc(),m.append("g").attr("id",c+"-root"),void 0,!1,k,l,h);let n=b.padding,o=m.node().getBBox(),p=o.width+2*n,q=o.height+2*n;(0,e.configureSvgSize)(m,q,1.75*p,b.useMaxWidth),m.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+p+" "+q)},"draw"),B=(0,f.__name)(a=>a?a.length*b.fontSizeFactor:1,"getLabelWidth"),C=(0,f.__name)((a,c,d,g,j,k,l)=>{let m,n=new i.Graph({compound:!0,multigraph:!0}),o=!0;for(m=0;m<a.length;m++)if("relation"===a[m].stmt){o=!1;break}d?n.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,isMultiGraph:!0}):n.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,ranker:"tight-tree",isMultiGraph:!0}),n.setDefaultEdgeLabel(function(){return{}});let q=l.db.getStates(),r=l.db.getRelations();for(let a of Object.keys(q)){let e,f=q[a];if(d&&(f.parentId=d),f.doc){let a=c.append("g").attr("id",f.id).attr("class","stateGroup");e=C(f.doc,a,f.id,!g,j,k,l);{let c=(a=p(a,f,g)).node().getBBox();e.width=c.width,e.height=c.height+b.padding/2,x[f.id]={y:b.compositTitleSize}}}else e=u(c,f,n);if(f.note){let a=u(c,{descriptions:[],id:f.id+"-note",note:f.note,type:"note"},n);"left of"===f.note.position?(n.setNode(e.id+"-note",a),n.setNode(e.id,e)):(n.setNode(e.id,e),n.setNode(e.id+"-note",a)),n.setParent(e.id,e.id+"-group"),n.setParent(e.id+"-note",e.id+"-group")}else n.setNode(e.id,e)}f.log.debug("Count=",n.nodeCount(),n);let s=0;r.forEach(function(a){s++,f.log.debug("Setting edge",a),n.setEdge(a.id1,a.id2,{relation:a,width:B(a.title),height:b.labelHeight*e.common_default.getRows(a.title).length,labelpos:"c"},"id"+s)}),(0,h.layout)(n),f.log.debug("Graph after layout",n.nodes());let t=c.node();n.nodes().forEach(function(a){void 0!==a&&void 0!==n.node(a)?(f.log.warn("Node "+a+": "+JSON.stringify(n.node(a))),j.select("#"+t.id+" #"+a).attr("transform","translate("+(n.node(a).x-n.node(a).width/2)+","+(n.node(a).y+(x[a]?x[a].y:0)-n.node(a).height/2)+" )"),j.select("#"+t.id+" #"+a).attr("data-x-shift",n.node(a).x-n.node(a).width/2),k.querySelectorAll("#"+t.id+" #"+a+" .divider").forEach(a=>{let b=a.parentElement,c=0,d=0;b&&(b.parentElement&&(c=b.parentElement.getBBox().width),Number.isNaN(d=parseInt(b.getAttribute("data-x-shift"),10))&&(d=0)),a.setAttribute("x1",0-d+8),a.setAttribute("x2",c-d-8)})):f.log.debug("No Node "+a+": "+JSON.stringify(n.node(a)))});let v=t.getBBox();n.edges().forEach(function(a){void 0!==a&&void 0!==n.edge(a)&&(f.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(n.edge(a))),w(c,n.edge(a),n.edge(a).relation))});let y={id:d||"root",label:d||"root",width:0,height:0};return y.width=(v=t.getBBox()).width+2*b.padding,y.height=v.height+2*b.padding,f.log.debug("Doc rendered",y,n),y},"renderDoc"),D={parser:c.stateDiagram_default,get db(){return new c.StateDB(1)},renderer:{setConf:y,draw:A},styles:c.styles_default,init:(0,f.__name)(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};a.s(["diagram",0,D])}];
1
+ module.exports=[598989,a=>{"use strict";var b,c=a.i(927163);a.i(394900),a.i(432623),a.i(616300),a.i(762927),a.i(764901),a.i(215586),a.i(211193),a.i(706860),a.i(654669);var d=a.i(197112),e=a.i(523526),f=a.i(762939);a.i(43066);var g=a.i(455784);a.i(721555);var h=a.i(987282);a.i(648504);var i=a.i(553342),j=a.i(298648),k=a.i(129393),l=(0,f.__name)(a=>a.append("circle").attr("class","start-state").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit),"drawStartState"),m=(0,f.__name)(a=>a.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,e.getConfig2)().state.textHeight).attr("class","divider").attr("x2",2*(0,e.getConfig2)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),n=(0,f.__name)((a,b)=>{let c=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+2*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),d=c.node().getBBox();return a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",d.width+2*(0,e.getConfig2)().state.padding).attr("height",d.height+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),c},"drawSimpleState"),o=(0,f.__name)((a,b)=>{let c=(0,f.__name)(function(a,b,c){let d=a.append("tspan").attr("x",2*(0,e.getConfig2)().state.padding).text(b);c||d.attr("dy",(0,e.getConfig2)().state.textHeight)},"addTspan"),d=a.append("text").attr("x",2*(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.textHeight+1.3*(0,e.getConfig2)().state.padding).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.descriptions[0]).node().getBBox(),g=d.height,h=a.append("text").attr("x",(0,e.getConfig2)().state.padding).attr("y",g+.4*(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.dividerMargin+(0,e.getConfig2)().state.textHeight).attr("class","state-description"),i=!0,j=!0;b.descriptions.forEach(function(a){i||(c(h,a,j),j=!1),i=!1});let k=a.append("line").attr("x1",(0,e.getConfig2)().state.padding).attr("y1",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("y2",(0,e.getConfig2)().state.padding+g+(0,e.getConfig2)().state.dividerMargin/2).attr("class","descr-divider"),l=h.node().getBBox(),m=Math.max(l.width,d.width);return k.attr("x2",m+3*(0,e.getConfig2)().state.padding),a.insert("rect",":first-child").attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding).attr("width",m+2*(0,e.getConfig2)().state.padding).attr("height",l.height+g+2*(0,e.getConfig2)().state.padding).attr("rx",(0,e.getConfig2)().state.radius),a},"drawDescrState"),p=(0,f.__name)((a,b,c)=>{let d,f=(0,e.getConfig2)().state.padding,g=2*(0,e.getConfig2)().state.padding,h=a.node().getBBox(),i=h.width,j=h.x,k=a.append("text").attr("x",0).attr("y",(0,e.getConfig2)().state.titleShift).attr("font-size",(0,e.getConfig2)().state.fontSize).attr("class","state-title").text(b.id),l=k.node().getBBox().width+g,m=Math.max(l,i);m===i&&(m+=g);let n=a.node().getBBox();b.doc,d=j-f,l>i&&(d=(i-m)/2+f),Math.abs(j-n.x)<f&&l>i&&(d=j-(l-i)/2);let o=1-(0,e.getConfig2)().state.textHeight;return a.insert("rect",":first-child").attr("x",d).attr("y",o).attr("class",c?"alt-composit":"composit").attr("width",m).attr("height",n.height+(0,e.getConfig2)().state.textHeight+(0,e.getConfig2)().state.titleShift+1).attr("rx","0"),k.attr("x",d+f),l<=i&&k.attr("x",j+(m-g)/2-l/2+f),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",3*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a.insert("rect",":first-child").attr("x",d).attr("y",(0,e.getConfig2)().state.titleShift-(0,e.getConfig2)().state.textHeight-(0,e.getConfig2)().state.padding).attr("width",m).attr("height",n.height+3+2*(0,e.getConfig2)().state.textHeight).attr("rx",(0,e.getConfig2)().state.radius),a},"addTitleAndBox"),q=(0,f.__name)(a=>(a.append("circle").attr("class","end-state-outer").attr("r",(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+(0,e.getConfig2)().state.miniPadding),a.append("circle").attr("class","end-state-inner").attr("r",(0,e.getConfig2)().state.sizeUnit).attr("cx",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2).attr("cy",(0,e.getConfig2)().state.padding+(0,e.getConfig2)().state.sizeUnit+2)),"drawEndState"),r=(0,f.__name)((a,b)=>{let c=(0,e.getConfig2)().state.forkWidth,d=(0,e.getConfig2)().state.forkHeight;if(b.parentId){let a=c;c=d,d=a}return a.append("rect").style("stroke","black").style("fill","black").attr("width",c).attr("height",d).attr("x",(0,e.getConfig2)().state.padding).attr("y",(0,e.getConfig2)().state.padding)},"drawForkJoinState"),s=(0,f.__name)((a,b,c,d)=>{let f=0,g=d.append("text");g.style("text-anchor","start"),g.attr("class","noteText");let h=a.replace(/\r\n/g,"<br/>"),i=(h=h.replace(/\n/g,"<br/>")).split(e.common_default.lineBreakRegex),j=1.25*(0,e.getConfig2)().state.noteMargin;for(let a of i){let d=a.trim();if(d.length>0){let a=g.append("tspan");a.text(d),0===j&&(j+=a.node().getBBox().height),f+=j,a.attr("x",b+(0,e.getConfig2)().state.noteMargin),a.attr("y",c+f+1.25*(0,e.getConfig2)().state.noteMargin)}}return{textWidth:g.node().getBBox().width,textHeight:f}},"_drawLongText"),t=(0,f.__name)((a,b)=>{b.attr("class","state-note");let c=b.append("rect").attr("x",0).attr("y",(0,e.getConfig2)().state.padding),{textWidth:d,textHeight:f}=s(a,0,0,b.append("g"));return c.attr("height",f+2*(0,e.getConfig2)().state.noteMargin),c.attr("width",d+2*(0,e.getConfig2)().state.noteMargin),c},"drawNote"),u=(0,f.__name)(function(a,b){let c=b.id,d={id:c,label:b.id,width:0,height:0},f=a.append("g").attr("id",c).attr("class","stateGroup");"start"===b.type&&l(f),"end"===b.type&&q(f),("fork"===b.type||"join"===b.type)&&r(f,b),"note"===b.type&&t(b.note.text,f),"divider"===b.type&&m(f),"default"===b.type&&0===b.descriptions.length&&n(f,b),"default"===b.type&&b.descriptions.length>0&&o(f,b);let g=f.node().getBBox();return d.width=g.width+2*(0,e.getConfig2)().state.padding,d.height=g.height+2*(0,e.getConfig2)().state.padding,d},"drawState"),v=0,w=(0,f.__name)(function(a,b,g){let h=(0,f.__name)(function(a){switch(a){case c.StateDB.relationType.AGGREGATION:return"aggregation";case c.StateDB.relationType.EXTENSION:return"extension";case c.StateDB.relationType.COMPOSITION:return"composition";case c.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");b.points=b.points.filter(a=>!Number.isNaN(a.y));let i=b.points,l=(0,j.line)().x(function(a){return a.x}).y(function(a){return a.y}).curve(k.curveBasis),m=a.append("path").attr("d",l(i)).attr("id","edge"+v).attr("class","transition"),n="";if((0,e.getConfig2)().state.arrowMarkerAbsolute&&(n=(0,e.getUrl)(!0)),m.attr("marker-end","url("+n+"#"+h(c.StateDB.relationType.DEPENDENCY)+"End)"),void 0!==g.title){let c=a.append("g").attr("class","stateLabel"),{x:h,y:i}=d.utils_default.calcLabelPosition(b.points),j=e.common_default.getRows(g.title),k=0,l=[],m=0,n=0;for(let a=0;a<=j.length;a++){let b=c.append("text").attr("text-anchor","middle").text(j[a]).attr("x",h).attr("y",i+k),d=b.node().getBBox();m=Math.max(m,d.width),n=Math.min(n,d.x),f.log.info(d.x,h,i+k),0===k&&(k=b.node().getBBox().height,f.log.info("Title height",k,i)),l.push(b)}let o=k*j.length;if(j.length>1){let a=(j.length-1)*k*.5;l.forEach((b,c)=>b.attr("y",i+c*k-a)),o=k*j.length}let p=c.node().getBBox();c.insert("rect",":first-child").attr("class","box").attr("x",h-m/2-(0,e.getConfig2)().state.padding/2).attr("y",i-o/2-(0,e.getConfig2)().state.padding/2-3.5).attr("width",m+(0,e.getConfig2)().state.padding).attr("height",o+(0,e.getConfig2)().state.padding),f.log.info(p)}v++},"drawEdge"),x={},y=(0,f.__name)(function(){},"setConf"),z=(0,f.__name)(function(a){a.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),A=(0,f.__name)(function(a,c,d,h){let i;b=(0,e.getConfig2)().state;let j=(0,e.getConfig2)().securityLevel;"sandbox"===j&&(i=(0,g.select)("#i"+c));let k="sandbox"===j?(0,g.select)(i.nodes()[0].contentDocument.body):(0,g.select)("body"),l="sandbox"===j?i.nodes()[0].contentDocument:document;f.log.debug("Rendering diagram "+a);let m=k.select(`[id='${c}']`);z(m),C(h.db.getRootDoc(),m.append("g").attr("id",c+"-root"),void 0,!1,k,l,h);let n=b.padding,o=m.node().getBBox(),p=o.width+2*n,q=o.height+2*n;(0,e.configureSvgSize)(m,q,1.75*p,b.useMaxWidth),m.attr("viewBox",`${o.x-b.padding} ${o.y-b.padding} `+p+" "+q)},"draw"),B=(0,f.__name)(a=>a?a.length*b.fontSizeFactor:1,"getLabelWidth"),C=(0,f.__name)((a,c,d,g,j,k,l)=>{let m,n=new i.Graph({compound:!0,multigraph:!0}),o=!0;for(m=0;m<a.length;m++)if("relation"===a[m].stmt){o=!1;break}d?n.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,isMultiGraph:!0}):n.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:o?1:b.edgeLengthFactor,nodeSep:o?1:50,ranker:"tight-tree",isMultiGraph:!0}),n.setDefaultEdgeLabel(function(){return{}});let q=l.db.getStates(),r=l.db.getRelations();for(let a of Object.keys(q)){let e,f=q[a];if(d&&(f.parentId=d),f.doc){let a=c.append("g").attr("id",f.id).attr("class","stateGroup");e=C(f.doc,a,f.id,!g,j,k,l);{let c=(a=p(a,f,g)).node().getBBox();e.width=c.width,e.height=c.height+b.padding/2,x[f.id]={y:b.compositTitleSize}}}else e=u(c,f,n);if(f.note){let a=u(c,{descriptions:[],id:f.id+"-note",note:f.note,type:"note"},n);"left of"===f.note.position?(n.setNode(e.id+"-note",a),n.setNode(e.id,e)):(n.setNode(e.id,e),n.setNode(e.id+"-note",a)),n.setParent(e.id,e.id+"-group"),n.setParent(e.id+"-note",e.id+"-group")}else n.setNode(e.id,e)}f.log.debug("Count=",n.nodeCount(),n);let s=0;r.forEach(function(a){s++,f.log.debug("Setting edge",a),n.setEdge(a.id1,a.id2,{relation:a,width:B(a.title),height:b.labelHeight*e.common_default.getRows(a.title).length,labelpos:"c"},"id"+s)}),(0,h.layout)(n),f.log.debug("Graph after layout",n.nodes());let t=c.node();n.nodes().forEach(function(a){void 0!==a&&void 0!==n.node(a)?(f.log.warn("Node "+a+": "+JSON.stringify(n.node(a))),j.select("#"+t.id+" #"+a).attr("transform","translate("+(n.node(a).x-n.node(a).width/2)+","+(n.node(a).y+(x[a]?x[a].y:0)-n.node(a).height/2)+" )"),j.select("#"+t.id+" #"+a).attr("data-x-shift",n.node(a).x-n.node(a).width/2),k.querySelectorAll("#"+t.id+" #"+a+" .divider").forEach(a=>{let b=a.parentElement,c=0,d=0;b&&(b.parentElement&&(c=b.parentElement.getBBox().width),Number.isNaN(d=parseInt(b.getAttribute("data-x-shift"),10))&&(d=0)),a.setAttribute("x1",0-d+8),a.setAttribute("x2",c-d-8)})):f.log.debug("No Node "+a+": "+JSON.stringify(n.node(a)))});let v=t.getBBox();n.edges().forEach(function(a){void 0!==a&&void 0!==n.edge(a)&&(f.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(n.edge(a))),w(c,n.edge(a),n.edge(a).relation))});let y={id:d||"root",label:d||"root",width:0,height:0};return y.width=(v=t.getBBox()).width+2*b.padding,y.height=v.height+2*b.padding,f.log.debug("Doc rendered",y,n),y},"renderDoc"),D={parser:c.stateDiagram_default,get db(){return new c.StateDB(1)},renderer:{setConf:y,draw:A},styles:c.styles_default,init:(0,f.__name)(a=>{a.state||(a.state={}),a.state.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};a.s(["diagram",0,D])}];
2
2
 
3
3
  //# sourceMappingURL=12y~_mermaid_dist_chunks_mermaid_core_stateDiagram-AJRCARHV_mjs_0q8ykwx._.js.map
@@ -1,4 +1,4 @@
1
- module.exports=[277046,a=>{"use strict";var b=a.i(29336),c=a.i(197112),d=a.i(604225),e=a.i(762939);a.i(43066);var f=a.i(455784),g=a.i(365007),h=a.i(602865),i=a.i(88589),j=a.i(4011),k=function(){var a=(0,e.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,11,13,14,15,17,19,20,23,24],c=[1,12],d=[1,13],f=[1,14],g=[1,15],h=[1,16],i=[1,19],j=[1,20],k={trace:(0,e.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,e.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 3:d.setDirection("LR");break;case 4:d.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:f[h-1].push(f[h]),this.$=f[h-1];break;case 7:case 8:this.$=f[h];break;case 11:d.getCommonDb().setDiagramTitle(f[h].substr(6)),this.$=f[h].substr(6);break;case 12:this.$=f[h].trim(),d.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=f[h].trim(),d.getCommonDb().setAccDescription(this.$);break;case 15:d.addSection(f[h].substr(8)),this.$=f[h].substr(8);break;case 18:d.addTask(f[h],0,""),this.$=f[h];break;case 19:d.addEvent(f[h].substr(2)),this.$=f[h]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},a(b,[2,5],{5:6}),a(b,[2,2]),a(b,[2,3]),a(b,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:c,15:d,17:f,19:g,20:h,21:17,22:18,23:i,24:j},a(b,[2,10],{1:[2,1]}),a(b,[2,6]),{12:21,14:c,15:d,17:f,19:g,20:h,21:17,22:18,23:i,24:j},a(b,[2,8]),a(b,[2,9]),a(b,[2,11]),{16:[1,22]},{18:[1,23]},a(b,[2,14]),a(b,[2,15]),a(b,[2,16]),a(b,[2,17]),a(b,[2,18]),a(b,[2,19]),a(b,[2,7]),a(b,[2,12]),a(b,[2,13])],defaultActions:{},parseError:(0,e.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,e.__name)(function(a){var b=this,c=[0],d=[],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=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,e.__name)(function(a){c.length=c.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,e.__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),f.push(n.yytext),g.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.$=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&&(c=c.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function l(){this.yy={}}return k.lexer={EOF:1,parseError:(0,e.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,e.__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,e.__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,e.__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,e.__name)(function(){return this._more=!0,this},"more"),reject:(0,e.__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,e.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,e.__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,e.__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,e.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,e.__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,e.__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,e.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,e.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,e.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,e.__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,e.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,e.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,e.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,e.__name)(function(a,b,c,d){switch(c){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}},(0,e.__name)(l,"Parser"),l.prototype=k,k.Parser=l,new l}();k.parser=k;var l={};(0,e.__export)(l,{addEvent:()=>A,addSection:()=>w,addTask:()=>z,addTaskOrg:()=>B,clear:()=>t,default:()=>D,getCommonDb:()=>s,getDirection:()=>v,getSections:()=>x,getTasks:()=>y,setDirection:()=>u});var m="",n=0,o="LR",p=[],q=[],r=[],s=(0,e.__name)(()=>d.commonDb_exports,"getCommonDb"),t=(0,e.__name)(function(){p.length=0,q.length=0,m="",r.length=0,o="LR",(0,d.clear)()},"clear"),u=(0,e.__name)(function(a){o=a},"setDirection"),v=(0,e.__name)(function(){return o},"getDirection"),w=(0,e.__name)(function(a){m=a,p.push(a)},"addSection"),x=(0,e.__name)(function(){return p},"getSections"),y=(0,e.__name)(function(){let a=C(),b=0;for(;!a&&b<100;)a=C(),b++;return q.push(...r),q},"getTasks"),z=(0,e.__name)(function(a,b,c){let d={id:n++,section:m,type:m,task:a,score:b||0,events:c?[c]:[]};r.push(d)},"addTask"),A=(0,e.__name)(function(a){r.find(a=>a.id===n-1).events.push(a)},"addEvent"),B=(0,e.__name)(function(a){let b={section:m,type:m,description:a,task:a,classes:[]};q.push(b)},"addTaskOrg"),C=(0,e.__name)(function(){let a=(0,e.__name)(function(a){return r[a].processed},"compileTask"),b=!0;for(let[c,d]of r.entries())a(c),b=b&&d.processed;return b},"compileTasks"),D={clear:t,getCommonDb:s,getDirection:v,setDirection:u,addSection:w,getSections:x,getTasks:y,addTask:z,addTaskOrg:B,addEvent:A},E=0,F=(0,e.__name)(function(a,b){let c=a.append("rect");return c.attr("x",b.x),c.attr("y",b.y),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("width",b.width),c.attr("height",b.height),c.attr("rx",b.rx),c.attr("ry",b.ry),void 0!==b.class&&c.attr("class",b.class),c},"drawRect"),G=(0,e.__name)(function(a,b){let c=a.append("circle").attr("cx",b.cx).attr("cy",b.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),d=a.append("g");function f(a){let c=(0,g.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+2)+")")}function h(a){let c=(0,g.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+7)+")")}function i(a){a.append("line").attr("class","mouth").attr("stroke",2).attr("x1",b.cx-5).attr("y1",b.cy+7).attr("x2",b.cx+5).attr("y2",b.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return d.append("circle").attr("cx",b.cx-5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.append("circle").attr("cx",b.cx+5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,e.__name)(f,"smile"),(0,e.__name)(h,"sad"),(0,e.__name)(i,"ambivalent"),b.score>3?f(d):b.score<3?h(d):i(d),c},"drawFace"),H=(0,e.__name)(function(a,b){let c=b.text.replace(/<br\s*\/?>/gi," "),d=a.append("text");d.attr("x",b.x),d.attr("y",b.y),d.attr("class","legend"),d.style("text-anchor",b.anchor),void 0!==b.class&&d.attr("class",b.class);let e=d.append("tspan");return e.attr("x",b.x+2*b.textMargin),e.text(c),d},"drawText"),I=-1,J=(0,e.__name)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),K=function(){function a(a,b,c,e,f,g,h,i){d(b.append("text").attr("x",c+f/2).attr("y",e+g/2+5).style("font-color",i).style("text-anchor","middle").text(a),h)}function b(a,b,c,e,f,g,h,i,j){let{taskFontSize:k,taskFontFamily:l}=i,m=a.split(/<br\s*\/?>/gi);for(let a=0;a<m.length;a++){let i=a*k-k*(m.length-1)/2,n=b.append("text").attr("x",c+f/2).attr("y",e).attr("fill",j).style("text-anchor","middle").style("font-size",k).style("font-family",l);n.append("tspan").attr("x",c+f/2).attr("dy",i).text(m[a]),n.attr("y",e+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(n,h)}}function c(a,c,e,f,g,h,i,j){let k=c.append("switch"),l=k.append("foreignObject").attr("x",e).attr("y",f).attr("width",g).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),b(a,k,e,f,g,h,i,j),d(l,i)}function d(a,b){for(let c in b)c in b&&a.attr(c,b[c])}return(0,e.__name)(a,"byText"),(0,e.__name)(b,"byTspan"),(0,e.__name)(c,"byFo"),(0,e.__name)(d,"_setTextAttrs"),function(d){return"fo"===d.textPlacement?c:"old"===d.textPlacement?a:b}}(),L=(0,e.__name)(function(a,b){E=0,I=-1,a.append("defs").append("marker").attr("id",b+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function M(a,b){a.each(function(){var a,c=(0,f.select)(this),d=c.text().split(/(\s+|<br>)/).reverse(),e=[],g=c.attr("y"),h=parseFloat(c.attr("dy")),i=c.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",h+"em");for(let f=0;f<d.length;f++)a=d[d.length-1-f],e.push(a),i.text(e.join(" ").trim()),(i.node().getComputedTextLength()>b||"<br>"===a)&&(e.pop(),i.text(e.join(" ").trim()),e="<br>"===a?[""]:[a],i=c.append("tspan").attr("x",0).attr("y",g).attr("dy","1.1em").text(a))})}(0,e.__name)(M,"wrap");var N=(0,e.__name)(function(a,b,c,d,e,g=!1){let{theme:h,look:i}=d,j=h?.includes("redux"),k=c%(d?.themeVariables?.THEME_COLOR_LIMIT??12)-1,l=a.append("g");b.section=k,l.attr("class",(b.class?b.class+" ":"")+"timeline-node section-"+k);let m=l.append("g"),n=l.append("g"),o=n.append("text").text(b.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,b.width).node().getBBox(),p=d.fontSize?.replace?d.fontSize.replace("px",""):d.fontSize;if(b.height=o.height+1.1*p*.5+b.padding,b.height=Math.max(b.height,b.maxHeight),b.width=b.width+2*b.padding,n.attr("transform","translate("+b.width/2+", "+b.padding/2+")"),j&&n.attr("transform",`translate(${b.width/2}, ${g?b.padding/2+3:b.padding})`),P(m,b,k,e,d),"neo"===i&&(l.attr("data-look","neo"),j)){let b=h.includes("dark"),c=a.node()?.ownerSVGElement??a.node(),d=(0,f.select)(c),e=d.attr("id")??"",g=e?`${e}-drop-shadow`:"drop-shadow";if(d.select(`#${g}`).empty()){let a=d.select("defs");(a.empty()?d.append("defs"):a).append("filter").attr("id",g).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",b?"0.2":"0.06").attr("flood-color",b?"#FFFFFF":"#000000")}}return b},"drawNode"),O=(0,e.__name)(function(a,b,c){let d=a.append("g"),e=d.append("text").text(b.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,b.width).node().getBBox(),f=c.fontSize?.replace?c.fontSize.replace("px",""):c.fontSize;return d.remove(),e.height+1.1*f*.5+b.padding},"getVirtualNodeHeight"),P=(0,e.__name)(function(a,b,c,d,e){let{theme:f}=e,g=5*!f?.includes("redux"),h=g>0?`M0 ${b.height-5} v${-b.height+10} q0,-${g},${g},-${g} h${b.width-10} q${g},0,${g},${g} v${b.height-5} H0 Z`:`M0 ${b.height-5} v${-(b.height-5)} h${b.width} v${b.height} H0 Z`;a.append("path").attr("id",d+"-node-"+E++).attr("class","node-bkg node-"+b.type).attr("d",h),f?.includes("redux")||a.append("line").attr("class","node-line-"+c).attr("x1",0).attr("y1",b.height).attr("x2",b.width).attr("y2",b.height)},"defaultBkg"),Q=(0,e.__name)(function(a,b,c,g){let h,i=(0,d.getConfig2)(),{look:j,theme:k,themeVariables:l}=i,{useGradient:m,gradientStart:n,gradientStop:o}=l,p=i.timeline?.leftMargin??50;e.log.debug("timeline",g.db);let q=i.securityLevel;"sandbox"===q&&(h=(0,f.select)("#i"+b));let r=("sandbox"===q?(0,f.select)(h.nodes()[0].contentDocument.body):(0,f.select)("body")).select("#"+b);r.append("g");let s=g.db.getTasks(),t=g.db.getCommonDb().getDiagramTitle();e.log.debug("task",s),L(r,b);let u=g.db.getSections();e.log.debug("sections",u);let v=0,w=0,x=0,y=0,z=50+p,A=50;y=50;let B=0,C=!0;u.forEach(function(a){let b=O(r,{number:B,descr:a,section:B,width:150,padding:20,maxHeight:v},i);e.log.debug("sectionHeight before draw",b),v=Math.max(v,b+20)});let D=0,E=0;for(let[a,b]of(e.log.debug("tasks.length",s.length),s.entries())){let c=O(r,{number:a,descr:b,section:b.section,width:150,padding:20,maxHeight:w},i);e.log.debug("taskHeight before draw",c),w=Math.max(w,c+20),D=Math.max(D,b.events.length);let d=0;for(let a of b.events)d+=O(r,{descr:a,section:b.section,number:b.section,width:150,padding:20,maxHeight:50},i);b.events.length>0&&(d+=(b.events.length-1)*10),E=Math.max(E,d)}e.log.debug("maxSectionHeight before draw",v),e.log.debug("maxTaskHeight before draw",w),u&&u.length>0?u.forEach(a=>{let c=s.filter(b=>b.section===a),d={number:B,descr:a,section:B,width:200*Math.max(c.length,1)-50,padding:20,maxHeight:v};e.log.debug("sectionNode",d);let f=r.append("g"),g=N(f,d,B,i,b);e.log.debug("sectionNode output",g),f.attr("transform",`translate(${z}, ${y})`),A+=v+50,c.length>0&&R(r,c,B,z,A,w,i,D,E,v,!1,b),z+=200*Math.max(c.length,1),A=y,B++}):(C=!1,R(r,s,B,z,A,w,i,D,E,v,!0,b));let F=r.node().getBBox();if(e.log.debug("bounds",F),t&&r.append("text").text(t).attr("x","neo"===j?2*F.x+p:F.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=C?v+w+150:w+100,r.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",x).attr("x2",F.width+3*p).attr("y2",x).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${b}-arrowhead)`),"neo"===j&&m&&"neutral"!==k){let a=r.select("defs"),b=(a.empty()?r.append("defs"):a).append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");b.append("stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),b.append("stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}(0,d.setupGraphViewbox)(void 0,r,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),R=(0,e.__name)(function(a,b,c,d,f,g,h,i,j,k,l,m){for(let i of b){let b={descr:i.task,section:c,number:c,width:150,padding:20,maxHeight:g};e.log.debug("taskNode",b);let k=a.append("g").attr("class","taskWrapper"),n=N(k,b,c,h,m).height;if(e.log.debug("taskHeight after draw",n),k.attr("transform",`translate(${d}, ${f})`),g=Math.max(g,n),i.events){let b=a.append("g").attr("class","lineWrapper");f+=100,S(a,i.events,c,d,f,h,m),f-=100,b.append("line").attr("x1",d+95).attr("y1",f+g).attr("x2",d+95).attr("y2",f+g+100+j+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${m}-arrowhead)`).attr("stroke-dasharray","5,5")}d+=200,l&&!h.timeline?.disableMulticolor&&c++}},"drawTasks"),S=(0,e.__name)(function(a,b,c,d,f,g,h){let i=0,j=f;for(let j of(f+=100,b)){let b={descr:j,section:c,number:c,width:150,padding:20,maxHeight:50};e.log.debug("eventNode",b);let k=a.append("g").attr("class","eventWrapper"),l=N(k,b,c,g,h,!0).height;i+=l,k.attr("transform",`translate(${d}, ${f})`),f=f+10+l}return f=j,i},"drawEvents"),T={setConf:(0,e.__name)(()=>{},"setConf"),draw:Q},U=(0,e.__name)(function(a,f,g,h){let i=(0,d.getConfig2)(),j=i.timeline?.leftMargin??50;e.log.debug("timeline",h.db);let k=(0,b.selectSvgElement)(f);k.append("g");let l=h.db.getTasks(),m=h.db.getCommonDb().getDiagramTitle();e.log.debug("task",l),L(k);let n=h.db.getSections();e.log.debug("sections",n);let o=0,p=0,q=50,r=230,s=0,t=n&&n.length>0,u=50+j+r,v=Math.max(50,r+360-10);n.forEach(function(a){let b=O(k,{number:s,descr:a,section:s,width:v,padding:5,maxHeight:o},i);e.log.debug("sectionHeight before draw",b),o=Math.max(o,b)});let w=0;for(let[a,b]of(e.log.debug("tasks.length",l.length),l.entries())){let c=O(k,{number:a,descr:b,section:b.section,width:200,padding:5,maxHeight:p},i);e.log.debug("taskHeight before draw",c),p=Math.max(p,c);let d=0;for(let a of b.events)d+=O(k,{descr:a,section:b.section,number:b.section,width:300,padding:5,maxHeight:50},i);b.events.length>0&&(d+=(b.events.length-1)*10),w=Math.max(w,d)+0}e.log.debug("maxSectionHeight before draw",o),e.log.debug("maxTaskHeight before draw",p);let x=Math.max(p,w)+30;t?n.forEach(a=>{let b=l.filter(b=>b.section===a),c={number:s,descr:a,section:s,width:v,padding:5,maxHeight:o};e.log.debug("sectionNode",c);let d=k.append("g"),f=N(d,c,s,i);e.log.debug("sectionNode output",f);let g=u-r;d.attr("transform",`translate(${g}, ${q})`);let h=q+f.height+20;b.length>0&&V(k,b,s,u,h,p,i,x,!1);let j=b.length,m=f.height+20+x*Math.max(j,1)-60*(j>0);q+=m,s++}):V(k,l,s,u,q,p,i,x,!0);let y=k.node()?.getBBox();if(!y)throw Error("bbox not found");if(e.log.debug("bounds",y),m){if(k.append("text").text(m).attr("x",y.width/2-j).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!(y=k.node()?.getBBox()))throw Error("bbox not found");e.log.debug("bounds after title",y)}let[z]=(0,c.parseFontSize)(i.fontSize),A=k.append("g").attr("class","lineWrapper");A.append("line").attr("x1",u).attr("y1",50-(z??16)*2).attr("x2",u).attr("y2",y.y+y.height+((z??16)*.5+20)).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),A.lower(),(0,d.setupGraphViewbox)(void 0,k,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),V=(0,e.__name)(function(a,b,c,d,f,g,h,i,j){for(let k of b){let b={descr:k.task,section:c,number:c,width:200,padding:5,maxHeight:g};e.log.debug("taskNode",b);let l=a.append("g").attr("class","taskWrapper"),m=N(l,b,c,h),n=m.height;e.log.debug("taskHeight after draw",n);let o=d-20-m.width;if(l.attr("transform",`translate(${o}, ${f})`),g=Math.max(g,n),k.events&&k.events.length>0){let b=f,e=d+50;W(a,k.events,c,d,e,b,h)}f+=i,j&&!h.timeline?.disableMulticolor&&c++}},"drawTasks"),W=(0,e.__name)(function(a,b,c,d,f,g,h){let i=g;for(let g of b){let b={descr:g,section:c,number:c,width:300,padding:5,maxHeight:0};e.log.debug("eventNode",b);let j=a.append("g").attr("class","eventWrapper"),k=N(j,b,c,h).height;j.attr("transform",`translate(${f}, ${i})`);let l=a.append("g").attr("class","lineWrapper"),m=i+k/2;l.append("line").attr("x1",d).attr("y1",m).attr("x2",f).attr("y2",m).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),i=i+k+10}return i-g},"drawEvents"),X={setConf:(0,e.__name)(()=>{},"setConf"),draw:U},Y=(0,e.__name)(a=>{let{theme:b}=(0,d.getConfig)(),c=b?.includes("dark"),e=b?.includes("color"),f=a.svgId?.replace(/^#/,"")??"",g=f?`url(#${f}-drop-shadow)`:a.dropShadow??"none",h="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++){let d=`${17-3*b}`,f=e?a.borderColorArray[b]:a.mainBkg,i=e?a.borderColorArray[b]:a.nodeBorder;h+=`
1
+ module.exports=[277046,a=>{"use strict";var b=a.i(29336),c=a.i(197112),d=a.i(523526),e=a.i(762939);a.i(43066);var f=a.i(455784),g=a.i(365007),h=a.i(602865),i=a.i(88589),j=a.i(4011),k=function(){var a=(0,e.__name)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,11,13,14,15,17,19,20,23,24],c=[1,12],d=[1,13],f=[1,14],g=[1,15],h=[1,16],i=[1,19],j=[1,20],k={trace:(0,e.__name)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:(0,e.__name)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 3:d.setDirection("LR");break;case 4:d.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:f[h-1].push(f[h]),this.$=f[h-1];break;case 7:case 8:this.$=f[h];break;case 11:d.getCommonDb().setDiagramTitle(f[h].substr(6)),this.$=f[h].substr(6);break;case 12:this.$=f[h].trim(),d.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=f[h].trim(),d.getCommonDb().setAccDescription(this.$);break;case 15:d.addSection(f[h].substr(8)),this.$=f[h].substr(8);break;case 18:d.addTask(f[h],0,""),this.$=f[h];break;case 19:d.addEvent(f[h].substr(2)),this.$=f[h]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},a(b,[2,5],{5:6}),a(b,[2,2]),a(b,[2,3]),a(b,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:c,15:d,17:f,19:g,20:h,21:17,22:18,23:i,24:j},a(b,[2,10],{1:[2,1]}),a(b,[2,6]),{12:21,14:c,15:d,17:f,19:g,20:h,21:17,22:18,23:i,24:j},a(b,[2,8]),a(b,[2,9]),a(b,[2,11]),{16:[1,22]},{18:[1,23]},a(b,[2,14]),a(b,[2,15]),a(b,[2,16]),a(b,[2,17]),a(b,[2,18]),a(b,[2,19]),a(b,[2,7]),a(b,[2,12]),a(b,[2,13])],defaultActions:{},parseError:(0,e.__name)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,e.__name)(function(a){var b=this,c=[0],d=[],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=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,e.__name)(function(a){c.length=c.length-2*a,f.length=f.length-a,g.length=g.length-a},"popStack"),(0,e.__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),f.push(n.yytext),g.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.$=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&&(c=c.slice(0,-1*z*2),f=f.slice(0,-1*z),g=g.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),f.push(C.$),g.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function l(){this.yy={}}return k.lexer={EOF:1,parseError:(0,e.__name)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,e.__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,e.__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,e.__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,e.__name)(function(){return this._more=!0,this},"more"),reject:(0,e.__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,e.__name)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,e.__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,e.__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,e.__name)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,e.__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,e.__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,e.__name)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,e.__name)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,e.__name)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,e.__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,e.__name)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,e.__name)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,e.__name)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,e.__name)(function(a,b,c,d){switch(c){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}},(0,e.__name)(l,"Parser"),l.prototype=k,k.Parser=l,new l}();k.parser=k;var l={};(0,e.__export)(l,{addEvent:()=>A,addSection:()=>w,addTask:()=>z,addTaskOrg:()=>B,clear:()=>t,default:()=>D,getCommonDb:()=>s,getDirection:()=>v,getSections:()=>x,getTasks:()=>y,setDirection:()=>u});var m="",n=0,o="LR",p=[],q=[],r=[],s=(0,e.__name)(()=>d.commonDb_exports,"getCommonDb"),t=(0,e.__name)(function(){p.length=0,q.length=0,m="",r.length=0,o="LR",(0,d.clear)()},"clear"),u=(0,e.__name)(function(a){o=a},"setDirection"),v=(0,e.__name)(function(){return o},"getDirection"),w=(0,e.__name)(function(a){m=a,p.push(a)},"addSection"),x=(0,e.__name)(function(){return p},"getSections"),y=(0,e.__name)(function(){let a=C(),b=0;for(;!a&&b<100;)a=C(),b++;return q.push(...r),q},"getTasks"),z=(0,e.__name)(function(a,b,c){let d={id:n++,section:m,type:m,task:a,score:b||0,events:c?[c]:[]};r.push(d)},"addTask"),A=(0,e.__name)(function(a){r.find(a=>a.id===n-1).events.push(a)},"addEvent"),B=(0,e.__name)(function(a){let b={section:m,type:m,description:a,task:a,classes:[]};q.push(b)},"addTaskOrg"),C=(0,e.__name)(function(){let a=(0,e.__name)(function(a){return r[a].processed},"compileTask"),b=!0;for(let[c,d]of r.entries())a(c),b=b&&d.processed;return b},"compileTasks"),D={clear:t,getCommonDb:s,getDirection:v,setDirection:u,addSection:w,getSections:x,getTasks:y,addTask:z,addTaskOrg:B,addEvent:A},E=0,F=(0,e.__name)(function(a,b){let c=a.append("rect");return c.attr("x",b.x),c.attr("y",b.y),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("width",b.width),c.attr("height",b.height),c.attr("rx",b.rx),c.attr("ry",b.ry),void 0!==b.class&&c.attr("class",b.class),c},"drawRect"),G=(0,e.__name)(function(a,b){let c=a.append("circle").attr("cx",b.cx).attr("cy",b.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),d=a.append("g");function f(a){let c=(0,g.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+2)+")")}function h(a){let c=(0,g.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+7)+")")}function i(a){a.append("line").attr("class","mouth").attr("stroke",2).attr("x1",b.cx-5).attr("y1",b.cy+7).attr("x2",b.cx+5).attr("y2",b.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return d.append("circle").attr("cx",b.cx-5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.append("circle").attr("cx",b.cx+5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,e.__name)(f,"smile"),(0,e.__name)(h,"sad"),(0,e.__name)(i,"ambivalent"),b.score>3?f(d):b.score<3?h(d):i(d),c},"drawFace"),H=(0,e.__name)(function(a,b){let c=b.text.replace(/<br\s*\/?>/gi," "),d=a.append("text");d.attr("x",b.x),d.attr("y",b.y),d.attr("class","legend"),d.style("text-anchor",b.anchor),void 0!==b.class&&d.attr("class",b.class);let e=d.append("tspan");return e.attr("x",b.x+2*b.textMargin),e.text(c),d},"drawText"),I=-1,J=(0,e.__name)(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),K=function(){function a(a,b,c,e,f,g,h,i){d(b.append("text").attr("x",c+f/2).attr("y",e+g/2+5).style("font-color",i).style("text-anchor","middle").text(a),h)}function b(a,b,c,e,f,g,h,i,j){let{taskFontSize:k,taskFontFamily:l}=i,m=a.split(/<br\s*\/?>/gi);for(let a=0;a<m.length;a++){let i=a*k-k*(m.length-1)/2,n=b.append("text").attr("x",c+f/2).attr("y",e).attr("fill",j).style("text-anchor","middle").style("font-size",k).style("font-family",l);n.append("tspan").attr("x",c+f/2).attr("dy",i).text(m[a]),n.attr("y",e+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(n,h)}}function c(a,c,e,f,g,h,i,j){let k=c.append("switch"),l=k.append("foreignObject").attr("x",e).attr("y",f).attr("width",g).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),b(a,k,e,f,g,h,i,j),d(l,i)}function d(a,b){for(let c in b)c in b&&a.attr(c,b[c])}return(0,e.__name)(a,"byText"),(0,e.__name)(b,"byTspan"),(0,e.__name)(c,"byFo"),(0,e.__name)(d,"_setTextAttrs"),function(d){return"fo"===d.textPlacement?c:"old"===d.textPlacement?a:b}}(),L=(0,e.__name)(function(a,b){E=0,I=-1,a.append("defs").append("marker").attr("id",b+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function M(a,b){a.each(function(){var a,c=(0,f.select)(this),d=c.text().split(/(\s+|<br>)/).reverse(),e=[],g=c.attr("y"),h=parseFloat(c.attr("dy")),i=c.text(null).append("tspan").attr("x",0).attr("y",g).attr("dy",h+"em");for(let f=0;f<d.length;f++)a=d[d.length-1-f],e.push(a),i.text(e.join(" ").trim()),(i.node().getComputedTextLength()>b||"<br>"===a)&&(e.pop(),i.text(e.join(" ").trim()),e="<br>"===a?[""]:[a],i=c.append("tspan").attr("x",0).attr("y",g).attr("dy","1.1em").text(a))})}(0,e.__name)(M,"wrap");var N=(0,e.__name)(function(a,b,c,d,e,g=!1){let{theme:h,look:i}=d,j=h?.includes("redux"),k=c%(d?.themeVariables?.THEME_COLOR_LIMIT??12)-1,l=a.append("g");b.section=k,l.attr("class",(b.class?b.class+" ":"")+"timeline-node section-"+k);let m=l.append("g"),n=l.append("g"),o=n.append("text").text(b.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,b.width).node().getBBox(),p=d.fontSize?.replace?d.fontSize.replace("px",""):d.fontSize;if(b.height=o.height+1.1*p*.5+b.padding,b.height=Math.max(b.height,b.maxHeight),b.width=b.width+2*b.padding,n.attr("transform","translate("+b.width/2+", "+b.padding/2+")"),j&&n.attr("transform",`translate(${b.width/2}, ${g?b.padding/2+3:b.padding})`),P(m,b,k,e,d),"neo"===i&&(l.attr("data-look","neo"),j)){let b=h.includes("dark"),c=a.node()?.ownerSVGElement??a.node(),d=(0,f.select)(c),e=d.attr("id")??"",g=e?`${e}-drop-shadow`:"drop-shadow";if(d.select(`#${g}`).empty()){let a=d.select("defs");(a.empty()?d.append("defs"):a).append("filter").attr("id",g).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",b?"0.2":"0.06").attr("flood-color",b?"#FFFFFF":"#000000")}}return b},"drawNode"),O=(0,e.__name)(function(a,b,c){let d=a.append("g"),e=d.append("text").text(b.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(M,b.width).node().getBBox(),f=c.fontSize?.replace?c.fontSize.replace("px",""):c.fontSize;return d.remove(),e.height+1.1*f*.5+b.padding},"getVirtualNodeHeight"),P=(0,e.__name)(function(a,b,c,d,e){let{theme:f}=e,g=5*!f?.includes("redux"),h=g>0?`M0 ${b.height-5} v${-b.height+10} q0,-${g},${g},-${g} h${b.width-10} q${g},0,${g},${g} v${b.height-5} H0 Z`:`M0 ${b.height-5} v${-(b.height-5)} h${b.width} v${b.height} H0 Z`;a.append("path").attr("id",d+"-node-"+E++).attr("class","node-bkg node-"+b.type).attr("d",h),f?.includes("redux")||a.append("line").attr("class","node-line-"+c).attr("x1",0).attr("y1",b.height).attr("x2",b.width).attr("y2",b.height)},"defaultBkg"),Q=(0,e.__name)(function(a,b,c,g){let h,i=(0,d.getConfig2)(),{look:j,theme:k,themeVariables:l}=i,{useGradient:m,gradientStart:n,gradientStop:o}=l,p=i.timeline?.leftMargin??50;e.log.debug("timeline",g.db);let q=i.securityLevel;"sandbox"===q&&(h=(0,f.select)("#i"+b));let r=("sandbox"===q?(0,f.select)(h.nodes()[0].contentDocument.body):(0,f.select)("body")).select("#"+b);r.append("g");let s=g.db.getTasks(),t=g.db.getCommonDb().getDiagramTitle();e.log.debug("task",s),L(r,b);let u=g.db.getSections();e.log.debug("sections",u);let v=0,w=0,x=0,y=0,z=50+p,A=50;y=50;let B=0,C=!0;u.forEach(function(a){let b=O(r,{number:B,descr:a,section:B,width:150,padding:20,maxHeight:v},i);e.log.debug("sectionHeight before draw",b),v=Math.max(v,b+20)});let D=0,E=0;for(let[a,b]of(e.log.debug("tasks.length",s.length),s.entries())){let c=O(r,{number:a,descr:b,section:b.section,width:150,padding:20,maxHeight:w},i);e.log.debug("taskHeight before draw",c),w=Math.max(w,c+20),D=Math.max(D,b.events.length);let d=0;for(let a of b.events)d+=O(r,{descr:a,section:b.section,number:b.section,width:150,padding:20,maxHeight:50},i);b.events.length>0&&(d+=(b.events.length-1)*10),E=Math.max(E,d)}e.log.debug("maxSectionHeight before draw",v),e.log.debug("maxTaskHeight before draw",w),u&&u.length>0?u.forEach(a=>{let c=s.filter(b=>b.section===a),d={number:B,descr:a,section:B,width:200*Math.max(c.length,1)-50,padding:20,maxHeight:v};e.log.debug("sectionNode",d);let f=r.append("g"),g=N(f,d,B,i,b);e.log.debug("sectionNode output",g),f.attr("transform",`translate(${z}, ${y})`),A+=v+50,c.length>0&&R(r,c,B,z,A,w,i,D,E,v,!1,b),z+=200*Math.max(c.length,1),A=y,B++}):(C=!1,R(r,s,B,z,A,w,i,D,E,v,!0,b));let F=r.node().getBBox();if(e.log.debug("bounds",F),t&&r.append("text").text(t).attr("x","neo"===j?2*F.x+p:F.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),x=C?v+w+150:w+100,r.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",x).attr("x2",F.width+3*p).attr("y2",x).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${b}-arrowhead)`),"neo"===j&&m&&"neutral"!==k){let a=r.select("defs"),b=(a.empty()?r.append("defs"):a).append("linearGradient").attr("id",r.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");b.append("stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),b.append("stop").attr("offset","100%").attr("stop-color",o).attr("stop-opacity",1)}(0,d.setupGraphViewbox)(void 0,r,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),R=(0,e.__name)(function(a,b,c,d,f,g,h,i,j,k,l,m){for(let i of b){let b={descr:i.task,section:c,number:c,width:150,padding:20,maxHeight:g};e.log.debug("taskNode",b);let k=a.append("g").attr("class","taskWrapper"),n=N(k,b,c,h,m).height;if(e.log.debug("taskHeight after draw",n),k.attr("transform",`translate(${d}, ${f})`),g=Math.max(g,n),i.events){let b=a.append("g").attr("class","lineWrapper");f+=100,S(a,i.events,c,d,f,h,m),f-=100,b.append("line").attr("x1",d+95).attr("y1",f+g).attr("x2",d+95).attr("y2",f+g+100+j+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${m}-arrowhead)`).attr("stroke-dasharray","5,5")}d+=200,l&&!h.timeline?.disableMulticolor&&c++}},"drawTasks"),S=(0,e.__name)(function(a,b,c,d,f,g,h){let i=0,j=f;for(let j of(f+=100,b)){let b={descr:j,section:c,number:c,width:150,padding:20,maxHeight:50};e.log.debug("eventNode",b);let k=a.append("g").attr("class","eventWrapper"),l=N(k,b,c,g,h,!0).height;i+=l,k.attr("transform",`translate(${d}, ${f})`),f=f+10+l}return f=j,i},"drawEvents"),T={setConf:(0,e.__name)(()=>{},"setConf"),draw:Q},U=(0,e.__name)(function(a,f,g,h){let i=(0,d.getConfig2)(),j=i.timeline?.leftMargin??50;e.log.debug("timeline",h.db);let k=(0,b.selectSvgElement)(f);k.append("g");let l=h.db.getTasks(),m=h.db.getCommonDb().getDiagramTitle();e.log.debug("task",l),L(k);let n=h.db.getSections();e.log.debug("sections",n);let o=0,p=0,q=50,r=230,s=0,t=n&&n.length>0,u=50+j+r,v=Math.max(50,r+360-10);n.forEach(function(a){let b=O(k,{number:s,descr:a,section:s,width:v,padding:5,maxHeight:o},i);e.log.debug("sectionHeight before draw",b),o=Math.max(o,b)});let w=0;for(let[a,b]of(e.log.debug("tasks.length",l.length),l.entries())){let c=O(k,{number:a,descr:b,section:b.section,width:200,padding:5,maxHeight:p},i);e.log.debug("taskHeight before draw",c),p=Math.max(p,c);let d=0;for(let a of b.events)d+=O(k,{descr:a,section:b.section,number:b.section,width:300,padding:5,maxHeight:50},i);b.events.length>0&&(d+=(b.events.length-1)*10),w=Math.max(w,d)+0}e.log.debug("maxSectionHeight before draw",o),e.log.debug("maxTaskHeight before draw",p);let x=Math.max(p,w)+30;t?n.forEach(a=>{let b=l.filter(b=>b.section===a),c={number:s,descr:a,section:s,width:v,padding:5,maxHeight:o};e.log.debug("sectionNode",c);let d=k.append("g"),f=N(d,c,s,i);e.log.debug("sectionNode output",f);let g=u-r;d.attr("transform",`translate(${g}, ${q})`);let h=q+f.height+20;b.length>0&&V(k,b,s,u,h,p,i,x,!1);let j=b.length,m=f.height+20+x*Math.max(j,1)-60*(j>0);q+=m,s++}):V(k,l,s,u,q,p,i,x,!0);let y=k.node()?.getBBox();if(!y)throw Error("bbox not found");if(e.log.debug("bounds",y),m){if(k.append("text").text(m).attr("x",y.width/2-j).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),!(y=k.node()?.getBBox()))throw Error("bbox not found");e.log.debug("bounds after title",y)}let[z]=(0,c.parseFontSize)(i.fontSize),A=k.append("g").attr("class","lineWrapper");A.append("line").attr("x1",u).attr("y1",50-(z??16)*2).attr("x2",u).attr("y2",y.y+y.height+((z??16)*.5+20)).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),A.lower(),(0,d.setupGraphViewbox)(void 0,k,i.timeline?.padding??50,i.timeline?.useMaxWidth??!1)},"draw"),V=(0,e.__name)(function(a,b,c,d,f,g,h,i,j){for(let k of b){let b={descr:k.task,section:c,number:c,width:200,padding:5,maxHeight:g};e.log.debug("taskNode",b);let l=a.append("g").attr("class","taskWrapper"),m=N(l,b,c,h),n=m.height;e.log.debug("taskHeight after draw",n);let o=d-20-m.width;if(l.attr("transform",`translate(${o}, ${f})`),g=Math.max(g,n),k.events&&k.events.length>0){let b=f,e=d+50;W(a,k.events,c,d,e,b,h)}f+=i,j&&!h.timeline?.disableMulticolor&&c++}},"drawTasks"),W=(0,e.__name)(function(a,b,c,d,f,g,h){let i=g;for(let g of b){let b={descr:g,section:c,number:c,width:300,padding:5,maxHeight:0};e.log.debug("eventNode",b);let j=a.append("g").attr("class","eventWrapper"),k=N(j,b,c,h).height;j.attr("transform",`translate(${f}, ${i})`);let l=a.append("g").attr("class","lineWrapper"),m=i+k/2;l.append("line").attr("x1",d).attr("y1",m).attr("x2",f).attr("y2",m).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),i=i+k+10}return i-g},"drawEvents"),X={setConf:(0,e.__name)(()=>{},"setConf"),draw:U},Y=(0,e.__name)(a=>{let{theme:b}=(0,d.getConfig)(),c=b?.includes("dark"),e=b?.includes("color"),f=a.svgId?.replace(/^#/,"")??"",g=f?`url(#${f}-drop-shadow)`:a.dropShadow??"none",h="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++){let d=`${17-3*b}`,f=e?a.borderColorArray[b]:a.mainBkg,i=e?a.borderColorArray[b]:a.nodeBorder;h+=`
2
2
  .section-${b-1} rect,
3
3
  .section-${b-1} path,
4
4
  .section-${b-1} circle {