@vunk/plus 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/components/bubble-list/index.css +0 -22
  2. package/components/bubble-list/index.mjs +413 -9
  3. package/components/drawer/index.mjs +1 -1
  4. package/components/index3.mjs +20 -79450
  5. package/components/xgplayer/index.mjs +2 -16357
  6. package/index.css +0 -22
  7. package/package.json +1 -1
  8. package/components/_baseUniq-BXtq6_NW.mjs +0 -239
  9. package/components/abap-B7h4dtBh.mjs +0 -6
  10. package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
  11. package/components/ada-BZS802Se.mjs +0 -6
  12. package/components/andromeeda-CrngpmZk.mjs +0 -3
  13. package/components/apache-D4roVlsU.mjs +0 -6
  14. package/components/apex-D6mfw0H5.mjs +0 -6
  15. package/components/apl-DDK-VObo.mjs +0 -18
  16. package/components/applescript-C43Knf0G.mjs +0 -6
  17. package/components/ara-DRBH84ND.mjs +0 -6
  18. package/components/arc-Js_tyW10.mjs +0 -131
  19. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
  20. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
  21. package/components/asm-3tg4MVib.mjs +0 -6
  22. package/components/astro-v4FYbRud.mjs +0 -19
  23. package/components/aurora-x-wJ4-eM2h.mjs +0 -3
  24. package/components/awk-ChreaG-G.mjs +0 -6
  25. package/components/ayu-dark-BEKp3oqs.mjs +0 -3
  26. package/components/ballerina-B0yt0TYU.mjs +0 -6
  27. package/components/batch-Ce_EX3Sx.mjs +0 -14
  28. package/components/beancount-BRIsdQEB.mjs +0 -6
  29. package/components/berry-Brv4WWdL.mjs +0 -14
  30. package/components/bibtex-BLeFwAes.mjs +0 -6
  31. package/components/bicep-BVrgfErX.mjs +0 -6
  32. package/components/blade-By3Sw_Ex.mjs +0 -22
  33. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
  34. package/components/c-C4VtT7JA.mjs +0 -6
  35. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
  36. package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
  37. package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
  38. package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
  39. package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
  40. package/components/cdc-30ktANo3.mjs +0 -14
  41. package/components/channel-BBZy6zOT.mjs +0 -7
  42. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
  43. package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
  44. package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
  45. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
  46. package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
  47. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
  48. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
  49. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
  50. package/components/clarity-6uBl6Vpb.mjs +0 -6
  51. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
  52. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
  53. package/components/clojure-COBRmwo8.mjs +0 -14
  54. package/components/clone-CEJtuQzg.mjs +0 -8
  55. package/components/cmake-CDfQILeU.mjs +0 -6
  56. package/components/cobol-BOOIiISO.mjs +0 -13
  57. package/components/coffee-DO_RGoZp.mjs +0 -9
  58. package/components/cpp-DAK8ktHO.mjs +0 -25
  59. package/components/crystal-CBGbbyVp.mjs +0 -19
  60. package/components/cs-h3ksD6-P.mjs +0 -14
  61. package/components/css-BtVcDqlU.mjs +0 -6
  62. package/components/cue-BFSVLV6N.mjs +0 -6
  63. package/components/cypher-Dl2CXoXF.mjs +0 -14
  64. package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
  65. package/components/d-9qSZPw74.mjs +0 -6
  66. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
  67. package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
  68. package/components/dart-CCSsOg9l.mjs +0 -6
  69. package/components/dax-CvsmLV-B.mjs +0 -6
  70. package/components/defaultLocale-DVr69WTU.mjs +0 -202
  71. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
  72. package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
  73. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
  74. package/components/diff-BEdzuHlE.mjs +0 -6
  75. package/components/dockerfile-B3DP334t.mjs +0 -14
  76. package/components/dracula-B8-AVrwI.mjs +0 -3
  77. package/components/dracula-soft-BHeefow7.mjs +0 -3
  78. package/components/dream-maker-CNLQpoF-.mjs +0 -6
  79. package/components/elixir-0rTCSSfp.mjs +0 -11
  80. package/components/elm-BhwiZPvf.mjs +0 -10
  81. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
  82. package/components/erb-Lra8TlYM.mjs +0 -27
  83. package/components/erlang-D2NNgvtR.mjs +0 -17
  84. package/components/everforest-dark-Cg1xdODP.mjs +0 -3
  85. package/components/everforest-light-BmTD3bxe.mjs +0 -3
  86. package/components/fish-BU5HSdZy.mjs +0 -6
  87. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
  88. package/components/fs-CdBSddpF.mjs +0 -17
  89. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
  90. package/components/gdresource-CAbkn6H_.mjs +0 -11
  91. package/components/gdscript-Be_cubqt.mjs +0 -6
  92. package/components/gdshader-BEzE4j_3.mjs +0 -6
  93. package/components/gherkin-xCNF9gh8.mjs +0 -6
  94. package/components/git-commit-PP9xCApN.mjs +0 -9
  95. package/components/git-rebase-DqdGofLo.mjs +0 -9
  96. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
  97. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
  98. package/components/github-dark-O22yVQaY.mjs +0 -3
  99. package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
  100. package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
  101. package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
  102. package/components/github-light-BTbR9xVK.mjs +0 -3
  103. package/components/github-light-default-DWEonwFe.mjs +0 -3
  104. package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
  105. package/components/glimmer-js-BkPYTyD4.mjs +0 -23
  106. package/components/glsl-CGsiYPcu.mjs +0 -9
  107. package/components/gnuplot-tV8vezdE.mjs +0 -6
  108. package/components/go-CBmVHZBz.mjs +0 -6
  109. package/components/graph-3zJxsO-i.mjs +0 -425
  110. package/components/graphql-D4pgneW3.mjs +0 -15
  111. package/components/groovy-Bn4MhXgW.mjs +0 -6
  112. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
  113. package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
  114. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
  115. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
  116. package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
  117. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
  118. package/components/gts-d3WsqAZM.mjs +0 -23
  119. package/components/hack-CwaBuF5l.mjs +0 -13
  120. package/components/haml-gLijj4rW.mjs +0 -11
  121. package/components/hbs-CFi5SpI3.mjs +0 -23
  122. package/components/hcl-axoq0Ycu.mjs +0 -6
  123. package/components/hjson-I7LcauIB.mjs +0 -6
  124. package/components/hlsl-TRzjajlb.mjs +0 -6
  125. package/components/houston-CF_ws8Cq.mjs +0 -3
  126. package/components/hs-DXSGqUFF.mjs +0 -14
  127. package/components/html-CLq-n30c.mjs +0 -11
  128. package/components/html-derivative-C8POX8SL.mjs +0 -9
  129. package/components/http-BYUKZ6kX.mjs +0 -20
  130. package/components/imba-C4923lSV.mjs +0 -6
  131. package/components/index4.mjs +0 -78
  132. package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
  133. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
  134. package/components/init-ZxktEp_H.mjs +0 -15
  135. package/components/java-BfXh-0uJ.mjs +0 -6
  136. package/components/jinja-html-BmW4v_vu.mjs +0 -11
  137. package/components/jison-C9kAT_Oj.mjs +0 -9
  138. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
  139. package/components/js-CN_xSsjU.mjs +0 -14
  140. package/components/json-TjWBGEk1.mjs +0 -6
  141. package/components/json5-DCGCKrmX.mjs +0 -6
  142. package/components/jsonc-DLVLp8id.mjs +0 -6
  143. package/components/jsonl-B-R_pDGg.mjs +0 -6
  144. package/components/jsonnet-Cs8BnnC6.mjs +0 -6
  145. package/components/jssm-D_YBQ_cM.mjs +0 -14
  146. package/components/jsx-BPmvoin2.mjs +0 -6
  147. package/components/julia-C-JjBobP.mjs +0 -19
  148. package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
  149. package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
  150. package/components/kanagawa-wave-DExoagcR.mjs +0 -3
  151. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
  152. package/components/kotlin-BM2ZNTMh.mjs +0 -6
  153. package/components/kusto-D9MF7CZf.mjs +0 -14
  154. package/components/laserwave-DF03wMlf.mjs +0 -3
  155. package/components/latex-BsqkLZB_.mjs +0 -10
  156. package/components/layout-sGZIJplX.mjs +0 -2043
  157. package/components/less-BAzLMJNR.mjs +0 -6
  158. package/components/light-plus-DS08Xg5J.mjs +0 -3
  159. package/components/linear-DqgVh5FN.mjs +0 -336
  160. package/components/liquid-f2VHt0dg.mjs +0 -15
  161. package/components/lisp-DAq1kaby.mjs +0 -6
  162. package/components/logo-D9l7oEJ8.mjs +0 -6
  163. package/components/lua-CH3ttzl_.mjs +0 -9
  164. package/components/makefile-D2qLe7q0.mjs +0 -14
  165. package/components/marko-DwRyI_--.mjs +0 -15
  166. package/components/material-theme-B8B2U48Q.mjs +0 -3
  167. package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
  168. package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
  169. package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
  170. package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
  171. package/components/matlab-7XHduepk.mjs +0 -6
  172. package/components/md-BIvDPr-W.mjs +0 -14
  173. package/components/mdc-Rx6hWSHn.mjs +0 -16
  174. package/components/mdx-D5wExp-O.mjs +0 -6
  175. package/components/mermaid-CUjtoYEe.mjs +0 -6
  176. package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
  177. package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
  178. package/components/min-BngCxx8g.mjs +0 -109
  179. package/components/min-dark-BNaN9fWk.mjs +0 -3
  180. package/components/min-light-CMrjentn.mjs +0 -3
  181. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
  182. package/components/mojo-CrbF881p.mjs +0 -6
  183. package/components/monokai-DelygWXa.mjs +0 -3
  184. package/components/narrat-DOwkIbBe.mjs +0 -14
  185. package/components/nf-DHfvJ2gH.mjs +0 -14
  186. package/components/nginx-B_jWsywZ.mjs +0 -10
  187. package/components/night-owl-DSS199ra.mjs +0 -3
  188. package/components/nim-yzbnZKJd.mjs +0 -22
  189. package/components/nix--3K2gyjg.mjs +0 -6
  190. package/components/nord-CvDbBq5M.mjs +0 -3
  191. package/components/objective-c-DkOBZg1J.mjs +0 -14
  192. package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
  193. package/components/ocaml-B1kfGk9Y.mjs +0 -6
  194. package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
  195. package/components/one-light-BwwAsfsj.mjs +0 -3
  196. package/components/ordinal-DSZU4PqD.mjs +0 -76
  197. package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
  198. package/components/pascal-CU8Kjkr_.mjs +0 -6
  199. package/components/perl-FH6su6vZ.mjs +0 -18
  200. package/components/php-Dnl1TfYH.mjs +0 -20
  201. package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
  202. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
  203. package/components/plastic-BjwMpBc0.mjs +0 -3
  204. package/components/plsql-B3Na24V4.mjs +0 -6
  205. package/components/poimandres-ChWyhPrn.mjs +0 -3
  206. package/components/postcss-kj1IbjVd.mjs +0 -6
  207. package/components/powerquery-B-e1fO-k.mjs +0 -6
  208. package/components/prisma-bmxcSDxq.mjs +0 -6
  209. package/components/prolog-BT9GCzqD.mjs +0 -6
  210. package/components/properties-D6yKO1eW.mjs +0 -14
  211. package/components/proto-BIXM0k1a.mjs +0 -6
  212. package/components/ps1-aFyNx8UH.mjs +0 -18
  213. package/components/pug-BrOx0bSt.mjs +0 -21
  214. package/components/puppet-N15G4Usj.mjs +0 -6
  215. package/components/purescript-DrwsEYNH.mjs +0 -6
  216. package/components/python-D2s92fRP.mjs +0 -14
  217. package/components/ql-DTm-NCRo.mjs +0 -14
  218. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
  219. package/components/r-oprfD2-9.mjs +0 -6
  220. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
  221. package/components/raku-xArQd_rF.mjs +0 -14
  222. package/components/razor-BoXCAbWQ.mjs +0 -13
  223. package/components/red-DByOl5N0.mjs +0 -3
  224. package/components/reg-CULnG2WX.mjs +0 -6
  225. package/components/rel-CHRwzjd4.mjs +0 -6
  226. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
  227. package/components/riscv-BNQ9cVpw.mjs +0 -6
  228. package/components/rose-pine-LL9gXmP2.mjs +0 -3
  229. package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
  230. package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
  231. package/components/rst-bEtD1v7N.mjs +0 -36
  232. package/components/ruby-BmfBy6EV.mjs +0 -44
  233. package/components/rust-Bf_fdNdL.mjs +0 -14
  234. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
  235. package/components/sas-BLBgC3TA.mjs +0 -9
  236. package/components/sass-BheygBdF.mjs +0 -6
  237. package/components/scala-B-_7vFVn.mjs +0 -6
  238. package/components/scheme-BSHdPinv.mjs +0 -6
  239. package/components/scss-Dq-LbI_c.mjs +0 -9
  240. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
  241. package/components/shaderlab-BOQRTiQi.mjs +0 -17
  242. package/components/shellsession-Cu3c0QAc.mjs +0 -17
  243. package/components/slack-dark-BEe10hxO.mjs +0 -3
  244. package/components/slack-ochin-BKmu9pBc.mjs +0 -3
  245. package/components/smalltalk-qxcGy4fT.mjs +0 -6
  246. package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
  247. package/components/solarized-dark-BBl5y5sR.mjs +0 -3
  248. package/components/solarized-light-DW9b_AY8.mjs +0 -3
  249. package/components/solidity-CewKZgp-.mjs +0 -6
  250. package/components/sparql-DswowMAp.mjs +0 -9
  251. package/components/splunk-gK6Iw_P9.mjs +0 -14
  252. package/components/sql-DzUuSofg.mjs +0 -6
  253. package/components/ssh-config-Bk_I5wDR.mjs +0 -6
  254. package/components/stata-Dl7wDdBE.mjs +0 -9
  255. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
  256. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
  257. package/components/stylus-qRNkxrFU.mjs +0 -14
  258. package/components/svelte-B9qv3vkS.mjs +0 -15
  259. package/components/swift-BRQRsam8.mjs +0 -6
  260. package/components/synthwave-84-CoUef9sh.mjs +0 -3
  261. package/components/system-verilog-BcESSvRn.mjs +0 -6
  262. package/components/tasl-DfOr2qHi.mjs +0 -6
  263. package/components/tcl-CTsc4-t7.mjs +0 -6
  264. package/components/tex-CumJx1zu.mjs +0 -9
  265. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
  266. package/components/tokyo-night-DjtLpAEY.mjs +0 -3
  267. package/components/toml-vHPzWDj6.mjs +0 -6
  268. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
  269. package/components/tsx-CmGGo4Hm.mjs +0 -6
  270. package/components/turtle-BnC7StHY.mjs +0 -6
  271. package/components/twig-0XKNpXN1.mjs +0 -35
  272. package/components/typescript-CgxwwAuC.mjs +0 -14
  273. package/components/v-Bmdjo9cy.mjs +0 -6
  274. package/components/vb-DuF6ZenW.mjs +0 -14
  275. package/components/verilog-CCb_iTfF.mjs +0 -6
  276. package/components/vesper-4Q1cEwPL.mjs +0 -3
  277. package/components/vhdl-DMqk4T2s.mjs +0 -6
  278. package/components/vimscript-aKp9YbYm.mjs +0 -18
  279. package/components/vitesse-black-BqNLki8b.mjs +0 -3
  280. package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
  281. package/components/vitesse-light-476zM4e6.mjs +0 -3
  282. package/components/vue-DVNNTw2l.mjs +0 -40
  283. package/components/vue-html-Cr5wciIP.mjs +0 -16
  284. package/components/vyper-DYedWgAE.mjs +0 -14
  285. package/components/wasm-BBh6f151.mjs +0 -6
  286. package/components/wasm-DDgzZJey.mjs +0 -7
  287. package/components/wenyan-BdqozpMZ.mjs +0 -6
  288. package/components/wgsl-Vo-hHVWH.mjs +0 -6
  289. package/components/wolfram-CRmjUoI4.mjs +0 -6
  290. package/components/xml-BMzZeaqs.mjs +0 -9
  291. package/components/xsl-CAhvzxWv.mjs +0 -10
  292. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
  293. package/components/yml-BhSrWWMS.mjs +0 -14
  294. package/components/zenscript-DFINJL6j.mjs +0 -6
  295. package/components/zig-CS4FMAZp.mjs +0 -6
  296. package/components/zsh-hcK4TBd7.mjs +0 -26
