@layers-app/editor 0.3.10 → 0.3.11

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 (242) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.js +6 -6
  3. package/dist/{layers.aWv9gYR0.js → layers.BnjxHNDK.js} +85 -85
  4. package/dist/{layers.CIe6IWwR.js → layers.C125HTat.js} +1 -1
  5. package/dist/layers.Cjs5EBWM.js +343 -0
  6. package/dist/{layers.BCi5-29W.js → layers.DPccTctI.js} +17 -17
  7. package/dist/layers.DZ8DrrVn.js +53491 -0
  8. package/dist/layers.QVaGPbs3.js +161 -0
  9. package/dist/{layers.B1OkrScy.js → layers.VK3NB7Nd.js} +1 -1
  10. package/dist/{layers.CXdHS8ME.js → layers.YZkXZvVS.js} +10897 -11432
  11. package/package.json +15 -22
  12. package/dist/layers.0O-HO6IA.js +0 -42
  13. package/dist/layers.0ONhG6ew.js +0 -1283
  14. package/dist/layers.1g-B3F0-.js +0 -10
  15. package/dist/layers.2UOO6NPF.js +0 -1
  16. package/dist/layers.4YQUM2o7.js +0 -32
  17. package/dist/layers.4nj6Lu4f.js +0 -21938
  18. package/dist/layers.52famHy6.js +0 -1
  19. package/dist/layers.5I_IaZtB.js +0 -32
  20. package/dist/layers.5zC40cdV.js +0 -4
  21. package/dist/layers.7JqFgE4-.js +0 -15
  22. package/dist/layers.8fJJJO7B.js +0 -425
  23. package/dist/layers.9QK1wiQj.js +0 -1
  24. package/dist/layers.9YzbhWId.js +0 -21763
  25. package/dist/layers.9pNaFvaX.js +0 -1
  26. package/dist/layers.9tDhGbsk.js +0 -1
  27. package/dist/layers.AjgD53rQ.js +0 -1
  28. package/dist/layers.B-qy_g4-.js +0 -13
  29. package/dist/layers.B19hGmey.js +0 -1
  30. package/dist/layers.B1ni4mxG.js +0 -36
  31. package/dist/layers.B2AGu32C.js +0 -11692
  32. package/dist/layers.B2t-s3Lr.js +0 -6
  33. package/dist/layers.B3D4g2HH.js +0 -1
  34. package/dist/layers.B3YugRxw.js +0 -793
  35. package/dist/layers.B47MBsc7.js +0 -118
  36. package/dist/layers.B5hfyctM.js +0 -8
  37. package/dist/layers.B63KPCAA.js +0 -9
  38. package/dist/layers.B8PWivoQ.js +0 -40
  39. package/dist/layers.BAdPyX9t.js +0 -7
  40. package/dist/layers.BAm8tKx8.js +0 -40
  41. package/dist/layers.BAtv1CM7.js +0 -1
  42. package/dist/layers.BCZU7qmb.js +0 -11
  43. package/dist/layers.BG2XT6bu.js +0 -39
  44. package/dist/layers.BG2lFV8Q.js +0 -161
  45. package/dist/layers.BGByoe0m.js +0 -37
  46. package/dist/layers.BHYgMpdU.js +0 -2
  47. package/dist/layers.BIeVwYKL.js +0 -1
  48. package/dist/layers.BKQ2-TA6.js +0 -35
  49. package/dist/layers.BL7yj6jI.js +0 -42
  50. package/dist/layers.BLBW8FvN.js +0 -36
  51. package/dist/layers.BLBrBUT9.js +0 -257
  52. package/dist/layers.BLiY1HIQ.js +0 -2
  53. package/dist/layers.BMHNM70S.js +0 -802
  54. package/dist/layers.BMlAGxNa.js +0 -1
  55. package/dist/layers.BMmPJdA-.js +0 -139
  56. package/dist/layers.BRhYJnwf.js +0 -34
  57. package/dist/layers.BSSwgQP4.js +0 -14
  58. package/dist/layers.BSTBZrFn.js +0 -1
  59. package/dist/layers.BSmyi-2W.js +0 -2479
  60. package/dist/layers.BVgbqt8Z.js +0 -8
  61. package/dist/layers.BY3vgRLa.js +0 -1619
  62. package/dist/layers.BZ4fzqMZ.js +0 -44
  63. package/dist/layers.BZGWH3Cr.js +0 -6
  64. package/dist/layers.Ba1QnqD6.js +0 -268
  65. package/dist/layers.BamW7DBf.js +0 -39
  66. package/dist/layers.BbCfEXyj.js +0 -55
  67. package/dist/layers.BcuKH1X9.js +0 -11
  68. package/dist/layers.BdtKVDwG.js +0 -202
  69. package/dist/layers.Bf086Zg-.js +0 -11
  70. package/dist/layers.BgOa2ZQq.js +0 -7
  71. package/dist/layers.BgSFSWxA.js +0 -1
  72. package/dist/layers.BgU5v1oL.js +0 -39
  73. package/dist/layers.BgV4j9Nb.js +0 -40
  74. package/dist/layers.BhFtwnU6.js +0 -1
  75. package/dist/layers.Bhlh_Lb0.js +0 -423
  76. package/dist/layers.BiJ8hfRt.js +0 -1510
  77. package/dist/layers.Bjz6Sxuh.js +0 -61
  78. package/dist/layers.BoSwtXdp.js +0 -36
  79. package/dist/layers.BpilXLfW.js +0 -6
  80. package/dist/layers.Bq3fSgMC.js +0 -1
  81. package/dist/layers.BqYF5Wn-.js +0 -8
  82. package/dist/layers.BrNer6r9.js +0 -9
  83. package/dist/layers.Bs-tmR42.js +0 -1
  84. package/dist/layers.Bsy26Dgb.js +0 -9
  85. package/dist/layers.Bsyoxmr3.js +0 -38
  86. package/dist/layers.Bw3IwJS4.js +0 -931
  87. package/dist/layers.BwCHjgy_.js +0 -52
  88. package/dist/layers.BwQO9dS8.js +0 -65
  89. package/dist/layers.Bw_mvLXS.js +0 -2235
  90. package/dist/layers.BxljeGSf.js +0 -2966
  91. package/dist/layers.BxtXwRBq.js +0 -42
  92. package/dist/layers.ByLBhn1N.js +0 -84
  93. package/dist/layers.Bysth3Gx.js +0 -33
  94. package/dist/layers.BzEvPu_n.js +0 -9
  95. package/dist/layers.C0zcnhpp.js +0 -37
  96. package/dist/layers.C1KJbm2d.js +0 -10
  97. package/dist/layers.C2B7YCnj.js +0 -7
  98. package/dist/layers.C2m4apzR.js +0 -39
  99. package/dist/layers.C37MKWId.js +0 -10
  100. package/dist/layers.C55wllfV.js +0 -9148
  101. package/dist/layers.C5RBh30O.js +0 -1
  102. package/dist/layers.C6_vCH6p.js +0 -1
  103. package/dist/layers.C7lIplJU.js +0 -247
  104. package/dist/layers.C8_lu5UH.js +0 -23
  105. package/dist/layers.C8r8J3P2.js +0 -139
  106. package/dist/layers.C9H7Y0FE.js +0 -10
  107. package/dist/layers.CEYmizt4.js +0 -38
  108. package/dist/layers.CFnyQPRT.js +0 -39
  109. package/dist/layers.CFoUxBD9.js +0 -36
  110. package/dist/layers.CH0Y8svW.js +0 -9
  111. package/dist/layers.CHZsXQcr.js +0 -1
  112. package/dist/layers.CHm7GEXp.js +0 -1
  113. package/dist/layers.CJompNyf.js +0 -282
  114. package/dist/layers.CKRpzRNC.js +0 -41
  115. package/dist/layers.CL7Vtav2.js +0 -1126
  116. package/dist/layers.CMb7-d7c.js +0 -320
  117. package/dist/layers.COAF7f8g.js +0 -1
  118. package/dist/layers.CRMGGzG_.js +0 -1
  119. package/dist/layers.CTnykjar.js +0 -7
  120. package/dist/layers.CUp4CMxi.js +0 -1
  121. package/dist/layers.CY7AkIEG.js +0 -96
  122. package/dist/layers.C__Q8WfO.js +0 -42
  123. package/dist/layers.C_k7A3Mz.js +0 -4
  124. package/dist/layers.CbHImeup.js +0 -501
  125. package/dist/layers.CcruShdv.js +0 -9
  126. package/dist/layers.CeuSQNzd.js +0 -39
  127. package/dist/layers.CftGMfFK.js +0 -1
  128. package/dist/layers.CgP9of2S.js +0 -41
  129. package/dist/layers.Ck51CP9N.js +0 -70
  130. package/dist/layers.CkdiwuzV.js +0 -39
  131. package/dist/layers.CngXbKrP.js +0 -6
  132. package/dist/layers.CoqLozCl.js +0 -1
  133. package/dist/layers.CpxqY-jd.js +0 -6
  134. package/dist/layers.CqNmSCMj.js +0 -19
  135. package/dist/layers.CqVTtuYm.js +0 -6
  136. package/dist/layers.CrF5v5NG.js +0 -38
  137. package/dist/layers.CrQXROLL.js +0 -5
  138. package/dist/layers.CrtDarq7.js +0 -32
  139. package/dist/layers.Cs24L6er.js +0 -261
  140. package/dist/layers.CsRSoujK.js +0 -207
  141. package/dist/layers.Ct5A2AuM.js +0 -51
  142. package/dist/layers.CtQab1jh.js +0 -10
  143. package/dist/layers.CuECE6wg.js +0 -5
  144. package/dist/layers.Cud1By9I.js +0 -1
  145. package/dist/layers.CuuUIwmp.js +0 -1
  146. package/dist/layers.CwisDuwP.js +0 -33
  147. package/dist/layers.CyR9faht.js +0 -10
  148. package/dist/layers.D-WddaLv.js +0 -5
  149. package/dist/layers.D-zqjapg.js +0 -7
  150. package/dist/layers.D0LDNQ9o.js +0 -1359
  151. package/dist/layers.D0zn4_Mx.js +0 -1
  152. package/dist/layers.D1LKQvHR.js +0 -8
  153. package/dist/layers.D2NzxX2a.js +0 -7
  154. package/dist/layers.D325bOwU.js +0 -41
  155. package/dist/layers.D3r6Uv1D.js +0 -40
  156. package/dist/layers.D4fGb2cV.js +0 -1272
  157. package/dist/layers.D6dtx0Il.js +0 -32
  158. package/dist/layers.D7jGxypv.js +0 -8
  159. package/dist/layers.DALQQ8Jh.js +0 -960
  160. package/dist/layers.DAq8zxBu.js +0 -10
  161. package/dist/layers.DC5byRJg.js +0 -3
  162. package/dist/layers.DCQ4LYm3.js +0 -48146
  163. package/dist/layers.DCrCZ4Iw.js +0 -220
  164. package/dist/layers.DE9KqC57.js +0 -10
  165. package/dist/layers.DEZqmeoy.js +0 -4
  166. package/dist/layers.DF0CR_A4.js +0 -1265
  167. package/dist/layers.DG0jm2Nx.js +0 -40
  168. package/dist/layers.DH8m0bpe.js +0 -40
  169. package/dist/layers.DKaByMlh.js +0 -40
  170. package/dist/layers.DLJXsUyO.js +0 -59
  171. package/dist/layers.DLwuMfdd.js +0 -84
  172. package/dist/layers.DMkBISW1.js +0 -1
  173. package/dist/layers.DMqAEBD9.js +0 -8
  174. package/dist/layers.DN9HoVxI.js +0 -18
  175. package/dist/layers.DOeTmzDz.js +0 -41
  176. package/dist/layers.DOrgOHBr.js +0 -1
  177. package/dist/layers.DRTDeNDp.js +0 -9
  178. package/dist/layers.DS0zmYTv.js +0 -790
  179. package/dist/layers.DSpBzg-g.js +0 -39
  180. package/dist/layers.DT9K5vqK.js +0 -9
  181. package/dist/layers.DU4R3b7-.js +0 -373
  182. package/dist/layers.DUUGwrsX.js +0 -9
  183. package/dist/layers.DUeoP9C_.js +0 -35
  184. package/dist/layers.DV_nYDft.js +0 -8
  185. package/dist/layers.DWRS8OMs.js +0 -5
  186. package/dist/layers.DY-LYN9J.js +0 -1
  187. package/dist/layers.DZi_xtue.js +0 -8
  188. package/dist/layers.D_Gt3BTM.js +0 -803
  189. package/dist/layers.D_IV_Isr.js +0 -10
  190. package/dist/layers.D_ueJnG9.js +0 -4
  191. package/dist/layers.DaI9YYuA.js +0 -35
  192. package/dist/layers.DbaKVP5e.js +0 -1
  193. package/dist/layers.Dct-KMDd.js +0 -7
  194. package/dist/layers.DctVUFXU.js +0 -7
  195. package/dist/layers.DelKGHRg.js +0 -10
  196. package/dist/layers.DenbWMKi.js +0 -6
  197. package/dist/layers.Dhv7yWkp.js +0 -40
  198. package/dist/layers.DjUOC4st.js +0 -16
  199. package/dist/layers.DkUmi55f.js +0 -230
  200. package/dist/layers.Dng9-1hf.js +0 -1
  201. package/dist/layers.DqiivndF.js +0 -84
  202. package/dist/layers.Dr9YWgvN.js +0 -5
  203. package/dist/layers.DrWX1ycB.js +0 -11
  204. package/dist/layers.Ds4pa4-Y.js +0 -37
  205. package/dist/layers.Due5h_RY.js +0 -186
  206. package/dist/layers.DvIm8rgw.js +0 -769
  207. package/dist/layers.DxA6ocdw.js +0 -70
  208. package/dist/layers.DxyLWJqF.js +0 -6
  209. package/dist/layers.Dy1naDTQ.js +0 -14
  210. package/dist/layers.DyC-LKRA.js +0 -8
  211. package/dist/layers.DytGTqf8.js +0 -1088
  212. package/dist/layers.FQ_E02QW.js +0 -37
  213. package/dist/layers.FTHV-Y5l.js +0 -41
  214. package/dist/layers.GlCiDO9w.js +0 -1089
  215. package/dist/layers.JWCLFILJ.js +0 -1
  216. package/dist/layers.KEj1ospI.js +0 -1580
  217. package/dist/layers.KiDruC_P.js +0 -8
  218. package/dist/layers.Lizv1OMz.js +0 -1
  219. package/dist/layers.MlHvpwem.js +0 -40
  220. package/dist/layers.Mm28Q5GR.js +0 -904
  221. package/dist/layers.QA_0DDl0.js +0 -32
  222. package/dist/layers.RKQb3yWw.js +0 -40
  223. package/dist/layers.Rt0GeQX8.js +0 -8
  224. package/dist/layers.Th8DM3Nm.js +0 -32
  225. package/dist/layers.VUfdRL5t.js +0 -42
  226. package/dist/layers.WE4L5H9a.js +0 -7
  227. package/dist/layers.Wxscoddr.js +0 -1
  228. package/dist/layers.X3AnuPZA.js +0 -116
  229. package/dist/layers._VrzPGNk.js +0 -160
  230. package/dist/layers.b0h5ZBmD.js +0 -61
  231. package/dist/layers.bxJG2pW0.js +0 -11
  232. package/dist/layers.cO9a_CSG.js +0 -1034
  233. package/dist/layers.dE-Zsmej.js +0 -41
  234. package/dist/layers.f35vZvjY.js +0 -9
  235. package/dist/layers.hifDeB_3.js +0 -122
  236. package/dist/layers.ib97KSUu.js +0 -41
  237. package/dist/layers.lCpg7dOn.js +0 -21
  238. package/dist/layers.n5GYoY3M.js +0 -1
  239. package/dist/layers.noKqP2-f.js +0 -41
  240. package/dist/layers.p6FtxLKx.js +0 -39
  241. package/dist/layers.wSwlPOh0.js +0 -2
  242. package/dist/layers.z1Zi6yTK.js +0 -437
