@spteck/react-controls-v2 2.3.7 → 2.3.8

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 (644) hide show
  1. package/dist/LocalizationProvider-B6NxHbu2.cjs +2 -0
  2. package/dist/LocalizationProvider-te5iu_6z.js +363 -0
  3. package/dist/_arrayEach-BuSFKyFt.js +54 -0
  4. package/dist/_arrayEach-ChR-TejB.cjs +2 -0
  5. package/dist/_getTag-BRuLtYrv.js +28 -0
  6. package/dist/_getTag-D6VVyrEu.cjs +2 -0
  7. package/dist/abstractions/IApplicationContext.d.ts +0 -1
  8. package/dist/abstractions/IAuthenticationProvider.d.ts +0 -1
  9. package/dist/abstractions/ILocalizationProvider.d.ts +0 -1
  10. package/dist/abstractions/providers/ConsoleLoggingProvider.d.ts +0 -1
  11. package/dist/abstractions/providers/DefaultGraphClient.d.ts +0 -1
  12. package/dist/abstractions/providers/DefaultLocalizationProvider.d.ts +0 -1
  13. package/dist/abstractions/providers/LocalStorageProvider.d.ts +0 -1
  14. package/dist/abstractions/providers/LocalizationProvider.d.ts +0 -1
  15. package/dist/ar-Blifx2MN.js +210 -0
  16. package/dist/ar-ip3bGOX3.cjs +2 -0
  17. package/dist/arc-4yb49ncY.js +82 -0
  18. package/dist/arc-djsA8IT0.cjs +2 -0
  19. package/dist/architecture-PBZL5I3N-CvTfVLFi.js +3 -0
  20. package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +1 -0
  21. package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +37 -0
  22. package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +4047 -0
  23. package/dist/array-BNB_vRFv.cjs +2 -0
  24. package/dist/array-DP0duYiO.js +8 -0
  25. package/dist/az-CMhDjtnj.js +210 -0
  26. package/dist/az-CyVLdUDz.cjs +2 -0
  27. package/dist/bg-Bexoz3hL.cjs +2 -0
  28. package/dist/bg-C96WirSv.js +210 -0
  29. package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +3165 -0
  30. package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +133 -0
  31. package/dist/bs-MMcvhwLv.cjs +2 -0
  32. package/dist/bs-_St1wBE_.js +210 -0
  33. package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +2966 -0
  34. package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +11 -0
  35. package/dist/ca-BspMSeHN.cjs +2 -0
  36. package/dist/ca-QlLcV4wf.js +210 -0
  37. package/dist/channel-2Bqnb1FY.js +7 -0
  38. package/dist/channel-5_aP1EVB.cjs +2 -0
  39. package/dist/chunk-4BX2VUAB-B5Va_oZz.js +10 -0
  40. package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +2 -0
  41. package/dist/chunk-55IACEB6-4ind_ByS.cjs +2 -0
  42. package/dist/chunk-55IACEB6-Pcyz_aR_.js +10 -0
  43. package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +2 -0
  44. package/dist/chunk-7E7YKBS2-VHdgsed6.js +25 -0
  45. package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +81 -0
  46. package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +2598 -0
  47. package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +2 -0
  48. package/dist/chunk-C72U2L5F-MjJQTOMh.js +25 -0
  49. package/dist/chunk-D-IZpNpi.cjs +1 -0
  50. package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +2 -0
  51. package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +25 -0
  52. package/dist/{chunk-FMBD7UC4-DD0xIF4q.js → chunk-FMBD7UC4-BvqqU04Z.cjs} +3 -7
  53. package/dist/chunk-FMBD7UC4-xjRtkFXe.js +7 -0
  54. package/dist/chunk-GEFDOKGD-BNgT40Ex.js +1302 -0
  55. package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +3 -0
  56. package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +2 -0
  57. package/dist/chunk-GLR3WWYH-kyo6BUtq.js +43 -0
  58. package/dist/chunk-HHEYEP7N-DO1AYIZw.js +11 -0
  59. package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +2 -0
  60. package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +2 -0
  61. package/dist/chunk-JSJVCQXG-DowfYWcD.js +62 -0
  62. package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +2 -0
  63. package/dist/chunk-KX2RTZJC-D-bUTSNy.js +27 -0
  64. package/dist/chunk-KYZI473N-DEPuSXaW.js +3436 -0
  65. package/dist/chunk-KYZI473N-DzBMFOER.cjs +54 -0
  66. package/dist/chunk-L3YUKLVL-BDGCTzmy.js +25 -0
  67. package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +2 -0
  68. package/dist/chunk-MX3YWQON-CAsnAj2e.js +82 -0
  69. package/dist/chunk-MX3YWQON-DulrBJdn.cjs +2 -0
  70. package/dist/chunk-NBPlniwU.js +23 -0
  71. package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +221 -0
  72. package/dist/chunk-NQ4KR5QH-DFem-ORD.js +2004 -0
  73. package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +8 -0
  74. package/dist/chunk-O4XLMI2P-DA4TPzPG.js +513 -0
  75. package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +2 -0
  76. package/dist/chunk-OZEHJAEY-D7SX2SbR.js +66 -0
  77. package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +2 -0
  78. package/dist/chunk-PQ6SQG4A-ObFGkauo.js +69 -0
  79. package/dist/chunk-PU5JKC2W-BM5NPS-q.js +1887 -0
  80. package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +71 -0
  81. package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +2 -0
  82. package/dist/chunk-QZHKN3VN-x258g6EH.js +17 -0
  83. package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +2 -0
  84. package/dist/chunk-R5LLSJPH-Gt27ml2m.js +37 -0
  85. package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +190 -0
  86. package/dist/chunk-WL4C6EOR-DuM6QmqM.js +3196 -0
  87. package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +2 -0
  88. package/dist/chunk-XIRO2GV7-DXlO8X82.js +32 -0
  89. package/dist/chunk-XPW4576I-Bpsr4SZJ.js +1148 -0
  90. package/dist/chunk-XPW4576I-C68T-WIW.cjs +33 -0
  91. package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +95 -0
  92. package/dist/chunk-XZSTWKYB-jD9M1izK.js +16132 -0
  93. package/dist/chunk-YBOYWFTD-B6CeuteH.js +34 -0
  94. package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +2 -0
  95. package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +2 -0
  96. package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +31 -0
  97. package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +2 -0
  98. package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +31 -0
  99. package/dist/components/AISearchControl/useAISearchControlStyles.d.ts +0 -1
  100. package/dist/components/AspectRatio/AspectRatio.d.ts +0 -1
  101. package/dist/components/AspectRatio/IAspectRationProps.d.ts +0 -1
  102. package/dist/components/Card/ICardProps.d.ts +0 -1
  103. package/dist/components/Carousel/ICarouselProps.d.ts +0 -1
  104. package/dist/components/Carousel/useCarouselButton.d.ts +0 -1
  105. package/dist/components/Carousel/useCarouselStyles.d.ts +0 -1
  106. package/dist/components/Center/ICenterProps.d.ts +0 -1
  107. package/dist/components/ContentRenderer/IContentRendererProps.d.ts +0 -1
  108. package/dist/components/DataGridV2/DataGridV2.d.ts +2 -1
  109. package/dist/components/DataGridV2/IDataGridV2ExtraProps.d.ts +0 -1
  110. package/dist/components/Grid/IGridProps.d.ts +0 -1
  111. package/dist/components/ItemPicker/IItemPickerProps.d.ts +0 -1
  112. package/dist/components/KPIControl/IKpiCardProps.d.ts +0 -1
  113. package/dist/components/ListItemActivityMessage/IActivity.d.ts +0 -1
  114. package/dist/components/ListItemActivityMessage/IActivityMessageProps.d.ts +0 -1
  115. package/dist/components/ListItemActivityMessage/IActor.d.ts +0 -1
  116. package/dist/components/ListItemActivityMessage/useSharePointActivities.d.ts +0 -1
  117. package/dist/components/ListToolbar/FlatItem.d.ts +0 -1
  118. package/dist/components/ListToolbar/IListToolbarProps.d.ts +0 -1
  119. package/dist/components/ListToolbar/IToolbarItem.d.ts +0 -1
  120. package/dist/components/ListToolbar/IToolbarItemRendererProps.d.ts +0 -1
  121. package/dist/components/ListToolbar/helpers.d.ts +0 -1
  122. package/dist/components/MermaidDiagram/useMermaidDiagramStyles.d.ts +0 -1
  123. package/dist/components/Navigation/Navigation.d.ts +0 -1
  124. package/dist/components/Popup/Popup.d.ts +0 -1
  125. package/dist/components/Provider/UniversalProvider.d.ts +0 -1
  126. package/dist/components/Space/ISpaceProps.d.ts +0 -1
  127. package/dist/components/SplitPane/ISplitPaneProps.d.ts +0 -1
  128. package/dist/components/SplitPane/useSplitPaneStyles.d.ts +0 -1
  129. package/dist/components/Stack/IStackProps.d.ts +0 -1
  130. package/dist/components/StackedUsers/IStackedUsersProps.d.ts +0 -1
  131. package/dist/components/StackedUsers/StackedUsers.d.ts +0 -1
  132. package/dist/components/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +0 -1
  133. package/dist/components/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +0 -1
  134. package/dist/components/adaptiveCardHost/AdaptiveCardHost.d.ts +0 -1
  135. package/dist/components/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +0 -1
  136. package/dist/components/adaptiveCardHost/fluentUI/Elements.d.ts +0 -1
  137. package/dist/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.d.ts +0 -1
  138. package/dist/components/adaptiveCardHost/fluentUI/FluentUIDateInput.d.ts +0 -1
  139. package/dist/components/adaptiveCardHost/fluentUI/FluentUINumberInput.d.ts +0 -1
  140. package/dist/components/adaptiveCardHost/fluentUI/FluentUITextInput.d.ts +0 -1
  141. package/dist/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.d.ts +0 -1
  142. package/dist/components/adaptiveCardHost/fluentUI/HostCapability.d.ts +0 -1
  143. package/dist/components/adaptiveCardHost/fluentUI/HostConfig.d.ts +0 -1
  144. package/dist/components/adaptiveCardHost/fluentUI/Styles.d.ts +0 -1
  145. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +0 -1
  146. package/dist/components/adaptiveCardHost/models/IAdaptiveCardHostEvaluationContext.d.ts +0 -1
  147. package/dist/components/aiAssistant/ChatAction.d.ts +0 -1
  148. package/dist/components/aiAssistant/ChatInputProps.d.ts +0 -1
  149. package/dist/components/aiAssistant/ChatInputWithMensions.d.ts +0 -1
  150. package/dist/components/aiAssistant/ChatInputWithMensionsProps.d.ts +0 -1
  151. package/dist/components/aiAssistant/ChatInputWithMensionsV1.d.ts +0 -1
  152. package/dist/components/aiAssistant/ChatInputWithMensionsV2.d.ts +0 -1
  153. package/dist/components/aiAssistant/ChatState.d.ts +0 -1
  154. package/dist/components/aiAssistant/IAIAssistantProps.d.ts +0 -1
  155. package/dist/components/aiAssistant/chatReducer.d.ts +0 -1
  156. package/dist/components/aiAssistant/useChatInputStyles.d.ts +0 -1
  157. package/dist/components/aiAssistant/useChatInputWithMensionsStyles.d.ts +0 -1
  158. package/dist/components/aiAssistant/useStyles.d.ts +0 -1
  159. package/dist/components/appDashboard/AppDashboard.d.ts +0 -1
  160. package/dist/components/appDashboard/IAppDashboardProps.d.ts +0 -1
  161. package/dist/components/baseComponentProps/IBaseProps.d.ts +0 -1
  162. package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -1
  163. package/dist/components/breadcrumb/IBreadcrumProps.d.ts +0 -1
  164. package/dist/components/breadcrumb/OverflowMenu.d.ts +0 -1
  165. package/dist/components/breadcrumb/useBreadcrumStyles.d.ts +0 -1
  166. package/dist/components/calendarControl/hooks/useCalendar.d.ts +0 -1
  167. package/dist/components/calendarControl/hooks/useUtils.d.ts +0 -1
  168. package/dist/components/calendarControl/models/ICalendarControlProps.d.ts +0 -1
  169. package/dist/components/calendarControl/models/IEvents.d.ts +0 -1
  170. package/dist/components/customControlBar/ICustomControlBarProps.d.ts +0 -1
  171. package/dist/components/dataGrid/DataGrid.d.ts +0 -1
  172. package/dist/components/dataGrid/IDataGridProps.d.ts +0 -1
  173. package/dist/components/dataGrid/ISortState.d.ts +0 -1
  174. package/dist/components/dataGrid/stack/IStackProps.d.ts +0 -1
  175. package/dist/components/dataGrid/stack/Stack.d.ts +0 -1
  176. package/dist/components/dataGrid/useDataGridStyles.d.ts +0 -1
  177. package/dist/components/dropDownField/IDropDownFieldProps.d.ts +0 -1
  178. package/dist/components/fluentUIProvider/FluentUIProvider.d.ts +0 -1
  179. package/dist/components/iconButton/IconButton.d.ts +0 -1
  180. package/dist/components/iconButton/IconButtonProps.d.ts +0 -1
  181. package/dist/components/mensions/IMensionsProps.d.ts +0 -1
  182. package/dist/components/mensions/Mensions.d.ts +0 -1
  183. package/dist/components/mensions/MensionsExample.d.ts +0 -1
  184. package/dist/components/renderAdaptiveCard/RenderAdaptiveCard.d.ts +0 -1
  185. package/dist/components/searchControl/useSearchControlStyles.d.ts +0 -1
  186. package/dist/components/selectView/SelectView.d.ts +0 -1
  187. package/dist/components/showError/ShowError.d.ts +0 -1
  188. package/dist/components/stackv2/IStackV2Props.d.ts +0 -1
  189. package/dist/components/stackv2/StackV2.d.ts +0 -1
  190. package/dist/components/userCard/IUserCardProps.d.ts +0 -1
  191. package/dist/components/userCard/IUserInfo.d.ts +0 -1
  192. package/dist/components/userCard/UserCard.d.ts +0 -1
  193. package/dist/components/userCard/constants.d.ts +0 -1
  194. package/dist/components/userCard/useUserProfile.d.ts +0 -1
  195. package/dist/components/videoPlayer/VideoPlayer.d.ts +0 -1
  196. package/dist/components/videoPlayer/useVideoStyles.d.ts +0 -1
  197. package/dist/components/worldMap/IWorldMapProps.d.ts +0 -1
  198. package/dist/components/worldMap/MaplibreWorldMapProps.d.ts +0 -1
  199. package/dist/components/worldMap/WorldMap.d.ts +0 -1
  200. package/dist/components/worldMap/WorldMapControl.d.ts +0 -1
  201. package/dist/components/worldMap/useCleanMapStyle.d.ts +0 -1
  202. package/dist/components/worldMap/useGeocodedCountries.d.ts +0 -1
  203. package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +2252 -0
  204. package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +2 -0
  205. package/dist/cs-FZSeHYld.cjs +2 -0
  206. package/dist/cs-MrS2bH7F.js +210 -0
  207. package/dist/cy-BX97Tgwk.js +210 -0
  208. package/dist/cy-CzQmM2lQ.cjs +2 -0
  209. package/dist/cytoscape.esm-CcJAI0wG.cjs +322 -0
  210. package/dist/cytoscape.esm-D9EjU25_.js +18102 -0
  211. package/dist/da-BnewPPrh.js +210 -0
  212. package/dist/da-CexFt-Oj.cjs +2 -0
  213. package/dist/dagre-CpEPaL3r.cjs +2 -0
  214. package/dist/dagre-Dd8wCGc6.js +1305 -0
  215. package/dist/dagre-KLK3FWXG-BpxkjvB3.js +294 -0
  216. package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +5 -0
  217. package/dist/de-B68HwuYu.cjs +2 -0
  218. package/dist/de-BSZuzGTL.js +210 -0
  219. package/dist/defaultLocale-CYOzCjwh.js +203 -0
  220. package/dist/defaultLocale-DSgylVA1.cjs +2 -0
  221. package/dist/diagram-E7M64L7V-dXqTi77U.cjs +25 -0
  222. package/dist/diagram-E7M64L7V-oX07GVAD.js +529 -0
  223. package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +44 -0
  224. package/dist/diagram-IFDJBPK2-lCNF06_S.js +215 -0
  225. package/dist/diagram-P4PSJMXO-TfwVJh4S.js +135 -0
  226. package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +25 -0
  227. package/dist/dist-CV9Ez7cn.js +52 -0
  228. package/dist/dist-DVthN7lF.cjs +2 -0
  229. package/dist/el-DQc4jSMd.cjs +2 -0
  230. package/dist/el-DrOk3N7-.js +210 -0
  231. package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +71 -0
  232. package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +1668 -0
  233. package/dist/es-CGqzubZ2.js +210 -0
  234. package/dist/es-DI8Y4Bv1.cjs +2 -0
  235. package/dist/et-DGqkocuq.js +210 -0
  236. package/dist/et-DfaryKvp.cjs +2 -0
  237. package/dist/eu-BVOSXciF.cjs +2 -0
  238. package/dist/eu-DEo7fdTW.js +210 -0
  239. package/dist/fi-C5L-OzaI.cjs +2 -0
  240. package/dist/fi-DxErwnd5.js +210 -0
  241. package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +163 -0
  242. package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +4163 -0
  243. package/dist/fr-yFvjqx8B.cjs +2 -0
  244. package/dist/fr-zrtSZX0o.js +210 -0
  245. package/dist/ga-6mVQhlWi.cjs +2 -0
  246. package/dist/ga-CbHxGc9_.js +210 -0
  247. package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +293 -0
  248. package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +3074 -0
  249. package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +3 -0
  250. package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +1 -0
  251. package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +627 -0
  252. package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +66 -0
  253. package/dist/gl--w0P3RY4.js +210 -0
  254. package/dist/gl-BJzJe1sq.cjs +2 -0
  255. package/dist/graphlib-CPo7oIsu.js +223 -0
  256. package/dist/graphlib-CmUS4Qin.cjs +2 -0
  257. package/dist/he-B3Bw3qr0.cjs +2 -0
  258. package/dist/he-DY19lzWp.js +210 -0
  259. package/dist/hi-CFSsoO_8.js +210 -0
  260. package/dist/hi-kofL-mD8.cjs +2 -0
  261. package/dist/hooks/useBrandCenterFonts.d.ts +0 -1
  262. package/dist/hooks/useGraphAPI.d.ts +0 -1
  263. package/dist/hooks/useLocalizationStrings.d.ts +0 -1
  264. package/dist/hooks/useLogging.d.ts +0 -1
  265. package/dist/hr-CDxqA9Jm.cjs +2 -0
  266. package/dist/hr-DIRJ1Z8e.js +210 -0
  267. package/dist/hu-Defen_75.cjs +2 -0
  268. package/dist/hu-DqYPRWZh.js +210 -0
  269. package/dist/id-DcwMRgmX.cjs +2 -0
  270. package/dist/id-Dgj7SUCi.js +210 -0
  271. package/dist/identity-6JlhFhuM.cjs +2 -0
  272. package/dist/identity-C1jKsMoW.js +395 -0
  273. package/dist/index.cjs +453 -2
  274. package/dist/index.js +22827 -168
  275. package/dist/info-3K5VOQVL-DfN_3mKd.js +3 -0
  276. package/dist/info-3K5VOQVL-d6J9FY0_.cjs +1 -0
  277. package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +3 -0
  278. package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +21 -0
  279. package/dist/init-BAFZAp9S.cjs +2 -0
  280. package/dist/init-m0TwgR4W.js +17 -0
  281. package/dist/isEmpty-BTp1uKIj.cjs +2 -0
  282. package/dist/isEmpty-uXVYZZYe.js +17 -0
  283. package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +719 -0
  284. package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +71 -0
  285. package/dist/it-D5nM6KCi.cjs +2 -0
  286. package/dist/it-QdChHqVN.js +210 -0
  287. package/dist/ja-BNS0BbY-.js +210 -0
  288. package/dist/ja-BtuHirv7.cjs +2 -0
  289. package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +140 -0
  290. package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +885 -0
  291. package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +90 -0
  292. package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +973 -0
  293. package/dist/katex-B-Nju2J8.js +22002 -0
  294. package/dist/katex-WY67Rp7A.cjs +266 -0
  295. package/dist/kk-BSl8IqgQ.cjs +2 -0
  296. package/dist/kk-Dhkax68h.js +210 -0
  297. package/dist/ko-eplb1GD0.cjs +2 -0
  298. package/dist/ko-heRMHZWp.js +210 -0
  299. package/dist/line-CbEBKCYr.js +36 -0
  300. package/dist/line-DqSdvtRR.cjs +2 -0
  301. package/dist/linear-DvLDpS6A.cjs +2 -0
  302. package/dist/linear-Eb79THx6.js +291 -0
  303. package/dist/localization/ILibraryStrings.d.ts +0 -1
  304. package/dist/localization/defaults/ar.d.ts +0 -1
  305. package/dist/localization/defaults/az.d.ts +0 -1
  306. package/dist/localization/defaults/bg.d.ts +0 -1
  307. package/dist/localization/defaults/bs.d.ts +0 -1
  308. package/dist/localization/defaults/ca.d.ts +0 -1
  309. package/dist/localization/defaults/cs.d.ts +0 -1
  310. package/dist/localization/defaults/cy.d.ts +0 -1
  311. package/dist/localization/defaults/da.d.ts +0 -1
  312. package/dist/localization/defaults/de.d.ts +0 -1
  313. package/dist/localization/defaults/el.d.ts +0 -1
  314. package/dist/localization/defaults/en.d.ts +0 -1
  315. package/dist/localization/defaults/es.d.ts +0 -1
  316. package/dist/localization/defaults/et.d.ts +0 -1
  317. package/dist/localization/defaults/eu.d.ts +0 -1
  318. package/dist/localization/defaults/fi.d.ts +0 -1
  319. package/dist/localization/defaults/fr.d.ts +0 -1
  320. package/dist/localization/defaults/ga.d.ts +0 -1
  321. package/dist/localization/defaults/gl.d.ts +0 -1
  322. package/dist/localization/defaults/he.d.ts +0 -1
  323. package/dist/localization/defaults/hi.d.ts +0 -1
  324. package/dist/localization/defaults/hr.d.ts +0 -1
  325. package/dist/localization/defaults/hu.d.ts +0 -1
  326. package/dist/localization/defaults/id.d.ts +0 -1
  327. package/dist/localization/defaults/it.d.ts +0 -1
  328. package/dist/localization/defaults/ja.d.ts +0 -1
  329. package/dist/localization/defaults/kk.d.ts +0 -1
  330. package/dist/localization/defaults/ko.d.ts +0 -1
  331. package/dist/localization/defaults/lt.d.ts +0 -1
  332. package/dist/localization/defaults/lv.d.ts +0 -1
  333. package/dist/localization/defaults/mk.d.ts +0 -1
  334. package/dist/localization/defaults/ms.d.ts +0 -1
  335. package/dist/localization/defaults/nb.d.ts +0 -1
  336. package/dist/localization/defaults/nl.d.ts +0 -1
  337. package/dist/localization/defaults/pl.d.ts +0 -1
  338. package/dist/localization/defaults/pt.d.ts +0 -1
  339. package/dist/localization/defaults/ro.d.ts +0 -1
  340. package/dist/localization/defaults/ru.d.ts +0 -1
  341. package/dist/localization/defaults/sk.d.ts +0 -1
  342. package/dist/localization/defaults/sl.d.ts +0 -1
  343. package/dist/localization/defaults/sr.d.ts +0 -1
  344. package/dist/localization/defaults/sv.d.ts +0 -1
  345. package/dist/localization/defaults/th.d.ts +0 -1
  346. package/dist/localization/defaults/tr.d.ts +0 -1
  347. package/dist/localization/defaults/uk.d.ts +0 -1
  348. package/dist/localization/defaults/vi.d.ts +0 -1
  349. package/dist/localization/defaults/zh.d.ts +0 -1
  350. package/dist/lt-Decqbo8S.js +210 -0
  351. package/dist/lt-DsYAWFbF.cjs +2 -0
  352. package/dist/lv-DHmTjCb8.cjs +2 -0
  353. package/dist/lv-wZASv0Lw.js +210 -0
  354. package/dist/maplibre-gl-qSrG75fp.js +33003 -0
  355. package/dist/maplibre-gl-tm_pVdmb.cjs +757 -0
  356. package/dist/math-DR9t6ixc.cjs +2 -0
  357. package/dist/math-DyURnvXC.js +12 -0
  358. package/dist/mermaid-parser.core-BdTB9qx-.js +61 -0
  359. package/dist/mermaid-parser.core-BlzF5RRD.cjs +4 -0
  360. package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +966 -0
  361. package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +69 -0
  362. package/dist/mk-BTsLGTJT.js +210 -0
  363. package/dist/mk-CCV_308U.cjs +2 -0
  364. package/dist/ms-C0cVNwky.js +210 -0
  365. package/dist/ms-CH83xVYN.cjs +2 -0
  366. package/dist/nb-DGX4q4tS.js +210 -0
  367. package/dist/nb-DZ-DlwcL.cjs +2 -0
  368. package/dist/nl-CnXZa8tZ.js +210 -0
  369. package/dist/nl-Xdf-A19i.cjs +2 -0
  370. package/dist/ordinal-BAWGEQkf.js +67 -0
  371. package/dist/ordinal-CL2X4e2C.cjs +2 -0
  372. package/dist/packet-RMMSAZCW-Bek1stRX.cjs +1 -0
  373. package/dist/packet-RMMSAZCW-DUN6t9lN.js +3 -0
  374. package/dist/path-Bt6guLtL.cjs +2 -0
  375. package/dist/path-DSzKK8fH.js +87 -0
  376. package/dist/pie-UPGHQEXC-DjqNO54R.js +3 -0
  377. package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +1 -0
  378. package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +31 -0
  379. package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +167 -0
  380. package/dist/pl-BStql1S-.cjs +2 -0
  381. package/dist/pl-DbIdTNpg.js +210 -0
  382. package/dist/providers.cjs +2 -2
  383. package/dist/providers.d.ts +1 -0
  384. package/dist/providers.js +188 -252
  385. package/dist/pt-CcKYweQk.js +210 -0
  386. package/dist/pt-Dk4jELuZ.cjs +2 -0
  387. package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +8 -0
  388. package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +1976 -0
  389. package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +1 -0
  390. package/dist/radar-KQ55EAFF-C6zhEkCz.js +3 -0
  391. package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +2203 -0
  392. package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +74 -0
  393. package/dist/ro-BvhMyTKh.cjs +2 -0
  394. package/dist/ro-C-8tiqgA.js +210 -0
  395. package/dist/rough.esm-BjJ_weyP.cjs +2 -0
  396. package/dist/rough.esm-DBHP55VQ.js +1354 -0
  397. package/dist/ru-BQosng8l.cjs +2 -0
  398. package/dist/ru-Dhnz96q2.js +210 -0
  399. package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +922 -0
  400. package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +11 -0
  401. package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +146 -0
  402. package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +4111 -0
  403. package/dist/sk-BU-Z5EsC.js +210 -0
  404. package/dist/sk-BhA7UeAk.cjs +2 -0
  405. package/dist/sl-6Mczv4jG.cjs +2 -0
  406. package/dist/sl-CcfjJFxo.js +210 -0
  407. package/dist/sr-CxObZdu0.cjs +2 -0
  408. package/dist/sr-S53unrLA.js +210 -0
  409. package/dist/src-DFxq-N5I.cjs +2 -0
  410. package/dist/src-Dm6r9c7l.js +2148 -0
  411. package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +219 -0
  412. package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +2 -0
  413. package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +29 -0
  414. package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +2 -0
  415. package/dist/sv-BfiunVuX.cjs +2 -0
  416. package/dist/sv-BiJrVfZr.js +210 -0
  417. package/dist/th-BqLGltZi.cjs +2 -0
  418. package/dist/th-vQ7LQ7nD.js +210 -0
  419. package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +832 -0
  420. package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +62 -0
  421. package/dist/tr-Brwl4o_Z.cjs +2 -0
  422. package/dist/tr-C5RrNGLz.js +210 -0
  423. package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +1 -0
  424. package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +3 -0
  425. package/dist/types/THorizontalSpacing.d.ts +0 -1
  426. package/dist/types/THorizontalSpacingBreakPoints.d.ts +0 -1
  427. package/dist/types/TPaddingBreakPoints.d.ts +0 -1
  428. package/dist/types/TPading.d.ts +0 -1
  429. package/dist/types/TVerticalSpacing.d.ts +0 -1
  430. package/dist/types/TVerticalSpacingBreakPoints.d.ts +0 -1
  431. package/dist/uk-CV49TRvS.cjs +2 -0
  432. package/dist/uk-WGCFH0fY.js +210 -0
  433. package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +1860 -0
  434. package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +35 -0
  435. package/dist/vi-JzM7bjn_.cjs +2 -0
  436. package/dist/vi-Waa7HkXq.js +210 -0
  437. package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +8 -0
  438. package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +2043 -0
  439. package/dist/zh-BmUS7Wn_.js +210 -0
  440. package/dist/zh-DEm0SGzZ.cjs +2 -0
  441. package/package.json +7 -7
  442. package/dist/LocalizationProvider-BLjmybBa.cjs +0 -2
  443. package/dist/LocalizationProvider-BSlUf0tp.js +0 -497
  444. package/dist/_arrayEach-Cje_jmPk.cjs +0 -2
  445. package/dist/_arrayEach-FofefpDi.js +0 -61
  446. package/dist/ar-C1pLt8fa.js +0 -219
  447. package/dist/ar-Jzw7PLrc.cjs +0 -2
  448. package/dist/arc-5Gjtja_I.js +0 -132
  449. package/dist/arc-DJHyDr2O.cjs +0 -2
  450. package/dist/architecture-7HQA4BMR-B3tJE43W.js +0 -6
  451. package/dist/architecture-7HQA4BMR-gT33-zCB.cjs +0 -2
  452. package/dist/architectureDiagram-VXUJARFQ-2JSYYGtM.js +0 -8680
  453. package/dist/architectureDiagram-VXUJARFQ-DXZHHpiT.cjs +0 -2
  454. package/dist/az-C0Ow5Hxa.cjs +0 -2
  455. package/dist/az-C3-F9ybX.js +0 -219
  456. package/dist/bg-YB0TmpRF.cjs +0 -2
  457. package/dist/bg-w2e_udiK.js +0 -219
  458. package/dist/blockDiagram-VD42YOAC-B6nGrskI.js +0 -3756
  459. package/dist/blockDiagram-VD42YOAC-quPSWMXj.cjs +0 -2
  460. package/dist/bs-BoW04lRb.cjs +0 -2
  461. package/dist/bs-CEe_gjEx.js +0 -219
  462. package/dist/c4Diagram-YG6GDRKO-CvSU_nSb.js +0 -2483
  463. package/dist/c4Diagram-YG6GDRKO-yrm6z9xI.cjs +0 -2
  464. package/dist/ca-Bsy2Y5pS.cjs +0 -2
  465. package/dist/ca-CKpd72XI.js +0 -219
  466. package/dist/channel-BGx_PGej.cjs +0 -2
  467. package/dist/channel-Dx_x_I-e.js +0 -8
  468. package/dist/chunk-4BX2VUAB-DE7Tf1KJ.js +0 -18
  469. package/dist/chunk-4BX2VUAB-hg2h7y7T.cjs +0 -2
  470. package/dist/chunk-55IACEB6-5VDRE5b9.js +0 -14
  471. package/dist/chunk-55IACEB6-DQzh2BFT.cjs +0 -2
  472. package/dist/chunk-B4BG7PRW-BONACuKe.cjs +0 -2
  473. package/dist/chunk-B4BG7PRW-ClXZOBBj.js +0 -1828
  474. package/dist/chunk-DI55MBZ5-CnX_pntz.cjs +0 -2
  475. package/dist/chunk-DI55MBZ5-Cw4AXuM5.js +0 -1928
  476. package/dist/chunk-FMBD7UC4-vGLXIanH.cjs +0 -2
  477. package/dist/chunk-QN33PNHL-Bi6cNSdZ.cjs +0 -2
  478. package/dist/chunk-QN33PNHL-NyikcZce.js +0 -26
  479. package/dist/chunk-QZHKN3VN-Cj-nkoY3.cjs +0 -2
  480. package/dist/chunk-QZHKN3VN-DRpbGzBX.js +0 -18
  481. package/dist/chunk-TZMSLE5B-Dbk2wKaP.cjs +0 -2
  482. package/dist/chunk-TZMSLE5B-DiEITu_i.js +0 -109
  483. package/dist/classDiagram-2ON5EDUG-CZ8qM-r0.js +0 -20
  484. package/dist/classDiagram-2ON5EDUG-GEqVHOl4.cjs +0 -2
  485. package/dist/classDiagram-v2-WZHVMYZB-CZ8qM-r0.js +0 -20
  486. package/dist/classDiagram-v2-WZHVMYZB-GEqVHOl4.cjs +0 -2
  487. package/dist/cose-bilkent-S5V4N54A-Bk5UrOC6.cjs +0 -2
  488. package/dist/cose-bilkent-S5V4N54A-D9POuI1b.js +0 -4934
  489. package/dist/cs-D-801PIR.cjs +0 -2
  490. package/dist/cs-DQvRPciB.js +0 -219
  491. package/dist/cy-BxyJCM05.js +0 -219
  492. package/dist/cy-aUPUcn-S.cjs +0 -2
  493. package/dist/cytoscape.esm-BS1owLay.js +0 -30250
  494. package/dist/cytoscape.esm-BxB3woZB.cjs +0 -10
  495. package/dist/da-B05ad5Iq.js +0 -219
  496. package/dist/da-CTiLOqut.cjs +0 -2
  497. package/dist/dagre-6UL2VRFP-BGgMwKrx.cjs +0 -2
  498. package/dist/dagre-6UL2VRFP-D1VXYHDk.js +0 -696
  499. package/dist/de-DJ5iwpd7.js +0 -219
  500. package/dist/de-Dm204UMA.cjs +0 -2
  501. package/dist/defaultLocale-7NeEK7SF.cjs +0 -2
  502. package/dist/defaultLocale-DVr69WTU.js +0 -207
  503. package/dist/diagram-PSM6KHXK-BnJ6u90U.cjs +0 -2
  504. package/dist/diagram-PSM6KHXK-MkySzwCw.js +0 -848
  505. package/dist/diagram-QEK2KX5R-7oJbO__T.js +0 -305
  506. package/dist/diagram-QEK2KX5R-CQjADuvs.cjs +0 -2
  507. package/dist/diagram-S2PKOQOG-AFF7RL6D.cjs +0 -2
  508. package/dist/diagram-S2PKOQOG-t6d3dY_R.js +0 -212
  509. package/dist/el-CBS9mHS3.js +0 -219
  510. package/dist/el-DbtZj-ph.cjs +0 -2
  511. package/dist/erDiagram-Q2GNP2WA-BY5cfs21.js +0 -1160
  512. package/dist/erDiagram-Q2GNP2WA-CsdjPSsg.cjs +0 -2
  513. package/dist/es-Bo08apQr.js +0 -219
  514. package/dist/es-Cc-4Vqf7.cjs +0 -2
  515. package/dist/et-D5pQ66eY.cjs +0 -2
  516. package/dist/et-pRL0Tmle.js +0 -219
  517. package/dist/eu-Br68gaf7.js +0 -219
  518. package/dist/eu-RZ-27koK.cjs +0 -2
  519. package/dist/fi-BCXB-k_X.js +0 -219
  520. package/dist/fi-Dqa9mgnW.cjs +0 -2
  521. package/dist/flowDiagram-NV44I4VS-BcaW6-_t.cjs +0 -2
  522. package/dist/flowDiagram-NV44I4VS-DoSHOTLX.js +0 -2339
  523. package/dist/fr-B7fhkle4.cjs +0 -2
  524. package/dist/fr-gKE1SSIF.js +0 -219
  525. package/dist/ga-4Hf7vKvr.cjs +0 -2
  526. package/dist/ga-C1SpITZy.js +0 -219
  527. package/dist/ganttDiagram-JELNMOA3-C8aHKsjy.js +0 -3652
  528. package/dist/ganttDiagram-JELNMOA3-YuzFUWYN.cjs +0 -2
  529. package/dist/gitGraph-G5XIXVHT-DN5M1zzB.cjs +0 -2
  530. package/dist/gitGraph-G5XIXVHT-kJP_icZ5.js +0 -6
  531. package/dist/gitGraphDiagram-V2S2FVAM-Bl2LJ6uK.js +0 -1215
  532. package/dist/gitGraphDiagram-V2S2FVAM-DI5S_ure.cjs +0 -2
  533. package/dist/gl-COSpsMSK.cjs +0 -2
  534. package/dist/gl-CSzCeu2L.js +0 -219
  535. package/dist/graph-C7xixGrW.cjs +0 -2
  536. package/dist/graph-DH3cnEko.js +0 -421
  537. package/dist/he-BrkfqoIm.js +0 -219
  538. package/dist/he-C7Wi6-EL.cjs +0 -2
  539. package/dist/hi-C1RGDPzn.js +0 -219
  540. package/dist/hi-ojklJj-a.cjs +0 -2
  541. package/dist/hr-CsO_h2VT.js +0 -219
  542. package/dist/hr-DkEwOCGU.cjs +0 -2
  543. package/dist/hu-CVtbM-V2.js +0 -219
  544. package/dist/hu-D8uAAzvN.cjs +0 -2
  545. package/dist/id-18yPGK2f.cjs +0 -2
  546. package/dist/id-CARSN0W8.js +0 -219
  547. package/dist/index-BMfuEpa-.cjs +0 -428
  548. package/dist/index-BiWHWaTZ.js +0 -55588
  549. package/dist/info-VBDWY6EO-0yZ4VJNq.cjs +0 -2
  550. package/dist/info-VBDWY6EO-CcLNynBA.js +0 -6
  551. package/dist/infoDiagram-HS3SLOUP-Bp0yOoLT.js +0 -32
  552. package/dist/infoDiagram-HS3SLOUP-C0Zno052.cjs +0 -2
  553. package/dist/init-DZ96s0AS.cjs +0 -2
  554. package/dist/init-ZxktEp_H.js +0 -17
  555. package/dist/it-BVq911RW.cjs +0 -2
  556. package/dist/it-ClWGK7XT.js +0 -219
  557. package/dist/ja-BgcKuKZ4.cjs +0 -2
  558. package/dist/ja-DGL12HwE.js +0 -219
  559. package/dist/journeyDiagram-XKPGCS4Q-0OiMrl1O.cjs +0 -2
  560. package/dist/journeyDiagram-XKPGCS4Q-Ci2gigtu.js +0 -1255
  561. package/dist/kanban-definition-3W4ZIXB7-DTLYV2yk.js +0 -1049
  562. package/dist/kanban-definition-3W4ZIXB7-DbJAXyvr.cjs +0 -2
  563. package/dist/katex-DPu4QpBP.cjs +0 -2
  564. package/dist/katex-Dd1-wdX2.js +0 -14523
  565. package/dist/kk-CkKXbKso.js +0 -219
  566. package/dist/kk-Dn3FBkOR.cjs +0 -2
  567. package/dist/ko-CKAbV25b.cjs +0 -2
  568. package/dist/ko-QYvDV2aw.js +0 -219
  569. package/dist/layout-D6yO7DzL.cjs +0 -2
  570. package/dist/layout-bxkZz7Cm.js +0 -1919
  571. package/dist/linear-CmvLp6xX.js +0 -341
  572. package/dist/linear-d_werDwb.cjs +0 -2
  573. package/dist/lt-BKnFyiLV.js +0 -219
  574. package/dist/lt-BnGNEsIS.cjs +0 -2
  575. package/dist/lv-Clqo0Ogm.js +0 -219
  576. package/dist/lv-D3rJQRhc.cjs +0 -2
  577. package/dist/maplibre-gl-B3PlRf6V.js +0 -23511
  578. package/dist/maplibre-gl-Cc1i9T04.cjs +0 -6
  579. package/dist/mermaid-parser.core-CNPkkUbW.cjs +0 -2
  580. package/dist/mermaid-parser.core-CnjbJ8mb.js +0 -23791
  581. package/dist/mindmap-definition-VGOIOE7T-D4S37eSG.cjs +0 -2
  582. package/dist/mindmap-definition-VGOIOE7T-z7i6md6S.js +0 -1129
  583. package/dist/mk-EhcD0RzW.js +0 -219
  584. package/dist/mk-hVxJgrE0.cjs +0 -2
  585. package/dist/ms-CJACwjo7.js +0 -219
  586. package/dist/ms-D0txYckK.cjs +0 -2
  587. package/dist/nb-BfKRl99z.cjs +0 -2
  588. package/dist/nb-NCgnP0Pu.js +0 -219
  589. package/dist/nl-EgsNCunP.js +0 -219
  590. package/dist/nl-ZXiLkBj_.cjs +0 -2
  591. package/dist/ordinal-BZdahNih.cjs +0 -2
  592. package/dist/ordinal-DSZU4PqD.js +0 -77
  593. package/dist/packet-DYOGHKS2-8TxNXRiu.js +0 -6
  594. package/dist/packet-DYOGHKS2-T2_NOyn2.cjs +0 -2
  595. package/dist/pie-VRWISCQL-CVgwt5hn.cjs +0 -2
  596. package/dist/pie-VRWISCQL-Cw5ps4Uc.js +0 -6
  597. package/dist/pieDiagram-ADFJNKIX-9tCdDAIz.cjs +0 -2
  598. package/dist/pieDiagram-ADFJNKIX-BLMaZqln.js +0 -238
  599. package/dist/pl-H28GVtiG.js +0 -219
  600. package/dist/pl-tVjdYTB9.cjs +0 -2
  601. package/dist/pt-1k62N9F3.cjs +0 -2
  602. package/dist/pt-BSPZhWKl.js +0 -211
  603. package/dist/quadrantDiagram-AYHSOK5B-B_5PU35F.cjs +0 -2
  604. package/dist/quadrantDiagram-AYHSOK5B-Njb3KunW.js +0 -1338
  605. package/dist/radar-ZZBFDIW7-B5WKe_gp.js +0 -6
  606. package/dist/radar-ZZBFDIW7-DGwkdfQQ.cjs +0 -2
  607. package/dist/requirementDiagram-UZGBJVZJ-BOgHmi8B.cjs +0 -2
  608. package/dist/requirementDiagram-UZGBJVZJ-wkSzPa52.js +0 -1164
  609. package/dist/ro-9Qt1qDDA.cjs +0 -2
  610. package/dist/ro-BpaZLre_.js +0 -219
  611. package/dist/ru-4WxRouIU.cjs +0 -2
  612. package/dist/ru-CUZzD-Tx.js +0 -219
  613. package/dist/sankeyDiagram-TZEHDZUN-p1th2H-P.js +0 -1194
  614. package/dist/sankeyDiagram-TZEHDZUN-wNi-DuI_.cjs +0 -2
  615. package/dist/sequenceDiagram-WL72ISMW-CZsA3nl_.js +0 -3882
  616. package/dist/sequenceDiagram-WL72ISMW-DHsfFVVL.cjs +0 -2
  617. package/dist/sk-CoQ6XiCY.js +0 -219
  618. package/dist/sk-uWukDQab.cjs +0 -2
  619. package/dist/sl-B6DVbKg6.cjs +0 -2
  620. package/dist/sl-CHW-ZGol.js +0 -219
  621. package/dist/sr-BOD8Tc-D.cjs +0 -2
  622. package/dist/sr-EQGjIBJE.js +0 -219
  623. package/dist/stateDiagram-FKZM4ZOC-CZDqf83I.js +0 -449
  624. package/dist/stateDiagram-FKZM4ZOC-uCSdqeo_.cjs +0 -2
  625. package/dist/stateDiagram-v2-4FDKWEC3-Ard7BOGd.js +0 -20
  626. package/dist/stateDiagram-v2-4FDKWEC3-LQ3nCDHa.cjs +0 -2
  627. package/dist/sv-B6nLuQr7.cjs +0 -2
  628. package/dist/sv-DTxWN6ED.js +0 -219
  629. package/dist/th-BVPzHvBf.js +0 -219
  630. package/dist/th-DmULV6uT.cjs +0 -2
  631. package/dist/timeline-definition-IT6M3QCI-5Kl_f6ac.cjs +0 -2
  632. package/dist/timeline-definition-IT6M3QCI-DOIExRzF.js +0 -1227
  633. package/dist/tr-BE5geTUC.cjs +0 -2
  634. package/dist/tr-BHR1QA-D.js +0 -219
  635. package/dist/treemap-GDKQZRPO-BsGYh-La.cjs +0 -2
  636. package/dist/treemap-GDKQZRPO-DQPba0Eh.js +0 -6
  637. package/dist/uk-Bc5TwelE.js +0 -219
  638. package/dist/uk-DS5ukB_-.cjs +0 -2
  639. package/dist/vi-D9FF4kkG.cjs +0 -2
  640. package/dist/vi-DC0eQZb7.js +0 -219
  641. package/dist/xychartDiagram-PRI3JC2R-DkaIeov2.cjs +0 -2
  642. package/dist/xychartDiagram-PRI3JC2R-DyqZd9yp.js +0 -1887
  643. package/dist/zh-CGcOiJ3s.cjs +0 -2
  644. package/dist/zh-GsCLn8OE.js +0 -219
