@orangelogic/design-system 2.161.0 → 2.163.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.CUPqX8XL.js → asset-link-format.BdB6fQA_.js} +194 -194
  33. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  34. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  35. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  36. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  37. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  38. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  39. package/library/chunks/channel.s_XjcUYI.js +5 -0
  40. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  41. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  42. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  43. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  44. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  45. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  46. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  47. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  48. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  49. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  50. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  51. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  52. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  53. package/library/chunks/{color-swatch-group.Dg5avknJ.js → color-swatch-group.w5DMzNco.js} +2433 -2647
  54. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  55. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  56. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  57. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  58. package/library/chunks/{content-builder.BU8X7I6V.js → content-builder.BX4pHujE.js} +1 -1
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.gyH0NGM5.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dh4SX0eU.js} +5 -5
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  124. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  125. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  126. package/library/chunks/range.DdOGybNB.js +9 -0
  127. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  128. package/library/chunks/sankey.BR94A-8L.js +294 -0
  129. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  130. package/library/chunks/select.C6_sM3Pr.js +7 -0
  131. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  132. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  133. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  134. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  135. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  136. package/library/chunks/step.almIqwJ6.js +51 -0
  137. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  138. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  139. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  140. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  141. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  142. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  143. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  144. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  145. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  146. package/library/chunks/{toast.TDU3wVhq.js → toast.C5Ir5yKA.js} +1 -1
  147. package/library/chunks/transformation.D1alV_s4.js +189 -0
  148. package/library/chunks/{tree.C2dPd6gt.js → tree.Dvnw_4vz.js} +3 -3
  149. package/library/chunks/value.BXEGBVFV.js +44 -0
  150. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  151. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  152. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  153. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  154. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  155. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  156. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  157. package/library/components/alert.js +2 -2
  158. package/library/components/am-chart.js +3 -3
  159. package/library/components/animated-image.js +2 -2
  160. package/library/components/animation.js +2 -2
  161. package/library/components/array-line-clamp.js +1 -1
  162. package/library/components/asset-link-format.js +5 -5
  163. package/library/components/atoms.js +29 -29
  164. package/library/components/audio.js +3 -3
  165. package/library/components/avatar.js +2 -2
  166. package/library/components/border-input-group.js +1 -1
  167. package/library/components/breadcrumb-item.js +1 -1
  168. package/library/components/breadcrumb.js +1 -1
  169. package/library/components/button.js +3 -3
  170. package/library/components/checkbox.js +195 -18
  171. package/library/components/color-picker.js +4 -4
  172. package/library/components/color-swatch-group.js +5 -5
  173. package/library/components/color-swatch.js +2 -2
  174. package/library/components/confirm-popover.js +3 -3
  175. package/library/components/copy-button.js +2 -2
  176. package/library/components/corner-position-input-group.js +2 -2
  177. package/library/components/cropper.js +3 -3
  178. package/library/components/date-calendar.js +1 -1
  179. package/library/components/details.js +2 -2
  180. package/library/components/dialog.js +3 -3
  181. package/library/components/diff.js +1 -1
  182. package/library/components/divider.js +1 -1
  183. package/library/components/document-viewer.js +3 -3
  184. package/library/components/dot-pagination.js +2 -2
  185. package/library/components/drawer.js +3 -3
  186. package/library/components/dropdown.js +2 -2
  187. package/library/components/dynamic-select.js +6 -6
  188. package/library/components/e-chart.js +1 -1
  189. package/library/components/element-clamp.js +2 -2
  190. package/library/components/file-on-demand.js +350 -374
  191. package/library/components/folder-select.js +5 -5
  192. package/library/components/format-time.js +2 -2
  193. package/library/components/grid-item.js +1 -1
  194. package/library/components/header.js +2 -2
  195. package/library/components/hub-connection.js +2 -2
  196. package/library/components/icon-button.js +2 -2
  197. package/library/components/icon.js +2 -2
  198. package/library/components/iframe.js +2 -2
  199. package/library/components/image-comparer.js +2 -2
  200. package/library/components/image.js +3 -3
  201. package/library/components/include.js +1 -1
  202. package/library/components/input.js +3 -3
  203. package/library/components/line-clamp.js +1 -1
  204. package/library/components/markdown.js +11 -2704
  205. package/library/components/masonry.js +3 -3
  206. package/library/components/menu-item.js +2 -2
  207. package/library/components/molecules.js +3 -3
  208. package/library/components/mutation-observer.js +1 -1
  209. package/library/components/option.js +3 -3
  210. package/library/components/organisms.js +2 -2
  211. package/library/components/padding-input-group.js +1 -1
  212. package/library/components/pagination.js +6 -6
  213. package/library/components/qr-code.js +1 -1
  214. package/library/components/radio-button.js +1 -1
  215. package/library/components/radio-card.js +1 -1
  216. package/library/components/radio-group.js +1 -1
  217. package/library/components/radio.js +2 -2
  218. package/library/components/range.js +1 -1
  219. package/library/components/rating.js +2 -2
  220. package/library/components/resize-observer.js +1 -1
  221. package/library/components/select.js +3 -3
  222. package/library/components/shadow-input-group.js +1 -1
  223. package/library/components/share-option-list.js +2 -2
  224. package/library/components/sidebar.js +3 -3
  225. package/library/components/size-input-group.js +3 -3
  226. package/library/components/split-panel.js +1 -1
  227. package/library/components/step.js +1 -1
  228. package/library/components/stepper-wizard.js +1 -1
  229. package/library/components/stepper.js +1 -1
  230. package/library/components/switch.js +1 -1
  231. package/library/components/tab-group.js +4 -4
  232. package/library/components/tab-panel.js +1 -1
  233. package/library/components/tab.js +2 -2
  234. package/library/components/tag.js +1 -1
  235. package/library/components/textarea.js +1 -1
  236. package/library/components/timecode.js +1 -1
  237. package/library/components/tooltip.js +1 -1
  238. package/library/components/tree-item.js +4 -4
  239. package/library/components/tree.js +2 -2
  240. package/library/components/typeface.js +2 -2
  241. package/library/components/types.js +122526 -120875
  242. package/library/components/video.js +2 -2
  243. package/library/package.json +2 -1
  244. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  245. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  246. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  247. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Page/Page.d.ts +6 -0
  248. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Validate/Validate.d.ts +6 -0
  249. package/library/packages/molecules/src/index.d.ts +1 -0
  250. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  251. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  252. package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +1 -0
  253. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  254. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  255. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  256. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  257. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  258. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  259. package/library/packages/types/src/pdf-viewer-toolbar.d.ts +4 -3
  260. package/library/packages/utils/src/transformation/transformation.d.ts +8 -0
  261. package/library/react-web-component.d.ts +72 -6
  262. package/library/utils.js +9 -8
  263. package/package.json +2 -1
  264. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  265. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  266. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  267. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  268. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  269. package/library/chunks/index.DU0XUO4k.js +0 -176
  270. package/library/chunks/transformation.BDmd3kER.js +0 -163
  271. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,837 @@
