@pi-outpost/embed 0.1.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 (250) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +63 -0
  3. package/dist/abnfDiagram-VRR7QNED-BPTALLb_.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-DlAvVtuC.js +89 -0
  5. package/dist/arc-BBnpgwVQ.js +80 -0
  6. package/dist/arc-DcUn9_NX.cjs +1 -0
  7. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +3 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-Bh5-VPPg.cjs +36 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D7UsY5ua.js +4120 -0
  11. package/dist/array-CApNbSU9.js +6 -0
  12. package/dist/array-DZSRzHA_.cjs +1 -0
  13. package/dist/bash-BLBHkRa_.js +169 -0
  14. package/dist/bash-DHJu-DNv.cjs +1 -0
  15. package/dist/blockDiagram-677ZJIJ3-BrXgigdO.cjs +132 -0
  16. package/dist/blockDiagram-677ZJIJ3-s-fanRPN.js +3160 -0
  17. package/dist/c-4QgYfi8K.cjs +1 -0
  18. package/dist/c-Cw4FsAeJ.js +176 -0
  19. package/dist/c4Diagram-LMCZKHZV-BbZFAi_K.js +2962 -0
  20. package/dist/c4Diagram-LMCZKHZV-DFBVQ9Uo.cjs +10 -0
  21. package/dist/channel-DV0ST12Z.js +5 -0
  22. package/dist/channel-DkMGzfUR.cjs +1 -0
  23. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  24. package/dist/chunk-2Q5K7J3B-DqJF2oYF.js +15 -0
  25. package/dist/chunk-32BRIVSS-Byu3FrKX.js +61 -0
  26. package/dist/chunk-32BRIVSS-oWSJWk-u.cjs +1 -0
  27. package/dist/chunk-52WLFC77-C9zQbcGs.js +590 -0
  28. package/dist/chunk-52WLFC77-D9PTsiCj.cjs +10 -0
  29. package/dist/chunk-5VM5RSS4-BMfgdMFU.js +5 -0
  30. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  31. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +82 -0
  32. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  33. package/dist/chunk-C7G6YPKG-CDjkH_UW.cjs +1 -0
  34. package/dist/chunk-C7G6YPKG-GTlyrFFt.js +67 -0
  35. package/dist/chunk-EX3LRPZG-BBldDxGh.js +2046 -0
  36. package/dist/chunk-EX3LRPZG-u-BKCEWO.cjs +231 -0
  37. package/dist/chunk-FWX5IMBZ-h3GfgkP2.js +57 -0
  38. package/dist/chunk-FWX5IMBZ-nqBth1J9.cjs +1 -0
  39. package/dist/chunk-HOUHSVGY-CgfXy94u.cjs +1 -0
  40. package/dist/chunk-HOUHSVGY-CtRCnz1G.js +277 -0
  41. package/dist/chunk-ICXQ74PX-BmEfYj-r.cjs +2 -0
  42. package/dist/chunk-ICXQ74PX-CC59NQmW.js +1366 -0
  43. package/dist/chunk-JWPE2WC7-B_J6qwQL.js +8 -0
  44. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  45. package/dist/chunk-KEIR6QF5-BVnxrdHo.js +21388 -0
  46. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +161 -0
  47. package/dist/chunk-MOJQB5TN-D6YxvkUY.js +490 -0
  48. package/dist/chunk-MOJQB5TN-H2vwz-oQ.cjs +88 -0
  49. package/dist/chunk-OGEWGWER-BGdqgMza.js +32 -0
  50. package/dist/chunk-OGEWGWER-BP4o8A-v.cjs +1 -0
  51. package/dist/chunk-PUDLZKDR-C8jMDFq6.js +4142 -0
  52. package/dist/chunk-PUDLZKDR-DtzwSdxX.cjs +156 -0
  53. package/dist/chunk-Q4XR5HBZ-Bk18cMuk.js +1628 -0
  54. package/dist/chunk-Q4XR5HBZ-COrrWZzi.cjs +70 -0
  55. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +1 -0
  56. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +239 -0
  57. package/dist/chunk-V7JOEXUC-BROsdKzY.js +3357 -0
  58. package/dist/chunk-V7JOEXUC-Cfrm5GQn.cjs +206 -0
  59. package/dist/chunk-VAUOI2AC-05FwamOA.js +10 -0
  60. package/dist/chunk-VAUOI2AC-CBXi4Di2.cjs +1 -0
  61. package/dist/chunk-VR4S4FIN-CSU_1xTZ.cjs +1 -0
  62. package/dist/chunk-VR4S4FIN-Ci491c8N.js +26 -0
  63. package/dist/chunk-WYO6CB5R-BTvDzbWd.cjs +127 -0
  64. package/dist/chunk-WYO6CB5R-Y9HJHB3Q.js +3739 -0
  65. package/dist/chunk-XXDRQBXY-DsVp5qjg.js +9 -0
  66. package/dist/chunk-XXDRQBXY-gWcN0uCZ.cjs +1 -0
  67. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  68. package/dist/chunk-Y2CYZVJY-CwsV_8W4.js +12 -0
  69. package/dist/chunk-ZGVPDNZ5-CDTkXY1G.js +3736 -0
  70. package/dist/chunk-ZGVPDNZ5-COEQX4AZ.cjs +62 -0
  71. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +32 -0
  72. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +1146 -0
  73. package/dist/classDiagram-OUVF2IWQ-Avsu6OKn.cjs +1 -0
  74. package/dist/classDiagram-OUVF2IWQ-eC72Wwol.js +30 -0
  75. package/dist/classDiagram-v2-EOCWNBFH-Avsu6OKn.cjs +1 -0
  76. package/dist/classDiagram-v2-EOCWNBFH-DsRoQgCt.js +30 -0
  77. package/dist/core-2nR1zkKb.cjs +3 -0
  78. package/dist/core-BO2hTFeF.js +845 -0
  79. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +1 -0
  80. package/dist/cose-bilkent-JH36ORCC-BFo5zomD.js +2251 -0
  81. package/dist/cpp-BUtp-HE2.cjs +1 -0
  82. package/dist/cpp-CeyO6lBG.js +225 -0
  83. package/dist/csharp-BJu4kEpt.cjs +1 -0
  84. package/dist/csharp-Ck6Fet_o.js +260 -0
  85. package/dist/css-ClSGJRju.js +140 -0
  86. package/dist/css-DeFr0lev.cjs +1 -0
  87. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +1 -0
  88. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +3 -0
  89. package/dist/cynefinDiagram-TSTJHNR4-BRUl09PN.js +349 -0
  90. package/dist/cynefinDiagram-TSTJHNR4-rKPqxFde.cjs +62 -0
  91. package/dist/cytoscape.esm-ByjvpCPI.cjs +321 -0
  92. package/dist/cytoscape.esm-asYnbYTy.js +18148 -0
  93. package/dist/dagre-BBlCxSvR.cjs +1 -0
  94. package/dist/dagre-BpqwxFKp.js +1701 -0
  95. package/dist/dagre-VKFMJZFB-BsfMZfPu.cjs +4 -0
  96. package/dist/dagre-VKFMJZFB-ChTkS14y.js +328 -0
  97. package/dist/defaultLocale-u9yUoUmE.cjs +1 -0
  98. package/dist/defaultLocale-up9-vqhM.js +201 -0
  99. package/dist/diagram-FQU43EPY-BnAYoLDy.js +432 -0
  100. package/dist/diagram-FQU43EPY-CdbwLZpm.cjs +3 -0
  101. package/dist/diagram-G47NLZAW-C1ZiELQG.js +525 -0
  102. package/dist/diagram-G47NLZAW-CtWKuxkf.cjs +24 -0
  103. package/dist/diagram-NH7WQ7WH-Be0KXo6w.js +134 -0
  104. package/dist/diagram-NH7WQ7WH-CG6VWVza.cjs +24 -0
  105. package/dist/diagram-OA4YK3LP-B7avlqjG.js +300 -0
  106. package/dist/diagram-OA4YK3LP-Drq_GA6o.cjs +30 -0
  107. package/dist/diagram-WEI45ONY-CoPX6-sx.js +214 -0
  108. package/dist/diagram-WEI45ONY-SJmgVL59.cjs +41 -0
  109. package/dist/dist-D6LMt8nW.js +59 -0
  110. package/dist/dist-DNGlMOWd.cjs +1 -0
  111. package/dist/dockerfile-O4rAswfG.js +34 -0
  112. package/dist/dockerfile-YBgAWga3.cjs +1 -0
  113. package/dist/ebnfDiagram-CCIWWBDH-B-T4_JnX.js +100 -0
  114. package/dist/ebnfDiagram-CCIWWBDH-BY7L3HVQ.cjs +1 -0
  115. package/dist/erDiagram-Q63AITRT-DPgZpeaH.js +1727 -0
  116. package/dist/erDiagram-Q63AITRT-w4C1PxYd.cjs +85 -0
  117. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +3 -0
  118. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +1 -0
  119. package/dist/flowDiagram-23GEKE2U-CQxPdUX4.cjs +1 -0
  120. package/dist/flowDiagram-23GEKE2U-ClCSBl2p.js +17 -0
  121. package/dist/ganttDiagram-NO4QXBWP-BcBp028S.cjs +292 -0
  122. package/dist/ganttDiagram-NO4QXBWP-Cf12fLfa.js +3083 -0
  123. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +3 -0
  124. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +1 -0
  125. package/dist/gitGraphDiagram-IHSO6WYX-13ahKewT.js +729 -0
  126. package/dist/gitGraphDiagram-IHSO6WYX-BTtNkGkN.cjs +106 -0
  127. package/dist/go-D-pz-dmd.cjs +1 -0
  128. package/dist/go-rg7jg1mu.js +140 -0
  129. package/dist/graphlib-B0GbLif1.js +1267 -0
  130. package/dist/graphlib-CkkG5MuS.cjs +1 -0
  131. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +1 -0
  132. package/dist/info-DKCQHKI2-BPF6-pOb.js +3 -0
  133. package/dist/infoDiagram-FWYZ7A6U-20rh0VNL.cjs +2 -0
  134. package/dist/infoDiagram-FWYZ7A6U-DcV-eSsb.js +20 -0
  135. package/dist/ini-C1q3_1-Q.js +88 -0
  136. package/dist/ini-nVcUEghj.cjs +1 -0
  137. package/dist/init-07zIhv_j.cjs +1 -0
  138. package/dist/init-CirqLVcp.js +15 -0
  139. package/dist/ishikawaDiagram-FXEZZL3T-BTaBCHIG.js +719 -0
  140. package/dist/ishikawaDiagram-FXEZZL3T-BUq5kcFI.cjs +70 -0
  141. package/dist/java-CUN_usaq.cjs +1 -0
  142. package/dist/java-HguKEfA2.js +169 -0
  143. package/dist/javascript-C8NCH8DE.js +436 -0
  144. package/dist/javascript-UZXSyUuu.cjs +1 -0
  145. package/dist/journeyDiagram-5HDEW3XC-Cl9Z4b58.js +884 -0
  146. package/dist/journeyDiagram-5HDEW3XC-XQa-rhY_.cjs +139 -0
  147. package/dist/json-Cp01TR_B.js +36 -0
  148. package/dist/json-usH_MUzR.cjs +1 -0
  149. package/dist/kanban-definition-HUTT4EX6-CtWnZ0nS.js +975 -0
  150. package/dist/kanban-definition-HUTT4EX6-DVHXUPOt.cjs +89 -0
  151. package/dist/line-Ca8dE_lT.cjs +1 -0
  152. package/dist/line-O2xx2vVQ.js +34 -0
  153. package/dist/linear-CVhyaVzf.js +289 -0
  154. package/dist/linear-Cl2-QuPP.cjs +1 -0
  155. package/dist/map-CwPlMWPw.cjs +1 -0
  156. package/dist/map-DU12fF3s.js +241 -0
  157. package/dist/markdown-CzgRofaE.js +181 -0
  158. package/dist/markdown-qeo95R0i.cjs +1 -0
  159. package/dist/mermaid-parser.core-B8DQcCaz.js +638 -0
  160. package/dist/mermaid-parser.core-Cgsz0CdK.cjs +6 -0
  161. package/dist/mermaid.core-BR-iKb2Q.js +1064 -0
  162. package/dist/mermaid.core-DQrbAA--.cjs +10 -0
  163. package/dist/mindmap-definition-LN4V7U3C-C0I9iWmq.cjs +96 -0
  164. package/dist/mindmap-definition-LN4V7U3C-lkSmRsIC.js +1008 -0
  165. package/dist/mount.d.ts +31 -0
  166. package/dist/ordinal-CCTD6_le.js +65 -0
  167. package/dist/ordinal-CUPR-p0T.cjs +1 -0
  168. package/dist/packet-7NZHBO7P-DqvBYJTR.js +3 -0
  169. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +1 -0
  170. package/dist/path-Kklx0M1v.cjs +1 -0
  171. package/dist/path-mKa7UESy.js +85 -0
  172. package/dist/pegDiagram-2B236MQR-BgRCQTZd.js +94 -0
  173. package/dist/pegDiagram-2B236MQR-hlmRl_PA.cjs +1 -0
  174. package/dist/php-C9FOMGEA.js +294 -0
  175. package/dist/php-j6EhDZDE.cjs +2 -0
  176. package/dist/pi-outpost-embed.cjs +305 -0
  177. package/dist/pi-outpost-embed.js +40942 -0
  178. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +1 -0
  179. package/dist/pie-RZYD4A2V-qnruo9sH.js +3 -0
  180. package/dist/pieDiagram-ENE6RG2P-BVi7ck2I.js +205 -0
  181. package/dist/pieDiagram-ENE6RG2P-Buuvrs-h.cjs +39 -0
  182. package/dist/plaintext-BYYAHR3Z.js +10 -0
  183. package/dist/plaintext-DmnjizxG.cjs +1 -0
  184. package/dist/python-BYJzTRkK.cjs +1 -0
  185. package/dist/python-DKAazMIE.js +238 -0
  186. package/dist/quadrantDiagram-ABIIQ3AL-DeU97c2B.js +2001 -0
  187. package/dist/quadrantDiagram-ABIIQ3AL-LCbC0LEt.cjs +7 -0
  188. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +1 -0
  189. package/dist/radar-I7S5WNFK-np_pJCO-.js +3 -0
  190. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +1 -0
  191. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +3 -0
  192. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +1 -0
  193. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +3 -0
  194. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +3 -0
  195. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +1 -0
  196. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +1 -0
  197. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +3 -0
  198. package/dist/railroadDiagram-RFXS5EU6-CMTDNjsw.cjs +1 -0
  199. package/dist/railroadDiagram-RFXS5EU6-DNSNpLmQ.js +76 -0
  200. package/dist/requirementDiagram-TGXJPOKE-CdspXMgv.js +2223 -0
  201. package/dist/requirementDiagram-TGXJPOKE-irImpO8w.cjs +84 -0
  202. package/dist/rolldown-runtime-Dqa2HsxW.js +20 -0
  203. package/dist/rolldown-runtime-mLOUI7ql.cjs +1 -0
  204. package/dist/rough.esm-C5XyeDCN.js +1352 -0
  205. package/dist/rough.esm-r0QOSzHM.cjs +1 -0
  206. package/dist/ruby-BAUeZQKZ.js +262 -0
  207. package/dist/ruby-ClR4zp-1.cjs +1 -0
  208. package/dist/rust-DiTjMjP5.js +169 -0
  209. package/dist/rust-ghVvEWhm.cjs +1 -0
  210. package/dist/sankeyDiagram-HTMAVEWB-B0ZJBVpN.cjs +40 -0
  211. package/dist/sankeyDiagram-HTMAVEWB-BQcvUCMA.js +970 -0
  212. package/dist/scss-CKxh5HRg.cjs +1 -0
  213. package/dist/scss-CckAvQOx.js +150 -0
  214. package/dist/sequenceDiagram-DBY2YBRQ-BQFP2DGs.js +4168 -0
  215. package/dist/sequenceDiagram-DBY2YBRQ-C5WukkcA.cjs +162 -0
  216. package/dist/sizeCapture-X5ZJPWSS-DKbHZNyz.js +46 -0
  217. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  218. package/dist/sql-B-Rnc2C3.js +118 -0
  219. package/dist/sql-B7syKcd8.cjs +1 -0
  220. package/dist/src-CR--T_NF.cjs +1 -0
  221. package/dist/src-DJ4x3y2O.js +2142 -0
  222. package/dist/stateDiagram-2N3HPSRC-4aBQt5dk.js +220 -0
  223. package/dist/stateDiagram-2N3HPSRC-YbRd67eD.cjs +1 -0
  224. package/dist/stateDiagram-v2-6OUMAXLB-D-c6D5za.js +30 -0
  225. package/dist/stateDiagram-v2-6OUMAXLB-ciXN_270.cjs +1 -0
  226. package/dist/swimlanes-5IMT3BWC-C8zkS7yx.cjs +1 -0
  227. package/dist/swimlanes-5IMT3BWC-aKH3Xgob.js +5066 -0
  228. package/dist/swimlanesDiagram-G3AALYLV-BcgsG1in.js +31 -0
  229. package/dist/swimlanesDiagram-G3AALYLV-CBjVJdH0.cjs +8 -0
  230. package/dist/timeline-definition-FHXFAJF6-DS-X0FCl.cjs +120 -0
  231. package/dist/timeline-definition-FHXFAJF6-Lnag6wiw.js +1069 -0
  232. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +1 -0
  233. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +3 -0
  234. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +3 -0
  235. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +1 -0
  236. package/dist/typescript-clWeqIBY.cjs +1 -0
  237. package/dist/typescript-mdYq8uqf.js +521 -0
  238. package/dist/vennDiagram-L72KCM5P-CF7lC7jn.js +1880 -0
  239. package/dist/vennDiagram-L72KCM5P-DYZP8jT_.cjs +34 -0
  240. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +1 -0
  241. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +3 -0
  242. package/dist/wardleyDiagram-EHGQE667-CbtWlMOa.js +645 -0
  243. package/dist/wardleyDiagram-EHGQE667-Dxewrpeh.cjs +78 -0
  244. package/dist/xml-BamqaQOf.cjs +1 -0
  245. package/dist/xml-DVYfB8uY.js +166 -0
  246. package/dist/xychartDiagram-FW5EYKEG-BAnVfMdN.cjs +7 -0
  247. package/dist/xychartDiagram-FW5EYKEG-DmdGPSi6.js +2102 -0
  248. package/dist/yaml-_1BORZTQ.js +144 -0
  249. package/dist/yaml-bAgWofBg.cjs +1 -0
  250. package/package.json +72 -0