@@ -1,1264 +0,0 @@
1
- import { d as drawRect, f as drawText, g as getNoteRect, b as drawBackgroundRect } from './chunk-67H74DCK-Br5U8bfD.mjs';
2
- import { g as getIconStyles } from './chunk-E2GYISFI-DQPHyyga.mjs';
3
- import { _ as __name, c as getConfig2, q as setDiagramTitle, t as getDiagramTitle, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, z as clear$2, d as select, e as configureSvgSize } from './mermaid.core-CAqkCmS1.mjs';
4
- import { d as d3arc } from './arc-Js_tyW10.mjs';
5
- import './index3.mjs';
6
- import 'vue';
7
- import '@vunk/plus/components/bubble-templates';
8
- import 'element-plus';
9
- import './index4.mjs';
10
- import '@vueuse/core';
11
- import '@vunk/plus/components/scrollbar';
12
- import './_plugin-vue_export-helper.mjs';
13
- import '@vunk/shared/function';
14
- import '@vunk/plus/components/agent-chat-provider';
15
-
16
- var parser = function() {
17
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
18
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
19
- return o2;
20
- }, "o"), $V0 = [6, 8, 10, 11, 12, 14, 16, 17, 18], $V1 = [1, 9], $V2 = [1, 10], $V3 = [1, 11], $V4 = [1, 12], $V5 = [1, 13], $V6 = [1, 14];
21
- var parser2 = {
22
- trace: /* @__PURE__ */ __name(function trace() {
23
- }, "trace"),
24
- yy: {},
25
- symbols_: { "error": 2, "start": 3, "journey": 4, "document": 5, "EOF": 6, "line": 7, "SPACE": 8, "statement": 9, "NEWLINE": 10, "title": 11, "acc_title": 12, "acc_title_value": 13, "acc_descr": 14, "acc_descr_value": 15, "acc_descr_multiline_value": 16, "section": 17, "taskName": 18, "taskData": 19, "$accept": 0, "$end": 1 },
26
- terminals_: { 2: "error", 4: "journey", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 18: "taskName", 19: "taskData" },
27
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2]],
28
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
29
- var $0 = $$.length - 1;
30
- switch (yystate) {
31
- case 1:
32
- return $$[$0 - 1];
33
- case 2:
34
- this.$ = [];
35
- break;
36
- case 3:
37
- $$[$0 - 1].push($$[$0]);
38
- this.$ = $$[$0 - 1];
39
- break;
40
- case 4:
41
- case 5:
42
- this.$ = $$[$0];
43
- break;
44
- case 6:
45
- case 7:
46
- this.$ = [];
47
- break;
48
- case 8:
49
- yy.setDiagramTitle($$[$0].substr(6));
50
- this.$ = $$[$0].substr(6);
51
- break;
52
- case 9:
53
- this.$ = $$[$0].trim();
54
- yy.setAccTitle(this.$);
55
- break;
56
- case 10:
57
- case 11:
58
- this.$ = $$[$0].trim();
59
- yy.setAccDescription(this.$);
60
- break;
61
- case 12:
62
- yy.addSection($$[$0].substr(8));
63
- this.$ = $$[$0].substr(8);
64
- break;
65
- case 13:
66
- yy.addTask($$[$0 - 1], $$[$0]);
67
- this.$ = "task";
68
- break;
69
- }
70
- }, "anonymous"),
71
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: $V6 }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 15, 11: $V1, 12: $V2, 14: $V3, 16: $V4, 17: $V5, 18: $V6 }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, o($V0, [2, 11]), o($V0, [2, 12]), { 19: [1, 18] }, o($V0, [2, 4]), o($V0, [2, 9]), o($V0, [2, 10]), o($V0, [2, 13])],
72
- defaultActions: {},
73
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
74
- if (hash.recoverable) {
75
- this.trace(str);
76
- } else {
77
- var error = new Error(str);
78
- error.hash = hash;
79
- throw error;
80
- }
81
- }, "parseError"),
82
- parse: /* @__PURE__ */ __name(function parse(input) {
83
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
84
- var args = lstack.slice.call(arguments, 1);
85
- var lexer2 = Object.create(this.lexer);
86
- var sharedState = { yy: {} };
87
- for (var k in this.yy) {
88
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
89
- sharedState.yy[k] = this.yy[k];
90
- }
91
- }
92
- lexer2.setInput(input, sharedState.yy);
93
- sharedState.yy.lexer = lexer2;
94
- sharedState.yy.parser = this;
95
- if (typeof lexer2.yylloc == "undefined") {
96
- lexer2.yylloc = {};
97
- }
98
- var yyloc = lexer2.yylloc;
99
- lstack.push(yyloc);
100
- var ranges = lexer2.options && lexer2.options.ranges;
101
- if (typeof sharedState.yy.parseError === "function") {
102
- this.parseError = sharedState.yy.parseError;
103
- } else {
104
- this.parseError = Object.getPrototypeOf(this).parseError;
105
- }
106
- function popStack(n) {
107
- stack.length = stack.length - 2 * n;
108
- vstack.length = vstack.length - n;
109
- lstack.length = lstack.length - n;
110
- }
111
- __name(popStack, "popStack");
112
- function lex() {
113
- var token;
114
- token = tstack.pop() || lexer2.lex() || EOF;
115
- if (typeof token !== "number") {
116
- if (token instanceof Array) {
117
- tstack = token;
118
- token = tstack.pop();
119
- }
120
- token = self.symbols_[token] || token;
121
- }
122
- return token;
123
- }
124
- __name(lex, "lex");
125
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
126
- while (true) {
127
- state = stack[stack.length - 1];
128
- if (this.defaultActions[state]) {
129
- action = this.defaultActions[state];
130
- } else {
131
- if (symbol === null || typeof symbol == "undefined") {
132
- symbol = lex();
133
- }
134
- action = table[state] && table[state][symbol];
135
- }
136
- if (typeof action === "undefined" || !action.length || !action[0]) {
137
- var errStr = "";
138
- expected = [];
139
- for (p in table[state]) {
140
- if (this.terminals_[p] && p > TERROR) {
141
- expected.push("'" + this.terminals_[p] + "'");
142
- }
143
- }
144
- if (lexer2.showPosition) {
145
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
146
- } else {
147
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
148
- }
149
- this.parseError(errStr, {
150
- text: lexer2.match,
151
- token: this.terminals_[symbol] || symbol,
152
- line: lexer2.yylineno,
153
- loc: yyloc,
154
- expected
155
- });
156
- }
157
- if (action[0] instanceof Array && action.length > 1) {
158
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
159
- }
160
- switch (action[0]) {
161
- case 1:
162
- stack.push(symbol);
163
- vstack.push(lexer2.yytext);
164
- lstack.push(lexer2.yylloc);
165
- stack.push(action[1]);
166
- symbol = null;
167
- {
168
- yyleng = lexer2.yyleng;
169
- yytext = lexer2.yytext;
170
- yylineno = lexer2.yylineno;
171
- yyloc = lexer2.yylloc;
172
- }
173
- break;
174
- case 2:
175
- len = this.productions_[action[1]][1];
176
- yyval.$ = vstack[vstack.length - len];
177
- yyval._$ = {
178
- first_line: lstack[lstack.length - (len || 1)].first_line,
179
- last_line: lstack[lstack.length - 1].last_line,
180
- first_column: lstack[lstack.length - (len || 1)].first_column,
181
- last_column: lstack[lstack.length - 1].last_column
182
- };
183
- if (ranges) {
184
- yyval._$.range = [
185
- lstack[lstack.length - (len || 1)].range[0],
186
- lstack[lstack.length - 1].range[1]
187
- ];
188
- }
189
- r = this.performAction.apply(yyval, [
190
- yytext,
191
- yyleng,
192
- yylineno,
193
- sharedState.yy,
194
- action[1],
195
- vstack,
196
- lstack
197
- ].concat(args));
198
- if (typeof r !== "undefined") {
199
- return r;
200
- }
201
- if (len) {
202
- stack = stack.slice(0, -1 * len * 2);
203
- vstack = vstack.slice(0, -1 * len);
204
- lstack = lstack.slice(0, -1 * len);
205
- }
206
- stack.push(this.productions_[action[1]][0]);
207
- vstack.push(yyval.$);
208
- lstack.push(yyval._$);
209
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
210
- stack.push(newState);
211
- break;
212
- case 3:
213
- return true;
214
- }
215
- }
216
- return true;
217
- }, "parse")
218
- };
219
- var lexer = /* @__PURE__ */ function() {
220
- var lexer2 = {
221
- EOF: 1,
222
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
223
- if (this.yy.parser) {
224
- this.yy.parser.parseError(str, hash);
225
- } else {
226
- throw new Error(str);
227
- }
228
- }, "parseError"),
229
- // resets the lexer, sets new input
230
- setInput: /* @__PURE__ */ __name(function(input, yy) {
231
- this.yy = yy || this.yy || {};
232
- this._input = input;
233
- this._more = this._backtrack = this.done = false;
234
- this.yylineno = this.yyleng = 0;
235
- this.yytext = this.matched = this.match = "";
236
- this.conditionStack = ["INITIAL"];
237
- this.yylloc = {
238
- first_line: 1,
239
- first_column: 0,
240
- last_line: 1,
241
- last_column: 0
242
- };
243
- if (this.options.ranges) {
244
- this.yylloc.range = [0, 0];
245
- }
246
- this.offset = 0;
247
- return this;
248
- }, "setInput"),
249
- // consumes and returns one char from the input
250
- input: /* @__PURE__ */ __name(function() {
251
- var ch = this._input[0];
252
- this.yytext += ch;
253
- this.yyleng++;
254
- this.offset++;
255
- this.match += ch;
256
- this.matched += ch;
257
- var lines = ch.match(/(?:\r\n?|\n).*/g);
258
- if (lines) {
259
- this.yylineno++;
260
- this.yylloc.last_line++;
261
- } else {
262
- this.yylloc.last_column++;
263
- }
264
- if (this.options.ranges) {
265
- this.yylloc.range[1]++;
266
- }
267
- this._input = this._input.slice(1);
268
- return ch;
269
- }, "input"),
270
- // unshifts one char (or a string) into the input
271
- unput: /* @__PURE__ */ __name(function(ch) {
272
- var len = ch.length;
273
- var lines = ch.split(/(?:\r\n?|\n)/g);
274
- this._input = ch + this._input;
275
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
276
- this.offset -= len;
277
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
278
- this.match = this.match.substr(0, this.match.length - 1);
279
- this.matched = this.matched.substr(0, this.matched.length - 1);
280
- if (lines.length - 1) {
281
- this.yylineno -= lines.length - 1;
282
- }
283
- var r = this.yylloc.range;
284
- this.yylloc = {
285
- first_line: this.yylloc.first_line,
286
- last_line: this.yylineno + 1,
287
- first_column: this.yylloc.first_column,
288
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
289
- };
290
- if (this.options.ranges) {
291
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
292
- }
293
- this.yyleng = this.yytext.length;
294
- return this;
295
- }, "unput"),
296
- // When called from action, caches matched text and appends it on next action
297
- more: /* @__PURE__ */ __name(function() {
298
- this._more = true;
299
- return this;
300
- }, "more"),
301
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
302
- reject: /* @__PURE__ */ __name(function() {
303
- if (this.options.backtrack_lexer) {
304
- this._backtrack = true;
305
- } else {
306
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
307
- text: "",
308
- token: null,
309
- line: this.yylineno
310
- });
311
- }
312
- return this;
313
- }, "reject"),
314
- // retain first n characters of the match
315
- less: /* @__PURE__ */ __name(function(n) {
316
- this.unput(this.match.slice(n));
317
- }, "less"),
318
- // displays already matched input, i.e. for error messages
319
- pastInput: /* @__PURE__ */ __name(function() {
320
- var past = this.matched.substr(0, this.matched.length - this.match.length);
321
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
322
- }, "pastInput"),
323
- // displays upcoming input, i.e. for error messages
324
- upcomingInput: /* @__PURE__ */ __name(function() {
325
- var next = this.match;
326
- if (next.length < 20) {
327
- next += this._input.substr(0, 20 - next.length);
328
- }
329
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
330
- }, "upcomingInput"),
331
- // displays the character position where the lexing error occurred, i.e. for error messages
332
- showPosition: /* @__PURE__ */ __name(function() {
333
- var pre = this.pastInput();
334
- var c = new Array(pre.length + 1).join("-");
335
- return pre + this.upcomingInput() + "\n" + c + "^";
336
- }, "showPosition"),
337
- // test the lexed token: return FALSE when not a match, otherwise return token
338
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
339
- var token, lines, backup;
340
- if (this.options.backtrack_lexer) {
341
- backup = {
342
- yylineno: this.yylineno,
343
- yylloc: {
344
- first_line: this.yylloc.first_line,
345
- last_line: this.last_line,
346
- first_column: this.yylloc.first_column,
347
- last_column: this.yylloc.last_column
348
- },
349
- yytext: this.yytext,
350
- match: this.match,
351
- matches: this.matches,
352
- matched: this.matched,
353
- yyleng: this.yyleng,
354
- offset: this.offset,
355
- _more: this._more,
356
- _input: this._input,
357
- yy: this.yy,
358
- conditionStack: this.conditionStack.slice(0),
359
- done: this.done
360
- };
361
- if (this.options.ranges) {
362
- backup.yylloc.range = this.yylloc.range.slice(0);
363
- }
364
- }
365
- lines = match[0].match(/(?:\r\n?|\n).*/g);
366
- if (lines) {
367
- this.yylineno += lines.length;
368
- }
369
- this.yylloc = {
370
- first_line: this.yylloc.last_line,
371
- last_line: this.yylineno + 1,
372
- first_column: this.yylloc.last_column,
373
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
374
- };
375
- this.yytext += match[0];
376
- this.match += match[0];
377
- this.matches = match;
378
- this.yyleng = this.yytext.length;
379
- if (this.options.ranges) {
380
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
381
- }
382
- this._more = false;
383
- this._backtrack = false;
384
- this._input = this._input.slice(match[0].length);
385
- this.matched += match[0];
386
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
387
- if (this.done && this._input) {
388
- this.done = false;
389
- }
390
- if (token) {
391
- return token;
392
- } else if (this._backtrack) {
393
- for (var k in backup) {
394
- this[k] = backup[k];
395
- }
396
- return false;
397
- }
398
- return false;
399
- }, "test_match"),
400
- // return next match in input
401
- next: /* @__PURE__ */ __name(function() {
402
- if (this.done) {
403
- return this.EOF;
404
- }
405
- if (!this._input) {
406
- this.done = true;
407
- }
408
- var token, match, tempMatch, index;
409
- if (!this._more) {
410
- this.yytext = "";
411
- this.match = "";
412
- }
413
- var rules = this._currentRules();
414
- for (var i = 0; i < rules.length; i++) {
415
- tempMatch = this._input.match(this.rules[rules[i]]);
416
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
417
- match = tempMatch;
418
- index = i;
419
- if (this.options.backtrack_lexer) {
420
- token = this.test_match(tempMatch, rules[i]);
421
- if (token !== false) {
422
- return token;
423
- } else if (this._backtrack) {
424
- match = false;
425
- continue;
426
- } else {
427
- return false;
428
- }
429
- } else if (!this.options.flex) {
430
- break;
431
- }
432
- }
433
- }
434
- if (match) {
435
- token = this.test_match(match, rules[index]);
436
- if (token !== false) {
437
- return token;
438
- }
439
- return false;
440
- }
441
- if (this._input === "") {
442
- return this.EOF;
443
- } else {
444
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
445
- text: "",
446
- token: null,
447
- line: this.yylineno
448
- });
449
- }
450
- }, "next"),
451
- // return next match that has a token
452
- lex: /* @__PURE__ */ __name(function lex() {
453
- var r = this.next();
454
- if (r) {
455
- return r;
456
- } else {
457
- return this.lex();
458
- }
459
- }, "lex"),
460
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
461
- begin: /* @__PURE__ */ __name(function begin(condition) {
462
- this.conditionStack.push(condition);
463
- }, "begin"),
464
- // pop the previously active lexer condition state off the condition stack
465
- popState: /* @__PURE__ */ __name(function popState() {
466
- var n = this.conditionStack.length - 1;
467
- if (n > 0) {
468
- return this.conditionStack.pop();
469
- } else {
470
- return this.conditionStack[0];
471
- }
472
- }, "popState"),
473
- // produce the lexer rule set which is active for the currently active lexer condition state
474
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
475
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
476
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
477
- } else {
478
- return this.conditions["INITIAL"].rules;
479
- }
480
- }, "_currentRules"),
481
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
482
- topState: /* @__PURE__ */ __name(function topState(n) {
483
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
484
- if (n >= 0) {
485
- return this.conditionStack[n];
486
- } else {
487
- return "INITIAL";
488
- }
489
- }, "topState"),
490
- // alias for begin(condition)
491
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
492
- this.begin(condition);
493
- }, "pushState"),
494
- // return the number of states currently on the stack
495
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
496
- return this.conditionStack.length;
497
- }, "stateStackSize"),
498
- options: { "case-insensitive": true },
499
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
500
- switch ($avoiding_name_collisions) {
501
- case 0:
502
- break;
503
- case 1:
504
- break;
505
- case 2:
506
- return 10;
507
- case 3:
508
- break;
509
- case 4:
510
- break;
511
- case 5:
512
- return 4;
513
- case 6:
514
- return 11;
515
- case 7:
516
- this.begin("acc_title");
517
- return 12;
518
- case 8:
519
- this.popState();
520
- return "acc_title_value";
521
- case 9:
522
- this.begin("acc_descr");
523
- return 14;
524
- case 10:
525
- this.popState();
526
- return "acc_descr_value";
527
- case 11:
528
- this.begin("acc_descr_multiline");
529
- break;
530
- case 12:
531
- this.popState();
532
- break;
533
- case 13:
534
- return "acc_descr_multiline_value";
535
- case 14:
536
- return 17;
537
- case 15:
538
- return 18;
539
- case 16:
540
- return 19;
541
- case 17:
542
- return ":";
543
- case 18:
544
- return 6;
545
- case 19:
546
- return "INVALID";
547
- }
548
- }, "anonymous"),
549
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:journey\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
550
- conditions: { "acc_descr_multiline": { "rules": [12, 13], "inclusive": false }, "acc_descr": { "rules": [10], "inclusive": false }, "acc_title": { "rules": [8], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], "inclusive": true } }
551
- };
552
- return lexer2;
553
- }();
554
- parser2.lexer = lexer;
555
- function Parser() {
556
- this.yy = {};
557
- }
558
- __name(Parser, "Parser");
559
- Parser.prototype = parser2;
560
- parser2.Parser = Parser;
561
- return new Parser();
562
- }();
563
- parser.parser = parser;
564
- var journey_default = parser;
565
- var currentSection = "";
566
- var sections = [];
567
- var tasks = [];
568
- var rawTasks = [];
569
- var clear2 = /* @__PURE__ */ __name(function() {
570
- sections.length = 0;
571
- tasks.length = 0;
572
- currentSection = "";
573
- rawTasks.length = 0;
574
- clear$2();
575
- }, "clear");
576
- var addSection = /* @__PURE__ */ __name(function(txt) {
577
- currentSection = txt;
578
- sections.push(txt);
579
- }, "addSection");
580
- var getSections = /* @__PURE__ */ __name(function() {
581
- return sections;
582
- }, "getSections");
583
- var getTasks = /* @__PURE__ */ __name(function() {
584
- let allItemsProcessed = compileTasks();
585
- const maxDepth = 100;
586
- let iterationCount = 0;
587
- while (!allItemsProcessed && iterationCount < maxDepth) {
588
- allItemsProcessed = compileTasks();
589
- iterationCount++;
590
- }
591
- tasks.push(...rawTasks);
592
- return tasks;
593
- }, "getTasks");
594
- var updateActors = /* @__PURE__ */ __name(function() {
595
- const tempActors = [];
596
- tasks.forEach((task) => {
597
- if (task.people) {
598
- tempActors.push(...task.people);
599
- }
600
- });
601
- const unique = new Set(tempActors);
602
- return [...unique].sort();
603
- }, "updateActors");
604
- var addTask = /* @__PURE__ */ __name(function(descr, taskData) {
605
- const pieces = taskData.substr(1).split(":");
606
- let score = 0;
607
- let peeps = [];
608
- if (pieces.length === 1) {
609
- score = Number(pieces[0]);
610
- peeps = [];
611
- } else {
612
- score = Number(pieces[0]);
613
- peeps = pieces[1].split(",");
614
- }
615
- const peopleList = peeps.map((s) => s.trim());
616
- const rawTask = {
617
- section: currentSection,
618
- type: currentSection,
619
- people: peopleList,
620
- task: descr,
621
- score
622
- };
623
- rawTasks.push(rawTask);
624
- }, "addTask");
625
- var addTaskOrg = /* @__PURE__ */ __name(function(descr) {
626
- const newTask = {
627
- section: currentSection,
628
- type: currentSection,
629
- description: descr,
630
- task: descr,
631
- classes: []
632
- };
633
- tasks.push(newTask);
634
- }, "addTaskOrg");
635
- var compileTasks = /* @__PURE__ */ __name(function() {
636
- const compileTask = /* @__PURE__ */ __name(function(pos) {
637
- return rawTasks[pos].processed;
638
- }, "compileTask");
639
- let allProcessed = true;
640
- for (const [i, rawTask] of rawTasks.entries()) {
641
- compileTask(i);
642
- allProcessed = allProcessed && rawTask.processed;
643
- }
644
- return allProcessed;
645
- }, "compileTasks");
646
- var getActors = /* @__PURE__ */ __name(function() {
647
- return updateActors();
648
- }, "getActors");
649
- var journeyDb_default = {
650
- getConfig: /* @__PURE__ */ __name(() => getConfig2().journey, "getConfig"),
651
- clear: clear2,
652
- setDiagramTitle,
653
- getDiagramTitle,
654
- setAccTitle,
655
- getAccTitle,
656
- setAccDescription,
657
- getAccDescription,
658
- addSection,
659
- getSections,
660
- getTasks,
661
- addTask,
662
- addTaskOrg,
663
- getActors
664
- };
665
- var getStyles = /* @__PURE__ */ __name((options) => `.label {
666
- font-family: ${options.fontFamily};
667
- color: ${options.textColor};
668
- }
669
- .mouth {
670
- stroke: #666;
671
- }
672
-
673
- line {
674
- stroke: ${options.textColor}
675
- }
676
-
677
- .legend {
678
- fill: ${options.textColor};
679
- font-family: ${options.fontFamily};
680
- }
681
-
682
- .label text {
683
- fill: #333;
684
- }
685
- .label {
686
- color: ${options.textColor}
687
- }
688
-
689
- .face {
690
- ${options.faceColor ? `fill: ${options.faceColor}` : "fill: #FFF8DC"};
691
- stroke: #999;
692
- }
693
-
694
- .node rect,
695
- .node circle,
696
- .node ellipse,
697
- .node polygon,
698
- .node path {
699
- fill: ${options.mainBkg};
700
- stroke: ${options.nodeBorder};
701
- stroke-width: 1px;
702
- }
703
-
704
- .node .label {
705
- text-align: center;
706
- }
707
- .node.clickable {
708
- cursor: pointer;
709
- }
710
-
711
- .arrowheadPath {
712
- fill: ${options.arrowheadColor};
713
- }
714
-
715
- .edgePath .path {
716
- stroke: ${options.lineColor};
717
- stroke-width: 1.5px;
718
- }
719
-
720
- .flowchart-link {
721
- stroke: ${options.lineColor};
722
- fill: none;
723
- }
724
-
725
- .edgeLabel {
726
- background-color: ${options.edgeLabelBackground};
727
- rect {
728
- opacity: 0.5;
729
- }
730
- text-align: center;
731
- }
732
-
733
- .cluster rect {
734
- }
735
-
736
- .cluster text {
737
- fill: ${options.titleColor};
738
- }
739
-
740
- div.mermaidTooltip {
741
- position: absolute;
742
- text-align: center;
743
- max-width: 200px;
744
- padding: 2px;
745
- font-family: ${options.fontFamily};
746
- font-size: 12px;
747
- background: ${options.tertiaryColor};
748
- border: 1px solid ${options.border2};
749
- border-radius: 2px;
750
- pointer-events: none;
751
- z-index: 100;
752
- }
753
-
754
- .task-type-0, .section-type-0 {
755
- ${options.fillType0 ? `fill: ${options.fillType0}` : ""};
756
- }
757
- .task-type-1, .section-type-1 {
758
- ${options.fillType0 ? `fill: ${options.fillType1}` : ""};
759
- }
760
- .task-type-2, .section-type-2 {
761
- ${options.fillType0 ? `fill: ${options.fillType2}` : ""};
762
- }
763
- .task-type-3, .section-type-3 {
764
- ${options.fillType0 ? `fill: ${options.fillType3}` : ""};
765
- }
766
- .task-type-4, .section-type-4 {
767
- ${options.fillType0 ? `fill: ${options.fillType4}` : ""};
768
- }
769
- .task-type-5, .section-type-5 {
770
- ${options.fillType0 ? `fill: ${options.fillType5}` : ""};
771
- }
772
- .task-type-6, .section-type-6 {
773
- ${options.fillType0 ? `fill: ${options.fillType6}` : ""};
774
- }
775
- .task-type-7, .section-type-7 {
776
- ${options.fillType0 ? `fill: ${options.fillType7}` : ""};
777
- }
778
-
779
- .actor-0 {
780
- ${options.actor0 ? `fill: ${options.actor0}` : ""};
781
- }
782
- .actor-1 {
783
- ${options.actor1 ? `fill: ${options.actor1}` : ""};
784
- }
785
- .actor-2 {
786
- ${options.actor2 ? `fill: ${options.actor2}` : ""};
787
- }
788
- .actor-3 {
789
- ${options.actor3 ? `fill: ${options.actor3}` : ""};
790
- }
791
- .actor-4 {
792
- ${options.actor4 ? `fill: ${options.actor4}` : ""};
793
- }
794
- .actor-5 {
795
- ${options.actor5 ? `fill: ${options.actor5}` : ""};
796
- }
797
- ${getIconStyles()}
798
- `, "getStyles");
799
- var styles_default = getStyles;
800
- var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
801
- return drawRect(elem, rectData);
802
- }, "drawRect");
803
- var drawFace = /* @__PURE__ */ __name(function(element, faceData) {
804
- const radius = 15;
805
- const circleElement = element.append("circle").attr("cx", faceData.cx).attr("cy", faceData.cy).attr("class", "face").attr("r", radius).attr("stroke-width", 2).attr("overflow", "visible");
806
- const face = element.append("g");
807
- face.append("circle").attr("cx", faceData.cx - radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
808
- face.append("circle").attr("cx", faceData.cx + radius / 3).attr("cy", faceData.cy - radius / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
809
- function smile(face2) {
810
- const arc = d3arc().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
811
- face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 2) + ")");
812
- }
813
- __name(smile, "smile");
814
- function sad(face2) {
815
- const arc = d3arc().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(radius / 2).outerRadius(radius / 2.2);
816
- face2.append("path").attr("class", "mouth").attr("d", arc).attr("transform", "translate(" + faceData.cx + "," + (faceData.cy + 7) + ")");
817
- }
818
- __name(sad, "sad");
819
- function ambivalent(face2) {
820
- face2.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", faceData.cx - 5).attr("y1", faceData.cy + 7).attr("x2", faceData.cx + 5).attr("y2", faceData.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
821
- }
822
- __name(ambivalent, "ambivalent");
823
- if (faceData.score > 3) {
824
- smile(face);
825
- } else if (faceData.score < 3) {
826
- sad(face);
827
- } else {
828
- ambivalent(face);
829
- }
830
- return circleElement;
831
- }, "drawFace");
832
- var drawCircle = /* @__PURE__ */ __name(function(element, circleData) {
833
- const circleElement = element.append("circle");
834
- circleElement.attr("cx", circleData.cx);
835
- circleElement.attr("cy", circleData.cy);
836
- circleElement.attr("class", "actor-" + circleData.pos);
837
- circleElement.attr("fill", circleData.fill);
838
- circleElement.attr("stroke", circleData.stroke);
839
- circleElement.attr("r", circleData.r);
840
- if (circleElement.class !== void 0) {
841
- circleElement.attr("class", circleElement.class);
842
- }
843
- if (circleData.title !== void 0) {
844
- circleElement.append("title").text(circleData.title);
845
- }
846
- return circleElement;
847
- }, "drawCircle");
848
- var drawText2 = /* @__PURE__ */ __name(function(elem, textData) {
849
- return drawText(elem, textData);
850
- }, "drawText");
851
- var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
852
- function genPoints(x, y, width, height, cut) {
853
- return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
854
- }
855
- __name(genPoints, "genPoints");
856
- const polygon = elem.append("polygon");
857
- polygon.attr("points", genPoints(txtObject.x, txtObject.y, 50, 20, 7));
858
- polygon.attr("class", "labelBox");
859
- txtObject.y = txtObject.y + txtObject.labelMargin;
860
- txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
861
- drawText2(elem, txtObject);
862
- }, "drawLabel");
863
- var drawSection = /* @__PURE__ */ __name(function(elem, section, conf2) {
864
- const g = elem.append("g");
865
- const rect = getNoteRect();
866
- rect.x = section.x;
867
- rect.y = section.y;
868
- rect.fill = section.fill;
869
- rect.width = conf2.width * section.taskCount + // width of the tasks
870
- conf2.diagramMarginX * (section.taskCount - 1);
871
- rect.height = conf2.height;
872
- rect.class = "journey-section section-type-" + section.num;
873
- rect.rx = 3;
874
- rect.ry = 3;
875
- drawRect2(g, rect);
876
- _drawTextCandidateFunc(conf2)(
877
- section.text,
878
- g,
879
- rect.x,
880
- rect.y,
881
- rect.width,
882
- rect.height,
883
- { class: "journey-section section-type-" + section.num },
884
- conf2,
885
- section.colour
886
- );
887
- }, "drawSection");
888
- var taskCount = -1;
889
- var drawTask = /* @__PURE__ */ __name(function(elem, task, conf2) {
890
- const center = task.x + conf2.width / 2;
891
- const g = elem.append("g");
892
- taskCount++;
893
- const maxHeight = 300 + 5 * 30;
894
- g.append("line").attr("id", "task" + taskCount).attr("x1", center).attr("y1", task.y).attr("x2", center).attr("y2", maxHeight).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666");
895
- drawFace(g, {
896
- cx: center,
897
- cy: 300 + (5 - task.score) * 30,
898
- score: task.score
899
- });
900
- const rect = getNoteRect();
901
- rect.x = task.x;
902
- rect.y = task.y;
903
- rect.fill = task.fill;
904
- rect.width = conf2.width;
905
- rect.height = conf2.height;
906
- rect.class = "task task-type-" + task.num;
907
- rect.rx = 3;
908
- rect.ry = 3;
909
- drawRect2(g, rect);
910
- let xPos = task.x + 14;
911
- task.people.forEach((person) => {
912
- const colour = task.actors[person].color;
913
- const circle = {
914
- cx: xPos,
915
- cy: task.y,
916
- r: 7,
917
- fill: colour,
918
- stroke: "#000",
919
- title: person,
920
- pos: task.actors[person].position
921
- };
922
- drawCircle(g, circle);
923
- xPos += 10;
924
- });
925
- _drawTextCandidateFunc(conf2)(
926
- task.task,
927
- g,
928
- rect.x,
929
- rect.y,
930
- rect.width,
931
- rect.height,
932
- { class: "task" },
933
- conf2,
934
- task.colour
935
- );
936
- }, "drawTask");
937
- var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
938
- drawBackgroundRect(elem, bounds2);
939
- }, "drawBackgroundRect");
940
- var _drawTextCandidateFunc = /* @__PURE__ */ function() {
941
- function byText(content, g, x, y, width, height, textAttrs, colour) {
942
- const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("font-color", colour).style("text-anchor", "middle").text(content);
943
- _setTextAttrs(text, textAttrs);
944
- }
945
- __name(byText, "byText");
946
- function byTspan(content, g, x, y, width, height, textAttrs, conf2, colour) {
947
- const { taskFontSize, taskFontFamily } = conf2;
948
- const lines = content.split(/<br\s*\/?>/gi);
949
- for (let i = 0; i < lines.length; i++) {
950
- const dy = i * taskFontSize - taskFontSize * (lines.length - 1) / 2;
951
- const text = g.append("text").attr("x", x + width / 2).attr("y", y).attr("fill", colour).style("text-anchor", "middle").style("font-size", taskFontSize).style("font-family", taskFontFamily);
952
- text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
953
- text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
954
- _setTextAttrs(text, textAttrs);
955
- }
956
- }
957
- __name(byTspan, "byTspan");
958
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
959
- const body = g.append("switch");
960
- const f = body.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height).attr("position", "fixed");
961
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
962
- text.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
963
- byTspan(content, body, x, y, width, height, textAttrs, conf2);
964
- _setTextAttrs(text, textAttrs);
965
- }
966
- __name(byFo, "byFo");
967
- function _setTextAttrs(toText, fromTextAttrsDict) {
968
- for (const key in fromTextAttrsDict) {
969
- if (key in fromTextAttrsDict) {
970
- toText.attr(key, fromTextAttrsDict[key]);
971
- }
972
- }
973
- }
974
- __name(_setTextAttrs, "_setTextAttrs");
975
- return function(conf2) {
976
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
977
- };
978
- }();
979
- var initGraphics = /* @__PURE__ */ __name(function(graphics) {
980
- graphics.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
981
- }, "initGraphics");
982
- var svgDraw_default = {
983
- drawRect: drawRect2,
984
- drawCircle,
985
- drawSection,
986
- drawText: drawText2,
987
- drawLabel,
988
- drawTask,
989
- drawBackgroundRect: drawBackgroundRect2,
990
- initGraphics
991
- };
992
- var setConf = /* @__PURE__ */ __name(function(cnf) {
993
- const keys = Object.keys(cnf);
994
- keys.forEach(function(key) {
995
- conf[key] = cnf[key];
996
- });
997
- }, "setConf");
998
- var actors = {};
999
- var maxWidth = 0;
1000
- function drawActorLegend(diagram2) {
1001
- const conf2 = getConfig2().journey;
1002
- const maxLabelWidth = conf2.maxLabelWidth;
1003
- maxWidth = 0;
1004
- let yPos = 60;
1005
- Object.keys(actors).forEach((person) => {
1006
- const colour = actors[person].color;
1007
- const circleData = {
1008
- cx: 20,
1009
- cy: yPos,
1010
- r: 7,
1011
- fill: colour,
1012
- stroke: "#000",
1013
- pos: actors[person].position
1014
- };
1015
- svgDraw_default.drawCircle(diagram2, circleData);
1016
- let measureText = diagram2.append("text").attr("visibility", "hidden").text(person);
1017
- const fullTextWidth = measureText.node().getBoundingClientRect().width;
1018
- measureText.remove();
1019
- let lines = [];
1020
- if (fullTextWidth <= maxLabelWidth) {
1021
- lines = [person];
1022
- } else {
1023
- const words = person.split(" ");
1024
- let currentLine = "";
1025
- measureText = diagram2.append("text").attr("visibility", "hidden");
1026
- words.forEach((word) => {
1027
- const testLine = currentLine ? `${currentLine} ${word}` : word;
1028
- measureText.text(testLine);
1029
- const textWidth = measureText.node().getBoundingClientRect().width;
1030
- if (textWidth > maxLabelWidth) {
1031
- if (currentLine) {
1032
- lines.push(currentLine);
1033
- }
1034
- currentLine = word;
1035
- measureText.text(word);
1036
- if (measureText.node().getBoundingClientRect().width > maxLabelWidth) {
1037
- let brokenWord = "";
1038
- for (const char of word) {
1039
- brokenWord += char;
1040
- measureText.text(brokenWord + "-");
1041
- if (measureText.node().getBoundingClientRect().width > maxLabelWidth) {
1042
- lines.push(brokenWord.slice(0, -1) + "-");
1043
- brokenWord = char;
1044
- }
1045
- }
1046
- currentLine = brokenWord;
1047
- }
1048
- } else {
1049
- currentLine = testLine;
1050
- }
1051
- });
1052
- if (currentLine) {
1053
- lines.push(currentLine);
1054
- }
1055
- measureText.remove();
1056
- }
1057
- lines.forEach((line, index) => {
1058
- const labelData = {
1059
- x: 40,
1060
- y: yPos + 7 + index * 20,
1061
- fill: "#666",
1062
- text: line,
1063
- textMargin: conf2.boxTextMargin ?? 5
1064
- };
1065
- const textElement = svgDraw_default.drawText(diagram2, labelData);
1066
- const lineWidth = textElement.node().getBoundingClientRect().width;
1067
- if (lineWidth > maxWidth && lineWidth > conf2.leftMargin - lineWidth) {
1068
- maxWidth = lineWidth;
1069
- }
1070
- });
1071
- yPos += Math.max(20, lines.length * 20);
1072
- });
1073
- }
1074
- __name(drawActorLegend, "drawActorLegend");
1075
- var conf = getConfig2().journey;
1076
- var leftMargin = 0;
1077
- var draw = /* @__PURE__ */ __name(function(text, id, version, diagObj) {
1078
- const configObject = getConfig2();
1079
- const titleColor = configObject.journey.titleColor;
1080
- const titleFontSize = configObject.journey.titleFontSize;
1081
- const titleFontFamily = configObject.journey.titleFontFamily;
1082
- const securityLevel = configObject.securityLevel;
1083
- let sandboxElement;
1084
- if (securityLevel === "sandbox") {
1085
- sandboxElement = select("#i" + id);
1086
- }
1087
- const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
1088
- bounds.init();
1089
- const diagram2 = root.select("#" + id);
1090
- svgDraw_default.initGraphics(diagram2);
1091
- const tasks2 = diagObj.db.getTasks();
1092
- const title = diagObj.db.getDiagramTitle();
1093
- const actorNames = diagObj.db.getActors();
1094
- for (const member in actors) {
1095
- delete actors[member];
1096
- }
1097
- let actorPos = 0;
1098
- actorNames.forEach((actorName) => {
1099
- actors[actorName] = {
1100
- color: conf.actorColours[actorPos % conf.actorColours.length],
1101
- position: actorPos
1102
- };
1103
- actorPos++;
1104
- });
1105
- drawActorLegend(diagram2);
1106
- leftMargin = conf.leftMargin + maxWidth;
1107
- bounds.insert(0, 0, leftMargin, Object.keys(actors).length * 50);
1108
- drawTasks(diagram2, tasks2, 0);
1109
- const box = bounds.getBounds();
1110
- if (title) {
1111
- diagram2.append("text").text(title).attr("x", leftMargin).attr("font-size", titleFontSize).attr("font-weight", "bold").attr("y", 25).attr("fill", titleColor).attr("font-family", titleFontFamily);
1112
- }
1113
- const height = box.stopy - box.starty + 2 * conf.diagramMarginY;
1114
- const width = leftMargin + box.stopx + 2 * conf.diagramMarginX;
1115
- configureSvgSize(diagram2, height, width, conf.useMaxWidth);
1116
- diagram2.append("line").attr("x1", leftMargin).attr("y1", conf.height * 4).attr("x2", width - leftMargin - 4).attr("y2", conf.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
1117
- const extraVertForTitle = title ? 70 : 0;
1118
- diagram2.attr("viewBox", `${box.startx} -25 ${width} ${height + extraVertForTitle}`);
1119
- diagram2.attr("preserveAspectRatio", "xMinYMin meet");
1120
- diagram2.attr("height", height + extraVertForTitle + 25);
1121
- }, "draw");
1122
- var bounds = {
1123
- data: {
1124
- startx: void 0,
1125
- stopx: void 0,
1126
- starty: void 0,
1127
- stopy: void 0
1128
- },
1129
- verticalPos: 0,
1130
- sequenceItems: [],
1131
- init: /* @__PURE__ */ __name(function() {
1132
- this.sequenceItems = [];
1133
- this.data = {
1134
- startx: void 0,
1135
- stopx: void 0,
1136
- starty: void 0,
1137
- stopy: void 0
1138
- };
1139
- this.verticalPos = 0;
1140
- }, "init"),
1141
- updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
1142
- if (obj[key] === void 0) {
1143
- obj[key] = val;
1144
- } else {
1145
- obj[key] = fun(val, obj[key]);
1146
- }
1147
- }, "updateVal"),
1148
- updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
1149
- const conf2 = getConfig2().journey;
1150
- const _self = this;
1151
- let cnt = 0;
1152
- function updateFn(type) {
1153
- return /* @__PURE__ */ __name(function updateItemBounds(item) {
1154
- cnt++;
1155
- const n = _self.sequenceItems.length - cnt + 1;
1156
- _self.updateVal(item, "starty", starty - n * conf2.boxMargin, Math.min);
1157
- _self.updateVal(item, "stopy", stopy + n * conf2.boxMargin, Math.max);
1158
- _self.updateVal(bounds.data, "startx", startx - n * conf2.boxMargin, Math.min);
1159
- _self.updateVal(bounds.data, "stopx", stopx + n * conf2.boxMargin, Math.max);
1160
- if (!(type === "activation")) {
1161
- _self.updateVal(item, "startx", startx - n * conf2.boxMargin, Math.min);
1162
- _self.updateVal(item, "stopx", stopx + n * conf2.boxMargin, Math.max);
1163
- _self.updateVal(bounds.data, "starty", starty - n * conf2.boxMargin, Math.min);
1164
- _self.updateVal(bounds.data, "stopy", stopy + n * conf2.boxMargin, Math.max);
1165
- }
1166
- }, "updateItemBounds");
1167
- }
1168
- __name(updateFn, "updateFn");
1169
- this.sequenceItems.forEach(updateFn());
1170
- }, "updateBounds"),
1171
- insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
1172
- const _startx = Math.min(startx, stopx);
1173
- const _stopx = Math.max(startx, stopx);
1174
- const _starty = Math.min(starty, stopy);
1175
- const _stopy = Math.max(starty, stopy);
1176
- this.updateVal(bounds.data, "startx", _startx, Math.min);
1177
- this.updateVal(bounds.data, "starty", _starty, Math.min);
1178
- this.updateVal(bounds.data, "stopx", _stopx, Math.max);
1179
- this.updateVal(bounds.data, "stopy", _stopy, Math.max);
1180
- this.updateBounds(_startx, _starty, _stopx, _stopy);
1181
- }, "insert"),
1182
- bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
1183
- this.verticalPos = this.verticalPos + bump;
1184
- this.data.stopy = this.verticalPos;
1185
- }, "bumpVerticalPos"),
1186
- getVerticalPos: /* @__PURE__ */ __name(function() {
1187
- return this.verticalPos;
1188
- }, "getVerticalPos"),
1189
- getBounds: /* @__PURE__ */ __name(function() {
1190
- return this.data;
1191
- }, "getBounds")
1192
- };
1193
- var fills = conf.sectionFills;
1194
- var textColours = conf.sectionColours;
1195
- var drawTasks = /* @__PURE__ */ __name(function(diagram2, tasks2, verticalPos) {
1196
- const conf2 = getConfig2().journey;
1197
- let lastSection = "";
1198
- const sectionVHeight = conf2.height * 2 + conf2.diagramMarginY;
1199
- const taskPos = verticalPos + sectionVHeight;
1200
- let sectionNumber = 0;
1201
- let fill = "#CCC";
1202
- let colour = "black";
1203
- let num = 0;
1204
- for (const [i, task] of tasks2.entries()) {
1205
- if (lastSection !== task.section) {
1206
- fill = fills[sectionNumber % fills.length];
1207
- num = sectionNumber % fills.length;
1208
- colour = textColours[sectionNumber % textColours.length];
1209
- let taskInSectionCount = 0;
1210
- const currentSection2 = task.section;
1211
- for (let taskIndex = i; taskIndex < tasks2.length; taskIndex++) {
1212
- if (tasks2[taskIndex].section == currentSection2) {
1213
- taskInSectionCount = taskInSectionCount + 1;
1214
- } else {
1215
- break;
1216
- }
1217
- }
1218
- const section = {
1219
- x: i * conf2.taskMargin + i * conf2.width + leftMargin,
1220
- y: 50,
1221
- text: task.section,
1222
- fill,
1223
- num,
1224
- colour,
1225
- taskCount: taskInSectionCount
1226
- };
1227
- svgDraw_default.drawSection(diagram2, section, conf2);
1228
- lastSection = task.section;
1229
- sectionNumber++;
1230
- }
1231
- const taskActors = task.people.reduce((acc, actorName) => {
1232
- if (actors[actorName]) {
1233
- acc[actorName] = actors[actorName];
1234
- }
1235
- return acc;
1236
- }, {});
1237
- task.x = i * conf2.taskMargin + i * conf2.width + leftMargin;
1238
- task.y = taskPos;
1239
- task.width = conf2.diagramMarginX;
1240
- task.height = conf2.diagramMarginY;
1241
- task.colour = colour;
1242
- task.fill = fill;
1243
- task.num = num;
1244
- task.actors = taskActors;
1245
- svgDraw_default.drawTask(diagram2, task, conf2);
1246
- bounds.insert(task.x, task.y, task.x + task.width + conf2.taskMargin, 300 + 5 * 30);
1247
- }
1248
- }, "drawTasks");
1249
- var journeyRenderer_default = {
1250
- setConf,
1251
- draw
1252
- };
1253
- var diagram = {
1254
- parser: journey_default,
1255
- db: journeyDb_default,
1256
- renderer: journeyRenderer_default,
1257
- styles: styles_default,
1258
- init: /* @__PURE__ */ __name((cnf) => {
1259
- journeyRenderer_default.setConf(cnf.journey);
1260
- journeyDb_default.clear();
1261
- }, "init")
1262
- };
1263
-
1264
- export { diagram };