@layers-app/editor 0.0.23 → 0.0.27

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 (223) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +6 -44
  3. package/dist/index.js +2 -2
  4. package/dist/{layers.CGX7Piy7.js → layers.-XqzPqyO.js} +1 -1
  5. package/dist/{layers.D_MU5WlI.js → layers.-pZJVtr2.js} +1 -1
  6. package/dist/{layers.DXTPaWjN.js → layers.3JS7Upj0.js} +1 -1
  7. package/dist/{layers.CQv0GMRl.js → layers.44ZDFWK7.js} +1 -1
  8. package/dist/{layers.BBwDvE6l.js → layers.4utgKYyK.js} +1820 -1814
  9. package/dist/{layers.Dyqg_e4P.js → layers.5Z-wFY6j.js} +1 -1
  10. package/dist/{layers.CcJ28sUd.js → layers.5xC3et_d.js} +1 -1
  11. package/dist/{layers.Bv0tGvGl.js → layers.6JCbFAj6.js} +1 -1
  12. package/dist/{layers.CClfR9Rs.js → layers.6h3bxK1a.js} +10346 -11483
  13. package/dist/{layers.BUSnd1Ro.js → layers.77-S3nTe.js} +1 -1
  14. package/dist/{layers.CDzPpnhN.js → layers.7M4UNyUU.js} +5 -5
  15. package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
  16. package/dist/{layers.Lhl12ohc.js → layers.B-9i7OJs.js} +1 -1
  17. package/dist/{layers.Dklz2JqP.js → layers.B0aPUUi4.js} +1 -1
  18. package/dist/{layers.N4wL2Xyj.js → layers.B2ffo7VT.js} +85 -85
  19. package/dist/{layers.DdTLZZKb.js → layers.B4b_0r0_.js} +6 -6
  20. package/dist/{layers.Ckbp-T9r.js → layers.B5W9KS-1.js} +1 -1
  21. package/dist/{layers.Cl9Tl2nd.js → layers.B8VoPWTl.js} +1 -1
  22. package/dist/{layers.B9zrmkst.js → layers.B8xcwXZK.js} +1 -1
  23. package/dist/{layers.gaT5_-NN.js → layers.B8z2WMpW.js} +1 -1
  24. package/dist/{layers.DHbdkCCU.js → layers.B9r2ZtSh.js} +1 -1
  25. package/dist/{layers.-rS-aTo2.js → layers.BF9fE7C8.js} +1 -1
  26. package/dist/{layers.ClQj75nc.js → layers.BFUqtCtE.js} +1 -1
  27. package/dist/{layers.D1cZq8tq.js → layers.BHT7hu0K.js} +3 -3
  28. package/dist/{layers.B-6oGNjd.js → layers.BJvR0g9w.js} +1 -1
  29. package/dist/{layers.Blho0qwc.js → layers.BKes9zCG.js} +1 -1
  30. package/dist/{layers.D3Hkinja.js → layers.BM9aR6Wc.js} +1 -1
  31. package/dist/{layers.D2q8ZYi2.js → layers.BNClpYmo.js} +15 -15
  32. package/dist/{layers.BO3dqWyO.js → layers.BPRzsxsG.js} +1 -1
  33. package/dist/{layers.C6Rn8zoI.js → layers.BPUdwzAa.js} +1 -1
  34. package/dist/{layers.DwLw5o0M.js → layers.BPku3sr2.js} +1 -1
  35. package/dist/{layers.gzGcAwbO.js → layers.BQZvK7Ld.js} +3 -3
  36. package/dist/{layers.C0bumYdC.js → layers.BSE8QsGw.js} +1 -1
  37. package/dist/{layers.lLRqycMO.js → layers.BSd-2_I0.js} +1 -1
  38. package/dist/{layers.Dbuivk7d.js → layers.BTI5U3cj.js} +1 -1
  39. package/dist/{layers.BYVHkqLR.js → layers.BTSxIBNW.js} +1 -1
  40. package/dist/{layers.CBXpUMze.js → layers.BTczMT9O.js} +35 -35
  41. package/dist/{layers.BEE5yqs5.js → layers.BWjXKJlb.js} +1 -1
  42. package/dist/{layers.BIVmclKv.js → layers.BXQIrASO.js} +1 -1
  43. package/dist/{layers.B9NSFeaj.js → layers.BXf1B1fk.js} +1 -1
  44. package/dist/{layers.D7HvMBb6.js → layers.BYlHLDae.js} +1 -1
  45. package/dist/{layers.2ODaB2Pd.js → layers.BZ2OjyG_.js} +1 -1
  46. package/dist/{layers.B_Hf0SF-.js → layers.BZGMS_YL.js} +517 -517
  47. package/dist/{layers.Ym7pRGM7.js → layers.B_Ifrq8A.js} +3 -3
  48. package/dist/{layers.DElpVOY-.js → layers.B_bguWvG.js} +1 -1
  49. package/dist/{layers.B39TZ2WV.js → layers.BaDLTNuw.js} +1 -1
  50. package/dist/{layers.B3odqoHb.js → layers.BbNPJK3G.js} +1 -1
  51. package/dist/{layers.BFLg4UGe.js → layers.BbX2Gt06.js} +1 -1
  52. package/dist/{layers.DCvUAfE1.js → layers.BcC4jCYQ.js} +1 -1
  53. package/dist/{layers.B64g6Zx2.js → layers.BcND7kmj.js} +1 -1
  54. package/dist/{layers.L_XjkGw6.js → layers.BcsSvL4N.js} +16 -16
  55. package/dist/layers.Bdma-bi1.js +1 -0
  56. package/dist/{layers.CPV5PaJ7.js → layers.BgH53BCx.js} +1 -1
  57. package/dist/{layers.C5rttXXy.js → layers.Bg_eB6d4.js} +4 -4
  58. package/dist/{layers.CvJxfPxo.js → layers.BhbIzB4V.js} +1 -1
  59. package/dist/{layers.k2UyvrHI.js → layers.BiFjyQe_.js} +1 -1
  60. package/dist/{layers.D9A031XO.js → layers.Bk2R9iWo.js} +2 -2
  61. package/dist/{layers.CTmkjIN6.js → layers.Bo8XWCDb.js} +1 -1
  62. package/dist/{layers.hkFN-BS0.js → layers.BoOJNRFl.js} +1 -1
  63. package/dist/{layers.CR10RAJi.js → layers.Bpk4Ctcr.js} +2 -2
  64. package/dist/{layers.UbqG2dp_.js → layers.BrNJ0Pz_.js} +1 -1
  65. package/dist/{layers.BUkDq4ln.js → layers.Brul_6T5.js} +1 -1
  66. package/dist/{layers.LOjND5R4.js → layers.Bsu1AT8z.js} +2 -2
  67. package/dist/{layers.CmHSmrZm.js → layers.BthCFGNg.js} +1 -1
  68. package/dist/{layers.CHHqQlm1.js → layers.Bti2UxbF.js} +1 -1
  69. package/dist/{layers.CMS1o_sE.js → layers.BuhxW9HQ.js} +1 -1
  70. package/dist/{layers.C3K_Whht.js → layers.BwnZ1xpT.js} +1 -1
  71. package/dist/{layers.C1KhBpGU.js → layers.C-B2iYxw.js} +1 -1
  72. package/dist/{layers.DMvWe0pJ.js → layers.C-PLaaW1.js} +2 -2
  73. package/dist/{layers.Bbl6qitU.js → layers.C1I8OftT.js} +1 -1
  74. package/dist/{layers.Cn6OfRlw.js → layers.C2Tygpbi.js} +1 -1
  75. package/dist/{layers.B8i9d7Qz.js → layers.C4DqDLg-.js} +38 -32
  76. package/dist/{layers.DrtkQKK7.js → layers.C5aZwGJ8.js} +1 -1
  77. package/dist/{layers.oFAtdeQ1.js → layers.C5htK5yR.js} +3 -3
  78. package/dist/{layers.D90-hSDT.js → layers.C6CCN2wS.js} +2 -2
  79. package/dist/{layers.CH23k4XD.js → layers.C76T9ib9.js} +1 -1
  80. package/dist/{layers.OEP2K3db.js → layers.C8KErGD4.js} +1 -1
  81. package/dist/{layers.BCFHxkpM.js → layers.C9-yhnQ_.js} +1 -1
  82. package/dist/{layers.Dol0x5Jd.js → layers.CA01MCW7.js} +1 -1
  83. package/dist/{layers.Ba97nTEK.js → layers.CBAr-ccc.js} +1 -1
  84. package/dist/{layers.BST6tR9a.js → layers.CBHnRD32.js} +1 -1
  85. package/dist/{layers.BDxQSquK.js → layers.CHRstlUi.js} +1 -1
  86. package/dist/{layers.DQCPMqIN.js → layers.CHyEShQb.js} +1 -1
  87. package/dist/layers.CHzF8aN-.js +118 -0
  88. package/dist/{layers.Y41CVpLS.js → layers.CL0btCq5.js} +33 -33
  89. package/dist/layers.CLPJWTr_.js +1 -0
  90. package/dist/{layers.DKPzrygv.js → layers.CNohXvTM.js} +1 -1
  91. package/dist/{layers.HcI9cOEd.js → layers.COVT50CF.js} +47 -47
  92. package/dist/{layers.B6UkAKu5.js → layers.CP74FqYL.js} +78 -78
  93. package/dist/{layers.CnD3z0eZ.js → layers.CPIGYQzV.js} +1 -1
  94. package/dist/{layers.DIrkcLlA.js → layers.CVJ3dtpa.js} +63 -63
  95. package/dist/{layers.CEXVJbhn.js → layers.CVJGf_dS.js} +1 -1
  96. package/dist/{layers.BZcZF6Ct.js → layers.CXyre7fi.js} +1 -1
  97. package/dist/{layers.CDLdte-o.js → layers.CYAKjsCY.js} +1 -1
  98. package/dist/{layers.BPnpanwd.js → layers.CZuNERKr.js} +1 -1
  99. package/dist/{layers.ClaqpFnu.js → layers.C_0V8gfT.js} +2 -2
  100. package/dist/layers.C_LpHycI.js +122 -0
  101. package/dist/{layers.C_dOgKfE.js → layers.CcUrvj1L.js} +1 -1
  102. package/dist/{layers.BD5uUnI2.js → layers.CewW7kYw.js} +279 -279
  103. package/dist/{layers.CnloMtKN.js → layers.CgEWPiYB.js} +14 -14
  104. package/dist/{layers.C-G7-Jg3.js → layers.Ch4JHkKx.js} +1 -1
  105. package/dist/{layers.CSjWzlk9.js → layers.Cj303CSV.js} +1 -1
  106. package/dist/{layers.Dg8Wbn90.js → layers.Cju8Sa_Q.js} +1 -1
  107. package/dist/{layers.DxGDxkXA.js → layers.Cjxt8nIg.js} +47 -47
  108. package/dist/{layers.D2vOkfMK.js → layers.Cllpx3ld.js} +1 -1
  109. package/dist/{layers.DDRgaMwu.js → layers.Cpo4EON4.js} +1 -1
  110. package/dist/layers.CrLpnenG.js +1 -0
  111. package/dist/{layers.BXGiOI1Z.js → layers.CruBr5KJ.js} +1 -1
  112. package/dist/{layers.FstVqdQC.js → layers.Cs3lCndw.js} +151 -151
  113. package/dist/{layers.Bfd5bOAD.js → layers.Csx06TKa.js} +1 -1
  114. package/dist/{layers.Cx14IKzN.js → layers.CtNxT4bX.js} +1 -1
  115. package/dist/{layers.BDhuxbhX.js → layers.Ctkab7zE.js} +1 -1
  116. package/dist/{layers.DARK07JA.js → layers.CtyUp91J.js} +1 -1
  117. package/dist/{layers.BjZInKjA.js → layers.CwbKR3tp.js} +2 -2
  118. package/dist/{layers.gRKbOYG-.js → layers.CxEkiqDR.js} +26 -26
  119. package/dist/{layers.DGZUGztZ.js → layers.D-pR7pmV.js} +29 -29
  120. package/dist/{layers.ChykDTOy.js → layers.D0tiOhqA.js} +1 -1
  121. package/dist/{layers.CGc04km7.js → layers.D3LfwBOp.js} +1 -1
  122. package/dist/{layers.cp645rbn.js → layers.D3Mywbyx.js} +1 -1
  123. package/dist/{layers.I5-pSyca.js → layers.D4qPD37W.js} +1 -1
  124. package/dist/{layers.BhM2iCwB.js → layers.D5_CFDU_.js} +1 -1
  125. package/dist/{layers.DhiFm4jW.js → layers.D63Vq18T.js} +1 -1
  126. package/dist/{layers.BdanmQPF.js → layers.D6IcbDJa.js} +1 -1
  127. package/dist/{layers.B0pdr1hX.js → layers.D6_cQf9O.js} +33 -33
  128. package/dist/{layers.kthR742N.js → layers.D6a6qxmr.js} +1 -1
  129. package/dist/layers.D7xAhxaO.js +6 -0
  130. package/dist/{layers.BuQ1nJmP.js → layers.D8qe0Siv.js} +1 -1
  131. package/dist/{layers.PO65UmTA.js → layers.DAUJf380.js} +1 -1
  132. package/dist/{layers.Bwpn7zKE.js → layers.DBBjhYox.js} +1 -1
  133. package/dist/{layers.5BbX0Xoz.js → layers.DBZ4nt4A.js} +57 -57
  134. package/dist/{layers.BJMMuP5r.js → layers.DBb6ZTQb.js} +1 -1
  135. package/dist/{layers.B0EkntbT.js → layers.DCZZx-_I.js} +1 -1
  136. package/dist/{layers.CphCG076.js → layers.DCpKUlgF.js} +1 -1
  137. package/dist/{layers.rRMBW9ET.js → layers.DDkR5Ts6.js} +251 -251
  138. package/dist/{layers.BPe9NQzP.js → layers.DEcSY6CT.js} +1 -1
  139. package/dist/{layers.DYx3Ot6h.js → layers.DFHjT2lH.js} +1 -1
  140. package/dist/{layers.DXaSAlDN.js → layers.DGECi3uy.js} +1 -1
  141. package/dist/{layers.PhLwHKUM.js → layers.DHeN0kJF.js} +1 -1
  142. package/dist/{layers.C5uR7AiN.js → layers.DIHGOC7q.js} +1 -1
  143. package/dist/{layers.ChPHYv68.js → layers.DIisKDqA.js} +1 -1
  144. package/dist/{layers.tbRLuldN.js → layers.DKAO_t2e.js} +1 -1
  145. package/dist/layers.DKDhSm3W.js +1 -0
  146. package/dist/{layers.CwPFdFUT.js → layers.DL7GcZkM.js} +1 -1
  147. package/dist/{layers.I-MG0ir4.js → layers.DLBoqOPY.js} +7051 -7014
  148. package/dist/{layers.iw01AOuQ.js → layers.DMKRtGOO.js} +96 -96
  149. package/dist/{layers.BLB-feoT.js → layers.DOxdGhXS.js} +1 -1
  150. package/dist/{layers.DeB3waPT.js → layers.DQ2Xcr60.js} +1 -1
  151. package/dist/layers.DRJbljY3.js +2 -0
  152. package/dist/{layers.Bk2PdkMX.js → layers.DSv_J9bL.js} +1 -1
  153. package/dist/{layers.DAx0hT2g.js → layers.DUrMIw9R.js} +1 -1
  154. package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
  155. package/dist/{layers.D18RSmmQ.js → layers.DV-7KP2x.js} +1 -1
  156. package/dist/layers.DWAHzpeJ.js +65 -0
  157. package/dist/{layers.Ck0iJfoW.js → layers.D_Wzp8Cn.js} +1 -1
  158. package/dist/{layers.BFOl7cA-.js → layers.DakFhu3n.js} +1 -1
  159. package/dist/{layers.BBU3ik5q.js → layers.DdfiL5kD.js} +3 -3
  160. package/dist/{layers.DEfJs03Z.js → layers.DeDtDGVu.js} +1 -1
  161. package/dist/{layers.DalYdEkL.js → layers.DfaL2q8R.js} +4 -4
  162. package/dist/{layers.D68FZk66.js → layers.DfnEKrUj.js} +1 -1
  163. package/dist/{layers.BkMfeJ9R.js → layers.DixGTGe2.js} +1 -1
  164. package/dist/{layers.Dyor8Hot.js → layers.Dj9C8dFr.js} +28 -28
  165. package/dist/{layers.Ci0x4aAi.js → layers.DlsG5gru.js} +5 -5
  166. package/dist/{layers.DFd9A85i.js → layers.Dp-Xbgxy.js} +4 -4
  167. package/dist/{layers.BLSqqbWP.js → layers.DpFjxIHM.js} +4 -4
  168. package/dist/{layers.x6Qk2Mwl.js → layers.DrLqWw04.js} +1 -1
  169. package/dist/{layers.Dxrm0nEM.js → layers.DsT1BxXu.js} +140 -140
  170. package/dist/{layers.Ci0QS82_.js → layers.Dt7NdfDn.js} +1 -1
  171. package/dist/{layers.BoabOlrX.js → layers.Duxds2E7.js} +1 -1
  172. package/dist/{layers.DsAtBUs-.js → layers.DxXZMHl1.js} +5 -5
  173. package/dist/{layers.BvZFIFgz.js → layers.Dz0pDzZ2.js} +1 -1
  174. package/dist/{layers.Cp82yltX.js → layers.DzSwrBkm.js} +1 -1
  175. package/dist/{layers.DO-G3uLL.js → layers.DzXwulE9.js} +1 -1
  176. package/dist/layers.E0TqyNY6.js +202 -0
  177. package/dist/{layers.CiNAQOA-.js → layers.EdniTKSB.js} +2 -2
  178. package/dist/{layers.Bz0ApNUe.js → layers.IYUvfd4q.js} +14 -14
  179. package/dist/{layers.ChAMqLmE.js → layers.JIqu3EuS.js} +1 -1
  180. package/dist/{layers.CCRe_IA7.js → layers.JoXvoQtK.js} +1 -1
  181. package/dist/{layers.CeMe5scF.js → layers.LKsuEHeo.js} +1 -1
  182. package/dist/{layers.Cxmncz59.js → layers.LW-EdoNU.js} +1 -1
  183. package/dist/{layers.p9hSNB6N.js → layers.NLUe-Zd7.js} +1 -1
  184. package/dist/{layers.x6ioP3u0.js → layers.OG2GCG5d.js} +1 -1
  185. package/dist/layers.O_QfH9Tw.js +55 -0
  186. package/dist/{layers.B-ie1_cm.js → layers.Q61rVzjQ.js} +1 -1
  187. package/dist/{layers.ChJyurjQ.js → layers.QMSF2I3x.js} +1 -1
  188. package/dist/{layers.C51kZnWr.js → layers.RC04NTdF.js} +1 -1
  189. package/dist/{layers.D-ZYFolm.js → layers.X2Q_jYIN.js} +1 -1
  190. package/dist/{layers.CZh7NZyl.js → layers.Y9024OPf.js} +1 -1
  191. package/dist/{layers.-RxAm5pH.js → layers.Zcvgtj43.js} +47 -47
  192. package/dist/{layers.DK_t52oS.js → layers.dE10rGCq.js} +390 -390
  193. package/dist/{layers.c_QDfgff.js → layers.dJ7Y_uj4.js} +4 -4
  194. package/dist/layers.dbGRsALw.js +10 -0
  195. package/dist/{layers.kY3ZYtED.js → layers.gQj2seW8.js} +1 -1
  196. package/dist/{layers.BpXiFzvR.js → layers.gnhLHWor.js} +1 -1
  197. package/dist/{layers.CO4NHmK3.js → layers.iZHGKF34.js} +1 -1
  198. package/dist/{layers.CZMy0ug4.js → layers.k9xSs9fH.js} +1 -1
  199. package/dist/{layers.BBB7YGK1.js → layers.kuAa_osE.js} +1 -1
  200. package/dist/{layers.CR4riLSc.js → layers.nK8yMUfw.js} +639 -639
  201. package/dist/{layers.BHDiP2sq.js → layers.oeHNlcSJ.js} +1482 -1482
  202. package/dist/{layers.WsdOSV4y.js → layers.oyFM1DlU.js} +1 -1
  203. package/dist/{layers.DhzTwBn5.js → layers.sctyB8h-.js} +1 -1
  204. package/dist/{layers.Ch7C0MR9.js → layers.uim2_WMD.js} +1 -1
  205. package/dist/layers.wKm27PFc.js +8 -0
  206. package/dist/{layers.dqI-yLmM.js → layers.wQvpu0z-.js} +1 -1
  207. package/dist/{layers.paz6tc0L.js → layers.wpRKShXC.js} +1 -1
  208. package/dist/{layers.Dzc83sE7.js → layers.y6ChlfJ8.js} +1 -1
  209. package/dist/{layers.CqM3rL4-.js → layers.zOav7lS3.js} +1 -1
  210. package/package.json +1 -4
  211. package/dist/layers.BK01wvsE.js +0 -10
  212. package/dist/layers.BQLZhz6B.js +0 -6
  213. package/dist/layers.BUsBCyiL.js +0 -202
  214. package/dist/layers.BkjjkAwW.js +0 -2
  215. package/dist/layers.BwfB_nzW.js +0 -8
  216. package/dist/layers.CQXDzk5h.js +0 -1
  217. package/dist/layers.CeVpKhli.js +0 -122
  218. package/dist/layers.DTDpNGfk.js +0 -1
  219. package/dist/layers.Dk9dbz6F.js +0 -118
  220. package/dist/layers.DtoCH9Nn.js +0 -1
  221. package/dist/layers.DzaH7mDC.js +0 -65
  222. package/dist/layers.Tatx7z0m.js +0 -55
  223. package/dist/layers.h0tSRttU.js +0 -1
