PageSourceSearch

https://raise-uav.com/_nicegui/1.4.35/libraries/a022d63bc2efb68f61…/requirementDiagram-3252776f.js

js raise-uav.com collected 2026-10-06 04:52:16 UTC 35,127 bytes, 768 lines download raw bytes

vendor: 22,729 bytes, lines 1-411
1import { c as Te, s as Ce, g as Fe, b as Me, a as De, l as Ne, E as Pe, j as oe, k as Ye, f as ke } from "./mermaid-5f2d2ec5.js";
2import { G as Ue, l as Be } from "./layout-1caf14c9.js";
3import { l as Qe } from "./line-9d49a987.js";
4import "./array-2ff2c7a6.js";
5import "./constant-2fe7eae5.js";
6var ce = function() {
7  var e = function(V, i, r, a) {
8    for (r = r || {}, a = V.length; a--; r[V[a]] = i)
9      ;
10    return r;
11  }, 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], f = [1, 18], h = [2, 7], o = [1, 22], E = [1, 23], R = [1, 24], A = [1, 25], T = [1, 26], N = [1, 27], w = [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], fe = [1, 47], pe = [1, 48], ye = [1, 49], _e = [1, 50], Ee = [1, 51], ge = [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 = {
12    trace: function() {
13    },
14    yy: {},
15    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 },
16    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" },
17    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]],
18    performAction: function(i, r, a, n, p, s, W) {
19      var _ = s.length - 1;
20      switch (p) {
21        case 4:
22          this.$ = s[_].trim(), n.setAccTitle(this.$);
23          break;
24        case 5:
25        case 6:
26          this.$ = s[_].trim(), n.setAccDescription(this.$);
27          break;
28        case 7:
29          this.$ = [];
30          break;
31        case 13:
32          n.addRequirement(s[_ - 3], s[_ - 4]);
33          break;
34        case 14:
35          n.setNewReqId(s[_ - 2]);
36          break;
37        case 15:
38          n.setNewReqText(s[_ - 2]);
39          break;
40        case 16:
41          n.setNewReqRisk(s[_ - 2]);
42          break;
43        case 17:
44          n.setNewReqVerifyMethod(s[_ - 2]);
45          break;
46        case 20:
47          this.$ = n.RequirementType.REQUIREMENT;
48          break;
49        case 21:
50          this.$ = n.RequirementType.FUNCTIONAL_REQUIREMENT;
51          break;
52        case 22:
53          this.$ = n.RequirementType.INTERFACE_REQUIREMENT;
54          break;
55        case 23:
56          this.$ = n.RequirementType.PERFORMANCE_REQUIREMENT;
57          break;
58        case 24:
59          this.$ = n.RequirementType.PHYSICAL_REQUIREMENT;
60          break;
61        case 25:
62          this.$ = n.RequirementType.DESIGN_CONSTRAINT;
63          break;
64        case 26:
65          this.$ = n.RiskLevel.LOW_RISK;
66          break;
67        case 27:
68          this.$ = n.RiskLevel.MED_RISK;
69          break;
70        case 28:
71          this.$ = n.RiskLevel.HIGH_RISK;
72          break;
73        case 29:
74          this.$ = n.VerifyType.VERIFY_ANALYSIS;
75          break;
76        case 30:
77          this.$ = n.VerifyType.VERIFY_DEMONSTRATION;
78          break;
79        case 31:
80          this.$ = n.VerifyType.VERIFY_INSPECTION;
81          break;
82        case 32:
83          this.$ = n.VerifyType.VERIFY_TEST;
84          break;
85        case 33:
86          n.addElement(s[_ - 3]);
87          break;
88        case 34:
89          n.setNewElementType(s[_ - 2]);
90          break;
91        case 35:
92          n.setNewElementDocRef(s[_ - 2]);
93          break;
94        case 38:
95          n.addRelationship(s[_ - 2], s[_], s[_ - 4]);
96          break;
97        case 39:
98          n.addRelationship(s[_ - 2], s[_ - 4], s[_]);
99          break;
100        case 40:
101          this.$ = n.Relationships.CONTAINS;
102          break;
103        case 41:
104          this.$ = n.Relationships.COPIES;
105          break;
106        case 42:
107          this.$ = n.Relationships.DERIVES;
108          break;
109        case 43:
110          this.$ = n.Relationships.SATISFIES;
111          break;
112        case 44:
113          this.$ = n.Relationships.VERIFIES;
114          break;
115        case 45:
116          this.$ = n.Relationships.REFINES;
117          break;
118        case 46:
119          this.$ = n.Relationships.TRACES;
120          break;
121      }
122    },
123    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: f, 7: 13, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, e(d, [2, 4]), e(d, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: f, 7: 31, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 32, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 33, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 34, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 35, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 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: fe, 56: pe, 57: ye, 58: _e, 59: Ee, 60: ge, 61: Re }, { 52: 54, 55: fe, 56: pe, 57: ye, 58: _e, 59: Ee, 60: ge, 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])],
124    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] },
125    parseError: function(i, r) {
126      if (r.recoverable)
127        this.trace(i);
128      else {
129        var a = new Error(i);
130        throw a.hash = r, a;
131      }
132    },
133    parse: function(i) {
134      var r = this, a = [0], n = [], p = [null], s = [], W = this.table, _ = "", Z = 0, me = 0, Ve = 2, Ie = 1, qe = s.slice.call(arguments, 1), g = Object.create(this.lexer), L = { yy: {} };
135      for (var re in this.yy)
136        Object.prototype.hasOwnProperty.call(this.yy, re) && (L.yy[re] = this.yy[re]);
137      g.setInput(i, L.yy), L.yy.lexer = g, L.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
138      var se = g.yylloc;
139      s.push(se);
140      var Oe = g.options && g.options.ranges;
141      typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
142      function Le() {
143        var v;
144        return v = n.pop() || g.lex() || Ie, typeof v != "number" && (v instanceof Array && (n = v, v = n.pop()), v = r.symbols_[v] || v), v;
145      }
146      for (var I, C, S, ae, Q = {}, ee, $, be, te; ; ) {
147        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]) {
148          var le = "";
149          te = [];
150          for (ee in W[C])
151            this.terminals_[ee] && ee > Ve && te.push("'" + this.terminals_[ee] + "'");
152          g.showPosition ? le = "Parse error on line " + (Z + 1) + `:
153` + g.showPosition() + `
154Expecting ` + 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, {
155            text: g.match,
156            token: this.terminals_[I] || I,
157            line: g.yylineno,
158            loc: se,
159            expected: te
160          });
161        }
162        if (S[0] instanceof Array && S.length > 1)
163          throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + I);
164        switch (S[0]) {
165          case 1:
166            a.push(I), p.push(g.yytext), s.push(g.yylloc), a.push(S[1]), I = null, me = g.yyleng, _ = g.yytext, Z = g.yylineno, se = g.yylloc;
167            break;
168          case 2:
169            if ($ = this.productions_[S[1]][1], Q.$ = p[p.length - $], Q._$ = {
170              first_line: s[s.length - ($ || 1)].first_line,
171              last_line: s[s.length - 1].last_line,
172              first_column: s[s.length - ($ || 1)].first_column,
173              last_column: s[s.length - 1].last_column
174            }, Oe && (Q._$.range = [
175              s[s.length - ($ || 1)].range[0],
176              s[s.length - 1].range[1]
177            ]), ae = this.performAction.apply(Q, [
178              _,
179              me,
180              Z,
181              L.yy,
182              S[1],
183              p,
184              s
185            ].concat(qe)), typeof ae < "u")
186              return ae;
187            $ && (a = a.slice(0, -1 * $ * 2), p = p.slice(0, -1 * $), s = s.slice(0, -1 * $)), a.push(this.productions_[S[1]][0]), p.push(Q.$), s.push(Q._$), be = W[a[a.length - 2]][a[a.length - 1]], a.push(be);
188            break;
189          case 3:
190            return !0;
191        }
192      }
193      return !0;
194    }
195  }, ve = function() {
196    var V = {
197      EOF: 1,
198      parseError: function(r, a) {
199        if (this.yy.parser)
200          this.yy.parser.parseError(r, a);
201        else
202          throw new Error(r);
203      },
204      // resets the lexer, sets new input
205      setInput: function(i, r) {
206        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 = {
207          first_line: 1,
208          first_column: 0,
209          last_line: 1,
210          last_column: 0
211        }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
212      },
213      // consumes and returns one char from the input
214      input: function() {
215        var i = this._input[0];
216        this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
217        var r = i.match(/(?:\r\n?|\n).*/g);
218        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;
219      },
220      // unshifts one char (or a string) into the input
221      unput: function(i) {
222        var r = i.length, a = i.split(/(?:\r\n?|\n)/g);
223        this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
224        var n = this.match.split(/(?:\r\n?|\n)/g);
225        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);
226        var p = this.yylloc.range;
227        return this.yylloc = {
228          first_line: this.yylloc.first_line,
229          last_line: this.yylineno + 1,
230          first_column: this.yylloc.first_column,
231          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
232        }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
233      },
234      // When called from action, caches matched text and appends it on next action
235      more: function() {
236        return this._more = !0, this;
237      },
238      // 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.
239      reject: function() {
240        if (this.options.backtrack_lexer)
241          this._backtrack = !0;
242        else
243          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).
244` + this.showPosition(), {
245            text: "",
246            token: null,
247            line: this.yylineno
248          });
249        return this;
250      },
251      // retain first n characters of the match
252      less: function(i) {
253        this.unput(this.match.slice(i));
254      },
255      // displays already matched input, i.e. for error messages
256      pastInput: function() {
257        var i = this.matched.substr(0, this.matched.length - this.match.length);
258        return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
259      },
260      // displays upcoming input, i.e. for error messages
261      upcomingInput: function() {
262        var i = this.match;
263        return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
264      },
265      // displays the character position where the lexing error occurred, i.e. for error messages
266      showPosition: function() {
267        var i = this.pastInput(), r = new Array(i.length + 1).join("-");
268        return i + this.upcomingInput() + `
269` + r + "^";
270      },
271      // test the lexed token: return FALSE when not a match, otherwise return token
272      test_match: function(i, r) {
273        var a, n, p;
274        if (this.options.backtrack_lexer && (p = {
275          yylineno: this.yylineno,
276          yylloc: {
277            first_line: this.yylloc.first_line,
278            last_line: this.last_line,
279            first_column: this.yylloc.first_column,
280            last_column: this.yylloc.last_column
281          },
282          yytext: this.yytext,
283          match: this.match,
284          matches: this.matches,
285          matched: this.matched,
286          yyleng: this.yyleng,
287          offset: this.offset,
288          _more: this._more,
289          _input: this._input,
290          yy: this.yy,
291          conditionStack: this.conditionStack.slice(0),
292          done: this.done
293        }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), n = i[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
294          first_line: this.yylloc.last_line,
295          last_line: this.yylineno + 1,
296          first_column: this.yylloc.last_column,
297          last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
298        }, 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)
299          return a;
300        if (this._backtrack) {
301          for (var s in p)
302            this[s] = p[s];
303          return !1;
304        }
305        return !1;
306      },
307      // return next match in input
308      next: function() {
309        if (this.done)
310          return this.EOF;
311        this._input || (this.done = !0);
312        var i, r, a, n;
313        this._more || (this.yytext = "", this.match = "");
314        for (var p = this._currentRules(), s = 0; s < p.length; s++)
315          if (a = this._input.match(this.rules[p[s]]), a && (!r || a[0].length > r[0].length)) {
316            if (r = a, n = s, this.options.backtrack_lexer) {
317              if (i = this.test_match(a, p[s]), i !== !1)
318                return i;
319              if (this._backtrack) {
320                r = !1;
321                continue;
322              } else
323                return !1;
324            } else if (!this.options.flex)
325              break;
326          }
327        return r ? (i = this.test_match(r, p[n]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
328` + this.showPosition(), {
329          text: "",
330          token: null,
331          line: this.yylineno
332        });
333      },
334      // return next match that has a token
335      lex: function() {
336        var r = this.next();
337        return r || this.lex();
338      },
339      // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
340      begin: function(r) {
341        this.conditionStack.push(r);
342      },
343      // pop the previously active lexer condition state off the condition stack
344      popState: function() {
345        var r = this.conditionStack.length - 1;
346        return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
347      },
348      // produce the lexer rule set which is active for the currently active lexer condition state
349      _currentRules: function() {
350        return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
351      },
352      // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
353      topState: function(r) {
354        return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
355      },
356      // alias for begin(condition)
357      pushState: function(r) {
358        this.begin(r);
359      },
360      // return the number of states currently on the stack
361      stateStackSize: function() {
362        return this.conditionStack.length;
363      },
364      options: { "case-insensitive": !0 },
365      performAction: function(r, a, n, p) {
366        switch (n) {
367          case 0:
368            return "title";
369          case 1:
370            return this.begin("acc_title"), 9;
371          case 2:
372            return this.popState(), "acc_title_value";
373          case 3:
374            return this.begin("acc_descr"), 11;
375          case 4:
376            return this.popState(), "acc_descr_value";
377          case 5:
378            this.begin("acc_descr_multiline");
379            break;
380          case 6:
381            this.popState();
382            break;
383          case 7:
384            return "acc_descr_multiline_value";
385          case 8:
386            return 5;
387          case 9:
388            break;
389          case 10:
390            break;
391          case 11:
392            break;
393          case 12:
394            return 8;
395          case 13:
396            return 6;
397          case 14:
398            return 19;
399          case 15:
400            return 30;
401          case 16:
402            return 22;
403          case 17:
404            return 21;
405          case 18:
406            return 24;
407          case 19:
408            return 26;
409          case 20:
410            return 28;
411          case 21:
412            return 31;
413          case 22:
414            return 32;
415          case 23:
416            return 33;
417          case 24:
418            return 34;
419          case 25:
420            return 35;
421          case 26:
422            return 36;
423          case 27:
424            return 37;
425          case 28:
426            return 38;
427          case 29:
428            return 39;
429          case 30:
430            return 40;
431          case 31:
432            return 41;
433          case 32:
434            return 42;
435          case 33:
436            return 43;
437          case 34:
438            return 44;
439          case 35:
440            return 55;
441          case 36:
442            return 56;
443          case 37:
444            return 57;
445          case 38:
446            return 58;
447          case 39:
448            return 59;
449          case 40:
450            return 60;
451          case 41:
452            return 61;
453          case 42:
454            return 47;
455          case 43:
456            return 49;
457          case 44:
458            return 51;
459          case 45:
460            return 54;
461          case 46:
462            return 53;
463          case 47:
464            this.begin("string");
465            break;
466          case 48:
467            this.popState();
468            break;
469          case 49:
470            return "qString";
471          case 50:
472            return a.yytext = a.yytext.trim(), 62;
473        }
474      },
475      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],
476      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 } }
477    };
478    return V;
479  }();
480  ie.lexer = ve;
481  function ne() {
482    this.yy = {};
483  }
484  return ne.prototype = ie, ie.Parser = ne, new ne();
485}();
486ce.parser = ce;
487const He = ce;
488let ue = [], b = {}, K = {}, q = {}, G = {};
489const We = {
490  REQUIREMENT: "Requirement",
491  FUNCTIONAL_REQUIREMENT: "Functional Requirement",
492  INTERFACE_REQUIREMENT: "Interface Requirement",
493  PERFORMANCE_REQUIREMENT: "Performance Requirement",
494  PHYSICAL_REQUIREMENT: "Physical Requirement",
495  DESIGN_CONSTRAINT: "Design Constraint"
496}, Ke = {
497  LOW_RISK: "Low",
498  MED_RISK: "Medium",
499  HIGH_RISK: "High"
500}, Ge = {
501  VERIFY_ANALYSIS: "Analysis",
502  VERIFY_DEMONSTRATION: "Demonstration",
503  VERIFY_INSPECTION: "Inspection",
504  VERIFY_TEST: "Test"
505}, je = {
506  CONTAINS: "contains",
507  COPIES: "copies",
508  DERIVES: "derives",
509  SATISFIES: "satisfies",
510  VERIFIES: "verifies",
511  REFINES: "refines",
512  TRACES: "traces"
513}, ze = (e, t) => (K[e] === void 0 && (K[e] = {
514  name: e,
515  type: t,
516  id: b.id,
517  text: b.text,
518  risk: b.risk,
519  verifyMethod: b.verifyMethod
520}), b = {}, K[e]), Xe = () => K, Je = (e) => {
521  b !== void 0 && (b.id = e);
522}, Ze = (e) => {
523  b !== void 0 && (b.text = e);
524}, et = (e) => {
525  b !== void 0 && (b.risk = e);
526}, tt = (e) => {
527  b !== void 0 && (b.verifyMethod = e);
528}, it = (e) => (G[e] === void 0 && (G[e] = {
529  name: e,
530  type: q.type,
531  docRef: q.docRef
532}, Ne.info("Added new requirement: ", e)), q = {}, G[e]), nt = () => G, rt = (e) => {
533  q !== void 0 && (q.type = e);
534}, st = (e) => {
535  q !== void 0 && (q.docRef = e);
536}, at = (e, t, l) => {
537  ue.push({
538    type: e,
539    src: t,
540    dst: l
541  });
542}, lt = () => ue, ot = () => {
543  ue = [], b = {}, K = {}, q = {}, G = {}, Pe();
544}, ct = {
545  RequirementType: We,
546  RiskLevel: Ke,
547  VerifyType: Ge,
548  Relationships: je,
549  getConfig: () => Te().req,
550  addRequirement: ze,
551  getRequirements: Xe,
552  setNewReqId: Je,
553  setNewReqText: Ze,
554  setNewReqRisk: et,
555  setNewReqVerifyMethod: tt,
556  setAccTitle: Ce,
557  getAccTitle: Fe,
558  setAccDescription: Me,
559  getAccDescription: De,
560  addElement: it,
561  getElements: nt,
562  setNewElementType: rt,
563  setNewElementDocRef: st,
564  addRelationship: at,
565  getRelationships: lt,
566  clear: ot
567}, ht = (e) => `
568
569  marker {
570    fill: ${e.relationColor};
571    stroke: ${e.relationColor};
572  }
573
574  marker.cross {
575    stroke: ${e.lineColor};
576  }
577
578  svg {
579    font-family: ${e.fontFamily};
580    font-size: ${e.fontSize};
581  }
582
583  .reqBox {
584    fill: ${e.requirementBackground};
585    fill-opacity: 1.0;
586    stroke: ${e.requirementBorderColor};
587    stroke-width: ${e.requirementBorderSize};
588  }
589  
590  .reqTitle, .reqLabel{
591    fill:  ${e.requirementTextColor};
592  }
593  .reqLabelBox {
594    fill: ${e.relationLabelBackground};
595    fill-opacity: 1.0;
596  }
597
598  .req-title-line {
599    stroke: ${e.requirementBorderColor};
600    stroke-width: ${e.requirementBorderSize};
601  }
602  .relationshipLine {
603    stroke: ${e.relationColor};
604    stroke-width: 1;
605  }
606  .relationshipLabel {
607    fill: ${e.relationLabelColor};
608  }
609
610`, ut = ht, he = {
611  CONTAINS: "contains",
612  ARROW: "arrow"
613}, dt = (e, t) => {
614  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");
615  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(
616    "d",
617    `M0,0
618      L${t.line_height},${t.line_height / 2}
619      M${t.line_height},${t.line_height / 2}
620      L0,${t.line_height}`
621  ).attr("stroke-width", 1);
622}, xe = {
623  ReqMarkers: he,
624  insertLineEndings: dt
625};
626let y = {}, Se = 0;
627const 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"), we = (e, t, l) => {
628  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;
629  l.forEach((E) => {
630    d == 0 ? u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(E) : u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(E), d++;
631  });
632  let f = 1.5 * y.rect_padding, h = d * y.line_height * 0.75, o = f + h;
633  return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", o).attr("y2", o), {
634    titleNode: u,
635    y: o
636  };
637}, $e = (e, t, l, c) => {
638  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;
639  const f = 30;
640  let h = [];
641  return l.forEach((o) => {
642    let E = o.length;
643    for (; E > f && d < 3; ) {
644      let R = o.substring(0, f);
645      o = o.substring(f, o.length), E = o.length, h[h.length] = R, d++;
646    }
647    if (d == 3) {
648      let R = h[h.length - 1];
649      h[h.length - 1] = R.substring(0, R.length - 4) + "...";
650    } else
651      h[h.length] = o;
652    d = 0;
653  }), h.forEach((o) => {
654    u.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(o);
655  }), u;
656}, ft = (e, t, l, c) => {
657  const u = t.node().getTotalLength(), d = t.node().getPointAtLength(u * 0.5), f = "rel" + Se;
658  Se++;
659  const o = e.append("text").attr("class", "req relationshipLabel").attr("id", f).attr("x", d.x).attr("y", d.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
660  e.insert("rect", "#" + f).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%");
661}, pt = function(e, t, l, c, u) {
662  const d = l.edge(H(t.src), H(t.dst)), f = Qe().x(function(o) {
663    return o.x;
664  }).y(function(o) {
665    return o.y;
666  }), h = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", f(d.points)).attr("fill", "none");
667  t.type == u.db.Relationships.CONTAINS ? h.attr(
668    "marker-start",
669    "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)"
670  ) : (h.attr("stroke-dasharray", "10,7"), h.attr(
671    "marker-end",
672    "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + xe.ReqMarkers.ARROW + "_line_ending)"
673  )), ft(e, h, y, `<<${t.type}>>`);
674}, yt = (e, t, l) => {
675  Object.keys(e).forEach((c) => {
676    let u = e[c];
677    c = H(c), Ne.info("Added new requirement: ", c);
678    const d = l.append("g").attr("id", c), f = "req-" + c, h = Ae(d, f);
679    let o = we(d, c + "_title", [
680      `<<${u.type}>>`,
681      `${u.name}`
682    ]);
683    $e(
684      d,
685      c + "_body",
686      [
687        `Id: ${u.id}`,
688        `Text: ${u.text}`,
689        `Risk: ${u.risk}`,
690        `Verification: ${u.verifyMethod}`
691      ],
692      o.y
693    );
694    const E = h.node().getBBox();
695    t.setNode(c, {
696      width: E.width,
697      height: E.height,
698      shape: "rect",
699      id: c
700    });
701  });
702}, _t = (e, t, l) => {
703  Object.keys(e).forEach((c) => {
704    let u = e[c];
705    const d = H(c), f = l.append("g").attr("id", d), h = "element-" + d, o = Ae(f, h);
706    let E = we(f, h + "_title", ["<<Element>>", `${c}`]);
707    $e(
708      f,
709      h + "_body",
710      [`Type: ${u.type || "Not Specified"}`, `Doc Ref: ${u.docRef || "None"}`],
711      E.y
712    );
713    const R = o.node().getBBox();
714    t.setNode(d, {
715      width: R.width,
716      height: R.height,
717      shape: "rect",
718      id: d
719    });
720  });
721}, Et = (e, t) => (e.forEach(function(l) {
722  let c = H(l.src), u = H(l.dst);
723  t.setEdge(c, u, { relationship: l });
724}), e), gt = function(e, t) {
725  t.nodes().forEach(function(l) {
726    l !== void 0 && t.node(l) !== void 0 && (e.select("#" + l), e.select("#" + l).attr(
727      "transform",
728      "translate(" + (t.node(l).x - t.node(l).width / 2) + "," + (t.node(l).y - t.node(l).height / 2) + " )"
729    ));
730  });
731}, H = (e) => e.replace(/\s/g, "").replace(/\./g, "_"), Rt = (e, t, l, c) => {
732  y = Te().requirement;
733  const u = y.securityLevel;
734  let d;
735  u === "sandbox" && (d = oe("#i" + t));
736  const h = (u === "sandbox" ? oe(d.nodes()[0].contentDocument.body) : oe("body")).select(`[id='${t}']`);
737  xe.insertLineEndings(h, y);
738  const o = new Ue({
739    multigraph: !1,
740    compound: !1,
741    directed: !0
742  }).setGraph({
743    rankdir: y.layoutDirection,
744    marginx: 20,
745    marginy: 20,
746    nodesep: 100,
747    edgesep: 100,
748    ranksep: 100
749  }).setDefaultEdgeLabel(function() {
750    return {};
751  });
752  let E = c.db.getRequirements(), R = c.db.getElements(), A = c.db.getRelationships();
753  yt(E, o, h), _t(R, o, h), Et(A, o), Be(o), gt(h, o), A.forEach(function(x) {
754    pt(h, x, o, t, c);
755  });
756  const T = y.rect_padding, N = h.node().getBBox(), w = N.width + T * 2, k = N.height + T * 2;
757  Ye(h, k, w, y.useMaxWidth), h.attr("viewBox", `${N.x - T} ${N.y - T} ${w} ${k}`);
758}, mt = {
759  draw: Rt
760}, Nt = {
761  parser: He,
762  db: ct,
763  renderer: mt,
764  styles: ut
765};
766export {
767  Nt as diagram
768};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.