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