@spteck/react-controls-v2 2.3.5 → 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-B7ANnE_H.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-DEUflJGE.cjs +0 -2
  445. package/dist/_arrayEach-tusrzNIw.js +0 -61
  446. package/dist/ar-C1pLt8fa.js +0 -219
  447. package/dist/ar-Jzw7PLrc.cjs +0 -2
  448. package/dist/arc-CDaXffrF.cjs +0 -2
  449. package/dist/arc-DfZkgffF.js +0 -132
  450. package/dist/architecture-7HQA4BMR-BwNHkZOR.cjs +0 -2
  451. package/dist/architecture-7HQA4BMR-ZD14yPTj.js +0 -6
  452. package/dist/architectureDiagram-VXUJARFQ-C2ZHmMwH.cjs +0 -2
  453. package/dist/architectureDiagram-VXUJARFQ-ZqTwLC_K.js +0 -8680
  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-De0hLG3f.cjs +0 -2
  459. package/dist/blockDiagram-VD42YOAC-Dik4nU5R.js +0 -3756
  460. package/dist/bs-BoW04lRb.cjs +0 -2
  461. package/dist/bs-CEe_gjEx.js +0 -219
  462. package/dist/c4Diagram-YG6GDRKO-B97gU-WH.cjs +0 -2
  463. package/dist/c4Diagram-YG6GDRKO-BG0ZffB9.js +0 -2483
  464. package/dist/ca-Bsy2Y5pS.cjs +0 -2
  465. package/dist/ca-CKpd72XI.js +0 -219
  466. package/dist/channel-D35vM90y.cjs +0 -2
  467. package/dist/channel-DjCO9_Le.js +0 -8
  468. package/dist/chunk-4BX2VUAB-BOD7DqfU.cjs +0 -2
  469. package/dist/chunk-4BX2VUAB-ahGWfN9s.js +0 -18
  470. package/dist/chunk-55IACEB6-BE4LiqRj.js +0 -14
  471. package/dist/chunk-55IACEB6-aYtTY_gp.cjs +0 -2
  472. package/dist/chunk-B4BG7PRW-D7Ivw3g-.cjs +0 -2
  473. package/dist/chunk-B4BG7PRW-l_C90AO9.js +0 -1828
  474. package/dist/chunk-DI55MBZ5-CML-bpvH.cjs +0 -2
  475. package/dist/chunk-DI55MBZ5-CkzP_mAJ.js +0 -1928
  476. package/dist/chunk-FMBD7UC4-up_42EsF.cjs +0 -2
  477. package/dist/chunk-QN33PNHL-BQktMy72.js +0 -26
  478. package/dist/chunk-QN33PNHL-D3tw3Y1o.cjs +0 -2
  479. package/dist/chunk-QZHKN3VN-OgubCPUl.cjs +0 -2
  480. package/dist/chunk-QZHKN3VN-VbliCc4p.js +0 -18
  481. package/dist/chunk-TZMSLE5B-B2adgZpn.cjs +0 -2
  482. package/dist/chunk-TZMSLE5B-ogHnlNAL.js +0 -109
  483. package/dist/classDiagram-2ON5EDUG-DV3kGCmC.cjs +0 -2
  484. package/dist/classDiagram-2ON5EDUG-NFuoveOc.js +0 -20
  485. package/dist/classDiagram-v2-WZHVMYZB-DV3kGCmC.cjs +0 -2
  486. package/dist/classDiagram-v2-WZHVMYZB-NFuoveOc.js +0 -20
  487. package/dist/cose-bilkent-S5V4N54A-C1H2cJER.cjs +0 -2
  488. package/dist/cose-bilkent-S5V4N54A-CFFp3u42.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-BbRK6OVd.js +0 -696
  498. package/dist/dagre-6UL2VRFP-DceBzHY0.cjs +0 -2
  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-CCRrPaN5.js +0 -848
  504. package/dist/diagram-PSM6KHXK-Dap3wmh3.cjs +0 -2
  505. package/dist/diagram-QEK2KX5R-CwkM4da6.js +0 -305
  506. package/dist/diagram-QEK2KX5R-CycnDjjr.cjs +0 -2
  507. package/dist/diagram-S2PKOQOG-BjWuQflk.js +0 -212
  508. package/dist/diagram-S2PKOQOG-C8bvmCRh.cjs +0 -2
  509. package/dist/el-CBS9mHS3.js +0 -219
  510. package/dist/el-DbtZj-ph.cjs +0 -2
  511. package/dist/erDiagram-Q2GNP2WA-CVwE6kCH.cjs +0 -2
  512. package/dist/erDiagram-Q2GNP2WA-DK_cVUc0.js +0 -1160
  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-BC9ZXfqx.js +0 -2339
  522. package/dist/flowDiagram-NV44I4VS-BmvwN_Qr.cjs +0 -2
  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-Cxvs4xUM.cjs +0 -2
  528. package/dist/ganttDiagram-JELNMOA3-DCPYcGQ7.js +0 -3652
  529. package/dist/gitGraph-G5XIXVHT-CGc4Dw_9.cjs +0 -2
  530. package/dist/gitGraph-G5XIXVHT-D2TpybaV.js +0 -6
  531. package/dist/gitGraphDiagram-V2S2FVAM-BLwOtAPI.js +0 -1215
  532. package/dist/gitGraphDiagram-V2S2FVAM-CxKeCiX6.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-Bo3Feswn.js +0 -55587
  548. package/dist/index-C6Yk2BjU.cjs +0 -428
  549. package/dist/info-VBDWY6EO-Bp4BP7Eb.js +0 -6
  550. package/dist/info-VBDWY6EO-dcVOFyXm.cjs +0 -2
  551. package/dist/infoDiagram-HS3SLOUP-BH_AfMqs.js +0 -32
  552. package/dist/infoDiagram-HS3SLOUP-BZqbkXM8.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-B6LA5FxS.js +0 -1255
  560. package/dist/journeyDiagram-XKPGCS4Q-D738Gof9.cjs +0 -2
  561. package/dist/kanban-definition-3W4ZIXB7-BiudWCGQ.js +0 -1049
  562. package/dist/kanban-definition-3W4ZIXB7-CYpFGeof.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-CsAdQFhD.js +0 -341
  572. package/dist/linear-Cu3RCqOH.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-Bu4KbMVz.js +0 -23511
  578. package/dist/maplibre-gl-oIss86aW.cjs +0 -6
  579. package/dist/mermaid-parser.core-BeAFxlhX.cjs +0 -2
  580. package/dist/mermaid-parser.core-EaBMrmE0.js +0 -23731
  581. package/dist/mindmap-definition-VGOIOE7T-BdPsEBSQ.cjs +0 -2
  582. package/dist/mindmap-definition-VGOIOE7T-CV_iinaV.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-CxyBgIUF.js +0 -6
  594. package/dist/packet-DYOGHKS2-lB1ZNdq9.cjs +0 -2
  595. package/dist/pie-VRWISCQL-CvTcddz_.cjs +0 -2
  596. package/dist/pie-VRWISCQL-yxV8OJyl.js +0 -6
  597. package/dist/pieDiagram-ADFJNKIX-B0W0v6lo.cjs +0 -2
  598. package/dist/pieDiagram-ADFJNKIX-CkAS8Z8i.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-Bzqn0a-l.js +0 -1338
  604. package/dist/quadrantDiagram-AYHSOK5B-SWF7EmO_.cjs +0 -2
  605. package/dist/radar-ZZBFDIW7-Cx_1gtna.js +0 -6
  606. package/dist/radar-ZZBFDIW7-Dt6yDSJ-.cjs +0 -2
  607. package/dist/requirementDiagram-UZGBJVZJ-CG-2-gxk.cjs +0 -2
  608. package/dist/requirementDiagram-UZGBJVZJ-DYGD-StR.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-DhUxbYSw.js +0 -1194
  614. package/dist/sankeyDiagram-TZEHDZUN-sLCJH1s2.cjs +0 -2
  615. package/dist/sequenceDiagram-WL72ISMW--4TVFyeB.js +0 -3882
  616. package/dist/sequenceDiagram-WL72ISMW-CFPZgLxH.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-CF_Lwk8j.js +0 -449
  624. package/dist/stateDiagram-FKZM4ZOC-D8CSpH_U.cjs +0 -2
  625. package/dist/stateDiagram-v2-4FDKWEC3-BDRDUNPf.cjs +0 -2
  626. package/dist/stateDiagram-v2-4FDKWEC3-BavZNkxV.js +0 -20
  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-DVBW6O_2.cjs +0 -2
  632. package/dist/timeline-definition-IT6M3QCI-Du5tfms8.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-7BeIVnJ2.cjs +0 -2
  636. package/dist/treemap-GDKQZRPO-Dc6Nwpnf.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-BMoq4LTz.js +0 -1887
  642. package/dist/xychartDiagram-PRI3JC2R-BbGEetiQ.cjs +0 -2
  643. package/dist/zh-CGcOiJ3s.cjs +0 -2
  644. package/dist/zh-GsCLn8OE.js +0 -219