@@ -1,802 +0,0 @@
1
- import { a as yt, s as ft, b as dt, c as pt, n as gt, o as mt, g as I, d as H, e as xt, q as kt } from "./layers.C55wllfV.js";
2
- import { a as _t, g as it, f as bt, d as vt } from "./layers.BwQO9dS8.js";
3
- import "./layers.9YzbhWId.js";
4
- import { a as Q } from "./layers.ByLBhn1N.js";
5
- var X = (function() {
6
- var t = function(p, s, r, a) {
7
- for (r = r || {}, a = p.length; a--; r[p[a]] = s)
8
- ;
9
- return r;
10
- }, e = [6, 8, 10, 11, 12, 14, 16, 17, 18], i = [1, 9], l = [1, 10], n = [1, 11], h = [1, 12], c = [1, 13], f = [1, 14], y = {
11
- trace: function() {
12
- },
13
- yy: {},
14
- 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 },
15
- 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" },
16
- 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]],
17
- performAction: function(s, r, a, u, d, o, w) {
18
- var k = o.length - 1;
19
- switch (d) {
20
- case 1:
21
- return o[k - 1];
22
- case 2:
23
- this.$ = [];
24
- break;
25
- case 3:
26
- o[k - 1].push(o[k]), this.$ = o[k - 1];
27
- break;
28
- case 4:
29
- case 5:
30
- this.$ = o[k];
31
- break;
32
- case 6:
33
- case 7:
34
- this.$ = [];
35
- break;
36
- case 8:
37
- u.setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
38
- break;
39
- case 9:
40
- this.$ = o[k].trim(), u.setAccTitle(this.$);
41
- break;
42
- case 10:
43
- case 11:
44
- this.$ = o[k].trim(), u.setAccDescription(this.$);
45
- break;
46
- case 12:
47
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
48
- break;
49
- case 13:
50
- u.addTask(o[k - 1], o[k]), this.$ = "task";
51
- break;
52
- }
53
- },
54
- 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: n, 16: h, 17: c, 18: f }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 15, 11: i, 12: l, 14: n, 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])],
55
- defaultActions: {},
56
- parseError: function(s, r) {
57
- if (r.recoverable)
58
- this.trace(s);
59
- else {
60
- var a = new Error(s);
61
- throw a.hash = r, a;
62
- }
63
- },
64
- parse: function(s) {
65
- var r = this, a = [0], u = [], d = [null], o = [], w = this.table, k = "", R = 0, Z = 0, lt = 2, J = 1, ct = o.slice.call(arguments, 1), x = Object.create(this.lexer), S = { yy: {} };
66
- for (var z in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, z) && (S.yy[z] = this.yy[z]);
68
- x.setInput(s, S.yy), S.yy.lexer = x, S.yy.parser = this, typeof x.yylloc > "u" && (x.yylloc = {});
69
- var Y = x.yylloc;
70
- o.push(Y);
71
- var ht = x.options && x.options.ranges;
72
- typeof S.yy.parseError == "function" ? this.parseError = S.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function ut() {
74
- var T;
75
- return T = u.pop() || x.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = r.symbols_[T] || T), T;
76
- }
77
- for (var _, E, b, q, A = {}, N, $, K, B; ; ) {
78
- if (E = a[a.length - 1], this.defaultActions[E] ? b = this.defaultActions[E] : ((_ === null || typeof _ > "u") && (_ = ut()), b = w[E] && w[E][_]), typeof b > "u" || !b.length || !b[0]) {
79
- var O = "";
80
- B = [];
81
- for (N in w[E])
82
- this.terminals_[N] && N > lt && B.push("'" + this.terminals_[N] + "'");
83
- x.showPosition ? O = "Parse error on line " + (R + 1) + `:
84
- ` + x.showPosition() + `
85
- Expecting ` + B.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : O = "Parse error on line " + (R + 1) + ": Unexpected " + (_ == J ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(O, {
86
- text: x.match,
87
- token: this.terminals_[_] || _,
88
- line: x.yylineno,
89
- loc: Y,
90
- expected: B
91
- });
92
- }
93
- if (b[0] instanceof Array && b.length > 1)
94
- throw new Error("Parse Error: multiple actions possible at state: " + E + ", token: " + _);
95
- switch (b[0]) {
96
- case 1:
97
- a.push(_), d.push(x.yytext), o.push(x.yylloc), a.push(b[1]), _ = null, Z = x.yyleng, k = x.yytext, R = x.yylineno, Y = x.yylloc;
98
- break;
99
- case 2:
100
- if ($ = this.productions_[b[1]][1], A.$ = d[d.length - $], A._$ = {
101
- first_line: o[o.length - ($ || 1)].first_line,
102
- last_line: o[o.length - 1].last_line,
103
- first_column: o[o.length - ($ || 1)].first_column,
104
- last_column: o[o.length - 1].last_column
105
- }, ht && (A._$.range = [
106
- o[o.length - ($ || 1)].range[0],
107
- o[o.length - 1].range[1]
108
- ]), q = this.performAction.apply(A, [
109
- k,
110
- Z,
111
- R,
112
- S.yy,
113
- b[1],
114
- d,
115
- o
116
- ].concat(ct)), typeof q < "u")
117
- return q;
118
- $ && (a = a.slice(0, -1 * $ * 2), d = d.slice(0, -1 * $), o = o.slice(0, -1 * $)), a.push(this.productions_[b[1]][0]), d.push(A.$), o.push(A._$), K = w[a[a.length - 2]][a[a.length - 1]], a.push(K);
119
- break;
120
- case 3:
121
- return !0;
122
- }
123
- }
124
- return !0;
125
- }
126
- }, m = /* @__PURE__ */ (function() {
127
- var p = {
128
- EOF: 1,
129
- parseError: function(r, a) {
130
- if (this.yy.parser)
131
- this.yy.parser.parseError(r, a);
132
- else
133
- throw new Error(r);
134
- },
135
- // resets the lexer, sets new input
136
- setInput: function(s, r) {
137
- return this.yy = r || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
138
- first_line: 1,
139
- first_column: 0,
140
- last_line: 1,
141
- last_column: 0
142
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
143
- },
144
- // consumes and returns one char from the input
145
- input: function() {
146
- var s = this._input[0];
147
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
148
- var r = s.match(/(?:\r\n?|\n).*/g);
149
- 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), s;
150
- },
151
- // unshifts one char (or a string) into the input
152
- unput: function(s) {
153
- var r = s.length, a = s.split(/(?:\r\n?|\n)/g);
154
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
155
- var u = this.match.split(/(?:\r\n?|\n)/g);
156
- 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);
157
- var d = this.yylloc.range;
158
- return this.yylloc = {
159
- first_line: this.yylloc.first_line,
160
- last_line: this.yylineno + 1,
161
- first_column: this.yylloc.first_column,
162
- 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
163
- }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
164
- },
165
- // When called from action, caches matched text and appends it on next action
166
- more: function() {
167
- return this._more = !0, this;
168
- },
169
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
170
- reject: function() {
171
- if (this.options.backtrack_lexer)
172
- this._backtrack = !0;
173
- else
174
- 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).
175
- ` + this.showPosition(), {
176
- text: "",
177
- token: null,
178
- line: this.yylineno
179
- });
180
- return this;
181
- },
182
- // retain first n characters of the match
183
- less: function(s) {
184
- this.unput(this.match.slice(s));
185
- },
186
- // displays already matched input, i.e. for error messages
187
- pastInput: function() {
188
- var s = this.matched.substr(0, this.matched.length - this.match.length);
189
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
190
- },
191
- // displays upcoming input, i.e. for error messages
192
- upcomingInput: function() {
193
- var s = this.match;
194
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
195
- },
196
- // displays the character position where the lexing error occurred, i.e. for error messages
197
- showPosition: function() {
198
- var s = this.pastInput(), r = new Array(s.length + 1).join("-");
199
- return s + this.upcomingInput() + `
200
- ` + r + "^";
201
- },
202
- // test the lexed token: return FALSE when not a match, otherwise return token
203
- test_match: function(s, r) {
204
- var a, u, d;
205
- if (this.options.backtrack_lexer && (d = {
206
- yylineno: this.yylineno,
207
- yylloc: {
208
- first_line: this.yylloc.first_line,
209
- last_line: this.last_line,
210
- first_column: this.yylloc.first_column,
211
- last_column: this.yylloc.last_column
212
- },
213
- yytext: this.yytext,
214
- match: this.match,
215
- matches: this.matches,
216
- matched: this.matched,
217
- yyleng: this.yyleng,
218
- offset: this.offset,
219
- _more: this._more,
220
- _input: this._input,
221
- yy: this.yy,
222
- conditionStack: this.conditionStack.slice(0),
223
- done: this.done
224
- }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), u = s[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
225
- first_line: this.yylloc.last_line,
226
- last_line: this.yylineno + 1,
227
- first_column: this.yylloc.last_column,
228
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
229
- }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
230
- return a;
231
- if (this._backtrack) {
232
- for (var o in d)
233
- this[o] = d[o];
234
- return !1;
235
- }
236
- return !1;
237
- },
238
- // return next match in input
239
- next: function() {
240
- if (this.done)
241
- return this.EOF;
242
- this._input || (this.done = !0);
243
- var s, r, a, u;
244
- this._more || (this.yytext = "", this.match = "");
245
- for (var d = this._currentRules(), o = 0; o < d.length; o++)
246
- if (a = this._input.match(this.rules[d[o]]), a && (!r || a[0].length > r[0].length)) {
247
- if (r = a, u = o, this.options.backtrack_lexer) {
248
- if (s = this.test_match(a, d[o]), s !== !1)
249
- return s;
250
- if (this._backtrack) {
251
- r = !1;
252
- continue;
253
- } else
254
- return !1;
255
- } else if (!this.options.flex)
256
- break;
257
- }
258
- return r ? (s = this.test_match(r, d[u]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
259
- ` + this.showPosition(), {
260
- text: "",
261
- token: null,
262
- line: this.yylineno
263
- });
264
- },
265
- // return next match that has a token
266
- lex: function() {
267
- var r = this.next();
268
- return r || this.lex();
269
- },
270
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
271
- begin: function(r) {
272
- this.conditionStack.push(r);
273
- },
274
- // pop the previously active lexer condition state off the condition stack
275
- popState: function() {
276
- var r = this.conditionStack.length - 1;
277
- return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
278
- },
279
- // produce the lexer rule set which is active for the currently active lexer condition state
280
- _currentRules: function() {
281
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
282
- },
283
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
284
- topState: function(r) {
285
- return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
286
- },
287
- // alias for begin(condition)
288
- pushState: function(r) {
289
- this.begin(r);
290
- },
291
- // return the number of states currently on the stack
292
- stateStackSize: function() {
293
- return this.conditionStack.length;
294
- },
295
- options: { "case-insensitive": !0 },
296
- performAction: function(r, a, u, d) {
297
- switch (u) {
298
- case 0:
299
- break;
300
- case 1:
301
- break;
302
- case 2:
303
- return 10;
304
- case 3:
305
- break;
306
- case 4:
307
- break;
308
- case 5:
309
- return 4;
310
- case 6:
311
- return 11;
312
- case 7:
313
- return this.begin("acc_title"), 12;
314
- case 8:
315
- return this.popState(), "acc_title_value";
316
- case 9:
317
- return this.begin("acc_descr"), 14;
318
- case 10:
319
- return this.popState(), "acc_descr_value";
320
- case 11:
321
- this.begin("acc_descr_multiline");
322
- break;
323
- case 12:
324
- this.popState();
325
- break;
326
- case 13:
327
- return "acc_descr_multiline_value";
328
- case 14:
329
- return 17;
330
- case 15:
331
- return 18;
332
- case 16:
333
- return 19;
334
- case 17:
335
- return ":";
336
- case 18:
337
- return 6;
338
- case 19:
339
- return "INVALID";
340
- }
341
- },
342
- 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],
343
- 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 } }
344
- };
345
- return p;
346
- })();
347
- y.lexer = m;
348
- function g() {
349
- this.yy = {};
350
- }
351
- return g.prototype = y, y.Parser = g, new g();
352
- })();
353
- X.parser = X;
354
- const wt = X;
355
- let C = "";
356
- const G = [], V = [], F = [], $t = function() {
357
- G.length = 0, V.length = 0, C = "", F.length = 0, kt();
358
- }, Tt = function(t) {
359
- C = t, G.push(t);
360
- }, Mt = function() {
361
- return G;
362
- }, St = function() {
363
- let t = D();
364
- const e = 100;
365
- let i = 0;
366
- for (; !t && i < e; )
367
- t = D(), i++;
368
- return V.push(...F), V;
369
- }, Et = function() {
370
- const t = [];
371
- return V.forEach((i) => {
372
- i.people && t.push(...i.people);
373
- }), [...new Set(t)].sort();
374
- }, Pt = function(t, e) {
375
- const i = e.substr(1).split(":");
376
- let l = 0, n = [];
377
- i.length === 1 ? (l = Number(i[0]), n = []) : (l = Number(i[0]), n = i[1].split(","));
378
- const h = n.map((f) => f.trim()), c = {
379
- section: C,
380
- type: C,
381
- people: h,
382
- task: t,
383
- score: l
384
- };
385
- F.push(c);
386
- }, It = function(t) {
387
- const e = {
388
- section: C,
389
- type: C,
390
- description: t,
391
- task: t,
392
- classes: []
393
- };
394
- V.push(e);
395
- }, D = function() {
396
- const t = function(i) {
397
- return F[i].processed;
398
- };
399
- let e = !0;
400
- for (const [i, l] of F.entries())
401
- t(i), e = e && l.processed;
402
- return e;
403
- }, At = function() {
404
- return Et();
405
- }, tt = {
406
- getConfig: () => I().journey,
407
- clear: $t,
408
- setDiagramTitle: mt,
409
- getDiagramTitle: gt,
410
- setAccTitle: pt,
411
- getAccTitle: dt,
412
- setAccDescription: ft,
413
- getAccDescription: yt,
414
- addSection: Tt,
415
- getSections: Mt,
416
- getTasks: St,
417
- addTask: Pt,
418
- addTaskOrg: It,
419
- getActors: At
420
- }, Ct = (t) => `.label {
421
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
422
- font-family: var(--mermaid-font-family);
423
- color: ${t.textColor};
424
- }
425
- .mouth {
426
- stroke: #666;
427
- }
428
-
429
- line {
430
- stroke: ${t.textColor}
431
- }
432
-
433
- .legend {
434
- fill: ${t.textColor};
435
- }
436
-
437
- .label text {
438
- fill: #333;
439
- }
440
- .label {
441
- color: ${t.textColor}
442
- }
443
-
444
- .face {
445
- ${t.faceColor ? `fill: ${t.faceColor}` : "fill: #FFF8DC"};
446
- stroke: #999;
447
- }
448
-
449
- .node rect,
450
- .node circle,
451
- .node ellipse,
452
- .node polygon,
453
- .node path {
454
- fill: ${t.mainBkg};
455
- stroke: ${t.nodeBorder};
456
- stroke-width: 1px;
457
- }
458
-
459
- .node .label {
460
- text-align: center;
461
- }
462
- .node.clickable {
463
- cursor: pointer;
464
- }
465
-
466
- .arrowheadPath {
467
- fill: ${t.arrowheadColor};
468
- }
469
-
470
- .edgePath .path {
471
- stroke: ${t.lineColor};
472
- stroke-width: 1.5px;
473
- }
474
-
475
- .flowchart-link {
476
- stroke: ${t.lineColor};
477
- fill: none;
478
- }
479
-
480
- .edgeLabel {
481
- background-color: ${t.edgeLabelBackground};
482
- rect {
483
- opacity: 0.5;
484
- }
485
- text-align: center;
486
- }
487
-
488
- .cluster rect {
489
- }
490
-
491
- .cluster text {
492
- fill: ${t.titleColor};
493
- }
494
-
495
- div.mermaidTooltip {
496
- position: absolute;
497
- text-align: center;
498
- max-width: 200px;
499
- padding: 2px;
500
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
501
- font-family: var(--mermaid-font-family);
502
- font-size: 12px;
503
- background: ${t.tertiaryColor};
504
- border: 1px solid ${t.border2};
505
- border-radius: 2px;
506
- pointer-events: none;
507
- z-index: 100;
508
- }
509
-
510
- .task-type-0, .section-type-0 {
511
- ${t.fillType0 ? `fill: ${t.fillType0}` : ""};
512
- }
513
- .task-type-1, .section-type-1 {
514
- ${t.fillType0 ? `fill: ${t.fillType1}` : ""};
515
- }
516
- .task-type-2, .section-type-2 {
517
- ${t.fillType0 ? `fill: ${t.fillType2}` : ""};
518
- }
519
- .task-type-3, .section-type-3 {
520
- ${t.fillType0 ? `fill: ${t.fillType3}` : ""};
521
- }
522
- .task-type-4, .section-type-4 {
523
- ${t.fillType0 ? `fill: ${t.fillType4}` : ""};
524
- }
525
- .task-type-5, .section-type-5 {
526
- ${t.fillType0 ? `fill: ${t.fillType5}` : ""};
527
- }
528
- .task-type-6, .section-type-6 {
529
- ${t.fillType0 ? `fill: ${t.fillType6}` : ""};
530
- }
531
- .task-type-7, .section-type-7 {
532
- ${t.fillType0 ? `fill: ${t.fillType7}` : ""};
533
- }
534
-
535
- .actor-0 {
536
- ${t.actor0 ? `fill: ${t.actor0}` : ""};
537
- }
538
- .actor-1 {
539
- ${t.actor1 ? `fill: ${t.actor1}` : ""};
540
- }
541
- .actor-2 {
542
- ${t.actor2 ? `fill: ${t.actor2}` : ""};
543
- }
544
- .actor-3 {
545
- ${t.actor3 ? `fill: ${t.actor3}` : ""};
546
- }
547
- .actor-4 {
548
- ${t.actor4 ? `fill: ${t.actor4}` : ""};
549
- }
550
- .actor-5 {
551
- ${t.actor5 ? `fill: ${t.actor5}` : ""};
552
- }
553
- `, Vt = Ct, U = function(t, e) {
554
- return vt(t, e);
555
- }, Ft = function(t, e) {
556
- 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"), n = t.append("g");
557
- n.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"), n.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");
558
- function h(y) {
559
- const m = Q().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
560
- y.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 2) + ")");
561
- }
562
- function c(y) {
563
- const m = Q().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
564
- y.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + e.cx + "," + (e.cy + 7) + ")");
565
- }
566
- function f(y) {
567
- 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");
568
- }
569
- return e.score > 3 ? h(n) : e.score < 3 ? c(n) : f(n), l;
570
- }, rt = function(t, e) {
571
- const i = t.append("circle");
572
- 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;
573
- }, at = function(t, e) {
574
- return bt(t, e);
575
- }, Lt = function(t, e) {
576
- function i(n, h, c, f, y) {
577
- return n + "," + h + " " + (n + c) + "," + h + " " + (n + c) + "," + (h + f - y) + " " + (n + c - y * 1.2) + "," + (h + f) + " " + n + "," + (h + f);
578
- }
579
- const l = t.append("polygon");
580
- 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 + 0.5 * e.labelMargin, at(t, e);
581
- }, Rt = function(t, e, i) {
582
- const l = t.append("g"), n = it();
583
- n.x = e.x, n.y = e.y, n.fill = e.fill, n.width = i.width * e.taskCount + // width of the tasks
584
- i.diagramMarginX * (e.taskCount - 1), n.height = i.height, n.class = "journey-section section-type-" + e.num, n.rx = 3, n.ry = 3, U(l, n), ot(i)(
585
- e.text,
586
- l,
587
- n.x,
588
- n.y,
589
- n.width,
590
- n.height,
591
- { class: "journey-section section-type-" + e.num },
592
- i,
593
- e.colour
594
- );
595
- };
596
- let et = -1;
597
- const Nt = function(t, e, i) {
598
- const l = e.x + i.width / 2, n = t.append("g");
599
- et++, n.append("line").attr("id", "task" + et).attr("x1", l).attr("y1", e.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Ft(n, {
600
- cx: l,
601
- cy: 300 + (5 - e.score) * 30,
602
- score: e.score
603
- });
604
- const c = it();
605
- 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(n, c);
606
- let f = e.x + 14;
607
- e.people.forEach((y) => {
608
- const m = e.actors[y].color, g = {
609
- cx: f,
610
- cy: e.y,
611
- r: 7,
612
- fill: m,
613
- stroke: "#000",
614
- title: y,
615
- pos: e.actors[y].position
616
- };
617
- rt(n, g), f += 10;
618
- }), ot(i)(
619
- e.task,
620
- n,
621
- c.x,
622
- c.y,
623
- c.width,
624
- c.height,
625
- { class: "task" },
626
- i,
627
- e.colour
628
- );
629
- }, Bt = function(t, e) {
630
- _t(t, e);
631
- }, ot = /* @__PURE__ */ (function() {
632
- function t(n, h, c, f, y, m, g, p) {
633
- const s = h.append("text").attr("x", c + y / 2).attr("y", f + m / 2 + 5).style("font-color", p).style("text-anchor", "middle").text(n);
634
- l(s, g);
635
- }
636
- function e(n, h, c, f, y, m, g, p, s) {
637
- const { taskFontSize: r, taskFontFamily: a } = p, u = n.split(/<br\s*\/?>/gi);
638
- for (let d = 0; d < u.length; d++) {
639
- const o = d * r - r * (u.length - 1) / 2, w = h.append("text").attr("x", c + y / 2).attr("y", f).attr("fill", s).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
640
- w.append("tspan").attr("x", c + y / 2).attr("dy", o).text(u[d]), w.attr("y", f + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(w, g);
641
- }
642
- }
643
- function i(n, h, c, f, y, m, g, p) {
644
- const s = h.append("switch"), a = s.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%");
645
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(n), e(n, s, c, f, y, m, g, p), l(a, g);
646
- }
647
- function l(n, h) {
648
- for (const c in h)
649
- c in h && n.attr(c, h[c]);
650
- }
651
- return function(n) {
652
- return n.textPlacement === "fo" ? i : n.textPlacement === "old" ? t : e;
653
- };
654
- })(), jt = function(t) {
655
- 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");
656
- }, L = {
657
- drawRect: U,
658
- drawCircle: rt,
659
- drawSection: Rt,
660
- drawText: at,
661
- drawLabel: Lt,
662
- drawTask: Nt,
663
- drawBackgroundRect: Bt,
664
- initGraphics: jt
665
- }, zt = function(t) {
666
- Object.keys(t).forEach(function(i) {
667
- j[i] = t[i];
668
- });
669
- }, M = {};
670
- function Yt(t) {
671
- const e = I().journey;
672
- let i = 60;
673
- Object.keys(M).forEach((l) => {
674
- const n = M[l].color, h = {
675
- cx: 20,
676
- cy: i,
677
- r: 7,
678
- fill: n,
679
- stroke: "#000",
680
- pos: M[l].position
681
- };
682
- L.drawCircle(t, h);
683
- const c = {
684
- x: 40,
685
- y: i + 7,
686
- fill: "#666",
687
- text: l,
688
- textMargin: e.boxTextMargin | 5
689
- };
690
- L.drawText(t, c), i += 20;
691
- });
692
- }
693
- const j = I().journey, P = j.leftMargin, qt = function(t, e, i, l) {
694
- const n = I().journey, h = I().securityLevel;
695
- let c;
696
- h === "sandbox" && (c = H("#i" + e));
697
- const f = h === "sandbox" ? H(c.nodes()[0].contentDocument.body) : H("body");
698
- v.init();
699
- const y = f.select("#" + e);
700
- L.initGraphics(y);
701
- const m = l.db.getTasks(), g = l.db.getDiagramTitle(), p = l.db.getActors();
702
- for (const o in M)
703
- delete M[o];
704
- let s = 0;
705
- p.forEach((o) => {
706
- M[o] = {
707
- color: n.actorColours[s % n.actorColours.length],
708
- position: s
709
- }, s++;
710
- }), Yt(y), v.insert(0, 0, P, Object.keys(M).length * 50), Ot(y, m, 0);
711
- const r = v.getBounds();
712
- g && y.append("text").text(g).attr("x", P).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25);
713
- const a = r.stopy - r.starty + 2 * n.diagramMarginY, u = P + r.stopx + 2 * n.diagramMarginX;
714
- xt(y, a, u, n.useMaxWidth), y.append("line").attr("x1", P).attr("y1", n.height * 4).attr("x2", u - P - 4).attr("y2", n.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)");
715
- const d = g ? 70 : 0;
716
- y.attr("viewBox", `${r.startx} -25 ${u} ${a + d}`), y.attr("preserveAspectRatio", "xMinYMin meet"), y.attr("height", a + d + 25);
717
- }, v = {
718
- data: {
719
- startx: void 0,
720
- stopx: void 0,
721
- starty: void 0,
722
- stopy: void 0
723
- },
724
- verticalPos: 0,
725
- sequenceItems: [],
726
- init: function() {
727
- this.sequenceItems = [], this.data = {
728
- startx: void 0,
729
- stopx: void 0,
730
- starty: void 0,
731
- stopy: void 0
732
- }, this.verticalPos = 0;
733
- },
734
- updateVal: function(t, e, i, l) {
735
- t[e] === void 0 ? t[e] = i : t[e] = l(i, t[e]);
736
- },
737
- updateBounds: function(t, e, i, l) {
738
- const n = I().journey, h = this;
739
- let c = 0;
740
- function f(y) {
741
- return function(g) {
742
- c++;
743
- const p = h.sequenceItems.length - c + 1;
744
- h.updateVal(g, "starty", e - p * n.boxMargin, Math.min), h.updateVal(g, "stopy", l + p * n.boxMargin, Math.max), h.updateVal(v.data, "startx", t - p * n.boxMargin, Math.min), h.updateVal(v.data, "stopx", i + p * n.boxMargin, Math.max), h.updateVal(g, "startx", t - p * n.boxMargin, Math.min), h.updateVal(g, "stopx", i + p * n.boxMargin, Math.max), h.updateVal(v.data, "starty", e - p * n.boxMargin, Math.min), h.updateVal(v.data, "stopy", l + p * n.boxMargin, Math.max);
745
- };
746
- }
747
- this.sequenceItems.forEach(f());
748
- },
749
- insert: function(t, e, i, l) {
750
- const n = Math.min(t, i), h = Math.max(t, i), c = Math.min(e, l), f = Math.max(e, l);
751
- this.updateVal(v.data, "startx", n, Math.min), this.updateVal(v.data, "starty", c, Math.min), this.updateVal(v.data, "stopx", h, Math.max), this.updateVal(v.data, "stopy", f, Math.max), this.updateBounds(n, c, h, f);
752
- },
753
- bumpVerticalPos: function(t) {
754
- this.verticalPos = this.verticalPos + t, this.data.stopy = this.verticalPos;
755
- },
756
- getVerticalPos: function() {
757
- return this.verticalPos;
758
- },
759
- getBounds: function() {
760
- return this.data;
761
- }
762
- }, W = j.sectionFills, st = j.sectionColours, Ot = function(t, e, i) {
763
- const l = I().journey;
764
- let n = "";
765
- const h = l.height * 2 + l.diagramMarginY, c = i + h;
766
- let f = 0, y = "#CCC", m = "black", g = 0;
767
- for (const [p, s] of e.entries()) {
768
- if (n !== s.section) {
769
- y = W[f % W.length], g = f % W.length, m = st[f % st.length];
770
- let a = 0;
771
- const u = s.section;
772
- for (let o = p; o < e.length && e[o].section == u; o++)
773
- a = a + 1;
774
- const d = {
775
- x: p * l.taskMargin + p * l.width + P,
776
- y: 50,
777
- text: s.section,
778
- fill: y,
779
- num: g,
780
- colour: m,
781
- taskCount: a
782
- };
783
- L.drawSection(t, d, l), n = s.section, f++;
784
- }
785
- const r = s.people.reduce((a, u) => (M[u] && (a[u] = M[u]), a), {});
786
- s.x = p * l.taskMargin + p * l.width + P, s.y = c, s.width = l.diagramMarginX, s.height = l.diagramMarginY, s.colour = m, s.fill = y, s.num = g, s.actors = r, L.drawTask(t, s, l), v.insert(s.x, s.y, s.x + s.width + l.taskMargin, 450);
787
- }
788
- }, nt = {
789
- setConf: zt,
790
- draw: qt
791
- }, Ut = {
792
- parser: wt,
793
- db: tt,
794
- renderer: nt,
795
- styles: Vt,
796
- init: (t) => {
797
- nt.setConf(t.journey), tt.clear();
798
- }
799
- };
800
- export {
801
- Ut as diagram
802
- };