@digipair/skill-web-chatbot 0.3.0

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 (100) hide show
  1. package/SAP-icons.cjs.js +2489 -0
  2. package/SAP-icons.cjs2.js +2489 -0
  3. package/SAP-icons.esm.js +2482 -0
  4. package/SAP-icons.esm2.js +2482 -0
  5. package/arc-da8fd8d8.cjs.js +88 -0
  6. package/arc-da8fd8d8.esm.js +86 -0
  7. package/array-2ff2c7a6.cjs.js +7 -0
  8. package/array-2ff2c7a6.esm.js +5 -0
  9. package/c4Diagram-1bdb45a8.cjs.js +4613 -0
  10. package/c4Diagram-1bdb45a8.esm.js +4611 -0
  11. package/classDiagram-185c1a10.cjs.js +96 -0
  12. package/classDiagram-185c1a10.esm.js +94 -0
  13. package/classDiagram-v2-6dc3b9c3.cjs.js +403 -0
  14. package/classDiagram-v2-6dc3b9c3.esm.js +401 -0
  15. package/constant-2fe7eae5.cjs.js +58 -0
  16. package/constant-2fe7eae5.esm.js +55 -0
  17. package/createText-94e3ebbf.cjs.js +2775 -0
  18. package/createText-94e3ebbf.esm.js +2773 -0
  19. package/debug.html +18 -0
  20. package/edges-558884ee.cjs.js +1450 -0
  21. package/edges-558884ee.esm.js +1436 -0
  22. package/erDiagram-97139f44.cjs.js +1949 -0
  23. package/erDiagram-97139f44.esm.js +1947 -0
  24. package/flowDb-a4faf166.cjs.js +6918 -0
  25. package/flowDb-a4faf166.esm.js +6914 -0
  26. package/flowDiagram-ccbbb58d.cjs.js +999 -0
  27. package/flowDiagram-ccbbb58d.esm.js +997 -0
  28. package/flowDiagram-v2-79ccd6da.cjs.js +29 -0
  29. package/flowDiagram-v2-79ccd6da.esm.js +27 -0
  30. package/flowchart-elk-definition-7863a61f.cjs.js +48577 -0
  31. package/flowchart-elk-definition-7863a61f.esm.js +48575 -0
  32. package/ganttDiagram-3eff0dd8.cjs.js +3855 -0
  33. package/ganttDiagram-3eff0dd8.esm.js +3853 -0
  34. package/gitGraphDiagram-c3fe571f.cjs.js +3863 -0
  35. package/gitGraphDiagram-c3fe571f.esm.js +3861 -0
  36. package/index-d0b453e2.cjs.js +609 -0
  37. package/index-d0b453e2.esm.js +607 -0
  38. package/index.cjs.d.ts +1 -0
  39. package/index.cjs.js +17 -0
  40. package/index.cjs2.js +43619 -0
  41. package/index.d.ts +1 -0
  42. package/index.esm.js +1 -0
  43. package/index.esm2.js +43493 -0
  44. package/infoDiagram-9c10eab1.cjs.js +467 -0
  45. package/infoDiagram-9c10eab1.esm.js +465 -0
  46. package/init-f9637058.cjs.js +17 -0
  47. package/init-f9637058.esm.js +15 -0
  48. package/journeyDiagram-b6904cec.cjs.js +1292 -0
  49. package/journeyDiagram-b6904cec.esm.js +1290 -0
  50. package/layout-c5a37d74.cjs.js +2808 -0
  51. package/layout-c5a37d74.esm.js +2795 -0
  52. package/libs/engine/src/index.d.ts +2 -0
  53. package/libs/engine/src/lib/engine.d.ts +27 -0
  54. package/libs/engine/src/lib/pins-settings.interface.d.ts +20 -0
  55. package/libs/skill-web-chatbot/src/index.d.ts +3 -0
  56. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +23 -0
  57. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  58. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  59. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  60. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +32 -0
  61. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  62. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +39 -0
  63. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +9 -0
  64. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +5 -0
  65. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  66. package/line-ce5d1152.cjs.js +34 -0
  67. package/line-ce5d1152.esm.js +32 -0
  68. package/linear-db016d0c.cjs.js +485 -0
  69. package/linear-db016d0c.esm.js +479 -0
  70. package/mindmap-definition-a9d0f378.cjs.js +20225 -0
  71. package/mindmap-definition-a9d0f378.esm.js +20223 -0
  72. package/ordinal-5695958c.cjs.js +331 -0
  73. package/ordinal-5695958c.esm.js +329 -0
  74. package/package.json +8 -0
  75. package/pieDiagram-fd367f1f.cjs.js +1157 -0
  76. package/pieDiagram-fd367f1f.esm.js +1155 -0
  77. package/quadrantDiagram-1763608a.cjs.js +2633 -0
  78. package/quadrantDiagram-1763608a.esm.js +2631 -0
  79. package/requirementDiagram-779d93b3.cjs.js +2451 -0
  80. package/requirementDiagram-779d93b3.esm.js +2449 -0
  81. package/sankeyDiagram-86a66bae.cjs.js +1850 -0
  82. package/sankeyDiagram-86a66bae.esm.js +1848 -0
  83. package/sequenceDiagram-169f11ec.cjs.js +4805 -0
  84. package/sequenceDiagram-169f11ec.esm.js +4803 -0
  85. package/stateDiagram-6f4bb19d.cjs.js +282 -0
  86. package/stateDiagram-6f4bb19d.esm.js +280 -0
  87. package/stateDiagram-v2-d72c79bd.cjs.js +377 -0
  88. package/stateDiagram-v2-d72c79bd.esm.js +375 -0
  89. package/styles-3814544c.cjs.js +534 -0
  90. package/styles-3814544c.esm.js +524 -0
  91. package/styles-3fb7b9cf.cjs.js +2377 -0
  92. package/styles-3fb7b9cf.esm.js +2368 -0
  93. package/styles-659d7242.cjs.js +3919 -0
  94. package/styles-659d7242.esm.js +3915 -0
  95. package/svgDraw-af99a425.cjs.js +144 -0
  96. package/svgDraw-af99a425.esm.js +141 -0
  97. package/svgDrawCommon-ebe6c236.cjs.js +70 -0
  98. package/svgDrawCommon-ebe6c236.esm.js +62 -0
  99. package/timeline-definition-65183566.cjs.js +1394 -0
  100. package/timeline-definition-65183566.esm.js +1392 -0
