@marimo-team/islands 0.12.1-dev2 → 0.12.1-dev21
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.
- package/dist/{ConnectedDataExplorerComponent-BUkHSSQ3.js → ConnectedDataExplorerComponent-DNQoDjFe.js} +8 -8
- package/dist/{VegaLite-D2gsHKuf.js → VegaLite-C61XFnJy.js} +2456 -2455
- package/dist/{_baseUniq-CGdEI3Nv.js → _baseUniq-BVJ8xAuG.js} +1 -1
- package/dist/{any-language-editor-CKyudq2-.js → any-language-editor-OJReD1ph.js} +176 -177
- package/dist/architectureDiagram-IEHRJDOE-C5szj5L-.js +4634 -0
- package/dist/assets/{save-worker-J2nVA3vw.js → save-worker-CYdkP5Ic.js} +5 -5
- package/dist/assets/{worker-6ypxTHEH.js → worker-CH7zxkMA.js} +5 -5
- package/dist/assets/{worker-0hM8VAjI.js → worker-DEw2ZetQ.js} +5 -5
- package/dist/{blockDiagram-ZHA2E4KO-BlCDChLH.js → blockDiagram-JOT3LUYC-6huJKNk4.js} +4 -4
- package/dist/{c4Diagram-6F5ED5ID-niLscHfK.js → c4Diagram-VJAJSXHY-DLdlB4_f.js} +2 -2
- package/dist/{channel-Bt8mGm9q.js → channel-C4MpN-FJ.js} +1 -1
- package/dist/{chunk-TMUBEWPD-CQLP9BEl.js → chunk-4BMEZGHF-CczBKfna.js} +1 -1
- package/dist/chunk-A2AXSNBT-BsMPztSQ.js +1372 -0
- package/dist/chunk-AEK57VVT-B6c3n8K2.js +1415 -0
- package/dist/{chunk-ASOPGD6M-DCxLLtgf.js → chunk-D6G4REZN-X8xBS5rG.js} +1 -1
- package/dist/{chunk-5HRBRIJM-DjjlC6eW.js → chunk-RZ5BOZE2-CUqnF2K6.js} +1 -1
- package/dist/{chunk-KFBOBJHC-DPkQurpv.js → chunk-XZIHB7SX-CSouwcyb.js} +1 -1
- package/dist/classDiagram-GIVACNV2-CG_R_HQh.js +16 -0
- package/dist/classDiagram-v2-COTLJTTW-CG_R_HQh.js +16 -0
- package/dist/{clike-BLr83cjT.js → clike-BUuHEmgZ.js} +19 -17
- package/dist/{clone-COI_V4qE.js → clone-DK3J-MiR.js} +1 -1
- package/dist/{dagre-4EVJKHTY-DPsWdzds.js → dagre-OKDRZEBW-D8zhCeNW.js} +46 -46
- package/dist/{data-editor-D2rMsHxb.js → data-editor-BHWBseKi.js} +27 -22
- package/dist/diagram-SSKATNLV-pHZ4gvQ1.js +221 -0
- package/dist/{diagram-QW4FP2JN-D4dzrYii.js → diagram-VNBRO52H-D5_43LWo.js} +28 -28
- package/dist/{dockerfile-CFG_IPGn.js → dockerfile-DIy8NleC.js} +1 -1
- package/dist/erDiagram-Q7BY3M3F-CqUXZyK-.js +841 -0
- package/dist/{factor-DJHfQ4a1.js → factor-DDOC7X6P.js} +1 -1
- package/dist/flowDiagram-4HSFHLVR-DwhP_PW-.js +1622 -0
- package/dist/ganttDiagram-APWFNJXF-Coo7g8mK.js +1681 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-CO9Yfk-1.js → gitGraphDiagram-7IBYFJ6S-CJM5LDZc.js} +55 -55
- package/dist/{graph-j21MX5m5.js → graph-DXseY-wc.js} +3 -3
- package/dist/{groovy-CdgvOO23.js → groovy-DZeT_VM-.js} +1 -1
- package/dist/{index-DwhNQhNY.js → index-B-lvhTmE.js} +1 -1
- package/dist/{index-CZoype9l.js → index-B4nMPVvH.js} +1 -1
- package/dist/{index-C-FP0asF.js → index-BJcH72DF.js} +1 -1
- package/dist/{index-DATq7mzH.js → index-BUjAylGO.js} +1 -1
- package/dist/{index-CNYIP8n0.js → index-BeNQgFqm.js} +1 -1
- package/dist/{index-CqtUFj8g.js → index-BfQvDHaW.js} +1 -1
- package/dist/{index-D83p58Zi.js → index-BnGDaicg.js} +1 -1
- package/dist/{index-CxqVUOhW.js → index-C2ispfH7.js} +1 -1
- package/dist/{index-Cr0IVnKP.js → index-C31uOHRg.js} +3 -3
- package/dist/{index-4YXC3aOd.js → index-CwJWNsd3.js} +1 -1
- package/dist/{index-Wlh2yRsy.js → index-DC3Cnx5t.js} +1 -1
- package/dist/{index-_v--1fvH.js → index-DCcdmTNw.js} +1 -1
- package/dist/{index-Ec1JnxMr.js → index-DMfwuBgb.js} +1 -1
- package/dist/{index-VZAogpU3.js → index-DWPlo8vh.js} +1 -1
- package/dist/{index-B8argTgS.js → index-DYFTJIXf.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-D6HtVB0K.js → infoDiagram-PH2N3AL5-CAFARnGi.js} +5 -5
- package/dist/{journeyDiagram-G5WM74LC-DMj7UaUs.js → journeyDiagram-U35MCT3I-CxCG-gu9.js} +34 -35
- package/dist/{kanban-definition-QRCXZQQD-C9sAvwvv.js → kanban-definition-NDS4AKOZ-DXWk4fBs.js} +26 -25
- package/dist/{layout-DnpJ8ssh.js → layout-DCbiAC-B.js} +4 -4
- package/dist/{linear-C7S_zUSg.js → linear-C-BjrWtA.js} +1 -1
- package/dist/{main-jjvPwD9F.js → main-VRYALaFR.js} +31084 -30575
- package/dist/main.js +1 -1
- package/dist/mermaid-3srgUkji.js +11991 -0
- package/dist/{min-DNi_26db.js → min-C6jNU-8q.js} +2 -2
- package/dist/{mindmap-definition-GWI6TPTV-Bbg64FAI.js → mindmap-definition-ALO5MXBD-ItSGCYxS.js} +3 -2
- package/dist/{nsis-BtA0qkjU.js → nsis-fePjrhq7.js} +1 -1
- package/dist/{pascal-ixanSKUz.js → pascal-De0D6mP7.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-Cr3o9epk.js → pieDiagram-IB7DONF6-DvX9YZO3.js} +38 -38
- package/dist/{quadrantDiagram-OS5C2QUG-CTdokV-X.js → quadrantDiagram-7GDLP6J5-BbXv1kiZ.js} +2 -2
- package/dist/{gitGraph-YCYPL57B-C6vjpJLv.js → radar-MK3ICKWK-Chc5umY2.js} +3259 -2897
- package/dist/{react-plotly-D7fFNQUF.js → react-plotly--Re2eJt2.js} +1 -1
- package/dist/requirementDiagram-KVF5MWMF-0r_3Jc_R.js +851 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-CtGs7dt9.js → sankeyDiagram-QLVOVGJD-eycVAOR9.js} +152 -149
- package/dist/sequenceDiagram-X6HHIX6F-DQpYFs9_.js +2281 -0
- package/dist/{simple-mode-HGTvdazT.js → simple-mode-B0dvCdAA.js} +15 -14
- package/dist/slides-component-BM71y3QA.js +3782 -0
- package/dist/{stateDiagram-MAYHULR4-HCOwrhPJ.js → stateDiagram-DGXRK772--5awulBB.js} +41 -39
- package/dist/stateDiagram-v2-YXO3MK2T-CrxS4RqA.js +16 -0
- package/dist/style.css +1 -1
- package/dist/{time-Cf454IRV.js → time-aNhcx3m7.js} +2 -2
- package/dist/{timeline-definition-U7ZMHBDA-AcXJneLr.js → timeline-definition-BDJGKUSR-D5qQYaXU.js} +25 -25
- package/dist/{vega-component-DN01b8IT.js → vega-component-IC6ZSnx9.js} +2 -2
- package/dist/{xquery-xQxle02u.js → xquery-BUQdORAS.js} +72 -76
- package/dist/{xychartDiagram-6QU3TZC5-B3SwzwIL.js → xychartDiagram-VJFVF3MP-Ceb_sCs0.js} +11 -11
- package/package.json +25 -23
- package/dist/architectureDiagram-UYN6MBPD-C8FCwy4e.js +0 -4595
- package/dist/chunk-7U56Z5CX-D1T9hvBU.js +0 -1215
- package/dist/chunk-T2TOU4HS-DcM_xxju.js +0 -1303
- package/dist/classDiagram-LNE6IOMH-XbDq3sOW.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-XbDq3sOW.js +0 -14
- package/dist/erDiagram-6RL3IURR-13ULGiOU.js +0 -938
- package/dist/flowDiagram-7ASYPVHJ-CMtLojGE.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-Crv4rrPG.js +0 -1679
- package/dist/mermaid-BwpuxK20.js +0 -12937
- package/dist/requirementDiagram-MIRIMTAZ-Bz15K_7J.js +0 -769
- package/dist/sequenceDiagram-G6AWOVSC-D0hnYjDZ.js +0 -2274
- package/dist/slides-component-DM7nuuqG.js +0 -3776
- package/dist/stateDiagram-v2-4JROLMXI-Cj6uqksM.js +0 -14
- package/dist/stex-92raWT1r.js +0 -129
|
@@ -1,769 +0,0 @@
|
|
|
1
|
-
import { _ as r, g as Fe, s as De, a as Pe, b as Ye, c as ve, d as ce, e as Ue, x as Be, l as xe, k as Te } from "./mermaid-BwpuxK20.js";
|
|
2
|
-
import { G as Qe } from "./graph-j21MX5m5.js";
|
|
3
|
-
import { l as He } from "./layout-DnpJ8ssh.js";
|
|
4
|
-
import { l as We } from "./timer-ly3uOrxC.js";
|
|
5
|
-
var he = function() {
|
|
6
|
-
var e = /* @__PURE__ */ r(function($, i, a, l) {
|
|
7
|
-
for (a = a || {}, l = $.length; l--; a[$[l]] = i) ;
|
|
8
|
-
return a;
|
|
9
|
-
}, "o"), t = [1, 3], c = [1, 4], d = [1, 5], u = [1, 6], p = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], y = [1, 18], h = [2, 7], o = [1, 22], g = [1, 23], R = [1, 24], I = [1, 25], b = [1, 26], w = [1, 27], q = [1, 20], v = [1, 28], A = [1, 29], F = [62, 63], pe = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], fe = [1, 47], ye = [1, 48], _e = [1, 49], ge = [1, 50], Ee = [1, 51], Re = [1, 52], me = [1, 53], O = [53, 54], D = [1, 64], P = [1, 60], Y = [1, 61], U = [1, 62], B = [1, 63], Q = [1, 65], j = [1, 69], X = [1, 70], J = [1, 67], Z = [1, 68], S = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], ne = {
|
|
10
|
-
trace: /* @__PURE__ */ r(function() {
|
|
11
|
-
}, "trace"),
|
|
12
|
-
yy: {},
|
|
13
|
-
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 },
|
|
14
|
-
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" },
|
|
15
|
-
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]],
|
|
16
|
-
performAction: /* @__PURE__ */ r(function(i, a, l, n, f, s, K) {
|
|
17
|
-
var E = s.length - 1;
|
|
18
|
-
switch (f) {
|
|
19
|
-
case 4:
|
|
20
|
-
this.$ = s[E].trim(), n.setAccTitle(this.$);
|
|
21
|
-
break;
|
|
22
|
-
case 5:
|
|
23
|
-
case 6:
|
|
24
|
-
this.$ = s[E].trim(), n.setAccDescription(this.$);
|
|
25
|
-
break;
|
|
26
|
-
case 7:
|
|
27
|
-
this.$ = [];
|
|
28
|
-
break;
|
|
29
|
-
case 13:
|
|
30
|
-
n.addRequirement(s[E - 3], s[E - 4]);
|
|
31
|
-
break;
|
|
32
|
-
case 14:
|
|
33
|
-
n.setNewReqId(s[E - 2]);
|
|
34
|
-
break;
|
|
35
|
-
case 15:
|
|
36
|
-
n.setNewReqText(s[E - 2]);
|
|
37
|
-
break;
|
|
38
|
-
case 16:
|
|
39
|
-
n.setNewReqRisk(s[E - 2]);
|
|
40
|
-
break;
|
|
41
|
-
case 17:
|
|
42
|
-
n.setNewReqVerifyMethod(s[E - 2]);
|
|
43
|
-
break;
|
|
44
|
-
case 20:
|
|
45
|
-
this.$ = n.RequirementType.REQUIREMENT;
|
|
46
|
-
break;
|
|
47
|
-
case 21:
|
|
48
|
-
this.$ = n.RequirementType.FUNCTIONAL_REQUIREMENT;
|
|
49
|
-
break;
|
|
50
|
-
case 22:
|
|
51
|
-
this.$ = n.RequirementType.INTERFACE_REQUIREMENT;
|
|
52
|
-
break;
|
|
53
|
-
case 23:
|
|
54
|
-
this.$ = n.RequirementType.PERFORMANCE_REQUIREMENT;
|
|
55
|
-
break;
|
|
56
|
-
case 24:
|
|
57
|
-
this.$ = n.RequirementType.PHYSICAL_REQUIREMENT;
|
|
58
|
-
break;
|
|
59
|
-
case 25:
|
|
60
|
-
this.$ = n.RequirementType.DESIGN_CONSTRAINT;
|
|
61
|
-
break;
|
|
62
|
-
case 26:
|
|
63
|
-
this.$ = n.RiskLevel.LOW_RISK;
|
|
64
|
-
break;
|
|
65
|
-
case 27:
|
|
66
|
-
this.$ = n.RiskLevel.MED_RISK;
|
|
67
|
-
break;
|
|
68
|
-
case 28:
|
|
69
|
-
this.$ = n.RiskLevel.HIGH_RISK;
|
|
70
|
-
break;
|
|
71
|
-
case 29:
|
|
72
|
-
this.$ = n.VerifyType.VERIFY_ANALYSIS;
|
|
73
|
-
break;
|
|
74
|
-
case 30:
|
|
75
|
-
this.$ = n.VerifyType.VERIFY_DEMONSTRATION;
|
|
76
|
-
break;
|
|
77
|
-
case 31:
|
|
78
|
-
this.$ = n.VerifyType.VERIFY_INSPECTION;
|
|
79
|
-
break;
|
|
80
|
-
case 32:
|
|
81
|
-
this.$ = n.VerifyType.VERIFY_TEST;
|
|
82
|
-
break;
|
|
83
|
-
case 33:
|
|
84
|
-
n.addElement(s[E - 3]);
|
|
85
|
-
break;
|
|
86
|
-
case 34:
|
|
87
|
-
n.setNewElementType(s[E - 2]);
|
|
88
|
-
break;
|
|
89
|
-
case 35:
|
|
90
|
-
n.setNewElementDocRef(s[E - 2]);
|
|
91
|
-
break;
|
|
92
|
-
case 38:
|
|
93
|
-
n.addRelationship(s[E - 2], s[E], s[E - 4]);
|
|
94
|
-
break;
|
|
95
|
-
case 39:
|
|
96
|
-
n.addRelationship(s[E - 2], s[E - 4], s[E]);
|
|
97
|
-
break;
|
|
98
|
-
case 40:
|
|
99
|
-
this.$ = n.Relationships.CONTAINS;
|
|
100
|
-
break;
|
|
101
|
-
case 41:
|
|
102
|
-
this.$ = n.Relationships.COPIES;
|
|
103
|
-
break;
|
|
104
|
-
case 42:
|
|
105
|
-
this.$ = n.Relationships.DERIVES;
|
|
106
|
-
break;
|
|
107
|
-
case 43:
|
|
108
|
-
this.$ = n.Relationships.SATISFIES;
|
|
109
|
-
break;
|
|
110
|
-
case 44:
|
|
111
|
-
this.$ = n.Relationships.VERIFIES;
|
|
112
|
-
break;
|
|
113
|
-
case 45:
|
|
114
|
-
this.$ = n.Relationships.REFINES;
|
|
115
|
-
break;
|
|
116
|
-
case 46:
|
|
117
|
-
this.$ = n.Relationships.TRACES;
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
}, "anonymous"),
|
|
121
|
-
table: [{ 3: 1, 4: 2, 6: t, 9: c, 11: d, 13: u }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: t, 9: c, 11: d, 13: u }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(p, [2, 6]), { 3: 12, 4: 2, 6: t, 9: c, 11: d, 13: u }, { 1: [2, 2] }, { 4: 17, 5: y, 7: 13, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, e(p, [2, 4]), e(p, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: y, 7: 31, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, { 4: 17, 5: y, 7: 32, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, { 4: 17, 5: y, 7: 33, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, { 4: 17, 5: y, 7: 34, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, { 4: 17, 5: y, 7: 35, 8: h, 9: c, 11: d, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: I, 35: b, 36: w, 44: q, 62: v, 63: A }, { 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(pe, [2, 49]), e(pe, [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: fe, 56: ye, 57: _e, 58: ge, 59: Ee, 60: Re, 61: me }, { 52: 54, 55: fe, 56: ye, 57: _e, 58: ge, 59: Ee, 60: Re, 61: me }, { 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: D, 20: 59, 21: P, 24: Y, 26: U, 28: B, 30: Q }, { 5: j, 30: X, 46: 66, 47: J, 49: Z }, { 23: 71, 62: v, 63: A }, { 23: 72, 62: v, 63: A }, e(S, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: D, 20: 77, 21: P, 24: Y, 26: U, 28: B, 30: Q }, e(S, [2, 19]), e(S, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: j, 30: X, 46: 80, 47: J, 49: Z }, e(S, [2, 37]), e(S, [2, 38]), e(S, [2, 39]), { 23: 81, 62: v, 63: A }, { 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(S, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(S, [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: D, 20: 106, 21: P, 24: Y, 26: U, 28: B, 30: Q }, { 5: D, 20: 107, 21: P, 24: Y, 26: U, 28: B, 30: Q }, { 5: D, 20: 108, 21: P, 24: Y, 26: U, 28: B, 30: Q }, { 5: D, 20: 109, 21: P, 24: Y, 26: U, 28: B, 30: Q }, { 5: j, 30: X, 46: 110, 47: J, 49: Z }, { 5: j, 30: X, 46: 111, 47: J, 49: Z }, e(S, [2, 14]), e(S, [2, 15]), e(S, [2, 16]), e(S, [2, 17]), e(S, [2, 34]), e(S, [2, 35])],
|
|
122
|
-
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] },
|
|
123
|
-
parseError: /* @__PURE__ */ r(function(i, a) {
|
|
124
|
-
if (a.recoverable)
|
|
125
|
-
this.trace(i);
|
|
126
|
-
else {
|
|
127
|
-
var l = new Error(i);
|
|
128
|
-
throw l.hash = a, l;
|
|
129
|
-
}
|
|
130
|
-
}, "parseError"),
|
|
131
|
-
parse: /* @__PURE__ */ r(function(i) {
|
|
132
|
-
var a = this, l = [0], n = [], f = [null], s = [], K = this.table, E = "", te = 0, Ie = 0, Le = 2, be = 1, Oe = s.slice.call(arguments, 1), m = Object.create(this.lexer), C = { yy: {} };
|
|
133
|
-
for (var se in this.yy)
|
|
134
|
-
Object.prototype.hasOwnProperty.call(this.yy, se) && (C.yy[se] = this.yy[se]);
|
|
135
|
-
m.setInput(i, C.yy), C.yy.lexer = m, C.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
|
|
136
|
-
var ae = m.yylloc;
|
|
137
|
-
s.push(ae);
|
|
138
|
-
var Ce = m.options && m.options.ranges;
|
|
139
|
-
typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
140
|
-
function Me(N) {
|
|
141
|
-
l.length = l.length - 2 * N, f.length = f.length - N, s.length = s.length - N;
|
|
142
|
-
}
|
|
143
|
-
r(Me, "popStack");
|
|
144
|
-
function Se() {
|
|
145
|
-
var N;
|
|
146
|
-
return N = n.pop() || m.lex() || be, typeof N != "number" && (N instanceof Array && (n = N, N = n.pop()), N = a.symbols_[N] || N), N;
|
|
147
|
-
}
|
|
148
|
-
r(Se, "lex");
|
|
149
|
-
for (var k, M, x, le, H = {}, ie, V, ke, re; ; ) {
|
|
150
|
-
if (M = l[l.length - 1], this.defaultActions[M] ? x = this.defaultActions[M] : ((k === null || typeof k > "u") && (k = Se()), x = K[M] && K[M][k]), typeof x > "u" || !x.length || !x[0]) {
|
|
151
|
-
var oe = "";
|
|
152
|
-
re = [];
|
|
153
|
-
for (ie in K[M])
|
|
154
|
-
this.terminals_[ie] && ie > Le && re.push("'" + this.terminals_[ie] + "'");
|
|
155
|
-
m.showPosition ? oe = "Parse error on line " + (te + 1) + `:
|
|
156
|
-
` + m.showPosition() + `
|
|
157
|
-
Expecting ` + re.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : oe = "Parse error on line " + (te + 1) + ": Unexpected " + (k == be ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(oe, {
|
|
158
|
-
text: m.match,
|
|
159
|
-
token: this.terminals_[k] || k,
|
|
160
|
-
line: m.yylineno,
|
|
161
|
-
loc: ae,
|
|
162
|
-
expected: re
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
if (x[0] instanceof Array && x.length > 1)
|
|
166
|
-
throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + k);
|
|
167
|
-
switch (x[0]) {
|
|
168
|
-
case 1:
|
|
169
|
-
l.push(k), f.push(m.yytext), s.push(m.yylloc), l.push(x[1]), k = null, Ie = m.yyleng, E = m.yytext, te = m.yylineno, ae = m.yylloc;
|
|
170
|
-
break;
|
|
171
|
-
case 2:
|
|
172
|
-
if (V = this.productions_[x[1]][1], H.$ = f[f.length - V], H._$ = {
|
|
173
|
-
first_line: s[s.length - (V || 1)].first_line,
|
|
174
|
-
last_line: s[s.length - 1].last_line,
|
|
175
|
-
first_column: s[s.length - (V || 1)].first_column,
|
|
176
|
-
last_column: s[s.length - 1].last_column
|
|
177
|
-
}, Ce && (H._$.range = [
|
|
178
|
-
s[s.length - (V || 1)].range[0],
|
|
179
|
-
s[s.length - 1].range[1]
|
|
180
|
-
]), le = this.performAction.apply(H, [
|
|
181
|
-
E,
|
|
182
|
-
Ie,
|
|
183
|
-
te,
|
|
184
|
-
C.yy,
|
|
185
|
-
x[1],
|
|
186
|
-
f,
|
|
187
|
-
s
|
|
188
|
-
].concat(Oe)), typeof le < "u")
|
|
189
|
-
return le;
|
|
190
|
-
V && (l = l.slice(0, -1 * V * 2), f = f.slice(0, -1 * V), s = s.slice(0, -1 * V)), l.push(this.productions_[x[1]][0]), f.push(H.$), s.push(H._$), ke = K[l[l.length - 2]][l[l.length - 1]], l.push(ke);
|
|
191
|
-
break;
|
|
192
|
-
case 3:
|
|
193
|
-
return !0;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return !0;
|
|
197
|
-
}, "parse")
|
|
198
|
-
}, $e = /* @__PURE__ */ function() {
|
|
199
|
-
var $ = {
|
|
200
|
-
EOF: 1,
|
|
201
|
-
parseError: /* @__PURE__ */ r(function(a, l) {
|
|
202
|
-
if (this.yy.parser)
|
|
203
|
-
this.yy.parser.parseError(a, l);
|
|
204
|
-
else
|
|
205
|
-
throw new Error(a);
|
|
206
|
-
}, "parseError"),
|
|
207
|
-
// resets the lexer, sets new input
|
|
208
|
-
setInput: /* @__PURE__ */ r(function(i, a) {
|
|
209
|
-
return this.yy = a || 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 = {
|
|
210
|
-
first_line: 1,
|
|
211
|
-
first_column: 0,
|
|
212
|
-
last_line: 1,
|
|
213
|
-
last_column: 0
|
|
214
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
215
|
-
}, "setInput"),
|
|
216
|
-
// consumes and returns one char from the input
|
|
217
|
-
input: /* @__PURE__ */ r(function() {
|
|
218
|
-
var i = this._input[0];
|
|
219
|
-
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
220
|
-
var a = i.match(/(?:\r\n?|\n).*/g);
|
|
221
|
-
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
222
|
-
}, "input"),
|
|
223
|
-
// unshifts one char (or a string) into the input
|
|
224
|
-
unput: /* @__PURE__ */ r(function(i) {
|
|
225
|
-
var a = i.length, l = i.split(/(?:\r\n?|\n)/g);
|
|
226
|
-
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
227
|
-
var n = this.match.split(/(?:\r\n?|\n)/g);
|
|
228
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
229
|
-
var f = this.yylloc.range;
|
|
230
|
-
return this.yylloc = {
|
|
231
|
-
first_line: this.yylloc.first_line,
|
|
232
|
-
last_line: this.yylineno + 1,
|
|
233
|
-
first_column: this.yylloc.first_column,
|
|
234
|
-
last_column: l ? (l.length === n.length ? this.yylloc.first_column : 0) + n[n.length - l.length].length - l[0].length : this.yylloc.first_column - a
|
|
235
|
-
}, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
236
|
-
}, "unput"),
|
|
237
|
-
// When called from action, caches matched text and appends it on next action
|
|
238
|
-
more: /* @__PURE__ */ r(function() {
|
|
239
|
-
return this._more = !0, this;
|
|
240
|
-
}, "more"),
|
|
241
|
-
// 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.
|
|
242
|
-
reject: /* @__PURE__ */ r(function() {
|
|
243
|
-
if (this.options.backtrack_lexer)
|
|
244
|
-
this._backtrack = !0;
|
|
245
|
-
else
|
|
246
|
-
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).
|
|
247
|
-
` + this.showPosition(), {
|
|
248
|
-
text: "",
|
|
249
|
-
token: null,
|
|
250
|
-
line: this.yylineno
|
|
251
|
-
});
|
|
252
|
-
return this;
|
|
253
|
-
}, "reject"),
|
|
254
|
-
// retain first n characters of the match
|
|
255
|
-
less: /* @__PURE__ */ r(function(i) {
|
|
256
|
-
this.unput(this.match.slice(i));
|
|
257
|
-
}, "less"),
|
|
258
|
-
// displays already matched input, i.e. for error messages
|
|
259
|
-
pastInput: /* @__PURE__ */ r(function() {
|
|
260
|
-
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
261
|
-
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
262
|
-
}, "pastInput"),
|
|
263
|
-
// displays upcoming input, i.e. for error messages
|
|
264
|
-
upcomingInput: /* @__PURE__ */ r(function() {
|
|
265
|
-
var i = this.match;
|
|
266
|
-
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
267
|
-
}, "upcomingInput"),
|
|
268
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
269
|
-
showPosition: /* @__PURE__ */ r(function() {
|
|
270
|
-
var i = this.pastInput(), a = new Array(i.length + 1).join("-");
|
|
271
|
-
return i + this.upcomingInput() + `
|
|
272
|
-
` + a + "^";
|
|
273
|
-
}, "showPosition"),
|
|
274
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
275
|
-
test_match: /* @__PURE__ */ r(function(i, a) {
|
|
276
|
-
var l, n, f;
|
|
277
|
-
if (this.options.backtrack_lexer && (f = {
|
|
278
|
-
yylineno: this.yylineno,
|
|
279
|
-
yylloc: {
|
|
280
|
-
first_line: this.yylloc.first_line,
|
|
281
|
-
last_line: this.last_line,
|
|
282
|
-
first_column: this.yylloc.first_column,
|
|
283
|
-
last_column: this.yylloc.last_column
|
|
284
|
-
},
|
|
285
|
-
yytext: this.yytext,
|
|
286
|
-
match: this.match,
|
|
287
|
-
matches: this.matches,
|
|
288
|
-
matched: this.matched,
|
|
289
|
-
yyleng: this.yyleng,
|
|
290
|
-
offset: this.offset,
|
|
291
|
-
_more: this._more,
|
|
292
|
-
_input: this._input,
|
|
293
|
-
yy: this.yy,
|
|
294
|
-
conditionStack: this.conditionStack.slice(0),
|
|
295
|
-
done: this.done
|
|
296
|
-
}, 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 = {
|
|
297
|
-
first_line: this.yylloc.last_line,
|
|
298
|
-
last_line: this.yylineno + 1,
|
|
299
|
-
first_column: this.yylloc.last_column,
|
|
300
|
-
last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
301
|
-
}, 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], l = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
|
|
302
|
-
return l;
|
|
303
|
-
if (this._backtrack) {
|
|
304
|
-
for (var s in f)
|
|
305
|
-
this[s] = f[s];
|
|
306
|
-
return !1;
|
|
307
|
-
}
|
|
308
|
-
return !1;
|
|
309
|
-
}, "test_match"),
|
|
310
|
-
// return next match in input
|
|
311
|
-
next: /* @__PURE__ */ r(function() {
|
|
312
|
-
if (this.done)
|
|
313
|
-
return this.EOF;
|
|
314
|
-
this._input || (this.done = !0);
|
|
315
|
-
var i, a, l, n;
|
|
316
|
-
this._more || (this.yytext = "", this.match = "");
|
|
317
|
-
for (var f = this._currentRules(), s = 0; s < f.length; s++)
|
|
318
|
-
if (l = this._input.match(this.rules[f[s]]), l && (!a || l[0].length > a[0].length)) {
|
|
319
|
-
if (a = l, n = s, this.options.backtrack_lexer) {
|
|
320
|
-
if (i = this.test_match(l, f[s]), i !== !1)
|
|
321
|
-
return i;
|
|
322
|
-
if (this._backtrack) {
|
|
323
|
-
a = !1;
|
|
324
|
-
continue;
|
|
325
|
-
} else
|
|
326
|
-
return !1;
|
|
327
|
-
} else if (!this.options.flex)
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
return a ? (i = this.test_match(a, f[n]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
331
|
-
` + this.showPosition(), {
|
|
332
|
-
text: "",
|
|
333
|
-
token: null,
|
|
334
|
-
line: this.yylineno
|
|
335
|
-
});
|
|
336
|
-
}, "next"),
|
|
337
|
-
// return next match that has a token
|
|
338
|
-
lex: /* @__PURE__ */ r(function() {
|
|
339
|
-
var a = this.next();
|
|
340
|
-
return a || this.lex();
|
|
341
|
-
}, "lex"),
|
|
342
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
343
|
-
begin: /* @__PURE__ */ r(function(a) {
|
|
344
|
-
this.conditionStack.push(a);
|
|
345
|
-
}, "begin"),
|
|
346
|
-
// pop the previously active lexer condition state off the condition stack
|
|
347
|
-
popState: /* @__PURE__ */ r(function() {
|
|
348
|
-
var a = this.conditionStack.length - 1;
|
|
349
|
-
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
350
|
-
}, "popState"),
|
|
351
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
352
|
-
_currentRules: /* @__PURE__ */ r(function() {
|
|
353
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
354
|
-
}, "_currentRules"),
|
|
355
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
356
|
-
topState: /* @__PURE__ */ r(function(a) {
|
|
357
|
-
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
358
|
-
}, "topState"),
|
|
359
|
-
// alias for begin(condition)
|
|
360
|
-
pushState: /* @__PURE__ */ r(function(a) {
|
|
361
|
-
this.begin(a);
|
|
362
|
-
}, "pushState"),
|
|
363
|
-
// return the number of states currently on the stack
|
|
364
|
-
stateStackSize: /* @__PURE__ */ r(function() {
|
|
365
|
-
return this.conditionStack.length;
|
|
366
|
-
}, "stateStackSize"),
|
|
367
|
-
options: { "case-insensitive": !0 },
|
|
368
|
-
performAction: /* @__PURE__ */ r(function(a, l, n, f) {
|
|
369
|
-
switch (n) {
|
|
370
|
-
case 0:
|
|
371
|
-
return "title";
|
|
372
|
-
case 1:
|
|
373
|
-
return this.begin("acc_title"), 9;
|
|
374
|
-
case 2:
|
|
375
|
-
return this.popState(), "acc_title_value";
|
|
376
|
-
case 3:
|
|
377
|
-
return this.begin("acc_descr"), 11;
|
|
378
|
-
case 4:
|
|
379
|
-
return this.popState(), "acc_descr_value";
|
|
380
|
-
case 5:
|
|
381
|
-
this.begin("acc_descr_multiline");
|
|
382
|
-
break;
|
|
383
|
-
case 6:
|
|
384
|
-
this.popState();
|
|
385
|
-
break;
|
|
386
|
-
case 7:
|
|
387
|
-
return "acc_descr_multiline_value";
|
|
388
|
-
case 8:
|
|
389
|
-
return 5;
|
|
390
|
-
case 9:
|
|
391
|
-
break;
|
|
392
|
-
case 10:
|
|
393
|
-
break;
|
|
394
|
-
case 11:
|
|
395
|
-
break;
|
|
396
|
-
case 12:
|
|
397
|
-
return 8;
|
|
398
|
-
case 13:
|
|
399
|
-
return 6;
|
|
400
|
-
case 14:
|
|
401
|
-
return 19;
|
|
402
|
-
case 15:
|
|
403
|
-
return 30;
|
|
404
|
-
case 16:
|
|
405
|
-
return 22;
|
|
406
|
-
case 17:
|
|
407
|
-
return 21;
|
|
408
|
-
case 18:
|
|
409
|
-
return 24;
|
|
410
|
-
case 19:
|
|
411
|
-
return 26;
|
|
412
|
-
case 20:
|
|
413
|
-
return 28;
|
|
414
|
-
case 21:
|
|
415
|
-
return 31;
|
|
416
|
-
case 22:
|
|
417
|
-
return 32;
|
|
418
|
-
case 23:
|
|
419
|
-
return 33;
|
|
420
|
-
case 24:
|
|
421
|
-
return 34;
|
|
422
|
-
case 25:
|
|
423
|
-
return 35;
|
|
424
|
-
case 26:
|
|
425
|
-
return 36;
|
|
426
|
-
case 27:
|
|
427
|
-
return 37;
|
|
428
|
-
case 28:
|
|
429
|
-
return 38;
|
|
430
|
-
case 29:
|
|
431
|
-
return 39;
|
|
432
|
-
case 30:
|
|
433
|
-
return 40;
|
|
434
|
-
case 31:
|
|
435
|
-
return 41;
|
|
436
|
-
case 32:
|
|
437
|
-
return 42;
|
|
438
|
-
case 33:
|
|
439
|
-
return 43;
|
|
440
|
-
case 34:
|
|
441
|
-
return 44;
|
|
442
|
-
case 35:
|
|
443
|
-
return 55;
|
|
444
|
-
case 36:
|
|
445
|
-
return 56;
|
|
446
|
-
case 37:
|
|
447
|
-
return 57;
|
|
448
|
-
case 38:
|
|
449
|
-
return 58;
|
|
450
|
-
case 39:
|
|
451
|
-
return 59;
|
|
452
|
-
case 40:
|
|
453
|
-
return 60;
|
|
454
|
-
case 41:
|
|
455
|
-
return 61;
|
|
456
|
-
case 42:
|
|
457
|
-
return 47;
|
|
458
|
-
case 43:
|
|
459
|
-
return 49;
|
|
460
|
-
case 44:
|
|
461
|
-
return 51;
|
|
462
|
-
case 45:
|
|
463
|
-
return 54;
|
|
464
|
-
case 46:
|
|
465
|
-
return 53;
|
|
466
|
-
case 47:
|
|
467
|
-
this.begin("string");
|
|
468
|
-
break;
|
|
469
|
-
case 48:
|
|
470
|
-
this.popState();
|
|
471
|
-
break;
|
|
472
|
-
case 49:
|
|
473
|
-
return "qString";
|
|
474
|
-
case 50:
|
|
475
|
-
return l.yytext = l.yytext.trim(), 62;
|
|
476
|
-
}
|
|
477
|
-
}, "anonymous"),
|
|
478
|
-
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],
|
|
479
|
-
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 } }
|
|
480
|
-
};
|
|
481
|
-
return $;
|
|
482
|
-
}();
|
|
483
|
-
ne.lexer = $e;
|
|
484
|
-
function ee() {
|
|
485
|
-
this.yy = {};
|
|
486
|
-
}
|
|
487
|
-
return r(ee, "Parser"), ee.prototype = ne, ne.Parser = ee, new ee();
|
|
488
|
-
}();
|
|
489
|
-
he.parser = he;
|
|
490
|
-
var Ke = he, de = [], T = {}, G = /* @__PURE__ */ new Map(), L = {}, z = /* @__PURE__ */ new Map(), Ge = {
|
|
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
|
-
}, ze = {
|
|
498
|
-
LOW_RISK: "Low",
|
|
499
|
-
MED_RISK: "Medium",
|
|
500
|
-
HIGH_RISK: "High"
|
|
501
|
-
}, je = {
|
|
502
|
-
VERIFY_ANALYSIS: "Analysis",
|
|
503
|
-
VERIFY_DEMONSTRATION: "Demonstration",
|
|
504
|
-
VERIFY_INSPECTION: "Inspection",
|
|
505
|
-
VERIFY_TEST: "Test"
|
|
506
|
-
}, Xe = {
|
|
507
|
-
CONTAINS: "contains",
|
|
508
|
-
COPIES: "copies",
|
|
509
|
-
DERIVES: "derives",
|
|
510
|
-
SATISFIES: "satisfies",
|
|
511
|
-
VERIFIES: "verifies",
|
|
512
|
-
REFINES: "refines",
|
|
513
|
-
TRACES: "traces"
|
|
514
|
-
}, Je = /* @__PURE__ */ r((e, t) => (G.has(e) || G.set(e, {
|
|
515
|
-
name: e,
|
|
516
|
-
type: t,
|
|
517
|
-
id: T.id,
|
|
518
|
-
text: T.text,
|
|
519
|
-
risk: T.risk,
|
|
520
|
-
verifyMethod: T.verifyMethod
|
|
521
|
-
}), T = {}, G.get(e)), "addRequirement"), Ze = /* @__PURE__ */ r(() => G, "getRequirements"), et = /* @__PURE__ */ r((e) => {
|
|
522
|
-
T !== void 0 && (T.id = e);
|
|
523
|
-
}, "setNewReqId"), tt = /* @__PURE__ */ r((e) => {
|
|
524
|
-
T !== void 0 && (T.text = e);
|
|
525
|
-
}, "setNewReqText"), it = /* @__PURE__ */ r((e) => {
|
|
526
|
-
T !== void 0 && (T.risk = e);
|
|
527
|
-
}, "setNewReqRisk"), rt = /* @__PURE__ */ r((e) => {
|
|
528
|
-
T !== void 0 && (T.verifyMethod = e);
|
|
529
|
-
}, "setNewReqVerifyMethod"), nt = /* @__PURE__ */ r((e) => (z.has(e) || (z.set(e, {
|
|
530
|
-
name: e,
|
|
531
|
-
type: L.type,
|
|
532
|
-
docRef: L.docRef
|
|
533
|
-
}), xe.info("Added new requirement: ", e)), L = {}, z.get(e)), "addElement"), st = /* @__PURE__ */ r(() => z, "getElements"), at = /* @__PURE__ */ r((e) => {
|
|
534
|
-
L !== void 0 && (L.type = e);
|
|
535
|
-
}, "setNewElementType"), lt = /* @__PURE__ */ r((e) => {
|
|
536
|
-
L !== void 0 && (L.docRef = e);
|
|
537
|
-
}, "setNewElementDocRef"), ot = /* @__PURE__ */ r((e, t, c) => {
|
|
538
|
-
de.push({
|
|
539
|
-
type: e,
|
|
540
|
-
src: t,
|
|
541
|
-
dst: c
|
|
542
|
-
});
|
|
543
|
-
}, "addRelationship"), ct = /* @__PURE__ */ r(() => de, "getRelationships"), ht = /* @__PURE__ */ r(() => {
|
|
544
|
-
de = [], T = {}, G = /* @__PURE__ */ new Map(), L = {}, z = /* @__PURE__ */ new Map(), Be();
|
|
545
|
-
}, "clear"), ut = {
|
|
546
|
-
RequirementType: Ge,
|
|
547
|
-
RiskLevel: ze,
|
|
548
|
-
VerifyType: je,
|
|
549
|
-
Relationships: Xe,
|
|
550
|
-
getConfig: /* @__PURE__ */ r(() => ve().req, "getConfig"),
|
|
551
|
-
addRequirement: Je,
|
|
552
|
-
getRequirements: Ze,
|
|
553
|
-
setNewReqId: et,
|
|
554
|
-
setNewReqText: tt,
|
|
555
|
-
setNewReqRisk: it,
|
|
556
|
-
setNewReqVerifyMethod: rt,
|
|
557
|
-
setAccTitle: Ye,
|
|
558
|
-
getAccTitle: Pe,
|
|
559
|
-
setAccDescription: De,
|
|
560
|
-
getAccDescription: Fe,
|
|
561
|
-
addElement: nt,
|
|
562
|
-
getElements: st,
|
|
563
|
-
setNewElementType: at,
|
|
564
|
-
setNewElementDocRef: lt,
|
|
565
|
-
addRelationship: ot,
|
|
566
|
-
getRelationships: ct,
|
|
567
|
-
clear: ht
|
|
568
|
-
}, dt = /* @__PURE__ */ r((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
|
-
`, "getStyles"), pt = dt, ue = {
|
|
612
|
-
CONTAINS: "contains",
|
|
613
|
-
ARROW: "arrow"
|
|
614
|
-
}, ft = /* @__PURE__ */ r((e, t) => {
|
|
615
|
-
let c = e.append("defs").append("marker").attr("id", ue.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
|
-
c.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), c.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), c.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", ue.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
|
-
}, "insertLineEndings"), we = {
|
|
624
|
-
ReqMarkers: ue,
|
|
625
|
-
insertLineEndings: ft
|
|
626
|
-
}, _ = {}, Ne = 0, Ae = /* @__PURE__ */ r((e, t) => e.insert("rect", "#" + t).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", _.rect_min_width + "px").attr("height", _.rect_min_height + "px"), "newRectNode"), qe = /* @__PURE__ */ r((e, t, c) => {
|
|
627
|
-
let d = _.rect_min_width / 2, u = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", d).attr("y", _.rect_padding).attr("dominant-baseline", "hanging"), p = 0;
|
|
628
|
-
c.forEach((g) => {
|
|
629
|
-
p == 0 ? u.append("tspan").attr("text-anchor", "middle").attr("x", _.rect_min_width / 2).attr("dy", 0).text(g) : u.append("tspan").attr("text-anchor", "middle").attr("x", _.rect_min_width / 2).attr("dy", _.line_height * 0.75).text(g), p++;
|
|
630
|
-
});
|
|
631
|
-
let y = 1.5 * _.rect_padding, h = p * _.line_height * 0.75, o = y + h;
|
|
632
|
-
return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", _.rect_min_width).attr("y1", o).attr("y2", o), {
|
|
633
|
-
titleNode: u,
|
|
634
|
-
y: o
|
|
635
|
-
};
|
|
636
|
-
}, "newTitleNode"), Ve = /* @__PURE__ */ r((e, t, c, d) => {
|
|
637
|
-
let u = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", _.rect_padding).attr("y", d).attr("dominant-baseline", "hanging"), p = 0;
|
|
638
|
-
const y = 30;
|
|
639
|
-
let h = [];
|
|
640
|
-
return c.forEach((o) => {
|
|
641
|
-
let g = o.length;
|
|
642
|
-
for (; g > y && p < 3; ) {
|
|
643
|
-
let R = o.substring(0, y);
|
|
644
|
-
o = o.substring(y, o.length), g = o.length, h[h.length] = R, p++;
|
|
645
|
-
}
|
|
646
|
-
if (p == 3) {
|
|
647
|
-
let R = h[h.length - 1];
|
|
648
|
-
h[h.length - 1] = R.substring(0, R.length - 4) + "...";
|
|
649
|
-
} else
|
|
650
|
-
h[h.length] = o;
|
|
651
|
-
p = 0;
|
|
652
|
-
}), h.forEach((o) => {
|
|
653
|
-
u.append("tspan").attr("x", _.rect_padding).attr("dy", _.line_height).text(o);
|
|
654
|
-
}), u;
|
|
655
|
-
}, "newBodyNode"), yt = /* @__PURE__ */ r((e, t, c, d) => {
|
|
656
|
-
const u = t.node().getTotalLength(), p = t.node().getPointAtLength(u * 0.5), y = "rel" + Ne;
|
|
657
|
-
Ne++;
|
|
658
|
-
const o = e.append("text").attr("class", "req relationshipLabel").attr("id", y).attr("x", p.x).attr("y", p.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(d).node().getBBox();
|
|
659
|
-
e.insert("rect", "#" + y).attr("class", "req reqLabelBox").attr("x", p.x - o.width / 2).attr("y", p.y - o.height / 2).attr("width", o.width).attr("height", o.height).attr("fill", "white").attr("fill-opacity", "85%");
|
|
660
|
-
}, "addEdgeLabel"), _t = /* @__PURE__ */ r(function(e, t, c, d, u) {
|
|
661
|
-
const p = c.edge(W(t.src), W(t.dst)), y = We().x(function(o) {
|
|
662
|
-
return o.x;
|
|
663
|
-
}).y(function(o) {
|
|
664
|
-
return o.y;
|
|
665
|
-
}), h = e.insert("path", "#" + d).attr("class", "er relationshipLine").attr("d", y(p.points)).attr("fill", "none");
|
|
666
|
-
t.type == u.db.Relationships.CONTAINS ? h.attr(
|
|
667
|
-
"marker-start",
|
|
668
|
-
"url(" + Te.getUrl(_.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)"
|
|
669
|
-
) : (h.attr("stroke-dasharray", "10,7"), h.attr(
|
|
670
|
-
"marker-end",
|
|
671
|
-
"url(" + Te.getUrl(_.arrowMarkerAbsolute) + "#" + we.ReqMarkers.ARROW + "_line_ending)"
|
|
672
|
-
)), yt(e, h, _, `<<${t.type}>>`);
|
|
673
|
-
}, "drawRelationshipFromLayout"), gt = /* @__PURE__ */ r((e, t, c) => {
|
|
674
|
-
e.forEach((d, u) => {
|
|
675
|
-
u = W(u), xe.info("Added new requirement: ", u);
|
|
676
|
-
const p = c.append("g").attr("id", u), y = "req-" + u, h = Ae(p, y);
|
|
677
|
-
let o = [], g = qe(p, u + "_title", [
|
|
678
|
-
`<<${d.type}>>`,
|
|
679
|
-
`${d.name}`
|
|
680
|
-
]);
|
|
681
|
-
o.push(g.titleNode);
|
|
682
|
-
let R = Ve(
|
|
683
|
-
p,
|
|
684
|
-
u + "_body",
|
|
685
|
-
[
|
|
686
|
-
`Id: ${d.id}`,
|
|
687
|
-
`Text: ${d.text}`,
|
|
688
|
-
`Risk: ${d.risk}`,
|
|
689
|
-
`Verification: ${d.verifyMethod}`
|
|
690
|
-
],
|
|
691
|
-
g.y
|
|
692
|
-
);
|
|
693
|
-
o.push(R);
|
|
694
|
-
const I = h.node().getBBox();
|
|
695
|
-
t.setNode(u, {
|
|
696
|
-
width: I.width,
|
|
697
|
-
height: I.height,
|
|
698
|
-
shape: "rect",
|
|
699
|
-
id: u
|
|
700
|
-
});
|
|
701
|
-
});
|
|
702
|
-
}, "drawReqs"), Et = /* @__PURE__ */ r((e, t, c) => {
|
|
703
|
-
e.forEach((d, u) => {
|
|
704
|
-
const p = W(u), y = c.append("g").attr("id", p), h = "element-" + p, o = Ae(y, h);
|
|
705
|
-
let g = [], R = qe(y, h + "_title", ["<<Element>>", `${u}`]);
|
|
706
|
-
g.push(R.titleNode);
|
|
707
|
-
let I = Ve(
|
|
708
|
-
y,
|
|
709
|
-
h + "_body",
|
|
710
|
-
[`Type: ${d.type || "Not Specified"}`, `Doc Ref: ${d.docRef || "None"}`],
|
|
711
|
-
R.y
|
|
712
|
-
);
|
|
713
|
-
g.push(I);
|
|
714
|
-
const b = o.node().getBBox();
|
|
715
|
-
t.setNode(p, {
|
|
716
|
-
width: b.width,
|
|
717
|
-
height: b.height,
|
|
718
|
-
shape: "rect",
|
|
719
|
-
id: p
|
|
720
|
-
});
|
|
721
|
-
});
|
|
722
|
-
}, "drawElements"), Rt = /* @__PURE__ */ r((e, t) => (e.forEach(function(c) {
|
|
723
|
-
let d = W(c.src), u = W(c.dst);
|
|
724
|
-
t.setEdge(d, u, { relationship: c });
|
|
725
|
-
}), e), "addRelationships"), mt = /* @__PURE__ */ r(function(e, t) {
|
|
726
|
-
t.nodes().forEach(function(c) {
|
|
727
|
-
c !== void 0 && t.node(c) !== void 0 && (e.select("#" + c), e.select("#" + c).attr(
|
|
728
|
-
"transform",
|
|
729
|
-
"translate(" + (t.node(c).x - t.node(c).width / 2) + "," + (t.node(c).y - t.node(c).height / 2) + " )"
|
|
730
|
-
));
|
|
731
|
-
});
|
|
732
|
-
}, "adjustEntities"), W = /* @__PURE__ */ r((e) => e.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), It = /* @__PURE__ */ r((e, t, c, d) => {
|
|
733
|
-
_ = ve().requirement;
|
|
734
|
-
const u = _.securityLevel;
|
|
735
|
-
let p;
|
|
736
|
-
u === "sandbox" && (p = ce("#i" + t));
|
|
737
|
-
const h = (u === "sandbox" ? ce(p.nodes()[0].contentDocument.body) : ce("body")).select(`[id='${t}']`);
|
|
738
|
-
we.insertLineEndings(h, _);
|
|
739
|
-
const o = new Qe({
|
|
740
|
-
multigraph: !1,
|
|
741
|
-
compound: !1,
|
|
742
|
-
directed: !0
|
|
743
|
-
}).setGraph({
|
|
744
|
-
rankdir: _.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 = d.db.getRequirements(), R = d.db.getElements(), I = d.db.getRelationships();
|
|
754
|
-
gt(g, o, h), Et(R, o, h), Rt(I, o), He(o), mt(h, o), I.forEach(function(A) {
|
|
755
|
-
_t(h, A, o, t, d);
|
|
756
|
-
});
|
|
757
|
-
const b = _.rect_padding, w = h.node().getBBox(), q = w.width + b * 2, v = w.height + b * 2;
|
|
758
|
-
Ue(h, v, q, _.useMaxWidth), h.attr("viewBox", `${w.x - b} ${w.y - b} ${q} ${v}`);
|
|
759
|
-
}, "draw"), bt = {
|
|
760
|
-
draw: It
|
|
761
|
-
}, vt = {
|
|
762
|
-
parser: Ke,
|
|
763
|
-
db: ut,
|
|
764
|
-
renderer: bt,
|
|
765
|
-
styles: pt
|
|
766
|
-
};
|
|
767
|
-
export {
|
|
768
|
-
vt as diagram
|
|
769
|
-
};
|