@tickernelz/paperclip-pro-ui 2026.925.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +30 -0
  2. package/dist/android-chrome-192x192.png +0 -0
  3. package/dist/android-chrome-512x512.png +0 -0
  4. package/dist/announcement-preview.svg +11 -0
  5. package/dist/apple-touch-icon.png +0 -0
  6. package/dist/assets/AgentAvatar-BR1Z_L_Z.js +1 -0
  7. package/dist/assets/AgentIdentity-BgihkjQU.js +1 -0
  8. package/dist/assets/Agents.production-BsKiBknO.js +2 -0
  9. package/dist/assets/CompanyActivity.production-Bp4gxpq3.js +1 -0
  10. package/dist/assets/CompanyExport-BvUhFYBr.js +4 -0
  11. package/dist/assets/CompanySkills.production-htb9HH0N.js +10 -0
  12. package/dist/assets/Costs.production-CzulNW6Y.js +1 -0
  13. package/dist/assets/EmptyState-DOb3I5aU.js +1 -0
  14. package/dist/assets/MarkdownBody-AdwNLx7A.js +16 -0
  15. package/dist/assets/MarkdownEditor-B3NYD32f.js +85 -0
  16. package/dist/assets/OrgChart.production-DbBigpMZ.js +1 -0
  17. package/dist/assets/PageSkeleton-C-C3Xlc_.js +1 -0
  18. package/dist/assets/RoutineDetail.production-DJn3YZiR.js +1 -0
  19. package/dist/assets/RoutineRunVariablesDialog-BkLLbP3a.js +5 -0
  20. package/dist/assets/Routines.production-BBDkh1yN.js +1 -0
  21. package/dist/assets/SidebarContext-9UFQ2Pex.js +1 -0
  22. package/dist/assets/StatusIcon-DMDp_WJw.js +1 -0
  23. package/dist/assets/abnfDiagram-VCTEODGH-wiE_K2ku.js +1 -0
  24. package/dist/assets/agents-DrLpWAcm.js +1 -0
  25. package/dist/assets/apl-MHzTCvfx.js +1 -0
  26. package/dist/assets/arc-BQ55EiX2.js +1 -0
  27. package/dist/assets/architecture-7GRP2DOG-B-bRgmfI.js +1 -0
  28. package/dist/assets/architectureDiagram-5GKGNRK7-BkhBoP5_.js +36 -0
  29. package/dist/assets/array-CL5Tisss.js +1 -0
  30. package/dist/assets/asciiarmor-DFLNSgns.js +1 -0
  31. package/dist/assets/asn1-CfPVWRYE.js +1 -0
  32. package/dist/assets/asterisk-CJ4OeA7Y.js +1 -0
  33. package/dist/assets/badge-BLr1M3ne.js +1 -0
  34. package/dist/assets/blockDiagram-I7D4REHJ-fyVn7r-9.js +129 -0
  35. package/dist/assets/bot-CET4VfU-.js +1 -0
  36. package/dist/assets/brainfuck-NEHkmXMc.js +1 -0
  37. package/dist/assets/button-DCI8NFig.js +1 -0
  38. package/dist/assets/c4Diagram-7LVT6UL2-BqC3qTZS.js +38 -0
  39. package/dist/assets/card-BD8MkPAL.js +1 -0
  40. package/dist/assets/channel-0B5iAV5A.js +1 -0
  41. package/dist/assets/character-CguPM7IG.js +1 -0
  42. package/dist/assets/check-C6myARng.js +1 -0
  43. package/dist/assets/checkbox-CmYq-YMP.js +1 -0
  44. package/dist/assets/chevron-down-D2wNtbQf.js +1 -0
  45. package/dist/assets/chevron-right-CU6xIk8W.js +1 -0
  46. package/dist/assets/chunk-2Q5K7J3B-CkPHWFj-.js +1 -0
  47. package/dist/assets/chunk-4HAMMTFA-CGGd_Pxz.js +62 -0
  48. package/dist/assets/chunk-5VM5RSS4-2H3r6wq0.js +15 -0
  49. package/dist/assets/chunk-75Z2AOVW-BaPl5WA6.js +2 -0
  50. package/dist/assets/chunk-DU6HZSFF-2P5iNHqg.js +127 -0
  51. package/dist/assets/chunk-F27PBJKO-Ci7GmRgM.js +1 -0
  52. package/dist/assets/chunk-FOHPRMQF-7Ogwfo6e.js +153 -0
  53. package/dist/assets/chunk-GMAD6QVW-BfvaaEBW.js +70 -0
  54. package/dist/assets/chunk-GVQU2GXP-Cwp_Wpj2.js +1 -0
  55. package/dist/assets/chunk-IMKFNOWR-BjXu-u1C.js +231 -0
  56. package/dist/assets/chunk-JWPE2WC7--HEGjv3t.js +1 -0
  57. package/dist/assets/chunk-L3NEJ4N5-JUd1UqX1.js +1 -0
  58. package/dist/assets/chunk-OSK3NFVY-DlrxddG-.js +10 -0
  59. package/dist/assets/chunk-P2QGCYS3-CjqEi3mx.js +1 -0
  60. package/dist/assets/chunk-POPQ4Y6H-BytmIqFc.js +1 -0
  61. package/dist/assets/chunk-PWAF6VOD-CR3rNBNB.js +1 -0
  62. package/dist/assets/chunk-SHT3W25Y-B1Klag0Z.js +168 -0
  63. package/dist/assets/chunk-SVP7TREG-A4BO1_5v.js +88 -0
  64. package/dist/assets/chunk-TICWLB2K-B4lRXha0.js +206 -0
  65. package/dist/assets/chunk-XXDRQBXY-BhrH-9FX.js +1 -0
  66. package/dist/assets/chunk-Y2CYZVJY-OvsAdhaO.js +1 -0
  67. package/dist/assets/classDiagram-ZZMXUADV-icHQAbF4.js +1 -0
  68. package/dist/assets/classDiagram-v2-VYDZK3BY-icHQAbF4.js +1 -0
  69. package/dist/assets/clike-CIx9nZSv.js +1 -0
  70. package/dist/assets/clipboard-BZT4l65i.js +1 -0
  71. package/dist/assets/clojure-DFaIEz5O.js +1 -0
  72. package/dist/assets/cmake-koz-qBlo.js +1 -0
  73. package/dist/assets/cobol-Bo8Zw9gB.js +1 -0
  74. package/dist/assets/coffeescript-CXYzYf-Y.js +1 -0
  75. package/dist/assets/commonlisp-C4OOCwkD.js +1 -0
  76. package/dist/assets/company-members-C1IoXITE.js +1 -0
  77. package/dist/assets/cose-bilkent-JH36ORCC-ShY6JvWh.js +1 -0
  78. package/dist/assets/createLucideIcon-D-iIM3hK.js +92 -0
  79. package/dist/assets/crystal-BlJXQDvy.js +1 -0
  80. package/dist/assets/css-DEZwfVpY.js +1 -0
  81. package/dist/assets/cynefin-OW5HDTMX-SmJ8tLYh.js +1 -0
  82. package/dist/assets/cynefinDiagram-5FMLGOSQ-Qp2NNXUx.js +62 -0
  83. package/dist/assets/cypher-z2oFsVv2.js +1 -0
  84. package/dist/assets/cytoscape.esm-B68Piqei.js +321 -0
  85. package/dist/assets/d-Dkt6y7AQ.js +1 -0
  86. package/dist/assets/dagre-Bnei_7lW.js +1 -0
  87. package/dist/assets/dagre-GXQ25YYZ-C1bu-Sbk.js +4 -0
  88. package/dist/assets/defaultLocale-C2Bpu8Ih.js +1 -0
  89. package/dist/assets/definition-qmfin__X.js +1 -0
  90. package/dist/assets/diagram-S7CK7UJ4-D0cqRe3j.js +30 -0
  91. package/dist/assets/diagram-UQ7AKVKN-DdEgR6LR.js +41 -0
  92. package/dist/assets/diagram-VSXAHHWV-B_APewr5.js +3 -0
  93. package/dist/assets/diagram-VX7I27RA-B2quR8-z.js +24 -0
  94. package/dist/assets/diagram-Z3DM3KII-BpQRCt5N.js +24 -0
  95. package/dist/assets/diff-C60bAYOU.js +1 -0
  96. package/dist/assets/dist-B0TRtKS8.js +1 -0
  97. package/dist/assets/dist-B3Uu-urE.js +1 -0
  98. package/dist/assets/dist-BRrJTSwu.js +1 -0
  99. package/dist/assets/dist-BX-OCtve.js +7 -0
  100. package/dist/assets/dist-BXoB5t8y.js +1 -0
  101. package/dist/assets/dist-BeN6V24C.js +1 -0
  102. package/dist/assets/dist-Bs8B1orN.js +1 -0
  103. package/dist/assets/dist-BuzarGBs.js +1 -0
  104. package/dist/assets/dist-C2jegCUe.js +2 -0
  105. package/dist/assets/dist-C8CoeHVO.js +6 -0
  106. package/dist/assets/dist-CBo4NvFW.js +1 -0
  107. package/dist/assets/dist-CSbL7rtN.js +1 -0
  108. package/dist/assets/dist-CWrRKmYk.js +1 -0
  109. package/dist/assets/dist-CXeuJs-w.js +1 -0
  110. package/dist/assets/dist-Cc3Bt6H4.js +1 -0
  111. package/dist/assets/dist-Cj4C2HPs.js +1 -0
  112. package/dist/assets/dist-DCJXgQu0.js +13 -0
  113. package/dist/assets/dist-DKJ0FdKS.js +1 -0
  114. package/dist/assets/dist-DZgNtG8a.js +1 -0
  115. package/dist/assets/dist-DoBOMP6Y.js +1 -0
  116. package/dist/assets/dist-DpmnjHX9.js +1 -0
  117. package/dist/assets/dist-DsLYqWnM.js +1 -0
  118. package/dist/assets/dist-DyyIM2uF.js +3 -0
  119. package/dist/assets/dist-YH7EZ8d1.js +1 -0
  120. package/dist/assets/dist-oQmcCiSD.js +1 -0
  121. package/dist/assets/dist-sLIQSVjm.js +13 -0
  122. package/dist/assets/dist-xQwUswee.js +1 -0
  123. package/dist/assets/dockerfile-BttNdtK0.js +1 -0
  124. package/dist/assets/dtd-CCVZU5Da.js +1 -0
  125. package/dist/assets/dylan-3pmV5wzs.js +1 -0
  126. package/dist/assets/ebnf-bm-I2WIh.js +1 -0
  127. package/dist/assets/ebnfDiagram-PWID7BFC-C9x73jSZ.js +1 -0
  128. package/dist/assets/ecl-BIv3PrZb.js +1 -0
  129. package/dist/assets/eiffel-DuLnr4-r.js +1 -0
  130. package/dist/assets/elm-njbaCU-L.js +1 -0
  131. package/dist/assets/environments-Cd-g_MmN.js +1 -0
  132. package/dist/assets/erDiagram-RLTQ6QDP-Dkp7z94L.js +99 -0
  133. package/dist/assets/erlang-CuhOC2I8.js +1 -0
  134. package/dist/assets/eventmodeling-NTZA5JFV-CCSRuDgA.js +1 -0
  135. package/dist/assets/external-link-BKz-OKDG.js +1 -0
  136. package/dist/assets/factor-CM3-9V3b.js +1 -0
  137. package/dist/assets/fcl-nWsMJ92o.js +1 -0
  138. package/dist/assets/file-text-DXa-cUrm.js +1 -0
  139. package/dist/assets/flowDiagram-HODETNUW-CDvpIOlT.js +1 -0
  140. package/dist/assets/forth-BQ9HrCVY.js +1 -0
  141. package/dist/assets/fortran-DHJe28ev.js +1 -0
  142. package/dist/assets/ganttDiagram-EL5Y4UJY-CJs7mNJX.js +292 -0
  143. package/dist/assets/gas-ByO0qYMr.js +1 -0
  144. package/dist/assets/gherkin-CwOmHL5K.js +1 -0
  145. package/dist/assets/gitGraph-4MIJSDKK-SUTvd_QT.js +1 -0
  146. package/dist/assets/gitGraphDiagram-WWUBYQGX-ByeD7NPE.js +106 -0
  147. package/dist/assets/graphlib-DHhK3saS.js +1 -0
  148. package/dist/assets/groovy-ByXGF8cx.js +1 -0
  149. package/dist/assets/haskell-CHSpCNOy.js +1 -0
  150. package/dist/assets/haxe-P2jh68ck.js +1 -0
  151. package/dist/assets/health-Dc13TJNg.js +1 -0
  152. package/dist/assets/heartbeats-CY77VTM_.js +1 -0
  153. package/dist/assets/http-0jwMmfWP.js +1 -0
  154. package/dist/assets/idl-DTVVj6r5.js +1 -0
  155. package/dist/assets/index-CWuperHN.css +1 -0
  156. package/dist/assets/index-ZrmXLuMX.js +733 -0
  157. package/dist/assets/info-A6RAGUB7-DP8pqSDg.js +1 -0
  158. package/dist/assets/infoDiagram-27XIBGKW-B6sR9qVK.js +2 -0
  159. package/dist/assets/init-BXPE0p7i.js +1 -0
  160. package/dist/assets/input-BkGpMopE.js +1 -0
  161. package/dist/assets/ishikawaDiagram-5VMMS53U-HFQ3gYGN.js +70 -0
  162. package/dist/assets/javascript-Cblpdx44.js +1 -0
  163. package/dist/assets/journeyDiagram-3NMN7TZE-BtoNErTz.js +139 -0
  164. package/dist/assets/julia-KVJvUu_F.js +1 -0
  165. package/dist/assets/kanban-definition-UXKFOSKX-Y55yoRj4.js +89 -0
  166. package/dist/assets/katex-Du_FPwxl.js +257 -0
  167. package/dist/assets/label-C-aWneNy.js +5 -0
  168. package/dist/assets/line-CJEZO7lL.js +1 -0
  169. package/dist/assets/linear-s0r5e4qh.js +1 -0
  170. package/dist/assets/livescript-DSHsJPcD.js +1 -0
  171. package/dist/assets/loader-circle-DwlcG9aS.js +1 -0
  172. package/dist/assets/lua-Vher-70I.js +1 -0
  173. package/dist/assets/mathematica-CE9SaVsW.js +1 -0
  174. package/dist/assets/mbox-JGl1Fgvq.js +1 -0
  175. package/dist/assets/mention-chips-pBjlxGok.js +17 -0
  176. package/dist/assets/mermaid-parser.core-CHJSk6z0.js +7 -0
  177. package/dist/assets/mermaid.core-G_BSi0G0.js +42 -0
  178. package/dist/assets/mindmap-definition-YA3MSWOX-BnlANYwV.js +96 -0
  179. package/dist/assets/mirc-BGWbO906.js +1 -0
  180. package/dist/assets/mllike-DuNQsEw8.js +1 -0
  181. package/dist/assets/model-DL5biheO.js +1 -0
  182. package/dist/assets/modelica-5XCgKQt8.js +1 -0
  183. package/dist/assets/mscgen-mVFg19ri.js +1 -0
  184. package/dist/assets/mumps-C7oS353s.js +1 -0
  185. package/dist/assets/nginx-DXVlpyCz.js +1 -0
  186. package/dist/assets/nsis-KFC6hioG.js +1 -0
  187. package/dist/assets/ntriples-5ckCopnn.js +1 -0
  188. package/dist/assets/octagon-alert-CTp78pR9.js +1 -0
  189. package/dist/assets/octave-D1J2QQNt.js +1 -0
  190. package/dist/assets/ordinal-BJyFM1v8.js +1 -0
  191. package/dist/assets/oz-CPsllMDD.js +1 -0
  192. package/dist/assets/packet-AYTQ26CC-DHxu-C4z.js +1 -0
  193. package/dist/assets/pascal-B-I6JP0Y.js +1 -0
  194. package/dist/assets/path-D6mommQw.js +1 -0
  195. package/dist/assets/pegDiagram-XKGWAZYB-CHhCzuLt.js +1 -0
  196. package/dist/assets/perl-CI8WIWBi.js +1 -0
  197. package/dist/assets/pie-WAS4IAKB-CP_gIBKD.js +1 -0
  198. package/dist/assets/pieDiagram-E7YTZNPT-CEGI1j0Q.js +39 -0
  199. package/dist/assets/pig-FQI0W3S3.js +1 -0
  200. package/dist/assets/powershell-BAu6x78A.js +1 -0
  201. package/dist/assets/preload-helper-CceJXRIF.js +1 -0
  202. package/dist/assets/prod-COP_vZWu.js +495 -0
  203. package/dist/assets/properties-BKTTDgau.js +1 -0
  204. package/dist/assets/protobuf-UWh8gh_j.js +1 -0
  205. package/dist/assets/pug-C20tNwmy.js +1 -0
  206. package/dist/assets/puppet-BAHVzCkO.js +1 -0
  207. package/dist/assets/python-C2DOnsac.js +1 -0
  208. package/dist/assets/q-Cooe-Nh8.js +1 -0
  209. package/dist/assets/quadrantDiagram-AXDQQJYC-BfVC-A1t.js +7 -0
  210. package/dist/assets/r-CktBKya9.js +1 -0
  211. package/dist/assets/radar-RG4KPBEZ-DbvKbV6l.js +1 -0
  212. package/dist/assets/railroad-74A4TZTK-BPHjMWIu.js +1 -0
  213. package/dist/assets/railroad-abnf-HS5TGJTU-DKY8xCGL.js +1 -0
  214. package/dist/assets/railroad-ebnf-LZEXJU2U-DK75GN4x.js +1 -0
  215. package/dist/assets/railroad-peg-WCYAUIDC-0bHp9JB9.js +1 -0
  216. package/dist/assets/railroadDiagram-O6MQD6OU-Bwh6snZb.js +1 -0
  217. package/dist/assets/requirementDiagram-BXWQKSXE-NEvTOdsw.js +84 -0
  218. package/dist/assets/rolldown-runtime-ZpX3ckPj.js +1 -0
  219. package/dist/assets/rotate-ccw-BhopZISX.js +1 -0
  220. package/dist/assets/rough.esm-DnC5Tr1g.js +1 -0
  221. package/dist/assets/router-BxwR1PwE.js +15 -0
  222. package/dist/assets/rpm-Csj9nLHl.js +1 -0
  223. package/dist/assets/ruby-bGx9eo-K.js +1 -0
  224. package/dist/assets/runtime-IAg0vdY9.js +4137 -0
  225. package/dist/assets/sankeyDiagram-P5KCCOFB-AvKb1lr-.js +40 -0
  226. package/dist/assets/sas-Drou_EQ9.js +1 -0
  227. package/dist/assets/save-D5KpMLil.js +1 -0
  228. package/dist/assets/scheme-DcjG9bAf.js +1 -0
  229. package/dist/assets/select-BqqjvKLd.js +1 -0
  230. package/dist/assets/sequenceDiagram-WJ2MYXX4-BP0QZnHN.js +162 -0
  231. package/dist/assets/sheet-Z4n6AEBA.js +1 -0
  232. package/dist/assets/shell-BSKClwid.js +1 -0
  233. package/dist/assets/sieve-CcvsXPZo.js +1 -0
  234. package/dist/assets/simple-mode-B79cVo-x.js +1 -0
  235. package/dist/assets/sizeCapture-INFHLROL-XURNLuv_.js +1 -0
  236. package/dist/assets/skeleton-BxD7FB8M.js +1 -0
  237. package/dist/assets/smalltalk-Cmg-4mjQ.js +1 -0
  238. package/dist/assets/solr-Dj8ahEwG.js +1 -0
  239. package/dist/assets/sparql-LAJYmgfk.js +1 -0
  240. package/dist/assets/spreadsheet-B8doD_pL.js +1 -0
  241. package/dist/assets/sql-C3kWxFGw.js +1 -0
  242. package/dist/assets/src-Bssc388C.js +1 -0
  243. package/dist/assets/stateDiagram-D77RDMKH-Ce0Wj7yz.js +1 -0
  244. package/dist/assets/stateDiagram-v2-MP3YSRHH-CREL-f_f.js +1 -0
  245. package/dist/assets/stex-CW6K5Nmu.js +1 -0
  246. package/dist/assets/stylus-BS-Ienrc.js +1 -0
  247. package/dist/assets/swift-BD82LMDK.js +1 -0
  248. package/dist/assets/swimlanes-42K2YHIH-CX7zPtNU.js +1 -0
  249. package/dist/assets/swimlanesDiagram-VR7AAH4N-B22pD4D6.js +8 -0
  250. package/dist/assets/tabs-Dqn3cNzC.js +1 -0
  251. package/dist/assets/tcl-RZa1cqc-.js +1 -0
  252. package/dist/assets/textile-C-BY_OGF.js +1 -0
  253. package/dist/assets/tiddlywiki-C9bm_Oju.js +1 -0
  254. package/dist/assets/tiki-DJOT-rFT.js +1 -0
  255. package/dist/assets/timeline-definition-24CTP7MA-Bw21rjHm.js +120 -0
  256. package/dist/assets/toml-Civ2fTsu.js +1 -0
  257. package/dist/assets/treeView-Q6P3EWNA-CzxfDhvq.js +1 -0
  258. package/dist/assets/treemap-WGGIJYW6-DNWYF4zd.js +1 -0
  259. package/dist/assets/triangle-alert-DOta-xfM.js +1 -0
  260. package/dist/assets/troff-Lns35Xcq.js +1 -0
  261. package/dist/assets/ttcn-7vlxVTUK.js +1 -0
  262. package/dist/assets/ttcn-cfg-B8qhhp6o.js +1 -0
  263. package/dist/assets/turtle-DTIS1YQ7.js +1 -0
  264. package/dist/assets/use-adapter-capabilities-0-4PhK9y.js +1 -0
  265. package/dist/assets/useHiddenSettings-D9d6LOsg.js +1 -0
  266. package/dist/assets/vb-BO8UacKu.js +1 -0
  267. package/dist/assets/vbscript-DWLru3lT.js +1 -0
  268. package/dist/assets/velocity-BIIn-Nl2.js +1 -0
  269. package/dist/assets/vennDiagram-4TSXK5OY-BuncstTm.js +34 -0
  270. package/dist/assets/verilog-BVYlmXGg.js +1 -0
  271. package/dist/assets/vhdl-Cn8cC8Yb.js +1 -0
  272. package/dist/assets/wardley-WFR3VGLG-C18JBEVS.js +1 -0
  273. package/dist/assets/wardleyDiagram-VM6X3IG4-DOHY7xcd.js +78 -0
  274. package/dist/assets/webidl-ChvzbZ5-.js +1 -0
  275. package/dist/assets/xquery-BKN7qEbU.js +1 -0
  276. package/dist/assets/xychartDiagram-S5SC5T6Z-qOWxoNte.js +7 -0
  277. package/dist/assets/yacas-BG9ha7tU.js +1 -0
  278. package/dist/assets/z80-CB2cGLew.js +1 -0
  279. package/dist/assets/zap-gf6Ev631.js +41 -0
  280. package/dist/brands/adapters/LICENSE +21 -0
  281. package/dist/brands/adapters/README.md +7 -0
  282. package/dist/brands/adapters/cursor-dark.svg +1 -0
  283. package/dist/brands/adapters/cursor.svg +1 -0
  284. package/dist/brands/adapters/gemini-color.svg +1 -0
  285. package/dist/brands/adapters/grok-dark.svg +1 -0
  286. package/dist/brands/adapters/grok.svg +1 -0
  287. package/dist/brands/adapters/hermesagent-dark.svg +1 -0
  288. package/dist/brands/adapters/hermesagent.svg +1 -0
  289. package/dist/brands/adapters/kimi-color-light.svg +1 -0
  290. package/dist/brands/adapters/kimi-color.svg +1 -0
  291. package/dist/brands/adapters/pi-dark.svg +1 -0
  292. package/dist/brands/adapters/pi.svg +1 -0
  293. package/dist/brands/apps/LOBE-LICENSE +21 -0
  294. package/dist/brands/apps/agentmail-dark.svg +16 -0
  295. package/dist/brands/apps/agentmail.svg +17 -0
  296. package/dist/brands/apps/airtable.svg +1 -0
  297. package/dist/brands/apps/anthropic-dark.svg +1 -0
  298. package/dist/brands/apps/anthropic.svg +1 -0
  299. package/dist/brands/apps/api-key-generic.svg +1 -0
  300. package/dist/brands/apps/arcade.png +0 -0
  301. package/dist/brands/apps/asana.svg +12 -0
  302. package/dist/brands/apps/beehiiv.png +0 -0
  303. package/dist/brands/apps/bitly.svg +1 -0
  304. package/dist/brands/apps/box.svg +1 -0
  305. package/dist/brands/apps/brex-dark.svg +1 -0
  306. package/dist/brands/apps/brex.svg +1 -0
  307. package/dist/brands/apps/candid.png +0 -0
  308. package/dist/brands/apps/clickhouse-dark.svg +1 -0
  309. package/dist/brands/apps/clickhouse.svg +1 -0
  310. package/dist/brands/apps/cloudflare.svg +1 -0
  311. package/dist/brands/apps/cloudinary-dark.svg +1 -0
  312. package/dist/brands/apps/cloudinary.svg +3 -0
  313. package/dist/brands/apps/coda.svg +1 -0
  314. package/dist/brands/apps/composio-dark.svg +11 -0
  315. package/dist/brands/apps/composio.svg +16 -0
  316. package/dist/brands/apps/context7-dark.svg +8 -0
  317. package/dist/brands/apps/context7.svg +8 -0
  318. package/dist/brands/apps/discord-dark.svg +1 -0
  319. package/dist/brands/apps/discord.svg +1 -0
  320. package/dist/brands/apps/egnyte.svg +1 -0
  321. package/dist/brands/apps/embat.svg +1 -0
  322. package/dist/brands/apps/executor.png +0 -0
  323. package/dist/brands/apps/fireflies.svg +76 -0
  324. package/dist/brands/apps/github-dark.svg +10 -0
  325. package/dist/brands/apps/github.svg +10 -0
  326. package/dist/brands/apps/gmail.svg +1 -0
  327. package/dist/brands/apps/google-calendar.svg +1 -0
  328. package/dist/brands/apps/google-chat.svg +1 -0
  329. package/dist/brands/apps/google-docs.svg +1 -0
  330. package/dist/brands/apps/google-drive.svg +1 -0
  331. package/dist/brands/apps/google-people.svg +1 -0
  332. package/dist/brands/apps/google-sheets.svg +1 -0
  333. package/dist/brands/apps/google-slides.svg +1 -0
  334. package/dist/brands/apps/google-workspace-search.svg +1 -0
  335. package/dist/brands/apps/hugging-face.svg +8 -0
  336. package/dist/brands/apps/imessage-photon.png +0 -0
  337. package/dist/brands/apps/jam-dev-dark.svg +1 -0
  338. package/dist/brands/apps/jam-dev.svg +1 -0
  339. package/dist/brands/apps/jira-dark.svg +1 -0
  340. package/dist/brands/apps/jira.svg +4 -0
  341. package/dist/brands/apps/kernel.svg +3 -0
  342. package/dist/brands/apps/linear-dark.svg +5 -0
  343. package/dist/brands/apps/linear.svg +5 -0
  344. package/dist/brands/apps/local-falcon.png +0 -0
  345. package/dist/brands/apps/make-dark.svg +1 -0
  346. package/dist/brands/apps/make.svg +1 -0
  347. package/dist/brands/apps/manifest.json +496 -0
  348. package/dist/brands/apps/manufact-dark.svg +6 -0
  349. package/dist/brands/apps/manufact.svg +5 -0
  350. package/dist/brands/apps/mem0.svg +1 -0
  351. package/dist/brands/apps/microsoft-teams.svg +68 -0
  352. package/dist/brands/apps/miro-dark.svg +1 -0
  353. package/dist/brands/apps/miro.svg +4 -0
  354. package/dist/brands/apps/mixpanel-dark.svg +1 -0
  355. package/dist/brands/apps/mixpanel.svg +1 -0
  356. package/dist/brands/apps/netlify-dark.svg +1 -0
  357. package/dist/brands/apps/netlify.svg +16 -0
  358. package/dist/brands/apps/notion-dark.svg +1 -0
  359. package/dist/brands/apps/notion.svg +1 -0
  360. package/dist/brands/apps/oauth-generic.svg +1 -0
  361. package/dist/brands/apps/openai-dark.svg +1 -0
  362. package/dist/brands/apps/openai.svg +1 -0
  363. package/dist/brands/apps/openrouter-dark.svg +3 -0
  364. package/dist/brands/apps/openrouter.svg +3 -0
  365. package/dist/brands/apps/oreilly.svg +1 -0
  366. package/dist/brands/apps/pagerduty.svg +4 -0
  367. package/dist/brands/apps/planetscale-dark.svg +1 -0
  368. package/dist/brands/apps/planetscale.svg +1 -0
  369. package/dist/brands/apps/posthog-dark.svg +1 -0
  370. package/dist/brands/apps/posthog.svg +1 -0
  371. package/dist/brands/apps/postman.svg +1 -0
  372. package/dist/brands/apps/railway-dark.svg +1 -0
  373. package/dist/brands/apps/railway.svg +1 -0
  374. package/dist/brands/apps/razorpay-dark.svg +1 -0
  375. package/dist/brands/apps/razorpay.svg +1 -0
  376. package/dist/brands/apps/resend-dark.svg +1 -0
  377. package/dist/brands/apps/resend.svg +1 -0
  378. package/dist/brands/apps/sanity-dark.svg +1 -0
  379. package/dist/brands/apps/sanity.svg +1 -0
  380. package/dist/brands/apps/sentry-dark.svg +1 -0
  381. package/dist/brands/apps/sentry.svg +1 -0
  382. package/dist/brands/apps/shopify.svg +24 -0
  383. package/dist/brands/apps/similarweb-dark.svg +1 -0
  384. package/dist/brands/apps/similarweb.svg +1 -0
  385. package/dist/brands/apps/slack.png +0 -0
  386. package/dist/brands/apps/slack.svg +17 -0
  387. package/dist/brands/apps/stripe.svg +11 -0
  388. package/dist/brands/apps/supabase.svg +15 -0
  389. package/dist/brands/apps/telegram.svg +12 -0
  390. package/dist/brands/apps/ticket-tailor-dark.svg +1 -0
  391. package/dist/brands/apps/ticket-tailor.svg +1 -0
  392. package/dist/brands/apps/ticktick.svg +1 -0
  393. package/dist/brands/apps/todoist.svg +1 -0
  394. package/dist/brands/apps/vercel-dark.svg +1 -0
  395. package/dist/brands/apps/vercel.svg +1 -0
  396. package/dist/brands/apps/webflow.svg +1 -0
  397. package/dist/brands/apps/wix-dark.svg +12 -0
  398. package/dist/brands/apps/wix.svg +12 -0
  399. package/dist/brands/apps/xai-dark.svg +1 -0
  400. package/dist/brands/apps/xai.svg +1 -0
  401. package/dist/brands/apps/xero.svg +1 -0
  402. package/dist/brands/apps/youcom-dark.svg +13 -0
  403. package/dist/brands/apps/youcom.svg +13 -0
  404. package/dist/brands/apps/zapier.svg +1 -0
  405. package/dist/brands/claude-color.svg +17 -0
  406. package/dist/brands/codex-color.svg +17 -0
  407. package/dist/brands/opencode-logo-dark-square.svg +18 -0
  408. package/dist/brands/opencode-logo-light-square.svg +18 -0
  409. package/dist/favicon-16x16.png +0 -0
  410. package/dist/favicon-32x32.png +0 -0
  411. package/dist/favicon.ico +0 -0
  412. package/dist/favicon.svg +9 -0
  413. package/dist/fonts/InterVariable-Italic.woff2 +0 -0
  414. package/dist/fonts/InterVariable.woff2 +0 -0
  415. package/dist/fonts/NOTICE.md +17 -0
  416. package/dist/index.html +97 -0
  417. package/dist/paperclip-thinking.svg +17 -0
  418. package/dist/site.webmanifest +30 -0
  419. package/dist/sw.js +85 -0
  420. package/dist/worktree-favicon-16x16.png +0 -0
  421. package/dist/worktree-favicon-32x32.png +0 -0
  422. package/dist/worktree-favicon.ico +0 -0
  423. package/dist/worktree-favicon.svg +9 -0
  424. package/package.json +22 -0
