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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/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/Tableau10-558cc280.cjs.js +9 -0
  6. package/Tableau10-558cc280.esm.js +7 -0
  7. package/arc-d1f6357e.cjs.js +88 -0
  8. package/arc-d1f6357e.esm.js +86 -0
  9. package/array-2ff2c7a6.cjs.js +7 -0
  10. package/array-2ff2c7a6.esm.js +5 -0
  11. package/blockDiagram-5dc23a45.cjs.js +2921 -0
  12. package/blockDiagram-5dc23a45.esm.js +2919 -0
  13. package/c4Diagram-1e775db3.cjs.js +4387 -0
  14. package/c4Diagram-1e775db3.esm.js +4385 -0
  15. package/channel-ebbc4130.cjs.js +9 -0
  16. package/channel-ebbc4130.esm.js +7 -0
  17. package/classDiagram-f52caa06.cjs.js +209 -0
  18. package/classDiagram-f52caa06.esm.js +207 -0
  19. package/classDiagram-v2-640c694e.cjs.js +401 -0
  20. package/classDiagram-v2-640c694e.esm.js +399 -0
  21. package/clone-afc2f047.cjs.js +10 -0
  22. package/clone-afc2f047.esm.js +8 -0
  23. package/createText-03b82060.cjs.js +2936 -0
  24. package/createText-03b82060.esm.js +2933 -0
  25. package/edges-16357fde.cjs.js +1998 -0
  26. package/edges-16357fde.esm.js +1981 -0
  27. package/erDiagram-c7ff1bec.cjs.js +1807 -0
  28. package/erDiagram-c7ff1bec.esm.js +1805 -0
  29. package/flowDb-9a89ea33.cjs.js +5542 -0
  30. package/flowDb-9a89ea33.esm.js +5538 -0
  31. package/flowDiagram-aadb13b0.cjs.js +1351 -0
  32. package/flowDiagram-aadb13b0.esm.js +1349 -0
  33. package/flowDiagram-v2-f2119625.cjs.js +31 -0
  34. package/flowDiagram-v2-f2119625.esm.js +29 -0
  35. package/flowchart-elk-definition-cf813a97.cjs.js +50257 -0
  36. package/flowchart-elk-definition-cf813a97.esm.js +50255 -0
  37. package/ganttDiagram-3c2fde2b.cjs.js +3710 -0
  38. package/ganttDiagram-3c2fde2b.esm.js +3708 -0
  39. package/gitGraphDiagram-c3a0619c.cjs.js +3820 -0
  40. package/gitGraphDiagram-c3a0619c.esm.js +3818 -0
  41. package/graph-0ee63739.cjs.js +961 -0
  42. package/graph-0ee63739.esm.js +938 -0
  43. package/index-bb6d8841.cjs.js +648 -0
  44. package/index-bb6d8841.esm.js +646 -0
  45. package/index.cjs.d.ts +1 -0
  46. package/index.cjs.js +17 -0
  47. package/index.cjs2.js +60723 -0
  48. package/index.esm.js +1 -0
  49. package/index.esm2.js +60574 -0
  50. package/infoDiagram-2f5c50c0.cjs.js +460 -0
  51. package/infoDiagram-2f5c50c0.esm.js +458 -0
  52. package/init-f9637058.cjs.js +17 -0
  53. package/init-f9637058.esm.js +15 -0
  54. package/journeyDiagram-14fe341a.cjs.js +1061 -0
  55. package/journeyDiagram-14fe341a.esm.js +1059 -0
  56. package/katex-d90b6d29.cjs.js +25690 -0
  57. package/katex-d90b6d29.esm.js +25688 -0
  58. package/layout-fd473db2.cjs.js +1626 -0
  59. package/layout-fd473db2.esm.js +1619 -0
  60. package/libs/engine/src/index.d.ts +2 -0
  61. package/libs/engine/src/lib/alias.interface.d.ts +9 -0
  62. package/libs/engine/src/lib/engine.d.ts +13 -0
  63. package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
  64. package/libs/skill-web-chatbot/src/lib/chat.element.d.ts +28 -0
  65. package/libs/skill-web-chatbot/src/lib/common.data.d.ts +1 -0
  66. package/libs/skill-web-chatbot/src/lib/config.d.ts +9 -0
  67. package/libs/skill-web-chatbot/src/lib/digipair-full.data.d.ts +1 -0
  68. package/libs/skill-web-chatbot/src/lib/digipair-full.element.d.ts +36 -0
  69. package/libs/skill-web-chatbot/src/lib/digipair.data.d.ts +1 -0
  70. package/libs/skill-web-chatbot/src/lib/digipair.element.d.ts +44 -0
  71. package/libs/skill-web-chatbot/src/lib/inputs.element.d.ts +10 -0
  72. package/libs/skill-web-chatbot/src/lib/message.interface.d.ts +10 -0
  73. package/libs/skill-web-chatbot/src/lib/pins/chatbot.actions.d.ts +1 -0
  74. package/libs/skill-web-chatbot/src/lib/tools/css-selector.d.ts +1 -0
  75. package/line-24d93f1b.cjs.js +34 -0
  76. package/line-24d93f1b.esm.js +32 -0
  77. package/linear-9bcf74c4.cjs.js +537 -0
  78. package/linear-9bcf74c4.esm.js +531 -0
  79. package/mindmap-definition-9399c7e6.cjs.js +20489 -0
  80. package/mindmap-definition-9399c7e6.esm.js +20487 -0
  81. package/ordinal-5695958c.cjs.js +331 -0
  82. package/ordinal-5695958c.esm.js +329 -0
  83. package/package.json +7 -22
  84. package/path-428ebac9.cjs.js +317 -0
  85. package/path-428ebac9.esm.js +314 -0
  86. package/pieDiagram-828dae43.cjs.js +951 -0
  87. package/pieDiagram-828dae43.esm.js +949 -0
  88. package/quadrantDiagram-5fa00455.cjs.js +2410 -0
  89. package/quadrantDiagram-5fa00455.esm.js +2408 -0
  90. package/requirementDiagram-03163dc4.cjs.js +2267 -0
  91. package/requirementDiagram-03163dc4.esm.js +2265 -0
  92. package/sankeyDiagram-52ec8976.cjs.js +1848 -0
  93. package/sankeyDiagram-52ec8976.esm.js +1846 -0
  94. package/sequenceDiagram-b517d154.cjs.js +5949 -0
  95. package/sequenceDiagram-b517d154.esm.js +5947 -0
  96. package/stateDiagram-fca82b5b.cjs.js +283 -0
  97. package/stateDiagram-fca82b5b.esm.js +281 -0
  98. package/stateDiagram-v2-ed04200a.cjs.js +373 -0
  99. package/stateDiagram-v2-ed04200a.esm.js +371 -0
  100. package/styles-11e81fdd.cjs.js +3944 -0
  101. package/styles-11e81fdd.esm.js +3940 -0
  102. package/styles-cacbff60.cjs.js +2120 -0
  103. package/styles-cacbff60.esm.js +2111 -0
  104. package/styles-e75131e4.cjs.js +671 -0
  105. package/styles-e75131e4.esm.js +661 -0
  106. package/svgDrawCommon-ecc5f780.cjs.js +68 -0
  107. package/svgDrawCommon-ecc5f780.esm.js +60 -0
  108. package/timeline-definition-4ee9bff4.cjs.js +1161 -0
  109. package/timeline-definition-4ee9bff4.esm.js +1159 -0
  110. package/xychartDiagram-e5e6b652.cjs.js +3150 -0
  111. package/xychartDiagram-e5e6b652.esm.js +3148 -0
  112. package/.swcrc +0 -28
  113. package/README.md +0 -7
  114. package/eslint.config.mjs +0 -22
  115. package/rollup.config.cjs +0 -28
  116. package/src/digipair__engine.d.ts +0 -2
  117. package/src/handlebars.d.ts +0 -1
  118. package/src/index.html +0 -18
  119. package/src/lib/chat.element.ts +0 -603
  120. package/src/lib/common.data.ts +0 -1
  121. package/src/lib/config.ts +0 -30
  122. package/src/lib/digipair-full.data.ts +0 -101
  123. package/src/lib/digipair-full.element.ts +0 -358
  124. package/src/lib/digipair.data.ts +0 -103
  125. package/src/lib/digipair.element.ts +0 -446
  126. package/src/lib/inputs.element.ts +0 -46
  127. package/src/lib/mermaid.d.ts +0 -1
  128. package/src/lib/message.interface.ts +0 -10
  129. package/src/lib/pins/chatbot.actions.ts +0 -32
  130. package/src/lib/tools/css-selector.ts +0 -12
  131. package/tsconfig.json +0 -13
  132. package/tsconfig.lib.json +0 -19
  133. /package/{src/index.d.ts → index.d.ts} +0 -0
  134. /package/{src/index.ts → libs/skill-web-chatbot/src/index.d.ts} +0 -0
  135. /package/{src/schema.fr.json → schema.fr.json} +0 -0
  136. /package/{src/schema.json → schema.json} +0 -0