@@ -1,11 +1,11 @@
1
- import { s as J, d as M, p as Q, D as X, a as H, b as Z, S as F, c as I } from "./layers.gRKbOYG-.js";
1
+ import { s as J, d as B, p as Q, D as X, a as H, b as Z, S as F, c as I } from "./layers.CxEkiqDR.js";
2
2
  import { G as tt } from "./layers.C7lIplJU.js";
3
- import { l as E, g, d as x, u as et, e as ot, j as w } from "./layers.BBwDvE6l.js";
4
- import { r as st } from "./layers.D1cZq8tq.js";
5
- import "./layers.I-MG0ir4.js";
3
+ import { l as E, g, d as x, u as et, e as ot, j as w } from "./layers.4utgKYyK.js";
4
+ import { r as st } from "./layers.BHT7hu0K.js";
5
+ import "./layers.DLBoqOPY.js";
6
6
  import "lodash-es";
7
7
  import "./layers.D4fGb2cV.js";
8
- const h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", u = "statediagram", dt = "state", Et = `${u}-${dt}`, U = "transition", St = "note", Tt = "note-edge", pt = `${U} ${Tt}`, ut = `${u}-${St}`, _t = "cluster", ft = `${u}-${_t}`, Dt = "cluster-alt", bt = `${u}-${Dt}`, V = "parent", Y = "note", At = "state", N = "----", ht = `${N}${Y}`, v = `${N}${V}`, W = "fill:none", z = "fill: #333", j = "c", q = "text", K = "normal";
8
+ const h = "rect", C = "rectWithTitle", nt = "start", ct = "end", it = "divider", rt = "roundedWithTitle", lt = "note", at = "noteGroup", _ = "statediagram", dt = "state", Et = `${_}-${dt}`, U = "transition", St = "note", Tt = "note-edge", pt = `${U} ${Tt}`, _t = `${_}-${St}`, ut = "cluster", Dt = `${_}-${ut}`, bt = "cluster-alt", ft = `${_}-${bt}`, V = "parent", Y = "note", At = "state", N = "----", ht = `${N}${Y}`, M = `${N}${V}`, W = "fill:none", z = "fill: #333", j = "c", q = "text", K = "normal";
9
9
  let y = {}, d = 0;
