markdown-flow-ui 0.3.2-dev.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/README.md +0 -13
  2. package/dist/_virtual/index.es6.js +3 -5
  3. package/dist/_virtual/index.es6.js.map +1 -1
  4. package/dist/_virtual/index.es7.js +5 -3
  5. package/dist/_virtual/index.es7.js.map +1 -1
  6. package/dist/_virtual/index.es8.js +2 -2
  7. package/dist/_virtual/index.es9.js +2 -2
  8. package/dist/_virtual/index6.cjs +1 -1
  9. package/dist/_virtual/index7.cjs +1 -1
  10. package/dist/_virtual/index8.cjs +1 -1
  11. package/dist/_virtual/index9.cjs +1 -1
  12. package/dist/assets/markdown-flow-ui.css +1 -1
  13. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  14. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  15. package/dist/components/ContentRender/utils/video-markdown-run.cjs.map +1 -1
  16. package/dist/components/ContentRender/utils/video-markdown-run.es.js.map +1 -1
  17. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  18. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  19. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  20. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -1
  21. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  22. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  23. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  24. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  25. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +2 -2
  26. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +323 -558
  27. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  28. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  29. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  30. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +0 -8
  31. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +64 -107
  32. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  33. package/dist/components/MarkdownFlowEditor/editor-context.cjs +1 -1
  34. package/dist/components/MarkdownFlowEditor/editor-context.cjs.map +1 -1
  35. package/dist/components/MarkdownFlowEditor/editor-context.es.js +4 -10
  36. package/dist/components/MarkdownFlowEditor/editor-context.es.js.map +1 -1
  37. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +0 -308
  38. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +1 -1
  39. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +1 -15
  40. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +87 -115
  41. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -1
  42. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.cjs +1 -1
  43. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.d.ts +1 -15
  44. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js +88 -116
  45. package/dist/components/MarkdownFlowEditor/locales/de-DE.json.es.js.map +1 -1
  46. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  47. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +1 -15
  48. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +88 -116
  49. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  50. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.cjs +1 -1
  51. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.d.ts +1 -15
  52. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js +80 -108
  53. package/dist/components/MarkdownFlowEditor/locales/es-ES.json.es.js.map +1 -1
  54. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.cjs +1 -1
  55. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.d.ts +1 -15
  56. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js +82 -110
  57. package/dist/components/MarkdownFlowEditor/locales/fil-PH.json.es.js.map +1 -1
  58. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  59. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +1 -15
  60. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +86 -114
  61. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  62. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.cjs +1 -1
  63. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.d.ts +1 -15
  64. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js +88 -116
  65. package/dist/components/MarkdownFlowEditor/locales/ja-JP.json.es.js.map +1 -1
  66. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +1 -1
  67. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +1 -15
  68. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +85 -113
  69. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -1
  70. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.cjs +1 -1
  71. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.d.ts +1 -15
  72. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js +94 -122
  73. package/dist/components/MarkdownFlowEditor/locales/ur-PK.json.es.js.map +1 -1
  74. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.cjs +1 -1
  75. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.d.ts +1 -15
  76. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js +74 -102
  77. package/dist/components/MarkdownFlowEditor/locales/vi-VN.json.es.js.map +1 -1
  78. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  79. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +1 -15
  80. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +72 -100
  81. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  82. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  83. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  84. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.d.ts +2 -1
  85. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +62 -53
  86. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  87. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.cjs.map +1 -1
  88. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  89. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.es.js.map +1 -1
  90. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs +3 -3
  91. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.cjs.map +1 -1
  92. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.d.ts +1 -5
  93. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js +149 -154
  94. package/dist/components/MarkdownFlowEditor/plugins/SyntaxHighlighter.es.js.map +1 -1
  95. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  96. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  97. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.d.ts +2 -1
  98. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +53 -42
  99. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  100. package/dist/components/MarkdownFlowEditor/types.cjs +1 -1
  101. package/dist/components/MarkdownFlowEditor/types.cjs.map +1 -1
  102. package/dist/components/MarkdownFlowEditor/types.d.ts +1 -11
  103. package/dist/components/MarkdownFlowEditor/types.es.js +2 -2
  104. package/dist/components/MarkdownFlowEditor/types.es.js.map +1 -1
  105. package/dist/components/MarkdownFlowEditor/utils.cjs +1 -1
  106. package/dist/components/MarkdownFlowEditor/utils.cjs.map +1 -1
  107. package/dist/components/MarkdownFlowEditor/utils.d.ts +0 -10
  108. package/dist/components/MarkdownFlowEditor/utils.es.js +59 -73
  109. package/dist/components/MarkdownFlowEditor/utils.es.js.map +1 -1
  110. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  111. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  112. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +16 -16
  113. package/dist/components/Slide/Player.cjs.map +1 -1
  114. package/dist/components/Slide/Player.es.js.map +1 -1
  115. package/dist/components/Slide/Slide.cjs.map +1 -1
  116. package/dist/components/Slide/Slide.es.js.map +1 -1
  117. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  118. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  119. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  120. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  121. package/dist/components/Slide/useSlide.cjs.map +1 -1
  122. package/dist/components/Slide/useSlide.es.js.map +1 -1
  123. package/dist/components/Slide/utils/streamingNavigation.cjs.map +1 -1
  124. package/dist/components/Slide/utils/streamingNavigation.es.js.map +1 -1
  125. package/dist/components/ui/dialog.cjs +1 -1
  126. package/dist/components/ui/dialog.cjs.map +1 -1
  127. package/dist/components/ui/dialog.es.js +27 -27
  128. package/dist/components/ui/dialog.es.js.map +1 -1
  129. package/dist/lib/interaction-defaults.cjs.map +1 -1
  130. package/dist/lib/interaction-defaults.es.js.map +1 -1
  131. package/dist/markdown-flow-ui-lib.css +1 -1
  132. package/dist/markdown-flow-ui.css +1 -1
  133. package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
  134. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  135. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  136. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +34 -49
  138. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -5
  140. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +206 -220
  142. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs +2 -0
  144. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  145. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js +50 -0
  146. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  147. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  148. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  149. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  150. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  151. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  152. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  153. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js +82 -0
  154. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  155. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  156. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  157. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +216 -0
  158. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  159. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +2 -0
  160. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
  161. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +15 -0
  162. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -0
  163. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  164. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  165. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js +18 -0
  166. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  167. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +2 -0
  168. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
  169. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +104 -0
  170. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -0
  171. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  172. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  173. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  174. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  175. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  176. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  177. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  178. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  179. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  180. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  181. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +70 -0
  182. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  183. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs +2 -0
  184. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  185. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js +20 -0
  186. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  187. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +2 -0
  188. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
  189. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +7 -0
  190. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -0
  191. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +1 -1
  192. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js +18 -9
  194. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  196. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +148 -100
  198. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  200. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  201. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  202. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  203. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  204. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  205. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js +39 -0
  206. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  207. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  208. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  209. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +13 -0
  210. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  211. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  212. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +8 -8
  214. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  216. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  218. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  219. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  220. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +50 -0
  221. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  222. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  223. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  224. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +80 -41
  225. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  226. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  227. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  228. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +34 -0
  229. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -0
  230. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  231. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  232. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +1 -1
  233. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  234. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  235. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +12 -0
  236. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  237. package/dist/node_modules/classnames/index.cjs +1 -1
  238. package/dist/node_modules/classnames/index.es.js +1 -1
  239. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  240. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  241. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  242. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  243. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  244. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  245. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  246. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  247. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  248. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  249. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  250. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  251. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  252. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +1 -1
  253. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  254. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +1 -1
  255. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  256. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  257. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  258. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  259. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  260. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  261. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  262. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  263. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +2 -2
  264. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  265. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js +75 -72
  266. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -1
  267. package/package.json +10 -10
  268. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +0 -2
  269. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +0 -1
  270. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +0 -17
  271. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +0 -46
  272. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +0 -1
  273. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +0 -2
  274. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +0 -1
  275. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +0 -18
  276. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +0 -184
  277. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +0 -1
  278. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +0 -2
  279. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +0 -1
  280. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +0 -11
  281. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +0 -172
  282. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +0 -1
  283. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +0 -2
  284. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +0 -1
  285. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.d.ts +0 -3
  286. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +0 -32
  287. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +0 -1
  288. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs +0 -3
  289. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.cjs.map +0 -1
  290. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.d.ts +0 -9
  291. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js +0 -53
  292. package/dist/components/MarkdownFlowEditor/plugins/VariablePlaceholder.es.js.map +0 -1
  293. package/dist/components/ui/popover.cjs +0 -2
  294. package/dist/components/ui/popover.cjs.map +0 -1
  295. package/dist/components/ui/popover.es.js +0 -24
  296. package/dist/components/ui/popover.es.js.map +0 -1
  297. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +0 -2
  298. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +0 -1
  299. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +0 -241
  300. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +0 -1
  301. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs +0 -7
  302. package/dist/node_modules/lucide-react/dist/esm/icons/braces.cjs.map +0 -1
  303. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js +0 -25
  304. package/dist/node_modules/lucide-react/dist/esm/icons/braces.es.js.map +0 -1
  305. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs +0 -7
  306. package/dist/node_modules/lucide-react/dist/esm/icons/plus.cjs.map +0 -1
  307. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js +0 -16
  308. package/dist/node_modules/lucide-react/dist/esm/icons/plus.es.js.map +0 -1
  309. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs +0 -7
  310. package/dist/node_modules/lucide-react/dist/esm/icons/search.cjs.map +0 -1
  311. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js +0 -16
  312. package/dist/node_modules/lucide-react/dist/esm/icons/search.es.js.map +0 -1
  313. /package/dist/components/MarkdownFlowEditor/plugins/{VariablePlaceholder.test.d.ts → MediaPlaceholder.variables.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("./chunk-NSK5VX7P.cjs"),O=require("./chunk-I66GZJ75.cjs"),K=require("./chunk-X3CZISLH.cjs"),l=require("./chunk-Y2CYZVJY.cjs"),lt=require("../../../../../_virtual/index7.cjs"),L=require("../../../../../_virtual/dayjs.min.cjs"),ut=require("../../../../../_virtual/isoWeek.cjs"),dt=require("../../../../../_virtual/customParseFormat.cjs"),ft=require("../../../../../_virtual/advancedFormat.cjs"),mt=require("../../../../../_virtual/duration.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const ht=require("../../../../d3-scale/src/time.cjs"),kt=require("../../../../d3-array/src/min.cjs"),yt=require("../../../../d3-array/src/max.cjs"),gt=require("../../../../d3-scale/src/linear.cjs"),_t=require("../../../../d3-interpolate/src/hcl.cjs"),Ye=require("../../../../d3-axis/src/axis.cjs"),Be=require("../../../../d3-time-format/src/defaultLocale.cjs"),ze=require("../../../../d3-time/src/month.cjs"),j=require("../../../../d3-time/src/week.cjs"),Xe=require("../../../../d3-time/src/day.cjs"),Ge=require("../../../../d3-time/src/hour.cjs"),Ue=require("../../../../d3-time/src/minute.cjs"),He=require("../../../../d3-time/src/second.cjs"),je=require("../../../../d3-time/src/millisecond.cjs"),ye=require("../../../../d3-selection/src/select.cjs");var Ce=(function(){var e=l.__name(function(y,s,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=s);return d},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],a=[1,26],n=[1,27],r=[1,28],m=[1,29],k=[1,30],C=[1,31],M=[1,32],z=[1,33],E=[1,34],Y=[1,9],q=[1,10],N=[1,11],U=[1,12],W=[1,13],w=[1,14],ne=[1,15],re=[1,16],se=[1,19],ce=[1,20],J=[1,21],oe=[1,22],le=[1,23],ue=[1,25],de=[1,35],h={trace:l.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l.__name(function(s,d,f,u,x,t,T){var o=t.length-1;switch(x){case 1:return t[o-1];case 2:this.$=[];break;case 3:t[o-1].push(t[o]),this.$=t[o-1];break;case 4:case 5:this.$=t[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(t[o].substr(11)),this.$=t[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=t[o].substr(18);break;case 19:u.TopAxis(),this.$=t[o].substr(8);break;case 20:u.setAxisFormat(t[o].substr(11)),this.$=t[o].substr(11);break;case 21:u.setTickInterval(t[o].substr(13)),this.$=t[o].substr(13);break;case 22:u.setExcludes(t[o].substr(9)),this.$=t[o].substr(9);break;case 23:u.setIncludes(t[o].substr(9)),this.$=t[o].substr(9);break;case 24:u.setTodayMarker(t[o].substr(12)),this.$=t[o].substr(12);break;case 27:u.setDiagramTitle(t[o].substr(6)),this.$=t[o].substr(6);break;case 28:this.$=t[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=t[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(t[o].substr(8)),this.$=t[o].substr(8);break;case 33:u.addTask(t[o-1],t[o]),this.$="task";break;case 34:this.$=t[o-1],u.setClickEvent(t[o-1],t[o],null);break;case 35:this.$=t[o-2],u.setClickEvent(t[o-2],t[o-1],t[o]);break;case 36:this.$=t[o-2],u.setClickEvent(t[o-2],t[o-1],null),u.setLink(t[o-2],t[o]);break;case 37:this.$=t[o-3],u.setClickEvent(t[o-3],t[o-2],t[o-1]),u.setLink(t[o-3],t[o]);break;case 38:this.$=t[o-2],u.setClickEvent(t[o-2],t[o],null),u.setLink(t[o-2],t[o-1]);break;case 39:this.$=t[o-3],u.setClickEvent(t[o-3],t[o-1],t[o]),u.setLink(t[o-3],t[o-2]);break;case 40:this.$=t[o-1],u.setLink(t[o-1],t[o]);break;case 41:case 47:this.$=t[o-1]+" "+t[o];break;case 42:case 43:case 45:this.$=t[o-2]+" "+t[o-1]+" "+t[o];break;case 44:case 46:this.$=t[o-3]+" "+t[o-2]+" "+t[o-1]+" "+t[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:n,14:r,15:m,16:k,17:C,18:M,19:18,20:z,21:E,22:Y,23:q,24:N,25:U,26:W,27:w,28:ne,29:re,30:se,31:ce,33:J,35:oe,36:le,37:24,38:ue,40:de},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:36,11:17,12:a,13:n,14:r,15:m,16:k,17:C,18:M,19:18,20:z,21:E,22:Y,23:q,24:N,25:U,26:W,27:w,28:ne,29:re,30:se,31:ce,33:J,35:oe,36:le,37:24,38:ue,40:de},e(i,[2,5]),e(i,[2,6]),e(i,[2,17]),e(i,[2,18]),e(i,[2,19]),e(i,[2,20]),e(i,[2,21]),e(i,[2,22]),e(i,[2,23]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),e(i,[2,27]),{32:[1,37]},{34:[1,38]},e(i,[2,30]),e(i,[2,31]),e(i,[2,32]),{39:[1,39]},e(i,[2,8]),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,15]),e(i,[2,16]),{41:[1,40],43:[1,41]},e(i,[2,4]),e(i,[2,28]),e(i,[2,29]),e(i,[2,33]),e(i,[2,34],{42:[1,42],43:[1,43]}),e(i,[2,40],{41:[1,44]}),e(i,[2,35],{43:[1,45]}),e(i,[2,36]),e(i,[2,38],{42:[1,46]}),e(i,[2,37]),e(i,[2,39])],defaultActions:{},parseError:l.__name(function(s,d){if(d.recoverable)this.trace(s);else{var f=new Error(s);throw f.hash=d,f}},"parseError"),parse:l.__name(function(s){var d=this,f=[0],u=[],x=[null],t=[],T=this.table,o="",F=0,c=0,g=2,_=1,D=t.slice.call(arguments,1),v=Object.create(this.lexer),I={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(I.yy[S]=this.yy[S]);v.setInput(s,I.yy),I.yy.lexer=v,I.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var fe=v.yylloc;t.push(fe);var Te=v.options&&v.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(R){f.length=f.length-2*R,x.length=x.length-R,t.length=t.length-R}l.__name(ct,"popStack");function Pe(){var R;return R=u.pop()||v.lex()||_,typeof R!="number"&&(R instanceof Array&&(u=R,R=u.pop()),R=d.symbols_[R]||R),R}l.__name(Pe,"lex");for(var V,H,P,xe,Q={},he,X,Ne,ke;;){if(H=f[f.length-1],this.defaultActions[H]?P=this.defaultActions[H]:((V===null||typeof V>"u")&&(V=Pe()),P=T[H]&&T[H][V]),typeof P>"u"||!P.length||!P[0]){var be="";ke=[];for(he in T[H])this.terminals_[he]&&he>g&&ke.push("'"+this.terminals_[he]+"'");v.showPosition?be="Parse error on line "+(F+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("./chunk-NSK5VX7P.cjs"),O=require("./chunk-I66GZJ75.cjs"),K=require("./chunk-X3CZISLH.cjs"),l=require("./chunk-Y2CYZVJY.cjs"),lt=require("../../../../../_virtual/index6.cjs"),L=require("../../../../../_virtual/dayjs.min.cjs"),ut=require("../../../../../_virtual/isoWeek.cjs"),dt=require("../../../../../_virtual/customParseFormat.cjs"),ft=require("../../../../../_virtual/advancedFormat.cjs"),mt=require("../../../../../_virtual/duration.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const ht=require("../../../../d3-scale/src/time.cjs"),kt=require("../../../../d3-array/src/min.cjs"),yt=require("../../../../d3-array/src/max.cjs"),gt=require("../../../../d3-scale/src/linear.cjs"),_t=require("../../../../d3-interpolate/src/hcl.cjs"),Ye=require("../../../../d3-axis/src/axis.cjs"),Be=require("../../../../d3-time-format/src/defaultLocale.cjs"),ze=require("../../../../d3-time/src/month.cjs"),j=require("../../../../d3-time/src/week.cjs"),Xe=require("../../../../d3-time/src/day.cjs"),Ge=require("../../../../d3-time/src/hour.cjs"),Ue=require("../../../../d3-time/src/minute.cjs"),He=require("../../../../d3-time/src/second.cjs"),je=require("../../../../d3-time/src/millisecond.cjs"),ye=require("../../../../d3-selection/src/select.cjs");var Ce=(function(){var e=l.__name(function(y,s,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=s);return d},"o"),i=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],a=[1,26],n=[1,27],r=[1,28],m=[1,29],k=[1,30],C=[1,31],M=[1,32],z=[1,33],E=[1,34],Y=[1,9],q=[1,10],N=[1,11],U=[1,12],W=[1,13],w=[1,14],ne=[1,15],re=[1,16],se=[1,19],ce=[1,20],J=[1,21],oe=[1,22],le=[1,23],ue=[1,25],de=[1,35],h={trace:l.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l.__name(function(s,d,f,u,x,t,T){var o=t.length-1;switch(x){case 1:return t[o-1];case 2:this.$=[];break;case 3:t[o-1].push(t[o]),this.$=t[o-1];break;case 4:case 5:this.$=t[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(t[o].substr(11)),this.$=t[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=t[o].substr(18);break;case 19:u.TopAxis(),this.$=t[o].substr(8);break;case 20:u.setAxisFormat(t[o].substr(11)),this.$=t[o].substr(11);break;case 21:u.setTickInterval(t[o].substr(13)),this.$=t[o].substr(13);break;case 22:u.setExcludes(t[o].substr(9)),this.$=t[o].substr(9);break;case 23:u.setIncludes(t[o].substr(9)),this.$=t[o].substr(9);break;case 24:u.setTodayMarker(t[o].substr(12)),this.$=t[o].substr(12);break;case 27:u.setDiagramTitle(t[o].substr(6)),this.$=t[o].substr(6);break;case 28:this.$=t[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=t[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(t[o].substr(8)),this.$=t[o].substr(8);break;case 33:u.addTask(t[o-1],t[o]),this.$="task";break;case 34:this.$=t[o-1],u.setClickEvent(t[o-1],t[o],null);break;case 35:this.$=t[o-2],u.setClickEvent(t[o-2],t[o-1],t[o]);break;case 36:this.$=t[o-2],u.setClickEvent(t[o-2],t[o-1],null),u.setLink(t[o-2],t[o]);break;case 37:this.$=t[o-3],u.setClickEvent(t[o-3],t[o-2],t[o-1]),u.setLink(t[o-3],t[o]);break;case 38:this.$=t[o-2],u.setClickEvent(t[o-2],t[o],null),u.setLink(t[o-2],t[o-1]);break;case 39:this.$=t[o-3],u.setClickEvent(t[o-3],t[o-1],t[o]),u.setLink(t[o-3],t[o-2]);break;case 40:this.$=t[o-1],u.setLink(t[o-1],t[o]);break;case 41:case 47:this.$=t[o-1]+" "+t[o];break;case 42:case 43:case 45:this.$=t[o-2]+" "+t[o-1]+" "+t[o];break;case 44:case 46:this.$=t[o-3]+" "+t[o-2]+" "+t[o-1]+" "+t[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:a,13:n,14:r,15:m,16:k,17:C,18:M,19:18,20:z,21:E,22:Y,23:q,24:N,25:U,26:W,27:w,28:ne,29:re,30:se,31:ce,33:J,35:oe,36:le,37:24,38:ue,40:de},e(i,[2,7],{1:[2,1]}),e(i,[2,3]),{9:36,11:17,12:a,13:n,14:r,15:m,16:k,17:C,18:M,19:18,20:z,21:E,22:Y,23:q,24:N,25:U,26:W,27:w,28:ne,29:re,30:se,31:ce,33:J,35:oe,36:le,37:24,38:ue,40:de},e(i,[2,5]),e(i,[2,6]),e(i,[2,17]),e(i,[2,18]),e(i,[2,19]),e(i,[2,20]),e(i,[2,21]),e(i,[2,22]),e(i,[2,23]),e(i,[2,24]),e(i,[2,25]),e(i,[2,26]),e(i,[2,27]),{32:[1,37]},{34:[1,38]},e(i,[2,30]),e(i,[2,31]),e(i,[2,32]),{39:[1,39]},e(i,[2,8]),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,15]),e(i,[2,16]),{41:[1,40],43:[1,41]},e(i,[2,4]),e(i,[2,28]),e(i,[2,29]),e(i,[2,33]),e(i,[2,34],{42:[1,42],43:[1,43]}),e(i,[2,40],{41:[1,44]}),e(i,[2,35],{43:[1,45]}),e(i,[2,36]),e(i,[2,38],{42:[1,46]}),e(i,[2,37]),e(i,[2,39])],defaultActions:{},parseError:l.__name(function(s,d){if(d.recoverable)this.trace(s);else{var f=new Error(s);throw f.hash=d,f}},"parseError"),parse:l.__name(function(s){var d=this,f=[0],u=[],x=[null],t=[],T=this.table,o="",F=0,c=0,g=2,_=1,D=t.slice.call(arguments,1),v=Object.create(this.lexer),I={yy:{}};for(var S in this.yy)Object.prototype.hasOwnProperty.call(this.yy,S)&&(I.yy[S]=this.yy[S]);v.setInput(s,I.yy),I.yy.lexer=v,I.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var fe=v.yylloc;t.push(fe);var Te=v.options&&v.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ct(R){f.length=f.length-2*R,x.length=x.length-R,t.length=t.length-R}l.__name(ct,"popStack");function Pe(){var R;return R=u.pop()||v.lex()||_,typeof R!="number"&&(R instanceof Array&&(u=R,R=u.pop()),R=d.symbols_[R]||R),R}l.__name(Pe,"lex");for(var V,H,P,xe,Q={},he,X,Ne,ke;;){if(H=f[f.length-1],this.defaultActions[H]?P=this.defaultActions[H]:((V===null||typeof V>"u")&&(V=Pe()),P=T[H]&&T[H][V]),typeof P>"u"||!P.length||!P[0]){var be="";ke=[];for(he in T[H])this.terminals_[he]&&he>g&&ke.push("'"+this.terminals_[he]+"'");v.showPosition?be="Parse error on line "+(F+1)+`:
2
2
  `+v.showPosition()+`
3
3
  Expecting `+ke.join(", ")+", got '"+(this.terminals_[V]||V)+"'":be="Parse error on line "+(F+1)+": Unexpected "+(V==_?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(be,{text:v.match,token:this.terminals_[V]||V,line:v.yylineno,loc:fe,expected:ke})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+V);switch(P[0]){case 1:f.push(V),x.push(v.yytext),t.push(v.yylloc),f.push(P[1]),V=null,c=v.yyleng,o=v.yytext,F=v.yylineno,fe=v.yylloc;break;case 2:if(X=this.productions_[P[1]][1],Q.$=x[x.length-X],Q._$={first_line:t[t.length-(X||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(X||1)].first_column,last_column:t[t.length-1].last_column},Te&&(Q._$.range=[t[t.length-(X||1)].range[0],t[t.length-1].range[1]]),xe=this.performAction.apply(Q,[o,c,F,I.yy,P[1],x,t].concat(D)),typeof xe<"u")return xe;X&&(f=f.slice(0,-1*X*2),x=x.slice(0,-1*X),t=t.slice(0,-1*X)),f.push(this.productions_[P[1]][0]),x.push(Q.$),t.push(Q._$),Ne=T[f[f.length-2]][f[f.length-1]],f.push(Ne);break;case 3:return!0}}return!0},"parse")},b=(function(){var y={EOF:1,parseError:l.__name(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:l.__name(function(s,d){return this.yy=d||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var d=s.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l.__name(function(s){var d=s.length,f=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),f.length-1&&(this.yylineno-=f.length-1);var x=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:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l.__name(function(){return this._more=!0,this},"more"),reject:l.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l.__name(function(){var s=this.pastInput(),d=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -2,7 +2,7 @@ import { utils_default as ne } from "./chunk-NSK5VX7P.es.js";
2
2
  import { getAccDescription as oe, setAccDescription as ce, getDiagramTitle as le, setDiagramTitle as ue, getAccTitle as de, setAccTitle as fe, getConfig2 as Z, configureSvgSize as me, common_default as he, clear as ke } from "./chunk-I66GZJ75.es.js";
3
3
  import { log as G } from "./chunk-X3CZISLH.es.js";
4
4
  import { __name as l } from "./chunk-Y2CYZVJY.es.js";
5
- import { d as ye } from "../../../../../_virtual/index.es7.js";
5
+ import { d as ye } from "../../../../../_virtual/index.es6.js";
6
6
  import L from "../../../../../_virtual/dayjs.min.es.js";
7
7
  import ge from "../../../../../_virtual/isoWeek.es.js";
8
8
  import pe from "../../../../../_virtual/customParseFormat.es.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index7.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[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],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[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],me=[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],qt=[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],xe=[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],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__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:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([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],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[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:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([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],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{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:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{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:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ze=require("./chunk-2Q5K7J3B.cjs"),Le=require("js-yaml"),J=require("./chunk-2GRJ4B5K.cjs"),X=require("./chunk-NSK5VX7P.cjs"),I=require("./chunk-I66GZJ75.cjs"),at=require("./chunk-X3CZISLH.cjs"),m=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const Ae=require("../../../../../_virtual/index6.cjs"),Mt=require("../../../../d3-selection/src/select.cjs");var Zt=(function(){var e=m.__name(function(pt,N,C,P){for(C=C||{},P=pt.length;P--;C[pt[P]]=N);return C},"o"),t=[1,2],r=[1,3],a=[1,4],n=[2,4],i=[1,9],s=[1,11],c=[1,12],E=[1,14],d=[1,15],p=[1,17],f=[1,18],_=[1,19],O=[1,25],T=[1,26],g=[1,27],u=[1,28],x=[1,29],L=[1,30],b=[1,31],w=[1,32],A=[1,33],D=[1,34],M=[1,35],V=[1,36],W=[1,37],U=[1,38],G=[1,39],Z=[1,40],nt=[1,42],$=[1,43],H=[1,44],rt=[1,45],j=[1,46],Y=[1,47],v=[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],bt=[1,74],wt=[1,80],S=[1,81],k=[1,82],ct=[1,83],tt=[1,84],K=[1,85],It=[1,86],jt=[1,87],te=[1,88],ee=[1,89],ae=[1,90],re=[1,91],se=[1,92],ne=[1,93],ie=[1,94],oe=[1,95],ce=[1,96],le=[1,97],de=[1,98],he=[1,99],Te=[1,100],pe=[1,101],Ee=[1,102],_e=[1,103],ue=[1,104],fe=[1,105],ge=[2,78],St=[4,5,17,51,53,54],Pt=[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],me=[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],qt=[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],xe=[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],Ft=[5,52],q=[70,71,72,73],it=[1,151],Ht={trace:m.__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:m.__name(function(N,C,P,y,z,o,At){var h=o.length-1;switch(z){case 3:return y.apply(o[h]),o[h];case 4:case 10:this.$=[];break;case 5:case 11:o[h-1].push(o[h]),this.$=o[h-1];break;case 6:case 7:case 12:case 13:this.$=o[h];break;case 8:case 9:case 14:this.$=[];break;case 16:o[h].type="createParticipant",this.$=o[h];break;case 17:o[h-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[h-2])}),o[h-1].push({type:"boxEnd",boxText:o[h-2]}),this.$=o[h-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-2]),sequenceIndexStep:Number(o[h-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[h-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-1].actor};break;case 30:y.setDiagramTitle(o[h].substring(6)),this.$=o[h].substring(6);break;case 31:y.setDiagramTitle(o[h].substring(7)),this.$=o[h].substring(7);break;case 32:this.$=o[h].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[h].trim(),y.setAccDescription(this.$);break;case 35:o[h-1].unshift({type:"loopStart",loopText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.LOOP_START}),o[h-1].push({type:"loopEnd",loopText:o[h-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[h-1];break;case 36:o[h-1].unshift({type:"rectStart",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_START}),o[h-1].push({type:"rectEnd",color:y.parseMessage(o[h-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[h-1];break;case 37:o[h-1].unshift({type:"optStart",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_START}),o[h-1].push({type:"optEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[h-1];break;case 38:o[h-1].unshift({type:"altStart",altText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.ALT_START}),o[h-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[h-1];break;case 39:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 40:o[h-1].unshift({type:"parStart",parText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[h-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[h-1];break;case 41:o[h-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.CRITICAL_START}),o[h-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[h-1];break;case 42:o[h-1].unshift({type:"breakStart",breakText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_START}),o[h-1].push({type:"breakEnd",optText:y.parseMessage(o[h-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[h-1];break;case 44:this.$=o[h-3].concat([{type:"option",optionText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[h]]);break;case 46:this.$=o[h-3].concat([{type:"and",parText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.PAR_AND},o[h]]);break;case 48:this.$=o[h-3].concat([{type:"else",altText:y.parseMessage(o[h-1]),signalType:y.LINETYPE.ALT_ELSE},o[h]]);break;case 49:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 50:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 51:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 52:case 57:o[h-1].draw="actor",o[h-1].type="addParticipant",this.$=o[h-1];break;case 53:o[h-1].type="destroyParticipant",this.$=o[h-1];break;case 54:o[h-3].draw="participant",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 55:o[h-1].draw="participant",o[h-1].type="addParticipant",this.$=o[h-1];break;case 56:o[h-3].draw="actor",o[h-3].type="addParticipant",o[h-3].description=y.parseMessage(o[h-1]),this.$=o[h-3];break;case 58:this.$=[o[h-1],{type:"addNote",placement:o[h-2],actor:o[h-1].actor,text:o[h]}];break;case 59:o[h-2]=[].concat(o[h-1],o[h-1]).slice(0,2),o[h-2][0]=o[h-2][0].actor,o[h-2][1]=o[h-2][1].actor,this.$=[o[h-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[h-2].slice(0,2),text:o[h]}];break;case 60:this.$=[o[h-1],{type:"addLinks",actor:o[h-1].actor,text:o[h]}];break;case 61:this.$=[o[h-1],{type:"addALink",actor:o[h-1].actor,text:o[h]}];break;case 62:this.$=[o[h-1],{type:"addProperties",actor:o[h-1].actor,text:o[h]}];break;case 63:this.$=[o[h-1],{type:"addDetails",actor:o[h-1].actor,text:o[h]}];break;case 66:this.$=[o[h-2],o[h]];break;case 67:this.$=o[h];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[h-1].actor}];break;case 71:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[h-4].actor}];break;case 72:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor}];break;case 73:this.$=[o[h-4],o[h-1],{type:"addMessage",from:o[h-4].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-4].actor}];break;case 74:this.$=[o[h-5],o[h-1],{type:"addMessage",from:o[h-5].actor,to:o[h-1].actor,signalType:o[h-3],msg:o[h],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[h-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[h-5].actor}];break;case 75:this.$=[o[h-3],o[h-1],{type:"addMessage",from:o[h-3].actor,to:o[h-1].actor,signalType:o[h-2],msg:o[h]}];break;case 76:this.$={type:"addParticipant",actor:o[h-1],config:o[h]};break;case 77:this.$=o[h-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[h]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[h].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:r,6:a},{1:[3]},{3:5,4:t,5:r,6:a},{3:6,4:t,5:r,6:a},e([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],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,5]),{9:48,13:13,14:E,15:d,18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},e(v,[2,7]),e(v,[2,8]),e(v,[2,9]),e(v,[2,15]),{13:49,51:U,53:G,54:Z},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:Y},{23:56,73:Y},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(v,[2,30]),e(v,[2,31]),{33:[1,62]},{35:[1,63]},e(v,[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:bt},{23:75,55:76,73:bt},{23:77,73:Y},{69:78,72:[1,79],78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:Y},{23:111,73:Y},{23:112,73:Y},{23:113,73:Y},e([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],ge),e(v,[2,6]),e(v,[2,16]),e(St,[2,10],{11:114}),e(v,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(v,[2,22]),{5:[1,118]},{5:[1,119]},e(v,[2,25]),e(v,[2,26]),e(v,[2,27]),e(v,[2,28]),e(v,[2,29]),e(v,[2,32]),e(v,[2,33]),e(Pt,n,{7:120}),e(Pt,n,{7:121}),e(Pt,n,{7:122}),e(me,n,{41:123,7:124}),e(qt,n,{43:125,7:126}),e(qt,n,{7:126,43:127}),e(xe,n,{46:128,7:129}),e(Pt,n,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Ft,ge,{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:Y},{69:146,78:wt,79:S,80:k,81:ct,82:tt,83:K,84:It,85:jt,86:te,87:ee,88:ae,89:re,90:se,91:ne,92:ie,93:oe,94:ce,95:le,96:de,97:he,98:Te,99:pe,100:Ee,101:_e,102:ue,103:fe},e(q,[2,79]),e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),{23:147,73:Y},{23:149,60:148,73:Y},{73:[2,68]},{73:[2,69]},{58:150,104:it},{58:152,104:it},{58:153,104:it},{58:154,104:it},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:U,53:G,54:Z},{5:[1,160]},e(v,[2,20]),e(v,[2,21]),e(v,[2,23]),e(v,[2,24]),{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,161],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,162],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,163],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,164]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,47],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,50:[1,165],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,166]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,45],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,49:[1,167],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{17:[1,168]},{17:[1,169]},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[2,43],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,48:[1,170],51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{4:i,5:s,8:8,9:10,10:c,13:13,14:E,15:d,17:[1,171],18:16,19:p,22:f,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:u,36:x,37:L,38:b,39:w,40:A,42:D,44:M,45:V,47:W,51:U,53:G,54:Z,56:nt,61:$,62:H,63:rt,64:j,73:Y},{16:[1,172]},e(v,[2,50]),{16:[1,173]},e(v,[2,55]),e(Ft,[2,76]),{76:[1,174]},{16:[1,175]},e(v,[2,52]),{16:[1,176]},e(v,[2,57]),e(v,[2,53]),{23:177,73:Y},{23:178,73:Y},{23:179,73:Y},{58:180,104:it},{23:181,72:[1,182],73:Y},{58:183,104:it},{58:184,104:it},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(v,[2,17]),e(St,[2,11]),{13:186,51:U,53:G,54:Z},e(St,[2,13]),e(St,[2,14]),e(v,[2,19]),e(v,[2,35]),e(v,[2,36]),e(v,[2,37]),e(v,[2,38]),{16:[1,187]},e(v,[2,39]),{16:[1,188]},e(v,[2,40]),e(v,[2,41]),{16:[1,189]},e(v,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:it},{58:196,104:it},{58:197,104:it},{5:[2,75]},{58:198,104:it},{23:199,73:Y},{5:[2,58]},{5:[2,59]},{23:200,73:Y},e(St,[2,12]),e(me,n,{7:124,41:201}),e(qt,n,{7:126,43:202}),e(xe,n,{7:129,46:203}),e(v,[2,49]),e(v,[2,54]),e(Ft,[2,77]),e(v,[2,51]),e(v,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:it},{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:m.__name(function(N,C){if(C.recoverable)this.trace(N);else{var P=new Error(N);throw P.hash=C,P}},"parseError"),parse:m.__name(function(N){var C=this,P=[0],y=[],z=[null],o=[],At=this.table,h="",Dt=0,Ie=0,Ke=2,ye=1,qe=o.slice.call(arguments,1),Q=Object.create(this.lexer),ut={yy:{}};for(var zt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,zt)&&(ut.yy[zt]=this.yy[zt]);Q.setInput(N,ut.yy),ut.yy.lexer=Q,ut.yy.parser=this,typeof Q.yylloc>"u"&&(Q.yylloc={});var Ut=Q.yylloc;o.push(Ut);var Fe=Q.options&&Q.options.ranges;typeof ut.yy.parseError=="function"?this.parseError=ut.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(st){P.length=P.length-2*st,z.length=z.length-st,o.length=o.length-st}m.__name(He,"popStack");function Re(){var st;return st=y.pop()||Q.lex()||ye,typeof st!="number"&&(st instanceof Array&&(y=st,st=y.pop()),st=C.symbols_[st]||st),st}m.__name(Re,"lex");for(var et,ft,ot,Gt,yt={},Ct,dt,Oe,vt;;){if(ft=P[P.length-1],this.defaultActions[ft]?ot=this.defaultActions[ft]:((et===null||typeof et>"u")&&(et=Re()),ot=At[ft]&&At[ft][et]),typeof ot>"u"||!ot.length||!ot[0]){var Xt="";vt=[];for(Ct in At[ft])this.terminals_[Ct]&&Ct>Ke&&vt.push("'"+this.terminals_[Ct]+"'");Q.showPosition?Xt="Parse error on line "+(Dt+1)+`:
2
2
  `+Q.showPosition()+`
3
3
  Expecting `+vt.join(", ")+", got '"+(this.terminals_[et]||et)+"'":Xt="Parse error on line "+(Dt+1)+": Unexpected "+(et==ye?"end of input":"'"+(this.terminals_[et]||et)+"'"),this.parseError(Xt,{text:Q.match,token:this.terminals_[et]||et,line:Q.yylineno,loc:Ut,expected:vt})}if(ot[0]instanceof Array&&ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ft+", token: "+et);switch(ot[0]){case 1:P.push(et),z.push(Q.yytext),o.push(Q.yylloc),P.push(ot[1]),et=null,Ie=Q.yyleng,h=Q.yytext,Dt=Q.yylineno,Ut=Q.yylloc;break;case 2:if(dt=this.productions_[ot[1]][1],yt.$=z[z.length-dt],yt._$={first_line:o[o.length-(dt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(dt||1)].first_column,last_column:o[o.length-1].last_column},Fe&&(yt._$.range=[o[o.length-(dt||1)].range[0],o[o.length-1].range[1]]),Gt=this.performAction.apply(yt,[h,Ie,Dt,ut.yy,ot[1],z,o].concat(qe)),typeof Gt<"u")return Gt;dt&&(P=P.slice(0,-1*dt*2),z=z.slice(0,-1*dt),o=o.slice(0,-1*dt)),P.push(this.productions_[ot[1]][0]),z.push(yt.$),o.push(yt._$),Oe=At[P[P.length-2]][P[P.length-1]],P.push(Oe);break;case 3:return!0}}return!0},"parse")},We=(function(){var pt={EOF:1,parseError:m.__name(function(C,P){if(this.yy.parser)this.yy.parser.parseError(C,P);else throw new Error(C)},"parseError"),setInput:m.__name(function(N,C){return this.yy=C||this.yy||{},this._input=N,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:m.__name(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var C=N.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),N},"input"),unput:m.__name(function(N){var C=N.length,P=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=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),P.length-1&&(this.yylineno-=P.length-1);var z=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:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[z[0],z[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:m.__name(function(){return this._more=!0,this},"more"),reject:m.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m.__name(function(N){this.unput(this.match.slice(N))},"less"),pastInput:m.__name(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m.__name(function(){var N=this.match;return N.length<20&&(N+=this._input.substr(0,20-N.length)),(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m.__name(function(){var N=this.pastInput(),C=new Array(N.length+1).join("-");return N+this.upcomingInput()+`
@@ -7,7 +7,7 @@ import { log as at } from "./chunk-X3CZISLH.es.js";
7
7
  import { __name as x } from "./chunk-Y2CYZVJY.es.js";
8
8
  import "../../../../d3-transition/src/selection/index.es.js";
9
9
  import "../../../../d3-zoom/src/transform.es.js";
10
- import { d as Ve } from "../../../../../_virtual/index.es7.js";
10
+ import { d as Ve } from "../../../../../_virtual/index.es6.js";
11
11
  import Wt from "../../../../d3-selection/src/select.es.js";
12
12
  var ee = (function() {
13
13
  var e = /* @__PURE__ */ x(function(ut, S, v, P) {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.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"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./chunk-5RXB4S5H.cjs"),x=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");const t=require("./chunk-I66GZJ75.cjs"),S=require("./chunk-X3CZISLH.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");const z=require("./chunk-NSK5VX7P.cjs"),L=require("../../../../dagre-d3-es/src/graphlib/graph.cjs"),G=require("../../../../dagre-d3-es/src/dagre/layout.cjs");require("../../../../dagre-d3-es/src/dagre/rank/network-simplex.cjs");const N=require("../../../../d3-selection/src/select.cjs"),P=require("../../../../d3-shape/src/line.cjs"),R=require("../../../../d3-shape/src/curve/basis.cjs");var A=x.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),W=x.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),U=x.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),D=x.__name((e,n)=>{const d=x.__name(function(s,w,C){const b=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(w);C||b.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=r.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,o=!0;n.descriptions.forEach(function(s){i||(d(h,s,o),o=!1),i=!1});const m=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,r.width);return m.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),F=x.__name((e,n,d)=>{const g=t.getConfig2().state.padding,r=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,o=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=o.node().getBBox().width+r;let c=Math.max(p,h);c===h&&(c=c+r);let s;const w=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-w.x)<g&&p>h&&(s=i-(p-h)/2);const C=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",C).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",w.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),o.attr("x",s+g),p<=h&&o.attr("x",i+(c-r)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",w.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),X=x.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),J=x.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let r=d;d=g,g=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),O=x.__name((e,n,d,g)=>{let r=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let o=1.25*t.getConfig2().state.noteMargin;for(const m of i){const p=m.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),o===0){const s=c.node().getBBox();o+=s.height}r+=o,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+r+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:r}},"_drawLongText"),Y=x.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:r,textHeight:l}=O(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",r+t.getConfig2().state.noteMargin*2),d},"drawNote"),H=x.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},r=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&A(r),n.type==="end"&&X(r),(n.type==="fork"||n.type==="join")&&J(r,n),n.type==="note"&&Y(n.note.text,r),n.type==="divider"&&W(r),n.type==="default"&&n.descriptions.length===0&&U(r,n),n.type==="default"&&n.descriptions.length>0&&D(r,n);const l=r.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),T=0,I=x.__name(function(e,n,d){const g=x.__name(function(o){switch(o){case v.StateDB.relationType.AGGREGATION:return"aggregation";case v.StateDB.relationType.EXTENSION:return"extension";case v.StateDB.relationType.COMPOSITION:return"composition";case v.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));const r=n.points,l=P.default().x(function(o){return o.x}).y(function(o){return o.y}).curve(R.default),h=e.append("path").attr("d",l(r)).attr("id","edge"+T).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(v.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const o=e.append("g").attr("class","stateLabel"),{x:m,y:p}=z.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const w=[];let C=0,b=0;for(let u=0;u<=c.length;u++){const f=o.append("text").attr("text-anchor","middle").text(c[u]).attr("x",m).attr("y",p+s),y=f.node().getBBox();C=Math.max(C,y.width),b=Math.min(b,y.x),S.log.info(y.x,m,p+s),s===0&&(s=f.node().getBBox().height,S.log.info("Title height",s,p)),w.push(f)}let k=s*c.length;if(c.length>1){const u=(c.length-1)*s*.5;w.forEach((f,y)=>f.attr("y",p+y*s-u)),k=s*c.length}const a=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-C/2-t.getConfig2().state.padding/2).attr("y",p-k/2-t.getConfig2().state.padding/2-3.5).attr("width",C+t.getConfig2().state.padding).attr("height",k+t.getConfig2().state.padding),S.log.info(a)}T++},"drawEdge"),B,M={},Z=x.__name(function(){},"setConf"),$=x.__name(function(e){e.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"),V=x.__name(function(e,n,d,g){B=t.getConfig2().state;const r=t.getConfig2().securityLevel;let l;r==="sandbox"&&(l=N.default("#i"+n));const h=r==="sandbox"?N.default(l.nodes()[0].contentDocument.body):N.default("body"),i=r==="sandbox"?l.nodes()[0].contentDocument:document;S.log.debug("Rendering diagram "+e);const o=h.select(`[id='${n}']`);$(o);const m=g.db.getRootDoc(),p=o.append("g").attr("id",n+"-root");q(m,p,void 0,!1,h,i,g);const c=B.padding,s=o.node().getBBox(),w=s.width+c*2,C=s.height+c*2,b=w*1.75;t.configureSvgSize(o,C,b,B.useMaxWidth),o.attr("viewBox",`${s.x-B.padding} ${s.y-B.padding} `+w+" "+C)},"draw"),j=x.__name(e=>e?e.length*B.fontSizeFactor:1,"getLabelWidth"),q=x.__name((e,n,d,g,r,l,h)=>{const i=new L.Graph({compound:!0,multigraph:!0});let o,m=!0;for(o=0;o<e.length;o++)if(e[o].stmt==="relation"){m=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:m?1:B.edgeLengthFactor,nodeSep:m?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const u=p[a];d&&(u.parentId=d);let f;if(u.doc){let y=n.append("g").attr("id",u.id).attr("class","stateGroup");f=q(u.doc,y,u.id,!g,r,l,h);{y=F(y,u,g);let _=y.node().getBBox();f.width=_.width,f.height=_.height+B.padding/2,M[u.id]={y:B.compositTitleSize}}}else f=H(n,u,i);if(u.note){const y={descriptions:[],id:u.id+"-note",note:u.note,type:"note"},_=H(n,y,i);u.note.position==="left of"?(i.setNode(f.id+"-note",_),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",_)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}S.log.debug("Count=",i.nodeCount(),i);let w=0;c.forEach(function(a){w++,S.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:j(a.title),height:B.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+w)}),G.layout(i),S.log.debug("Graph after layout",i.nodes());const C=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(S.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),r.select("#"+C.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(M[a]?M[a].y:0)-i.node(a).height/2)+" )"),r.select("#"+C.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+C.id+" #"+a+" .divider").forEach(f=>{const y=f.parentElement;let _=0,E=0;y&&(y.parentElement&&(_=y.parentElement.getBBox().width),E=parseInt(y.getAttribute("data-x-shift"),10),Number.isNaN(E)&&(E=0)),f.setAttribute("x1",0-E+8),f.setAttribute("x2",_-E-8)})):S.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let b=C.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(S.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),I(n,i.edge(a),i.edge(a).relation))}),b=C.getBBox();const k={id:d||"root",label:d||"root",width:0,height:0};return k.width=b.width+2*B.padding,k.height=b.height+2*B.padding,S.log.debug("Doc rendered",k,i),k},"renderDoc"),K={setConf:Z,draw:V},Q={parser:v.stateDiagram_default,get db(){return new v.StateDB(1)},renderer:K,styles:v.styles_default,init:x.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Q;
2
2
  //# sourceMappingURL=stateDiagram-OKZ733FA.cjs.map
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
5
5
  import { getConfig2 as t, configureSvgSize as P, common_default as z, getUrl as U } from "./chunk-I66GZJ75.es.js";
6
6
  import { log as S } from "./chunk-X3CZISLH.es.js";
7
7
  import "./chunk-J7OUQ5F2.es.js";
8
- import "../../../../../_virtual/index.es7.js";
8
+ import "../../../../../_virtual/index.es6.js";
9
9
  import "./chunk-7Z6QIM7H.es.js";
10
10
  import "./chunk-QR6OTTB3.es.js";
11
11
  import "./chunk-7BUUIJ7U.es.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var i={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-5RXB4S5H.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var i={parser:r.stateDiagram_default,get db(){return new r.StateDB(2)},renderer:r.stateRenderer_v3_unified_default,styles:r.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=i;
2
2
  //# sourceMappingURL=stateDiagram-v2-UEYNNEHI.cjs.map
@@ -5,7 +5,7 @@ import "../../../../d3-zoom/src/transform.es.js";
5
5
  import "./chunk-I66GZJ75.es.js";
6
6
  import "../../../../../_virtual/dayjs.min.es.js";
7
7
  import "./chunk-J7OUQ5F2.es.js";
8
- import "../../../../../_virtual/index.es7.js";
8
+ import "../../../../../_virtual/index.es6.js";
9
9
  import "./chunk-7Z6QIM7H.es.js";
10
10
  import "./chunk-QR6OTTB3.es.js";
11
11
  import "./chunk-7BUUIJ7U.es.js";
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index7.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u=t.__name(e=>`${r.styles_default(e)}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunk-JQJVKLGR.cjs"),t=require("./chunk-Y2CYZVJY.cjs");require("../../../../d3-transition/src/selection/index.cjs");require("../../../../d3-zoom/src/transform.cjs");require("./chunk-I66GZJ75.cjs");require("../../../../../_virtual/dayjs.min.cjs");require("js-yaml");require("./chunk-J7OUQ5F2.cjs");require("../../../../../_virtual/index6.cjs");require("./chunk-7Z6QIM7H.cjs");require("./chunk-QR6OTTB3.cjs");require("./chunk-7BUUIJ7U.cjs");require("./chunk-UBXNYLIW.cjs");require("./chunk-WRU74C26.cjs");require("./chunk-NSK5VX7P.cjs");var u=t.__name(e=>`${r.styles_default(e)}
2
2
  .swimlane.cluster rect {
3
3
  stroke: ${e.clusterBorder} !important;
4
4
  }
@@ -6,7 +6,7 @@ import "./chunk-I66GZJ75.es.js";
6
6
  import "../../../../../_virtual/dayjs.min.es.js";
7
7
  import "js-yaml";
8
8
  import "./chunk-J7OUQ5F2.es.js";
9
- import "../../../../../_virtual/index.es7.js";
9
+ import "../../../../../_virtual/index.es6.js";
10
10
  import "./chunk-7Z6QIM7H.es.js";
11
11
  import "./chunk-QR6OTTB3.es.js";
12
12
  import "./chunk-7BUUIJ7U.es.js";
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../../tslib/tslib.es6.cjs"),q=require("react"),j=require("../../../react-remove-scroll-bar/dist/es2015/component.cjs"),_=require("../../../react-style-singleton/dist/es2015/component.cjs"),v=require("./aggresiveCapture.cjs"),P=require("./handleScroll.cjs");function A(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=A(q);var g=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},x=function(e,a){return e[0]===a[0]&&e[1]===a[1]},p=function(e){return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../../tslib/tslib.es6.cjs"),A=require("react"),x=require("../../../react-remove-scroll-bar/dist/es2015/component.cjs"),N=require("../../../react-style-singleton/dist/es2015/component.cjs"),v=require("./aggresiveCapture.cjs"),E=require("./handleScroll.cjs");function p(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,i.get?i:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const n=p(A);var S=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},w=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},I=function(e,a){return e[0]===a[0]&&e[1]===a[1]},W=function(e){return`
2
2
  .block-interactivity-`.concat(e,` {pointer-events: none;}
3
3
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
4
- `)},I=0,d=[];function W(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(I++)[0],S=n.useState(_.styleSingleton)[0],b=n.useRef(e);n.useEffect(function(){b.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=O.__spreadArray([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var R=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!b.current.allowPinchZoom;var s=g(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,k=t.target,m=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&m==="h"&&k.type==="range")return!1;var C=P.locationCouldBeScrolled(m,k);if(!C)return!0;if(C?c=m:(c=m==="v"?"h":"v",C=P.locationCouldBeScrolled(m,k)),!C)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var Y=i.current||c;return P.handleScroll(Y,r,t,Y==="h"?o:f)},[]),y=n.useCallback(function(t){var r=t;if(!(!d.length||d[d.length-1]!==S)){var s="deltaY"in r?E(r):g(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&x(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(b.current.shards||[]).map(M).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?R(r,o[0]):!b.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),w=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:z(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),T=n.useCallback(function(t){l.current=g(t),i.current=void 0},[]),L=n.useCallback(function(t){w(t.type,E(t),t.target,R(t,e.lockRef.current))},[]),X=n.useCallback(function(t){w(t.type,g(t),t.target,R(t,e.lockRef.current))},[]);n.useEffect(function(){return d.push(S),e.setCallbacks({onScrollCapture:L,onWheelCapture:L,onTouchMoveCapture:X}),document.addEventListener("wheel",y,v.nonPassive),document.addEventListener("touchmove",y,v.nonPassive),document.addEventListener("touchstart",T,v.nonPassive),function(){d=d.filter(function(t){return t!==S}),document.removeEventListener("wheel",y,v.nonPassive),document.removeEventListener("touchmove",y,v.nonPassive),document.removeEventListener("touchstart",T,v.nonPassive)}},[]);var B=e.removeScrollBar,D=e.inert;return n.createElement(n.Fragment,null,D?n.createElement(S,{styles:p(h)}):null,B?n.createElement(j.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function z(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=W;exports.getDeltaXY=E;exports.getTouchXY=g;
4
+ `)},z=0,d=[];function F(e){var a=n.useRef([]),l=n.useRef([0,0]),i=n.useRef(),h=n.useState(z++)[0],b=n.useState(N.styleSingleton)[0],y=n.useRef(e);n.useEffect(function(){y.current=e},[e]),n.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(h));var t=_.__spreadArray([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(r){return r.classList.add("allow-interactivity-".concat(h))}),function(){document.body.classList.remove("block-interactivity-".concat(h)),t.forEach(function(r){return r.classList.remove("allow-interactivity-".concat(h))})}}},[e.inert,e.lockRef.current,e.shards]);var k=n.useCallback(function(t,r){if("touches"in t&&t.touches.length===2||t.type==="wheel"&&t.ctrlKey)return!y.current.allowPinchZoom;var s=S(t),u=l.current,o="deltaX"in t?t.deltaX:u[0]-s[0],f="deltaY"in t?t.deltaY:u[1]-s[1],c,m=t.target,g=Math.abs(o)>Math.abs(f)?"h":"v";if("touches"in t&&g==="h"&&m.type==="range")return!1;var M=window.getSelection(),P=M&&M.anchorNode,j=P?P===m||P.contains(m):!1;if(j)return!1;var R=E.locationCouldBeScrolled(g,m);if(!R)return!0;if(R?c=g:(c=g==="v"?"h":"v",R=E.locationCouldBeScrolled(g,m)),!R)return!1;if(!i.current&&"changedTouches"in t&&(o||f)&&(i.current=c),!c)return!0;var X=i.current||c;return E.handleScroll(X,r,t,X==="h"?o:f)},[]),C=n.useCallback(function(t){var r=t;if(!(!d.length||d[d.length-1]!==b)){var s="deltaY"in r?w(r):S(r),u=a.current.filter(function(c){return c.name===r.type&&(c.target===r.target||r.target===c.shadowParent)&&I(c.delta,s)})[0];if(u&&u.should){r.cancelable&&r.preventDefault();return}if(!u){var o=(y.current.shards||[]).map(B).filter(Boolean).filter(function(c){return c.contains(r.target)}),f=o.length>0?k(r,o[0]):!y.current.noIsolation;f&&r.cancelable&&r.preventDefault()}}},[]),T=n.useCallback(function(t,r,s,u){var o={name:t,delta:r,target:s,should:u,shadowParent:K(s)};a.current.push(o),setTimeout(function(){a.current=a.current.filter(function(f){return f!==o})},1)},[]),L=n.useCallback(function(t){l.current=S(t),i.current=void 0},[]),Y=n.useCallback(function(t){T(t.type,w(t),t.target,k(t,e.lockRef.current))},[]),D=n.useCallback(function(t){T(t.type,S(t),t.target,k(t,e.lockRef.current))},[]);n.useEffect(function(){return d.push(b),e.setCallbacks({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:D}),document.addEventListener("wheel",C,v.nonPassive),document.addEventListener("touchmove",C,v.nonPassive),document.addEventListener("touchstart",L,v.nonPassive),function(){d=d.filter(function(t){return t!==b}),document.removeEventListener("wheel",C,v.nonPassive),document.removeEventListener("touchmove",C,v.nonPassive),document.removeEventListener("touchstart",L,v.nonPassive)}},[]);var O=e.removeScrollBar,q=e.inert;return n.createElement(n.Fragment,null,q?n.createElement(b,{styles:W(h)}):null,O?n.createElement(x.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function K(e){for(var a=null;e!==null;)e instanceof ShadowRoot&&(a=e.host,e=e.host),e=e.parentNode;return a}exports.RemoveScrollSideCar=F;exports.getDeltaXY=w;exports.getTouchXY=S;
5
5
  //# sourceMappingURL=SideEffect.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideEffect.cjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":"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","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"SideEffect.cjs","sources":["../../../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"names":["getTouchXY","event","getDeltaXY","extractRef","ref","deltaCompare","x","y","generateStyle","id","idCounter","lockStack","RemoveScrollSideCar","props","shouldPreventQueue","React","touchStartRef","activeAxis","Style","styleSingleton","lastProps","allow_1","__spreadArray","el","shouldCancelEvent","parent","touch","touchStart","deltaX","deltaY","currentAxis","target","moveDirection","selection","anchorNode","isTouchingSelection","canBeScrolledInMainDirection","locationCouldBeScrolled","cancelingAxis","handleScroll","shouldPrevent","_event","delta","sourceEvent","e","shardNodes","node","shouldStop","shouldCancel","name","should","getOutermostShadowParent","scrollTouchStart","scrollWheel","scrollTouchMove","nonPassive","inst","removeScrollBar","inert","RemoveScrollBar","shadowParent"],"mappings":"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","x_google_ignoreList":[0]}