@@ -0,0 +1,3165 @@
1
+ import { g as e, h as t, p as n } from "./src-Dm6r9c7l.js";
2
+ import { D as r, L as i, a, b as o, c as s, nt as c, s as l, w as u, y as d } from "./chunk-7R4GIKGN-CaQJ0QBF.js";
3
+ import { t as f } from "./channel-2Bqnb1FY.js";
4
+ import { C as p, P as m, S as h, T as g, _, b as v, c as y, h as b, i as x, v as S, w as C, x as w, y as T } from "./chunk-GEFDOKGD-BNgT40Ex.js";
5
+ import { t as E } from "./line-CbEBKCYr.js";
6
+ import { n as D, t as O } from "./chunk-MX3YWQON-CAsnAj2e.js";
7
+ import { D as k, T as A, _ as j, a as M, f as ee, o as te, s as ne, u as re } from "./identity-C1jKsMoW.js";
8
+ import { n as ie, t as ae } from "./chunk-YBOYWFTD-B6CeuteH.js";
9
+ import { n as oe } from "./chunk-PU5JKC2W-BM5NPS-q.js";
10
+ import { t as se } from "./_getTag-BRuLtYrv.js";
11
+ import { a as ce, c as le, i as ue, n as de, r as fe, s as pe, t as me } from "./_arrayEach-BuSFKyFt.js";
12
+ import { t as he } from "./chunk-FMBD7UC4-xjRtkFXe.js";
13
+ import { t as ge } from "./graphlib-CPo7oIsu.js";
14
+ //#region node_modules/lodash-es/_baseAssign.js
15
+ function _e(e, t) {
16
+ return e && S(t, fe(t), e);
17
+ }
18
+ //#endregion
19
+ //#region node_modules/lodash-es/_baseAssignIn.js
20
+ function ve(e, t) {
21
+ return e && S(t, _(t), e);
22
+ }
23
+ //#endregion
24
+ //#region node_modules/lodash-es/_copySymbols.js
25
+ function ye(e, t) {
26
+ return S(e, ue(e), t);
27
+ }
28
+ //#endregion
29
+ //#region node_modules/lodash-es/_getSymbolsIn.js
30
+ var be = Object.getOwnPropertySymbols ? function(e) {
31
+ for (var t = []; e;) le(t, ue(e)), e = w(e);
32
+ return t;
33
+ } : ce;
34
+ //#endregion
35
+ //#region node_modules/lodash-es/_copySymbolsIn.js
36
+ function xe(e, t) {
37
+ return S(e, be(e), t);
38
+ }
39
+ //#endregion
40
+ //#region node_modules/lodash-es/_getAllKeysIn.js
41
+ function Se(e) {
42
+ return pe(e, _, be);
43
+ }
44
+ //#endregion
45
+ //#region node_modules/lodash-es/_initCloneArray.js
46
+ var Ce = Object.prototype.hasOwnProperty;
47
+ function we(e) {
48
+ var t = e.length, n = new e.constructor(t);
49
+ return t && typeof e[0] == "string" && Ce.call(e, "index") && (n.index = e.index, n.input = e.input), n;
50
+ }
51
+ //#endregion
52
+ //#region node_modules/lodash-es/_cloneDataView.js
53
+ function Te(e, t) {
54
+ var n = t ? C(e.buffer) : e.buffer;
55
+ return new e.constructor(n, e.byteOffset, e.byteLength);
56
+ }
57
+ //#endregion
58
+ //#region node_modules/lodash-es/_cloneRegExp.js
59
+ var Ee = /\w*$/;
60
+ function De(e) {
61
+ var t = new e.constructor(e.source, Ee.exec(e));
62
+ return t.lastIndex = e.lastIndex, t;
63
+ }
64
+ //#endregion
65
+ //#region node_modules/lodash-es/_cloneSymbol.js
66
+ var Oe = k ? k.prototype : void 0, ke = Oe ? Oe.valueOf : void 0;
67
+ function Ae(e) {
68
+ return ke ? Object(ke.call(e)) : {};
69
+ }
70
+ //#endregion
71
+ //#region node_modules/lodash-es/_initCloneByTag.js
72
+ var je = "[object Boolean]", Me = "[object Date]", Ne = "[object Map]", Pe = "[object Number]", Fe = "[object RegExp]", Ie = "[object Set]", Le = "[object String]", Re = "[object Symbol]", ze = "[object ArrayBuffer]", Be = "[object DataView]", Ve = "[object Float32Array]", He = "[object Float64Array]", Ue = "[object Int8Array]", We = "[object Int16Array]", Ge = "[object Int32Array]", Ke = "[object Uint8Array]", qe = "[object Uint8ClampedArray]", Je = "[object Uint16Array]", Ye = "[object Uint32Array]";
73
+ function Xe(e, t, n) {
74
+ var r = e.constructor;
75
+ switch (t) {
76
+ case ze: return C(e);
77
+ case je:
78
+ case Me: return new r(+e);
79
+ case Be: return Te(e, n);
80
+ case Ve:
81
+ case He:
82
+ case Ue:
83
+ case We:
84
+ case Ge:
85
+ case Ke:
86
+ case qe:
87
+ case Je:
88
+ case Ye: return p(e, n);
89
+ case Ne: return new r();
90
+ case Pe:
91
+ case Le: return new r(e);
92
+ case Fe: return De(e);
93
+ case Ie: return new r();
94
+ case Re: return Ae(e);
95
+ }
96
+ }
97
+ //#endregion
98
+ //#region node_modules/lodash-es/_baseIsMap.js
99
+ var Ze = "[object Map]";
100
+ function Qe(e) {
101
+ return ee(e) && se(e) == Ze;
102
+ }
103
+ //#endregion
104
+ //#region node_modules/lodash-es/isMap.js
105
+ var $e = M && M.isMap, et = $e ? te($e) : Qe, tt = "[object Set]";
106
+ function nt(e) {
107
+ return ee(e) && se(e) == tt;
108
+ }
109
+ //#endregion
110
+ //#region node_modules/lodash-es/isSet.js
111
+ var rt = M && M.isSet, it = rt ? te(rt) : nt, at = 1, ot = 2, st = 4, ct = "[object Arguments]", lt = "[object Array]", ut = "[object Boolean]", dt = "[object Date]", ft = "[object Error]", pt = "[object Function]", mt = "[object GeneratorFunction]", ht = "[object Map]", gt = "[object Number]", _t = "[object Object]", vt = "[object RegExp]", yt = "[object Set]", bt = "[object String]", xt = "[object Symbol]", St = "[object WeakMap]", Ct = "[object ArrayBuffer]", wt = "[object DataView]", Tt = "[object Float32Array]", Et = "[object Float64Array]", Dt = "[object Int8Array]", Ot = "[object Int16Array]", kt = "[object Int32Array]", At = "[object Uint8Array]", jt = "[object Uint8ClampedArray]", Mt = "[object Uint16Array]", Nt = "[object Uint32Array]", N = {};
112
+ N[ct] = N[lt] = N[Ct] = N[wt] = N[ut] = N[dt] = N[Tt] = N[Et] = N[Dt] = N[Ot] = N[kt] = N[ht] = N[gt] = N[_t] = N[vt] = N[yt] = N[bt] = N[xt] = N[At] = N[jt] = N[Mt] = N[Nt] = !0, N[ft] = N[pt] = N[St] = !1;
113
+ function P(e, t, n, r, i, a) {
114
+ var o, s = t & at, c = t & ot, l = t & st;
115
+ if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
116
+ if (!A(e)) return e;
117
+ var u = re(e);
118
+ if (u) {
119
+ if (o = we(e), !s) return h(e, o);
120
+ } else {
121
+ var d = se(e), f = d == pt || d == mt;
122
+ if (ne(e)) return g(e, s);
123
+ if (d == _t || d == ct || f && !i) {
124
+ if (o = c || f ? {} : v(e), !s) return c ? xe(e, ve(o, e)) : ye(e, _e(o, e));
125
+ } else {
126
+ if (!N[d]) return i ? e : {};
127
+ o = Xe(e, d, s);
128
+ }
129
+ }
130
+ a ||= new j();
131
+ var p = a.get(e);
132
+ if (p) return p;
133
+ a.set(e, o), it(e) ? e.forEach(function(r) {
134
+ o.add(P(r, t, n, r, e, a));
135
+ }) : et(e) && e.forEach(function(r, i) {
136
+ o.set(i, P(r, t, n, i, e, a));
137
+ });
138
+ var m = u ? void 0 : (l ? c ? Se : de : c ? _ : fe)(e);
139
+ return me(m || e, function(r, i) {
140
+ m && (i = r, r = e[i]), T(o, i, P(r, t, n, i, e, a));
141
+ }), o;
142
+ }
143
+ //#endregion
144
+ //#region node_modules/lodash-es/clone.js
145
+ var Pt = 4;
146
+ function Ft(e) {
147
+ return P(e, Pt);
148
+ }
149
+ //#endregion
150
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-WCTKOSBZ.mjs
151
+ var F = (function() {
152
+ var e = /* @__PURE__ */ t(function(e, t, n, r) {
153
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
154
+ return n;
155
+ }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], c = [1, 17], l = [1, 18], u = [8, 30], d = [
156
+ 8,
157
+ 10,
158
+ 21,
159
+ 28,
160
+ 29,
161
+ 30,
162
+ 31,
163
+ 39,
164
+ 43,
165
+ 46
166
+ ], f = [1, 23], p = [1, 24], m = [
167
+ 8,
168
+ 10,
169
+ 15,
170
+ 16,
171
+ 21,
172
+ 28,
173
+ 29,
174
+ 30,
175
+ 31,
176
+ 39,
177
+ 43,
178
+ 46
179
+ ], h = [
180
+ 8,
181
+ 10,
182
+ 15,
183
+ 16,
184
+ 21,
185
+ 27,
186
+ 28,
187
+ 29,
188
+ 30,
189
+ 31,
190
+ 39,
191
+ 43,
192
+ 46
193
+ ], g = [1, 49], _ = {
194
+ trace: /* @__PURE__ */ t(function() {}, "trace"),
195
+ yy: {},
196
+ symbols_: {
197
+ error: 2,
198
+ spaceLines: 3,
199
+ SPACELINE: 4,
200
+ NL: 5,
201
+ separator: 6,
202
+ SPACE: 7,
203
+ EOF: 8,
204
+ start: 9,
205
+ BLOCK_DIAGRAM_KEY: 10,
206
+ document: 11,
207
+ stop: 12,
208
+ statement: 13,
209
+ link: 14,
210
+ LINK: 15,
211
+ START_LINK: 16,
212
+ LINK_LABEL: 17,
213
+ STR: 18,
214
+ nodeStatement: 19,
215
+ columnsStatement: 20,
216
+ SPACE_BLOCK: 21,
217
+ blockStatement: 22,
218
+ classDefStatement: 23,
219
+ cssClassStatement: 24,
220
+ styleStatement: 25,
221
+ node: 26,
222
+ SIZE: 27,
223
+ COLUMNS: 28,
224
+ "id-block": 29,
225
+ end: 30,
226
+ NODE_ID: 31,
227
+ nodeShapeNLabel: 32,
228
+ dirList: 33,
229
+ DIR: 34,
230
+ NODE_DSTART: 35,
231
+ NODE_DEND: 36,
232
+ BLOCK_ARROW_START: 37,
233
+ BLOCK_ARROW_END: 38,
234
+ classDef: 39,
235
+ CLASSDEF_ID: 40,
236
+ CLASSDEF_STYLEOPTS: 41,
237
+ DEFAULT: 42,
238
+ class: 43,
239
+ CLASSENTITY_IDS: 44,
240
+ STYLECLASS: 45,
241
+ style: 46,
242
+ STYLE_ENTITY_IDS: 47,
243
+ STYLE_DEFINITION_DATA: 48,
244
+ $accept: 0,
245
+ $end: 1
246
+ },
247
+ terminals_: {
248
+ 2: "error",
249
+ 4: "SPACELINE",
250
+ 5: "NL",
251
+ 7: "SPACE",
252
+ 8: "EOF",
253
+ 10: "BLOCK_DIAGRAM_KEY",
254
+ 15: "LINK",
255
+ 16: "START_LINK",
256
+ 17: "LINK_LABEL",
257
+ 18: "STR",
258
+ 21: "SPACE_BLOCK",
259
+ 27: "SIZE",
260
+ 28: "COLUMNS",
261
+ 29: "id-block",
262
+ 30: "end",
263
+ 31: "NODE_ID",
264
+ 34: "DIR",
265
+ 35: "NODE_DSTART",
266
+ 36: "NODE_DEND",
267
+ 37: "BLOCK_ARROW_START",
268
+ 38: "BLOCK_ARROW_END",
269
+ 39: "classDef",
270
+ 40: "CLASSDEF_ID",
271
+ 41: "CLASSDEF_STYLEOPTS",
272
+ 42: "DEFAULT",
273
+ 43: "class",
274
+ 44: "CLASSENTITY_IDS",
275
+ 45: "STYLECLASS",
276
+ 46: "style",
277
+ 47: "STYLE_ENTITY_IDS",
278
+ 48: "STYLE_DEFINITION_DATA"
279
+ },
280
+ productions_: [
281
+ 0,
282
+ [3, 1],
283
+ [3, 2],
284
+ [3, 2],
285
+ [6, 1],
286
+ [6, 1],
287
+ [6, 1],
288
+ [9, 3],
289
+ [12, 1],
290
+ [12, 1],
291
+ [12, 2],
292
+ [12, 2],
293
+ [11, 1],
294
+ [11, 2],
295
+ [14, 1],
296
+ [14, 4],
297
+ [13, 1],
298
+ [13, 1],
299
+ [13, 1],
300
+ [13, 1],
301
+ [13, 1],
302
+ [13, 1],
303
+ [13, 1],
304
+ [19, 3],
305
+ [19, 2],
306
+ [19, 1],
307
+ [20, 1],
308
+ [22, 4],
309
+ [22, 3],
310
+ [26, 1],
311
+ [26, 2],
312
+ [33, 1],
313
+ [33, 2],
314
+ [32, 3],
315
+ [32, 4],
316
+ [23, 3],
317
+ [23, 3],
318
+ [24, 3],
319
+ [25, 3]
320
+ ],
321
+ performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
322
+ var s = a.length - 1;
323
+ switch (i) {
324
+ case 4:
325
+ r.getLogger().debug("Rule: separator (NL) ");
326
+ break;
327
+ case 5:
328
+ r.getLogger().debug("Rule: separator (Space) ");
329
+ break;
330
+ case 6:
331
+ r.getLogger().debug("Rule: separator (EOF) ");
332
+ break;
333
+ case 7:
334
+ r.getLogger().debug("Rule: hierarchy: ", a[s - 1]), r.setHierarchy(a[s - 1]);
335
+ break;
336
+ case 8:
337
+ r.getLogger().debug("Stop NL ");
338
+ break;
339
+ case 9:
340
+ r.getLogger().debug("Stop EOF ");
341
+ break;
342
+ case 10:
343
+ r.getLogger().debug("Stop NL2 ");
344
+ break;
345
+ case 11:
346
+ r.getLogger().debug("Stop EOF2 ");
347
+ break;
348
+ case 12:
349
+ r.getLogger().debug("Rule: statement: ", a[s]), typeof a[s].length == "number" ? this.$ = a[s] : this.$ = [a[s]];
350
+ break;
351
+ case 13:
352
+ r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
353
+ break;
354
+ case 14:
355
+ r.getLogger().debug("Rule: link: ", a[s], e), this.$ = {
356
+ edgeTypeStr: a[s],
357
+ label: ""
358
+ };
359
+ break;
360
+ case 15:
361
+ r.getLogger().debug("Rule: LABEL link: ", a[s - 3], a[s - 1], a[s]), this.$ = {
362
+ edgeTypeStr: a[s],
363
+ label: a[s - 1]
364
+ };
365
+ break;
366
+ case 18:
367
+ let t = parseInt(a[s]);
368
+ this.$ = {
369
+ id: r.generateId(),
370
+ type: "space",
371
+ label: "",
372
+ width: t,
373
+ children: []
374
+ };
375
+ break;
376
+ case 23:
377
+ r.getLogger().debug("Rule: (nodeStatement link node) ", a[s - 2], a[s - 1], a[s], " typestr: ", a[s - 1].edgeTypeStr);
378
+ let n = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr);
379
+ this.$ = [
380
+ {
381
+ id: a[s - 2].id,
382
+ label: a[s - 2].label,
383
+ type: a[s - 2].type,
384
+ directions: a[s - 2].directions
385
+ },
386
+ {
387
+ id: a[s - 2].id + "-" + a[s].id,
388
+ start: a[s - 2].id,
389
+ end: a[s].id,
390
+ label: a[s - 1].label,
391
+ type: "edge",
392
+ directions: a[s].directions,
393
+ arrowTypeEnd: n,
394
+ arrowTypeStart: "arrow_open"
395
+ },
396
+ {
397
+ id: a[s].id,
398
+ label: a[s].label,
399
+ type: r.typeStr2Type(a[s].typeStr),
400
+ directions: a[s].directions
401
+ }
402
+ ];
403
+ break;
404
+ case 24:
405
+ r.getLogger().debug("Rule: nodeStatement (abc88 node size) ", a[s - 1], a[s]), this.$ = {
406
+ id: a[s - 1].id,
407
+ label: a[s - 1].label,
408
+ type: r.typeStr2Type(a[s - 1].typeStr),
409
+ directions: a[s - 1].directions,
410
+ widthInColumns: parseInt(a[s], 10)
411
+ };
412
+ break;
413
+ case 25:
414
+ r.getLogger().debug("Rule: nodeStatement (node) ", a[s]), this.$ = {
415
+ id: a[s].id,
416
+ label: a[s].label,
417
+ type: r.typeStr2Type(a[s].typeStr),
418
+ directions: a[s].directions,
419
+ widthInColumns: 1
420
+ };
421
+ break;
422
+ case 26:
423
+ r.getLogger().debug("APA123", this ? this : "na"), r.getLogger().debug("COLUMNS: ", a[s]), this.$ = {
424
+ type: "column-setting",
425
+ columns: a[s] === "auto" ? -1 : parseInt(a[s])
426
+ };
427
+ break;
428
+ case 27:
429
+ r.getLogger().debug("Rule: id-block statement : ", a[s - 2], a[s - 1]), r.generateId(), this.$ = {
430
+ ...a[s - 2],
431
+ type: "composite",
432
+ children: a[s - 1]
433
+ };
434
+ break;
435
+ case 28:
436
+ r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]), this.$ = {
437
+ id: r.generateId(),
438
+ type: "composite",
439
+ label: "",
440
+ children: a[s - 1]
441
+ };
442
+ break;
443
+ case 29:
444
+ r.getLogger().debug("Rule: node (NODE_ID separator): ", a[s]), this.$ = { id: a[s] };
445
+ break;
446
+ case 30:
447
+ r.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", a[s - 1], a[s]), this.$ = {
448
+ id: a[s - 1],
449
+ label: a[s].label,
450
+ typeStr: a[s].typeStr,
451
+ directions: a[s].directions
452
+ };
453
+ break;
454
+ case 31:
455
+ r.getLogger().debug("Rule: dirList: ", a[s]), this.$ = [a[s]];
456
+ break;
457
+ case 32:
458
+ r.getLogger().debug("Rule: dirList: ", a[s - 1], a[s]), this.$ = [a[s - 1]].concat(a[s]);
459
+ break;
460
+ case 33:
461
+ r.getLogger().debug("Rule: nodeShapeNLabel: ", a[s - 2], a[s - 1], a[s]), this.$ = {
462
+ typeStr: a[s - 2] + a[s],
463
+ label: a[s - 1]
464
+ };
465
+ break;
466
+ case 34:
467
+ r.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", a[s - 3], a[s - 2], " #3:", a[s - 1], a[s]), this.$ = {
468
+ typeStr: a[s - 3] + a[s],
469
+ label: a[s - 2],
470
+ directions: a[s - 1]
471
+ };
472
+ break;
473
+ case 35:
474
+ case 36:
475
+ this.$ = {
476
+ type: "classDef",
477
+ id: a[s - 1].trim(),
478
+ css: a[s].trim()
479
+ };
480
+ break;
481
+ case 37:
482
+ this.$ = {
483
+ type: "applyClass",
484
+ id: a[s - 1].trim(),
485
+ styleClass: a[s].trim()
486
+ };
487
+ break;
488
+ case 38:
489
+ this.$ = {
490
+ type: "applyStyles",
491
+ id: a[s - 1].trim(),
492
+ stylesStr: a[s].trim()
493
+ };
494
+ break;
495
+ }
496
+ }, "anonymous"),
497
+ table: [
498
+ {
499
+ 9: 1,
500
+ 10: [1, 2]
501
+ },
502
+ { 1: [3] },
503
+ {
504
+ 10: n,
505
+ 11: 3,
506
+ 13: 4,
507
+ 19: 5,
508
+ 20: 6,
509
+ 21: r,
510
+ 22: 8,
511
+ 23: 9,
512
+ 24: 10,
513
+ 25: 11,
514
+ 26: 12,
515
+ 28: i,
516
+ 29: a,
517
+ 31: o,
518
+ 39: s,
519
+ 43: c,
520
+ 46: l
521
+ },
522
+ { 8: [1, 20] },
523
+ e(u, [2, 12], {
524
+ 13: 4,
525
+ 19: 5,
526
+ 20: 6,
527
+ 22: 8,
528
+ 23: 9,
529
+ 24: 10,
530
+ 25: 11,
531
+ 26: 12,
532
+ 11: 21,
533
+ 10: n,
534
+ 21: r,
535
+ 28: i,
536
+ 29: a,
537
+ 31: o,
538
+ 39: s,
539
+ 43: c,
540
+ 46: l
541
+ }),
542
+ e(d, [2, 16], {
543
+ 14: 22,
544
+ 15: f,
545
+ 16: p
546
+ }),
547
+ e(d, [2, 17]),
548
+ e(d, [2, 18]),
549
+ e(d, [2, 19]),
550
+ e(d, [2, 20]),
551
+ e(d, [2, 21]),
552
+ e(d, [2, 22]),
553
+ e(m, [2, 25], { 27: [1, 25] }),
554
+ e(d, [2, 26]),
555
+ {
556
+ 19: 26,
557
+ 26: 12,
558
+ 31: o
559
+ },
560
+ {
561
+ 10: n,
562
+ 11: 27,
563
+ 13: 4,
564
+ 19: 5,
565
+ 20: 6,
566
+ 21: r,
567
+ 22: 8,
568
+ 23: 9,
569
+ 24: 10,
570
+ 25: 11,
571
+ 26: 12,
572
+ 28: i,
573
+ 29: a,
574
+ 31: o,
575
+ 39: s,
576
+ 43: c,
577
+ 46: l
578
+ },
579
+ {
580
+ 40: [1, 28],
581
+ 42: [1, 29]
582
+ },
583
+ { 44: [1, 30] },
584
+ { 47: [1, 31] },
585
+ e(h, [2, 29], {
586
+ 32: 32,
587
+ 35: [1, 33],
588
+ 37: [1, 34]
589
+ }),
590
+ { 1: [2, 7] },
591
+ e(u, [2, 13]),
592
+ {
593
+ 26: 35,
594
+ 31: o
595
+ },
596
+ { 31: [2, 14] },
597
+ { 17: [1, 36] },
598
+ e(m, [2, 24]),
599
+ {
600
+ 10: n,
601
+ 11: 37,
602
+ 13: 4,
603
+ 14: 22,
604
+ 15: f,
605
+ 16: p,
606
+ 19: 5,
607
+ 20: 6,
608
+ 21: r,
609
+ 22: 8,
610
+ 23: 9,
611
+ 24: 10,
612
+ 25: 11,
613
+ 26: 12,
614
+ 28: i,
615
+ 29: a,
616
+ 31: o,
617
+ 39: s,
618
+ 43: c,
619
+ 46: l
620
+ },
621
+ { 30: [1, 38] },
622
+ { 41: [1, 39] },
623
+ { 41: [1, 40] },
624
+ { 45: [1, 41] },
625
+ { 48: [1, 42] },
626
+ e(h, [2, 30]),
627
+ { 18: [1, 43] },
628
+ { 18: [1, 44] },
629
+ e(m, [2, 23]),
630
+ { 18: [1, 45] },
631
+ { 30: [1, 46] },
632
+ e(d, [2, 28]),
633
+ e(d, [2, 35]),
634
+ e(d, [2, 36]),
635
+ e(d, [2, 37]),
636
+ e(d, [2, 38]),
637
+ { 36: [1, 47] },
638
+ {
639
+ 33: 48,
640
+ 34: g
641
+ },
642
+ { 15: [1, 50] },
643
+ e(d, [2, 27]),
644
+ e(h, [2, 33]),
645
+ { 38: [1, 51] },
646
+ {
647
+ 33: 52,
648
+ 34: g,
649
+ 38: [2, 31]
650
+ },
651
+ { 31: [2, 15] },
652
+ e(h, [2, 34]),
653
+ { 38: [2, 32] }
654
+ ],
655
+ defaultActions: {
656
+ 20: [2, 7],
657
+ 23: [2, 14],
658
+ 50: [2, 15],
659
+ 52: [2, 32]
660
+ },
661
+ parseError: /* @__PURE__ */ t(function(e, t) {
662
+ if (t.recoverable) this.trace(e);
663
+ else {
664
+ var n = Error(e);
665
+ throw n.hash = t, n;
666
+ }
667
+ }, "parseError"),
668
+ parse: /* @__PURE__ */ t(function(e) {
669
+ var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
670
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
671
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
672
+ var v = h.yylloc;
673
+ o.push(v);
674
+ var y = h.options && h.options.ranges;
675
+ typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
676
+ function b(e) {
677
+ r.length -= 2 * e, a.length -= e, o.length -= e;
678
+ }
679
+ t(b, "popStack");
680
+ function x() {
681
+ var e = i.pop() || h.lex() || p;
682
+ return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
683
+ }
684
+ t(x, "lex");
685
+ for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
686
+ if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
687
+ var M = "";
688
+ for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
689
+ M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
690
+ text: h.match,
691
+ token: this.terminals_[S] || S,
692
+ line: h.yylineno,
693
+ loc: v,
694
+ expected: j
695
+ });
696
+ }
697
+ if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
698
+ switch (T[0]) {
699
+ case 1:
700
+ r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
701
+ break;
702
+ case 2:
703
+ if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
704
+ first_line: o[o.length - (k || 1)].first_line,
705
+ last_line: o[o.length - 1].last_line,
706
+ first_column: o[o.length - (k || 1)].first_column,
707
+ last_column: o[o.length - 1].last_column
708
+ }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
709
+ c,
710
+ u,
711
+ l,
712
+ g.yy,
713
+ T[1],
714
+ a,
715
+ o
716
+ ].concat(m)), E !== void 0) return E;
717
+ k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
718
+ break;
719
+ case 3: return !0;
720
+ }
721
+ }
722
+ return !0;
723
+ }, "parse")
724
+ };
725
+ _.lexer = /* @__PURE__ */ (function() {
726
+ return {
727
+ EOF: 1,
728
+ parseError: /* @__PURE__ */ t(function(e, t) {
729
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
730
+ else throw Error(e);
731
+ }, "parseError"),
732
+ setInput: /* @__PURE__ */ t(function(e, t) {
733
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
734
+ first_line: 1,
735
+ first_column: 0,
736
+ last_line: 1,
737
+ last_column: 0
738
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
739
+ }, "setInput"),
740
+ input: /* @__PURE__ */ t(function() {
741
+ var e = this._input[0];
742
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
743
+ }, "input"),
744
+ unput: /* @__PURE__ */ t(function(e) {
745
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
746
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
747
+ var r = this.match.split(/(?:\r\n?|\n)/g);
748
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
749
+ var i = this.yylloc.range;
750
+ return this.yylloc = {
751
+ first_line: this.yylloc.first_line,
752
+ last_line: this.yylineno + 1,
753
+ first_column: this.yylloc.first_column,
754
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
755
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
756
+ }, "unput"),
757
+ more: /* @__PURE__ */ t(function() {
758
+ return this._more = !0, this;
759
+ }, "more"),
760
+ reject: /* @__PURE__ */ t(function() {
761
+ if (this.options.backtrack_lexer) this._backtrack = !0;
762
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
763
+ text: "",
764
+ token: null,
765
+ line: this.yylineno
766
+ });
767
+ return this;
768
+ }, "reject"),
769
+ less: /* @__PURE__ */ t(function(e) {
770
+ this.unput(this.match.slice(e));
771
+ }, "less"),
772
+ pastInput: /* @__PURE__ */ t(function() {
773
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
774
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
775
+ }, "pastInput"),
776
+ upcomingInput: /* @__PURE__ */ t(function() {
777
+ var e = this.match;
778
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
779
+ }, "upcomingInput"),
780
+ showPosition: /* @__PURE__ */ t(function() {
781
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
782
+ return e + this.upcomingInput() + "\n" + t + "^";
783
+ }, "showPosition"),
784
+ test_match: /* @__PURE__ */ t(function(e, t) {
785
+ var n, r, i;
786
+ if (this.options.backtrack_lexer && (i = {
787
+ yylineno: this.yylineno,
788
+ yylloc: {
789
+ first_line: this.yylloc.first_line,
790
+ last_line: this.last_line,
791
+ first_column: this.yylloc.first_column,
792
+ last_column: this.yylloc.last_column
793
+ },
794
+ yytext: this.yytext,
795
+ match: this.match,
796
+ matches: this.matches,
797
+ matched: this.matched,
798
+ yyleng: this.yyleng,
799
+ offset: this.offset,
800
+ _more: this._more,
801
+ _input: this._input,
802
+ yy: this.yy,
803
+ conditionStack: this.conditionStack.slice(0),
804
+ done: this.done
805
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
806
+ first_line: this.yylloc.last_line,
807
+ last_line: this.yylineno + 1,
808
+ first_column: this.yylloc.last_column,
809
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
810
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
811
+ if (this._backtrack) {
812
+ for (var a in i) this[a] = i[a];
813
+ return !1;
814
+ }
815
+ return !1;
816
+ }, "test_match"),
817
+ next: /* @__PURE__ */ t(function() {
818
+ if (this.done) return this.EOF;
819
+ this._input || (this.done = !0);
820
+ var e, t, n, r;
821
+ this._more || (this.yytext = "", this.match = "");
822
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
823
+ if (t = n, r = a, this.options.backtrack_lexer) {
824
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
825
+ if (this._backtrack) {
826
+ t = !1;
827
+ continue;
828
+ } else return !1;
829
+ } else if (!this.options.flex) break;
830
+ }
831
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
832
+ text: "",
833
+ token: null,
834
+ line: this.yylineno
835
+ });
836
+ }, "next"),
837
+ lex: /* @__PURE__ */ t(function() {
838
+ return this.next() || this.lex();
839
+ }, "lex"),
840
+ begin: /* @__PURE__ */ t(function(e) {
841
+ this.conditionStack.push(e);
842
+ }, "begin"),
843
+ popState: /* @__PURE__ */ t(function() {
844
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
845
+ }, "popState"),
846
+ _currentRules: /* @__PURE__ */ t(function() {
847
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
848
+ }, "_currentRules"),
849
+ topState: /* @__PURE__ */ t(function(e) {
850
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
851
+ }, "topState"),
852
+ pushState: /* @__PURE__ */ t(function(e) {
853
+ this.begin(e);
854
+ }, "pushState"),
855
+ stateStackSize: /* @__PURE__ */ t(function() {
856
+ return this.conditionStack.length;
857
+ }, "stateStackSize"),
858
+ options: {},
859
+ performAction: /* @__PURE__ */ t(function(e, t, n, r) {
860
+ switch (n) {
861
+ case 0: return e.getLogger().debug("Found block-beta"), 10;
862
+ case 1: return e.getLogger().debug("Found id-block"), 29;
863
+ case 2: return e.getLogger().debug("Found block"), 10;
864
+ case 3:
865
+ e.getLogger().debug(".", t.yytext);
866
+ break;
867
+ case 4:
868
+ e.getLogger().debug("_", t.yytext);
869
+ break;
870
+ case 5: return 5;
871
+ case 6: return t.yytext = -1, 28;
872
+ case 7: return t.yytext = t.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", t.yytext), 28;
873
+ case 8:
874
+ this.pushState("md_string");
875
+ break;
876
+ case 9: return "MD_STR";
877
+ case 10:
878
+ this.popState();
879
+ break;
880
+ case 11:
881
+ this.pushState("string");
882
+ break;
883
+ case 12:
884
+ e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
885
+ break;
886
+ case 13: return e.getLogger().debug("LEX: STR end:", t.yytext), "STR";
887
+ case 14: return t.yytext = t.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", t.yytext), 21;
888
+ case 15: return t.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", t.yytext), 21;
889
+ case 16: return 42;
890
+ case 17: return "LINKSTYLE";
891
+ case 18: return "INTERPOLATE";
892
+ case 19: return this.pushState("CLASSDEF"), 39;
893
+ case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
894
+ case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
895
+ case 22: return this.popState(), 41;
896
+ case 23: return this.pushState("CLASS"), 43;
897
+ case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
898
+ case 25: return this.popState(), 45;
899
+ case 26: return this.pushState("STYLE_STMNT"), 46;
900
+ case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
901
+ case 28: return this.popState(), 48;
902
+ case 29: return this.pushState("acc_title"), "acc_title";
903
+ case 30: return this.popState(), "acc_title_value";
904
+ case 31: return this.pushState("acc_descr"), "acc_descr";
905
+ case 32: return this.popState(), "acc_descr_value";
906
+ case 33:
907
+ this.pushState("acc_descr_multiline");
908
+ break;
909
+ case 34:
910
+ this.popState();
911
+ break;
912
+ case 35: return "acc_descr_multiline_value";
913
+ case 36: return 30;
914
+ case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
915
+ case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
916
+ case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
917
+ case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
918
+ case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
919
+ case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
920
+ case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
921
+ case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
922
+ case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
923
+ case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
924
+ case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
925
+ case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
926
+ case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
927
+ case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
928
+ case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
929
+ case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
930
+ case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
931
+ case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
932
+ case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
933
+ case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
934
+ case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
935
+ case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
936
+ case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
937
+ case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
938
+ case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
939
+ case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
940
+ case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
941
+ case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
942
+ case 65: return this.pushState("NODE"), 35;
943
+ case 66: return this.pushState("NODE"), 35;
944
+ case 67: return this.pushState("NODE"), 35;
945
+ case 68: return this.pushState("NODE"), 35;
946
+ case 69: return this.pushState("NODE"), 35;
947
+ case 70: return this.pushState("NODE"), 35;
948
+ case 71: return this.pushState("NODE"), 35;
949
+ case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
950
+ case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
951
+ case 74: return e.getLogger().debug("Lex: NODE_ID", t.yytext), 31;
952
+ case 75: return e.getLogger().debug("Lex: EOF", t.yytext), 8;
953
+ case 76:
954
+ this.pushState("md_string");
955
+ break;
956
+ case 77:
957
+ this.pushState("md_string");
958
+ break;
959
+ case 78: return "NODE_DESCR";
960
+ case 79:
961
+ this.popState();
962
+ break;
963
+ case 80:
964
+ e.getLogger().debug("Lex: Starting string"), this.pushState("string");
965
+ break;
966
+ case 81:
967
+ e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
968
+ break;
969
+ case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
970
+ case 83:
971
+ e.getLogger().debug("LEX POPPING"), this.popState();
972
+ break;
973
+ case 84:
974
+ e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
975
+ break;
976
+ case 85: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", t.yytext), "DIR";
977
+ case 86: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", t.yytext), "DIR";
978
+ case 87: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", t.yytext), "DIR";
979
+ case 88: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", t.yytext), "DIR";
980
+ case 89: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", t.yytext), "DIR";
981
+ case 90: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", t.yytext), "DIR";
982
+ case 91: return t.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", t.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
983
+ case 92: return e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
984
+ case 93: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
985
+ case 94: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
986
+ case 95: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
987
+ case 96: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
988
+ case 97: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
989
+ case 98: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
990
+ case 99:
991
+ this.pushState("md_string");
992
+ break;
993
+ case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
994
+ case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
995
+ case 102: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
996
+ case 103: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
997
+ case 104: return e.getLogger().debug("Lex: COLON", t.yytext), t.yytext = t.yytext.slice(1), 27;
998
+ }
999
+ }, "anonymous"),
1000
+ rules: [
1001
+ /^(?:block-beta\b)/,
1002
+ /^(?:block:)/,
1003
+ /^(?:block\b)/,
1004
+ /^(?:[\s]+)/,
1005
+ /^(?:[\n]+)/,
1006
+ /^(?:((\u000D\u000A)|(\u000A)))/,
1007
+ /^(?:columns\s+auto\b)/,
1008
+ /^(?:columns\s+[\d]+)/,
1009
+ /^(?:["][`])/,
1010
+ /^(?:[^`"]+)/,
1011
+ /^(?:[`]["])/,
1012
+ /^(?:["])/,
1013
+ /^(?:["])/,
1014
+ /^(?:[^"]*)/,
1015
+ /^(?:space[:]\d+)/,
1016
+ /^(?:space\b)/,
1017
+ /^(?:default\b)/,
1018
+ /^(?:linkStyle\b)/,
1019
+ /^(?:interpolate\b)/,
1020
+ /^(?:classDef\s+)/,
1021
+ /^(?:DEFAULT\s+)/,
1022
+ /^(?:\w+\s+)/,
1023
+ /^(?:[^\n]*)/,
1024
+ /^(?:class\s+)/,
1025
+ /^(?:(\w+)+((,\s*\w+)*))/,
1026
+ /^(?:[^\n]*)/,
1027
+ /^(?:style\s+)/,
1028
+ /^(?:(\w+)+((,\s*\w+)*))/,
1029
+ /^(?:[^\n]*)/,
1030
+ /^(?:accTitle\s*:\s*)/,
1031
+ /^(?:(?!\n||)*[^\n]*)/,
1032
+ /^(?:accDescr\s*:\s*)/,
1033
+ /^(?:(?!\n||)*[^\n]*)/,
1034
+ /^(?:accDescr\s*\{\s*)/,
1035
+ /^(?:[\}])/,
1036
+ /^(?:[^\}]*)/,
1037
+ /^(?:end\b\s*)/,
1038
+ /^(?:\(\(\()/,
1039
+ /^(?:\)\)\))/,
1040
+ /^(?:[\)]\))/,
1041
+ /^(?:\}\})/,
1042
+ /^(?:\})/,
1043
+ /^(?:\(-)/,
1044
+ /^(?:-\))/,
1045
+ /^(?:\(\()/,
1046
+ /^(?:\]\])/,
1047
+ /^(?:\()/,
1048
+ /^(?:\]\))/,
1049
+ /^(?:\\\])/,
1050
+ /^(?:\/\])/,
1051
+ /^(?:\)\])/,
1052
+ /^(?:[\)])/,
1053
+ /^(?:\]>)/,
1054
+ /^(?:[\]])/,
1055
+ /^(?:-\))/,
1056
+ /^(?:\(-)/,
1057
+ /^(?:\)\))/,
1058
+ /^(?:\))/,
1059
+ /^(?:\(\(\()/,
1060
+ /^(?:\(\()/,
1061
+ /^(?:\{\{)/,
1062
+ /^(?:\{)/,
1063
+ /^(?:>)/,
1064
+ /^(?:\(\[)/,
1065
+ /^(?:\()/,
1066
+ /^(?:\[\[)/,
1067
+ /^(?:\[\|)/,
1068
+ /^(?:\[\()/,
1069
+ /^(?:\)\)\))/,
1070
+ /^(?:\[\\)/,
1071
+ /^(?:\[\/)/,
1072
+ /^(?:\[\\)/,
1073
+ /^(?:\[)/,
1074
+ /^(?:<\[)/,
1075
+ /^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,
1076
+ /^(?:$)/,
1077
+ /^(?:["][`])/,
1078
+ /^(?:["][`])/,
1079
+ /^(?:[^`"]+)/,
1080
+ /^(?:[`]["])/,
1081
+ /^(?:["])/,
1082
+ /^(?:["])/,
1083
+ /^(?:[^"]+)/,
1084
+ /^(?:["])/,
1085
+ /^(?:\]>\s*\()/,
1086
+ /^(?:,?\s*right\s*)/,
1087
+ /^(?:,?\s*left\s*)/,
1088
+ /^(?:,?\s*x\s*)/,
1089
+ /^(?:,?\s*y\s*)/,
1090
+ /^(?:,?\s*up\s*)/,
1091
+ /^(?:,?\s*down\s*)/,
1092
+ /^(?:\)\s*)/,
1093
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1094
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1095
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1096
+ /^(?:\s*~~[\~]+\s*)/,
1097
+ /^(?:\s*[xo<]?--\s*)/,
1098
+ /^(?:\s*[xo<]?==\s*)/,
1099
+ /^(?:\s*[xo<]?-\.\s*)/,
1100
+ /^(?:["][`])/,
1101
+ /^(?:["])/,
1102
+ /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1103
+ /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1104
+ /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1105
+ /^(?::\d+)/
1106
+ ],
1107
+ conditions: {
1108
+ STYLE_DEFINITION: {
1109
+ rules: [28],
1110
+ inclusive: !1
1111
+ },
1112
+ STYLE_STMNT: {
1113
+ rules: [27],
1114
+ inclusive: !1
1115
+ },
1116
+ CLASSDEFID: {
1117
+ rules: [22],
1118
+ inclusive: !1
1119
+ },
1120
+ CLASSDEF: {
1121
+ rules: [20, 21],
1122
+ inclusive: !1
1123
+ },
1124
+ CLASS_STYLE: {
1125
+ rules: [25],
1126
+ inclusive: !1
1127
+ },
1128
+ CLASS: {
1129
+ rules: [24],
1130
+ inclusive: !1
1131
+ },
1132
+ LLABEL: {
1133
+ rules: [
1134
+ 99,
1135
+ 100,
1136
+ 101,
1137
+ 102,
1138
+ 103
1139
+ ],
1140
+ inclusive: !1
1141
+ },
1142
+ ARROW_DIR: {
1143
+ rules: [
1144
+ 85,
1145
+ 86,
1146
+ 87,
1147
+ 88,
1148
+ 89,
1149
+ 90,
1150
+ 91
1151
+ ],
1152
+ inclusive: !1
1153
+ },
1154
+ BLOCK_ARROW: {
1155
+ rules: [
1156
+ 76,
1157
+ 81,
1158
+ 84
1159
+ ],
1160
+ inclusive: !1
1161
+ },
1162
+ NODE: {
1163
+ rules: [
1164
+ 37,
1165
+ 38,
1166
+ 39,
1167
+ 40,
1168
+ 41,
1169
+ 42,
1170
+ 43,
1171
+ 44,
1172
+ 45,
1173
+ 46,
1174
+ 47,
1175
+ 48,
1176
+ 49,
1177
+ 50,
1178
+ 51,
1179
+ 52,
1180
+ 53,
1181
+ 77,
1182
+ 80
1183
+ ],
1184
+ inclusive: !1
1185
+ },
1186
+ md_string: {
1187
+ rules: [
1188
+ 9,
1189
+ 10,
1190
+ 78,
1191
+ 79
1192
+ ],
1193
+ inclusive: !1
1194
+ },
1195
+ space: {
1196
+ rules: [],
1197
+ inclusive: !1
1198
+ },
1199
+ string: {
1200
+ rules: [
1201
+ 12,
1202
+ 13,
1203
+ 82,
1204
+ 83
1205
+ ],
1206
+ inclusive: !1
1207
+ },
1208
+ acc_descr_multiline: {
1209
+ rules: [34, 35],
1210
+ inclusive: !1
1211
+ },
1212
+ acc_descr: {
1213
+ rules: [32],
1214
+ inclusive: !1
1215
+ },
1216
+ acc_title: {
1217
+ rules: [30],
1218
+ inclusive: !1
1219
+ },
1220
+ INITIAL: {
1221
+ rules: [
1222
+ 0,
1223
+ 1,
1224
+ 2,
1225
+ 3,
1226
+ 4,
1227
+ 5,
1228
+ 6,
1229
+ 7,
1230
+ 8,
1231
+ 11,
1232
+ 14,
1233
+ 15,
1234
+ 16,
1235
+ 17,
1236
+ 18,
1237
+ 19,
1238
+ 23,
1239
+ 26,
1240
+ 29,
1241
+ 31,
1242
+ 33,
1243
+ 36,
1244
+ 54,
1245
+ 55,
1246
+ 56,
1247
+ 57,
1248
+ 58,
1249
+ 59,
1250
+ 60,
1251
+ 61,
1252
+ 62,
1253
+ 63,
1254
+ 64,
1255
+ 65,
1256
+ 66,
1257
+ 67,
1258
+ 68,
1259
+ 69,
1260
+ 70,
1261
+ 71,
1262
+ 72,
1263
+ 73,
1264
+ 74,
1265
+ 75,
1266
+ 92,
1267
+ 93,
1268
+ 94,
1269
+ 95,
1270
+ 96,
1271
+ 97,
1272
+ 98,
1273
+ 104
1274
+ ],
1275
+ inclusive: !0
1276
+ }
1277
+ }
1278
+ };
1279
+ })();
1280
+ function v() {
1281
+ this.yy = {};
1282
+ }
1283
+ return t(v, "Parser"), v.prototype = _, _.Parser = v, new v();
1284
+ })();
1285
+ F.parser = F;
1286
+ var It = F, I = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map(), Lt = "color", Rt = "fill", zt = "bgFill", Bt = ",", Vt = o(), z = /* @__PURE__ */ new Map(), Ht = /* @__PURE__ */ t((e) => l.sanitizeText(e, Vt), "sanitizeText"), Ut = /* @__PURE__ */ t(function(e, t = "") {
1287
+ let n = z.get(e);
1288
+ n || (n = {
1289
+ id: e,
1290
+ styles: [],
1291
+ textStyles: []
1292
+ }, z.set(e, n)), t?.split(Bt).forEach((e) => {
1293
+ let t = e.replace(/([^;]*);/, "$1").trim();
1294
+ if (RegExp(Lt).exec(e)) {
1295
+ let e = t.replace(Rt, zt).replace(Lt, Rt);
1296
+ n.textStyles.push(e);
1297
+ }
1298
+ n.styles.push(t);
1299
+ });
1300
+ }, "addStyleClass"), Wt = /* @__PURE__ */ t(function(e, t = "") {
1301
+ let n = I.get(e);
1302
+ t != null && (n.styles = t.split(Bt));
1303
+ }, "addStyle2Node"), Gt = /* @__PURE__ */ t(function(e, t) {
1304
+ e.split(",").forEach(function(e) {
1305
+ let n = I.get(e);
1306
+ if (n === void 0) {
1307
+ let t = e.trim();
1308
+ n = {
1309
+ id: t,
1310
+ type: "na",
1311
+ children: []
1312
+ }, I.set(t, n);
1313
+ }
1314
+ n.classes ||= [], n.classes.push(t);
1315
+ });
1316
+ }, "setCssClass"), Kt = /* @__PURE__ */ t((t, n) => {
1317
+ let r = t.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
1318
+ for (let t of r) {
1319
+ if (typeof a == "number" && a > 0 && t.type !== "column-setting" && typeof t.widthInColumns == "number" && t.widthInColumns > a && e.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${a}`), t.label &&= Ht(t.label), t.type === "classDef") {
1320
+ Ut(t.id, t.css);
1321
+ continue;
1322
+ }
1323
+ if (t.type === "applyClass") {
1324
+ Gt(t.id, t?.styleClass ?? "");
1325
+ continue;
1326
+ }
1327
+ if (t.type === "applyStyles") {
1328
+ t?.stylesStr && Wt(t.id, t?.stylesStr);
1329
+ continue;
1330
+ }
1331
+ if (t.type === "column-setting") n.columns = t.columns ?? -1;
1332
+ else if (t.type === "edge") {
1333
+ let e = (R.get(t.id) ?? 0) + 1;
1334
+ R.set(t.id, e), t.id = e + "-" + t.id, L.push(t);
1335
+ } else {
1336
+ t.label || (t.type === "composite" ? t.label = "" : t.label = t.id);
1337
+ let e = I.get(t.id);
1338
+ if (e === void 0 ? I.set(t.id, t) : (t.type !== "na" && (e.type = t.type), t.label !== t.id && (e.label = t.label)), t.children && Kt(t.children, t), t.type === "space") {
1339
+ let e = t.width ?? 1;
1340
+ for (let n = 0; n < e; n++) {
1341
+ let e = Ft(t);
1342
+ e.id = e.id + "-" + n, I.set(e.id, e), i.push(e);
1343
+ }
1344
+ } else e === void 0 && i.push(t);
1345
+ }
1346
+ }
1347
+ n.children = i;
1348
+ }, "populateBlockDatabase"), qt = [], B = {
1349
+ id: "root",
1350
+ type: "composite",
1351
+ children: [],
1352
+ columns: -1
1353
+ }, Jt = /* @__PURE__ */ t(() => {
1354
+ e.debug("Clear called"), a(), B = {
1355
+ id: "root",
1356
+ type: "composite",
1357
+ children: [],
1358
+ columns: -1
1359
+ }, I = /* @__PURE__ */ new Map([["root", B]]), qt = [], z = /* @__PURE__ */ new Map(), L = [], R = /* @__PURE__ */ new Map();
1360
+ }, "clear");
1361
+ function Yt(t) {
1362
+ switch (e.debug("typeStr2Type", t), t) {
1363
+ case "[]": return "square";
1364
+ case "()": return e.debug("we have a round"), "round";
1365
+ case "(())": return "circle";
1366
+ case ">]": return "rect_left_inv_arrow";
1367
+ case "{}": return "diamond";
1368
+ case "{{}}": return "hexagon";
1369
+ case "([])": return "stadium";
1370
+ case "[[]]": return "subroutine";
1371
+ case "[()]": return "cylinder";
1372
+ case "((()))": return "doublecircle";
1373
+ case "[//]": return "lean_right";
1374
+ case "[\\\\]": return "lean_left";
1375
+ case "[/\\]": return "trapezoid";
1376
+ case "[\\/]": return "inv_trapezoid";
1377
+ case "<[]>": return "block_arrow";
1378
+ default: return "na";
1379
+ }
1380
+ }
1381
+ t(Yt, "typeStr2Type");
1382
+ function Xt(t) {
1383
+ switch (e.debug("typeStr2Type", t), t) {
1384
+ case "==": return "thick";
1385
+ default: return "normal";
1386
+ }
1387
+ }
1388
+ t(Xt, "edgeTypeStr2Type");
1389
+ function Zt(e) {
1390
+ switch (e.replace(/^[\s-]+|[\s-]+$/g, "")) {
1391
+ case "x": return "arrow_cross";
1392
+ case "o": return "arrow_circle";
1393
+ case ">": return "arrow_point";
1394
+ default: return "";
1395
+ }
1396
+ }
1397
+ t(Zt, "edgeStrToEdgeData");
1398
+ var Qt = 0, $t = {
1399
+ getConfig: /* @__PURE__ */ t(() => d().block, "getConfig"),
1400
+ typeStr2Type: Yt,
1401
+ edgeTypeStr2Type: Xt,
1402
+ edgeStrToEdgeData: Zt,
1403
+ getLogger: /* @__PURE__ */ t(() => e, "getLogger"),
1404
+ getBlocksFlat: /* @__PURE__ */ t(() => [...I.values()], "getBlocksFlat"),
1405
+ getBlocks: /* @__PURE__ */ t(() => qt || [], "getBlocks"),
1406
+ getEdges: /* @__PURE__ */ t(() => L, "getEdges"),
1407
+ setHierarchy: /* @__PURE__ */ t((e) => {
1408
+ B.children = e, Kt(e, B), qt = B.children;
1409
+ }, "setHierarchy"),
1410
+ getBlock: /* @__PURE__ */ t((e) => I.get(e), "getBlock"),
1411
+ setBlock: /* @__PURE__ */ t((e) => {
1412
+ I.set(e.id, e);
1413
+ }, "setBlock"),
1414
+ getColumns: /* @__PURE__ */ t((e) => {
1415
+ let t = I.get(e);
1416
+ return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1417
+ }, "getColumns"),
1418
+ getClasses: /* @__PURE__ */ t(function() {
1419
+ return z;
1420
+ }, "getClasses"),
1421
+ clear: Jt,
1422
+ generateId: /* @__PURE__ */ t(() => (Qt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Qt), "generateId")
1423
+ }, en = /* @__PURE__ */ t((e, t) => {
1424
+ let n = f;
1425
+ return c(n(e, "r"), n(e, "g"), n(e, "b"), t);
1426
+ }, "fade"), tn = /* @__PURE__ */ t((e) => `.label {
1427
+ font-family: ${e.fontFamily};
1428
+ color: ${e.nodeTextColor || e.textColor};
1429
+ }
1430
+ .cluster-label text {
1431
+ fill: ${e.titleColor};
1432
+ }
1433
+ .cluster-label span,p {
1434
+ color: ${e.titleColor};
1435
+ }
1436
+
1437
+
1438
+
1439
+ .label text,span,p {
1440
+ fill: ${e.nodeTextColor || e.textColor};
1441
+ color: ${e.nodeTextColor || e.textColor};
1442
+ }
1443
+
1444
+ .node rect,
1445
+ .node circle,
1446
+ .node ellipse,
1447
+ .node polygon,
1448
+ .node path {
1449
+ fill: ${e.mainBkg};
1450
+ stroke: ${e.nodeBorder};
1451
+ stroke-width: 1px;
1452
+ }
1453
+ .flowchart-label text {
1454
+ text-anchor: middle;
1455
+ }
1456
+ // .flowchart-label .text-outer-tspan {
1457
+ // text-anchor: middle;
1458
+ // }
1459
+ // .flowchart-label .text-inner-tspan {
1460
+ // text-anchor: start;
1461
+ // }
1462
+
1463
+ .node .label {
1464
+ text-align: center;
1465
+ }
1466
+ .node.clickable {
1467
+ cursor: pointer;
1468
+ }
1469
+
1470
+ .arrowheadPath {
1471
+ fill: ${e.arrowheadColor};
1472
+ }
1473
+
1474
+ .edgePath .path {
1475
+ stroke: ${e.lineColor};
1476
+ stroke-width: 2.0px;
1477
+ }
1478
+
1479
+ .flowchart-link {
1480
+ stroke: ${e.lineColor};
1481
+ fill: none;
1482
+ }
1483
+
1484
+ .edgeLabel {
1485
+ background-color: ${e.edgeLabelBackground};
1486
+ /*
1487
+ * This is for backward compatibility with existing code that didn't
1488
+ * add a \`<p>\` around edge labels.
1489
+ *
1490
+ * TODO: We should probably remove this in a future release.
1491
+ */
1492
+ p {
1493
+ margin: 0;
1494
+ padding: 0;
1495
+ display: inline;
1496
+ }
1497
+ rect {
1498
+ opacity: 0.5;
1499
+ background-color: ${e.edgeLabelBackground};
1500
+ fill: ${e.edgeLabelBackground};
1501
+ }
1502
+ text-align: center;
1503
+ }
1504
+
1505
+ /* For html labels only */
1506
+ .labelBkg {
1507
+ background-color: ${e.edgeLabelBackground};
1508
+ }
1509
+
1510
+ .node .cluster {
1511
+ // fill: ${en(e.mainBkg, .5)};
1512
+ fill: ${en(e.clusterBkg, .5)};
1513
+ stroke: ${en(e.clusterBorder, .2)};
1514
+ box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1515
+ stroke-width: 1px;
1516
+ }
1517
+
1518
+ .cluster text {
1519
+ fill: ${e.titleColor};
1520
+ }
1521
+
1522
+ .cluster span,p {
1523
+ color: ${e.titleColor};
1524
+ }
1525
+ /* .cluster div {
1526
+ color: ${e.titleColor};
1527
+ } */
1528
+
1529
+ div.mermaidTooltip {
1530
+ position: absolute;
1531
+ text-align: center;
1532
+ max-width: 200px;
1533
+ padding: 2px;
1534
+ font-family: ${e.fontFamily};
1535
+ font-size: 12px;
1536
+ background: ${e.tertiaryColor};
1537
+ border: 1px solid ${e.border2};
1538
+ border-radius: 2px;
1539
+ pointer-events: none;
1540
+ z-index: 100;
1541
+ }
1542
+
1543
+ .flowchartTitleText {
1544
+ text-anchor: middle;
1545
+ font-size: 18px;
1546
+ fill: ${e.textColor};
1547
+ }
1548
+ ${he()}
1549
+ `, "getStyles"), nn = /* @__PURE__ */ t((e, t, n, r) => {
1550
+ t.forEach((t) => {
1551
+ rn[t](e, n, r);
1552
+ });
1553
+ }, "insertMarkers"), rn = {
1554
+ extension: /* @__PURE__ */ t((t, n, r) => {
1555
+ e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1556
+ }, "extension"),
1557
+ composition: /* @__PURE__ */ t((e, t, n) => {
1558
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1559
+ }, "composition"),
1560
+ aggregation: /* @__PURE__ */ t((e, t, n) => {
1561
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1562
+ }, "aggregation"),
1563
+ dependency: /* @__PURE__ */ t((e, t, n) => {
1564
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1565
+ }, "dependency"),
1566
+ lollipop: /* @__PURE__ */ t((e, t, n) => {
1567
+ e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1568
+ }, "lollipop"),
1569
+ point: /* @__PURE__ */ t((e, t, n) => {
1570
+ e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).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"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).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");
1571
+ }, "point"),
1572
+ circle: /* @__PURE__ */ t((e, t, n) => {
1573
+ e.append("marker").attr("id", n + "_" + 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"), e.append("marker").attr("id", n + "_" + 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");
1574
+ }, "circle"),
1575
+ cross: /* @__PURE__ */ t((e, t, n) => {
1576
+ e.append("marker").attr("id", n + "_" + 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"), e.append("marker").attr("id", n + "_" + 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");
1577
+ }, "cross"),
1578
+ barb: /* @__PURE__ */ t((e, t, n) => {
1579
+ e.append("defs").append("marker").attr("id", n + "_" + 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 L9,13 L14,7 L9,1 Z");
1580
+ }, "barb")
1581
+ }, an = nn, V = o()?.block?.padding ?? 8;
1582
+ function on(e, t) {
1583
+ if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1584
+ if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1585
+ return e < 0 ? {
1586
+ px: t,
1587
+ py: 0
1588
+ } : e === 1 ? {
1589
+ px: 0,
1590
+ py: t
1591
+ } : {
1592
+ px: t % e,
1593
+ py: Math.floor(t / e)
1594
+ };
1595
+ }
1596
+ t(on, "calculateBlockPosition");
1597
+ var sn = /* @__PURE__ */ t((t) => {
1598
+ let n = 0, r = 0;
1599
+ for (let i of t.children) {
1600
+ let { width: t, height: a, x: o, y: s } = i.size ?? {
1601
+ width: 0,
1602
+ height: 0,
1603
+ x: 0,
1604
+ y: 0
1605
+ };
1606
+ e.debug("getMaxChildSize abc95 child:", i.id, "width:", t, "height:", a, "x:", o, "y:", s, i.type), i.type !== "space" && (t > n && (n = t / (i.widthInColumns ?? 1)), a > r && (r = a));
1607
+ }
1608
+ return {
1609
+ width: n,
1610
+ height: r
1611
+ };
1612
+ }, "getMaxChildSize");
1613
+ function H(t, n, r = 0, i = 0) {
1614
+ e.debug("setBlockSizes abc95 (start)", t.id, t?.size?.x, "block width =", t?.size, "siblingWidth", r), t?.size?.width || (t.size = {
1615
+ width: r,
1616
+ height: i,
1617
+ x: 0,
1618
+ y: 0
1619
+ });
1620
+ let a = 0, o = 0;
1621
+ if (t.children?.length > 0) {
1622
+ for (let e of t.children) H(e, n);
1623
+ let s = sn(t);
1624
+ a = s.width, o = s.height, e.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", a, o);
1625
+ for (let n of t.children) n.size && (e.debug(`abc95 Setting size of children of ${t.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`), n.size.width = a * (n.widthInColumns ?? 1) + V * ((n.widthInColumns ?? 1) - 1), n.size.height = o, n.size.x = 0, n.size.y = 0, e.debug(`abc95 updating size of ${t.id} children child:${n.id} maxWidth:${a} maxHeight:${o}`));
1626
+ for (let e of t.children) H(e, n, a, o);
1627
+ let c = t.columns ?? -1, l = 0;
1628
+ for (let e of t.children) l += e.widthInColumns ?? 1;
1629
+ let u = t.children.length;
1630
+ c > 0 && c < l && (u = c);
1631
+ let d = Math.ceil(l / u), f = u * (a + V) + V, p = d * (o + V) + V;
1632
+ if (f < r) {
1633
+ e.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${r} siblingHeight ${i} width ${f}`), f = r, p = i;
1634
+ let n = (r - u * V - V) / u, s = (i - d * V - V) / d;
1635
+ e.debug("Size indata abc88", t.id, "childWidth", n, "maxWidth", a), e.debug("Size indata abc88", t.id, "childHeight", s, "maxHeight", o), e.debug("Size indata abc88 xSize", u, "padding", V);
1636
+ for (let e of t.children) e.size && (e.size.width = n, e.size.height = s, e.size.x = 0, e.size.y = 0);
1637
+ }
1638
+ if (e.debug(`abc95 (finale calc) ${t.id} xSize ${u} ySize ${d} columns ${c}${t.children.length} width=${Math.max(f, t.size?.width || 0)}`), f < (t?.size?.width || 0)) {
1639
+ f = t?.size?.width || 0;
1640
+ let n = c > 0 ? Math.min(t.children.length, c) : t.children.length;
1641
+ if (n > 0) {
1642
+ let r = (f - n * V - V) / n;
1643
+ e.debug("abc95 (growing to fit) width", t.id, f, t.size?.width, r);
1644
+ for (let e of t.children) e.size && (e.size.width = r);
1645
+ }
1646
+ }
1647
+ t.size = {
1648
+ width: f,
1649
+ height: p,
1650
+ x: 0,
1651
+ y: 0
1652
+ };
1653
+ }
1654
+ e.debug("setBlockSizes abc94 (done)", t.id, t?.size?.x, t?.size?.width, t?.size?.y, t?.size?.height);
1655
+ }
1656
+ t(H, "setBlockSizes");
1657
+ function cn(t, n) {
1658
+ e.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);
1659
+ let r = t.columns ?? -1;
1660
+ if (e.debug("layoutBlocks columns abc95", t.id, "=>", r, t), t.children && t.children.length > 0) {
1661
+ let i = t?.children[0]?.size?.width ?? 0, a = t.children.length * i + (t.children.length - 1) * V;
1662
+ e.debug("widthOfChildren 88", a, "posX");
1663
+ let o = /* @__PURE__ */ new Map();
1664
+ {
1665
+ let e = 0;
1666
+ for (let n of t.children) {
1667
+ if (!n.size) continue;
1668
+ let { py: t } = on(r, e), i = o.get(t) ?? 0;
1669
+ n.size.height > i && o.set(t, n.size.height);
1670
+ let a = n?.widthInColumns ?? 1;
1671
+ r > 0 && (a = Math.min(a, r - e % r)), e += a;
1672
+ }
1673
+ }
1674
+ let s = /* @__PURE__ */ new Map();
1675
+ {
1676
+ let e = 0, t = [...o.keys()].sort((e, t) => e - t);
1677
+ for (let n of t) s.set(n, e), e += (o.get(n) ?? 0) + V;
1678
+ }
1679
+ let c = 0;
1680
+ e.debug("abc91 block?.size?.x", t.id, t?.size?.x);
1681
+ let l = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -V, u = 0;
1682
+ for (let i of t.children) {
1683
+ let a = t;
1684
+ if (!i.size) continue;
1685
+ let { width: d, height: f } = i.size, { px: p, py: m } = on(r, c);
1686
+ if (m != u && (u = m, l = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -V, e.debug("New row in layout for block", t.id, " and child ", i.id, u)), e.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${V}`), a.size) {
1687
+ let t = d / 2;
1688
+ i.size.x = l + V + t, e.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${t} padding=${V} width=${d} halfWidth=${t} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (i?.widthInColumns ?? 1) / 2}`), l = i.size.x + t;
1689
+ let n = s.get(m) ?? 0, r = o.get(m) ?? f;
1690
+ i.size.y = a.size.y - a.size.height / 2 + n + r / 2 + V, e.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${V}${t}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d * (i?.widthInColumns ?? 1) / 2}`);
1691
+ }
1692
+ i.children && cn(i, n);
1693
+ let h = i?.widthInColumns ?? 1;
1694
+ r > 0 && (h = Math.min(h, r - c % r)), c += h, e.debug("abc88 columnsPos", i, c);
1695
+ }
1696
+ }
1697
+ e.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);
1698
+ }
1699
+ t(cn, "layoutBlocks");
1700
+ function ln(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1701
+ minX: 0,
1702
+ minY: 0,
1703
+ maxX: 0,
1704
+ maxY: 0
1705
+ }) {
1706
+ if (e.size && e.id !== "root") {
1707
+ let { x: a, y: o, width: s, height: c } = e.size;
1708
+ a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
1709
+ }
1710
+ if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = ln(a, {
1711
+ minX: t,
1712
+ minY: n,
1713
+ maxX: r,
1714
+ maxY: i
1715
+ }));
1716
+ return {
1717
+ minX: t,
1718
+ minY: n,
1719
+ maxX: r,
1720
+ maxY: i
1721
+ };
1722
+ }
1723
+ t(ln, "findBounds");
1724
+ function un(t) {
1725
+ let n = t.getBlock("root");
1726
+ if (!n) return;
1727
+ H(n, t, 0, 0), cn(n, t), e.debug("getBlocks", JSON.stringify(n, null, 2));
1728
+ let { minX: r, minY: i, maxX: a, maxY: o } = ln(n), s = o - i;
1729
+ return {
1730
+ x: r,
1731
+ y: i,
1732
+ width: a - r,
1733
+ height: s
1734
+ };
1735
+ }
1736
+ t(un, "layout");
1737
+ var U = /* @__PURE__ */ t(async (e, t, n, r = !1, i = !1) => {
1738
+ let a = t || "";
1739
+ typeof a == "object" && (a = a[0]);
1740
+ let s = o(), c = u(s);
1741
+ return await oe(e, a, {
1742
+ style: n,
1743
+ isTitle: r,
1744
+ useHtmlLabels: c,
1745
+ markdown: !1,
1746
+ isNode: i,
1747
+ width: Infinity
1748
+ }, s);
1749
+ }, "createLabel"), dn = /* @__PURE__ */ t((e, t, n, r, i) => {
1750
+ t.arrowTypeStart && pn(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && pn(e, "end", t.arrowTypeEnd, n, r, i);
1751
+ }, "addEdgeMarkers"), fn = {
1752
+ arrow_cross: "cross",
1753
+ arrow_point: "point",
1754
+ arrow_barb: "barb",
1755
+ arrow_circle: "circle",
1756
+ aggregation: "aggregation",
1757
+ extension: "extension",
1758
+ composition: "composition",
1759
+ dependency: "dependency",
1760
+ lollipop: "lollipop"
1761
+ }, pn = /* @__PURE__ */ t((t, n, r, i, a, o) => {
1762
+ let s = fn[r];
1763
+ if (!s) {
1764
+ e.warn(`Unknown arrow type: ${r}`);
1765
+ return;
1766
+ }
1767
+ let c = n === "start" ? "Start" : "End";
1768
+ t.attr(`marker-${n}`, `url(${i}#${a}_${o}-${s}${c})`);
1769
+ }, "addEdgeMarker"), mn = {}, W = {}, hn = /* @__PURE__ */ t(async (e, t) => {
1770
+ let r = o(), i = u(r), a = e.insert("g").attr("class", "edgeLabel"), s = a.insert("g").attr("class", "label"), c = t.labelType === "markdown", l = await oe(e, t.label, {
1771
+ style: t.labelStyle,
1772
+ useHtmlLabels: i,
1773
+ addSvgBackground: c,
1774
+ isNode: !1,
1775
+ markdown: c,
1776
+ width: c ? void 0 : Infinity
1777
+ }, r);
1778
+ s.node().appendChild(l);
1779
+ let d = l.getBBox(), f = d;
1780
+ if (i) {
1781
+ let e = l.children[0], t = n(l);
1782
+ d = e.getBoundingClientRect(), f = d, t.attr("width", d.width), t.attr("height", d.height);
1783
+ } else {
1784
+ let e = n(l).select("text").node();
1785
+ e && typeof e.getBBox == "function" && (f = e.getBBox());
1786
+ }
1787
+ s.attr("transform", O(f, i)), mn[t.id] = a, t.width = d.width, t.height = d.height;
1788
+ let p;
1789
+ if (t.startLabelLeft) {
1790
+ let r = e.insert("g").attr("class", "edgeTerminals"), a = r.insert("g").attr("class", "inner"), o = await U(a, t.startLabelLeft, t.labelStyle);
1791
+ p = o;
1792
+ let s = o.getBBox();
1793
+ if (i) {
1794
+ let e = o.children[0], t = n(o);
1795
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1796
+ }
1797
+ a.attr("transform", O(s, i)), W[t.id] || (W[t.id] = {}), W[t.id].startLeft = r, G(p, t.startLabelLeft);
1798
+ }
1799
+ if (t.startLabelRight) {
1800
+ let r = e.insert("g").attr("class", "edgeTerminals"), a = r.insert("g").attr("class", "inner"), o = await U(r, t.startLabelRight, t.labelStyle);
1801
+ p = o, a.node().appendChild(o);
1802
+ let s = o.getBBox();
1803
+ if (i) {
1804
+ let e = o.children[0], t = n(o);
1805
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1806
+ }
1807
+ a.attr("transform", O(s, i)), W[t.id] || (W[t.id] = {}), W[t.id].startRight = r, G(p, t.startLabelRight);
1808
+ }
1809
+ if (t.endLabelLeft) {
1810
+ let r = e.insert("g").attr("class", "edgeTerminals"), a = r.insert("g").attr("class", "inner"), o = await U(a, t.endLabelLeft, t.labelStyle);
1811
+ p = o;
1812
+ let s = o.getBBox();
1813
+ if (i) {
1814
+ let e = o.children[0], t = n(o);
1815
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1816
+ }
1817
+ a.attr("transform", O(s, i)), r.node().appendChild(o), W[t.id] || (W[t.id] = {}), W[t.id].endLeft = r, G(p, t.endLabelLeft);
1818
+ }
1819
+ if (t.endLabelRight) {
1820
+ let r = e.insert("g").attr("class", "edgeTerminals"), a = r.insert("g").attr("class", "inner"), o = await U(a, t.endLabelRight, t.labelStyle);
1821
+ p = o;
1822
+ let s = o.getBBox();
1823
+ if (i) {
1824
+ let e = o.children[0], t = n(o);
1825
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1826
+ }
1827
+ a.attr("transform", O(s, i)), r.node().appendChild(o), W[t.id] || (W[t.id] = {}), W[t.id].endRight = r, G(p, t.endLabelRight);
1828
+ }
1829
+ return l;
1830
+ }, "insertEdgeLabel");
1831
+ function G(e, t) {
1832
+ u(o()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1833
+ }
1834
+ t(G, "setTerminalWidth");
1835
+ var gn = /* @__PURE__ */ t((t, n) => {
1836
+ e.debug("Moving label abc88 ", t.id, t.label, mn[t.id], n);
1837
+ let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = ie(o());
1838
+ if (t.label) {
1839
+ let a = mn[t.id], o = t.x, s = t.y;
1840
+ if (r) {
1841
+ let i = b.calcLabelPosition(r);
1842
+ e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
1843
+ }
1844
+ a.attr("transform", `translate(${o}, ${s + i / 2})`);
1845
+ }
1846
+ if (t.startLabelLeft) {
1847
+ let e = W[t.id].startLeft, n = t.x, i = t.y;
1848
+ if (r) {
1849
+ let e = b.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r);
1850
+ n = e.x, i = e.y;
1851
+ }
1852
+ e.attr("transform", `translate(${n}, ${i})`);
1853
+ }
1854
+ if (t.startLabelRight) {
1855
+ let e = W[t.id].startRight, n = t.x, i = t.y;
1856
+ if (r) {
1857
+ let e = b.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", r);
1858
+ n = e.x, i = e.y;
1859
+ }
1860
+ e.attr("transform", `translate(${n}, ${i})`);
1861
+ }
1862
+ if (t.endLabelLeft) {
1863
+ let e = W[t.id].endLeft, n = t.x, i = t.y;
1864
+ if (r) {
1865
+ let e = b.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r);
1866
+ n = e.x, i = e.y;
1867
+ }
1868
+ e.attr("transform", `translate(${n}, ${i})`);
1869
+ }
1870
+ if (t.endLabelRight) {
1871
+ let e = W[t.id].endRight, n = t.x, i = t.y;
1872
+ if (r) {
1873
+ let e = b.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r);
1874
+ n = e.x, i = e.y;
1875
+ }
1876
+ e.attr("transform", `translate(${n}, ${i})`);
1877
+ }
1878
+ }, "positionEdgeLabel"), _n = /* @__PURE__ */ t((e, t) => {
1879
+ let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
1880
+ return i >= o || a >= s;
1881
+ }, "outsideNode"), vn = /* @__PURE__ */ t((t, n, r) => {
1882
+ e.debug(`intersection calc abc89:
1883
+ outsidePoint: ${JSON.stringify(n)}
1884
+ insidePoint : ${JSON.stringify(r)}
1885
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
1886
+ let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
1887
+ if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
1888
+ let t = r.y < n.y ? n.y - l - a : a - l - n.y;
1889
+ c = d * t / u;
1890
+ let i = {
1891
+ x: r.x < n.x ? r.x + c : r.x - d + c,
1892
+ y: r.y < n.y ? r.y + u - t : r.y - u + t
1893
+ };
1894
+ return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 topp/bott calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
1895
+ } else {
1896
+ c = r.x < n.x ? n.x - s - i : i - s - n.x;
1897
+ let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
1898
+ return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
1899
+ _x: a,
1900
+ _y: o
1901
+ }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
1902
+ x: a,
1903
+ y: o
1904
+ };
1905
+ }
1906
+ }, "intersection"), yn = /* @__PURE__ */ t((t, n) => {
1907
+ e.debug("abc88 cutPathAtIntersect", t, n);
1908
+ let r = [], i = t[0], a = !1;
1909
+ return t.forEach((e) => {
1910
+ if (!_n(n, e) && !a) {
1911
+ let t = vn(n, i, e), o = !1;
1912
+ r.forEach((e) => {
1913
+ o ||= e.x === t.x && e.y === t.y;
1914
+ }), r.some((e) => e.x === t.x && e.y === t.y) || r.push(t), a = !0;
1915
+ } else i = e, a || r.push(e);
1916
+ }), r;
1917
+ }, "cutPathAtIntersect"), bn = /* @__PURE__ */ t(function(t, n, i, a, s, c, l) {
1918
+ let u = i.points;
1919
+ e.debug("abc88 InsertEdge: edge=", i, "e=", n);
1920
+ let d = !1, f = c.node(n.v);
1921
+ var p = c.node(n.w);
1922
+ p?.intersect && f?.intersect && (u = u.slice(1, i.points.length - 1), u.unshift(f.intersect(u[0])), u.push(p.intersect(u[u.length - 1]))), i.toCluster && (e.debug("to cluster abc88", a[i.toCluster]), u = yn(i.points, a[i.toCluster].node), d = !0), i.fromCluster && (e.debug("from cluster abc88", a[i.fromCluster]), u = yn(u.reverse(), a[i.fromCluster].node).reverse(), d = !0);
1923
+ let h = u.filter((e) => !Number.isNaN(e.y)), g = m;
1924
+ i.curve && (s === "graph" || s === "flowchart") && (g = i.curve);
1925
+ let { x: _, y: v } = D(i), y = E().x(_).y(v).curve(g), b;
1926
+ switch (i.thickness) {
1927
+ case "normal":
1928
+ b = "edge-thickness-normal";
1929
+ break;
1930
+ case "thick":
1931
+ b = "edge-thickness-thick";
1932
+ break;
1933
+ case "invisible":
1934
+ b = "edge-thickness-thick";
1935
+ break;
1936
+ default: b = "";
1937
+ }
1938
+ switch (i.pattern) {
1939
+ case "solid":
1940
+ b += " edge-pattern-solid";
1941
+ break;
1942
+ case "dotted":
1943
+ b += " edge-pattern-dotted";
1944
+ break;
1945
+ case "dashed":
1946
+ b += " edge-pattern-dashed";
1947
+ break;
1948
+ }
1949
+ let x = t.append("path").attr("d", y(h)).attr("id", i.id).attr("class", " " + b + (i.classes ? " " + i.classes : "")).attr("style", i.style), S = "";
1950
+ (o().flowchart.arrowMarkerAbsolute || o().state.arrowMarkerAbsolute) && (S = r(!0)), dn(x, i, S, l, s);
1951
+ let C = {};
1952
+ return d && (C.updatedPath = u), C.originalPath = i.points, C;
1953
+ }, "insertEdge"), xn = /* @__PURE__ */ t((e) => {
1954
+ let t = /* @__PURE__ */ new Set();
1955
+ for (let n of e) switch (n) {
1956
+ case "x":
1957
+ t.add("right"), t.add("left");
1958
+ break;
1959
+ case "y":
1960
+ t.add("up"), t.add("down");
1961
+ break;
1962
+ default:
1963
+ t.add(n);
1964
+ break;
1965
+ }
1966
+ return t;
1967
+ }, "expandAndDeduplicateDirections"), Sn = /* @__PURE__ */ t((e, t, n) => {
1968
+ let r = xn(e), i = t.height + 2 * n.padding, a = i / 2, o = t.width + 2 * a + n.padding, s = n.padding / 2;
1969
+ return r.has("right") && r.has("left") && r.has("up") && r.has("down") ? [
1970
+ {
1971
+ x: 0,
1972
+ y: 0
1973
+ },
1974
+ {
1975
+ x: a,
1976
+ y: 0
1977
+ },
1978
+ {
1979
+ x: o / 2,
1980
+ y: 2 * s
1981
+ },
1982
+ {
1983
+ x: o - a,
1984
+ y: 0
1985
+ },
1986
+ {
1987
+ x: o,
1988
+ y: 0
1989
+ },
1990
+ {
1991
+ x: o,
1992
+ y: -i / 3
1993
+ },
1994
+ {
1995
+ x: o + 2 * s,
1996
+ y: -i / 2
1997
+ },
1998
+ {
1999
+ x: o,
2000
+ y: -2 * i / 3
2001
+ },
2002
+ {
2003
+ x: o,
2004
+ y: -i
2005
+ },
2006
+ {
2007
+ x: o - a,
2008
+ y: -i
2009
+ },
2010
+ {
2011
+ x: o / 2,
2012
+ y: -i - 2 * s
2013
+ },
2014
+ {
2015
+ x: a,
2016
+ y: -i
2017
+ },
2018
+ {
2019
+ x: 0,
2020
+ y: -i
2021
+ },
2022
+ {
2023
+ x: 0,
2024
+ y: -2 * i / 3
2025
+ },
2026
+ {
2027
+ x: -2 * s,
2028
+ y: -i / 2
2029
+ },
2030
+ {
2031
+ x: 0,
2032
+ y: -i / 3
2033
+ }
2034
+ ] : r.has("right") && r.has("left") && r.has("up") ? [
2035
+ {
2036
+ x: a,
2037
+ y: 0
2038
+ },
2039
+ {
2040
+ x: o - a,
2041
+ y: 0
2042
+ },
2043
+ {
2044
+ x: o,
2045
+ y: -i / 2
2046
+ },
2047
+ {
2048
+ x: o - a,
2049
+ y: -i
2050
+ },
2051
+ {
2052
+ x: a,
2053
+ y: -i
2054
+ },
2055
+ {
2056
+ x: 0,
2057
+ y: -i / 2
2058
+ }
2059
+ ] : r.has("right") && r.has("left") && r.has("down") ? [
2060
+ {
2061
+ x: 0,
2062
+ y: 0
2063
+ },
2064
+ {
2065
+ x: a,
2066
+ y: -i
2067
+ },
2068
+ {
2069
+ x: o - a,
2070
+ y: -i
2071
+ },
2072
+ {
2073
+ x: o,
2074
+ y: 0
2075
+ }
2076
+ ] : r.has("right") && r.has("up") && r.has("down") ? [
2077
+ {
2078
+ x: 0,
2079
+ y: 0
2080
+ },
2081
+ {
2082
+ x: o,
2083
+ y: -a
2084
+ },
2085
+ {
2086
+ x: o,
2087
+ y: -i + a
2088
+ },
2089
+ {
2090
+ x: 0,
2091
+ y: -i
2092
+ }
2093
+ ] : r.has("left") && r.has("up") && r.has("down") ? [
2094
+ {
2095
+ x: o,
2096
+ y: 0
2097
+ },
2098
+ {
2099
+ x: 0,
2100
+ y: -a
2101
+ },
2102
+ {
2103
+ x: 0,
2104
+ y: -i + a
2105
+ },
2106
+ {
2107
+ x: o,
2108
+ y: -i
2109
+ }
2110
+ ] : r.has("right") && r.has("left") ? [
2111
+ {
2112
+ x: a,
2113
+ y: 0
2114
+ },
2115
+ {
2116
+ x: a,
2117
+ y: -s
2118
+ },
2119
+ {
2120
+ x: o - a,
2121
+ y: -s
2122
+ },
2123
+ {
2124
+ x: o - a,
2125
+ y: 0
2126
+ },
2127
+ {
2128
+ x: o,
2129
+ y: -i / 2
2130
+ },
2131
+ {
2132
+ x: o - a,
2133
+ y: -i
2134
+ },
2135
+ {
2136
+ x: o - a,
2137
+ y: -i + s
2138
+ },
2139
+ {
2140
+ x: a,
2141
+ y: -i + s
2142
+ },
2143
+ {
2144
+ x: a,
2145
+ y: -i
2146
+ },
2147
+ {
2148
+ x: 0,
2149
+ y: -i / 2
2150
+ }
2151
+ ] : r.has("up") && r.has("down") ? [
2152
+ {
2153
+ x: o / 2,
2154
+ y: 0
2155
+ },
2156
+ {
2157
+ x: 0,
2158
+ y: -s
2159
+ },
2160
+ {
2161
+ x: a,
2162
+ y: -s
2163
+ },
2164
+ {
2165
+ x: a,
2166
+ y: -i + s
2167
+ },
2168
+ {
2169
+ x: 0,
2170
+ y: -i + s
2171
+ },
2172
+ {
2173
+ x: o / 2,
2174
+ y: -i
2175
+ },
2176
+ {
2177
+ x: o,
2178
+ y: -i + s
2179
+ },
2180
+ {
2181
+ x: o - a,
2182
+ y: -i + s
2183
+ },
2184
+ {
2185
+ x: o - a,
2186
+ y: -s
2187
+ },
2188
+ {
2189
+ x: o,
2190
+ y: -s
2191
+ }
2192
+ ] : r.has("right") && r.has("up") ? [
2193
+ {
2194
+ x: 0,
2195
+ y: 0
2196
+ },
2197
+ {
2198
+ x: o,
2199
+ y: -a
2200
+ },
2201
+ {
2202
+ x: 0,
2203
+ y: -i
2204
+ }
2205
+ ] : r.has("right") && r.has("down") ? [
2206
+ {
2207
+ x: 0,
2208
+ y: 0
2209
+ },
2210
+ {
2211
+ x: o,
2212
+ y: 0
2213
+ },
2214
+ {
2215
+ x: 0,
2216
+ y: -i
2217
+ }
2218
+ ] : r.has("left") && r.has("up") ? [
2219
+ {
2220
+ x: o,
2221
+ y: 0
2222
+ },
2223
+ {
2224
+ x: 0,
2225
+ y: -a
2226
+ },
2227
+ {
2228
+ x: o,
2229
+ y: -i
2230
+ }
2231
+ ] : r.has("left") && r.has("down") ? [
2232
+ {
2233
+ x: o,
2234
+ y: 0
2235
+ },
2236
+ {
2237
+ x: 0,
2238
+ y: 0
2239
+ },
2240
+ {
2241
+ x: o,
2242
+ y: -i
2243
+ }
2244
+ ] : r.has("right") ? [
2245
+ {
2246
+ x: a,
2247
+ y: -s
2248
+ },
2249
+ {
2250
+ x: a,
2251
+ y: -s
2252
+ },
2253
+ {
2254
+ x: o - a,
2255
+ y: -s
2256
+ },
2257
+ {
2258
+ x: o - a,
2259
+ y: 0
2260
+ },
2261
+ {
2262
+ x: o,
2263
+ y: -i / 2
2264
+ },
2265
+ {
2266
+ x: o - a,
2267
+ y: -i
2268
+ },
2269
+ {
2270
+ x: o - a,
2271
+ y: -i + s
2272
+ },
2273
+ {
2274
+ x: a,
2275
+ y: -i + s
2276
+ },
2277
+ {
2278
+ x: a,
2279
+ y: -i + s
2280
+ }
2281
+ ] : r.has("left") ? [
2282
+ {
2283
+ x: a,
2284
+ y: 0
2285
+ },
2286
+ {
2287
+ x: a,
2288
+ y: -s
2289
+ },
2290
+ {
2291
+ x: o - a,
2292
+ y: -s
2293
+ },
2294
+ {
2295
+ x: o - a,
2296
+ y: -i + s
2297
+ },
2298
+ {
2299
+ x: a,
2300
+ y: -i + s
2301
+ },
2302
+ {
2303
+ x: a,
2304
+ y: -i
2305
+ },
2306
+ {
2307
+ x: 0,
2308
+ y: -i / 2
2309
+ }
2310
+ ] : r.has("up") ? [
2311
+ {
2312
+ x: a,
2313
+ y: -s
2314
+ },
2315
+ {
2316
+ x: a,
2317
+ y: -i + s
2318
+ },
2319
+ {
2320
+ x: 0,
2321
+ y: -i + s
2322
+ },
2323
+ {
2324
+ x: o / 2,
2325
+ y: -i
2326
+ },
2327
+ {
2328
+ x: o,
2329
+ y: -i + s
2330
+ },
2331
+ {
2332
+ x: o - a,
2333
+ y: -i + s
2334
+ },
2335
+ {
2336
+ x: o - a,
2337
+ y: -s
2338
+ }
2339
+ ] : r.has("down") ? [
2340
+ {
2341
+ x: o / 2,
2342
+ y: 0
2343
+ },
2344
+ {
2345
+ x: 0,
2346
+ y: -s
2347
+ },
2348
+ {
2349
+ x: a,
2350
+ y: -s
2351
+ },
2352
+ {
2353
+ x: a,
2354
+ y: -i + s
2355
+ },
2356
+ {
2357
+ x: o - a,
2358
+ y: -i + s
2359
+ },
2360
+ {
2361
+ x: o - a,
2362
+ y: -s
2363
+ },
2364
+ {
2365
+ x: o,
2366
+ y: -s
2367
+ }
2368
+ ] : [{
2369
+ x: 0,
2370
+ y: 0
2371
+ }];
2372
+ }, "getArrowPoints");
2373
+ function Cn(e, t) {
2374
+ return e.intersect(t);
2375
+ }
2376
+ t(Cn, "intersectNode");
2377
+ var wn = Cn;
2378
+ function Tn(e, t, n, r) {
2379
+ var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
2380
+ r.x < i && (l = -l);
2381
+ var u = Math.abs(t * n * s / c);
2382
+ return r.y < a && (u = -u), {
2383
+ x: i + l,
2384
+ y: a + u
2385
+ };
2386
+ }
2387
+ t(Tn, "intersectEllipse");
2388
+ var En = Tn;
2389
+ function Dn(e, t, n) {
2390
+ return En(e, t, t, n);
2391
+ }
2392
+ t(Dn, "intersectCircle");
2393
+ var On = Dn;
2394
+ function kn(e, t, n, r) {
2395
+ var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
2396
+ if (!(f !== 0 && p !== 0 && An(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && An(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
2397
+ x: _,
2398
+ y: v
2399
+ };
2400
+ }
2401
+ t(kn, "intersectLine");
2402
+ function An(e, t) {
2403
+ return e * t > 0;
2404
+ }
2405
+ t(An, "sameSign");
2406
+ var jn = kn, Mn = Nn;
2407
+ function Nn(e, t, n) {
2408
+ var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
2409
+ typeof t.forEach == "function" ? t.forEach(function(e) {
2410
+ o = Math.min(o, e.x), s = Math.min(s, e.y);
2411
+ }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
2412
+ for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
2413
+ var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = jn(e, n, {
2414
+ x: c + d.x,
2415
+ y: l + d.y
2416
+ }, {
2417
+ x: c + f.x,
2418
+ y: l + f.y
2419
+ });
2420
+ p && a.push(p);
2421
+ }
2422
+ return a.length ? (a.length > 1 && a.sort(function(e, t) {
2423
+ var r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
2424
+ return a < c ? -1 : a === c ? 0 : 1;
2425
+ }), a[0]) : e;
2426
+ }
2427
+ t(Nn, "intersectPolygon");
2428
+ var K = {
2429
+ node: wn,
2430
+ circle: On,
2431
+ ellipse: En,
2432
+ polygon: Mn,
2433
+ rect: /* @__PURE__ */ t((e, t) => {
2434
+ var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
2435
+ return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
2436
+ x: n + c,
2437
+ y: r + l
2438
+ };
2439
+ }, "intersectRect")
2440
+ }, q = /* @__PURE__ */ t(async (e, t, r, a) => {
2441
+ let s = o(), c, l = t.useHtmlLabels || u(s);
2442
+ c = r || "node default";
2443
+ let d = e.insert("g").attr("class", c).attr("id", t.domId || t.id), f = d.insert("g").attr("class", "label").attr("style", t.labelStyle), p;
2444
+ p = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2445
+ let m;
2446
+ m = t.labelType === "markdown" ? oe(f, i(x(p), s), {
2447
+ useHtmlLabels: l,
2448
+ width: t.width || s.flowchart.wrappingWidth,
2449
+ classes: "markdown-node-label"
2450
+ }, s) : await U(f, i(x(p), s), t.labelStyle, !1, a);
2451
+ let h = m.getBBox(), g = t.padding / 2;
2452
+ if (u(s)) {
2453
+ let e = m.children[0], t = n(m);
2454
+ await ae(e, p), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2455
+ }
2456
+ return l ? f.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : f.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && f.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), f.insert("rect", ":first-child"), {
2457
+ shapeSvg: d,
2458
+ bbox: h,
2459
+ halfPadding: g,
2460
+ label: f
2461
+ };
2462
+ }, "labelHelper"), J = /* @__PURE__ */ t((e, t) => {
2463
+ let n = t.node().getBBox();
2464
+ e.width = n.width, e.height = n.height;
2465
+ }, "updateNodeBounds");
2466
+ function Y(e, t, n, r) {
2467
+ return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
2468
+ return e.x + "," + e.y;
2469
+ }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2470
+ }
2471
+ t(Y, "insertPolygonShape");
2472
+ var Pn = /* @__PURE__ */ t(async (t, n) => {
2473
+ n.useHtmlLabels || u(o()) || (n.centerLabel = !0);
2474
+ let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, "node " + n.classes, !0);
2475
+ e.info("Classes = ", n.classes);
2476
+ let s = r.insert("rect", ":first-child");
2477
+ return s.attr("rx", n.rx).attr("ry", n.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), J(n, s), n.intersect = function(e) {
2478
+ return K.rect(n, e);
2479
+ }, r;
2480
+ }, "note"), Fn = /* @__PURE__ */ t((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ t((e, t) => `${t || "node default"}${Fn(e.classes)} ${Fn(e.class)}`, "getClassesFromNode"), In = /* @__PURE__ */ t(async (t, n) => {
2481
+ let { shapeSvg: r, bbox: i } = await q(t, n, X(n, void 0), !0), a = i.width + n.padding + (i.height + n.padding), o = [
2482
+ {
2483
+ x: a / 2,
2484
+ y: 0
2485
+ },
2486
+ {
2487
+ x: a,
2488
+ y: -a / 2
2489
+ },
2490
+ {
2491
+ x: a / 2,
2492
+ y: -a
2493
+ },
2494
+ {
2495
+ x: 0,
2496
+ y: -a / 2
2497
+ }
2498
+ ];
2499
+ e.info("Question main (Circle)");
2500
+ let s = Y(r, a, a, o);
2501
+ return s.attr("style", n.style), J(n, s), n.intersect = function(t) {
2502
+ return e.warn("Intersect called"), K.polygon(n, o, t);
2503
+ }, r;
2504
+ }, "question"), Ln = /* @__PURE__ */ t((e, t) => {
2505
+ let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2506
+ return n.insert("polygon", ":first-child").attr("points", [
2507
+ {
2508
+ x: 0,
2509
+ y: 28 / 2
2510
+ },
2511
+ {
2512
+ x: 28 / 2,
2513
+ y: 0
2514
+ },
2515
+ {
2516
+ x: 0,
2517
+ y: -28 / 2
2518
+ },
2519
+ {
2520
+ x: -28 / 2,
2521
+ y: 0
2522
+ }
2523
+ ].map(function(e) {
2524
+ return e.x + "," + e.y;
2525
+ }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
2526
+ return K.circle(t, 14, e);
2527
+ }, n;
2528
+ }, "choice"), Rn = /* @__PURE__ */ t(async (e, t) => {
2529
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
2530
+ {
2531
+ x: a,
2532
+ y: 0
2533
+ },
2534
+ {
2535
+ x: o - a,
2536
+ y: 0
2537
+ },
2538
+ {
2539
+ x: o,
2540
+ y: -i / 2
2541
+ },
2542
+ {
2543
+ x: o - a,
2544
+ y: -i
2545
+ },
2546
+ {
2547
+ x: a,
2548
+ y: -i
2549
+ },
2550
+ {
2551
+ x: 0,
2552
+ y: -i / 2
2553
+ }
2554
+ ], c = Y(n, o, i, s);
2555
+ return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2556
+ return K.polygon(t, s, e);
2557
+ }, n;
2558
+ }, "hexagon"), zn = /* @__PURE__ */ t(async (e, t) => {
2559
+ let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = Sn(t.directions, r, t), c = Y(n, o, i, s);
2560
+ return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2561
+ return K.polygon(t, s, e);
2562
+ }, n;
2563
+ }, "block_arrow"), Bn = /* @__PURE__ */ t(async (e, t) => {
2564
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2565
+ {
2566
+ x: -a / 2,
2567
+ y: 0
2568
+ },
2569
+ {
2570
+ x: i,
2571
+ y: 0
2572
+ },
2573
+ {
2574
+ x: i,
2575
+ y: -a
2576
+ },
2577
+ {
2578
+ x: -a / 2,
2579
+ y: -a
2580
+ },
2581
+ {
2582
+ x: 0,
2583
+ y: -a / 2
2584
+ }
2585
+ ];
2586
+ return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
2587
+ return K.polygon(t, o, e);
2588
+ }, n;
2589
+ }, "rect_left_inv_arrow"), Vn = /* @__PURE__ */ t(async (e, t) => {
2590
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2591
+ {
2592
+ x: -2 * a / 6,
2593
+ y: 0
2594
+ },
2595
+ {
2596
+ x: i - a / 6,
2597
+ y: 0
2598
+ },
2599
+ {
2600
+ x: i + 2 * a / 6,
2601
+ y: -a
2602
+ },
2603
+ {
2604
+ x: a / 6,
2605
+ y: -a
2606
+ }
2607
+ ], s = Y(n, i, a, o);
2608
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2609
+ return K.polygon(t, o, e);
2610
+ }, n;
2611
+ }, "lean_right"), Hn = /* @__PURE__ */ t(async (e, t) => {
2612
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2613
+ {
2614
+ x: 2 * a / 6,
2615
+ y: 0
2616
+ },
2617
+ {
2618
+ x: i + a / 6,
2619
+ y: 0
2620
+ },
2621
+ {
2622
+ x: i - 2 * a / 6,
2623
+ y: -a
2624
+ },
2625
+ {
2626
+ x: -a / 6,
2627
+ y: -a
2628
+ }
2629
+ ], s = Y(n, i, a, o);
2630
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2631
+ return K.polygon(t, o, e);
2632
+ }, n;
2633
+ }, "lean_left"), Un = /* @__PURE__ */ t(async (e, t) => {
2634
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2635
+ {
2636
+ x: -2 * a / 6,
2637
+ y: 0
2638
+ },
2639
+ {
2640
+ x: i + 2 * a / 6,
2641
+ y: 0
2642
+ },
2643
+ {
2644
+ x: i - a / 6,
2645
+ y: -a
2646
+ },
2647
+ {
2648
+ x: a / 6,
2649
+ y: -a
2650
+ }
2651
+ ], s = Y(n, i, a, o);
2652
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2653
+ return K.polygon(t, o, e);
2654
+ }, n;
2655
+ }, "trapezoid"), Wn = /* @__PURE__ */ t(async (e, t) => {
2656
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2657
+ {
2658
+ x: a / 6,
2659
+ y: 0
2660
+ },
2661
+ {
2662
+ x: i - a / 6,
2663
+ y: 0
2664
+ },
2665
+ {
2666
+ x: i + 2 * a / 6,
2667
+ y: -a
2668
+ },
2669
+ {
2670
+ x: -2 * a / 6,
2671
+ y: -a
2672
+ }
2673
+ ], s = Y(n, i, a, o);
2674
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2675
+ return K.polygon(t, o, e);
2676
+ }, n;
2677
+ }, "inv_trapezoid"), Gn = /* @__PURE__ */ t(async (e, t) => {
2678
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2679
+ {
2680
+ x: 0,
2681
+ y: 0
2682
+ },
2683
+ {
2684
+ x: i + a / 2,
2685
+ y: 0
2686
+ },
2687
+ {
2688
+ x: i,
2689
+ y: -a / 2
2690
+ },
2691
+ {
2692
+ x: i + a / 2,
2693
+ y: -a
2694
+ },
2695
+ {
2696
+ x: 0,
2697
+ y: -a
2698
+ }
2699
+ ], s = Y(n, i, a, o);
2700
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2701
+ return K.polygon(t, o, e);
2702
+ }, n;
2703
+ }, "rect_right_inv_arrow"), Kn = /* @__PURE__ */ t(async (e, t) => {
2704
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
2705
+ return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
2706
+ let n = K.rect(t, e), r = n.x - t.x;
2707
+ if (a != 0 && (Math.abs(r) < t.width / 2 || Math.abs(r) == t.width / 2 && Math.abs(n.y - t.y) > t.height / 2 - o)) {
2708
+ let i = o * o * (1 - r * r / (a * a));
2709
+ i != 0 && (i = Math.sqrt(i)), i = o - i, e.y - t.y > 0 && (i = -i), n.y += i;
2710
+ }
2711
+ return n;
2712
+ }, n;
2713
+ }, "cylinder"), qn = /* @__PURE__ */ t(async (t, n) => {
2714
+ let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, "node " + n.classes + " " + n.class, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2715
+ if (o.attr("class", "basic label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2716
+ let t = new Set(Object.keys(n.props));
2717
+ n.props.borders && (Z(o, n.props.borders, s, c), t.delete("borders")), t.forEach((t) => {
2718
+ e.warn(`Unknown node property ${t}`);
2719
+ });
2720
+ }
2721
+ return J(n, o), n.intersect = function(e) {
2722
+ return K.rect(n, e);
2723
+ }, r;
2724
+ }, "rect"), Jn = /* @__PURE__ */ t(async (t, n) => {
2725
+ let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, "node " + n.classes, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2726
+ if (o.attr("class", "basic cluster composite label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2727
+ let t = new Set(Object.keys(n.props));
2728
+ n.props.borders && (Z(o, n.props.borders, s, c), t.delete("borders")), t.forEach((t) => {
2729
+ e.warn(`Unknown node property ${t}`);
2730
+ });
2731
+ }
2732
+ return J(n, o), n.intersect = function(e) {
2733
+ return K.rect(n, e);
2734
+ }, r;
2735
+ }, "composite"), Yn = /* @__PURE__ */ t(async (t, n) => {
2736
+ let { shapeSvg: r } = await q(t, n, "label", !0);
2737
+ e.trace("Classes = ", n.class);
2738
+ let i = r.insert("rect", ":first-child");
2739
+ if (i.attr("width", 0).attr("height", 0), r.attr("class", "label edgeLabel"), n.props) {
2740
+ let t = new Set(Object.keys(n.props));
2741
+ n.props.borders && (Z(i, n.props.borders, 0, 0), t.delete("borders")), t.forEach((t) => {
2742
+ e.warn(`Unknown node property ${t}`);
2743
+ });
2744
+ }
2745
+ return J(n, i), n.intersect = function(e) {
2746
+ return K.rect(n, e);
2747
+ }, r;
2748
+ }, "labelRect");
2749
+ function Z(n, r, i, a) {
2750
+ let o = [], s = /* @__PURE__ */ t((e) => {
2751
+ o.push(e, 0);
2752
+ }, "addBorder"), c = /* @__PURE__ */ t((e) => {
2753
+ o.push(0, e);
2754
+ }, "skipBorder");
2755
+ r.includes("t") ? (e.debug("add top border"), s(i)) : c(i), r.includes("r") ? (e.debug("add right border"), s(a)) : c(a), r.includes("b") ? (e.debug("add bottom border"), s(i)) : c(i), r.includes("l") ? (e.debug("add left border"), s(a)) : c(a), n.attr("stroke-dasharray", o.join(" "));
2756
+ }
2757
+ t(Z, "applyNodePropertyBorders");
2758
+ var Xn = /* @__PURE__ */ t(async (t, r) => {
2759
+ let i;
2760
+ i = r.classes ? "node " + r.classes : "node default";
2761
+ let a = t.insert("g").attr("class", i).attr("id", r.domId || r.id), s = a.insert("rect", ":first-child"), c = a.insert("line"), l = a.insert("g").attr("class", "label"), d = r.labelText.flat ? r.labelText.flat() : r.labelText, f = "";
2762
+ f = typeof d == "object" ? d[0] : d, e.info("Label text abc79", f, d, typeof d == "object");
2763
+ let p = await U(l, f, r.labelStyle, !0, !0), m = {
2764
+ width: 0,
2765
+ height: 0
2766
+ };
2767
+ if (u(o())) {
2768
+ let e = p.children[0], t = n(p);
2769
+ m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2770
+ }
2771
+ e.info("Text 2", d);
2772
+ let h = d.slice(1, d.length), g = p.getBBox(), _ = await U(l, h.join ? h.join("<br/>") : h, r.labelStyle, !0, !0);
2773
+ if (u(o())) {
2774
+ let e = _.children[0], t = n(_);
2775
+ m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2776
+ }
2777
+ let v = r.padding / 2;
2778
+ return n(_).attr("transform", "translate( " + (m.width > g.width ? 0 : (g.width - m.width) / 2) + ", " + (g.height + v + 5) + ")"), n(p).attr("transform", "translate( " + (m.width < g.width ? 0 : -(g.width - m.width) / 2) + ", 0)"), m = l.node().getBBox(), l.attr("transform", "translate(" + -m.width / 2 + ", " + (-m.height / 2 - v + 3) + ")"), s.attr("class", "outer title-state").attr("x", -m.width / 2 - v).attr("y", -m.height / 2 - v).attr("width", m.width + r.padding).attr("height", m.height + r.padding), c.attr("class", "divider").attr("x1", -m.width / 2 - v).attr("x2", m.width / 2 + v).attr("y1", -m.height / 2 - v + g.height + v).attr("y2", -m.height / 2 - v + g.height + v), J(r, s), r.intersect = function(e) {
2779
+ return K.rect(r, e);
2780
+ }, a;
2781
+ }, "rectWithTitle"), Zn = /* @__PURE__ */ t(async (e, t) => {
2782
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
2783
+ return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
2784
+ return K.rect(t, e);
2785
+ }, n;
2786
+ }, "stadium"), Qn = /* @__PURE__ */ t(async (t, n) => {
2787
+ let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, X(n, void 0), !0), o = r.insert("circle", ":first-child");
2788
+ return o.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), e.info("Circle main"), J(n, o), n.intersect = function(t) {
2789
+ return e.info("Circle intersect", n, i.width / 2 + a, t), K.circle(n, i.width / 2 + a, t);
2790
+ }, r;
2791
+ }, "circle"), $n = /* @__PURE__ */ t(async (t, n) => {
2792
+ let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, X(n, void 0), !0), o = r.insert("g", ":first-child"), s = o.insert("circle"), c = o.insert("circle");
2793
+ return o.attr("class", n.class), s.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a + 5).attr("width", i.width + n.padding + 10).attr("height", i.height + n.padding + 10), c.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), e.info("DoubleCircle main"), J(n, s), n.intersect = function(t) {
2794
+ return e.info("DoubleCircle intersect", n, i.width / 2 + a + 5, t), K.circle(n, i.width / 2 + a + 5, t);
2795
+ }, r;
2796
+ }, "doublecircle"), er = /* @__PURE__ */ t(async (e, t) => {
2797
+ let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2798
+ {
2799
+ x: 0,
2800
+ y: 0
2801
+ },
2802
+ {
2803
+ x: i,
2804
+ y: 0
2805
+ },
2806
+ {
2807
+ x: i,
2808
+ y: -a
2809
+ },
2810
+ {
2811
+ x: 0,
2812
+ y: -a
2813
+ },
2814
+ {
2815
+ x: 0,
2816
+ y: 0
2817
+ },
2818
+ {
2819
+ x: -8,
2820
+ y: 0
2821
+ },
2822
+ {
2823
+ x: i + 8,
2824
+ y: 0
2825
+ },
2826
+ {
2827
+ x: i + 8,
2828
+ y: -a
2829
+ },
2830
+ {
2831
+ x: -8,
2832
+ y: -a
2833
+ },
2834
+ {
2835
+ x: -8,
2836
+ y: 0
2837
+ }
2838
+ ], s = Y(n, i, a, o);
2839
+ return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2840
+ return K.polygon(t, o, e);
2841
+ }, n;
2842
+ }, "subroutine"), tr = /* @__PURE__ */ t((e, t) => {
2843
+ let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
2844
+ return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
2845
+ return K.circle(t, 7, e);
2846
+ }, n;
2847
+ }, "start"), nr = /* @__PURE__ */ t((e, t, n) => {
2848
+ let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
2849
+ return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
2850
+ return K.rect(t, e);
2851
+ }, r;
2852
+ }, "forkJoin"), rr = {
2853
+ rhombus: In,
2854
+ composite: Jn,
2855
+ question: In,
2856
+ rect: qn,
2857
+ labelRect: Yn,
2858
+ rectWithTitle: Xn,
2859
+ choice: Ln,
2860
+ circle: Qn,
2861
+ doublecircle: $n,
2862
+ stadium: Zn,
2863
+ hexagon: Rn,
2864
+ block_arrow: zn,
2865
+ rect_left_inv_arrow: Bn,
2866
+ lean_right: Vn,
2867
+ lean_left: Hn,
2868
+ trapezoid: Un,
2869
+ inv_trapezoid: Wn,
2870
+ rect_right_inv_arrow: Gn,
2871
+ cylinder: Kn,
2872
+ start: tr,
2873
+ end: /* @__PURE__ */ t((e, t) => {
2874
+ let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
2875
+ return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
2876
+ return K.circle(t, 7, e);
2877
+ }, n;
2878
+ }, "end"),
2879
+ note: Pn,
2880
+ subroutine: er,
2881
+ fork: nr,
2882
+ join: nr,
2883
+ class_box: /* @__PURE__ */ t(async (e, t) => {
2884
+ let r = t.padding / 2, i;
2885
+ i = t.classes ? "node " + t.classes : "node default";
2886
+ let a = e.insert("g").attr("class", i).attr("id", t.domId || t.id), s = a.insert("rect", ":first-child"), c = a.insert("line"), l = a.insert("line"), d = 0, f = 4, p = a.insert("g").attr("class", "label"), m = 0, h = t.classData.annotations?.[0], g = await U(p, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), _ = g.getBBox();
2887
+ if (u(o())) {
2888
+ let e = g.children[0], t = n(g);
2889
+ _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
2890
+ }
2891
+ t.classData.annotations[0] && (f += _.height + 4, d += _.width);
2892
+ let v = t.classData.label;
2893
+ t.classData.type !== void 0 && t.classData.type !== "" && (u(o()) ? v += "&lt;" + t.classData.type + "&gt;" : v += "<" + t.classData.type + ">");
2894
+ let y = await U(p, v, t.labelStyle, !0, !0);
2895
+ n(y).attr("class", "classTitle");
2896
+ let b = y.getBBox();
2897
+ if (u(o())) {
2898
+ let e = y.children[0], t = n(y);
2899
+ b = e.getBoundingClientRect(), t.attr("width", b.width), t.attr("height", b.height);
2900
+ }
2901
+ f += b.height + 4, b.width > d && (d = b.width);
2902
+ let x = [];
2903
+ t.classData.members.forEach(async (e) => {
2904
+ let r = e.getDisplayDetails(), i = r.displayText;
2905
+ u(o()) && (i = i.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2906
+ let a = await U(p, i, r.cssStyle ? r.cssStyle : t.labelStyle, !0, !0), s = a.getBBox();
2907
+ if (u(o())) {
2908
+ let e = a.children[0], t = n(a);
2909
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
2910
+ }
2911
+ s.width > d && (d = s.width), f += s.height + 4, x.push(a);
2912
+ }), f += 8;
2913
+ let S = [];
2914
+ if (t.classData.methods.forEach(async (e) => {
2915
+ let r = e.getDisplayDetails(), i = r.displayText;
2916
+ u(o()) && (i = i.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2917
+ let a = await U(p, i, r.cssStyle ? r.cssStyle : t.labelStyle, !0, !0), s = a.getBBox();
2918
+ if (u(o())) {
2919
+ let e = a.children[0], t = n(a);
2920
+ s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
2921
+ }
2922
+ s.width > d && (d = s.width), f += s.height + 4, S.push(a);
2923
+ }), f += 8, h) {
2924
+ let e = (d - _.width) / 2;
2925
+ n(g).attr("transform", "translate( " + (-1 * d / 2 + e) + ", " + -1 * f / 2 + ")"), m = _.height + 4;
2926
+ }
2927
+ let C = (d - b.width) / 2;
2928
+ return n(y).attr("transform", "translate( " + (-1 * d / 2 + C) + ", " + (-1 * f / 2 + m) + ")"), m += b.height + 4, c.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -f / 2 - r + 8 + m).attr("y2", -f / 2 - r + 8 + m), m += 8, x.forEach((e) => {
2929
+ n(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * f / 2 + m + 8 / 2) + ")");
2930
+ let t = e?.getBBox();
2931
+ m += (t?.height ?? 0) + 4;
2932
+ }), m += 8, l.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -f / 2 - r + 8 + m).attr("y2", -f / 2 - r + 8 + m), m += 8, S.forEach((e) => {
2933
+ n(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * f / 2 + m) + ")");
2934
+ let t = e?.getBBox();
2935
+ m += (t?.height ?? 0) + 4;
2936
+ }), s.attr("style", t.style).attr("class", "outer title-state").attr("x", -d / 2 - r).attr("y", -(f / 2) - r).attr("width", d + t.padding).attr("height", f + t.padding), J(t, s), t.intersect = function(e) {
2937
+ return K.rect(t, e);
2938
+ }, a;
2939
+ }, "class_box")
2940
+ }, Q = {}, ir = /* @__PURE__ */ t(async (e, t, n) => {
2941
+ let r, i;
2942
+ if (t.link) {
2943
+ let a;
2944
+ o().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await rr[t.shape](r, t, n);
2945
+ } else i = await rr[t.shape](e, t, n), r = i;
2946
+ return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
2947
+ }, "insertNode"), ar = /* @__PURE__ */ t((t) => {
2948
+ let n = Q[t.id];
2949
+ e.trace("Transforming node", t.diff, t, "translate(" + (t.x - t.width / 2 - 5) + ", " + t.width / 2 + ")");
2950
+ let r = t.diff || 0;
2951
+ return t.clusterNode ? n.attr("transform", "translate(" + (t.x + r - t.width / 2) + ", " + (t.y - t.height / 2 - 8) + ")") : n.attr("transform", "translate(" + t.x + ", " + t.y + ")"), r;
2952
+ }, "positionNode");
2953
+ function or(e, t, n = !1) {
2954
+ let r = e, i = "default";
2955
+ (r?.classes?.length || 0) > 0 && (i = (r?.classes ?? []).join(" ")), i += " flowchart-label";
2956
+ let a = 0, o = "", s;
2957
+ switch (r.type) {
2958
+ case "round":
2959
+ a = 5, o = "rect";
2960
+ break;
2961
+ case "composite":
2962
+ a = 0, o = "composite", s = 0;
2963
+ break;
2964
+ case "square":
2965
+ o = "rect";
2966
+ break;
2967
+ case "diamond":
2968
+ o = "question";
2969
+ break;
2970
+ case "hexagon":
2971
+ o = "hexagon";
2972
+ break;
2973
+ case "block_arrow":
2974
+ o = "block_arrow";
2975
+ break;
2976
+ case "odd":
2977
+ o = "rect_left_inv_arrow";
2978
+ break;
2979
+ case "lean_right":
2980
+ o = "lean_right";
2981
+ break;
2982
+ case "lean_left":
2983
+ o = "lean_left";
2984
+ break;
2985
+ case "trapezoid":
2986
+ o = "trapezoid";
2987
+ break;
2988
+ case "inv_trapezoid":
2989
+ o = "inv_trapezoid";
2990
+ break;
2991
+ case "rect_left_inv_arrow":
2992
+ o = "rect_left_inv_arrow";
2993
+ break;
2994
+ case "circle":
2995
+ o = "circle";
2996
+ break;
2997
+ case "ellipse":
2998
+ o = "ellipse";
2999
+ break;
3000
+ case "stadium":
3001
+ o = "stadium";
3002
+ break;
3003
+ case "subroutine":
3004
+ o = "subroutine";
3005
+ break;
3006
+ case "cylinder":
3007
+ o = "cylinder";
3008
+ break;
3009
+ case "group":
3010
+ o = "rect";
3011
+ break;
3012
+ case "doublecircle":
3013
+ o = "doublecircle";
3014
+ break;
3015
+ default: o = "rect";
3016
+ }
3017
+ let c = y(r?.styles ?? []), l = r.label, u = r.size ?? {
3018
+ width: 0,
3019
+ height: 0,
3020
+ x: 0,
3021
+ y: 0
3022
+ };
3023
+ return {
3024
+ labelStyle: c.labelStyle,
3025
+ shape: o,
3026
+ labelText: l,
3027
+ rx: a,
3028
+ ry: a,
3029
+ class: i,
3030
+ style: c.style,
3031
+ id: r.id,
3032
+ directions: r.directions,
3033
+ width: u.width,
3034
+ height: u.height,
3035
+ x: u.x,
3036
+ y: u.y,
3037
+ positioned: n,
3038
+ intersect: void 0,
3039
+ type: r.type,
3040
+ padding: s ?? d()?.block?.padding ?? 0
3041
+ };
3042
+ }
3043
+ t(or, "getNodeFromBlock");
3044
+ async function sr(e, t, n) {
3045
+ let r = or(t, n, !1);
3046
+ if (r.type === "group") return;
3047
+ let i = await ir(e, r, { config: d() }), a = i.node().getBBox(), o = n.getBlock(r.id);
3048
+ o.size = {
3049
+ width: a.width,
3050
+ height: a.height,
3051
+ x: 0,
3052
+ y: 0,
3053
+ node: i
3054
+ }, n.setBlock(o), i.remove();
3055
+ }
3056
+ t(sr, "calculateBlockSize");
3057
+ async function cr(e, t, n) {
3058
+ let r = or(t, n, !0);
3059
+ n.getBlock(r.id).type !== "space" && (await ir(e, r, { config: d() }), t.intersect = r?.intersect, ar(r));
3060
+ }
3061
+ t(cr, "insertBlockPositioned");
3062
+ async function $(e, t, n, r) {
3063
+ for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
3064
+ }
3065
+ t($, "performOperations");
3066
+ async function lr(e, t, n) {
3067
+ await $(e, t, n, sr);
3068
+ }
3069
+ t(lr, "calculateBlockSizes");
3070
+ async function ur(e, t, n) {
3071
+ await $(e, t, n, cr);
3072
+ }
3073
+ t(ur, "insertBlocks");
3074
+ async function dr(e, t, n, r, i) {
3075
+ let a = new ge({
3076
+ multigraph: !0,
3077
+ compound: !0
3078
+ });
3079
+ a.setGraph({
3080
+ rankdir: "TB",
3081
+ nodesep: 10,
3082
+ ranksep: 10,
3083
+ marginx: 8,
3084
+ marginy: 8
3085
+ });
3086
+ for (let e of n) e.size && a.setNode(e.id, {
3087
+ width: e.size.width,
3088
+ height: e.size.height,
3089
+ intersect: e.intersect
3090
+ });
3091
+ for (let n of t) if (n.start && n.end) {
3092
+ let t = r.getBlock(n.start), o = r.getBlock(n.end);
3093
+ if (t?.size && o?.size) {
3094
+ let r = t.size, s = o.size, c = [
3095
+ {
3096
+ x: r.x,
3097
+ y: r.y
3098
+ },
3099
+ {
3100
+ x: r.x + (s.x - r.x) / 2,
3101
+ y: r.y + (s.y - r.y) / 2
3102
+ },
3103
+ {
3104
+ x: s.x,
3105
+ y: s.y
3106
+ }
3107
+ ];
3108
+ bn(e, {
3109
+ v: n.start,
3110
+ w: n.end,
3111
+ name: n.id
3112
+ }, {
3113
+ ...n,
3114
+ arrowTypeEnd: n.arrowTypeEnd,
3115
+ arrowTypeStart: n.arrowTypeStart,
3116
+ points: c,
3117
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3118
+ }, void 0, "block", a, i), n.label && (await hn(e, {
3119
+ ...n,
3120
+ label: n.label,
3121
+ labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3122
+ arrowTypeEnd: n.arrowTypeEnd,
3123
+ arrowTypeStart: n.arrowTypeStart,
3124
+ points: c,
3125
+ classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
3126
+ }), gn({
3127
+ ...n,
3128
+ x: c[1].x,
3129
+ y: c[1].y
3130
+ }, { originalPath: c }));
3131
+ }
3132
+ }
3133
+ }
3134
+ t(dr, "insertEdges");
3135
+ var fr = {
3136
+ parser: It,
3137
+ db: $t,
3138
+ renderer: {
3139
+ draw: /* @__PURE__ */ t(async function(t, r, i, a) {
3140
+ let { securityLevel: o, block: c } = d(), l = a.db, u;
3141
+ o === "sandbox" && (u = n("#i" + r));
3142
+ let f = n(o === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = o === "sandbox" ? f.select(`[id="${r}"]`) : n(`[id="${r}"]`);
3143
+ an(p, [
3144
+ "point",
3145
+ "circle",
3146
+ "cross"
3147
+ ], a.type, r);
3148
+ let m = l.getBlocks(), h = l.getBlocksFlat(), g = l.getEdges(), _ = p.insert("g").attr("class", "block");
3149
+ await lr(_, m, l);
3150
+ let v = un(l);
3151
+ if (await ur(_, m, l), await dr(_, g, h, l, r), v) {
3152
+ let t = v, n = Math.max(1, Math.round(.125 * (t.width / t.height))), r = t.height + n + 10, i = t.width + 10, { useMaxWidth: a } = c;
3153
+ s(p, r, i, !!a), e.debug("Here Bounds", v, t), p.attr("viewBox", `${t.x - 5} ${t.y - 5} ${t.width + 10} ${t.height + 10}`);
3154
+ }
3155
+ }, "draw"),
3156
+ getClasses: /* @__PURE__ */ t(function(e, t) {
3157
+ return t.db.getClasses();
3158
+ }, "getClasses")
3159
+ },
3160
+ styles: tn
3161
+ };
3162
+ //#endregion
3163
+ export { fr as diagram };
3164
+
3165
+ //# sourceMappingURL=blockDiagram-WCTKOSBZ-DWgb5Ghz.js.map