10
10
  const yt = function(t) {
11
11
  const n = Object.keys(t);
@@ -22,17 +22,17 @@ function R(t = "", n = 0, e = "", c = N) {
22
22
  return `${At}-${t}${i}-${n}`;
23
23
  }
24
24
  const A = (t, n, e, c, i, r) => {
25
- const o = e.id, _ = $t(c[o]);
25
+ const o = e.id, u = $t(c[o]);
26
26
  if (o !== "root") {
27
27
  let T = h;
28
28
  e.start === !0 && (T = nt), e.start === !1 && (T = ct), e.type !== H && (T = e.type), y[o] || (y[o] = {
29
29
  id: o,
30
30
  shape: T,
31
31
  description: w.sanitizeText(o, g()),
32
- classes: `${_} ${Et}`
32
+ classes: `${u} ${Et}`
33
33
  });
34
34
  const s = y[o];
35
- e.description && (Array.isArray(s.description) ? (s.shape = C, s.description.push(e.description)) : s.description.length > 0 ? (s.shape = C, s.description === o ? s.description = [e.description] : s.description = [s.description, e.description]) : (s.shape = h, s.description = e.description), s.description = w.sanitizeTextOrArray(s.description, g())), s.description.length === 1 && s.shape === C && (s.shape = h), !s.type && e.doc && (E.info("Setting cluster for ", o, G(e)), s.type = "group", s.dir = G(e), s.shape = e.type === Z ? it : rt, s.classes = s.classes + " " + ft + " " + (r ? bt : ""));
35
+ e.description && (Array.isArray(s.description) ? (s.shape = C, s.description.push(e.description)) : s.description.length > 0 ? (s.shape = C, s.description === o ? s.description = [e.description] : s.description = [s.description, e.description]) : (s.shape = h, s.description = e.description), s.description = w.sanitizeTextOrArray(s.description, g())), s.description.length === 1 && s.shape === C && (s.shape = h), !s.type && e.doc && (E.info("Setting cluster for ", o, G(e)), s.type = "group", s.dir = G(e), s.shape = e.type === Z ? it : rt, s.classes = s.classes + " " + Dt + " " + (r ? ft : ""));
36
36
  const p = {
37
37
  labelStyle: "",
38
38
  shape: s.shape,
@@ -55,7 +55,7 @@ const A = (t, n, e, c, i, r) => {
55
55
  labelStyle: "",
56
56
  shape: lt,
57
57
  labelText: e.note.text,
58
- classes: ut,
58
+ classes: _t,
59
59
  // useHtmlLabels: false,
60
60
  style: "",
61
61
  // styles.style,
@@ -71,17 +71,17 @@ const A = (t, n, e, c, i, r) => {
71
71
  classes: s.classes,
72
72
  style: "",
73
73
  // styles.style,
74
- id: o + v,
74
+ id: o + M,
75
75
  domId: R(o, d, V),
76
76
  type: "group",
77
77
  padding: 0
78
78
  //getConfig().flowchart.padding
79
79
  };
80
80
  d++;
81
- const f = o + v;
82
- t.setNode(f, a), t.setNode(l.id, l), t.setNode(o, p), t.setParent(o, f), t.setParent(l.id, f);
83
- let S = o, D = l.id;
84
- e.note.position === "left of" && (S = l.id, D = o), t.setEdge(S, D, {
81
+ const D = o + M;
82
+ t.setNode(D, a), t.setNode(l.id, l), t.setNode(o, p), t.setParent(o, D), t.setParent(l.id, D);
83
+ let S = o, b = l.id;
84
+ e.note.position === "left of" && (S = l.id, b = o), t.setEdge(S, b, {
85
85
  arrowhead: "none",
86
86
  arrowType: "",
87
87
  style: W,
@@ -108,7 +108,7 @@ const A = (t, n, e, c, i, r) => {
108
108
  case F:
109
109
  {
110
110
  A(t, n, o.state1, c, i, r), A(t, n, o.state2, c, i, r);
111
- const _ = {
111
+ const u = {
112
112
  id: "edge" + d,
113
113
  arrowhead: "normal",
114
114
  arrowTypeEnd: "arrow_barb",
@@ -121,7 +121,7 @@ const A = (t, n, e, c, i, r) => {
121
121
  thickness: K,
122
122
  classes: U
123
123
  };
124
- t.setEdge(o.state1.id, o.state2.id, _, d), d++;
124
+ t.setEdge(o.state1.id, o.state2.id, u, d), d++;
125
125
  }
126
126
  break;
127
127
  }
@@ -136,7 +136,7 @@ const A = (t, n, e, c, i, r) => {
136
136
  return e;
137
137
  }, Ct = async function(t, n, e, c) {
138
138
  E.info("Drawing state diagram (v2)", n), y = {}, c.db.getDirection();
139
- const { securityLevel: i, state: r } = g(), o = r.nodeSpacing || 50, _ = r.rankSpacing || 50;
139
+ const { securityLevel: i, state: r } = g(), o = r.nodeSpacing || 50, u = r.rankSpacing || 50;
140
140
  E.info(c.db.getRootDocV2()), c.db.extract(c.db.getRootDocV2()), E.info(c.db.getRootDocV2());
141
141
  const T = c.db.getStates(), s = new tt({
142
142
  multigraph: !0,
@@ -144,7 +144,7 @@ const A = (t, n, e, c, i, r) => {
144
144
  }).setGraph({
145
145
  rankdir: G(c.db.getRootDocV2()),
146
146
  nodesep: o,
147
- ranksep: _,
147
+ ranksep: u,
148
148
  marginx: 8,
149
149
  marginy: 8
150
150
  }).setDefaultEdgeLabel(function() {
@@ -153,34 +153,34 @@ const A = (t, n, e, c, i, r) => {
153
153
  A(s, void 0, c.db.getRootDocV2(), T, c.db, !0);
154
154
  let p;
155
155
  i === "sandbox" && (p = x("#i" + n));
156
- const l = i === "sandbox" ? x(p.nodes()[0].contentDocument.body) : x("body"), a = l.select(`[id="${n}"]`), f = l.select("#" + n + " g");
157
- await st(f, s, ["barb"], u, n);
156
+ const l = i === "sandbox" ? x(p.nodes()[0].contentDocument.body) : x("body"), a = l.select(`[id="${n}"]`), D = l.select("#" + n + " g");
157
+ await st(D, s, ["barb"], _, n);
158
158
  const S = 8;
159
159
  et.insertTitle(a, "statediagramTitleText", r.titleTopMargin, c.db.getDiagramTitle());
160
- const D = a.node().getBBox(), L = D.width + S * 2, P = D.height + S * 2;
161
- a.attr("class", u);
160
+ const b = a.node().getBBox(), L = b.width + S * 2, P = b.height + S * 2;
161
+ a.attr("class", _);
162
162
  const O = a.node().getBBox();
163
163
  ot(a, P, L, r.useMaxWidth);
164
164
  const k = `${O.x - S} ${O.y - S} ${L} ${P}`;
165
165
  E.debug(`viewBox ${k}`), a.attr("viewBox", k);
166
166
  const m = document.querySelectorAll('[id="' + n + '"] .edgeLabel .label');
167
167
  for (const $ of m) {
168
- const B = $.getBBox(), b = document.createElementNS("http://www.w3.org/2000/svg", h);
169
- b.setAttribute("rx", 0), b.setAttribute("ry", 0), b.setAttribute("width", B.width), b.setAttribute("height", B.height), $.insertBefore(b, $.firstChild);
168
+ const v = $.getBBox(), f = document.createElementNS("http://www.w3.org/2000/svg", h);
169
+ f.setAttribute("rx", 0), f.setAttribute("ry", 0), f.setAttribute("width", v.width), f.setAttribute("height", v.height), $.insertBefore(f, $.firstChild);
170
170
  }
171
171
  }, Rt = {
172
172
  setConf: yt,
173
173
  getClasses: gt,
174
174
  draw: Ct
175
- }, Bt = {
175
+ }, vt = {
176
176
  parser: Q,
177
- db: M,
177
+ db: B,
178
178
  renderer: Rt,
179
179
  styles: J,
180
180
  init: (t) => {
181
- t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, M.clear();
181
+ t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, B.clear();
182
182
  }
183
183
  };
184
184
  export {
185
- Bt as diagram
185
+ vt as diagram
186
186
  };
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./layers.CBXpUMze.js"),R=require("./layers.DTDpNGfk.js");require("./layers.B8i9d7Qz.js");const Q=require("./layers.Blho0qwc.js");var G=function(){var t=function(p,n,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=n);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],o=[1,10],s=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},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},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"},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]],performAction:function(n,r,a,u,d,l,T){var _=l.length-1;switch(d){case 1:return l[_-1];case 2:this.$=[];break;case 3:l[_-1].push(l[_]),this.$=l[_-1];break;case 4:case 5:this.$=l[_];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(l[_].substr(6)),this.$=l[_].substr(6);break;case 9:this.$=l[_].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=l[_].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(l[_].substr(8)),this.$=l[_].substr(8);break;case 13:u.addTask(l[_-1],l[_]),this.$="task";break}},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:i,12:o,14:s,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:o,14:s,16:h,17:c,18:f},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])],defaultActions:{},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var a=new Error(n);throw a.hash=r,a}},parse:function(n){var r=this,a=[0],u=[],d=[null],l=[],T=this.table,_="",N=0,Z=0,lt=2,J=1,ot=l.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(C.yy[z]=this.yy[z]);x.setInput(n,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var O=x.yylloc;l.push(O);var ct=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(){var M;return M=u.pop()||x.lex()||J,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var b,E,v,Y,P={},B,$,K,j;;){if(E=a[a.length-1],this.defaultActions[E]?v=this.defaultActions[E]:((b===null||typeof b>"u")&&(b=ht()),v=T[E]&&T[E][b]),typeof v>"u"||!v.length||!v[0]){var W="";j=[];for(B in T[E])this.terminals_[B]&&B>lt&&j.push("'"+this.terminals_[B]+"'");x.showPosition?W="Parse error on line "+(N+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./layers.BTczMT9O.js"),R=require("./layers.DKDhSm3W.js");require("./layers.C4DqDLg-.js");const Q=require("./layers.BKes9zCG.js");var G=function(){var t=function(p,n,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=n);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],s=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},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},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"},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]],performAction:function(n,r,a,u,d,o,T){var _=o.length-1;switch(d){case 1:return o[_-1];case 2:this.$=[];break;case 3:o[_-1].push(o[_]),this.$=o[_-1];break;case 4:case 5:this.$=o[_];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[_].substr(6)),this.$=o[_].substr(6);break;case 9:this.$=o[_].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[_].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[_].substr(8)),this.$=o[_].substr(8);break;case 13:u.addTask(o[_-1],o[_]),this.$="task";break}},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:i,12:l,14:s,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:s,16:h,17:c,18:f},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])],defaultActions:{},parseError:function(n,r){if(r.recoverable)this.trace(n);else{var a=new Error(n);throw a.hash=r,a}},parse:function(n){var r=this,a=[0],u=[],d=[null],o=[],T=this.table,_="",N=0,Z=0,ot=2,J=1,lt=o.slice.call(arguments,1),x=Object.create(this.lexer),C={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(C.yy[z]=this.yy[z]);x.setInput(n,C.yy),C.yy.lexer=x,C.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var O=x.yylloc;o.push(O);var ct=x.options&&x.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ht(){var M;return M=u.pop()||x.lex()||J,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var b,E,v,Y,P={},B,$,K,j;;){if(E=a[a.length-1],this.defaultActions[E]?v=this.defaultActions[E]:((b===null||typeof b>"u")&&(b=ht()),v=T[E]&&T[E][b]),typeof v>"u"||!v.length||!v[0]){var W="";j=[];for(B in T[E])this.terminals_[B]&&B>ot&&j.push("'"+this.terminals_[B]+"'");x.showPosition?W="Parse error on line "+(N+1)+`:
2
2
  `+x.showPosition()+`
3
- Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on line "+(N+1)+": Unexpected "+(b==J?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(W,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:O,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+b);switch(v[0]){case 1:a.push(b),d.push(x.yytext),l.push(x.yylloc),a.push(v[1]),b=null,Z=x.yyleng,_=x.yytext,N=x.yylineno,O=x.yylloc;break;case 2:if($=this.productions_[v[1]][1],P.$=d[d.length-$],P._$={first_line:l[l.length-($||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-($||1)].first_column,last_column:l[l.length-1].last_column},ct&&(P._$.range=[l[l.length-($||1)].range[0],l[l.length-1].range[1]]),Y=this.performAction.apply(P,[_,Z,N,C.yy,v[1],d,l].concat(ot)),typeof Y<"u")return Y;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),l=l.slice(0,-1*$)),a.push(this.productions_[v[1]][0]),d.push(P.$),l.push(P._$),K=T[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
3
+ Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on line "+(N+1)+": Unexpected "+(b==J?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(W,{text:x.match,token:this.terminals_[b]||b,line:x.yylineno,loc:O,expected:j})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+b);switch(v[0]){case 1:a.push(b),d.push(x.yytext),o.push(x.yylloc),a.push(v[1]),b=null,Z=x.yyleng,_=x.yytext,N=x.yylineno,O=x.yylloc;break;case 2:if($=this.productions_[v[1]][1],P.$=d[d.length-$],P._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ct&&(P._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(P,[_,Z,N,C.yy,v[1],d,o].concat(lt)),typeof Y<"u")return Y;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[v[1]][0]),d.push(P.$),o.push(P._$),K=T[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(n,r){return this.yy=r||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var r=n.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var r=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),r=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+r+"^"},test_match:function(n,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var l in d)this[l]=d[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),l=0;l<d.length;l++)if(a=this._input.match(this.rules[d[l]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=l,this.options.backtrack_lexer){if(n=this.test_match(a,d[l]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,d[u]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},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],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}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const ut=G;let I="";const H=[],V=[],F=[],yt=function(){H.length=0,V.length=0,I="",F.length=0,k.clear()},ft=function(t){I=t,H.push(t)},dt=function(){return H},pt=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},gt=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},mt=function(t,e){const i=e.substr(1).split(":");let o=0,s=[];i.length===1?(o=Number(i[0]),s=[]):(o=Number(i[0]),s=i[1].split(","));const h=s.map(f=>f.trim()),c={section:I,type:I,people:h,task:t,score:o};F.push(c)},xt=function(t){const e={section:I,type:I,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,o]of F.entries())t(i),e=e&&o.processed;return e},kt=function(){return gt()},tt={getConfig:()=>k.getConfig().journey,clear:yt,setDiagramTitle:k.setDiagramTitle,getDiagramTitle:k.getDiagramTitle,setAccTitle:k.setAccTitle,getAccTitle:k.getAccTitle,setAccDescription:k.setAccDescription,getAccDescription:k.getAccDescription,addSection:ft,getSections:dt,getTasks:pt,addTask:mt,addTaskOrg:xt,getActors:kt},_t=t=>`.label {
5
+ `+r+"^"},test_match:function(n,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=n[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(a=this._input.match(this.rules[d[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(n=this.test_match(a,d[o]),n!==!1)return n;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(n=this.test_match(r,d[u]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},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],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}}};return p}();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g}();G.parser=G;const ut=G;let I="";const H=[],V=[],F=[],yt=function(){H.length=0,V.length=0,I="",F.length=0,k.clear()},ft=function(t){I=t,H.push(t)},dt=function(){return H},pt=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},gt=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},mt=function(t,e){const i=e.substr(1).split(":");let l=0,s=[];i.length===1?(l=Number(i[0]),s=[]):(l=Number(i[0]),s=i[1].split(","));const h=s.map(f=>f.trim()),c={section:I,type:I,people:h,task:t,score:l};F.push(c)},xt=function(t){const e={section:I,type:I,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},kt=function(){return gt()},tt={getConfig:()=>k.getConfig().journey,clear:yt,setDiagramTitle:k.setDiagramTitle,getDiagramTitle:k.getDiagramTitle,setAccTitle:k.setAccTitle,getAccTitle:k.getAccTitle,setAccDescription:k.setAccDescription,getAccDescription:k.getAccDescription,addSection:ft,getSections:dt,getTasks:pt,addTask:mt,addTaskOrg:xt,getActors:kt},_t=t=>`.label {
7
7
  font-family: 'trebuchet ms', verdana, arial, sans-serif;
8
8
  font-family: var(--mermaid-font-family);
9
9
  color: ${t.textColor};
@@ -136,4 +136,4 @@ Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":W="Parse error on
136
136
  .actor-5 {
137
137
  ${t.actor5?`fill: ${t.actor5}`:""};
138
138
  }
139
- `,bt=_t,U=function(t,e){return R.drawRect(t,e)},vt=function(t,e){const o=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=t.append("g");s.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"),s.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");function h(y){const m=Q.arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q.arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.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")}return e.score>3?h(s):e.score<3?c(s):f(s),o},it=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},rt=function(t,e){return R.drawText(t,e)},wt=function(t,e){function i(s,h,c,f,y){return s+","+h+" "+(s+c)+","+h+" "+(s+c)+","+(h+f-y)+" "+(s+c-y*1.2)+","+(h+f)+" "+s+","+(h+f)}const o=t.append("polygon");o.attr("points",i(e.x,e.y,50,20,7)),o.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,rt(t,e)},Tt=function(t,e,i){const o=t.append("g"),s=R.getNoteRect();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),s.height=i.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U(o,s),at(i)(e.text,o,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const $t=function(t,e,i){const o=e.x+i.width/2,s=t.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",o).attr("y1",e.y).attr("x2",o).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),vt(s,{cx:o,cy:300+(5-e.score)*30,score:e.score});const c=R.getNoteRect();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(s,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};it(s,g),f+=10}),at(i)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Mt=function(t,e){R.drawBackgroundRect(t,e)},at=function(){function t(s,h,c,f,y,m,g,p){const n=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(s);o(n,g)}function e(s,h,c,f,y,m,g,p,n){const{taskFontSize:r,taskFontFamily:a}=p,u=s.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const l=d*r-r*(u.length-1)/2,T=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",n).style("text-anchor","middle").style("font-size",r).style("font-family",a);T.append("tspan").attr("x",c+y/2).attr("dy",l).text(u[d]),T.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),o(T,g)}}function i(s,h,c,f,y,m,g,p){const n=h.append("switch"),a=n.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,n,c,f,y,m,g,p),o(a,g)}function o(s,h){for(const c in h)c in h&&s.attr(c,h[c])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?t:e}}(),St=function(t){t.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")},L={drawRect:U,drawCircle:it,drawSection:Tt,drawText:rt,drawLabel:wt,drawTask:$t,drawBackgroundRect:Mt,initGraphics:St},Ct=function(t){Object.keys(t).forEach(function(i){q[i]=t[i]})},S={};function Et(t){const e=k.getConfig().journey;let i=60;Object.keys(S).forEach(o=>{const s=S[o].color,h={cx:20,cy:i,r:7,fill:s,stroke:"#000",pos:S[o].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:o,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const q=k.getConfig().journey,A=q.leftMargin,At=function(t,e,i,o){const s=k.getConfig().journey,h=k.getConfig().securityLevel;let c;h==="sandbox"&&(c=k.select("#i"+e));const f=h==="sandbox"?k.select(c.nodes()[0].contentDocument.body):k.select("body");w.init();const y=f.select("#"+e);L.initGraphics(y);const m=o.db.getTasks(),g=o.db.getDiagramTitle(),p=o.db.getActors();for(const l in S)delete S[l];let n=0;p.forEach(l=>{S[l]={color:s.actorColours[n%s.actorColours.length],position:n},n++}),Et(y),w.insert(0,0,A,Object.keys(S).length*50),Pt(y,m,0);const r=w.getBounds();g&&y.append("text").text(g).attr("x",A).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*s.diagramMarginY,u=A+r.stopx+2*s.diagramMarginX;k.configureSvgSize(y,a,u,s.useMaxWidth),y.append("line").attr("x1",A).attr("y1",s.height*4).attr("x2",u-A-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},w={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,o){t[e]===void 0?t[e]=i:t[e]=o(i,t[e])},updateBounds:function(t,e,i,o){const s=k.getConfig().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*s.boxMargin,Math.min),h.updateVal(g,"stopy",o+p*s.boxMargin,Math.max),h.updateVal(w.data,"startx",t-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(g,"startx",t-p*s.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(w.data,"starty",e-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopy",o+p*s.boxMargin,Math.max)}}this.sequenceItems.forEach(f())},insert:function(t,e,i,o){const s=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,o),f=Math.max(e,o);this.updateVal(w.data,"startx",s,Math.min),this.updateVal(w.data,"starty",c,Math.min),this.updateVal(w.data,"stopx",h,Math.max),this.updateVal(w.data,"stopy",f,Math.max),this.updateBounds(s,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=q.sectionFills,nt=q.sectionColours,Pt=function(t,e,i){const o=k.getConfig().journey;let s="";const h=o.height*2+o.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,n]of e.entries()){if(s!==n.section){y=X[f%X.length],g=f%X.length,m=nt[f%nt.length];let a=0;const u=n.section;for(let l=p;l<e.length&&e[l].section==u;l++)a=a+1;const d={x:p*o.taskMargin+p*o.width+A,y:50,text:n.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,o),s=n.section,f++}const r=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=p*o.taskMargin+p*o.width+A,n.y=c,n.width=o.diagramMarginX,n.height=o.diagramMarginY,n.colour=m,n.fill=y,n.num=g,n.actors=r,L.drawTask(t,n,o),w.insert(n.x,n.y,n.x+n.width+o.taskMargin,300+5*30)}},st={setConf:Ct,draw:At},It={parser:ut,db:tt,renderer:st,styles:bt,init:t=>{st.setConf(t.journey),tt.clear()}};exports.diagram=It;
139
+ `,bt=_t,U=function(t,e){return R.drawRect(t,e)},vt=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=t.append("g");s.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"),s.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");function h(y){const m=Q.arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q.arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.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")}return e.score>3?h(s):e.score<3?c(s):f(s),l},it=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},rt=function(t,e){return R.drawText(t,e)},wt=function(t,e){function i(s,h,c,f,y){return s+","+h+" "+(s+c)+","+h+" "+(s+c)+","+(h+f-y)+" "+(s+c-y*1.2)+","+(h+f)+" "+s+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,rt(t,e)},Tt=function(t,e,i){const l=t.append("g"),s=R.getNoteRect();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),s.height=i.height,s.class="journey-section section-type-"+e.num,s.rx=3,s.ry=3,U(l,s),at(i)(e.text,l,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const $t=function(t,e,i){const l=e.x+i.width/2,s=t.append("g");et++;const h=300+5*30;s.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),vt(s,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=R.getNoteRect();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(s,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};it(s,g),f+=10}),at(i)(e.task,s,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Mt=function(t,e){R.drawBackgroundRect(t,e)},at=function(){function t(s,h,c,f,y,m,g,p){const n=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(s);l(n,g)}function e(s,h,c,f,y,m,g,p,n){const{taskFontSize:r,taskFontFamily:a}=p,u=s.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,T=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",n).style("text-anchor","middle").style("font-size",r).style("font-family",a);T.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),T.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(T,g)}}function i(s,h,c,f,y,m,g,p){const n=h.append("switch"),a=n.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),e(s,n,c,f,y,m,g,p),l(a,g)}function l(s,h){for(const c in h)c in h&&s.attr(c,h[c])}return function(s){return s.textPlacement==="fo"?i:s.textPlacement==="old"?t:e}}(),St=function(t){t.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")},L={drawRect:U,drawCircle:it,drawSection:Tt,drawText:rt,drawLabel:wt,drawTask:$t,drawBackgroundRect:Mt,initGraphics:St},Ct=function(t){Object.keys(t).forEach(function(i){q[i]=t[i]})},S={};function Et(t){const e=k.getConfig().journey;let i=60;Object.keys(S).forEach(l=>{const s=S[l].color,h={cx:20,cy:i,r:7,fill:s,stroke:"#000",pos:S[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const q=k.getConfig().journey,A=q.leftMargin,At=function(t,e,i,l){const s=k.getConfig().journey,h=k.getConfig().securityLevel;let c;h==="sandbox"&&(c=k.select("#i"+e));const f=h==="sandbox"?k.select(c.nodes()[0].contentDocument.body):k.select("body");w.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in S)delete S[o];let n=0;p.forEach(o=>{S[o]={color:s.actorColours[n%s.actorColours.length],position:n},n++}),Et(y),w.insert(0,0,A,Object.keys(S).length*50),Pt(y,m,0);const r=w.getBounds();g&&y.append("text").text(g).attr("x",A).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*s.diagramMarginY,u=A+r.stopx+2*s.diagramMarginX;k.configureSvgSize(y,a,u,s.useMaxWidth),y.append("line").attr("x1",A).attr("y1",s.height*4).attr("x2",u-A-4).attr("y2",s.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},w={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const s=k.getConfig().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*s.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*s.boxMargin,Math.max),h.updateVal(w.data,"startx",t-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(g,"startx",t-p*s.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*s.boxMargin,Math.max),h.updateVal(w.data,"starty",e-p*s.boxMargin,Math.min),h.updateVal(w.data,"stopy",l+p*s.boxMargin,Math.max)}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const s=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(w.data,"startx",s,Math.min),this.updateVal(w.data,"starty",c,Math.min),this.updateVal(w.data,"stopx",h,Math.max),this.updateVal(w.data,"stopy",f,Math.max),this.updateBounds(s,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},X=q.sectionFills,nt=q.sectionColours,Pt=function(t,e,i){const l=k.getConfig().journey;let s="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,n]of e.entries()){if(s!==n.section){y=X[f%X.length],g=f%X.length,m=nt[f%nt.length];let a=0;const u=n.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+A,y:50,text:n.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),s=n.section,f++}const r=n.people.reduce((a,u)=>(S[u]&&(a[u]=S[u]),a),{});n.x=p*l.taskMargin+p*l.width+A,n.y=c,n.width=l.diagramMarginX,n.height=l.diagramMarginY,n.colour=m,n.fill=y,n.num=g,n.actors=r,L.drawTask(t,n,l),w.insert(n.x,n.y,n.x+n.width+l.taskMargin,300+5*30)}},st={setConf:Ct,draw:At},It={parser:ut,db:tt,renderer:st,styles:bt,init:t=>{st.setConf(t.journey),tt.clear()}};exports.diagram=It;
@@ -1,6 +1,6 @@
1
- import { C as t, N as r } from "./layers.B0pdr1hX.js";
2
- import "./layers.I-MG0ir4.js";
3
- var f = import.meta.url ? new URL(import.meta.url) : void 0;
1
+ import { C as t, N as r } from "./layers.D6_cQf9O.js";
2
+ import "./layers.DLBoqOPY.js";
3
+ var m = import.meta.url ? new URL(import.meta.url) : void 0;
4
4
  typeof window > "u" && typeof self < "u" && (self.onmessage = async (a) => {
5
5
  switch (a.data.command) {
6
6
  case t.Subset:
@@ -10,5 +10,5 @@ typeof window > "u" && typeof self < "u" && (self.onmessage = async (a) => {
10
10
  }
11
11
  });
12
12
  export {
13
- f as WorkerUrl
13
+ m as WorkerUrl
14
14
  };
@@ -1,9 +1,9 @@
1
- "use strict";const u=require("./layers.CBXpUMze.js");var gt=function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,I,m,pt,N={},st,x,Dt,it;;){if(I=i[i.length-1],this.defaultActions[I]?m=this.defaultActions[I]:((_===null||typeof _>"u")&&(_=Gt()),m=w[I]&&w[I][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[I])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
1
+ "use strict";const u=require("./layers.BTczMT9O.js");var gt=function(){var t=function(A,r,n,i){for(n=n||{},i=A.length;i--;n[A[i]]=r);return n},s=[1,2],a=[1,3],h=[1,4],d=[2,4],y=[1,9],p=[1,11],k=[1,15],f=[1,16],b=[1,17],E=[1,18],R=[1,30],Y=[1,19],G=[1,20],U=[1,21],j=[1,22],M=[1,23],z=[1,25],H=[1,26],X=[1,27],K=[1,28],W=[1,29],J=[1,32],q=[1,33],Q=[1,34],Z=[1,35],$=[1,31],c=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],tt=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xt=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],ht={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[31,1],[31,1],[31,1],[31,1],[48,1],[48,1],[12,1],[12,1],[12,3],[12,3],[29,1],[29,1]],performAction:function(r,n,i,o,S,e,w){var l=e.length-1;switch(S){case 3:return o.setRootDoc(e[l]),e[l];case 4:this.$=[];break;case 5:e[l]!="nl"&&(e[l-1].push(e[l]),this.$=e[l-1]);break;case 6:case 7:this.$=e[l];break;case 8:this.$="nl";break;case 11:this.$=e[l];break;case 12:const B=e[l-1];B.description=o.trimColon(e[l]),this.$=B;break;case 13:this.$={stmt:"relation",state1:e[l-2],state2:e[l]};break;case 14:const ft=o.trimColon(e[l]);this.$={stmt:"relation",state1:e[l-3],state2:e[l-1],description:ft};break;case 18:this.$={stmt:"state",id:e[l-3],type:"default",description:"",doc:e[l-1]};break;case 19:var C=e[l],O=e[l-2].trim();if(e[l].match(":")){var et=e[l].split(":");C=et[0],O=[O,et[1]]}this.$={stmt:"state",id:C,type:"default",description:O};break;case 20:this.$={stmt:"state",id:e[l-3],type:"default",description:e[l-5],doc:e[l-1]};break;case 21:this.$={stmt:"state",id:e[l],type:"fork"};break;case 22:this.$={stmt:"state",id:e[l],type:"join"};break;case 23:this.$={stmt:"state",id:e[l],type:"choice"};break;case 24:this.$={stmt:"state",id:o.getDividerId(),type:"divider"};break;case 25:this.$={stmt:"state",id:e[l-1].trim(),note:{position:e[l-2].trim(),text:e[l].trim()}};break;case 28:this.$=e[l].trim(),o.setAccTitle(this.$);break;case 29:case 30:this.$=e[l].trim(),o.setAccDescription(this.$);break;case 31:case 32:this.$={stmt:"classDef",id:e[l-1].trim(),classes:e[l].trim()};break;case 33:this.$={stmt:"applyClass",id:e[l-1].trim(),styleClass:e[l].trim()};break;case 34:o.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 35:o.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 36:o.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 37:o.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 40:case 41:this.$={stmt:"state",id:e[l].trim(),type:"default",description:""};break;case 42:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break;case 43:this.$={stmt:"state",id:e[l-2].trim(),classes:[e[l].trim()],type:"default",description:""};break}},table:[{3:1,4:s,5:a,6:h},{1:[3]},{3:5,4:s,5:a,6:h},{3:6,4:s,5:a,6:h},t([1,4,5,15,16,18,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],d,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,5]),{9:36,10:12,11:13,12:14,15:k,16:f,18:b,21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,7]),t(c,[2,8]),t(c,[2,9]),t(c,[2,10]),t(c,[2,11],{13:[1,37],14:[1,38]}),t(c,[2,15]),{17:[1,39]},t(c,[2,17],{19:[1,40]}),{22:[1,41]},t(c,[2,21]),t(c,[2,22]),t(c,[2,23]),t(c,[2,24]),{29:42,30:[1,43],52:[1,44],53:[1,45]},t(c,[2,27]),{33:[1,46]},{35:[1,47]},t(c,[2,30]),{38:[1,48],40:[1,49]},{42:[1,50]},t(tt,[2,40],{51:[1,51]}),t(tt,[2,41],{51:[1,52]}),t(c,[2,34]),t(c,[2,35]),t(c,[2,36]),t(c,[2,37]),t(c,[2,6]),t(c,[2,12]),{12:53,23:R,50:$},t(c,[2,16]),t(xt,d,{7:54}),{23:[1,55]},{23:[1,56]},{22:[1,57]},{23:[2,44]},{23:[2,45]},t(c,[2,28]),t(c,[2,29]),{39:[1,58]},{39:[1,59]},{43:[1,60]},{23:[1,61]},{23:[1,62]},t(c,[2,13],{13:[1,63]}),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,64],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,19],{19:[1,65]}),{30:[1,66]},{23:[1,67]},t(c,[2,31]),t(c,[2,32]),t(c,[2,33]),t(tt,[2,42]),t(tt,[2,43]),t(c,[2,14]),t(c,[2,18]),t(xt,d,{7:68}),t(c,[2,25]),t(c,[2,26]),{4:y,5:p,8:8,9:10,10:12,11:13,12:14,15:k,16:f,18:b,20:[1,69],21:E,23:R,24:Y,25:G,26:U,27:j,28:M,31:24,32:z,34:H,36:X,37:K,41:W,44:J,45:q,46:Q,47:Z,50:$},t(c,[2,20])],defaultActions:{5:[2,1],6:[2,2],44:[2,44],45:[2,45]},parseError:function(r,n){if(n.recoverable)this.trace(r);else{var i=new Error(r);throw i.hash=n,i}},parse:function(r){var n=this,i=[0],o=[],S=[null],e=[],w=this.table,l="",C=0,O=0,et=2,B=1,ft=e.slice.call(arguments,1),g=Object.create(this.lexer),L={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(L.yy[dt]=this.yy[dt]);g.setInput(r,L.yy),L.yy.lexer=g,L.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var yt=g.yylloc;e.push(yt);var Yt=g.options&&g.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(){var D;return D=o.pop()||g.lex()||B,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=n.symbols_[D]||D),D}for(var _,v,m,pt,N={},st,x,Dt,it;;){if(v=i[i.length-1],this.defaultActions[v]?m=this.defaultActions[v]:((_===null||typeof _>"u")&&(_=Gt()),m=w[v]&&w[v][_]),typeof m>"u"||!m.length||!m[0]){var St="";it=[];for(st in w[v])this.terminals_[st]&&st>et&&it.push("'"+this.terminals_[st]+"'");g.showPosition?St="Parse error on line "+(C+1)+`:
2
2
  `+g.showPosition()+`
3
- Expecting `+it.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(C+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:yt,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+_);switch(m[0]){case 1:i.push(_),S.push(g.yytext),e.push(g.yylloc),i.push(m[1]),_=null,O=g.yyleng,l=g.yytext,C=g.yylineno,yt=g.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=S[S.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,C,L.yy,m[1],S,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),S.push(N.$),e.push(N._$),Dt=w[i[i.length-2]][i[i.length-1]],i.push(Dt);break;case 3:return!0}}return!0}},Vt=function(){var A={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);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},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
3
+ Expecting `+it.join(", ")+", got '"+(this.terminals_[_]||_)+"'":St="Parse error on line "+(C+1)+": Unexpected "+(_==B?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(St,{text:g.match,token:this.terminals_[_]||_,line:g.yylineno,loc:yt,expected:it})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+_);switch(m[0]){case 1:i.push(_),S.push(g.yytext),e.push(g.yylloc),i.push(m[1]),_=null,O=g.yyleng,l=g.yytext,C=g.yylineno,yt=g.yylloc;break;case 2:if(x=this.productions_[m[1]][1],N.$=S[S.length-x],N._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Yt&&(N._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),pt=this.performAction.apply(N,[l,O,C,L.yy,m[1],S,e].concat(ft)),typeof pt<"u")return pt;x&&(i=i.slice(0,-1*x*2),S=S.slice(0,-1*x),e=e.slice(0,-1*x)),i.push(this.productions_[m[1]][0]),S.push(N.$),e.push(N._$),Dt=w[i[i.length-2]][i[i.length-1]],i.push(Dt);break;case 3:return!0}}return!0}},Vt=function(){var A={EOF:1,parseError:function(n,i){if(this.yy.parser)this.yy.parser.parseError(n,i);else throw new Error(n)},setInput:function(r,n){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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);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},unput:function(r){var n=r.length,i=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===o.length?this.yylloc.first_column:0)+o[o.length-i.length].length-i[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
5
  `+n+"^"},test_match:function(r,n){var i,o,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),o=r[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},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],i=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,i,o;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(i=this._input.match(this.rules[S[e]]),i&&(!n||i[0].length>n[0].length)){if(n=i,o=e,this.options.backtrack_lexer){if(r=this.test_match(i,S[e]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,S[o]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return A}();ht.lexer=Vt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const Ut=gt,jt="LR",Mt="TB",at="state",Et="relation",zt="classDef",Ht="applyClass",ot="default",It="divider",kt="[*]",vt="start",Ot=kt,Nt="end",At="color",Ct="fill",Xt="bgFill",Kt=",";function Rt(){return{}}let $t=jt,lt=[],P=Rt();const wt=()=>({relations:[],states:{},documents:{}});let ct={root:wt()},T=ct.root,F=0,Lt=0;const Wt={LINE:0,DOTTED_LINE:1},Jt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),qt=t=>{u.log$1.info("Setting root doc",t),lt=t},Qt=()=>lt,nt=(t,s,a)=>{if(s.stmt===Et)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===at&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let d=[],y;for(y=0;y<s.doc.length;y++)if(s.doc[y].type===It){const p=rt(s.doc[y]);p.doc=rt(d),h.push(p),d=[]}else d.push(s.doc[y]);if(h.length>0&&d.length>0){const p={stmt:at,id:u.generateId(),type:"divider",doc:rt(d)};h.push(rt(p)),s.doc=h}s.doc.forEach(p=>nt(s,p,!0))}},Zt=()=>(nt({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),te=t=>{let s;t.doc?s=t.doc:s=t,u.log$1.info(s),Bt(!0),u.log$1.info("Extract",s),s.forEach(a=>{switch(a.stmt){case at:v(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Et:Pt(a.state1,a.state2,a.description);break;case zt:Ft(a.id.trim(),a.classes);break;case Ht:bt(a.id.trim(),a.styleClass);break}})},v=function(t,s=ot,a=null,h=null,d=null,y=null,p=null,k=null){const f=t==null?void 0:t.trim();T.states[f]===void 0?(u.log$1.info("Adding state ",f,h),T.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(T.states[f].doc||(T.states[f].doc=a),T.states[f].type||(T.states[f].type=s)),h&&(u.log$1.info("Setting state description",f,h),typeof h=="string"&&mt(f,h.trim()),typeof h=="object"&&h.forEach(b=>mt(f,b.trim()))),d&&(T.states[f].note=d,T.states[f].note.text=u.common$1.sanitizeText(T.states[f].note.text,u.getConfig())),y&&(u.log$1.info("Setting state classes",f,y),(typeof y=="string"?[y]:y).forEach(E=>bt(f,E.trim()))),p&&(u.log$1.info("Setting state styles",f,p),(typeof p=="string"?[p]:p).forEach(E=>he(f,E.trim()))),k&&(u.log$1.info("Setting state styles",f,p),(typeof k=="string"?[k]:k).forEach(E=>ue(f,E.trim())))},Bt=function(t){ct={root:wt()},T=ct.root,F=0,P=Rt(),t||u.clear()},V=function(t){return T.states[t]},ee=function(){return T.states},se=function(){u.log$1.info("Documents = ",ct)},ie=function(){return T.relations};function Tt(t=""){let s=t;return t===kt&&(F++,s=`${vt}${F}`),s}function _t(t="",s=ot){return t===kt?vt:s}function re(t=""){let s=t;return t===Ot&&(F++,s=`${Nt}${F}`),s}function ne(t="",s=ot){return t===Ot?Nt:s}function ae(t,s,a){let h=Tt(t.id.trim()),d=_t(t.id.trim(),t.type),y=Tt(s.id.trim()),p=_t(s.id.trim(),s.type);v(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),v(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),T.relations.push({id1:h,id2:y,relationTitle:u.common$1.sanitizeText(a,u.getConfig())})}const Pt=function(t,s,a){if(typeof t=="object")ae(t,s,a);else{const h=Tt(t.trim()),d=_t(t),y=re(s.trim()),p=ne(s);v(h,d),v(y,p),T.relations.push({id1:h,id2:y,title:u.common$1.sanitizeText(a,u.getConfig())})}},mt=function(t,s){const a=T.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.common$1.sanitizeText(h,u.getConfig()))},le=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},ce=()=>(Lt++,"divider-id-"+Lt),Ft=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(Kt).forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match(At)){const p=d.replace(Ct,Xt).replace(At,Ct);a.textStyles.push(p)}a.styles.push(d)})},oe=function(){return P},bt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const d=a.trim();v(d),h=V(d)}h.classes.push(s)})},he=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},ue=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},fe=()=>$t,de=t=>{$t=t},ye=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),pe={getConfig:()=>u.getConfig().state,addState:v,clear:Bt,getState:V,getStates:ee,getRelations:ie,getClasses:oe,getDirection:fe,addRelation:Pt,getDividerId:ce,setDirection:de,cleanupLabel:le,lineType:Wt,relationType:Jt,logDocuments:se,getRootDoc:Qt,setRootDoc:qt,getRootDocV2:Zt,extract:te,trimColon:ye,getAccTitle:u.getAccTitle,setAccTitle:u.setAccTitle,getAccDescription:u.getAccDescription,setAccDescription:u.setAccDescription,addStyleClass:Ft,setCssClass:bt,addDescription:mt,setDiagramTitle:u.setDiagramTitle,getDiagramTitle:u.getDiagramTitle},Se=t=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return n||this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},pushState:function(n){this.begin(n)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(n,i,o,S){switch(o){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),i.yytext=i.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),i.yytext=i.yytext.substr(2).trim(),30;case 64:return this.popState(),i.yytext=i.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return i.yytext=i.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},struct:{rules:[9,10,22,26,32,39,40,41,42,51,52,53,54,68,69,70,71,72],inclusive:!1},FLOATING_NOTE_ID:{rules:[61],inclusive:!1},FLOATING_NOTE:{rules:[58,59,60],inclusive:!1},NOTE_TEXT:{rules:[63,64],inclusive:!1},NOTE_ID:{rules:[62],inclusive:!1},NOTE:{rules:[55,56,57],inclusive:!1},CLASS_STYLE:{rules:[28],inclusive:!1},CLASS:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[25],inclusive:!1},CLASSDEF:{rules:[23,24],inclusive:!1},acc_descr_multiline:{rules:[20,21],inclusive:!1},acc_descr:{rules:[18],inclusive:!1},acc_title:{rules:[16],inclusive:!1},SCALE:{rules:[13,14,30,31],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[45],inclusive:!1},STATE_STRING:{rules:[46,47],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,33,34,35,36,37,38,43,44,48,49,50],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,10,11,12,15,17,19,22,26,29,32,50,54,65,66,67,68,69,70,71,73,74,75],inclusive:!0}}};return A}();ht.lexer=Vt;function ut(){this.yy={}}return ut.prototype=ht,ht.Parser=ut,new ut}();gt.parser=gt;const Ut=gt,jt="LR",Mt="TB",at="state",Et="relation",zt="classDef",Ht="applyClass",ot="default",vt="divider",kt="[*]",It="start",Ot=kt,Nt="end",At="color",Ct="fill",Xt="bgFill",Kt=",";function Rt(){return{}}let $t=jt,lt=[],P=Rt();const wt=()=>({relations:[],states:{},documents:{}});let ct={root:wt()},T=ct.root,F=0,Lt=0;const Wt={LINE:0,DOTTED_LINE:1},Jt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},rt=t=>JSON.parse(JSON.stringify(t)),qt=t=>{u.log$1.info("Setting root doc",t),lt=t},Qt=()=>lt,nt=(t,s,a)=>{if(s.stmt===Et)nt(t,s.state1,!0),nt(t,s.state2,!1);else if(s.stmt===at&&(s.id==="[*]"?(s.id=a?t.id+"_start":t.id+"_end",s.start=a):s.id=s.id.trim()),s.doc){const h=[];let d=[],y;for(y=0;y<s.doc.length;y++)if(s.doc[y].type===vt){const p=rt(s.doc[y]);p.doc=rt(d),h.push(p),d=[]}else d.push(s.doc[y]);if(h.length>0&&d.length>0){const p={stmt:at,id:u.generateId(),type:"divider",doc:rt(d)};h.push(rt(p)),s.doc=h}s.doc.forEach(p=>nt(s,p,!0))}},Zt=()=>(nt({id:"root"},{id:"root",doc:lt},!0),{id:"root",doc:lt}),te=t=>{let s;t.doc?s=t.doc:s=t,u.log$1.info(s),Bt(!0),u.log$1.info("Extract",s),s.forEach(a=>{switch(a.stmt){case at:I(a.id.trim(),a.type,a.doc,a.description,a.note,a.classes,a.styles,a.textStyles);break;case Et:Pt(a.state1,a.state2,a.description);break;case zt:Ft(a.id.trim(),a.classes);break;case Ht:bt(a.id.trim(),a.styleClass);break}})},I=function(t,s=ot,a=null,h=null,d=null,y=null,p=null,k=null){const f=t==null?void 0:t.trim();T.states[f]===void 0?(u.log$1.info("Adding state ",f,h),T.states[f]={id:f,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]}):(T.states[f].doc||(T.states[f].doc=a),T.states[f].type||(T.states[f].type=s)),h&&(u.log$1.info("Setting state description",f,h),typeof h=="string"&&mt(f,h.trim()),typeof h=="object"&&h.forEach(b=>mt(f,b.trim()))),d&&(T.states[f].note=d,T.states[f].note.text=u.common$1.sanitizeText(T.states[f].note.text,u.getConfig())),y&&(u.log$1.info("Setting state classes",f,y),(typeof y=="string"?[y]:y).forEach(E=>bt(f,E.trim()))),p&&(u.log$1.info("Setting state styles",f,p),(typeof p=="string"?[p]:p).forEach(E=>he(f,E.trim()))),k&&(u.log$1.info("Setting state styles",f,p),(typeof k=="string"?[k]:k).forEach(E=>ue(f,E.trim())))},Bt=function(t){ct={root:wt()},T=ct.root,F=0,P=Rt(),t||u.clear()},V=function(t){return T.states[t]},ee=function(){return T.states},se=function(){u.log$1.info("Documents = ",ct)},ie=function(){return T.relations};function Tt(t=""){let s=t;return t===kt&&(F++,s=`${It}${F}`),s}function _t(t="",s=ot){return t===kt?It:s}function re(t=""){let s=t;return t===Ot&&(F++,s=`${Nt}${F}`),s}function ne(t="",s=ot){return t===Ot?Nt:s}function ae(t,s,a){let h=Tt(t.id.trim()),d=_t(t.id.trim(),t.type),y=Tt(s.id.trim()),p=_t(s.id.trim(),s.type);I(h,d,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),I(y,p,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),T.relations.push({id1:h,id2:y,relationTitle:u.common$1.sanitizeText(a,u.getConfig())})}const Pt=function(t,s,a){if(typeof t=="object")ae(t,s,a);else{const h=Tt(t.trim()),d=_t(t),y=re(s.trim()),p=ne(s);I(h,d),I(y,p),T.relations.push({id1:h,id2:y,title:u.common$1.sanitizeText(a,u.getConfig())})}},mt=function(t,s){const a=T.states[t],h=s.startsWith(":")?s.replace(":","").trim():s;a.descriptions.push(u.common$1.sanitizeText(h,u.getConfig()))},le=function(t){return t.substring(0,1)===":"?t.substr(2).trim():t.trim()},ce=()=>(Lt++,"divider-id-"+Lt),Ft=function(t,s=""){P[t]===void 0&&(P[t]={id:t,styles:[],textStyles:[]});const a=P[t];s!=null&&s.split(Kt).forEach(h=>{const d=h.replace(/([^;]*);/,"$1").trim();if(h.match(At)){const p=d.replace(Ct,Xt).replace(At,Ct);a.textStyles.push(p)}a.styles.push(d)})},oe=function(){return P},bt=function(t,s){t.split(",").forEach(function(a){let h=V(a);if(h===void 0){const d=a.trim();I(d),h=V(d)}h.classes.push(s)})},he=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},ue=function(t,s){const a=V(t);a!==void 0&&a.textStyles.push(s)},fe=()=>$t,de=t=>{$t=t},ye=t=>t&&t[0]===":"?t.substr(1).trim():t.trim(),pe={getConfig:()=>u.getConfig().state,addState:I,clear:Bt,getState:V,getStates:ee,getRelations:ie,getClasses:oe,getDirection:fe,addRelation:Pt,getDividerId:ce,setDirection:de,cleanupLabel:le,lineType:Wt,relationType:Jt,logDocuments:se,getRootDoc:Qt,setRootDoc:qt,getRootDocV2:Zt,extract:te,trimColon:ye,getAccTitle:u.getAccTitle,setAccTitle:u.setAccTitle,getAccDescription:u.getAccDescription,setAccDescription:u.setAccDescription,addStyleClass:Ft,setCssClass:bt,addDescription:mt,setDiagramTitle:u.setDiagramTitle,getDiagramTitle:u.getDiagramTitle},Se=t=>`
7
7
  defs #statediagram-barbEnd {
8
8
  fill: ${t.transitionColor};
9
9
  stroke: ${t.transitionColor};
@@ -204,4 +204,4 @@ g.stateGroup line {
204
204
  font-size: 18px;
205
205
  fill: ${t.textColor};
206
206
  }
207
- `,ge=Se;exports.DEFAULT_NESTED_DOC_DIR=Mt;exports.DEFAULT_STATE_TYPE=ot;exports.DIVIDER_TYPE=It;exports.STMT_RELATION=Et;exports.STMT_STATE=at;exports.db=pe;exports.parser$1=Ut;exports.styles=ge;
207
+ `,ge=Se;exports.DEFAULT_NESTED_DOC_DIR=Mt;exports.DEFAULT_STATE_TYPE=ot;exports.DIVIDER_TYPE=vt;exports.STMT_RELATION=Et;exports.STMT_STATE=at;exports.db=pe;exports.parser$1=Ut;exports.styles=ge;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.B8i9d7Qz.js");var e={paste:"Enganxa",pasteAsPlaintext:"Enganxar com a text pla",pasteCharts:"Enganxa els diagrames",selectAll:"Selecciona-ho tot",multiSelect:"Afegeix un element a la selecció",moveCanvas:"Mou el llenç",cut:"Retalla",copy:"Copia",copyAsPng:"Copia al porta-retalls com a PNG",copyAsSvg:"Copia al porta-retalls com a SVG",copyText:"Copia al porta-retalls com a text",copySource:"Copia l'origen al porta-retalls",convertToCode:"",bringForward:"Porta endavant",sendToBack:"Envia enrere",bringToFront:"Porta al davant",sendBackward:"Envia al fons",delete:"Elimina",copyStyles:"Copia els estils",pasteStyles:"Enganxa els estils",stroke:"Color del traç",background:"Color del fons",fill:"Estil del fons",strokeWidth:"Amplada del traç",strokeStyle:"Estil del traç",strokeStyle_solid:"Sòlid",strokeStyle_dashed:"Guions",strokeStyle_dotted:"Punts",sloppiness:"Estil del traç",opacity:"Opacitat",textAlign:"Alineació del text",edges:"Vores",sharp:"Agut",round:"Arrodonit",arrowheads:"Puntes de fletxa",arrowhead_none:"Cap",arrowhead_arrow:"Fletxa",arrowhead_bar:"Barra",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Triangle",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Mida de lletra",fontFamily:"Tipus de lletra",addWatermark:"Afegeix-hi «Fet amb Excalidraw»",handDrawn:"Dibuixat a mà",normal:"Normal",code:"Codi",small:"Petit",medium:"Mitjà",large:"Gran",veryLarge:"Molt gran",solid:"Sòlid",hachure:"Ratlletes",zigzag:"",crossHatch:"Ratlletes creuades",thin:"Fi",bold:"Negreta",left:"Esquerra",center:"Centre",right:"Dreta",extraBold:"Extra negreta",architect:"Arquitecte",artist:"Artista",cartoonist:"Dibuixant",fileTitle:"Nom del fitxer",colorPicker:"Selector de colors",canvasColors:"Usat al llenç",canvasBackground:"Fons del llenç",drawingCanvas:"Llenç de dibuix",layers:"Capes",actions:"Accions",language:"Llengua",liveCollaboration:"Col·laboració en directe...",duplicateSelection:"Duplica",untitled:"Sense títol",name:"Nom",yourName:"El vostre nom",madeWithExcalidraw:"Fet amb Excalidraw",group:"Agrupa la selecció",ungroup:"Desagrupa la selecció",collaborators:"Col·laboradors",showGrid:"Mostra la graella",addToLibrary:"Afegir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"S'està carregant la biblioteca…",libraries:"Explora les biblioteques",loadingScene:"S'està carregant l'escena…",align:"Alinea",alignTop:"Alinea a la part superior",alignBottom:"Alinea a la part inferior",alignLeft:"Alinea a l’esquerra",alignRight:"Alinea a la dreta",centerVertically:"Centra verticalment",centerHorizontally:"Centra horitzontalment",distributeHorizontally:"Distribueix horitzontalment",distributeVertically:"Distribueix verticalment",flipHorizontal:"Capgira horitzontalment",flipVertical:"Capgira verticalment",viewMode:"Mode de visualització",share:"Comparteix",showStroke:"Mostra el selector de color del traç",showBackground:"Mostra el selector de color de fons",toggleTheme:"Activa o desactiva el tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca d'Excalidraw",decreaseFontSize:"Redueix la mida de la lletra",increaseFontSize:"Augmenta la mida de la lletra",unbindText:"Desvincular el text",bindText:"Ajusta el text al contenidor",createContainerFromText:"",link:{edit:"Edita l'enllaç",editEmbed:"Edita l'enllaç i incrusta-ho",create:"Crea un enllaç",createEmbed:"",label:"Enllaç",labelEmbed:"",empty:"No s'ha definit cap enllaç"},lineEditor:{edit:"Editar línia",exit:"Sortir de l'editor de línia"},elementLock:{lock:"Bloca",unlock:"Desbloca",lockAll:"Bloca-ho tot",unlockAll:"Desbloca-ho tot"},statusPublished:"Publicat",sidebarLock:"Manté la barra lateral oberta",selectAllElementsInFrame:"Selecciona tots els elements del marc",removeAllElementsFromFrame:"Eliminat tots els elements del marc",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"Encara no s'hi han afegit elements...",hint_emptyLibrary:"Trieu un element o un llenç per a afegir-lo aquí, o instal·leu una biblioteca del repositori públic, més avall.",hint_emptyPrivateLibrary:"Trieu un element o un llenç per a afegir-lo aquí."},r={clearReset:"Neteja el llenç",exportJSON:"Exporta a un fitxer",exportImage:"Exporta la imatge...",export:"Guardar a...",copyToClipboard:"Copia al porta-retalls",save:"Desa al fitxer actual",saveAs:"Anomena i desa",load:"Obrir",getShareableLink:"Obté l'enllaç per a compartir",close:"Tanca",selectLanguage:"Trieu la llengua",scrollBackToContent:"Torna al contingut",zoomIn:"Apropa't",zoomOut:"Allunya't",resetZoom:"Restableix el zoom",menu:"Menú",done:"Fet",edit:"Edita",undo:"Desfés",redo:"Refés",resetLibrary:"Restableix la biblioteca",createNewRoom:"Crea una sala nova",fullScreen:"Pantalla completa",darkMode:"Mode fosc",lightMode:"Mode clar",zenMode:"Mode zen",objectsSnapMode:"",exitZenMode:"Surt de mode zen",cancel:"Cancel·la",clear:"Neteja",remove:"Suprimeix",embed:"",publishLibrary:"Publica",submit:"Envia",confirm:"Confirma",embeddableInteractionButton:"Feu clic per interactuar"},l={clearReset:"S'esborrarà tot el llenç. N'esteu segur?",couldNotCreateShareableLink:"No s'ha pogut crear un enllaç per a compartir.",couldNotCreateShareableLinkTooBig:"No s’ha pogut crear un enllaç per a compartir: l’escena és massa gran",couldNotLoadInvalidFile:"No s'ha pogut carregar un fitxer no vàlid",importBackendFailed:"Importació fallida.",cannotExportEmptyCanvas:"No es pot exportar un llenç buit.",couldNotCopyToClipboard:"No s'ha pogut copiar al porta-retalls.",decryptFailed:"No s'ha pogut desencriptar.",uploadedSecurly:"La càrrega s'ha assegurat amb xifratge punta a punta, cosa que significa que el servidor Excalidraw i tercers no poden llegir el contingut.",loadSceneOverridePrompt:"Si carregas aquest dibuix extern, substituirá el que tens. Vols continuar?",collabStopOverridePrompt:`Aturar la sessió provocarà la sobreescriptura del dibuix previ, que hi ha desat en l'emmagatzematge local. N'esteu segur?
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.C4DqDLg-.js");var e={paste:"Enganxa",pasteAsPlaintext:"Enganxar com a text pla",pasteCharts:"Enganxa els diagrames",selectAll:"Selecciona-ho tot",multiSelect:"Afegeix un element a la selecció",moveCanvas:"Mou el llenç",cut:"Retalla",copy:"Copia",copyAsPng:"Copia al porta-retalls com a PNG",copyAsSvg:"Copia al porta-retalls com a SVG",copyText:"Copia al porta-retalls com a text",copySource:"Copia l'origen al porta-retalls",convertToCode:"",bringForward:"Porta endavant",sendToBack:"Envia enrere",bringToFront:"Porta al davant",sendBackward:"Envia al fons",delete:"Elimina",copyStyles:"Copia els estils",pasteStyles:"Enganxa els estils",stroke:"Color del traç",background:"Color del fons",fill:"Estil del fons",strokeWidth:"Amplada del traç",strokeStyle:"Estil del traç",strokeStyle_solid:"Sòlid",strokeStyle_dashed:"Guions",strokeStyle_dotted:"Punts",sloppiness:"Estil del traç",opacity:"Opacitat",textAlign:"Alineació del text",edges:"Vores",sharp:"Agut",round:"Arrodonit",arrowheads:"Puntes de fletxa",arrowhead_none:"Cap",arrowhead_arrow:"Fletxa",arrowhead_bar:"Barra",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Triangle",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Mida de lletra",fontFamily:"Tipus de lletra",addWatermark:"Afegeix-hi «Fet amb Excalidraw»",handDrawn:"Dibuixat a mà",normal:"Normal",code:"Codi",small:"Petit",medium:"Mitjà",large:"Gran",veryLarge:"Molt gran",solid:"Sòlid",hachure:"Ratlletes",zigzag:"",crossHatch:"Ratlletes creuades",thin:"Fi",bold:"Negreta",left:"Esquerra",center:"Centre",right:"Dreta",extraBold:"Extra negreta",architect:"Arquitecte",artist:"Artista",cartoonist:"Dibuixant",fileTitle:"Nom del fitxer",colorPicker:"Selector de colors",canvasColors:"Usat al llenç",canvasBackground:"Fons del llenç",drawingCanvas:"Llenç de dibuix",layers:"Capes",actions:"Accions",language:"Llengua",liveCollaboration:"Col·laboració en directe...",duplicateSelection:"Duplica",untitled:"Sense títol",name:"Nom",yourName:"El vostre nom",madeWithExcalidraw:"Fet amb Excalidraw",group:"Agrupa la selecció",ungroup:"Desagrupa la selecció",collaborators:"Col·laboradors",showGrid:"Mostra la graella",addToLibrary:"Afegir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"S'està carregant la biblioteca…",libraries:"Explora les biblioteques",loadingScene:"S'està carregant l'escena…",align:"Alinea",alignTop:"Alinea a la part superior",alignBottom:"Alinea a la part inferior",alignLeft:"Alinea a l’esquerra",alignRight:"Alinea a la dreta",centerVertically:"Centra verticalment",centerHorizontally:"Centra horitzontalment",distributeHorizontally:"Distribueix horitzontalment",distributeVertically:"Distribueix verticalment",flipHorizontal:"Capgira horitzontalment",flipVertical:"Capgira verticalment",viewMode:"Mode de visualització",share:"Comparteix",showStroke:"Mostra el selector de color del traç",showBackground:"Mostra el selector de color de fons",toggleTheme:"Activa o desactiva el tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca d'Excalidraw",decreaseFontSize:"Redueix la mida de la lletra",increaseFontSize:"Augmenta la mida de la lletra",unbindText:"Desvincular el text",bindText:"Ajusta el text al contenidor",createContainerFromText:"",link:{edit:"Edita l'enllaç",editEmbed:"Edita l'enllaç i incrusta-ho",create:"Crea un enllaç",createEmbed:"",label:"Enllaç",labelEmbed:"",empty:"No s'ha definit cap enllaç"},lineEditor:{edit:"Editar línia",exit:"Sortir de l'editor de línia"},elementLock:{lock:"Bloca",unlock:"Desbloca",lockAll:"Bloca-ho tot",unlockAll:"Desbloca-ho tot"},statusPublished:"Publicat",sidebarLock:"Manté la barra lateral oberta",selectAllElementsInFrame:"Selecciona tots els elements del marc",removeAllElementsFromFrame:"Eliminat tots els elements del marc",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"Encara no s'hi han afegit elements...",hint_emptyLibrary:"Trieu un element o un llenç per a afegir-lo aquí, o instal·leu una biblioteca del repositori públic, més avall.",hint_emptyPrivateLibrary:"Trieu un element o un llenç per a afegir-lo aquí."},r={clearReset:"Neteja el llenç",exportJSON:"Exporta a un fitxer",exportImage:"Exporta la imatge...",export:"Guardar a...",copyToClipboard:"Copia al porta-retalls",save:"Desa al fitxer actual",saveAs:"Anomena i desa",load:"Obrir",getShareableLink:"Obté l'enllaç per a compartir",close:"Tanca",selectLanguage:"Trieu la llengua",scrollBackToContent:"Torna al contingut",zoomIn:"Apropa't",zoomOut:"Allunya't",resetZoom:"Restableix el zoom",menu:"Menú",done:"Fet",edit:"Edita",undo:"Desfés",redo:"Refés",resetLibrary:"Restableix la biblioteca",createNewRoom:"Crea una sala nova",fullScreen:"Pantalla completa",darkMode:"Mode fosc",lightMode:"Mode clar",zenMode:"Mode zen",objectsSnapMode:"",exitZenMode:"Surt de mode zen",cancel:"Cancel·la",clear:"Neteja",remove:"Suprimeix",embed:"",publishLibrary:"Publica",submit:"Envia",confirm:"Confirma",embeddableInteractionButton:"Feu clic per interactuar"},l={clearReset:"S'esborrarà tot el llenç. N'esteu segur?",couldNotCreateShareableLink:"No s'ha pogut crear un enllaç per a compartir.",couldNotCreateShareableLinkTooBig:"No s’ha pogut crear un enllaç per a compartir: l’escena és massa gran",couldNotLoadInvalidFile:"No s'ha pogut carregar un fitxer no vàlid",importBackendFailed:"Importació fallida.",cannotExportEmptyCanvas:"No es pot exportar un llenç buit.",couldNotCopyToClipboard:"No s'ha pogut copiar al porta-retalls.",decryptFailed:"No s'ha pogut desencriptar.",uploadedSecurly:"La càrrega s'ha assegurat amb xifratge punta a punta, cosa que significa que el servidor Excalidraw i tercers no poden llegir el contingut.",loadSceneOverridePrompt:"Si carregas aquest dibuix extern, substituirá el que tens. Vols continuar?",collabStopOverridePrompt:`Aturar la sessió provocarà la sobreescriptura del dibuix previ, que hi ha desat en l'emmagatzematge local. N'esteu segur?
2
2
 
