@digipair/skill-web-chatbot 0.114.2 → 0.114.6

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