@digipair/skill-web-chatbot 0.114.2 → 0.114.3

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 (49) hide show
  1. package/dist/index.cjs.js +2118 -8
  2. package/dist/index.esm2.js +5 -5
  3. package/package.json +6 -2
  4. package/dist/SAP-icons.cjs.js +0 -2489
  5. package/dist/SAP-icons.cjs2.js +0 -2489
  6. package/dist/Tableau10-558cc280.cjs.js +0 -9
  7. package/dist/arc-d1f6357e.cjs.js +0 -88
  8. package/dist/array-2ff2c7a6.cjs.js +0 -11
  9. package/dist/blockDiagram-5dc23a45.cjs.js +0 -2916
  10. package/dist/c4Diagram-1e775db3.cjs.js +0 -4386
  11. package/dist/channel-ebbc4130.cjs.js +0 -9
  12. package/dist/classDiagram-f52caa06.cjs.js +0 -209
  13. package/dist/classDiagram-v2-640c694e.cjs.js +0 -401
  14. package/dist/clone-afc2f047.cjs.js +0 -10
  15. package/dist/createText-03b82060.cjs.js +0 -2940
  16. package/dist/edges-16357fde.cjs.js +0 -2002
  17. package/dist/erDiagram-c7ff1bec.cjs.js +0 -1807
  18. package/dist/flowDb-9a89ea33.cjs.js +0 -5542
  19. package/dist/flowDiagram-aadb13b0.cjs.js +0 -1351
  20. package/dist/flowDiagram-v2-f2119625.cjs.js +0 -31
  21. package/dist/flowchart-elk-definition-cf813a97.cjs.js +0 -50248
  22. package/dist/ganttDiagram-3c2fde2b.cjs.js +0 -3710
  23. package/dist/gitGraphDiagram-c3a0619c.cjs.js +0 -3815
  24. package/dist/graph-0ee63739.cjs.js +0 -954
  25. package/dist/index-bb6d8841.cjs.js +0 -648
  26. package/dist/index.cjs2.js +0 -76743
  27. package/dist/infoDiagram-2f5c50c0.cjs.js +0 -460
  28. package/dist/init-f9637058.cjs.js +0 -17
  29. package/dist/journeyDiagram-14fe341a.cjs.js +0 -1061
  30. package/dist/katex-d90b6d29.cjs.js +0 -25690
  31. package/dist/layout-fd473db2.cjs.js +0 -1613
  32. package/dist/line-24d93f1b.cjs.js +0 -34
  33. package/dist/linear-9bcf74c4.cjs.js +0 -537
  34. package/dist/mindmap-definition-9399c7e6.cjs.js +0 -20488
  35. package/dist/ordinal-5695958c.cjs.js +0 -330
  36. package/dist/path-428ebac9.cjs.js +0 -316
  37. package/dist/pieDiagram-828dae43.cjs.js +0 -949
  38. package/dist/quadrantDiagram-5fa00455.cjs.js +0 -2409
  39. package/dist/requirementDiagram-03163dc4.cjs.js +0 -2267
  40. package/dist/sankeyDiagram-52ec8976.cjs.js +0 -1848
  41. package/dist/sequenceDiagram-b517d154.cjs.js +0 -5948
  42. package/dist/stateDiagram-fca82b5b.cjs.js +0 -283
  43. package/dist/stateDiagram-v2-ed04200a.cjs.js +0 -373
  44. package/dist/styles-11e81fdd.cjs.js +0 -3943
  45. package/dist/styles-cacbff60.cjs.js +0 -2120
  46. package/dist/styles-e75131e4.cjs.js +0 -671
  47. package/dist/svgDrawCommon-ecc5f780.cjs.js +0 -68
  48. package/dist/timeline-definition-4ee9bff4.cjs.js +0 -1161
  49. package/dist/xychartDiagram-e5e6b652.cjs.js +0 -3150
