@ashwin_droid/notion-stream 1.0.0 → 1.0.2

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 (154) hide show
  1. package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
  2. package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
  3. package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
  4. package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
  6. package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
  7. package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
  9. package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
  10. package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
  11. package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
  13. package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
  14. package/dist/channel-Dw8BXC8D.js +1 -0
  15. package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
  16. package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
  17. package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
  18. package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
  19. package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
  20. package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
  21. package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
  22. package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
  23. package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
  24. package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
  25. package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
  26. package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
  27. package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
  28. package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
  29. package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
  30. package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
  35. package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
  36. package/dist/clone-HVsPHeK3.js +1 -0
  37. package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
  39. package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
  40. package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
  41. package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
  42. package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
  43. package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
  44. package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
  45. package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
  46. package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
  47. package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
  48. package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
  49. package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
  50. package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
  51. package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
  52. package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
  53. package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
  54. package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
  55. package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
  56. package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
  57. package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
  58. package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
  59. package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
  60. package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
  61. package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
  62. package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
  63. package/dist/index-BwYOYPeK.js +670 -0
  64. package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +1 -1
  67. package/dist/index.mjs +3 -3
  68. package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
  69. package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
  70. package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
  71. package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
  72. package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
  73. package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
  74. package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
  75. package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
  76. package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
  77. package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
  78. package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
  79. package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
  80. package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
  81. package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
  82. package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
  83. package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
  84. package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
  85. package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
  86. package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
  87. package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
  88. package/dist/notion-stream.css +1 -0
  89. package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
  90. package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
  91. package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
  92. package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
  93. package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
  94. package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
  95. package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
  96. package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
  97. package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
  98. package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
  99. package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
  100. package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
  101. package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
  102. package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
  103. package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
  104. package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
  105. package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
  106. package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
  107. package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
  108. package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
  109. package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
  110. package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
  111. package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
  112. package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
  113. package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
  114. package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
  115. package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
  116. package/package.json +5 -5
  117. package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
  118. package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
  119. package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
  120. package/dist/channel-6dUO0MQi.js +0 -1
  121. package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
  122. package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
  123. package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
  124. package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
  125. package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
  126. package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
  127. package/dist/clone-B0UaPT2Z.js +0 -1
  128. package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
  129. package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
  130. package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
  131. package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
  132. package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
  133. package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
  134. package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
  135. package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
  136. package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
  137. package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
  138. package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
  139. package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
  140. package/dist/index-CkYZRBYn.js +0 -676
  141. package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
  142. package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
  143. package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
  144. package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
  145. package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
  146. package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
  147. package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
  148. package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
  149. package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
  150. package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
  151. package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
  152. package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
  153. package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
  154. package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