@@ -0,0 +1,2919 @@
1
+ import { V as Vn, b0 as $t, c as L, j as B_, ah as Je$1, $ as $n, b as bt, O as Ol, B as B0 } from './index.esm2.js';
2
+ import { a } from './clone-afc2f047.esm.js';
3
+ import { e } from './channel-ebbc4130.esm.js';
4
+ import { h as hr, g as gr, x as xr, u as ur, o as or, p as pr } from './edges-16357fde.esm.js';
5
+ import { Z as Ze$1 } from './graph-0ee63739.esm.js';
6
+ import { h } from './ordinal-5695958c.esm.js';
7
+ import { r } from './Tableau10-558cc280.esm.js';
8
+ import './createText-03b82060.esm.js';
9
+ import './line-24d93f1b.esm.js';
10
+ import './array-2ff2c7a6.esm.js';
11
+ import './path-428ebac9.esm.js';
12
+ import './init-f9637058.esm.js';
13
+
14
+ function _array_like_to_array(arr, len) {
15
+ if (len == null || len > arr.length) len = arr.length;
16
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
17
+ return arr2;
18
+ }
19
+ function _array_without_holes(arr) {
20
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
21
+ }
22
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
23
+ try {
24
+ var info = gen[key](arg);
25
+ var value = info.value;
26
+ } catch (error) {
27
+ reject(error);
28
+ return;
29
+ }
30
+ if (info.done) {
31
+ resolve(value);
32
+ } else {
33
+ Promise.resolve(value).then(_next, _throw);
34
+ }
35
+ }
36
+ function _async_to_generator(fn) {
37
+ return function() {
38
+ var self = this, args = arguments;
39
+ return new Promise(function(resolve, reject) {
40
+ var gen = fn.apply(self, args);
41
+ function _next(value) {
42
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
43
+ }
44
+ function _throw(err) {
45
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
46
+ }
47
+ _next(undefined);
48
+ });
49
+ };
50
+ }
51
+ function _define_property(obj, key, value) {
52
+ if (key in obj) {
53
+ Object.defineProperty(obj, key, {
54
+ value: value,
55
+ enumerable: true,
56
+ configurable: true,
57
+ writable: true
58
+ });
59
+ } else {
60
+ obj[key] = value;
61
+ }
62
+ return obj;
63
+ }
64
+ function _instanceof(left, right) {
65
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
66
+ return !!right[Symbol.hasInstance](left);
67
+ } else {
68
+ return left instanceof right;
69
+ }
70
+ }
71
+ function _iterable_to_array(iter) {
72
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
73
+ }
74
+ function _non_iterable_spread() {
75
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
76
+ }
77
+ function _object_spread(target) {
78
+ for(var i = 1; i < arguments.length; i++){
79
+ var source = arguments[i] != null ? arguments[i] : {};
80
+ var ownKeys = Object.keys(source);
81
+ if (typeof Object.getOwnPropertySymbols === "function") {
82
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
83
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
84
+ }));
85
+ }
86
+ ownKeys.forEach(function(key) {
87
+ _define_property(target, key, source[key]);
88
+ });
89
+ }
90
+ return target;
91
+ }
92
+ function ownKeys(object, enumerableOnly) {
93
+ var keys = Object.keys(object);
94
+ if (Object.getOwnPropertySymbols) {
95
+ var symbols = Object.getOwnPropertySymbols(object);
96
+ if (enumerableOnly) {
97
+ symbols = symbols.filter(function(sym) {
98
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
99
+ });
100
+ }
101
+ keys.push.apply(keys, symbols);
102
+ }
103
+ return keys;
104
+ }
105
+ function _object_spread_props(target, source) {
106
+ source = source != null ? source : {};
107
+ if (Object.getOwnPropertyDescriptors) {
108
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
109
+ } else {
110
+ ownKeys(Object(source)).forEach(function(key) {
111
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
112
+ });
113
+ }
114
+ return target;
115
+ }
116
+ function _to_consumable_array(arr) {
117
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
118
+ }
119
+ function _type_of(obj) {
120
+ "@swc/helpers - typeof";
121
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
122
+ }
123
+ function _unsupported_iterable_to_array(o, minLen) {
124
+ if (!o) return;
125
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
126
+ var n = Object.prototype.toString.call(o).slice(8, -1);
127
+ if (n === "Object" && o.constructor) n = o.constructor.name;
128
+ if (n === "Map" || n === "Set") return Array.from(n);
129
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
130
+ }
131
+ function _ts_generator(thisArg, body) {
132
+ var f, y, t, g, _ = {
133
+ label: 0,
134
+ sent: function() {
135
+ if (t[0] & 1) throw t[1];
136
+ return t[1];
137
+ },
138
+ trys: [],
139
+ ops: []
140
+ };
141
+ return g = {
142
+ next: verb(0),
143
+ "throw": verb(1),
144
+ "return": verb(2)
145
+ }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
146
+ return this;
147
+ }), g;
148
+ function verb(n) {
149
+ return function(v) {
150
+ return step([
151
+ n,
152
+ v
153
+ ]);
154
+ };
155
+ }
156
+ function step(op) {
157
+ if (f) throw new TypeError("Generator is already executing.");
158
+ while(_)try {
159
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
160
+ if (y = 0, t) op = [
161
+ op[0] & 2,
162
+ t.value
163
+ ];
164
+ switch(op[0]){
165
+ case 0:
166
+ case 1:
167
+ t = op;
168
+ break;
169
+ case 4:
170
+ _.label++;
171
+ return {
172
+ value: op[1],
173
+ done: false
174
+ };
175
+ case 5:
176
+ _.label++;
177
+ y = op[1];
178
+ op = [
179
+ 0
180
+ ];
181
+ continue;
182
+ case 7:
183
+ op = _.ops.pop();
184
+ _.trys.pop();
185
+ continue;
186
+ default:
187
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
188
+ _ = 0;
189
+ continue;
190
+ }
191
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
192
+ _.label = op[1];
193
+ break;
194
+ }
195
+ if (op[0] === 6 && _.label < t[1]) {
196
+ _.label = t[1];
197
+ t = op;
198
+ break;
199
+ }
200
+ if (t && _.label < t[2]) {
201
+ _.label = t[2];
202
+ _.ops.push(op);
203
+ break;
204
+ }
205
+ if (t[2]) _.ops.pop();
206
+ _.trys.pop();
207
+ continue;
208
+ }
209
+ op = body.call(thisArg, _);
210
+ } catch (e) {
211
+ op = [
212
+ 6,
213
+ e
214
+ ];
215
+ y = 0;
216
+ } finally{
217
+ f = t = 0;
218
+ }
219
+ if (op[0] & 5) throw op[1];
220
+ return {
221
+ value: op[0] ? op[1] : void 0,
222
+ done: true
223
+ };
224
+ }
225
+ }
226
+ var ee = function() {
227
+ var e = function e(D, l, s, r) {
228
+ for(s = s || {}, r = D.length; r--; s[D[r]] = l);
229
+ return s;
230
+ }, c = [
231
+ 1,
232
+ 7
233
+ ], u = [
234
+ 1,
235
+ 13
236
+ ], a = [
237
+ 1,
238
+ 14
239
+ ], i = [
240
+ 1,
241
+ 15
242
+ ], g = [
243
+ 1,
244
+ 19
245
+ ], o = [
246
+ 1,
247
+ 16
248
+ ], p = [
249
+ 1,
250
+ 17
251
+ ], f = [
252
+ 1,
253
+ 18
254
+ ], m = [
255
+ 8,
256
+ 30
257
+ ], S = [
258
+ 8,
259
+ 21,
260
+ 28,
261
+ 29,
262
+ 30,
263
+ 31,
264
+ 32,
265
+ 40,
266
+ 44,
267
+ 47
268
+ ], y = [
269
+ 1,
270
+ 23
271
+ ], z = [
272
+ 1,
273
+ 24
274
+ ], I = [
275
+ 8,
276
+ 15,
277
+ 16,
278
+ 21,
279
+ 28,
280
+ 29,
281
+ 30,
282
+ 31,
283
+ 32,
284
+ 40,
285
+ 44,
286
+ 47
287
+ ], w = [
288
+ 8,
289
+ 15,
290
+ 16,
291
+ 21,
292
+ 27,
293
+ 28,
294
+ 29,
295
+ 30,
296
+ 31,
297
+ 32,
298
+ 40,
299
+ 44,
300
+ 47
301
+ ], C = [
302
+ 1,
303
+ 49
304
+ ], E = {
305
+ trace: function trace() {},
306
+ yy: {},
307
+ symbols_: {
308
+ error: 2,
309
+ spaceLines: 3,
310
+ SPACELINE: 4,
311
+ NL: 5,
312
+ separator: 6,
313
+ SPACE: 7,
314
+ EOF: 8,
315
+ start: 9,
316
+ BLOCK_DIAGRAM_KEY: 10,
317
+ document: 11,
318
+ stop: 12,
319
+ statement: 13,
320
+ link: 14,
321
+ LINK: 15,
322
+ START_LINK: 16,
323
+ LINK_LABEL: 17,
324
+ STR: 18,
325
+ nodeStatement: 19,
326
+ columnsStatement: 20,
327
+ SPACE_BLOCK: 21,
328
+ blockStatement: 22,
329
+ classDefStatement: 23,
330
+ cssClassStatement: 24,
331
+ styleStatement: 25,
332
+ node: 26,
333
+ SIZE: 27,
334
+ COLUMNS: 28,
335
+ "id-block": 29,
336
+ end: 30,
337
+ block: 31,
338
+ NODE_ID: 32,
339
+ nodeShapeNLabel: 33,
340
+ dirList: 34,
341
+ DIR: 35,
342
+ NODE_DSTART: 36,
343
+ NODE_DEND: 37,
344
+ BLOCK_ARROW_START: 38,
345
+ BLOCK_ARROW_END: 39,
346
+ classDef: 40,
347
+ CLASSDEF_ID: 41,
348
+ CLASSDEF_STYLEOPTS: 42,
349
+ DEFAULT: 43,
350
+ class: 44,
351
+ CLASSENTITY_IDS: 45,
352
+ STYLECLASS: 46,
353
+ style: 47,
354
+ STYLE_ENTITY_IDS: 48,
355
+ STYLE_DEFINITION_DATA: 49,
356
+ $accept: 0,
357
+ $end: 1
358
+ },
359
+ terminals_: {
360
+ 2: "error",
361
+ 4: "SPACELINE",
362
+ 5: "NL",
363
+ 7: "SPACE",
364
+ 8: "EOF",
365
+ 10: "BLOCK_DIAGRAM_KEY",
366
+ 15: "LINK",
367
+ 16: "START_LINK",
368
+ 17: "LINK_LABEL",
369
+ 18: "STR",
370
+ 21: "SPACE_BLOCK",
371
+ 27: "SIZE",
372
+ 28: "COLUMNS",
373
+ 29: "id-block",
374
+ 30: "end",
375
+ 31: "block",
376
+ 32: "NODE_ID",
377
+ 35: "DIR",
378
+ 36: "NODE_DSTART",
379
+ 37: "NODE_DEND",
380
+ 38: "BLOCK_ARROW_START",
381
+ 39: "BLOCK_ARROW_END",
382
+ 40: "classDef",
383
+ 41: "CLASSDEF_ID",
384
+ 42: "CLASSDEF_STYLEOPTS",
385
+ 43: "DEFAULT",
386
+ 44: "class",
387
+ 45: "CLASSENTITY_IDS",
388
+ 46: "STYLECLASS",
389
+ 47: "style",
390
+ 48: "STYLE_ENTITY_IDS",
391
+ 49: "STYLE_DEFINITION_DATA"
392
+ },
393
+ productions_: [
394
+ 0,
395
+ [
396
+ 3,
397
+ 1
398
+ ],
399
+ [
400
+ 3,
401
+ 2
402
+ ],
403
+ [
404
+ 3,
405
+ 2
406
+ ],
407
+ [
408
+ 6,
409
+ 1
410
+ ],
411
+ [
412
+ 6,
413
+ 1
414
+ ],
415
+ [
416
+ 6,
417
+ 1
418
+ ],
419
+ [
420
+ 9,
421
+ 3
422
+ ],
423
+ [
424
+ 12,
425
+ 1
426
+ ],
427
+ [
428
+ 12,
429
+ 1
430
+ ],
431
+ [
432
+ 12,
433
+ 2
434
+ ],
435
+ [
436
+ 12,
437
+ 2
438
+ ],
439
+ [
440
+ 11,
441
+ 1
442
+ ],
443
+ [
444
+ 11,
445
+ 2
446
+ ],
447
+ [
448
+ 14,
449
+ 1
450
+ ],
451
+ [
452
+ 14,
453
+ 4
454
+ ],
455
+ [
456
+ 13,
457
+ 1
458
+ ],
459
+ [
460
+ 13,
461
+ 1
462
+ ],
463
+ [
464
+ 13,
465
+ 1
466
+ ],
467
+ [
468
+ 13,
469
+ 1
470
+ ],
471
+ [
472
+ 13,
473
+ 1
474
+ ],
475
+ [
476
+ 13,
477
+ 1
478
+ ],
479
+ [
480
+ 13,
481
+ 1
482
+ ],
483
+ [
484
+ 19,
485
+ 3
486
+ ],
487
+ [
488
+ 19,
489
+ 2
490
+ ],
491
+ [
492
+ 19,
493
+ 1
494
+ ],
495
+ [
496
+ 20,
497
+ 1
498
+ ],
499
+ [
500
+ 22,
501
+ 4
502
+ ],
503
+ [
504
+ 22,
505
+ 3
506
+ ],
507
+ [
508
+ 26,
509
+ 1
510
+ ],
511
+ [
512
+ 26,
513
+ 2
514
+ ],
515
+ [
516
+ 34,
517
+ 1
518
+ ],
519
+ [
520
+ 34,
521
+ 2
522
+ ],
523
+ [
524
+ 33,
525
+ 3
526
+ ],
527
+ [
528
+ 33,
529
+ 4
530
+ ],
531
+ [
532
+ 23,
533
+ 3
534
+ ],
535
+ [
536
+ 23,
537
+ 3
538
+ ],
539
+ [
540
+ 24,
541
+ 3
542
+ ],
543
+ [
544
+ 25,
545
+ 3
546
+ ]
547
+ ],
548
+ performAction: function performAction(l, s, r, h, d, t, x) {
549
+ var n = t.length - 1;
550
+ switch(d){
551
+ case 4:
552
+ h.getLogger().debug("Rule: separator (NL) ");
553
+ break;
554
+ case 5:
555
+ h.getLogger().debug("Rule: separator (Space) ");
556
+ break;
557
+ case 6:
558
+ h.getLogger().debug("Rule: separator (EOF) ");
559
+ break;
560
+ case 7:
561
+ h.getLogger().debug("Rule: hierarchy: ", t[n - 1]), h.setHierarchy(t[n - 1]);
562
+ break;
563
+ case 8:
564
+ h.getLogger().debug("Stop NL ");
565
+ break;
566
+ case 9:
567
+ h.getLogger().debug("Stop EOF ");
568
+ break;
569
+ case 10:
570
+ h.getLogger().debug("Stop NL2 ");
571
+ break;
572
+ case 11:
573
+ h.getLogger().debug("Stop EOF2 ");
574
+ break;
575
+ case 12:
576
+ h.getLogger().debug("Rule: statement: ", t[n]), typeof t[n].length == "number" ? this.$ = t[n] : this.$ = [
577
+ t[n]
578
+ ];
579
+ break;
580
+ case 13:
581
+ h.getLogger().debug("Rule: statement #2: ", t[n - 1]), this.$ = [
582
+ t[n - 1]
583
+ ].concat(t[n]);
584
+ break;
585
+ case 14:
586
+ h.getLogger().debug("Rule: link: ", t[n], l), this.$ = {
587
+ edgeTypeStr: t[n],
588
+ label: ""
589
+ };
590
+ break;
591
+ case 15:
592
+ h.getLogger().debug("Rule: LABEL link: ", t[n - 3], t[n - 1], t[n]), this.$ = {
593
+ edgeTypeStr: t[n],
594
+ label: t[n - 1]
595
+ };
596
+ break;
597
+ case 18:
598
+ var B = parseInt(t[n]), Y = h.generateId();
599
+ this.$ = {
600
+ id: Y,
601
+ type: "space",
602
+ label: "",
603
+ width: B,
604
+ children: []
605
+ };
606
+ break;
607
+ case 23:
608
+ h.getLogger().debug("Rule: (nodeStatement link node) ", t[n - 2], t[n - 1], t[n], " typestr: ", t[n - 1].edgeTypeStr);
609
+ var F = h.edgeStrToEdgeData(t[n - 1].edgeTypeStr);
610
+ this.$ = [
611
+ {
612
+ id: t[n - 2].id,
613
+ label: t[n - 2].label,
614
+ type: t[n - 2].type,
615
+ directions: t[n - 2].directions
616
+ },
617
+ {
618
+ id: t[n - 2].id + "-" + t[n].id,
619
+ start: t[n - 2].id,
620
+ end: t[n].id,
621
+ label: t[n - 1].label,
622
+ type: "edge",
623
+ directions: t[n].directions,
624
+ arrowTypeEnd: F,
625
+ arrowTypeStart: "arrow_open"
626
+ },
627
+ {
628
+ id: t[n].id,
629
+ label: t[n].label,
630
+ type: h.typeStr2Type(t[n].typeStr),
631
+ directions: t[n].directions
632
+ }
633
+ ];
634
+ break;
635
+ case 24:
636
+ h.getLogger().debug("Rule: nodeStatement (abc88 node size) ", t[n - 1], t[n]), this.$ = {
637
+ id: t[n - 1].id,
638
+ label: t[n - 1].label,
639
+ type: h.typeStr2Type(t[n - 1].typeStr),
640
+ directions: t[n - 1].directions,
641
+ widthInColumns: parseInt(t[n], 10)
642
+ };
643
+ break;
644
+ case 25:
645
+ h.getLogger().debug("Rule: nodeStatement (node) ", t[n]), this.$ = {
646
+ id: t[n].id,
647
+ label: t[n].label,
648
+ type: h.typeStr2Type(t[n].typeStr),
649
+ directions: t[n].directions,
650
+ widthInColumns: 1
651
+ };
652
+ break;
653
+ case 26:
654
+ h.getLogger().debug("APA123", this ? this : "na"), h.getLogger().debug("COLUMNS: ", t[n]), this.$ = {
655
+ type: "column-setting",
656
+ columns: t[n] === "auto" ? -1 : parseInt(t[n])
657
+ };
658
+ break;
659
+ case 27:
660
+ h.getLogger().debug("Rule: id-block statement : ", t[n - 2], t[n - 1]), h.generateId(), this.$ = _object_spread_props(_object_spread({}, t[n - 2]), {
661
+ type: "composite",
662
+ children: t[n - 1]
663
+ });
664
+ break;
665
+ case 28:
666
+ h.getLogger().debug("Rule: blockStatement : ", t[n - 2], t[n - 1], t[n]);
667
+ var R = h.generateId();
668
+ this.$ = {
669
+ id: R,
670
+ type: "composite",
671
+ label: "",
672
+ children: t[n - 1]
673
+ };
674
+ break;
675
+ case 29:
676
+ h.getLogger().debug("Rule: node (NODE_ID separator): ", t[n]), this.$ = {
677
+ id: t[n]
678
+ };
679
+ break;
680
+ case 30:
681
+ h.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[n - 1], t[n]), this.$ = {
682
+ id: t[n - 1],
683
+ label: t[n].label,
684
+ typeStr: t[n].typeStr,
685
+ directions: t[n].directions
686
+ };
687
+ break;
688
+ case 31:
689
+ h.getLogger().debug("Rule: dirList: ", t[n]), this.$ = [
690
+ t[n]
691
+ ];
692
+ break;
693
+ case 32:
694
+ h.getLogger().debug("Rule: dirList: ", t[n - 1], t[n]), this.$ = [
695
+ t[n - 1]
696
+ ].concat(t[n]);
697
+ break;
698
+ case 33:
699
+ h.getLogger().debug("Rule: nodeShapeNLabel: ", t[n - 2], t[n - 1], t[n]), this.$ = {
700
+ typeStr: t[n - 2] + t[n],
701
+ label: t[n - 1]
702
+ };
703
+ break;
704
+ case 34:
705
+ h.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", t[n - 3], t[n - 2], " #3:", t[n - 1], t[n]), this.$ = {
706
+ typeStr: t[n - 3] + t[n],
707
+ label: t[n - 2],
708
+ directions: t[n - 1]
709
+ };
710
+ break;
711
+ case 35:
712
+ case 36:
713
+ this.$ = {
714
+ type: "classDef",
715
+ id: t[n - 1].trim(),
716
+ css: t[n].trim()
717
+ };
718
+ break;
719
+ case 37:
720
+ this.$ = {
721
+ type: "applyClass",
722
+ id: t[n - 1].trim(),
723
+ styleClass: t[n].trim()
724
+ };
725
+ break;
726
+ case 38:
727
+ this.$ = {
728
+ type: "applyStyles",
729
+ id: t[n - 1].trim(),
730
+ stylesStr: t[n].trim()
731
+ };
732
+ break;
733
+ }
734
+ },
735
+ table: [
736
+ {
737
+ 9: 1,
738
+ 10: [
739
+ 1,
740
+ 2
741
+ ]
742
+ },
743
+ {
744
+ 1: [
745
+ 3
746
+ ]
747
+ },
748
+ {
749
+ 11: 3,
750
+ 13: 4,
751
+ 19: 5,
752
+ 20: 6,
753
+ 21: c,
754
+ 22: 8,
755
+ 23: 9,
756
+ 24: 10,
757
+ 25: 11,
758
+ 26: 12,
759
+ 28: u,
760
+ 29: a,
761
+ 31: i,
762
+ 32: g,
763
+ 40: o,
764
+ 44: p,
765
+ 47: f
766
+ },
767
+ {
768
+ 8: [
769
+ 1,
770
+ 20
771
+ ]
772
+ },
773
+ e(m, [
774
+ 2,
775
+ 12
776
+ ], {
777
+ 13: 4,
778
+ 19: 5,
779
+ 20: 6,
780
+ 22: 8,
781
+ 23: 9,
782
+ 24: 10,
783
+ 25: 11,
784
+ 26: 12,
785
+ 11: 21,
786
+ 21: c,
787
+ 28: u,
788
+ 29: a,
789
+ 31: i,
790
+ 32: g,
791
+ 40: o,
792
+ 44: p,
793
+ 47: f
794
+ }),
795
+ e(S, [
796
+ 2,
797
+ 16
798
+ ], {
799
+ 14: 22,
800
+ 15: y,
801
+ 16: z
802
+ }),
803
+ e(S, [
804
+ 2,
805
+ 17
806
+ ]),
807
+ e(S, [
808
+ 2,
809
+ 18
810
+ ]),
811
+ e(S, [
812
+ 2,
813
+ 19
814
+ ]),
815
+ e(S, [
816
+ 2,
817
+ 20
818
+ ]),
819
+ e(S, [
820
+ 2,
821
+ 21
822
+ ]),
823
+ e(S, [
824
+ 2,
825
+ 22
826
+ ]),
827
+ e(I, [
828
+ 2,
829
+ 25
830
+ ], {
831
+ 27: [
832
+ 1,
833
+ 25
834
+ ]
835
+ }),
836
+ e(S, [
837
+ 2,
838
+ 26
839
+ ]),
840
+ {
841
+ 19: 26,
842
+ 26: 12,
843
+ 32: g
844
+ },
845
+ {
846
+ 11: 27,
847
+ 13: 4,
848
+ 19: 5,
849
+ 20: 6,
850
+ 21: c,
851
+ 22: 8,
852
+ 23: 9,
853
+ 24: 10,
854
+ 25: 11,
855
+ 26: 12,
856
+ 28: u,
857
+ 29: a,
858
+ 31: i,
859
+ 32: g,
860
+ 40: o,
861
+ 44: p,
862
+ 47: f
863
+ },
864
+ {
865
+ 41: [
866
+ 1,
867
+ 28
868
+ ],
869
+ 43: [
870
+ 1,
871
+ 29
872
+ ]
873
+ },
874
+ {
875
+ 45: [
876
+ 1,
877
+ 30
878
+ ]
879
+ },
880
+ {
881
+ 48: [
882
+ 1,
883
+ 31
884
+ ]
885
+ },
886
+ e(w, [
887
+ 2,
888
+ 29
889
+ ], {
890
+ 33: 32,
891
+ 36: [
892
+ 1,
893
+ 33
894
+ ],
895
+ 38: [
896
+ 1,
897
+ 34
898
+ ]
899
+ }),
900
+ {
901
+ 1: [
902
+ 2,
903
+ 7
904
+ ]
905
+ },
906
+ e(m, [
907
+ 2,
908
+ 13
909
+ ]),
910
+ {
911
+ 26: 35,
912
+ 32: g
913
+ },
914
+ {
915
+ 32: [
916
+ 2,
917
+ 14
918
+ ]
919
+ },
920
+ {
921
+ 17: [
922
+ 1,
923
+ 36
924
+ ]
925
+ },
926
+ e(I, [
927
+ 2,
928
+ 24
929
+ ]),
930
+ {
931
+ 11: 37,
932
+ 13: 4,
933
+ 14: 22,
934
+ 15: y,
935
+ 16: z,
936
+ 19: 5,
937
+ 20: 6,
938
+ 21: c,
939
+ 22: 8,
940
+ 23: 9,
941
+ 24: 10,
942
+ 25: 11,
943
+ 26: 12,
944
+ 28: u,
945
+ 29: a,
946
+ 31: i,
947
+ 32: g,
948
+ 40: o,
949
+ 44: p,
950
+ 47: f
951
+ },
952
+ {
953
+ 30: [
954
+ 1,
955
+ 38
956
+ ]
957
+ },
958
+ {
959
+ 42: [
960
+ 1,
961
+ 39
962
+ ]
963
+ },
964
+ {
965
+ 42: [
966
+ 1,
967
+ 40
968
+ ]
969
+ },
970
+ {
971
+ 46: [
972
+ 1,
973
+ 41
974
+ ]
975
+ },
976
+ {
977
+ 49: [
978
+ 1,
979
+ 42
980
+ ]
981
+ },
982
+ e(w, [
983
+ 2,
984
+ 30
985
+ ]),
986
+ {
987
+ 18: [
988
+ 1,
989
+ 43
990
+ ]
991
+ },
992
+ {
993
+ 18: [
994
+ 1,
995
+ 44
996
+ ]
997
+ },
998
+ e(I, [
999
+ 2,
1000
+ 23
1001
+ ]),
1002
+ {
1003
+ 18: [
1004
+ 1,
1005
+ 45
1006
+ ]
1007
+ },
1008
+ {
1009
+ 30: [
1010
+ 1,
1011
+ 46
1012
+ ]
1013
+ },
1014
+ e(S, [
1015
+ 2,
1016
+ 28
1017
+ ]),
1018
+ e(S, [
1019
+ 2,
1020
+ 35
1021
+ ]),
1022
+ e(S, [
1023
+ 2,
1024
+ 36
1025
+ ]),
1026
+ e(S, [
1027
+ 2,
1028
+ 37
1029
+ ]),
1030
+ e(S, [
1031
+ 2,
1032
+ 38
1033
+ ]),
1034
+ {
1035
+ 37: [
1036
+ 1,
1037
+ 47
1038
+ ]
1039
+ },
1040
+ {
1041
+ 34: 48,
1042
+ 35: C
1043
+ },
1044
+ {
1045
+ 15: [
1046
+ 1,
1047
+ 50
1048
+ ]
1049
+ },
1050
+ e(S, [
1051
+ 2,
1052
+ 27
1053
+ ]),
1054
+ e(w, [
1055
+ 2,
1056
+ 33
1057
+ ]),
1058
+ {
1059
+ 39: [
1060
+ 1,
1061
+ 51
1062
+ ]
1063
+ },
1064
+ {
1065
+ 34: 52,
1066
+ 35: C,
1067
+ 39: [
1068
+ 2,
1069
+ 31
1070
+ ]
1071
+ },
1072
+ {
1073
+ 32: [
1074
+ 2,
1075
+ 15
1076
+ ]
1077
+ },
1078
+ e(w, [
1079
+ 2,
1080
+ 34
1081
+ ]),
1082
+ {
1083
+ 39: [
1084
+ 2,
1085
+ 32
1086
+ ]
1087
+ }
1088
+ ],
1089
+ defaultActions: {
1090
+ 20: [
1091
+ 2,
1092
+ 7
1093
+ ],
1094
+ 23: [
1095
+ 2,
1096
+ 14
1097
+ ],
1098
+ 50: [
1099
+ 2,
1100
+ 15
1101
+ ],
1102
+ 52: [
1103
+ 2,
1104
+ 32
1105
+ ]
1106
+ },
1107
+ parseError: function parseError(l, s) {
1108
+ if (s.recoverable) this.trace(l);
1109
+ else {
1110
+ var r = new Error(l);
1111
+ throw r.hash = s, r;
1112
+ }
1113
+ },
1114
+ parse: function parse(l) {
1115
+ var s = this, r = [
1116
+ 0
1117
+ ], h = [], d = [
1118
+ null
1119
+ ], t = [], x = this.table, n = "", B = 0, Y = 0, F = 2, R = 1, me = t.slice.call(arguments, 1), _ = Object.create(this.lexer), K = {
1120
+ yy: {}
1121
+ };
1122
+ for(var Z in this.yy)Object.prototype.hasOwnProperty.call(this.yy, Z) && (K.yy[Z] = this.yy[Z]);
1123
+ _.setInput(l, K.yy), K.yy.lexer = _, K.yy.parser = this, _type_of(_.yylloc) > "u" && (_.yylloc = {});
1124
+ var J = _.yylloc;
1125
+ t.push(J);
1126
+ var be = _.options && _.options.ranges;
1127
+ typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1128
+ function Ee() {
1129
+ var P;
1130
+ return P = h.pop() || _.lex() || R, typeof P != "number" && (_instanceof(P, Array) && (h = P, P = h.pop()), P = s.symbols_[P] || P), P;
1131
+ }
1132
+ for(var O, M, A, Q, W = {}, X, k, ae, G;;){
1133
+ if (M = r[r.length - 1], this.defaultActions[M] ? A = this.defaultActions[M] : ((O === null || (typeof O === "undefined" ? "undefined" : _type_of(O)) > "u") && (O = Ee()), A = x[M] && x[M][O]), (typeof A === "undefined" ? "undefined" : _type_of(A)) > "u" || !A.length || !A[0]) {
1134
+ var $ = "";
1135
+ G = [];
1136
+ for(X in x[M])this.terminals_[X] && X > F && G.push("'" + this.terminals_[X] + "'");
1137
+ _.showPosition ? $ = "Parse error on line " + (B + 1) + ":\n" + _.showPosition() + "\nExpecting " + G.join(", ") + ", got '" + (this.terminals_[O] || O) + "'" : $ = "Parse error on line " + (B + 1) + ": Unexpected " + (O == R ? "end of input" : "'" + (this.terminals_[O] || O) + "'"), this.parseError($, {
1138
+ text: _.match,
1139
+ token: this.terminals_[O] || O,
1140
+ line: _.yylineno,
1141
+ loc: J,
1142
+ expected: G
1143
+ });
1144
+ }
1145
+ if (_instanceof(A[0], Array) && A.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + O);
1146
+ switch(A[0]){
1147
+ case 1:
1148
+ r.push(O), d.push(_.yytext), t.push(_.yylloc), r.push(A[1]), O = null, Y = _.yyleng, n = _.yytext, B = _.yylineno, J = _.yylloc;
1149
+ break;
1150
+ case 2:
1151
+ if (k = this.productions_[A[1]][1], W.$ = d[d.length - k], W._$ = {
1152
+ first_line: t[t.length - (k || 1)].first_line,
1153
+ last_line: t[t.length - 1].last_line,
1154
+ first_column: t[t.length - (k || 1)].first_column,
1155
+ last_column: t[t.length - 1].last_column
1156
+ }, be && (W._$.range = [
1157
+ t[t.length - (k || 1)].range[0],
1158
+ t[t.length - 1].range[1]
1159
+ ]), Q = this.performAction.apply(W, [
1160
+ n,
1161
+ Y,
1162
+ B,
1163
+ K.yy,
1164
+ A[1],
1165
+ d,
1166
+ t
1167
+ ].concat(me)), (typeof Q === "undefined" ? "undefined" : _type_of(Q)) < "u") return Q;
1168
+ k && (r = r.slice(0, -1 * k * 2), d = d.slice(0, -1 * k), t = t.slice(0, -1 * k)), r.push(this.productions_[A[1]][0]), d.push(W.$), t.push(W._$), ae = x[r[r.length - 2]][r[r.length - 1]], r.push(ae);
1169
+ break;
1170
+ case 3:
1171
+ return !0;
1172
+ }
1173
+ }
1174
+ return !0;
1175
+ }
1176
+ }, v = function() {
1177
+ var D = {
1178
+ EOF: 1,
1179
+ parseError: function parseError(s, r) {
1180
+ if (this.yy.parser) this.yy.parser.parseError(s, r);
1181
+ else throw new Error(s);
1182
+ },
1183
+ // resets the lexer, sets new input
1184
+ setInput: function setInput(l, s) {
1185
+ return this.yy = s || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = [
1186
+ "INITIAL"
1187
+ ], this.yylloc = {
1188
+ first_line: 1,
1189
+ first_column: 0,
1190
+ last_line: 1,
1191
+ last_column: 0
1192
+ }, this.options.ranges && (this.yylloc.range = [
1193
+ 0,
1194
+ 0
1195
+ ]), this.offset = 0, this;
1196
+ },
1197
+ // consumes and returns one char from the input
1198
+ input: function input() {
1199
+ var l = this._input[0];
1200
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
1201
+ var s = l.match(/(?:\r\n?|\n).*/g);
1202
+ return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
1203
+ },
1204
+ // unshifts one char (or a string) into the input
1205
+ unput: function unput(l) {
1206
+ var s = l.length, r = l.split(/(?:\r\n?|\n)/g);
1207
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
1208
+ var h = this.match.split(/(?:\r\n?|\n)/g);
1209
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
1210
+ var d = this.yylloc.range;
1211
+ return this.yylloc = {
1212
+ first_line: this.yylloc.first_line,
1213
+ last_line: this.yylineno + 1,
1214
+ first_column: this.yylloc.first_column,
1215
+ last_column: r ? (r.length === h.length ? this.yylloc.first_column : 0) + h[h.length - r.length].length - r[0].length : this.yylloc.first_column - s
1216
+ }, this.options.ranges && (this.yylloc.range = [
1217
+ d[0],
1218
+ d[0] + this.yyleng - s
1219
+ ]), this.yyleng = this.yytext.length, this;
1220
+ },
1221
+ // When called from action, caches matched text and appends it on next action
1222
+ more: function more() {
1223
+ return this._more = !0, this;
1224
+ },
1225
+ // 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.
1226
+ reject: function reject() {
1227
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1228
+ 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(), {
1229
+ text: "",
1230
+ token: null,
1231
+ line: this.yylineno
1232
+ });
1233
+ return this;
1234
+ },
1235
+ // retain first n characters of the match
1236
+ less: function less(l) {
1237
+ this.unput(this.match.slice(l));
1238
+ },
1239
+ // displays already matched input, i.e. for error messages
1240
+ pastInput: function pastInput() {
1241
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
1242
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
1243
+ },
1244
+ // displays upcoming input, i.e. for error messages
1245
+ upcomingInput: function upcomingInput() {
1246
+ var l = this.match;
1247
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
1248
+ },
1249
+ // displays the character position where the lexing error occurred, i.e. for error messages
1250
+ showPosition: function showPosition() {
1251
+ var l = this.pastInput(), s = new Array(l.length + 1).join("-");
1252
+ return l + this.upcomingInput() + "\n" + s + "^";
1253
+ },
1254
+ // test the lexed token: return FALSE when not a match, otherwise return token
1255
+ test_match: function test_match(l, s) {
1256
+ var r, h, d;
1257
+ if (this.options.backtrack_lexer && (d = {
1258
+ yylineno: this.yylineno,
1259
+ yylloc: {
1260
+ first_line: this.yylloc.first_line,
1261
+ last_line: this.last_line,
1262
+ first_column: this.yylloc.first_column,
1263
+ last_column: this.yylloc.last_column
1264
+ },
1265
+ yytext: this.yytext,
1266
+ match: this.match,
1267
+ matches: this.matches,
1268
+ matched: this.matched,
1269
+ yyleng: this.yyleng,
1270
+ offset: this.offset,
1271
+ _more: this._more,
1272
+ _input: this._input,
1273
+ yy: this.yy,
1274
+ conditionStack: this.conditionStack.slice(0),
1275
+ done: this.done
1276
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), h = l[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
1277
+ first_line: this.yylloc.last_line,
1278
+ last_line: this.yylineno + 1,
1279
+ first_column: this.yylloc.last_column,
1280
+ last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
1281
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [
1282
+ this.offset,
1283
+ this.offset += this.yyleng
1284
+ ]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], r = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r) return r;
1285
+ if (this._backtrack) {
1286
+ for(var t in d)this[t] = d[t];
1287
+ return !1;
1288
+ }
1289
+ return !1;
1290
+ },
1291
+ // return next match in input
1292
+ next: function next() {
1293
+ if (this.done) return this.EOF;
1294
+ this._input || (this.done = !0);
1295
+ var l, s, r, h;
1296
+ this._more || (this.yytext = "", this.match = "");
1297
+ for(var d = this._currentRules(), t = 0; t < d.length; t++)if (r = this._input.match(this.rules[d[t]]), r && (!s || r[0].length > s[0].length)) {
1298
+ if (s = r, h = t, this.options.backtrack_lexer) {
1299
+ if (l = this.test_match(r, d[t]), l !== !1) return l;
1300
+ if (this._backtrack) {
1301
+ s = !1;
1302
+ continue;
1303
+ } else return !1;
1304
+ } else if (!this.options.flex) break;
1305
+ }
1306
+ return s ? (l = this.test_match(s, d[h]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1307
+ text: "",
1308
+ token: null,
1309
+ line: this.yylineno
1310
+ });
1311
+ },
1312
+ // return next match that has a token
1313
+ lex: function lex() {
1314
+ var s = this.next();
1315
+ return s || this.lex();
1316
+ },
1317
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
1318
+ begin: function begin(s) {
1319
+ this.conditionStack.push(s);
1320
+ },
1321
+ // pop the previously active lexer condition state off the condition stack
1322
+ popState: function popState() {
1323
+ var s = this.conditionStack.length - 1;
1324
+ return s > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1325
+ },
1326
+ // produce the lexer rule set which is active for the currently active lexer condition state
1327
+ _currentRules: function _currentRules() {
1328
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1329
+ },
1330
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
1331
+ topState: function topState(s) {
1332
+ return s = this.conditionStack.length - 1 - Math.abs(s || 0), s >= 0 ? this.conditionStack[s] : "INITIAL";
1333
+ },
1334
+ // alias for begin(condition)
1335
+ pushState: function pushState(s) {
1336
+ this.begin(s);
1337
+ },
1338
+ // return the number of states currently on the stack
1339
+ stateStackSize: function stateStackSize() {
1340
+ return this.conditionStack.length;
1341
+ },
1342
+ options: {},
1343
+ performAction: function performAction(s, r, h, d) {
1344
+ switch(h){
1345
+ case 0:
1346
+ return 10;
1347
+ case 1:
1348
+ return s.getLogger().debug("Found space-block"), 31;
1349
+ case 2:
1350
+ return s.getLogger().debug("Found nl-block"), 31;
1351
+ case 3:
1352
+ return s.getLogger().debug("Found space-block"), 29;
1353
+ case 4:
1354
+ s.getLogger().debug(".", r.yytext);
1355
+ break;
1356
+ case 5:
1357
+ s.getLogger().debug("_", r.yytext);
1358
+ break;
1359
+ case 6:
1360
+ return 5;
1361
+ case 7:
1362
+ return r.yytext = -1, 28;
1363
+ case 8:
1364
+ return r.yytext = r.yytext.replace(/columns\s+/, ""), s.getLogger().debug("COLUMNS (LEX)", r.yytext), 28;
1365
+ case 9:
1366
+ this.pushState("md_string");
1367
+ break;
1368
+ case 10:
1369
+ return "MD_STR";
1370
+ case 11:
1371
+ this.popState();
1372
+ break;
1373
+ case 12:
1374
+ this.pushState("string");
1375
+ break;
1376
+ case 13:
1377
+ s.getLogger().debug("LEX: POPPING STR:", r.yytext), this.popState();
1378
+ break;
1379
+ case 14:
1380
+ return s.getLogger().debug("LEX: STR end:", r.yytext), "STR";
1381
+ case 15:
1382
+ return r.yytext = r.yytext.replace(/space\:/, ""), s.getLogger().debug("SPACE NUM (LEX)", r.yytext), 21;
1383
+ case 16:
1384
+ return r.yytext = "1", s.getLogger().debug("COLUMNS (LEX)", r.yytext), 21;
1385
+ case 17:
1386
+ return 43;
1387
+ case 18:
1388
+ return "LINKSTYLE";
1389
+ case 19:
1390
+ return "INTERPOLATE";
1391
+ case 20:
1392
+ return this.pushState("CLASSDEF"), 40;
1393
+ case 21:
1394
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
1395
+ case 22:
1396
+ return this.popState(), this.pushState("CLASSDEFID"), 41;
1397
+ case 23:
1398
+ return this.popState(), 42;
1399
+ case 24:
1400
+ return this.pushState("CLASS"), 44;
1401
+ case 25:
1402
+ return this.popState(), this.pushState("CLASS_STYLE"), 45;
1403
+ case 26:
1404
+ return this.popState(), 46;
1405
+ case 27:
1406
+ return this.pushState("STYLE_STMNT"), 47;
1407
+ case 28:
1408
+ return this.popState(), this.pushState("STYLE_DEFINITION"), 48;
1409
+ case 29:
1410
+ return this.popState(), 49;
1411
+ case 30:
1412
+ return this.pushState("acc_title"), "acc_title";
1413
+ case 31:
1414
+ return this.popState(), "acc_title_value";
1415
+ case 32:
1416
+ return this.pushState("acc_descr"), "acc_descr";
1417
+ case 33:
1418
+ return this.popState(), "acc_descr_value";
1419
+ case 34:
1420
+ this.pushState("acc_descr_multiline");
1421
+ break;
1422
+ case 35:
1423
+ this.popState();
1424
+ break;
1425
+ case 36:
1426
+ return "acc_descr_multiline_value";
1427
+ case 37:
1428
+ return 30;
1429
+ case 38:
1430
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
1431
+ case 39:
1432
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
1433
+ case 40:
1434
+ return this.popState(), s.getLogger().debug("Lex: ))"), "NODE_DEND";
1435
+ case 41:
1436
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
1437
+ case 42:
1438
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
1439
+ case 43:
1440
+ return this.popState(), s.getLogger().debug("Lex: (-"), "NODE_DEND";
1441
+ case 44:
1442
+ return this.popState(), s.getLogger().debug("Lex: -)"), "NODE_DEND";
1443
+ case 45:
1444
+ return this.popState(), s.getLogger().debug("Lex: (("), "NODE_DEND";
1445
+ case 46:
1446
+ return this.popState(), s.getLogger().debug("Lex: ]]"), "NODE_DEND";
1447
+ case 47:
1448
+ return this.popState(), s.getLogger().debug("Lex: ("), "NODE_DEND";
1449
+ case 48:
1450
+ return this.popState(), s.getLogger().debug("Lex: ])"), "NODE_DEND";
1451
+ case 49:
1452
+ return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
1453
+ case 50:
1454
+ return this.popState(), s.getLogger().debug("Lex: /]"), "NODE_DEND";
1455
+ case 51:
1456
+ return this.popState(), s.getLogger().debug("Lex: )]"), "NODE_DEND";
1457
+ case 52:
1458
+ return this.popState(), s.getLogger().debug("Lex: )"), "NODE_DEND";
1459
+ case 53:
1460
+ return this.popState(), s.getLogger().debug("Lex: ]>"), "NODE_DEND";
1461
+ case 54:
1462
+ return this.popState(), s.getLogger().debug("Lex: ]"), "NODE_DEND";
1463
+ case 55:
1464
+ return s.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 36;
1465
+ case 56:
1466
+ return s.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 36;
1467
+ case 57:
1468
+ return s.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 36;
1469
+ case 58:
1470
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
1471
+ case 59:
1472
+ return s.getLogger().debug("Lex: ((("), this.pushState("NODE"), 36;
1473
+ case 60:
1474
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
1475
+ case 61:
1476
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
1477
+ case 62:
1478
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
1479
+ case 63:
1480
+ return s.getLogger().debug("Lexc: >"), this.pushState("NODE"), 36;
1481
+ case 64:
1482
+ return s.getLogger().debug("Lexa: (["), this.pushState("NODE"), 36;
1483
+ case 65:
1484
+ return s.getLogger().debug("Lexa: )"), this.pushState("NODE"), 36;
1485
+ case 66:
1486
+ return this.pushState("NODE"), 36;
1487
+ case 67:
1488
+ return this.pushState("NODE"), 36;
1489
+ case 68:
1490
+ return this.pushState("NODE"), 36;
1491
+ case 69:
1492
+ return this.pushState("NODE"), 36;
1493
+ case 70:
1494
+ return this.pushState("NODE"), 36;
1495
+ case 71:
1496
+ return this.pushState("NODE"), 36;
1497
+ case 72:
1498
+ return this.pushState("NODE"), 36;
1499
+ case 73:
1500
+ return s.getLogger().debug("Lexa: ["), this.pushState("NODE"), 36;
1501
+ case 74:
1502
+ return this.pushState("BLOCK_ARROW"), s.getLogger().debug("LEX ARR START"), 38;
1503
+ case 75:
1504
+ return s.getLogger().debug("Lex: NODE_ID", r.yytext), 32;
1505
+ case 76:
1506
+ return s.getLogger().debug("Lex: EOF", r.yytext), 8;
1507
+ case 77:
1508
+ this.pushState("md_string");
1509
+ break;
1510
+ case 78:
1511
+ this.pushState("md_string");
1512
+ break;
1513
+ case 79:
1514
+ return "NODE_DESCR";
1515
+ case 80:
1516
+ this.popState();
1517
+ break;
1518
+ case 81:
1519
+ s.getLogger().debug("Lex: Starting string"), this.pushState("string");
1520
+ break;
1521
+ case 82:
1522
+ s.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
1523
+ break;
1524
+ case 83:
1525
+ return s.getLogger().debug("LEX: NODE_DESCR:", r.yytext), "NODE_DESCR";
1526
+ case 84:
1527
+ s.getLogger().debug("LEX POPPING"), this.popState();
1528
+ break;
1529
+ case 85:
1530
+ s.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
1531
+ break;
1532
+ case 86:
1533
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (right): dir:", r.yytext), "DIR";
1534
+ case 87:
1535
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (left):", r.yytext), "DIR";
1536
+ case 88:
1537
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (x):", r.yytext), "DIR";
1538
+ case 89:
1539
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (y):", r.yytext), "DIR";
1540
+ case 90:
1541
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (up):", r.yytext), "DIR";
1542
+ case 91:
1543
+ return r.yytext = r.yytext.replace(/^,\s*/, ""), s.getLogger().debug("Lex (down):", r.yytext), "DIR";
1544
+ case 92:
1545
+ return r.yytext = "]>", s.getLogger().debug("Lex (ARROW_DIR end):", r.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
1546
+ case 93:
1547
+ return s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
1548
+ case 94:
1549
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
1550
+ case 95:
1551
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
1552
+ case 96:
1553
+ return s.getLogger().debug("Lex: LINK", r.yytext), 15;
1554
+ case 97:
1555
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
1556
+ case 98:
1557
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
1558
+ case 99:
1559
+ return s.getLogger().debug("Lex: START_LINK", r.yytext), this.pushState("LLABEL"), 16;
1560
+ case 100:
1561
+ this.pushState("md_string");
1562
+ break;
1563
+ case 101:
1564
+ return s.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
1565
+ case 102:
1566
+ return this.popState(), s.getLogger().debug("Lex: LINK", "#" + r.yytext + "#"), 15;
1567
+ case 103:
1568
+ return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
1569
+ case 104:
1570
+ return this.popState(), s.getLogger().debug("Lex: LINK", r.yytext), 15;
1571
+ case 105:
1572
+ return s.getLogger().debug("Lex: COLON", r.yytext), r.yytext = r.yytext.slice(1), 27;
1573
+ }
1574
+ },
1575
+ rules: [
1576
+ /^(?:block-beta\b)/,
1577
+ /^(?:block\s+)/,
1578
+ /^(?:block\n+)/,
1579
+ /^(?:block:)/,
1580
+ /^(?:[\s]+)/,
1581
+ /^(?:[\n]+)/,
1582
+ /^(?:((\u000D\u000A)|(\u000A)))/,
1583
+ /^(?:columns\s+auto\b)/,
1584
+ /^(?:columns\s+[\d]+)/,
1585
+ /^(?:["][`])/,
1586
+ /^(?:[^`"]+)/,
1587
+ /^(?:[`]["])/,
1588
+ /^(?:["])/,
1589
+ /^(?:["])/,
1590
+ /^(?:[^"]*)/,
1591
+ /^(?:space[:]\d+)/,
1592
+ /^(?:space\b)/,
1593
+ /^(?:default\b)/,
1594
+ /^(?:linkStyle\b)/,
1595
+ /^(?:interpolate\b)/,
1596
+ /^(?:classDef\s+)/,
1597
+ /^(?:DEFAULT\s+)/,
1598
+ /^(?:\w+\s+)/,
1599
+ /^(?:[^\n]*)/,
1600
+ /^(?:class\s+)/,
1601
+ /^(?:(\w+)+((,\s*\w+)*))/,
1602
+ /^(?:[^\n]*)/,
1603
+ /^(?:style\s+)/,
1604
+ /^(?:(\w+)+((,\s*\w+)*))/,
1605
+ /^(?:[^\n]*)/,
1606
+ /^(?:accTitle\s*:\s*)/,
1607
+ /^(?:(?!\n||)*[^\n]*)/,
1608
+ /^(?:accDescr\s*:\s*)/,
1609
+ /^(?:(?!\n||)*[^\n]*)/,
1610
+ /^(?:accDescr\s*\{\s*)/,
1611
+ /^(?:[\}])/,
1612
+ /^(?:[^\}]*)/,
1613
+ /^(?:end\b\s*)/,
1614
+ /^(?:\(\(\()/,
1615
+ /^(?:\)\)\))/,
1616
+ /^(?:[\)]\))/,
1617
+ /^(?:\}\})/,
1618
+ /^(?:\})/,
1619
+ /^(?:\(-)/,
1620
+ /^(?:-\))/,
1621
+ /^(?:\(\()/,
1622
+ /^(?:\]\])/,
1623
+ /^(?:\()/,
1624
+ /^(?:\]\))/,
1625
+ /^(?:\\\])/,
1626
+ /^(?:\/\])/,
1627
+ /^(?:\)\])/,
1628
+ /^(?:[\)])/,
1629
+ /^(?:\]>)/,
1630
+ /^(?:[\]])/,
1631
+ /^(?:-\))/,
1632
+ /^(?:\(-)/,
1633
+ /^(?:\)\))/,
1634
+ /^(?:\))/,
1635
+ /^(?:\(\(\()/,
1636
+ /^(?:\(\()/,
1637
+ /^(?:\{\{)/,
1638
+ /^(?:\{)/,
1639
+ /^(?:>)/,
1640
+ /^(?:\(\[)/,
1641
+ /^(?:\()/,
1642
+ /^(?:\[\[)/,
1643
+ /^(?:\[\|)/,
1644
+ /^(?:\[\()/,
1645
+ /^(?:\)\)\))/,
1646
+ /^(?:\[\\)/,
1647
+ /^(?:\[\/)/,
1648
+ /^(?:\[\\)/,
1649
+ /^(?:\[)/,
1650
+ /^(?:<\[)/,
1651
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
1652
+ /^(?:$)/,
1653
+ /^(?:["][`])/,
1654
+ /^(?:["][`])/,
1655
+ /^(?:[^`"]+)/,
1656
+ /^(?:[`]["])/,
1657
+ /^(?:["])/,
1658
+ /^(?:["])/,
1659
+ /^(?:[^"]+)/,
1660
+ /^(?:["])/,
1661
+ /^(?:\]>\s*\()/,
1662
+ /^(?:,?\s*right\s*)/,
1663
+ /^(?:,?\s*left\s*)/,
1664
+ /^(?:,?\s*x\s*)/,
1665
+ /^(?:,?\s*y\s*)/,
1666
+ /^(?:,?\s*up\s*)/,
1667
+ /^(?:,?\s*down\s*)/,
1668
+ /^(?:\)\s*)/,
1669
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1670
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1671
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1672
+ /^(?:\s*~~[\~]+\s*)/,
1673
+ /^(?:\s*[xo<]?--\s*)/,
1674
+ /^(?:\s*[xo<]?==\s*)/,
1675
+ /^(?:\s*[xo<]?-\.\s*)/,
1676
+ /^(?:["][`])/,
1677
+ /^(?:["])/,
1678
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1679
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1680
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1681
+ /^(?::\d+)/
1682
+ ],
1683
+ conditions: {
1684
+ STYLE_DEFINITION: {
1685
+ rules: [
1686
+ 29
1687
+ ],
1688
+ inclusive: !1
1689
+ },
1690
+ STYLE_STMNT: {
1691
+ rules: [
1692
+ 28
1693
+ ],
1694
+ inclusive: !1
1695
+ },
1696
+ CLASSDEFID: {
1697
+ rules: [
1698
+ 23
1699
+ ],
1700
+ inclusive: !1
1701
+ },
1702
+ CLASSDEF: {
1703
+ rules: [
1704
+ 21,
1705
+ 22
1706
+ ],
1707
+ inclusive: !1
1708
+ },
1709
+ CLASS_STYLE: {
1710
+ rules: [
1711
+ 26
1712
+ ],
1713
+ inclusive: !1
1714
+ },
1715
+ CLASS: {
1716
+ rules: [
1717
+ 25
1718
+ ],
1719
+ inclusive: !1
1720
+ },
1721
+ LLABEL: {
1722
+ rules: [
1723
+ 100,
1724
+ 101,
1725
+ 102,
1726
+ 103,
1727
+ 104
1728
+ ],
1729
+ inclusive: !1
1730
+ },
1731
+ ARROW_DIR: {
1732
+ rules: [
1733
+ 86,
1734
+ 87,
1735
+ 88,
1736
+ 89,
1737
+ 90,
1738
+ 91,
1739
+ 92
1740
+ ],
1741
+ inclusive: !1
1742
+ },
1743
+ BLOCK_ARROW: {
1744
+ rules: [
1745
+ 77,
1746
+ 82,
1747
+ 85
1748
+ ],
1749
+ inclusive: !1
1750
+ },
1751
+ NODE: {
1752
+ rules: [
1753
+ 38,
1754
+ 39,
1755
+ 40,
1756
+ 41,
1757
+ 42,
1758
+ 43,
1759
+ 44,
1760
+ 45,
1761
+ 46,
1762
+ 47,
1763
+ 48,
1764
+ 49,
1765
+ 50,
1766
+ 51,
1767
+ 52,
1768
+ 53,
1769
+ 54,
1770
+ 78,
1771
+ 81
1772
+ ],
1773
+ inclusive: !1
1774
+ },
1775
+ md_string: {
1776
+ rules: [
1777
+ 10,
1778
+ 11,
1779
+ 79,
1780
+ 80
1781
+ ],
1782
+ inclusive: !1
1783
+ },
1784
+ space: {
1785
+ rules: [],
1786
+ inclusive: !1
1787
+ },
1788
+ string: {
1789
+ rules: [
1790
+ 13,
1791
+ 14,
1792
+ 83,
1793
+ 84
1794
+ ],
1795
+ inclusive: !1
1796
+ },
1797
+ acc_descr_multiline: {
1798
+ rules: [
1799
+ 35,
1800
+ 36
1801
+ ],
1802
+ inclusive: !1
1803
+ },
1804
+ acc_descr: {
1805
+ rules: [
1806
+ 33
1807
+ ],
1808
+ inclusive: !1
1809
+ },
1810
+ acc_title: {
1811
+ rules: [
1812
+ 31
1813
+ ],
1814
+ inclusive: !1
1815
+ },
1816
+ INITIAL: {
1817
+ rules: [
1818
+ 0,
1819
+ 1,
1820
+ 2,
1821
+ 3,
1822
+ 4,
1823
+ 5,
1824
+ 6,
1825
+ 7,
1826
+ 8,
1827
+ 9,
1828
+ 12,
1829
+ 15,
1830
+ 16,
1831
+ 17,
1832
+ 18,
1833
+ 19,
1834
+ 20,
1835
+ 24,
1836
+ 27,
1837
+ 30,
1838
+ 32,
1839
+ 34,
1840
+ 37,
1841
+ 55,
1842
+ 56,
1843
+ 57,
1844
+ 58,
1845
+ 59,
1846
+ 60,
1847
+ 61,
1848
+ 62,
1849
+ 63,
1850
+ 64,
1851
+ 65,
1852
+ 66,
1853
+ 67,
1854
+ 68,
1855
+ 69,
1856
+ 70,
1857
+ 71,
1858
+ 72,
1859
+ 73,
1860
+ 74,
1861
+ 75,
1862
+ 76,
1863
+ 93,
1864
+ 94,
1865
+ 95,
1866
+ 96,
1867
+ 97,
1868
+ 98,
1869
+ 99,
1870
+ 105
1871
+ ],
1872
+ inclusive: !0
1873
+ }
1874
+ }
1875
+ };
1876
+ return D;
1877
+ }();
1878
+ E.lexer = v;
1879
+ function N() {
1880
+ this.yy = {};
1881
+ }
1882
+ return N.prototype = E, E.Parser = N, new N();
1883
+ }();
1884
+ ee.parser = ee;
1885
+ var Pe = ee;
1886
+ var T = {}, ie = [], V = {};
1887
+ var oe = "color", ce = "fill", Fe = "bgFill", pe = ",", Ke = Vn();
1888
+ var j = {};
1889
+ var Me = function(e) {
1890
+ return $n.sanitizeText(e, Ke);
1891
+ }, Ye = function Ye(e) {
1892
+ var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1893
+ j[e] === void 0 && (j[e] = {
1894
+ id: e,
1895
+ styles: [],
1896
+ textStyles: []
1897
+ });
1898
+ var u = j[e];
1899
+ c != null && c.split(pe).forEach(function(a) {
1900
+ var i = a.replace(/([^;]*);/, "$1").trim();
1901
+ if (a.match(oe)) {
1902
+ var o = i.replace(ce, Fe).replace(oe, ce);
1903
+ u.textStyles.push(o);
1904
+ }
1905
+ u.styles.push(i);
1906
+ });
1907
+ }, We = function We(e) {
1908
+ var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1909
+ var u = T[e];
1910
+ c != null && (u.styles = c.split(pe));
1911
+ }, Ve = function Ve(e, c) {
1912
+ e.split(",").forEach(function(u) {
1913
+ var a = T[u];
1914
+ if (a === void 0) {
1915
+ var i = u.trim();
1916
+ T[i] = {
1917
+ id: i,
1918
+ type: "na",
1919
+ children: []
1920
+ }, a = T[i];
1921
+ }
1922
+ a.classes || (a.classes = []), a.classes.push(c);
1923
+ });
1924
+ }, fe = function(e, c) {
1925
+ var u = e.flat(), a$1 = [];
1926
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
1927
+ try {
1928
+ for(var _iterator = u[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
1929
+ var i = _step.value;
1930
+ if (i.label && (i.label = Me(i.label)), i.type === "classDef") {
1931
+ Ye(i.id, i.css);
1932
+ continue;
1933
+ }
1934
+ if (i.type === "applyClass") {
1935
+ Ve(i.id, (i == null ? void 0 : i.styleClass) || "");
1936
+ continue;
1937
+ }
1938
+ if (i.type === "applyStyles") {
1939
+ i != null && i.stylesStr && We(i.id, i == null ? void 0 : i.stylesStr);
1940
+ continue;
1941
+ }
1942
+ if (i.type === "column-setting") c.columns = i.columns || -1;
1943
+ else if (i.type === "edge") V[i.id] ? V[i.id]++ : V[i.id] = 1, i.id = V[i.id] + "-" + i.id, ie.push(i);
1944
+ else {
1945
+ i.label || (i.type === "composite" ? i.label = "" : i.label = i.id);
1946
+ var g = !T[i.id];
1947
+ if (g ? T[i.id] = i : (i.type !== "na" && (T[i.id].type = i.type), i.label !== i.id && (T[i.id].label = i.label)), i.children && fe(i.children, i), i.type === "space") {
1948
+ var o = i.width || 1;
1949
+ for(var p = 0; p < o; p++){
1950
+ var f = a(i);
1951
+ f.id = f.id + "-" + p, T[f.id] = f, a$1.push(f);
1952
+ }
1953
+ } else g && a$1.push(i);
1954
+ }
1955
+ }
1956
+ } catch (err) {
1957
+ _didIteratorError = true;
1958
+ _iteratorError = err;
1959
+ } finally{
1960
+ try {
1961
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1962
+ _iterator.return();
1963
+ }
1964
+ } finally{
1965
+ if (_didIteratorError) {
1966
+ throw _iteratorError;
1967
+ }
1968
+ }
1969
+ }
1970
+ c.children = a$1;
1971
+ };
1972
+ var re = [], U = {
1973
+ id: "root",
1974
+ type: "composite",
1975
+ children: [],
1976
+ columns: -1
1977
+ };
1978
+ var je = function() {
1979
+ L.debug("Clear called"), B_(), U = {
1980
+ id: "root",
1981
+ type: "composite",
1982
+ children: [],
1983
+ columns: -1
1984
+ }, T = {
1985
+ root: U
1986
+ }, re = [], j = {}, ie = [], V = {};
1987
+ };
1988
+ function Ue(e) {
1989
+ switch(L.debug("typeStr2Type", e), e){
1990
+ case "[]":
1991
+ return "square";
1992
+ case "()":
1993
+ return L.debug("we have a round"), "round";
1994
+ case "(())":
1995
+ return "circle";
1996
+ case ">]":
1997
+ return "rect_left_inv_arrow";
1998
+ case "{}":
1999
+ return "diamond";
2000
+ case "{{}}":
2001
+ return "hexagon";
2002
+ case "([])":
2003
+ return "stadium";
2004
+ case "[[]]":
2005
+ return "subroutine";
2006
+ case "[()]":
2007
+ return "cylinder";
2008
+ case "((()))":
2009
+ return "doublecircle";
2010
+ case "[//]":
2011
+ return "lean_right";
2012
+ case "[\\\\]":
2013
+ return "lean_left";
2014
+ case "[/\\]":
2015
+ return "trapezoid";
2016
+ case "[\\/]":
2017
+ return "inv_trapezoid";
2018
+ case "<[]>":
2019
+ return "block_arrow";
2020
+ default:
2021
+ return "na";
2022
+ }
2023
+ }
2024
+ function Xe(e) {
2025
+ switch(L.debug("typeStr2Type", e), e){
2026
+ case "==":
2027
+ return "thick";
2028
+ default:
2029
+ return "normal";
2030
+ }
2031
+ }
2032
+ function Ge(e) {
2033
+ switch(e.trim()){
2034
+ case "--x":
2035
+ return "arrow_cross";
2036
+ case "--o":
2037
+ return "arrow_circle";
2038
+ default:
2039
+ return "arrow_point";
2040
+ }
2041
+ }
2042
+ var le = 0;
2043
+ var He = function() {
2044
+ return le++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + le;
2045
+ }, qe = function(e) {
2046
+ U.children = e, fe(e, U), re = U.children;
2047
+ }, Ze = function(e) {
2048
+ var c = T[e];
2049
+ return c ? c.columns ? c.columns : c.children ? c.children.length : -1 : -1;
2050
+ }, Je = function() {
2051
+ return _to_consumable_array(Object.values(T));
2052
+ }, Qe = function() {
2053
+ return re || [];
2054
+ }, $e = function() {
2055
+ return ie;
2056
+ }, et = function(e) {
2057
+ return T[e];
2058
+ }, tt = function(e) {
2059
+ T[e.id] = e;
2060
+ }, st = function() {
2061
+ return console;
2062
+ }, it = function it() {
2063
+ return j;
2064
+ }, rt = {
2065
+ getConfig: function() {
2066
+ return $t().block;
2067
+ },
2068
+ typeStr2Type: Ue,
2069
+ edgeTypeStr2Type: Xe,
2070
+ edgeStrToEdgeData: Ge,
2071
+ getLogger: st,
2072
+ getBlocksFlat: Je,
2073
+ getBlocks: Qe,
2074
+ getEdges: $e,
2075
+ setHierarchy: qe,
2076
+ getBlock: et,
2077
+ setBlock: tt,
2078
+ getColumns: Ze,
2079
+ getClasses: it,
2080
+ clear: je,
2081
+ generateId: He
2082
+ }, nt = rt, q = function(e$1, c) {
2083
+ var u = e, a = u(e$1, "r"), i = u(e$1, "g"), g = u(e$1, "b");
2084
+ return Je$1(a, i, g, c);
2085
+ }, at = function(e) {
2086
+ return ".label {\n font-family: ".concat(e.fontFamily, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n .cluster-label text {\n fill: ").concat(e.titleColor, ";\n }\n .cluster-label span,p {\n color: ").concat(e.titleColor, ";\n }\n\n\n\n .label text,span,p {\n fill: ").concat(e.nodeTextColor || e.textColor, ";\n color: ").concat(e.nodeTextColor || e.textColor, ";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg, ";\n stroke: ").concat(e.nodeBorder, ";\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor, ";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor, ";\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor, ";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground, ";\n rect {\n opacity: 0.5;\n background-color: ").concat(e.edgeLabelBackground, ";\n fill: ").concat(e.edgeLabelBackground, ";\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ").concat(q(e.edgeLabelBackground, 0.5), ";\n // background-color:\n }\n\n .node .cluster {\n // fill: ").concat(q(e.mainBkg, 0.5), ";\n fill: ").concat(q(e.clusterBkg, 0.5), ";\n stroke: ").concat(q(e.clusterBorder, 0.2), ";\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(e.titleColor, ";\n }\n\n .cluster span,p {\n color: ").concat(e.titleColor, ";\n }\n /* .cluster div {\n color: ").concat(e.titleColor, ";\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(e.fontFamily, ";\n font-size: 12px;\n background: ").concat(e.tertiaryColor, ";\n border: 1px solid ").concat(e.border2, ";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(e.textColor, ";\n }\n");
2087
+ }, ot = at;
2088
+ function Se(e, c) {
2089
+ var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
2090
+ var z, I, w;
2091
+ var a = e;
2092
+ var i = "default";
2093
+ (((z = a == null ? void 0 : a.classes) == null ? void 0 : z.length) || 0) > 0 && (i = ((a == null ? void 0 : a.classes) || []).join(" ")), i = i + " flowchart-label";
2094
+ var g = 0, o = "", p;
2095
+ switch(a.type){
2096
+ case "round":
2097
+ g = 5, o = "rect";
2098
+ break;
2099
+ case "composite":
2100
+ g = 0, o = "composite", p = 0;
2101
+ break;
2102
+ case "square":
2103
+ o = "rect";
2104
+ break;
2105
+ case "diamond":
2106
+ o = "question";
2107
+ break;
2108
+ case "hexagon":
2109
+ o = "hexagon";
2110
+ break;
2111
+ case "block_arrow":
2112
+ o = "block_arrow";
2113
+ break;
2114
+ case "odd":
2115
+ o = "rect_left_inv_arrow";
2116
+ break;
2117
+ case "lean_right":
2118
+ o = "lean_right";
2119
+ break;
2120
+ case "lean_left":
2121
+ o = "lean_left";
2122
+ break;
2123
+ case "trapezoid":
2124
+ o = "trapezoid";
2125
+ break;
2126
+ case "inv_trapezoid":
2127
+ o = "inv_trapezoid";
2128
+ break;
2129
+ case "rect_left_inv_arrow":
2130
+ o = "rect_left_inv_arrow";
2131
+ break;
2132
+ case "circle":
2133
+ o = "circle";
2134
+ break;
2135
+ case "ellipse":
2136
+ o = "ellipse";
2137
+ break;
2138
+ case "stadium":
2139
+ o = "stadium";
2140
+ break;
2141
+ case "subroutine":
2142
+ o = "subroutine";
2143
+ break;
2144
+ case "cylinder":
2145
+ o = "cylinder";
2146
+ break;
2147
+ case "group":
2148
+ o = "rect";
2149
+ break;
2150
+ case "doublecircle":
2151
+ o = "doublecircle";
2152
+ break;
2153
+ default:
2154
+ o = "rect";
2155
+ }
2156
+ var f = B0((a == null ? void 0 : a.styles) || []), m = a.label, S = a.size || {
2157
+ width: 0,
2158
+ height: 0,
2159
+ x: 0,
2160
+ y: 0
2161
+ };
2162
+ return {
2163
+ labelStyle: f.labelStyle,
2164
+ shape: o,
2165
+ labelText: m,
2166
+ rx: g,
2167
+ ry: g,
2168
+ class: i,
2169
+ style: f.style,
2170
+ id: a.id,
2171
+ directions: a.directions,
2172
+ width: S.width,
2173
+ height: S.height,
2174
+ x: S.x,
2175
+ y: S.y,
2176
+ positioned: u,
2177
+ intersect: void 0,
2178
+ type: a.type,
2179
+ padding: p !== null && p !== void 0 ? p : ((w = (I = $t()) == null ? void 0 : I.block) == null ? void 0 : w.padding) || 0
2180
+ };
2181
+ }
2182
+ function ct(e, c, u) {
2183
+ return _ct.apply(this, arguments);
2184
+ }
2185
+ function _ct() {
2186
+ _ct = _async_to_generator(function(e, c, u) {
2187
+ var a, i, g, o;
2188
+ return _ts_generator(this, function(_state) {
2189
+ switch(_state.label){
2190
+ case 0:
2191
+ a = Se(c, u, !1);
2192
+ if (a.type === "group") return [
2193
+ 2
2194
+ ];
2195
+ return [
2196
+ 4,
2197
+ or(e, a)
2198
+ ];
2199
+ case 1:
2200
+ i = _state.sent(), g = i.node().getBBox(), o = u.getBlock(a.id);
2201
+ o.size = {
2202
+ width: g.width,
2203
+ height: g.height,
2204
+ x: 0,
2205
+ y: 0,
2206
+ node: i
2207
+ }, u.setBlock(o), i.remove();
2208
+ return [
2209
+ 2
2210
+ ];
2211
+ }
2212
+ });
2213
+ });
2214
+ return _ct.apply(this, arguments);
2215
+ }
2216
+ function lt(e, c, u) {
2217
+ return _lt.apply(this, arguments);
2218
+ }
2219
+ function _lt() {
2220
+ _lt = _async_to_generator(function(e, c, u) {
2221
+ var a, _tmp;
2222
+ return _ts_generator(this, function(_state) {
2223
+ switch(_state.label){
2224
+ case 0:
2225
+ a = Se(c, u, !0);
2226
+ _tmp = u.getBlock(a.id).type !== "space";
2227
+ if (!_tmp) return [
2228
+ 3,
2229
+ 2
2230
+ ];
2231
+ return [
2232
+ 4,
2233
+ or(e, a)
2234
+ ];
2235
+ case 1:
2236
+ _tmp = (_state.sent(), c.intersect = a == null ? void 0 : a.intersect, pr(a));
2237
+ _state.label = 2;
2238
+ case 2:
2239
+ return [
2240
+ 2
2241
+ ];
2242
+ }
2243
+ });
2244
+ });
2245
+ return _lt.apply(this, arguments);
2246
+ }
2247
+ function ne(e, c, u, a) {
2248
+ return _ne.apply(this, arguments);
2249
+ }
2250
+ function _ne() {
2251
+ _ne = _async_to_generator(function(e, c, u, a) {
2252
+ var _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, i, _tmp, err;
2253
+ return _ts_generator(this, function(_state) {
2254
+ switch(_state.label){
2255
+ case 0:
2256
+ _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2257
+ _state.label = 1;
2258
+ case 1:
2259
+ _state.trys.push([
2260
+ 1,
2261
+ 8,
2262
+ 9,
2263
+ 10
2264
+ ]);
2265
+ _iterator = c[Symbol.iterator]();
2266
+ _state.label = 2;
2267
+ case 2:
2268
+ if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [
2269
+ 3,
2270
+ 7
2271
+ ];
2272
+ i = _step.value;
2273
+ return [
2274
+ 4,
2275
+ a(e, i, u)
2276
+ ];
2277
+ case 3:
2278
+ _state.sent();
2279
+ _tmp = i.children;
2280
+ if (!_tmp) return [
2281
+ 3,
2282
+ 5
2283
+ ];
2284
+ return [
2285
+ 4,
2286
+ ne(e, i.children, u, a)
2287
+ ];
2288
+ case 4:
2289
+ _tmp = _state.sent();
2290
+ _state.label = 5;
2291
+ case 5:
2292
+ _state.label = 6;
2293
+ case 6:
2294
+ _iteratorNormalCompletion = true;
2295
+ return [
2296
+ 3,
2297
+ 2
2298
+ ];
2299
+ case 7:
2300
+ return [
2301
+ 3,
2302
+ 10
2303
+ ];
2304
+ case 8:
2305
+ err = _state.sent();
2306
+ _didIteratorError = true;
2307
+ _iteratorError = err;
2308
+ return [
2309
+ 3,
2310
+ 10
2311
+ ];
2312
+ case 9:
2313
+ try {
2314
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2315
+ _iterator.return();
2316
+ }
2317
+ } finally{
2318
+ if (_didIteratorError) {
2319
+ throw _iteratorError;
2320
+ }
2321
+ }
2322
+ return [
2323
+ 7
2324
+ ];
2325
+ case 10:
2326
+ return [
2327
+ 2
2328
+ ];
2329
+ }
2330
+ });
2331
+ });
2332
+ return _ne.apply(this, arguments);
2333
+ }
2334
+ function ht(e, c, u) {
2335
+ return _ht.apply(this, arguments);
2336
+ }
2337
+ function _ht() {
2338
+ _ht = _async_to_generator(function(e, c, u) {
2339
+ return _ts_generator(this, function(_state) {
2340
+ switch(_state.label){
2341
+ case 0:
2342
+ return [
2343
+ 4,
2344
+ ne(e, c, u, ct)
2345
+ ];
2346
+ case 1:
2347
+ _state.sent();
2348
+ return [
2349
+ 2
2350
+ ];
2351
+ }
2352
+ });
2353
+ });
2354
+ return _ht.apply(this, arguments);
2355
+ }
2356
+ function ut(e, c, u) {
2357
+ return _ut.apply(this, arguments);
2358
+ }
2359
+ function _ut() {
2360
+ _ut = _async_to_generator(function(e, c, u) {
2361
+ return _ts_generator(this, function(_state) {
2362
+ switch(_state.label){
2363
+ case 0:
2364
+ return [
2365
+ 4,
2366
+ ne(e, c, u, lt)
2367
+ ];
2368
+ case 1:
2369
+ _state.sent();
2370
+ return [
2371
+ 2
2372
+ ];
2373
+ }
2374
+ });
2375
+ });
2376
+ return _ut.apply(this, arguments);
2377
+ }
2378
+ function gt(e, c, u, a, i) {
2379
+ return _gt.apply(this, arguments);
2380
+ }
2381
+ function _gt() {
2382
+ _gt = _async_to_generator(function(e, c, u, a, i) {
2383
+ var g, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, o, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, o1, p, f, m, S, y, _tmp, err;
2384
+ return _ts_generator(this, function(_state) {
2385
+ switch(_state.label){
2386
+ case 0:
2387
+ g = new Ze$1({
2388
+ multigraph: !0,
2389
+ compound: !0
2390
+ });
2391
+ g.setGraph({
2392
+ rankdir: "TB",
2393
+ nodesep: 10,
2394
+ ranksep: 10,
2395
+ marginx: 8,
2396
+ marginy: 8
2397
+ });
2398
+ _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2399
+ try {
2400
+ for(_iterator = u[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2401
+ o = _step.value;
2402
+ o.size && g.setNode(o.id, {
2403
+ width: o.size.width,
2404
+ height: o.size.height,
2405
+ intersect: o.intersect
2406
+ });
2407
+ }
2408
+ } catch (err) {
2409
+ _didIteratorError = true;
2410
+ _iteratorError = err;
2411
+ } finally{
2412
+ try {
2413
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2414
+ _iterator.return();
2415
+ }
2416
+ } finally{
2417
+ if (_didIteratorError) {
2418
+ throw _iteratorError;
2419
+ }
2420
+ }
2421
+ }
2422
+ _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
2423
+ _state.label = 1;
2424
+ case 1:
2425
+ _state.trys.push([
2426
+ 1,
2427
+ 9,
2428
+ 10,
2429
+ 11
2430
+ ]);
2431
+ _iterator1 = c[Symbol.iterator]();
2432
+ _state.label = 2;
2433
+ case 2:
2434
+ if (!!(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done)) return [
2435
+ 3,
2436
+ 8
2437
+ ];
2438
+ o1 = _step1.value;
2439
+ if (!(o1.start && o1.end)) return [
2440
+ 3,
2441
+ 7
2442
+ ];
2443
+ p = a.getBlock(o1.start), f = a.getBlock(o1.end);
2444
+ if (!(p != null && p.size && f != null && f.size)) return [
2445
+ 3,
2446
+ 7
2447
+ ];
2448
+ m = p.size, S = f.size, y = [
2449
+ {
2450
+ x: m.x,
2451
+ y: m.y
2452
+ },
2453
+ {
2454
+ x: m.x + (S.x - m.x) / 2,
2455
+ y: m.y + (S.y - m.y) / 2
2456
+ },
2457
+ {
2458
+ x: S.x,
2459
+ y: S.y
2460
+ }
2461
+ ];
2462
+ return [
2463
+ 4,
2464
+ ur(e, {
2465
+ v: o1.start,
2466
+ w: o1.end,
2467
+ name: o1.id
2468
+ }, _object_spread_props(_object_spread({}, o1), {
2469
+ arrowTypeEnd: o1.arrowTypeEnd,
2470
+ arrowTypeStart: o1.arrowTypeStart,
2471
+ points: y,
2472
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2473
+ }), void 0, "block", g, i)
2474
+ ];
2475
+ case 3:
2476
+ _state.sent();
2477
+ _tmp = o1.label;
2478
+ if (!_tmp) return [
2479
+ 3,
2480
+ 6
2481
+ ];
2482
+ return [
2483
+ 4,
2484
+ xr(e, _object_spread_props(_object_spread({}, o1), {
2485
+ label: o1.label,
2486
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
2487
+ arrowTypeEnd: o1.arrowTypeEnd,
2488
+ arrowTypeStart: o1.arrowTypeStart,
2489
+ points: y,
2490
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
2491
+ }))
2492
+ ];
2493
+ case 4:
2494
+ _state.sent();
2495
+ return [
2496
+ 4,
2497
+ gr(_object_spread_props(_object_spread({}, o1), {
2498
+ x: y[1].x,
2499
+ y: y[1].y
2500
+ }), {
2501
+ originalPath: y
2502
+ })
2503
+ ];
2504
+ case 5:
2505
+ _tmp = _state.sent();
2506
+ _state.label = 6;
2507
+ case 6:
2508
+ _state.label = 7;
2509
+ case 7:
2510
+ _iteratorNormalCompletion1 = true;
2511
+ return [
2512
+ 3,
2513
+ 2
2514
+ ];
2515
+ case 8:
2516
+ return [
2517
+ 3,
2518
+ 11
2519
+ ];
2520
+ case 9:
2521
+ err = _state.sent();
2522
+ _didIteratorError1 = true;
2523
+ _iteratorError1 = err;
2524
+ return [
2525
+ 3,
2526
+ 11
2527
+ ];
2528
+ case 10:
2529
+ try {
2530
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
2531
+ _iterator1.return();
2532
+ }
2533
+ } finally{
2534
+ if (_didIteratorError1) {
2535
+ throw _iteratorError1;
2536
+ }
2537
+ }
2538
+ return [
2539
+ 7
2540
+ ];
2541
+ case 11:
2542
+ return [
2543
+ 2
2544
+ ];
2545
+ }
2546
+ });
2547
+ });
2548
+ return _gt.apply(this, arguments);
2549
+ }
2550
+ var he, ue;
2551
+ var b = ((ue = (he = Vn()) == null ? void 0 : he.block) == null ? void 0 : ue.padding) || 8;
2552
+ function dt(e, c) {
2553
+ if (e === 0 || !Number.isInteger(e)) throw new Error("Columns must be an integer !== 0.");
2554
+ if (c < 0 || !Number.isInteger(c)) throw new Error("Position must be a non-negative integer." + c);
2555
+ if (e < 0) return {
2556
+ px: c,
2557
+ py: 0
2558
+ };
2559
+ if (e === 1) return {
2560
+ px: 0,
2561
+ py: c
2562
+ };
2563
+ var u = c % e, a = Math.floor(c / e);
2564
+ return {
2565
+ px: u,
2566
+ py: a
2567
+ };
2568
+ }
2569
+ var pt = function(e) {
2570
+ var c = 0, u = 0;
2571
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2572
+ try {
2573
+ for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2574
+ var a = _step.value;
2575
+ var _ref = a.size || {
2576
+ width: 0,
2577
+ height: 0,
2578
+ x: 0,
2579
+ y: 0
2580
+ }, i = _ref.width, g = _ref.height, o = _ref.x, p = _ref.y;
2581
+ L.debug("getMaxChildSize abc95 child:", a.id, "width:", i, "height:", g, "x:", o, "y:", p, a.type), a.type !== "space" && (i > c && (c = i / (e.widthInColumns || 1)), g > u && (u = g));
2582
+ }
2583
+ } catch (err) {
2584
+ _didIteratorError = true;
2585
+ _iteratorError = err;
2586
+ } finally{
2587
+ try {
2588
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2589
+ _iterator.return();
2590
+ }
2591
+ } finally{
2592
+ if (_didIteratorError) {
2593
+ throw _iteratorError;
2594
+ }
2595
+ }
2596
+ }
2597
+ return {
2598
+ width: c,
2599
+ height: u
2600
+ };
2601
+ };
2602
+ function te(e, c) {
2603
+ var u = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
2604
+ var o, p, f, m, S, y, z, I, w, C, E;
2605
+ L.debug("setBlockSizes abc95 (start)", e.id, (o = e == null ? void 0 : e.size) == null ? void 0 : o.x, "block width =", e == null ? void 0 : e.size, "sieblingWidth", u), (p = e == null ? void 0 : e.size) != null && p.width || (e.size = {
2606
+ width: u,
2607
+ height: a,
2608
+ x: 0,
2609
+ y: 0
2610
+ });
2611
+ var i = 0, g = 0;
2612
+ if (((f = e.children) == null ? void 0 : f.length) > 0) {
2613
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2614
+ try {
2615
+ for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2616
+ var d = _step.value;
2617
+ te(d, c);
2618
+ }
2619
+ } catch (err) {
2620
+ _didIteratorError = true;
2621
+ _iteratorError = err;
2622
+ } finally{
2623
+ try {
2624
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2625
+ _iterator.return();
2626
+ }
2627
+ } finally{
2628
+ if (_didIteratorError) {
2629
+ throw _iteratorError;
2630
+ }
2631
+ }
2632
+ }
2633
+ var v = pt(e);
2634
+ i = v.width, g = v.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", i, g);
2635
+ var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
2636
+ try {
2637
+ for(var _iterator1 = e.children[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
2638
+ var d1 = _step1.value;
2639
+ d1.size && (L.debug("abc95 Setting size of children of ".concat(e.id, " id=").concat(d1.id, " ").concat(i, " ").concat(g, " ").concat(d1.size)), d1.size.width = i * (d1.widthInColumns || 1) + b * ((d1.widthInColumns || 1) - 1), d1.size.height = g, d1.size.x = 0, d1.size.y = 0, L.debug("abc95 updating size of ".concat(e.id, " children child:").concat(d1.id, " maxWidth:").concat(i, " maxHeight:").concat(g)));
2640
+ }
2641
+ } catch (err) {
2642
+ _didIteratorError1 = true;
2643
+ _iteratorError1 = err;
2644
+ } finally{
2645
+ try {
2646
+ if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
2647
+ _iterator1.return();
2648
+ }
2649
+ } finally{
2650
+ if (_didIteratorError1) {
2651
+ throw _iteratorError1;
2652
+ }
2653
+ }
2654
+ }
2655
+ var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
2656
+ try {
2657
+ for(var _iterator2 = e.children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){
2658
+ var d2 = _step2.value;
2659
+ te(d2, c, i, g);
2660
+ }
2661
+ } catch (err) {
2662
+ _didIteratorError2 = true;
2663
+ _iteratorError2 = err;
2664
+ } finally{
2665
+ try {
2666
+ if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
2667
+ _iterator2.return();
2668
+ }
2669
+ } finally{
2670
+ if (_didIteratorError2) {
2671
+ throw _iteratorError2;
2672
+ }
2673
+ }
2674
+ }
2675
+ var N = e.columns || -1;
2676
+ var D = 0;
2677
+ var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
2678
+ try {
2679
+ for(var _iterator3 = e.children[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
2680
+ var d3 = _step3.value;
2681
+ D += d3.widthInColumns || 1;
2682
+ }
2683
+ } catch (err) {
2684
+ _didIteratorError3 = true;
2685
+ _iteratorError3 = err;
2686
+ } finally{
2687
+ try {
2688
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
2689
+ _iterator3.return();
2690
+ }
2691
+ } finally{
2692
+ if (_didIteratorError3) {
2693
+ throw _iteratorError3;
2694
+ }
2695
+ }
2696
+ }
2697
+ var l = e.children.length;
2698
+ N > 0 && N < D && (l = N), e.widthInColumns;
2699
+ var s = Math.ceil(D / l);
2700
+ var r = l * (i + b) + b, h = s * (g + b) + b;
2701
+ if (r < u) {
2702
+ L.debug("Detected to small siebling: abc95 ".concat(e.id, " sieblingWidth ").concat(u, " sieblingHeight ").concat(a, " width ").concat(r)), r = u, h = a;
2703
+ var d4 = (u - l * b - b) / l, t = (a - s * b - b) / s;
2704
+ L.debug("Size indata abc88", e.id, "childWidth", d4, "maxWidth", i), L.debug("Size indata abc88", e.id, "childHeight", t, "maxHeight", g), L.debug("Size indata abc88 xSize", l, "padding", b);
2705
+ var _iteratorNormalCompletion4 = true, _didIteratorError4 = false, _iteratorError4 = undefined;
2706
+ try {
2707
+ for(var _iterator4 = e.children[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true){
2708
+ var x = _step4.value;
2709
+ x.size && (x.size.width = d4, x.size.height = t, x.size.x = 0, x.size.y = 0);
2710
+ }
2711
+ } catch (err) {
2712
+ _didIteratorError4 = true;
2713
+ _iteratorError4 = err;
2714
+ } finally{
2715
+ try {
2716
+ if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
2717
+ _iterator4.return();
2718
+ }
2719
+ } finally{
2720
+ if (_didIteratorError4) {
2721
+ throw _iteratorError4;
2722
+ }
2723
+ }
2724
+ }
2725
+ }
2726
+ if (L.debug("abc95 (finale calc) ".concat(e.id, " xSize ").concat(l, " ySize ").concat(s, " columns ").concat(N).concat(e.children.length, " width=").concat(Math.max(r, ((m = e.size) == null ? void 0 : m.width) || 0))), r < (((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) || 0)) {
2727
+ r = ((y = e == null ? void 0 : e.size) == null ? void 0 : y.width) || 0;
2728
+ var d5 = N > 0 ? Math.min(e.children.length, N) : e.children.length;
2729
+ if (d5 > 0) {
2730
+ var t1 = (r - d5 * b - b) / d5;
2731
+ L.debug("abc95 (growing to fit) width", e.id, r, (z = e.size) == null ? void 0 : z.width, t1);
2732
+ var _iteratorNormalCompletion5 = true, _didIteratorError5 = false, _iteratorError5 = undefined;
2733
+ try {
2734
+ for(var _iterator5 = e.children[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true){
2735
+ var x1 = _step5.value;
2736
+ x1.size && (x1.size.width = t1);
2737
+ }
2738
+ } catch (err) {
2739
+ _didIteratorError5 = true;
2740
+ _iteratorError5 = err;
2741
+ } finally{
2742
+ try {
2743
+ if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
2744
+ _iterator5.return();
2745
+ }
2746
+ } finally{
2747
+ if (_didIteratorError5) {
2748
+ throw _iteratorError5;
2749
+ }
2750
+ }
2751
+ }
2752
+ }
2753
+ }
2754
+ e.size = {
2755
+ width: r,
2756
+ height: h,
2757
+ x: 0,
2758
+ y: 0
2759
+ };
2760
+ }
2761
+ L.debug("setBlockSizes abc94 (done)", e.id, (I = e == null ? void 0 : e.size) == null ? void 0 : I.x, (w = e == null ? void 0 : e.size) == null ? void 0 : w.width, (C = e == null ? void 0 : e.size) == null ? void 0 : C.y, (E = e == null ? void 0 : e.size) == null ? void 0 : E.height);
2762
+ }
2763
+ function Le(e, c) {
2764
+ var a, i, g, o, p, f, m, S, y, z, I, w, C, E, v, N, D;
2765
+ L.debug("abc85 layout blocks (=>layoutBlocks) ".concat(e.id, " x: ").concat((a = e == null ? void 0 : e.size) == null ? void 0 : a.x, " y: ").concat((i = e == null ? void 0 : e.size) == null ? void 0 : i.y, " width: ").concat((g = e == null ? void 0 : e.size) == null ? void 0 : g.width));
2766
+ var u = e.columns || -1;
2767
+ if (L.debug("layoutBlocks columns abc95", e.id, "=>", u, e), e.children && // find max width of children
2768
+ e.children.length > 0) {
2769
+ var l = ((p = (o = e == null ? void 0 : e.children[0]) == null ? void 0 : o.size) == null ? void 0 : p.width) || 0, s = e.children.length * l + (e.children.length - 1) * b;
2770
+ L.debug("widthOfChildren 88", s, "posX");
2771
+ var r = 0;
2772
+ L.debug("abc91 block?.size?.x", e.id, (f = e == null ? void 0 : e.size) == null ? void 0 : f.x);
2773
+ var h = (m = e == null ? void 0 : e.size) != null && m.x ? ((S = e == null ? void 0 : e.size) == null ? void 0 : S.x) + (-((y = e == null ? void 0 : e.size) == null ? void 0 : y.width) / 2 || 0) : -b, d = 0;
2774
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2775
+ try {
2776
+ for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2777
+ var t = _step.value;
2778
+ var x = e;
2779
+ if (!t.size) continue;
2780
+ var _t_size = t.size, n = _t_size.width, B = _t_size.height, _dt = dt(u, r), Y = _dt.px, F = _dt.py;
2781
+ if (F != d && (d = F, h = (z = e == null ? void 0 : e.size) != null && z.x ? ((I = e == null ? void 0 : e.size) == null ? void 0 : I.x) + (-((w = e == null ? void 0 : e.size) == null ? void 0 : w.width) / 2 || 0) : -b, L.debug("New row in layout for block", e.id, " and child ", t.id, d)), L.debug("abc89 layout blocks (child) id: ".concat(t.id, " Pos: ").concat(r, " (px, py) ").concat(Y, ",").concat(F, " (").concat((C = x == null ? void 0 : x.size) == null ? void 0 : C.x, ",").concat((E = x == null ? void 0 : x.size) == null ? void 0 : E.y, ") parent: ").concat(x.id, " width: ").concat(n).concat(b)), x.size) {
2782
+ var R = n / 2;
2783
+ t.size.x = h + b + R, L.debug("abc91 layout blocks (calc) px, pyid:".concat(t.id, " startingPos=X").concat(h, " new startingPosX").concat(t.size.x, " ").concat(R, " padding=").concat(b, " width=").concat(n, " halfWidth=").concat(R, " => x:").concat(t.size.x, " y:").concat(t.size.y, " ").concat(t.widthInColumns, " (width * (child?.w || 1)) / 2 ").concat(n * ((t == null ? void 0 : t.widthInColumns) || 1) / 2)), h = t.size.x + R, t.size.y = x.size.y - x.size.height / 2 + F * (B + b) + B / 2 + b, L.debug("abc88 layout blocks (calc) px, pyid:".concat(t.id, "startingPosX").concat(h).concat(b).concat(R, "=>x:").concat(t.size.x, "y:").concat(t.size.y).concat(t.widthInColumns, "(width * (child?.w || 1)) / 2").concat(n * ((t == null ? void 0 : t.widthInColumns) || 1) / 2));
2784
+ }
2785
+ t.children && Le(t), r += (t == null ? void 0 : t.widthInColumns) || 1, L.debug("abc88 columnsPos", t, r);
2786
+ }
2787
+ } catch (err) {
2788
+ _didIteratorError = true;
2789
+ _iteratorError = err;
2790
+ } finally{
2791
+ try {
2792
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2793
+ _iterator.return();
2794
+ }
2795
+ } finally{
2796
+ if (_didIteratorError) {
2797
+ throw _iteratorError;
2798
+ }
2799
+ }
2800
+ }
2801
+ }
2802
+ L.debug("layout blocks (<==layoutBlocks) ".concat(e.id, " x: ").concat((v = e == null ? void 0 : e.size) == null ? void 0 : v.x, " y: ").concat((N = e == null ? void 0 : e.size) == null ? void 0 : N.y, " width: ").concat((D = e == null ? void 0 : e.size) == null ? void 0 : D.width));
2803
+ }
2804
+ function xe(e) {
2805
+ var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2806
+ minX: 0,
2807
+ minY: 0,
2808
+ maxX: 0,
2809
+ maxY: 0
2810
+ }, c = _ref.minX, u = _ref.minY, a = _ref.maxX, i = _ref.maxY;
2811
+ if (e.size && e.id !== "root") {
2812
+ var _e_size = e.size, g = _e_size.x, o = _e_size.y, p = _e_size.width, f = _e_size.height;
2813
+ g - p / 2 < c && (c = g - p / 2), o - f / 2 < u && (u = o - f / 2), g + p / 2 > a && (a = g + p / 2), o + f / 2 > i && (i = o + f / 2);
2814
+ }
2815
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
2816
+ if (e.children) try {
2817
+ for(var _iterator = e.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
2818
+ var g1 = _step.value;
2819
+ var ref;
2820
+ ref = xe(g1, {
2821
+ minX: c,
2822
+ minY: u,
2823
+ maxX: a,
2824
+ maxY: i
2825
+ }), c = ref.minX, u = ref.minY, a = ref.maxX, i = ref.maxY, ref;
2826
+ }
2827
+ } catch (err) {
2828
+ _didIteratorError = true;
2829
+ _iteratorError = err;
2830
+ } finally{
2831
+ try {
2832
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
2833
+ _iterator.return();
2834
+ }
2835
+ } finally{
2836
+ if (_didIteratorError) {
2837
+ throw _iteratorError;
2838
+ }
2839
+ }
2840
+ }
2841
+ return {
2842
+ minX: c,
2843
+ minY: u,
2844
+ maxX: a,
2845
+ maxY: i
2846
+ };
2847
+ }
2848
+ function ft(e) {
2849
+ var c = e.getBlock("root");
2850
+ if (!c) return;
2851
+ te(c, e, 0, 0), Le(c), L.debug("getBlocks", JSON.stringify(c, null, 2));
2852
+ var _xe = xe(c), u = _xe.minX, a = _xe.minY, i = _xe.maxX, g = _xe.maxY, o = g - a, p = i - u;
2853
+ return {
2854
+ x: u,
2855
+ y: a,
2856
+ width: p,
2857
+ height: o
2858
+ };
2859
+ }
2860
+ var St = function St(e, c) {
2861
+ return c.db.getClasses();
2862
+ }, Lt = function() {
2863
+ var _ref = _async_to_generator(function(e, c, u, a) {
2864
+ var _se, i, g, o, p, f, m, y, z, I, w, C, E, v, N, D, l;
2865
+ return _ts_generator(this, function(_state) {
2866
+ switch(_state.label){
2867
+ case 0:
2868
+ _se = $t(), i = _se.securityLevel, g = _se.block, o = a.db;
2869
+ i === "sandbox" && (p = bt("#i" + c));
2870
+ f = i === "sandbox" ? bt(p.nodes()[0].contentDocument.body) : bt("body"), m = i === "sandbox" ? f.select('[id="'.concat(c, '"]')) : bt('[id="'.concat(c, '"]'));
2871
+ hr(m, [
2872
+ "point",
2873
+ "circle",
2874
+ "cross"
2875
+ ], a.type, c);
2876
+ y = o.getBlocks(), z = o.getBlocksFlat(), I = o.getEdges(), w = m.insert("g").attr("class", "block");
2877
+ return [
2878
+ 4,
2879
+ ht(w, y, o)
2880
+ ];
2881
+ case 1:
2882
+ _state.sent();
2883
+ C = ft(o);
2884
+ return [
2885
+ 4,
2886
+ ut(w, y, o)
2887
+ ];
2888
+ case 2:
2889
+ _state.sent();
2890
+ return [
2891
+ 4,
2892
+ gt(w, I, z, o, c)
2893
+ ];
2894
+ case 3:
2895
+ if (_state.sent(), C) {
2896
+ E = C, v = Math.max(1, Math.round(0.125 * (E.width / E.height))), N = E.height + v + 10, D = E.width + 10, l = g.useMaxWidth;
2897
+ Ol(m, N, D, !!l), L.debug("Here Bounds", C, E), m.attr("viewBox", "".concat(E.x - 5, " ").concat(E.y - 5, " ").concat(E.width + 10, " ").concat(E.height + 10));
2898
+ }
2899
+ h(r);
2900
+ return [
2901
+ 2
2902
+ ];
2903
+ }
2904
+ });
2905
+ });
2906
+ return function Lt(e, c, u, a) {
2907
+ return _ref.apply(this, arguments);
2908
+ };
2909
+ }(), xt = {
2910
+ draw: Lt,
2911
+ getClasses: St
2912
+ }, Ct = {
2913
+ parser: Pe,
2914
+ db: nt,
2915
+ renderer: xt,
2916
+ styles: ot
2917
+ };
2918
+
2919
+ export { Ct as diagram };