@@ -1,3815 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index.cjs2.js');
4
-
5
- function _define_property(obj, key, value) {
6
- if (key in obj) {
7
- Object.defineProperty(obj, key, {
8
- value: value,
9
- enumerable: true,
10
- configurable: true,
11
- writable: true
12
- });
13
- } else {
14
- obj[key] = value;
15
- }
16
- return obj;
17
- }
18
- function _instanceof(left, right) {
19
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
20
- return !!right[Symbol.hasInstance](left);
21
- } else {
22
- return left instanceof right;
23
- }
24
- }
25
- function _object_spread(target) {
26
- for(var i = 1; i < arguments.length; i++){
27
- var source = arguments[i] != null ? arguments[i] : {};
28
- var ownKeys = Object.keys(source);
29
- if (typeof Object.getOwnPropertySymbols === "function") {
30
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
31
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
32
- }));
33
- }
34
- ownKeys.forEach(function(key) {
35
- _define_property(target, key, source[key]);
36
- });
37
- }
38
- return target;
39
- }
40
- function ownKeys(object, enumerableOnly) {
41
- var keys = Object.keys(object);
42
- if (Object.getOwnPropertySymbols) {
43
- var symbols = Object.getOwnPropertySymbols(object);
44
- keys.push.apply(keys, symbols);
45
- }
46
- return keys;
47
- }
48
- function _object_spread_props(target, source) {
49
- source = source != null ? source : {};
50
- if (Object.getOwnPropertyDescriptors) {
51
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
52
- } else {
53
- ownKeys(Object(source)).forEach(function(key) {
54
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
55
- });
56
- }
57
- return target;
58
- }
59
- function _type_of(obj) {
60
- "@swc/helpers - typeof";
61
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
62
- }
63
- var me = function() {
64
- var r = function r(G, o, u, d) {
65
- for(u = u || {}, d = G.length; d--; u[G[d]] = o);
66
- return u;
67
- }, n = [
68
- 1,
69
- 3
70
- ], l = [
71
- 1,
72
- 6
73
- ], h = [
74
- 1,
75
- 4
76
- ], i = [
77
- 1,
78
- 5
79
- ], c = [
80
- 2,
81
- 5
82
- ], p = [
83
- 1,
84
- 12
85
- ], m = [
86
- 5,
87
- 7,
88
- 13,
89
- 19,
90
- 21,
91
- 23,
92
- 24,
93
- 26,
94
- 28,
95
- 31,
96
- 37,
97
- 40,
98
- 47
99
- ], x = [
100
- 7,
101
- 13,
102
- 19,
103
- 21,
104
- 23,
105
- 24,
106
- 26,
107
- 28,
108
- 31,
109
- 37,
110
- 40
111
- ], y = [
112
- 7,
113
- 12,
114
- 13,
115
- 19,
116
- 21,
117
- 23,
118
- 24,
119
- 26,
120
- 28,
121
- 31,
122
- 37,
123
- 40
124
- ], a = [
125
- 7,
126
- 13,
127
- 47
128
- ], R = [
129
- 1,
130
- 42
131
- ], _ = [
132
- 1,
133
- 41
134
- ], b = [
135
- 7,
136
- 13,
137
- 29,
138
- 32,
139
- 35,
140
- 38,
141
- 47
142
- ], f = [
143
- 1,
144
- 55
145
- ], k = [
146
- 1,
147
- 56
148
- ], g = [
149
- 1,
150
- 57
151
- ], E = [
152
- 7,
153
- 13,
154
- 32,
155
- 35,
156
- 42,
157
- 47
158
- ], z = {
159
- trace: function trace() {},
160
- yy: {},
161
- symbols_: {
162
- error: 2,
163
- start: 3,
164
- eol: 4,
165
- GG: 5,
166
- document: 6,
167
- EOF: 7,
168
- ":": 8,
169
- DIR: 9,
170
- options: 10,
171
- body: 11,
172
- OPT: 12,
173
- NL: 13,
174
- line: 14,
175
- statement: 15,
176
- commitStatement: 16,
177
- mergeStatement: 17,
178
- cherryPickStatement: 18,
179
- acc_title: 19,
180
- acc_title_value: 20,
181
- acc_descr: 21,
182
- acc_descr_value: 22,
183
- acc_descr_multiline_value: 23,
184
- section: 24,
185
- branchStatement: 25,
186
- CHECKOUT: 26,
187
- ref: 27,
188
- BRANCH: 28,
189
- ORDER: 29,
190
- NUM: 30,
191
- CHERRY_PICK: 31,
192
- COMMIT_ID: 32,
193
- STR: 33,
194
- PARENT_COMMIT: 34,
195
- COMMIT_TAG: 35,
196
- EMPTYSTR: 36,
197
- MERGE: 37,
198
- COMMIT_TYPE: 38,
199
- commitType: 39,
200
- COMMIT: 40,
201
- commit_arg: 41,
202
- COMMIT_MSG: 42,
203
- NORMAL: 43,
204
- REVERSE: 44,
205
- HIGHLIGHT: 45,
206
- ID: 46,
207
- ";": 47,
208
- $accept: 0,
209
- $end: 1
210
- },
211
- terminals_: {
212
- 2: "error",
213
- 5: "GG",
214
- 7: "EOF",
215
- 8: ":",
216
- 9: "DIR",
217
- 12: "OPT",
218
- 13: "NL",
219
- 19: "acc_title",
220
- 20: "acc_title_value",
221
- 21: "acc_descr",
222
- 22: "acc_descr_value",
223
- 23: "acc_descr_multiline_value",
224
- 24: "section",
225
- 26: "CHECKOUT",
226
- 28: "BRANCH",
227
- 29: "ORDER",
228
- 30: "NUM",
229
- 31: "CHERRY_PICK",
230
- 32: "COMMIT_ID",
231
- 33: "STR",
232
- 34: "PARENT_COMMIT",
233
- 35: "COMMIT_TAG",
234
- 36: "EMPTYSTR",
235
- 37: "MERGE",
236
- 38: "COMMIT_TYPE",
237
- 40: "COMMIT",
238
- 42: "COMMIT_MSG",
239
- 43: "NORMAL",
240
- 44: "REVERSE",
241
- 45: "HIGHLIGHT",
242
- 46: "ID",
243
- 47: ";"
244
- },
245
- productions_: [
246
- 0,
247
- [
248
- 3,
249
- 2
250
- ],
251
- [
252
- 3,
253
- 3
254
- ],
255
- [
256
- 3,
257
- 4
258
- ],
259
- [
260
- 3,
261
- 5
262
- ],
263
- [
264
- 6,
265
- 0
266
- ],
267
- [
268
- 6,
269
- 2
270
- ],
271
- [
272
- 10,
273
- 2
274
- ],
275
- [
276
- 10,
277
- 1
278
- ],
279
- [
280
- 11,
281
- 0
282
- ],
283
- [
284
- 11,
285
- 2
286
- ],
287
- [
288
- 14,
289
- 2
290
- ],
291
- [
292
- 14,
293
- 1
294
- ],
295
- [
296
- 15,
297
- 1
298
- ],
299
- [
300
- 15,
301
- 1
302
- ],
303
- [
304
- 15,
305
- 1
306
- ],
307
- [
308
- 15,
309
- 2
310
- ],
311
- [
312
- 15,
313
- 2
314
- ],
315
- [
316
- 15,
317
- 1
318
- ],
319
- [
320
- 15,
321
- 1
322
- ],
323
- [
324
- 15,
325
- 1
326
- ],
327
- [
328
- 15,
329
- 2
330
- ],
331
- [
332
- 25,
333
- 2
334
- ],
335
- [
336
- 25,
337
- 4
338
- ],
339
- [
340
- 18,
341
- 3
342
- ],
343
- [
344
- 18,
345
- 5
346
- ],
347
- [
348
- 18,
349
- 5
350
- ],
351
- [
352
- 18,
353
- 7
354
- ],
355
- [
356
- 18,
357
- 7
358
- ],
359
- [
360
- 18,
361
- 5
362
- ],
363
- [
364
- 18,
365
- 5
366
- ],
367
- [
368
- 18,
369
- 5
370
- ],
371
- [
372
- 18,
373
- 7
374
- ],
375
- [
376
- 18,
377
- 7
378
- ],
379
- [
380
- 18,
381
- 7
382
- ],
383
- [
384
- 18,
385
- 7
386
- ],
387
- [
388
- 17,
389
- 2
390
- ],
391
- [
392
- 17,
393
- 4
394
- ],
395
- [
396
- 17,
397
- 4
398
- ],
399
- [
400
- 17,
401
- 4
402
- ],
403
- [
404
- 17,
405
- 6
406
- ],
407
- [
408
- 17,
409
- 6
410
- ],
411
- [
412
- 17,
413
- 6
414
- ],
415
- [
416
- 17,
417
- 6
418
- ],
419
- [
420
- 17,
421
- 6
422
- ],
423
- [
424
- 17,
425
- 6
426
- ],
427
- [
428
- 17,
429
- 8
430
- ],
431
- [
432
- 17,
433
- 8
434
- ],
435
- [
436
- 17,
437
- 8
438
- ],
439
- [
440
- 17,
441
- 8
442
- ],
443
- [
444
- 17,
445
- 8
446
- ],
447
- [
448
- 17,
449
- 8
450
- ],
451
- [
452
- 16,
453
- 2
454
- ],
455
- [
456
- 16,
457
- 3
458
- ],
459
- [
460
- 16,
461
- 3
462
- ],
463
- [
464
- 16,
465
- 5
466
- ],
467
- [
468
- 16,
469
- 5
470
- ],
471
- [
472
- 16,
473
- 3
474
- ],
475
- [
476
- 16,
477
- 5
478
- ],
479
- [
480
- 16,
481
- 5
482
- ],
483
- [
484
- 16,
485
- 5
486
- ],
487
- [
488
- 16,
489
- 5
490
- ],
491
- [
492
- 16,
493
- 7
494
- ],
495
- [
496
- 16,
497
- 7
498
- ],
499
- [
500
- 16,
501
- 7
502
- ],
503
- [
504
- 16,
505
- 7
506
- ],
507
- [
508
- 16,
509
- 7
510
- ],
511
- [
512
- 16,
513
- 7
514
- ],
515
- [
516
- 16,
517
- 3
518
- ],
519
- [
520
- 16,
521
- 5
522
- ],
523
- [
524
- 16,
525
- 5
526
- ],
527
- [
528
- 16,
529
- 5
530
- ],
531
- [
532
- 16,
533
- 5
534
- ],
535
- [
536
- 16,
537
- 5
538
- ],
539
- [
540
- 16,
541
- 5
542
- ],
543
- [
544
- 16,
545
- 7
546
- ],
547
- [
548
- 16,
549
- 7
550
- ],
551
- [
552
- 16,
553
- 7
554
- ],
555
- [
556
- 16,
557
- 7
558
- ],
559
- [
560
- 16,
561
- 7
562
- ],
563
- [
564
- 16,
565
- 7
566
- ],
567
- [
568
- 16,
569
- 7
570
- ],
571
- [
572
- 16,
573
- 7
574
- ],
575
- [
576
- 16,
577
- 7
578
- ],
579
- [
580
- 16,
581
- 7
582
- ],
583
- [
584
- 16,
585
- 7
586
- ],
587
- [
588
- 16,
589
- 7
590
- ],
591
- [
592
- 16,
593
- 7
594
- ],
595
- [
596
- 16,
597
- 7
598
- ],
599
- [
600
- 16,
601
- 7
602
- ],
603
- [
604
- 16,
605
- 7
606
- ],
607
- [
608
- 16,
609
- 7
610
- ],
611
- [
612
- 16,
613
- 7
614
- ],
615
- [
616
- 16,
617
- 9
618
- ],
619
- [
620
- 16,
621
- 9
622
- ],
623
- [
624
- 16,
625
- 9
626
- ],
627
- [
628
- 16,
629
- 9
630
- ],
631
- [
632
- 16,
633
- 9
634
- ],
635
- [
636
- 16,
637
- 9
638
- ],
639
- [
640
- 16,
641
- 9
642
- ],
643
- [
644
- 16,
645
- 9
646
- ],
647
- [
648
- 16,
649
- 9
650
- ],
651
- [
652
- 16,
653
- 9
654
- ],
655
- [
656
- 16,
657
- 9
658
- ],
659
- [
660
- 16,
661
- 9
662
- ],
663
- [
664
- 16,
665
- 9
666
- ],
667
- [
668
- 16,
669
- 9
670
- ],
671
- [
672
- 16,
673
- 9
674
- ],
675
- [
676
- 16,
677
- 9
678
- ],
679
- [
680
- 16,
681
- 9
682
- ],
683
- [
684
- 16,
685
- 9
686
- ],
687
- [
688
- 16,
689
- 9
690
- ],
691
- [
692
- 16,
693
- 9
694
- ],
695
- [
696
- 16,
697
- 9
698
- ],
699
- [
700
- 16,
701
- 9
702
- ],
703
- [
704
- 16,
705
- 9
706
- ],
707
- [
708
- 16,
709
- 9
710
- ],
711
- [
712
- 41,
713
- 0
714
- ],
715
- [
716
- 41,
717
- 1
718
- ],
719
- [
720
- 39,
721
- 1
722
- ],
723
- [
724
- 39,
725
- 1
726
- ],
727
- [
728
- 39,
729
- 1
730
- ],
731
- [
732
- 27,
733
- 1
734
- ],
735
- [
736
- 27,
737
- 1
738
- ],
739
- [
740
- 4,
741
- 1
742
- ],
743
- [
744
- 4,
745
- 1
746
- ],
747
- [
748
- 4,
749
- 1
750
- ]
751
- ],
752
- performAction: function performAction(o, u, d, s, T, e, X) {
753
- var t = e.length - 1;
754
- switch(T){
755
- case 2:
756
- return e[t];
757
- case 3:
758
- return e[t - 1];
759
- case 4:
760
- return s.setDirection(e[t - 3]), e[t - 1];
761
- case 6:
762
- s.setOptions(e[t - 1]), this.$ = e[t];
763
- break;
764
- case 7:
765
- e[t - 1] += e[t], this.$ = e[t - 1];
766
- break;
767
- case 9:
768
- this.$ = [];
769
- break;
770
- case 10:
771
- e[t - 1].push(e[t]), this.$ = e[t - 1];
772
- break;
773
- case 11:
774
- this.$ = e[t - 1];
775
- break;
776
- case 16:
777
- this.$ = e[t].trim(), s.setAccTitle(this.$);
778
- break;
779
- case 17:
780
- case 18:
781
- this.$ = e[t].trim(), s.setAccDescription(this.$);
782
- break;
783
- case 19:
784
- s.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
785
- break;
786
- case 21:
787
- s.checkout(e[t]);
788
- break;
789
- case 22:
790
- s.branch(e[t]);
791
- break;
792
- case 23:
793
- s.branch(e[t - 2], e[t]);
794
- break;
795
- case 24:
796
- s.cherryPick(e[t], "", void 0);
797
- break;
798
- case 25:
799
- s.cherryPick(e[t - 2], "", void 0, e[t]);
800
- break;
801
- case 26:
802
- s.cherryPick(e[t - 2], "", e[t]);
803
- break;
804
- case 27:
805
- s.cherryPick(e[t - 4], "", e[t], e[t - 2]);
806
- break;
807
- case 28:
808
- s.cherryPick(e[t - 4], "", e[t - 2], e[t]);
809
- break;
810
- case 29:
811
- s.cherryPick(e[t], "", e[t - 2]);
812
- break;
813
- case 30:
814
- s.cherryPick(e[t], "", "");
815
- break;
816
- case 31:
817
- s.cherryPick(e[t - 2], "", "");
818
- break;
819
- case 32:
820
- s.cherryPick(e[t - 4], "", "", e[t - 2]);
821
- break;
822
- case 33:
823
- s.cherryPick(e[t - 4], "", "", e[t]);
824
- break;
825
- case 34:
826
- s.cherryPick(e[t - 2], "", e[t - 4], e[t]);
827
- break;
828
- case 35:
829
- s.cherryPick(e[t - 2], "", "", e[t]);
830
- break;
831
- case 36:
832
- s.merge(e[t], "", "", "");
833
- break;
834
- case 37:
835
- s.merge(e[t - 2], e[t], "", "");
836
- break;
837
- case 38:
838
- s.merge(e[t - 2], "", e[t], "");
839
- break;
840
- case 39:
841
- s.merge(e[t - 2], "", "", e[t]);
842
- break;
843
- case 40:
844
- s.merge(e[t - 4], e[t], "", e[t - 2]);
845
- break;
846
- case 41:
847
- s.merge(e[t - 4], "", e[t], e[t - 2]);
848
- break;
849
- case 42:
850
- s.merge(e[t - 4], "", e[t - 2], e[t]);
851
- break;
852
- case 43:
853
- s.merge(e[t - 4], e[t - 2], e[t], "");
854
- break;
855
- case 44:
856
- s.merge(e[t - 4], e[t - 2], "", e[t]);
857
- break;
858
- case 45:
859
- s.merge(e[t - 4], e[t], e[t - 2], "");
860
- break;
861
- case 46:
862
- s.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
863
- break;
864
- case 47:
865
- s.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
866
- break;
867
- case 48:
868
- s.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
869
- break;
870
- case 49:
871
- s.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
872
- break;
873
- case 50:
874
- s.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
875
- break;
876
- case 51:
877
- s.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
878
- break;
879
- case 52:
880
- s.commit(e[t]);
881
- break;
882
- case 53:
883
- s.commit("", "", s.commitType.NORMAL, e[t]);
884
- break;
885
- case 54:
886
- s.commit("", "", e[t], "");
887
- break;
888
- case 55:
889
- s.commit("", "", e[t], e[t - 2]);
890
- break;
891
- case 56:
892
- s.commit("", "", e[t - 2], e[t]);
893
- break;
894
- case 57:
895
- s.commit("", e[t], s.commitType.NORMAL, "");
896
- break;
897
- case 58:
898
- s.commit("", e[t - 2], s.commitType.NORMAL, e[t]);
899
- break;
900
- case 59:
901
- s.commit("", e[t], s.commitType.NORMAL, e[t - 2]);
902
- break;
903
- case 60:
904
- s.commit("", e[t - 2], e[t], "");
905
- break;
906
- case 61:
907
- s.commit("", e[t], e[t - 2], "");
908
- break;
909
- case 62:
910
- s.commit("", e[t - 4], e[t - 2], e[t]);
911
- break;
912
- case 63:
913
- s.commit("", e[t - 4], e[t], e[t - 2]);
914
- break;
915
- case 64:
916
- s.commit("", e[t - 2], e[t - 4], e[t]);
917
- break;
918
- case 65:
919
- s.commit("", e[t], e[t - 4], e[t - 2]);
920
- break;
921
- case 66:
922
- s.commit("", e[t], e[t - 2], e[t - 4]);
923
- break;
924
- case 67:
925
- s.commit("", e[t - 2], e[t], e[t - 4]);
926
- break;
927
- case 68:
928
- s.commit(e[t], "", s.commitType.NORMAL, "");
929
- break;
930
- case 69:
931
- s.commit(e[t], "", s.commitType.NORMAL, e[t - 2]);
932
- break;
933
- case 70:
934
- s.commit(e[t - 2], "", s.commitType.NORMAL, e[t]);
935
- break;
936
- case 71:
937
- s.commit(e[t - 2], "", e[t], "");
938
- break;
939
- case 72:
940
- s.commit(e[t], "", e[t - 2], "");
941
- break;
942
- case 73:
943
- s.commit(e[t], e[t - 2], s.commitType.NORMAL, "");
944
- break;
945
- case 74:
946
- s.commit(e[t - 2], e[t], s.commitType.NORMAL, "");
947
- break;
948
- case 75:
949
- s.commit(e[t - 4], "", e[t - 2], e[t]);
950
- break;
951
- case 76:
952
- s.commit(e[t - 4], "", e[t], e[t - 2]);
953
- break;
954
- case 77:
955
- s.commit(e[t - 2], "", e[t - 4], e[t]);
956
- break;
957
- case 78:
958
- s.commit(e[t], "", e[t - 4], e[t - 2]);
959
- break;
960
- case 79:
961
- s.commit(e[t], "", e[t - 2], e[t - 4]);
962
- break;
963
- case 80:
964
- s.commit(e[t - 2], "", e[t], e[t - 4]);
965
- break;
966
- case 81:
967
- s.commit(e[t - 4], e[t], e[t - 2], "");
968
- break;
969
- case 82:
970
- s.commit(e[t - 4], e[t - 2], e[t], "");
971
- break;
972
- case 83:
973
- s.commit(e[t - 2], e[t], e[t - 4], "");
974
- break;
975
- case 84:
976
- s.commit(e[t], e[t - 2], e[t - 4], "");
977
- break;
978
- case 85:
979
- s.commit(e[t], e[t - 4], e[t - 2], "");
980
- break;
981
- case 86:
982
- s.commit(e[t - 2], e[t - 4], e[t], "");
983
- break;
984
- case 87:
985
- s.commit(e[t - 4], e[t], s.commitType.NORMAL, e[t - 2]);
986
- break;
987
- case 88:
988
- s.commit(e[t - 4], e[t - 2], s.commitType.NORMAL, e[t]);
989
- break;
990
- case 89:
991
- s.commit(e[t - 2], e[t], s.commitType.NORMAL, e[t - 4]);
992
- break;
993
- case 90:
994
- s.commit(e[t], e[t - 2], s.commitType.NORMAL, e[t - 4]);
995
- break;
996
- case 91:
997
- s.commit(e[t], e[t - 4], s.commitType.NORMAL, e[t - 2]);
998
- break;
999
- case 92:
1000
- s.commit(e[t - 2], e[t - 4], s.commitType.NORMAL, e[t]);
1001
- break;
1002
- case 93:
1003
- s.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
1004
- break;
1005
- case 94:
1006
- s.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
1007
- break;
1008
- case 95:
1009
- s.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
1010
- break;
1011
- case 96:
1012
- s.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
1013
- break;
1014
- case 97:
1015
- s.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
1016
- break;
1017
- case 98:
1018
- s.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
1019
- break;
1020
- case 99:
1021
- s.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
1022
- break;
1023
- case 100:
1024
- s.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
1025
- break;
1026
- case 101:
1027
- s.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
1028
- break;
1029
- case 102:
1030
- s.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
1031
- break;
1032
- case 103:
1033
- s.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
1034
- break;
1035
- case 104:
1036
- s.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
1037
- break;
1038
- case 105:
1039
- s.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
1040
- break;
1041
- case 106:
1042
- s.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
1043
- break;
1044
- case 107:
1045
- s.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
1046
- break;
1047
- case 108:
1048
- s.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
1049
- break;
1050
- case 109:
1051
- s.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
1052
- break;
1053
- case 110:
1054
- s.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
1055
- break;
1056
- case 111:
1057
- s.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
1058
- break;
1059
- case 112:
1060
- s.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
1061
- break;
1062
- case 113:
1063
- s.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
1064
- break;
1065
- case 114:
1066
- s.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
1067
- break;
1068
- case 115:
1069
- s.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
1070
- break;
1071
- case 116:
1072
- s.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
1073
- break;
1074
- case 117:
1075
- this.$ = "";
1076
- break;
1077
- case 118:
1078
- this.$ = e[t];
1079
- break;
1080
- case 119:
1081
- this.$ = s.commitType.NORMAL;
1082
- break;
1083
- case 120:
1084
- this.$ = s.commitType.REVERSE;
1085
- break;
1086
- case 121:
1087
- this.$ = s.commitType.HIGHLIGHT;
1088
- break;
1089
- }
1090
- },
1091
- table: [
1092
- {
1093
- 3: 1,
1094
- 4: 2,
1095
- 5: n,
1096
- 7: l,
1097
- 13: h,
1098
- 47: i
1099
- },
1100
- {
1101
- 1: [
1102
- 3
1103
- ]
1104
- },
1105
- {
1106
- 3: 7,
1107
- 4: 2,
1108
- 5: n,
1109
- 7: l,
1110
- 13: h,
1111
- 47: i
1112
- },
1113
- {
1114
- 6: 8,
1115
- 7: c,
1116
- 8: [
1117
- 1,
1118
- 9
1119
- ],
1120
- 9: [
1121
- 1,
1122
- 10
1123
- ],
1124
- 10: 11,
1125
- 13: p
1126
- },
1127
- r(m, [
1128
- 2,
1129
- 124
1130
- ]),
1131
- r(m, [
1132
- 2,
1133
- 125
1134
- ]),
1135
- r(m, [
1136
- 2,
1137
- 126
1138
- ]),
1139
- {
1140
- 1: [
1141
- 2,
1142
- 1
1143
- ]
1144
- },
1145
- {
1146
- 7: [
1147
- 1,
1148
- 13
1149
- ]
1150
- },
1151
- {
1152
- 6: 14,
1153
- 7: c,
1154
- 10: 11,
1155
- 13: p
1156
- },
1157
- {
1158
- 8: [
1159
- 1,
1160
- 15
1161
- ]
1162
- },
1163
- r(x, [
1164
- 2,
1165
- 9
1166
- ], {
1167
- 11: 16,
1168
- 12: [
1169
- 1,
1170
- 17
1171
- ]
1172
- }),
1173
- r(y, [
1174
- 2,
1175
- 8
1176
- ]),
1177
- {
1178
- 1: [
1179
- 2,
1180
- 2
1181
- ]
1182
- },
1183
- {
1184
- 7: [
1185
- 1,
1186
- 18
1187
- ]
1188
- },
1189
- {
1190
- 6: 19,
1191
- 7: c,
1192
- 10: 11,
1193
- 13: p
1194
- },
1195
- {
1196
- 7: [
1197
- 2,
1198
- 6
1199
- ],
1200
- 13: [
1201
- 1,
1202
- 22
1203
- ],
1204
- 14: 20,
1205
- 15: 21,
1206
- 16: 23,
1207
- 17: 24,
1208
- 18: 25,
1209
- 19: [
1210
- 1,
1211
- 26
1212
- ],
1213
- 21: [
1214
- 1,
1215
- 27
1216
- ],
1217
- 23: [
1218
- 1,
1219
- 28
1220
- ],
1221
- 24: [
1222
- 1,
1223
- 29
1224
- ],
1225
- 25: 30,
1226
- 26: [
1227
- 1,
1228
- 31
1229
- ],
1230
- 28: [
1231
- 1,
1232
- 35
1233
- ],
1234
- 31: [
1235
- 1,
1236
- 34
1237
- ],
1238
- 37: [
1239
- 1,
1240
- 33
1241
- ],
1242
- 40: [
1243
- 1,
1244
- 32
1245
- ]
1246
- },
1247
- r(y, [
1248
- 2,
1249
- 7
1250
- ]),
1251
- {
1252
- 1: [
1253
- 2,
1254
- 3
1255
- ]
1256
- },
1257
- {
1258
- 7: [
1259
- 1,
1260
- 36
1261
- ]
1262
- },
1263
- r(x, [
1264
- 2,
1265
- 10
1266
- ]),
1267
- {
1268
- 4: 37,
1269
- 7: l,
1270
- 13: h,
1271
- 47: i
1272
- },
1273
- r(x, [
1274
- 2,
1275
- 12
1276
- ]),
1277
- r(a, [
1278
- 2,
1279
- 13
1280
- ]),
1281
- r(a, [
1282
- 2,
1283
- 14
1284
- ]),
1285
- r(a, [
1286
- 2,
1287
- 15
1288
- ]),
1289
- {
1290
- 20: [
1291
- 1,
1292
- 38
1293
- ]
1294
- },
1295
- {
1296
- 22: [
1297
- 1,
1298
- 39
1299
- ]
1300
- },
1301
- r(a, [
1302
- 2,
1303
- 18
1304
- ]),
1305
- r(a, [
1306
- 2,
1307
- 19
1308
- ]),
1309
- r(a, [
1310
- 2,
1311
- 20
1312
- ]),
1313
- {
1314
- 27: 40,
1315
- 33: R,
1316
- 46: _
1317
- },
1318
- r(a, [
1319
- 2,
1320
- 117
1321
- ], {
1322
- 41: 43,
1323
- 32: [
1324
- 1,
1325
- 46
1326
- ],
1327
- 33: [
1328
- 1,
1329
- 48
1330
- ],
1331
- 35: [
1332
- 1,
1333
- 44
1334
- ],
1335
- 38: [
1336
- 1,
1337
- 45
1338
- ],
1339
- 42: [
1340
- 1,
1341
- 47
1342
- ]
1343
- }),
1344
- {
1345
- 27: 49,
1346
- 33: R,
1347
- 46: _
1348
- },
1349
- {
1350
- 32: [
1351
- 1,
1352
- 50
1353
- ],
1354
- 35: [
1355
- 1,
1356
- 51
1357
- ]
1358
- },
1359
- {
1360
- 27: 52,
1361
- 33: R,
1362
- 46: _
1363
- },
1364
- {
1365
- 1: [
1366
- 2,
1367
- 4
1368
- ]
1369
- },
1370
- r(x, [
1371
- 2,
1372
- 11
1373
- ]),
1374
- r(a, [
1375
- 2,
1376
- 16
1377
- ]),
1378
- r(a, [
1379
- 2,
1380
- 17
1381
- ]),
1382
- r(a, [
1383
- 2,
1384
- 21
1385
- ]),
1386
- r(b, [
1387
- 2,
1388
- 122
1389
- ]),
1390
- r(b, [
1391
- 2,
1392
- 123
1393
- ]),
1394
- r(a, [
1395
- 2,
1396
- 52
1397
- ]),
1398
- {
1399
- 33: [
1400
- 1,
1401
- 53
1402
- ]
1403
- },
1404
- {
1405
- 39: 54,
1406
- 43: f,
1407
- 44: k,
1408
- 45: g
1409
- },
1410
- {
1411
- 33: [
1412
- 1,
1413
- 58
1414
- ]
1415
- },
1416
- {
1417
- 33: [
1418
- 1,
1419
- 59
1420
- ]
1421
- },
1422
- r(a, [
1423
- 2,
1424
- 118
1425
- ]),
1426
- r(a, [
1427
- 2,
1428
- 36
1429
- ], {
1430
- 32: [
1431
- 1,
1432
- 60
1433
- ],
1434
- 35: [
1435
- 1,
1436
- 62
1437
- ],
1438
- 38: [
1439
- 1,
1440
- 61
1441
- ]
1442
- }),
1443
- {
1444
- 33: [
1445
- 1,
1446
- 63
1447
- ]
1448
- },
1449
- {
1450
- 33: [
1451
- 1,
1452
- 64
1453
- ],
1454
- 36: [
1455
- 1,
1456
- 65
1457
- ]
1458
- },
1459
- r(a, [
1460
- 2,
1461
- 22
1462
- ], {
1463
- 29: [
1464
- 1,
1465
- 66
1466
- ]
1467
- }),
1468
- r(a, [
1469
- 2,
1470
- 53
1471
- ], {
1472
- 32: [
1473
- 1,
1474
- 68
1475
- ],
1476
- 38: [
1477
- 1,
1478
- 67
1479
- ],
1480
- 42: [
1481
- 1,
1482
- 69
1483
- ]
1484
- }),
1485
- r(a, [
1486
- 2,
1487
- 54
1488
- ], {
1489
- 32: [
1490
- 1,
1491
- 71
1492
- ],
1493
- 35: [
1494
- 1,
1495
- 70
1496
- ],
1497
- 42: [
1498
- 1,
1499
- 72
1500
- ]
1501
- }),
1502
- r(E, [
1503
- 2,
1504
- 119
1505
- ]),
1506
- r(E, [
1507
- 2,
1508
- 120
1509
- ]),
1510
- r(E, [
1511
- 2,
1512
- 121
1513
- ]),
1514
- r(a, [
1515
- 2,
1516
- 57
1517
- ], {
1518
- 35: [
1519
- 1,
1520
- 73
1521
- ],
1522
- 38: [
1523
- 1,
1524
- 74
1525
- ],
1526
- 42: [
1527
- 1,
1528
- 75
1529
- ]
1530
- }),
1531
- r(a, [
1532
- 2,
1533
- 68
1534
- ], {
1535
- 32: [
1536
- 1,
1537
- 78
1538
- ],
1539
- 35: [
1540
- 1,
1541
- 76
1542
- ],
1543
- 38: [
1544
- 1,
1545
- 77
1546
- ]
1547
- }),
1548
- {
1549
- 33: [
1550
- 1,
1551
- 79
1552
- ]
1553
- },
1554
- {
1555
- 39: 80,
1556
- 43: f,
1557
- 44: k,
1558
- 45: g
1559
- },
1560
- {
1561
- 33: [
1562
- 1,
1563
- 81
1564
- ]
1565
- },
1566
- r(a, [
1567
- 2,
1568
- 24
1569
- ], {
1570
- 34: [
1571
- 1,
1572
- 82
1573
- ],
1574
- 35: [
1575
- 1,
1576
- 83
1577
- ]
1578
- }),
1579
- {
1580
- 32: [
1581
- 1,
1582
- 84
1583
- ]
1584
- },
1585
- {
1586
- 32: [
1587
- 1,
1588
- 85
1589
- ]
1590
- },
1591
- {
1592
- 30: [
1593
- 1,
1594
- 86
1595
- ]
1596
- },
1597
- {
1598
- 39: 87,
1599
- 43: f,
1600
- 44: k,
1601
- 45: g
1602
- },
1603
- {
1604
- 33: [
1605
- 1,
1606
- 88
1607
- ]
1608
- },
1609
- {
1610
- 33: [
1611
- 1,
1612
- 89
1613
- ]
1614
- },
1615
- {
1616
- 33: [
1617
- 1,
1618
- 90
1619
- ]
1620
- },
1621
- {
1622
- 33: [
1623
- 1,
1624
- 91
1625
- ]
1626
- },
1627
- {
1628
- 33: [
1629
- 1,
1630
- 92
1631
- ]
1632
- },
1633
- {
1634
- 33: [
1635
- 1,
1636
- 93
1637
- ]
1638
- },
1639
- {
1640
- 39: 94,
1641
- 43: f,
1642
- 44: k,
1643
- 45: g
1644
- },
1645
- {
1646
- 33: [
1647
- 1,
1648
- 95
1649
- ]
1650
- },
1651
- {
1652
- 33: [
1653
- 1,
1654
- 96
1655
- ]
1656
- },
1657
- {
1658
- 39: 97,
1659
- 43: f,
1660
- 44: k,
1661
- 45: g
1662
- },
1663
- {
1664
- 33: [
1665
- 1,
1666
- 98
1667
- ]
1668
- },
1669
- r(a, [
1670
- 2,
1671
- 37
1672
- ], {
1673
- 35: [
1674
- 1,
1675
- 100
1676
- ],
1677
- 38: [
1678
- 1,
1679
- 99
1680
- ]
1681
- }),
1682
- r(a, [
1683
- 2,
1684
- 38
1685
- ], {
1686
- 32: [
1687
- 1,
1688
- 102
1689
- ],
1690
- 35: [
1691
- 1,
1692
- 101
1693
- ]
1694
- }),
1695
- r(a, [
1696
- 2,
1697
- 39
1698
- ], {
1699
- 32: [
1700
- 1,
1701
- 103
1702
- ],
1703
- 38: [
1704
- 1,
1705
- 104
1706
- ]
1707
- }),
1708
- {
1709
- 33: [
1710
- 1,
1711
- 105
1712
- ]
1713
- },
1714
- {
1715
- 33: [
1716
- 1,
1717
- 106
1718
- ],
1719
- 36: [
1720
- 1,
1721
- 107
1722
- ]
1723
- },
1724
- {
1725
- 33: [
1726
- 1,
1727
- 108
1728
- ]
1729
- },
1730
- {
1731
- 33: [
1732
- 1,
1733
- 109
1734
- ]
1735
- },
1736
- r(a, [
1737
- 2,
1738
- 23
1739
- ]),
1740
- r(a, [
1741
- 2,
1742
- 55
1743
- ], {
1744
- 32: [
1745
- 1,
1746
- 110
1747
- ],
1748
- 42: [
1749
- 1,
1750
- 111
1751
- ]
1752
- }),
1753
- r(a, [
1754
- 2,
1755
- 59
1756
- ], {
1757
- 38: [
1758
- 1,
1759
- 112
1760
- ],
1761
- 42: [
1762
- 1,
1763
- 113
1764
- ]
1765
- }),
1766
- r(a, [
1767
- 2,
1768
- 69
1769
- ], {
1770
- 32: [
1771
- 1,
1772
- 115
1773
- ],
1774
- 38: [
1775
- 1,
1776
- 114
1777
- ]
1778
- }),
1779
- r(a, [
1780
- 2,
1781
- 56
1782
- ], {
1783
- 32: [
1784
- 1,
1785
- 116
1786
- ],
1787
- 42: [
1788
- 1,
1789
- 117
1790
- ]
1791
- }),
1792
- r(a, [
1793
- 2,
1794
- 61
1795
- ], {
1796
- 35: [
1797
- 1,
1798
- 118
1799
- ],
1800
- 42: [
1801
- 1,
1802
- 119
1803
- ]
1804
- }),
1805
- r(a, [
1806
- 2,
1807
- 72
1808
- ], {
1809
- 32: [
1810
- 1,
1811
- 121
1812
- ],
1813
- 35: [
1814
- 1,
1815
- 120
1816
- ]
1817
- }),
1818
- r(a, [
1819
- 2,
1820
- 58
1821
- ], {
1822
- 38: [
1823
- 1,
1824
- 122
1825
- ],
1826
- 42: [
1827
- 1,
1828
- 123
1829
- ]
1830
- }),
1831
- r(a, [
1832
- 2,
1833
- 60
1834
- ], {
1835
- 35: [
1836
- 1,
1837
- 124
1838
- ],
1839
- 42: [
1840
- 1,
1841
- 125
1842
- ]
1843
- }),
1844
- r(a, [
1845
- 2,
1846
- 73
1847
- ], {
1848
- 35: [
1849
- 1,
1850
- 127
1851
- ],
1852
- 38: [
1853
- 1,
1854
- 126
1855
- ]
1856
- }),
1857
- r(a, [
1858
- 2,
1859
- 70
1860
- ], {
1861
- 32: [
1862
- 1,
1863
- 129
1864
- ],
1865
- 38: [
1866
- 1,
1867
- 128
1868
- ]
1869
- }),
1870
- r(a, [
1871
- 2,
1872
- 71
1873
- ], {
1874
- 32: [
1875
- 1,
1876
- 131
1877
- ],
1878
- 35: [
1879
- 1,
1880
- 130
1881
- ]
1882
- }),
1883
- r(a, [
1884
- 2,
1885
- 74
1886
- ], {
1887
- 35: [
1888
- 1,
1889
- 133
1890
- ],
1891
- 38: [
1892
- 1,
1893
- 132
1894
- ]
1895
- }),
1896
- {
1897
- 39: 134,
1898
- 43: f,
1899
- 44: k,
1900
- 45: g
1901
- },
1902
- {
1903
- 33: [
1904
- 1,
1905
- 135
1906
- ]
1907
- },
1908
- {
1909
- 33: [
1910
- 1,
1911
- 136
1912
- ]
1913
- },
1914
- {
1915
- 33: [
1916
- 1,
1917
- 137
1918
- ]
1919
- },
1920
- {
1921
- 33: [
1922
- 1,
1923
- 138
1924
- ]
1925
- },
1926
- {
1927
- 39: 139,
1928
- 43: f,
1929
- 44: k,
1930
- 45: g
1931
- },
1932
- r(a, [
1933
- 2,
1934
- 25
1935
- ], {
1936
- 35: [
1937
- 1,
1938
- 140
1939
- ]
1940
- }),
1941
- r(a, [
1942
- 2,
1943
- 26
1944
- ], {
1945
- 34: [
1946
- 1,
1947
- 141
1948
- ]
1949
- }),
1950
- r(a, [
1951
- 2,
1952
- 31
1953
- ], {
1954
- 34: [
1955
- 1,
1956
- 142
1957
- ]
1958
- }),
1959
- r(a, [
1960
- 2,
1961
- 29
1962
- ], {
1963
- 34: [
1964
- 1,
1965
- 143
1966
- ]
1967
- }),
1968
- r(a, [
1969
- 2,
1970
- 30
1971
- ], {
1972
- 34: [
1973
- 1,
1974
- 144
1975
- ]
1976
- }),
1977
- {
1978
- 33: [
1979
- 1,
1980
- 145
1981
- ]
1982
- },
1983
- {
1984
- 33: [
1985
- 1,
1986
- 146
1987
- ]
1988
- },
1989
- {
1990
- 39: 147,
1991
- 43: f,
1992
- 44: k,
1993
- 45: g
1994
- },
1995
- {
1996
- 33: [
1997
- 1,
1998
- 148
1999
- ]
2000
- },
2001
- {
2002
- 39: 149,
2003
- 43: f,
2004
- 44: k,
2005
- 45: g
2006
- },
2007
- {
2008
- 33: [
2009
- 1,
2010
- 150
2011
- ]
2012
- },
2013
- {
2014
- 33: [
2015
- 1,
2016
- 151
2017
- ]
2018
- },
2019
- {
2020
- 33: [
2021
- 1,
2022
- 152
2023
- ]
2024
- },
2025
- {
2026
- 33: [
2027
- 1,
2028
- 153
2029
- ]
2030
- },
2031
- {
2032
- 33: [
2033
- 1,
2034
- 154
2035
- ]
2036
- },
2037
- {
2038
- 33: [
2039
- 1,
2040
- 155
2041
- ]
2042
- },
2043
- {
2044
- 33: [
2045
- 1,
2046
- 156
2047
- ]
2048
- },
2049
- {
2050
- 39: 157,
2051
- 43: f,
2052
- 44: k,
2053
- 45: g
2054
- },
2055
- {
2056
- 33: [
2057
- 1,
2058
- 158
2059
- ]
2060
- },
2061
- {
2062
- 33: [
2063
- 1,
2064
- 159
2065
- ]
2066
- },
2067
- {
2068
- 33: [
2069
- 1,
2070
- 160
2071
- ]
2072
- },
2073
- {
2074
- 39: 161,
2075
- 43: f,
2076
- 44: k,
2077
- 45: g
2078
- },
2079
- {
2080
- 33: [
2081
- 1,
2082
- 162
2083
- ]
2084
- },
2085
- {
2086
- 39: 163,
2087
- 43: f,
2088
- 44: k,
2089
- 45: g
2090
- },
2091
- {
2092
- 33: [
2093
- 1,
2094
- 164
2095
- ]
2096
- },
2097
- {
2098
- 33: [
2099
- 1,
2100
- 165
2101
- ]
2102
- },
2103
- {
2104
- 33: [
2105
- 1,
2106
- 166
2107
- ]
2108
- },
2109
- {
2110
- 39: 167,
2111
- 43: f,
2112
- 44: k,
2113
- 45: g
2114
- },
2115
- {
2116
- 33: [
2117
- 1,
2118
- 168
2119
- ]
2120
- },
2121
- r(a, [
2122
- 2,
2123
- 43
2124
- ], {
2125
- 35: [
2126
- 1,
2127
- 169
2128
- ]
2129
- }),
2130
- r(a, [
2131
- 2,
2132
- 44
2133
- ], {
2134
- 38: [
2135
- 1,
2136
- 170
2137
- ]
2138
- }),
2139
- r(a, [
2140
- 2,
2141
- 42
2142
- ], {
2143
- 32: [
2144
- 1,
2145
- 171
2146
- ]
2147
- }),
2148
- r(a, [
2149
- 2,
2150
- 45
2151
- ], {
2152
- 35: [
2153
- 1,
2154
- 172
2155
- ]
2156
- }),
2157
- r(a, [
2158
- 2,
2159
- 40
2160
- ], {
2161
- 38: [
2162
- 1,
2163
- 173
2164
- ]
2165
- }),
2166
- r(a, [
2167
- 2,
2168
- 41
2169
- ], {
2170
- 32: [
2171
- 1,
2172
- 174
2173
- ]
2174
- }),
2175
- {
2176
- 33: [
2177
- 1,
2178
- 175
2179
- ],
2180
- 36: [
2181
- 1,
2182
- 176
2183
- ]
2184
- },
2185
- {
2186
- 33: [
2187
- 1,
2188
- 177
2189
- ]
2190
- },
2191
- {
2192
- 33: [
2193
- 1,
2194
- 178
2195
- ]
2196
- },
2197
- {
2198
- 33: [
2199
- 1,
2200
- 179
2201
- ]
2202
- },
2203
- {
2204
- 33: [
2205
- 1,
2206
- 180
2207
- ]
2208
- },
2209
- r(a, [
2210
- 2,
2211
- 66
2212
- ], {
2213
- 42: [
2214
- 1,
2215
- 181
2216
- ]
2217
- }),
2218
- r(a, [
2219
- 2,
2220
- 79
2221
- ], {
2222
- 32: [
2223
- 1,
2224
- 182
2225
- ]
2226
- }),
2227
- r(a, [
2228
- 2,
2229
- 67
2230
- ], {
2231
- 42: [
2232
- 1,
2233
- 183
2234
- ]
2235
- }),
2236
- r(a, [
2237
- 2,
2238
- 90
2239
- ], {
2240
- 38: [
2241
- 1,
2242
- 184
2243
- ]
2244
- }),
2245
- r(a, [
2246
- 2,
2247
- 80
2248
- ], {
2249
- 32: [
2250
- 1,
2251
- 185
2252
- ]
2253
- }),
2254
- r(a, [
2255
- 2,
2256
- 89
2257
- ], {
2258
- 38: [
2259
- 1,
2260
- 186
2261
- ]
2262
- }),
2263
- r(a, [
2264
- 2,
2265
- 65
2266
- ], {
2267
- 42: [
2268
- 1,
2269
- 187
2270
- ]
2271
- }),
2272
- r(a, [
2273
- 2,
2274
- 78
2275
- ], {
2276
- 32: [
2277
- 1,
2278
- 188
2279
- ]
2280
- }),
2281
- r(a, [
2282
- 2,
2283
- 64
2284
- ], {
2285
- 42: [
2286
- 1,
2287
- 189
2288
- ]
2289
- }),
2290
- r(a, [
2291
- 2,
2292
- 84
2293
- ], {
2294
- 35: [
2295
- 1,
2296
- 190
2297
- ]
2298
- }),
2299
- r(a, [
2300
- 2,
2301
- 77
2302
- ], {
2303
- 32: [
2304
- 1,
2305
- 191
2306
- ]
2307
- }),
2308
- r(a, [
2309
- 2,
2310
- 83
2311
- ], {
2312
- 35: [
2313
- 1,
2314
- 192
2315
- ]
2316
- }),
2317
- r(a, [
2318
- 2,
2319
- 63
2320
- ], {
2321
- 42: [
2322
- 1,
2323
- 193
2324
- ]
2325
- }),
2326
- r(a, [
2327
- 2,
2328
- 91
2329
- ], {
2330
- 38: [
2331
- 1,
2332
- 194
2333
- ]
2334
- }),
2335
- r(a, [
2336
- 2,
2337
- 62
2338
- ], {
2339
- 42: [
2340
- 1,
2341
- 195
2342
- ]
2343
- }),
2344
- r(a, [
2345
- 2,
2346
- 85
2347
- ], {
2348
- 35: [
2349
- 1,
2350
- 196
2351
- ]
2352
- }),
2353
- r(a, [
2354
- 2,
2355
- 86
2356
- ], {
2357
- 35: [
2358
- 1,
2359
- 197
2360
- ]
2361
- }),
2362
- r(a, [
2363
- 2,
2364
- 92
2365
- ], {
2366
- 38: [
2367
- 1,
2368
- 198
2369
- ]
2370
- }),
2371
- r(a, [
2372
- 2,
2373
- 76
2374
- ], {
2375
- 32: [
2376
- 1,
2377
- 199
2378
- ]
2379
- }),
2380
- r(a, [
2381
- 2,
2382
- 87
2383
- ], {
2384
- 38: [
2385
- 1,
2386
- 200
2387
- ]
2388
- }),
2389
- r(a, [
2390
- 2,
2391
- 75
2392
- ], {
2393
- 32: [
2394
- 1,
2395
- 201
2396
- ]
2397
- }),
2398
- r(a, [
2399
- 2,
2400
- 81
2401
- ], {
2402
- 35: [
2403
- 1,
2404
- 202
2405
- ]
2406
- }),
2407
- r(a, [
2408
- 2,
2409
- 82
2410
- ], {
2411
- 35: [
2412
- 1,
2413
- 203
2414
- ]
2415
- }),
2416
- r(a, [
2417
- 2,
2418
- 88
2419
- ], {
2420
- 38: [
2421
- 1,
2422
- 204
2423
- ]
2424
- }),
2425
- {
2426
- 33: [
2427
- 1,
2428
- 205
2429
- ]
2430
- },
2431
- {
2432
- 39: 206,
2433
- 43: f,
2434
- 44: k,
2435
- 45: g
2436
- },
2437
- {
2438
- 33: [
2439
- 1,
2440
- 207
2441
- ]
2442
- },
2443
- {
2444
- 33: [
2445
- 1,
2446
- 208
2447
- ]
2448
- },
2449
- {
2450
- 39: 209,
2451
- 43: f,
2452
- 44: k,
2453
- 45: g
2454
- },
2455
- {
2456
- 33: [
2457
- 1,
2458
- 210
2459
- ]
2460
- },
2461
- r(a, [
2462
- 2,
2463
- 27
2464
- ]),
2465
- r(a, [
2466
- 2,
2467
- 32
2468
- ]),
2469
- r(a, [
2470
- 2,
2471
- 28
2472
- ]),
2473
- r(a, [
2474
- 2,
2475
- 33
2476
- ]),
2477
- r(a, [
2478
- 2,
2479
- 34
2480
- ]),
2481
- r(a, [
2482
- 2,
2483
- 35
2484
- ]),
2485
- {
2486
- 33: [
2487
- 1,
2488
- 211
2489
- ]
2490
- },
2491
- {
2492
- 33: [
2493
- 1,
2494
- 212
2495
- ]
2496
- },
2497
- {
2498
- 33: [
2499
- 1,
2500
- 213
2501
- ]
2502
- },
2503
- {
2504
- 39: 214,
2505
- 43: f,
2506
- 44: k,
2507
- 45: g
2508
- },
2509
- {
2510
- 33: [
2511
- 1,
2512
- 215
2513
- ]
2514
- },
2515
- {
2516
- 39: 216,
2517
- 43: f,
2518
- 44: k,
2519
- 45: g
2520
- },
2521
- {
2522
- 33: [
2523
- 1,
2524
- 217
2525
- ]
2526
- },
2527
- {
2528
- 33: [
2529
- 1,
2530
- 218
2531
- ]
2532
- },
2533
- {
2534
- 33: [
2535
- 1,
2536
- 219
2537
- ]
2538
- },
2539
- {
2540
- 33: [
2541
- 1,
2542
- 220
2543
- ]
2544
- },
2545
- {
2546
- 33: [
2547
- 1,
2548
- 221
2549
- ]
2550
- },
2551
- {
2552
- 33: [
2553
- 1,
2554
- 222
2555
- ]
2556
- },
2557
- {
2558
- 33: [
2559
- 1,
2560
- 223
2561
- ]
2562
- },
2563
- {
2564
- 39: 224,
2565
- 43: f,
2566
- 44: k,
2567
- 45: g
2568
- },
2569
- {
2570
- 33: [
2571
- 1,
2572
- 225
2573
- ]
2574
- },
2575
- {
2576
- 33: [
2577
- 1,
2578
- 226
2579
- ]
2580
- },
2581
- {
2582
- 33: [
2583
- 1,
2584
- 227
2585
- ]
2586
- },
2587
- {
2588
- 39: 228,
2589
- 43: f,
2590
- 44: k,
2591
- 45: g
2592
- },
2593
- {
2594
- 33: [
2595
- 1,
2596
- 229
2597
- ]
2598
- },
2599
- {
2600
- 39: 230,
2601
- 43: f,
2602
- 44: k,
2603
- 45: g
2604
- },
2605
- {
2606
- 33: [
2607
- 1,
2608
- 231
2609
- ]
2610
- },
2611
- {
2612
- 33: [
2613
- 1,
2614
- 232
2615
- ]
2616
- },
2617
- {
2618
- 33: [
2619
- 1,
2620
- 233
2621
- ]
2622
- },
2623
- {
2624
- 39: 234,
2625
- 43: f,
2626
- 44: k,
2627
- 45: g
2628
- },
2629
- r(a, [
2630
- 2,
2631
- 46
2632
- ]),
2633
- r(a, [
2634
- 2,
2635
- 48
2636
- ]),
2637
- r(a, [
2638
- 2,
2639
- 47
2640
- ]),
2641
- r(a, [
2642
- 2,
2643
- 49
2644
- ]),
2645
- r(a, [
2646
- 2,
2647
- 51
2648
- ]),
2649
- r(a, [
2650
- 2,
2651
- 50
2652
- ]),
2653
- r(a, [
2654
- 2,
2655
- 107
2656
- ]),
2657
- r(a, [
2658
- 2,
2659
- 108
2660
- ]),
2661
- r(a, [
2662
- 2,
2663
- 105
2664
- ]),
2665
- r(a, [
2666
- 2,
2667
- 106
2668
- ]),
2669
- r(a, [
2670
- 2,
2671
- 110
2672
- ]),
2673
- r(a, [
2674
- 2,
2675
- 109
2676
- ]),
2677
- r(a, [
2678
- 2,
2679
- 114
2680
- ]),
2681
- r(a, [
2682
- 2,
2683
- 113
2684
- ]),
2685
- r(a, [
2686
- 2,
2687
- 112
2688
- ]),
2689
- r(a, [
2690
- 2,
2691
- 111
2692
- ]),
2693
- r(a, [
2694
- 2,
2695
- 116
2696
- ]),
2697
- r(a, [
2698
- 2,
2699
- 115
2700
- ]),
2701
- r(a, [
2702
- 2,
2703
- 104
2704
- ]),
2705
- r(a, [
2706
- 2,
2707
- 103
2708
- ]),
2709
- r(a, [
2710
- 2,
2711
- 102
2712
- ]),
2713
- r(a, [
2714
- 2,
2715
- 101
2716
- ]),
2717
- r(a, [
2718
- 2,
2719
- 99
2720
- ]),
2721
- r(a, [
2722
- 2,
2723
- 100
2724
- ]),
2725
- r(a, [
2726
- 2,
2727
- 98
2728
- ]),
2729
- r(a, [
2730
- 2,
2731
- 97
2732
- ]),
2733
- r(a, [
2734
- 2,
2735
- 96
2736
- ]),
2737
- r(a, [
2738
- 2,
2739
- 95
2740
- ]),
2741
- r(a, [
2742
- 2,
2743
- 93
2744
- ]),
2745
- r(a, [
2746
- 2,
2747
- 94
2748
- ])
2749
- ],
2750
- defaultActions: {
2751
- 7: [
2752
- 2,
2753
- 1
2754
- ],
2755
- 13: [
2756
- 2,
2757
- 2
2758
- ],
2759
- 18: [
2760
- 2,
2761
- 3
2762
- ],
2763
- 36: [
2764
- 2,
2765
- 4
2766
- ]
2767
- },
2768
- parseError: function parseError(o, u) {
2769
- if (u.recoverable) this.trace(o);
2770
- else {
2771
- var d = new Error(o);
2772
- throw d.hash = u, d;
2773
- }
2774
- },
2775
- parse: function parse(o) {
2776
- var u = this, d = [
2777
- 0
2778
- ], s = [], T = [
2779
- null
2780
- ], e = [], X = this.table, t = "", re = 0, fe = 0, we = 2, pe = 1, Le = e.slice.call(arguments, 1), O = Object.create(this.lexer), F = {
2781
- yy: {}
2782
- };
2783
- for(var ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy, ce) && (F.yy[ce] = this.yy[ce]);
2784
- O.setInput(o, F.yy), F.yy.lexer = O, F.yy.parser = this, _type_of(O.yylloc) > "u" && (O.yylloc = {});
2785
- var oe = O.yylloc;
2786
- e.push(oe);
2787
- var Re = O.options && O.options.ranges;
2788
- typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
2789
- function Me() {
2790
- var q;
2791
- return q = s.pop() || O.lex() || pe, typeof q != "number" && (_instanceof(q, Array) && (s = q, q = s.pop()), q = u.symbols_[q] || q), q;
2792
- }
2793
- for(var N, K, V, le, J = {}, ie, j, be, se;;){
2794
- if (K = d[d.length - 1], this.defaultActions[K] ? V = this.defaultActions[K] : ((N === null || (typeof N === "undefined" ? "undefined" : _type_of(N)) > "u") && (N = Me()), V = X[K] && X[K][N]), (typeof V === "undefined" ? "undefined" : _type_of(V)) > "u" || !V.length || !V[0]) {
2795
- var he = "";
2796
- se = [];
2797
- for(ie in X[K])this.terminals_[ie] && ie > we && se.push("'" + this.terminals_[ie] + "'");
2798
- O.showPosition ? he = "Parse error on line " + (re + 1) + ":\n" + O.showPosition() + "\nExpecting " + se.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : he = "Parse error on line " + (re + 1) + ": Unexpected " + (N == pe ? "end of input" : "'" + (this.terminals_[N] || N) + "'"), this.parseError(he, {
2799
- text: O.match,
2800
- token: this.terminals_[N] || N,
2801
- line: O.yylineno,
2802
- loc: oe,
2803
- expected: se
2804
- });
2805
- }
2806
- if (_instanceof(V[0], Array) && V.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + K + ", token: " + N);
2807
- switch(V[0]){
2808
- case 1:
2809
- d.push(N), T.push(O.yytext), e.push(O.yylloc), d.push(V[1]), N = null, fe = O.yyleng, t = O.yytext, re = O.yylineno, oe = O.yylloc;
2810
- break;
2811
- case 2:
2812
- if (j = this.productions_[V[1]][1], J.$ = T[T.length - j], J._$ = {
2813
- first_line: e[e.length - (j || 1)].first_line,
2814
- last_line: e[e.length - 1].last_line,
2815
- first_column: e[e.length - (j || 1)].first_column,
2816
- last_column: e[e.length - 1].last_column
2817
- }, Re && (J._$.range = [
2818
- e[e.length - (j || 1)].range[0],
2819
- e[e.length - 1].range[1]
2820
- ]), le = this.performAction.apply(J, [
2821
- t,
2822
- fe,
2823
- re,
2824
- F.yy,
2825
- V[1],
2826
- T,
2827
- e
2828
- ].concat(Le)), (typeof le === "undefined" ? "undefined" : _type_of(le)) < "u") return le;
2829
- j && (d = d.slice(0, -1 * j * 2), T = T.slice(0, -1 * j), e = e.slice(0, -1 * j)), d.push(this.productions_[V[1]][0]), T.push(J.$), e.push(J._$), be = X[d[d.length - 2]][d[d.length - 1]], d.push(be);
2830
- break;
2831
- case 3:
2832
- return true;
2833
- }
2834
- }
2835
- return true;
2836
- }
2837
- }, M = function() {
2838
- var G = {
2839
- EOF: 1,
2840
- parseError: function parseError(u, d) {
2841
- if (this.yy.parser) this.yy.parser.parseError(u, d);
2842
- else throw new Error(u);
2843
- },
2844
- // resets the lexer, sets new input
2845
- setInput: function setInput(o, u) {
2846
- return this.yy = u || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
2847
- "INITIAL"
2848
- ], this.yylloc = {
2849
- first_line: 1,
2850
- first_column: 0,
2851
- last_line: 1,
2852
- last_column: 0
2853
- }, this.options.ranges && (this.yylloc.range = [
2854
- 0,
2855
- 0
2856
- ]), this.offset = 0, this;
2857
- },
2858
- // consumes and returns one char from the input
2859
- input: function input() {
2860
- var o = this._input[0];
2861
- this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
2862
- var u = o.match(/(?:\r\n?|\n).*/g);
2863
- return u ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
2864
- },
2865
- // unshifts one char (or a string) into the input
2866
- unput: function unput(o) {
2867
- var u = o.length, d = o.split(/(?:\r\n?|\n)/g);
2868
- this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - u), this.offset -= u;
2869
- var s = this.match.split(/(?:\r\n?|\n)/g);
2870
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
2871
- var T = this.yylloc.range;
2872
- return this.yylloc = {
2873
- first_line: this.yylloc.first_line,
2874
- last_line: this.yylineno + 1,
2875
- first_column: this.yylloc.first_column,
2876
- last_column: d ? (d.length === s.length ? this.yylloc.first_column : 0) + s[s.length - d.length].length - d[0].length : this.yylloc.first_column - u
2877
- }, this.options.ranges && (this.yylloc.range = [
2878
- T[0],
2879
- T[0] + this.yyleng - u
2880
- ]), this.yyleng = this.yytext.length, this;
2881
- },
2882
- // When called from action, caches matched text and appends it on next action
2883
- more: function more() {
2884
- return this._more = true, this;
2885
- },
2886
- // 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.
2887
- reject: function reject() {
2888
- if (this.options.backtrack_lexer) this._backtrack = true;
2889
- 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(), {
2890
- text: "",
2891
- token: null,
2892
- line: this.yylineno
2893
- });
2894
- return this;
2895
- },
2896
- // retain first n characters of the match
2897
- less: function less(o) {
2898
- this.unput(this.match.slice(o));
2899
- },
2900
- // displays already matched input, i.e. for error messages
2901
- pastInput: function pastInput() {
2902
- var o = this.matched.substr(0, this.matched.length - this.match.length);
2903
- return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
2904
- },
2905
- // displays upcoming input, i.e. for error messages
2906
- upcomingInput: function upcomingInput() {
2907
- var o = this.match;
2908
- return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
2909
- },
2910
- // displays the character position where the lexing error occurred, i.e. for error messages
2911
- showPosition: function showPosition() {
2912
- var o = this.pastInput(), u = new Array(o.length + 1).join("-");
2913
- return o + this.upcomingInput() + "\n" + u + "^";
2914
- },
2915
- // test the lexed token: return FALSE when not a match, otherwise return token
2916
- test_match: function test_match(o, u) {
2917
- var d, s, T;
2918
- if (this.options.backtrack_lexer && (T = {
2919
- yylineno: this.yylineno,
2920
- yylloc: {
2921
- first_line: this.yylloc.first_line,
2922
- last_line: this.last_line,
2923
- first_column: this.yylloc.first_column,
2924
- last_column: this.yylloc.last_column
2925
- },
2926
- yytext: this.yytext,
2927
- match: this.match,
2928
- matches: this.matches,
2929
- matched: this.matched,
2930
- yyleng: this.yyleng,
2931
- offset: this.offset,
2932
- _more: this._more,
2933
- _input: this._input,
2934
- yy: this.yy,
2935
- conditionStack: this.conditionStack.slice(0),
2936
- done: this.done
2937
- }, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), s = o[0].match(/(?:\r\n?|\n).*/g), s && (this.yylineno += s.length), this.yylloc = {
2938
- first_line: this.yylloc.last_line,
2939
- last_line: this.yylineno + 1,
2940
- first_column: this.yylloc.last_column,
2941
- last_column: s ? s[s.length - 1].length - s[s.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
2942
- }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
2943
- this.offset,
2944
- this.offset += this.yyleng
2945
- ]), this._more = false, this._backtrack = false, this._input = this._input.slice(o[0].length), this.matched += o[0], d = this.performAction.call(this, this.yy, this, u, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), d) return d;
2946
- if (this._backtrack) {
2947
- for(var e in T)this[e] = T[e];
2948
- return false;
2949
- }
2950
- return false;
2951
- },
2952
- // return next match in input
2953
- next: function next() {
2954
- if (this.done) return this.EOF;
2955
- this._input || (this.done = true);
2956
- var o, u, d, s;
2957
- this._more || (this.yytext = "", this.match = "");
2958
- for(var T = this._currentRules(), e = 0; e < T.length; e++)if (d = this._input.match(this.rules[T[e]]), d && (!u || d[0].length > u[0].length)) {
2959
- if (u = d, s = e, this.options.backtrack_lexer) {
2960
- if (o = this.test_match(d, T[e]), o !== false) return o;
2961
- if (this._backtrack) {
2962
- u = false;
2963
- continue;
2964
- } else return false;
2965
- } else if (!this.options.flex) break;
2966
- }
2967
- return u ? (o = this.test_match(u, T[s]), o !== false ? o : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
2968
- text: "",
2969
- token: null,
2970
- line: this.yylineno
2971
- });
2972
- },
2973
- // return next match that has a token
2974
- lex: function lex() {
2975
- var u = this.next();
2976
- return u || this.lex();
2977
- },
2978
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
2979
- begin: function begin(u) {
2980
- this.conditionStack.push(u);
2981
- },
2982
- // pop the previously active lexer condition state off the condition stack
2983
- popState: function popState() {
2984
- var u = this.conditionStack.length - 1;
2985
- return u > 0 ? this.conditionStack.pop() : this.conditionStack[0];
2986
- },
2987
- // produce the lexer rule set which is active for the currently active lexer condition state
2988
- _currentRules: function _currentRules() {
2989
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
2990
- },
2991
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
2992
- topState: function topState(u) {
2993
- return u = this.conditionStack.length - 1 - Math.abs(u || 0), u >= 0 ? this.conditionStack[u] : "INITIAL";
2994
- },
2995
- // alias for begin(condition)
2996
- pushState: function pushState(u) {
2997
- this.begin(u);
2998
- },
2999
- // return the number of states currently on the stack
3000
- stateStackSize: function stateStackSize() {
3001
- return this.conditionStack.length;
3002
- },
3003
- options: {
3004
- "case-insensitive": true
3005
- },
3006
- performAction: function performAction(u, d, s, T) {
3007
- switch(s){
3008
- case 0:
3009
- return this.begin("acc_title"), 19;
3010
- case 1:
3011
- return this.popState(), "acc_title_value";
3012
- case 2:
3013
- return this.begin("acc_descr"), 21;
3014
- case 3:
3015
- return this.popState(), "acc_descr_value";
3016
- case 4:
3017
- this.begin("acc_descr_multiline");
3018
- break;
3019
- case 5:
3020
- this.popState();
3021
- break;
3022
- case 6:
3023
- return "acc_descr_multiline_value";
3024
- case 7:
3025
- return 13;
3026
- case 8:
3027
- break;
3028
- case 9:
3029
- break;
3030
- case 10:
3031
- return 5;
3032
- case 11:
3033
- return 40;
3034
- case 12:
3035
- return 32;
3036
- case 13:
3037
- return 38;
3038
- case 14:
3039
- return 42;
3040
- case 15:
3041
- return 43;
3042
- case 16:
3043
- return 44;
3044
- case 17:
3045
- return 45;
3046
- case 18:
3047
- return 35;
3048
- case 19:
3049
- return 28;
3050
- case 20:
3051
- return 29;
3052
- case 21:
3053
- return 37;
3054
- case 22:
3055
- return 31;
3056
- case 23:
3057
- return 34;
3058
- case 24:
3059
- return 26;
3060
- case 25:
3061
- return 9;
3062
- case 26:
3063
- return 9;
3064
- case 27:
3065
- return 8;
3066
- case 28:
3067
- return "CARET";
3068
- case 29:
3069
- this.begin("options");
3070
- break;
3071
- case 30:
3072
- this.popState();
3073
- break;
3074
- case 31:
3075
- return 12;
3076
- case 32:
3077
- return 36;
3078
- case 33:
3079
- this.begin("string");
3080
- break;
3081
- case 34:
3082
- this.popState();
3083
- break;
3084
- case 35:
3085
- return 33;
3086
- case 36:
3087
- return 30;
3088
- case 37:
3089
- return 46;
3090
- case 38:
3091
- return 7;
3092
- }
3093
- },
3094
- rules: [
3095
- /^(?:accTitle\s*:\s*)/i,
3096
- /^(?:(?!\n||)*[^\n]*)/i,
3097
- /^(?:accDescr\s*:\s*)/i,
3098
- /^(?:(?!\n||)*[^\n]*)/i,
3099
- /^(?:accDescr\s*\{\s*)/i,
3100
- /^(?:[\}])/i,
3101
- /^(?:[^\}]*)/i,
3102
- /^(?:(\r?\n)+)/i,
3103
- /^(?:#[^\n]*)/i,
3104
- /^(?:%[^\n]*)/i,
3105
- /^(?:gitGraph\b)/i,
3106
- /^(?:commit(?=\s|$))/i,
3107
- /^(?:id:)/i,
3108
- /^(?:type:)/i,
3109
- /^(?:msg:)/i,
3110
- /^(?:NORMAL\b)/i,
3111
- /^(?:REVERSE\b)/i,
3112
- /^(?:HIGHLIGHT\b)/i,
3113
- /^(?:tag:)/i,
3114
- /^(?:branch(?=\s|$))/i,
3115
- /^(?:order:)/i,
3116
- /^(?:merge(?=\s|$))/i,
3117
- /^(?:cherry-pick(?=\s|$))/i,
3118
- /^(?:parent:)/i,
3119
- /^(?:checkout(?=\s|$))/i,
3120
- /^(?:LR\b)/i,
3121
- /^(?:TB\b)/i,
3122
- /^(?::)/i,
3123
- /^(?:\^)/i,
3124
- /^(?:options\r?\n)/i,
3125
- /^(?:[ \r\n\t]+end\b)/i,
3126
- /^(?:[\s\S]+(?=[ \r\n\t]+end))/i,
3127
- /^(?:["]["])/i,
3128
- /^(?:["])/i,
3129
- /^(?:["])/i,
3130
- /^(?:[^"]*)/i,
3131
- /^(?:[0-9]+(?=\s|$))/i,
3132
- /^(?:\w([-\./\w]*[-\w])?)/i,
3133
- /^(?:$)/i,
3134
- /^(?:\s+)/i
3135
- ],
3136
- conditions: {
3137
- acc_descr_multiline: {
3138
- rules: [
3139
- 5,
3140
- 6
3141
- ],
3142
- inclusive: false
3143
- },
3144
- acc_descr: {
3145
- rules: [
3146
- 3
3147
- ],
3148
- inclusive: false
3149
- },
3150
- acc_title: {
3151
- rules: [
3152
- 1
3153
- ],
3154
- inclusive: false
3155
- },
3156
- options: {
3157
- rules: [
3158
- 30,
3159
- 31
3160
- ],
3161
- inclusive: false
3162
- },
3163
- string: {
3164
- rules: [
3165
- 34,
3166
- 35
3167
- ],
3168
- inclusive: false
3169
- },
3170
- INITIAL: {
3171
- rules: [
3172
- 0,
3173
- 2,
3174
- 4,
3175
- 7,
3176
- 8,
3177
- 9,
3178
- 10,
3179
- 11,
3180
- 12,
3181
- 13,
3182
- 14,
3183
- 15,
3184
- 16,
3185
- 17,
3186
- 18,
3187
- 19,
3188
- 20,
3189
- 21,
3190
- 22,
3191
- 23,
3192
- 24,
3193
- 25,
3194
- 26,
3195
- 27,
3196
- 28,
3197
- 29,
3198
- 32,
3199
- 33,
3200
- 36,
3201
- 37,
3202
- 38,
3203
- 39
3204
- ],
3205
- inclusive: true
3206
- }
3207
- }
3208
- };
3209
- return G;
3210
- }();
3211
- z.lexer = M;
3212
- function I() {
3213
- this.yy = {};
3214
- }
3215
- return I.prototype = z, z.Parser = I, new I();
3216
- }();
3217
- me.parser = me;
3218
- var Ve = me;
3219
- var ae = index.Vn().gitGraph.mainBranchName, De = index.Vn().gitGraph.mainBranchOrder, C = {}, S = null, ee = {};
3220
- ee[ae] = {
3221
- name: ae,
3222
- order: De
3223
- };
3224
- var L = {};
3225
- L[ae] = S;
3226
- var A = ae, ke = "LR", W = 0;
3227
- function ue() {
3228
- return index.L0({
3229
- length: 7
3230
- });
3231
- }
3232
- function ze(r, n) {
3233
- var l = /* @__PURE__ */ Object.create(null);
3234
- return r.reduce(function(h, i) {
3235
- var c = n(i);
3236
- return l[c] || (l[c] = true, h.push(i)), h;
3237
- }, []);
3238
- }
3239
- var je = function je(r) {
3240
- ke = r;
3241
- };
3242
- var xe = {};
3243
- var qe = function qe(r) {
3244
- index.L.debug("options str", r), r = r && r.trim(), r = r || "{}";
3245
- try {
3246
- xe = JSON.parse(r);
3247
- } catch (n) {
3248
- index.L.error("error while parsing gitGraph options", n.message);
3249
- }
3250
- }, Ye = function Ye() {
3251
- return xe;
3252
- }, Fe = function Fe(r, n, l, h) {
3253
- index.L.debug("Entering commit:", r, n, l, h), n = index.$n.sanitizeText(n, index.Vn()), r = index.$n.sanitizeText(r, index.Vn()), h = index.$n.sanitizeText(h, index.Vn());
3254
- var i = {
3255
- id: n || W + "-" + ue(),
3256
- message: r,
3257
- seq: W++,
3258
- type: l || Q.NORMAL,
3259
- tag: h || "",
3260
- parents: S == null ? [] : [
3261
- S.id
3262
- ],
3263
- branch: A
3264
- };
3265
- S = i, C[i.id] = i, L[A] = i.id, index.L.debug("in pushCommit " + i.id);
3266
- }, Ke = function Ke(r, n) {
3267
- if (r = index.$n.sanitizeText(r, index.Vn()), L[r] === void 0) L[r] = S != null ? S.id : null, ee[r] = {
3268
- name: r,
3269
- order: n ? parseInt(n, 10) : null
3270
- }, ye(r), index.L.debug("in createBranch");
3271
- else {
3272
- var l = new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ' + r + '")');
3273
- throw l.hash = {
3274
- text: "branch " + r,
3275
- token: "branch " + r,
3276
- line: "1",
3277
- loc: {
3278
- first_line: 1,
3279
- last_line: 1,
3280
- first_column: 1,
3281
- last_column: 1
3282
- },
3283
- expected: [
3284
- '"checkout ' + r + '"'
3285
- ]
3286
- }, l;
3287
- }
3288
- }, Ue = function Ue(r, n, l, h) {
3289
- r = index.$n.sanitizeText(r, index.Vn()), n = index.$n.sanitizeText(n, index.Vn());
3290
- var i = C[L[A]], c = C[L[r]];
3291
- if (A === r) {
3292
- var m = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
3293
- throw m.hash = {
3294
- text: "merge " + r,
3295
- token: "merge " + r,
3296
- line: "1",
3297
- loc: {
3298
- first_line: 1,
3299
- last_line: 1,
3300
- first_column: 1,
3301
- last_column: 1
3302
- },
3303
- expected: [
3304
- "branch abc"
3305
- ]
3306
- }, m;
3307
- } else if (i === void 0 || !i) {
3308
- var m1 = new Error('Incorrect usage of "merge". Current branch (' + A + ")has no commits");
3309
- throw m1.hash = {
3310
- text: "merge " + r,
3311
- token: "merge " + r,
3312
- line: "1",
3313
- loc: {
3314
- first_line: 1,
3315
- last_line: 1,
3316
- first_column: 1,
3317
- last_column: 1
3318
- },
3319
- expected: [
3320
- "commit"
3321
- ]
3322
- }, m1;
3323
- } else if (L[r] === void 0) {
3324
- var m2 = new Error('Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist");
3325
- throw m2.hash = {
3326
- text: "merge " + r,
3327
- token: "merge " + r,
3328
- line: "1",
3329
- loc: {
3330
- first_line: 1,
3331
- last_line: 1,
3332
- first_column: 1,
3333
- last_column: 1
3334
- },
3335
- expected: [
3336
- "branch " + r
3337
- ]
3338
- }, m2;
3339
- } else if (c === void 0 || !c) {
3340
- var m3 = new Error('Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits");
3341
- throw m3.hash = {
3342
- text: "merge " + r,
3343
- token: "merge " + r,
3344
- line: "1",
3345
- loc: {
3346
- first_line: 1,
3347
- last_line: 1,
3348
- first_column: 1,
3349
- last_column: 1
3350
- },
3351
- expected: [
3352
- '"commit"'
3353
- ]
3354
- }, m3;
3355
- } else if (i === c) {
3356
- var m4 = new Error('Incorrect usage of "merge". Both branches have same head');
3357
- throw m4.hash = {
3358
- text: "merge " + r,
3359
- token: "merge " + r,
3360
- line: "1",
3361
- loc: {
3362
- first_line: 1,
3363
- last_line: 1,
3364
- first_column: 1,
3365
- last_column: 1
3366
- },
3367
- expected: [
3368
- "branch abc"
3369
- ]
3370
- }, m4;
3371
- } else if (n && C[n] !== void 0) {
3372
- var m5 = new Error('Incorrect usage of "merge". Commit with id:' + n + " already exists, use different custom Id");
3373
- throw m5.hash = {
3374
- text: "merge " + r + n + l + h,
3375
- token: "merge " + r + n + l + h,
3376
- line: "1",
3377
- loc: {
3378
- first_line: 1,
3379
- last_line: 1,
3380
- first_column: 1,
3381
- last_column: 1
3382
- },
3383
- expected: [
3384
- "merge " + r + " " + n + "_UNIQUE " + l + " " + h
3385
- ]
3386
- }, m5;
3387
- }
3388
- var p = {
3389
- id: n || W + "-" + ue(),
3390
- message: "merged branch " + r + " into " + A,
3391
- seq: W++,
3392
- parents: [
3393
- S == null ? null : S.id,
3394
- L[r]
3395
- ],
3396
- branch: A,
3397
- type: Q.MERGE,
3398
- customType: l,
3399
- customId: !!n,
3400
- tag: h || ""
3401
- };
3402
- S = p, C[p.id] = p, L[A] = p.id, index.L.debug(L), index.L.debug("in mergeBranch");
3403
- }, We = function We(r, n, l, h) {
3404
- if (index.L.debug("Entering cherryPick:", r, n, l), r = index.$n.sanitizeText(r, index.Vn()), n = index.$n.sanitizeText(n, index.Vn()), l = index.$n.sanitizeText(l, index.Vn()), h = index.$n.sanitizeText(h, index.Vn()), !r || C[r] === void 0) {
3405
- var p = new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
3406
- throw p.hash = {
3407
- text: "cherryPick " + r + " " + n,
3408
- token: "cherryPick " + r + " " + n,
3409
- line: "1",
3410
- loc: {
3411
- first_line: 1,
3412
- last_line: 1,
3413
- first_column: 1,
3414
- last_column: 1
3415
- },
3416
- expected: [
3417
- "cherry-pick abc"
3418
- ]
3419
- }, p;
3420
- }
3421
- var i = C[r], c = i.branch;
3422
- if (h && !(Array.isArray(i.parents) && i.parents.includes(h))) throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
3423
- if (i.type === Q.MERGE && !h) throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
3424
- if (!n || C[n] === void 0) {
3425
- if (c === A) {
3426
- var x = new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');
3427
- throw x.hash = {
3428
- text: "cherryPick " + r + " " + n,
3429
- token: "cherryPick " + r + " " + n,
3430
- line: "1",
3431
- loc: {
3432
- first_line: 1,
3433
- last_line: 1,
3434
- first_column: 1,
3435
- last_column: 1
3436
- },
3437
- expected: [
3438
- "cherry-pick abc"
3439
- ]
3440
- }, x;
3441
- }
3442
- var p1 = C[L[A]];
3443
- if (p1 === void 0 || !p1) {
3444
- var x1 = new Error('Incorrect usage of "cherry-pick". Current branch (' + A + ")has no commits");
3445
- throw x1.hash = {
3446
- text: "cherryPick " + r + " " + n,
3447
- token: "cherryPick " + r + " " + n,
3448
- line: "1",
3449
- loc: {
3450
- first_line: 1,
3451
- last_line: 1,
3452
- first_column: 1,
3453
- last_column: 1
3454
- },
3455
- expected: [
3456
- "cherry-pick abc"
3457
- ]
3458
- }, x1;
3459
- }
3460
- var m = {
3461
- id: W + "-" + ue(),
3462
- message: "cherry-picked " + i + " into " + A,
3463
- seq: W++,
3464
- parents: [
3465
- S == null ? null : S.id,
3466
- i.id
3467
- ],
3468
- branch: A,
3469
- type: Q.CHERRY_PICK,
3470
- tag: l !== null && l !== void 0 ? l : "cherry-pick:".concat(i.id).concat(i.type === Q.MERGE ? "|parent:".concat(h) : "")
3471
- };
3472
- S = m, C[m.id] = m, L[A] = m.id, index.L.debug(L), index.L.debug("in cherryPick");
3473
- }
3474
- }, ye = function ye(r) {
3475
- if (r = index.$n.sanitizeText(r, index.Vn()), L[r] === void 0) {
3476
- var n = new Error('Trying to checkout branch which is not yet created. (Help try using "branch ' + r + '")');
3477
- throw n.hash = {
3478
- text: "checkout " + r,
3479
- token: "checkout " + r,
3480
- line: "1",
3481
- loc: {
3482
- first_line: 1,
3483
- last_line: 1,
3484
- first_column: 1,
3485
- last_column: 1
3486
- },
3487
- expected: [
3488
- '"branch ' + r + '"'
3489
- ]
3490
- }, n;
3491
- } else {
3492
- A = r;
3493
- var n1 = L[A];
3494
- S = C[n1];
3495
- }
3496
- };
3497
- function ge(r, n, l) {
3498
- var h = r.indexOf(n);
3499
- h === -1 ? r.push(l) : r.splice(h, 1, l);
3500
- }
3501
- function _e(r) {
3502
- var n = r.reduce(function(i, c) {
3503
- return i.seq > c.seq ? i : c;
3504
- }, r[0]);
3505
- var l = "";
3506
- r.forEach(function(i) {
3507
- i === n ? l += " *" : l += " |";
3508
- });
3509
- var h = [
3510
- l,
3511
- n.id,
3512
- n.seq
3513
- ];
3514
- for(var i in L)L[i] === n.id && h.push(i);
3515
- if (index.L.debug(h.join(" ")), n.parents && n.parents.length == 2) {
3516
- var i1 = C[n.parents[0]];
3517
- ge(r, n, i1), r.push(C[n.parents[1]]);
3518
- } else {
3519
- if (n.parents.length == 0) return;
3520
- {
3521
- var i2 = C[n.parents];
3522
- ge(r, n, i2);
3523
- }
3524
- }
3525
- r = ze(r, function(i) {
3526
- return i.id;
3527
- }), _e(r);
3528
- }
3529
- var Je = function Je() {
3530
- index.L.debug(C);
3531
- var r = Ee()[0];
3532
- _e([
3533
- r
3534
- ]);
3535
- }, Qe = function Qe() {
3536
- C = {}, S = null;
3537
- var r = index.Vn().gitGraph.mainBranchName, n = index.Vn().gitGraph.mainBranchOrder;
3538
- L = {}, L[r] = null, ee = {}, ee[r] = {
3539
- name: r,
3540
- order: n
3541
- }, A = r, W = 0, index.B_();
3542
- }, Xe = function Xe() {
3543
- return Object.values(ee).map(function(n, l) {
3544
- return n.order !== null ? n : _object_spread_props(_object_spread({}, n), {
3545
- order: parseFloat("0.".concat(l), 10)
3546
- });
3547
- }).sort(function(n, l) {
3548
- return n.order - l.order;
3549
- }).map(function(param) {
3550
- var n = param.name;
3551
- return {
3552
- name: n
3553
- };
3554
- });
3555
- }, Ze = function Ze() {
3556
- return L;
3557
- }, $e = function $e() {
3558
- return C;
3559
- }, Ee = function Ee() {
3560
- var r = Object.keys(C).map(function(n) {
3561
- return C[n];
3562
- });
3563
- return r.forEach(function(n) {
3564
- index.L.debug(n.id);
3565
- }), r.sort(function(n, l) {
3566
- return n.seq - l.seq;
3567
- }), r;
3568
- }, et = function et() {
3569
- return A;
3570
- }, tt = function tt() {
3571
- return ke;
3572
- }, rt = function rt() {
3573
- return S;
3574
- }, Q = {
3575
- NORMAL: 0,
3576
- REVERSE: 1,
3577
- HIGHLIGHT: 2,
3578
- MERGE: 3,
3579
- CHERRY_PICK: 4
3580
- }, it = {
3581
- getConfig: function() {
3582
- return index.Vn().gitGraph;
3583
- },
3584
- setDirection: je,
3585
- setOptions: qe,
3586
- getOptions: Ye,
3587
- commit: Fe,
3588
- branch: Ke,
3589
- merge: Ue,
3590
- cherryPick: We,
3591
- checkout: ye,
3592
- //reset,
3593
- prettyPrint: Je,
3594
- clear: Qe,
3595
- getBranchesAsObjArray: Xe,
3596
- getBranches: Ze,
3597
- getCommits: $e,
3598
- getCommitsArray: Ee,
3599
- getCurrentBranch: et,
3600
- getDirection: tt,
3601
- getHead: rt,
3602
- setAccTitle: index.F_,
3603
- getAccTitle: index.A_,
3604
- getAccDescription: index.E_,
3605
- setAccDescription: index.L_,
3606
- setDiagramTitle: index.M_,
3607
- getDiagramTitle: index.O_,
3608
- commitType: Q
3609
- };
3610
- var Z = {};
3611
- var P = {
3612
- NORMAL: 0,
3613
- REVERSE: 1,
3614
- HIGHLIGHT: 2,
3615
- MERGE: 3,
3616
- CHERRY_PICK: 4
3617
- }, U = 8;
3618
- var H = {}, Y = {}, ne = [], te = 0, w = "LR";
3619
- var st = function() {
3620
- H = {}, Y = {}, Z = {}, te = 0, ne = [], w = "LR";
3621
- }, Te = function(r) {
3622
- var n = document.createElementNS("http://www.w3.org/2000/svg", "text");
3623
- var l = [];
3624
- typeof r == "string" ? l = r.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(r) ? l = r : l = [];
3625
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
3626
- try {
3627
- for(var _iterator = l[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
3628
- var h = _step.value;
3629
- var i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
3630
- i.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), i.setAttribute("dy", "1em"), i.setAttribute("x", "0"), i.setAttribute("class", "row"), i.textContent = h.trim(), n.appendChild(i);
3631
- }
3632
- } catch (err) {
3633
- _didIteratorError = true;
3634
- _iteratorError = err;
3635
- } finally{
3636
- try {
3637
- if (!_iteratorNormalCompletion && _iterator.return != null) {
3638
- _iterator.return();
3639
- }
3640
- } finally{
3641
- if (_didIteratorError) {
3642
- throw _iteratorError;
3643
- }
3644
- }
3645
- }
3646
- return n;
3647
- }, at = function(r) {
3648
- var n = "", l = 0;
3649
- return r.forEach(function(h) {
3650
- var i = w === "TB" ? Y[h].y : Y[h].x;
3651
- i >= l && (n = h, l = i);
3652
- }), n || void 0;
3653
- }, de = function(r, n, l) {
3654
- var h = index.Vn().gitGraph, i = r.append("g").attr("class", "commit-bullets"), c = r.append("g").attr("class", "commit-labels");
3655
- var p = 0;
3656
- w === "TB" && (p = 30);
3657
- var x = Object.keys(n).sort(function(_, b) {
3658
- return n[_].seq - n[b].seq;
3659
- }), y = h.parallelCommits, a = 10, R = 40;
3660
- x.forEach(function(_) {
3661
- var b = n[_];
3662
- if (y) if (b.parents.length) {
3663
- var E = at(b.parents);
3664
- p = w === "TB" ? Y[E].y + R : Y[E].x + R;
3665
- } else p = 0, w === "TB" && (p = 30);
3666
- var f = p + a, k = w === "TB" ? f : H[b.branch].pos, g = w === "TB" ? H[b.branch].pos : f;
3667
- if (l) {
3668
- var E1, z = b.customType !== void 0 && b.customType !== "" ? b.customType : b.type;
3669
- switch(z){
3670
- case P.NORMAL:
3671
- E1 = "commit-normal";
3672
- break;
3673
- case P.REVERSE:
3674
- E1 = "commit-reverse";
3675
- break;
3676
- case P.HIGHLIGHT:
3677
- E1 = "commit-highlight";
3678
- break;
3679
- case P.MERGE:
3680
- E1 = "commit-merge";
3681
- break;
3682
- case P.CHERRY_PICK:
3683
- E1 = "commit-cherry-pick";
3684
- break;
3685
- default:
3686
- E1 = "commit-normal";
3687
- }
3688
- if (z === P.HIGHLIGHT) {
3689
- var M = i.append("rect");
3690
- M.attr("x", g - 10), M.attr("y", k - 10), M.attr("height", 20), M.attr("width", 20), M.attr("class", "commit ".concat(b.id, " commit-highlight").concat(H[b.branch].index % U, " ").concat(E1, "-outer")), i.append("rect").attr("x", g - 6).attr("y", k - 6).attr("height", 12).attr("width", 12).attr("class", "commit ".concat(b.id, " commit").concat(H[b.branch].index % U, " ").concat(E1, "-inner"));
3691
- } else if (z === P.CHERRY_PICK) i.append("circle").attr("cx", g).attr("cy", k).attr("r", 10).attr("class", "commit ".concat(b.id, " ").concat(E1)), i.append("circle").attr("cx", g - 3).attr("cy", k + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", "commit ".concat(b.id, " ").concat(E1)), i.append("circle").attr("cx", g + 3).attr("cy", k + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", "commit ".concat(b.id, " ").concat(E1)), i.append("line").attr("x1", g + 3).attr("y1", k + 1).attr("x2", g).attr("y2", k - 5).attr("stroke", "#fff").attr("class", "commit ".concat(b.id, " ").concat(E1)), i.append("line").attr("x1", g - 3).attr("y1", k + 1).attr("x2", g).attr("y2", k - 5).attr("stroke", "#fff").attr("class", "commit ".concat(b.id, " ").concat(E1));
3692
- else {
3693
- var M1 = i.append("circle");
3694
- if (M1.attr("cx", g), M1.attr("cy", k), M1.attr("r", b.type === P.MERGE ? 9 : 10), M1.attr("class", "commit ".concat(b.id, " commit").concat(H[b.branch].index % U)), z === P.MERGE) {
3695
- var I = i.append("circle");
3696
- I.attr("cx", g), I.attr("cy", k), I.attr("r", 6), I.attr("class", "commit ".concat(E1, " ").concat(b.id, " commit").concat(H[b.branch].index % U));
3697
- }
3698
- z === P.REVERSE && i.append("path").attr("d", "M ".concat(g - 5, ",").concat(k - 5, "L").concat(g + 5, ",").concat(k + 5, "M").concat(g - 5, ",").concat(k + 5, "L").concat(g + 5, ",").concat(k - 5)).attr("class", "commit ".concat(E1, " ").concat(b.id, " commit").concat(H[b.branch].index % U));
3699
- }
3700
- }
3701
- if (w === "TB" ? Y[b.id] = {
3702
- x: g,
3703
- y: f
3704
- } : Y[b.id] = {
3705
- x: f,
3706
- y: k
3707
- }, l) {
3708
- if (b.type !== P.CHERRY_PICK && (b.customId && b.type === P.MERGE || b.type !== P.MERGE) && h.showCommitLabel) {
3709
- var M2 = c.append("g"), I1 = M2.insert("rect").attr("class", "commit-label-bkg"), G = M2.append("text").attr("x", p).attr("y", k + 25).attr("class", "commit-label").text(b.id);
3710
- var o = G.node().getBBox();
3711
- if (I1.attr("x", f - o.width / 2 - 2).attr("y", k + 13.5).attr("width", o.width + 2 * 2).attr("height", o.height + 2 * 2), w === "TB" && (I1.attr("x", g - (o.width + 4 * 4 + 5)).attr("y", k - 12), G.attr("x", g - (o.width + 4 * 4)).attr("y", k + o.height - 12)), w !== "TB" && G.attr("x", f - o.width / 2), h.rotateCommitLabel) if (w === "TB") G.attr("transform", "rotate(-45, " + g + ", " + k + ")"), I1.attr("transform", "rotate(-45, " + g + ", " + k + ")");
3712
- else {
3713
- var u = -7.5 - (o.width + 10) / 25 * 9.5, d = 10 + o.width / 25 * 8.5;
3714
- M2.attr("transform", "translate(" + u + ", " + d + ") rotate(-45, " + p + ", " + k + ")");
3715
- }
3716
- }
3717
- if (b.tag) {
3718
- var M3 = c.insert("polygon"), I2 = c.append("circle"), G1 = c.append("text").attr("y", k - 16).attr("class", "tag-label").text(b.tag);
3719
- var o1 = G1.node().getBBox();
3720
- G1.attr("x", f - o1.width / 2);
3721
- var u1 = o1.height / 2, d1 = k - 19.2;
3722
- M3.attr("class", "tag-label-bkg").attr("points", "\n ".concat(p - o1.width / 2 - 4 / 2, ",").concat(d1 + 2, "\n ").concat(p - o1.width / 2 - 4 / 2, ",").concat(d1 - 2, "\n ").concat(f - o1.width / 2 - 4, ",").concat(d1 - u1 - 2, "\n ").concat(f + o1.width / 2 + 4, ",").concat(d1 - u1 - 2, "\n ").concat(f + o1.width / 2 + 4, ",").concat(d1 + u1 + 2, "\n ").concat(f - o1.width / 2 - 4, ",").concat(d1 + u1 + 2)), I2.attr("cx", p - o1.width / 2 + 4 / 2).attr("cy", d1).attr("r", 1.5).attr("class", "tag-hole"), w === "TB" && (M3.attr("class", "tag-label-bkg").attr("points", "\n ".concat(g, ",").concat(p + 2, "\n ").concat(g, ",").concat(p - 2, "\n ").concat(g + a, ",").concat(p - u1 - 2, "\n ").concat(g + a + o1.width + 4, ",").concat(p - u1 - 2, "\n ").concat(g + a + o1.width + 4, ",").concat(p + u1 + 2, "\n ").concat(g + a, ",").concat(p + u1 + 2)).attr("transform", "translate(12,12) rotate(45, " + g + "," + p + ")"), I2.attr("cx", g + 4 / 2).attr("cy", p).attr("transform", "translate(12,12) rotate(45, " + g + "," + p + ")"), G1.attr("x", g + 5).attr("y", p + 3).attr("transform", "translate(14,14) rotate(45, " + g + "," + p + ")"));
3723
- }
3724
- }
3725
- p += R + a, p > te && (te = p);
3726
- });
3727
- }, nt = function(r, n, l, h, i) {
3728
- var p = (w === "TB" ? l.x < h.x : l.y < h.y) ? n.branch : r.branch, m = function(y) {
3729
- return y.branch === p;
3730
- }, x = function(y) {
3731
- return y.seq > r.seq && y.seq < n.seq;
3732
- };
3733
- return Object.values(i).some(function(y) {
3734
- return x(y) && m(y);
3735
- });
3736
- }, $ = function(r, n) {
3737
- var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
3738
- var h = r + Math.abs(r - n) / 2;
3739
- if (l > 5) return h;
3740
- if (ne.every(function(p) {
3741
- return Math.abs(p - h) >= 10;
3742
- })) return ne.push(h), h;
3743
- var c = Math.abs(r - n);
3744
- return $(r, n - c / 5, l + 1);
3745
- }, ct = function(r, n, l, h) {
3746
- var i = Y[n.id], c = Y[l.id], p = nt(n, l, i, c, h);
3747
- var m = "", x = "", y = 0, a = 0, R = H[l.branch].index;
3748
- l.type === P.MERGE && n.id !== l.parents[0] && (R = H[n.branch].index);
3749
- var _;
3750
- if (p) {
3751
- m = "A 10 10, 0, 0, 0,", x = "A 10 10, 0, 0, 1,", y = 10, a = 10;
3752
- var b = i.y < c.y ? $(i.y, c.y) : $(c.y, i.y), f = i.x < c.x ? $(i.x, c.x) : $(c.x, i.x);
3753
- w === "TB" ? i.x < c.x ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(f - y, " ").concat(i.y, " ").concat(x, " ").concat(f, " ").concat(i.y + a, " L ").concat(f, " ").concat(c.y - y, " ").concat(m, " ").concat(f + a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y) : (R = H[n.branch].index, _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(f + y, " ").concat(i.y, " ").concat(m, " ").concat(f, " ").concat(i.y + a, " L ").concat(f, " ").concat(c.y - y, " ").concat(x, " ").concat(f - a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y)) : i.y < c.y ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(b - y, " ").concat(m, " ").concat(i.x + a, " ").concat(b, " L ").concat(c.x - y, " ").concat(b, " ").concat(x, " ").concat(c.x, " ").concat(b + a, " L ").concat(c.x, " ").concat(c.y) : (R = H[n.branch].index, _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(b + y, " ").concat(x, " ").concat(i.x + a, " ").concat(b, " L ").concat(c.x - y, " ").concat(b, " ").concat(m, " ").concat(c.x, " ").concat(b - a, " L ").concat(c.x, " ").concat(c.y));
3754
- } else m = "A 20 20, 0, 0, 0,", x = "A 20 20, 0, 0, 1,", y = 20, a = 20, w === "TB" ? (i.x < c.x && (l.type === P.MERGE && n.id !== l.parents[0] ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(c.y - y, " ").concat(m, " ").concat(i.x + a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y) : _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x - y, " ").concat(i.y, " ").concat(x, " ").concat(c.x, " ").concat(i.y + a, " L ").concat(c.x, " ").concat(c.y)), i.x > c.x && (m = "A 20 20, 0, 0, 0,", x = "A 20 20, 0, 0, 1,", y = 20, a = 20, l.type === P.MERGE && n.id !== l.parents[0] ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(c.y - y, " ").concat(x, " ").concat(i.x - a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y) : _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x + y, " ").concat(i.y, " ").concat(m, " ").concat(c.x, " ").concat(i.y + a, " L ").concat(c.x, " ").concat(c.y)), i.x === c.x && (_ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x, " ").concat(c.y))) : (i.y < c.y && (l.type === P.MERGE && n.id !== l.parents[0] ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x - y, " ").concat(i.y, " ").concat(x, " ").concat(c.x, " ").concat(i.y + a, " L ").concat(c.x, " ").concat(c.y) : _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(c.y - y, " ").concat(m, " ").concat(i.x + a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y)), i.y > c.y && (l.type === P.MERGE && n.id !== l.parents[0] ? _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x - y, " ").concat(i.y, " ").concat(m, " ").concat(c.x, " ").concat(i.y - a, " L ").concat(c.x, " ").concat(c.y) : _ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(i.x, " ").concat(c.y + y, " ").concat(x, " ").concat(i.x + a, " ").concat(c.y, " L ").concat(c.x, " ").concat(c.y)), i.y === c.y && (_ = "M ".concat(i.x, " ").concat(i.y, " L ").concat(c.x, " ").concat(c.y)));
3755
- r.append("path").attr("d", _).attr("class", "arrow arrow" + R % U);
3756
- }, ot = function(r, n) {
3757
- var l = r.append("g").attr("class", "commit-arrows");
3758
- Object.keys(n).forEach(function(h) {
3759
- var i = n[h];
3760
- i.parents && i.parents.length > 0 && i.parents.forEach(function(c) {
3761
- ct(l, n[c], i, n);
3762
- });
3763
- });
3764
- }, lt = function(r, n) {
3765
- var l = index.Vn().gitGraph, h = r.append("g");
3766
- n.forEach(function(i, c) {
3767
- var p = c % U, m = H[i.name].pos, x = h.append("line");
3768
- x.attr("x1", 0), x.attr("y1", m), x.attr("x2", te), x.attr("y2", m), x.attr("class", "branch branch" + p), w === "TB" && (x.attr("y1", 30), x.attr("x1", m), x.attr("y2", te), x.attr("x2", m)), ne.push(m);
3769
- var y = i.name;
3770
- var a = Te(y), R = h.insert("rect"), b = h.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + p);
3771
- b.node().appendChild(a);
3772
- var f = a.getBBox();
3773
- R.attr("class", "branchLabelBkg label" + p).attr("rx", 4).attr("ry", 4).attr("x", -f.width - 4 - (l.rotateCommitLabel === true ? 30 : 0)).attr("y", -f.height / 2 + 8).attr("width", f.width + 18).attr("height", f.height + 4), b.attr("transform", "translate(" + (-f.width - 14 - (l.rotateCommitLabel === true ? 30 : 0)) + ", " + (m - f.height / 2 - 1) + ")"), w === "TB" && (R.attr("x", m - f.width / 2 - 10).attr("y", 0), b.attr("transform", "translate(" + (m - f.width / 2 - 5) + ", 0)")), w !== "TB" && R.attr("transform", "translate(-19, " + (m - f.height / 2) + ")");
3774
- });
3775
- }, ht = function ht(r, n, l, h) {
3776
- st();
3777
- var i = index.Vn(), c = i.gitGraph;
3778
- index.L.debug("in gitgraph renderer", r + "\n", "id:", n, l), Z = h.db.getCommits();
3779
- var p = h.db.getBranchesAsObjArray();
3780
- w = h.db.getDirection();
3781
- var m = index.bt('[id="'.concat(n, '"]'));
3782
- var x = 0;
3783
- var _c_useMaxWidth;
3784
- p.forEach(function(y, a) {
3785
- var R = Te(y.name), _ = m.append("g"), b = _.insert("g").attr("class", "branchLabel"), f = b.insert("g").attr("class", "label branch-label");
3786
- f.node().appendChild(R);
3787
- var k = R.getBBox();
3788
- H[y.name] = {
3789
- pos: x,
3790
- index: a
3791
- }, x += 50 + (c.rotateCommitLabel ? 40 : 0) + (w === "TB" ? k.width / 2 : 0), f.remove(), b.remove(), _.remove();
3792
- }), de(m, Z, false), c.showBranches && lt(m, p), ot(m, Z), de(m, Z, true), index.ei.insertTitle(m, "gitTitleText", c.titleTopMargin, h.db.getDiagramTitle()), index.R_(void 0, m, c.diagramPadding, (_c_useMaxWidth = c.useMaxWidth) !== null && _c_useMaxWidth !== void 0 ? _c_useMaxWidth : i.useMaxWidth);
3793
- }, mt = {
3794
- draw: ht
3795
- }, ut = function(r) {
3796
- return "\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ".concat([
3797
- 0,
3798
- 1,
3799
- 2,
3800
- 3,
3801
- 4,
3802
- 5,
3803
- 6,
3804
- 7
3805
- ].map(function(n) {
3806
- return "\n .branch-label".concat(n, " { fill: ").concat(r["gitBranchLabel" + n], "; }\n .commit").concat(n, " { stroke: ").concat(r["git" + n], "; fill: ").concat(r["git" + n], "; }\n .commit-highlight").concat(n, " { stroke: ").concat(r["gitInv" + n], "; fill: ").concat(r["gitInv" + n], "; }\n .label").concat(n, " { fill: ").concat(r["git" + n], "; }\n .arrow").concat(n, " { stroke: ").concat(r["git" + n], "; }\n ");
3807
- }).join("\n"), "\n\n .branch {\n stroke-width: 1;\n stroke: ").concat(r.lineColor, ";\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ").concat(r.commitLabelFontSize, "; fill: ").concat(r.commitLabelColor, ";}\n .commit-label-bkg { font-size: ").concat(r.commitLabelFontSize, "; fill: ").concat(r.commitLabelBackground, "; opacity: 0.5; }\n .tag-label { font-size: ").concat(r.tagLabelFontSize, "; fill: ").concat(r.tagLabelColor, ";}\n .tag-label-bkg { fill: ").concat(r.tagLabelBackground, "; stroke: ").concat(r.tagLabelBorder, "; }\n .tag-hole { fill: ").concat(r.textColor, "; }\n\n .commit-merge {\n stroke: ").concat(r.primaryColor, ";\n fill: ").concat(r.primaryColor, ";\n }\n .commit-reverse {\n stroke: ").concat(r.primaryColor, ";\n fill: ").concat(r.primaryColor, ";\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ").concat(r.primaryColor, ";\n fill: ").concat(r.primaryColor, ";\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(r.textColor, ";\n }\n");
3808
- }, ft = ut, bt = {
3809
- parser: Ve,
3810
- db: it,
3811
- renderer: mt,
3812
- styles: ft
3813
- };
3814
-
3815
- exports.diagram = bt;