@@ -0,0 +1,1069 @@
1
+ import { n as e, t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
+ import { m as n, p as r } from "./src-DJ4x3y2O.js";
3
+ import { J as i, a, b as o, et as s, o as c, rt as l, tt as u, x as d } from "./chunk-WYO6CB5R-Y9HJHB3Q.js";
4
+ import { t as f } from "./arc-BBnpgwVQ.js";
5
+ import { p } from "./chunk-ICXQ74PX-CC59NQmW.js";
6
+ import { t as m } from "./chunk-VAUOI2AC-05FwamOA.js";
7
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-FHXFAJF6.mjs
8
+ var h = (function() {
9
+ var t = /* @__PURE__ */ e(function(e, t, n, r) {
10
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
+ return n;
12
+ }, "o"), n = [
13
+ 6,
14
+ 11,
15
+ 13,
16
+ 14,
17
+ 15,
18
+ 17,
19
+ 19,
20
+ 20,
21
+ 23,
22
+ 24
23
+ ], r = [1, 12], i = [1, 13], a = [1, 14], o = [1, 15], s = [1, 16], c = [1, 19], l = [1, 20], u = {
24
+ trace: /* @__PURE__ */ e(function() {}, "trace"),
25
+ yy: {},
26
+ symbols_: {
27
+ error: 2,
28
+ start: 3,
29
+ timeline_header: 4,
30
+ document: 5,
31
+ EOF: 6,
32
+ timeline: 7,
33
+ timeline_lr: 8,
34
+ timeline_td: 9,
35
+ line: 10,
36
+ SPACE: 11,
37
+ statement: 12,
38
+ NEWLINE: 13,
39
+ title: 14,
40
+ acc_title: 15,
41
+ acc_title_value: 16,
42
+ acc_descr: 17,
43
+ acc_descr_value: 18,
44
+ acc_descr_multiline_value: 19,
45
+ section: 20,
46
+ period_statement: 21,
47
+ event_statement: 22,
48
+ period: 23,
49
+ event: 24,
50
+ $accept: 0,
51
+ $end: 1
52
+ },
53
+ terminals_: {
54
+ 2: "error",
55
+ 6: "EOF",
56
+ 7: "timeline",
57
+ 8: "timeline_lr",
58
+ 9: "timeline_td",
59
+ 11: "SPACE",
60
+ 13: "NEWLINE",
61
+ 14: "title",
62
+ 15: "acc_title",
63
+ 16: "acc_title_value",
64
+ 17: "acc_descr",
65
+ 18: "acc_descr_value",
66
+ 19: "acc_descr_multiline_value",
67
+ 20: "section",
68
+ 23: "period",
69
+ 24: "event"
70
+ },
71
+ productions_: [
72
+ 0,
73
+ [3, 3],
74
+ [4, 1],
75
+ [4, 1],
76
+ [4, 1],
77
+ [5, 0],
78
+ [5, 2],
79
+ [10, 2],
80
+ [10, 1],
81
+ [10, 1],
82
+ [10, 1],
83
+ [12, 1],
84
+ [12, 2],
85
+ [12, 2],
86
+ [12, 1],
87
+ [12, 1],
88
+ [12, 1],
89
+ [12, 1],
90
+ [21, 1],
91
+ [22, 1]
92
+ ],
93
+ performAction: /* @__PURE__ */ e(function(e, t, n, r, i, a, o) {
94
+ var s = a.length - 1;
95
+ switch (i) {
96
+ case 1: return a[s - 1];
97
+ case 3:
98
+ r.setDirection("LR");
99
+ break;
100
+ case 4:
101
+ r.setDirection("TD");
102
+ break;
103
+ case 5:
104
+ this.$ = [];
105
+ break;
106
+ case 6:
107
+ a[s - 1].push(a[s]), this.$ = a[s - 1];
108
+ break;
109
+ case 7:
110
+ case 8:
111
+ this.$ = a[s];
112
+ break;
113
+ case 9:
114
+ case 10:
115
+ this.$ = [];
116
+ break;
117
+ case 11:
118
+ r.getCommonDb().setDiagramTitle(a[s].substr(6)), this.$ = a[s].substr(6);
119
+ break;
120
+ case 12:
121
+ this.$ = a[s].trim(), r.getCommonDb().setAccTitle(this.$);
122
+ break;
123
+ case 13:
124
+ case 14:
125
+ this.$ = a[s].trim(), r.getCommonDb().setAccDescription(this.$);
126
+ break;
127
+ case 15:
128
+ r.addSection(a[s].substr(8)), this.$ = a[s].substr(8);
129
+ break;
130
+ case 18:
131
+ r.addTask(a[s], 0, ""), this.$ = a[s];
132
+ break;
133
+ case 19:
134
+ r.addEvent(a[s].substr(2)), this.$ = a[s];
135
+ break;
136
+ }
137
+ }, "anonymous"),
138
+ table: [
139
+ {
140
+ 3: 1,
141
+ 4: 2,
142
+ 7: [1, 3],
143
+ 8: [1, 4],
144
+ 9: [1, 5]
145
+ },
146
+ { 1: [3] },
147
+ t(n, [2, 5], { 5: 6 }),
148
+ t(n, [2, 2]),
149
+ t(n, [2, 3]),
150
+ t(n, [2, 4]),
151
+ {
152
+ 6: [1, 7],
153
+ 10: 8,
154
+ 11: [1, 9],
155
+ 12: 10,
156
+ 13: [1, 11],
157
+ 14: r,
158
+ 15: i,
159
+ 17: a,
160
+ 19: o,
161
+ 20: s,
162
+ 21: 17,
163
+ 22: 18,
164
+ 23: c,
165
+ 24: l
166
+ },
167
+ t(n, [2, 10], { 1: [2, 1] }),
168
+ t(n, [2, 6]),
169
+ {
170
+ 12: 21,
171
+ 14: r,
172
+ 15: i,
173
+ 17: a,
174
+ 19: o,
175
+ 20: s,
176
+ 21: 17,
177
+ 22: 18,
178
+ 23: c,
179
+ 24: l
180
+ },
181
+ t(n, [2, 8]),
182
+ t(n, [2, 9]),
183
+ t(n, [2, 11]),
184
+ { 16: [1, 22] },
185
+ { 18: [1, 23] },
186
+ t(n, [2, 14]),
187
+ t(n, [2, 15]),
188
+ t(n, [2, 16]),
189
+ t(n, [2, 17]),
190
+ t(n, [2, 18]),
191
+ t(n, [2, 19]),
192
+ t(n, [2, 7]),
193
+ t(n, [2, 12]),
194
+ t(n, [2, 13])
195
+ ],
196
+ defaultActions: {},
197
+ parseError: /* @__PURE__ */ e(function(e, t) {
198
+ if (t.recoverable) this.trace(e);
199
+ else {
200
+ var n = Error(e);
201
+ throw n.hash = t, n;
202
+ }
203
+ }, "parseError"),
204
+ parse: /* @__PURE__ */ e(function(t) {
205
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
206
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
207
+ h.setInput(t, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
208
+ var v = h.yylloc;
209
+ o.push(v);
210
+ var y = h.options && h.options.ranges;
211
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
+ function b(e) {
213
+ r.length -= 2 * e, a.length -= e, o.length -= e;
214
+ }
215
+ e(b, "popStack");
216
+ function x() {
217
+ var e = i.pop() || h.lex() || p;
218
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
219
+ }
220
+ e(x, "lex");
221
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
222
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
223
+ var M = "";
224
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
225
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
226
+ text: h.match,
227
+ token: this.terminals_[S] || S,
228
+ line: h.yylineno,
229
+ loc: v,
230
+ expected: j
231
+ });
232
+ }
233
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
234
+ switch (T[0]) {
235
+ case 1:
236
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
237
+ break;
238
+ case 2:
239
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
240
+ first_line: o[o.length - (k || 1)].first_line,
241
+ last_line: o[o.length - 1].last_line,
242
+ first_column: o[o.length - (k || 1)].first_column,
243
+ last_column: o[o.length - 1].last_column
244
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
245
+ c,
246
+ u,
247
+ l,
248
+ g.yy,
249
+ T[1],
250
+ a,
251
+ o
252
+ ].concat(m)), E !== void 0) return E;
253
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
254
+ break;
255
+ case 3: return !0;
256
+ }
257
+ }
258
+ return !0;
259
+ }, "parse")
260
+ };
261
+ u.lexer = /* @__PURE__ */ (function() {
262
+ return {
263
+ EOF: 1,
264
+ parseError: /* @__PURE__ */ e(function(e, t) {
265
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
266
+ else throw Error(e);
267
+ }, "parseError"),
268
+ setInput: /* @__PURE__ */ e(function(e, t) {
269
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
270
+ first_line: 1,
271
+ first_column: 0,
272
+ last_line: 1,
273
+ last_column: 0
274
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
275
+ }, "setInput"),
276
+ input: /* @__PURE__ */ e(function() {
277
+ var e = this._input[0];
278
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.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), e;
279
+ }, "input"),
280
+ unput: /* @__PURE__ */ e(function(e) {
281
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
282
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
283
+ var r = this.match.split(/(?:\r\n?|\n)/g);
284
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
285
+ var i = this.yylloc.range;
286
+ return this.yylloc = {
287
+ first_line: this.yylloc.first_line,
288
+ last_line: this.yylineno + 1,
289
+ first_column: this.yylloc.first_column,
290
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
291
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
292
+ }, "unput"),
293
+ more: /* @__PURE__ */ e(function() {
294
+ return this._more = !0, this;
295
+ }, "more"),
296
+ reject: /* @__PURE__ */ e(function() {
297
+ if (this.options.backtrack_lexer) this._backtrack = !0;
298
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
299
+ text: "",
300
+ token: null,
301
+ line: this.yylineno
302
+ });
303
+ return this;
304
+ }, "reject"),
305
+ less: /* @__PURE__ */ e(function(e) {
306
+ this.unput(this.match.slice(e));
307
+ }, "less"),
308
+ pastInput: /* @__PURE__ */ e(function() {
309
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
310
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
311
+ }, "pastInput"),
312
+ upcomingInput: /* @__PURE__ */ e(function() {
313
+ var e = this.match;
314
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
315
+ }, "upcomingInput"),
316
+ showPosition: /* @__PURE__ */ e(function() {
317
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
318
+ return e + this.upcomingInput() + "\n" + t + "^";
319
+ }, "showPosition"),
320
+ test_match: /* @__PURE__ */ e(function(e, t) {
321
+ var n, r, i;
322
+ if (this.options.backtrack_lexer && (i = {
323
+ yylineno: this.yylineno,
324
+ yylloc: {
325
+ first_line: this.yylloc.first_line,
326
+ last_line: this.last_line,
327
+ first_column: this.yylloc.first_column,
328
+ last_column: this.yylloc.last_column
329
+ },
330
+ yytext: this.yytext,
331
+ match: this.match,
332
+ matches: this.matches,
333
+ matched: this.matched,
334
+ yyleng: this.yyleng,
335
+ offset: this.offset,
336
+ _more: this._more,
337
+ _input: this._input,
338
+ yy: this.yy,
339
+ conditionStack: this.conditionStack.slice(0),
340
+ done: this.done
341
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
342
+ first_line: this.yylloc.last_line,
343
+ last_line: this.yylineno + 1,
344
+ first_column: this.yylloc.last_column,
345
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
346
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
347
+ if (this._backtrack) {
348
+ for (var a in i) this[a] = i[a];
349
+ return !1;
350
+ }
351
+ return !1;
352
+ }, "test_match"),
353
+ next: /* @__PURE__ */ e(function() {
354
+ if (this.done) return this.EOF;
355
+ this._input || (this.done = !0);
356
+ var e, t, n, r;
357
+ this._more || (this.yytext = "", this.match = "");
358
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
359
+ if (t = n, r = a, this.options.backtrack_lexer) {
360
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
361
+ if (this._backtrack) {
362
+ t = !1;
363
+ continue;
364
+ } else return !1;
365
+ } else if (!this.options.flex) break;
366
+ }
367
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
368
+ text: "",
369
+ token: null,
370
+ line: this.yylineno
371
+ });
372
+ }, "next"),
373
+ lex: /* @__PURE__ */ e(function() {
374
+ return this.next() || this.lex();
375
+ }, "lex"),
376
+ begin: /* @__PURE__ */ e(function(e) {
377
+ this.conditionStack.push(e);
378
+ }, "begin"),
379
+ popState: /* @__PURE__ */ e(function() {
380
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
381
+ }, "popState"),
382
+ _currentRules: /* @__PURE__ */ e(function() {
383
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
384
+ }, "_currentRules"),
385
+ topState: /* @__PURE__ */ e(function(e) {
386
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
387
+ }, "topState"),
388
+ pushState: /* @__PURE__ */ e(function(e) {
389
+ this.begin(e);
390
+ }, "pushState"),
391
+ stateStackSize: /* @__PURE__ */ e(function() {
392
+ return this.conditionStack.length;
393
+ }, "stateStackSize"),
394
+ options: { "case-insensitive": !0 },
395
+ performAction: /* @__PURE__ */ e(function(e, t, n, r) {
396
+ switch (n) {
397
+ case 0: break;
398
+ case 1: break;
399
+ case 2: return 13;
400
+ case 3: break;
401
+ case 4: break;
402
+ case 5: return 8;
403
+ case 6: return 9;
404
+ case 7: return 7;
405
+ case 8: return 14;
406
+ case 9: return this.begin("acc_title"), 15;
407
+ case 10: return this.popState(), "acc_title_value";
408
+ case 11: return this.begin("acc_descr"), 17;
409
+ case 12: return this.popState(), "acc_descr_value";
410
+ case 13:
411
+ this.begin("acc_descr_multiline");
412
+ break;
413
+ case 14:
414
+ this.popState();
415
+ break;
416
+ case 15: return "acc_descr_multiline_value";
417
+ case 16: return 20;
418
+ case 17: return 24;
419
+ case 18: return 23;
420
+ case 19: return 6;
421
+ case 20: return "INVALID";
422
+ }
423
+ }, "anonymous"),
424
+ rules: [
425
+ /^(?:%(?!\{)[^\n]*)/i,
426
+ /^(?:[^\}]%%[^\n]*)/i,
427
+ /^(?:[\n]+)/i,
428
+ /^(?:\s+)/i,
429
+ /^(?:#[^\n]*)/i,
430
+ /^(?:timeline[ \t]+LR\b)/i,
431
+ /^(?:timeline[ \t]+TD\b)/i,
432
+ /^(?:timeline\b)/i,
433
+ /^(?:title\s[^\n]+)/i,
434
+ /^(?:accTitle\s*:\s*)/i,
435
+ /^(?:(?!\n||)*[^\n]*)/i,
436
+ /^(?:accDescr\s*:\s*)/i,
437
+ /^(?:(?!\n||)*[^\n]*)/i,
438
+ /^(?:accDescr\s*\{\s*)/i,
439
+ /^(?:[\}])/i,
440
+ /^(?:[^\}]*)/i,
441
+ /^(?:section\s[^:\n]+)/i,
442
+ /^(?::\s(?:[^:\n]|:(?!\s))+)/i,
443
+ /^(?:[^#:\n]+)/i,
444
+ /^(?:$)/i,
445
+ /^(?:.)/i
446
+ ],
447
+ conditions: {
448
+ acc_descr_multiline: {
449
+ rules: [14, 15],
450
+ inclusive: !1
451
+ },
452
+ acc_descr: {
453
+ rules: [12],
454
+ inclusive: !1
455
+ },
456
+ acc_title: {
457
+ rules: [10],
458
+ inclusive: !1
459
+ },
460
+ INITIAL: {
461
+ rules: [
462
+ 0,
463
+ 1,
464
+ 2,
465
+ 3,
466
+ 4,
467
+ 5,
468
+ 6,
469
+ 7,
470
+ 8,
471
+ 9,
472
+ 11,
473
+ 13,
474
+ 16,
475
+ 17,
476
+ 18,
477
+ 19,
478
+ 20
479
+ ],
480
+ inclusive: !0
481
+ }
482
+ }
483
+ };
484
+ })();
485
+ function d() {
486
+ this.yy = {};
487
+ }
488
+ return e(d, "Parser"), d.prototype = u, u.Parser = d, new d();
489
+ })();
490
+ h.parser = h;
491
+ var g = h, _ = {};
492
+ t(_, {
493
+ addEvent: () => M,
494
+ addSection: () => O,
495
+ addTask: () => j,
496
+ addTaskOrg: () => N,
497
+ clear: () => T,
498
+ default: () => ee,
499
+ getCommonDb: () => w,
500
+ getDirection: () => D,
501
+ getSections: () => k,
502
+ getTasks: () => A,
503
+ setDirection: () => E
504
+ });
505
+ var v = "", y = 0, b = "LR", x = [], S = [], C = [], w = /* @__PURE__ */ e(() => c, "getCommonDb"), T = /* @__PURE__ */ e(function() {
506
+ x.length = 0, S.length = 0, v = "", C.length = 0, b = "LR", a();
507
+ }, "clear"), E = /* @__PURE__ */ e(function(e) {
508
+ b = e;
509
+ }, "setDirection"), D = /* @__PURE__ */ e(function() {
510
+ return b;
511
+ }, "getDirection"), O = /* @__PURE__ */ e(function(e) {
512
+ v = e, x.push(e);
513
+ }, "addSection"), k = /* @__PURE__ */ e(function() {
514
+ return x;
515
+ }, "getSections"), A = /* @__PURE__ */ e(function() {
516
+ let e = P(), t = 0;
517
+ for (; !e && t < 100;) e = P(), t++;
518
+ return S.push(...C), S;
519
+ }, "getTasks"), j = /* @__PURE__ */ e(function(e, t, n) {
520
+ let r = {
521
+ id: y++,
522
+ section: v,
523
+ type: v,
524
+ task: e,
525
+ score: t || 0,
526
+ events: n ? [n] : []
527
+ };
528
+ C.push(r);
529
+ }, "addTask"), M = /* @__PURE__ */ e(function(e) {
530
+ C.find((e) => e.id === y - 1).events.push(e);
531
+ }, "addEvent"), N = /* @__PURE__ */ e(function(e) {
532
+ let t = {
533
+ section: v,
534
+ type: v,
535
+ description: e,
536
+ task: e,
537
+ classes: []
538
+ };
539
+ S.push(t);
540
+ }, "addTaskOrg"), P = /* @__PURE__ */ e(function() {
541
+ let t = /* @__PURE__ */ e(function(e) {
542
+ return C[e].processed;
543
+ }, "compileTask"), n = !0;
544
+ for (let [e, r] of C.entries()) t(e), n &&= r.processed;
545
+ return n;
546
+ }, "compileTasks"), ee = {
547
+ clear: T,
548
+ getCommonDb: w,
549
+ getDirection: D,
550
+ setDirection: E,
551
+ addSection: O,
552
+ getSections: k,
553
+ getTasks: A,
554
+ addTask: j,
555
+ addTaskOrg: N,
556
+ addEvent: M
557
+ }, F = 0, I = /* @__PURE__ */ e(function(e, t) {
558
+ let n = e.append("rect");
559
+ return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
560
+ }, "drawRect"), te = /* @__PURE__ */ e(function(t, n) {
561
+ let r = t.append("circle").attr("cx", n.cx).attr("cy", n.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g");
562
+ i.append("circle").attr("cx", n.cx - 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", n.cx + 15 / 3).attr("cy", n.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
563
+ function a(e) {
564
+ let t = f().startAngle(Math.PI / 2).endAngle(Math.PI / 2 * 3).innerRadius(15 / 2).outerRadius(15 / 2.2);
565
+ e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 2) + ")");
566
+ }
567
+ e(a, "smile");
568
+ function o(e) {
569
+ let t = f().startAngle(3 * Math.PI / 2).endAngle(Math.PI / 2 * 5).innerRadius(15 / 2).outerRadius(15 / 2.2);
570
+ e.append("path").attr("class", "mouth").attr("d", t).attr("transform", "translate(" + n.cx + "," + (n.cy + 7) + ")");
571
+ }
572
+ e(o, "sad");
573
+ function s(e) {
574
+ e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", n.cx - 5).attr("y1", n.cy + 7).attr("x2", n.cx + 5).attr("y2", n.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
575
+ }
576
+ return e(s, "ambivalent"), n.score > 3 ? a(i) : n.score < 3 ? o(i) : s(i), r;
577
+ }, "drawFace"), ne = /* @__PURE__ */ e(function(e, t) {
578
+ let n = e.append("circle");
579
+ return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
580
+ }, "drawCircle"), L = /* @__PURE__ */ e(function(e, t) {
581
+ let n = t.text.replace(/<br\s*\/?>/gi, " "), r = e.append("text");
582
+ r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class !== void 0 && r.attr("class", t.class);
583
+ let i = r.append("tspan");
584
+ return i.attr("x", t.x + t.textMargin * 2), i.text(n), r;
585
+ }, "drawText"), re = /* @__PURE__ */ e(function(t, n) {
586
+ function r(e, t, n, r, i) {
587
+ return e + "," + t + " " + (e + n) + "," + t + " " + (e + n) + "," + (t + r - i) + " " + (e + n - i * 1.2) + "," + (t + r) + " " + e + "," + (t + r);
588
+ }
589
+ e(r, "genPoints");
590
+ let i = t.append("polygon");
591
+ i.attr("points", r(n.x, n.y, 50, 20, 7)), i.attr("class", "labelBox"), n.y += n.labelMargin, n.x += .5 * n.labelMargin, L(t, n);
592
+ }, "drawLabel"), R = /* @__PURE__ */ e(function(e, t, n) {
593
+ let r = e.append("g"), i = B();
594
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = n.width, i.height = n.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, I(r, i), V(n)(t.text, r, i.x, i.y, i.width, i.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
595
+ }, "drawSection"), z = -1, ie = /* @__PURE__ */ e(function(e, t, n, r) {
596
+ let i = t.x + n.width / 2, a = e.append("g");
597
+ z++, a.append("line").attr("id", r + "-task" + z).attr("x1", i).attr("y1", t.y).attr("x2", i).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), te(a, {
598
+ cx: i,
599
+ cy: 300 + (5 - t.score) * 30,
600
+ score: t.score
601
+ });
602
+ let o = B();
603
+ o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = n.width, o.height = n.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, I(a, o), V(n)(t.task, a, o.x, o.y, o.width, o.height, { class: "task" }, n, t.colour);
604
+ }, "drawTask"), ae = /* @__PURE__ */ e(function(e, t) {
605
+ I(e, {
606
+ x: t.startx,
607
+ y: t.starty,
608
+ width: t.stopx - t.startx,
609
+ height: t.stopy - t.starty,
610
+ fill: t.fill,
611
+ class: "rect"
612
+ }).lower();
613
+ }, "drawBackgroundRect"), oe = /* @__PURE__ */ e(function() {
614
+ return {
615
+ x: 0,
616
+ y: 0,
617
+ fill: void 0,
618
+ "text-anchor": "start",
619
+ width: 100,
620
+ height: 100,
621
+ textMargin: 0,
622
+ rx: 0,
623
+ ry: 0
624
+ };
625
+ }, "getTextObj"), B = /* @__PURE__ */ e(function() {
626
+ return {
627
+ x: 0,
628
+ y: 0,
629
+ width: 100,
630
+ anchor: "start",
631
+ height: 100,
632
+ rx: 0,
633
+ ry: 0
634
+ };
635
+ }, "getNoteRect"), V = /* @__PURE__ */ (function() {
636
+ function t(e, t, n, r, a, o, s, c) {
637
+ i(t.append("text").attr("x", n + a / 2).attr("y", r + o / 2 + 5).style("font-color", c).style("text-anchor", "middle").text(e), s);
638
+ }
639
+ e(t, "byText");
640
+ function n(e, t, n, r, a, o, s, c, l) {
641
+ let { taskFontSize: u, taskFontFamily: d } = c, f = e.split(/<br\s*\/?>/gi);
642
+ for (let e = 0; e < f.length; e++) {
643
+ let c = e * u - u * (f.length - 1) / 2, p = t.append("text").attr("x", n + a / 2).attr("y", r).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
644
+ p.append("tspan").attr("x", n + a / 2).attr("dy", c).text(f[e]), p.attr("y", r + o / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(p, s);
645
+ }
646
+ }
647
+ e(n, "byTspan");
648
+ function r(e, t, r, a, o, s, c, l) {
649
+ let u = t.append("switch"), d = u.append("foreignObject").attr("x", r).attr("y", a).attr("width", o).attr("height", s).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
650
+ d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), n(e, u, r, a, o, s, c, l), i(d, c);
651
+ }
652
+ e(r, "byFo");
653
+ function i(e, t) {
654
+ for (let n in t) n in t && e.attr(n, t[n]);
655
+ }
656
+ return e(i, "_setTextAttrs"), function(e) {
657
+ return e.textPlacement === "fo" ? r : e.textPlacement === "old" ? t : n;
658
+ };
659
+ })(), se = /* @__PURE__ */ e(function(e, t) {
660
+ F = 0, z = -1, e.append("defs").append("marker").attr("id", t + "-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");
661
+ }, "initGraphics");
662
+ function H(e, t) {
663
+ e.each(function() {
664
+ var e = r(this), n = e.text().split(/(\s+|<br>)/).reverse(), i, a = [], o = 1.1, s = e.attr("y"), c = parseFloat(e.attr("dy")), l = e.text(null).append("tspan").attr("x", 0).attr("y", s).attr("dy", c + "em");
665
+ for (let r = 0; r < n.length; r++) i = n[n.length - 1 - r], a.push(i), l.text(a.join(" ").trim()), (l.node().getComputedTextLength() > t || i === "<br>") && (a.pop(), l.text(a.join(" ").trim()), a = i === "<br>" ? [""] : [i], l = e.append("tspan").attr("x", 0).attr("y", s).attr("dy", o + "em").text(i));
666
+ });
667
+ }
668
+ e(H, "wrap");
669
+ var ce = /* @__PURE__ */ e(function(e, t, n, i, a, o = !1) {
670
+ let { theme: s, look: c } = i, l = s?.includes("redux"), u = n % (i?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, d = e.append("g");
671
+ t.section = u, d.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + u));
672
+ let f = d.append("g"), p = d.append("g"), m = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), h = i.fontSize?.replace ? i.fontSize.replace("px", "") : i.fontSize;
673
+ if (t.height = m.height + h * 1.1 * .5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width += 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), l && p.attr("transform", `translate(${t.width / 2}, ${o ? t.padding / 2 + 3 : t.padding})`), ue(f, t, u, a, i), c === "neo" && (d.attr("data-look", "neo"), l)) {
674
+ let t = s.includes("dark"), n = r(e.node()?.ownerSVGElement ?? e.node()), i = n.attr("id") ?? "", a = i ? `${i}-drop-shadow` : "drop-shadow";
675
+ if (n.select(`#${a}`).empty()) {
676
+ let e = n.select("defs");
677
+ (e.empty() ? n.append("defs") : e).append("filter").attr("id", a).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", t ? "0.2" : "0.06").attr("flood-color", t ? "#FFFFFF" : "#000000");
678
+ }
679
+ }
680
+ return t;
681
+ }, "drawNode"), le = /* @__PURE__ */ e(function(e, t, n) {
682
+ let r = e.append("g"), i = r.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(H, t.width).node().getBBox(), a = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
683
+ return r.remove(), i.height + a * 1.1 * .5 + t.padding;
684
+ }, "getVirtualNodeHeight"), ue = /* @__PURE__ */ e(function(e, t, n, r, i) {
685
+ let { theme: a } = i, o = a?.includes("redux") ? 0 : 5, s = o > 0 ? `M0 ${t.height - 5} v${-t.height + 10} q0,-${o},${o},-${o} h${t.width - 10} q${o},0,${o},${o} v${t.height - 5} H0 Z` : `M0 ${t.height - 5} v${-(t.height - 5)} h${t.width} v${t.height} H0 Z`;
686
+ e.append("path").attr("id", r + "-node-" + F++).attr("class", "node-bkg node-" + t.type).attr("d", s), a?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
687
+ }, "defaultBkg"), U = {
688
+ drawRect: I,
689
+ drawCircle: ne,
690
+ drawSection: R,
691
+ drawText: L,
692
+ drawLabel: re,
693
+ drawTask: ie,
694
+ drawBackgroundRect: ae,
695
+ getTextObj: oe,
696
+ getNoteRect: B,
697
+ initGraphics: se,
698
+ drawNode: ce,
699
+ getVirtualNodeHeight: le
700
+ }, de = /* @__PURE__ */ e(function(e, t, a, o) {
701
+ let s = d(), { look: c, theme: l, themeVariables: u } = s, { useGradient: f, gradientStart: p, gradientStop: m } = u, h = s.timeline?.leftMargin ?? 50;
702
+ n.debug("timeline", o.db);
703
+ let g = s.securityLevel, _;
704
+ g === "sandbox" && (_ = r("#i" + t));
705
+ let v = r(g === "sandbox" ? _.nodes()[0].contentDocument.body : "body").select("#" + t);
706
+ v.append("g");
707
+ let y = o.db.getTasks(), b = o.db.getCommonDb().getDiagramTitle();
708
+ n.debug("task", y), U.initGraphics(v, t);
709
+ let x = o.db.getSections();
710
+ n.debug("sections", x);
711
+ let S = 0, C = 0, w = 0, T = 0, E = 50 + h, D = 50;
712
+ T = 50;
713
+ let O = 0, k = !0;
714
+ x.forEach(function(e) {
715
+ let t = {
716
+ number: O,
717
+ descr: e,
718
+ section: O,
719
+ width: 150,
720
+ padding: 20,
721
+ maxHeight: S
722
+ }, r = U.getVirtualNodeHeight(v, t, s);
723
+ n.debug("sectionHeight before draw", r), S = Math.max(S, r + 20);
724
+ });
725
+ let A = 0, j = 0;
726
+ n.debug("tasks.length", y.length);
727
+ for (let [e, t] of y.entries()) {
728
+ let r = {
729
+ number: e,
730
+ descr: t,
731
+ section: t.section,
732
+ width: 150,
733
+ padding: 20,
734
+ maxHeight: C
735
+ }, i = U.getVirtualNodeHeight(v, r, s);
736
+ n.debug("taskHeight before draw", i), C = Math.max(C, i + 20), A = Math.max(A, t.events.length);
737
+ let a = 0;
738
+ for (let e of t.events) {
739
+ let n = {
740
+ descr: e,
741
+ section: t.section,
742
+ number: t.section,
743
+ width: 150,
744
+ padding: 20,
745
+ maxHeight: 50
746
+ };
747
+ a += U.getVirtualNodeHeight(v, n, s);
748
+ }
749
+ t.events.length > 0 && (a += (t.events.length - 1) * 10), j = Math.max(j, a);
750
+ }
751
+ n.debug("maxSectionHeight before draw", S), n.debug("maxTaskHeight before draw", C), x && x.length > 0 ? x.forEach((e) => {
752
+ let r = y.filter((t) => t.section === e), i = {
753
+ number: O,
754
+ descr: e,
755
+ section: O,
756
+ width: 200 * Math.max(r.length, 1) - 50,
757
+ padding: 20,
758
+ maxHeight: S
759
+ };
760
+ n.debug("sectionNode", i);
761
+ let a = v.append("g"), o = U.drawNode(a, i, O, s, t);
762
+ n.debug("sectionNode output", o), a.attr("transform", `translate(${E}, ${T})`), D += S + 50, r.length > 0 && W(v, r, O, E, D, C, s, A, j, S, !1, t), E += 200 * Math.max(r.length, 1), D = T, O++;
763
+ }) : (k = !1, W(v, y, O, E, D, C, s, A, j, S, !0, t));
764
+ let M = v.node().getBBox();
765
+ if (n.debug("bounds", M), b && v.append("text").text(b).attr("x", c === "neo" ? M.x * 2 + h : M.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), w = k ? S + C + 150 : C + 100, v.append("g").attr("class", "lineWrapper").append("line").attr("x1", h).attr("y1", w).attr("x2", M.width + 3 * h).attr("y2", w).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), c === "neo" && f && l !== "neutral") {
766
+ let e = v.select("defs"), t = (e.empty() ? v.append("defs") : e).append("linearGradient").attr("id", v.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
767
+ t.append("stop").attr("offset", "0%").attr("stop-color", p).attr("stop-opacity", 1), t.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
768
+ }
769
+ i(void 0, v, s.timeline?.padding ?? 50, s.timeline?.useMaxWidth ?? !1);
770
+ }, "draw"), W = /* @__PURE__ */ e(function(e, t, r, i, a, o, s, c, l, u, d, f) {
771
+ for (let c of t) {
772
+ let t = {
773
+ descr: c.task,
774
+ section: r,
775
+ number: r,
776
+ width: 150,
777
+ padding: 20,
778
+ maxHeight: o
779
+ };
780
+ n.debug("taskNode", t);
781
+ let u = e.append("g").attr("class", "taskWrapper"), p = U.drawNode(u, t, r, s, f).height;
782
+ if (n.debug("taskHeight after draw", p), u.attr("transform", `translate(${i}, ${a})`), o = Math.max(o, p), c.events) {
783
+ let t = e.append("g").attr("class", "lineWrapper"), n = o;
784
+ a += 100, n += fe(e, c.events, r, i, a, s, f), a -= 100, t.append("line").attr("x1", i + 190 / 2).attr("y1", a + o).attr("x2", i + 190 / 2).attr("y2", a + o + 100 + l + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${f}-arrowhead)`).attr("stroke-dasharray", "5,5");
785
+ }
786
+ i += 200, d && !s.timeline?.disableMulticolor && r++;
787
+ }
788
+ a -= 10;
789
+ }, "drawTasks"), fe = /* @__PURE__ */ e(function(e, t, r, i, a, o, s) {
790
+ let c = 0, l = a;
791
+ a += 100;
792
+ for (let l of t) {
793
+ let t = {
794
+ descr: l,
795
+ section: r,
796
+ number: r,
797
+ width: 150,
798
+ padding: 20,
799
+ maxHeight: 50
800
+ };
801
+ n.debug("eventNode", t);
802
+ let u = e.append("g").attr("class", "eventWrapper"), d = U.drawNode(u, t, r, o, s, !0).height;
803
+ c += d, u.attr("transform", `translate(${i}, ${a})`), a = a + 10 + d;
804
+ }
805
+ return a = l, c;
806
+ }, "drawEvents"), pe = {
807
+ setConf: /* @__PURE__ */ e(() => {}, "setConf"),
808
+ draw: de
809
+ }, G = 200, K = 5, me = G + K * 2, q = G + 100, he = q + K * 2, J = 10, ge = 0, Y = 20, X = 20, Z = 30, Q = 50, _e = /* @__PURE__ */ e(function(e, t, r, a) {
810
+ let o = d(), s = o.timeline?.leftMargin ?? 50;
811
+ n.debug("timeline", a.db);
812
+ let c = m(t);
813
+ c.append("g");
814
+ let l = a.db.getTasks(), u = a.db.getCommonDb().getDiagramTitle();
815
+ n.debug("task", l), U.initGraphics(c);
816
+ let f = a.db.getSections();
817
+ n.debug("sections", f);
818
+ let h = 0, g = 0, _ = 50 + s, v = 50, y = v, b = _, x = me + X, S = he + Q, C = b + x, w = 0, T = f && f.length > 0, E = T ? C : _ + x, D = Math.max(50, x + S - K * 2);
819
+ f.forEach(function(e) {
820
+ let t = {
821
+ number: w,
822
+ descr: e,
823
+ section: w,
824
+ width: D,
825
+ padding: K,
826
+ maxHeight: h
827
+ }, r = U.getVirtualNodeHeight(c, t, o);
828
+ n.debug("sectionHeight before draw", r), h = Math.max(h, r);
829
+ });
830
+ let O = 0;
831
+ n.debug("tasks.length", l.length);
832
+ for (let [e, t] of l.entries()) {
833
+ let r = {
834
+ number: e,
835
+ descr: t,
836
+ section: t.section,
837
+ width: G,
838
+ padding: K,
839
+ maxHeight: g
840
+ }, i = U.getVirtualNodeHeight(c, r, o);
841
+ n.debug("taskHeight before draw", i), g = Math.max(g, i);
842
+ let a = 0;
843
+ for (let e of t.events) {
844
+ let n = {
845
+ descr: e,
846
+ section: t.section,
847
+ number: t.section,
848
+ width: q,
849
+ padding: K,
850
+ maxHeight: 50
851
+ };
852
+ a += U.getVirtualNodeHeight(c, n, o);
853
+ }
854
+ t.events.length > 0 && (a += (t.events.length - 1) * J), O = Math.max(O, a) + ge;
855
+ }
856
+ n.debug("maxSectionHeight before draw", h), n.debug("maxTaskHeight before draw", g);
857
+ let k = Math.max(g, O) + Z;
858
+ T ? f.forEach((e) => {
859
+ let t = l.filter((t) => t.section === e), r = {
860
+ number: w,
861
+ descr: e,
862
+ section: w,
863
+ width: D,
864
+ padding: K,
865
+ maxHeight: h
866
+ };
867
+ n.debug("sectionNode", r);
868
+ let i = c.append("g"), a = U.drawNode(i, r, w, o);
869
+ n.debug("sectionNode output", a);
870
+ let s = E - x;
871
+ i.attr("transform", `translate(${s}, ${v})`);
872
+ let u = v + a.height + Y;
873
+ t.length > 0 && $(c, t, w, E, u, g, o, k, !1);
874
+ let d = t.length, f = a.height + Y + k * Math.max(d, 1) - (d > 0 ? Z * 2 : 0);
875
+ v += f, w++;
876
+ }) : $(c, l, w, E, v, g, o, k, !0);
877
+ let A = c.node()?.getBBox();
878
+ if (!A) throw Error("bbox not found");
879
+ if (n.debug("bounds", A), u) {
880
+ if (c.append("text").text(u).attr("x", A.width / 2 - s).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = c.node()?.getBBox(), !A) throw Error("bbox not found");
881
+ n.debug("bounds after title", A);
882
+ }
883
+ let [j] = p(o.fontSize), M = (j ?? 16) * 2, N = (j ?? 16) * .5 + 20, P = c.append("g").attr("class", "lineWrapper");
884
+ P.append("line").attr("x1", E).attr("y1", y - M).attr("x2", E).attr("y2", A.y + A.height + N).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), P.lower(), i(void 0, c, o.timeline?.padding ?? 50, o.timeline?.useMaxWidth ?? !1);
885
+ }, "draw"), $ = /* @__PURE__ */ e(function(e, t, r, i, a, o, s, c, l) {
886
+ for (let u of t) {
887
+ let t = {
888
+ descr: u.task,
889
+ section: r,
890
+ number: r,
891
+ width: G,
892
+ padding: K,
893
+ maxHeight: o
894
+ };
895
+ n.debug("taskNode", t);
896
+ let d = e.append("g").attr("class", "taskWrapper"), f = U.drawNode(d, t, r, s), p = f.height;
897
+ n.debug("taskHeight after draw", p);
898
+ let m = i - X - f.width;
899
+ if (d.attr("transform", `translate(${m}, ${a})`), o = Math.max(o, p), u.events && u.events.length > 0) {
900
+ let t = a, n = i + Q;
901
+ ve(e, u.events, r, i, n, t, s);
902
+ }
903
+ a += c, l && !s.timeline?.disableMulticolor && r++;
904
+ }
905
+ }, "drawTasks"), ve = /* @__PURE__ */ e(function(e, t, r, i, a, o, s) {
906
+ let c = o;
907
+ for (let o of t) {
908
+ let t = {
909
+ descr: o,
910
+ section: r,
911
+ number: r,
912
+ width: q,
913
+ padding: K,
914
+ maxHeight: 0
915
+ };
916
+ n.debug("eventNode", t);
917
+ let l = e.append("g").attr("class", "eventWrapper"), u = U.drawNode(l, t, r, s).height;
918
+ l.attr("transform", `translate(${a}, ${c})`);
919
+ let d = e.append("g").attr("class", "lineWrapper"), f = c + u / 2;
920
+ d.append("line").attr("x1", i).attr("y1", f).attr("x2", a).attr("y2", f).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), c = c + u + J;
921
+ }
922
+ return c - o;
923
+ }, "drawEvents"), ye = {
924
+ setConf: /* @__PURE__ */ e(() => {}, "setConf"),
925
+ draw: _e
926
+ }, be = /* @__PURE__ */ e((e) => {
927
+ let { theme: t } = o(), n = t?.includes("dark"), r = t?.includes("color"), i = e.svgId?.replace(/^#/, "") ?? "", a = i ? `url(#${i}-drop-shadow)` : e.dropShadow ?? "none", s = "";
928
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) {
929
+ let i = `${17 - 3 * t}`, o = r ? e.borderColorArray[t] : e.mainBkg, c = r ? e.borderColorArray[t] : e.nodeBorder;
930
+ s += `
931
+ .section-${t - 1} rect,
932
+ .section-${t - 1} path,
933
+ .section-${t - 1} circle {
934
+ fill: ${n && r ? e.mainBkg : o};
935
+ stroke: ${c};
936
+ stroke-width: ${e.strokeWidth};
937
+ filter: ${a};
938
+ }
939
+
940
+ .section-${t - 1} text {
941
+ fill: ${e.nodeBorder};
942
+ font-weight: ${e.fontWeight}
943
+ }
944
+
945
+ .node-icon-${t - 1} {
946
+ font-size: 40px;
947
+ color: ${e["cScaleLabel" + t]};
948
+ }
949
+
950
+ .section-edge-${t - 1} {
951
+ stroke: ${e["cScale" + t]};
952
+ }
953
+
954
+ .edge-depth-${t - 1} {
955
+ stroke-width: ${i};
956
+ }
957
+
958
+ .section-${t - 1} line {
959
+ stroke: ${e["cScaleInv" + t]};
960
+ stroke-width: 3;
961
+ }
962
+
963
+ .lineWrapper line {
964
+ stroke: ${e.nodeBorder};
965
+ stroke-width:${e.strokeWidth}
966
+ }
967
+
968
+ .disabled,
969
+ .disabled circle,
970
+ .disabled text {
971
+ fill: ${e.tertiaryColor ?? "lightgray"};
972
+ }
973
+
974
+ .disabled text {
975
+ fill: ${e.clusterBorder ?? "#efefef"};
976
+ }
977
+ `;
978
+ }
979
+ return s;
980
+ }, "genReduxSections"), xe = /* @__PURE__ */ e((e) => {
981
+ let t = "";
982
+ for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) e["lineColor" + t] = e["lineColor" + t] || e["cScaleInv" + t], l(e["lineColor" + t]) ? e["lineColor" + t] = u(e["lineColor" + t], 20) : e["lineColor" + t] = s(e["lineColor" + t], 20);
983
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
984
+ let r = "" + (17 - 3 * n);
985
+ t += `
986
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
987
+ fill: ${e["cScale" + n]};
988
+ }
989
+ .section-${n - 1} text {
990
+ fill: ${e["cScaleLabel" + n]};
991
+ }
992
+ .node-icon-${n - 1} {
993
+ font-size: 40px;
994
+ color: ${e["cScaleLabel" + n]};
995
+ }
996
+ .section-edge-${n - 1}{
997
+ stroke: ${e["cScale" + n]};
998
+ }
999
+ .edge-depth-${n - 1}{
1000
+ stroke-width: ${r};
1001
+ }
1002
+ .section-${n - 1} line {
1003
+ stroke: ${e["cScaleInv" + n]} ;
1004
+ stroke-width: 3;
1005
+ }
1006
+
1007
+ .lineWrapper line{
1008
+ stroke: ${e["cScaleLabel" + n]} ;
1009
+ }
1010
+
1011
+ .disabled, .disabled circle, .disabled text {
1012
+ fill: ${e.tertiaryColor ?? "lightgray"};
1013
+ }
1014
+ .disabled text {
1015
+ fill: ${e.clusterBorder ?? "#efefef"};
1016
+ }
1017
+ `;
1018
+ }
1019
+ return t;
1020
+ }, "genSections"), Se = {
1021
+ db: _,
1022
+ renderer: {
1023
+ setConf: /* @__PURE__ */ e(() => {}, "setConf"),
1024
+ draw: /* @__PURE__ */ e((e, t, n, r) => (r?.db?.getDirection?.() ?? "LR") === "TD" ? ye.draw(e, t, n, r) : pe.draw(e, t, n, r), "draw")
1025
+ },
1026
+ parser: g,
1027
+ styles: /* @__PURE__ */ e((e) => {
1028
+ let { theme: t } = o(), n = t?.includes("redux"), r = t === "neutral", i = e.svgId?.replace(/^#/, "") ?? "", a = "";
1029
+ if (e.useGradient && i && e.THEME_COLOR_LIMIT && !r) for (let t = 0; t < e.THEME_COLOR_LIMIT; t++) a += `
1030
+ .section-${t - 1}[data-look="neo"] rect,
1031
+ .section-${t - 1}[data-look="neo"] path,
1032
+ .section-${t - 1}[data-look="neo"] circle {
1033
+ fill: ${e.mainBkg};
1034
+ stroke: url(#${i}-gradient);
1035
+ stroke-width: 2;
1036
+ }
1037
+ .section-${t - 1}[data-look="neo"] line {
1038
+ stroke: url(#${i}-gradient);
1039
+ stroke-width: 2;
1040
+ }`;
1041
+ return `
1042
+ .edge {
1043
+ stroke-width: 3;
1044
+ }
1045
+ ${n ? be(e) : xe(e)}
1046
+ ${a}
1047
+ .section-root rect, .section-root path, .section-root circle {
1048
+ fill: ${e.git0};
1049
+ }
1050
+ .section-root text {
1051
+ fill: ${e.gitBranchLabel0};
1052
+ }
1053
+ .icon-container {
1054
+ height:100%;
1055
+ display: flex;
1056
+ justify-content: center;
1057
+ align-items: center;
1058
+ }
1059
+ .edge {
1060
+ fill: none;
1061
+ }
1062
+ .eventWrapper {
1063
+ filter: brightness(120%);
1064
+ }
1065
+ `;
1066
+ }, "getStyles")
1067
+ };
1068
+ //#endregion
1069
+ export { Se as diagram };