@layers-app/editor 0.4.1 → 0.5.1

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 (241) hide show
  1. package/README.md +37 -1
  2. package/package.json +10 -10
  3. package/dist/index.cjs +0 -2
  4. package/dist/index.d.ts +0 -315
  5. package/dist/index.js +0 -13
  6. package/dist/layers.-23sKdPr.js +0 -10
  7. package/dist/layers.2Zh_Eqge.js +0 -118
  8. package/dist/layers.52famHy6.js +0 -1
  9. package/dist/layers.6xiY7Dmk.js +0 -10
  10. package/dist/layers.7JqFgE4-.js +0 -15
  11. package/dist/layers.7aWFCBDk.js +0 -36
  12. package/dist/layers.9--aZzKT.js +0 -41
  13. package/dist/layers.99J97lec.js +0 -40
  14. package/dist/layers.9QK1wiQj.js +0 -1
  15. package/dist/layers.9pNaFvaX.js +0 -1
  16. package/dist/layers.B16HCOzz.js +0 -11
  17. package/dist/layers.B19hGmey.js +0 -1
  18. package/dist/layers.B1GsQlw2.js +0 -202
  19. package/dist/layers.B1VWPJr7.js +0 -61
  20. package/dist/layers.B2AGu32C.js +0 -11692
  21. package/dist/layers.B3D4g2HH.js +0 -1
  22. package/dist/layers.B4Jcovwh.js +0 -160
  23. package/dist/layers.B4o4Yght.js +0 -39
  24. package/dist/layers.B51TBzz6.js +0 -1
  25. package/dist/layers.B5HV5CkN.js +0 -6
  26. package/dist/layers.B5VQ5ysd.js +0 -230
  27. package/dist/layers.B7uv8aVq.js +0 -39
  28. package/dist/layers.B9ypkXfB.js +0 -1
  29. package/dist/layers.BATSJhNp.js +0 -10
  30. package/dist/layers.BAe6u370.js +0 -793
  31. package/dist/layers.BAtv1CM7.js +0 -1
  32. package/dist/layers.BCMyc6dl.js +0 -1
  33. package/dist/layers.BChBzZgi.js +0 -139
  34. package/dist/layers.BCtnSgBi.js +0 -139
  35. package/dist/layers.BGXN8iGN.js +0 -36
  36. package/dist/layers.BH9NvW2c.js +0 -1
  37. package/dist/layers.BHEN4Zl8.js +0 -9
  38. package/dist/layers.BI-S-U1z.js +0 -34
  39. package/dist/layers.BIATzXuT.js +0 -5
  40. package/dist/layers.BId9R-tt.js +0 -9
  41. package/dist/layers.BIeVwYKL.js +0 -1
  42. package/dist/layers.BIj1zRV6.js +0 -8
  43. package/dist/layers.BK7Umu5k.js +0 -40
  44. package/dist/layers.BL7PsAnh.js +0 -40
  45. package/dist/layers.BLha5Ags.js +0 -1
  46. package/dist/layers.BNcxqXDY.js +0 -2
  47. package/dist/layers.BOY6DvLj.js +0 -41
  48. package/dist/layers.BQ5pHr1t.js +0 -9
  49. package/dist/layers.BR9erYvc.js +0 -425
  50. package/dist/layers.BSTBZrFn.js +0 -1
  51. package/dist/layers.BTjqsj2D.js +0 -32
  52. package/dist/layers.BU0ouPbJ.js +0 -40
  53. package/dist/layers.BVLHr0fv.js +0 -21938
  54. package/dist/layers.BVhV_yLo.js +0 -59
  55. package/dist/layers.BWppdp8z.js +0 -37
  56. package/dist/layers.BXGZ-IPG.js +0 -37
  57. package/dist/layers.BXIQjroR.js +0 -8
  58. package/dist/layers.BXe2f2v0.js +0 -10
  59. package/dist/layers.BaREUEpY.js +0 -1
  60. package/dist/layers.BbCfEXyj.js +0 -55
  61. package/dist/layers.BdxgA5Mh.js +0 -40
  62. package/dist/layers.BeXV53PI.js +0 -38
  63. package/dist/layers.Bf4maS9l.js +0 -41
  64. package/dist/layers.BgOa2ZQq.js +0 -7
  65. package/dist/layers.BgXRgBMD.js +0 -9
  66. package/dist/layers.Bgx4q6Yl.js +0 -1
  67. package/dist/layers.BiJ8hfRt.js +0 -1510
  68. package/dist/layers.BiK_NhRx.js +0 -13
  69. package/dist/layers.BjIrZvhA.js +0 -41
  70. package/dist/layers.BkDwnhF3.js +0 -39
  71. package/dist/layers.BkZl0e9Y.js +0 -10
  72. package/dist/layers.BkkBEMI4.js +0 -122
  73. package/dist/layers.Bl2uWPK5.js +0 -35
  74. package/dist/layers.BldgpPoA.js +0 -21763
  75. package/dist/layers.BmdNYA8O.js +0 -39
  76. package/dist/layers.BoUDsd20.js +0 -84
  77. package/dist/layers.BpilXLfW.js +0 -6
  78. package/dist/layers.Bqy_BDRk.js +0 -960
  79. package/dist/layers.BvQfT02S.js +0 -9
  80. package/dist/layers.BxCLnc_z.js +0 -52
  81. package/dist/layers.Bxuc5Ku1.js +0 -6
  82. package/dist/layers.Bxx3QiqH.js +0 -5
  83. package/dist/layers.BzufRV9o.js +0 -4
  84. package/dist/layers.C-S1uftF.js +0 -1
  85. package/dist/layers.C00McVdb.js +0 -116
  86. package/dist/layers.C3-Awt80.js +0 -186
  87. package/dist/layers.C46xOyCn.js +0 -1
  88. package/dist/layers.C4Z2eV4H.js +0 -437
  89. package/dist/layers.C5fqgGR6.js +0 -33
  90. package/dist/layers.C5pjkDUm.js +0 -8
  91. package/dist/layers.C5th-3Bk.js +0 -4
  92. package/dist/layers.C5vdiuk-.js +0 -1
  93. package/dist/layers.C6FZDcP0.js +0 -5
  94. package/dist/layers.C6ueRaWn.js +0 -1
  95. package/dist/layers.C6vMG-T6.js +0 -39
  96. package/dist/layers.C7lIplJU.js +0 -247
  97. package/dist/layers.C7md-mpb.js +0 -373
  98. package/dist/layers.C8Lyyff8.js +0 -39
  99. package/dist/layers.C8WU47YC.js +0 -7
  100. package/dist/layers.C8_lu5UH.js +0 -23
  101. package/dist/layers.CAZF51iw.js +0 -769
  102. package/dist/layers.CDmsB9ui.js +0 -9
  103. package/dist/layers.CENOzW4d.js +0 -32
  104. package/dist/layers.CESONz7C.js +0 -35
  105. package/dist/layers.CEW7Z5oj.js +0 -40
  106. package/dist/layers.CHE9Vv0w.js +0 -2966
  107. package/dist/layers.CHMDrzTP.js +0 -1
  108. package/dist/layers.CHZsXQcr.js +0 -1
  109. package/dist/layers.CIkcRflS.js +0 -32
  110. package/dist/layers.CJdGap0M.js +0 -40
  111. package/dist/layers.CJgtfrlM.js +0 -9
  112. package/dist/layers.CK15u90j.js +0 -32
  113. package/dist/layers.CKyZ6fil.js +0 -220
  114. package/dist/layers.COAF7f8g.js +0 -1
  115. package/dist/layers.CP7ZgLdQ.js +0 -802
  116. package/dist/layers.CQ_KfkMs.js +0 -1
  117. package/dist/layers.CSKgny-q.js +0 -1359
  118. package/dist/layers.CX4-2iW9.js +0 -8
  119. package/dist/layers.CX4mdDUE.js +0 -40
  120. package/dist/layers.CXFcyuib.js +0 -51
  121. package/dist/layers.CXnC6LGK.js +0 -1
  122. package/dist/layers.CXoz8wje.js +0 -11
  123. package/dist/layers.CZianMah.js +0 -33
  124. package/dist/layers.CbrkK8Nl.js +0 -6
  125. package/dist/layers.CdPjGs2x.js +0 -32
  126. package/dist/layers.CdZEenM8.js +0 -8
  127. package/dist/layers.CeESKes4.js +0 -37
  128. package/dist/layers.CebNnxUV.js +0 -185
  129. package/dist/layers.Cg0Puk92.js +0 -40
  130. package/dist/layers.ChG4YWfr.js +0 -1034
  131. package/dist/layers.ChLLCYeV.js +0 -7
  132. package/dist/layers.Cj5o49qm.js +0 -7
  133. package/dist/layers.Ck_m9yBu.js +0 -41
  134. package/dist/layers.Cl9YbTGP.js +0 -1
  135. package/dist/layers.Clo5oIEO.js +0 -70
  136. package/dist/layers.Cmeg2JEe.js +0 -10
  137. package/dist/layers.CqVTtuYm.js +0 -6
  138. package/dist/layers.Cs24L6er.js +0 -261
  139. package/dist/layers.Ctcl9I58.js +0 -10
  140. package/dist/layers.Cuf8LL65.js +0 -4
  141. package/dist/layers.CusXQPSP.js +0 -41
  142. package/dist/layers.CyaiBxcg.js +0 -1
  143. package/dist/layers.D-4MyOv6.js +0 -1126
  144. package/dist/layers.D0fuzbA_.js +0 -1580
  145. package/dist/layers.D0t24lyP.js +0 -1619
  146. package/dist/layers.D0zn4_Mx.js +0 -1
  147. package/dist/layers.D37kPodI.js +0 -7
  148. package/dist/layers.D3PBqBbY.js +0 -4
  149. package/dist/layers.D3eSioXs.js +0 -1
  150. package/dist/layers.D4fGb2cV.js +0 -1272
  151. package/dist/layers.D56jgM5P.js +0 -803
  152. package/dist/layers.D7jGxypv.js +0 -8
  153. package/dist/layers.DBgQS_TD.js +0 -39
  154. package/dist/layers.DE8kdoob.js +0 -8
  155. package/dist/layers.DEMbeDH5.js +0 -96
  156. package/dist/layers.DGfERl47.js +0 -39
  157. package/dist/layers.DGhEo4ps.js +0 -6
  158. package/dist/layers.DHbgl38J.js +0 -1
  159. package/dist/layers.DIW19mY0.js +0 -2235
  160. package/dist/layers.DIsd_eLu.js +0 -931
  161. package/dist/layers.DKhnUElF.js +0 -3
  162. package/dist/layers.DLwuMfdd.js +0 -84
  163. package/dist/layers.DMXwnUhk.js +0 -10
  164. package/dist/layers.DMkBISW1.js +0 -1
  165. package/dist/layers.DN9HoVxI.js +0 -18
  166. package/dist/layers.DOjcR2u6.js +0 -44
  167. package/dist/layers.DOrgOHBr.js +0 -1
  168. package/dist/layers.DRd1i4Pe.js +0 -2
  169. package/dist/layers.DSiVxrm-.js +0 -9
  170. package/dist/layers.DV0u_-wO.js +0 -1
  171. package/dist/layers.DYJhYqR2.js +0 -1089
  172. package/dist/layers.DYR-z4Xd.js +0 -65
  173. package/dist/layers.D_KjhW7m.js +0 -9
  174. package/dist/layers.DaA4pT9g.js +0 -42
  175. package/dist/layers.DbaKVP5e.js +0 -1
  176. package/dist/layers.DcGuLvyP.js +0 -1
  177. package/dist/layers.DczwzPio.js +0 -1
  178. package/dist/layers.DdULzc5-.js +0 -42
  179. package/dist/layers.De4i5Pzr.js +0 -423
  180. package/dist/layers.Dg_ubB5o.js +0 -38
  181. package/dist/layers.DhtUpSvn.js +0 -7
  182. package/dist/layers.DiAtOpGJ.js +0 -38
  183. package/dist/layers.DjUOC4st.js +0 -16
  184. package/dist/layers.DlH0lUyY.js +0 -7
  185. package/dist/layers.Dms1jgA7.js +0 -7
  186. package/dist/layers.DnvdN9TC.js +0 -9
  187. package/dist/layers.Doo3HAhr.js +0 -42
  188. package/dist/layers.Dpl-_pRd.js +0 -282
  189. package/dist/layers.Dq7WsWG1.js +0 -8
  190. package/dist/layers.Dr-_us97.js +0 -5
  191. package/dist/layers.Dr9AgtBT.js +0 -1265
  192. package/dist/layers.DsIrXvQc.js +0 -36
  193. package/dist/layers.DuC5Q-Uc.js +0 -1
  194. package/dist/layers.Dwrpihyi.js +0 -9148
  195. package/dist/layers.Dx7QSKbZ.js +0 -257
  196. package/dist/layers.DxA6ocdw.js +0 -70
  197. package/dist/layers.Dy1naDTQ.js +0 -14
  198. package/dist/layers.DyIa2FAJ.js +0 -501
  199. package/dist/layers.DyrpParn.js +0 -42
  200. package/dist/layers.G0qyEFRn.js +0 -7
  201. package/dist/layers.HnnZ9X3g.js +0 -41
  202. package/dist/layers.Ih_DycCa.js +0 -904
  203. package/dist/layers.JWCLFILJ.js +0 -1
  204. package/dist/layers.MXTL7J0X.js +0 -45828
  205. package/dist/layers.N0KTyT8H.js +0 -10
  206. package/dist/layers.NLvydYLt.js +0 -19
  207. package/dist/layers.NQOujqxE.js +0 -207
  208. package/dist/layers.O7rgjuxq.js +0 -35
  209. package/dist/layers.OF4XgnEn.js +0 -320
  210. package/dist/layers.OqM7Ogm0.js +0 -6
  211. package/dist/layers.P0RFt4vw.js +0 -10
  212. package/dist/layers.PWkD3FXd.js +0 -32
  213. package/dist/layers.Q933nYVT.js +0 -14
  214. package/dist/layers.ShoHTpWp.js +0 -11
  215. package/dist/layers.TP-LPR2e.js +0 -1283
  216. package/dist/layers.U8d2vvil.js +0 -11
  217. package/dist/layers.UHdtuNW7.js +0 -6
  218. package/dist/layers.UPBrkQqm.js +0 -1088
  219. package/dist/layers.Y1n_hIuc.js +0 -1
  220. package/dist/layers._uHasBFO.js +0 -40
  221. package/dist/layers._uJVChzG.js +0 -48146
  222. package/dist/layers.b0h5ZBmD.js +0 -61
  223. package/dist/layers.b_l02tem.js +0 -319
  224. package/dist/layers.d0donhTp.js +0 -36
  225. package/dist/layers.fjvgvmUK.js +0 -37
  226. package/dist/layers.gSOgK4cv.js +0 -41
  227. package/dist/layers.h2SsCt7w.js +0 -8
  228. package/dist/layers.hzJoyUwS.js +0 -268
  229. package/dist/layers.j4D7aRnj.js +0 -42
  230. package/dist/layers.l7Uj4NoM.js +0 -8
  231. package/dist/layers.lCpg7dOn.js +0 -21
  232. package/dist/layers.mS0YwpDF.js +0 -2479
  233. package/dist/layers.oLym9I6R.js +0 -8
  234. package/dist/layers.pGJnLNqj.js +0 -285
  235. package/dist/layers.pRFngToG.js +0 -1
  236. package/dist/layers.rK-vslvx.js +0 -2
  237. package/dist/layers.rSvdeOjc.js +0 -84
  238. package/dist/layers.rwvkqrdF.js +0 -11
  239. package/dist/layers.wRnSjyfZ.js +0 -5
  240. package/dist/layers.xbymChc4.js +0 -790
  241. package/dist/layers.xlbtHZsv.js +0 -39
