@digipair/skill-web-chatbot 0.3.0

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