@kong-ui-public/documentation 1.5.77 → 1.6.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 (63) hide show
  1. package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
  2. package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
  3. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  4. package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
  5. package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
  6. package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
  7. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  8. package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
  9. package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
  10. package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
  11. package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
  12. package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
  13. package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
  14. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  15. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  16. package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
  17. package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
  18. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  19. package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
  20. package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
  21. package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
  22. package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
  23. package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
  24. package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
  25. package/dist/documentation.es.js +1 -1
  26. package/dist/documentation.umd.js +374 -374
  27. package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
  28. package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
  29. package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
  30. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  31. package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
  32. package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
  33. package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
  34. package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
  35. package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
  36. package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
  37. package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
  38. package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
  39. package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
  40. package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
  41. package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
  42. package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
  43. package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
  44. package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
  45. package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
  46. package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
  47. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  48. package/dist/style.css +1 -1
  49. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  50. package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
  51. package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
  52. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  53. package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
  54. package/package.json +4 -4
  55. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
  56. package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
  57. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
  58. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
  59. package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
  60. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
  61. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
  62. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
  63. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
@@ -1,11 +1,11 @@
1
- import { p as d, g as b, Z as w, e as te, N as ee, W as se, U as ie, K as re, G as ae, f as oe, i as ne, aq as le, a as K, H as ce } from "./index-Dpyqhws4.js";
2
- import { n as he } from "./chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js";
3
- import { r as de } from "./chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js";
4
- var Dt = function() {
5
- var t = /* @__PURE__ */ d(function(o, c, f, S) {
6
- for (f || (f = {}), S = o.length; S--; f[o[S]] = c) ;
7
- return f;
8
- }, "o"), e = [1, 2], s = [1, 3], a = [1, 4], r = [2, 4], n = [1, 9], h = [1, 11], y = [1, 16], p = [1, 17], _ = [1, 18], g = [1, 19], D = [1, 33], L = [1, 20], $ = [1, 21], R = [1, 22], C = [1, 23], O = [1, 24], u = [1, 26], E = [1, 27], I = [1, 28], G = [1, 29], W = [1, 30], Y = [1, 31], F = [1, 32], it = [1, 35], rt = [1, 36], at = [1, 37], ot = [1, 38], X = [1, 34], m = [
1
+ import { p as h, g as b, Z as N, e as te, N as ee, W as se, U as ie, K as re, G as ae, f as oe, i as ne, aq as le, a as z, H as ce } from "./index-DfVKdDwj.js";
2
+ import { n as he } from "./chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js";
3
+ import { r as de } from "./chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js";
4
+ var Dt = (function() {
5
+ var t = /* @__PURE__ */ h(function(a, l, y, m) {
6
+ for (y ||= {}, m = a.length; m--; y[a[m]] = l) ;
7
+ return y;
8
+ }, "o"), e = [1, 2], s = [1, 3], o = [1, 4], r = [2, 4], d = [1, 9], c = [1, 11], f = [1, 16], p = [1, 17], S = [1, 18], _ = [1, 19], D = [1, 33], O = [1, 20], x = [1, 21], u = [1, 22], E = [1, 23], A = [1, 24], v = [1, 26], F = [1, 27], R = [1, 28], B = [1, 29], tt = [1, 30], et = [1, 31], st = [1, 32], it = [1, 35], rt = [1, 36], at = [1, 37], ot = [1, 38], M = [1, 34], g = [
9
9
  1,
10
10
  4,
11
11
  5,
@@ -90,7 +90,7 @@ var Dt = function() {
90
90
  54,
91
91
  57
92
92
  ], mt = {
93
- trace: /* @__PURE__ */ d(function() {
93
+ trace: /* @__PURE__ */ h(function() {
94
94
  }, "trace"),
95
95
  yy: {},
96
96
  symbols_: {
@@ -258,136 +258,136 @@ var Dt = function() {
258
258
  [30, 1],
259
259
  [30, 1]
260
260
  ],
261
- performAction: /* @__PURE__ */ d(function(o, c, f, S, k, i, j) {
262
- var l = i.length - 1;
261
+ performAction: /* @__PURE__ */ h(function(a, l, y, m, k, i, P) {
262
+ var n = i.length - 1;
263
263
  switch (k) {
264
264
  case 3:
265
- return S.setRootDoc(i[l]), i[l];
265
+ return m.setRootDoc(i[n]), i[n];
266
266
  case 4:
267
267
  this.$ = [];
268
268
  break;
269
269
  case 5:
270
- i[l] != "nl" && (i[l - 1].push(i[l]), this.$ = i[l - 1]);
270
+ i[n] != "nl" && (i[n - 1].push(i[n]), this.$ = i[n - 1]);
271
271
  break;
272
272
  case 6:
273
273
  case 7:
274
- this.$ = i[l];
274
+ this.$ = i[n];
275
275
  break;
276
276
  case 8:
277
277
  this.$ = "nl";
278
278
  break;
279
279
  case 12:
280
- this.$ = i[l];
280
+ this.$ = i[n];
281
281
  break;
282
282
  case 13:
283
- let ht = i[l - 1];
284
- ht.description = S.trimColon(i[l]), this.$ = ht;
283
+ let ht = i[n - 1];
284
+ ht.description = m.trimColon(i[n]), this.$ = ht;
285
285
  break;
286
286
  case 14:
287
287
  this.$ = {
288
288
  stmt: "relation",
289
- state1: i[l - 2],
290
- state2: i[l]
289
+ state1: i[n - 2],
290
+ state2: i[n]
291
291
  };
292
292
  break;
293
293
  case 15:
294
- let dt = S.trimColon(i[l]);
294
+ let dt = m.trimColon(i[n]);
295
295
  this.$ = {
296
296
  stmt: "relation",
297
- state1: i[l - 3],
298
- state2: i[l - 1],
297
+ state1: i[n - 3],
298
+ state2: i[n - 1],
299
299
  description: dt
300
300
  };
301
301
  break;
302
302
  case 19:
303
303
  this.$ = {
304
304
  stmt: "state",
305
- id: i[l - 3],
305
+ id: i[n - 3],
306
306
  type: "default",
307
307
  description: "",
308
- doc: i[l - 1]
308
+ doc: i[n - 1]
309
309
  };
310
310
  break;
311
311
  case 20:
312
- var z = i[l], J = i[l - 2].trim();
313
- if (i[l].match(":")) {
314
- var ct = i[l].split(":");
315
- z = ct[0], J = [J, ct[1]];
312
+ var G = i[n], K = i[n - 2].trim();
313
+ if (i[n].match(":")) {
314
+ var ct = i[n].split(":");
315
+ G = ct[0], K = [K, ct[1]];
316
316
  }
317
317
  this.$ = {
318
318
  stmt: "state",
319
- id: z,
319
+ id: G,
320
320
  type: "default",
321
- description: J
321
+ description: K
322
322
  };
323
323
  break;
324
324
  case 21:
325
325
  this.$ = {
326
326
  stmt: "state",
327
- id: i[l - 3],
327
+ id: i[n - 3],
328
328
  type: "default",
329
- description: i[l - 5],
330
- doc: i[l - 1]
329
+ description: i[n - 5],
330
+ doc: i[n - 1]
331
331
  };
332
332
  break;
333
333
  case 22:
334
334
  this.$ = {
335
335
  stmt: "state",
336
- id: i[l],
336
+ id: i[n],
337
337
  type: "fork"
338
338
  };
339
339
  break;
340
340
  case 23:
341
341
  this.$ = {
342
342
  stmt: "state",
343
- id: i[l],
343
+ id: i[n],
344
344
  type: "join"
345
345
  };
346
346
  break;
347
347
  case 24:
348
348
  this.$ = {
349
349
  stmt: "state",
350
- id: i[l],
350
+ id: i[n],
351
351
  type: "choice"
352
352
  };
353
353
  break;
354
354
  case 25:
355
355
  this.$ = {
356
356
  stmt: "state",
357
- id: S.getDividerId(),
357
+ id: m.getDividerId(),
358
358
  type: "divider"
359
359
  };
360
360
  break;
361
361
  case 26:
362
362
  this.$ = {
363
363
  stmt: "state",
364
- id: i[l - 1].trim(),
364
+ id: i[n - 1].trim(),
365
365
  note: {
366
- position: i[l - 2].trim(),
367
- text: i[l].trim()
366
+ position: i[n - 2].trim(),
367
+ text: i[n].trim()
368
368
  }
369
369
  };
370
370
  break;
371
371
  case 29:
372
- this.$ = i[l].trim(), S.setAccTitle(this.$);
372
+ this.$ = i[n].trim(), m.setAccTitle(this.$);
373
373
  break;
374
374
  case 30:
375
375
  case 31:
376
- this.$ = i[l].trim(), S.setAccDescription(this.$);
376
+ this.$ = i[n].trim(), m.setAccDescription(this.$);
377
377
  break;
378
378
  case 32:
379
379
  this.$ = {
380
380
  stmt: "click",
381
- id: i[l - 3],
382
- url: i[l - 2],
383
- tooltip: i[l - 1]
381
+ id: i[n - 3],
382
+ url: i[n - 2],
383
+ tooltip: i[n - 1]
384
384
  };
385
385
  break;
386
386
  case 33:
387
387
  this.$ = {
388
388
  stmt: "click",
389
- id: i[l - 3],
390
- url: i[l - 1],
389
+ id: i[n - 3],
390
+ url: i[n - 1],
391
391
  tooltip: ""
392
392
  };
393
393
  break;
@@ -395,44 +395,44 @@ var Dt = function() {
395
395
  case 35:
396
396
  this.$ = {
397
397
  stmt: "classDef",
398
- id: i[l - 1].trim(),
399
- classes: i[l].trim()
398
+ id: i[n - 1].trim(),
399
+ classes: i[n].trim()
400
400
  };
401
401
  break;
402
402
  case 36:
403
403
  this.$ = {
404
404
  stmt: "style",
405
- id: i[l - 1].trim(),
406
- styleClass: i[l].trim()
405
+ id: i[n - 1].trim(),
406
+ styleClass: i[n].trim()
407
407
  };
408
408
  break;
409
409
  case 37:
410
410
  this.$ = {
411
411
  stmt: "applyClass",
412
- id: i[l - 1].trim(),
413
- styleClass: i[l].trim()
412
+ id: i[n - 1].trim(),
413
+ styleClass: i[n].trim()
414
414
  };
415
415
  break;
416
416
  case 38:
417
- S.setDirection("TB"), this.$ = {
417
+ m.setDirection("TB"), this.$ = {
418
418
  stmt: "dir",
419
419
  value: "TB"
420
420
  };
421
421
  break;
422
422
  case 39:
423
- S.setDirection("BT"), this.$ = {
423
+ m.setDirection("BT"), this.$ = {
424
424
  stmt: "dir",
425
425
  value: "BT"
426
426
  };
427
427
  break;
428
428
  case 40:
429
- S.setDirection("RL"), this.$ = {
429
+ m.setDirection("RL"), this.$ = {
430
430
  stmt: "dir",
431
431
  value: "RL"
432
432
  };
433
433
  break;
434
434
  case 41:
435
- S.setDirection("LR"), this.$ = {
435
+ m.setDirection("LR"), this.$ = {
436
436
  stmt: "dir",
437
437
  value: "LR"
438
438
  };
@@ -441,7 +441,7 @@ var Dt = function() {
441
441
  case 45:
442
442
  this.$ = {
443
443
  stmt: "state",
444
- id: i[l].trim(),
444
+ id: i[n].trim(),
445
445
  type: "default",
446
446
  description: ""
447
447
  };
@@ -449,8 +449,8 @@ var Dt = function() {
449
449
  case 46:
450
450
  this.$ = {
451
451
  stmt: "state",
452
- id: i[l - 2].trim(),
453
- classes: [i[l].trim()],
452
+ id: i[n - 2].trim(),
453
+ classes: [i[n].trim()],
454
454
  type: "default",
455
455
  description: ""
456
456
  };
@@ -458,8 +458,8 @@ var Dt = function() {
458
458
  case 47:
459
459
  this.$ = {
460
460
  stmt: "state",
461
- id: i[l - 2].trim(),
462
- classes: [i[l].trim()],
461
+ id: i[n - 2].trim(),
462
+ classes: [i[n].trim()],
463
463
  type: "default",
464
464
  description: ""
465
465
  };
@@ -471,20 +471,20 @@ var Dt = function() {
471
471
  3: 1,
472
472
  4: e,
473
473
  5: s,
474
- 6: a
474
+ 6: o
475
475
  },
476
476
  { 1: [3] },
477
477
  {
478
478
  3: 5,
479
479
  4: e,
480
480
  5: s,
481
- 6: a
481
+ 6: o
482
482
  },
483
483
  {
484
484
  3: 6,
485
485
  4: e,
486
486
  5: s,
487
- 6: a
487
+ 6: o
488
488
  },
489
489
  t([
490
490
  1,
@@ -517,100 +517,100 @@ var Dt = function() {
517
517
  { 1: [2, 2] },
518
518
  {
519
519
  1: [2, 3],
520
- 4: n,
521
- 5: h,
520
+ 4: d,
521
+ 5: c,
522
522
  8: 8,
523
523
  9: 10,
524
524
  10: 12,
525
525
  11: 13,
526
526
  12: 14,
527
527
  13: 15,
528
- 16: y,
528
+ 16: f,
529
529
  17: p,
530
- 19: _,
531
- 22: g,
530
+ 19: S,
531
+ 22: _,
532
532
  24: D,
533
- 25: L,
534
- 26: $,
535
- 27: R,
536
- 28: C,
537
- 29: O,
533
+ 25: O,
534
+ 26: x,
535
+ 27: u,
536
+ 28: E,
537
+ 29: A,
538
538
  32: 25,
539
- 33: u,
540
- 35: E,
541
- 37: I,
542
- 38: G,
543
- 41: W,
544
- 45: Y,
545
- 48: F,
539
+ 33: v,
540
+ 35: F,
541
+ 37: R,
542
+ 38: B,
543
+ 41: tt,
544
+ 45: et,
545
+ 48: st,
546
546
  51: it,
547
547
  52: rt,
548
548
  53: at,
549
549
  54: ot,
550
- 57: X
550
+ 57: M
551
551
  },
552
- t(m, [2, 5]),
552
+ t(g, [2, 5]),
553
553
  {
554
554
  9: 39,
555
555
  10: 12,
556
556
  11: 13,
557
557
  12: 14,
558
558
  13: 15,
559
- 16: y,
559
+ 16: f,
560
560
  17: p,
561
- 19: _,
562
- 22: g,
561
+ 19: S,
562
+ 22: _,
563
563
  24: D,
564
- 25: L,
565
- 26: $,
566
- 27: R,
567
- 28: C,
568
- 29: O,
564
+ 25: O,
565
+ 26: x,
566
+ 27: u,
567
+ 28: E,
568
+ 29: A,
569
569
  32: 25,
570
- 33: u,
571
- 35: E,
572
- 37: I,
573
- 38: G,
574
- 41: W,
575
- 45: Y,
576
- 48: F,
570
+ 33: v,
571
+ 35: F,
572
+ 37: R,
573
+ 38: B,
574
+ 41: tt,
575
+ 45: et,
576
+ 48: st,
577
577
  51: it,
578
578
  52: rt,
579
579
  53: at,
580
580
  54: ot,
581
- 57: X
581
+ 57: M
582
582
  },
583
- t(m, [2, 7]),
584
- t(m, [2, 8]),
585
- t(m, [2, 9]),
586
- t(m, [2, 10]),
587
- t(m, [2, 11]),
588
- t(m, [2, 12], {
583
+ t(g, [2, 7]),
584
+ t(g, [2, 8]),
585
+ t(g, [2, 9]),
586
+ t(g, [2, 10]),
587
+ t(g, [2, 11]),
588
+ t(g, [2, 12], {
589
589
  14: [1, 40],
590
590
  15: [1, 41]
591
591
  }),
592
- t(m, [2, 16]),
592
+ t(g, [2, 16]),
593
593
  { 18: [1, 42] },
594
- t(m, [2, 18], { 20: [1, 43] }),
594
+ t(g, [2, 18], { 20: [1, 43] }),
595
595
  { 23: [1, 44] },
596
- t(m, [2, 22]),
597
- t(m, [2, 23]),
598
- t(m, [2, 24]),
599
- t(m, [2, 25]),
596
+ t(g, [2, 22]),
597
+ t(g, [2, 23]),
598
+ t(g, [2, 24]),
599
+ t(g, [2, 25]),
600
600
  {
601
601
  30: 45,
602
602
  31: [1, 46],
603
603
  59: [1, 47],
604
604
  60: [1, 48]
605
605
  },
606
- t(m, [2, 28]),
606
+ t(g, [2, 28]),
607
607
  { 34: [1, 49] },
608
608
  { 36: [1, 50] },
609
- t(m, [2, 31]),
609
+ t(g, [2, 31]),
610
610
  {
611
611
  13: 51,
612
612
  24: D,
613
- 57: X
613
+ 57: M
614
614
  },
615
615
  {
616
616
  42: [1, 52],
@@ -620,26 +620,26 @@ var Dt = function() {
620
620
  { 49: [1, 55] },
621
621
  t(nt, [2, 44], { 58: [1, 56] }),
622
622
  t(nt, [2, 45], { 58: [1, 57] }),
623
- t(m, [2, 38]),
624
- t(m, [2, 39]),
625
- t(m, [2, 40]),
626
- t(m, [2, 41]),
627
- t(m, [2, 6]),
628
- t(m, [2, 13]),
623
+ t(g, [2, 38]),
624
+ t(g, [2, 39]),
625
+ t(g, [2, 40]),
626
+ t(g, [2, 41]),
627
+ t(g, [2, 6]),
628
+ t(g, [2, 13]),
629
629
  {
630
630
  13: 58,
631
631
  24: D,
632
- 57: X
632
+ 57: M
633
633
  },
634
- t(m, [2, 17]),
634
+ t(g, [2, 17]),
635
635
  t(Ct, r, { 7: 59 }),
636
636
  { 24: [1, 60] },
637
637
  { 24: [1, 61] },
638
638
  { 23: [1, 62] },
639
639
  { 24: [2, 48] },
640
640
  { 24: [2, 49] },
641
- t(m, [2, 29]),
642
- t(m, [2, 30]),
641
+ t(g, [2, 29]),
642
+ t(g, [2, 30]),
643
643
  {
644
644
  39: [1, 63],
645
645
  40: [1, 64]
@@ -650,96 +650,96 @@ var Dt = function() {
650
650
  { 50: [1, 68] },
651
651
  { 24: [1, 69] },
652
652
  { 24: [1, 70] },
653
- t(m, [2, 14], { 14: [1, 71] }),
653
+ t(g, [2, 14], { 14: [1, 71] }),
654
654
  {
655
- 4: n,
656
- 5: h,
655
+ 4: d,
656
+ 5: c,
657
657
  8: 8,
658
658
  9: 10,
659
659
  10: 12,
660
660
  11: 13,
661
661
  12: 14,
662
662
  13: 15,
663
- 16: y,
663
+ 16: f,
664
664
  17: p,
665
- 19: _,
665
+ 19: S,
666
666
  21: [1, 72],
667
- 22: g,
667
+ 22: _,
668
668
  24: D,
669
- 25: L,
670
- 26: $,
671
- 27: R,
672
- 28: C,
673
- 29: O,
669
+ 25: O,
670
+ 26: x,
671
+ 27: u,
672
+ 28: E,
673
+ 29: A,
674
674
  32: 25,
675
- 33: u,
676
- 35: E,
677
- 37: I,
678
- 38: G,
679
- 41: W,
680
- 45: Y,
681
- 48: F,
675
+ 33: v,
676
+ 35: F,
677
+ 37: R,
678
+ 38: B,
679
+ 41: tt,
680
+ 45: et,
681
+ 48: st,
682
682
  51: it,
683
683
  52: rt,
684
684
  53: at,
685
685
  54: ot,
686
- 57: X
686
+ 57: M
687
687
  },
688
- t(m, [2, 20], { 20: [1, 73] }),
688
+ t(g, [2, 20], { 20: [1, 73] }),
689
689
  { 31: [1, 74] },
690
690
  { 24: [1, 75] },
691
691
  { 39: [1, 76] },
692
692
  { 39: [1, 77] },
693
- t(m, [2, 34]),
694
- t(m, [2, 35]),
695
- t(m, [2, 36]),
696
- t(m, [2, 37]),
693
+ t(g, [2, 34]),
694
+ t(g, [2, 35]),
695
+ t(g, [2, 36]),
696
+ t(g, [2, 37]),
697
697
  t(nt, [2, 46]),
698
698
  t(nt, [2, 47]),
699
- t(m, [2, 15]),
700
- t(m, [2, 19]),
699
+ t(g, [2, 15]),
700
+ t(g, [2, 19]),
701
701
  t(Ct, r, { 7: 78 }),
702
- t(m, [2, 26]),
703
- t(m, [2, 27]),
702
+ t(g, [2, 26]),
703
+ t(g, [2, 27]),
704
704
  { 5: [1, 79] },
705
705
  { 5: [1, 80] },
706
706
  {
707
- 4: n,
708
- 5: h,
707
+ 4: d,
708
+ 5: c,
709
709
  8: 8,
710
710
  9: 10,
711
711
  10: 12,
712
712
  11: 13,
713
713
  12: 14,
714
714
  13: 15,
715
- 16: y,
715
+ 16: f,
716
716
  17: p,
717
- 19: _,
717
+ 19: S,
718
718
  21: [1, 81],
719
- 22: g,
719
+ 22: _,
720
720
  24: D,
721
- 25: L,
722
- 26: $,
723
- 27: R,
724
- 28: C,
725
- 29: O,
721
+ 25: O,
722
+ 26: x,
723
+ 27: u,
724
+ 28: E,
725
+ 29: A,
726
726
  32: 25,
727
- 33: u,
728
- 35: E,
729
- 37: I,
730
- 38: G,
731
- 41: W,
732
- 45: Y,
733
- 48: F,
727
+ 33: v,
728
+ 35: F,
729
+ 37: R,
730
+ 38: B,
731
+ 41: tt,
732
+ 45: et,
733
+ 48: st,
734
734
  51: it,
735
735
  52: rt,
736
736
  53: at,
737
737
  54: ot,
738
- 57: X
738
+ 57: M
739
739
  },
740
- t(m, [2, 32]),
741
- t(m, [2, 33]),
742
- t(m, [2, 21])
740
+ t(g, [2, 32]),
741
+ t(g, [2, 33]),
742
+ t(g, [2, 21])
743
743
  ],
744
744
  defaultActions: {
745
745
  5: [2, 1],
@@ -747,65 +747,65 @@ var Dt = function() {
747
747
  47: [2, 48],
748
748
  48: [2, 49]
749
749
  },
750
- parseError: /* @__PURE__ */ d(function(o, c) {
751
- if (c.recoverable) this.trace(o);
750
+ parseError: /* @__PURE__ */ h(function(a, l) {
751
+ if (l.recoverable) this.trace(a);
752
752
  else {
753
- var f = Error(o);
754
- throw f.hash = c, f;
753
+ var y = Error(a);
754
+ throw y.hash = l, y;
755
755
  }
756
756
  }, "parseError"),
757
- parse: /* @__PURE__ */ d(function(o) {
758
- var c = this, f = [0], S = [], k = [null], i = [], j = this.table, l = "", z = 0, J = 0, ct = 0, ht = 2, dt = 1, qt = i.slice.call(arguments, 1), T = Object.create(this.lexer), U = { yy: {} };
759
- for (var St in this.yy) Object.prototype.hasOwnProperty.call(this.yy, St) && (U.yy[St] = this.yy[St]);
760
- T.setInput(o, U.yy), U.yy.lexer = T, U.yy.parser = this, T.yylloc === void 0 && (T.yylloc = {});
757
+ parse: /* @__PURE__ */ h(function(a) {
758
+ var l = this, y = [0], m = [], k = [null], i = [], P = this.table, n = "", G = 0, K = 0, ct = 0, ht = 2, dt = 1, qt = i.slice.call(arguments, 1), T = Object.create(this.lexer), W = { yy: {} };
759
+ for (var St in this.yy) Object.prototype.hasOwnProperty.call(this.yy, St) && (W.yy[St] = this.yy[St]);
760
+ T.setInput(a, W.yy), W.yy.lexer = T, W.yy.parser = this, T.yylloc === void 0 && (T.yylloc = {});
761
761
  var _t = T.yylloc;
762
762
  i.push(_t);
763
763
  var Zt = T.options && T.options.ranges;
764
- typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
765
- function Qt(N) {
766
- f.length -= 2 * N, k.length -= N, i.length -= N;
764
+ typeof W.yy.parseError == "function" ? this.parseError = W.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
765
+ function Qt(I) {
766
+ y.length -= 2 * I, k.length -= I, i.length -= I;
767
767
  }
768
- d(Qt, "popStack");
768
+ h(Qt, "popStack");
769
769
  function vt() {
770
- var N = S.pop() || T.lex() || dt;
771
- return typeof N != "number" && (N instanceof Array && (S = N, N = S.pop()), N = c.symbols_[N] || N), N;
770
+ var I = m.pop() || T.lex() || dt;
771
+ return typeof I != "number" && (I instanceof Array && (m = I, I = m.pop()), I = l.symbols_[I] || I), I;
772
772
  }
773
- d(vt, "lex");
774
- for (var v, kt, M, A, bt, V = {}, ut, B, Lt, pt; ; ) {
775
- if (M = f[f.length - 1], this.defaultActions[M] ? A = this.defaultActions[M] : (v ?? (v = vt()), A = j[M] && j[M][v]), A === void 0 || !A.length || !A[0]) {
773
+ h(vt, "lex");
774
+ for (var C, kt, j, L, bt, H = {}, ut, w, Lt, pt; ; ) {
775
+ if (j = y[y.length - 1], this.defaultActions[j] ? L = this.defaultActions[j] : (C ??= vt(), L = P[j] && P[j][C]), L === void 0 || !L.length || !L[0]) {
776
776
  var It = "";
777
- for (ut in pt = [], j[M]) this.terminals_[ut] && ut > ht && pt.push("'" + this.terminals_[ut] + "'");
778
- It = T.showPosition ? "Parse error on line " + (z + 1) + `:
777
+ for (ut in pt = [], P[j]) this.terminals_[ut] && ut > ht && pt.push("'" + this.terminals_[ut] + "'");
778
+ It = T.showPosition ? "Parse error on line " + (G + 1) + `:
779
779
  ` + T.showPosition() + `
780
- Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Parse error on line " + (z + 1) + ": Unexpected " + (v == dt ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(It, {
780
+ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (G + 1) + ": Unexpected " + (C == dt ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(It, {
781
781
  text: T.match,
782
- token: this.terminals_[v] || v,
782
+ token: this.terminals_[C] || C,
783
783
  line: T.yylineno,
784
784
  loc: _t,
785
785
  expected: pt
786
786
  });
787
787
  }
788
- if (A[0] instanceof Array && A.length > 1) throw Error("Parse Error: multiple actions possible at state: " + M + ", token: " + v);
789
- switch (A[0]) {
788
+ if (L[0] instanceof Array && L.length > 1) throw Error("Parse Error: multiple actions possible at state: " + j + ", token: " + C);
789
+ switch (L[0]) {
790
790
  case 1:
791
- f.push(v), k.push(T.yytext), i.push(T.yylloc), f.push(A[1]), v = null, kt ? (v = kt, kt = null) : (J = T.yyleng, l = T.yytext, z = T.yylineno, _t = T.yylloc, ct > 0);
791
+ y.push(C), k.push(T.yytext), i.push(T.yylloc), y.push(L[1]), C = null, kt ? (C = kt, kt = null) : (K = T.yyleng, n = T.yytext, G = T.yylineno, _t = T.yylloc, ct > 0);
792
792
  break;
793
793
  case 2:
794
- if (B = this.productions_[A[1]][1], V.$ = k[k.length - B], V._$ = {
795
- first_line: i[i.length - (B || 1)].first_line,
794
+ if (w = this.productions_[L[1]][1], H.$ = k[k.length - w], H._$ = {
795
+ first_line: i[i.length - (w || 1)].first_line,
796
796
  last_line: i[i.length - 1].last_line,
797
- first_column: i[i.length - (B || 1)].first_column,
797
+ first_column: i[i.length - (w || 1)].first_column,
798
798
  last_column: i[i.length - 1].last_column
799
- }, Zt && (V._$.range = [i[i.length - (B || 1)].range[0], i[i.length - 1].range[1]]), bt = this.performAction.apply(V, [
800
- l,
801
- J,
802
- z,
803
- U.yy,
804
- A[1],
799
+ }, Zt && (H._$.range = [i[i.length - (w || 1)].range[0], i[i.length - 1].range[1]]), bt = this.performAction.apply(H, [
800
+ n,
801
+ K,
802
+ G,
803
+ W.yy,
804
+ L[1],
805
805
  k,
806
806
  i
807
807
  ].concat(qt)), bt !== void 0) return bt;
808
- B && (f = f.slice(0, -1 * B * 2), k = k.slice(0, -1 * B), i = i.slice(0, -1 * B)), f.push(this.productions_[A[1]][0]), k.push(V.$), i.push(V._$), Lt = j[f[f.length - 2]][f[f.length - 1]], f.push(Lt);
808
+ w && (y = y.slice(0, -1 * w * 2), k = k.slice(0, -1 * w), i = i.slice(0, -1 * w)), y.push(this.productions_[L[1]][0]), k.push(H.$), i.push(H._$), Lt = P[y[y.length - 2]][y[y.length - 1]], y.push(Lt);
809
809
  break;
810
810
  case 3:
811
811
  return !0;
@@ -814,42 +814,42 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
814
814
  return !0;
815
815
  }, "parse")
816
816
  };
817
- mt.lexer = /* @__PURE__ */ function() {
817
+ mt.lexer = /* @__PURE__ */ (function() {
818
818
  return {
819
819
  EOF: 1,
820
- parseError: /* @__PURE__ */ d(function(o, c) {
821
- if (this.yy.parser) this.yy.parser.parseError(o, c);
822
- else throw Error(o);
820
+ parseError: /* @__PURE__ */ h(function(a, l) {
821
+ if (this.yy.parser) this.yy.parser.parseError(a, l);
822
+ else throw Error(a);
823
823
  }, "parseError"),
824
- setInput: /* @__PURE__ */ d(function(o, c) {
825
- return this.yy = c || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
824
+ setInput: /* @__PURE__ */ h(function(a, l) {
825
+ return this.yy = l || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
826
826
  first_line: 1,
827
827
  first_column: 0,
828
828
  last_line: 1,
829
829
  last_column: 0
830
830
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
831
831
  }, "setInput"),
832
- input: /* @__PURE__ */ d(function() {
833
- var o = this._input[0];
834
- return this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o, o.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
832
+ input: /* @__PURE__ */ h(function() {
833
+ var a = this._input[0];
834
+ return this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a, a.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
835
835
  }, "input"),
836
- unput: /* @__PURE__ */ d(function(o) {
837
- var c = o.length, f = o.split(/(?:\r\n?|\n)/g);
838
- this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
839
- var S = this.match.split(/(?:\r\n?|\n)/g);
840
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), f.length - 1 && (this.yylineno -= f.length - 1);
836
+ unput: /* @__PURE__ */ h(function(a) {
837
+ var l = a.length, y = a.split(/(?:\r\n?|\n)/g);
838
+ this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
839
+ var m = this.match.split(/(?:\r\n?|\n)/g);
840
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
841
841
  var k = this.yylloc.range;
842
842
  return this.yylloc = {
843
843
  first_line: this.yylloc.first_line,
844
844
  last_line: this.yylineno + 1,
845
845
  first_column: this.yylloc.first_column,
846
- last_column: f ? (f.length === S.length ? this.yylloc.first_column : 0) + S[S.length - f.length].length - f[0].length : this.yylloc.first_column - c
847
- }, this.options.ranges && (this.yylloc.range = [k[0], k[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
846
+ last_column: y ? (y.length === m.length ? this.yylloc.first_column : 0) + m[m.length - y.length].length - y[0].length : this.yylloc.first_column - l
847
+ }, this.options.ranges && (this.yylloc.range = [k[0], k[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
848
848
  }, "unput"),
849
- more: /* @__PURE__ */ d(function() {
849
+ more: /* @__PURE__ */ h(function() {
850
850
  return this._more = !0, this;
851
851
  }, "more"),
852
- reject: /* @__PURE__ */ d(function() {
852
+ reject: /* @__PURE__ */ h(function() {
853
853
  if (this.options.backtrack_lexer) this._backtrack = !0;
854
854
  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).
855
855
  ` + this.showPosition(), {
@@ -859,24 +859,24 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
859
859
  });
860
860
  return this;
861
861
  }, "reject"),
862
- less: /* @__PURE__ */ d(function(o) {
863
- this.unput(this.match.slice(o));
862
+ less: /* @__PURE__ */ h(function(a) {
863
+ this.unput(this.match.slice(a));
864
864
  }, "less"),
865
- pastInput: /* @__PURE__ */ d(function() {
866
- var o = this.matched.substr(0, this.matched.length - this.match.length);
867
- return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
865
+ pastInput: /* @__PURE__ */ h(function() {
866
+ var a = this.matched.substr(0, this.matched.length - this.match.length);
867
+ return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
868
868
  }, "pastInput"),
869
- upcomingInput: /* @__PURE__ */ d(function() {
870
- var o = this.match;
871
- return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
869
+ upcomingInput: /* @__PURE__ */ h(function() {
870
+ var a = this.match;
871
+ return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
872
872
  }, "upcomingInput"),
873
- showPosition: /* @__PURE__ */ d(function() {
874
- var o = this.pastInput(), c = Array(o.length + 1).join("-");
875
- return o + this.upcomingInput() + `
876
- ` + c + "^";
873
+ showPosition: /* @__PURE__ */ h(function() {
874
+ var a = this.pastInput(), l = Array(a.length + 1).join("-");
875
+ return a + this.upcomingInput() + `
876
+ ` + l + "^";
877
877
  }, "showPosition"),
878
- test_match: /* @__PURE__ */ d(function(o, c) {
879
- var f, S, k;
878
+ test_match: /* @__PURE__ */ h(function(a, l) {
879
+ var y, m, k;
880
880
  if (this.options.backtrack_lexer && (k = {
881
881
  yylineno: this.yylineno,
882
882
  yylloc: {
@@ -896,72 +896,72 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
896
896
  yy: this.yy,
897
897
  conditionStack: this.conditionStack.slice(0),
898
898
  done: this.done
899
- }, this.options.ranges && (k.yylloc.range = this.yylloc.range.slice(0))), S = o[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
899
+ }, this.options.ranges && (k.yylloc.range = this.yylloc.range.slice(0))), m = a[0].match(/(?:\r\n?|\n).*/g), m && (this.yylineno += m.length), this.yylloc = {
900
900
  first_line: this.yylloc.last_line,
901
901
  last_line: this.yylineno + 1,
902
902
  first_column: this.yylloc.last_column,
903
- last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
904
- }, this.yytext += o[0], this.match += o[0], this.matches = o, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(o[0].length), this.matched += o[0], f = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), f) return f;
903
+ last_column: m ? m[m.length - 1].length - m[m.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
904
+ }, this.yytext += a[0], this.match += a[0], this.matches = a, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(a[0].length), this.matched += a[0], y = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) return y;
905
905
  if (this._backtrack) {
906
906
  for (var i in k) this[i] = k[i];
907
907
  return !1;
908
908
  }
909
909
  return !1;
910
910
  }, "test_match"),
911
- next: /* @__PURE__ */ d(function() {
911
+ next: /* @__PURE__ */ h(function() {
912
912
  if (this.done) return this.EOF;
913
913
  this._input || (this.done = !0);
914
- var o, c, f, S;
914
+ var a, l, y, m;
915
915
  this._more || (this.yytext = "", this.match = "");
916
- for (var k = this._currentRules(), i = 0; i < k.length; i++) if (f = this._input.match(this.rules[k[i]]), f && (!c || f[0].length > c[0].length)) {
917
- if (c = f, S = i, this.options.backtrack_lexer) {
918
- if (o = this.test_match(f, k[i]), o !== !1) return o;
916
+ for (var k = this._currentRules(), i = 0; i < k.length; i++) if (y = this._input.match(this.rules[k[i]]), y && (!l || y[0].length > l[0].length)) {
917
+ if (l = y, m = i, this.options.backtrack_lexer) {
918
+ if (a = this.test_match(y, k[i]), a !== !1) return a;
919
919
  if (this._backtrack) {
920
- c = !1;
920
+ l = !1;
921
921
  continue;
922
922
  } else return !1;
923
923
  } else if (!this.options.flex) break;
924
924
  }
925
- return c ? (o = this.test_match(c, k[S]), o === !1 ? !1 : o) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
925
+ return l ? (a = this.test_match(l, k[m]), a === !1 ? !1 : a) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
926
926
  ` + this.showPosition(), {
927
927
  text: "",
928
928
  token: null,
929
929
  line: this.yylineno
930
930
  });
931
931
  }, "next"),
932
- lex: /* @__PURE__ */ d(function() {
932
+ lex: /* @__PURE__ */ h(function() {
933
933
  return this.next() || this.lex();
934
934
  }, "lex"),
935
- begin: /* @__PURE__ */ d(function(o) {
936
- this.conditionStack.push(o);
935
+ begin: /* @__PURE__ */ h(function(a) {
936
+ this.conditionStack.push(a);
937
937
  }, "begin"),
938
- popState: /* @__PURE__ */ d(function() {
938
+ popState: /* @__PURE__ */ h(function() {
939
939
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
940
940
  }, "popState"),
941
- _currentRules: /* @__PURE__ */ d(function() {
941
+ _currentRules: /* @__PURE__ */ h(function() {
942
942
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
943
943
  }, "_currentRules"),
944
- topState: /* @__PURE__ */ d(function(o) {
945
- return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
944
+ topState: /* @__PURE__ */ h(function(a) {
945
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
946
946
  }, "topState"),
947
- pushState: /* @__PURE__ */ d(function(o) {
948
- this.begin(o);
947
+ pushState: /* @__PURE__ */ h(function(a) {
948
+ this.begin(a);
949
949
  }, "pushState"),
950
- stateStackSize: /* @__PURE__ */ d(function() {
950
+ stateStackSize: /* @__PURE__ */ h(function() {
951
951
  return this.conditionStack.length;
952
952
  }, "stateStackSize"),
953
953
  options: { "case-insensitive": !0 },
954
- performAction: /* @__PURE__ */ d(function(o, c, f, S) {
954
+ performAction: /* @__PURE__ */ h(function(a, l, y, m) {
955
955
  function k() {
956
- let i = c.yytext.indexOf("%%");
956
+ let i = l.yytext.indexOf("%%");
957
957
  if (i === 0) return !1;
958
958
  if (i > 0) {
959
- let j = c.yytext.slice(0, i), l = c.yytext.slice(i);
960
- l && o.lexer.unput(l), c.yytext = j;
959
+ let P = l.yytext.slice(0, i), n = l.yytext.slice(i);
960
+ n && a.lexer.unput(n), l.yytext = P;
961
961
  }
962
962
  return !0;
963
963
  }
964
- switch (d(k, "processId"), f) {
964
+ switch (h(k, "processId"), y) {
965
965
  case 0:
966
966
  return 38;
967
967
  case 1:
@@ -1042,17 +1042,17 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
1042
1042
  this.pushState("STATE");
1043
1043
  break;
1044
1044
  case 37:
1045
- return this.popState(), c.yytext = c.yytext.slice(0, -8).trim(), 25;
1045
+ return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1046
1046
  case 38:
1047
- return this.popState(), c.yytext = c.yytext.slice(0, -8).trim(), 26;
1047
+ return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1048
1048
  case 39:
1049
- return this.popState(), c.yytext = c.yytext.slice(0, -10).trim(), 27;
1049
+ return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1050
1050
  case 40:
1051
- return this.popState(), c.yytext = c.yytext.slice(0, -8).trim(), 25;
1051
+ return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 25;
1052
1052
  case 41:
1053
- return this.popState(), c.yytext = c.yytext.slice(0, -8).trim(), 26;
1053
+ return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 26;
1054
1054
  case 42:
1055
- return this.popState(), c.yytext = c.yytext.slice(0, -10).trim(), 27;
1055
+ return this.popState(), l.yytext = l.yytext.slice(0, -10).trim(), 27;
1056
1056
  case 43:
1057
1057
  return 51;
1058
1058
  case 44:
@@ -1104,9 +1104,9 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
1104
1104
  case 65:
1105
1105
  return k() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1106
1106
  case 66:
1107
- return this.popState(), c.yytext = c.yytext.substr(2).trim(), 31;
1107
+ return this.popState(), l.yytext = l.yytext.substr(2).trim(), 31;
1108
1108
  case 67:
1109
- return this.popState(), c.yytext = c.yytext.slice(0, -8).trim(), 31;
1109
+ return this.popState(), l.yytext = l.yytext.slice(0, -8).trim(), 31;
1110
1110
  case 68:
1111
1111
  return 6;
1112
1112
  case 69:
@@ -1118,7 +1118,7 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
1118
1118
  case 72:
1119
1119
  return k() ? 24 : void 0;
1120
1120
  case 73:
1121
- return c.yytext = c.yytext.trim(), 14;
1121
+ return l.yytext = l.yytext.trim(), 14;
1122
1122
  case 74:
1123
1123
  return 15;
1124
1124
  case 75:
@@ -1410,138 +1410,134 @@ Expecting ` + pt.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Par
1410
1410
  }
1411
1411
  }
1412
1412
  };
1413
- }();
1413
+ })();
1414
1414
  function lt() {
1415
1415
  this.yy = {};
1416
1416
  }
1417
- return d(lt, "Parser"), lt.prototype = mt, mt.Parser = lt, new lt();
1418
- }();
1417
+ return h(lt, "Parser"), lt.prototype = mt, mt.Parser = lt, new lt();
1418
+ })();
1419
1419
  Dt.parser = Dt;
1420
- var Oe = Dt, ue = "TB", Ft = "TB", At = "dir", Z = "state", q = "root", xt = "relation", pe = "classDef", ye = "style", fe = "applyClass", et = "default", Pt = "divider", Gt = "fill:none", Wt = "fill: #333", jt = "c", zt = "markdown", Ut = "normal", Tt = "rect", Et = "rectWithTitle", ge = "stateStart", me = "stateEnd", Nt = "divider", Ot = "roundedWithTitle", Se = "note", _e = "noteGroup", st = "statediagram", ke = `${st}-state`, Mt = "transition", be = "note", Te = `${Mt} note-edge`, Ee = `${st}-${be}`, De = `${st}-cluster`, xe = `${st}-cluster-alt`, Kt = "parent", Ht = "note", $e = "state", $t = "----", Ce = `${$t}${Ht}`, wt = `${$t}${Kt}`, Xt = /* @__PURE__ */ d((t, e = Ft) => {
1420
+ var Oe = Dt, ue = "TB", Ft = "TB", At = "dir", J = "state", X = "root", xt = "relation", pe = "classDef", ye = "style", fe = "applyClass", Z = "default", Pt = "divider", Gt = "fill:none", Wt = "fill: #333", jt = "c", zt = "markdown", Ut = "normal", Tt = "rect", Et = "rectWithTitle", ge = "stateStart", me = "stateEnd", Nt = "divider", Ot = "roundedWithTitle", Se = "note", _e = "noteGroup", Q = "statediagram", ke = `${Q}-state`, Mt = "transition", be = "note", Te = `${Mt} note-edge`, Ee = `${Q}-${be}`, De = `${Q}-cluster`, xe = `${Q}-cluster-alt`, Kt = "parent", Ht = "note", $e = "state", $t = "----", Ce = `${$t}${Ht}`, wt = `${$t}${Kt}`, Xt = /* @__PURE__ */ h((t, e = Ft) => {
1421
1421
  if (!t.doc) return e;
1422
1422
  let s = e;
1423
- for (let a of t.doc) a.stmt === "dir" && (s = a.value);
1423
+ for (let o of t.doc) o.stmt === "dir" && (s = o.value);
1424
1424
  return s;
1425
1425
  }, "getDir"), we = {
1426
- getClasses: /* @__PURE__ */ d(function(t, e) {
1426
+ getClasses: /* @__PURE__ */ h(function(t, e) {
1427
1427
  return e.db.getClasses();
1428
1428
  }, "getClasses"),
1429
- draw: /* @__PURE__ */ d(async function(t, e, s, a) {
1429
+ draw: /* @__PURE__ */ h(async function(t, e, s, o) {
1430
1430
  b.info("REF0:"), b.info("Drawing state diagram (v2)", e);
1431
- let { securityLevel: r, state: n, layout: h } = w();
1432
- a.db.extract(a.db.getRootDocV2());
1433
- let y = a.db.getData(), p = he(e, r);
1434
- y.type = a.type, y.layoutAlgorithm = h, y.nodeSpacing = (n == null ? void 0 : n.nodeSpacing) || 50, y.rankSpacing = (n == null ? void 0 : n.rankSpacing) || 50, w().look === "neo" ? y.markers = ["barbNeo"] : y.markers = ["barb"], y.diagramId = e, await te(y, p);
1431
+ let { securityLevel: r, state: d, layout: c } = N();
1432
+ o.db.extract(o.db.getRootDocV2());
1433
+ let f = o.db.getData(), p = he(e, r);
1434
+ f.type = o.type, f.layoutAlgorithm = c, f.nodeSpacing = d?.nodeSpacing || 50, f.rankSpacing = d?.rankSpacing || 50, N().look === "neo" ? f.markers = ["barbNeo"] : f.markers = ["barb"], f.diagramId = e, await te(f, p);
1435
1435
  try {
1436
- (typeof a.db.getLinks == "function" ? a.db.getLinks() : /* @__PURE__ */ new Map()).forEach((_, g) => {
1437
- var u;
1438
- let D = typeof g == "string" ? g : typeof (g == null ? void 0 : g.id) == "string" ? g.id : "";
1436
+ (typeof o.db.getLinks == "function" ? o.db.getLinks() : /* @__PURE__ */ new Map()).forEach((S, _) => {
1437
+ let D = typeof _ == "string" ? _ : typeof _?.id == "string" ? _.id : "";
1439
1438
  if (!D) {
1440
- b.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(g));
1439
+ b.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(_));
1441
1440
  return;
1442
1441
  }
1443
- let L = (u = p.node()) == null ? void 0 : u.querySelectorAll("g"), $;
1444
- if (L == null || L.forEach((E) => {
1445
- var I;
1446
- ((I = E.textContent) == null ? void 0 : I.trim()) === D && ($ = E);
1447
- }), !$) {
1442
+ let O = p.node()?.querySelectorAll("g"), x;
1443
+ if (O?.forEach((v) => {
1444
+ v.textContent?.trim() === D && (x = v);
1445
+ }), !x) {
1448
1446
  b.warn("⚠️ Could not find node matching text:", D);
1449
1447
  return;
1450
1448
  }
1451
- let R = $.parentNode;
1452
- if (!R) {
1449
+ let u = x.parentNode;
1450
+ if (!u) {
1453
1451
  b.warn("⚠️ Node has no parent, cannot wrap:", D);
1454
1452
  return;
1455
1453
  }
1456
- let C = document.createElementNS("http://www.w3.org/2000/svg", "a"), O = _.url.replace(/^"+|"+$/g, "");
1457
- if (C.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", O), C.setAttribute("target", "_blank"), _.tooltip) {
1458
- let E = _.tooltip.replace(/^"+|"+$/g, "");
1459
- C.setAttribute("title", E);
1454
+ let E = document.createElementNS("http://www.w3.org/2000/svg", "a"), A = S.url.replace(/^"+|"+$/g, "");
1455
+ if (E.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", A), E.setAttribute("target", "_blank"), S.tooltip) {
1456
+ let v = S.tooltip.replace(/^"+|"+$/g, "");
1457
+ E.setAttribute("title", v);
1460
1458
  }
1461
- R.replaceChild(C, $), C.appendChild($), b.info("🔗 Wrapped node in <a> tag for:", D, _.url);
1459
+ u.replaceChild(E, x), E.appendChild(x), b.info("🔗 Wrapped node in <a> tag for:", D, S.url);
1462
1460
  });
1463
- } catch (_) {
1464
- b.error("❌ Error injecting clickable links:", _);
1461
+ } catch (S) {
1462
+ b.error("❌ Error injecting clickable links:", S);
1465
1463
  }
1466
- ee.insertTitle(p, "statediagramTitleText", (n == null ? void 0 : n.titleTopMargin) ?? 25, a.db.getDiagramTitle()), de(p, 8, st, (n == null ? void 0 : n.useMaxWidth) ?? !0);
1464
+ ee.insertTitle(p, "statediagramTitleText", d?.titleTopMargin ?? 25, o.db.getDiagramTitle()), de(p, 8, Q, d?.useMaxWidth ?? !0);
1467
1465
  }, "draw"),
1468
1466
  getDir: Xt
1469
- }, ft = /* @__PURE__ */ new Map(), P = 0;
1470
- function gt(t = "", e = 0, s = "", a = $t) {
1471
- return `${$e}-${t}${s !== null && s.length > 0 ? `${a}${s}` : ""}-${e}`;
1467
+ }, ft = /* @__PURE__ */ new Map(), Y = 0;
1468
+ function gt(t = "", e = 0, s = "", o = $t) {
1469
+ return `${$e}-${t}${s !== null && s.length > 0 ? `${o}${s}` : ""}-${e}`;
1472
1470
  }
1473
- d(gt, "stateDomId");
1474
- var ve = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1471
+ h(gt, "stateDomId");
1472
+ var ve = /* @__PURE__ */ h((t, e, s, o, r, d, c, f) => {
1475
1473
  b.trace("items", e), e.forEach((p) => {
1476
1474
  switch (p.stmt) {
1477
- case Z:
1478
- tt(t, p, s, a, r, n, h, y);
1475
+ case J:
1476
+ q(t, p, s, o, r, d, c, f);
1479
1477
  break;
1480
- case et:
1481
- tt(t, p, s, a, r, n, h, y);
1478
+ case Z:
1479
+ q(t, p, s, o, r, d, c, f);
1482
1480
  break;
1483
1481
  case xt:
1484
1482
  {
1485
- tt(t, p.state1, s, a, r, n, h, y), tt(t, p.state2, s, a, r, n, h, y);
1486
- let _ = h === "neo", g = {
1487
- id: "edge" + P,
1483
+ q(t, p.state1, s, o, r, d, c, f), q(t, p.state2, s, o, r, d, c, f);
1484
+ let S = c === "neo", _ = {
1485
+ id: "edge" + Y,
1488
1486
  start: p.state1.id,
1489
1487
  end: p.state2.id,
1490
1488
  arrowhead: "normal",
1491
- arrowTypeEnd: _ ? "arrow_barb_neo" : "arrow_barb",
1489
+ arrowTypeEnd: S ? "arrow_barb_neo" : "arrow_barb",
1492
1490
  style: Gt,
1493
1491
  labelStyle: "",
1494
- label: K.sanitizeText(p.description ?? "", w()),
1492
+ label: z.sanitizeText(p.description ?? "", N()),
1495
1493
  arrowheadStyle: Wt,
1496
1494
  labelpos: jt,
1497
1495
  labelType: zt,
1498
1496
  thickness: Ut,
1499
1497
  classes: Mt,
1500
- look: h
1498
+ look: c
1501
1499
  };
1502
- r.push(g), P++;
1500
+ r.push(_), Y++;
1503
1501
  }
1504
1502
  break;
1505
1503
  }
1506
1504
  });
1507
- }, "setupDoc"), Rt = /* @__PURE__ */ d((t, e = Ft) => {
1505
+ }, "setupDoc"), Rt = /* @__PURE__ */ h((t, e = Ft) => {
1508
1506
  let s = e;
1509
- if (t.doc) for (let a of t.doc) a.stmt === "dir" && (s = a.value);
1507
+ if (t.doc) for (let o of t.doc) o.stmt === "dir" && (s = o.value);
1510
1508
  return s;
1511
1509
  }, "getDir");
1512
- function Q(t, e, s) {
1510
+ function V(t, e, s) {
1513
1511
  if (!e.id || e.id === "</join></fork>" || e.id === "</choice>") return;
1514
1512
  e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((r) => {
1515
- let n = s.get(r);
1516
- n && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...n.styles]);
1513
+ let d = s.get(r);
1514
+ d && (e.cssCompiledStyles = [...e.cssCompiledStyles ?? [], ...d.styles]);
1517
1515
  }));
1518
- let a = t.find((r) => r.id === e.id);
1519
- a ? Object.assign(a, e) : t.push(e);
1516
+ let o = t.find((r) => r.id === e.id);
1517
+ o ? Object.assign(o, e) : t.push(e);
1520
1518
  }
1521
- d(Q, "insertOrUpdateNode");
1519
+ h(V, "insertOrUpdateNode");
1522
1520
  function Jt(t) {
1523
- var e;
1524
- return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
1521
+ return t?.classes?.join(" ") ?? "";
1525
1522
  }
1526
- d(Jt, "getClassesFromDbInfo");
1523
+ h(Jt, "getClassesFromDbInfo");
1527
1524
  function Vt(t) {
1528
- return (t == null ? void 0 : t.styles) ?? [];
1525
+ return t?.styles ?? [];
1529
1526
  }
1530
- d(Vt, "getStylesFromDbInfo");
1531
- var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1532
- var $, R, C;
1533
- let p = e.id, _ = s.get(p), g = Jt(_), D = Vt(_), L = w();
1534
- if (b.info("dataFetcher parsedItem", e, _, D), p !== "root") {
1535
- let O = Tt;
1536
- e.start === !0 ? O = ge : e.start === !1 && (O = me), e.type !== et && (O = e.type), ft.get(p) || ft.set(p, {
1527
+ h(Vt, "getStylesFromDbInfo");
1528
+ var q = /* @__PURE__ */ h((t, e, s, o, r, d, c, f) => {
1529
+ let p = e.id, S = s.get(p), _ = Jt(S), D = Vt(S), O = N();
1530
+ if (b.info("dataFetcher parsedItem", e, S, D), p !== "root") {
1531
+ let x = Tt;
1532
+ e.start === !0 ? x = ge : e.start === !1 && (x = me), e.type !== Z && (x = e.type), ft.get(p) || ft.set(p, {
1537
1533
  id: p,
1538
- shape: O,
1539
- description: K.sanitizeText(p, L),
1540
- cssClasses: `${g} ${ke}`,
1534
+ shape: x,
1535
+ description: z.sanitizeText(p, O),
1536
+ cssClasses: `${_} ${ke}`,
1541
1537
  cssStyles: D
1542
1538
  });
1543
1539
  let u = ft.get(p);
1544
- e.description && (Array.isArray(u.description) ? (u.shape = Et, u.description.push(e.description)) : ($ = u.description) != null && $.length && u.description.length > 0 ? (u.shape = Et, u.description === p ? u.description = [e.description] : u.description = [u.description, e.description]) : (u.shape = Tt, u.description = e.description), u.description = K.sanitizeTextOrArray(u.description, L)), ((R = u.description) == null ? void 0 : R.length) === 1 && u.shape === Et && (u.type === "group" ? u.shape = Ot : u.shape = Tt), !u.type && e.doc && (b.info("Setting cluster for XCX", p, Rt(e)), u.type = "group", u.isGroup = !0, u.dir = Rt(e), u.shape = e.type === Pt ? Nt : Ot, u.cssClasses = `${u.cssClasses} ${De} ${n ? xe : ""}`);
1540
+ e.description && (Array.isArray(u.description) ? (u.shape = Et, u.description.push(e.description)) : u.description?.length && u.description.length > 0 ? (u.shape = Et, u.description === p ? u.description = [e.description] : u.description = [u.description, e.description]) : (u.shape = Tt, u.description = e.description), u.description = z.sanitizeTextOrArray(u.description, O)), u.description?.length === 1 && u.shape === Et && (u.type === "group" ? u.shape = Ot : u.shape = Tt), !u.type && e.doc && (b.info("Setting cluster for XCX", p, Rt(e)), u.type = "group", u.isGroup = !0, u.dir = Rt(e), u.shape = e.type === Pt ? Nt : Ot, u.cssClasses = `${u.cssClasses} ${De} ${d ? xe : ""}`);
1545
1541
  let E = {
1546
1542
  labelStyle: "",
1547
1543
  shape: u.shape,
@@ -1551,17 +1547,17 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1551
1547
  cssStyles: u.cssStyles,
1552
1548
  id: p,
1553
1549
  dir: u.dir,
1554
- domId: gt(p, P),
1550
+ domId: gt(p, Y),
1555
1551
  type: u.type,
1556
1552
  isGroup: u.type === "group",
1557
1553
  padding: 8,
1558
1554
  rx: 10,
1559
1555
  ry: 10,
1560
- look: h,
1556
+ look: c,
1561
1557
  labelType: "markdown"
1562
1558
  };
1563
1559
  if (E.shape === Nt && (E.label = ""), t && t.id !== "root" && (b.trace("Setting node ", p, " to be child of its parent ", t.id), E.parentId = t.id), E.centerLabel = !0, e.note) {
1564
- let I = {
1560
+ let A = {
1565
1561
  labelStyle: "",
1566
1562
  shape: Se,
1567
1563
  label: e.note.text,
@@ -1569,33 +1565,33 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1569
1565
  cssClasses: Ee,
1570
1566
  cssStyles: [],
1571
1567
  cssCompiledStyles: [],
1572
- id: p + Ce + "-" + P,
1573
- domId: gt(p, P, Ht),
1568
+ id: p + Ce + "-" + Y,
1569
+ domId: gt(p, Y, Ht),
1574
1570
  type: u.type,
1575
1571
  isGroup: u.type === "group",
1576
- padding: (C = L.flowchart) == null ? void 0 : C.padding,
1577
- look: h,
1572
+ padding: O.flowchart?.padding,
1573
+ look: c,
1578
1574
  position: e.note.position
1579
- }, G = p + wt, W = {
1575
+ }, v = p + wt, F = {
1580
1576
  labelStyle: "",
1581
1577
  shape: _e,
1582
1578
  label: e.note.text,
1583
1579
  cssClasses: u.cssClasses,
1584
1580
  cssStyles: [],
1585
1581
  id: p + wt,
1586
- domId: gt(p, P, Kt),
1582
+ domId: gt(p, Y, Kt),
1587
1583
  type: "group",
1588
1584
  isGroup: !0,
1589
1585
  padding: 16,
1590
- look: h,
1586
+ look: c,
1591
1587
  position: e.note.position
1592
1588
  };
1593
- P++, W.id = G, I.parentId = G, Q(a, W, y), Q(a, I, y), Q(a, E, y);
1594
- let Y = p, F = I.id;
1595
- e.note.position === "left of" && (Y = I.id, F = p), r.push({
1596
- id: Y + "-" + F,
1597
- start: Y,
1598
- end: F,
1589
+ Y++, F.id = v, A.parentId = v, V(o, F, f), V(o, A, f), V(o, E, f);
1590
+ let R = p, B = A.id;
1591
+ e.note.position === "left of" && (R = A.id, B = p), r.push({
1592
+ id: R + "-" + B,
1593
+ start: R,
1594
+ end: B,
1599
1595
  arrowhead: "none",
1600
1596
  arrowTypeEnd: "",
1601
1597
  style: Gt,
@@ -1605,14 +1601,14 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1605
1601
  labelpos: jt,
1606
1602
  labelType: zt,
1607
1603
  thickness: Ut,
1608
- look: h
1604
+ look: c
1609
1605
  });
1610
- } else Q(a, E, y);
1606
+ } else V(o, E, f);
1611
1607
  }
1612
- e.doc && (b.trace("Adding nodes children "), ve(e, e.doc, s, a, r, !n, h, y));
1613
- }, "dataFetcher"), Le = /* @__PURE__ */ d(() => {
1614
- ft.clear(), P = 0;
1615
- }, "reset"), x = {
1608
+ e.doc && (b.trace("Adding nodes children "), ve(e, e.doc, s, o, r, !d, c, f));
1609
+ }, "dataFetcher"), Le = /* @__PURE__ */ h(() => {
1610
+ ft.clear(), Y = 0;
1611
+ }, "reset"), $ = {
1616
1612
  START_NODE: "[*]",
1617
1613
  START_TYPE: "start",
1618
1614
  END_NODE: "[*]",
@@ -1621,18 +1617,18 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1621
1617
  FILL_KEYWORD: "fill",
1622
1618
  BG_FILL: "bgFill",
1623
1619
  STYLECLASS_SEP: ","
1624
- }, Bt = /* @__PURE__ */ d(() => /* @__PURE__ */ new Map(), "newClassesList"), Yt = /* @__PURE__ */ d(() => ({
1620
+ }, Bt = /* @__PURE__ */ h(() => /* @__PURE__ */ new Map(), "newClassesList"), Yt = /* @__PURE__ */ h(() => ({
1625
1621
  relations: [],
1626
1622
  states: /* @__PURE__ */ new Map(),
1627
1623
  documents: {}
1628
- }), "newDoc"), yt = /* @__PURE__ */ d((t) => JSON.parse(JSON.stringify(t)), "clone"), H, Re = (H = class {
1624
+ }), "newDoc"), yt = /* @__PURE__ */ h((t) => JSON.parse(JSON.stringify(t)), "clone"), U, Re = (U = class {
1629
1625
  constructor(e) {
1630
1626
  this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = Bt(), this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = se, this.setAccTitle = ie, this.getAccDescription = re, this.setAccDescription = ae, this.setDiagramTitle = oe, this.getDiagramTitle = ne, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1631
1627
  }
1632
1628
  extract(e) {
1633
1629
  this.clear(!0);
1634
1630
  for (let r of Array.isArray(e) ? e : e.doc) switch (r.stmt) {
1635
- case Z:
1631
+ case J:
1636
1632
  this.addState(r.id.trim(), r.type, r.doc, r.description, r.note);
1637
1633
  break;
1638
1634
  case xt:
@@ -1651,89 +1647,86 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1651
1647
  this.addLink(r.id, r.url, r.tooltip);
1652
1648
  break;
1653
1649
  }
1654
- let s = this.getStates(), a = w();
1655
- Le(), tt(void 0, this.getRootDocV2(), s, this.nodes, this.edges, !0, a.look, this.classes);
1650
+ let s = this.getStates(), o = N();
1651
+ Le(), q(void 0, this.getRootDocV2(), s, this.nodes, this.edges, !0, o.look, this.classes);
1656
1652
  for (let r of this.nodes) if (Array.isArray(r.label)) {
1657
1653
  if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);
1658
1654
  r.label = r.label[0];
1659
1655
  }
1660
1656
  }
1661
1657
  handleStyleDef(e) {
1662
- let s = e.id.trim().split(","), a = e.styleClass.split(",");
1658
+ let s = e.id.trim().split(","), o = e.styleClass.split(",");
1663
1659
  for (let r of s) {
1664
- let n = this.getState(r);
1665
- if (!n) {
1666
- let h = r.trim();
1667
- this.addState(h), n = this.getState(h);
1660
+ let d = this.getState(r);
1661
+ if (!d) {
1662
+ let c = r.trim();
1663
+ this.addState(c), d = this.getState(c);
1668
1664
  }
1669
- n && (n.styles = a.map((h) => {
1670
- var y;
1671
- return (y = h.replace(/;/g, "")) == null ? void 0 : y.trim();
1672
- }));
1665
+ d && (d.styles = o.map((c) => c.replace(/;/g, "")?.trim()));
1673
1666
  }
1674
1667
  }
1675
1668
  setRootDoc(e) {
1676
1669
  b.info("Setting root doc", e), this.rootDoc = e, this.version === 1 ? this.extract(e) : this.extract(this.getRootDocV2());
1677
1670
  }
1678
- docTranslator(e, s, a) {
1671
+ docTranslator(e, s, o) {
1679
1672
  if (s.stmt === xt) {
1680
1673
  this.docTranslator(e, s.state1, !0), this.docTranslator(e, s.state2, !1);
1681
1674
  return;
1682
1675
  }
1683
- if (s.stmt === Z && (s.id === x.START_NODE ? (s.id = e.id + (a ? "_start" : "_end"), s.start = a) : s.id = s.id.trim()), s.stmt !== q && s.stmt !== Z || !s.doc) return;
1684
- let r = [], n = [];
1685
- for (let h of s.doc) if (h.type === Pt) {
1686
- let y = yt(h);
1687
- y.doc = yt(n), r.push(y), n = [];
1688
- } else n.push(h);
1689
- if (r.length > 0 && n.length > 0) {
1690
- let h = {
1691
- stmt: Z,
1676
+ if (s.stmt === J && (s.id === $.START_NODE ? (s.id = e.id + (o ? "_start" : "_end"), s.start = o) : s.id = s.id.trim()), s.stmt !== X && s.stmt !== J || !s.doc) return;
1677
+ let r = [], d = [];
1678
+ for (let c of s.doc) if (c.type === Pt) {
1679
+ let f = yt(c);
1680
+ f.doc = yt(d), r.push(f), d = [];
1681
+ } else d.push(c);
1682
+ if (r.length > 0 && d.length > 0) {
1683
+ let c = {
1684
+ stmt: J,
1692
1685
  id: le(),
1693
1686
  type: "divider",
1694
- doc: yt(n)
1687
+ doc: yt(d)
1695
1688
  };
1696
- r.push(yt(h)), s.doc = r;
1689
+ r.push(yt(c)), s.doc = r;
1697
1690
  }
1698
- s.doc.forEach((h) => this.docTranslator(s, h, !0));
1691
+ s.doc.forEach((c) => this.docTranslator(s, c, !0));
1699
1692
  }
1700
1693
  getRootDocV2() {
1701
1694
  return this.docTranslator({
1702
- id: q,
1703
- stmt: q
1695
+ id: X,
1696
+ stmt: X
1704
1697
  }, {
1705
- id: q,
1706
- stmt: q,
1698
+ id: X,
1699
+ stmt: X,
1707
1700
  doc: this.rootDoc
1708
1701
  }, !0), {
1709
- id: q,
1702
+ id: X,
1710
1703
  doc: this.rootDoc
1711
1704
  };
1712
1705
  }
1713
- addState(e, s = et, a = void 0, r = void 0, n = void 0, h = void 0, y = void 0, p = void 0) {
1714
- let _ = e == null ? void 0 : e.trim();
1715
- if (!this.currentDocument.states.has(_)) b.info("Adding state ", _, r), this.currentDocument.states.set(_, {
1716
- stmt: Z,
1717
- id: _,
1706
+ addState(e, s = Z, o = void 0, r = void 0, d = void 0, c = void 0, f = void 0, p = void 0) {
1707
+ let S = e?.trim();
1708
+ if (!this.currentDocument.states.has(S)) b.info("Adding state ", S, r), this.currentDocument.states.set(S, {
1709
+ stmt: J,
1710
+ id: S,
1718
1711
  descriptions: [],
1719
1712
  type: s,
1720
- doc: a,
1721
- note: n,
1713
+ doc: o,
1714
+ note: d,
1722
1715
  classes: [],
1723
1716
  styles: [],
1724
1717
  textStyles: []
1725
1718
  });
1726
1719
  else {
1727
- let g = this.currentDocument.states.get(_);
1728
- if (!g) throw Error(`State not found: ${_}`);
1729
- g.doc || (g.doc = a), g.type || (g.type = s);
1720
+ let _ = this.currentDocument.states.get(S);
1721
+ if (!_) throw Error(`State not found: ${S}`);
1722
+ _.doc ||= o, _.type ||= s;
1730
1723
  }
1731
- if (r && (b.info("Setting state description", _, r), (Array.isArray(r) ? r : [r]).forEach((g) => this.addDescription(_, g.trim()))), n) {
1732
- let g = this.currentDocument.states.get(_);
1733
- if (!g) throw Error(`State not found: ${_}`);
1734
- g.note = n, g.note.text = K.sanitizeText(g.note.text, w());
1724
+ if (r && (b.info("Setting state description", S, r), (Array.isArray(r) ? r : [r]).forEach((_) => this.addDescription(S, _.trim()))), d) {
1725
+ let _ = this.currentDocument.states.get(S);
1726
+ if (!_) throw Error(`State not found: ${S}`);
1727
+ _.note = d, _.note.text = z.sanitizeText(_.note.text, N());
1735
1728
  }
1736
- h && (b.info("Setting state classes", _, h), (Array.isArray(h) ? h : [h]).forEach((g) => this.setCssClass(_, g.trim()))), y && (b.info("Setting state styles", _, y), (Array.isArray(y) ? y : [y]).forEach((g) => this.setStyle(_, g.trim()))), p && (b.info("Setting state styles", _, y), (Array.isArray(p) ? p : [p]).forEach((g) => this.setTextStyle(_, g.trim())));
1729
+ c && (b.info("Setting state classes", S, c), (Array.isArray(c) ? c : [c]).forEach((_) => this.setCssClass(S, _.trim()))), f && (b.info("Setting state styles", S, f), (Array.isArray(f) ? f : [f]).forEach((_) => this.setStyle(S, _.trim()))), p && (b.info("Setting state styles", S, f), (Array.isArray(p) ? p : [p]).forEach((_) => this.setTextStyle(S, _.trim())));
1737
1730
  }
1738
1731
  clear(e) {
1739
1732
  this.nodes = [], this.edges = [], this.documents = { root: Yt() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Bt(), e || (this.links = /* @__PURE__ */ new Map(), ce());
@@ -1750,50 +1743,49 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1750
1743
  getRelations() {
1751
1744
  return this.currentDocument.relations;
1752
1745
  }
1753
- addLink(e, s, a) {
1746
+ addLink(e, s, o) {
1754
1747
  this.links.set(e, {
1755
1748
  url: s,
1756
- tooltip: a
1757
- }), b.warn("Adding link", e, s, a);
1749
+ tooltip: o
1750
+ }), b.warn("Adding link", e, s, o);
1758
1751
  }
1759
1752
  getLinks() {
1760
1753
  return this.links;
1761
1754
  }
1762
1755
  startIdIfNeeded(e = "") {
1763
- return e === x.START_NODE ? (this.startEndCount++, `${x.START_TYPE}${this.startEndCount}`) : e;
1756
+ return e === $.START_NODE ? (this.startEndCount++, `${$.START_TYPE}${this.startEndCount}`) : e;
1764
1757
  }
1765
- startTypeIfNeeded(e = "", s = et) {
1766
- return e === x.START_NODE ? x.START_TYPE : s;
1758
+ startTypeIfNeeded(e = "", s = Z) {
1759
+ return e === $.START_NODE ? $.START_TYPE : s;
1767
1760
  }
1768
1761
  endIdIfNeeded(e = "") {
1769
- return e === x.END_NODE ? (this.startEndCount++, `${x.END_TYPE}${this.startEndCount}`) : e;
1762
+ return e === $.END_NODE ? (this.startEndCount++, `${$.END_TYPE}${this.startEndCount}`) : e;
1770
1763
  }
1771
- endTypeIfNeeded(e = "", s = et) {
1772
- return e === x.END_NODE ? x.END_TYPE : s;
1764
+ endTypeIfNeeded(e = "", s = Z) {
1765
+ return e === $.END_NODE ? $.END_TYPE : s;
1773
1766
  }
1774
- addRelationObjs(e, s, a = "") {
1775
- let r = this.startIdIfNeeded(e.id.trim()), n = this.startTypeIfNeeded(e.id.trim(), e.type), h = this.startIdIfNeeded(s.id.trim()), y = this.startTypeIfNeeded(s.id.trim(), s.type);
1776
- this.addState(r, n, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(h, y, s.doc, s.description, s.note, s.classes, s.styles, s.textStyles), this.currentDocument.relations.push({
1767
+ addRelationObjs(e, s, o = "") {
1768
+ let r = this.startIdIfNeeded(e.id.trim()), d = this.startTypeIfNeeded(e.id.trim(), e.type), c = this.startIdIfNeeded(s.id.trim()), f = this.startTypeIfNeeded(s.id.trim(), s.type);
1769
+ this.addState(r, d, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(c, f, s.doc, s.description, s.note, s.classes, s.styles, s.textStyles), this.currentDocument.relations.push({
1777
1770
  id1: r,
1778
- id2: h,
1779
- relationTitle: K.sanitizeText(a, w())
1771
+ id2: c,
1772
+ relationTitle: z.sanitizeText(o, N())
1780
1773
  });
1781
1774
  }
1782
- addRelation(e, s, a) {
1783
- if (typeof e == "object" && typeof s == "object") this.addRelationObjs(e, s, a);
1775
+ addRelation(e, s, o) {
1776
+ if (typeof e == "object" && typeof s == "object") this.addRelationObjs(e, s, o);
1784
1777
  else if (typeof e == "string" && typeof s == "string") {
1785
- let r = this.startIdIfNeeded(e.trim()), n = this.startTypeIfNeeded(e), h = this.endIdIfNeeded(s.trim()), y = this.endTypeIfNeeded(s);
1786
- this.addState(r, n), this.addState(h, y), this.currentDocument.relations.push({
1778
+ let r = this.startIdIfNeeded(e.trim()), d = this.startTypeIfNeeded(e), c = this.endIdIfNeeded(s.trim()), f = this.endTypeIfNeeded(s);
1779
+ this.addState(r, d), this.addState(c, f), this.currentDocument.relations.push({
1787
1780
  id1: r,
1788
- id2: h,
1789
- relationTitle: a ? K.sanitizeText(a, w()) : void 0
1781
+ id2: c,
1782
+ relationTitle: o ? z.sanitizeText(o, N()) : void 0
1790
1783
  });
1791
1784
  }
1792
1785
  }
1793
1786
  addDescription(e, s) {
1794
- var n;
1795
- let a = this.currentDocument.states.get(e), r = s.startsWith(":") ? s.replace(":", "").trim() : s;
1796
- (n = a == null ? void 0 : a.descriptions) == null || n.push(K.sanitizeText(r, w()));
1787
+ let o = this.currentDocument.states.get(e), r = s.startsWith(":") ? s.replace(":", "").trim() : s;
1788
+ o?.descriptions?.push(z.sanitizeText(r, N()));
1797
1789
  }
1798
1790
  cleanupLabel(e) {
1799
1791
  return e.startsWith(":") ? e.slice(2).trim() : e.trim();
@@ -1807,44 +1799,40 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1807
1799
  styles: [],
1808
1800
  textStyles: []
1809
1801
  });
1810
- let a = this.classes.get(e);
1811
- s && a && s.split(x.STYLECLASS_SEP).forEach((r) => {
1812
- let n = r.replace(/([^;]*);/, "$1").trim();
1813
- if (RegExp(x.COLOR_KEYWORD).exec(r)) {
1814
- let h = n.replace(x.FILL_KEYWORD, x.BG_FILL).replace(x.COLOR_KEYWORD, x.FILL_KEYWORD);
1815
- a.textStyles.push(h);
1802
+ let o = this.classes.get(e);
1803
+ s && o && s.split($.STYLECLASS_SEP).forEach((r) => {
1804
+ let d = r.replace(/([^;]*);/, "$1").trim();
1805
+ if (RegExp($.COLOR_KEYWORD).exec(r)) {
1806
+ let c = d.replace($.FILL_KEYWORD, $.BG_FILL).replace($.COLOR_KEYWORD, $.FILL_KEYWORD);
1807
+ o.textStyles.push(c);
1816
1808
  }
1817
- a.styles.push(n);
1809
+ o.styles.push(d);
1818
1810
  });
1819
1811
  }
1820
1812
  getClasses() {
1821
1813
  return this.classes;
1822
1814
  }
1823
1815
  setCssClass(e, s) {
1824
- e.split(",").forEach((a) => {
1825
- var n;
1826
- let r = this.getState(a);
1816
+ e.split(",").forEach((o) => {
1817
+ let r = this.getState(o);
1827
1818
  if (!r) {
1828
- let h = a.trim();
1829
- this.addState(h), r = this.getState(h);
1819
+ let d = o.trim();
1820
+ this.addState(d), r = this.getState(d);
1830
1821
  }
1831
- (n = r == null ? void 0 : r.classes) == null || n.push(s);
1822
+ r?.classes?.push(s);
1832
1823
  });
1833
1824
  }
1834
1825
  setStyle(e, s) {
1835
- var a, r;
1836
- (r = (a = this.getState(e)) == null ? void 0 : a.styles) == null || r.push(s);
1826
+ this.getState(e)?.styles?.push(s);
1837
1827
  }
1838
1828
  setTextStyle(e, s) {
1839
- var a, r;
1840
- (r = (a = this.getState(e)) == null ? void 0 : a.textStyles) == null || r.push(s);
1829
+ this.getState(e)?.textStyles?.push(s);
1841
1830
  }
1842
1831
  getDirectionStatement() {
1843
1832
  return this.rootDoc.find((e) => e.stmt === At);
1844
1833
  }
1845
1834
  getDirection() {
1846
- var e;
1847
- return ((e = this.getDirectionStatement()) == null ? void 0 : e.value) ?? ue;
1835
+ return this.getDirectionStatement()?.value ?? ue;
1848
1836
  }
1849
1837
  setDirection(e) {
1850
1838
  let s = this.getDirectionStatement();
@@ -1857,7 +1845,7 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1857
1845
  return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1858
1846
  }
1859
1847
  getData() {
1860
- let e = w();
1848
+ let e = N();
1861
1849
  return {
1862
1850
  nodes: this.nodes,
1863
1851
  edges: this.edges,
@@ -1867,14 +1855,14 @@ var tt = /* @__PURE__ */ d((t, e, s, a, r, n, h, y) => {
1867
1855
  };
1868
1856
  }
1869
1857
  getConfig() {
1870
- return w().state;
1858
+ return N().state;
1871
1859
  }
1872
- }, d(H, "StateDB"), H.relationType = {
1860
+ }, h(U, "StateDB"), U.relationType = {
1873
1861
  AGGREGATION: 0,
1874
1862
  EXTENSION: 1,
1875
1863
  COMPOSITION: 2,
1876
1864
  DEPENDENCY: 3
1877
- }, H), Be = /* @__PURE__ */ d((t) => `
1865
+ }, U), Be = /* @__PURE__ */ h((t) => `
1878
1866
  defs [id$="-barbEnd"] {
1879
1867
  fill: ${t.transitionColor};
1880
1868
  stroke: ${t.transitionColor};