@@ -1,769 +0,0 @@
1
- import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, q as Ye, l as Ne, j as ke } from "./layers.Dwrpihyi.js";
2
- import "lodash-es";
3
- import { l as Ue } from "./layers.D4fGb2cV.js";
4
- import { G as Be } from "./layers.C7lIplJU.js";
5
- import "./layers.BldgpPoA.js";
6
- import { l as Qe } from "./layers.CZianMah.js";
7
- var ce = (function() {
8
- var e = function(V, i, r, a) {
9
- for (r = r || {}, a = V.length; a--; r[V[a]] = i)
10
- ;
11
- return r;
12
- }, t = [1, 3], l = [1, 4], c = [1, 5], u = [1, 6], d = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], p = [1, 18], h = [2, 7], o = [1, 22], g = [1, 23], R = [1, 24], A = [1, 25], T = [1, 26], N = [1, 27], v = [1, 20], k = [1, 28], x = [1, 29], F = [62, 63], de = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], pe = [1, 47], fe = [1, 48], ye = [1, 49], _e = [1, 50], ge = [1, 51], Ee = [1, 52], Re = [1, 53], O = [53, 54], M = [1, 64], D = [1, 60], P = [1, 61], Y = [1, 62], U = [1, 63], B = [1, 65], j = [1, 69], z = [1, 70], X = [1, 67], J = [1, 68], m = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], ie = {
13
- trace: function() {
14
- },
15
- yy: {},
16
- symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, requirementType: 17, requirementName: 18, STRUCT_START: 19, requirementBody: 20, ID: 21, COLONSEP: 22, id: 23, TEXT: 24, text: 25, RISK: 26, riskLevel: 27, VERIFYMTHD: 28, verifyType: 29, STRUCT_STOP: 30, REQUIREMENT: 31, FUNCTIONAL_REQUIREMENT: 32, INTERFACE_REQUIREMENT: 33, PERFORMANCE_REQUIREMENT: 34, PHYSICAL_REQUIREMENT: 35, DESIGN_CONSTRAINT: 36, LOW_RISK: 37, MED_RISK: 38, HIGH_RISK: 39, VERIFY_ANALYSIS: 40, VERIFY_DEMONSTRATION: 41, VERIFY_INSPECTION: 42, VERIFY_TEST: 43, ELEMENT: 44, elementName: 45, elementBody: 46, TYPE: 47, type: 48, DOCREF: 49, ref: 50, END_ARROW_L: 51, relationship: 52, LINE: 53, END_ARROW_R: 54, CONTAINS: 55, COPIES: 56, DERIVES: 57, SATISFIES: 58, VERIFIES: 59, REFINES: 60, TRACES: 61, unqString: 62, qString: 63, $accept: 0, $end: 1 },
17
- terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 19: "STRUCT_START", 21: "ID", 22: "COLONSEP", 24: "TEXT", 26: "RISK", 28: "VERIFYMTHD", 30: "STRUCT_STOP", 31: "REQUIREMENT", 32: "FUNCTIONAL_REQUIREMENT", 33: "INTERFACE_REQUIREMENT", 34: "PERFORMANCE_REQUIREMENT", 35: "PHYSICAL_REQUIREMENT", 36: "DESIGN_CONSTRAINT", 37: "LOW_RISK", 38: "MED_RISK", 39: "HIGH_RISK", 40: "VERIFY_ANALYSIS", 41: "VERIFY_DEMONSTRATION", 42: "VERIFY_INSPECTION", 43: "VERIFY_TEST", 44: "ELEMENT", 47: "TYPE", 49: "DOCREF", 51: "END_ARROW_L", 53: "LINE", 54: "END_ARROW_R", 55: "CONTAINS", 56: "COPIES", 57: "DERIVES", 58: "SATISFIES", 59: "VERIFIES", 60: "REFINES", 61: "TRACES", 62: "unqString", 63: "qString" },
18
- productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [14, 5], [20, 5], [20, 5], [20, 5], [20, 5], [20, 2], [20, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [27, 1], [27, 1], [27, 1], [29, 1], [29, 1], [29, 1], [29, 1], [15, 5], [46, 5], [46, 5], [46, 2], [46, 1], [16, 5], [16, 5], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [18, 1], [18, 1], [23, 1], [23, 1], [25, 1], [25, 1], [45, 1], [45, 1], [48, 1], [48, 1], [50, 1], [50, 1]],
19
- performAction: function(i, r, a, n, f, s, W) {
20
- var _ = s.length - 1;
21
- switch (f) {
22
- case 4:
23
- this.$ = s[_].trim(), n.setAccTitle(this.$);
24
- break;
25
- case 5:
26
- case 6:
27
- this.$ = s[_].trim(), n.setAccDescription(this.$);
28
- break;
29
- case 7:
30
- this.$ = [];
31
- break;
32
- case 13:
33
- n.addRequirement(s[_ - 3], s[_ - 4]);
34
- break;
35
- case 14:
36
- n.setNewReqId(s[_ - 2]);
37
- break;
38
- case 15:
39
- n.setNewReqText(s[_ - 2]);
40
- break;
41
- case 16:
42
- n.setNewReqRisk(s[_ - 2]);
43
- break;
44
- case 17:
45
- n.setNewReqVerifyMethod(s[_ - 2]);
46
- break;
47
- case 20:
48
- this.$ = n.RequirementType.REQUIREMENT;
49
- break;
50
- case 21:
51
- this.$ = n.RequirementType.FUNCTIONAL_REQUIREMENT;
52
- break;
53
- case 22:
54
- this.$ = n.RequirementType.INTERFACE_REQUIREMENT;
55
- break;
56
- case 23:
57
- this.$ = n.RequirementType.PERFORMANCE_REQUIREMENT;
58
- break;
59
- case 24:
60
- this.$ = n.RequirementType.PHYSICAL_REQUIREMENT;
61
- break;
62
- case 25:
63
- this.$ = n.RequirementType.DESIGN_CONSTRAINT;
64
- break;
65
- case 26:
66
- this.$ = n.RiskLevel.LOW_RISK;
67
- break;
68
- case 27:
69
- this.$ = n.RiskLevel.MED_RISK;
70
- break;
71
- case 28:
72
- this.$ = n.RiskLevel.HIGH_RISK;
73
- break;
74
- case 29:
75
- this.$ = n.VerifyType.VERIFY_ANALYSIS;
76
- break;
77
- case 30:
78
- this.$ = n.VerifyType.VERIFY_DEMONSTRATION;
79
- break;
80
- case 31:
81
- this.$ = n.VerifyType.VERIFY_INSPECTION;
82
- break;
83
- case 32:
84
- this.$ = n.VerifyType.VERIFY_TEST;
85
- break;
86
- case 33:
87
- n.addElement(s[_ - 3]);
88
- break;
89
- case 34:
90
- n.setNewElementType(s[_ - 2]);
91
- break;
92
- case 35:
93
- n.setNewElementDocRef(s[_ - 2]);
94
- break;
95
- case 38:
96
- n.addRelationship(s[_ - 2], s[_], s[_ - 4]);
97
- break;
98
- case 39:
99
- n.addRelationship(s[_ - 2], s[_ - 4], s[_]);
100
- break;
101
- case 40:
102
- this.$ = n.Relationships.CONTAINS;
103
- break;
104
- case 41:
105
- this.$ = n.Relationships.COPIES;
106
- break;
107
- case 42:
108
- this.$ = n.Relationships.DERIVES;
109
- break;
110
- case 43:
111
- this.$ = n.Relationships.SATISFIES;
112
- break;
113
- case 44:
114
- this.$ = n.Relationships.VERIFIES;
115
- break;
116
- case 45:
117
- this.$ = n.Relationships.REFINES;
118
- break;
119
- case 46:
120
- this.$ = n.Relationships.TRACES;
121
- break;
122
- }
123
- },
124
- table: [{ 3: 1, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: t, 9: l, 11: c, 13: u }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(d, [2, 6]), { 3: 12, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [2, 2] }, { 4: 17, 5: p, 7: 13, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, e(d, [2, 4]), e(d, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: p, 7: 31, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 32, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 33, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 34, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 35, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, e(F, [2, 20]), e(F, [2, 21]), e(F, [2, 22]), e(F, [2, 23]), e(F, [2, 24]), e(F, [2, 25]), e(de, [2, 49]), e(de, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: pe, 56: fe, 57: ye, 58: _e, 59: ge, 60: Ee, 61: Re }, { 52: 54, 55: pe, 56: fe, 57: ye, 58: _e, 59: ge, 60: Ee, 61: Re }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, e(O, [2, 40]), e(O, [2, 41]), e(O, [2, 42]), e(O, [2, 43]), e(O, [2, 44]), e(O, [2, 45]), e(O, [2, 46]), { 54: [1, 58] }, { 5: M, 20: 59, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 66, 47: X, 49: J }, { 23: 71, 62: k, 63: x }, { 23: 72, 62: k, 63: x }, e(m, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: M, 20: 77, 21: D, 24: P, 26: Y, 28: U, 30: B }, e(m, [2, 19]), e(m, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: j, 30: z, 46: 80, 47: X, 49: J }, e(m, [2, 37]), e(m, [2, 38]), e(m, [2, 39]), { 23: 81, 62: k, 63: x }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, e(m, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(m, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: M, 20: 106, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 107, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 108, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 109, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 110, 47: X, 49: J }, { 5: j, 30: z, 46: 111, 47: X, 49: J }, e(m, [2, 14]), e(m, [2, 15]), e(m, [2, 16]), e(m, [2, 17]), e(m, [2, 34]), e(m, [2, 35])],
125
- defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] },
126
- parseError: function(i, r) {
127
- if (r.recoverable)
128
- this.trace(i);
129
- else {
130
- var a = new Error(i);
131
- throw a.hash = r, a;
132
- }
133
- },
134
- parse: function(i) {
135
- var r = this, a = [0], n = [], f = [null], s = [], W = this.table, _ = "", Z = 0, me = 0, Ve = 2, Ie = 1, qe = s.slice.call(arguments, 1), E = Object.create(this.lexer), L = { yy: {} };
136
- for (var re in this.yy)
137
- Object.prototype.hasOwnProperty.call(this.yy, re) && (L.yy[re] = this.yy[re]);
138
- E.setInput(i, L.yy), L.yy.lexer = E, L.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
139
- var se = E.yylloc;
140
- s.push(se);
141
- var Oe = E.options && E.options.ranges;
142
- typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
143
- function Le() {
144
- var $;
145
- return $ = n.pop() || E.lex() || Ie, typeof $ != "number" && ($ instanceof Array && (n = $, $ = n.pop()), $ = r.symbols_[$] || $), $;
146
- }
147
- for (var I, C, S, ae, Q = {}, ee, w, be, te; ; ) {
148
- if (C = a[a.length - 1], this.defaultActions[C] ? S = this.defaultActions[C] : ((I === null || typeof I > "u") && (I = Le()), S = W[C] && W[C][I]), typeof S > "u" || !S.length || !S[0]) {
149
- var le = "";
150
- te = [];
151
- for (ee in W[C])
152
- this.terminals_[ee] && ee > Ve && te.push("'" + this.terminals_[ee] + "'");
153
- E.showPosition ? le = "Parse error on line " + (Z + 1) + `:
154
- ` + E.showPosition() + `
155
- Expecting ` + te.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : le = "Parse error on line " + (Z + 1) + ": Unexpected " + (I == Ie ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(le, {
156
- text: E.match,
157
- token: this.terminals_[I] || I,
158
- line: E.yylineno,
159
- loc: se,
160
- expected: te
161
- });
162
- }
163
- if (S[0] instanceof Array && S.length > 1)
164
- throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + I);
165
- switch (S[0]) {
166
- case 1:
167
- a.push(I), f.push(E.yytext), s.push(E.yylloc), a.push(S[1]), I = null, me = E.yyleng, _ = E.yytext, Z = E.yylineno, se = E.yylloc;
168
- break;
169
- case 2:
170
- if (w = this.productions_[S[1]][1], Q.$ = f[f.length - w], Q._$ = {
171
- first_line: s[s.length - (w || 1)].first_line,
172
- last_line: s[s.length - 1].last_line,
173
- first_column: s[s.length - (w || 1)].first_column,
174
- last_column: s[s.length - 1].last_column
175
- }, Oe && (Q._$.range = [
176
- s[s.length - (w || 1)].range[0],
177
- s[s.length - 1].range[1]
178
- ]), ae = this.performAction.apply(Q, [
179
- _,
180
- me,
181
- Z,
182
- L.yy,
183
- S[1],
184
- f,
185
- s
186
- ].concat(qe)), typeof ae < "u")
187
- return ae;
188
- w && (a = a.slice(0, -1 * w * 2), f = f.slice(0, -1 * w), s = s.slice(0, -1 * w)), a.push(this.productions_[S[1]][0]), f.push(Q.$), s.push(Q._$), be = W[a[a.length - 2]][a[a.length - 1]], a.push(be);
189
- break;
190
- case 3:
191
- return !0;
192
- }
193
- }
194
- return !0;
195
- }
196
- }, $e = /* @__PURE__ */ (function() {
197
- var V = {
198
- EOF: 1,
199
- parseError: function(r, a) {
200
- if (this.yy.parser)
201
- this.yy.parser.parseError(r, a);
202
- else
203
- throw new Error(r);
204
- },
205
- // resets the lexer, sets new input
206
- setInput: function(i, r) {
207
- return this.yy = r || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
208
- first_line: 1,
209
- first_column: 0,
210
- last_line: 1,
211
- last_column: 0
212
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
213
- },
214
- // consumes and returns one char from the input
215
- input: function() {
216
- var i = this._input[0];
217
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
218
- var r = i.match(/(?:\r\n?|\n).*/g);
219
- 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), i;
220
- },
221
- // unshifts one char (or a string) into the input
222
- unput: function(i) {
223
- var r = i.length, a = i.split(/(?:\r\n?|\n)/g);
224
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
225
- var n = this.match.split(/(?:\r\n?|\n)/g);
226
- 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);
227
- var f = this.yylloc.range;
228
- return this.yylloc = {
229
- first_line: this.yylloc.first_line,
230
- last_line: this.yylineno + 1,
231
- first_column: this.yylloc.first_column,
232
- last_column: a ? (a.length === n.length ? this.yylloc.first_column : 0) + n[n.length - a.length].length - a[0].length : this.yylloc.first_column - r
233
- }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
234
- },
235
- // When called from action, caches matched text and appends it on next action
236
- more: function() {
237
- return this._more = !0, this;
238
- },
239
- // 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.
240
- reject: function() {
241
- if (this.options.backtrack_lexer)
242
- this._backtrack = !0;
243
- else
244
- 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).
245
- ` + this.showPosition(), {
246
- text: "",
247
- token: null,
248
- line: this.yylineno
249
- });
250
- return this;
251
- },
252
- // retain first n characters of the match
253
- less: function(i) {
254
- this.unput(this.match.slice(i));
255
- },
256
- // displays already matched input, i.e. for error messages
257
- pastInput: function() {
258
- var i = this.matched.substr(0, this.matched.length - this.match.length);
259
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
260
- },
261
- // displays upcoming input, i.e. for error messages
262
- upcomingInput: function() {
263
- var i = this.match;
264
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
265
- },
266
- // displays the character position where the lexing error occurred, i.e. for error messages
267
- showPosition: function() {
268
- var i = this.pastInput(), r = new Array(i.length + 1).join("-");
269
- return i + this.upcomingInput() + `
270
- ` + r + "^";
271
- },
272
- // test the lexed token: return FALSE when not a match, otherwise return token
273
- test_match: function(i, r) {
274
- var a, n, f;
275
- if (this.options.backtrack_lexer && (f = {
276
- yylineno: this.yylineno,
277
- yylloc: {
278
- first_line: this.yylloc.first_line,
279
- last_line: this.last_line,
280
- first_column: this.yylloc.first_column,
281
- last_column: this.yylloc.last_column
282
- },
283
- yytext: this.yytext,
284
- match: this.match,
285
- matches: this.matches,
286
- matched: this.matched,
287
- yyleng: this.yyleng,
288
- offset: this.offset,
289
- _more: this._more,
290
- _input: this._input,
291
- yy: this.yy,
292
- conditionStack: this.conditionStack.slice(0),
293
- done: this.done
294
- }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), n = i[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
295
- first_line: this.yylloc.last_line,
296
- last_line: this.yylineno + 1,
297
- first_column: this.yylloc.last_column,
298
- last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
299
- }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], a = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
300
- return a;
301
- if (this._backtrack) {
302
- for (var s in f)
303
- this[s] = f[s];
304
- return !1;
305
- }
306
- return !1;
307
- },
308
- // return next match in input
309
- next: function() {
310
- if (this.done)
311
- return this.EOF;
312
- this._input || (this.done = !0);
313
- var i, r, a, n;
314
- this._more || (this.yytext = "", this.match = "");
315
- for (var f = this._currentRules(), s = 0; s < f.length; s++)
316
- if (a = this._input.match(this.rules[f[s]]), a && (!r || a[0].length > r[0].length)) {
317
- if (r = a, n = s, this.options.backtrack_lexer) {
318
- if (i = this.test_match(a, f[s]), i !== !1)
319
- return i;
320
- if (this._backtrack) {
321
- r = !1;
322
- continue;
323
- } else
324
- return !1;
325
- } else if (!this.options.flex)
326
- break;
327
- }
328
- return r ? (i = this.test_match(r, f[n]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
329
- ` + this.showPosition(), {
330
- text: "",
331
- token: null,
332
- line: this.yylineno
333
- });
334
- },
335
- // return next match that has a token
336
- lex: function() {
337
- var r = this.next();
338
- return r || this.lex();
339
- },
340
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
341
- begin: function(r) {
342
- this.conditionStack.push(r);
343
- },
344
- // pop the previously active lexer condition state off the condition stack
345
- popState: function() {
346
- var r = this.conditionStack.length - 1;
347
- return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
348
- },
349
- // produce the lexer rule set which is active for the currently active lexer condition state
350
- _currentRules: function() {
351
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
352
- },
353
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
354
- topState: function(r) {
355
- return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
356
- },
357
- // alias for begin(condition)
358
- pushState: function(r) {
359
- this.begin(r);
360
- },
361
- // return the number of states currently on the stack
362
- stateStackSize: function() {
363
- return this.conditionStack.length;
364
- },
365
- options: { "case-insensitive": !0 },
366
- performAction: function(r, a, n, f) {
367
- switch (n) {
368
- case 0:
369
- return "title";
370
- case 1:
371
- return this.begin("acc_title"), 9;
372
- case 2:
373
- return this.popState(), "acc_title_value";
374
- case 3:
375
- return this.begin("acc_descr"), 11;
376
- case 4:
377
- return this.popState(), "acc_descr_value";
378
- case 5:
379
- this.begin("acc_descr_multiline");
380
- break;
381
- case 6:
382
- this.popState();
383
- break;
384
- case 7:
385
- return "acc_descr_multiline_value";
386
- case 8:
387
- return 5;
388
- case 9:
389
- break;
390
- case 10:
391
- break;
392
- case 11:
393
- break;
394
- case 12:
395
- return 8;
396
- case 13:
397
- return 6;
398
- case 14:
399
- return 19;
400
- case 15:
401
- return 30;
402
- case 16:
403
- return 22;
404
- case 17:
405
- return 21;
406
- case 18:
407
- return 24;
408
- case 19:
409
- return 26;
410
- case 20:
411
- return 28;
412
- case 21:
413
- return 31;
414
- case 22:
415
- return 32;
416
- case 23:
417
- return 33;
418
- case 24:
419
- return 34;
420
- case 25:
421
- return 35;
422
- case 26:
423
- return 36;
424
- case 27:
425
- return 37;
426
- case 28:
427
- return 38;
428
- case 29:
429
- return 39;
430
- case 30:
431
- return 40;
432
- case 31:
433
- return 41;
434
- case 32:
435
- return 42;
436
- case 33:
437
- return 43;
438
- case 34:
439
- return 44;
440
- case 35:
441
- return 55;
442
- case 36:
443
- return 56;
444
- case 37:
445
- return 57;
446
- case 38:
447
- return 58;
448
- case 39:
449
- return 59;
450
- case 40:
451
- return 60;
452
- case 41:
453
- return 61;
454
- case 42:
455
- return 47;
456
- case 43:
457
- return 49;
458
- case 44:
459
- return 51;
460
- case 45:
461
- return 54;
462
- case 46:
463
- return 53;
464
- case 47:
465
- this.begin("string");
466
- break;
467
- case 48:
468
- this.popState();
469
- break;
470
- case 49:
471
- return "qString";
472
- case 50:
473
- return a.yytext = a.yytext.trim(), 62;
474
- }
475
- },
476
- rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^\r\n\{\<\>\-\=]*)/i],
477
- conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, unqString: { rules: [], inclusive: !1 }, token: { rules: [], inclusive: !1 }, string: { rules: [48, 49], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50], inclusive: !0 } }
478
- };
479
- return V;
480
- })();
481
- ie.lexer = $e;
482
- function ne() {
483
- this.yy = {};
484
- }
485
- return ne.prototype = ie, ie.Parser = ne, new ne();
486
- })();
487
- ce.parser = ce;
488
- const He = ce;
489
- let ue = [], b = {}, K = {}, q = {}, G = {};
490
- const We = {
491
- REQUIREMENT: "Requirement",
492
- FUNCTIONAL_REQUIREMENT: "Functional Requirement",
493
- INTERFACE_REQUIREMENT: "Interface Requirement",
494
- PERFORMANCE_REQUIREMENT: "Performance Requirement",
495
- PHYSICAL_REQUIREMENT: "Physical Requirement",
496
- DESIGN_CONSTRAINT: "Design Constraint"
497
- }, Ke = {
498
- LOW_RISK: "Low",
499
- MED_RISK: "Medium",
500
- HIGH_RISK: "High"
501
- }, Ge = {
502
- VERIFY_ANALYSIS: "Analysis",
503
- VERIFY_DEMONSTRATION: "Demonstration",
504
- VERIFY_INSPECTION: "Inspection",
505
- VERIFY_TEST: "Test"
506
- }, je = {
507
- CONTAINS: "contains",
508
- COPIES: "copies",
509
- DERIVES: "derives",
510
- SATISFIES: "satisfies",
511
- VERIFIES: "verifies",
512
- REFINES: "refines",
513
- TRACES: "traces"
514
- }, ze = (e, t) => (K[e] === void 0 && (K[e] = {
515
- name: e,
516
- type: t,
517
- id: b.id,
518
- text: b.text,
519
- risk: b.risk,
520
- verifyMethod: b.verifyMethod
521
- }), b = {}, K[e]), Xe = () => K, Je = (e) => {
522
- b !== void 0 && (b.id = e);
523
- }, Ze = (e) => {
524
- b !== void 0 && (b.text = e);
525
- }, et = (e) => {
526
- b !== void 0 && (b.risk = e);
527
- }, tt = (e) => {
528
- b !== void 0 && (b.verifyMethod = e);
529
- }, it = (e) => (G[e] === void 0 && (G[e] = {
530
- name: e,
531
- type: q.type,
532
- docRef: q.docRef
533
- }, Ne.info("Added new requirement: ", e)), q = {}, G[e]), nt = () => G, rt = (e) => {
534
- q !== void 0 && (q.type = e);
535
- }, st = (e) => {
536
- q !== void 0 && (q.docRef = e);
537
- }, at = (e, t, l) => {
538
- ue.push({
539
- type: e,
540
- src: t,
541
- dst: l
542
- });
543
- }, lt = () => ue, ot = () => {
544
- ue = [], b = {}, K = {}, q = {}, G = {}, Ye();
545
- }, ct = {
546
- RequirementType: We,
547
- RiskLevel: Ke,
548
- VerifyType: Ge,
549
- Relationships: je,
550
- getConfig: () => Te().req,
551
- addRequirement: ze,
552
- getRequirements: Xe,
553
- setNewReqId: Je,
554
- setNewReqText: Ze,
555
- setNewReqRisk: et,
556
- setNewReqVerifyMethod: tt,
557
- setAccTitle: De,
558
- getAccTitle: Me,
559
- setAccDescription: Fe,
560
- getAccDescription: Ce,
561
- addElement: it,
562
- getElements: nt,
563
- setNewElementType: rt,
564
- setNewElementDocRef: st,
565
- addRelationship: at,
566
- getRelationships: lt,
567
- clear: ot
568
- }, ht = (e) => `
569
-
570
- marker {
571
- fill: ${e.relationColor};
572
- stroke: ${e.relationColor};
573
- }
574
-
575
- marker.cross {
576
- stroke: ${e.lineColor};
577
- }
578
-
579
- svg {
580
- font-family: ${e.fontFamily};
581
- font-size: ${e.fontSize};
582
- }
583
-
584
- .reqBox {
585
- fill: ${e.requirementBackground};
586
- fill-opacity: 1.0;
587
- stroke: ${e.requirementBorderColor};
588
- stroke-width: ${e.requirementBorderSize};
589
- }
590
-
591
- .reqTitle, .reqLabel{
592
- fill: ${e.requirementTextColor};
593
- }
594
- .reqLabelBox {
595
- fill: ${e.relationLabelBackground};
596
- fill-opacity: 1.0;
597
- }
598
-
599
- .req-title-line {
600
- stroke: ${e.requirementBorderColor};
601
- stroke-width: ${e.requirementBorderSize};
602
- }
603
- .relationshipLine {
604
- stroke: ${e.relationColor};
605
- stroke-width: 1;
606
- }
607
- .relationshipLabel {
608
- fill: ${e.relationLabelColor};
609
- }
610
-
611
- `, ut = ht, he = {
612
- CONTAINS: "contains",
613
- ARROW: "arrow"
614
- }, dt = (e, t) => {
615
- let l = e.append("defs").append("marker").attr("id", he.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", t.line_height / 2).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("g");
616
- l.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), l.append("line").attr("x1", 0).attr("x2", t.line_height).attr("y1", t.line_height / 2).attr("y2", t.line_height / 2).attr("stroke-width", 1), l.append("line").attr("y1", 0).attr("y2", t.line_height).attr("x1", t.line_height / 2).attr("x2", t.line_height / 2).attr("stroke-width", 1), e.append("defs").append("marker").attr("id", he.ARROW + "_line_ending").attr("refX", t.line_height).attr("refY", 0.5 * t.line_height).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("path").attr(
617
- "d",
618
- `M0,0
619
- L${t.line_height},${t.line_height / 2}
620
- M${t.line_height},${t.line_height / 2}
621
- L0,${t.line_height}`
622
- ).attr("stroke-width", 1);
623
- }, xe = {
624
- ReqMarkers: he,
625
- insertLineEndings: dt
626
- };
627
- let y = {}, Se = 0;
628
- const Ae = (e, t) => e.insert("rect", "#" + t).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", y.rect_min_width + "px").attr("height", y.rect_min_height + "px"), ve = (e, t, l) => {
629
- let c = y.rect_min_width / 2, u = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", c).attr("y", y.rect_padding).attr("dominant-baseline", "hanging"), d = 0;
630
- l.forEach((g) => {
631
- d == 0 ? u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(g) : u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(g), d++;
632
- });
633
- let p = 1.5 * y.rect_padding, h = d * y.line_height * 0.75, o = p + h;
634
- return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", o).attr("y2", o), {
635
- titleNode: u,
636
- y: o
637
- };
638
- }, we = (e, t, l, c) => {
639
- let u = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", y.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), d = 0;
640
- const p = 30;
641
- let h = [];
642
- return l.forEach((o) => {
643
- let g = o.length;
644
- for (; g > p && d < 3; ) {
645
- let R = o.substring(0, p);
646
- o = o.substring(p, o.length), g = o.length, h[h.length] = R, d++;
647
- }
648
- if (d == 3) {
649
- let R = h[h.length - 1];
650
- h[h.length - 1] = R.substring(0, R.length - 4) + "...";
651
- } else
652
- h[h.length] = o;
653
- d = 0;
654
- }), h.forEach((o) => {
655
- u.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(o);
656
- }), u;
657
- }, pt = (e, t, l, c) => {
658
- const u = t.node().getTotalLength(), d = t.node().getPointAtLength(u * 0.5), p = "rel" + Se;
659
- Se++;
660
- const o = e.append("text").attr("class", "req relationshipLabel").attr("id", p).attr("x", d.x).attr("y", d.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
661
- e.insert("rect", "#" + p).attr("class", "req reqLabelBox").attr("x", d.x - o.width / 2).attr("y", d.y - o.height / 2).attr("width", o.width).attr("height", o.height).attr("fill", "white").attr("fill-opacity", "85%");
662
- }, ft = function(e, t, l, c, u) {
663
- const d = l.edge(H(t.src), H(t.dst)), p = Qe().x(function(o) {
664
- return o.x;
665
- }).y(function(o) {
666
- return o.y;
667
- }), h = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", p(d.points)).attr("fill", "none");
668
- t.type == u.db.Relationships.CONTAINS ? h.attr(
669
- "marker-start",
670
- "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)"
671
- ) : (h.attr("stroke-dasharray", "10,7"), h.attr(
672
- "marker-end",
673
- "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + xe.ReqMarkers.ARROW + "_line_ending)"
674
- )), pt(e, h, y, `<<${t.type}>>`);
675
- }, yt = (e, t, l) => {
676
- Object.keys(e).forEach((c) => {
677
- let u = e[c];
678
- c = H(c), Ne.info("Added new requirement: ", c);
679
- const d = l.append("g").attr("id", c), p = "req-" + c, h = Ae(d, p);
680
- let o = ve(d, c + "_title", [
681
- `<<${u.type}>>`,
682
- `${u.name}`
683
- ]);
684
- we(
685
- d,
686
- c + "_body",
687
- [
688
- `Id: ${u.id}`,
689
- `Text: ${u.text}`,
690
- `Risk: ${u.risk}`,
691
- `Verification: ${u.verifyMethod}`
692
- ],
693
- o.y
694
- );
695
- const g = h.node().getBBox();
696
- t.setNode(c, {
697
- width: g.width,
698
- height: g.height,
699
- shape: "rect",
700
- id: c
701
- });
702
- });
703
- }, _t = (e, t, l) => {
704
- Object.keys(e).forEach((c) => {
705
- let u = e[c];
706
- const d = H(c), p = l.append("g").attr("id", d), h = "element-" + d, o = Ae(p, h);
707
- let g = ve(p, h + "_title", ["<<Element>>", `${c}`]);
708
- we(
709
- p,
710
- h + "_body",
711
- [`Type: ${u.type || "Not Specified"}`, `Doc Ref: ${u.docRef || "None"}`],
712
- g.y
713
- );
714
- const R = o.node().getBBox();
715
- t.setNode(d, {
716
- width: R.width,
717
- height: R.height,
718
- shape: "rect",
719
- id: d
720
- });
721
- });
722
- }, gt = (e, t) => (e.forEach(function(l) {
723
- let c = H(l.src), u = H(l.dst);
724
- t.setEdge(c, u, { relationship: l });
725
- }), e), Et = function(e, t) {
726
- t.nodes().forEach(function(l) {
727
- l !== void 0 && t.node(l) !== void 0 && (e.select("#" + l), e.select("#" + l).attr(
728
- "transform",
729
- "translate(" + (t.node(l).x - t.node(l).width / 2) + "," + (t.node(l).y - t.node(l).height / 2) + " )"
730
- ));
731
- });
732
- }, H = (e) => e.replace(/\s/g, "").replace(/\./g, "_"), Rt = (e, t, l, c) => {
733
- y = Te().requirement;
734
- const u = y.securityLevel;
735
- let d;
736
- u === "sandbox" && (d = oe("#i" + t));
737
- const h = (u === "sandbox" ? oe(d.nodes()[0].contentDocument.body) : oe("body")).select(`[id='${t}']`);
738
- xe.insertLineEndings(h, y);
739
- const o = new Be({
740
- multigraph: !1,
741
- compound: !1,
742
- directed: !0
743
- }).setGraph({
744
- rankdir: y.layoutDirection,
745
- marginx: 20,
746
- marginy: 20,
747
- nodesep: 100,
748
- edgesep: 100,
749
- ranksep: 100
750
- }).setDefaultEdgeLabel(function() {
751
- return {};
752
- });
753
- let g = c.db.getRequirements(), R = c.db.getElements(), A = c.db.getRelationships();
754
- yt(g, o, h), _t(R, o, h), gt(A, o), Ue(o), Et(h, o), A.forEach(function(x) {
755
- ft(h, x, o, t, c);
756
- });
757
- const T = y.rect_padding, N = h.node().getBBox(), v = N.width + T * 2, k = N.height + T * 2;
758
- Pe(h, k, v, y.useMaxWidth), h.attr("viewBox", `${N.x - T} ${N.y - T} ${v} ${k}`);
759
- }, mt = {
760
- draw: Rt
761
- }, xt = {
762
- parser: He,
763
- db: ct,
764
- renderer: mt,
765
- styles: ut
766
- };
767
- export {
768
- xt as diagram
769
- };