@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.6

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 +62488 -24049
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2826 -2276
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/abap.js +6 -0
  10. package/dist/actionscript-3.js +6 -0
  11. package/dist/ada.js +6 -0
  12. package/dist/andromeeda.js +4 -0
  13. package/dist/angular-html.js +32 -0
  14. package/dist/angular-ts.js +21 -0
  15. package/dist/apache.js +6 -0
  16. package/dist/apex.js +6 -0
  17. package/dist/apl.js +16 -0
  18. package/dist/applescript.js +6 -0
  19. package/dist/ara.js +6 -0
  20. package/dist/arc.js +53 -53
  21. package/dist/architectureDiagram-VXUJARFQ.js +480 -4315
  22. package/dist/architectureDiagram-VXUJARFQ2.js +831 -0
  23. package/dist/asciidoc.js +6 -0
  24. package/dist/asm.js +6 -0
  25. package/dist/assets/icons/index.js +1 -1
  26. package/dist/astro.js +18 -0
  27. package/dist/aurora-x.js +4 -0
  28. package/dist/awk.js +6 -0
  29. package/dist/ayu-dark.js +4 -0
  30. package/dist/ballerina.js +6 -0
  31. package/dist/band.js +46 -0
  32. package/dist/bat.js +6 -0
  33. package/dist/beancount.js +6 -0
  34. package/dist/berry.js +6 -0
  35. package/dist/bibtex.js +6 -0
  36. package/dist/bicep.js +6 -0
  37. package/dist/blade.js +20 -0
  38. package/dist/blockDiagram-VD42YOAC.js +1 -1
  39. package/dist/blockDiagram-VD42YOAC2.js +2266 -0
  40. package/dist/bsl.js +8 -0
  41. package/dist/c.js +6 -0
  42. package/dist/c3.js +6 -0
  43. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  44. package/dist/c4Diagram-YG6GDRKO2.js +1582 -0
  45. package/dist/cadence.js +6 -0
  46. package/dist/cairo.js +8 -0
  47. package/dist/catppuccin-frappe.js +4 -0
  48. package/dist/catppuccin-latte.js +4 -0
  49. package/dist/catppuccin-macchiato.js +4 -0
  50. package/dist/catppuccin-mocha.js +4 -0
  51. package/dist/channel.js +2 -2
  52. package/dist/chatbotV2/index.d.ts +57 -19
  53. package/dist/chatbotV2/index.js +120 -56
  54. package/dist/chunk-4BX2VUAB.js +1 -1
  55. package/dist/chunk-4BX2VUAB2.js +9 -0
  56. package/dist/chunk-55IACEB6.js +2 -2
  57. package/dist/chunk-55IACEB62.js +9 -0
  58. package/dist/chunk-B4BG7PRW.js +1 -1
  59. package/dist/chunk-B4BG7PRW2.js +1377 -0
  60. package/dist/chunk-DI55MBZ5.js +14 -14
  61. package/dist/chunk-DI55MBZ52.js +1382 -0
  62. package/dist/chunk-FMBD7UC4.js +1 -1
  63. package/dist/chunk-FMBD7UC42.js +19 -0
  64. package/dist/chunk-QN33PNHL.js +5 -5
  65. package/dist/chunk-QN33PNHL2.js +20 -0
  66. package/dist/chunk-QZHKN3VN.js +1 -1
  67. package/dist/chunk-QZHKN3VN2.js +15 -0
  68. package/dist/chunk-TZMSLE5B.js +1 -1
  69. package/dist/chunk-TZMSLE5B2.js +64 -0
  70. package/dist/clarity.js +6 -0
  71. package/dist/classDiagram-2ON5EDUG.js +1 -1
  72. package/dist/classDiagram-2ON5EDUG2.js +17 -0
  73. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  74. package/dist/classDiagram-v2-WZHVMYZB2.js +17 -0
  75. package/dist/clojure.js +6 -0
  76. package/dist/cmake.js +6 -0
  77. package/dist/cobol.js +10 -0
  78. package/dist/code-block-37QAKDTI.js +27 -0
  79. package/dist/codeowners.js +6 -0
  80. package/dist/codeql.js +6 -0
  81. package/dist/coffee.js +8 -0
  82. package/dist/common-lisp.js +6 -0
  83. package/dist/coq.js +6 -0
  84. package/dist/cose-bilkent-S5V4N54A.js +160 -2535
  85. package/dist/cose-bilkent-S5V4N54A2.js +231 -0
  86. package/dist/cpp.js +18 -0
  87. package/dist/crystal.js +18 -0
  88. package/dist/csharp.js +6 -0
  89. package/dist/css.js +6 -0
  90. package/dist/csv.js +6 -0
  91. package/dist/cue.js +6 -0
  92. package/dist/cypher.js +6 -0
  93. package/dist/cytoscape-cose-bilkent.js +2380 -0
  94. package/dist/cytoscape-fcose.js +3840 -0
  95. package/dist/d.js +6 -0
  96. package/dist/dagre-6UL2VRFP.js +44 -44
  97. package/dist/dagre-6UL2VRFP2.js +447 -0
  98. package/dist/dark-plus.js +4 -0
  99. package/dist/dart.js +6 -0
  100. package/dist/dax.js +6 -0
  101. package/dist/dayjs.min.js +2 -2
  102. package/dist/defaultLocale.js +3 -3
  103. package/dist/desktop.js +6 -0
  104. package/dist/diagram-PSM6KHXK.js +198 -414
  105. package/dist/diagram-PSM6KHXK2.js +319 -0
  106. package/dist/diagram-QEK2KX5R.js +26 -26
  107. package/dist/diagram-QEK2KX5R2.js +221 -0
  108. package/dist/diagram-S2PKOQOG.js +12 -12
  109. package/dist/diagram-S2PKOQOG2.js +143 -0
  110. package/dist/diff.js +6 -0
  111. package/dist/docker.js +6 -0
  112. package/dist/dotenv.js +6 -0
  113. package/dist/dracula-soft.js +4 -0
  114. package/dist/dracula.js +4 -0
  115. package/dist/dream-maker.js +6 -0
  116. package/dist/edge.js +12 -0
  117. package/dist/elixir.js +8 -0
  118. package/dist/elm.js +8 -0
  119. package/dist/emacs-lisp.js +6 -0
  120. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  121. package/dist/erDiagram-Q2GNP2WA2.js +843 -0
  122. package/dist/erb.js +10 -0
  123. package/dist/erlang.js +8 -0
  124. package/dist/everforest-dark.js +4 -0
  125. package/dist/everforest-light.js +4 -0
  126. package/dist/fennel.js +6 -0
  127. package/dist/fish.js +6 -0
  128. package/dist/flowDiagram-NV44I4VS.js +6 -6
  129. package/dist/flowDiagram-NV44I4VS2.js +1628 -0
  130. package/dist/fluent.js +6 -0
  131. package/dist/fortran-fixed-form.js +8 -0
  132. package/dist/fortran-free-form.js +6 -0
  133. package/dist/fsharp.js +8 -0
  134. package/dist/ganttDiagram-JELNMOA3.js +1788 -0
  135. package/dist/ganttDiagram-LVOFAZNH.js +843 -1718
  136. package/dist/gdresource.js +10 -0
  137. package/dist/gdscript.js +6 -0
  138. package/dist/gdshader.js +6 -0
  139. package/dist/genie.js +6 -0
  140. package/dist/gherkin.js +6 -0
  141. package/dist/git-commit.js +8 -0
  142. package/dist/git-rebase.js +8 -0
  143. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  144. package/dist/gitGraphDiagram-NY62KEGX2.js +713 -0
  145. package/dist/github-dark-default.js +4 -0
  146. package/dist/github-dark-dimmed.js +4 -0
  147. package/dist/github-dark-high-contrast.js +4 -0
  148. package/dist/github-dark.js +4 -0
  149. package/dist/github-light-default.js +4 -0
  150. package/dist/github-light-high-contrast.js +4 -0
  151. package/dist/github-light.js +4 -0
  152. package/dist/gleam.js +6 -0
  153. package/dist/glimmer-js.js +14 -0
  154. package/dist/glimmer-ts.js +14 -0
  155. package/dist/glsl.js +8 -0
  156. package/dist/gn.js +6 -0
  157. package/dist/gnuplot.js +6 -0
  158. package/dist/go.js +6 -0
  159. package/dist/graph.js +17 -18
  160. package/dist/graph2.js +246 -0
  161. package/dist/graphql.js +14 -0
  162. package/dist/groovy.js +6 -0
  163. package/dist/gruvbox-dark-hard.js +4 -0
  164. package/dist/gruvbox-dark-medium.js +4 -0
  165. package/dist/gruvbox-dark-soft.js +4 -0
  166. package/dist/gruvbox-light-hard.js +4 -0
  167. package/dist/gruvbox-light-medium.js +4 -0
  168. package/dist/gruvbox-light-soft.js +4 -0
  169. package/dist/hack.js +10 -0
  170. package/dist/haml.js +10 -0
  171. package/dist/handlebars.js +14 -0
  172. package/dist/haskell.js +6 -0
  173. package/dist/haxe.js +6 -0
  174. package/dist/hcl.js +6 -0
  175. package/dist/hjson.js +6 -0
  176. package/dist/hlsl.js +6 -0
  177. package/dist/houston.js +4 -0
  178. package/dist/html-derivative.js +8 -0
  179. package/dist/html.js +10 -0
  180. package/dist/http.js +14 -0
  181. package/dist/hurl.js +12 -0
  182. package/dist/hxml.js +8 -0
  183. package/dist/hy.js +6 -0
  184. package/dist/imba.js +6 -0
  185. package/dist/index.d.ts +2 -2
  186. package/dist/index.js +37 -37
  187. package/dist/index2.js +216 -684
  188. package/dist/index3.js +689 -0
  189. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  190. package/dist/infoDiagram-WHAUD3N6.js +24 -0
  191. package/dist/ini.js +6 -0
  192. package/dist/java.js +6 -0
  193. package/dist/javascript.js +6 -0
  194. package/dist/jinja.js +11 -0
  195. package/dist/jison.js +8 -0
  196. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  197. package/dist/journeyDiagram-XKPGCS4Q2.js +837 -0
  198. package/dist/json.js +6 -0
  199. package/dist/json5.js +6 -0
  200. package/dist/jsonc.js +6 -0
  201. package/dist/jsonl.js +6 -0
  202. package/dist/jsonnet.js +6 -0
  203. package/dist/jssm.js +6 -0
  204. package/dist/jsx.js +6 -0
  205. package/dist/julia.js +16 -0
  206. package/dist/kanagawa-dragon.js +4 -0
  207. package/dist/kanagawa-lotus.js +4 -0
  208. package/dist/kanagawa-wave.js +4 -0
  209. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  210. package/dist/kanban-definition-3W4ZIXB72.js +720 -0
  211. package/dist/katex2.js +11691 -0
  212. package/dist/kdl.js +6 -0
  213. package/dist/kotlin.js +6 -0
  214. package/dist/kusto.js +6 -0
  215. package/dist/laserwave.js +4 -0
  216. package/dist/latex.js +8 -0
  217. package/dist/layout.js +567 -678
  218. package/dist/layout2.js +1224 -0
  219. package/dist/lean.js +6 -0
  220. package/dist/less.js +6 -0
  221. package/dist/light-plus.js +4 -0
  222. package/dist/lineage/index.js +1234 -1241
  223. package/dist/linear.js +1 -1
  224. package/dist/liquid.js +14 -0
  225. package/dist/llvm.js +6 -0
  226. package/dist/log.js +6 -0
  227. package/dist/logo.js +6 -0
  228. package/dist/lua.js +8 -0
  229. package/dist/luau.js +6 -0
  230. package/dist/main.css +1 -1
  231. package/dist/main.js +82 -82
  232. package/dist/make.js +6 -0
  233. package/dist/markdown.js +6 -0
  234. package/dist/marko.js +14 -0
  235. package/dist/material-theme-darker.js +4 -0
  236. package/dist/material-theme-lighter.js +4 -0
  237. package/dist/material-theme-ocean.js +4 -0
  238. package/dist/material-theme-palenight.js +4 -0
  239. package/dist/material-theme.js +4 -0
  240. package/dist/matlab.js +6 -0
  241. package/dist/mdc.js +12 -0
  242. package/dist/mdx.js +6 -0
  243. package/dist/mermaid-4DMBBIKO.js +4 -0
  244. package/dist/mermaid-parser.core.js +155 -155
  245. package/dist/mermaid.js +6 -0
  246. package/dist/min-dark.js +4 -0
  247. package/dist/min-light.js +4 -0
  248. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  249. package/dist/mindmap-definition-VGOIOE7T2.js +786 -0
  250. package/dist/mipsasm.js +6 -0
  251. package/dist/mojo.js +6 -0
  252. package/dist/monokai.js +4 -0
  253. package/dist/moonbit.js +6 -0
  254. package/dist/move.js +6 -0
  255. package/dist/narrat.js +6 -0
  256. package/dist/nextflow.js +6 -0
  257. package/dist/nginx.js +8 -0
  258. package/dist/night-owl.js +4 -0
  259. package/dist/nim.js +20 -0
  260. package/dist/nix.js +9 -0
  261. package/dist/nord.js +4 -0
  262. package/dist/nushell.js +6 -0
  263. package/dist/objective-c.js +6 -0
  264. package/dist/objective-cpp.js +6 -0
  265. package/dist/ocaml.js +6 -0
  266. package/dist/one-dark-pro.js +4 -0
  267. package/dist/one-light.js +4 -0
  268. package/dist/openscad.js +6 -0
  269. package/dist/pascal.js +6 -0
  270. package/dist/perl.js +16 -0
  271. package/dist/php.js +18 -0
  272. package/dist/pie.js +45 -0
  273. package/dist/pieDiagram-ADFJNKIX.js +68 -108
  274. package/dist/pieDiagram-ADFJNKIX2.js +123 -0
  275. package/dist/pkl.js +6 -0
  276. package/dist/plastic.js +4 -0
  277. package/dist/plsql.js +6 -0
  278. package/dist/po.js +6 -0
  279. package/dist/poimandres.js +4 -0
  280. package/dist/polar.js +6 -0
  281. package/dist/postcss.js +6 -0
  282. package/dist/powerquery.js +6 -0
  283. package/dist/powershell.js +6 -0
  284. package/dist/prisma.js +6 -0
  285. package/dist/prolog.js +6 -0
  286. package/dist/proto.js +6 -0
  287. package/dist/pug.js +12 -0
  288. package/dist/puppet.js +6 -0
  289. package/dist/purescript.js +6 -0
  290. package/dist/python.js +6 -0
  291. package/dist/qml.js +8 -0
  292. package/dist/qmldir.js +6 -0
  293. package/dist/qss.js +6 -0
  294. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  295. package/dist/quadrantDiagram-AYHSOK5B2.js +1025 -0
  296. package/dist/r.js +6 -0
  297. package/dist/racket.js +6 -0
  298. package/dist/raku.js +6 -0
  299. package/dist/razor.js +10 -0
  300. package/dist/red.js +4 -0
  301. package/dist/redux-toolkit.modern.js +563 -555
  302. package/dist/reg.js +6 -0
  303. package/dist/regexp.js +6 -0
  304. package/dist/rel.js +6 -0
  305. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  306. package/dist/requirementDiagram-UZGBJVZJ2.js +852 -0
  307. package/dist/riscv.js +6 -0
  308. package/dist/rose-pine-dawn.js +4 -0
  309. package/dist/rose-pine-moon.js +4 -0
  310. package/dist/rose-pine.js +4 -0
  311. package/dist/rosmsg.js +6 -0
  312. package/dist/rst.js +22 -0
  313. package/dist/ruby.js +30 -0
  314. package/dist/rust.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN.js +229 -622
  316. package/dist/sankeyDiagram-TZEHDZUN2.js +418 -0
  317. package/dist/sankeyLinkHorizontal.js +403 -0
  318. package/dist/sas.js +8 -0
  319. package/dist/sass.js +6 -0
  320. package/dist/scala.js +6 -0
  321. package/dist/scheme.js +6 -0
  322. package/dist/scss.js +8 -0
  323. package/dist/sdbl.js +6 -0
  324. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  325. package/dist/sequenceDiagram-WL72ISMW2.js +2523 -0
  326. package/dist/shadcn/index.d.ts +24 -40
  327. package/dist/shadcn/index.js +7330 -5516
  328. package/dist/shaderlab.js +8 -0
  329. package/dist/shellscript.js +6 -0
  330. package/dist/shellsession.js +8 -0
  331. package/dist/slack-dark.js +4 -0
  332. package/dist/slack-ochin.js +4 -0
  333. package/dist/smalltalk.js +6 -0
  334. package/dist/snazzy-light.js +4 -0
  335. package/dist/solarized-dark.js +4 -0
  336. package/dist/solarized-light.js +4 -0
  337. package/dist/solidity.js +6 -0
  338. package/dist/soy.js +8 -0
  339. package/dist/sparql.js +8 -0
  340. package/dist/splunk.js +6 -0
  341. package/dist/sql.js +6 -0
  342. package/dist/ssh-config.js +6 -0
  343. package/dist/stata.js +8 -0
  344. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  345. package/dist/stateDiagram-FKZM4ZOC2.js +264 -0
  346. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  347. package/dist/stateDiagram-v2-4FDKWEC32.js +17 -0
  348. package/dist/storybook/Typography.stories.tsx +93 -120
  349. package/dist/stylus.js +6 -0
  350. package/dist/svelte.js +14 -0
  351. package/dist/swift.js +6 -0
  352. package/dist/synthwave-84.js +4 -0
  353. package/dist/system-verilog.js +6 -0
  354. package/dist/systemd.js +6 -0
  355. package/dist/talonscript.js +6 -0
  356. package/dist/tasl.js +6 -0
  357. package/dist/tcl.js +6 -0
  358. package/dist/templ.js +12 -0
  359. package/dist/terraform.js +6 -0
  360. package/dist/tex.js +8 -0
  361. package/dist/time.js +900 -0
  362. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  363. package/dist/timeline-definition-IT6M3QCI2.js +802 -0
  364. package/dist/tokyo-night.js +4 -0
  365. package/dist/toml.js +6 -0
  366. package/dist/ts-tags.js +41 -0
  367. package/dist/tsv.js +6 -0
  368. package/dist/tsx.js +6 -0
  369. package/dist/turtle.js +6 -0
  370. package/dist/twig.js +18 -0
  371. package/dist/{types-ByRPUpXR.d.ts → types-BZH4Xw79.d.ts} +1 -1
  372. package/dist/typescript.js +6 -0
  373. package/dist/typespec.js +6 -0
  374. package/dist/typst.js +6 -0
  375. package/dist/union.js +8 -0
  376. package/dist/v.js +6 -0
  377. package/dist/vala.js +6 -0
  378. package/dist/vb.js +6 -0
  379. package/dist/verilog.js +6 -0
  380. package/dist/vesper.js +4 -0
  381. package/dist/vhdl.js +6 -0
  382. package/dist/viml.js +6 -0
  383. package/dist/vitesse-black.js +4 -0
  384. package/dist/vitesse-dark.js +4 -0
  385. package/dist/vitesse-light.js +4 -0
  386. package/dist/vue-html.js +8 -0
  387. package/dist/vue-vine.js +18 -0
  388. package/dist/vue.js +31 -0
  389. package/dist/vyper.js +6 -0
  390. package/dist/wasm.js +6 -0
  391. package/dist/wasm2.js +7 -0
  392. package/dist/wenyan.js +6 -0
  393. package/dist/wgsl.js +6 -0
  394. package/dist/wikitext.js +6 -0
  395. package/dist/wit.js +6 -0
  396. package/dist/wolfram.js +6 -0
  397. package/dist/xml.js +8 -0
  398. package/dist/xsl.js +8 -0
  399. package/dist/xychartDiagram-PRI3JC2R.js +449 -491
  400. package/dist/xychartDiagram-PRI3JC2R2.js +1299 -0
  401. package/dist/yaml.js +6 -0
  402. package/dist/zenscript.js +6 -0
  403. package/dist/zig.js +6 -0
  404. package/dist/zipObject.js +128 -0
  405. package/package.json +1 -1