@@ -1,126 +1,126 @@
1
- import { _ as s, f as xt, l as E, h as q, ah as kt, ai as vt, aj as _t, ak as bt, H as wt, al as St, D as Et } from "./index-oe4HpmeG.mjs";
2
- import { d as nt } from "./arc-DmoYXidQ.mjs";
3
- var X = function() {
4
- var n = /* @__PURE__ */ s(function(f, r, a, h) {
5
- for (a = a || {}, h = f.length; h--; a[f[h]] = r) ;
1
+ import { _ as s, f as xt, l as E, h as j, ah as kt, ai as vt, aj as _t, ak as bt, H as wt, al as St, D as Et } from "./index-DH3CVXwD.mjs";
2
+ import { d as nt } from "./arc-OrNNmmBm.mjs";
3
+ var Q = (function() {
4
+ var n = /* @__PURE__ */ s(function(x, r, a, c) {
5
+ for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
6
6
  return a;
7
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
7
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], p = {
8
8
  trace: /* @__PURE__ */ s(function() {
9
9
  }, "trace"),
10
10
  yy: {},
11
11
  symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
12
12
  terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
13
13
  productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
14
- performAction: /* @__PURE__ */ s(function(r, a, h, u, y, o, S) {
15
- var k = o.length - 1;
14
+ performAction: /* @__PURE__ */ s(function(r, a, c, u, y, o, w) {
15
+ var v = o.length - 1;
16
16
  switch (y) {
17
17
  case 1:
18
- return o[k - 1];
18
+ return o[v - 1];
19
19
  case 2:
20
20
  this.$ = [];
21
21
  break;
22
22
  case 3:
23
- o[k - 1].push(o[k]), this.$ = o[k - 1];
23
+ o[v - 1].push(o[v]), this.$ = o[v - 1];
24
24
  break;
25
25
  case 4:
26
26
  case 5:
27
- this.$ = o[k];
27
+ this.$ = o[v];
28
28
  break;
29
29
  case 6:
30
30
  case 7:
31
31
  this.$ = [];
32
32
  break;
33
33
  case 8:
34
- u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
34
+ u.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
35
35
  break;
36
36
  case 9:
37
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
37
+ this.$ = o[v].trim(), u.getCommonDb().setAccTitle(this.$);
38
38
  break;
39
39
  case 10:
40
40
  case 11:
41
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
41
+ this.$ = o[v].trim(), u.getCommonDb().setAccDescription(this.$);
42
42
  break;
43
43
  case 12:
44
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
44
+ u.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
45
45
  break;
46
46
  case 15:
47
- u.addTask(o[k], 0, ""), this.$ = o[k];
47
+ u.addTask(o[v], 0, ""), this.$ = o[v];
48
48
  break;
49
49
  case 16:
50
- u.addEvent(o[k].substr(2)), this.$ = o[k];
50
+ u.addEvent(o[v].substr(2)), this.$ = o[v];
51
51
  break;
52
52
  }
53
53
  }, "anonymous"),
54
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
54
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
55
55
  defaultActions: {},
56
56
  parseError: /* @__PURE__ */ s(function(r, a) {
57
57
  if (a.recoverable)
58
58
  this.trace(r);
59
59
  else {
60
- var h = new Error(r);
61
- throw h.hash = a, h;
60
+ var c = new Error(r);
61
+ throw c.hash = a, c;
62
62
  }
63
63
  }, "parseError"),
64
64
  parse: /* @__PURE__ */ s(function(r) {
65
- var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, J = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
65
+ var a = this, c = [0], u = [], y = [null], o = [], w = this.table, v = "", N = 0, P = 0, V = 2, U = 1, H = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
66
66
  for (var L in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
68
- v.setInput(r, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
69
- var b = v.yylloc;
70
- o.push(b);
71
- var $ = v.options && v.options.ranges;
72
- typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function R(T) {
74
- h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
67
+ Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
68
+ g.setInput(r, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
69
+ var M = g.yylloc;
70
+ o.push(M);
71
+ var W = g.options && g.options.ranges;
72
+ typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
+ function Z(T) {
74
+ c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
75
75
  }
76
- s(R, "popStack");
77
- function A() {
76
+ s(Z, "popStack");
77
+ function tt() {
78
78
  var T;
79
- return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
79
+ return T = u.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
80
  }
81
- s(A, "lex");
82
- for (var w, H, I, K, z = {}, j, P, et, G; ; ) {
83
- if (H = h[h.length - 1], this.defaultActions[H] ? I = this.defaultActions[H] : ((w === null || typeof w > "u") && (w = A()), I = S[H] && S[H][w]), typeof I > "u" || !I.length || !I[0]) {
84
- var Q = "";
85
- G = [];
86
- for (j in S[H])
87
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
88
- v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
89
- ` + v.showPosition() + `
90
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "Parse error on line " + (M + 1) + ": Unexpected " + (w == J ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Q, {
91
- text: v.match,
92
- token: this.terminals_[w] || w,
93
- line: v.yylineno,
94
- loc: b,
95
- expected: G
81
+ s(tt, "lex");
82
+ for (var S, A, I, J, R = {}, B, $, et, O; ; ) {
83
+ if (A = c[c.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((S === null || typeof S > "u") && (S = tt()), I = w[A] && w[A][S]), typeof I > "u" || !I.length || !I[0]) {
84
+ var K = "";
85
+ O = [];
86
+ for (B in w[A])
87
+ this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
88
+ g.showPosition ? K = "Parse error on line " + (N + 1) + `:
89
+ ` + g.showPosition() + `
90
+ Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
91
+ text: g.match,
92
+ token: this.terminals_[S] || S,
93
+ line: g.yylineno,
94
+ loc: M,
95
+ expected: O
96
96
  });
97
97
  }
98
98
  if (I[0] instanceof Array && I.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
99
+ throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + S);
100
100
  switch (I[0]) {
101
101
  case 1:
102
- h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
102
+ c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, P = g.yyleng, v = g.yytext, N = g.yylineno, M = g.yylloc;
103
103
  break;
104
104
  case 2:
105
- if (P = this.productions_[I[1]][1], z.$ = y[y.length - P], z._$ = {
106
- first_line: o[o.length - (P || 1)].first_line,
105
+ if ($ = this.productions_[I[1]][1], R.$ = y[y.length - $], R._$ = {
106
+ first_line: o[o.length - ($ || 1)].first_line,
107
107
  last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - (P || 1)].first_column,
108
+ first_column: o[o.length - ($ || 1)].first_column,
109
109
  last_column: o[o.length - 1].last_column
110
- }, $ && (z._$.range = [
111
- o[o.length - (P || 1)].range[0],
110
+ }, W && (R._$.range = [
111
+ o[o.length - ($ || 1)].range[0],
112
112
  o[o.length - 1].range[1]
113
- ]), K = this.performAction.apply(z, [
114
- k,
115
- C,
116
- M,
117
- N.yy,
113
+ ]), J = this.performAction.apply(R, [
114
+ v,
115
+ P,
116
+ N,
117
+ b.yy,
118
118
  I[1],
119
119
  y,
120
120
  o
121
- ].concat(O)), typeof K < "u")
122
- return K;
123
- P && (h = h.slice(0, -1 * P * 2), y = y.slice(0, -1 * P), o = o.slice(0, -1 * P)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
121
+ ].concat(H)), typeof J < "u")
122
+ return J;
123
+ $ && (c = c.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
124
124
  break;
125
125
  case 3:
126
126
  return !0;
@@ -128,12 +128,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
128
128
  }
129
129
  return !0;
130
130
  }, "parse")
131
- }, x = /* @__PURE__ */ function() {
132
- var f = {
131
+ }, k = /* @__PURE__ */ (function() {
132
+ var x = {
133
133
  EOF: 1,
134
- parseError: /* @__PURE__ */ s(function(a, h) {
134
+ parseError: /* @__PURE__ */ s(function(a, c) {
135
135
  if (this.yy.parser)
136
- this.yy.parser.parseError(a, h);
136
+ this.yy.parser.parseError(a, c);
137
137
  else
138
138
  throw new Error(a);
139
139
  }, "parseError"),
@@ -155,16 +155,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
155
155
  }, "input"),
156
156
  // unshifts one char (or a string) into the input
157
157
  unput: /* @__PURE__ */ s(function(r) {
158
- var a = r.length, h = r.split(/(?:\r\n?|\n)/g);
158
+ var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
159
159
  this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
160
  var u = this.match.split(/(?:\r\n?|\n)/g);
161
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
161
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
162
162
  var y = this.yylloc.range;
163
163
  return this.yylloc = {
164
164
  first_line: this.yylloc.first_line,
165
165
  last_line: this.yylineno + 1,
166
166
  first_column: this.yylloc.first_column,
167
- last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
167
+ last_column: c ? (c.length === u.length ? this.yylloc.first_column : 0) + u[u.length - c.length].length - c[0].length : this.yylloc.first_column - a
168
168
  }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
169
  }, "unput"),
170
170
  // When called from action, caches matched text and appends it on next action
@@ -206,7 +206,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
206
206
  }, "showPosition"),
207
207
  // test the lexed token: return FALSE when not a match, otherwise return token
208
208
  test_match: /* @__PURE__ */ s(function(r, a) {
209
- var h, u, y;
209
+ var c, u, y;
210
210
  if (this.options.backtrack_lexer && (y = {
211
211
  yylineno: this.yylineno,
212
212
  yylloc: {
@@ -231,8 +231,8 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
231
231
  last_line: this.yylineno + 1,
232
232
  first_column: this.yylloc.last_column,
233
233
  last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
234
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
235
- return h;
234
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
235
+ return c;
236
236
  if (this._backtrack) {
237
237
  for (var o in y)
238
238
  this[o] = y[o];
@@ -245,12 +245,12 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
245
245
  if (this.done)
246
246
  return this.EOF;
247
247
  this._input || (this.done = !0);
248
- var r, a, h, u;
248
+ var r, a, c, u;
249
249
  this._more || (this.yytext = "", this.match = "");
250
250
  for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
- if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
252
- if (a = h, u = o, this.options.backtrack_lexer) {
253
- if (r = this.test_match(h, y[o]), r !== !1)
251
+ if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
252
+ if (a = c, u = o, this.options.backtrack_lexer) {
253
+ if (r = this.test_match(c, y[o]), r !== !1)
254
254
  return r;
255
255
  if (this._backtrack) {
256
256
  a = !1;
@@ -298,7 +298,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
298
298
  return this.conditionStack.length;
299
299
  }, "stateStackSize"),
300
300
  options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ s(function(a, h, u, y) {
301
+ performAction: /* @__PURE__ */ s(function(a, c, u, y) {
302
302
  switch (u) {
303
303
  case 0:
304
304
  break;
@@ -345,16 +345,16 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Q = "
345
345
  rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
346
346
  conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
347
347
  };
348
- return f;
349
- }();
350
- p.lexer = x;
348
+ return x;
349
+ })();
350
+ p.lexer = k;
351
351
  function _() {
352
352
  this.yy = {};
353
353
  }
354
354
  return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
355
- }();
356
- X.parser = X;
357
- var Tt = X, at = {};
355
+ })();
356
+ Q.parser = Q;
357
+ var Tt = Q, at = {};
358
358
  wt(at, {
359
359
  addEvent: () => yt,
360
360
  addSection: () => ht,
@@ -366,47 +366,47 @@ wt(at, {
366
366
  getSections: () => dt,
367
367
  getTasks: () => ut
368
368
  });
369
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
- Y.length = 0, U.length = 0, V = "", W.length = 0, Et();
369
+ var F = "", lt = 0, X = [], G = [], z = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
+ X.length = 0, G.length = 0, F = "", z.length = 0, Et();
371
371
  }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
- V = n, Y.push(n);
372
+ F = n, X.push(n);
373
373
  }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
- return Y;
374
+ return X;
375
375
  }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
376
  let n = it();
377
377
  const t = 100;
378
378
  let e = 0;
379
379
  for (; !n && e < t; )
380
380
  n = it(), e++;
381
- return U.push(...W), U;
381
+ return G.push(...z), G;
382
382
  }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
383
  const l = {
384
384
  id: lt++,
385
- section: V,
386
- type: V,
385
+ section: F,
386
+ type: F,
387
387
  task: n,
388
388
  score: t || 0,
389
389
  //if event is defined, then add it the events array
390
390
  events: e ? [e] : []
391
391
  };
392
- W.push(l);
392
+ z.push(l);
393
393
  }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
- W.find((e) => e.id === lt - 1).events.push(n);
394
+ z.find((e) => e.id === lt - 1).events.push(n);
395
395
  }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
396
  const t = {
397
- section: V,
398
- type: V,
397
+ section: F,
398
+ type: F,
399
399
  description: n,
400
400
  task: n,
401
401
  classes: []
402
402
  };
403
- U.push(t);
403
+ G.push(t);
404
404
  }, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
405
405
  const n = /* @__PURE__ */ s(function(e) {
406
- return W[e].processed;
406
+ return z[e].processed;
407
407
  }, "compileTask");
408
408
  let t = !0;
409
- for (const [e, l] of W.entries())
409
+ for (const [e, l] of z.entries())
410
410
  n(e), t = t && l.processed;
411
411
  return t;
412
412
  }, "compileTasks"), It = {
@@ -418,7 +418,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
418
418
  addTask: pt,
419
419
  addTaskOrg: gt,
420
420
  addEvent: yt
421
- }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
421
+ }, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
422
422
  const e = n.append("rect");
423
423
  return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
424
424
  }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
@@ -429,15 +429,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
429
429
  m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
430
  }
431
431
  s(d, "smile");
432
- function c(m) {
432
+ function h(m) {
433
433
  const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
434
  m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
435
  }
436
- s(c, "sad");
437
- function g(m) {
436
+ s(h, "sad");
437
+ function f(m) {
438
438
  m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
439
439
  }
440
- return s(g, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? c(i) : g(i), l;
440
+ return s(f, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? h(i) : f(i), l;
441
441
  }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
442
442
  const e = n.append("circle");
443
443
  return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
@@ -447,15 +447,15 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
447
447
  const i = l.append("tspan");
448
448
  return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
449
449
  }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
- function e(i, d, c, g, m) {
451
- return i + "," + d + " " + (i + c) + "," + d + " " + (i + c) + "," + (d + g - m) + " " + (i + c - m * 1.2) + "," + (d + g) + " " + i + "," + (d + g);
450
+ function e(i, d, h, f, m) {
451
+ return i + "," + d + " " + (i + h) + "," + d + " " + (i + h) + "," + (d + f - m) + " " + (i + h - m * 1.2) + "," + (d + f) + " " + i + "," + (d + f);
452
452
  }
453
453
  s(e, "genPoints");
454
454
  const l = n.append("polygon");
455
455
  l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
456
456
  }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
457
- const l = n.append("g"), i = D();
458
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, Z(l, i), mt(e)(
457
+ const l = n.append("g"), i = Y();
458
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, q(l, i), mt(e)(
459
459
  t.text,
460
460
  l,
461
461
  i.x,
@@ -468,27 +468,25 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
468
468
  );
469
469
  }, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
470
470
  const l = t.x + e.width / 2, i = n.append("g");
471
- rt++;
472
- const d = 300 + 5 * 30;
473
- i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
471
+ rt++, i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
474
472
  cx: l,
475
473
  cy: 300 + (5 - t.score) * 30,
476
474
  score: t.score
477
475
  });
478
- const c = D();
479
- c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(i, c), mt(e)(
476
+ const h = Y();
477
+ h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(i, h), mt(e)(
480
478
  t.task,
481
479
  i,
482
- c.x,
483
- c.y,
484
- c.width,
485
- c.height,
480
+ h.x,
481
+ h.y,
482
+ h.width,
483
+ h.height,
486
484
  { class: "task" },
487
485
  e,
488
486
  t.colour
489
487
  );
490
488
  }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
491
- Z(n, {
489
+ q(n, {
492
490
  x: t.startx,
493
491
  y: t.starty,
494
492
  width: t.stopx - t.startx,
@@ -508,7 +506,7 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
508
506
  rx: 0,
509
507
  ry: 0
510
508
  };
511
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
509
+ }, "getTextObj"), Y = /* @__PURE__ */ s(function() {
512
510
  return {
513
511
  x: 0,
514
512
  y: 0,
@@ -518,63 +516,61 @@ var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => St, "ge
518
516
  rx: 0,
519
517
  ry: 0
520
518
  };
521
- }, "getNoteRect"), mt = /* @__PURE__ */ function() {
522
- function n(i, d, c, g, m, p, x, _) {
523
- const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
524
- l(f, x);
519
+ }, "getNoteRect"), mt = /* @__PURE__ */ (function() {
520
+ function n(i, d, h, f, m, p, k, _) {
521
+ const x = d.append("text").attr("x", h + m / 2).attr("y", f + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
522
+ l(x, k);
525
523
  }
526
524
  s(n, "byText");
527
- function t(i, d, c, g, m, p, x, _, f) {
528
- const { taskFontSize: r, taskFontFamily: a } = _, h = i.split(/<br\s*\/?>/gi);
529
- for (let u = 0; u < h.length; u++) {
530
- const y = u * r - r * (h.length - 1) / 2, o = d.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
531
- o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(h[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
525
+ function t(i, d, h, f, m, p, k, _, x) {
526
+ const { taskFontSize: r, taskFontFamily: a } = _, c = i.split(/<br\s*\/?>/gi);
527
+ for (let u = 0; u < c.length; u++) {
528
+ const y = u * r - r * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
529
+ o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[u]), o.attr("y", f + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
532
530
  }
533
531
  }
534
532
  s(t, "byTspan");
535
- function e(i, d, c, g, m, p, x, _) {
536
- const f = d.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
537
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, f, c, g, m, p, x, _), l(a, x);
533
+ function e(i, d, h, f, m, p, k, _) {
534
+ const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
535
+ a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, x, h, f, m, p, k, _), l(a, k);
538
536
  }
539
537
  s(e, "byFo");
540
538
  function l(i, d) {
541
- for (const c in d)
542
- c in d && i.attr(c, d[c]);
539
+ for (const h in d)
540
+ h in d && i.attr(h, d[h]);
543
541
  }
544
542
  return s(l, "_setTextAttrs"), function(i) {
545
543
  return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
546
544
  };
547
- }(), Rt = /* @__PURE__ */ s(function(n) {
545
+ })(), Rt = /* @__PURE__ */ s(function(n) {
548
546
  n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
549
547
  }, "initGraphics");
550
- function tt(n, t) {
548
+ function D(n, t) {
551
549
  n.each(function() {
552
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
553
- for (let x = 0; x < l.length; x++)
554
- i = l[l.length - 1 - x], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(i));
550
+ var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
551
+ for (let k = 0; k < l.length; k++)
552
+ i = l[l.length - 1 - k], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(i));
555
553
  });
556
554
  }
557
- s(tt, "wrap");
555
+ s(D, "wrap");
558
556
  var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
559
- var _;
560
557
  const i = e % Nt - 1, d = n.append("g");
561
558
  t.section = i, d.attr(
562
559
  "class",
563
560
  (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
564
561
  );
565
- const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
566
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, i, l), t;
562
+ const h = d.append("g"), f = d.append("g"), p = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = l.fontSize?.replace ? l.fontSize.replace("px", "") : l.fontSize;
563
+ return t.height = p.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(h, t, i, l), t;
567
564
  }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
568
- var g;
569
- const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
570
- return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
565
+ const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), h = e.fontSize?.replace ? e.fontSize.replace("px", "") : e.fontSize;
566
+ return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
571
567
  }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
572
568
  n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
573
569
  "d",
574
- `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
570
+ `M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`
575
571
  ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
576
- }, "defaultBkg"), F = {
577
- drawRect: Z,
572
+ }, "defaultBkg"), C = {
573
+ drawRect: q,
578
574
  drawCircle: Mt,
579
575
  drawSection: Ht,
580
576
  drawText: ft,
@@ -582,131 +578,129 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
582
578
  drawTask: Pt,
583
579
  drawBackgroundRect: At,
584
580
  getTextObj: Ct,
585
- getNoteRect: D,
581
+ getNoteRect: Y,
586
582
  initGraphics: Rt,
587
583
  drawNode: Ft,
588
584
  getVirtualNodeHeight: zt
589
585
  }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
590
- var O, v, N;
591
- const i = xt(), d = ((O = i.timeline) == null ? void 0 : O.leftMargin) ?? 50;
586
+ const i = xt(), d = i.timeline?.leftMargin ?? 50;
592
587
  E.debug("timeline", l.db);
593
- const c = i.securityLevel;
594
- let g;
595
- c === "sandbox" && (g = q("#i" + t));
596
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
588
+ const h = i.securityLevel;
589
+ let f;
590
+ h === "sandbox" && (f = j("#i" + t));
591
+ const p = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
597
592
  p.append("g");
598
- const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
599
- E.debug("task", x), F.initGraphics(p);
600
- const f = l.db.getSections();
601
- E.debug("sections", f);
602
- let r = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
593
+ const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
594
+ E.debug("task", k), C.initGraphics(p);
595
+ const x = l.db.getSections();
596
+ E.debug("sections", x);
597
+ let r = 0, a = 0, c = 0, u = 0, y = 50 + d, o = 50;
603
598
  u = 50;
604
- let S = 0, k = !0;
605
- f.forEach(function(L) {
606
- const b = {
607
- number: S,
608
- descr: L,
609
- section: S,
599
+ let w = 0, v = !0;
600
+ x.forEach(function(H) {
601
+ const g = {
602
+ number: w,
603
+ descr: H,
604
+ section: w,
610
605
  width: 150,
611
606
  padding: 20,
612
607
  maxHeight: r
613
- }, $ = F.getVirtualNodeHeight(p, b, i);
614
- E.debug("sectionHeight before draw", $), r = Math.max(r, $ + 20);
608
+ }, b = C.getVirtualNodeHeight(p, g, i);
609
+ E.debug("sectionHeight before draw", b), r = Math.max(r, b + 20);
615
610
  });
616
- let M = 0, C = 0;
617
- E.debug("tasks.length", x.length);
618
- for (const [L, b] of x.entries()) {
619
- const $ = {
620
- number: L,
621
- descr: b,
622
- section: b.section,
611
+ let N = 0, P = 0;
612
+ E.debug("tasks.length", k.length);
613
+ for (const [H, g] of k.entries()) {
614
+ const b = {
615
+ number: H,
616
+ descr: g,
617
+ section: g.section,
623
618
  width: 150,
624
619
  padding: 20,
625
620
  maxHeight: a
626
- }, R = F.getVirtualNodeHeight(p, $, i);
627
- E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
628
- let A = 0;
629
- for (const w of b.events) {
630
- const H = {
631
- descr: w,
632
- section: b.section,
633
- number: b.section,
621
+ }, L = C.getVirtualNodeHeight(p, b, i);
622
+ E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
623
+ let M = 0;
624
+ for (const W of g.events) {
625
+ const Z = {
626
+ descr: W,
627
+ section: g.section,
628
+ number: g.section,
634
629
  width: 150,
635
630
  padding: 20,
636
631
  maxHeight: 50
637
632
  };
638
- A += F.getVirtualNodeHeight(p, H, i);
633
+ M += C.getVirtualNodeHeight(p, Z, i);
639
634
  }
640
- b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
635
+ g.events.length > 0 && (M += (g.events.length - 1) * 10), P = Math.max(P, M);
641
636
  }
642
- E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
643
- const b = x.filter((w) => w.section === L), $ = {
644
- number: S,
645
- descr: L,
646
- section: S,
647
- width: 200 * Math.max(b.length, 1) - 50,
637
+ E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach((H) => {
638
+ const g = k.filter((W) => W.section === H), b = {
639
+ number: w,
640
+ descr: H,
641
+ section: w,
642
+ width: 200 * Math.max(g.length, 1) - 50,
648
643
  padding: 20,
649
644
  maxHeight: r
650
645
  };
651
- E.debug("sectionNode", $);
652
- const R = p.append("g"), A = F.drawNode(R, $, S, i);
653
- E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += r + 50, b.length > 0 && st(
646
+ E.debug("sectionNode", b);
647
+ const L = p.append("g"), M = C.drawNode(L, b, w, i);
648
+ E.debug("sectionNode output", M), L.attr("transform", `translate(${y}, ${u})`), o += r + 50, g.length > 0 && st(
654
649
  p,
655
- b,
656
- S,
650
+ g,
651
+ w,
657
652
  y,
658
653
  o,
659
654
  a,
660
655
  i,
661
- M,
662
- C,
656
+ N,
657
+ P,
663
658
  r,
664
659
  !1
665
- ), y += 200 * Math.max(b.length, 1), o = u, S++;
666
- }) : (k = !1, st(
660
+ ), y += 200 * Math.max(g.length, 1), o = u, w++;
661
+ }) : (v = !1, st(
667
662
  p,
668
- x,
669
- S,
663
+ k,
664
+ w,
670
665
  y,
671
666
  o,
672
667
  a,
673
668
  i,
674
- M,
675
- C,
669
+ N,
670
+ P,
676
671
  r,
677
672
  !0
678
673
  ));
679
- const B = p.node().getBBox();
680
- E.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", h).attr("x2", B.width + 3 * d).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
674
+ const V = p.node().getBBox();
675
+ E.debug("bounds", V), _ && p.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", V.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
681
676
  void 0,
682
677
  p,
683
- ((v = i.timeline) == null ? void 0 : v.padding) ?? 50,
684
- ((N = i.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
678
+ i.timeline?.padding ?? 50,
679
+ i.timeline?.useMaxWidth ?? !1
685
680
  );
686
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, c, g, m, p, x) {
687
- var _;
688
- for (const f of t) {
689
- const r = {
690
- descr: f.task,
681
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, h, f, m, p, k) {
682
+ for (const _ of t) {
683
+ const x = {
684
+ descr: _.task,
691
685
  section: e,
692
686
  number: e,
693
687
  width: 150,
694
688
  padding: 20,
695
689
  maxHeight: d
696
690
  };
697
- E.debug("taskNode", r);
698
- const a = n.append("g").attr("class", "taskWrapper"), u = F.drawNode(a, r, e, c).height;
699
- if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, u), f.events) {
700
- const y = n.append("g").attr("class", "lineWrapper");
701
- let o = d;
702
- i += 100, o = o + Bt(n, f.events, e, l, i, c), i -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
691
+ E.debug("taskNode", x);
692
+ const r = n.append("g").attr("class", "taskWrapper"), c = C.drawNode(r, x, e, h).height;
693
+ if (E.debug("taskHeight after draw", c), r.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, c), _.events) {
694
+ const u = n.append("g").attr("class", "lineWrapper");
695
+ let y = d;
696
+ i += 100, y = y + Bt(n, _.events, e, l, i, h), i -= 100, u.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
703
697
  }
704
- l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
698
+ l = l + 200, k && !h.timeline?.disableMulticolor && e++;
705
699
  }
706
700
  i = i - 10;
707
701
  }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
708
- let c = 0;
709
- const g = i;
702
+ let h = 0;
703
+ const f = i;
710
704
  i = i + 100;
711
705
  for (const m of t) {
712
706
  const p = {
@@ -718,10 +712,10 @@ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
718
712
  maxHeight: 50
719
713
  };
720
714
  E.debug("eventNode", p);
721
- const x = n.append("g").attr("class", "eventWrapper"), f = F.drawNode(x, p, e, d).height;
722
- c = c + f, x.attr("transform", `translate(${l}, ${i})`), i = i + 10 + f;
715
+ const k = n.append("g").attr("class", "eventWrapper"), x = C.drawNode(k, p, e, d).height;
716
+ h = h + x, k.attr("transform", `translate(${l}, ${i})`), i = i + 10 + x;
723
717
  }
724
- return i = g, c;
718
+ return i = f, h;
725
719
  }, "drawEvents"), Ot = {
726
720
  setConf: /* @__PURE__ */ s(() => {
727
721
  }, "setConf"),