1
+ import { g as gt } from "./chunk-5VM5RSS4.D0-lddDM.js";
2
+ import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS.BbIrVi3j.js";
3
+ import { _ as s, g as _t, s as vt, a as bt, b as wt, o as Tt, n as St, c as R, d as $t, p as Mt } from "./mermaid.core.Dspbw7Ig.js";
4
+ import "./index.CrhRU5m8.js";
5
+ import "./transform.BuqENXeT.js";
6
+ import { s as X } from "./select.C6_sM3Pr.js";
7
+ import { d as it } from "./arc.xqNd6x9S.js";
8
+ var U = function() {
9
+ var t = /* @__PURE__ */ s(function(h, r, n, l) {
10
+ for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
11
+ return n;
12
+ }, "o"), e = [6, 8, 10, 11, 12, 14, 16, 17, 18], a = [1, 9], f = [1, 10], i = [1, 11], u = [1, 12], p = [1, 13], o = [1, 14], g = {
13
+ trace: /* @__PURE__ */ s(function() {
14
+ }, "trace"),
15
+ yy: {},
16
+ 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 },
17
+ 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" },
18
+ 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]],
19
+ performAction: /* @__PURE__ */ s(function(r, n, l, y, d, c, v) {
20
+ var k = c.length - 1;
21
+ switch (d) {
22
+ case 1:
23
+ return c[k - 1];
24
+ case 2:
25
+ this.$ = [];
26
+ break;
27
+ case 3:
28
+ c[k - 1].push(c[k]), this.$ = c[k - 1];
29
+ break;
30
+ case 4:
31
+ case 5:
32
+ this.$ = c[k];
33
+ break;
34
+ case 6:
35
+ case 7:
36
+ this.$ = [];
37
+ break;
38
+ case 8:
39
+ y.setDiagramTitle(c[k].substr(6)), this.$ = c[k].substr(6);
40
+ break;
41
+ case 9:
42
+ this.$ = c[k].trim(), y.setAccTitle(this.$);
43
+ break;
44
+ case 10:
45
+ case 11:
46
+ this.$ = c[k].trim(), y.setAccDescription(this.$);
47
+ break;
48
+ case 12:
49
+ y.addSection(c[k].substr(8)), this.$ = c[k].substr(8);
50
+ break;
51
+ case 13:
52
+ y.addTask(c[k - 1], c[k]), this.$ = "task";
53
+ break;
54
+ }
55
+ }, "anonymous"),
56
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: a, 12: f, 14: i, 16: u, 17: p, 18: o }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: a, 12: f, 14: i, 16: u, 17: p, 18: o }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 8]), { 13: [1, 16] }, { 15: [1, 17] }, t(e, [2, 11]), t(e, [2, 12]), { 19: [1, 18] }, t(e, [2, 4]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 13])],
57
+ defaultActions: {},
58
+ parseError: /* @__PURE__ */ s(function(r, n) {
59
+ if (n.recoverable)
60
+ this.trace(r);
61
+ else {
62
+ var l = new Error(r);
63
+ throw l.hash = n, l;
64
+ }
65
+ }, "parseError"),
66
+ parse: /* @__PURE__ */ s(function(r) {
67
+ var n = this, l = [0], y = [], d = [null], c = [], v = this.table, k = "", C = 0, Q = 0, yt = 2, D = 1, dt = c.slice.call(arguments, 1), _ = Object.create(this.lexer), I = { yy: {} };
68
+ for (var O in this.yy)
69
+ Object.prototype.hasOwnProperty.call(this.yy, O) && (I.yy[O] = this.yy[O]);
70
+ _.setInput(r, I.yy), I.yy.lexer = _, I.yy.parser = this, typeof _.yylloc > "u" && (_.yylloc = {});
71
+ var Y = _.yylloc;
72
+ c.push(Y);
73
+ var ft = _.options && _.options.ranges;
74
+ typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
+ function pt(w) {
76
+ l.length = l.length - 2 * w, d.length = d.length - w, c.length = c.length - w;
77
+ }
78
+ s(pt, "popStack");
79
+ function tt() {
80
+ var w;
81
+ return w = y.pop() || _.lex() || D, typeof w != "number" && (w instanceof Array && (y = w, w = y.pop()), w = n.symbols_[w] || w), w;
82
+ }
83
+ s(tt, "lex");
84
+ for (var b, A, T, q, F = {}, N, M, et, z; ; ) {
85
+ if (A = l[l.length - 1], this.defaultActions[A] ? T = this.defaultActions[A] : ((b === null || typeof b > "u") && (b = tt()), T = v[A] && v[A][b]), typeof T > "u" || !T.length || !T[0]) {
86
+ var H = "";
87
+ z = [];
88
+ for (N in v[A])
89
+ this.terminals_[N] && N > yt && z.push("'" + this.terminals_[N] + "'");
90
+ _.showPosition ? H = "Parse error on line " + (C + 1) + `:
91
+ ` + _.showPosition() + `
92
+ Expecting ` + z.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : H = "Parse error on line " + (C + 1) + ": Unexpected " + (b == D ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(H, {
93
+ text: _.match,
94
+ token: this.terminals_[b] || b,
95
+ line: _.yylineno,
96
+ loc: Y,
97
+ expected: z
98
+ });
99
+ }
100
+ if (T[0] instanceof Array && T.length > 1)
101
+ throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + b);
102
+ switch (T[0]) {
103
+ case 1:
104
+ l.push(b), d.push(_.yytext), c.push(_.yylloc), l.push(T[1]), b = null, Q = _.yyleng, k = _.yytext, C = _.yylineno, Y = _.yylloc;
105
+ break;
106
+ case 2:
107
+ if (M = this.productions_[T[1]][1], F.$ = d[d.length - M], F._$ = {
108
+ first_line: c[c.length - (M || 1)].first_line,
109
+ last_line: c[c.length - 1].last_line,
110
+ first_column: c[c.length - (M || 1)].first_column,
111
+ last_column: c[c.length - 1].last_column
112
+ }, ft && (F._$.range = [
113
+ c[c.length - (M || 1)].range[0],
114
+ c[c.length - 1].range[1]
115
+ ]), q = this.performAction.apply(F, [
116
+ k,
117
+ Q,
118
+ C,
119
+ I.yy,
120
+ T[1],
121
+ d,
122
+ c
123
+ ].concat(dt)), typeof q < "u")
124
+ return q;
125
+ M && (l = l.slice(0, -1 * M * 2), d = d.slice(0, -1 * M), c = c.slice(0, -1 * M)), l.push(this.productions_[T[1]][0]), d.push(F.$), c.push(F._$), et = v[l[l.length - 2]][l[l.length - 1]], l.push(et);
126
+ break;
127
+ case 3:
128
+ return !0;
129
+ }
130
+ }
131
+ return !0;
132
+ }, "parse")
133
+ }, m = /* @__PURE__ */ function() {
134
+ var h = {
135
+ EOF: 1,
136
+ parseError: /* @__PURE__ */ s(function(n, l) {
137
+ if (this.yy.parser)
138
+ this.yy.parser.parseError(n, l);
139
+ else
140
+ throw new Error(n);
141
+ }, "parseError"),
142
+ // resets the lexer, sets new input
143
+ setInput: /* @__PURE__ */ s(function(r, n) {
144
+ return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
145
+ first_line: 1,
146
+ first_column: 0,
147
+ last_line: 1,
148
+ last_column: 0
149
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
150
+ }, "setInput"),
151
+ // consumes and returns one char from the input
152
+ input: /* @__PURE__ */ s(function() {
153
+ var r = this._input[0];
154
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
155
+ var n = r.match(/(?:\r\n?|\n).*/g);
156
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
157
+ }, "input"),
158
+ // unshifts one char (or a string) into the input
159
+ unput: /* @__PURE__ */ s(function(r) {
160
+ var n = r.length, l = r.split(/(?:\r\n?|\n)/g);
161
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
162
+ var y = this.match.split(/(?:\r\n?|\n)/g);
163
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
164
+ var d = this.yylloc.range;
165
+ return this.yylloc = {
166
+ first_line: this.yylloc.first_line,
167
+ last_line: this.yylineno + 1,
168
+ first_column: this.yylloc.first_column,
169
+ last_column: l ? (l.length === y.length ? this.yylloc.first_column : 0) + y[y.length - l.length].length - l[0].length : this.yylloc.first_column - n
170
+ }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
171
+ }, "unput"),
172
+ // When called from action, caches matched text and appends it on next action
173
+ more: /* @__PURE__ */ s(function() {
174
+ return this._more = !0, this;
175
+ }, "more"),
176
+ // 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.
177
+ reject: /* @__PURE__ */ s(function() {
178
+ if (this.options.backtrack_lexer)
179
+ this._backtrack = !0;
180
+ else
181
+ 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).
182
+ ` + this.showPosition(), {
183
+ text: "",
184
+ token: null,
185
+ line: this.yylineno
186
+ });
187
+ return this;
188
+ }, "reject"),
189
+ // retain first n characters of the match
190
+ less: /* @__PURE__ */ s(function(r) {
191
+ this.unput(this.match.slice(r));
192
+ }, "less"),
193
+ // displays already matched input, i.e. for error messages
194
+ pastInput: /* @__PURE__ */ s(function() {
195
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
196
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
197
+ }, "pastInput"),
198
+ // displays upcoming input, i.e. for error messages
199
+ upcomingInput: /* @__PURE__ */ s(function() {
200
+ var r = this.match;
201
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
202
+ }, "upcomingInput"),
203
+ // displays the character position where the lexing error occurred, i.e. for error messages
204
+ showPosition: /* @__PURE__ */ s(function() {
205
+ var r = this.pastInput(), n = new Array(r.length + 1).join("-");
206
+ return r + this.upcomingInput() + `
207
+ ` + n + "^";
208
+ }, "showPosition"),
209
+ // test the lexed token: return FALSE when not a match, otherwise return token
210
+ test_match: /* @__PURE__ */ s(function(r, n) {
211
+ var l, y, d;
212
+ if (this.options.backtrack_lexer && (d = {
213
+ yylineno: this.yylineno,
214
+ yylloc: {
215
+ first_line: this.yylloc.first_line,
216
+ last_line: this.last_line,
217
+ first_column: this.yylloc.first_column,
218
+ last_column: this.yylloc.last_column
219
+ },
220
+ yytext: this.yytext,
221
+ match: this.match,
222
+ matches: this.matches,
223
+ matched: this.matched,
224
+ yyleng: this.yyleng,
225
+ offset: this.offset,
226
+ _more: this._more,
227
+ _input: this._input,
228
+ yy: this.yy,
229
+ conditionStack: this.conditionStack.slice(0),
230
+ done: this.done
231
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), y = r[0].match(/(?:\r\n?|\n).*/g), y && (this.yylineno += y.length), this.yylloc = {
232
+ first_line: this.yylloc.last_line,
233
+ last_line: this.yylineno + 1,
234
+ first_column: this.yylloc.last_column,
235
+ last_column: y ? y[y.length - 1].length - y[y.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
236
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], l = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
237
+ return l;
238
+ if (this._backtrack) {
239
+ for (var c in d)
240
+ this[c] = d[c];
241
+ return !1;
242
+ }
243
+ return !1;
244
+ }, "test_match"),
245
+ // return next match in input
246
+ next: /* @__PURE__ */ s(function() {
247
+ if (this.done)
248
+ return this.EOF;
249
+ this._input || (this.done = !0);
250
+ var r, n, l, y;
251
+ this._more || (this.yytext = "", this.match = "");
252
+ for (var d = this._currentRules(), c = 0; c < d.length; c++)
253
+ if (l = this._input.match(this.rules[d[c]]), l && (!n || l[0].length > n[0].length)) {
254
+ if (n = l, y = c, this.options.backtrack_lexer) {
255
+ if (r = this.test_match(l, d[c]), r !== !1)
256
+ return r;
257
+ if (this._backtrack) {
258
+ n = !1;
259
+ continue;
260
+ } else
261
+ return !1;
262
+ } else if (!this.options.flex)
263
+ break;
264
+ }
265
+ return n ? (r = this.test_match(n, d[y]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
266
+ ` + this.showPosition(), {
267
+ text: "",
268
+ token: null,
269
+ line: this.yylineno
270
+ });
271
+ }, "next"),
272
+ // return next match that has a token
273
+ lex: /* @__PURE__ */ s(function() {
274
+ var n = this.next();
275
+ return n || this.lex();
276
+ }, "lex"),
277
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
278
+ begin: /* @__PURE__ */ s(function(n) {
279
+ this.conditionStack.push(n);
280
+ }, "begin"),
281
+ // pop the previously active lexer condition state off the condition stack
282
+ popState: /* @__PURE__ */ s(function() {
283
+ var n = this.conditionStack.length - 1;
284
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
285
+ }, "popState"),
286
+ // produce the lexer rule set which is active for the currently active lexer condition state
287
+ _currentRules: /* @__PURE__ */ s(function() {
288
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
289
+ }, "_currentRules"),
290
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
291
+ topState: /* @__PURE__ */ s(function(n) {
292
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
293
+ }, "topState"),
294
+ // alias for begin(condition)
295
+ pushState: /* @__PURE__ */ s(function(n) {
296
+ this.begin(n);
297
+ }, "pushState"),
298
+ // return the number of states currently on the stack
299
+ stateStackSize: /* @__PURE__ */ s(function() {
300
+ return this.conditionStack.length;
301
+ }, "stateStackSize"),
302
+ options: { "case-insensitive": !0 },
303
+ performAction: /* @__PURE__ */ s(function(n, l, y, d) {
304
+ switch (y) {
305
+ case 0:
306
+ break;
307
+ case 1:
308
+ break;
309
+ case 2:
310
+ return 10;
311
+ case 3:
312
+ break;
313
+ case 4:
314
+ break;
315
+ case 5:
316
+ return 4;
317
+ case 6:
318
+ return 11;
319
+ case 7:
320
+ return this.begin("acc_title"), 12;
321
+ case 8:
322
+ return this.popState(), "acc_title_value";
323
+ case 9:
324
+ return this.begin("acc_descr"), 14;
325
+ case 10:
326
+ return this.popState(), "acc_descr_value";
327
+ case 11:
328
+ this.begin("acc_descr_multiline");
329
+ break;
330
+ case 12:
331
+ this.popState();
332
+ break;
333
+ case 13:
334
+ return "acc_descr_multiline_value";
335
+ case 14:
336
+ return 17;
337
+ case 15:
338
+ return 18;
339
+ case 16:
340
+ return 19;
341
+ case 17:
342
+ return ":";
343
+ case 18:
344
+ return 6;
345
+ case 19:
346
+ return "INVALID";
347
+ }
348
+ }, "anonymous"),
349
+ 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],
350
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18, 19], inclusive: !0 } }
351
+ };
352
+ return h;
353
+ }();
354
+ g.lexer = m;
355
+ function x() {
356
+ this.yy = {};
357
+ }
358
+ return s(x, "Parser"), x.prototype = g, g.Parser = x, new x();
359
+ }();
360
+ U.parser = U;
361
+ var Et = U, V = "", J = [], L = [], B = [], Ct = /* @__PURE__ */ s(function() {
362
+ J.length = 0, L.length = 0, V = "", B.length = 0, Mt();
363
+ }, "clear"), Pt = /* @__PURE__ */ s(function(t) {
364
+ V = t, J.push(t);
365
+ }, "addSection"), It = /* @__PURE__ */ s(function() {
366
+ return J;
367
+ }, "getSections"), At = /* @__PURE__ */ s(function() {
368
+ let t = rt();
369
+ const e = 100;
370
+ let a = 0;
371
+ for (; !t && a < e; )
372
+ t = rt(), a++;
373
+ return L.push(...B), L;
374
+ }, "getTasks"), Ft = /* @__PURE__ */ s(function() {
375
+ const t = [];
376
+ return L.forEach((a) => {
377
+ a.people && t.push(...a.people);
378
+ }), [...new Set(t)].sort();
379
+ }, "updateActors"), Vt = /* @__PURE__ */ s(function(t, e) {
380
+ const a = e.substr(1).split(":");
381
+ let f = 0, i = [];
382
+ a.length === 1 ? (f = Number(a[0]), i = []) : (f = Number(a[0]), i = a[1].split(","));
383
+ const u = i.map((o) => o.trim()), p = {
384
+ section: V,
385
+ type: V,
386
+ people: u,
387
+ task: t,
388
+ score: f
389
+ };
390
+ B.push(p);
391
+ }, "addTask"), Rt = /* @__PURE__ */ s(function(t) {
392
+ const e = {
393
+ section: V,
394
+ type: V,
395
+ description: t,
396
+ task: t,
397
+ classes: []
398
+ };
399
+ L.push(e);
400
+ }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
401
+ const t = /* @__PURE__ */ s(function(a) {
402
+ return B[a].processed;
403
+ }, "compileTask");
404
+ let e = !0;
405
+ for (const [a, f] of B.entries())
406
+ t(a), e = e && f.processed;
407
+ return e;
408
+ }, "compileTasks"), Lt = /* @__PURE__ */ s(function() {
409
+ return Ft();
410
+ }, "getActors"), nt = {
411
+ getConfig: /* @__PURE__ */ s(() => R().journey, "getConfig"),
412
+ clear: Ct,
413
+ setDiagramTitle: St,
414
+ getDiagramTitle: Tt,
415
+ setAccTitle: wt,
416
+ getAccTitle: bt,
417
+ setAccDescription: vt,
418
+ getAccDescription: _t,
419
+ addSection: Pt,
420
+ getSections: It,
421
+ getTasks: At,
422
+ addTask: Vt,
423
+ addTaskOrg: Rt,
424
+ getActors: Lt
425
+ }, Bt = /* @__PURE__ */ s((t) => `.label {
426
+ font-family: ${t.fontFamily};
427
+ color: ${t.textColor};
428
+ }
429
+ .mouth {
430
+ stroke: #666;
431
+ }
432
+
433
+ line {
434
+ stroke: ${t.textColor}
435
+ }
436
+
437
+ .legend {
438
+ fill: ${t.textColor};
439
+ font-family: ${t.fontFamily};
440
+ }
441
+
442
+ .label text {
443
+ fill: #333;
444
+ }
445
+ .label {
446
+ color: ${t.textColor}
447
+ }
448
+
449
+ .face {
450
+ ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
451
+ stroke: #999;
452
+ }
453
+
454
+ .node rect,
455
+ .node circle,
456
+ .node ellipse,
457
+ .node polygon,
458
+ .node path {
459
+ fill: ${t.mainBkg};
460
+ stroke: ${t.nodeBorder};
461
+ stroke-width: 1px;
462
+ }
463
+
464
+ .node .label {
465
+ text-align: center;
466
+ }
467
+ .node.clickable {
468
+ cursor: pointer;
469
+ }
470
+
471
+ .arrowheadPath {
472
+ fill: ${t.arrowheadColor};
473
+ }
474
+
475
+ .edgePath .path {
476
+ stroke: ${t.lineColor};
477
+ stroke-width: 1.5px;
478
+ }
479
+
480
+ .flowchart-link {
481
+ stroke: ${t.lineColor};
482
+ fill: none;
483
+ }
484
+
485
+ .edgeLabel {
486
+ background-color: ${t.edgeLabelBackground};
487
+ rect {
488
+ opacity: 0.5;
489
+ }
490
+ text-align: center;
491
+ }
492
+
493
+ .cluster rect {
494
+ }
495
+
496
+ .cluster text {
497
+ fill: ${t.titleColor};
498
+ }
499
+
500
+ div.mermaidTooltip {
501
+ position: absolute;
502
+ text-align: center;
503
+ max-width: 200px;
504
+ padding: 2px;
505
+ font-family: ${t.fontFamily};
506
+ font-size: 12px;
507
+ background: ${t.tertiaryColor};
508
+ border: 1px solid ${t.border2};
509
+ border-radius: 2px;
510
+ pointer-events: none;
511
+ z-index: 100;
512
+ }
513
+
514
+ .task-type-0, .section-type-0 {
515
+ ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
516
+ }
517
+ .task-type-1, .section-type-1 {
518
+ ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
519
+ }
520
+ .task-type-2, .section-type-2 {
521
+ ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
522
+ }
523
+ .task-type-3, .section-type-3 {
524
+ ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
525
+ }
526
+ .task-type-4, .section-type-4 {
527
+ ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
528
+ }
529
+ .task-type-5, .section-type-5 {
530
+ ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
531
+ }
532
+ .task-type-6, .section-type-6 {
533
+ ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
534
+ }
535
+ .task-type-7, .section-type-7 {
536
+ ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
537
+ }
538
+
539
+ .actor-0 {
540
+ ${t.actor0 ? `fill: ${t.actor0}` : ""};
541
+ }
542
+ .actor-1 {
543
+ ${t.actor1 ? `fill: ${t.actor1}` : ""};
544
+ }
545
+ .actor-2 {
546
+ ${t.actor2 ? `fill: ${t.actor2}` : ""};
547
+ }
548
+ .actor-3 {
549
+ ${t.actor3 ? `fill: ${t.actor3}` : ""};
550
+ }
551
+ .actor-4 {
552
+ ${t.actor4 ? `fill: ${t.actor4}` : ""};
553
+ }
554
+ .actor-5 {
555
+ ${t.actor5 ? `fill: ${t.actor5}` : ""};
556
+ }
557
+ ${gt()}
558
+ `, "getStyles"), jt = Bt, K = /* @__PURE__ */ s(function(t, e) {
559
+ return kt(t, e);
560
+ }, "drawRect"), Nt = /* @__PURE__ */ s(function(t, e) {
561
+ const f = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
562
+ i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
563
+ function u(g) {
564
+ const m = it().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
565
+ g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
566
+ }
567
+ s(u, "smile");
568
+ function p(g) {
569
+ const m = it().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
570
+ g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
571
+ }
572
+ s(p, "sad");
573
+ function o(g) {
574
+ g.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
575
+ }
576
+ return s(o, "ambivalent"), e.score > 3 ? u(i) : e.score < 3 ? p(i) : o(i), f;
577
+ }, "drawFace"), ot = /* @__PURE__ */ s(function(t, e) {
578
+ const a = t.append("circle");
579
+ return a.attr("cx", e.cx), a.attr("cy", e.cy), a.attr("class", "actor-" + e.pos), a.attr("fill", e.fill), a.attr("stroke", e.stroke), a.attr("r", e.r), a.class !== void 0 && a.attr("class", a.class), e.title !== void 0 && a.append("title").text(e.title), a;
580
+ }, "drawCircle"), ct = /* @__PURE__ */ s(function(t, e) {
581
+ return xt(t, e);
582
+ }, "drawText"), zt = /* @__PURE__ */ s(function(t, e) {
583
+ function a(i, u, p, o, g) {
584
+ return i + "," + u + " " + (i + p) + "," + u + " " + (i + p) + "," + (u + o - g) + " " + (i + p - g * 1.2) + "," + (u + o) + " " + i + "," + (u + o);
585
+ }
586
+ s(a, "genPoints");
587
+ const f = t.append("polygon");
588
+ f.attr("points", a(e.x, e.y, 50, 20, 7)), f.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, ct(t, e);
589
+ }, "drawLabel"), Wt = /* @__PURE__ */ s(function(t, e, a) {
590
+ const f = t.append("g"), i = lt();
591
+ i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = a.width * e.taskCount + // width of the tasks
592
+ a.diagramMarginX * (e.taskCount - 1), i.height = a.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, K(f, i), ht(a)(
593
+ e.text,
594
+ f,
595
+ i.x,
596
+ i.y,
597
+ i.width,
598
+ i.height,
599
+ { class: "journey-section section-type-" + e.num },
600
+ a,
601
+ e.colour
602
+ );
603
+ }, "drawSection"), Z = -1, Ot = /* @__PURE__ */ s(function(t, e, a, f) {
604
+ const i = e.x + a.width / 2, u = t.append("g");
605
+ Z++, u.append("line").attr("id", f + "-task" + Z).attr("x1", i).attr("y1", e.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Nt(u, {
606
+ cx: i,
607
+ cy: 300 + (5 - e.score) * 30,
608
+ score: e.score
609
+ });
610
+ const o = lt();
611
+ o.x = e.x, o.y = e.y, o.fill = e.fill, o.width = a.width, o.height = a.height, o.class = "task task-type-" + e.num, o.rx = 3, o.ry = 3, K(u, o);
612
+ let g = e.x + 14;
613
+ e.people.forEach((m) => {
614
+ const x = e.actors[m].color, h = {
615
+ cx: g,
616
+ cy: e.y,
617
+ r: 7,
618
+ fill: x,
619
+ stroke: "#000",
620
+ title: m,
621
+ pos: e.actors[m].position
622
+ };
623
+ ot(u, h), g += 10;
624
+ }), ht(a)(
625
+ e.task,
626
+ u,
627
+ o.x,
628
+ o.y,
629
+ o.width,
630
+ o.height,
631
+ { class: "task" },
632
+ a,
633
+ e.colour
634
+ );
635
+ }, "drawTask"), Yt = /* @__PURE__ */ s(function(t, e) {
636
+ mt(t, e);
637
+ }, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
638
+ function t(i, u, p, o, g, m, x, h) {
639
+ const r = u.append("text").attr("x", p + g / 2).attr("y", o + m / 2 + 5).style("font-color", h).style("text-anchor", "middle").text(i);
640
+ f(r, x);
641
+ }
642
+ s(t, "byText");
643
+ function e(i, u, p, o, g, m, x, h, r) {
644
+ const { taskFontSize: n, taskFontFamily: l } = h, y = i.split(/<br\s*\/?>/gi);
645
+ for (let d = 0; d < y.length; d++) {
646
+ const c = d * n - n * (y.length - 1) / 2, v = u.append("text").attr("x", p + g / 2).attr("y", o).attr("fill", r).style("text-anchor", "middle").style("font-size", n).style("font-family", l);
647
+ v.append("tspan").attr("x", p + g / 2).attr("dy", c).text(y[d]), v.attr("y", o + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), f(v, x);
648
+ }
649
+ }
650
+ s(e, "byTspan");
651
+ function a(i, u, p, o, g, m, x, h) {
652
+ const r = u.append("switch"), l = r.append("foreignObject").attr("x", p).attr("y", o).attr("width", g).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
653
+ l.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, r, p, o, g, m, x, h), f(l, x);
654
+ }
655
+ s(a, "byFo");
656
+ function f(i, u) {
657
+ for (const p in u)
658
+ p in u && i.attr(p, u[p]);
659
+ }
660
+ return s(f, "_setTextAttrs"), function(i) {
661
+ return i.textPlacement === "fo" ? a : i.textPlacement === "old" ? t : e;
662
+ };
663
+ }(), qt = /* @__PURE__ */ s(function(t, e) {
664
+ Z = -1, t.append("defs").append("marker").attr("id", e + "-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");
665
+ }, "initGraphics"), j = {
666
+ drawRect: K,
667
+ drawCircle: ot,
668
+ drawSection: Wt,
669
+ drawText: ct,
670
+ drawLabel: zt,
671
+ drawTask: Ot,
672
+ drawBackgroundRect: Yt,
673
+ initGraphics: qt
674
+ }, Ht = /* @__PURE__ */ s(function(t) {
675
+ Object.keys(t).forEach(function(a) {
676
+ $[a] = t[a];
677
+ });
678
+ }, "setConf"), E = {}, W = 0;
679
+ function ut(t) {
680
+ const e = R().journey, a = e.maxLabelWidth;
681
+ W = 0;
682
+ let f = 60;
683
+ Object.keys(E).forEach((i) => {
684
+ const u = E[i].color, p = {
685
+ cx: 20,
686
+ cy: f,
687
+ r: 7,
688
+ fill: u,
689
+ stroke: "#000",
690
+ pos: E[i].position
691
+ };
692
+ j.drawCircle(t, p);
693
+ let o = t.append("text").attr("visibility", "hidden").text(i);
694
+ const g = o.node().getBoundingClientRect().width;
695
+ o.remove();
696
+ let m = [];
697
+ if (g <= a)
698
+ m = [i];
699
+ else {
700
+ const x = i.split(" ");
701
+ let h = "";
702
+ o = t.append("text").attr("visibility", "hidden"), x.forEach((r) => {
703
+ const n = h ? `${h} ${r}` : r;
704
+ if (o.text(n), o.node().getBoundingClientRect().width > a) {
705
+ if (h && m.push(h), h = r, o.text(r), o.node().getBoundingClientRect().width > a) {
706
+ let y = "";
707
+ for (const d of r)
708
+ y += d, o.text(y + "-"), o.node().getBoundingClientRect().width > a && (m.push(y.slice(0, -1) + "-"), y = d);
709
+ h = y;
710
+ }
711
+ } else
712
+ h = n;
713
+ }), h && m.push(h), o.remove();
714
+ }
715
+ m.forEach((x, h) => {
716
+ const r = {
717
+ x: 40,
718
+ y: f + 7 + h * 20,
719
+ fill: "#666",
720
+ text: x,
721
+ textMargin: e.boxTextMargin ?? 5
722
+ }, l = j.drawText(t, r).node().getBoundingClientRect().width;
723
+ l > W && l > e.leftMargin - l && (W = l);
724
+ }), f += Math.max(20, m.length * 20);
725
+ });
726
+ }
727
+ s(ut, "drawActorLegend");
728
+ var $ = R().journey, P = 0, Xt = /* @__PURE__ */ s(function(t, e, a, f) {
729
+ const i = R(), u = i.journey.titleColor, p = i.journey.titleFontSize, o = i.journey.titleFontFamily, g = i.securityLevel;
730
+ let m;
731
+ g === "sandbox" && (m = X("#i" + e));
732
+ const x = g === "sandbox" ? X(m.nodes()[0].contentDocument.body) : X("body");
733
+ S.init();
734
+ const h = x.select("#" + e);
735
+ j.initGraphics(h, e);
736
+ const r = f.db.getTasks(), n = f.db.getDiagramTitle(), l = f.db.getActors();
737
+ for (const C in E)
738
+ delete E[C];
739
+ let y = 0;
740
+ l.forEach((C) => {
741
+ E[C] = {
742
+ color: $.actorColours[y % $.actorColours.length],
743
+ position: y
744
+ }, y++;
745
+ }), ut(h), P = $.leftMargin + W, S.insert(0, 0, P, Object.keys(E).length * 50), Gt(h, r, 0, e);
746
+ const d = S.getBounds();
747
+ n && h.append("text").text(n).attr("x", P).attr("font-size", p).attr("font-weight", "bold").attr("y", 25).attr("fill", u).attr("font-family", o);
748
+ const c = d.stopy - d.starty + 2 * $.diagramMarginY, v = P + d.stopx + 2 * $.diagramMarginX;
749
+ $t(h, c, v, $.useMaxWidth), h.append("line").attr("x1", P).attr("y1", $.height * 4).attr("x2", v - P - 4).attr("y2", $.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + e + "-arrowhead)");
750
+ const k = n ? 70 : 0;
751
+ h.attr("viewBox", `${d.startx} -25 ${v} ${c + k}`), h.attr("preserveAspectRatio", "xMinYMin meet"), h.attr("height", c + k + 25);
752
+ }, "draw"), S = {
753
+ data: {
754
+ startx: void 0,
755
+ stopx: void 0,
756
+ starty: void 0,
757
+ stopy: void 0
758
+ },
759
+ verticalPos: 0,
760
+ sequenceItems: [],
761
+ init: /* @__PURE__ */ s(function() {
762
+ this.sequenceItems = [], this.data = {
763
+ startx: void 0,
764
+ stopx: void 0,
765
+ starty: void 0,
766
+ stopy: void 0
767
+ }, this.verticalPos = 0;
768
+ }, "init"),
769
+ updateVal: /* @__PURE__ */ s(function(t, e, a, f) {
770
+ t[e] === void 0 ? t[e] = a : t[e] = f(a, t[e]);
771
+ }, "updateVal"),
772
+ updateBounds: /* @__PURE__ */ s(function(t, e, a, f) {
773
+ const i = R().journey, u = this;
774
+ let p = 0;
775
+ function o(g) {
776
+ return /* @__PURE__ */ s(function(x) {
777
+ p++;
778
+ const h = u.sequenceItems.length - p + 1;
779
+ u.updateVal(x, "starty", e - h * i.boxMargin, Math.min), u.updateVal(x, "stopy", f + h * i.boxMargin, Math.max), u.updateVal(S.data, "startx", t - h * i.boxMargin, Math.min), u.updateVal(S.data, "stopx", a + h * i.boxMargin, Math.max), g !== "activation" && (u.updateVal(x, "startx", t - h * i.boxMargin, Math.min), u.updateVal(x, "stopx", a + h * i.boxMargin, Math.max), u.updateVal(S.data, "starty", e - h * i.boxMargin, Math.min), u.updateVal(S.data, "stopy", f + h * i.boxMargin, Math.max));
780
+ }, "updateItemBounds");
781
+ }
782
+ s(o, "updateFn"), this.sequenceItems.forEach(o());
783
+ }, "updateBounds"),
784
+ insert: /* @__PURE__ */ s(function(t, e, a, f) {
785
+ const i = Math.min(t, a), u = Math.max(t, a), p = Math.min(e, f), o = Math.max(e, f);
786
+ this.updateVal(S.data, "startx", i, Math.min), this.updateVal(S.data, "starty", p, Math.min), this.updateVal(S.data, "stopx", u, Math.max), this.updateVal(S.data, "stopy", o, Math.max), this.updateBounds(i, p, u, o);
787
+ }, "insert"),
788
+ bumpVerticalPos: /* @__PURE__ */ s(function(t) {
789
+ this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
790
+ }, "bumpVerticalPos"),
791
+ getVerticalPos: /* @__PURE__ */ s(function() {
792
+ return this.verticalPos;
793
+ }, "getVerticalPos"),
794
+ getBounds: /* @__PURE__ */ s(function() {
795
+ return this.data;
796
+ }, "getBounds")
797
+ }, G = $.sectionFills, st = $.sectionColours, Gt = /* @__PURE__ */ s(function(t, e, a, f) {
798
+ const i = R().journey;
799
+ let u = "";
800
+ const p = i.height * 2 + i.diagramMarginY, o = a + p;
801
+ let g = 0, m = "#CCC", x = "black", h = 0;
802
+ for (const [r, n] of e.entries()) {
803
+ if (u !== n.section) {
804
+ m = G[g % G.length], h = g % G.length, x = st[g % st.length];
805
+ let y = 0;
806
+ const d = n.section;
807
+ for (let v = r; v < e.length && e[v].section == d; v++)
808
+ y = y + 1;
809
+ const c = {
810
+ x: r * i.taskMargin + r * i.width + P,
811
+ y: 50,
812
+ text: n.section,
813
+ fill: m,
814
+ num: h,
815
+ colour: x,
816
+ taskCount: y
817
+ };
818
+ j.drawSection(t, c, i), u = n.section, g++;
819
+ }
820
+ const l = n.people.reduce((y, d) => (E[d] && (y[d] = E[d]), y), {});
821
+ n.x = r * i.taskMargin + r * i.width + P, n.y = o, n.width = i.diagramMarginX, n.height = i.diagramMarginY, n.colour = x, n.fill = m, n.num = h, n.actors = l, j.drawTask(t, n, i, f), S.insert(n.x, n.y, n.x + n.width + i.taskMargin, 450);
822
+ }
823
+ }, "drawTasks"), at = {
824
+ setConf: Ht,
825
+ draw: Xt
826
+ }, ee = {
827
+ parser: Et,
828
+ db: nt,
829
+ renderer: at,
830
+ styles: jt,
831
+ init: /* @__PURE__ */ s((t) => {
832
+ at.setConf(t.journey), nt.clear();
833
+ }, "init")
834
+ };
835
+ export {
836
+ ee as diagram
837
+ };