@@ -0,0 +1,843 @@
1
+ import { g as Dt } from "./chunk-55IACEB62.js";
2
+ import { s as wt } from "./chunk-QN33PNHL2.js";
3
+ import { aG as u, aI as Vt, aJ as Lt, aL as Mt, aK as Bt, aV as Ft, aW as Yt, aM as tt, aS as D, b0 as Pt, a_ as Gt, b5 as zt, b3 as Kt, b4 as Zt, a$ as Ut, A as jt } from "./CoachForm.js";
4
+ import { s as Wt } from "./redux-toolkit.modern.js";
5
+ import { c as Qt } from "./channel.js";
6
+ var dt = function() {
7
+ var s = /* @__PURE__ */ u(function(R, n, a, c) {
8
+ for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
9
+ return a;
10
+ }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], G = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], z = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
11
+ trace: /* @__PURE__ */ u(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
16
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
17
+ performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
18
+ var e = t.length - 1;
19
+ switch (p) {
20
+ case 1:
21
+ break;
22
+ case 2:
23
+ this.$ = [];
24
+ break;
25
+ case 3:
26
+ t[e - 1].push(t[e]), this.$ = t[e - 1];
27
+ break;
28
+ case 4:
29
+ case 5:
30
+ this.$ = t[e];
31
+ break;
32
+ case 6:
33
+ case 7:
34
+ this.$ = [];
35
+ break;
36
+ case 8:
37
+ r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
38
+ break;
39
+ case 9:
40
+ r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
41
+ break;
42
+ case 10:
43
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
44
+ break;
45
+ case 11:
46
+ r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
47
+ break;
48
+ case 12:
49
+ r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
50
+ break;
51
+ case 13:
52
+ r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
53
+ break;
54
+ case 14:
55
+ r.addEntity(t[e - 2]);
56
+ break;
57
+ case 15:
58
+ r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
59
+ break;
60
+ case 16:
61
+ r.addEntity(t[e]);
62
+ break;
63
+ case 17:
64
+ r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
65
+ break;
66
+ case 18:
67
+ r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
68
+ break;
69
+ case 19:
70
+ r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
71
+ break;
72
+ case 20:
73
+ r.addEntity(t[e - 5], t[e - 3]);
74
+ break;
75
+ case 21:
76
+ r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
77
+ break;
78
+ case 22:
79
+ r.addEntity(t[e - 3], t[e - 1]);
80
+ break;
81
+ case 23:
82
+ r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
83
+ break;
84
+ case 24:
85
+ case 25:
86
+ this.$ = t[e].trim(), r.setAccTitle(this.$);
87
+ break;
88
+ case 26:
89
+ case 27:
90
+ this.$ = t[e].trim(), r.setAccDescription(this.$);
91
+ break;
92
+ case 32:
93
+ r.setDirection("TB");
94
+ break;
95
+ case 33:
96
+ r.setDirection("BT");
97
+ break;
98
+ case 34:
99
+ r.setDirection("RL");
100
+ break;
101
+ case 35:
102
+ r.setDirection("LR");
103
+ break;
104
+ case 36:
105
+ this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
106
+ break;
107
+ case 37:
108
+ case 38:
109
+ case 56:
110
+ case 64:
111
+ this.$ = [t[e]];
112
+ break;
113
+ case 39:
114
+ case 40:
115
+ this.$ = t[e - 2].concat([t[e]]);
116
+ break;
117
+ case 41:
118
+ this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
119
+ break;
120
+ case 42:
121
+ this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
122
+ break;
123
+ case 43:
124
+ this.$ = [t[e]];
125
+ break;
126
+ case 44:
127
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
128
+ break;
129
+ case 46:
130
+ this.$ = t[e - 1] + t[e];
131
+ break;
132
+ case 54:
133
+ case 76:
134
+ case 77:
135
+ this.$ = t[e].replace(/"/g, "");
136
+ break;
137
+ case 55:
138
+ case 78:
139
+ this.$ = t[e];
140
+ break;
141
+ case 57:
142
+ t[e].push(t[e - 1]), this.$ = t[e];
143
+ break;
144
+ case 58:
145
+ this.$ = { type: t[e - 1], name: t[e] };
146
+ break;
147
+ case 59:
148
+ this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
149
+ break;
150
+ case 60:
151
+ this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
152
+ break;
153
+ case 61:
154
+ this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
155
+ break;
156
+ case 62:
157
+ case 63:
158
+ case 66:
159
+ this.$ = t[e];
160
+ break;
161
+ case 65:
162
+ t[e - 2].push(t[e]), this.$ = t[e - 2];
163
+ break;
164
+ case 67:
165
+ this.$ = t[e].replace(/"/g, "");
166
+ break;
167
+ case 68:
168
+ this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
169
+ break;
170
+ case 69:
171
+ this.$ = r.Cardinality.ZERO_OR_ONE;
172
+ break;
173
+ case 70:
174
+ this.$ = r.Cardinality.ZERO_OR_MORE;
175
+ break;
176
+ case 71:
177
+ this.$ = r.Cardinality.ONE_OR_MORE;
178
+ break;
179
+ case 72:
180
+ this.$ = r.Cardinality.ONLY_ONE;
181
+ break;
182
+ case 73:
183
+ this.$ = r.Cardinality.MD_PARENT;
184
+ break;
185
+ case 74:
186
+ this.$ = r.Identification.NON_IDENTIFYING;
187
+ break;
188
+ case 75:
189
+ this.$ = r.Identification.IDENTIFYING;
190
+ break;
191
+ }
192
+ }, "anonymous"),
193
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: G }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: G }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: G }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(z, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: G }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(z, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(z, [2, 60]), s(at, [2, 64]), s(z, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: G }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(z, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
194
+ defaultActions: { 52: [2, 62], 72: [2, 57] },
195
+ parseError: /* @__PURE__ */ u(function(n, a) {
196
+ if (a.recoverable)
197
+ this.trace(n);
198
+ else {
199
+ var c = new Error(n);
200
+ throw c.hash = a, c;
201
+ }
202
+ }, "parseError"),
203
+ parse: /* @__PURE__ */ u(function(n) {
204
+ var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, It = 2, Tt = 1, xt = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
205
+ for (var lt in this.yy)
206
+ Object.prototype.hasOwnProperty.call(this.yy, lt) && (I.yy[lt] = this.yy[lt]);
207
+ y.setInput(n, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
208
+ var ot = y.yylloc;
209
+ t.push(ot);
210
+ var vt = y.options && y.options.ranges;
211
+ typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
212
+ function Ct(b) {
213
+ c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
214
+ }
215
+ u(Ct, "popStack");
216
+ function Ot() {
217
+ var b;
218
+ return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
219
+ }
220
+ u(Ot, "lex");
221
+ for (var g, x, m, ht, C = {}, J, k, At, $; ; ) {
222
+ if (x = c[c.length - 1], this.defaultActions[x] ? m = this.defaultActions[x] : ((g === null || typeof g > "u") && (g = Ot()), m = K[x] && K[x][g]), typeof m > "u" || !m.length || !m[0]) {
223
+ var ut = "";
224
+ $ = [];
225
+ for (J in K[x])
226
+ this.terminals_[J] && J > It && $.push("'" + this.terminals_[J] + "'");
227
+ y.showPosition ? ut = "Parse error on line " + (H + 1) + `:
228
+ ` + y.showPosition() + `
229
+ Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
230
+ text: y.match,
231
+ token: this.terminals_[g] || g,
232
+ line: y.yylineno,
233
+ loc: ot,
234
+ expected: $
235
+ });
236
+ }
237
+ if (m[0] instanceof Array && m.length > 1)
238
+ throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
239
+ switch (m[0]) {
240
+ case 1:
241
+ c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, H = y.yylineno, ot = y.yylloc;
242
+ break;
243
+ case 2:
244
+ if (k = this.productions_[m[1]][1], C.$ = p[p.length - k], C._$ = {
245
+ first_line: t[t.length - (k || 1)].first_line,
246
+ last_line: t[t.length - 1].last_line,
247
+ first_column: t[t.length - (k || 1)].first_column,
248
+ last_column: t[t.length - 1].last_column
249
+ }, vt && (C._$.range = [
250
+ t[t.length - (k || 1)].range[0],
251
+ t[t.length - 1].range[1]
252
+ ]), ht = this.performAction.apply(C, [
253
+ e,
254
+ St,
255
+ H,
256
+ I.yy,
257
+ m[1],
258
+ p,
259
+ t
260
+ ].concat(xt)), typeof ht < "u")
261
+ return ht;
262
+ k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
263
+ break;
264
+ case 3:
265
+ return !0;
266
+ }
267
+ }
268
+ return !0;
269
+ }, "parse")
270
+ }, Rt = /* @__PURE__ */ function() {
271
+ var R = {
272
+ EOF: 1,
273
+ parseError: /* @__PURE__ */ u(function(a, c) {
274
+ if (this.yy.parser)
275
+ this.yy.parser.parseError(a, c);
276
+ else
277
+ throw new Error(a);
278
+ }, "parseError"),
279
+ // resets the lexer, sets new input
280
+ setInput: /* @__PURE__ */ u(function(n, a) {
281
+ return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
282
+ first_line: 1,
283
+ first_column: 0,
284
+ last_line: 1,
285
+ last_column: 0
286
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
287
+ }, "setInput"),
288
+ // consumes and returns one char from the input
289
+ input: /* @__PURE__ */ u(function() {
290
+ var n = this._input[0];
291
+ this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
292
+ var a = n.match(/(?:\r\n?|\n).*/g);
293
+ 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), n;
294
+ }, "input"),
295
+ // unshifts one char (or a string) into the input
296
+ unput: /* @__PURE__ */ u(function(n) {
297
+ var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
298
+ this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
299
+ var r = this.match.split(/(?:\r\n?|\n)/g);
300
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
301
+ var p = this.yylloc.range;
302
+ return this.yylloc = {
303
+ first_line: this.yylloc.first_line,
304
+ last_line: this.yylineno + 1,
305
+ first_column: this.yylloc.first_column,
306
+ last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
307
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
308
+ }, "unput"),
309
+ // When called from action, caches matched text and appends it on next action
310
+ more: /* @__PURE__ */ u(function() {
311
+ return this._more = !0, this;
312
+ }, "more"),
313
+ // 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.
314
+ reject: /* @__PURE__ */ u(function() {
315
+ if (this.options.backtrack_lexer)
316
+ this._backtrack = !0;
317
+ else
318
+ 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).
319
+ ` + this.showPosition(), {
320
+ text: "",
321
+ token: null,
322
+ line: this.yylineno
323
+ });
324
+ return this;
325
+ }, "reject"),
326
+ // retain first n characters of the match
327
+ less: /* @__PURE__ */ u(function(n) {
328
+ this.unput(this.match.slice(n));
329
+ }, "less"),
330
+ // displays already matched input, i.e. for error messages
331
+ pastInput: /* @__PURE__ */ u(function() {
332
+ var n = this.matched.substr(0, this.matched.length - this.match.length);
333
+ return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
334
+ }, "pastInput"),
335
+ // displays upcoming input, i.e. for error messages
336
+ upcomingInput: /* @__PURE__ */ u(function() {
337
+ var n = this.match;
338
+ return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
339
+ }, "upcomingInput"),
340
+ // displays the character position where the lexing error occurred, i.e. for error messages
341
+ showPosition: /* @__PURE__ */ u(function() {
342
+ var n = this.pastInput(), a = new Array(n.length + 1).join("-");
343
+ return n + this.upcomingInput() + `
344
+ ` + a + "^";
345
+ }, "showPosition"),
346
+ // test the lexed token: return FALSE when not a match, otherwise return token
347
+ test_match: /* @__PURE__ */ u(function(n, a) {
348
+ var c, r, p;
349
+ if (this.options.backtrack_lexer && (p = {
350
+ yylineno: this.yylineno,
351
+ yylloc: {
352
+ first_line: this.yylloc.first_line,
353
+ last_line: this.last_line,
354
+ first_column: this.yylloc.first_column,
355
+ last_column: this.yylloc.last_column
356
+ },
357
+ yytext: this.yytext,
358
+ match: this.match,
359
+ matches: this.matches,
360
+ matched: this.matched,
361
+ yyleng: this.yyleng,
362
+ offset: this.offset,
363
+ _more: this._more,
364
+ _input: this._input,
365
+ yy: this.yy,
366
+ conditionStack: this.conditionStack.slice(0),
367
+ done: this.done
368
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
369
+ first_line: this.yylloc.last_line,
370
+ last_line: this.yylineno + 1,
371
+ first_column: this.yylloc.last_column,
372
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
373
+ }, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
374
+ return c;
375
+ if (this._backtrack) {
376
+ for (var t in p)
377
+ this[t] = p[t];
378
+ return !1;
379
+ }
380
+ return !1;
381
+ }, "test_match"),
382
+ // return next match in input
383
+ next: /* @__PURE__ */ u(function() {
384
+ if (this.done)
385
+ return this.EOF;
386
+ this._input || (this.done = !0);
387
+ var n, a, c, r;
388
+ this._more || (this.yytext = "", this.match = "");
389
+ for (var p = this._currentRules(), t = 0; t < p.length; t++)
390
+ if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
391
+ if (a = c, r = t, this.options.backtrack_lexer) {
392
+ if (n = this.test_match(c, p[t]), n !== !1)
393
+ return n;
394
+ if (this._backtrack) {
395
+ a = !1;
396
+ continue;
397
+ } else
398
+ return !1;
399
+ } else if (!this.options.flex)
400
+ break;
401
+ }
402
+ return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
403
+ ` + this.showPosition(), {
404
+ text: "",
405
+ token: null,
406
+ line: this.yylineno
407
+ });
408
+ }, "next"),
409
+ // return next match that has a token
410
+ lex: /* @__PURE__ */ u(function() {
411
+ var a = this.next();
412
+ return a || this.lex();
413
+ }, "lex"),
414
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
415
+ begin: /* @__PURE__ */ u(function(a) {
416
+ this.conditionStack.push(a);
417
+ }, "begin"),
418
+ // pop the previously active lexer condition state off the condition stack
419
+ popState: /* @__PURE__ */ u(function() {
420
+ var a = this.conditionStack.length - 1;
421
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
422
+ }, "popState"),
423
+ // produce the lexer rule set which is active for the currently active lexer condition state
424
+ _currentRules: /* @__PURE__ */ u(function() {
425
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
426
+ }, "_currentRules"),
427
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
428
+ topState: /* @__PURE__ */ u(function(a) {
429
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
430
+ }, "topState"),
431
+ // alias for begin(condition)
432
+ pushState: /* @__PURE__ */ u(function(a) {
433
+ this.begin(a);
434
+ }, "pushState"),
435
+ // return the number of states currently on the stack
436
+ stateStackSize: /* @__PURE__ */ u(function() {
437
+ return this.conditionStack.length;
438
+ }, "stateStackSize"),
439
+ options: { "case-insensitive": !0 },
440
+ performAction: /* @__PURE__ */ u(function(a, c, r, p) {
441
+ switch (r) {
442
+ case 0:
443
+ return this.begin("acc_title"), 24;
444
+ case 1:
445
+ return this.popState(), "acc_title_value";
446
+ case 2:
447
+ return this.begin("acc_descr"), 26;
448
+ case 3:
449
+ return this.popState(), "acc_descr_value";
450
+ case 4:
451
+ this.begin("acc_descr_multiline");
452
+ break;
453
+ case 5:
454
+ this.popState();
455
+ break;
456
+ case 6:
457
+ return "acc_descr_multiline_value";
458
+ case 7:
459
+ return 33;
460
+ case 8:
461
+ return 34;
462
+ case 9:
463
+ return 35;
464
+ case 10:
465
+ return 36;
466
+ case 11:
467
+ return 10;
468
+ case 12:
469
+ break;
470
+ case 13:
471
+ return 8;
472
+ case 14:
473
+ return 50;
474
+ case 15:
475
+ return 70;
476
+ case 16:
477
+ return 4;
478
+ case 17:
479
+ return this.begin("block"), 17;
480
+ case 18:
481
+ return 49;
482
+ case 19:
483
+ return 49;
484
+ case 20:
485
+ return 42;
486
+ case 21:
487
+ return 15;
488
+ case 22:
489
+ return 13;
490
+ case 23:
491
+ break;
492
+ case 24:
493
+ return 59;
494
+ case 25:
495
+ return 56;
496
+ case 26:
497
+ return 56;
498
+ case 27:
499
+ return 60;
500
+ case 28:
501
+ break;
502
+ case 29:
503
+ return this.popState(), 19;
504
+ case 30:
505
+ return c.yytext[0];
506
+ case 31:
507
+ return 20;
508
+ case 32:
509
+ return 21;
510
+ case 33:
511
+ return this.begin("style"), 44;
512
+ case 34:
513
+ return this.popState(), 10;
514
+ case 35:
515
+ break;
516
+ case 36:
517
+ return 13;
518
+ case 37:
519
+ return 42;
520
+ case 38:
521
+ return 49;
522
+ case 39:
523
+ return this.begin("style"), 37;
524
+ case 40:
525
+ return 43;
526
+ case 41:
527
+ return 63;
528
+ case 42:
529
+ return 65;
530
+ case 43:
531
+ return 65;
532
+ case 44:
533
+ return 65;
534
+ case 45:
535
+ return 63;
536
+ case 46:
537
+ return 63;
538
+ case 47:
539
+ return 64;
540
+ case 48:
541
+ return 64;
542
+ case 49:
543
+ return 64;
544
+ case 50:
545
+ return 64;
546
+ case 51:
547
+ return 64;
548
+ case 52:
549
+ return 65;
550
+ case 53:
551
+ return 64;
552
+ case 54:
553
+ return 65;
554
+ case 55:
555
+ return 66;
556
+ case 56:
557
+ return 66;
558
+ case 57:
559
+ return 66;
560
+ case 58:
561
+ return 66;
562
+ case 59:
563
+ return 63;
564
+ case 60:
565
+ return 64;
566
+ case 61:
567
+ return 65;
568
+ case 62:
569
+ return 67;
570
+ case 63:
571
+ return 68;
572
+ case 64:
573
+ return 69;
574
+ case 65:
575
+ return 69;
576
+ case 66:
577
+ return 68;
578
+ case 67:
579
+ return 68;
580
+ case 68:
581
+ return 68;
582
+ case 69:
583
+ return 41;
584
+ case 70:
585
+ return 47;
586
+ case 71:
587
+ return 40;
588
+ case 72:
589
+ return 48;
590
+ case 73:
591
+ return c.yytext[0];
592
+ case 74:
593
+ return 6;
594
+ }
595
+ }, "anonymous"),
596
+ rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
597
+ conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: !0 } }
598
+ };
599
+ return R;
600
+ }();
601
+ ct.lexer = Rt;
602
+ function q() {
603
+ this.yy = {};
604
+ }
605
+ return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
606
+ }();
607
+ dt.parser = dt;
608
+ var Xt = dt, w, qt = (w = class {
609
+ constructor() {
610
+ this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
611
+ ZERO_OR_ONE: "ZERO_OR_ONE",
612
+ ZERO_OR_MORE: "ZERO_OR_MORE",
613
+ ONE_OR_MORE: "ONE_OR_MORE",
614
+ ONLY_ONE: "ONLY_ONE",
615
+ MD_PARENT: "MD_PARENT"
616
+ }, this.Identification = {
617
+ NON_IDENTIFYING: "NON_IDENTIFYING",
618
+ IDENTIFYING: "IDENTIFYING"
619
+ }, this.setAccTitle = Vt, this.getAccTitle = Lt, this.setAccDescription = Mt, this.getAccDescription = Bt, this.setDiagramTitle = Ft, this.getDiagramTitle = Yt, this.getConfig = /* @__PURE__ */ u(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
620
+ }
621
+ /**
622
+ * Add entity
623
+ * @param name - The name of the entity
624
+ * @param alias - The alias of the entity
625
+ */
626
+ addEntity(i, h = "") {
627
+ var d;
628
+ return this.entities.has(i) ? !((d = this.entities.get(i)) != null && d.alias) && h && (this.entities.get(i).alias = h, D.info(`Add alias '${h}' to entity '${i}'`)) : (this.entities.set(i, {
629
+ id: `entity-${i}-${this.entities.size}`,
630
+ label: i,
631
+ attributes: [],
632
+ alias: h,
633
+ shape: "erBox",
634
+ look: tt().look ?? "default",
635
+ cssClasses: "default",
636
+ cssStyles: []
637
+ }), D.info("Added new entity :", i)), this.entities.get(i);
638
+ }
639
+ getEntity(i) {
640
+ return this.entities.get(i);
641
+ }
642
+ getEntities() {
643
+ return this.entities;
644
+ }
645
+ getClasses() {
646
+ return this.classes;
647
+ }
648
+ addAttributes(i, h) {
649
+ const d = this.addEntity(i);
650
+ let o;
651
+ for (o = h.length - 1; o >= 0; o--)
652
+ h[o].keys || (h[o].keys = []), h[o].comment || (h[o].comment = ""), d.attributes.push(h[o]), D.debug("Added attribute ", h[o].name);
653
+ }
654
+ /**
655
+ * Add a relationship
656
+ *
657
+ * @param entA - The first entity in the relationship
658
+ * @param rolA - The role played by the first entity in relation to the second
659
+ * @param entB - The second entity in the relationship
660
+ * @param rSpec - The details of the relationship between the two entities
661
+ */
662
+ addRelationship(i, h, d, o) {
663
+ const l = this.entities.get(i), f = this.entities.get(d);
664
+ if (!l || !f)
665
+ return;
666
+ const _ = {
667
+ entityA: l.id,
668
+ roleA: h,
669
+ entityB: f.id,
670
+ relSpec: o
671
+ };
672
+ this.relationships.push(_), D.debug("Added new relationship :", _);
673
+ }
674
+ getRelationships() {
675
+ return this.relationships;
676
+ }
677
+ getDirection() {
678
+ return this.direction;
679
+ }
680
+ setDirection(i) {
681
+ this.direction = i;
682
+ }
683
+ getCompiledStyles(i) {
684
+ let h = [];
685
+ for (const d of i) {
686
+ const o = this.classes.get(d);
687
+ o != null && o.styles && (h = [...h, ...o.styles ?? []].map((l) => l.trim())), o != null && o.textStyles && (h = [...h, ...o.textStyles ?? []].map((l) => l.trim()));
688
+ }
689
+ return h;
690
+ }
691
+ addCssStyles(i, h) {
692
+ for (const d of i) {
693
+ const o = this.entities.get(d);
694
+ if (!h || !o)
695
+ return;
696
+ for (const l of h)
697
+ o.cssStyles.push(l);
698
+ }
699
+ }
700
+ addClass(i, h) {
701
+ i.forEach((d) => {
702
+ let o = this.classes.get(d);
703
+ o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), h && h.forEach(function(l) {
704
+ if (/color/.exec(l)) {
705
+ const f = l.replace("fill", "bgFill");
706
+ o.textStyles.push(f);
707
+ }
708
+ o.styles.push(l);
709
+ });
710
+ });
711
+ }
712
+ setClass(i, h) {
713
+ for (const d of i) {
714
+ const o = this.entities.get(d);
715
+ if (o)
716
+ for (const l of h)
717
+ o.cssClasses += " " + l;
718
+ }
719
+ }
720
+ clear() {
721
+ this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
722
+ }
723
+ getData() {
724
+ const i = [], h = [], d = tt();
725
+ for (const l of this.entities.keys()) {
726
+ const f = this.entities.get(l);
727
+ f && (f.cssCompiledStyles = this.getCompiledStyles(f.cssClasses.split(" ")), i.push(f));
728
+ }
729
+ let o = 0;
730
+ for (const l of this.relationships) {
731
+ const f = {
732
+ id: Gt(l.entityA, l.entityB, {
733
+ prefix: "id",
734
+ counter: o++
735
+ }),
736
+ type: "normal",
737
+ curve: "basis",
738
+ start: l.entityA,
739
+ end: l.entityB,
740
+ label: l.roleA,
741
+ labelpos: "c",
742
+ thickness: "normal",
743
+ classes: "relationshipLine",
744
+ arrowTypeStart: l.relSpec.cardB.toLowerCase(),
745
+ arrowTypeEnd: l.relSpec.cardA.toLowerCase(),
746
+ pattern: l.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
747
+ look: d.look
748
+ };
749
+ h.push(f);
750
+ }
751
+ return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
752
+ }
753
+ }, u(w, "ErDB"), w), Nt = {};
754
+ zt(Nt, {
755
+ draw: () => Ht
756
+ });
757
+ var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
758
+ D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
759
+ const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
760
+ _.type = d.type, _.layoutAlgorithm = Kt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Zt(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
761
+ const V = E.selectAll('[id*="-background"]');
762
+ Array.from(V).length > 0 && V.each(function() {
763
+ const S = Wt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
764
+ if (!T.empty()) {
765
+ const L = T.attr("transform");
766
+ S.attr("transform", L);
767
+ }
768
+ });
769
+ const Z = 8;
770
+ Ut.insertTitle(
771
+ E,
772
+ "erDiagramTitleText",
773
+ (l == null ? void 0 : l.titleTopMargin) ?? 25,
774
+ d.db.getDiagramTitle()
775
+ ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
776
+ }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
777
+ const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
778
+ return jt(d, o, l, i);
779
+ }, "fade"), $t = /* @__PURE__ */ u((s) => `
780
+ .entityBox {
781
+ fill: ${s.mainBkg};
782
+ stroke: ${s.nodeBorder};
783
+ }
784
+
785
+ .relationshipLabelBox {
786
+ fill: ${s.tertiaryColor};
787
+ opacity: 0.7;
788
+ background-color: ${s.tertiaryColor};
789
+ rect {
790
+ opacity: 0.5;
791
+ }
792
+ }
793
+
794
+ .labelBkg {
795
+ background-color: ${Jt(s.tertiaryColor, 0.5)};
796
+ }
797
+
798
+ .edgeLabel .label {
799
+ fill: ${s.nodeBorder};
800
+ font-size: 14px;
801
+ }
802
+
803
+ .label {
804
+ font-family: ${s.fontFamily};
805
+ color: ${s.nodeTextColor || s.textColor};
806
+ }
807
+
808
+ .edge-pattern-dashed {
809
+ stroke-dasharray: 8,8;
810
+ }
811
+
812
+ .node rect,
813
+ .node circle,
814
+ .node ellipse,
815
+ .node polygon
816
+ {
817
+ fill: ${s.mainBkg};
818
+ stroke: ${s.nodeBorder};
819
+ stroke-width: 1px;
820
+ }
821
+
822
+ .relationshipLine {
823
+ stroke: ${s.lineColor};
824
+ stroke-width: 1;
825
+ fill: none;
826
+ }
827
+
828
+ .marker {
829
+ fill: none !important;
830
+ stroke: ${s.lineColor} !important;
831
+ stroke-width: 1;
832
+ }
833
+ `, "getStyles"), te = $t, ae = {
834
+ parser: Xt,
835
+ get db() {
836
+ return new qt();
837
+ },
838
+ renderer: Nt,
839
+ styles: te
840
+ };
841
+ export {
842
+ ae as diagram
843
+ };