@@ -0,0 +1,2449 @@
1
+ import { U as Ut, L as La, A as Aa, E as Ea, M as Ma, d as de$1, S, F as Fa, a as At, Y as Yg, B as Bn } from './index.esm2.js';
2
+ import { A, z as zs } from './layout-c5a37d74.esm.js';
3
+ import { S as S$1 } from './line-ce5d1152.esm.js';
4
+ import './array-2ff2c7a6.esm.js';
5
+ import './constant-2fe7eae5.esm.js';
6
+
7
+ function _instanceof(left, right) {
8
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
9
+ return !!right[Symbol.hasInstance](left);
10
+ } else {
11
+ return left instanceof right;
12
+ }
13
+ }
14
+ function _type_of(obj) {
15
+ "@swc/helpers - typeof";
16
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
17
+ }
18
+ var he = function() {
19
+ var e = function e(q, r, s, l) {
20
+ for(s = s || {}, l = q.length; l--; s[q[l]] = r);
21
+ return s;
22
+ }, t = [
23
+ 1,
24
+ 3
25
+ ], a = [
26
+ 1,
27
+ 5
28
+ ], o = [
29
+ 1,
30
+ 6
31
+ ], d = [
32
+ 1,
33
+ 7
34
+ ], u = [
35
+ 1,
36
+ 8
37
+ ], p = [
38
+ 5,
39
+ 6,
40
+ 8,
41
+ 14,
42
+ 16,
43
+ 18,
44
+ 19,
45
+ 40,
46
+ 41,
47
+ 42,
48
+ 43,
49
+ 44,
50
+ 45,
51
+ 53,
52
+ 71,
53
+ 72
54
+ ], h = [
55
+ 1,
56
+ 22
57
+ ], c = [
58
+ 2,
59
+ 13
60
+ ], g = [
61
+ 1,
62
+ 26
63
+ ], R = [
64
+ 1,
65
+ 27
66
+ ], x = [
67
+ 1,
68
+ 28
69
+ ], S = [
70
+ 1,
71
+ 29
72
+ ], T = [
73
+ 1,
74
+ 30
75
+ ], v = [
76
+ 1,
77
+ 31
78
+ ], A = [
79
+ 1,
80
+ 24
81
+ ], N = [
82
+ 1,
83
+ 32
84
+ ], w = [
85
+ 1,
86
+ 33
87
+ ], pe = [
88
+ 1,
89
+ 36
90
+ ], F = [
91
+ 71,
92
+ 72
93
+ ], fe = [
94
+ 5,
95
+ 8,
96
+ 14,
97
+ 16,
98
+ 18,
99
+ 19,
100
+ 40,
101
+ 41,
102
+ 42,
103
+ 43,
104
+ 44,
105
+ 45,
106
+ 53,
107
+ 60,
108
+ 62,
109
+ 71,
110
+ 72
111
+ ], _e = [
112
+ 1,
113
+ 56
114
+ ], ye = [
115
+ 1,
116
+ 57
117
+ ], ge = [
118
+ 1,
119
+ 58
120
+ ], Ee = [
121
+ 1,
122
+ 59
123
+ ], Re = [
124
+ 1,
125
+ 60
126
+ ], me = [
127
+ 1,
128
+ 61
129
+ ], Ie = [
130
+ 1,
131
+ 62
132
+ ], L = [
133
+ 62,
134
+ 63
135
+ ], M = [
136
+ 1,
137
+ 74
138
+ ], P = [
139
+ 1,
140
+ 70
141
+ ], Y = [
142
+ 1,
143
+ 71
144
+ ], U = [
145
+ 1,
146
+ 72
147
+ ], B = [
148
+ 1,
149
+ 73
150
+ ], Q = [
151
+ 1,
152
+ 75
153
+ ], z = [
154
+ 1,
155
+ 79
156
+ ], X = [
157
+ 1,
158
+ 80
159
+ ], J = [
160
+ 1,
161
+ 77
162
+ ], Z = [
163
+ 1,
164
+ 78
165
+ ], m = [
166
+ 5,
167
+ 8,
168
+ 14,
169
+ 16,
170
+ 18,
171
+ 19,
172
+ 40,
173
+ 41,
174
+ 42,
175
+ 43,
176
+ 44,
177
+ 45,
178
+ 53,
179
+ 71,
180
+ 72
181
+ ], re = {
182
+ trace: function trace() {},
183
+ yy: {},
184
+ symbols_: {
185
+ error: 2,
186
+ start: 3,
187
+ directive: 4,
188
+ NEWLINE: 5,
189
+ RD: 6,
190
+ diagram: 7,
191
+ EOF: 8,
192
+ openDirective: 9,
193
+ typeDirective: 10,
194
+ closeDirective: 11,
195
+ ":": 12,
196
+ argDirective: 13,
197
+ acc_title: 14,
198
+ acc_title_value: 15,
199
+ acc_descr: 16,
200
+ acc_descr_value: 17,
201
+ acc_descr_multiline_value: 18,
202
+ open_directive: 19,
203
+ type_directive: 20,
204
+ arg_directive: 21,
205
+ close_directive: 22,
206
+ requirementDef: 23,
207
+ elementDef: 24,
208
+ relationshipDef: 25,
209
+ requirementType: 26,
210
+ requirementName: 27,
211
+ STRUCT_START: 28,
212
+ requirementBody: 29,
213
+ ID: 30,
214
+ COLONSEP: 31,
215
+ id: 32,
216
+ TEXT: 33,
217
+ text: 34,
218
+ RISK: 35,
219
+ riskLevel: 36,
220
+ VERIFYMTHD: 37,
221
+ verifyType: 38,
222
+ STRUCT_STOP: 39,
223
+ REQUIREMENT: 40,
224
+ FUNCTIONAL_REQUIREMENT: 41,
225
+ INTERFACE_REQUIREMENT: 42,
226
+ PERFORMANCE_REQUIREMENT: 43,
227
+ PHYSICAL_REQUIREMENT: 44,
228
+ DESIGN_CONSTRAINT: 45,
229
+ LOW_RISK: 46,
230
+ MED_RISK: 47,
231
+ HIGH_RISK: 48,
232
+ VERIFY_ANALYSIS: 49,
233
+ VERIFY_DEMONSTRATION: 50,
234
+ VERIFY_INSPECTION: 51,
235
+ VERIFY_TEST: 52,
236
+ ELEMENT: 53,
237
+ elementName: 54,
238
+ elementBody: 55,
239
+ TYPE: 56,
240
+ type: 57,
241
+ DOCREF: 58,
242
+ ref: 59,
243
+ END_ARROW_L: 60,
244
+ relationship: 61,
245
+ LINE: 62,
246
+ END_ARROW_R: 63,
247
+ CONTAINS: 64,
248
+ COPIES: 65,
249
+ DERIVES: 66,
250
+ SATISFIES: 67,
251
+ VERIFIES: 68,
252
+ REFINES: 69,
253
+ TRACES: 70,
254
+ unqString: 71,
255
+ qString: 72,
256
+ $accept: 0,
257
+ $end: 1
258
+ },
259
+ terminals_: {
260
+ 2: "error",
261
+ 5: "NEWLINE",
262
+ 6: "RD",
263
+ 8: "EOF",
264
+ 12: ":",
265
+ 14: "acc_title",
266
+ 15: "acc_title_value",
267
+ 16: "acc_descr",
268
+ 17: "acc_descr_value",
269
+ 18: "acc_descr_multiline_value",
270
+ 19: "open_directive",
271
+ 20: "type_directive",
272
+ 21: "arg_directive",
273
+ 22: "close_directive",
274
+ 28: "STRUCT_START",
275
+ 30: "ID",
276
+ 31: "COLONSEP",
277
+ 33: "TEXT",
278
+ 35: "RISK",
279
+ 37: "VERIFYMTHD",
280
+ 39: "STRUCT_STOP",
281
+ 40: "REQUIREMENT",
282
+ 41: "FUNCTIONAL_REQUIREMENT",
283
+ 42: "INTERFACE_REQUIREMENT",
284
+ 43: "PERFORMANCE_REQUIREMENT",
285
+ 44: "PHYSICAL_REQUIREMENT",
286
+ 45: "DESIGN_CONSTRAINT",
287
+ 46: "LOW_RISK",
288
+ 47: "MED_RISK",
289
+ 48: "HIGH_RISK",
290
+ 49: "VERIFY_ANALYSIS",
291
+ 50: "VERIFY_DEMONSTRATION",
292
+ 51: "VERIFY_INSPECTION",
293
+ 52: "VERIFY_TEST",
294
+ 53: "ELEMENT",
295
+ 56: "TYPE",
296
+ 58: "DOCREF",
297
+ 60: "END_ARROW_L",
298
+ 62: "LINE",
299
+ 63: "END_ARROW_R",
300
+ 64: "CONTAINS",
301
+ 65: "COPIES",
302
+ 66: "DERIVES",
303
+ 67: "SATISFIES",
304
+ 68: "VERIFIES",
305
+ 69: "REFINES",
306
+ 70: "TRACES",
307
+ 71: "unqString",
308
+ 72: "qString"
309
+ },
310
+ productions_: [
311
+ 0,
312
+ [
313
+ 3,
314
+ 3
315
+ ],
316
+ [
317
+ 3,
318
+ 2
319
+ ],
320
+ [
321
+ 3,
322
+ 4
323
+ ],
324
+ [
325
+ 4,
326
+ 3
327
+ ],
328
+ [
329
+ 4,
330
+ 5
331
+ ],
332
+ [
333
+ 4,
334
+ 2
335
+ ],
336
+ [
337
+ 4,
338
+ 2
339
+ ],
340
+ [
341
+ 4,
342
+ 1
343
+ ],
344
+ [
345
+ 9,
346
+ 1
347
+ ],
348
+ [
349
+ 10,
350
+ 1
351
+ ],
352
+ [
353
+ 13,
354
+ 1
355
+ ],
356
+ [
357
+ 11,
358
+ 1
359
+ ],
360
+ [
361
+ 7,
362
+ 0
363
+ ],
364
+ [
365
+ 7,
366
+ 2
367
+ ],
368
+ [
369
+ 7,
370
+ 2
371
+ ],
372
+ [
373
+ 7,
374
+ 2
375
+ ],
376
+ [
377
+ 7,
378
+ 2
379
+ ],
380
+ [
381
+ 7,
382
+ 2
383
+ ],
384
+ [
385
+ 23,
386
+ 5
387
+ ],
388
+ [
389
+ 29,
390
+ 5
391
+ ],
392
+ [
393
+ 29,
394
+ 5
395
+ ],
396
+ [
397
+ 29,
398
+ 5
399
+ ],
400
+ [
401
+ 29,
402
+ 5
403
+ ],
404
+ [
405
+ 29,
406
+ 2
407
+ ],
408
+ [
409
+ 29,
410
+ 1
411
+ ],
412
+ [
413
+ 26,
414
+ 1
415
+ ],
416
+ [
417
+ 26,
418
+ 1
419
+ ],
420
+ [
421
+ 26,
422
+ 1
423
+ ],
424
+ [
425
+ 26,
426
+ 1
427
+ ],
428
+ [
429
+ 26,
430
+ 1
431
+ ],
432
+ [
433
+ 26,
434
+ 1
435
+ ],
436
+ [
437
+ 36,
438
+ 1
439
+ ],
440
+ [
441
+ 36,
442
+ 1
443
+ ],
444
+ [
445
+ 36,
446
+ 1
447
+ ],
448
+ [
449
+ 38,
450
+ 1
451
+ ],
452
+ [
453
+ 38,
454
+ 1
455
+ ],
456
+ [
457
+ 38,
458
+ 1
459
+ ],
460
+ [
461
+ 38,
462
+ 1
463
+ ],
464
+ [
465
+ 24,
466
+ 5
467
+ ],
468
+ [
469
+ 55,
470
+ 5
471
+ ],
472
+ [
473
+ 55,
474
+ 5
475
+ ],
476
+ [
477
+ 55,
478
+ 2
479
+ ],
480
+ [
481
+ 55,
482
+ 1
483
+ ],
484
+ [
485
+ 25,
486
+ 5
487
+ ],
488
+ [
489
+ 25,
490
+ 5
491
+ ],
492
+ [
493
+ 61,
494
+ 1
495
+ ],
496
+ [
497
+ 61,
498
+ 1
499
+ ],
500
+ [
501
+ 61,
502
+ 1
503
+ ],
504
+ [
505
+ 61,
506
+ 1
507
+ ],
508
+ [
509
+ 61,
510
+ 1
511
+ ],
512
+ [
513
+ 61,
514
+ 1
515
+ ],
516
+ [
517
+ 61,
518
+ 1
519
+ ],
520
+ [
521
+ 27,
522
+ 1
523
+ ],
524
+ [
525
+ 27,
526
+ 1
527
+ ],
528
+ [
529
+ 32,
530
+ 1
531
+ ],
532
+ [
533
+ 32,
534
+ 1
535
+ ],
536
+ [
537
+ 34,
538
+ 1
539
+ ],
540
+ [
541
+ 34,
542
+ 1
543
+ ],
544
+ [
545
+ 54,
546
+ 1
547
+ ],
548
+ [
549
+ 54,
550
+ 1
551
+ ],
552
+ [
553
+ 57,
554
+ 1
555
+ ],
556
+ [
557
+ 57,
558
+ 1
559
+ ],
560
+ [
561
+ 59,
562
+ 1
563
+ ],
564
+ [
565
+ 59,
566
+ 1
567
+ ]
568
+ ],
569
+ performAction: function performAction(r, s, l, i, _, n, K) {
570
+ var f = n.length - 1;
571
+ switch(_){
572
+ case 6:
573
+ this.$ = n[f].trim(), i.setAccTitle(this.$);
574
+ break;
575
+ case 7:
576
+ case 8:
577
+ this.$ = n[f].trim(), i.setAccDescription(this.$);
578
+ break;
579
+ case 9:
580
+ i.parseDirective("%%{", "open_directive");
581
+ break;
582
+ case 10:
583
+ i.parseDirective(n[f], "type_directive");
584
+ break;
585
+ case 11:
586
+ n[f] = n[f].trim().replace(/'/g, '"'), i.parseDirective(n[f], "arg_directive");
587
+ break;
588
+ case 12:
589
+ i.parseDirective("}%%", "close_directive", "pie");
590
+ break;
591
+ case 13:
592
+ this.$ = [];
593
+ break;
594
+ case 19:
595
+ i.addRequirement(n[f - 3], n[f - 4]);
596
+ break;
597
+ case 20:
598
+ i.setNewReqId(n[f - 2]);
599
+ break;
600
+ case 21:
601
+ i.setNewReqText(n[f - 2]);
602
+ break;
603
+ case 22:
604
+ i.setNewReqRisk(n[f - 2]);
605
+ break;
606
+ case 23:
607
+ i.setNewReqVerifyMethod(n[f - 2]);
608
+ break;
609
+ case 26:
610
+ this.$ = i.RequirementType.REQUIREMENT;
611
+ break;
612
+ case 27:
613
+ this.$ = i.RequirementType.FUNCTIONAL_REQUIREMENT;
614
+ break;
615
+ case 28:
616
+ this.$ = i.RequirementType.INTERFACE_REQUIREMENT;
617
+ break;
618
+ case 29:
619
+ this.$ = i.RequirementType.PERFORMANCE_REQUIREMENT;
620
+ break;
621
+ case 30:
622
+ this.$ = i.RequirementType.PHYSICAL_REQUIREMENT;
623
+ break;
624
+ case 31:
625
+ this.$ = i.RequirementType.DESIGN_CONSTRAINT;
626
+ break;
627
+ case 32:
628
+ this.$ = i.RiskLevel.LOW_RISK;
629
+ break;
630
+ case 33:
631
+ this.$ = i.RiskLevel.MED_RISK;
632
+ break;
633
+ case 34:
634
+ this.$ = i.RiskLevel.HIGH_RISK;
635
+ break;
636
+ case 35:
637
+ this.$ = i.VerifyType.VERIFY_ANALYSIS;
638
+ break;
639
+ case 36:
640
+ this.$ = i.VerifyType.VERIFY_DEMONSTRATION;
641
+ break;
642
+ case 37:
643
+ this.$ = i.VerifyType.VERIFY_INSPECTION;
644
+ break;
645
+ case 38:
646
+ this.$ = i.VerifyType.VERIFY_TEST;
647
+ break;
648
+ case 39:
649
+ i.addElement(n[f - 3]);
650
+ break;
651
+ case 40:
652
+ i.setNewElementType(n[f - 2]);
653
+ break;
654
+ case 41:
655
+ i.setNewElementDocRef(n[f - 2]);
656
+ break;
657
+ case 44:
658
+ i.addRelationship(n[f - 2], n[f], n[f - 4]);
659
+ break;
660
+ case 45:
661
+ i.addRelationship(n[f - 2], n[f - 4], n[f]);
662
+ break;
663
+ case 46:
664
+ this.$ = i.Relationships.CONTAINS;
665
+ break;
666
+ case 47:
667
+ this.$ = i.Relationships.COPIES;
668
+ break;
669
+ case 48:
670
+ this.$ = i.Relationships.DERIVES;
671
+ break;
672
+ case 49:
673
+ this.$ = i.Relationships.SATISFIES;
674
+ break;
675
+ case 50:
676
+ this.$ = i.Relationships.VERIFIES;
677
+ break;
678
+ case 51:
679
+ this.$ = i.Relationships.REFINES;
680
+ break;
681
+ case 52:
682
+ this.$ = i.Relationships.TRACES;
683
+ break;
684
+ }
685
+ },
686
+ table: [
687
+ {
688
+ 3: 1,
689
+ 4: 2,
690
+ 6: t,
691
+ 9: 4,
692
+ 14: a,
693
+ 16: o,
694
+ 18: d,
695
+ 19: u
696
+ },
697
+ {
698
+ 1: [
699
+ 3
700
+ ]
701
+ },
702
+ {
703
+ 3: 10,
704
+ 4: 2,
705
+ 5: [
706
+ 1,
707
+ 9
708
+ ],
709
+ 6: t,
710
+ 9: 4,
711
+ 14: a,
712
+ 16: o,
713
+ 18: d,
714
+ 19: u
715
+ },
716
+ {
717
+ 5: [
718
+ 1,
719
+ 11
720
+ ]
721
+ },
722
+ {
723
+ 10: 12,
724
+ 20: [
725
+ 1,
726
+ 13
727
+ ]
728
+ },
729
+ {
730
+ 15: [
731
+ 1,
732
+ 14
733
+ ]
734
+ },
735
+ {
736
+ 17: [
737
+ 1,
738
+ 15
739
+ ]
740
+ },
741
+ e(p, [
742
+ 2,
743
+ 8
744
+ ]),
745
+ {
746
+ 20: [
747
+ 2,
748
+ 9
749
+ ]
750
+ },
751
+ {
752
+ 3: 16,
753
+ 4: 2,
754
+ 6: t,
755
+ 9: 4,
756
+ 14: a,
757
+ 16: o,
758
+ 18: d,
759
+ 19: u
760
+ },
761
+ {
762
+ 1: [
763
+ 2,
764
+ 2
765
+ ]
766
+ },
767
+ {
768
+ 4: 21,
769
+ 5: h,
770
+ 7: 17,
771
+ 8: c,
772
+ 9: 4,
773
+ 14: a,
774
+ 16: o,
775
+ 18: d,
776
+ 19: u,
777
+ 23: 18,
778
+ 24: 19,
779
+ 25: 20,
780
+ 26: 23,
781
+ 32: 25,
782
+ 40: g,
783
+ 41: R,
784
+ 42: x,
785
+ 43: S,
786
+ 44: T,
787
+ 45: v,
788
+ 53: A,
789
+ 71: N,
790
+ 72: w
791
+ },
792
+ {
793
+ 11: 34,
794
+ 12: [
795
+ 1,
796
+ 35
797
+ ],
798
+ 22: pe
799
+ },
800
+ e([
801
+ 12,
802
+ 22
803
+ ], [
804
+ 2,
805
+ 10
806
+ ]),
807
+ e(p, [
808
+ 2,
809
+ 6
810
+ ]),
811
+ e(p, [
812
+ 2,
813
+ 7
814
+ ]),
815
+ {
816
+ 1: [
817
+ 2,
818
+ 1
819
+ ]
820
+ },
821
+ {
822
+ 8: [
823
+ 1,
824
+ 37
825
+ ]
826
+ },
827
+ {
828
+ 4: 21,
829
+ 5: h,
830
+ 7: 38,
831
+ 8: c,
832
+ 9: 4,
833
+ 14: a,
834
+ 16: o,
835
+ 18: d,
836
+ 19: u,
837
+ 23: 18,
838
+ 24: 19,
839
+ 25: 20,
840
+ 26: 23,
841
+ 32: 25,
842
+ 40: g,
843
+ 41: R,
844
+ 42: x,
845
+ 43: S,
846
+ 44: T,
847
+ 45: v,
848
+ 53: A,
849
+ 71: N,
850
+ 72: w
851
+ },
852
+ {
853
+ 4: 21,
854
+ 5: h,
855
+ 7: 39,
856
+ 8: c,
857
+ 9: 4,
858
+ 14: a,
859
+ 16: o,
860
+ 18: d,
861
+ 19: u,
862
+ 23: 18,
863
+ 24: 19,
864
+ 25: 20,
865
+ 26: 23,
866
+ 32: 25,
867
+ 40: g,
868
+ 41: R,
869
+ 42: x,
870
+ 43: S,
871
+ 44: T,
872
+ 45: v,
873
+ 53: A,
874
+ 71: N,
875
+ 72: w
876
+ },
877
+ {
878
+ 4: 21,
879
+ 5: h,
880
+ 7: 40,
881
+ 8: c,
882
+ 9: 4,
883
+ 14: a,
884
+ 16: o,
885
+ 18: d,
886
+ 19: u,
887
+ 23: 18,
888
+ 24: 19,
889
+ 25: 20,
890
+ 26: 23,
891
+ 32: 25,
892
+ 40: g,
893
+ 41: R,
894
+ 42: x,
895
+ 43: S,
896
+ 44: T,
897
+ 45: v,
898
+ 53: A,
899
+ 71: N,
900
+ 72: w
901
+ },
902
+ {
903
+ 4: 21,
904
+ 5: h,
905
+ 7: 41,
906
+ 8: c,
907
+ 9: 4,
908
+ 14: a,
909
+ 16: o,
910
+ 18: d,
911
+ 19: u,
912
+ 23: 18,
913
+ 24: 19,
914
+ 25: 20,
915
+ 26: 23,
916
+ 32: 25,
917
+ 40: g,
918
+ 41: R,
919
+ 42: x,
920
+ 43: S,
921
+ 44: T,
922
+ 45: v,
923
+ 53: A,
924
+ 71: N,
925
+ 72: w
926
+ },
927
+ {
928
+ 4: 21,
929
+ 5: h,
930
+ 7: 42,
931
+ 8: c,
932
+ 9: 4,
933
+ 14: a,
934
+ 16: o,
935
+ 18: d,
936
+ 19: u,
937
+ 23: 18,
938
+ 24: 19,
939
+ 25: 20,
940
+ 26: 23,
941
+ 32: 25,
942
+ 40: g,
943
+ 41: R,
944
+ 42: x,
945
+ 43: S,
946
+ 44: T,
947
+ 45: v,
948
+ 53: A,
949
+ 71: N,
950
+ 72: w
951
+ },
952
+ {
953
+ 27: 43,
954
+ 71: [
955
+ 1,
956
+ 44
957
+ ],
958
+ 72: [
959
+ 1,
960
+ 45
961
+ ]
962
+ },
963
+ {
964
+ 54: 46,
965
+ 71: [
966
+ 1,
967
+ 47
968
+ ],
969
+ 72: [
970
+ 1,
971
+ 48
972
+ ]
973
+ },
974
+ {
975
+ 60: [
976
+ 1,
977
+ 49
978
+ ],
979
+ 62: [
980
+ 1,
981
+ 50
982
+ ]
983
+ },
984
+ e(F, [
985
+ 2,
986
+ 26
987
+ ]),
988
+ e(F, [
989
+ 2,
990
+ 27
991
+ ]),
992
+ e(F, [
993
+ 2,
994
+ 28
995
+ ]),
996
+ e(F, [
997
+ 2,
998
+ 29
999
+ ]),
1000
+ e(F, [
1001
+ 2,
1002
+ 30
1003
+ ]),
1004
+ e(F, [
1005
+ 2,
1006
+ 31
1007
+ ]),
1008
+ e(fe, [
1009
+ 2,
1010
+ 55
1011
+ ]),
1012
+ e(fe, [
1013
+ 2,
1014
+ 56
1015
+ ]),
1016
+ e(p, [
1017
+ 2,
1018
+ 4
1019
+ ]),
1020
+ {
1021
+ 13: 51,
1022
+ 21: [
1023
+ 1,
1024
+ 52
1025
+ ]
1026
+ },
1027
+ e(p, [
1028
+ 2,
1029
+ 12
1030
+ ]),
1031
+ {
1032
+ 1: [
1033
+ 2,
1034
+ 3
1035
+ ]
1036
+ },
1037
+ {
1038
+ 8: [
1039
+ 2,
1040
+ 14
1041
+ ]
1042
+ },
1043
+ {
1044
+ 8: [
1045
+ 2,
1046
+ 15
1047
+ ]
1048
+ },
1049
+ {
1050
+ 8: [
1051
+ 2,
1052
+ 16
1053
+ ]
1054
+ },
1055
+ {
1056
+ 8: [
1057
+ 2,
1058
+ 17
1059
+ ]
1060
+ },
1061
+ {
1062
+ 8: [
1063
+ 2,
1064
+ 18
1065
+ ]
1066
+ },
1067
+ {
1068
+ 28: [
1069
+ 1,
1070
+ 53
1071
+ ]
1072
+ },
1073
+ {
1074
+ 28: [
1075
+ 2,
1076
+ 53
1077
+ ]
1078
+ },
1079
+ {
1080
+ 28: [
1081
+ 2,
1082
+ 54
1083
+ ]
1084
+ },
1085
+ {
1086
+ 28: [
1087
+ 1,
1088
+ 54
1089
+ ]
1090
+ },
1091
+ {
1092
+ 28: [
1093
+ 2,
1094
+ 59
1095
+ ]
1096
+ },
1097
+ {
1098
+ 28: [
1099
+ 2,
1100
+ 60
1101
+ ]
1102
+ },
1103
+ {
1104
+ 61: 55,
1105
+ 64: _e,
1106
+ 65: ye,
1107
+ 66: ge,
1108
+ 67: Ee,
1109
+ 68: Re,
1110
+ 69: me,
1111
+ 70: Ie
1112
+ },
1113
+ {
1114
+ 61: 63,
1115
+ 64: _e,
1116
+ 65: ye,
1117
+ 66: ge,
1118
+ 67: Ee,
1119
+ 68: Re,
1120
+ 69: me,
1121
+ 70: Ie
1122
+ },
1123
+ {
1124
+ 11: 64,
1125
+ 22: pe
1126
+ },
1127
+ {
1128
+ 22: [
1129
+ 2,
1130
+ 11
1131
+ ]
1132
+ },
1133
+ {
1134
+ 5: [
1135
+ 1,
1136
+ 65
1137
+ ]
1138
+ },
1139
+ {
1140
+ 5: [
1141
+ 1,
1142
+ 66
1143
+ ]
1144
+ },
1145
+ {
1146
+ 62: [
1147
+ 1,
1148
+ 67
1149
+ ]
1150
+ },
1151
+ e(L, [
1152
+ 2,
1153
+ 46
1154
+ ]),
1155
+ e(L, [
1156
+ 2,
1157
+ 47
1158
+ ]),
1159
+ e(L, [
1160
+ 2,
1161
+ 48
1162
+ ]),
1163
+ e(L, [
1164
+ 2,
1165
+ 49
1166
+ ]),
1167
+ e(L, [
1168
+ 2,
1169
+ 50
1170
+ ]),
1171
+ e(L, [
1172
+ 2,
1173
+ 51
1174
+ ]),
1175
+ e(L, [
1176
+ 2,
1177
+ 52
1178
+ ]),
1179
+ {
1180
+ 63: [
1181
+ 1,
1182
+ 68
1183
+ ]
1184
+ },
1185
+ e(p, [
1186
+ 2,
1187
+ 5
1188
+ ]),
1189
+ {
1190
+ 5: M,
1191
+ 29: 69,
1192
+ 30: P,
1193
+ 33: Y,
1194
+ 35: U,
1195
+ 37: B,
1196
+ 39: Q
1197
+ },
1198
+ {
1199
+ 5: z,
1200
+ 39: X,
1201
+ 55: 76,
1202
+ 56: J,
1203
+ 58: Z
1204
+ },
1205
+ {
1206
+ 32: 81,
1207
+ 71: N,
1208
+ 72: w
1209
+ },
1210
+ {
1211
+ 32: 82,
1212
+ 71: N,
1213
+ 72: w
1214
+ },
1215
+ e(m, [
1216
+ 2,
1217
+ 19
1218
+ ]),
1219
+ {
1220
+ 31: [
1221
+ 1,
1222
+ 83
1223
+ ]
1224
+ },
1225
+ {
1226
+ 31: [
1227
+ 1,
1228
+ 84
1229
+ ]
1230
+ },
1231
+ {
1232
+ 31: [
1233
+ 1,
1234
+ 85
1235
+ ]
1236
+ },
1237
+ {
1238
+ 31: [
1239
+ 1,
1240
+ 86
1241
+ ]
1242
+ },
1243
+ {
1244
+ 5: M,
1245
+ 29: 87,
1246
+ 30: P,
1247
+ 33: Y,
1248
+ 35: U,
1249
+ 37: B,
1250
+ 39: Q
1251
+ },
1252
+ e(m, [
1253
+ 2,
1254
+ 25
1255
+ ]),
1256
+ e(m, [
1257
+ 2,
1258
+ 39
1259
+ ]),
1260
+ {
1261
+ 31: [
1262
+ 1,
1263
+ 88
1264
+ ]
1265
+ },
1266
+ {
1267
+ 31: [
1268
+ 1,
1269
+ 89
1270
+ ]
1271
+ },
1272
+ {
1273
+ 5: z,
1274
+ 39: X,
1275
+ 55: 90,
1276
+ 56: J,
1277
+ 58: Z
1278
+ },
1279
+ e(m, [
1280
+ 2,
1281
+ 43
1282
+ ]),
1283
+ e(m, [
1284
+ 2,
1285
+ 44
1286
+ ]),
1287
+ e(m, [
1288
+ 2,
1289
+ 45
1290
+ ]),
1291
+ {
1292
+ 32: 91,
1293
+ 71: N,
1294
+ 72: w
1295
+ },
1296
+ {
1297
+ 34: 92,
1298
+ 71: [
1299
+ 1,
1300
+ 93
1301
+ ],
1302
+ 72: [
1303
+ 1,
1304
+ 94
1305
+ ]
1306
+ },
1307
+ {
1308
+ 36: 95,
1309
+ 46: [
1310
+ 1,
1311
+ 96
1312
+ ],
1313
+ 47: [
1314
+ 1,
1315
+ 97
1316
+ ],
1317
+ 48: [
1318
+ 1,
1319
+ 98
1320
+ ]
1321
+ },
1322
+ {
1323
+ 38: 99,
1324
+ 49: [
1325
+ 1,
1326
+ 100
1327
+ ],
1328
+ 50: [
1329
+ 1,
1330
+ 101
1331
+ ],
1332
+ 51: [
1333
+ 1,
1334
+ 102
1335
+ ],
1336
+ 52: [
1337
+ 1,
1338
+ 103
1339
+ ]
1340
+ },
1341
+ e(m, [
1342
+ 2,
1343
+ 24
1344
+ ]),
1345
+ {
1346
+ 57: 104,
1347
+ 71: [
1348
+ 1,
1349
+ 105
1350
+ ],
1351
+ 72: [
1352
+ 1,
1353
+ 106
1354
+ ]
1355
+ },
1356
+ {
1357
+ 59: 107,
1358
+ 71: [
1359
+ 1,
1360
+ 108
1361
+ ],
1362
+ 72: [
1363
+ 1,
1364
+ 109
1365
+ ]
1366
+ },
1367
+ e(m, [
1368
+ 2,
1369
+ 42
1370
+ ]),
1371
+ {
1372
+ 5: [
1373
+ 1,
1374
+ 110
1375
+ ]
1376
+ },
1377
+ {
1378
+ 5: [
1379
+ 1,
1380
+ 111
1381
+ ]
1382
+ },
1383
+ {
1384
+ 5: [
1385
+ 2,
1386
+ 57
1387
+ ]
1388
+ },
1389
+ {
1390
+ 5: [
1391
+ 2,
1392
+ 58
1393
+ ]
1394
+ },
1395
+ {
1396
+ 5: [
1397
+ 1,
1398
+ 112
1399
+ ]
1400
+ },
1401
+ {
1402
+ 5: [
1403
+ 2,
1404
+ 32
1405
+ ]
1406
+ },
1407
+ {
1408
+ 5: [
1409
+ 2,
1410
+ 33
1411
+ ]
1412
+ },
1413
+ {
1414
+ 5: [
1415
+ 2,
1416
+ 34
1417
+ ]
1418
+ },
1419
+ {
1420
+ 5: [
1421
+ 1,
1422
+ 113
1423
+ ]
1424
+ },
1425
+ {
1426
+ 5: [
1427
+ 2,
1428
+ 35
1429
+ ]
1430
+ },
1431
+ {
1432
+ 5: [
1433
+ 2,
1434
+ 36
1435
+ ]
1436
+ },
1437
+ {
1438
+ 5: [
1439
+ 2,
1440
+ 37
1441
+ ]
1442
+ },
1443
+ {
1444
+ 5: [
1445
+ 2,
1446
+ 38
1447
+ ]
1448
+ },
1449
+ {
1450
+ 5: [
1451
+ 1,
1452
+ 114
1453
+ ]
1454
+ },
1455
+ {
1456
+ 5: [
1457
+ 2,
1458
+ 61
1459
+ ]
1460
+ },
1461
+ {
1462
+ 5: [
1463
+ 2,
1464
+ 62
1465
+ ]
1466
+ },
1467
+ {
1468
+ 5: [
1469
+ 1,
1470
+ 115
1471
+ ]
1472
+ },
1473
+ {
1474
+ 5: [
1475
+ 2,
1476
+ 63
1477
+ ]
1478
+ },
1479
+ {
1480
+ 5: [
1481
+ 2,
1482
+ 64
1483
+ ]
1484
+ },
1485
+ {
1486
+ 5: M,
1487
+ 29: 116,
1488
+ 30: P,
1489
+ 33: Y,
1490
+ 35: U,
1491
+ 37: B,
1492
+ 39: Q
1493
+ },
1494
+ {
1495
+ 5: M,
1496
+ 29: 117,
1497
+ 30: P,
1498
+ 33: Y,
1499
+ 35: U,
1500
+ 37: B,
1501
+ 39: Q
1502
+ },
1503
+ {
1504
+ 5: M,
1505
+ 29: 118,
1506
+ 30: P,
1507
+ 33: Y,
1508
+ 35: U,
1509
+ 37: B,
1510
+ 39: Q
1511
+ },
1512
+ {
1513
+ 5: M,
1514
+ 29: 119,
1515
+ 30: P,
1516
+ 33: Y,
1517
+ 35: U,
1518
+ 37: B,
1519
+ 39: Q
1520
+ },
1521
+ {
1522
+ 5: z,
1523
+ 39: X,
1524
+ 55: 120,
1525
+ 56: J,
1526
+ 58: Z
1527
+ },
1528
+ {
1529
+ 5: z,
1530
+ 39: X,
1531
+ 55: 121,
1532
+ 56: J,
1533
+ 58: Z
1534
+ },
1535
+ e(m, [
1536
+ 2,
1537
+ 20
1538
+ ]),
1539
+ e(m, [
1540
+ 2,
1541
+ 21
1542
+ ]),
1543
+ e(m, [
1544
+ 2,
1545
+ 22
1546
+ ]),
1547
+ e(m, [
1548
+ 2,
1549
+ 23
1550
+ ]),
1551
+ e(m, [
1552
+ 2,
1553
+ 40
1554
+ ]),
1555
+ e(m, [
1556
+ 2,
1557
+ 41
1558
+ ])
1559
+ ],
1560
+ defaultActions: {
1561
+ 8: [
1562
+ 2,
1563
+ 9
1564
+ ],
1565
+ 10: [
1566
+ 2,
1567
+ 2
1568
+ ],
1569
+ 16: [
1570
+ 2,
1571
+ 1
1572
+ ],
1573
+ 37: [
1574
+ 2,
1575
+ 3
1576
+ ],
1577
+ 38: [
1578
+ 2,
1579
+ 14
1580
+ ],
1581
+ 39: [
1582
+ 2,
1583
+ 15
1584
+ ],
1585
+ 40: [
1586
+ 2,
1587
+ 16
1588
+ ],
1589
+ 41: [
1590
+ 2,
1591
+ 17
1592
+ ],
1593
+ 42: [
1594
+ 2,
1595
+ 18
1596
+ ],
1597
+ 44: [
1598
+ 2,
1599
+ 53
1600
+ ],
1601
+ 45: [
1602
+ 2,
1603
+ 54
1604
+ ],
1605
+ 47: [
1606
+ 2,
1607
+ 59
1608
+ ],
1609
+ 48: [
1610
+ 2,
1611
+ 60
1612
+ ],
1613
+ 52: [
1614
+ 2,
1615
+ 11
1616
+ ],
1617
+ 93: [
1618
+ 2,
1619
+ 57
1620
+ ],
1621
+ 94: [
1622
+ 2,
1623
+ 58
1624
+ ],
1625
+ 96: [
1626
+ 2,
1627
+ 32
1628
+ ],
1629
+ 97: [
1630
+ 2,
1631
+ 33
1632
+ ],
1633
+ 98: [
1634
+ 2,
1635
+ 34
1636
+ ],
1637
+ 100: [
1638
+ 2,
1639
+ 35
1640
+ ],
1641
+ 101: [
1642
+ 2,
1643
+ 36
1644
+ ],
1645
+ 102: [
1646
+ 2,
1647
+ 37
1648
+ ],
1649
+ 103: [
1650
+ 2,
1651
+ 38
1652
+ ],
1653
+ 105: [
1654
+ 2,
1655
+ 61
1656
+ ],
1657
+ 106: [
1658
+ 2,
1659
+ 62
1660
+ ],
1661
+ 108: [
1662
+ 2,
1663
+ 63
1664
+ ],
1665
+ 109: [
1666
+ 2,
1667
+ 64
1668
+ ]
1669
+ },
1670
+ parseError: function parseError(r, s) {
1671
+ if (s.recoverable) this.trace(r);
1672
+ else {
1673
+ var l = new Error(r);
1674
+ throw l.hash = s, l;
1675
+ }
1676
+ },
1677
+ parse: function parse(r) {
1678
+ var s = this, l = [
1679
+ 0
1680
+ ], i = [], _ = [
1681
+ null
1682
+ ], n = [], K = this.table, f = "", ee = 0, be = 0, Oe = 2, ke = 1, Le = n.slice.call(arguments, 1), E = Object.create(this.lexer), C = {
1683
+ yy: {}
1684
+ };
1685
+ for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy, se) && (C.yy[se] = this.yy[se]);
1686
+ E.setInput(r, C.yy), C.yy.lexer = E, C.yy.parser = this, _type_of(E.yylloc) > "u" && (E.yylloc = {});
1687
+ var ae = E.yylloc;
1688
+ n.push(ae);
1689
+ var Ce = E.options && E.options.ranges;
1690
+ typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1691
+ function De() {
1692
+ var $;
1693
+ return $ = i.pop() || E.lex() || ke, typeof $ != "number" && (_instanceof($, Array) && (i = $, $ = i.pop()), $ = s.symbols_[$] || $), $;
1694
+ }
1695
+ for(var I, D, k, le, H = {}, te, V, Se, ie;;){
1696
+ if (D = l[l.length - 1], this.defaultActions[D] ? k = this.defaultActions[D] : ((I === null || (typeof I === "undefined" ? "undefined" : _type_of(I)) > "u") && (I = De()), k = K[D] && K[D][I]), (typeof k === "undefined" ? "undefined" : _type_of(k)) > "u" || !k.length || !k[0]) {
1697
+ var ce = "";
1698
+ ie = [];
1699
+ for(te in K[D])this.terminals_[te] && te > Oe && ie.push("'" + this.terminals_[te] + "'");
1700
+ E.showPosition ? ce = "Parse error on line " + (ee + 1) + ":\n" + E.showPosition() + "\nExpecting " + ie.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : ce = "Parse error on line " + (ee + 1) + ": Unexpected " + (I == ke ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(ce, {
1701
+ text: E.match,
1702
+ token: this.terminals_[I] || I,
1703
+ line: E.yylineno,
1704
+ loc: ae,
1705
+ expected: ie
1706
+ });
1707
+ }
1708
+ if (_instanceof(k[0], Array) && k.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + D + ", token: " + I);
1709
+ switch(k[0]){
1710
+ case 1:
1711
+ l.push(I), _.push(E.yytext), n.push(E.yylloc), l.push(k[1]), I = null, be = E.yyleng, f = E.yytext, ee = E.yylineno, ae = E.yylloc;
1712
+ break;
1713
+ case 2:
1714
+ if (V = this.productions_[k[1]][1], H.$ = _[_.length - V], H._$ = {
1715
+ first_line: n[n.length - (V || 1)].first_line,
1716
+ last_line: n[n.length - 1].last_line,
1717
+ first_column: n[n.length - (V || 1)].first_column,
1718
+ last_column: n[n.length - 1].last_column
1719
+ }, Ce && (H._$.range = [
1720
+ n[n.length - (V || 1)].range[0],
1721
+ n[n.length - 1].range[1]
1722
+ ]), le = this.performAction.apply(H, [
1723
+ f,
1724
+ be,
1725
+ ee,
1726
+ C.yy,
1727
+ k[1],
1728
+ _,
1729
+ n
1730
+ ].concat(Le)), (typeof le === "undefined" ? "undefined" : _type_of(le)) < "u") return le;
1731
+ V && (l = l.slice(0, -1 * V * 2), _ = _.slice(0, -1 * V), n = n.slice(0, -1 * V)), l.push(this.productions_[k[1]][0]), _.push(H.$), n.push(H._$), Se = K[l[l.length - 2]][l[l.length - 1]], l.push(Se);
1732
+ break;
1733
+ case 3:
1734
+ return !0;
1735
+ }
1736
+ }
1737
+ return !0;
1738
+ }
1739
+ }, qe = function() {
1740
+ var q = {
1741
+ EOF: 1,
1742
+ parseError: function parseError(s, l) {
1743
+ if (this.yy.parser) this.yy.parser.parseError(s, l);
1744
+ else throw new Error(s);
1745
+ },
1746
+ // resets the lexer, sets new input
1747
+ setInput: function setInput(r, s) {
1748
+ return this.yy = s || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1749
+ "INITIAL"
1750
+ ], this.yylloc = {
1751
+ first_line: 1,
1752
+ first_column: 0,
1753
+ last_line: 1,
1754
+ last_column: 0
1755
+ }, this.options.ranges && (this.yylloc.range = [
1756
+ 0,
1757
+ 0
1758
+ ]), this.offset = 0, this;
1759
+ },
1760
+ // consumes and returns one char from the input
1761
+ input: function input() {
1762
+ var r = this._input[0];
1763
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
1764
+ var s = r.match(/(?:\r\n?|\n).*/g);
1765
+ return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
1766
+ },
1767
+ // unshifts one char (or a string) into the input
1768
+ unput: function unput(r) {
1769
+ var s = r.length, l = r.split(/(?:\r\n?|\n)/g);
1770
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
1771
+ var i = this.match.split(/(?:\r\n?|\n)/g);
1772
+ 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);
1773
+ var _ = this.yylloc.range;
1774
+ return this.yylloc = {
1775
+ first_line: this.yylloc.first_line,
1776
+ last_line: this.yylineno + 1,
1777
+ first_column: this.yylloc.first_column,
1778
+ last_column: l ? (l.length === i.length ? this.yylloc.first_column : 0) + i[i.length - l.length].length - l[0].length : this.yylloc.first_column - s
1779
+ }, this.options.ranges && (this.yylloc.range = [
1780
+ _[0],
1781
+ _[0] + this.yyleng - s
1782
+ ]), this.yyleng = this.yytext.length, this;
1783
+ },
1784
+ // When called from action, caches matched text and appends it on next action
1785
+ more: function more() {
1786
+ return this._more = !0, this;
1787
+ },
1788
+ // 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.
1789
+ reject: function reject() {
1790
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1791
+ else 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).\n" + this.showPosition(), {
1792
+ text: "",
1793
+ token: null,
1794
+ line: this.yylineno
1795
+ });
1796
+ return this;
1797
+ },
1798
+ // retain first n characters of the match
1799
+ less: function less(r) {
1800
+ this.unput(this.match.slice(r));
1801
+ },
1802
+ // displays already matched input, i.e. for error messages
1803
+ pastInput: function pastInput() {
1804
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
1805
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
1806
+ },
1807
+ // displays upcoming input, i.e. for error messages
1808
+ upcomingInput: function upcomingInput() {
1809
+ var r = this.match;
1810
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
1811
+ },
1812
+ // displays the character position where the lexing error occurred, i.e. for error messages
1813
+ showPosition: function showPosition() {
1814
+ var r = this.pastInput(), s = new Array(r.length + 1).join("-");
1815
+ return r + this.upcomingInput() + "\n" + s + "^";
1816
+ },
1817
+ // test the lexed token: return FALSE when not a match, otherwise return token
1818
+ test_match: function test_match(r, s) {
1819
+ var l, i, _;
1820
+ if (this.options.backtrack_lexer && (_ = {
1821
+ yylineno: this.yylineno,
1822
+ yylloc: {
1823
+ first_line: this.yylloc.first_line,
1824
+ last_line: this.last_line,
1825
+ first_column: this.yylloc.first_column,
1826
+ last_column: this.yylloc.last_column
1827
+ },
1828
+ yytext: this.yytext,
1829
+ match: this.match,
1830
+ matches: this.matches,
1831
+ matched: this.matched,
1832
+ yyleng: this.yyleng,
1833
+ offset: this.offset,
1834
+ _more: this._more,
1835
+ _input: this._input,
1836
+ yy: this.yy,
1837
+ conditionStack: this.conditionStack.slice(0),
1838
+ done: this.done
1839
+ }, this.options.ranges && (_.yylloc.range = this.yylloc.range.slice(0))), i = r[0].match(/(?:\r\n?|\n).*/g), i && (this.yylineno += i.length), this.yylloc = {
1840
+ first_line: this.yylloc.last_line,
1841
+ last_line: this.yylineno + 1,
1842
+ first_column: this.yylloc.last_column,
1843
+ last_column: i ? i[i.length - 1].length - i[i.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
1844
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1845
+ this.offset,
1846
+ this.offset += this.yyleng
1847
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(r[0].length), this.matched += r[0], l = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l) return l;
1848
+ if (this._backtrack) {
1849
+ for(var n in _)this[n] = _[n];
1850
+ return !1;
1851
+ }
1852
+ return !1;
1853
+ },
1854
+ // return next match in input
1855
+ next: function next() {
1856
+ if (this.done) return this.EOF;
1857
+ this._input || (this.done = !0);
1858
+ var r, s, l, i;
1859
+ this._more || (this.yytext = "", this.match = "");
1860
+ for(var _ = this._currentRules(), n = 0; n < _.length; n++)if (l = this._input.match(this.rules[_[n]]), l && (!s || l[0].length > s[0].length)) {
1861
+ if (s = l, i = n, this.options.backtrack_lexer) {
1862
+ if (r = this.test_match(l, _[n]), r !== !1) return r;
1863
+ if (this._backtrack) {
1864
+ s = !1;
1865
+ continue;
1866
+ } else return !1;
1867
+ } else if (!this.options.flex) break;
1868
+ }
1869
+ return s ? (r = this.test_match(s, _[i]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1870
+ text: "",
1871
+ token: null,
1872
+ line: this.yylineno
1873
+ });
1874
+ },
1875
+ // return next match that has a token
1876
+ lex: function lex() {
1877
+ var s = this.next();
1878
+ return s || this.lex();
1879
+ },
1880
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1881
+ begin: function begin(s) {
1882
+ this.conditionStack.push(s);
1883
+ },
1884
+ // pop the previously active lexer condition state off the condition stack
1885
+ popState: function popState() {
1886
+ var s = this.conditionStack.length - 1;
1887
+ return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1888
+ },
1889
+ // produce the lexer rule set which is active for the currently active lexer condition state
1890
+ _currentRules: function _currentRules() {
1891
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1892
+ },
1893
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1894
+ topState: function topState(s) {
1895
+ return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
1896
+ },
1897
+ // alias for begin(condition)
1898
+ pushState: function pushState(s) {
1899
+ this.begin(s);
1900
+ },
1901
+ // return the number of states currently on the stack
1902
+ stateStackSize: function stateStackSize() {
1903
+ return this.conditionStack.length;
1904
+ },
1905
+ options: {
1906
+ "case-insensitive": !0
1907
+ },
1908
+ performAction: function performAction(s, l, i, _) {
1909
+ switch(i){
1910
+ case 0:
1911
+ return this.begin("open_directive"), 19;
1912
+ case 1:
1913
+ return this.begin("type_directive"), 20;
1914
+ case 2:
1915
+ return this.popState(), this.begin("arg_directive"), 12;
1916
+ case 3:
1917
+ return this.popState(), this.popState(), 22;
1918
+ case 4:
1919
+ return 21;
1920
+ case 5:
1921
+ return "title";
1922
+ case 6:
1923
+ return this.begin("acc_title"), 14;
1924
+ case 7:
1925
+ return this.popState(), "acc_title_value";
1926
+ case 8:
1927
+ return this.begin("acc_descr"), 16;
1928
+ case 9:
1929
+ return this.popState(), "acc_descr_value";
1930
+ case 10:
1931
+ this.begin("acc_descr_multiline");
1932
+ break;
1933
+ case 11:
1934
+ this.popState();
1935
+ break;
1936
+ case 12:
1937
+ return "acc_descr_multiline_value";
1938
+ case 13:
1939
+ return 5;
1940
+ case 14:
1941
+ break;
1942
+ case 15:
1943
+ break;
1944
+ case 16:
1945
+ break;
1946
+ case 17:
1947
+ return 8;
1948
+ case 18:
1949
+ return 6;
1950
+ case 19:
1951
+ return 28;
1952
+ case 20:
1953
+ return 39;
1954
+ case 21:
1955
+ return 31;
1956
+ case 22:
1957
+ return 30;
1958
+ case 23:
1959
+ return 33;
1960
+ case 24:
1961
+ return 35;
1962
+ case 25:
1963
+ return 37;
1964
+ case 26:
1965
+ return 40;
1966
+ case 27:
1967
+ return 41;
1968
+ case 28:
1969
+ return 42;
1970
+ case 29:
1971
+ return 43;
1972
+ case 30:
1973
+ return 44;
1974
+ case 31:
1975
+ return 45;
1976
+ case 32:
1977
+ return 46;
1978
+ case 33:
1979
+ return 47;
1980
+ case 34:
1981
+ return 48;
1982
+ case 35:
1983
+ return 49;
1984
+ case 36:
1985
+ return 50;
1986
+ case 37:
1987
+ return 51;
1988
+ case 38:
1989
+ return 52;
1990
+ case 39:
1991
+ return 53;
1992
+ case 40:
1993
+ return 64;
1994
+ case 41:
1995
+ return 65;
1996
+ case 42:
1997
+ return 66;
1998
+ case 43:
1999
+ return 67;
2000
+ case 44:
2001
+ return 68;
2002
+ case 45:
2003
+ return 69;
2004
+ case 46:
2005
+ return 70;
2006
+ case 47:
2007
+ return 56;
2008
+ case 48:
2009
+ return 58;
2010
+ case 49:
2011
+ return 60;
2012
+ case 50:
2013
+ return 63;
2014
+ case 51:
2015
+ return 62;
2016
+ case 52:
2017
+ this.begin("string");
2018
+ break;
2019
+ case 53:
2020
+ this.popState();
2021
+ break;
2022
+ case 54:
2023
+ return "qString";
2024
+ case 55:
2025
+ return l.yytext = l.yytext.trim(), 71;
2026
+ }
2027
+ },
2028
+ rules: [
2029
+ /^(?:%%\{)/i,
2030
+ /^(?:((?:(?!\}%%)[^:.])*))/i,
2031
+ /^(?::)/i,
2032
+ /^(?:\}%%)/i,
2033
+ /^(?:((?:(?!\}%%).|\n)*))/i,
2034
+ /^(?:title\s[^#\n;]+)/i,
2035
+ /^(?:accTitle\s*:\s*)/i,
2036
+ /^(?:(?!\n||)*[^\n]*)/i,
2037
+ /^(?:accDescr\s*:\s*)/i,
2038
+ /^(?:(?!\n||)*[^\n]*)/i,
2039
+ /^(?:accDescr\s*\{\s*)/i,
2040
+ /^(?:[\}])/i,
2041
+ /^(?:[^\}]*)/i,
2042
+ /^(?:(\r?\n)+)/i,
2043
+ /^(?:\s+)/i,
2044
+ /^(?:#[^\n]*)/i,
2045
+ /^(?:%[^\n]*)/i,
2046
+ /^(?:$)/i,
2047
+ /^(?:requirementDiagram\b)/i,
2048
+ /^(?:\{)/i,
2049
+ /^(?:\})/i,
2050
+ /^(?::)/i,
2051
+ /^(?:id\b)/i,
2052
+ /^(?:text\b)/i,
2053
+ /^(?:risk\b)/i,
2054
+ /^(?:verifyMethod\b)/i,
2055
+ /^(?:requirement\b)/i,
2056
+ /^(?:functionalRequirement\b)/i,
2057
+ /^(?:interfaceRequirement\b)/i,
2058
+ /^(?:performanceRequirement\b)/i,
2059
+ /^(?:physicalRequirement\b)/i,
2060
+ /^(?:designConstraint\b)/i,
2061
+ /^(?:low\b)/i,
2062
+ /^(?:medium\b)/i,
2063
+ /^(?:high\b)/i,
2064
+ /^(?:analysis\b)/i,
2065
+ /^(?:demonstration\b)/i,
2066
+ /^(?:inspection\b)/i,
2067
+ /^(?:test\b)/i,
2068
+ /^(?:element\b)/i,
2069
+ /^(?:contains\b)/i,
2070
+ /^(?:copies\b)/i,
2071
+ /^(?:derives\b)/i,
2072
+ /^(?:satisfies\b)/i,
2073
+ /^(?:verifies\b)/i,
2074
+ /^(?:refines\b)/i,
2075
+ /^(?:traces\b)/i,
2076
+ /^(?:type\b)/i,
2077
+ /^(?:docref\b)/i,
2078
+ /^(?:<-)/i,
2079
+ /^(?:->)/i,
2080
+ /^(?:-)/i,
2081
+ /^(?:["])/i,
2082
+ /^(?:["])/i,
2083
+ /^(?:[^"]*)/i,
2084
+ /^(?:[\w][^\r\n\{\<\>\-\=]*)/i
2085
+ ],
2086
+ conditions: {
2087
+ acc_descr_multiline: {
2088
+ rules: [
2089
+ 11,
2090
+ 12
2091
+ ],
2092
+ inclusive: !1
2093
+ },
2094
+ acc_descr: {
2095
+ rules: [
2096
+ 9
2097
+ ],
2098
+ inclusive: !1
2099
+ },
2100
+ acc_title: {
2101
+ rules: [
2102
+ 7
2103
+ ],
2104
+ inclusive: !1
2105
+ },
2106
+ close_directive: {
2107
+ rules: [],
2108
+ inclusive: !1
2109
+ },
2110
+ arg_directive: {
2111
+ rules: [
2112
+ 3,
2113
+ 4
2114
+ ],
2115
+ inclusive: !1
2116
+ },
2117
+ type_directive: {
2118
+ rules: [
2119
+ 2,
2120
+ 3
2121
+ ],
2122
+ inclusive: !1
2123
+ },
2124
+ open_directive: {
2125
+ rules: [
2126
+ 1
2127
+ ],
2128
+ inclusive: !1
2129
+ },
2130
+ unqString: {
2131
+ rules: [],
2132
+ inclusive: !1
2133
+ },
2134
+ token: {
2135
+ rules: [],
2136
+ inclusive: !1
2137
+ },
2138
+ string: {
2139
+ rules: [
2140
+ 53,
2141
+ 54
2142
+ ],
2143
+ inclusive: !1
2144
+ },
2145
+ INITIAL: {
2146
+ rules: [
2147
+ 0,
2148
+ 5,
2149
+ 6,
2150
+ 8,
2151
+ 10,
2152
+ 13,
2153
+ 14,
2154
+ 15,
2155
+ 16,
2156
+ 17,
2157
+ 18,
2158
+ 19,
2159
+ 20,
2160
+ 21,
2161
+ 22,
2162
+ 23,
2163
+ 24,
2164
+ 25,
2165
+ 26,
2166
+ 27,
2167
+ 28,
2168
+ 29,
2169
+ 30,
2170
+ 31,
2171
+ 32,
2172
+ 33,
2173
+ 34,
2174
+ 35,
2175
+ 36,
2176
+ 37,
2177
+ 38,
2178
+ 39,
2179
+ 40,
2180
+ 41,
2181
+ 42,
2182
+ 43,
2183
+ 44,
2184
+ 45,
2185
+ 46,
2186
+ 47,
2187
+ 48,
2188
+ 49,
2189
+ 50,
2190
+ 51,
2191
+ 52,
2192
+ 55
2193
+ ],
2194
+ inclusive: !0
2195
+ }
2196
+ }
2197
+ };
2198
+ return q;
2199
+ }();
2200
+ re.lexer = qe;
2201
+ function ne() {
2202
+ this.yy = {};
2203
+ }
2204
+ return ne.prototype = re, re.Parser = ne, new ne();
2205
+ }();
2206
+ he.parser = he;
2207
+ var Ge = he;
2208
+ var de = [], b = {}, G = {}, O = {}, j = {};
2209
+ var je = {
2210
+ REQUIREMENT: "Requirement",
2211
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
2212
+ INTERFACE_REQUIREMENT: "Interface Requirement",
2213
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
2214
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
2215
+ DESIGN_CONSTRAINT: "Design Constraint"
2216
+ }, ze = {
2217
+ LOW_RISK: "Low",
2218
+ MED_RISK: "Medium",
2219
+ HIGH_RISK: "High"
2220
+ }, Xe = {
2221
+ VERIFY_ANALYSIS: "Analysis",
2222
+ VERIFY_DEMONSTRATION: "Demonstration",
2223
+ VERIFY_INSPECTION: "Inspection",
2224
+ VERIFY_TEST: "Test"
2225
+ }, Je = {
2226
+ CONTAINS: "contains",
2227
+ COPIES: "copies",
2228
+ DERIVES: "derives",
2229
+ SATISFIES: "satisfies",
2230
+ VERIFIES: "verifies",
2231
+ REFINES: "refines",
2232
+ TRACES: "traces"
2233
+ }, Ze = function Ze(e, t, a) {
2234
+ de$1.parseDirective(this, e, t, a);
2235
+ }, et = function(e, t) {
2236
+ return G[e] === void 0 && (G[e] = {
2237
+ name: e,
2238
+ type: t,
2239
+ id: b.id,
2240
+ text: b.text,
2241
+ risk: b.risk,
2242
+ verifyMethod: b.verifyMethod
2243
+ }), b = {}, G[e];
2244
+ }, tt = function() {
2245
+ return G;
2246
+ }, it = function(e) {
2247
+ b !== void 0 && (b.id = e);
2248
+ }, rt = function(e) {
2249
+ b !== void 0 && (b.text = e);
2250
+ }, nt = function(e) {
2251
+ b !== void 0 && (b.risk = e);
2252
+ }, st = function(e) {
2253
+ b !== void 0 && (b.verifyMethod = e);
2254
+ }, at = function(e) {
2255
+ return j[e] === void 0 && (j[e] = {
2256
+ name: e,
2257
+ type: O.type,
2258
+ docRef: O.docRef
2259
+ }, S.info("Added new requirement: ", e)), O = {}, j[e];
2260
+ }, lt = function() {
2261
+ return j;
2262
+ }, ct = function(e) {
2263
+ O !== void 0 && (O.type = e);
2264
+ }, ot = function(e) {
2265
+ O !== void 0 && (O.docRef = e);
2266
+ }, ht = function(e, t, a) {
2267
+ de.push({
2268
+ type: e,
2269
+ src: t,
2270
+ dst: a
2271
+ });
2272
+ }, ut = function() {
2273
+ return de;
2274
+ }, dt = function() {
2275
+ de = [], b = {}, G = {}, O = {}, j = {}, Fa();
2276
+ }, pt = {
2277
+ RequirementType: je,
2278
+ RiskLevel: ze,
2279
+ VerifyType: Xe,
2280
+ Relationships: Je,
2281
+ parseDirective: Ze,
2282
+ getConfig: function() {
2283
+ return Ut().req;
2284
+ },
2285
+ addRequirement: et,
2286
+ getRequirements: tt,
2287
+ setNewReqId: it,
2288
+ setNewReqText: rt,
2289
+ setNewReqRisk: nt,
2290
+ setNewReqVerifyMethod: st,
2291
+ setAccTitle: La,
2292
+ getAccTitle: Aa,
2293
+ setAccDescription: Ea,
2294
+ getAccDescription: Ma,
2295
+ addElement: at,
2296
+ getElements: lt,
2297
+ setNewElementType: ct,
2298
+ setNewElementDocRef: ot,
2299
+ addRelationship: ht,
2300
+ getRelationships: ut,
2301
+ clear: dt
2302
+ }, ft = function(e) {
2303
+ return "\n\n marker {\n fill: ".concat(e.relationColor, ";\n stroke: ").concat(e.relationColor, ";\n }\n\n marker.cross {\n stroke: ").concat(e.lineColor, ";\n }\n\n svg {\n font-family: ").concat(e.fontFamily, ";\n font-size: ").concat(e.fontSize, ";\n }\n\n .reqBox {\n fill: ").concat(e.requirementBackground, ";\n fill-opacity: 1.0;\n stroke: ").concat(e.requirementBorderColor, ";\n stroke-width: ").concat(e.requirementBorderSize, ";\n }\n \n .reqTitle, .reqLabel{\n fill: ").concat(e.requirementTextColor, ";\n }\n .reqLabelBox {\n fill: ").concat(e.relationLabelBackground, ";\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ").concat(e.requirementBorderColor, ";\n stroke-width: ").concat(e.requirementBorderSize, ";\n }\n .relationshipLine {\n stroke: ").concat(e.relationColor, ";\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ").concat(e.relationLabelColor, ";\n }\n\n");
2304
+ }, _t = ft, ue = {
2305
+ CONTAINS: "contains",
2306
+ ARROW: "arrow"
2307
+ }, yt = function(e, t) {
2308
+ var a = 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");
2309
+ a.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), a.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), a.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("d", "M0,0\n L".concat(t.line_height, ",").concat(t.line_height / 2, "\n M").concat(t.line_height, ",").concat(t.line_height / 2, "\n L0,").concat(t.line_height)).attr("stroke-width", 1);
2310
+ }, Ae = {
2311
+ ReqMarkers: ue,
2312
+ insertLineEndings: yt
2313
+ };
2314
+ var y = {}, Ne = 0;
2315
+ var we = function(e, t) {
2316
+ return 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");
2317
+ }, Ve = function(e, t, a) {
2318
+ var o = y.rect_min_width / 2, d = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", o).attr("y", y.rect_padding).attr("dominant-baseline", "hanging"), u = 0;
2319
+ a.forEach(function(g) {
2320
+ u == 0 ? d.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(g) : d.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(g), u++;
2321
+ });
2322
+ var p = 1.5 * y.rect_padding, h = u * y.line_height * 0.75, c = p + h;
2323
+ return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", c).attr("y2", c), {
2324
+ titleNode: d,
2325
+ y: c
2326
+ };
2327
+ }, $e = function(e, t, a, o) {
2328
+ var d = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", y.rect_padding).attr("y", o).attr("dominant-baseline", "hanging"), u = 0;
2329
+ var p = 30;
2330
+ var h = [];
2331
+ return a.forEach(function(c) {
2332
+ var g = c.length;
2333
+ for(; g > p && u < 3;){
2334
+ var R = c.substring(0, p);
2335
+ c = c.substring(p, c.length), g = c.length, h[h.length] = R, u++;
2336
+ }
2337
+ if (u == 3) {
2338
+ var R1 = h[h.length - 1];
2339
+ h[h.length - 1] = R1.substring(0, R1.length - 4) + "...";
2340
+ } else h[h.length] = c;
2341
+ u = 0;
2342
+ }), h.forEach(function(c) {
2343
+ d.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(c);
2344
+ }), d;
2345
+ }, gt = function(e, t, a, o) {
2346
+ var d = t.node().getTotalLength(), u = t.node().getPointAtLength(d * 0.5), p = "rel" + Ne;
2347
+ Ne++;
2348
+ var c = e.append("text").attr("class", "req relationshipLabel").attr("id", p).attr("x", u.x).attr("y", u.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(o).node().getBBox();
2349
+ e.insert("rect", "#" + p).attr("class", "req reqLabelBox").attr("x", u.x - c.width / 2).attr("y", u.y - c.height / 2).attr("width", c.width).attr("height", c.height).attr("fill", "white").attr("fill-opacity", "85%");
2350
+ }, Et = function Et(e, t, a, o, d) {
2351
+ var u = a.edge(W(t.src), W(t.dst)), p = S$1().x(function(c) {
2352
+ return c.x;
2353
+ }).y(function(c) {
2354
+ return c.y;
2355
+ }), h = e.insert("path", "#" + o).attr("class", "er relationshipLine").attr("d", p(u.points)).attr("fill", "none");
2356
+ t.type == d.db.Relationships.CONTAINS ? h.attr("marker-start", "url(" + Bn.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)") : (h.attr("stroke-dasharray", "10,7"), h.attr("marker-end", "url(" + Bn.getUrl(y.arrowMarkerAbsolute) + "#" + Ae.ReqMarkers.ARROW + "_line_ending)")), gt(e, h, y, "<<".concat(t.type, ">>"));
2357
+ }, Rt = function(e, t, a) {
2358
+ Object.keys(e).forEach(function(o) {
2359
+ var d = e[o];
2360
+ o = W(o), S.info("Added new requirement: ", o);
2361
+ var u = a.append("g").attr("id", o), p = "req-" + o, h = we(u, p);
2362
+ var c = Ve(u, o + "_title", [
2363
+ "<<".concat(d.type, ">>"),
2364
+ "".concat(d.name)
2365
+ ]);
2366
+ $e(u, o + "_body", [
2367
+ "Id: ".concat(d.id),
2368
+ "Text: ".concat(d.text),
2369
+ "Risk: ".concat(d.risk),
2370
+ "Verification: ".concat(d.verifyMethod)
2371
+ ], c.y);
2372
+ var g = h.node().getBBox();
2373
+ t.setNode(o, {
2374
+ width: g.width,
2375
+ height: g.height,
2376
+ shape: "rect",
2377
+ id: o
2378
+ });
2379
+ });
2380
+ }, mt = function(e, t, a) {
2381
+ Object.keys(e).forEach(function(o) {
2382
+ var d = e[o];
2383
+ var u = W(o), p = a.append("g").attr("id", u), h = "element-" + u, c = we(p, h);
2384
+ var g = Ve(p, h + "_title", [
2385
+ "<<Element>>",
2386
+ "".concat(o)
2387
+ ]);
2388
+ $e(p, h + "_body", [
2389
+ "Type: ".concat(d.type || "Not Specified"),
2390
+ "Doc Ref: ".concat(d.docRef || "None")
2391
+ ], g.y);
2392
+ var R = c.node().getBBox();
2393
+ t.setNode(u, {
2394
+ width: R.width,
2395
+ height: R.height,
2396
+ shape: "rect",
2397
+ id: u
2398
+ });
2399
+ });
2400
+ }, It = function(e, t) {
2401
+ return e.forEach(function(a) {
2402
+ var o = W(a.src), d = W(a.dst);
2403
+ t.setEdge(o, d, {
2404
+ relationship: a
2405
+ });
2406
+ }), e;
2407
+ }, bt = function bt(e, t) {
2408
+ t.nodes().forEach(function(a) {
2409
+ a !== void 0 && t.node(a) !== void 0 && (e.select("#" + a), e.select("#" + a).attr("transform", "translate(" + (t.node(a).x - t.node(a).width / 2) + "," + (t.node(a).y - t.node(a).height / 2) + " )"));
2410
+ });
2411
+ }, W = function(e) {
2412
+ return e.replace(/\s/g, "").replace(/\./g, "_");
2413
+ }, kt = function(e, t, a, o) {
2414
+ y = Ut().requirement;
2415
+ var d = y.securityLevel;
2416
+ var u;
2417
+ d === "sandbox" && (u = At("#i" + t));
2418
+ var h = (d === "sandbox" ? At(u.nodes()[0].contentDocument.body) : At("body")).select("[id='".concat(t, "']"));
2419
+ Ae.insertLineEndings(h, y);
2420
+ var c = new A({
2421
+ multigraph: !1,
2422
+ compound: !1,
2423
+ directed: !0
2424
+ }).setGraph({
2425
+ rankdir: y.layoutDirection,
2426
+ marginx: 20,
2427
+ marginy: 20,
2428
+ nodesep: 100,
2429
+ edgesep: 100,
2430
+ ranksep: 100
2431
+ }).setDefaultEdgeLabel(function() {
2432
+ return {};
2433
+ });
2434
+ var g = o.db.getRequirements(), R = o.db.getElements(), x = o.db.getRelationships();
2435
+ Rt(g, c, h), mt(R, c, h), It(x, c), zs(c), bt(h, c), x.forEach(function(N) {
2436
+ Et(h, N, c, t, o);
2437
+ });
2438
+ var S = y.rect_padding, T = h.node().getBBox(), v = T.width + S * 2, A$1 = T.height + S * 2;
2439
+ Yg(h, A$1, v, y.useMaxWidth), h.attr("viewBox", "".concat(T.x - S, " ").concat(T.y - S, " ").concat(v, " ").concat(A$1));
2440
+ }, St = {
2441
+ draw: kt
2442
+ }, wt = {
2443
+ parser: Ge,
2444
+ db: pt,
2445
+ renderer: St,
2446
+ styles: _t
2447
+ };
2448
+
2449
+ export { wt as diagram };