@@ -0,0 +1,10 @@
1
+ var gt=Object.defineProperty;var T=(r,t)=>gt(r,"name",{value:t,configurable:!0});import{n as h}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as g,p as B}from"./src-Bssc388C.js";import{T as dt,b as H,x as C}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{$ as xt,J as bt,K as wt,Q as Mt,X as Lt,Y as _t,Z as St,et as nt,g as q,nt as Ot,q as Ut,rt,tt as Et,u as $t}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as vt}from"./line-CJEZO7lL.js";import{n as Xt,r as st}from"./chunk-GMAD6QVW-BfvaaEBW.js";import{i as Yt,n as Wt}from"./chunk-P2QGCYS3-CjqEi3mx.js";import{t as Tt}from"./rough.esm-DnC5Tr1g.js";import{t as F}from"./chunk-4HAMMTFA-CGGd_Pxz.js";import{n as Ht}from"./chunk-GVQU2GXP-Cwp_Wpj2.js";var Q=h((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";const a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),S={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},ot={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Z(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=y(r),t=y(t);const[a,e]=[r.x,r.y],[n,o]=[t.x,t.y],s=n-a,i=o-e;return{angle:Math.atan(i/s),deltaX:s,deltaY:i}}T(Z,"calculateDeltaAndAngle");h(Z,"calculateDeltaAndAngle");var y=h(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Bt=h(r=>({x:h(function(t,a,e){let n=0;const o=y(e[0]).x<y(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){const{angle:d,deltaX:m}=Z(e[0],e[1]);n=S[r.arrowTypeStart]*Math.cos(d)*(m>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){const{angle:d,deltaX:m}=Z(e[e.length-1],e[e.length-2]);n=S[r.arrowTypeEnd]*Math.cos(d)*(m>=0?1:-1)}const s=Math.abs(y(t).x-y(e[e.length-1]).x),i=Math.abs(y(t).y-y(e[e.length-1]).y),c=Math.abs(y(t).x-y(e[0]).x),k=Math.abs(y(t).y-y(e[0]).y),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],p=1;if(s<f&&s>0&&i<f){let d=f+p-s;d*=o==="right"?-1:1,n-=d}if(c<l&&c>0&&k<l){let d=l+p-c;d*=o==="right"?-1:1,n+=d}return y(t).x+n},"x"),y:h(function(t,a,e){let n=0;const o=y(e[0]).y<y(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){const{angle:d,deltaY:m}=Z(e[0],e[1]);n=S[r.arrowTypeStart]*Math.abs(Math.sin(d))*(m>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){const{angle:d,deltaY:m}=Z(e[e.length-1],e[e.length-2]);n=S[r.arrowTypeEnd]*Math.abs(Math.sin(d))*(m>=0?1:-1)}const s=Math.abs(y(t).y-y(e[e.length-1]).y),i=Math.abs(y(t).x-y(e[e.length-1]).x),c=Math.abs(y(t).y-y(e[0]).y),k=Math.abs(y(t).x-y(e[0]).x),l=S[r.arrowTypeStart],f=S[r.arrowTypeEnd],p=1;if(s<f&&s>0&&i<f){let d=f+p-s;d*=o==="up"?-1:1,n-=d}if(c<l&&c>0&&k<l){let d=l+p-c;d*=o==="up"?-1:1,n+=d}return y(t).y+n},"y")}),"getLineFunctionsWithOffset"),Ct=h((r,t,a,e,n,o=!1,s)=>{t.arrowTypeStart&&it(r,"start",t.arrowTypeStart,a,e,n,o,s),t.arrowTypeEnd&&it(r,"end",t.arrowTypeEnd,a,e,n,o,s)},"addEdgeMarkers"),zt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Rt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],it=h((r,t,a,e,n,o,s=!1,i)=>{if(!a||a==="none")return;const c=zt[a],k=c&&Rt.includes(c.type);if(!c){g.warn(`Unknown arrow type: ${a}`);return}const l=`${n}_${o}-${c.type}${t==="start"?"Start":"End"}${s&&k?"-margin":""}`;if(i&&i.trim()!==""){const f=`${l}_${i.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(f)){const p=document.getElementById(l);if(p){const d=p.cloneNode(!0);d.id=f,d.querySelectorAll("path, circle, line").forEach(m=>{m.setAttribute("stroke",i),c.fill&&m.setAttribute("fill",i)}),p.parentNode?.appendChild(d)}}r.attr(`marker-${t}`,`url(${e}#${f})`)}else r.attr(`marker-${t}`,`url(${e}#${l})`)},"addEdgeMarker"),At=h(r=>typeof r=="string"?r:C()?.flowchart?.curve,"resolveEdgeCurveType"),J=new Map,_=new Map,sr=h(()=>{J.clear(),_.clear()},"clear"),or=h(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),N=h(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),ir=h(async(r,t)=>{const a=C();let e=dt(a);const{labelStyles:n}=Yt(t);t.labelStyle=n;const o=r.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",c=await Xt(r,t.label,{style:N(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:void 0},a);s.node().appendChild(c),g.info("abc82",t,t.labelType);let k,l;if(e){const p=c.children[0],d=B(c);k=await st.measure(()=>p.getBoundingClientRect()),l=k,d.attr("width",k.width),d.attr("height",k.height)}else{const p=B(c).select("text").node();await st.measure(()=>{k=c.getBBox(),p&&typeof p.getBBox=="function"?l=p.getBBox():l=k})}s.attr("transform",Q(l,e)),J.set(t.id,o),t.width=k.width,t.height=k.height;let f;if(t.startLabelLeft){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(d,t.startLabelLeft,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=p,j(f,t.startLabelLeft)}if(t.startLabelRight){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(d,t.startLabelRight,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=p,j(f,t.startLabelRight)}if(t.endLabelLeft){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(p,t.endLabelLeft,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=p,j(f,t.endLabelLeft)}if(t.endLabelRight){const p=r.insert("g").attr("class","edgeTerminals"),d=p.insert("g").attr("class","inner"),m=await F(p,t.endLabelRight,N(t.labelStyle)||"",!1,!1);f=m;let u=m.getBBox();if(e){const M=m.children[0],b=B(m);u=M.getBoundingClientRect(),b.attr("width",u.width),b.attr("height",u.height)}d.attr("transform",Q(u,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=p,j(f,t.endLabelRight)}return c},"insertEdgeLabel");function j(r,t){dt(C())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}T(j,"setTerminalWidth");h(j,"setTerminalWidth");var lr=h((r,t)=>{g.debug("Moving label abc88 ",r.id,r.label,J.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath;const e=C(),{subGraphTitleTotalMargin:n}=Ht(e);if(r.label){const o=J.get(r.id);let s=r.x,i=r.y;if(a){const c=q.calcLabelPosition(a);g.debug("Moving label "+r.label+" from (",s,",",i,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(s=c.x,i=c.y)}o.attr("transform",`translate(${s}, ${i+n/2})`)}if(r.startLabelLeft){const o=_.get(r.id).startLeft;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.startLabelRight){const o=_.get(r.id).startRight;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelLeft){const o=_.get(r.id).endLeft;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}if(r.endLabelRight){const o=_.get(r.id).endRight;let s=r.x,i=r.y;if(a){const c=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=c.x,i=c.y}o.attr("transform",`translate(${s}, ${i})`)}},"positionEdgeLabel"),qt=h((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[a,e]=t,n=Math.abs(e.x-a.x),o=Math.abs(e.y-a.y);return n<.001||o<.001?t:o>=n?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Pt=h((r,t)=>{const a=r.x,e=r.y,n=Math.abs(t.x-a),o=Math.abs(t.y-e),s=r.width/2,i=r.height/2;return n>=s||o>=i},"outsideNode"),It=h((r,t,a)=>{g.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const e=r.x,n=r.y,o=Math.abs(e-a.x),s=r.width/2;let i=a.x<t.x?s-o:s+o;const c=r.height/2,k=Math.abs(t.y-a.y),l=Math.abs(t.x-a.x);if(Math.abs(n-t.y)*s>Math.abs(e-t.x)*c){let f=a.y<t.y?t.y-c-n:n-c-t.y;i=l*f/k;const p={x:a.x<t.x?a.x+i:a.x-l+i,y:a.y<t.y?a.y+k-f:a.y-k+f};return i===0&&(p.x=t.x,p.y=t.y),l===0&&(p.x=t.x),k===0&&(p.y=t.y),g.debug(`abc89 top/bottom calc, Q ${k}, q ${f}, R ${l}, r ${i}`,p),p}else{a.x<t.x?i=t.x-s-e:i=e-s-t.x;let f=k*i/l,p=a.x<t.x?a.x+l-i:a.x-l+i,d=a.y<t.y?a.y+f:a.y-f;return g.debug(`sides calc abc89, Q ${k}, q ${f}, R ${l}, r ${i}`,{_x:p,_y:d}),i===0&&(p=t.x,d=t.y),l===0&&(p=t.x),k===0&&(d=t.y),{x:p,y:d}}},"intersection"),lt=h((r,t)=>{g.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],n=!1;return r.forEach(o=>{if(g.info("abc88 checking point",o,t),!Pt(t,o)&&!n){const s=It(t,e,o);g.debug("abc88 inside",o,e,s),g.debug("abc88 intersection",s,t);let i=!1;a.forEach(c=>{i=i||c.x===s.x&&c.y===s.y}),a.some(c=>c.x===s.x&&c.y===s.y)?g.warn("abc88 no intersect",s,a):a.push(s),n=!0}else g.warn("abc88 outside",o,e),e=o,n||a.push(o)}),g.debug("returning points",a),a},"cutPathAtIntersect");function pt(r){const t=[],a=[];for(let e=1;e<r.length-1;e++){const n=r[e-1],o=r[e],s=r[e+1];(n.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-n.y)>5||n.y===o.y&&o.x===s.x&&Math.abs(o.x-n.x)>5&&Math.abs(o.y-s.y)>5)&&(t.push(o),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}T(pt,"extractCornerPoints");h(pt,"extractCornerPoints");var ct=h(function(r,t,a){const e=t.x-r.x,n=t.y-r.y,o=a/Math.sqrt(e*e+n*n);return{x:t.x-o*e,y:t.y-o*n}},"findAdjacentPoint"),Qt=h(function(r){const{cornerPointPositions:t}=pt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){const n=r[e-1],o=r[e+1],s=r[e],i=ct(n,s,5),c=ct(o,s,5),k=c.x-i.x,l=c.y-i.y;a.push(i);const f=Math.sqrt(2)*2;let p={x:s.x,y:s.y};if(Math.abs(o.x-n.x)>10&&Math.abs(o.y-n.y)>=10){g.debug("Corner point fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));const d=5;s.x===i.x?p={x:k<0?i.x-d+f:i.x+d-f,y:l<0?i.y-f:i.y+f}:p={x:k<0?i.x-f:i.x+f,y:l<0?i.y-d+f:i.y+d-f}}else g.debug("Corner point skipping fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));a.push(p,c)}else a.push(r[e]);return a},"fixCorners"),Nt=h((r,t,a)=>{const e=r-t-a,n=2,o=2,s=Math.floor(e/4);return`0 ${t} ${Array(Number.isFinite(s)?Math.max(0,s):0).fill(`${n} ${o}`).join(" ")} ${a}`},"generateDashArray"),cr=h(function(r,t,a,e,n,o,s,i=!1){if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:c,layout:k}=C();let l=t.points,f=!1;const p=n;var d=o;const m=[];for(const x in t.cssCompiledStyles)Wt(x)||m.push(t.cssCompiledStyles[x]);if(k==="swimlane"){if(d.intersect&&p.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[p.intersect(l[0]),d.intersect(l[1])];else{const x=l.slice(1,-1),v=x[0],U=x[x.length-1],E=.5,A=Math.abs(l[l.length-1].x-U.x)<E&&Math.abs(l[l.length-1].y-U.y)<E,X=p.intersect(v),Y=A?U:d.intersect(U),W=Math.abs(Y.x-U.x)<E&&Math.abs(Y.y-U.y)<E,I=Math.abs(X.x-v.x)<E&&Math.abs(X.y-v.y)<E?[]:[X],yt=W?[]:[Y];l=[...I,...x,...yt]}l=qt(t,l)}else d.intersect&&p.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(p.intersect(l[0])),l.push(d.intersect(l[l.length-1])));const u=btoa(JSON.stringify(l));t.toCluster&&(g.info("to cluster abc88",a.get(t.toCluster)),l=lt(t.points,a.get(t.toCluster).node),f=!0),t.fromCluster&&(g.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=lt(l.reverse(),a.get(t.fromCluster).node).reverse(),f=!0);let M=l.filter(x=>!Number.isNaN(x.y));const b=At(t.curve);b!=="rounded"&&(M=Qt(M));let w=rt;switch(b){case"linear":w=rt;break;case"basis":w=nt;break;case"cardinal":w=xt;break;case"bumpX":w=Et;break;case"bumpY":w=Ot;break;case"catmullRom":w=Mt;break;case"monotoneX":w=Lt;break;case"monotoneY":w=St;break;case"natural":w=_t;break;case"step":w=bt;break;case"stepAfter":w=wt;break;case"stepBefore":w=Ut;break;case"rounded":w=rt;break;default:w=nt}const{x:G,y:P}=Bt(t),z=vt().x(G).y(P).curve(w);let O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let L,V=b==="rounded"?ht(ft(M,t),5):z(M);const $=Array.isArray(t.style)?t.style:[t.style];let et=$.find(x=>x?.startsWith("stroke:")),R="";t.animate&&(R="edge-animation-fast"),t.animation&&(R="edge-animation-"+t.animation);let K=!1;if(t.look==="handDrawn"){const x=Tt.svg(r);Object.assign([],M);const v=x.path(V,{roughness:.3,seed:c});O+=" transition",L=B(v).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",$?$.reduce((E,A)=>E+";"+A,""):"");let U=L.attr("d");L.attr("d",U),r.node().appendChild(L.node())}else{const x=m.join(";"),v=$?$.reduce((W,I)=>W+I+";",""):"",U=(x?x+";"+v+";":v)+";"+($?$.reduce((W,I)=>W+";"+I,""):"");L=r.append("path").attr("d",V).attr("id",`${s}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(R?" "+R:"")).attr("style",U),et=U.match(/stroke:([^;]+)/)?.[1],K=t.animate===!0||!!t.animation||x.includes("animation");const E=L.node(),A=typeof E.getTotalLength=="function"?E.getTotalLength():0,X=ot[t.arrowTypeStart]||0,Y=ot[t.arrowTypeEnd]||0;if(t.look==="neo"&&!K){const W=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Nt(A,X,Y):`0 ${X} ${A-X-Y} ${Y}`}; stroke-dashoffset: 0;`;L.attr("style",W+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",u),L.attr("data-look",$t(t.look)),t.showPoints&&M.forEach(x=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",x.x).attr("cy",x.y)});let D="";(C().flowchart.arrowMarkerAbsolute||C().state.arrowMarkerAbsolute)&&(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,D=D.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),g.info("arrowTypeStart",t.arrowTypeStart),g.info("arrowTypeEnd",t.arrowTypeEnd);const mt=!K&&t?.look==="neo";Ct(L,t,D,s,e,mt,et);const kt=Math.floor(l.length/2),ut=l[kt];q.isLabelCoordinateInPath(ut,L.attr("d"))||(f=!0);let tt={};return f&&(tt.updatedPath=l),tt.originalPath=t.points,tt},"insertEdge");function ht(r,t){if(r.length<2)return"";let a="";const e=r.length,n=1e-5;for(let o=0;o<e;o++){const s=r[o],i=r[o-1],c=r[o+1];if(o===0)a+=`M${s.x},${s.y}`;else if(o===e-1)a+=`L${s.x},${s.y}`;else{const k=s.x-i.x,l=s.y-i.y,f=c.x-s.x,p=c.y-s.y,d=Math.hypot(k,l),m=Math.hypot(f,p);if(d<n||m<n){a+=`L${s.x},${s.y}`;continue}const u=k/d,M=l/d,b=f/m,w=p/m,G=u*b+M*w,P=Math.acos(Math.max(-1,Math.min(1,G)));if(P<n||Math.abs(Math.PI-P)<n){a+=`L${s.x},${s.y}`;continue}const z=Math.min(t/Math.sin(P/2),d/2,m/2),O=s.x-u*z,L=s.y-M*z,V=s.x+b*z,$=s.y+w*z;a+=`L${O},${L}`,a+=`Q${s.x},${s.y} ${V},${$}`}}return a}T(ht,"generateRoundedPath");h(ht,"generateRoundedPath");function at(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};const a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}T(at,"calculateDeltaAndAngle2");h(at,"calculateDeltaAndAngle");function ft(r,t){const a=r.map(n=>({...n}));if(r.length>=2&&S[t.arrowTypeStart]){const n=S[t.arrowTypeStart],o=r[0],s=r[1],{angle:i}=at(o,s),c=n*Math.cos(i),k=n*Math.sin(i);a[0].x=o.x+c,a[0].y=o.y+k}const e=r.length;if(e>=2&&S[t.arrowTypeEnd]){const n=S[t.arrowTypeEnd],o=r[e-1],s=r[e-2],{angle:i}=at(s,o),c=n*Math.cos(i),k=n*Math.sin(i);a[e-1].x=o.x-c,a[e-1].y=o.y-k}return a}T(ft,"applyMarkerOffsetsToPoints");h(ft,"applyMarkerOffsetsToPoints");var Zt=h((r,t,a,e)=>{t.forEach(n=>{jt[n](r,a,e)})},"insertMarkers"),jt={extension:h((r,t,a)=>{g.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),composition:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),point:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),circle:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),cross:h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),barb:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),barbNeo:h((r,t,a)=>{const{themeVariables:e}=H(),{transitionColor:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),only_one:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),zero_or_one:h((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),zero_or_more:h((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),only_one_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),zero_or_one_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n,mainBkg:o}=e,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");s.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),s.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),one_or_more_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),zero_or_more_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n,mainBkg:o}=e,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");s.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),requirement_arrow:h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),requirement_contains:h((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),requirement_contains_neo:h((r,t,a)=>{const{themeVariables:e}=H(),{strokeWidth:n}=e,o=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo")},dr=Zt;export{ir as a,lr as c,cr as i,_ as l,J as n,S as o,or as r,dr as s,sr as t};
@@ -0,0 +1 @@
1
+ import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{x as h}from"./chunk-DU6HZSFF-2P5iNHqg.js";var S=a(t=>{const{handDrawnSeed:r}=h();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:r}},"solidStateFill"),c=a(t=>Array.isArray(t)?t:t?t.split(";").map(r=>r.trim()).filter(Boolean):[],"normalizeStyleList"),p=a(t=>{const r=f([...t.cssCompiledStyles||[],...t.cssStyles||[],...c(t.labelStyle)]);return{stylesMap:r,stylesArray:[...r]}},"compileStyles"),f=a(t=>{const r=new Map;return t.forEach(s=>{const[i,o]=s.split(":");r.set(i.trim(),o?.trim())}),r},"styles2Map"),u=a(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),v=a(t=>{const{stylesArray:r}=p(t),s=[],i=[],o=[],n=[];return r.forEach(e=>{const l=e[0];u(l)?s.push(e.join(":")+" !important"):(i.push(e.join(":")+" !important"),l.includes("stroke")&&o.push(e.join(":")+" !important"),l==="fill"&&n.push(e.join(":")+" !important"))}),{labelStyles:s.join(";"),nodeStyles:i.join(";"),stylesArray:r,borderStyles:o,backgroundStyles:n}},"styles2String"),w=a((t,r)=>{const{themeVariables:s,handDrawnSeed:i}=h(),{nodeBorder:o,mainBkg:n}=s,{stylesMap:e}=p(t);return Object.assign({roughness:.7,fill:e.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:e.get("stroke")||o,seed:i,strokeWidth:e.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(e.get("stroke-dasharray"))},r)},"userNodeOverrides"),d=a(t=>{if(!t)return[0,0];const r=t.trim().split(/\s+/).map(Number);if(r.length===1){const s=isNaN(r[0])?0:r[0];return[s,s]}return[isNaN(r[0])?0:r[0],isNaN(r[1])?0:r[1]]},"getStrokeDashArray");export{w as a,v as i,u as n,S as r,p as t};
@@ -0,0 +1 @@
1
+ import{n as a}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as w}from"./src-Bssc388C.js";import{c as x}from"./chunk-DU6HZSFF-2P5iNHqg.js";var l=a((t,e,i,r)=>{t.attr("class",i);const{width:o,height:h,x:c,y:s}=m(t,e);x(t,h,o,r);const n=u(c,s,o,h,e);t.attr("viewBox",n),w.debug(`viewBox configured: ${n} with padding: ${e}`)},"setupViewPortForSVG"),m=a((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+e*2,height:i.height+e*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),u=a((t,e,i,r,o)=>`${t-o} ${e-o} ${i} ${r}`,"createViewBox");export{l as t};
@@ -0,0 +1 @@
1
+ var P=Object.defineProperty;var a=(t,n)=>P(t,"name",{value:n,configurable:!0});import{n as I}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{b as z,z as C}from"./chunk-DU6HZSFF-2P5iNHqg.js";var G=Object.freeze({left:0,top:0,width:16,height:16}),v=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),M=Object.freeze({...G,...v}),V=Object.freeze({...M,body:"",hidden:!1}),R=Object.freeze({width:null,height:null}),H=Object.freeze({...R,...v}),L=a((t,n,o,r="")=>{const e=t.split(":");if(t.slice(0,1)==="@"){if(e.length<2||e.length>3)return null;r=e.shift().slice(1)}if(e.length>3||!e.length)return null;if(e.length>1){const l=e.pop(),u=e.pop(),h={provider:e.length>0?e[0]:r,prefix:u,name:l};return n&&!S(h)?null:h}const s=e[0],i=s.split("-");if(i.length>1){const l={provider:r,prefix:i.shift(),name:i.join("-")};return n&&!S(l)?null:l}if(o&&r===""){const l={provider:r,prefix:"",name:s};return n&&!S(l,o)?null:l}return null},"stringToIcon"),S=a((t,n)=>t?!!((n&&t.prefix===""||t.prefix)&&t.name):!1,"validateIconName");function B(t,n){const o={};!t.hFlip!=!n.hFlip&&(o.hFlip=!0),!t.vFlip!=!n.vFlip&&(o.vFlip=!0);const r=((t.rotate||0)+(n.rotate||0))%4;return r&&(o.rotate=r),o}a(B,"mergeIconTransformations");function k(t,n){const o=B(t,n);for(const r in V)r in v?r in t&&!(r in o)&&(o[r]=v[r]):r in n?o[r]=n[r]:r in t&&(o[r]=t[r]);return o}a(k,"mergeIconData");function W(t,n){const o=t.icons,r=t.aliases||Object.create(null),e=Object.create(null);function s(i){if(o[i])return e[i]=[];if(!(i in e)){e[i]=null;const l=r[i]&&r[i].parent,u=l&&s(l);u&&(e[i]=[l].concat(u))}return e[i]}return a(s,"resolve"),(n||Object.keys(o).concat(Object.keys(r))).forEach(s),e}a(W,"getIconsTree");function E(t,n,o){const r=t.icons,e=t.aliases||Object.create(null);let s={};function i(l){s=k(r[l]||e[l],s)}return a(i,"parse"),i(n),o.forEach(i),k(t,s)}a(E,"internalGetIconData");function _(t,n){if(t.icons[n])return E(t,n,[]);const o=W(t,[n])[n];return o?E(t,n,o):null}a(_,"getIconData");var K=/(-?[0-9.]*[0-9]+[0-9.]*)/g,U=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function F(t,n,o){if(n===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*n*o)/o;if(typeof t!="string")return t;const r=t.split(K);if(r===null||!r.length)return t;const e=[];let s=r.shift(),i=U.test(s);for(;;){if(i){const l=parseFloat(s);isNaN(l)?e.push(s):e.push(Math.ceil(l*n*o)/o)}else e.push(s);if(s=r.shift(),s===void 0)return e.join("");i=!i}}a(F,"calculateSize");function q(t,n="defs"){let o="";const r=t.indexOf("<"+n);for(;r>=0;){const e=t.indexOf(">",r),s=t.indexOf("</"+n);if(e===-1||s===-1)break;const i=t.indexOf(">",s);if(i===-1)break;o+=t.slice(e+1,s).trim(),t=t.slice(0,r).trim()+t.slice(i+1)}return{defs:o,content:t}}a(q,"splitSVGDefs");function J(t,n){return t?"<defs>"+t+"</defs>"+n:n}a(J,"mergeDefsAndContent");function N(t,n,o){const r=q(t);return J(r.defs,n+r.content+o)}a(N,"wrapSVGContent");var Q=a(t=>t==="unset"||t==="undefined"||t==="none","isUnsetKeyword");function X(t,n){const o={...M,...t},r={...H,...n},e={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,r].forEach(p=>{const c=[],A=p.hFlip,O=p.vFlip;let g=p.rotate;A?O?g+=2:(c.push("translate("+(e.width+e.left).toString()+" "+(0-e.top).toString()+")"),c.push("scale(-1 1)"),e.top=e.left=0):O&&(c.push("translate("+(0-e.left).toString()+" "+(e.height+e.top).toString()+")"),c.push("scale(1 -1)"),e.top=e.left=0);let f;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:f=e.height/2+e.top,c.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:c.unshift("rotate(180 "+(e.width/2+e.left).toString()+" "+(e.height/2+e.top).toString()+")");break;case 3:f=e.width/2+e.left,c.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")")}g%2===1&&(e.left!==e.top&&(f=e.left,e.left=e.top,e.top=f),e.width!==e.height&&(f=e.width,e.width=e.height,e.height=f)),c.length&&(s=N(s,'<g transform="'+c.join(" ")+'">',"</g>"))});const i=r.width,l=r.height,u=e.width,h=e.height;let d,w;i===null?(w=l===null?"1em":l==="auto"?h:l,d=F(w,u/h)):(d=i==="auto"?u:i,w=l===null?F(d,h/u):l==="auto"?h:l);const m={},y=a((p,c)=>{Q(c)||(m[p]=c.toString())},"setAttr");y("width",d),y("height",w);const D=[e.left,e.top,u,h];return m.viewBox=D.join(" "),{attributes:m,viewBox:D,body:s}}a(X,"iconToSVG");var Y=/\sid="(\S+)"/g,$=new Map;function Z(t){t=t.replace(/[0-9]+$/,"")||"a";const n=$.get(t)||0;return $.set(t,n+1),n?`${t}${n}`:t}a(Z,"nextID");function tt(t){const n=[];let o;for(;o=Y.exec(t);)n.push(o[1]);if(!n.length)return t;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(e=>{const s=Z(e),i=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+s+r+"$3")}),t=t.replace(new RegExp(r,"g"),""),t}a(tt,"replaceIDs");function et(t,n){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)o+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}a(et,"iconToHTML");var nt={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},b=new Map,j=new Map,lt=I(t=>{for(const n of t){if(!n.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(x.debug("Registering icon pack:",n.name),"loader"in n)j.set(n.name,n.loader);else if("icons"in n)b.set(n.name,n.icons);else throw x.error("Invalid icon loader:",n),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),T=I(async(t,n)=>{const o=L(t,!0,n!==void 0);if(!o)throw new Error(`Invalid icon name: ${t}`);const r=o.prefix||n;if(!r)throw new Error(`Icon name must contain a prefix: ${t}`);let e=b.get(r);if(!e){const i=j.get(r);if(!i)throw new Error(`Icon set not found: ${o.prefix}`);try{e={...await i(),prefix:r},b.set(r,e)}catch(l){throw x.error(l),new Error(`Failed to load icon set: ${o.prefix}`)}}const s=_(e,o.name);if(!s)throw new Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),at=I(async t=>{try{return await T(t),!0}catch{return!1}},"isIconAvailable"),ct=I(async(t,n,o)=>{let r;try{r=await T(t,n?.fallbackPrefix)}catch(i){x.error(i),r=nt}const e=X(r,n),s=et(tt(e.body),{...e.attributes,...o});return C(s,z())},"getIconSVG");export{nt as i,at as n,lt as r,ct as t};
@@ -0,0 +1,168 @@
1
+ var qt=Object.defineProperty;var W=(e,i)=>qt(e,"name",{value:i,configurable:!0});import{n as A}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as Z,p as it}from"./src-Bssc388C.js";import{$ as Qt,G as zt,H as Jt,K as Zt,U as $t,a as e1,d as t1,it as s1,k as i1,s as r1,v as a1,w as n1,x as Ae,y as u1}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{t as o1}from"./channel-0B5iAV5A.js";import{c as rt,g as at}from"./chunk-75Z2AOVW-BaPl5WA6.js";import{t as l1}from"./chunk-5VM5RSS4-2H3r6wq0.js";import{i as c1}from"./chunk-4HAMMTFA-CGGd_Pxz.js";import{t as h1}from"./chunk-F27PBJKO-Ci7GmRgM.js";import{t as d1}from"./chunk-XXDRQBXY-BhrH-9FX.js";import{t as p1}from"./chunk-POPQ4Y6H-BytmIqFc.js";import{d as f1,n as g1,t as b1,u as A1}from"./mermaid.core-G_BSi0G0.js";var k1="flowchart-",m1=class{static{W(this,"FlowDB")}constructor(){this.vertexCounter=0,this.config=Ae(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=$t,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=u1,this.getAccDescription=a1,this.getDiagramTitle=n1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{A(this,"FlowDB")}sanitizeText(e){return r1.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(const i of this.vertices.values())if(i.id===e)return this.diagramId?`${this.diagramId}-${i.domId}`:i.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,i,r,a,n,h,p={},k){if(!e||e.trim().length===0)return;let d;if(k!==void 0){let l;k.includes(`
2
+ `)?l=k+`
3
+ `:l=`{
4
+ `+k+`
5
+ }`,d=g1(l,{schema:b1})}const y=this.subGraphLookup.get(e);if(y&&d){y.metadata={...y.metadata,...d};return}const _=this.edges.find(l=>l.id===e);if(_){const l=d;l?.animate!==void 0&&(_.animate=l.animate),l?.animation!==void 0&&(_.animation=l.animation),l?.curve!==void 0&&(_.interpolate=l.curve);return}let V,u=this.vertices.get(e);if(u===void 0&&(i===void 0&&r===void 0&&a!==void 0&&a!==null&&Z.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`),u={id:e,labelType:"text",domId:k1+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,u)),this.vertexCounter++,i!==void 0?(this.config=Ae(),V=this.sanitizeText(i.text.trim()),u.labelType=i.type,V.startsWith('"')&&V.endsWith('"')&&(V=V.substring(1,V.length-1)),u.text=V):u.text===void 0&&(u.text=e),r!==void 0&&(u.type=r),a?.forEach(l=>{u.styles.push(l)}),n?.forEach(l=>{u.classes.push(l)}),h!==void 0&&(u.dir=h),u.props===void 0?u.props=p:p!==void 0&&Object.assign(u.props,p),d!==void 0){if(d.shape){if(d.shape!==d.shape.toLowerCase()||d.shape.includes("_"))throw new Error(`No such shape: ${d.shape}. Shape names should be lowercase.`);if(!c1(d.shape))throw new Error(`No such shape: ${d.shape}.`);u.type=d?.shape}d?.label&&(u.text=d?.label,u.labelType=this.sanitizeNodeLabelType(d?.labelType)),d?.icon&&(u.icon=d?.icon,!d.label?.trim()&&u.text===e&&(u.text="")),d?.form&&(u.form=d?.form),d?.pos&&(u.pos=d?.pos),d?.img&&(u.img=d?.img,!d.label?.trim()&&u.text===e&&(u.text="")),d?.constraint&&(u.constraint=d.constraint),d.w&&(u.assetWidth=Number(d.w)),d.h&&(u.assetHeight=Number(d.h))}}addSingleLink(e,i,r,a){const n={start:e,end:i,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Z.info("abc78 Got edge...",n);const h=r.text;if(h!==void 0&&(n.text=this.sanitizeText(h.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=this.sanitizeNodeLabelType(h.type)),r!==void 0&&(n.type=r.type,n.stroke=r.stroke,n.length=r.length>10?10:r.length),a&&!this.edges.some(p=>p.id===a))n.id=a,n.isUserDefinedId=!0;else{const p=this.edges.filter(k=>k.start===n.start&&k.end===n.end);p.length===0?n.id=rt(n.start,n.end,{counter:0,prefix:"L"}):n.id=rt(n.start,n.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Z.info("Pushing edge..."),this.edges.push(n);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e=="object"&&"id"in e&&typeof e.id=="string"}addLink(e,i,r){const a=this.isLinkData(r)?r.id.replace("@",""):void 0;Z.info("addLink",e,i,a);for(const n of e)for(const h of i){const p=n===e[e.length-1],k=h===i[0];p&&k?this.addSingleLink(n,h,r,a):this.addSingleLink(n,h,r,void 0)}}updateLinkInterpolate(e,i){e.forEach(r=>{r==="default"?this.edges.defaultInterpolate=i:this.edges[r].interpolate=i})}updateLink(e,i){e.forEach(r=>{if(typeof r=="number"&&r>=this.edges.length)throw new Error(`The index ${r} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);r==="default"?this.edges.defaultStyle=i:(this.edges[r].style=i,(this.edges[r]?.style?.length??0)>0&&!this.edges[r]?.style?.some(a=>a?.startsWith("fill"))&&this.edges[r]?.style?.push("fill:none"))})}addClass(e,i){const r=i.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(a=>{let n=this.classes.get(a);n===void 0&&(n={id:a,styles:[],textStyles:[]},this.classes.set(a,n)),r?.forEach(h=>{if(/color/.exec(h)){const p=h.replace("fill","bgFill");n.textStyles.push(p)}n.styles.push(h)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(e,i){for(const r of e.split(",")){const a=this.vertices.get(r);a&&a.classes.push(i);const n=this.edges.find(p=>p.id===r);n&&n.classes.push(i);const h=this.subGraphLookup.get(r);h&&h.classes.push(i)}}setTooltip(e,i){if(i!==void 0){i=this.sanitizeText(i);for(const r of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(r):r,i)}}setClickFun(e,i,r){if(Ae().securityLevel!=="loose"||i===void 0)return;let a=[];if(typeof r=="string"){a=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let h=0;h<a.length;h++){let p=a[h].trim();p.startsWith('"')&&p.endsWith('"')&&(p=p.substr(1,p.length-2)),a[h]=p}}a.length===0&&a.push(e);const n=this.vertices.get(e);n&&(n.haveCallback=!0,this.funs.push(()=>{const h=this.lookUpDomId(e),p=document.querySelector(`[id="${h}"]`);p!==null&&p.addEventListener("click",()=>{at.runFunc(i,...a)},!1)}))}setLink(e,i,r){e.split(",").forEach(a=>{const n=this.vertices.get(a);n!==void 0&&(n.link=at.formatUrl(i,this.config),n.linkTarget=r)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,i,r){e.split(",").forEach(a=>{this.setClickFun(a,i,r)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(i=>{i(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){const i=h1();it(e).select("svg").selectAll("g.node").on("mouseover",r=>{const a=it(r.currentTarget),n=a.attr("title");if(n===null)return;const h=r.currentTarget?.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(a.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),i.html(Qt.sanitize(n)),a.classed("hover",!0)}).on("mouseout",r=>{i.transition().duration(500).style("opacity",0),it(r.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ae(),e1()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,i,r){let a=e.text.trim(),n=r.text;e===r&&/\s/.exec(r.text)&&(a=void 0);const h=A(_=>{const V={boolean:{},number:{},string:{}},u=[];let l;return{nodeList:_.filter(function(b){const C=typeof b;return b.stmt&&b.stmt==="dir"?(l=b.value,!1):b.trim()===""?!1:C in V?V[C].hasOwnProperty(b)?!1:V[C][b]=!0:u.includes(b)?!1:u.push(b)}),dir:l}},"uniq")(i.flat()),p=h.nodeList;let k=h.dir;const d=Ae().flowchart??{};if(k=k??(d.inheritDir?this.getDirection()??Ae().direction??void 0:void 0),this.version==="gen-1")for(let _=0;_<p.length;_++)p[_]=this.lookUpDomId(p[_]);a=a??"subGraph"+this.subCount,n=n||"",n=this.sanitizeText(n),this.subCount=this.subCount+1;const y={id:a,nodes:p,title:n.trim(),classes:[],dir:k,labelType:this.sanitizeNodeLabelType(r?.type)};return Z.info("Adding",y.id,y.nodes,y.dir),y.nodes=this.makeUniq(y,this.subGraphs).nodes,this.subGraphs.push(y),this.subGraphLookup.set(a,y),a}getPosForId(e){for(const[i,r]of this.subGraphs.entries())if(r.id===e)return i;return-1}indexNodes2(e,i){const r=this.subGraphs[i].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=i,this.subGraphs[i].id===e)return{result:!0,count:0};let a=0,n=1;for(;a<r.length;){const h=this.getPosForId(r[a]);if(h>=0){const p=this.indexNodes2(e,h);if(p.result)return{result:!0,count:n+p.count};n=n+p.count}a=a+1}return{result:!1,count:n}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(e){let i=e.trim(),r="arrow_open";switch(i[0]){case"<":r="arrow_point",i=i.slice(1);break;case"x":r="arrow_cross",i=i.slice(1);break;case"o":r="arrow_circle",i=i.slice(1)}let a="normal";return i.includes("=")&&(a="thick"),i.includes(".")&&(a="dotted"),{type:r,stroke:a}}countChar(e,i){const r=i.length;let a=0;for(let n=0;n<r;++n)i[n]===e&&++a;return a}destructEndLink(e){const i=e.trim();let r=i.slice(0,-1),a="arrow_open";switch(i.slice(-1)){case"x":a="arrow_cross",i.startsWith("x")&&(a="double_"+a,r=r.slice(1));break;case">":a="arrow_point",i.startsWith("<")&&(a="double_"+a,r=r.slice(1));break;case"o":a="arrow_circle",i.startsWith("o")&&(a="double_"+a,r=r.slice(1))}let n="normal",h=r.length-1;r.startsWith("=")&&(n="thick"),r.startsWith("~")&&(n="invisible");const p=this.countChar(".",r);return p&&(n="dotted",h=p),{type:a,stroke:n,length:h}}destructLink(e,i){const r=this.destructEndLink(e);let a;if(i){if(a=this.destructStartLink(i),a.stroke!==r.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=r.type;else{if(a.type!==r.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}return a.type==="double_arrow"&&(a.type="double_arrow_point"),a.length=r.length,a}return r}exists(e,i){for(const r of e)if(r.nodes.includes(i))return!0;return!1}makeUniq(e,i){const r=[];return e.nodes.forEach((a,n)=>{this.exists(i,a)||r.push(e.nodes[n])}),{nodes:r}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon)return e.form==="circle"?"iconCircle":e.form==="square"?"iconSquare":e.form==="rounded"?"iconRounded":"icon";switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,i){return e.find(r=>r.id===i)}destructEdgeType(e){let i="none",r="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":r=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":i=e.replace("double_",""),r=i}return{arrowTypeStart:i,arrowTypeEnd:r}}addNodeFromVertex(e,i,r,a,n,h){const p=r.get(e.id),k=a.get(e.id)??!1,d=this.findNode(i,e.id);if(d)d.cssStyles=e.styles,d.cssCompiledStyles=this.getCompiledStyles(e.classes),d.cssClasses=e.classes.join(" ");else{const y={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:p,padding:n.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:h,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};k?i.push({...y,isGroup:!0,shape:"rect"}):i.push({...y,isGroup:!1,shape:this.getTypeFromVertex(e)})}}getCompiledStyles(e){let i=[];for(const r of e){const a=this.classes.get(r);a?.styles&&(i=[...i,...a.styles??[]].map(n=>n.trim())),a?.textStyles&&(i=[...i,...a.textStyles??[]].map(n=>n.trim()))}return i}getData(){const e=Ae(),i=[],r=[],a=this.getSubGraphs(),n=new Map,h=new Map,p=new Map;for(const u of a)for(const l of u.nodes)this.subGraphLookup.has(l)&&p.set(l,u.id);const k=A(u=>this.subGraphLookup.get(u)?.metadata?.view==="collapsed","isCollapsed"),d=A(u=>{let l;const b=new Set;let C=u;for(;C!==void 0&&!b.has(C);)b.add(C),k(C)&&(l=C),C=p.get(C);return l},"outermostCollapsed"),y=new Set,_=new Map;for(const u of a){const l=d(u.id);if(l!==void 0){u.id!==l&&(y.add(u.id),_.set(u.id,l));for(const b of u.nodes)b!==l&&(y.add(b),_.set(b,l))}}for(let u=a.length-1;u>=0;u--){const l=a[u];if(!y.has(l.id)){l.nodes.length>0&&h.set(l.id,!0);for(const b of l.nodes)n.set(b,l.id)}}for(let u=a.length-1;u>=0;u--){const l=a[u];y.has(l.id)||(l.metadata?.view==="collapsed"?i.push({id:l.id,label:l.title,labelStyle:"",labelType:l.labelType,parentId:n.get(l.id),padding:8,cssCompiledStyles:this.getCompiledStyles(l.classes),cssClasses:l.classes.join(" "),shape:"collapsedGroup",dir:l.dir,isGroup:!1,look:e.look}):i.push({id:l.id,label:l.title,labelStyle:"",labelType:l.labelType,parentId:n.get(l.id),padding:8,cssCompiledStyles:this.getCompiledStyles(l.classes),cssClasses:l.classes.join(" "),shape:"rect",dir:l.dir,isGroup:!0,look:e.look}))}this.getVertices().forEach(u=>{y.has(u.id)||this.addNodeFromVertex(u,i,n,h,e,e.look||"classic")});const V=this.getEdges();return V.forEach((u,l)=>{const{arrowTypeStart:b,arrowTypeEnd:C}=this.destructEdgeType(u.type),de=[...V.defaultStyle??[]],pe=_.get(u.start)??u.start,fe=_.get(u.end)??u.end;if(pe===fe&&(_.has(u.start)||_.has(u.end)))return;u.style&&de.push(...u.style);const De={id:rt(pe,fe,{counter:l,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:pe,end:fe,type:u.type??"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":b,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":C,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:de,style:de,pattern:u.stroke,look:e.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};r.push(De)}),{nodes:i,edges:r,other:{},config:e}}defaultConfig(){return t1.flowchart}},C1={getClasses:A(function(e,i){return i.db.getClasses()},"getClasses"),draw:A(async function(e,i,r,a){Z.info("REF0:"),Z.info("Drawing state diagram (v2)",i);const{securityLevel:n,flowchart:h,layout:p}=Ae();a.db.setDiagramId(i),Z.debug("Before getData: ");const k=a.db.getData();Z.debug("Data: ",k);const d=d1(i,n),y=a.db.getDirection();k.type=a.type,k.layoutAlgorithm=A1(p),k.layoutAlgorithm==="dagre"&&p==="elk"&&Z.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),k.direction=y,k.nodeSpacing=h?.nodeSpacing||50,k.rankSpacing=h?.rankSpacing||50,k.markers=["point","circle","cross"],k.diagramId=i,Z.debug("REF1:",k),await f1(k,d);const _=k.config.flowchart?.diagramPadding??8;at.insertTitle(d,"flowchartTitleText",h?.titleTopMargin||0,a.db.getDiagramTitle()),p1(d,_,"flowchart",h?.useMaxWidth||!1)},"draw")},nt=(function(){var e=A(function(c,f,m,g){for(m=m||{},g=c.length;g--;m[c[g]]=f);return m},"o"),i=[1,4],r=[1,3],a=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],h=[2,2],p=[1,13],k=[1,14],d=[1,15],y=[1,16],_=[1,23],V=[1,25],u=[1,26],l=[1,27],b=[1,50],C=[1,49],de=[1,29],pe=[1,30],fe=[1,31],De=[1,32],Oe=[1,33],I=[1,45],w=[1,47],R=[1,43],N=[1,48],G=[1,44],P=[1,51],O=[1,46],M=[1,52],U=[1,53],Me=[1,34],Ue=[1,35],ze=[1,36],We=[1,37],Ke=[1,38],ge=[1,58],x=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],ee=[1,62],te=[1,61],se=[1,63],Te=[8,9,11,75,77,78],ut=[1,79],Ee=[1,92],Se=[1,97],ye=[1,96],xe=[1,93],Fe=[1,89],_e=[1,95],Be=[1,91],ve=[1,98],Le=[1,94],Ve=[1,99],Ie=[1,90],ke=[8,9,10,11,40,75,77,78],K=[8,9,10,11,40,46,75,77,78],X=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ot=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],we=[44,60,89,102,105,106,109,111,114,115,116],lt=[1,122],ct=[1,123],je=[1,125],Ye=[1,124],ht=[44,60,62,74,89,102,105,106,109,111,114,115,116],dt=[1,134],pt=[1,148],ft=[1,149],gt=[1,150],bt=[1,151],At=[1,136],kt=[1,138],mt=[1,142],Ct=[1,143],Dt=[1,144],Tt=[1,145],Et=[1,146],St=[1,147],yt=[1,152],xt=[1,153],Ft=[1,132],_t=[1,133],Bt=[1,140],vt=[1,135],Lt=[1,139],Vt=[1,137],Qe=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],It=[1,155],wt=[1,157],B=[8,9,11],q=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],D=[1,177],j=[1,173],Y=[1,174],T=[1,178],E=[1,175],S=[1,176],Re=[77,116,119],F=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Rt=[10,106],be=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],ie=[1,248],re=[1,246],ae=[1,250],ne=[1,244],ue=[1,245],oe=[1,247],le=[1,249],ce=[1,251],Ne=[1,269],Nt=[8,9,11,106],$=[8,9,10,11,60,84,105,106,109,110,111,112],Je={trace:A(W(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:A(W(function(f,m,g,o,v,t,Pe){var s=t.length-1;switch(v){case 2:this.$=[];break;case 3:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 4:case 183:this.$=t[s];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(t[s-1]),this.$=t[s-1];break;case 27:this.$=t[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 34:this.$=o.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 35:this.$=o.addSubGraph(void 0,t[s-1],void 0);break;case 37:this.$=t[s].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=t[s].trim(),o.setAccDescription(this.$);break;case 43:this.$=t[s-1]+t[s];break;case 44:this.$=t[s];break;case 45:o.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),o.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 46:o.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 47:o.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 48:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 49:o.addVertex(t[s-1][t[s-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s]),this.$={stmt:t[s-1],nodes:t[s-1],shapeData:t[s]};break;case 50:this.$={stmt:t[s],nodes:t[s]};break;case 51:this.$=[t[s]];break;case 52:o.addVertex(t[s-5][t[s-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,t[s-4]),this.$=t[s-5].concat(t[s]);break;case 53:this.$=t[s-4].concat(t[s]);break;case 54:this.$=t[s];break;case 55:this.$=t[s-2],o.setClass(t[s-2],t[s]);break;case 56:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"square");break;case 57:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"doublecircle");break;case 58:this.$=t[s-5],o.addVertex(t[s-5],t[s-2],"circle");break;case 59:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"ellipse");break;case 60:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"stadium");break;case 61:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"subroutine");break;case 62:this.$=t[s-7],o.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 63:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"cylinder");break;case 64:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"round");break;case 65:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"diamond");break;case 66:this.$=t[s-5],o.addVertex(t[s-5],t[s-2],"hexagon");break;case 67:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"odd");break;case 68:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"trapezoid");break;case 69:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 70:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"lean_right");break;case 71:this.$=t[s-3],o.addVertex(t[s-3],t[s-1],"lean_left");break;case 72:this.$=t[s],o.addVertex(t[s]);break;case 73:t[s-1].text=t[s],this.$=t[s-1];break;case 74:case 75:t[s-2].text=t[s-1],this.$=t[s-2];break;case 76:this.$=t[s];break;case 77:var L=o.destructLink(t[s],t[s-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:t[s-1]};break;case 78:var L=o.destructLink(t[s],t[s-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:t[s-1],id:t[s-3]};break;case 79:this.$={text:t[s],type:"text"};break;case 80:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 81:this.$={text:t[s],type:"string"};break;case 82:this.$={text:t[s],type:"markdown"};break;case 83:var L=o.destructLink(t[s]);this.$={type:L.type,stroke:L.stroke,length:L.length};break;case 84:var L=o.destructLink(t[s]);this.$={type:L.type,stroke:L.stroke,length:L.length,id:t[s-1]};break;case 85:this.$=t[s-1];break;case 86:this.$={text:t[s],type:"text"};break;case 87:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 88:this.$={text:t[s],type:"string"};break;case 89:case 104:this.$={text:t[s],type:"markdown"};break;case 101:this.$={text:t[s],type:"text"};break;case 102:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 103:this.$={text:t[s],type:"text"};break;case 105:this.$=t[s-4],o.addClass(t[s-2],t[s]);break;case 106:this.$=t[s-4],o.setClass(t[s-2],t[s]);break;case 107:case 115:this.$=t[s-1],o.setClickEvent(t[s-1],t[s]);break;case 108:case 116:this.$=t[s-3],o.setClickEvent(t[s-3],t[s-2]),o.setTooltip(t[s-3],t[s]);break;case 109:this.$=t[s-2],o.setClickEvent(t[s-2],t[s-1],t[s]);break;case 110:this.$=t[s-4],o.setClickEvent(t[s-4],t[s-3],t[s-2]),o.setTooltip(t[s-4],t[s]);break;case 111:this.$=t[s-2],o.setLink(t[s-2],t[s]);break;case 112:this.$=t[s-4],o.setLink(t[s-4],t[s-2]),o.setTooltip(t[s-4],t[s]);break;case 113:this.$=t[s-4],o.setLink(t[s-4],t[s-2],t[s]);break;case 114:this.$=t[s-6],o.setLink(t[s-6],t[s-4],t[s]),o.setTooltip(t[s-6],t[s-2]);break;case 117:this.$=t[s-1],o.setLink(t[s-1],t[s]);break;case 118:this.$=t[s-3],o.setLink(t[s-3],t[s-2]),o.setTooltip(t[s-3],t[s]);break;case 119:this.$=t[s-3],o.setLink(t[s-3],t[s-2],t[s]);break;case 120:this.$=t[s-5],o.setLink(t[s-5],t[s-4],t[s]),o.setTooltip(t[s-5],t[s-2]);break;case 121:this.$=t[s-4],o.addVertex(t[s-2],void 0,void 0,t[s]);break;case 122:this.$=t[s-4],o.updateLink([t[s-2]],t[s]);break;case 123:this.$=t[s-4],o.updateLink(t[s-2],t[s]);break;case 124:this.$=t[s-8],o.updateLinkInterpolate([t[s-6]],t[s-2]),o.updateLink([t[s-6]],t[s]);break;case 125:this.$=t[s-8],o.updateLinkInterpolate(t[s-6],t[s-2]),o.updateLink(t[s-6],t[s]);break;case 126:this.$=t[s-6],o.updateLinkInterpolate([t[s-4]],t[s]);break;case 127:this.$=t[s-6],o.updateLinkInterpolate(t[s-4],t[s]);break;case 128:case 130:this.$=[t[s]];break;case 129:case 131:t[s-2].push(t[s]),this.$=t[s-2];break;case 133:this.$=t[s-1]+t[s];break;case 181:this.$=t[s];break;case 182:this.$=t[s-1]+""+t[s];break;case 184:this.$=t[s-1]+""+t[s];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},e(n,h,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:k,10:d,11:y,20:17,22:18,23:19,24:20,25:21,26:22,27:_,33:24,34:V,36:u,38:l,42:28,43:39,44:b,45:40,47:41,60:C,84:de,85:pe,86:fe,87:De,88:Oe,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Me,122:Ue,123:ze,124:We,125:Ke},e(n,[2,9]),e(n,[2,10]),e(n,[2,11]),{8:[1,55],9:[1,56],10:ge,15:54,18:57},e(x,[2,3]),e(x,[2,4]),e(x,[2,5]),e(x,[2,6]),e(x,[2,7]),e(x,[2,8]),{8:ee,9:te,11:se,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:ee,9:te,11:se,21:68},{8:ee,9:te,11:se,21:69},{8:ee,9:te,11:se,21:70},{8:ee,9:te,11:se,21:71},{8:ee,9:te,11:se,21:72},{8:ee,9:te,10:[1,73],11:se,21:74},e(x,[2,36]),{35:[1,75]},{37:[1,76]},e(x,[2,39]),e(Te,[2,50],{18:77,39:78,10:ge,40:ut}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ee,44:Se,60:ye,80:[1,87],89:xe,95:[1,84],97:[1,85],101:86,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie,120:88},e(x,[2,185]),e(x,[2,186]),e(x,[2,187]),e(x,[2,188]),e(x,[2,189]),e(ke,[2,51]),e(ke,[2,54],{46:[1,100]}),e(K,[2,72],{113:113,29:[1,101],44:b,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:C,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(X,[2,181]),e(X,[2,142]),e(X,[2,143]),e(X,[2,144]),e(X,[2,145]),e(X,[2,146]),e(X,[2,147]),e(X,[2,148]),e(X,[2,149]),e(X,[2,150]),e(X,[2,151]),e(X,[2,152]),e(n,[2,12]),e(n,[2,18]),e(n,[2,19]),{9:[1,114]},e(ot,[2,26],{18:115,10:ge}),e(x,[2,27]),{42:116,43:39,44:b,45:40,47:41,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(x,[2,40]),e(x,[2,41]),e(x,[2,42]),e(we,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:lt,81:ct,116:je,119:Ye},{75:[1,126],77:[1,127]},e(ht,[2,83]),e(x,[2,28]),e(x,[2,29]),e(x,[2,30]),e(x,[2,31]),e(x,[2,32]),{10:dt,12:pt,14:ft,27:gt,28:128,32:bt,44:At,60:kt,75:mt,80:[1,130],81:[1,131],83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:129,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(Qe,h,{5:154}),e(x,[2,37]),e(x,[2,38]),e(Te,[2,48],{44:It}),e(Te,[2,49],{18:156,10:ge,40:wt}),e(ke,[2,44]),{44:b,47:158,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{102:[1,159],103:160,105:[1,161]},{44:b,47:162,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{44:b,47:163,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(B,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(B,[2,115],{120:168,10:[1,167],14:Ee,44:Se,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie}),e(B,[2,117],{10:[1,169]}),e(q,[2,183]),e(q,[2,170]),e(q,[2,171]),e(q,[2,172]),e(q,[2,173]),e(q,[2,174]),e(q,[2,175]),e(q,[2,176]),e(q,[2,177]),e(q,[2,178]),e(q,[2,179]),e(q,[2,180]),{44:b,47:170,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{30:171,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:179,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:181,50:[1,180],67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:182,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:183,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:184,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{109:[1,185]},{30:186,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:187,65:[1,188],67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:189,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:190,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{30:191,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},e(X,[2,182]),e(n,[2,20]),e(ot,[2,25]),e(Te,[2,46],{39:192,18:193,10:ge,40:ut}),e(we,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{77:[1,197],79:198,116:je,119:Ye},e(Re,[2,79]),e(Re,[2,81]),e(Re,[2,82]),e(Re,[2,168]),e(Re,[2,169]),{76:199,79:121,80:lt,81:ct,116:je,119:Ye},e(ht,[2,84]),{8:ee,9:te,10:dt,11:se,12:pt,14:ft,21:201,27:gt,29:[1,200],32:bt,44:At,60:kt,75:mt,83:141,84:Ct,85:Dt,86:Tt,87:Et,88:St,89:yt,90:xt,91:202,105:Ft,109:_t,111:Bt,114:vt,115:Lt,116:Vt},e(F,[2,101]),e(F,[2,103]),e(F,[2,104]),e(F,[2,157]),e(F,[2,158]),e(F,[2,159]),e(F,[2,160]),e(F,[2,161]),e(F,[2,162]),e(F,[2,163]),e(F,[2,164]),e(F,[2,165]),e(F,[2,166]),e(F,[2,167]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),{6:11,7:12,8:p,9:k,10:d,11:y,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,203],33:24,34:V,36:u,38:l,42:28,43:39,44:b,45:40,47:41,60:C,84:de,85:pe,86:fe,87:De,88:Oe,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Me,122:Ue,123:ze,124:We,125:Ke},{10:ge,18:204},{44:[1,205]},e(ke,[2,43]),{10:[1,206],44:b,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,207]},{10:[1,208],106:[1,209]},e(Rt,[2,128]),{10:[1,210],44:b,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{10:[1,211],44:b,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:113,114:O,115:M,116:U},{80:[1,212]},e(B,[2,109],{10:[1,213]}),e(B,[2,111],{10:[1,214]}),{80:[1,215]},e(q,[2,184]),{80:[1,216],98:[1,217]},e(ke,[2,55],{113:113,44:b,60:C,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),{31:[1,218],67:D,82:219,116:T,117:E,118:S},e(be,[2,86]),e(be,[2,88]),e(be,[2,89]),e(be,[2,153]),e(be,[2,154]),e(be,[2,155]),e(be,[2,156]),{49:[1,220],67:D,82:219,116:T,117:E,118:S},{30:221,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{51:[1,222],67:D,82:219,116:T,117:E,118:S},{53:[1,223],67:D,82:219,116:T,117:E,118:S},{55:[1,224],67:D,82:219,116:T,117:E,118:S},{57:[1,225],67:D,82:219,116:T,117:E,118:S},{60:[1,226]},{64:[1,227],67:D,82:219,116:T,117:E,118:S},{66:[1,228],67:D,82:219,116:T,117:E,118:S},{30:229,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},{31:[1,230],67:D,82:219,116:T,117:E,118:S},{67:D,69:[1,231],71:[1,232],82:219,116:T,117:E,118:S},{67:D,69:[1,234],71:[1,233],82:219,116:T,117:E,118:S},e(Te,[2,45],{18:156,10:ge,40:wt}),e(Te,[2,47],{44:It}),e(we,[2,75]),e(we,[2,74]),{62:[1,235],67:D,82:219,116:T,117:E,118:S},e(we,[2,77]),e(Re,[2,80]),{77:[1,236],79:198,116:je,119:Ye},{30:237,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},e(Qe,h,{5:238}),e(F,[2,102]),e(x,[2,35]),{43:239,44:b,45:40,47:41,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},{10:ge,18:240},{10:ie,60:re,84:ae,92:241,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:252,104:[1,253],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:254,104:[1,255],105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{105:[1,256]},{10:ie,60:re,84:ae,92:257,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{44:b,47:258,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(B,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(B,[2,116]),e(B,[2,118],{10:[1,262]}),e(B,[2,119]),e(K,[2,56]),e(be,[2,87]),e(K,[2,57]),{51:[1,263],67:D,82:219,116:T,117:E,118:S},e(K,[2,64]),e(K,[2,59]),e(K,[2,60]),e(K,[2,61]),{109:[1,264]},e(K,[2,63]),e(K,[2,65]),{66:[1,265],67:D,82:219,116:T,117:E,118:S},e(K,[2,67]),e(K,[2,68]),e(K,[2,70]),e(K,[2,69]),e(K,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(we,[2,78]),{31:[1,266],67:D,82:219,116:T,117:E,118:S},{6:11,7:12,8:p,9:k,10:d,11:y,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,267],33:24,34:V,36:u,38:l,42:28,43:39,44:b,45:40,47:41,60:C,84:de,85:pe,86:fe,87:De,88:Oe,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Me,122:Ue,123:ze,124:We,125:Ke},e(ke,[2,53]),{43:268,44:b,45:40,47:41,60:C,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U},e(B,[2,121],{106:Ne}),e(Nt,[2,130],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e($,[2,132]),e($,[2,134]),e($,[2,135]),e($,[2,136]),e($,[2,137]),e($,[2,138]),e($,[2,139]),e($,[2,140]),e($,[2,141]),e(B,[2,122],{106:Ne}),{10:[1,271]},e(B,[2,123],{106:Ne}),{10:[1,272]},e(Rt,[2,129]),e(B,[2,105],{106:Ne}),e(B,[2,106],{113:113,44:b,60:C,89:I,102:w,105:R,106:N,109:G,111:P,114:O,115:M,116:U}),e(B,[2,110]),e(B,[2,112],{10:[1,273]}),e(B,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:ee,9:te,11:se,21:278},e(x,[2,34]),e(ke,[2,52]),{10:ie,60:re,84:ae,105:ne,107:279,108:243,109:ue,110:oe,111:le,112:ce},e($,[2,133]),{14:Ee,44:Se,60:ye,89:xe,101:280,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie,120:88},{14:Ee,44:Se,60:ye,89:xe,101:281,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie,120:88},{98:[1,282]},e(B,[2,120]),e(K,[2,58]),{30:283,67:D,80:j,81:Y,82:172,116:T,117:E,118:S},e(K,[2,66]),e(Qe,h,{5:284}),e(Nt,[2,131],{108:270,10:ie,60:re,84:ae,105:ne,109:ue,110:oe,111:le,112:ce}),e(B,[2,126],{120:168,10:[1,285],14:Ee,44:Se,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie}),e(B,[2,127],{120:168,10:[1,286],14:Ee,44:Se,60:ye,89:xe,105:Fe,106:_e,109:Be,111:ve,114:Le,115:Ve,116:Ie}),e(B,[2,114]),{31:[1,287],67:D,82:219,116:T,117:E,118:S},{6:11,7:12,8:p,9:k,10:d,11:y,20:17,22:18,23:19,24:20,25:21,26:22,27:_,32:[1,288],33:24,34:V,36:u,38:l,42:28,43:39,44:b,45:40,47:41,60:C,84:de,85:pe,86:fe,87:De,88:Oe,89:I,102:w,105:R,106:N,109:G,111:P,113:42,114:O,115:M,116:U,121:Me,122:Ue,123:ze,124:We,125:Ke},{10:ie,60:re,84:ae,92:289,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},{10:ie,60:re,84:ae,92:290,105:ne,107:242,108:243,109:ue,110:oe,111:le,112:ce},e(K,[2,62]),e(x,[2,33]),e(B,[2,124],{106:Ne}),e(B,[2,125],{106:Ne})],defaultActions:{},parseError:A(W(function(f,m){if(m.recoverable)this.trace(f);else{var g=new Error(f);throw g.hash=m,g}},"parseError"),"parseError"),parse:A(W(function(f){var m=this,g=[0],o=[],v=[null],t=[],Pe=this.table,s="",L=0,Gt=0,Pt=0,jt=2,Ot=1,Yt=t.slice.call(arguments,1),z=Object.create(this.lexer),me={yy:{}};for(var Ze in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ze)&&(me.yy[Ze]=this.yy[Ze]);z.setInput(f,me.yy),me.yy.lexer=z,me.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var $e=z.yylloc;t.push($e);var Ht=z.options&&z.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xt(J){g.length=g.length-2*J,v.length=v.length-J,t.length=t.length-J}W(Xt,"popStack"),A(Xt,"popStack");function Mt(){var J=o.pop()||z.lex()||Ot;return typeof J!="number"&&(J instanceof Array&&(o=J,J=o.pop()),J=m.symbols_[J]||J),J}W(Mt,"lex"),A(Mt,"lex");for(var H,et,Ce,Q,tt,Ge={},Xe,he,Ut,qe;;){if(Ce=g[g.length-1],this.defaultActions[Ce]?Q=this.defaultActions[Ce]:((H===null||typeof H>"u")&&(H=Mt()),Q=Pe[Ce]&&Pe[Ce][H]),typeof Q>"u"||!Q.length||!Q[0]){var st="";qe=[];for(Xe in Pe[Ce])this.terminals_[Xe]&&Xe>jt&&qe.push("'"+this.terminals_[Xe]+"'");z.showPosition?st="Parse error on line "+(L+1)+`:
10
+ `+z.showPosition()+`
11
+ Expecting `+qe.join(", ")+", got '"+(this.terminals_[H]||H)+"'":st="Parse error on line "+(L+1)+": Unexpected "+(H==Ot?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(st,{text:z.match,token:this.terminals_[H]||H,line:z.yylineno,loc:$e,expected:qe})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ce+", token: "+H);switch(Q[0]){case 1:g.push(H),v.push(z.yytext),t.push(z.yylloc),g.push(Q[1]),H=null,et?(H=et,et=null):(Gt=z.yyleng,s=z.yytext,L=z.yylineno,$e=z.yylloc,Pt>0&&Pt--);break;case 2:if(he=this.productions_[Q[1]][1],Ge.$=v[v.length-he],Ge._$={first_line:t[t.length-(he||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(he||1)].first_column,last_column:t[t.length-1].last_column},Ht&&(Ge._$.range=[t[t.length-(he||1)].range[0],t[t.length-1].range[1]]),tt=this.performAction.apply(Ge,[s,Gt,L,me.yy,Q[1],v,t].concat(Yt)),typeof tt<"u")return tt;he&&(g=g.slice(0,-1*he*2),v=v.slice(0,-1*he),t=t.slice(0,-1*he)),g.push(this.productions_[Q[1]][0]),v.push(Ge.$),t.push(Ge._$),Ut=Pe[g[g.length-2]][g[g.length-1]],g.push(Ut);break;case 3:return!0}}return!0},"parse"),"parse")};Je.lexer=(function(){return{EOF:1,parseError:A(W(function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},"parseError"),"parseError"),setInput:A(function(c,f){return this.yy=f||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var c=this._input[0];return this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c,c.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:A(function(c){var f=c.length,m=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(c){this.unput(this.match.slice(c))},"less"),pastInput:A(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var c=this.pastInput(),f=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
13
+ `+f+"^"},"showPosition"),test_match:A(function(c,f){var m,g,o;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(o.yylloc.range=this.yylloc.range.slice(0))),g=c[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,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(c[0].length),this.matched+=c[0],m=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var v in o)this[v]=o[v];return!1}return!1},"test_match"),next:A(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,f,m,g;this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),v=0;v<o.length;v++)if(m=this._input.match(this.rules[o[v]]),m&&(!f||m[0].length>f[0].length)){if(f=m,g=v,this.options.backtrack_lexer){if(c=this.test_match(m,o[v]),c!==!1)return c;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(c=this.test_match(f,o[g]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:A(W(function(){var f=this.next();return f||this.lex()},"lex"),"lex"),begin:A(W(function(f){this.conditionStack.push(f)},"begin"),"begin"),popState:A(W(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),"popState"),_currentRules:A(W(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),"_currentRules"),topState:A(W(function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},"topState"),"topState"),pushState:A(W(function(f){this.begin(f)},"pushState"),"pushState"),stateStackSize:A(W(function(){return this.conditionStack.length},"stateStackSize"),"stateStackSize"),options:{},performAction:A(W(function(f,m,g,o){switch(g){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),m.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:return m.yytext=m.yytext.replace(/\n\s*/g,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return f.lex.firstGraph()&&this.begin("dir"),12;case 36:return f.lex.firstGraph()&&this.begin("dir"),12;case 37:return f.lex.firstGraph()&&this.begin("dir"),12;case 38:return f.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState("thickEdgeText"),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState("dottedEdgeText"),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}})();function He(){this.yy={}}return W(He,"Parser"),A(He,"Parser"),He.prototype=Je,Je.Parser=He,new He})();nt.parser=nt;var Wt=nt,Kt=Object.assign({},Wt);Kt.parse=e=>{const i=e.replace(/}\s*\n/g,`}
15
+ `);return Wt.parse(i)};var D1=Kt,T1=A((e,i)=>{const r=o1,a=r(e,"r"),n=r(e,"g"),h=r(e,"b");return s1(a,n,h,i)},"fade"),E1=A(e=>`.label {
16
+ font-family: ${e.fontFamily};
17
+ color: ${e.nodeTextColor||e.textColor};
18
+ }
19
+ .cluster-label text {
20
+ fill: ${e.titleColor};
21
+ }
22
+ .cluster-label span {
23
+ color: ${e.titleColor};
24
+ }
25
+ .cluster-label span p {
26
+ background-color: transparent;
27
+ }
28
+
29
+ .label text,span {
30
+ fill: ${e.nodeTextColor||e.textColor};
31
+ color: ${e.nodeTextColor||e.textColor};
32
+ }
33
+
34
+ .node rect,
35
+ .node circle,
36
+ .node ellipse,
37
+ .node polygon,
38
+ .node path {
39
+ fill: ${e.mainBkg};
40
+ stroke: ${e.nodeBorder};
41
+ stroke-width: ${e.strokeWidth??1}px;
42
+ }
43
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
44
+ text-anchor: middle;
45
+ }
46
+
47
+ .node .katex path {
48
+ fill: #000;
49
+ stroke: #000;
50
+ stroke-width: 1px;
51
+ }
52
+
53
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
54
+ text-align: center;
55
+ }
56
+ .node.clickable {
57
+ cursor: pointer;
58
+ }
59
+
60
+
61
+ .root .anchor path {
62
+ fill: ${e.lineColor} !important;
63
+ stroke-width: 0;
64
+ stroke: ${e.lineColor};
65
+ }
66
+
67
+ .arrowheadPath {
68
+ fill: ${e.arrowheadColor};
69
+ }
70
+
71
+ .edgePaths .path {
72
+ stroke: ${e.lineColor};
73
+ stroke-width: ${e.strokeWidth??2}px;
74
+ }
75
+
76
+ .flowchart-link {
77
+ stroke: ${e.lineColor};
78
+ fill: none;
79
+ }
80
+
81
+ .edgeLabel {
82
+ background-color: ${e.edgeLabelBackground};
83
+ p {
84
+ background-color: ${e.edgeLabelBackground};
85
+ }
86
+ rect {
87
+ opacity: 0.5;
88
+ background-color: ${e.edgeLabelBackground};
89
+ fill: ${e.edgeLabelBackground};
90
+ }
91
+ text-align: center;
92
+ }
93
+
94
+ /* For html labels only */
95
+ .labelBkg {
96
+ background-color: ${T1(e.edgeLabelBackground,.5)};
97
+ // background-color:
98
+ }
99
+
100
+ .cluster rect {
101
+ fill: ${e.clusterBkg};
102
+ stroke: ${e.clusterBorder};
103
+ stroke-width: 1px;
104
+ }
105
+
106
+ .cluster text {
107
+ fill: ${e.titleColor};
108
+ }
109
+
110
+ .cluster span {
111
+ color: ${e.titleColor};
112
+ }
113
+ /* .cluster div {
114
+ color: ${e.titleColor};
115
+ } */
116
+
117
+ /* Collapsed subgraph node (@{ view: collapsed }) */
118
+ .node .collapsed-indicator {
119
+ fill: ${e.clusterBorder};
120
+ stroke: none;
121
+ opacity: 0.6;
122
+ }
123
+
124
+ .node .collapsed-separator {
125
+ stroke: ${e.clusterBorder};
126
+ stroke-width: 0.75px;
127
+ }
128
+
129
+ div.mermaidTooltip {
130
+ position: absolute;
131
+ text-align: center;
132
+ max-width: 200px;
133
+ padding: 2px;
134
+ font-family: ${e.fontFamily};
135
+ font-size: 12px;
136
+ background: ${e.tertiaryColor};
137
+ border: 1px solid ${e.border2};
138
+ border-radius: 2px;
139
+ pointer-events: none;
140
+ z-index: 100;
141
+ }
142
+
143
+ .flowchartTitleText {
144
+ text-anchor: middle;
145
+ font-size: 18px;
146
+ fill: ${e.textColor};
147
+ }
148
+
149
+ rect.text {
150
+ fill: none;
151
+ stroke-width: 0;
152
+ }
153
+
154
+ .icon-shape, .image-shape {
155
+ background-color: ${e.edgeLabelBackground};
156
+ p {
157
+ background-color: ${e.edgeLabelBackground};
158
+ padding: 2px;
159
+ }
160
+ .label rect {
161
+ opacity: 0.5;
162
+ background-color: ${e.edgeLabelBackground};
163
+ fill: ${e.edgeLabelBackground};
164
+ }
165
+ text-align: center;
166
+ }
167
+ ${l1()}
168
+ `,"getStyles"),S1=A(({defaultLayout:e,styles:i=E1}={})=>({parser:D1,get db(){return new m1},renderer:C1,styles:i,init:A(r=>{r.flowchart||(r.flowchart={});const a=i1().layout??e??r.layout;a&&zt({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,zt({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),G1=S1();export{G1 as n,E1 as r,S1 as t};
@@ -0,0 +1,88 @@
1
+ var L=Object.defineProperty;var $=(e,n)=>L(e,"name",{value:n,configurable:!0});import{n as c}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as x}from"./src-Bssc388C.js";import{D as I,a as X,b as _,c as H,x as q,z as U}from"./chunk-DU6HZSFF-2P5iNHqg.js";import{f as G}from"./mermaid.core-G_BSi0G0.js";var A="",z="",b="",N=[],R=new Map,S=c(e=>U(e,q()),"sanitizeText"),v=c(e=>{switch(e.type){case"terminal":return{...e,value:S(e.value)};case"nonterminal":return{...e,name:S(e.name)};case"sequence":return{...e,elements:e.elements.map(v)};case"choice":return{...e,alternatives:e.alternatives.map(v)};case"optional":return{...e,element:v(e.element)};case"repetition":return{...e,element:v(e.element),separator:e.separator?v(e.separator):void 0};case"special":return{...e,text:S(e.text)}}},"sanitizeAstNode"),j=c(()=>{A="",z="",b="",N.length=0,R.clear(),X(),x.debug("[Railroad] Database cleared")},"clear"),D=c(e=>{A=S(e),x.debug("[Railroad] Title set:",e)},"setTitle"),E=c(()=>A,"getTitle"),K={clear:j,setTitle:D,getTitle:E,addRule:c(e=>{const n={...e,name:S(e.name),definition:v(e.definition),comment:e.comment?S(e.comment):void 0};x.debug("[Railroad] Adding rule:",n.name),R.has(n.name)&&x.warn(`[Railroad] Rule '${n.name}' is already defined. Overwriting.`),N.push(n),R.set(n.name,n)},"addRule"),getRules:c(()=>N,"getRules"),getRule:c(e=>R.get(e),"getRule"),setAccTitle:c(e=>{z=S(e).replace(/^\s+/g,""),x.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),getAccTitle:c(()=>z,"getAccTitle"),setAccDescription:c(e=>{b=S(e).replace(/\n\s+/g,`
2
+ `),x.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),getAccDescription:c(()=>b,"getAccDescription"),setDiagramTitle:D,getDiagramTitle:E},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},J=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,Q=/^[\w "',.-]+$/,Z=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),B=c(e=>e?Object.keys(e).every(n=>n==="railroad"||Z.has(n)):!1,"isRailroadStyleOptions"),V=c(e=>e?"railroad"in e&&e.railroad?e.railroad:B(e)?e:{}:{},"extractRailroadOverrides"),ee=c(e=>{if(!e||B(e))return{};const{railroad:n,svgId:r,theme:t,look:i,...a}=e;return a},"extractThemeOverrides"),d=c((e,n)=>{if(typeof e!="string")return n;const r=e.trim();return J.test(r)?r:n},"sanitizeColorValue"),Y=c((e,n)=>{if(typeof e!="string")return n;const r=e.trim();return Q.test(r)?r:n},"sanitizeFontFamilyValue"),F=c((e,n)=>{const r=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):NaN;return Number.isFinite(r)&&r>=0?r:n},"sanitizeNumberValue"),te=c(e=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):NaN;return Number.isFinite(n)&&n>0?n:void 0},"parseThemeFontSize"),re=c(e=>{const n=Y(e.fontFamily,f.fontFamily),r=te(e.fontSize)??f.fontSize;return{...f,fontFamily:n,fontSize:r,terminalFill:d(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:d(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:d(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:d(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:d(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:d(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:d(e.lineColor,f.lineColor),markerFill:d(e.lineColor,f.markerFill),commentFill:d(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:d(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:d(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:d(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:d(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:d(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),M=c(e=>{const n=_(),r=re({...I(),...n.themeVariables??{},...ee(e)}),t={...n.railroad??{},...V(e)};return{compactMode:t.compactMode??r.compactMode,padding:F(t.padding,r.padding),verticalSeparation:F(t.verticalSeparation,r.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,r.horizontalSeparation),arcRadius:F(t.arcRadius,r.arcRadius),fontSize:F(t.fontSize,r.fontSize),fontFamily:Y(t.fontFamily,r.fontFamily),terminalFill:d(t.terminalFill,r.terminalFill),terminalStroke:d(t.terminalStroke,r.terminalStroke),terminalTextColor:d(t.terminalTextColor,r.terminalTextColor),nonTerminalFill:d(t.nonTerminalFill,r.nonTerminalFill),nonTerminalStroke:d(t.nonTerminalStroke,r.nonTerminalStroke),nonTerminalTextColor:d(t.nonTerminalTextColor,r.nonTerminalTextColor),lineColor:d(t.lineColor,r.lineColor),strokeWidth:F(t.strokeWidth,r.strokeWidth),markerFill:d(t.markerFill,r.markerFill),commentFill:d(t.commentFill,r.commentFill),commentStroke:d(t.commentStroke,r.commentStroke),commentTextColor:d(t.commentTextColor,r.commentTextColor),specialFill:d(t.specialFill,r.specialFill),specialStroke:d(t.specialStroke,r.specialStroke),ruleNameColor:d(t.ruleNameColor,r.ruleNameColor),showMarkers:t.showMarkers??r.showMarkers,markerRadius:F(t.markerRadius,r.markerRadius)}},"buildRailroadStyleOptions"),de=c(e=>{const{fontFamily:n,fontSize:r,terminalFill:t,terminalStroke:i,terminalTextColor:a,nonTerminalFill:p,nonTerminalStroke:s,nonTerminalTextColor:l,lineColor:u,strokeWidth:o,markerFill:g,commentFill:m,commentStroke:h,commentTextColor:C,specialFill:k,specialStroke:w,ruleNameColor:y}=M(e);return`
3
+ .railroad-diagram {
4
+ font-family: ${n};
5
+ font-size: ${r}px;
6
+ }
7
+
8
+ .railroad-terminal rect {
9
+ fill: ${t};
10
+ stroke: ${i};
11
+ stroke-width: ${o}px;
12
+ }
13
+
14
+ .railroad-terminal text {
15
+ fill: ${a};
16
+ font-family: ${n};
17
+ font-size: ${r}px;
18
+ text-anchor: middle;
19
+ dominant-baseline: middle;
20
+ }
21
+
22
+ .railroad-nonterminal rect {
23
+ fill: ${p};
24
+ stroke: ${s};
25
+ stroke-width: ${o}px;
26
+ }
27
+
28
+ .railroad-nonterminal text {
29
+ fill: ${l};
30
+ font-family: ${n};
31
+ font-size: ${r}px;
32
+ text-anchor: middle;
33
+ dominant-baseline: middle;
34
+ }
35
+
36
+ .railroad-line {
37
+ stroke: ${u};
38
+ stroke-width: ${o}px;
39
+ fill: none;
40
+ }
41
+
42
+ .railroad-start circle,
43
+ .railroad-end circle {
44
+ fill: ${g};
45
+ }
46
+
47
+ .railroad-comment ellipse {
48
+ fill: ${m};
49
+ stroke: ${h};
50
+ stroke-width: ${o}px;
51
+ }
52
+
53
+ .railroad-comment text {
54
+ fill: ${C};
55
+ font-style: italic;
56
+ font-family: ${n};
57
+ font-size: ${r}px;
58
+ text-anchor: middle;
59
+ dominant-baseline: middle;
60
+ }
61
+
62
+ .railroad-special rect {
63
+ fill: ${k};
64
+ stroke: ${w};
65
+ stroke-width: ${o}px;
66
+ stroke-dasharray: 5,3;
67
+ }
68
+
69
+ .railroad-special text {
70
+ fill: ${l};
71
+ font-family: ${n};
72
+ font-size: ${r}px;
73
+ text-anchor: middle;
74
+ dominant-baseline: middle;
75
+ }
76
+
77
+ .railroad-rule-name {
78
+ font-weight: bold;
79
+ fill: ${y};
80
+ font-family: ${n};
81
+ font-size: ${r}px;
82
+ }
83
+
84
+ .railroad-group {
85
+ /* Grouping container, no specific styles */
86
+ }
87
+ `},"getStyles"),T=class{static{$(this,"PathBuilder")}constructor(){this.d=""}static{c(this,"PathBuilder")}moveTo(e,n){return this.d+=`M ${e} ${n} `,this}lineTo(e,n){return this.d+=`L ${e} ${n} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,n,r,t,i,a,p){return this.d+=`A ${e} ${n} ${r} ${t?1:0} ${i?1:0} ${a} ${p} `,this}build(){return this.d.trim()}},ie=class{static{$(this,"RailroadRenderer")}constructor(e,n=M()){this.textCache=new Map,this.svg=e,this.config=n}static{c(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);const n=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),r=n.node().getBBox(),t={width:r.width,height:r.height};return n.remove(),this.textCache.set(e,t),t}renderTerminal(e,n){const r=this.measureText(n),t=r.width+this.config.padding*2,i=r.height+this.config.padding*2,a=e.append("g").attr("class","railroad-terminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",t).attr("height",i).attr("rx",10).attr("ry",10),a.append("text").attr("x",t/2).attr("y",i/2).text(n),{element:a.node(),dimensions:{width:t,height:i,up:i/2,down:i/2}}}renderNonTerminal(e,n){const r=this.measureText(n),t=r.width+this.config.padding*2,i=r.height+this.config.padding*2,a=e.append("g").attr("class","railroad-nonterminal");return a.append("rect").attr("x",0).attr("y",0).attr("width",t).attr("height",i),a.append("text").attr("x",t/2).attr("y",i/2).text(n),{element:a.node(),dimensions:{width:t,height:i,up:i/2,down:i/2}}}renderSequence(e,n){const r=n.map(l=>this.renderExpression(e,l));let t=0,i=0,a=0;for(const l of r)t+=l.dimensions.width,i=Math.max(i,l.dimensions.up),a=Math.max(a,l.dimensions.down);t+=(r.length-1)*this.config.horizontalSeparation;const p=e.append("g").attr("class","railroad-sequence");let s=0;for(let l=0;l<r.length;l++){const u=r[l],o=i-u.dimensions.up;if(p.node().appendChild(u.element).setAttribute("transform",`translate(${s}, ${o})`),l<r.length-1){const g=s+u.dimensions.width,m=g+this.config.horizontalSeparation,h=i;p.append("path").attr("class","railroad-line").attr("d",new T().moveTo(g,h).lineTo(m,h).build())}s+=u.dimensions.width+this.config.horizontalSeparation}return{element:p.node(),dimensions:{width:t,height:i+a,up:i,down:a}}}renderChoice(e,n){const r=n.map(g=>this.renderExpression(e,g));let t=0,i=0;for(const g of r)t=Math.max(t,g.dimensions.width),i+=g.dimensions.height;i+=(r.length-1)*this.config.verticalSeparation;const a=this.config.arcRadius,p=a*4,s=t+p,l=e.append("g").attr("class","railroad-choice");let u=0;const o=i/2;for(const g of r){const m=u,h=m+g.dimensions.up,C=a*2+(t-g.dimensions.width)/2;l.node().appendChild(g.element).setAttribute("transform",`translate(${C}, ${m})`);const k=new T,w=h>o;h===o?k.moveTo(0,o).lineTo(C,h):k.moveTo(0,o).arcTo(a,a,0,!1,w,a,o+(w?a:-a)).lineTo(a,h-(w?a:-a)).arcTo(a,a,0,!1,!w,a*2,h).lineTo(C,h),l.append("path").attr("class","railroad-line").attr("d",k.build());const y=new T,O=C+g.dimensions.width,P=s-a*2;h===o?y.moveTo(O,h).lineTo(s,o):y.moveTo(O,h).lineTo(P,h).arcTo(a,a,0,!1,!w,s-a,h+(w?-a:a)).lineTo(s-a,o+(w?a:-a)).arcTo(a,a,0,!1,w,s,o),l.append("path").attr("class","railroad-line").attr("d",y.build()),u+=g.dimensions.height+this.config.verticalSeparation}return{element:l.node(),dimensions:{width:s,height:i,up:o,down:i-o}}}renderOptional(e,n){const r=this.renderExpression(e,n),t=this.config.arcRadius,i=t*2,a=r.dimensions.width+t*4,p=r.dimensions.height+i,s=e.append("g").attr("class","railroad-optional"),l=t*2,u=i;s.node().appendChild(r.element).setAttribute("transform",`translate(${l}, ${u})`);const o=u+r.dimensions.up,g=new T().moveTo(0,o).lineTo(t*2,o);s.append("path").attr("class","railroad-line").attr("d",g.build());const m=new T().moveTo(l+r.dimensions.width,o).lineTo(a,o);s.append("path").attr("class","railroad-line").attr("d",m.build());const h=new T().moveTo(0,o).arcTo(t,t,0,!1,!1,t,o-t).lineTo(t,t).arcTo(t,t,0,!1,!0,t*2,0).lineTo(a-t*2,0).arcTo(t,t,0,!1,!0,a-t,t).lineTo(a-t,o-t).arcTo(t,t,0,!1,!1,a,o);return s.append("path").attr("class","railroad-line").attr("d",h.build()),{element:s.node(),dimensions:{width:a,height:p,up:o,down:p-o}}}renderRepetition(e,n,r){const t=this.renderExpression(e,n),i=this.config.arcRadius,a=i*2,p=t.dimensions.width+i*4,s=r===0,l=t.dimensions.height+a+(s?a:0),u=e.append("g").attr("class","railroad-repetition"),o=i*2,g=s?a:0;u.node().appendChild(t.element).setAttribute("transform",`translate(${o}, ${g})`);const m=g+t.dimensions.up;u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(0,m).lineTo(i*2,m).build()),u.append("path").attr("class","railroad-line").attr("d",new T().moveTo(o+t.dimensions.width,m).lineTo(p,m).build());const h=g+t.dimensions.height+i,C=new T().moveTo(o+t.dimensions.width,m).arcTo(i,i,0,!1,!0,o+t.dimensions.width+i,m+i).lineTo(o+t.dimensions.width+i,h).arcTo(i,i,0,!1,!0,o+t.dimensions.width,h+i).lineTo(i*2,h+i).arcTo(i,i,0,!1,!0,i,h).lineTo(i,m+i).arcTo(i,i,0,!1,!0,i*2,m);if(u.append("path").attr("class","railroad-line").attr("d",C.build()),s){const k=new T().moveTo(0,m).arcTo(i,i,0,!1,!1,i,m-i).lineTo(i,i).arcTo(i,i,0,!1,!0,i*2,0).lineTo(p-i*2,0).arcTo(i,i,0,!1,!0,p-i,i).lineTo(p-i,m-i).arcTo(i,i,0,!1,!1,p,m);u.append("path").attr("class","railroad-line").attr("d",k.build())}return{element:u.node(),dimensions:{width:p,height:l,up:m,down:l-m}}}renderSpecial(e,n){const r=this.measureText("? "+n+" ?"),t=r.width+this.config.padding*2,i=r.height+this.config.padding*2,a=e.append("g").attr("class","railroad-special");return a.append("rect").attr("x",0).attr("y",0).attr("width",t).attr("height",i),a.append("text").attr("x",t/2).attr("y",i/2).text("? "+n+" ?"),{element:a.node(),dimensions:{width:t,height:i,up:i/2,down:i/2}}}renderExpression(e,n){switch(n.type){case"terminal":return this.renderTerminal(e,n.value);case"nonterminal":return this.renderNonTerminal(e,n.name);case"sequence":return this.renderSequence(e,n.elements);case"choice":return this.renderChoice(e,n.alternatives);case"optional":return this.renderOptional(e,n.element);case"repetition":return this.renderRepetition(e,n.element,n.min);case"special":return this.renderSpecial(e,n.text);default:throw new Error(`Unknown node type: ${n.type}`)}}renderRule(e,n){const r=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${n})`),t=e.name+" =",i=this.measureText(t).width+20,a=i+20,p=r.append("g"),s=this.renderExpression(p,e.definition),l=Math.max(20,s.dimensions.up),u=l-s.dimensions.up;return p.attr("transform",`translate(${a}, ${u})`),r.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",l).text(t),r.append("g").attr("class","railroad-start").append("circle").attr("cx",i).attr("cy",l).attr("r",this.config.markerRadius),r.append("g").attr("class","railroad-end").append("circle").attr("cx",a+s.dimensions.width+10).attr("cy",l).attr("r",this.config.markerRadius),r.append("path").attr("class","railroad-line").attr("d",new T().moveTo(i+this.config.markerRadius,l).lineTo(a,l).build()),r.append("path").attr("class","railroad-line").attr("d",new T().moveTo(a+s.dimensions.width,l).lineTo(a+s.dimensions.width+10-this.config.markerRadius,l).build()),{height:Math.max(40,u+s.dimensions.height+this.config.padding*2),width:a+s.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let n=this.config.padding,r=0;for(const t of e){const i=this.renderRule(t,n);n+=i.height+this.config.verticalSeparation,r=Math.max(r,i.width)}return{width:r+this.config.padding*2,height:n+this.config.padding}}},W=c((e,n,r)=>{H(e,n.height,n.width,r),e.attr("viewBox",`0 0 ${n.width} ${n.height}`)},"configureRailroadSvgSize"),ce={draw:c((e,n,r)=>{x.debug(`[Railroad] Rendering diagram
88
+ `+e);try{const t=G(n);t.attr("class","railroad-diagram");const i=_().railroad?.useMaxWidth??!0,a=K.getRules();if(x.debug(`[Railroad] Rendering ${a.length} rules`),a.length===0){x.warn("[Railroad] No rules to render"),W(t,{height:100,width:200},i);return}W(t,new ie(t,M()).renderDiagram(a),i),x.debug("[Railroad] Render complete")}catch(t){throw x.error("[Railroad] Render error:",t),t}},"draw")};export{de as n,ce as r,K as t};