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