@@ -1,1928 +0,0 @@
1
- var _a;
2
- import { g as getDiagramElement } from "./chunk-55IACEB6-BE4LiqRj.js";
3
- import { s as setupViewPortForSVG } from "./chunk-QN33PNHL-BQktMy72.js";
4
- import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as setDiagramTitle, t as getDiagramTitle, ab as generateId, k as common_default, z as clear } from "./index-Bo3Feswn.js";
5
- var parser = function() {
6
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
7
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
8
- return o2;
9
- }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 16], $V7 = [1, 17], $V8 = [1, 18], $V9 = [1, 19], $Va = [1, 33], $Vb = [1, 20], $Vc = [1, 21], $Vd = [1, 22], $Ve = [1, 23], $Vf = [1, 24], $Vg = [1, 26], $Vh = [1, 27], $Vi = [1, 28], $Vj = [1, 29], $Vk = [1, 30], $Vl = [1, 31], $Vm = [1, 32], $Vn = [1, 35], $Vo = [1, 36], $Vp = [1, 37], $Vq = [1, 38], $Vr = [1, 34], $Vs = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], $Vt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 39, 40, 41, 45, 48, 51, 52, 53, 54, 57], $Vu = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57];
10
- var parser2 = {
11
- trace: /* @__PURE__ */ __name(function trace() {
12
- }, "trace"),
13
- yy: {},
14
- symbols_: { "error": 2, "start": 3, "SPACE": 4, "NL": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "classDefStatement": 10, "styleStatement": 11, "cssClassStatement": 12, "idStatement": 13, "DESCR": 14, "-->": 15, "HIDE_EMPTY": 16, "scale": 17, "WIDTH": 18, "COMPOSIT_STATE": 19, "STRUCT_START": 20, "STRUCT_STOP": 21, "STATE_DESCR": 22, "AS": 23, "ID": 24, "FORK": 25, "JOIN": 26, "CHOICE": 27, "CONCURRENT": 28, "note": 29, "notePosition": 30, "NOTE_TEXT": 31, "direction": 32, "acc_title": 33, "acc_title_value": 34, "acc_descr": 35, "acc_descr_value": 36, "acc_descr_multiline_value": 37, "CLICK": 38, "STRING": 39, "HREF": 40, "classDef": 41, "CLASSDEF_ID": 42, "CLASSDEF_STYLEOPTS": 43, "DEFAULT": 44, "style": 45, "STYLE_IDS": 46, "STYLEDEF_STYLEOPTS": 47, "class": 48, "CLASSENTITY_IDS": 49, "STYLECLASS": 50, "direction_tb": 51, "direction_bt": 52, "direction_rl": 53, "direction_lr": 54, "eol": 55, ";": 56, "EDGE_STATE": 57, "STYLE_SEPARATOR": 58, "left_of": 59, "right_of": 60, "$accept": 0, "$end": 1 },
15
- terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "CLICK", 39: "STRING", 40: "HREF", 41: "classDef", 42: "CLASSDEF_ID", 43: "CLASSDEF_STYLEOPTS", 44: "DEFAULT", 45: "style", 46: "STYLE_IDS", 47: "STYLEDEF_STYLEOPTS", 48: "class", 49: "CLASSENTITY_IDS", 50: "STYLECLASS", 51: "direction_tb", 52: "direction_bt", 53: "direction_rl", 54: "direction_lr", 56: ";", 57: "EDGE_STATE", 58: "STYLE_SEPARATOR", 59: "left_of", 60: "right_of" },
16
- productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [9, 5], [9, 5], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [55, 1], [55, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
17
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
18
- var $0 = $$.length - 1;
19
- switch (yystate) {
20
- case 3:
21
- yy.setRootDoc($$[$0]);
22
- return $$[$0];
23
- case 4:
24
- this.$ = [];
25
- break;
26
- case 5:
27
- if ($$[$0] != "nl") {
28
- $$[$0 - 1].push($$[$0]);
29
- this.$ = $$[$0 - 1];
30
- }
31
- break;
32
- case 6:
33
- case 7:
34
- this.$ = $$[$0];
35
- break;
36
- case 8:
37
- this.$ = "nl";
38
- break;
39
- case 12:
40
- this.$ = $$[$0];
41
- break;
42
- case 13:
43
- const stateStmt = $$[$0 - 1];
44
- stateStmt.description = yy.trimColon($$[$0]);
45
- this.$ = stateStmt;
46
- break;
47
- case 14:
48
- this.$ = { stmt: "relation", state1: $$[$0 - 2], state2: $$[$0] };
49
- break;
50
- case 15:
51
- const relDescription = yy.trimColon($$[$0]);
52
- this.$ = { stmt: "relation", state1: $$[$0 - 3], state2: $$[$0 - 1], description: relDescription };
53
- break;
54
- case 19:
55
- this.$ = { stmt: "state", id: $$[$0 - 3], type: "default", description: "", doc: $$[$0 - 1] };
56
- break;
57
- case 20:
58
- var id = $$[$0];
59
- var description = $$[$0 - 2].trim();
60
- if ($$[$0].match(":")) {
61
- var parts = $$[$0].split(":");
62
- id = parts[0];
63
- description = [description, parts[1]];
64
- }
65
- this.$ = { stmt: "state", id, type: "default", description };
66
- break;
67
- case 21:
68
- this.$ = { stmt: "state", id: $$[$0 - 3], type: "default", description: $$[$0 - 5], doc: $$[$0 - 1] };
69
- break;
70
- case 22:
71
- this.$ = { stmt: "state", id: $$[$0], type: "fork" };
72
- break;
73
- case 23:
74
- this.$ = { stmt: "state", id: $$[$0], type: "join" };
75
- break;
76
- case 24:
77
- this.$ = { stmt: "state", id: $$[$0], type: "choice" };
78
- break;
79
- case 25:
80
- this.$ = { stmt: "state", id: yy.getDividerId(), type: "divider" };
81
- break;
82
- case 26:
83
- this.$ = { stmt: "state", id: $$[$0 - 1].trim(), note: { position: $$[$0 - 2].trim(), text: $$[$0].trim() } };
84
- break;
85
- case 29:
86
- this.$ = $$[$0].trim();
87
- yy.setAccTitle(this.$);
88
- break;
89
- case 30:
90
- case 31:
91
- this.$ = $$[$0].trim();
92
- yy.setAccDescription(this.$);
93
- break;
94
- case 32:
95
- this.$ = {
96
- stmt: "click",
97
- id: $$[$0 - 3],
98
- url: $$[$0 - 2],
99
- tooltip: $$[$0 - 1]
100
- };
101
- break;
102
- case 33:
103
- this.$ = {
104
- stmt: "click",
105
- id: $$[$0 - 3],
106
- url: $$[$0 - 1],
107
- tooltip: ""
108
- };
109
- break;
110
- case 34:
111
- case 35:
112
- this.$ = { stmt: "classDef", id: $$[$0 - 1].trim(), classes: $$[$0].trim() };
113
- break;
114
- case 36:
115
- this.$ = { stmt: "style", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
116
- break;
117
- case 37:
118
- this.$ = { stmt: "applyClass", id: $$[$0 - 1].trim(), styleClass: $$[$0].trim() };
119
- break;
120
- case 38:
121
- yy.setDirection("TB");
122
- this.$ = { stmt: "dir", value: "TB" };
123
- break;
124
- case 39:
125
- yy.setDirection("BT");
126
- this.$ = { stmt: "dir", value: "BT" };
127
- break;
128
- case 40:
129
- yy.setDirection("RL");
130
- this.$ = { stmt: "dir", value: "RL" };
131
- break;
132
- case 41:
133
- yy.setDirection("LR");
134
- this.$ = { stmt: "dir", value: "LR" };
135
- break;
136
- case 44:
137
- case 45:
138
- this.$ = { stmt: "state", id: $$[$0].trim(), type: "default", description: "" };
139
- break;
140
- case 46:
141
- this.$ = { stmt: "state", id: $$[$0 - 2].trim(), classes: [$$[$0].trim()], type: "default", description: "" };
142
- break;
143
- case 47:
144
- this.$ = { stmt: "state", id: $$[$0 - 2].trim(), classes: [$$[$0].trim()], type: "default", description: "" };
145
- break;
146
- }
147
- }, "anonymous"),
148
- table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 41, 45, 48, 51, 52, 53, 54, 57], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 5]), { 9: 39, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 7]), o($Vs, [2, 8]), o($Vs, [2, 9]), o($Vs, [2, 10]), o($Vs, [2, 11]), o($Vs, [2, 12], { 14: [1, 40], 15: [1, 41] }), o($Vs, [2, 16]), { 18: [1, 42] }, o($Vs, [2, 18], { 20: [1, 43] }), { 23: [1, 44] }, o($Vs, [2, 22]), o($Vs, [2, 23]), o($Vs, [2, 24]), o($Vs, [2, 25]), { 30: 45, 31: [1, 46], 59: [1, 47], 60: [1, 48] }, o($Vs, [2, 28]), { 34: [1, 49] }, { 36: [1, 50] }, o($Vs, [2, 31]), { 13: 51, 24: $Va, 57: $Vr }, { 42: [1, 52], 44: [1, 53] }, { 46: [1, 54] }, { 49: [1, 55] }, o($Vt, [2, 44], { 58: [1, 56] }), o($Vt, [2, 45], { 58: [1, 57] }), o($Vs, [2, 38]), o($Vs, [2, 39]), o($Vs, [2, 40]), o($Vs, [2, 41]), o($Vs, [2, 6]), o($Vs, [2, 13]), { 13: 58, 24: $Va, 57: $Vr }, o($Vs, [2, 17]), o($Vu, $V3, { 7: 59 }), { 24: [1, 60] }, { 24: [1, 61] }, { 23: [1, 62] }, { 24: [2, 48] }, { 24: [2, 49] }, o($Vs, [2, 29]), o($Vs, [2, 30]), { 39: [1, 63], 40: [1, 64] }, { 43: [1, 65] }, { 43: [1, 66] }, { 47: [1, 67] }, { 50: [1, 68] }, { 24: [1, 69] }, { 24: [1, 70] }, o($Vs, [2, 14], { 14: [1, 71] }), { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 21: [1, 72], 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 20], { 20: [1, 73] }), { 31: [1, 74] }, { 24: [1, 75] }, { 39: [1, 76] }, { 39: [1, 77] }, o($Vs, [2, 34]), o($Vs, [2, 35]), o($Vs, [2, 36]), o($Vs, [2, 37]), o($Vt, [2, 46]), o($Vt, [2, 47]), o($Vs, [2, 15]), o($Vs, [2, 19]), o($Vu, $V3, { 7: 78 }), o($Vs, [2, 26]), o($Vs, [2, 27]), { 5: [1, 79] }, { 5: [1, 80] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: $V6, 17: $V7, 19: $V8, 21: [1, 81], 22: $V9, 24: $Va, 25: $Vb, 26: $Vc, 27: $Vd, 28: $Ve, 29: $Vf, 32: 25, 33: $Vg, 35: $Vh, 37: $Vi, 38: $Vj, 41: $Vk, 45: $Vl, 48: $Vm, 51: $Vn, 52: $Vo, 53: $Vp, 54: $Vq, 57: $Vr }, o($Vs, [2, 32]), o($Vs, [2, 33]), o($Vs, [2, 21])],
149
- defaultActions: { 5: [2, 1], 6: [2, 2], 47: [2, 48], 48: [2, 49] },
150
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
151
- if (hash.recoverable) {
152
- this.trace(str);
153
- } else {
154
- var error = new Error(str);
155
- error.hash = hash;
156
- throw error;
157
- }
158
- }, "parseError"),
159
- parse: /* @__PURE__ */ __name(function parse(input) {
160
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
161
- var args = lstack.slice.call(arguments, 1);
162
- var lexer2 = Object.create(this.lexer);
163
- var sharedState = { yy: {} };
164
- for (var k in this.yy) {
165
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
166
- sharedState.yy[k] = this.yy[k];
167
- }
168
- }
169
- lexer2.setInput(input, sharedState.yy);
170
- sharedState.yy.lexer = lexer2;
171
- sharedState.yy.parser = this;
172
- if (typeof lexer2.yylloc == "undefined") {
173
- lexer2.yylloc = {};
174
- }
175
- var yyloc = lexer2.yylloc;
176
- lstack.push(yyloc);
177
- var ranges = lexer2.options && lexer2.options.ranges;
178
- if (typeof sharedState.yy.parseError === "function") {
179
- this.parseError = sharedState.yy.parseError;
180
- } else {
181
- this.parseError = Object.getPrototypeOf(this).parseError;
182
- }
183
- function popStack(n) {
184
- stack.length = stack.length - 2 * n;
185
- vstack.length = vstack.length - n;
186
- lstack.length = lstack.length - n;
187
- }
188
- __name(popStack, "popStack");
189
- function lex() {
190
- var token;
191
- token = tstack.pop() || lexer2.lex() || EOF;
192
- if (typeof token !== "number") {
193
- if (token instanceof Array) {
194
- tstack = token;
195
- token = tstack.pop();
196
- }
197
- token = self.symbols_[token] || token;
198
- }
199
- return token;
200
- }
201
- __name(lex, "lex");
202
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
203
- while (true) {
204
- state = stack[stack.length - 1];
205
- if (this.defaultActions[state]) {
206
- action = this.defaultActions[state];
207
- } else {
208
- if (symbol === null || typeof symbol == "undefined") {
209
- symbol = lex();
210
- }
211
- action = table[state] && table[state][symbol];
212
- }
213
- if (typeof action === "undefined" || !action.length || !action[0]) {
214
- var errStr = "";
215
- expected = [];
216
- for (p in table[state]) {
217
- if (this.terminals_[p] && p > TERROR) {
218
- expected.push("'" + this.terminals_[p] + "'");
219
- }
220
- }
221
- if (lexer2.showPosition) {
222
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
223
- } else {
224
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
225
- }
226
- this.parseError(errStr, {
227
- text: lexer2.match,
228
- token: this.terminals_[symbol] || symbol,
229
- line: lexer2.yylineno,
230
- loc: yyloc,
231
- expected
232
- });
233
- }
234
- if (action[0] instanceof Array && action.length > 1) {
235
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
236
- }
237
- switch (action[0]) {
238
- case 1:
239
- stack.push(symbol);
240
- vstack.push(lexer2.yytext);
241
- lstack.push(lexer2.yylloc);
242
- stack.push(action[1]);
243
- symbol = null;
244
- {
245
- yyleng = lexer2.yyleng;
246
- yytext = lexer2.yytext;
247
- yylineno = lexer2.yylineno;
248
- yyloc = lexer2.yylloc;
249
- }
250
- break;
251
- case 2:
252
- len = this.productions_[action[1]][1];
253
- yyval.$ = vstack[vstack.length - len];
254
- yyval._$ = {
255
- first_line: lstack[lstack.length - (len || 1)].first_line,
256
- last_line: lstack[lstack.length - 1].last_line,
257
- first_column: lstack[lstack.length - (len || 1)].first_column,
258
- last_column: lstack[lstack.length - 1].last_column
259
- };
260
- if (ranges) {
261
- yyval._$.range = [
262
- lstack[lstack.length - (len || 1)].range[0],
263
- lstack[lstack.length - 1].range[1]
264
- ];
265
- }
266
- r = this.performAction.apply(yyval, [
267
- yytext,
268
- yyleng,
269
- yylineno,
270
- sharedState.yy,
271
- action[1],
272
- vstack,
273
- lstack
274
- ].concat(args));
275
- if (typeof r !== "undefined") {
276
- return r;
277
- }
278
- if (len) {
279
- stack = stack.slice(0, -1 * len * 2);
280
- vstack = vstack.slice(0, -1 * len);
281
- lstack = lstack.slice(0, -1 * len);
282
- }
283
- stack.push(this.productions_[action[1]][0]);
284
- vstack.push(yyval.$);
285
- lstack.push(yyval._$);
286
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
287
- stack.push(newState);
288
- break;
289
- case 3:
290
- return true;
291
- }
292
- }
293
- return true;
294
- }, "parse")
295
- };
296
- var lexer = /* @__PURE__ */ function() {
297
- var lexer2 = {
298
- EOF: 1,
299
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
300
- if (this.yy.parser) {
301
- this.yy.parser.parseError(str, hash);
302
- } else {
303
- throw new Error(str);
304
- }
305
- }, "parseError"),
306
- // resets the lexer, sets new input
307
- setInput: /* @__PURE__ */ __name(function(input, yy) {
308
- this.yy = yy || this.yy || {};
309
- this._input = input;
310
- this._more = this._backtrack = this.done = false;
311
- this.yylineno = this.yyleng = 0;
312
- this.yytext = this.matched = this.match = "";
313
- this.conditionStack = ["INITIAL"];
314
- this.yylloc = {
315
- first_line: 1,
316
- first_column: 0,
317
- last_line: 1,
318
- last_column: 0
319
- };
320
- if (this.options.ranges) {
321
- this.yylloc.range = [0, 0];
322
- }
323
- this.offset = 0;
324
- return this;
325
- }, "setInput"),
326
- // consumes and returns one char from the input
327
- input: /* @__PURE__ */ __name(function() {
328
- var ch = this._input[0];
329
- this.yytext += ch;
330
- this.yyleng++;
331
- this.offset++;
332
- this.match += ch;
333
- this.matched += ch;
334
- var lines = ch.match(/(?:\r\n?|\n).*/g);
335
- if (lines) {
336
- this.yylineno++;
337
- this.yylloc.last_line++;
338
- } else {
339
- this.yylloc.last_column++;
340
- }
341
- if (this.options.ranges) {
342
- this.yylloc.range[1]++;
343
- }
344
- this._input = this._input.slice(1);
345
- return ch;
346
- }, "input"),
347
- // unshifts one char (or a string) into the input
348
- unput: /* @__PURE__ */ __name(function(ch) {
349
- var len = ch.length;
350
- var lines = ch.split(/(?:\r\n?|\n)/g);
351
- this._input = ch + this._input;
352
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
353
- this.offset -= len;
354
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
355
- this.match = this.match.substr(0, this.match.length - 1);
356
- this.matched = this.matched.substr(0, this.matched.length - 1);
357
- if (lines.length - 1) {
358
- this.yylineno -= lines.length - 1;
359
- }
360
- var r = this.yylloc.range;
361
- this.yylloc = {
362
- first_line: this.yylloc.first_line,
363
- last_line: this.yylineno + 1,
364
- first_column: this.yylloc.first_column,
365
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
366
- };
367
- if (this.options.ranges) {
368
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
369
- }
370
- this.yyleng = this.yytext.length;
371
- return this;
372
- }, "unput"),
373
- // When called from action, caches matched text and appends it on next action
374
- more: /* @__PURE__ */ __name(function() {
375
- this._more = true;
376
- return this;
377
- }, "more"),
378
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
379
- reject: /* @__PURE__ */ __name(function() {
380
- if (this.options.backtrack_lexer) {
381
- this._backtrack = true;
382
- } else {
383
- 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(), {
384
- text: "",
385
- token: null,
386
- line: this.yylineno
387
- });
388
- }
389
- return this;
390
- }, "reject"),
391
- // retain first n characters of the match
392
- less: /* @__PURE__ */ __name(function(n) {
393
- this.unput(this.match.slice(n));
394
- }, "less"),
395
- // displays already matched input, i.e. for error messages
396
- pastInput: /* @__PURE__ */ __name(function() {
397
- var past = this.matched.substr(0, this.matched.length - this.match.length);
398
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
399
- }, "pastInput"),
400
- // displays upcoming input, i.e. for error messages
401
- upcomingInput: /* @__PURE__ */ __name(function() {
402
- var next = this.match;
403
- if (next.length < 20) {
404
- next += this._input.substr(0, 20 - next.length);
405
- }
406
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
407
- }, "upcomingInput"),
408
- // displays the character position where the lexing error occurred, i.e. for error messages
409
- showPosition: /* @__PURE__ */ __name(function() {
410
- var pre = this.pastInput();
411
- var c = new Array(pre.length + 1).join("-");
412
- return pre + this.upcomingInput() + "\n" + c + "^";
413
- }, "showPosition"),
414
- // test the lexed token: return FALSE when not a match, otherwise return token
415
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
416
- var token, lines, backup;
417
- if (this.options.backtrack_lexer) {
418
- backup = {
419
- yylineno: this.yylineno,
420
- yylloc: {
421
- first_line: this.yylloc.first_line,
422
- last_line: this.last_line,
423
- first_column: this.yylloc.first_column,
424
- last_column: this.yylloc.last_column
425
- },
426
- yytext: this.yytext,
427
- match: this.match,
428
- matches: this.matches,
429
- matched: this.matched,
430
- yyleng: this.yyleng,
431
- offset: this.offset,
432
- _more: this._more,
433
- _input: this._input,
434
- yy: this.yy,
435
- conditionStack: this.conditionStack.slice(0),
436
- done: this.done
437
- };
438
- if (this.options.ranges) {
439
- backup.yylloc.range = this.yylloc.range.slice(0);
440
- }
441
- }
442
- lines = match[0].match(/(?:\r\n?|\n).*/g);
443
- if (lines) {
444
- this.yylineno += lines.length;
445
- }
446
- this.yylloc = {
447
- first_line: this.yylloc.last_line,
448
- last_line: this.yylineno + 1,
449
- first_column: this.yylloc.last_column,
450
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
451
- };
452
- this.yytext += match[0];
453
- this.match += match[0];
454
- this.matches = match;
455
- this.yyleng = this.yytext.length;
456
- if (this.options.ranges) {
457
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
458
- }
459
- this._more = false;
460
- this._backtrack = false;
461
- this._input = this._input.slice(match[0].length);
462
- this.matched += match[0];
463
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
464
- if (this.done && this._input) {
465
- this.done = false;
466
- }
467
- if (token) {
468
- return token;
469
- } else if (this._backtrack) {
470
- for (var k in backup) {
471
- this[k] = backup[k];
472
- }
473
- return false;
474
- }
475
- return false;
476
- }, "test_match"),
477
- // return next match in input
478
- next: /* @__PURE__ */ __name(function() {
479
- if (this.done) {
480
- return this.EOF;
481
- }
482
- if (!this._input) {
483
- this.done = true;
484
- }
485
- var token, match, tempMatch, index;
486
- if (!this._more) {
487
- this.yytext = "";
488
- this.match = "";
489
- }
490
- var rules = this._currentRules();
491
- for (var i = 0; i < rules.length; i++) {
492
- tempMatch = this._input.match(this.rules[rules[i]]);
493
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
494
- match = tempMatch;
495
- index = i;
496
- if (this.options.backtrack_lexer) {
497
- token = this.test_match(tempMatch, rules[i]);
498
- if (token !== false) {
499
- return token;
500
- } else if (this._backtrack) {
501
- match = false;
502
- continue;
503
- } else {
504
- return false;
505
- }
506
- } else if (!this.options.flex) {
507
- break;
508
- }
509
- }
510
- }
511
- if (match) {
512
- token = this.test_match(match, rules[index]);
513
- if (token !== false) {
514
- return token;
515
- }
516
- return false;
517
- }
518
- if (this._input === "") {
519
- return this.EOF;
520
- } else {
521
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
522
- text: "",
523
- token: null,
524
- line: this.yylineno
525
- });
526
- }
527
- }, "next"),
528
- // return next match that has a token
529
- lex: /* @__PURE__ */ __name(function lex() {
530
- var r = this.next();
531
- if (r) {
532
- return r;
533
- } else {
534
- return this.lex();
535
- }
536
- }, "lex"),
537
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
538
- begin: /* @__PURE__ */ __name(function begin(condition) {
539
- this.conditionStack.push(condition);
540
- }, "begin"),
541
- // pop the previously active lexer condition state off the condition stack
542
- popState: /* @__PURE__ */ __name(function popState() {
543
- var n = this.conditionStack.length - 1;
544
- if (n > 0) {
545
- return this.conditionStack.pop();
546
- } else {
547
- return this.conditionStack[0];
548
- }
549
- }, "popState"),
550
- // produce the lexer rule set which is active for the currently active lexer condition state
551
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
552
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
553
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
554
- } else {
555
- return this.conditions["INITIAL"].rules;
556
- }
557
- }, "_currentRules"),
558
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
559
- topState: /* @__PURE__ */ __name(function topState(n) {
560
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
561
- if (n >= 0) {
562
- return this.conditionStack[n];
563
- } else {
564
- return "INITIAL";
565
- }
566
- }, "topState"),
567
- // alias for begin(condition)
568
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
569
- this.begin(condition);
570
- }, "pushState"),
571
- // return the number of states currently on the stack
572
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
573
- return this.conditionStack.length;
574
- }, "stateStackSize"),
575
- options: { "case-insensitive": true },
576
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
577
- switch ($avoiding_name_collisions) {
578
- case 0:
579
- return 38;
580
- case 1:
581
- return 40;
582
- case 2:
583
- return 39;
584
- case 3:
585
- return 44;
586
- case 4:
587
- return 51;
588
- case 5:
589
- return 52;
590
- case 6:
591
- return 53;
592
- case 7:
593
- return 54;
594
- case 8:
595
- break;
596
- case 9:
597
- break;
598
- case 10:
599
- return 5;
600
- case 11:
601
- break;
602
- case 12:
603
- break;
604
- case 13:
605
- break;
606
- case 14:
607
- break;
608
- case 15:
609
- this.pushState("SCALE");
610
- return 17;
611
- case 16:
612
- return 18;
613
- case 17:
614
- this.popState();
615
- break;
616
- case 18:
617
- this.begin("acc_title");
618
- return 33;
619
- case 19:
620
- this.popState();
621
- return "acc_title_value";
622
- case 20:
623
- this.begin("acc_descr");
624
- return 35;
625
- case 21:
626
- this.popState();
627
- return "acc_descr_value";
628
- case 22:
629
- this.begin("acc_descr_multiline");
630
- break;
631
- case 23:
632
- this.popState();
633
- break;
634
- case 24:
635
- return "acc_descr_multiline_value";
636
- case 25:
637
- this.pushState("CLASSDEF");
638
- return 41;
639
- case 26:
640
- this.popState();
641
- this.pushState("CLASSDEFID");
642
- return "DEFAULT_CLASSDEF_ID";
643
- case 27:
644
- this.popState();
645
- this.pushState("CLASSDEFID");
646
- return 42;
647
- case 28:
648
- this.popState();
649
- return 43;
650
- case 29:
651
- this.pushState("CLASS");
652
- return 48;
653
- case 30:
654
- this.popState();
655
- this.pushState("CLASS_STYLE");
656
- return 49;
657
- case 31:
658
- this.popState();
659
- return 50;
660
- case 32:
661
- this.pushState("STYLE");
662
- return 45;
663
- case 33:
664
- this.popState();
665
- this.pushState("STYLEDEF_STYLES");
666
- return 46;
667
- case 34:
668
- this.popState();
669
- return 47;
670
- case 35:
671
- this.pushState("SCALE");
672
- return 17;
673
- case 36:
674
- return 18;
675
- case 37:
676
- this.popState();
677
- break;
678
- case 38:
679
- this.pushState("STATE");
680
- break;
681
- case 39:
682
- this.popState();
683
- yy_.yytext = yy_.yytext.slice(0, -8).trim();
684
- return 25;
685
- case 40:
686
- this.popState();
687
- yy_.yytext = yy_.yytext.slice(0, -8).trim();
688
- return 26;
689
- case 41:
690
- this.popState();
691
- yy_.yytext = yy_.yytext.slice(0, -10).trim();
692
- return 27;
693
- case 42:
694
- this.popState();
695
- yy_.yytext = yy_.yytext.slice(0, -8).trim();
696
- return 25;
697
- case 43:
698
- this.popState();
699
- yy_.yytext = yy_.yytext.slice(0, -8).trim();
700
- return 26;
701
- case 44:
702
- this.popState();
703
- yy_.yytext = yy_.yytext.slice(0, -10).trim();
704
- return 27;
705
- case 45:
706
- return 51;
707
- case 46:
708
- return 52;
709
- case 47:
710
- return 53;
711
- case 48:
712
- return 54;
713
- case 49:
714
- this.pushState("STATE_STRING");
715
- break;
716
- case 50:
717
- this.pushState("STATE_ID");
718
- return "AS";
719
- case 51:
720
- this.popState();
721
- return "ID";
722
- case 52:
723
- this.popState();
724
- break;
725
- case 53:
726
- return "STATE_DESCR";
727
- case 54:
728
- return 19;
729
- case 55:
730
- this.popState();
731
- break;
732
- case 56:
733
- this.popState();
734
- this.pushState("struct");
735
- return 20;
736
- case 57:
737
- break;
738
- case 58:
739
- this.popState();
740
- return 21;
741
- case 59:
742
- break;
743
- case 60:
744
- this.begin("NOTE");
745
- return 29;
746
- case 61:
747
- this.popState();
748
- this.pushState("NOTE_ID");
749
- return 59;
750
- case 62:
751
- this.popState();
752
- this.pushState("NOTE_ID");
753
- return 60;
754
- case 63:
755
- this.popState();
756
- this.pushState("FLOATING_NOTE");
757
- break;
758
- case 64:
759
- this.popState();
760
- this.pushState("FLOATING_NOTE_ID");
761
- return "AS";
762
- case 65:
763
- break;
764
- case 66:
765
- return "NOTE_TEXT";
766
- case 67:
767
- this.popState();
768
- return "ID";
769
- case 68:
770
- this.popState();
771
- this.pushState("NOTE_TEXT");
772
- return 24;
773
- case 69:
774
- this.popState();
775
- yy_.yytext = yy_.yytext.substr(2).trim();
776
- return 31;
777
- case 70:
778
- this.popState();
779
- yy_.yytext = yy_.yytext.slice(0, -8).trim();
780
- return 31;
781
- case 71:
782
- return 6;
783
- case 72:
784
- return 6;
785
- case 73:
786
- return 16;
787
- case 74:
788
- return 57;
789
- case 75:
790
- return 24;
791
- case 76:
792
- yy_.yytext = yy_.yytext.trim();
793
- return 14;
794
- case 77:
795
- return 15;
796
- case 78:
797
- return 28;
798
- case 79:
799
- return 58;
800
- case 80:
801
- return 5;
802
- case 81:
803
- return "INVALID";
804
- }
805
- }, "anonymous"),
806
- rules: [/^(?:click\b)/i, /^(?:href\b)/i, /^(?:"[^"]*")/i, /^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
807
- conditions: { "LINE": { "rules": [12, 13], "inclusive": false }, "struct": { "rules": [12, 13, 25, 29, 32, 38, 45, 46, 47, 48, 57, 58, 59, 60, 74, 75, 76, 77, 78], "inclusive": false }, "FLOATING_NOTE_ID": { "rules": [67], "inclusive": false }, "FLOATING_NOTE": { "rules": [64, 65, 66], "inclusive": false }, "NOTE_TEXT": { "rules": [69, 70], "inclusive": false }, "NOTE_ID": { "rules": [68], "inclusive": false }, "NOTE": { "rules": [61, 62, 63], "inclusive": false }, "STYLEDEF_STYLEOPTS": { "rules": [], "inclusive": false }, "STYLEDEF_STYLES": { "rules": [34], "inclusive": false }, "STYLE_IDS": { "rules": [], "inclusive": false }, "STYLE": { "rules": [33], "inclusive": false }, "CLASS_STYLE": { "rules": [31], "inclusive": false }, "CLASS": { "rules": [30], "inclusive": false }, "CLASSDEFID": { "rules": [28], "inclusive": false }, "CLASSDEF": { "rules": [26, 27], "inclusive": false }, "acc_descr_multiline": { "rules": [23, 24], "inclusive": false }, "acc_descr": { "rules": [21], "inclusive": false }, "acc_title": { "rules": [19], "inclusive": false }, "SCALE": { "rules": [16, 17, 36, 37], "inclusive": false }, "ALIAS": { "rules": [], "inclusive": false }, "STATE_ID": { "rules": [51], "inclusive": false }, "STATE_STRING": { "rules": [52, 53], "inclusive": false }, "FORK_STATE": { "rules": [], "inclusive": false }, "STATE": { "rules": [12, 13, 39, 40, 41, 42, 43, 44, 49, 50, 54, 55, 56], "inclusive": false }, "ID": { "rules": [12, 13], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 20, 22, 25, 29, 32, 35, 38, 56, 60, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81], "inclusive": true } }
808
- };
809
- return lexer2;
810
- }();
811
- parser2.lexer = lexer;
812
- function Parser() {
813
- this.yy = {};
814
- }
815
- __name(Parser, "Parser");
816
- Parser.prototype = parser2;
817
- parser2.Parser = Parser;
818
- return new Parser();
819
- }();
820
- parser.parser = parser;
821
- var stateDiagram_default = parser;
822
- var DEFAULT_DIAGRAM_DIRECTION = "TB";
823
- var DEFAULT_NESTED_DOC_DIR = "TB";
824
- var STMT_DIRECTION = "dir";
825
- var STMT_STATE = "state";
826
- var STMT_ROOT = "root";
827
- var STMT_RELATION = "relation";
828
- var STMT_CLASSDEF = "classDef";
829
- var STMT_STYLEDEF = "style";
830
- var STMT_APPLYCLASS = "applyClass";
831
- var DEFAULT_STATE_TYPE = "default";
832
- var DIVIDER_TYPE = "divider";
833
- var G_EDGE_STYLE = "fill:none";
834
- var G_EDGE_ARROWHEADSTYLE = "fill: #333";
835
- var G_EDGE_LABELPOS = "c";
836
- var G_EDGE_LABELTYPE = "text";
837
- var G_EDGE_THICKNESS = "normal";
838
- var SHAPE_STATE = "rect";
839
- var SHAPE_STATE_WITH_DESC = "rectWithTitle";
840
- var SHAPE_START = "stateStart";
841
- var SHAPE_END = "stateEnd";
842
- var SHAPE_DIVIDER = "divider";
843
- var SHAPE_GROUP = "roundedWithTitle";
844
- var SHAPE_NOTE = "note";
845
- var SHAPE_NOTEGROUP = "noteGroup";
846
- var CSS_DIAGRAM = "statediagram";
847
- var CSS_STATE = "state";
848
- var CSS_DIAGRAM_STATE = `${CSS_DIAGRAM}-${CSS_STATE}`;
849
- var CSS_EDGE = "transition";
850
- var CSS_NOTE = "note";
851
- var CSS_NOTE_EDGE = "note-edge";
852
- var CSS_EDGE_NOTE_EDGE = `${CSS_EDGE} ${CSS_NOTE_EDGE}`;
853
- var CSS_DIAGRAM_NOTE = `${CSS_DIAGRAM}-${CSS_NOTE}`;
854
- var CSS_CLUSTER = "cluster";
855
- var CSS_DIAGRAM_CLUSTER = `${CSS_DIAGRAM}-${CSS_CLUSTER}`;
856
- var CSS_CLUSTER_ALT = "cluster-alt";
857
- var CSS_DIAGRAM_CLUSTER_ALT = `${CSS_DIAGRAM}-${CSS_CLUSTER_ALT}`;
858
- var PARENT = "parent";
859
- var NOTE = "note";
860
- var DOMID_STATE = "state";
861
- var DOMID_TYPE_SPACER = "----";
862
- var NOTE_ID = `${DOMID_TYPE_SPACER}${NOTE}`;
863
- var PARENT_ID = `${DOMID_TYPE_SPACER}${PARENT}`;
864
- var getDir = /* @__PURE__ */ __name((parsedItem, defaultDir = DEFAULT_NESTED_DOC_DIR) => {
865
- if (!parsedItem.doc) {
866
- return defaultDir;
867
- }
868
- let dir = defaultDir;
869
- for (const parsedItemDoc of parsedItem.doc) {
870
- if (parsedItemDoc.stmt === "dir") {
871
- dir = parsedItemDoc.value;
872
- }
873
- }
874
- return dir;
875
- }, "getDir");
876
- var getClasses = /* @__PURE__ */ __name(function(text, diagramObj) {
877
- return diagramObj.db.getClasses();
878
- }, "getClasses");
879
- var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
880
- log.info("REF0:");
881
- log.info("Drawing state diagram (v2)", id);
882
- const { securityLevel, state: conf, layout } = getConfig2();
883
- diag.db.extract(diag.db.getRootDocV2());
884
- const data4Layout = diag.db.getData();
885
- const svg = getDiagramElement(id, securityLevel);
886
- data4Layout.type = diag.type;
887
- data4Layout.layoutAlgorithm = layout;
888
- data4Layout.nodeSpacing = (conf == null ? void 0 : conf.nodeSpacing) || 50;
889
- data4Layout.rankSpacing = (conf == null ? void 0 : conf.rankSpacing) || 50;
890
- data4Layout.markers = ["barb"];
891
- data4Layout.diagramId = id;
892
- await render(data4Layout, svg);
893
- const padding = 8;
894
- try {
895
- const links = typeof diag.db.getLinks === "function" ? diag.db.getLinks() : /* @__PURE__ */ new Map();
896
- links.forEach((linkInfo, key) => {
897
- var _a2;
898
- const stateId = typeof key === "string" ? key : typeof (key == null ? void 0 : key.id) === "string" ? key.id : "";
899
- if (!stateId) {
900
- log.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(key));
901
- return;
902
- }
903
- const allNodes = (_a2 = svg.node()) == null ? void 0 : _a2.querySelectorAll("g");
904
- let matchedElem;
905
- allNodes == null ? void 0 : allNodes.forEach((g) => {
906
- var _a3;
907
- const text2 = (_a3 = g.textContent) == null ? void 0 : _a3.trim();
908
- if (text2 === stateId) {
909
- matchedElem = g;
910
- }
911
- });
912
- if (!matchedElem) {
913
- log.warn("⚠️ Could not find node matching text:", stateId);
914
- return;
915
- }
916
- const parent = matchedElem.parentNode;
917
- if (!parent) {
918
- log.warn("⚠️ Node has no parent, cannot wrap:", stateId);
919
- return;
920
- }
921
- const a = document.createElementNS("http://www.w3.org/2000/svg", "a");
922
- const cleanedUrl = linkInfo.url.replace(/^"+|"+$/g, "");
923
- a.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", cleanedUrl);
924
- a.setAttribute("target", "_blank");
925
- if (linkInfo.tooltip) {
926
- const tooltip = linkInfo.tooltip.replace(/^"+|"+$/g, "");
927
- a.setAttribute("title", tooltip);
928
- }
929
- parent.replaceChild(a, matchedElem);
930
- a.appendChild(matchedElem);
931
- log.info("🔗 Wrapped node in <a> tag for:", stateId, linkInfo.url);
932
- });
933
- } catch (err) {
934
- log.error("❌ Error injecting clickable links:", err);
935
- }
936
- utils_default.insertTitle(
937
- svg,
938
- "statediagramTitleText",
939
- (conf == null ? void 0 : conf.titleTopMargin) ?? 25,
940
- diag.db.getDiagramTitle()
941
- );
942
- setupViewPortForSVG(svg, padding, CSS_DIAGRAM, (conf == null ? void 0 : conf.useMaxWidth) ?? true);
943
- }, "draw");
944
- var stateRenderer_v3_unified_default = {
945
- getClasses,
946
- draw,
947
- getDir
948
- };
949
- var nodeDb = /* @__PURE__ */ new Map();
950
- var graphItemCount = 0;
951
- function stateDomId(itemId = "", counter = 0, type = "", typeSpacer = DOMID_TYPE_SPACER) {
952
- const typeStr = type !== null && type.length > 0 ? `${typeSpacer}${type}` : "";
953
- return `${DOMID_STATE}-${itemId}${typeStr}-${counter}`;
954
- }
955
- __name(stateDomId, "stateDomId");
956
- var setupDoc = /* @__PURE__ */ __name((parentParsedItem, doc, diagramStates, nodes, edges, altFlag, look, classes) => {
957
- log.trace("items", doc);
958
- doc.forEach((item) => {
959
- switch (item.stmt) {
960
- case STMT_STATE:
961
- dataFetcher(parentParsedItem, item, diagramStates, nodes, edges, altFlag, look, classes);
962
- break;
963
- case DEFAULT_STATE_TYPE:
964
- dataFetcher(parentParsedItem, item, diagramStates, nodes, edges, altFlag, look, classes);
965
- break;
966
- case STMT_RELATION:
967
- {
968
- dataFetcher(
969
- parentParsedItem,
970
- item.state1,
971
- diagramStates,
972
- nodes,
973
- edges,
974
- altFlag,
975
- look,
976
- classes
977
- );
978
- dataFetcher(
979
- parentParsedItem,
980
- item.state2,
981
- diagramStates,
982
- nodes,
983
- edges,
984
- altFlag,
985
- look,
986
- classes
987
- );
988
- const edgeData = {
989
- id: "edge" + graphItemCount,
990
- start: item.state1.id,
991
- end: item.state2.id,
992
- arrowhead: "normal",
993
- arrowTypeEnd: "arrow_barb",
994
- style: G_EDGE_STYLE,
995
- labelStyle: "",
996
- label: common_default.sanitizeText(item.description ?? "", getConfig2()),
997
- arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
998
- labelpos: G_EDGE_LABELPOS,
999
- labelType: G_EDGE_LABELTYPE,
1000
- thickness: G_EDGE_THICKNESS,
1001
- classes: CSS_EDGE,
1002
- look
1003
- };
1004
- edges.push(edgeData);
1005
- graphItemCount++;
1006
- }
1007
- break;
1008
- }
1009
- });
1010
- }, "setupDoc");
1011
- var getDir2 = /* @__PURE__ */ __name((parsedItem, defaultDir = DEFAULT_NESTED_DOC_DIR) => {
1012
- let dir = defaultDir;
1013
- if (parsedItem.doc) {
1014
- for (const parsedItemDoc of parsedItem.doc) {
1015
- if (parsedItemDoc.stmt === "dir") {
1016
- dir = parsedItemDoc.value;
1017
- }
1018
- }
1019
- }
1020
- return dir;
1021
- }, "getDir");
1022
- function insertOrUpdateNode(nodes, nodeData, classes) {
1023
- if (!nodeData.id || nodeData.id === "</join></fork>" || nodeData.id === "</choice>") {
1024
- return;
1025
- }
1026
- if (nodeData.cssClasses) {
1027
- if (!Array.isArray(nodeData.cssCompiledStyles)) {
1028
- nodeData.cssCompiledStyles = [];
1029
- }
1030
- nodeData.cssClasses.split(" ").forEach((cssClass) => {
1031
- const classDef = classes.get(cssClass);
1032
- if (classDef) {
1033
- nodeData.cssCompiledStyles = [...nodeData.cssCompiledStyles ?? [], ...classDef.styles];
1034
- }
1035
- });
1036
- }
1037
- const existingNodeData = nodes.find((node) => node.id === nodeData.id);
1038
- if (existingNodeData) {
1039
- Object.assign(existingNodeData, nodeData);
1040
- } else {
1041
- nodes.push(nodeData);
1042
- }
1043
- }
1044
- __name(insertOrUpdateNode, "insertOrUpdateNode");
1045
- function getClassesFromDbInfo(dbInfoItem) {
1046
- var _a2;
1047
- return ((_a2 = dbInfoItem == null ? void 0 : dbInfoItem.classes) == null ? void 0 : _a2.join(" ")) ?? "";
1048
- }
1049
- __name(getClassesFromDbInfo, "getClassesFromDbInfo");
1050
- function getStylesFromDbInfo(dbInfoItem) {
1051
- return (dbInfoItem == null ? void 0 : dbInfoItem.styles) ?? [];
1052
- }
1053
- __name(getStylesFromDbInfo, "getStylesFromDbInfo");
1054
- var dataFetcher = /* @__PURE__ */ __name((parent, parsedItem, diagramStates, nodes, edges, altFlag, look, classes) => {
1055
- var _a2, _b, _c;
1056
- const itemId = parsedItem.id;
1057
- const dbState = diagramStates.get(itemId);
1058
- const classStr = getClassesFromDbInfo(dbState);
1059
- const style = getStylesFromDbInfo(dbState);
1060
- const config = getConfig2();
1061
- log.info("dataFetcher parsedItem", parsedItem, dbState, style);
1062
- if (itemId !== "root") {
1063
- let shape = SHAPE_STATE;
1064
- if (parsedItem.start === true) {
1065
- shape = SHAPE_START;
1066
- } else if (parsedItem.start === false) {
1067
- shape = SHAPE_END;
1068
- }
1069
- if (parsedItem.type !== DEFAULT_STATE_TYPE) {
1070
- shape = parsedItem.type;
1071
- }
1072
- if (!nodeDb.get(itemId)) {
1073
- nodeDb.set(itemId, {
1074
- id: itemId,
1075
- shape,
1076
- description: common_default.sanitizeText(itemId, config),
1077
- cssClasses: `${classStr} ${CSS_DIAGRAM_STATE}`,
1078
- cssStyles: style
1079
- });
1080
- }
1081
- const newNode = nodeDb.get(itemId);
1082
- if (parsedItem.description) {
1083
- if (Array.isArray(newNode.description)) {
1084
- newNode.shape = SHAPE_STATE_WITH_DESC;
1085
- newNode.description.push(parsedItem.description);
1086
- } else {
1087
- if (((_a2 = newNode.description) == null ? void 0 : _a2.length) && newNode.description.length > 0) {
1088
- newNode.shape = SHAPE_STATE_WITH_DESC;
1089
- if (newNode.description === itemId) {
1090
- newNode.description = [parsedItem.description];
1091
- } else {
1092
- newNode.description = [newNode.description, parsedItem.description];
1093
- }
1094
- } else {
1095
- newNode.shape = SHAPE_STATE;
1096
- newNode.description = parsedItem.description;
1097
- }
1098
- }
1099
- newNode.description = common_default.sanitizeTextOrArray(newNode.description, config);
1100
- }
1101
- if (((_b = newNode.description) == null ? void 0 : _b.length) === 1 && newNode.shape === SHAPE_STATE_WITH_DESC) {
1102
- if (newNode.type === "group") {
1103
- newNode.shape = SHAPE_GROUP;
1104
- } else {
1105
- newNode.shape = SHAPE_STATE;
1106
- }
1107
- }
1108
- if (!newNode.type && parsedItem.doc) {
1109
- log.info("Setting cluster for XCX", itemId, getDir2(parsedItem));
1110
- newNode.type = "group";
1111
- newNode.isGroup = true;
1112
- newNode.dir = getDir2(parsedItem);
1113
- newNode.shape = parsedItem.type === DIVIDER_TYPE ? SHAPE_DIVIDER : SHAPE_GROUP;
1114
- newNode.cssClasses = `${newNode.cssClasses} ${CSS_DIAGRAM_CLUSTER} ${altFlag ? CSS_DIAGRAM_CLUSTER_ALT : ""}`;
1115
- }
1116
- const nodeData = {
1117
- labelStyle: "",
1118
- shape: newNode.shape,
1119
- label: newNode.description,
1120
- cssClasses: newNode.cssClasses,
1121
- cssCompiledStyles: [],
1122
- cssStyles: newNode.cssStyles,
1123
- id: itemId,
1124
- dir: newNode.dir,
1125
- domId: stateDomId(itemId, graphItemCount),
1126
- type: newNode.type,
1127
- isGroup: newNode.type === "group",
1128
- padding: 8,
1129
- rx: 10,
1130
- ry: 10,
1131
- look
1132
- };
1133
- if (nodeData.shape === SHAPE_DIVIDER) {
1134
- nodeData.label = "";
1135
- }
1136
- if (parent && parent.id !== "root") {
1137
- log.trace("Setting node ", itemId, " to be child of its parent ", parent.id);
1138
- nodeData.parentId = parent.id;
1139
- }
1140
- nodeData.centerLabel = true;
1141
- if (parsedItem.note) {
1142
- const noteData = {
1143
- labelStyle: "",
1144
- shape: SHAPE_NOTE,
1145
- label: parsedItem.note.text,
1146
- cssClasses: CSS_DIAGRAM_NOTE,
1147
- // useHtmlLabels: false,
1148
- cssStyles: [],
1149
- cssCompiledStyles: [],
1150
- id: itemId + NOTE_ID + "-" + graphItemCount,
1151
- domId: stateDomId(itemId, graphItemCount, NOTE),
1152
- type: newNode.type,
1153
- isGroup: newNode.type === "group",
1154
- padding: (_c = config.flowchart) == null ? void 0 : _c.padding,
1155
- look,
1156
- position: parsedItem.note.position
1157
- };
1158
- const parentNodeId = itemId + PARENT_ID;
1159
- const groupData = {
1160
- labelStyle: "",
1161
- shape: SHAPE_NOTEGROUP,
1162
- label: parsedItem.note.text,
1163
- cssClasses: newNode.cssClasses,
1164
- cssStyles: [],
1165
- id: itemId + PARENT_ID,
1166
- domId: stateDomId(itemId, graphItemCount, PARENT),
1167
- type: "group",
1168
- isGroup: true,
1169
- padding: 16,
1170
- //getConfig().flowchart.padding
1171
- look,
1172
- position: parsedItem.note.position
1173
- };
1174
- graphItemCount++;
1175
- groupData.id = parentNodeId;
1176
- noteData.parentId = parentNodeId;
1177
- insertOrUpdateNode(nodes, groupData, classes);
1178
- insertOrUpdateNode(nodes, noteData, classes);
1179
- insertOrUpdateNode(nodes, nodeData, classes);
1180
- let from = itemId;
1181
- let to = noteData.id;
1182
- if (parsedItem.note.position === "left of") {
1183
- from = noteData.id;
1184
- to = itemId;
1185
- }
1186
- edges.push({
1187
- id: from + "-" + to,
1188
- start: from,
1189
- end: to,
1190
- arrowhead: "none",
1191
- arrowTypeEnd: "",
1192
- style: G_EDGE_STYLE,
1193
- labelStyle: "",
1194
- classes: CSS_EDGE_NOTE_EDGE,
1195
- arrowheadStyle: G_EDGE_ARROWHEADSTYLE,
1196
- labelpos: G_EDGE_LABELPOS,
1197
- labelType: G_EDGE_LABELTYPE,
1198
- thickness: G_EDGE_THICKNESS,
1199
- look
1200
- });
1201
- } else {
1202
- insertOrUpdateNode(nodes, nodeData, classes);
1203
- }
1204
- }
1205
- if (parsedItem.doc) {
1206
- log.trace("Adding nodes children ");
1207
- setupDoc(parsedItem, parsedItem.doc, diagramStates, nodes, edges, !altFlag, look, classes);
1208
- }
1209
- }, "dataFetcher");
1210
- var reset = /* @__PURE__ */ __name(() => {
1211
- nodeDb.clear();
1212
- graphItemCount = 0;
1213
- }, "reset");
1214
- var CONSTANTS = {
1215
- START_NODE: "[*]",
1216
- START_TYPE: "start",
1217
- END_NODE: "[*]",
1218
- END_TYPE: "end",
1219
- COLOR_KEYWORD: "color",
1220
- FILL_KEYWORD: "fill",
1221
- BG_FILL: "bgFill",
1222
- STYLECLASS_SEP: ","
1223
- };
1224
- var newClassesList = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Map(), "newClassesList");
1225
- var newDoc = /* @__PURE__ */ __name(() => ({
1226
- relations: [],
1227
- states: /* @__PURE__ */ new Map(),
1228
- documents: {}
1229
- }), "newDoc");
1230
- var clone = /* @__PURE__ */ __name((o) => JSON.parse(JSON.stringify(o)), "clone");
1231
- var StateDB = (_a = class {
1232
- constructor(version) {
1233
- this.version = version;
1234
- this.nodes = [];
1235
- this.edges = [];
1236
- this.rootDoc = [];
1237
- this.classes = newClassesList();
1238
- this.documents = { root: newDoc() };
1239
- this.currentDocument = this.documents.root;
1240
- this.startEndCount = 0;
1241
- this.dividerCnt = 0;
1242
- this.links = /* @__PURE__ */ new Map();
1243
- this.getAccTitle = getAccTitle;
1244
- this.setAccTitle = setAccTitle;
1245
- this.getAccDescription = getAccDescription;
1246
- this.setAccDescription = setAccDescription;
1247
- this.setDiagramTitle = setDiagramTitle;
1248
- this.getDiagramTitle = getDiagramTitle;
1249
- this.clear();
1250
- this.setRootDoc = this.setRootDoc.bind(this);
1251
- this.getDividerId = this.getDividerId.bind(this);
1252
- this.setDirection = this.setDirection.bind(this);
1253
- this.trimColon = this.trimColon.bind(this);
1254
- }
1255
- /**
1256
- * Convert all of the statements (stmts) that were parsed into states and relationships.
1257
- * This is done because a state diagram may have nested sections,
1258
- * where each section is a 'document' and has its own set of statements.
1259
- * Ex: the section within a fork has its own statements, and incoming and outgoing statements
1260
- * refer to the fork as a whole (document).
1261
- * See the parser grammar: the definition of a document is a document then a 'line', where a line can be a statement.
1262
- * This will push the statement into the list of statements for the current document.
1263
- */
1264
- extract(statements) {
1265
- this.clear(true);
1266
- for (const item of Array.isArray(statements) ? statements : statements.doc) {
1267
- switch (item.stmt) {
1268
- case STMT_STATE:
1269
- this.addState(item.id.trim(), item.type, item.doc, item.description, item.note);
1270
- break;
1271
- case STMT_RELATION:
1272
- this.addRelation(item.state1, item.state2, item.description);
1273
- break;
1274
- case STMT_CLASSDEF:
1275
- this.addStyleClass(item.id.trim(), item.classes);
1276
- break;
1277
- case STMT_STYLEDEF:
1278
- this.handleStyleDef(item);
1279
- break;
1280
- case STMT_APPLYCLASS:
1281
- this.setCssClass(item.id.trim(), item.styleClass);
1282
- break;
1283
- case "click":
1284
- this.addLink(item.id, item.url, item.tooltip);
1285
- break;
1286
- }
1287
- }
1288
- const diagramStates = this.getStates();
1289
- const config = getConfig2();
1290
- reset();
1291
- dataFetcher(
1292
- void 0,
1293
- this.getRootDocV2(),
1294
- diagramStates,
1295
- this.nodes,
1296
- this.edges,
1297
- true,
1298
- config.look,
1299
- this.classes
1300
- );
1301
- for (const node of this.nodes) {
1302
- if (!Array.isArray(node.label)) {
1303
- continue;
1304
- }
1305
- node.description = node.label.slice(1);
1306
- if (node.isGroup && node.description.length > 0) {
1307
- throw new Error(
1308
- `Group nodes can only have label. Remove the additional description for node [${node.id}]`
1309
- );
1310
- }
1311
- node.label = node.label[0];
1312
- }
1313
- }
1314
- handleStyleDef(item) {
1315
- const ids = item.id.trim().split(",");
1316
- const styles = item.styleClass.split(",");
1317
- for (const id of ids) {
1318
- let state = this.getState(id);
1319
- if (!state) {
1320
- const trimmedId = id.trim();
1321
- this.addState(trimmedId);
1322
- state = this.getState(trimmedId);
1323
- }
1324
- if (state) {
1325
- state.styles = styles.map((s) => {
1326
- var _a2;
1327
- return (_a2 = s.replace(/;/g, "")) == null ? void 0 : _a2.trim();
1328
- });
1329
- }
1330
- }
1331
- }
1332
- setRootDoc(o) {
1333
- log.info("Setting root doc", o);
1334
- this.rootDoc = o;
1335
- if (this.version === 1) {
1336
- this.extract(o);
1337
- } else {
1338
- this.extract(this.getRootDocV2());
1339
- }
1340
- }
1341
- docTranslator(parent, node, first) {
1342
- if (node.stmt === STMT_RELATION) {
1343
- this.docTranslator(parent, node.state1, true);
1344
- this.docTranslator(parent, node.state2, false);
1345
- return;
1346
- }
1347
- if (node.stmt === STMT_STATE) {
1348
- if (node.id === CONSTANTS.START_NODE) {
1349
- node.id = parent.id + (first ? "_start" : "_end");
1350
- node.start = first;
1351
- } else {
1352
- node.id = node.id.trim();
1353
- }
1354
- }
1355
- if (node.stmt !== STMT_ROOT && node.stmt !== STMT_STATE || !node.doc) {
1356
- return;
1357
- }
1358
- const doc = [];
1359
- let currentDoc = [];
1360
- for (const stmt of node.doc) {
1361
- if (stmt.type === DIVIDER_TYPE) {
1362
- const newNode = clone(stmt);
1363
- newNode.doc = clone(currentDoc);
1364
- doc.push(newNode);
1365
- currentDoc = [];
1366
- } else {
1367
- currentDoc.push(stmt);
1368
- }
1369
- }
1370
- if (doc.length > 0 && currentDoc.length > 0) {
1371
- const newNode = {
1372
- stmt: STMT_STATE,
1373
- id: generateId(),
1374
- type: "divider",
1375
- doc: clone(currentDoc)
1376
- };
1377
- doc.push(clone(newNode));
1378
- node.doc = doc;
1379
- }
1380
- node.doc.forEach((docNode) => this.docTranslator(node, docNode, true));
1381
- }
1382
- getRootDocV2() {
1383
- this.docTranslator(
1384
- { id: STMT_ROOT, stmt: STMT_ROOT },
1385
- { id: STMT_ROOT, stmt: STMT_ROOT, doc: this.rootDoc },
1386
- true
1387
- );
1388
- return { id: STMT_ROOT, doc: this.rootDoc };
1389
- }
1390
- /**
1391
- * Function called by parser when a node definition has been found.
1392
- *
1393
- * @param descr - description for the state. Can be a string or a list or strings
1394
- * @param classes - class styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 class, convert it to an array of that 1 class.
1395
- * @param styles - styles to apply to this state. Can be a string (1 style) or an array of styles. If it's just 1 style, convert it to an array of that 1 style.
1396
- * @param textStyles - text styles to apply to this state. Can be a string (1 text test) or an array of text styles. If it's just 1 text style, convert it to an array of that 1 text style.
1397
- */
1398
- addState(id, type = DEFAULT_STATE_TYPE, doc = void 0, descr = void 0, note = void 0, classes = void 0, styles = void 0, textStyles = void 0) {
1399
- const trimmedId = id == null ? void 0 : id.trim();
1400
- if (!this.currentDocument.states.has(trimmedId)) {
1401
- log.info("Adding state ", trimmedId, descr);
1402
- this.currentDocument.states.set(trimmedId, {
1403
- stmt: STMT_STATE,
1404
- id: trimmedId,
1405
- descriptions: [],
1406
- type,
1407
- doc,
1408
- note,
1409
- classes: [],
1410
- styles: [],
1411
- textStyles: []
1412
- });
1413
- } else {
1414
- const state = this.currentDocument.states.get(trimmedId);
1415
- if (!state) {
1416
- throw new Error(`State not found: ${trimmedId}`);
1417
- }
1418
- if (!state.doc) {
1419
- state.doc = doc;
1420
- }
1421
- if (!state.type) {
1422
- state.type = type;
1423
- }
1424
- }
1425
- if (descr) {
1426
- log.info("Setting state description", trimmedId, descr);
1427
- const descriptions = Array.isArray(descr) ? descr : [descr];
1428
- descriptions.forEach((des) => this.addDescription(trimmedId, des.trim()));
1429
- }
1430
- if (note) {
1431
- const doc2 = this.currentDocument.states.get(trimmedId);
1432
- if (!doc2) {
1433
- throw new Error(`State not found: ${trimmedId}`);
1434
- }
1435
- doc2.note = note;
1436
- doc2.note.text = common_default.sanitizeText(doc2.note.text, getConfig2());
1437
- }
1438
- if (classes) {
1439
- log.info("Setting state classes", trimmedId, classes);
1440
- const classesList = Array.isArray(classes) ? classes : [classes];
1441
- classesList.forEach((cssClass) => this.setCssClass(trimmedId, cssClass.trim()));
1442
- }
1443
- if (styles) {
1444
- log.info("Setting state styles", trimmedId, styles);
1445
- const stylesList = Array.isArray(styles) ? styles : [styles];
1446
- stylesList.forEach((style) => this.setStyle(trimmedId, style.trim()));
1447
- }
1448
- if (textStyles) {
1449
- log.info("Setting state styles", trimmedId, styles);
1450
- const textStylesList = Array.isArray(textStyles) ? textStyles : [textStyles];
1451
- textStylesList.forEach((textStyle) => this.setTextStyle(trimmedId, textStyle.trim()));
1452
- }
1453
- }
1454
- clear(saveCommon) {
1455
- this.nodes = [];
1456
- this.edges = [];
1457
- this.documents = { root: newDoc() };
1458
- this.currentDocument = this.documents.root;
1459
- this.startEndCount = 0;
1460
- this.classes = newClassesList();
1461
- if (!saveCommon) {
1462
- this.links = /* @__PURE__ */ new Map();
1463
- clear();
1464
- }
1465
- }
1466
- getState(id) {
1467
- return this.currentDocument.states.get(id);
1468
- }
1469
- getStates() {
1470
- return this.currentDocument.states;
1471
- }
1472
- logDocuments() {
1473
- log.info("Documents = ", this.documents);
1474
- }
1475
- getRelations() {
1476
- return this.currentDocument.relations;
1477
- }
1478
- /**
1479
- * Adds a clickable link to a state.
1480
- */
1481
- addLink(stateId, url, tooltip) {
1482
- this.links.set(stateId, { url, tooltip });
1483
- log.warn("Adding link", stateId, url, tooltip);
1484
- }
1485
- /**
1486
- * Get all registered links.
1487
- */
1488
- getLinks() {
1489
- return this.links;
1490
- }
1491
- /**
1492
- * If the id is a start node ( [*] ), then return a new id constructed from
1493
- * the start node name and the current start node count.
1494
- * else return the given id
1495
- */
1496
- startIdIfNeeded(id = "") {
1497
- if (id === CONSTANTS.START_NODE) {
1498
- this.startEndCount++;
1499
- return `${CONSTANTS.START_TYPE}${this.startEndCount}`;
1500
- }
1501
- return id;
1502
- }
1503
- /**
1504
- * If the id is a start node ( [*] ), then return the start type ('start')
1505
- * else return the given type
1506
- */
1507
- startTypeIfNeeded(id = "", type = DEFAULT_STATE_TYPE) {
1508
- return id === CONSTANTS.START_NODE ? CONSTANTS.START_TYPE : type;
1509
- }
1510
- /**
1511
- * If the id is an end node ( [*] ), then return a new id constructed from
1512
- * the end node name and the current start_end node count.
1513
- * else return the given id
1514
- */
1515
- endIdIfNeeded(id = "") {
1516
- if (id === CONSTANTS.END_NODE) {
1517
- this.startEndCount++;
1518
- return `${CONSTANTS.END_TYPE}${this.startEndCount}`;
1519
- }
1520
- return id;
1521
- }
1522
- /**
1523
- * If the id is an end node ( [*] ), then return the end type
1524
- * else return the given type
1525
- *
1526
- */
1527
- endTypeIfNeeded(id = "", type = DEFAULT_STATE_TYPE) {
1528
- return id === CONSTANTS.END_NODE ? CONSTANTS.END_TYPE : type;
1529
- }
1530
- addRelationObjs(item1, item2, relationTitle = "") {
1531
- const id1 = this.startIdIfNeeded(item1.id.trim());
1532
- const type1 = this.startTypeIfNeeded(item1.id.trim(), item1.type);
1533
- const id2 = this.startIdIfNeeded(item2.id.trim());
1534
- const type2 = this.startTypeIfNeeded(item2.id.trim(), item2.type);
1535
- this.addState(
1536
- id1,
1537
- type1,
1538
- item1.doc,
1539
- item1.description,
1540
- item1.note,
1541
- item1.classes,
1542
- item1.styles,
1543
- item1.textStyles
1544
- );
1545
- this.addState(
1546
- id2,
1547
- type2,
1548
- item2.doc,
1549
- item2.description,
1550
- item2.note,
1551
- item2.classes,
1552
- item2.styles,
1553
- item2.textStyles
1554
- );
1555
- this.currentDocument.relations.push({
1556
- id1,
1557
- id2,
1558
- relationTitle: common_default.sanitizeText(relationTitle, getConfig2())
1559
- });
1560
- }
1561
- /**
1562
- * Add a relation between two items. The items may be full objects or just the string id of a state.
1563
- */
1564
- addRelation(item1, item2, title) {
1565
- if (typeof item1 === "object" && typeof item2 === "object") {
1566
- this.addRelationObjs(item1, item2, title);
1567
- } else if (typeof item1 === "string" && typeof item2 === "string") {
1568
- const id1 = this.startIdIfNeeded(item1.trim());
1569
- const type1 = this.startTypeIfNeeded(item1);
1570
- const id2 = this.endIdIfNeeded(item2.trim());
1571
- const type2 = this.endTypeIfNeeded(item2);
1572
- this.addState(id1, type1);
1573
- this.addState(id2, type2);
1574
- this.currentDocument.relations.push({
1575
- id1,
1576
- id2,
1577
- relationTitle: title ? common_default.sanitizeText(title, getConfig2()) : void 0
1578
- });
1579
- }
1580
- }
1581
- addDescription(id, descr) {
1582
- var _a2;
1583
- const theState = this.currentDocument.states.get(id);
1584
- const _descr = descr.startsWith(":") ? descr.replace(":", "").trim() : descr;
1585
- (_a2 = theState == null ? void 0 : theState.descriptions) == null ? void 0 : _a2.push(common_default.sanitizeText(_descr, getConfig2()));
1586
- }
1587
- cleanupLabel(label) {
1588
- return label.startsWith(":") ? label.slice(2).trim() : label.trim();
1589
- }
1590
- getDividerId() {
1591
- this.dividerCnt++;
1592
- return `divider-id-${this.dividerCnt}`;
1593
- }
1594
- /**
1595
- * Called when the parser comes across a (style) class definition
1596
- * @example classDef my-style fill:#f96;
1597
- *
1598
- * @param id - the id of this (style) class
1599
- * @param styleAttributes - the string with 1 or more style attributes (each separated by a comma)
1600
- */
1601
- addStyleClass(id, styleAttributes = "") {
1602
- if (!this.classes.has(id)) {
1603
- this.classes.set(id, { id, styles: [], textStyles: [] });
1604
- }
1605
- const foundClass = this.classes.get(id);
1606
- if (styleAttributes && foundClass) {
1607
- styleAttributes.split(CONSTANTS.STYLECLASS_SEP).forEach((attrib) => {
1608
- const fixedAttrib = attrib.replace(/([^;]*);/, "$1").trim();
1609
- if (RegExp(CONSTANTS.COLOR_KEYWORD).exec(attrib)) {
1610
- const newStyle1 = fixedAttrib.replace(CONSTANTS.FILL_KEYWORD, CONSTANTS.BG_FILL);
1611
- const newStyle2 = newStyle1.replace(CONSTANTS.COLOR_KEYWORD, CONSTANTS.FILL_KEYWORD);
1612
- foundClass.textStyles.push(newStyle2);
1613
- }
1614
- foundClass.styles.push(fixedAttrib);
1615
- });
1616
- }
1617
- }
1618
- getClasses() {
1619
- return this.classes;
1620
- }
1621
- /**
1622
- * Add a (style) class or css class to a state with the given id.
1623
- * If the state isn't already in the list of known states, add it.
1624
- * Might be called by parser when a style class or CSS class should be applied to a state
1625
- *
1626
- * @param itemIds - The id or a list of ids of the item(s) to apply the css class to
1627
- * @param cssClassName - CSS class name
1628
- */
1629
- setCssClass(itemIds, cssClassName) {
1630
- itemIds.split(",").forEach((id) => {
1631
- var _a2;
1632
- let foundState = this.getState(id);
1633
- if (!foundState) {
1634
- const trimmedId = id.trim();
1635
- this.addState(trimmedId);
1636
- foundState = this.getState(trimmedId);
1637
- }
1638
- (_a2 = foundState == null ? void 0 : foundState.classes) == null ? void 0 : _a2.push(cssClassName);
1639
- });
1640
- }
1641
- /**
1642
- * Add a style to a state with the given id.
1643
- * @example style stateId fill:#f9f,stroke:#333,stroke-width:4px
1644
- * where 'style' is the keyword
1645
- * stateId is the id of a state
1646
- * the rest of the string is the styleText (all of the attributes to be applied to the state)
1647
- *
1648
- * @param itemId - The id of item to apply the style to
1649
- * @param styleText - the text of the attributes for the style
1650
- */
1651
- setStyle(itemId, styleText) {
1652
- var _a2, _b;
1653
- (_b = (_a2 = this.getState(itemId)) == null ? void 0 : _a2.styles) == null ? void 0 : _b.push(styleText);
1654
- }
1655
- /**
1656
- * Add a text style to a state with the given id
1657
- *
1658
- * @param itemId - The id of item to apply the css class to
1659
- * @param cssClassName - CSS class name
1660
- */
1661
- setTextStyle(itemId, cssClassName) {
1662
- var _a2, _b;
1663
- (_b = (_a2 = this.getState(itemId)) == null ? void 0 : _a2.textStyles) == null ? void 0 : _b.push(cssClassName);
1664
- }
1665
- /**
1666
- * Finds the direction statement in the root document.
1667
- * @returns the direction statement if present
1668
- */
1669
- getDirectionStatement() {
1670
- return this.rootDoc.find((doc) => doc.stmt === STMT_DIRECTION);
1671
- }
1672
- getDirection() {
1673
- var _a2;
1674
- return ((_a2 = this.getDirectionStatement()) == null ? void 0 : _a2.value) ?? DEFAULT_DIAGRAM_DIRECTION;
1675
- }
1676
- setDirection(dir) {
1677
- const doc = this.getDirectionStatement();
1678
- if (doc) {
1679
- doc.value = dir;
1680
- } else {
1681
- this.rootDoc.unshift({ stmt: STMT_DIRECTION, value: dir });
1682
- }
1683
- }
1684
- trimColon(str) {
1685
- return str.startsWith(":") ? str.slice(1).trim() : str.trim();
1686
- }
1687
- getData() {
1688
- const config = getConfig2();
1689
- return {
1690
- nodes: this.nodes,
1691
- edges: this.edges,
1692
- other: {},
1693
- config,
1694
- direction: getDir(this.getRootDocV2())
1695
- };
1696
- }
1697
- getConfig() {
1698
- return getConfig2().state;
1699
- }
1700
- }, __name(_a, "StateDB"), _a.relationType = {
1701
- AGGREGATION: 0,
1702
- EXTENSION: 1,
1703
- COMPOSITION: 2,
1704
- DEPENDENCY: 3
1705
- }, _a);
1706
- var getStyles = /* @__PURE__ */ __name((options) => `
1707
- defs #statediagram-barbEnd {
1708
- fill: ${options.transitionColor};
1709
- stroke: ${options.transitionColor};
1710
- }
1711
- g.stateGroup text {
1712
- fill: ${options.nodeBorder};
1713
- stroke: none;
1714
- font-size: 10px;
1715
- }
1716
- g.stateGroup text {
1717
- fill: ${options.textColor};
1718
- stroke: none;
1719
- font-size: 10px;
1720
-
1721
- }
1722
- g.stateGroup .state-title {
1723
- font-weight: bolder;
1724
- fill: ${options.stateLabelColor};
1725
- }
1726
-
1727
- g.stateGroup rect {
1728
- fill: ${options.mainBkg};
1729
- stroke: ${options.nodeBorder};
1730
- }
1731
-
1732
- g.stateGroup line {
1733
- stroke: ${options.lineColor};
1734
- stroke-width: 1;
1735
- }
1736
-
1737
- .transition {
1738
- stroke: ${options.transitionColor};
1739
- stroke-width: 1;
1740
- fill: none;
1741
- }
1742
-
1743
- .stateGroup .composit {
1744
- fill: ${options.background};
1745
- border-bottom: 1px
1746
- }
1747
-
1748
- .stateGroup .alt-composit {
1749
- fill: #e0e0e0;
1750
- border-bottom: 1px
1751
- }
1752
-
1753
- .state-note {
1754
- stroke: ${options.noteBorderColor};
1755
- fill: ${options.noteBkgColor};
1756
-
1757
- text {
1758
- fill: ${options.noteTextColor};
1759
- stroke: none;
1760
- font-size: 10px;
1761
- }
1762
- }
1763
-
1764
- .stateLabel .box {
1765
- stroke: none;
1766
- stroke-width: 0;
1767
- fill: ${options.mainBkg};
1768
- opacity: 0.5;
1769
- }
1770
-
1771
- .edgeLabel .label rect {
1772
- fill: ${options.labelBackgroundColor};
1773
- opacity: 0.5;
1774
- }
1775
- .edgeLabel {
1776
- background-color: ${options.edgeLabelBackground};
1777
- p {
1778
- background-color: ${options.edgeLabelBackground};
1779
- }
1780
- rect {
1781
- opacity: 0.5;
1782
- background-color: ${options.edgeLabelBackground};
1783
- fill: ${options.edgeLabelBackground};
1784
- }
1785
- text-align: center;
1786
- }
1787
- .edgeLabel .label text {
1788
- fill: ${options.transitionLabelColor || options.tertiaryTextColor};
1789
- }
1790
- .label div .edgeLabel {
1791
- color: ${options.transitionLabelColor || options.tertiaryTextColor};
1792
- }
1793
-
1794
- .stateLabel text {
1795
- fill: ${options.stateLabelColor};
1796
- font-size: 10px;
1797
- font-weight: bold;
1798
- }
1799
-
1800
- .node circle.state-start {
1801
- fill: ${options.specialStateColor};
1802
- stroke: ${options.specialStateColor};
1803
- }
1804
-
1805
- .node .fork-join {
1806
- fill: ${options.specialStateColor};
1807
- stroke: ${options.specialStateColor};
1808
- }
1809
-
1810
- .node circle.state-end {
1811
- fill: ${options.innerEndBackground};
1812
- stroke: ${options.background};
1813
- stroke-width: 1.5
1814
- }
1815
- .end-state-inner {
1816
- fill: ${options.compositeBackground || options.background};
1817
- // stroke: ${options.background};
1818
- stroke-width: 1.5
1819
- }
1820
-
1821
- .node rect {
1822
- fill: ${options.stateBkg || options.mainBkg};
1823
- stroke: ${options.stateBorder || options.nodeBorder};
1824
- stroke-width: 1px;
1825
- }
1826
- .node polygon {
1827
- fill: ${options.mainBkg};
1828
- stroke: ${options.stateBorder || options.nodeBorder};;
1829
- stroke-width: 1px;
1830
- }
1831
- #statediagram-barbEnd {
1832
- fill: ${options.lineColor};
1833
- }
1834
-
1835
- .statediagram-cluster rect {
1836
- fill: ${options.compositeTitleBackground};
1837
- stroke: ${options.stateBorder || options.nodeBorder};
1838
- stroke-width: 1px;
1839
- }
1840
-
1841
- .cluster-label, .nodeLabel {
1842
- color: ${options.stateLabelColor};
1843
- // line-height: 1;
1844
- }
1845
-
1846
- .statediagram-cluster rect.outer {
1847
- rx: 5px;
1848
- ry: 5px;
1849
- }
1850
- .statediagram-state .divider {
1851
- stroke: ${options.stateBorder || options.nodeBorder};
1852
- }
1853
-
1854
- .statediagram-state .title-state {
1855
- rx: 5px;
1856
- ry: 5px;
1857
- }
1858
- .statediagram-cluster.statediagram-cluster .inner {
1859
- fill: ${options.compositeBackground || options.background};
1860
- }
1861
- .statediagram-cluster.statediagram-cluster-alt .inner {
1862
- fill: ${options.altBackground ? options.altBackground : "#efefef"};
1863
- }
1864
-
1865
- .statediagram-cluster .inner {
1866
- rx:0;
1867
- ry:0;
1868
- }
1869
-
1870
- .statediagram-state rect.basic {
1871
- rx: 5px;
1872
- ry: 5px;
1873
- }
1874
- .statediagram-state rect.divider {
1875
- stroke-dasharray: 10,10;
1876
- fill: ${options.altBackground ? options.altBackground : "#efefef"};
1877
- }
1878
-
1879
- .note-edge {
1880
- stroke-dasharray: 5;
1881
- }
1882
-
1883
- .statediagram-note rect {
1884
- fill: ${options.noteBkgColor};
1885
- stroke: ${options.noteBorderColor};
1886
- stroke-width: 1px;
1887
- rx: 0;
1888
- ry: 0;
1889
- }
1890
- .statediagram-note rect {
1891
- fill: ${options.noteBkgColor};
1892
- stroke: ${options.noteBorderColor};
1893
- stroke-width: 1px;
1894
- rx: 0;
1895
- ry: 0;
1896
- }
1897
-
1898
- .statediagram-note text {
1899
- fill: ${options.noteTextColor};
1900
- }
1901
-
1902
- .statediagram-note .nodeLabel {
1903
- color: ${options.noteTextColor};
1904
- }
1905
- .statediagram .edgeLabel {
1906
- color: red; // ${options.noteTextColor};
1907
- }
1908
-
1909
- #dependencyStart, #dependencyEnd {
1910
- fill: ${options.lineColor};
1911
- stroke: ${options.lineColor};
1912
- stroke-width: 1;
1913
- }
1914
-
1915
- .statediagramTitleText {
1916
- text-anchor: middle;
1917
- font-size: 18px;
1918
- fill: ${options.textColor};
1919
- }
1920
- `, "getStyles");
1921
- var styles_default = getStyles;
1922
- export {
1923
- StateDB as S,
1924
- stateDiagram_default as a,
1925
- stateRenderer_v3_unified_default as b,
1926
- styles_default as s
1927
- };
1928
- //# sourceMappingURL=chunk-DI55MBZ5-CkzP_mAJ.js.map