@digipair/skill-web-chatbot 0.90.0 → 0.91.0-0

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