@altimateai/ui-components 0.0.77-beta.7 → 0.0.77

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 (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +24114 -67797
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2274 -2824
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +4788 -5963
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1315 -1308
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +151 -151
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +40 -24
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/storybook/Typography.stories.tsx +120 -93
  63. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  64. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  65. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  66. package/package.json +1 -1
  67. package/dist/abap.js +0 -6
  68. package/dist/actionscript-3.js +0 -6
  69. package/dist/ada.js +0 -6
  70. package/dist/andromeeda.js +0 -4
  71. package/dist/angular-html.js +0 -32
  72. package/dist/angular-ts.js +0 -21
  73. package/dist/apache.js +0 -6
  74. package/dist/apex.js +0 -6
  75. package/dist/apl.js +0 -16
  76. package/dist/applescript.js +0 -6
  77. package/dist/ara.js +0 -6
  78. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  79. package/dist/asciidoc.js +0 -6
  80. package/dist/asm.js +0 -6
  81. package/dist/astro.js +0 -18
  82. package/dist/aurora-x.js +0 -4
  83. package/dist/awk.js +0 -6
  84. package/dist/ayu-dark.js +0 -4
  85. package/dist/ballerina.js +0 -6
  86. package/dist/band.js +0 -46
  87. package/dist/bat.js +0 -6
  88. package/dist/beancount.js +0 -6
  89. package/dist/berry.js +0 -6
  90. package/dist/bibtex.js +0 -6
  91. package/dist/bicep.js +0 -6
  92. package/dist/blade.js +0 -20
  93. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  94. package/dist/bsl.js +0 -8
  95. package/dist/c.js +0 -6
  96. package/dist/c3.js +0 -6
  97. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  98. package/dist/cadence.js +0 -6
  99. package/dist/cairo.js +0 -8
  100. package/dist/catppuccin-frappe.js +0 -4
  101. package/dist/catppuccin-latte.js +0 -4
  102. package/dist/catppuccin-macchiato.js +0 -4
  103. package/dist/catppuccin-mocha.js +0 -4
  104. package/dist/chunk-4BX2VUAB2.js +0 -9
  105. package/dist/chunk-55IACEB62.js +0 -9
  106. package/dist/chunk-B4BG7PRW2.js +0 -1377
  107. package/dist/chunk-DI55MBZ52.js +0 -1382
  108. package/dist/chunk-FMBD7UC42.js +0 -19
  109. package/dist/chunk-QN33PNHL2.js +0 -20
  110. package/dist/chunk-QZHKN3VN2.js +0 -15
  111. package/dist/chunk-TZMSLE5B2.js +0 -64
  112. package/dist/clarity.js +0 -6
  113. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  114. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  115. package/dist/clojure.js +0 -6
  116. package/dist/cmake.js +0 -6
  117. package/dist/cobol.js +0 -10
  118. package/dist/code-block-37QAKDTI.js +0 -27
  119. package/dist/codeowners.js +0 -6
  120. package/dist/codeql.js +0 -6
  121. package/dist/coffee.js +0 -8
  122. package/dist/common-lisp.js +0 -6
  123. package/dist/coq.js +0 -6
  124. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  125. package/dist/cpp.js +0 -18
  126. package/dist/crystal.js +0 -18
  127. package/dist/csharp.js +0 -6
  128. package/dist/css.js +0 -6
  129. package/dist/csv.js +0 -6
  130. package/dist/cue.js +0 -6
  131. package/dist/cypher.js +0 -6
  132. package/dist/cytoscape-cose-bilkent.js +0 -2380
  133. package/dist/cytoscape-fcose.js +0 -3840
  134. package/dist/d.js +0 -6
  135. package/dist/dagre-6UL2VRFP2.js +0 -447
  136. package/dist/dark-plus.js +0 -4
  137. package/dist/dart.js +0 -6
  138. package/dist/dax.js +0 -6
  139. package/dist/desktop.js +0 -6
  140. package/dist/diagram-PSM6KHXK2.js +0 -319
  141. package/dist/diagram-QEK2KX5R2.js +0 -221
  142. package/dist/diagram-S2PKOQOG2.js +0 -143
  143. package/dist/diff.js +0 -6
  144. package/dist/docker.js +0 -6
  145. package/dist/dotenv.js +0 -6
  146. package/dist/dracula-soft.js +0 -4
  147. package/dist/dracula.js +0 -4
  148. package/dist/dream-maker.js +0 -6
  149. package/dist/edge.js +0 -12
  150. package/dist/elixir.js +0 -8
  151. package/dist/elm.js +0 -8
  152. package/dist/emacs-lisp.js +0 -6
  153. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  154. package/dist/erb.js +0 -10
  155. package/dist/erlang.js +0 -8
  156. package/dist/everforest-dark.js +0 -4
  157. package/dist/everforest-light.js +0 -4
  158. package/dist/fennel.js +0 -6
  159. package/dist/fish.js +0 -6
  160. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  161. package/dist/fluent.js +0 -6
  162. package/dist/fortran-fixed-form.js +0 -8
  163. package/dist/fortran-free-form.js +0 -6
  164. package/dist/fsharp.js +0 -8
  165. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  166. package/dist/gdresource.js +0 -10
  167. package/dist/gdscript.js +0 -6
  168. package/dist/gdshader.js +0 -6
  169. package/dist/genie.js +0 -6
  170. package/dist/gherkin.js +0 -6
  171. package/dist/git-commit.js +0 -8
  172. package/dist/git-rebase.js +0 -8
  173. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  174. package/dist/github-dark-default.js +0 -4
  175. package/dist/github-dark-dimmed.js +0 -4
  176. package/dist/github-dark-high-contrast.js +0 -4
  177. package/dist/github-dark.js +0 -4
  178. package/dist/github-light-default.js +0 -4
  179. package/dist/github-light-high-contrast.js +0 -4
  180. package/dist/github-light.js +0 -4
  181. package/dist/gleam.js +0 -6
  182. package/dist/glimmer-js.js +0 -14
  183. package/dist/glimmer-ts.js +0 -14
  184. package/dist/glsl.js +0 -8
  185. package/dist/gn.js +0 -6
  186. package/dist/gnuplot.js +0 -6
  187. package/dist/go.js +0 -6
  188. package/dist/graph2.js +0 -246
  189. package/dist/graphql.js +0 -14
  190. package/dist/groovy.js +0 -6
  191. package/dist/gruvbox-dark-hard.js +0 -4
  192. package/dist/gruvbox-dark-medium.js +0 -4
  193. package/dist/gruvbox-dark-soft.js +0 -4
  194. package/dist/gruvbox-light-hard.js +0 -4
  195. package/dist/gruvbox-light-medium.js +0 -4
  196. package/dist/gruvbox-light-soft.js +0 -4
  197. package/dist/hack.js +0 -10
  198. package/dist/haml.js +0 -10
  199. package/dist/handlebars.js +0 -14
  200. package/dist/haskell.js +0 -6
  201. package/dist/haxe.js +0 -6
  202. package/dist/hcl.js +0 -6
  203. package/dist/hjson.js +0 -6
  204. package/dist/hlsl.js +0 -6
  205. package/dist/houston.js +0 -4
  206. package/dist/html-derivative.js +0 -8
  207. package/dist/html.js +0 -10
  208. package/dist/http.js +0 -14
  209. package/dist/hurl.js +0 -12
  210. package/dist/hxml.js +0 -8
  211. package/dist/hy.js +0 -6
  212. package/dist/imba.js +0 -6
  213. package/dist/index3.js +0 -689
  214. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  215. package/dist/ini.js +0 -6
  216. package/dist/java.js +0 -6
  217. package/dist/javascript.js +0 -6
  218. package/dist/jinja.js +0 -11
  219. package/dist/jison.js +0 -8
  220. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  221. package/dist/json.js +0 -6
  222. package/dist/json5.js +0 -6
  223. package/dist/jsonc.js +0 -6
  224. package/dist/jsonl.js +0 -6
  225. package/dist/jsonnet.js +0 -6
  226. package/dist/jssm.js +0 -6
  227. package/dist/jsx.js +0 -6
  228. package/dist/julia.js +0 -16
  229. package/dist/kanagawa-dragon.js +0 -4
  230. package/dist/kanagawa-lotus.js +0 -4
  231. package/dist/kanagawa-wave.js +0 -4
  232. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  233. package/dist/katex2.js +0 -11691
  234. package/dist/kdl.js +0 -6
  235. package/dist/kotlin.js +0 -6
  236. package/dist/kusto.js +0 -6
  237. package/dist/laserwave.js +0 -4
  238. package/dist/latex.js +0 -8
  239. package/dist/layout2.js +0 -1224
  240. package/dist/lean.js +0 -6
  241. package/dist/less.js +0 -6
  242. package/dist/light-plus.js +0 -4
  243. package/dist/liquid.js +0 -14
  244. package/dist/llvm.js +0 -6
  245. package/dist/log.js +0 -6
  246. package/dist/logo.js +0 -6
  247. package/dist/lua.js +0 -8
  248. package/dist/luau.js +0 -6
  249. package/dist/make.js +0 -6
  250. package/dist/markdown.js +0 -6
  251. package/dist/marko.js +0 -14
  252. package/dist/material-theme-darker.js +0 -4
  253. package/dist/material-theme-lighter.js +0 -4
  254. package/dist/material-theme-ocean.js +0 -4
  255. package/dist/material-theme-palenight.js +0 -4
  256. package/dist/material-theme.js +0 -4
  257. package/dist/matlab.js +0 -6
  258. package/dist/mdc.js +0 -12
  259. package/dist/mdx.js +0 -6
  260. package/dist/mermaid-4DMBBIKO.js +0 -4
  261. package/dist/mermaid.js +0 -6
  262. package/dist/min-dark.js +0 -4
  263. package/dist/min-light.js +0 -4
  264. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  265. package/dist/mipsasm.js +0 -6
  266. package/dist/mojo.js +0 -6
  267. package/dist/monokai.js +0 -4
  268. package/dist/moonbit.js +0 -6
  269. package/dist/move.js +0 -6
  270. package/dist/narrat.js +0 -6
  271. package/dist/nextflow.js +0 -6
  272. package/dist/nginx.js +0 -8
  273. package/dist/night-owl.js +0 -4
  274. package/dist/nim.js +0 -20
  275. package/dist/nix.js +0 -9
  276. package/dist/nord.js +0 -4
  277. package/dist/nushell.js +0 -6
  278. package/dist/objective-c.js +0 -6
  279. package/dist/objective-cpp.js +0 -6
  280. package/dist/ocaml.js +0 -6
  281. package/dist/one-dark-pro.js +0 -4
  282. package/dist/one-light.js +0 -4
  283. package/dist/openscad.js +0 -6
  284. package/dist/pascal.js +0 -6
  285. package/dist/perl.js +0 -16
  286. package/dist/php.js +0 -18
  287. package/dist/pie.js +0 -45
  288. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  289. package/dist/pkl.js +0 -6
  290. package/dist/plastic.js +0 -4
  291. package/dist/plsql.js +0 -6
  292. package/dist/po.js +0 -6
  293. package/dist/poimandres.js +0 -4
  294. package/dist/polar.js +0 -6
  295. package/dist/postcss.js +0 -6
  296. package/dist/powerquery.js +0 -6
  297. package/dist/powershell.js +0 -6
  298. package/dist/prisma.js +0 -6
  299. package/dist/prolog.js +0 -6
  300. package/dist/proto.js +0 -6
  301. package/dist/pug.js +0 -12
  302. package/dist/puppet.js +0 -6
  303. package/dist/purescript.js +0 -6
  304. package/dist/python.js +0 -6
  305. package/dist/qml.js +0 -8
  306. package/dist/qmldir.js +0 -6
  307. package/dist/qss.js +0 -6
  308. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  309. package/dist/r.js +0 -6
  310. package/dist/racket.js +0 -6
  311. package/dist/raku.js +0 -6
  312. package/dist/razor.js +0 -10
  313. package/dist/red.js +0 -4
  314. package/dist/reg.js +0 -6
  315. package/dist/regexp.js +0 -6
  316. package/dist/rel.js +0 -6
  317. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  318. package/dist/riscv.js +0 -6
  319. package/dist/rose-pine-dawn.js +0 -4
  320. package/dist/rose-pine-moon.js +0 -4
  321. package/dist/rose-pine.js +0 -4
  322. package/dist/rosmsg.js +0 -6
  323. package/dist/rst.js +0 -22
  324. package/dist/ruby.js +0 -30
  325. package/dist/rust.js +0 -6
  326. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  327. package/dist/sankeyLinkHorizontal.js +0 -403
  328. package/dist/sas.js +0 -8
  329. package/dist/sass.js +0 -6
  330. package/dist/scala.js +0 -6
  331. package/dist/scheme.js +0 -6
  332. package/dist/scss.js +0 -8
  333. package/dist/sdbl.js +0 -6
  334. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  335. package/dist/shaderlab.js +0 -8
  336. package/dist/shellscript.js +0 -6
  337. package/dist/shellsession.js +0 -8
  338. package/dist/slack-dark.js +0 -4
  339. package/dist/slack-ochin.js +0 -4
  340. package/dist/smalltalk.js +0 -6
  341. package/dist/snazzy-light.js +0 -4
  342. package/dist/solarized-dark.js +0 -4
  343. package/dist/solarized-light.js +0 -4
  344. package/dist/solidity.js +0 -6
  345. package/dist/soy.js +0 -8
  346. package/dist/sparql.js +0 -8
  347. package/dist/splunk.js +0 -6
  348. package/dist/sql.js +0 -6
  349. package/dist/ssh-config.js +0 -6
  350. package/dist/stata.js +0 -8
  351. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  352. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  353. package/dist/stylus.js +0 -6
  354. package/dist/svelte.js +0 -14
  355. package/dist/swift.js +0 -6
  356. package/dist/synthwave-84.js +0 -4
  357. package/dist/system-verilog.js +0 -6
  358. package/dist/systemd.js +0 -6
  359. package/dist/talonscript.js +0 -6
  360. package/dist/tasl.js +0 -6
  361. package/dist/tcl.js +0 -6
  362. package/dist/templ.js +0 -12
  363. package/dist/terraform.js +0 -6
  364. package/dist/tex.js +0 -8
  365. package/dist/time.js +0 -900
  366. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  367. package/dist/tokyo-night.js +0 -4
  368. package/dist/toml.js +0 -6
  369. package/dist/ts-tags.js +0 -41
  370. package/dist/tsv.js +0 -6
  371. package/dist/tsx.js +0 -6
  372. package/dist/turtle.js +0 -6
  373. package/dist/twig.js +0 -18
  374. package/dist/typescript.js +0 -6
  375. package/dist/typespec.js +0 -6
  376. package/dist/typst.js +0 -6
  377. package/dist/union.js +0 -8
  378. package/dist/v.js +0 -6
  379. package/dist/vala.js +0 -6
  380. package/dist/vb.js +0 -6
  381. package/dist/verilog.js +0 -6
  382. package/dist/vesper.js +0 -4
  383. package/dist/vhdl.js +0 -6
  384. package/dist/viml.js +0 -6
  385. package/dist/vitesse-black.js +0 -4
  386. package/dist/vitesse-dark.js +0 -4
  387. package/dist/vitesse-light.js +0 -4
  388. package/dist/vue-html.js +0 -8
  389. package/dist/vue-vine.js +0 -18
  390. package/dist/vue.js +0 -31
  391. package/dist/vyper.js +0 -6
  392. package/dist/wasm.js +0 -7
  393. package/dist/wasm2.js +0 -6
  394. package/dist/wenyan.js +0 -6
  395. package/dist/wgsl.js +0 -6
  396. package/dist/wikitext.js +0 -6
  397. package/dist/wit.js +0 -6
  398. package/dist/wolfram.js +0 -6
  399. package/dist/xml.js +0 -8
  400. package/dist/xsl.js +0 -8
  401. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  402. package/dist/yaml.js +0 -6
  403. package/dist/zenscript.js +0 -6
  404. package/dist/zig.js +0 -6
  405. package/dist/zipObject.js +0 -128
@@ -1,802 +0,0 @@
1
- import { aG as s, b5 as xt, bn as kt, b0 as vt, aM as bt, aS as E, bo as _t, Y as wt, $ as St, a0 as Et } from "./CoachForm.js";
2
- import { s as q } from "./redux-toolkit.modern.js";
3
- import { d as nt } from "./arc.js";
4
- var X = function() {
5
- var n = /* @__PURE__ */ s(function(f, i, a, h) {
6
- for (a = a || {}, h = f.length; h--; a[f[h]] = i) ;
7
- return a;
8
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
9
- trace: /* @__PURE__ */ s(function() {
10
- }, "trace"),
11
- yy: {},
12
- 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 },
13
- 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" },
14
- 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]],
15
- performAction: /* @__PURE__ */ s(function(i, a, h, u, y, o, S) {
16
- var k = o.length - 1;
17
- switch (y) {
18
- case 1:
19
- return o[k - 1];
20
- case 2:
21
- this.$ = [];
22
- break;
23
- case 3:
24
- o[k - 1].push(o[k]), this.$ = o[k - 1];
25
- break;
26
- case 4:
27
- case 5:
28
- this.$ = o[k];
29
- break;
30
- case 6:
31
- case 7:
32
- this.$ = [];
33
- break;
34
- case 8:
35
- u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
36
- break;
37
- case 9:
38
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
39
- break;
40
- case 10:
41
- case 11:
42
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
43
- break;
44
- case 12:
45
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
46
- break;
47
- case 15:
48
- u.addTask(o[k], 0, ""), this.$ = o[k];
49
- break;
50
- case 16:
51
- u.addEvent(o[k].substr(2)), this.$ = o[k];
52
- break;
53
- }
54
- }, "anonymous"),
55
- 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: r, 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: r, 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])],
56
- defaultActions: {},
57
- parseError: /* @__PURE__ */ s(function(i, a) {
58
- if (a.recoverable)
59
- this.trace(i);
60
- else {
61
- var h = new Error(i);
62
- throw h.hash = a, h;
63
- }
64
- }, "parseError"),
65
- parse: /* @__PURE__ */ s(function(i) {
66
- 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: {} };
67
- for (var L in this.yy)
68
- Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
69
- v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
70
- var _ = v.yylloc;
71
- o.push(_);
72
- var $ = v.options && v.options.ranges;
73
- typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
74
- function R(T) {
75
- h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
76
- }
77
- s(R, "popStack");
78
- function A() {
79
- var T;
80
- return T = u.pop() || v.lex() || J, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
81
- }
82
- s(A, "lex");
83
- for (var w, H, I, K, z = {}, j, P, et, G; ; ) {
84
- 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]) {
85
- var Q = "";
86
- G = [];
87
- for (j in S[H])
88
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
89
- v.showPosition ? Q = "Parse error on line " + (M + 1) + `:
90
- ` + v.showPosition() + `
91
- 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, {
92
- text: v.match,
93
- token: this.terminals_[w] || w,
94
- line: v.yylineno,
95
- loc: _,
96
- expected: G
97
- });
98
- }
99
- if (I[0] instanceof Array && I.length > 1)
100
- throw new Error("Parse Error: multiple actions possible at state: " + H + ", token: " + w);
101
- switch (I[0]) {
102
- case 1:
103
- 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, _ = v.yylloc;
104
- break;
105
- case 2:
106
- if (P = this.productions_[I[1]][1], z.$ = y[y.length - P], z._$ = {
107
- first_line: o[o.length - (P || 1)].first_line,
108
- last_line: o[o.length - 1].last_line,
109
- first_column: o[o.length - (P || 1)].first_column,
110
- last_column: o[o.length - 1].last_column
111
- }, $ && (z._$.range = [
112
- o[o.length - (P || 1)].range[0],
113
- o[o.length - 1].range[1]
114
- ]), K = this.performAction.apply(z, [
115
- k,
116
- C,
117
- M,
118
- N.yy,
119
- I[1],
120
- y,
121
- o
122
- ].concat(O)), typeof K < "u")
123
- return K;
124
- 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);
125
- break;
126
- case 3:
127
- return !0;
128
- }
129
- }
130
- return !0;
131
- }, "parse")
132
- }, x = /* @__PURE__ */ function() {
133
- var f = {
134
- EOF: 1,
135
- parseError: /* @__PURE__ */ s(function(a, h) {
136
- if (this.yy.parser)
137
- this.yy.parser.parseError(a, h);
138
- else
139
- throw new Error(a);
140
- }, "parseError"),
141
- // resets the lexer, sets new input
142
- setInput: /* @__PURE__ */ s(function(i, a) {
143
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
144
- first_line: 1,
145
- first_column: 0,
146
- last_line: 1,
147
- last_column: 0
148
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
149
- }, "setInput"),
150
- // consumes and returns one char from the input
151
- input: /* @__PURE__ */ s(function() {
152
- var i = this._input[0];
153
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
154
- var a = i.match(/(?:\r\n?|\n).*/g);
155
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
156
- }, "input"),
157
- // unshifts one char (or a string) into the input
158
- unput: /* @__PURE__ */ s(function(i) {
159
- var a = i.length, h = i.split(/(?:\r\n?|\n)/g);
160
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
161
- var u = this.match.split(/(?:\r\n?|\n)/g);
162
- 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);
163
- var y = this.yylloc.range;
164
- return this.yylloc = {
165
- first_line: this.yylloc.first_line,
166
- last_line: this.yylineno + 1,
167
- first_column: this.yylloc.first_column,
168
- 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
169
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
170
- }, "unput"),
171
- // When called from action, caches matched text and appends it on next action
172
- more: /* @__PURE__ */ s(function() {
173
- return this._more = !0, this;
174
- }, "more"),
175
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
176
- reject: /* @__PURE__ */ s(function() {
177
- if (this.options.backtrack_lexer)
178
- this._backtrack = !0;
179
- else
180
- 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).
181
- ` + this.showPosition(), {
182
- text: "",
183
- token: null,
184
- line: this.yylineno
185
- });
186
- return this;
187
- }, "reject"),
188
- // retain first n characters of the match
189
- less: /* @__PURE__ */ s(function(i) {
190
- this.unput(this.match.slice(i));
191
- }, "less"),
192
- // displays already matched input, i.e. for error messages
193
- pastInput: /* @__PURE__ */ s(function() {
194
- var i = this.matched.substr(0, this.matched.length - this.match.length);
195
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
196
- }, "pastInput"),
197
- // displays upcoming input, i.e. for error messages
198
- upcomingInput: /* @__PURE__ */ s(function() {
199
- var i = this.match;
200
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
201
- }, "upcomingInput"),
202
- // displays the character position where the lexing error occurred, i.e. for error messages
203
- showPosition: /* @__PURE__ */ s(function() {
204
- var i = this.pastInput(), a = new Array(i.length + 1).join("-");
205
- return i + this.upcomingInput() + `
206
- ` + a + "^";
207
- }, "showPosition"),
208
- // test the lexed token: return FALSE when not a match, otherwise return token
209
- test_match: /* @__PURE__ */ s(function(i, a) {
210
- var h, u, y;
211
- if (this.options.backtrack_lexer && (y = {
212
- yylineno: this.yylineno,
213
- yylloc: {
214
- first_line: this.yylloc.first_line,
215
- last_line: this.last_line,
216
- first_column: this.yylloc.first_column,
217
- last_column: this.yylloc.last_column
218
- },
219
- yytext: this.yytext,
220
- match: this.match,
221
- matches: this.matches,
222
- matched: this.matched,
223
- yyleng: this.yyleng,
224
- offset: this.offset,
225
- _more: this._more,
226
- _input: this._input,
227
- yy: this.yy,
228
- conditionStack: this.conditionStack.slice(0),
229
- done: this.done
230
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
231
- first_line: this.yylloc.last_line,
232
- last_line: this.yylineno + 1,
233
- first_column: this.yylloc.last_column,
234
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
235
- }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
236
- return h;
237
- if (this._backtrack) {
238
- for (var o in y)
239
- this[o] = y[o];
240
- return !1;
241
- }
242
- return !1;
243
- }, "test_match"),
244
- // return next match in input
245
- next: /* @__PURE__ */ s(function() {
246
- if (this.done)
247
- return this.EOF;
248
- this._input || (this.done = !0);
249
- var i, a, h, u;
250
- this._more || (this.yytext = "", this.match = "");
251
- for (var y = this._currentRules(), o = 0; o < y.length; o++)
252
- if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
253
- if (a = h, u = o, this.options.backtrack_lexer) {
254
- if (i = this.test_match(h, y[o]), i !== !1)
255
- return i;
256
- if (this._backtrack) {
257
- a = !1;
258
- continue;
259
- } else
260
- return !1;
261
- } else if (!this.options.flex)
262
- break;
263
- }
264
- return a ? (i = this.test_match(a, y[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
265
- ` + this.showPosition(), {
266
- text: "",
267
- token: null,
268
- line: this.yylineno
269
- });
270
- }, "next"),
271
- // return next match that has a token
272
- lex: /* @__PURE__ */ s(function() {
273
- var a = this.next();
274
- return a || this.lex();
275
- }, "lex"),
276
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
277
- begin: /* @__PURE__ */ s(function(a) {
278
- this.conditionStack.push(a);
279
- }, "begin"),
280
- // pop the previously active lexer condition state off the condition stack
281
- popState: /* @__PURE__ */ s(function() {
282
- var a = this.conditionStack.length - 1;
283
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
284
- }, "popState"),
285
- // produce the lexer rule set which is active for the currently active lexer condition state
286
- _currentRules: /* @__PURE__ */ s(function() {
287
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
288
- }, "_currentRules"),
289
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
290
- topState: /* @__PURE__ */ s(function(a) {
291
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
292
- }, "topState"),
293
- // alias for begin(condition)
294
- pushState: /* @__PURE__ */ s(function(a) {
295
- this.begin(a);
296
- }, "pushState"),
297
- // return the number of states currently on the stack
298
- stateStackSize: /* @__PURE__ */ s(function() {
299
- return this.conditionStack.length;
300
- }, "stateStackSize"),
301
- options: { "case-insensitive": !0 },
302
- performAction: /* @__PURE__ */ s(function(a, h, u, y) {
303
- switch (u) {
304
- case 0:
305
- break;
306
- case 1:
307
- break;
308
- case 2:
309
- return 10;
310
- case 3:
311
- break;
312
- case 4:
313
- break;
314
- case 5:
315
- return 4;
316
- case 6:
317
- return 11;
318
- case 7:
319
- return this.begin("acc_title"), 12;
320
- case 8:
321
- return this.popState(), "acc_title_value";
322
- case 9:
323
- return this.begin("acc_descr"), 14;
324
- case 10:
325
- return this.popState(), "acc_descr_value";
326
- case 11:
327
- this.begin("acc_descr_multiline");
328
- break;
329
- case 12:
330
- this.popState();
331
- break;
332
- case 13:
333
- return "acc_descr_multiline_value";
334
- case 14:
335
- return 17;
336
- case 15:
337
- return 21;
338
- case 16:
339
- return 20;
340
- case 17:
341
- return 6;
342
- case 18:
343
- return "INVALID";
344
- }
345
- }, "anonymous"),
346
- 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],
347
- 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 } }
348
- };
349
- return f;
350
- }();
351
- p.lexer = x;
352
- function b() {
353
- this.yy = {};
354
- }
355
- return s(b, "Parser"), b.prototype = p, p.Parser = b, new b();
356
- }();
357
- X.parser = X;
358
- var Tt = X, at = {};
359
- xt(at, {
360
- addEvent: () => yt,
361
- addSection: () => ht,
362
- addTask: () => pt,
363
- addTaskOrg: () => gt,
364
- clear: () => ct,
365
- default: () => It,
366
- getCommonDb: () => ot,
367
- getSections: () => dt,
368
- getTasks: () => ut
369
- });
370
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
371
- Y.length = 0, U.length = 0, V = "", W.length = 0, vt();
372
- }, "clear"), ht = /* @__PURE__ */ s(function(n) {
373
- V = n, Y.push(n);
374
- }, "addSection"), dt = /* @__PURE__ */ s(function() {
375
- return Y;
376
- }, "getSections"), ut = /* @__PURE__ */ s(function() {
377
- let n = rt();
378
- const t = 100;
379
- let e = 0;
380
- for (; !n && e < t; )
381
- n = rt(), e++;
382
- return U.push(...W), U;
383
- }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
384
- const l = {
385
- id: lt++,
386
- section: V,
387
- type: V,
388
- task: n,
389
- score: t || 0,
390
- //if event is defined, then add it the events array
391
- events: e ? [e] : []
392
- };
393
- W.push(l);
394
- }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
395
- W.find((e) => e.id === lt - 1).events.push(n);
396
- }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
397
- const t = {
398
- section: V,
399
- type: V,
400
- description: n,
401
- task: n,
402
- classes: []
403
- };
404
- U.push(t);
405
- }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
406
- const n = /* @__PURE__ */ s(function(e) {
407
- return W[e].processed;
408
- }, "compileTask");
409
- let t = !0;
410
- for (const [e, l] of W.entries())
411
- n(e), t = t && l.processed;
412
- return t;
413
- }, "compileTasks"), It = {
414
- clear: ct,
415
- getCommonDb: ot,
416
- addSection: ht,
417
- getSections: dt,
418
- getTasks: ut,
419
- addTask: pt,
420
- addTaskOrg: gt,
421
- addEvent: yt
422
- }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
423
- const e = n.append("rect");
424
- 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;
425
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
426
- const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
427
- r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
428
- function d(m) {
429
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
430
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
431
- }
432
- s(d, "smile");
433
- function c(m) {
434
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
435
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
436
- }
437
- s(c, "sad");
438
- function g(m) {
439
- 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");
440
- }
441
- return s(g, "ambivalent"), t.score > 3 ? d(r) : t.score < 3 ? c(r) : g(r), l;
442
- }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
443
- const e = n.append("circle");
444
- 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;
445
- }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
446
- const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
447
- l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
448
- const r = l.append("tspan");
449
- return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
450
- }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
451
- function e(r, d, c, g, m) {
452
- return r + "," + d + " " + (r + c) + "," + d + " " + (r + c) + "," + (d + g - m) + " " + (r + c - m * 1.2) + "," + (d + g) + " " + r + "," + (d + g);
453
- }
454
- s(e, "genPoints");
455
- const l = n.append("polygon");
456
- 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);
457
- }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
458
- const l = n.append("g"), r = D();
459
- r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
460
- t.text,
461
- l,
462
- r.x,
463
- r.y,
464
- r.width,
465
- r.height,
466
- { class: "journey-section section-type-" + t.num },
467
- e,
468
- t.colour
469
- );
470
- }, "drawSection"), it = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
471
- const l = t.x + e.width / 2, r = n.append("g");
472
- it++;
473
- const d = 300 + 5 * 30;
474
- r.append("line").attr("id", "task" + it).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(r, {
475
- cx: l,
476
- cy: 300 + (5 - t.score) * 30,
477
- score: t.score
478
- });
479
- const c = D();
480
- 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(r, c), mt(e)(
481
- t.task,
482
- r,
483
- c.x,
484
- c.y,
485
- c.width,
486
- c.height,
487
- { class: "task" },
488
- e,
489
- t.colour
490
- );
491
- }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
492
- Z(n, {
493
- x: t.startx,
494
- y: t.starty,
495
- width: t.stopx - t.startx,
496
- height: t.stopy - t.starty,
497
- fill: t.fill,
498
- class: "rect"
499
- }).lower();
500
- }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
501
- return {
502
- x: 0,
503
- y: 0,
504
- fill: void 0,
505
- "text-anchor": "start",
506
- width: 100,
507
- height: 100,
508
- textMargin: 0,
509
- rx: 0,
510
- ry: 0
511
- };
512
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
513
- return {
514
- x: 0,
515
- y: 0,
516
- width: 100,
517
- anchor: "start",
518
- height: 100,
519
- rx: 0,
520
- ry: 0
521
- };
522
- }, "getNoteRect"), mt = /* @__PURE__ */ function() {
523
- function n(r, d, c, g, m, p, x, b) {
524
- const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", b).style("text-anchor", "middle").text(r);
525
- l(f, x);
526
- }
527
- s(n, "byText");
528
- function t(r, d, c, g, m, p, x, b, f) {
529
- const { taskFontSize: i, taskFontFamily: a } = b, h = r.split(/<br\s*\/?>/gi);
530
- for (let u = 0; u < h.length; u++) {
531
- const y = u * i - i * (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", i).style("font-family", a);
532
- 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);
533
- }
534
- }
535
- s(t, "byTspan");
536
- function e(r, d, c, g, m, p, x, b) {
537
- 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%");
538
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, f, c, g, m, p, x, b), l(a, x);
539
- }
540
- s(e, "byFo");
541
- function l(r, d) {
542
- for (const c in d)
543
- c in d && r.attr(c, d[c]);
544
- }
545
- return s(l, "_setTextAttrs"), function(r) {
546
- return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
547
- };
548
- }(), Rt = /* @__PURE__ */ s(function(n) {
549
- 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");
550
- }, "initGraphics");
551
- function tt(n, t) {
552
- n.each(function() {
553
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, 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");
554
- for (let x = 0; x < l.length; x++)
555
- r = l[l.length - 1 - x], d.push(r), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), p.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
556
- });
557
- }
558
- s(tt, "wrap");
559
- var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
560
- var b;
561
- const r = e % Nt - 1, d = n.append("g");
562
- t.section = r, d.attr(
563
- "class",
564
- (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
565
- );
566
- 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 = (b = l.fontSize) != null && b.replace ? l.fontSize.replace("px", "") : l.fontSize;
567
- 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, r, l), t;
568
- }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
569
- var g;
570
- 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;
571
- return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
572
- }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
573
- n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
574
- "d",
575
- `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`
576
- ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
577
- }, "defaultBkg"), F = {
578
- drawRect: Z,
579
- drawCircle: Mt,
580
- drawSection: Ht,
581
- drawText: ft,
582
- drawLabel: $t,
583
- drawTask: Pt,
584
- drawBackgroundRect: At,
585
- getTextObj: Ct,
586
- getNoteRect: D,
587
- initGraphics: Rt,
588
- drawNode: Ft,
589
- getVirtualNodeHeight: zt
590
- }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
591
- var O, v, N;
592
- const r = bt(), d = ((O = r.timeline) == null ? void 0 : O.leftMargin) ?? 50;
593
- E.debug("timeline", l.db);
594
- const c = r.securityLevel;
595
- let g;
596
- c === "sandbox" && (g = q("#i" + t));
597
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
598
- p.append("g");
599
- const x = l.db.getTasks(), b = l.db.getCommonDb().getDiagramTitle();
600
- E.debug("task", x), F.initGraphics(p);
601
- const f = l.db.getSections();
602
- E.debug("sections", f);
603
- let i = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
604
- u = 50;
605
- let S = 0, k = !0;
606
- f.forEach(function(L) {
607
- const _ = {
608
- number: S,
609
- descr: L,
610
- section: S,
611
- width: 150,
612
- padding: 20,
613
- maxHeight: i
614
- }, $ = F.getVirtualNodeHeight(p, _, r);
615
- E.debug("sectionHeight before draw", $), i = Math.max(i, $ + 20);
616
- });
617
- let M = 0, C = 0;
618
- E.debug("tasks.length", x.length);
619
- for (const [L, _] of x.entries()) {
620
- const $ = {
621
- number: L,
622
- descr: _,
623
- section: _.section,
624
- width: 150,
625
- padding: 20,
626
- maxHeight: a
627
- }, R = F.getVirtualNodeHeight(p, $, r);
628
- E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, _.events.length);
629
- let A = 0;
630
- for (const w of _.events) {
631
- const H = {
632
- descr: w,
633
- section: _.section,
634
- number: _.section,
635
- width: 150,
636
- padding: 20,
637
- maxHeight: 50
638
- };
639
- A += F.getVirtualNodeHeight(p, H, r);
640
- }
641
- _.events.length > 0 && (A += (_.events.length - 1) * 10), C = Math.max(C, A);
642
- }
643
- E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
644
- const _ = x.filter((w) => w.section === L), $ = {
645
- number: S,
646
- descr: L,
647
- section: S,
648
- width: 200 * Math.max(_.length, 1) - 50,
649
- padding: 20,
650
- maxHeight: i
651
- };
652
- E.debug("sectionNode", $);
653
- const R = p.append("g"), A = F.drawNode(R, $, S, r);
654
- E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += i + 50, _.length > 0 && st(
655
- p,
656
- _,
657
- S,
658
- y,
659
- o,
660
- a,
661
- r,
662
- M,
663
- C,
664
- i,
665
- !1
666
- ), y += 200 * Math.max(_.length, 1), o = u, S++;
667
- }) : (k = !1, st(
668
- p,
669
- x,
670
- S,
671
- y,
672
- o,
673
- a,
674
- r,
675
- M,
676
- C,
677
- i,
678
- !0
679
- ));
680
- const B = p.node().getBBox();
681
- E.debug("bounds", B), b && p.append("text").text(b).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? i + 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)"), _t(
682
- void 0,
683
- p,
684
- ((v = r.timeline) == null ? void 0 : v.padding) ?? 50,
685
- ((N = r.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
686
- );
687
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, d, c, g, m, p, x) {
688
- var b;
689
- for (const f of t) {
690
- const i = {
691
- descr: f.task,
692
- section: e,
693
- number: e,
694
- width: 150,
695
- padding: 20,
696
- maxHeight: d
697
- };
698
- E.debug("taskNode", i);
699
- const a = n.append("g").attr("class", "taskWrapper"), u = F.drawNode(a, i, e, c).height;
700
- if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), d = Math.max(d, u), f.events) {
701
- const y = n.append("g").attr("class", "lineWrapper");
702
- let o = d;
703
- r += 100, o = o + Bt(n, f.events, e, l, r, c), r -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", r + d).attr("x2", l + 190 / 2).attr("y2", r + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
704
- }
705
- l = l + 200, x && !((b = c.timeline) != null && b.disableMulticolor) && e++;
706
- }
707
- r = r - 10;
708
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, d) {
709
- let c = 0;
710
- const g = r;
711
- r = r + 100;
712
- for (const m of t) {
713
- const p = {
714
- descr: m,
715
- section: e,
716
- number: e,
717
- width: 150,
718
- padding: 20,
719
- maxHeight: 50
720
- };
721
- E.debug("eventNode", p);
722
- const x = n.append("g").attr("class", "eventWrapper"), f = F.drawNode(x, p, e, d).height;
723
- c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
724
- }
725
- return r = g, c;
726
- }, "drawEvents"), Ot = {
727
- setConf: /* @__PURE__ */ s(() => {
728
- }, "setConf"),
729
- draw: Wt
730
- }, jt = /* @__PURE__ */ s((n) => {
731
- let t = "";
732
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
733
- n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], wt(n["lineColor" + e]) ? n["lineColor" + e] = St(n["lineColor" + e], 20) : n["lineColor" + e] = Et(n["lineColor" + e], 20);
734
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
735
- const l = "" + (17 - 3 * e);
736
- t += `
737
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
738
- fill: ${n["cScale" + e]};
739
- }
740
- .section-${e - 1} text {
741
- fill: ${n["cScaleLabel" + e]};
742
- }
743
- .node-icon-${e - 1} {
744
- font-size: 40px;
745
- color: ${n["cScaleLabel" + e]};
746
- }
747
- .section-edge-${e - 1}{
748
- stroke: ${n["cScale" + e]};
749
- }
750
- .edge-depth-${e - 1}{
751
- stroke-width: ${l};
752
- }
753
- .section-${e - 1} line {
754
- stroke: ${n["cScaleInv" + e]} ;
755
- stroke-width: 3;
756
- }
757
-
758
- .lineWrapper line{
759
- stroke: ${n["cScaleLabel" + e]} ;
760
- }
761
-
762
- .disabled, .disabled circle, .disabled text {
763
- fill: lightgray;
764
- }
765
- .disabled text {
766
- fill: #efefef;
767
- }
768
- `;
769
- }
770
- return t;
771
- }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
772
- .edge {
773
- stroke-width: 3;
774
- }
775
- ${jt(n)}
776
- .section-root rect, .section-root path, .section-root circle {
777
- fill: ${n.git0};
778
- }
779
- .section-root text {
780
- fill: ${n.gitBranchLabel0};
781
- }
782
- .icon-container {
783
- height:100%;
784
- display: flex;
785
- justify-content: center;
786
- align-items: center;
787
- }
788
- .edge {
789
- fill: none;
790
- }
791
- .eventWrapper {
792
- filter: brightness(120%);
793
- }
794
- `, "getStyles"), qt = Gt, Kt = {
795
- db: at,
796
- renderer: Ot,
797
- parser: Tt,
798
- styles: qt
799
- };
800
- export {
801
- Kt as diagram
802
- };