3
3
  (Si voleu conservar el dibuix local, tanqueu la pentanya del navegador en comptes d'aturar la sessió).`,errorAddingToLibrary:"No s'ha pogut afegir l'element a la biblioteca",errorRemovingFromLibrary:"No s'ha pogut eliminar l'element de la biblioteca",confirmAddLibrary:"Això afegirà {{numShapes}} forma(es) a la vostra biblioteca. Estàs segur?",imageDoesNotContainScene:"Aquesta imatge no sembla contenir cap dada d'escena. Heu activat l'incrustació de l'escena durant l'exportació?",cannotRestoreFromImage:"L’escena no s’ha pogut restaurar des d’aquest fitxer d’imatge",invalidSceneUrl:"No s'ha pogut importar l'escena des de l'adreça URL proporcionada. Està malformada o no conté dades Excalidraw JSON vàlides.",resetLibrary:"Això buidarà la biblioteca. N'esteu segur?",removeItemsFromsLibrary:"Suprimir {{count}} element(s) de la biblioteca?",invalidEncryptionKey:"La clau d'encriptació ha de tenir 22 caràcters. La col·laboració en directe està desactivada.",collabOfflineWarning:`Sense connexió a internet disponible.
4
4
  Els vostres canvis no seran guardats!`},i={unsupportedFileType:"Tipus de fitxer no suportat.",imageInsertError:"No s'ha pogut insertar la imatge, torneu-ho a provar més tard...",fileTooBig:"El fitxer és massa gros. La mida màxima permesa és {{maxSize}}.",svgImageInsertError:"No ha estat possible inserir la imatge SVG. Les marques SVG semblen invàlides.",failedToFetchImage:"",invalidSVGString:"SVG no vàlid.",cannotResolveCollabServer:"No ha estat possible connectar amb el servidor collab. Si us plau recarregueu la pàgina i torneu a provar.",importLibraryError:"No s'ha pogut carregar la biblioteca",collabSaveFailed:"No s'ha pogut desar a la base de dades de fons. Si els problemes persisteixen, hauríeu de desar el fitxer localment per assegurar-vos que no perdeu el vostre treball.",collabSaveFailed_sizeExceeded:"No s'ha pogut desar a la base de dades de fons, sembla que el llenç és massa gran. Hauríeu de desar el fitxer localment per assegurar-vos que no perdeu el vostre treball.",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"No s'ha pogut enganxar.",copyToSystemClipboardFailed:""},t={selection:"Selecció",image:"Insereix imatge",rectangle:"Rectangle",diamond:"Rombe",ellipse:"El·lipse",arrow:"Fletxa",line:"Línia",freedraw:"Dibuix",text:"Text",library:"Biblioteca",lock:"Mantenir activa l'eina seleccionada desprès de dibuixar",penMode:"Mode de llapis - evita tocar",link:"Afegeix / actualitza l'enllaç per a la forma seleccionada",eraser:"Esborrador",frame:"",magicframe:"",embeddable:"",laser:"",hand:"Mà (eina de desplaçament)",extraTools:"",mermaidToExcalidraw:"De Mermaid a Excalidraw",magicSettings:"Preferències d'IA"},o={canvasActions:"Accions del llenç",selectedShapeActions:"Accions per a les formes seleccionades",shapes:"Formes"},n={canvasPanning:"Per moure el llenç, manteniu premuda la roda del ratolí o la barra espaiadora mentre arrossegueu o utilitzeu l'eina manual",linearElement:"Feu clic per a dibuixar múltiples punts; arrossegueu per a una sola línia",freeDraw:"Feu clic i arrossegueu, deixeu anar per a finalitzar",text:"Consell: també podeu afegir text fent doble clic en qualsevol lloc amb l'eina de selecció",embeddable:"",text_selected:"Feu doble clic o premeu Retorn per a editar el text",text_editing:"Premeu Escapada o Ctrl+Retorn (o Ordre+Retorn) per a finalitzar l'edició",linearElementMulti:"Feu clic a l'ultim punt, o pitgeu Esc o Retorn per a finalitzar",lockAngle:"Per restringir els angles, mantenir premut el majúscul (SHIFT)",resize:"Per restringir les proporcions mentres es canvia la mida, mantenir premut el majúscul (SHIFT); per canviar la mida des del centre, mantenir premut ALT",resizeImage:`Podeu redimensionar lliurement prement MAJÚSCULA;