@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,960 +0,0 @@
1
- import { n as Ut, o as zt, s as Mt, a as Ht, c as Xt, b as Kt, g as Y, j as ot, l as D, q as Wt, a1 as Jt } from "./layers.C55wllfV.js";
2
- var gt = (function() {
3
- var t = function(C, r, n, i) {
4
- for (n = n || {}, i = C.length; i--; n[C[i]] = r)
5
- ;
6
- return n;
7
- }, s = [1, 2], a = [1, 3], h = [1, 4], f = [2, 4], d = [1, 9], y = [1, 11], k = [1, 15], u = [1, 16], E = [1, 17], T = [1, 18], R = [1, 30], G = [1, 19], j = [1, 20], U = [1, 21], z = [1, 22], M = [1, 23], H = [1, 25], X = [1, 26], K = [1, 27], W = [1, 28], J = [1, 29], q = [1, 32], Q = [1, 33], Z = [1, 34], tt = [1, 35], w = [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], et = [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], Dt = [4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], ht = {
8
- trace: function() {
9
- },
10
- yy: {},
11
- 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 },
12
- 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" },
13
- 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]],
14
- performAction: function(r, n, i, o, p, e, $) {
15
- var l = e.length - 1;
16
- switch (p) {
17
- case 3:
18
- return o.setRootDoc(e[l]), e[l];
19
- case 4:
20
- this.$ = [];
21
- break;
22
- case 5:
23
- e[l] != "nl" && (e[l - 1].push(e[l]), this.$ = e[l - 1]);
24
- break;
25
- case 6:
26
- case 7:
27
- this.$ = e[l];
28
- break;
29
- case 8:
30
- this.$ = "nl";
31
- break;
32
- case 11:
33
- this.$ = e[l];
34
- break;
35
- case 12:
36
- const B = e[l - 1];
37
- B.description = o.trimColon(e[l]), this.$ = B;
38
- break;
39
- case 13:
40
- this.$ = { stmt: "relation", state1: e[l - 2], state2: e[l] };
41
- break;
42
- case 14:
43
- const ft = o.trimColon(e[l]);
44
- this.$ = { stmt: "relation", state1: e[l - 3], state2: e[l - 1], description: ft };
45
- break;
46
- case 18:
47
- this.$ = { stmt: "state", id: e[l - 3], type: "default", description: "", doc: e[l - 1] };
48
- break;
49
- case 19:
50
- var v = e[l], O = e[l - 2].trim();
51
- if (e[l].match(":")) {
52
- var st = e[l].split(":");
53
- v = st[0], O = [O, st[1]];
54
- }
55
- this.$ = { stmt: "state", id: v, type: "default", description: O };
56
- break;
57
- case 20:
58
- this.$ = { stmt: "state", id: e[l - 3], type: "default", description: e[l - 5], doc: e[l - 1] };
59
- break;
60
- case 21:
61
- this.$ = { stmt: "state", id: e[l], type: "fork" };
62
- break;
63
- case 22:
64
- this.$ = { stmt: "state", id: e[l], type: "join" };
65
- break;
66
- case 23:
67
- this.$ = { stmt: "state", id: e[l], type: "choice" };
68
- break;
69
- case 24:
70
- this.$ = { stmt: "state", id: o.getDividerId(), type: "divider" };
71
- break;
72
- case 25:
73
- this.$ = { stmt: "state", id: e[l - 1].trim(), note: { position: e[l - 2].trim(), text: e[l].trim() } };
74
- break;
75
- case 28:
76
- this.$ = e[l].trim(), o.setAccTitle(this.$);
77
- break;
78
- case 29:
79
- case 30:
80
- this.$ = e[l].trim(), o.setAccDescription(this.$);
81
- break;
82
- case 31:
83
- case 32:
84
- this.$ = { stmt: "classDef", id: e[l - 1].trim(), classes: e[l].trim() };
85
- break;
86
- case 33:
87
- this.$ = { stmt: "applyClass", id: e[l - 1].trim(), styleClass: e[l].trim() };
88
- break;
89
- case 34:
90
- o.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
91
- break;
92
- case 35:
93
- o.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
94
- break;
95
- case 36:
96
- o.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
97
- break;
98
- case 37:
99
- o.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
100
- break;
101
- case 40:
102
- case 41:
103
- this.$ = { stmt: "state", id: e[l].trim(), type: "default", description: "" };
104
- break;
105
- case 42:
106
- this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
107
- break;
108
- case 43:
109
- this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
110
- break;
111
- }
112
- },
113
- 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], f, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 5]), { 9: 36, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, 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(et, [2, 40], { 51: [1, 51] }), t(et, [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: w }, t(c, [2, 16]), t(Dt, f, { 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: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 64], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, 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(et, [2, 42]), t(et, [2, 43]), t(c, [2, 14]), t(c, [2, 18]), t(Dt, f, { 7: 68 }), t(c, [2, 25]), t(c, [2, 26]), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 69], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 20])],
114
- defaultActions: { 5: [2, 1], 6: [2, 2], 44: [2, 44], 45: [2, 45] },
115
- parseError: function(r, n) {
116
- if (n.recoverable)
117
- this.trace(r);
118
- else {
119
- var i = new Error(r);
120
- throw i.hash = n, i;
121
- }
122
- },
123
- parse: function(r) {
124
- var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", v = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), A = { yy: {} };
125
- for (var dt in this.yy)
126
- Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
127
- S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
128
- var yt = S.yylloc;
129
- e.push(yt);
130
- var Gt = S.options && S.options.ranges;
131
- typeof A.yy.parseError == "function" ? this.parseError = A.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
- function jt() {
133
- var x;
134
- return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
135
- }
136
- for (var _, L, m, pt, N = {}, it, b, Ct, rt; ; ) {
137
- if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[L] && $[L][_]), typeof m > "u" || !m.length || !m[0]) {
138
- var St = "";
139
- rt = [];
140
- for (it in $[L])
141
- this.terminals_[it] && it > st && rt.push("'" + this.terminals_[it] + "'");
142
- S.showPosition ? St = "Parse error on line " + (v + 1) + `:
143
- ` + S.showPosition() + `
144
- Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St = "Parse error on line " + (v + 1) + ": Unexpected " + (_ == B ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(St, {
145
- text: S.match,
146
- token: this.terminals_[_] || _,
147
- line: S.yylineno,
148
- loc: yt,
149
- expected: rt
150
- });
151
- }
152
- if (m[0] instanceof Array && m.length > 1)
153
- throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + _);
154
- switch (m[0]) {
155
- case 1:
156
- i.push(_), p.push(S.yytext), e.push(S.yylloc), i.push(m[1]), _ = null, O = S.yyleng, l = S.yytext, v = S.yylineno, yt = S.yylloc;
157
- break;
158
- case 2:
159
- if (b = this.productions_[m[1]][1], N.$ = p[p.length - b], N._$ = {
160
- first_line: e[e.length - (b || 1)].first_line,
161
- last_line: e[e.length - 1].last_line,
162
- first_column: e[e.length - (b || 1)].first_column,
163
- last_column: e[e.length - 1].last_column
164
- }, Gt && (N._$.range = [
165
- e[e.length - (b || 1)].range[0],
166
- e[e.length - 1].range[1]
167
- ]), pt = this.performAction.apply(N, [
168
- l,
169
- O,
170
- v,
171
- A.yy,
172
- m[1],
173
- p,
174
- e
175
- ].concat(ft)), typeof pt < "u")
176
- return pt;
177
- b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
178
- break;
179
- case 3:
180
- return !0;
181
- }
182
- }
183
- return !0;
184
- }
185
- }, Yt = /* @__PURE__ */ (function() {
186
- var C = {
187
- EOF: 1,
188
- parseError: function(n, i) {
189
- if (this.yy.parser)
190
- this.yy.parser.parseError(n, i);
191
- else
192
- throw new Error(n);
193
- },
194
- // resets the lexer, sets new input
195
- setInput: function(r, n) {
196
- 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 = {
197
- first_line: 1,
198
- first_column: 0,
199
- last_line: 1,
200
- last_column: 0
201
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
202
- },
203
- // consumes and returns one char from the input
204
- input: function() {
205
- var r = this._input[0];
206
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
207
- var n = r.match(/(?:\r\n?|\n).*/g);
208
- 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;
209
- },
210
- // unshifts one char (or a string) into the input
211
- unput: function(r) {
212
- var n = r.length, i = r.split(/(?:\r\n?|\n)/g);
213
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
214
- var o = this.match.split(/(?:\r\n?|\n)/g);
215
- 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);
216
- var p = this.yylloc.range;
217
- return this.yylloc = {
218
- first_line: this.yylloc.first_line,
219
- last_line: this.yylineno + 1,
220
- first_column: this.yylloc.first_column,
221
- 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
222
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
223
- },
224
- // When called from action, caches matched text and appends it on next action
225
- more: function() {
226
- return this._more = !0, this;
227
- },
228
- // 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.
229
- reject: function() {
230
- if (this.options.backtrack_lexer)
231
- this._backtrack = !0;
232
- else
233
- 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).
234
- ` + this.showPosition(), {
235
- text: "",
236
- token: null,
237
- line: this.yylineno
238
- });
239
- return this;
240
- },
241
- // retain first n characters of the match
242
- less: function(r) {
243
- this.unput(this.match.slice(r));
244
- },
245
- // displays already matched input, i.e. for error messages
246
- pastInput: function() {
247
- var r = this.matched.substr(0, this.matched.length - this.match.length);
248
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
249
- },
250
- // displays upcoming input, i.e. for error messages
251
- upcomingInput: function() {
252
- var r = this.match;
253
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
254
- },
255
- // displays the character position where the lexing error occurred, i.e. for error messages
256
- showPosition: function() {
257
- var r = this.pastInput(), n = new Array(r.length + 1).join("-");
258
- return r + this.upcomingInput() + `
259
- ` + n + "^";
260
- },
261
- // test the lexed token: return FALSE when not a match, otherwise return token
262
- test_match: function(r, n) {
263
- var i, o, p;
264
- if (this.options.backtrack_lexer && (p = {
265
- yylineno: this.yylineno,
266
- yylloc: {
267
- first_line: this.yylloc.first_line,
268
- last_line: this.last_line,
269
- first_column: this.yylloc.first_column,
270
- last_column: this.yylloc.last_column
271
- },
272
- yytext: this.yytext,
273
- match: this.match,
274
- matches: this.matches,
275
- matched: this.matched,
276
- yyleng: this.yyleng,
277
- offset: this.offset,
278
- _more: this._more,
279
- _input: this._input,
280
- yy: this.yy,
281
- conditionStack: this.conditionStack.slice(0),
282
- done: this.done
283
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), o = r[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
284
- first_line: this.yylloc.last_line,
285
- last_line: this.yylineno + 1,
286
- first_column: this.yylloc.last_column,
287
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
288
- }, 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)
289
- return i;
290
- if (this._backtrack) {
291
- for (var e in p)
292
- this[e] = p[e];
293
- return !1;
294
- }
295
- return !1;
296
- },
297
- // return next match in input
298
- next: function() {
299
- if (this.done)
300
- return this.EOF;
301
- this._input || (this.done = !0);
302
- var r, n, i, o;
303
- this._more || (this.yytext = "", this.match = "");
304
- for (var p = this._currentRules(), e = 0; e < p.length; e++)
305
- if (i = this._input.match(this.rules[p[e]]), i && (!n || i[0].length > n[0].length)) {
306
- if (n = i, o = e, this.options.backtrack_lexer) {
307
- if (r = this.test_match(i, p[e]), r !== !1)
308
- return r;
309
- if (this._backtrack) {
310
- n = !1;
311
- continue;
312
- } else
313
- return !1;
314
- } else if (!this.options.flex)
315
- break;
316
- }
317
- return n ? (r = this.test_match(n, p[o]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
318
- ` + this.showPosition(), {
319
- text: "",
320
- token: null,
321
- line: this.yylineno
322
- });
323
- },
324
- // return next match that has a token
325
- lex: function() {
326
- var n = this.next();
327
- return n || this.lex();
328
- },
329
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
330
- begin: function(n) {
331
- this.conditionStack.push(n);
332
- },
333
- // pop the previously active lexer condition state off the condition stack
334
- popState: function() {
335
- var n = this.conditionStack.length - 1;
336
- return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
337
- },
338
- // produce the lexer rule set which is active for the currently active lexer condition state
339
- _currentRules: function() {
340
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
341
- },
342
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
343
- topState: function(n) {
344
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
345
- },
346
- // alias for begin(condition)
347
- pushState: function(n) {
348
- this.begin(n);
349
- },
350
- // return the number of states currently on the stack
351
- stateStackSize: function() {
352
- return this.conditionStack.length;
353
- },
354
- options: { "case-insensitive": !0 },
355
- performAction: function(n, i, o, p) {
356
- switch (o) {
357
- case 0:
358
- return 40;
359
- case 1:
360
- return 44;
361
- case 2:
362
- return 45;
363
- case 3:
364
- return 46;
365
- case 4:
366
- return 47;
367
- case 5:
368
- break;
369
- case 6:
370
- break;
371
- case 7:
372
- return 5;
373
- case 8:
374
- break;
375
- case 9:
376
- break;
377
- case 10:
378
- break;
379
- case 11:
380
- break;
381
- case 12:
382
- return this.pushState("SCALE"), 16;
383
- case 13:
384
- return 17;
385
- case 14:
386
- this.popState();
387
- break;
388
- case 15:
389
- return this.begin("acc_title"), 32;
390
- case 16:
391
- return this.popState(), "acc_title_value";
392
- case 17:
393
- return this.begin("acc_descr"), 34;
394
- case 18:
395
- return this.popState(), "acc_descr_value";
396
- case 19:
397
- this.begin("acc_descr_multiline");
398
- break;
399
- case 20:
400
- this.popState();
401
- break;
402
- case 21:
403
- return "acc_descr_multiline_value";
404
- case 22:
405
- return this.pushState("CLASSDEF"), 37;
406
- case 23:
407
- return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
408
- case 24:
409
- return this.popState(), this.pushState("CLASSDEFID"), 38;
410
- case 25:
411
- return this.popState(), 39;
412
- case 26:
413
- return this.pushState("CLASS"), 41;
414
- case 27:
415
- return this.popState(), this.pushState("CLASS_STYLE"), 42;
416
- case 28:
417
- return this.popState(), 43;
418
- case 29:
419
- return this.pushState("SCALE"), 16;
420
- case 30:
421
- return 17;
422
- case 31:
423
- this.popState();
424
- break;
425
- case 32:
426
- this.pushState("STATE");
427
- break;
428
- case 33:
429
- return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
430
- case 34:
431
- return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
432
- case 35:
433
- return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
434
- case 36:
435
- return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
436
- case 37:
437
- return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
438
- case 38:
439
- return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
440
- case 39:
441
- return 44;
442
- case 40:
443
- return 45;
444
- case 41:
445
- return 46;
446
- case 42:
447
- return 47;
448
- case 43:
449
- this.pushState("STATE_STRING");
450
- break;
451
- case 44:
452
- return this.pushState("STATE_ID"), "AS";
453
- case 45:
454
- return this.popState(), "ID";
455
- case 46:
456
- this.popState();
457
- break;
458
- case 47:
459
- return "STATE_DESCR";
460
- case 48:
461
- return 18;
462
- case 49:
463
- this.popState();
464
- break;
465
- case 50:
466
- return this.popState(), this.pushState("struct"), 19;
467
- case 51:
468
- break;
469
- case 52:
470
- return this.popState(), 20;
471
- case 53:
472
- break;
473
- case 54:
474
- return this.begin("NOTE"), 28;
475
- case 55:
476
- return this.popState(), this.pushState("NOTE_ID"), 52;
477
- case 56:
478
- return this.popState(), this.pushState("NOTE_ID"), 53;
479
- case 57:
480
- this.popState(), this.pushState("FLOATING_NOTE");
481
- break;
482
- case 58:
483
- return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
484
- case 59:
485
- break;
486
- case 60:
487
- return "NOTE_TEXT";
488
- case 61:
489
- return this.popState(), "ID";
490
- case 62:
491
- return this.popState(), this.pushState("NOTE_TEXT"), 23;
492
- case 63:
493
- return this.popState(), i.yytext = i.yytext.substr(2).trim(), 30;
494
- case 64:
495
- return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 30;
496
- case 65:
497
- return 6;
498
- case 66:
499
- return 6;
500
- case 67:
501
- return 15;
502
- case 68:
503
- return 50;
504
- case 69:
505
- return 23;
506
- case 70:
507
- return i.yytext = i.yytext.trim(), 13;
508
- case 71:
509
- return 14;
510
- case 72:
511
- return 27;
512
- case 73:
513
- return 51;
514
- case 74:
515
- return 5;
516
- case 75:
517
- return "INVALID";
518
- }
519
- },
520
- 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],
521
- 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 } }
522
- };
523
- return C;
524
- })();
525
- ht.lexer = Yt;
526
- function ut() {
527
- this.yy = {};
528
- }
529
- return ut.prototype = ht, ht.Parser = ut, new ut();
530
- })();
531
- gt.parser = gt;
532
- const De = gt, qt = "LR", Ce = "TB", _t = "state", It = "relation", Qt = "classDef", Zt = "applyClass", Et = "default", te = "divider", bt = "[*]", Ot = "start", Nt = bt, Rt = "end", vt = "color", At = "fill", ee = "bgFill", se = ",";
533
- function wt() {
534
- return {};
535
- }
536
- let $t = qt, lt = [], P = wt();
537
- const Bt = () => ({
538
- relations: [],
539
- states: {},
540
- documents: {}
541
- });
542
- let ct = {
543
- root: Bt()
544
- }, g = ct.root, F = 0, Lt = 0;
545
- const ie = {
546
- LINE: 0,
547
- DOTTED_LINE: 1
548
- }, re = {
549
- AGGREGATION: 0,
550
- EXTENSION: 1,
551
- COMPOSITION: 2,
552
- DEPENDENCY: 3
553
- }, nt = (t) => JSON.parse(JSON.stringify(t)), ne = (t) => {
554
- D.info("Setting root doc", t), lt = t;
555
- }, ae = () => lt, at = (t, s, a) => {
556
- if (s.stmt === It)
557
- at(t, s.state1, !0), at(t, s.state2, !1);
558
- else if (s.stmt === _t && (s.id === "[*]" ? (s.id = a ? t.id + "_start" : t.id + "_end", s.start = a) : s.id = s.id.trim()), s.doc) {
559
- const h = [];
560
- let f = [], d;
561
- for (d = 0; d < s.doc.length; d++)
562
- if (s.doc[d].type === te) {
563
- const y = nt(s.doc[d]);
564
- y.doc = nt(f), h.push(y), f = [];
565
- } else
566
- f.push(s.doc[d]);
567
- if (h.length > 0 && f.length > 0) {
568
- const y = {
569
- stmt: _t,
570
- id: Jt(),
571
- type: "divider",
572
- doc: nt(f)
573
- };
574
- h.push(nt(y)), s.doc = h;
575
- }
576
- s.doc.forEach((y) => at(s, y, !0));
577
- }
578
- }, le = () => (at({ id: "root" }, { id: "root", doc: lt }, !0), { id: "root", doc: lt }), ce = (t) => {
579
- let s;
580
- t.doc ? s = t.doc : s = t, D.info(s), Pt(!0), D.info("Extract", s), s.forEach((a) => {
581
- switch (a.stmt) {
582
- case _t:
583
- I(
584
- a.id.trim(),
585
- a.type,
586
- a.doc,
587
- a.description,
588
- a.note,
589
- a.classes,
590
- a.styles,
591
- a.textStyles
592
- );
593
- break;
594
- case It:
595
- Ft(a.state1, a.state2, a.description);
596
- break;
597
- case Qt:
598
- Vt(a.id.trim(), a.classes);
599
- break;
600
- case Zt:
601
- xt(a.id.trim(), a.styleClass);
602
- break;
603
- }
604
- });
605
- }, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
606
- const u = t == null ? void 0 : t.trim();
607
- g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
608
- id: u,
609
- descriptions: [],
610
- type: s,
611
- doc: a,
612
- note: f,
613
- classes: [],
614
- styles: [],
615
- textStyles: []
616
- }) : (g.states[u].doc || (g.states[u].doc = a), g.states[u].type || (g.states[u].type = s)), h && (D.info("Setting state description", u, h), typeof h == "string" && kt(u, h.trim()), typeof h == "object" && h.forEach((E) => kt(u, E.trim()))), f && (g.states[u].note = f, g.states[u].note.text = ot.sanitizeText(
617
- g.states[u].note.text,
618
- Y()
619
- )), d && (D.info("Setting state classes", u, d), (typeof d == "string" ? [d] : d).forEach((T) => xt(u, T.trim()))), y && (D.info("Setting state styles", u, y), (typeof y == "string" ? [y] : y).forEach((T) => _e(u, T.trim()))), k && (D.info("Setting state styles", u, y), (typeof k == "string" ? [k] : k).forEach((T) => me(u, T.trim())));
620
- }, Pt = function(t) {
621
- ct = {
622
- root: Bt()
623
- }, g = ct.root, F = 0, P = wt(), t || Wt();
624
- }, V = function(t) {
625
- return g.states[t];
626
- }, oe = function() {
627
- return g.states;
628
- }, he = function() {
629
- D.info("Documents = ", ct);
630
- }, ue = function() {
631
- return g.relations;
632
- };
633
- function mt(t = "") {
634
- let s = t;
635
- return t === bt && (F++, s = `${Ot}${F}`), s;
636
- }
637
- function Tt(t = "", s = Et) {
638
- return t === bt ? Ot : s;
639
- }
640
- function fe(t = "") {
641
- let s = t;
642
- return t === Nt && (F++, s = `${Rt}${F}`), s;
643
- }
644
- function de(t = "", s = Et) {
645
- return t === Nt ? Rt : s;
646
- }
647
- function ye(t, s, a) {
648
- let h = mt(t.id.trim()), f = Tt(t.id.trim(), t.type), d = mt(s.id.trim()), y = Tt(s.id.trim(), s.type);
649
- I(
650
- h,
651
- f,
652
- t.doc,
653
- t.description,
654
- t.note,
655
- t.classes,
656
- t.styles,
657
- t.textStyles
658
- ), I(
659
- d,
660
- y,
661
- s.doc,
662
- s.description,
663
- s.note,
664
- s.classes,
665
- s.styles,
666
- s.textStyles
667
- ), g.relations.push({
668
- id1: h,
669
- id2: d,
670
- relationTitle: ot.sanitizeText(a, Y())
671
- });
672
- }
673
- const Ft = function(t, s, a) {
674
- if (typeof t == "object")
675
- ye(t, s, a);
676
- else {
677
- const h = mt(t.trim()), f = Tt(t), d = fe(s.trim()), y = de(s);
678
- I(h, f), I(d, y), g.relations.push({
679
- id1: h,
680
- id2: d,
681
- title: ot.sanitizeText(a, Y())
682
- });
683
- }
684
- }, kt = function(t, s) {
685
- const a = g.states[t], h = s.startsWith(":") ? s.replace(":", "").trim() : s;
686
- a.descriptions.push(ot.sanitizeText(h, Y()));
687
- }, pe = function(t) {
688
- return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
689
- }, Se = () => (Lt++, "divider-id-" + Lt), Vt = function(t, s = "") {
690
- P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
691
- const a = P[t];
692
- s != null && s.split(se).forEach((h) => {
693
- const f = h.replace(/([^;]*);/, "$1").trim();
694
- if (h.match(vt)) {
695
- const y = f.replace(At, ee).replace(vt, At);
696
- a.textStyles.push(y);
697
- }
698
- a.styles.push(f);
699
- });
700
- }, ge = function() {
701
- return P;
702
- }, xt = function(t, s) {
703
- t.split(",").forEach(function(a) {
704
- let h = V(a);
705
- if (h === void 0) {
706
- const f = a.trim();
707
- I(f), h = V(f);
708
- }
709
- h.classes.push(s);
710
- });
711
- }, _e = function(t, s) {
712
- const a = V(t);
713
- a !== void 0 && a.textStyles.push(s);
714
- }, me = function(t, s) {
715
- const a = V(t);
716
- a !== void 0 && a.textStyles.push(s);
717
- }, Te = () => $t, ke = (t) => {
718
- $t = t;
719
- }, Ee = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), ve = {
720
- getConfig: () => Y().state,
721
- addState: I,
722
- clear: Pt,
723
- getState: V,
724
- getStates: oe,
725
- getRelations: ue,
726
- getClasses: ge,
727
- getDirection: Te,
728
- addRelation: Ft,
729
- getDividerId: Se,
730
- setDirection: ke,
731
- cleanupLabel: pe,
732
- lineType: ie,
733
- relationType: re,
734
- logDocuments: he,
735
- getRootDoc: ae,
736
- setRootDoc: ne,
737
- getRootDocV2: le,
738
- extract: ce,
739
- trimColon: Ee,
740
- getAccTitle: Kt,
741
- setAccTitle: Xt,
742
- getAccDescription: Ht,
743
- setAccDescription: Mt,
744
- addStyleClass: Vt,
745
- setCssClass: xt,
746
- addDescription: kt,
747
- setDiagramTitle: zt,
748
- getDiagramTitle: Ut
749
- }, be = (t) => `
750
- defs #statediagram-barbEnd {
751
- fill: ${t.transitionColor};
752
- stroke: ${t.transitionColor};
753
- }
754
- g.stateGroup text {
755
- fill: ${t.nodeBorder};
756
- stroke: none;
757
- font-size: 10px;
758
- }
759
- g.stateGroup text {
760
- fill: ${t.textColor};
761
- stroke: none;
762
- font-size: 10px;
763
-
764
- }
765
- g.stateGroup .state-title {
766
- font-weight: bolder;
767
- fill: ${t.stateLabelColor};
768
- }
769
-
770
- g.stateGroup rect {
771
- fill: ${t.mainBkg};
772
- stroke: ${t.nodeBorder};
773
- }
774
-
775
- g.stateGroup line {
776
- stroke: ${t.lineColor};
777
- stroke-width: 1;
778
- }
779
-
780
- .transition {
781
- stroke: ${t.transitionColor};
782
- stroke-width: 1;
783
- fill: none;
784
- }
785
-
786
- .stateGroup .composit {
787
- fill: ${t.background};
788
- border-bottom: 1px
789
- }
790
-
791
- .stateGroup .alt-composit {
792
- fill: #e0e0e0;
793
- border-bottom: 1px
794
- }
795
-
796
- .state-note {
797
- stroke: ${t.noteBorderColor};
798
- fill: ${t.noteBkgColor};
799
-
800
- text {
801
- fill: ${t.noteTextColor};
802
- stroke: none;
803
- font-size: 10px;
804
- }
805
- }
806
-
807
- .stateLabel .box {
808
- stroke: none;
809
- stroke-width: 0;
810
- fill: ${t.mainBkg};
811
- opacity: 0.5;
812
- }
813
-
814
- .edgeLabel .label rect {
815
- fill: ${t.labelBackgroundColor};
816
- opacity: 0.5;
817
- }
818
- .edgeLabel .label text {
819
- fill: ${t.transitionLabelColor || t.tertiaryTextColor};
820
- }
821
- .label div .edgeLabel {
822
- color: ${t.transitionLabelColor || t.tertiaryTextColor};
823
- }
824
-
825
- .stateLabel text {
826
- fill: ${t.stateLabelColor};
827
- font-size: 10px;
828
- font-weight: bold;
829
- }
830
-
831
- .node circle.state-start {
832
- fill: ${t.specialStateColor};
833
- stroke: ${t.specialStateColor};
834
- }
835
-
836
- .node .fork-join {
837
- fill: ${t.specialStateColor};
838
- stroke: ${t.specialStateColor};
839
- }
840
-
841
- .node circle.state-end {
842
- fill: ${t.innerEndBackground};
843
- stroke: ${t.background};
844
- stroke-width: 1.5
845
- }
846
- .end-state-inner {
847
- fill: ${t.compositeBackground || t.background};
848
- // stroke: ${t.background};
849
- stroke-width: 1.5
850
- }
851
-
852
- .node rect {
853
- fill: ${t.stateBkg || t.mainBkg};
854
- stroke: ${t.stateBorder || t.nodeBorder};
855
- stroke-width: 1px;
856
- }
857
- .node polygon {
858
- fill: ${t.mainBkg};
859
- stroke: ${t.stateBorder || t.nodeBorder};;
860
- stroke-width: 1px;
861
- }
862
- #statediagram-barbEnd {
863
- fill: ${t.lineColor};
864
- }
865
-
866
- .statediagram-cluster rect {
867
- fill: ${t.compositeTitleBackground};
868
- stroke: ${t.stateBorder || t.nodeBorder};
869
- stroke-width: 1px;
870
- }
871
-
872
- .cluster-label, .nodeLabel {
873
- color: ${t.stateLabelColor};
874
- }
875
-
876
- .statediagram-cluster rect.outer {
877
- rx: 5px;
878
- ry: 5px;
879
- }
880
- .statediagram-state .divider {
881
- stroke: ${t.stateBorder || t.nodeBorder};
882
- }
883
-
884
- .statediagram-state .title-state {
885
- rx: 5px;
886
- ry: 5px;
887
- }
888
- .statediagram-cluster.statediagram-cluster .inner {
889
- fill: ${t.compositeBackground || t.background};
890
- }
891
- .statediagram-cluster.statediagram-cluster-alt .inner {
892
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
893
- }
894
-
895
- .statediagram-cluster .inner {
896
- rx:0;
897
- ry:0;
898
- }
899
-
900
- .statediagram-state rect.basic {
901
- rx: 5px;
902
- ry: 5px;
903
- }
904
- .statediagram-state rect.divider {
905
- stroke-dasharray: 10,10;
906
- fill: ${t.altBackground ? t.altBackground : "#efefef"};
907
- }
908
-
909
- .note-edge {
910
- stroke-dasharray: 5;
911
- }
912
-
913
- .statediagram-note rect {
914
- fill: ${t.noteBkgColor};
915
- stroke: ${t.noteBorderColor};
916
- stroke-width: 1px;
917
- rx: 0;
918
- ry: 0;
919
- }
920
- .statediagram-note rect {
921
- fill: ${t.noteBkgColor};
922
- stroke: ${t.noteBorderColor};
923
- stroke-width: 1px;
924
- rx: 0;
925
- ry: 0;
926
- }
927
-
928
- .statediagram-note text {
929
- fill: ${t.noteTextColor};
930
- }
931
-
932
- .statediagram-note .nodeLabel {
933
- color: ${t.noteTextColor};
934
- }
935
- .statediagram .edgeLabel {
936
- color: red; // ${t.noteTextColor};
937
- }
938
-
939
- #dependencyStart, #dependencyEnd {
940
- fill: ${t.lineColor};
941
- stroke: ${t.lineColor};
942
- stroke-width: 1;
943
- }
944
-
945
- .statediagramTitleText {
946
- text-anchor: middle;
947
- font-size: 18px;
948
- fill: ${t.textColor};
949
- }
950
- `, Ae = be;
951
- export {
952
- Ce as D,
953
- It as S,
954
- Et as a,
955
- te as b,
956
- _t as c,
957
- ve as d,
958
- De as p,
959
- Ae as s
960
- };