@altimateai/ui-components 0.0.79 → 0.0.80

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 (521) hide show
  1. package/dist/0~315.js +46635 -0
  2. package/dist/0~315.js.LICENSE.txt +73 -0
  3. package/dist/0~315.js.map +1 -0
  4. package/dist/131.js +14352 -0
  5. package/dist/131.js.map +1 -0
  6. package/dist/3~315.js +46635 -0
  7. package/dist/3~315.js.LICENSE.txt +73 -0
  8. package/dist/3~315.js.map +1 -0
  9. package/dist/582.js +1299 -0
  10. package/dist/582.js.map +1 -0
  11. package/dist/assets/icons/index.d.ts +45 -110
  12. package/dist/assets/icons/index.d.ts.map +1 -0
  13. package/dist/chatbotV2.js +5233 -0
  14. package/dist/chatbotV2.js.map +1 -0
  15. package/dist/components/api/index.d.ts +7 -0
  16. package/dist/components/api/index.d.ts.map +1 -0
  17. package/dist/components/api/useMutation.d.ts +12 -0
  18. package/dist/components/api/useMutation.d.ts.map +1 -0
  19. package/dist/components/api/useQuery.d.ts +12 -0
  20. package/dist/components/api/useQuery.d.ts.map +1 -0
  21. package/dist/components/chatbotV2/ChatProvider.d.ts +17 -0
  22. package/dist/components/chatbotV2/ChatProvider.d.ts.map +1 -0
  23. package/dist/components/chatbotV2/Chatbot.d.ts +4 -0
  24. package/dist/components/chatbotV2/Chatbot.d.ts.map +1 -0
  25. package/dist/components/chatbotV2/HelloMessageSample.d.ts +3 -0
  26. package/dist/components/chatbotV2/HelloMessageSample.d.ts.map +1 -0
  27. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts +9 -0
  28. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts.map +1 -0
  29. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts +9 -0
  30. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts.map +1 -0
  31. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts +8 -0
  32. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts.map +1 -0
  33. package/dist/components/chatbotV2/components/artifacts/index.d.ts +2 -0
  34. package/dist/components/chatbotV2/components/artifacts/index.d.ts.map +1 -0
  35. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts +8 -0
  36. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts.map +1 -0
  37. package/dist/components/chatbotV2/components/attachmentList/index.d.ts +2 -0
  38. package/dist/components/chatbotV2/components/attachmentList/index.d.ts.map +1 -0
  39. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts +3 -0
  40. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts.map +1 -0
  41. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts +2 -0
  42. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts.map +1 -0
  43. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts +8 -0
  44. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts.map +1 -0
  45. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts +8 -0
  46. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts.map +1 -0
  47. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts +10 -0
  48. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts.map +1 -0
  49. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts +9 -0
  50. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts.map +1 -0
  51. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts +4 -0
  52. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts.map +1 -0
  53. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts +7 -0
  54. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts.map +1 -0
  55. package/dist/components/chatbotV2/components/citations/Citations.d.ts +28 -0
  56. package/dist/components/chatbotV2/components/citations/Citations.d.ts.map +1 -0
  57. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts +2 -0
  58. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts.map +1 -0
  59. package/dist/components/chatbotV2/components/coachAI/index.d.ts +2 -0
  60. package/dist/components/chatbotV2/components/coachAI/index.d.ts.map +1 -0
  61. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts +13 -0
  62. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts.map +1 -0
  63. package/dist/components/chatbotV2/components/contextPanel/index.d.ts +2 -0
  64. package/dist/components/chatbotV2/components/contextPanel/index.d.ts.map +1 -0
  65. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts +10 -0
  66. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts.map +1 -0
  67. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts +7 -0
  68. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts.map +1 -0
  69. package/dist/components/chatbotV2/components/entityItem/index.d.ts +2 -0
  70. package/dist/components/chatbotV2/components/entityItem/index.d.ts.map +1 -0
  71. package/dist/components/chatbotV2/components/followup/Followup.d.ts +3 -0
  72. package/dist/components/chatbotV2/components/followup/Followup.d.ts.map +1 -0
  73. package/dist/components/chatbotV2/components/index.d.ts +18 -0
  74. package/dist/components/chatbotV2/components/index.d.ts.map +1 -0
  75. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts +8 -0
  76. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts.map +1 -0
  77. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts +2 -0
  78. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts.map +1 -0
  79. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts +3 -0
  80. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts.map +1 -0
  81. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts +2 -0
  82. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts.map +1 -0
  83. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts +12 -0
  84. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts.map +1 -0
  85. package/dist/components/chatbotV2/components/messageItem/index.d.ts +2 -0
  86. package/dist/components/chatbotV2/components/messageItem/index.d.ts.map +1 -0
  87. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts +11 -0
  88. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts.map +1 -0
  89. package/dist/components/chatbotV2/components/messageList/index.d.ts +2 -0
  90. package/dist/components/chatbotV2/components/messageList/index.d.ts.map +1 -0
  91. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts +15 -0
  92. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts.map +1 -0
  93. package/dist/components/chatbotV2/components/questionForm/index.d.ts +2 -0
  94. package/dist/components/chatbotV2/components/questionForm/index.d.ts.map +1 -0
  95. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts +8 -0
  96. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts.map +1 -0
  97. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts +7 -0
  98. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts.map +1 -0
  99. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts +2 -0
  100. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts.map +1 -0
  101. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts +8 -0
  102. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts.map +1 -0
  103. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts +10 -0
  104. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts.map +1 -0
  105. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts +2 -0
  106. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts.map +1 -0
  107. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts +8 -0
  108. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts.map +1 -0
  109. package/dist/components/chatbotV2/components/todoProgress/index.d.ts +2 -0
  110. package/dist/components/chatbotV2/components/todoProgress/index.d.ts.map +1 -0
  111. package/dist/components/chatbotV2/hooks/transports.d.ts +126 -0
  112. package/dist/components/chatbotV2/hooks/transports.d.ts.map +1 -0
  113. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts +41 -0
  114. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts.map +1 -0
  115. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts +4 -0
  116. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts.map +1 -0
  117. package/dist/components/chatbotV2/hooks/useFeedback.d.ts +5 -0
  118. package/dist/components/chatbotV2/hooks/useFeedback.d.ts.map +1 -0
  119. package/dist/components/chatbotV2/index.d.ts +22 -0
  120. package/dist/components/chatbotV2/index.d.ts.map +1 -0
  121. package/dist/components/chatbotV2/store/chatSlice.d.ts +65 -0
  122. package/dist/components/chatbotV2/store/chatSlice.d.ts.map +1 -0
  123. package/dist/components/chatbotV2/store/index.d.ts +10 -0
  124. package/dist/components/chatbotV2/store/index.d.ts.map +1 -0
  125. package/dist/{types-ByRPUpXR.d.ts → components/chatbotV2/types.d.ts} +77 -195
  126. package/dist/components/chatbotV2/types.d.ts.map +1 -0
  127. package/dist/components/chatbotV2/utils/entityDetection.d.ts +12 -0
  128. package/dist/components/chatbotV2/utils/entityDetection.d.ts.map +1 -0
  129. package/dist/components/chatbotV2/utils/streamProcessor.d.ts +98 -0
  130. package/dist/components/chatbotV2/utils/streamProcessor.d.ts.map +1 -0
  131. package/dist/components/chatbotV2/utils.d.ts +3 -0
  132. package/dist/components/chatbotV2/utils.d.ts.map +1 -0
  133. package/dist/components/dbtDocs/api/index.d.ts +16 -0
  134. package/dist/components/dbtDocs/api/index.d.ts.map +1 -0
  135. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts +6 -0
  136. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts.map +1 -0
  137. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts +13 -0
  138. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts.map +1 -0
  139. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts +3 -0
  140. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts.map +1 -0
  141. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts +3 -0
  142. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts.map +1 -0
  143. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts +22 -0
  144. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts.map +1 -0
  145. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts +3 -0
  146. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts.map +1 -0
  147. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts +1931 -0
  148. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts.map +1 -0
  149. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts +12 -0
  150. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts.map +1 -0
  151. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts +7 -0
  152. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts.map +1 -0
  153. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts +7 -0
  154. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts.map +1 -0
  155. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts +3 -0
  156. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts.map +1 -0
  157. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts +3 -0
  158. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts.map +1 -0
  159. package/dist/components/dbtDocs/collaboration/constants.d.ts +20 -0
  160. package/dist/components/dbtDocs/collaboration/constants.d.ts.map +1 -0
  161. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts +9 -0
  162. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts.map +1 -0
  163. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts +10 -0
  164. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts.map +1 -0
  165. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts +3 -0
  166. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts.map +1 -0
  167. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts +13 -0
  168. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts.map +1 -0
  169. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts +6 -0
  170. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts.map +1 -0
  171. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts +9 -0
  172. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts.map +1 -0
  173. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts +8 -0
  174. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts.map +1 -0
  175. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts +18 -0
  176. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts.map +1 -0
  177. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts +44 -0
  178. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts.map +1 -0
  179. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts +5 -0
  180. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts.map +1 -0
  181. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts +28 -0
  182. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts.map +1 -0
  183. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts +11 -0
  184. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts.map +1 -0
  185. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts +32 -0
  186. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts.map +1 -0
  187. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts +15 -0
  188. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts.map +1 -0
  189. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts +17 -0
  190. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts.map +1 -0
  191. package/dist/components/dbtDocs/collaboration/types.d.ts +15 -0
  192. package/dist/components/dbtDocs/collaboration/types.d.ts.map +1 -0
  193. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts +5 -0
  194. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts.map +1 -0
  195. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts +7 -0
  196. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts.map +1 -0
  197. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts +12 -0
  198. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts.map +1 -0
  199. package/dist/components/dbtDocs/details/AddCommentButton.d.ts +3 -0
  200. package/dist/components/dbtDocs/details/AddCommentButton.d.ts.map +1 -0
  201. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts +3 -0
  202. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts.map +1 -0
  203. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts +3 -0
  204. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts.map +1 -0
  205. package/dist/components/dbtDocs/details/DbtDocs.d.ts +10 -0
  206. package/dist/components/dbtDocs/details/DbtDocs.d.ts.map +1 -0
  207. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts +3 -0
  208. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts.map +1 -0
  209. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts +8 -0
  210. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts.map +1 -0
  211. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts +5 -0
  212. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts.map +1 -0
  213. package/dist/components/dbtDocs/index.d.ts +8 -0
  214. package/dist/components/dbtDocs/index.d.ts.map +1 -0
  215. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts +3 -0
  216. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts.map +1 -0
  217. package/dist/components/lineage/api/index.d.ts +65 -0
  218. package/dist/components/lineage/api/index.d.ts.map +1 -0
  219. package/dist/components/lineage/assets/icons/index.d.ts +61 -0
  220. package/dist/components/lineage/assets/icons/index.d.ts.map +1 -0
  221. package/dist/components/lineage/cllUtils.d.ts +17 -0
  222. package/dist/components/lineage/cllUtils.d.ts.map +1 -0
  223. package/dist/components/lineage/components/AutoExpansionPopover.d.ts +3 -0
  224. package/dist/components/lineage/components/AutoExpansionPopover.d.ts.map +1 -0
  225. package/dist/components/lineage/components/BetterPopover.d.ts +14 -0
  226. package/dist/components/lineage/components/BetterPopover.d.ts.map +1 -0
  227. package/dist/components/lineage/components/Chip.d.ts +6 -0
  228. package/dist/components/lineage/components/Chip.d.ts.map +1 -0
  229. package/dist/components/lineage/components/Column.d.ts +52 -0
  230. package/dist/components/lineage/components/Column.d.ts.map +1 -0
  231. package/dist/components/lineage/components/ColumnRow.d.ts +8 -0
  232. package/dist/components/lineage/components/ColumnRow.d.ts.map +1 -0
  233. package/dist/components/lineage/components/CustomNodes.d.ts +16 -0
  234. package/dist/components/lineage/components/CustomNodes.d.ts.map +1 -0
  235. package/dist/components/lineage/components/DashboardDetails.d.ts +12 -0
  236. package/dist/components/lineage/components/DashboardDetails.d.ts.map +1 -0
  237. package/dist/components/lineage/components/DynamicLineage.d.ts +9 -0
  238. package/dist/components/lineage/components/DynamicLineage.d.ts.map +1 -0
  239. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts +3 -0
  240. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts.map +1 -0
  241. package/dist/components/lineage/components/ExportButton.d.ts +6 -0
  242. package/dist/components/lineage/components/ExportButton.d.ts.map +1 -0
  243. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts +5 -0
  244. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts.map +1 -0
  245. package/dist/components/lineage/components/ExposureDetails.d.ts +6 -0
  246. package/dist/components/lineage/components/ExposureDetails.d.ts.map +1 -0
  247. package/dist/components/lineage/components/Feedback.d.ts +5 -0
  248. package/dist/components/lineage/components/Feedback.d.ts.map +1 -0
  249. package/dist/components/lineage/components/Form.d.ts +5 -0
  250. package/dist/components/lineage/components/Form.d.ts.map +1 -0
  251. package/dist/components/lineage/components/FunctionDetails.d.ts +3 -0
  252. package/dist/components/lineage/components/FunctionDetails.d.ts.map +1 -0
  253. package/dist/components/lineage/components/LineageLegend.d.ts +3 -0
  254. package/dist/components/lineage/components/LineageLegend.d.ts.map +1 -0
  255. package/dist/components/lineage/components/LineageModals.d.ts +3 -0
  256. package/dist/components/lineage/components/LineageModals.d.ts.map +1 -0
  257. package/dist/components/lineage/components/Loader/index.d.ts +7 -0
  258. package/dist/components/lineage/components/Loader/index.d.ts.map +1 -0
  259. package/dist/components/lineage/components/MoreTables.d.ts +11 -0
  260. package/dist/components/lineage/components/MoreTables.d.ts.map +1 -0
  261. package/dist/components/lineage/components/Purpose.d.ts +6 -0
  262. package/dist/components/lineage/components/Purpose.d.ts.map +1 -0
  263. package/dist/components/lineage/components/ResetButton.d.ts +6 -0
  264. package/dist/components/lineage/components/ResetButton.d.ts.map +1 -0
  265. package/dist/components/lineage/components/Settings.d.ts +6 -0
  266. package/dist/components/lineage/components/Settings.d.ts.map +1 -0
  267. package/dist/components/lineage/components/SettingsButton.d.ts +3 -0
  268. package/dist/components/lineage/components/SettingsButton.d.ts.map +1 -0
  269. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts +13 -0
  270. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts.map +1 -0
  271. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts +3 -0
  272. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts.map +1 -0
  273. package/dist/components/lineage/components/SqlLineage.d.ts +12 -0
  274. package/dist/components/lineage/components/SqlLineage.d.ts.map +1 -0
  275. package/dist/components/lineage/components/StaticLineage.d.ts +17 -0
  276. package/dist/components/lineage/components/StaticLineage.d.ts.map +1 -0
  277. package/dist/components/lineage/components/TableDetails.d.ts +53 -0
  278. package/dist/components/lineage/components/TableDetails.d.ts.map +1 -0
  279. package/dist/components/lineage/components/Tags/index.d.ts +5 -0
  280. package/dist/components/lineage/components/Tags/index.d.ts.map +1 -0
  281. package/dist/components/lineage/components/ViewsTypeBadge.d.ts +5 -0
  282. package/dist/components/lineage/components/ViewsTypeBadge.d.ts.map +1 -0
  283. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts +9 -0
  284. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts.map +1 -0
  285. package/dist/components/lineage/constants.d.ts +12 -0
  286. package/dist/components/lineage/constants.d.ts.map +1 -0
  287. package/dist/components/lineage/context/LineageProvider.d.ts +35 -0
  288. package/dist/components/lineage/context/LineageProvider.d.ts.map +1 -0
  289. package/dist/components/lineage/context/LineageSlice.d.ts +4673 -0
  290. package/dist/components/lineage/context/LineageSlice.d.ts.map +1 -0
  291. package/dist/components/lineage/context/types.d.ts +57 -0
  292. package/dist/components/lineage/context/types.d.ts.map +1 -0
  293. package/dist/components/lineage/graph.d.ts +43 -0
  294. package/dist/components/lineage/graph.d.ts.map +1 -0
  295. package/dist/components/lineage/index.d.ts +8 -0
  296. package/dist/components/lineage/index.d.ts.map +1 -0
  297. package/dist/{lineage/index.d.ts → components/lineage/types.d.ts} +59 -92
  298. package/dist/components/lineage/types.d.ts.map +1 -0
  299. package/dist/components/lineage/utils.d.ts +100 -0
  300. package/dist/components/lineage/utils.d.ts.map +1 -0
  301. package/dist/components/shared/index.d.ts +2 -0
  302. package/dist/components/shared/index.d.ts.map +1 -0
  303. package/dist/components/shared/types.d.ts +18 -0
  304. package/dist/components/shared/types.d.ts.map +1 -0
  305. package/dist/components/teammate/AddLearningForm.d.ts +13 -0
  306. package/dist/components/teammate/AddLearningForm.d.ts.map +1 -0
  307. package/dist/components/teammate/CoachForm.d.ts +10 -0
  308. package/dist/components/teammate/CoachForm.d.ts.map +1 -0
  309. package/dist/components/teammate/CoachFormButton.d.ts +3 -0
  310. package/dist/components/teammate/CoachFormButton.d.ts.map +1 -0
  311. package/dist/components/teammate/CoachFormInput.d.ts +8 -0
  312. package/dist/components/teammate/CoachFormInput.d.ts.map +1 -0
  313. package/dist/components/teammate/LearningRow.d.ts +10 -0
  314. package/dist/components/teammate/LearningRow.d.ts.map +1 -0
  315. package/dist/components/teammate/LearningsList.d.ts +11 -0
  316. package/dist/components/teammate/LearningsList.d.ts.map +1 -0
  317. package/dist/components/teammate/TeamMateProvider.d.ts +8 -0
  318. package/dist/components/teammate/TeamMateProvider.d.ts.map +1 -0
  319. package/dist/components/teammate/TeamMates.d.ts +10 -0
  320. package/dist/components/teammate/TeamMates.d.ts.map +1 -0
  321. package/dist/components/teammate/TeamMatesCard.d.ts +10 -0
  322. package/dist/components/teammate/TeamMatesCard.d.ts.map +1 -0
  323. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts +4 -0
  324. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts.map +1 -0
  325. package/dist/components/teammate/assets/index.d.ts +8 -0
  326. package/dist/components/teammate/assets/index.d.ts.map +1 -0
  327. package/dist/components/teammate/index.d.ts +11 -0
  328. package/dist/components/teammate/index.d.ts.map +1 -0
  329. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts +7 -0
  330. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts.map +1 -0
  331. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts +8 -0
  332. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts.map +1 -0
  333. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts +3 -0
  334. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts.map +1 -0
  335. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts +7 -0
  336. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts.map +1 -0
  337. package/dist/components/teammate/projectGovernor/types.d.ts +48 -0
  338. package/dist/components/teammate/projectGovernor/types.d.ts.map +1 -0
  339. package/dist/components/teammate/teamMateSlice.d.ts +15 -0
  340. package/dist/components/teammate/teamMateSlice.d.ts.map +1 -0
  341. package/dist/components/teammate/teamMatesConfig.d.ts +3 -0
  342. package/dist/components/teammate/teamMatesConfig.d.ts.map +1 -0
  343. package/dist/components/teammate/teradata/HelloMessage.d.ts +3 -0
  344. package/dist/components/teammate/teradata/HelloMessage.d.ts.map +1 -0
  345. package/dist/components/teammate/teradata/MigratorDisplay.d.ts +4 -0
  346. package/dist/components/teammate/teradata/MigratorDisplay.d.ts.map +1 -0
  347. package/dist/components/teammate/types.d.ts +113 -0
  348. package/dist/components/teammate/types.d.ts.map +1 -0
  349. package/dist/components/teammate/useTeamMateContext.d.ts +3 -0
  350. package/dist/components/teammate/useTeamMateContext.d.ts.map +1 -0
  351. package/dist/components/user/ProfileImageByUser.d.ts +7 -0
  352. package/dist/components/user/ProfileImageByUser.d.ts.map +1 -0
  353. package/dist/components/user/index.d.ts +3 -0
  354. package/dist/components/user/index.d.ts.map +1 -0
  355. package/dist/components/user/types.d.ts +7 -0
  356. package/dist/components/user/types.d.ts.map +1 -0
  357. package/dist/dbtDocs.css +297 -0
  358. package/dist/dbtDocs.css.map +1 -0
  359. package/dist/dbtDocs.js +1 -0
  360. package/dist/index.d.ts +14 -285
  361. package/dist/index.d.ts.map +1 -0
  362. package/dist/index.js +1 -40
  363. package/dist/lineage.css +1221 -0
  364. package/dist/lineage.css.map +1 -0
  365. package/dist/lineage.js +7267 -0
  366. package/dist/lineage.js.map +1 -0
  367. package/dist/rslib-runtime.js +20 -0
  368. package/dist/rslib-runtime.js.map +1 -0
  369. package/dist/shared/AutosizeTextarea.d.ts +19 -0
  370. package/dist/shared/AutosizeTextarea.d.ts.map +1 -0
  371. package/dist/shared/Collapse.d.ts +7 -0
  372. package/dist/shared/Collapse.d.ts.map +1 -0
  373. package/dist/shared/Table.d.ts +4 -0
  374. package/dist/shared/Table.d.ts.map +1 -0
  375. package/dist/shared/index.d.ts +3 -0
  376. package/dist/shared/index.d.ts.map +1 -0
  377. package/dist/shared/utils.d.ts +3 -0
  378. package/dist/shared/utils.d.ts.map +1 -0
  379. package/dist/static/image/postgres.png +0 -0
  380. package/dist/static/image/s3.png +0 -0
  381. package/dist/static/image/snowflake.png +0 -0
  382. package/dist/static/svg/botIcon.svg +15 -0
  383. package/dist/static/svg/brackets.svg +5 -0
  384. package/dist/static/svg/case-sensitive.svg +5 -0
  385. package/dist/static/svg/docgen.svg +23 -0
  386. package/dist/static/svg/half-circle.svg +5 -0
  387. package/dist/static/svg/opportunities.svg +25 -0
  388. package/dist/static/svg/split-horizontal.svg +5 -0
  389. package/dist/static/svg/sqlExpert.svg +24 -0
  390. package/dist/static/svg/summary.svg +25 -0
  391. package/dist/styles.css +1638 -0
  392. package/dist/styles.css.map +1 -0
  393. package/dist/teammate.css +124 -0
  394. package/dist/teammate.css.map +1 -0
  395. package/dist/teammate.js +5655 -0
  396. package/dist/teammate.js.map +1 -0
  397. package/dist/user.css +14 -0
  398. package/dist/user.css.map +1 -0
  399. package/dist/user.js +13 -0
  400. package/dist/user.js.map +1 -0
  401. package/package.json +116 -34
  402. package/dist/Button-42Dj_nRE.d.ts +0 -28
  403. package/dist/CoachForm.css +0 -1
  404. package/dist/CoachForm.js +0 -44445
  405. package/dist/DbtDocsRenderer.js +0 -45647
  406. package/dist/IconEye.js +0 -11
  407. package/dist/Stack.js +0 -7170
  408. package/dist/Switch.js +0 -128
  409. package/dist/ToggleGroup.js +0 -8543
  410. package/dist/_basePickBy.js +0 -151
  411. package/dist/_baseUniq.js +0 -615
  412. package/dist/arc.js +0 -83
  413. package/dist/architecture-U656AL7Q.js +0 -5
  414. package/dist/architectureDiagram-VXUJARFQ.js +0 -4666
  415. package/dist/assets/icons/index.js +0 -56
  416. package/dist/blockDiagram-VD42YOAC.js +0 -2266
  417. package/dist/c4Diagram-YG6GDRKO.js +0 -1582
  418. package/dist/channel.js +0 -5
  419. package/dist/chatbotV2/index.d.ts +0 -359
  420. package/dist/chatbotV2/index.js +0 -58
  421. package/dist/chunk-4BX2VUAB.js +0 -9
  422. package/dist/chunk-55IACEB6.js +0 -9
  423. package/dist/chunk-B4BG7PRW.js +0 -1377
  424. package/dist/chunk-DI55MBZ5.js +0 -1382
  425. package/dist/chunk-FMBD7UC4.js +0 -19
  426. package/dist/chunk-QN33PNHL.js +0 -20
  427. package/dist/chunk-QZHKN3VN.js +0 -15
  428. package/dist/chunk-TZMSLE5B.js +0 -64
  429. package/dist/classDiagram-2ON5EDUG.js +0 -17
  430. package/dist/classDiagram-v2-WZHVMYZB.js +0 -17
  431. package/dist/clone.js +0 -8
  432. package/dist/cose-bilkent-S5V4N54A.js +0 -2606
  433. package/dist/cytoscape.esm.js +0 -18731
  434. package/dist/dagre-6UL2VRFP.js +0 -447
  435. package/dist/dayjs.min.js +0 -302
  436. package/dist/defaultLocale.js +0 -171
  437. package/dist/diagram-PSM6KHXK.js +0 -535
  438. package/dist/diagram-QEK2KX5R.js +0 -221
  439. package/dist/diagram-S2PKOQOG.js +0 -143
  440. package/dist/erDiagram-Q2GNP2WA.js +0 -843
  441. package/dist/flowDiagram-NV44I4VS.js +0 -1628
  442. package/dist/ganttDiagram-LVOFAZNH.js +0 -2500
  443. package/dist/gitGraph-F6HP7TQM.js +0 -5
  444. package/dist/gitGraphDiagram-NY62KEGX.js +0 -713
  445. package/dist/graph.js +0 -247
  446. package/dist/index.css +0 -1
  447. package/dist/index2.js +0 -689
  448. package/dist/info-NVLQJR56.js +0 -5
  449. package/dist/infoDiagram-F6ZHWCRC.js +0 -24
  450. package/dist/init.js +0 -16
  451. package/dist/journeyDiagram-XKPGCS4Q.js +0 -837
  452. package/dist/kanban-definition-3W4ZIXB7.js +0 -720
  453. package/dist/katex.js +0 -11691
  454. package/dist/layout.js +0 -1324
  455. package/dist/lineage/index.js +0 -7328
  456. package/dist/linear.js +0 -259
  457. package/dist/main.css +0 -1
  458. package/dist/main.js +0 -4566
  459. package/dist/mermaid-parser.core.js +0 -12921
  460. package/dist/mindmap-definition-VGOIOE7T.js +0 -786
  461. package/dist/ordinal.js +0 -61
  462. package/dist/packet-BFZMPI3H.js +0 -5
  463. package/dist/pie-7BOR55EZ.js +0 -5
  464. package/dist/pieDiagram-ADFJNKIX.js +0 -163
  465. package/dist/quadrantDiagram-AYHSOK5B.js +0 -1025
  466. package/dist/radar-NHE76QYJ.js +0 -5
  467. package/dist/redux-toolkit.css +0 -1
  468. package/dist/redux-toolkit.modern.js +0 -12525
  469. package/dist/requirementDiagram-UZGBJVZJ.js +0 -852
  470. package/dist/sankeyDiagram-TZEHDZUN.js +0 -811
  471. package/dist/sequenceDiagram-WL72ISMW.js +0 -2523
  472. package/dist/shadcn/index.d.ts +0 -761
  473. package/dist/shadcn/index.js +0 -8680
  474. package/dist/stateDiagram-FKZM4ZOC.js +0 -264
  475. package/dist/stateDiagram-v2-4FDKWEC3.js +0 -17
  476. package/dist/storybook/Accordion.stories.tsx +0 -52
  477. package/dist/storybook/Alert.stories.tsx +0 -101
  478. package/dist/storybook/AlertDialog.stories.tsx +0 -161
  479. package/dist/storybook/AutosizeTextarea.stories.tsx +0 -52
  480. package/dist/storybook/Avatar.stories.tsx +0 -58
  481. package/dist/storybook/Badge.stories.tsx +0 -43
  482. package/dist/storybook/Button.stories.tsx +0 -67
  483. package/dist/storybook/Calendar.stories.tsx +0 -103
  484. package/dist/storybook/Card.stories.tsx +0 -69
  485. package/dist/storybook/Carousel.stories.tsx +0 -274
  486. package/dist/storybook/Checkbox.stories.tsx +0 -65
  487. package/dist/storybook/Combobox.stories.tsx +0 -1629
  488. package/dist/storybook/Command.stories.tsx +0 -35
  489. package/dist/storybook/DateRange.stories.tsx +0 -540
  490. package/dist/storybook/DebouncedInput.stories.tsx +0 -179
  491. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  492. package/dist/storybook/Form.stories.tsx +0 -114
  493. package/dist/storybook/HoverCard.stories.tsx +0 -99
  494. package/dist/storybook/Input.stories.tsx +0 -156
  495. package/dist/storybook/InputGroup.stories.tsx +0 -352
  496. package/dist/storybook/Label.stories.tsx +0 -42
  497. package/dist/storybook/Menubar.stories.tsx +0 -159
  498. package/dist/storybook/Pagination.stories.tsx +0 -152
  499. package/dist/storybook/Popover.stories.tsx +0 -23
  500. package/dist/storybook/Progress.stories.tsx +0 -89
  501. package/dist/storybook/RadioGroup.stories.tsx +0 -58
  502. package/dist/storybook/Resizable.stories.tsx +0 -119
  503. package/dist/storybook/ScrollArea.stories.tsx +0 -101
  504. package/dist/storybook/Select.stories.tsx +0 -145
  505. package/dist/storybook/Sheet.stories.tsx +0 -69
  506. package/dist/storybook/Sidebar.stories.tsx +0 -97
  507. package/dist/storybook/Slider.stories.tsx +0 -79
  508. package/dist/storybook/Switch.stories.tsx +0 -90
  509. package/dist/storybook/Tabs.stories.tsx +0 -147
  510. package/dist/storybook/TagsInput.stories.tsx +0 -261
  511. package/dist/storybook/Textarea.stories.tsx +0 -50
  512. package/dist/storybook/Toast.stories.tsx +0 -107
  513. package/dist/storybook/Toggle.stories.tsx +0 -106
  514. package/dist/storybook/ToggleGroup.stories.tsx +0 -178
  515. package/dist/storybook/Tooltip.stories.tsx +0 -25
  516. package/dist/storybook/Typography.stories.tsx +0 -231
  517. package/dist/storybook/drag-and-drop-file-upload.stories.tsx +0 -99
  518. package/dist/timeline-definition-IT6M3QCI.js +0 -802
  519. package/dist/treemap-KMMF4GRG.js +0 -5
  520. package/dist/xychartDiagram-PRI3JC2R.js +0 -1341
  521. package/readme.md +0 -11
package/dist/layout.js DELETED
@@ -1,1324 +0,0 @@
1
- import { G as g } from "./graph.js";
2
- import { b as Te, p as ce, q as le, g as z, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq.js";
3
- import { f as O, b as he, a as je, c as Ve, d as Ae, t as V, m as w, e as P, h as ve, g as X, l as T, i as Be } from "./_basePickBy.js";
4
- import { bN as Ge, bO as Ye, bP as De, bD as qe, bQ as $e, bH as pe, bG as we, bR as We, bC as q, bq as ze, bJ as Xe, bs as Ue, bS as $ } from "./CoachForm.js";
5
- function He(e) {
6
- return Ge(Ye(e, void 0, O), e + "");
7
- }
8
- var Je = 1, Qe = 4;
9
- function Ze(e) {
10
- return Te(e, Je | Qe);
11
- }
12
- function Ke(e, n) {
13
- return e == null ? e : De(e, ce(n), qe);
14
- }
15
- function en(e, n) {
16
- return e && le(e, ce(n));
17
- }
18
- function nn(e, n) {
19
- return e > n;
20
- }
21
- function S(e, n) {
22
- var r = {};
23
- return n = z(n), le(e, function(t, a, i) {
24
- $e(r, a, n(t, a, i));
25
- }), r;
26
- }
27
- function y(e) {
28
- return e && e.length ? he(e, pe, nn) : void 0;
29
- }
30
- function U(e, n) {
31
- return e && e.length ? he(e, z(n), je) : void 0;
32
- }
33
- function rn(e, n) {
34
- var r = e.length;
35
- for (e.sort(n); r--; )
36
- e[r] = e[r].value;
37
- return e;
38
- }
39
- function tn(e, n) {
40
- if (e !== n) {
41
- var r = e !== void 0, t = e === null, a = e === e, i = ee(e), o = n !== void 0, u = n === null, d = n === n, s = ee(n);
42
- if (!u && !s && !i && e > n || i && o && d && !u && !s || t && o && d || !r && d || !a)
43
- return 1;
44
- if (!t && !i && !s && e < n || s && r && a && !t && !i || u && r && a || !o && a || !d)
45
- return -1;
46
- }
47
- return 0;
48
- }
49
- function an(e, n, r) {
50
- for (var t = -1, a = e.criteria, i = n.criteria, o = a.length, u = r.length; ++t < o; ) {
51
- var d = tn(a[t], i[t]);
52
- if (d) {
53
- if (t >= u)
54
- return d;
55
- var s = r[t];
56
- return d * (s == "desc" ? -1 : 1);
57
- }
58
- }
59
- return e.index - n.index;
60
- }
61
- function on(e, n, r) {
62
- n.length ? n = j(n, function(i) {
63
- return we(i) ? function(o) {
64
- return Ie(o, i.length === 1 ? i[0] : i);
65
- } : i;
66
- }) : n = [pe];
67
- var t = -1;
68
- n = j(n, We(z));
69
- var a = Ve(e, function(i, o, u) {
70
- var d = j(n, function(s) {
71
- return s(i);
72
- });
73
- return { criteria: d, index: ++t, value: i };
74
- });
75
- return rn(a, function(i, o) {
76
- return an(i, o, r);
77
- });
78
- }
79
- function un(e, n) {
80
- return Ae(e, n, function(r, t) {
81
- return Me(e, t);
82
- });
83
- }
84
- var I = He(function(e, n) {
85
- return e == null ? {} : un(e, n);
86
- }), dn = Math.ceil, sn = Math.max;
87
- function fn(e, n, r, t) {
88
- for (var a = -1, i = sn(dn((n - e) / (r || 1)), 0), o = Array(i); i--; )
89
- o[++a] = e, e += r;
90
- return o;
91
- }
92
- function cn(e) {
93
- return function(n, r, t) {
94
- return t && typeof t != "number" && q(n, r, t) && (r = t = void 0), n = V(n), r === void 0 ? (r = n, n = 0) : r = V(r), t = t === void 0 ? n < r ? 1 : -1 : V(t), fn(n, r, t);
95
- };
96
- }
97
- var E = cn(), R = ze(function(e, n) {
98
- if (e == null)
99
- return [];
100
- var r = n.length;
101
- return r > 1 && q(e, n[0], n[1]) ? n = [] : r > 2 && q(n[0], n[1], n[2]) && (n = [n[0]]), on(e, Se(n), []);
102
- }), ln = 0;
103
- function H(e) {
104
- var n = ++ln;
105
- return Fe(e) + n;
106
- }
107
- function hn(e, n, r) {
108
- for (var t = -1, a = e.length, i = n.length, o = {}; ++t < a; ) {
109
- var u = t < i ? n[t] : void 0;
110
- r(o, e[t], u);
111
- }
112
- return o;
113
- }
114
- function vn(e, n) {
115
- return hn(e || [], n || [], Xe);
116
- }
117
- class pn {
118
- constructor() {
119
- var n = {};
120
- n._next = n._prev = n, this._sentinel = n;
121
- }
122
- dequeue() {
123
- var n = this._sentinel, r = n._prev;
124
- if (r !== n)
125
- return ne(r), r;
126
- }
127
- enqueue(n) {
128
- var r = this._sentinel;
129
- n._prev && n._next && ne(n), n._next = r._next, r._next._prev = n, r._next = n, n._prev = r;
130
- }
131
- toString() {
132
- for (var n = [], r = this._sentinel, t = r._prev; t !== r; )
133
- n.push(JSON.stringify(t, wn)), t = t._prev;
134
- return "[" + n.join(", ") + "]";
135
- }
136
- }
137
- function ne(e) {
138
- e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
139
- }
140
- function wn(e, n) {
141
- if (e !== "_next" && e !== "_prev")
142
- return n;
143
- }
144
- var bn = Ue(1);
145
- function mn(e, n) {
146
- if (e.nodeCount() <= 1)
147
- return [];
148
- var r = yn(e, n || bn), t = gn(r.graph, r.buckets, r.zeroIdx);
149
- return O(
150
- w(t, function(a) {
151
- return e.outEdges(a.v, a.w);
152
- })
153
- );
154
- }
155
- function gn(e, n, r) {
156
- for (var t = [], a = n[n.length - 1], i = n[0], o; e.nodeCount(); ) {
157
- for (; o = i.dequeue(); )
158
- A(e, n, r, o);
159
- for (; o = a.dequeue(); )
160
- A(e, n, r, o);
161
- if (e.nodeCount()) {
162
- for (var u = n.length - 2; u > 0; --u)
163
- if (o = n[u].dequeue(), o) {
164
- t = t.concat(A(e, n, r, o, !0));
165
- break;
166
- }
167
- }
168
- }
169
- return t;
170
- }
171
- function A(e, n, r, t, a) {
172
- var i = a ? [] : void 0;
173
- return f(e.inEdges(t.v), function(o) {
174
- var u = e.edge(o), d = e.node(o.v);
175
- a && i.push({ v: o.v, w: o.w }), d.out -= u, W(n, r, d);
176
- }), f(e.outEdges(t.v), function(o) {
177
- var u = e.edge(o), d = o.w, s = e.node(d);
178
- s.in -= u, W(n, r, s);
179
- }), e.removeNode(t.v), i;
180
- }
181
- function yn(e, n) {
182
- var r = new g(), t = 0, a = 0;
183
- f(e.nodes(), function(u) {
184
- r.setNode(u, { v: u, in: 0, out: 0 });
185
- }), f(e.edges(), function(u) {
186
- var d = r.edge(u.v, u.w) || 0, s = n(u), c = d + s;
187
- r.setEdge(u.v, u.w, c), a = Math.max(a, r.node(u.v).out += s), t = Math.max(t, r.node(u.w).in += s);
188
- });
189
- var i = E(a + t + 3).map(function() {
190
- return new pn();
191
- }), o = t + 1;
192
- return f(r.nodes(), function(u) {
193
- W(i, o, r.node(u));
194
- }), { graph: r, buckets: i, zeroIdx: o };
195
- }
196
- function W(e, n, r) {
197
- r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r);
198
- }
199
- function kn(e) {
200
- var n = e.graph().acyclicer === "greedy" ? mn(e, r(e)) : xn(e);
201
- f(n, function(t) {
202
- var a = e.edge(t);
203
- e.removeEdge(t), a.forwardName = t.name, a.reversed = !0, e.setEdge(t.w, t.v, a, H("rev"));
204
- });
205
- function r(t) {
206
- return function(a) {
207
- return t.edge(a).weight;
208
- };
209
- }
210
- }
211
- function xn(e) {
212
- var n = [], r = {}, t = {};
213
- function a(i) {
214
- Object.prototype.hasOwnProperty.call(t, i) || (t[i] = !0, r[i] = !0, f(e.outEdges(i), function(o) {
215
- Object.prototype.hasOwnProperty.call(r, o.w) ? n.push(o) : a(o.w);
216
- }), delete r[i]);
217
- }
218
- return f(e.nodes(), a), n;
219
- }
220
- function En(e) {
221
- f(e.edges(), function(n) {
222
- var r = e.edge(n);
223
- if (r.reversed) {
224
- e.removeEdge(n);
225
- var t = r.forwardName;
226
- delete r.reversed, delete r.forwardName, e.setEdge(n.w, n.v, r, t);
227
- }
228
- });
229
- }
230
- function L(e, n, r, t) {
231
- var a;
232
- do
233
- a = H(t);
234
- while (e.hasNode(a));
235
- return r.dummy = n, e.setNode(a, r), a;
236
- }
237
- function On(e) {
238
- var n = new g().setGraph(e.graph());
239
- return f(e.nodes(), function(r) {
240
- n.setNode(r, e.node(r));
241
- }), f(e.edges(), function(r) {
242
- var t = n.edge(r.v, r.w) || { weight: 0, minlen: 1 }, a = e.edge(r);
243
- n.setEdge(r.v, r.w, {
244
- weight: t.weight + a.weight,
245
- minlen: Math.max(t.minlen, a.minlen)
246
- });
247
- }), n;
248
- }
249
- function be(e) {
250
- var n = new g({ multigraph: e.isMultigraph() }).setGraph(e.graph());
251
- return f(e.nodes(), function(r) {
252
- e.children(r).length || n.setNode(r, e.node(r));
253
- }), f(e.edges(), function(r) {
254
- n.setEdge(r, e.edge(r));
255
- }), n;
256
- }
257
- function re(e, n) {
258
- var r = e.x, t = e.y, a = n.x - r, i = n.y - t, o = e.width / 2, u = e.height / 2;
259
- if (!a && !i)
260
- throw new Error("Not possible to find intersection inside of the rectangle");
261
- var d, s;
262
- return Math.abs(i) * o > Math.abs(a) * u ? (i < 0 && (u = -u), d = u * a / i, s = u) : (a < 0 && (o = -o), d = o, s = o * i / a), { x: r + d, y: t + s };
263
- }
264
- function F(e) {
265
- var n = w(E(me(e) + 1), function() {
266
- return [];
267
- });
268
- return f(e.nodes(), function(r) {
269
- var t = e.node(r), a = t.rank;
270
- m(a) || (n[a][t.order] = r);
271
- }), n;
272
- }
273
- function Ln(e) {
274
- var n = P(
275
- w(e.nodes(), function(r) {
276
- return e.node(r).rank;
277
- })
278
- );
279
- f(e.nodes(), function(r) {
280
- var t = e.node(r);
281
- ve(t, "rank") && (t.rank -= n);
282
- });
283
- }
284
- function Nn(e) {
285
- var n = P(
286
- w(e.nodes(), function(i) {
287
- return e.node(i).rank;
288
- })
289
- ), r = [];
290
- f(e.nodes(), function(i) {
291
- var o = e.node(i).rank - n;
292
- r[o] || (r[o] = []), r[o].push(i);
293
- });
294
- var t = 0, a = e.graph().nodeRankFactor;
295
- f(r, function(i, o) {
296
- m(i) && o % a !== 0 ? --t : t && f(i, function(u) {
297
- e.node(u).rank += t;
298
- });
299
- });
300
- }
301
- function te(e, n, r, t) {
302
- var a = {
303
- width: 0,
304
- height: 0
305
- };
306
- return arguments.length >= 4 && (a.rank = r, a.order = t), L(e, "border", a, n);
307
- }
308
- function me(e) {
309
- return y(
310
- w(e.nodes(), function(n) {
311
- var r = e.node(n).rank;
312
- if (!m(r))
313
- return r;
314
- })
315
- );
316
- }
317
- function Pn(e, n) {
318
- var r = { lhs: [], rhs: [] };
319
- return f(e, function(t) {
320
- n(t) ? r.lhs.push(t) : r.rhs.push(t);
321
- }), r;
322
- }
323
- function Cn(e, n) {
324
- return n();
325
- }
326
- function _n(e) {
327
- function n(r) {
328
- var t = e.children(r), a = e.node(r);
329
- if (t.length && f(t, n), Object.prototype.hasOwnProperty.call(a, "minRank")) {
330
- a.borderLeft = [], a.borderRight = [];
331
- for (var i = a.minRank, o = a.maxRank + 1; i < o; ++i)
332
- ae(e, "borderLeft", "_bl", r, a, i), ae(e, "borderRight", "_br", r, a, i);
333
- }
334
- }
335
- f(e.children(), n);
336
- }
337
- function ae(e, n, r, t, a, i) {
338
- var o = { width: 0, height: 0, rank: i, borderType: n }, u = a[n][i - 1], d = L(e, "border", o, r);
339
- a[n][i] = d, e.setParent(d, t), u && e.setEdge(u, d, { weight: 1 });
340
- }
341
- function Rn(e) {
342
- var n = e.graph().rankdir.toLowerCase();
343
- (n === "lr" || n === "rl") && ge(e);
344
- }
345
- function Tn(e) {
346
- var n = e.graph().rankdir.toLowerCase();
347
- (n === "bt" || n === "rl") && In(e), (n === "lr" || n === "rl") && (Mn(e), ge(e));
348
- }
349
- function ge(e) {
350
- f(e.nodes(), function(n) {
351
- ie(e.node(n));
352
- }), f(e.edges(), function(n) {
353
- ie(e.edge(n));
354
- });
355
- }
356
- function ie(e) {
357
- var n = e.width;
358
- e.width = e.height, e.height = n;
359
- }
360
- function In(e) {
361
- f(e.nodes(), function(n) {
362
- B(e.node(n));
363
- }), f(e.edges(), function(n) {
364
- var r = e.edge(n);
365
- f(r.points, B), Object.prototype.hasOwnProperty.call(r, "y") && B(r);
366
- });
367
- }
368
- function B(e) {
369
- e.y = -e.y;
370
- }
371
- function Mn(e) {
372
- f(e.nodes(), function(n) {
373
- G(e.node(n));
374
- }), f(e.edges(), function(n) {
375
- var r = e.edge(n);
376
- f(r.points, G), Object.prototype.hasOwnProperty.call(r, "x") && G(r);
377
- });
378
- }
379
- function G(e) {
380
- var n = e.x;
381
- e.x = e.y, e.y = n;
382
- }
383
- function Sn(e) {
384
- e.graph().dummyChains = [], f(e.edges(), function(n) {
385
- Fn(e, n);
386
- });
387
- }
388
- function Fn(e, n) {
389
- var r = n.v, t = e.node(r).rank, a = n.w, i = e.node(a).rank, o = n.name, u = e.edge(n), d = u.labelRank;
390
- if (i !== t + 1) {
391
- e.removeEdge(n);
392
- var s = void 0, c, l;
393
- for (l = 0, ++t; t < i; ++l, ++t)
394
- u.points = [], s = {
395
- width: 0,
396
- height: 0,
397
- edgeLabel: u,
398
- edgeObj: n,
399
- rank: t
400
- }, c = L(e, "edge", s, "_d"), t === d && (s.width = u.width, s.height = u.height, s.dummy = "edge-label", s.labelpos = u.labelpos), e.setEdge(r, c, { weight: u.weight }, o), l === 0 && e.graph().dummyChains.push(c), r = c;
401
- e.setEdge(r, a, { weight: u.weight }, o);
402
- }
403
- }
404
- function jn(e) {
405
- f(e.graph().dummyChains, function(n) {
406
- var r = e.node(n), t = r.edgeLabel, a;
407
- for (e.setEdge(r.edgeObj, t); r.dummy; )
408
- a = e.successors(n)[0], e.removeNode(n), t.points.push({ x: r.x, y: r.y }), r.dummy === "edge-label" && (t.x = r.x, t.y = r.y, t.width = r.width, t.height = r.height), n = a, r = e.node(n);
409
- });
410
- }
411
- function J(e) {
412
- var n = {};
413
- function r(t) {
414
- var a = e.node(t);
415
- if (Object.prototype.hasOwnProperty.call(n, t))
416
- return a.rank;
417
- n[t] = !0;
418
- var i = P(
419
- w(e.outEdges(t), function(o) {
420
- return r(o.w) - e.edge(o).minlen;
421
- })
422
- );
423
- return (i === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
424
- i === void 0 || // return value of _.map([]) for Lodash 4
425
- i === null) && (i = 0), a.rank = i;
426
- }
427
- f(e.sources(), r);
428
- }
429
- function C(e, n) {
430
- return e.node(n.w).rank - e.node(n.v).rank - e.edge(n).minlen;
431
- }
432
- function ye(e) {
433
- var n = new g({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount();
434
- n.setNode(r, {});
435
- for (var a, i; Vn(n, e) < t; )
436
- a = An(n, e), i = n.hasNode(a.v) ? C(e, a) : -C(e, a), Bn(n, e, i);
437
- return n;
438
- }
439
- function Vn(e, n) {
440
- function r(t) {
441
- f(n.nodeEdges(t), function(a) {
442
- var i = a.v, o = t === i ? a.w : i;
443
- !e.hasNode(o) && !C(n, a) && (e.setNode(o, {}), e.setEdge(t, o, {}), r(o));
444
- });
445
- }
446
- return f(e.nodes(), r), e.nodeCount();
447
- }
448
- function An(e, n) {
449
- return U(n.edges(), function(r) {
450
- if (e.hasNode(r.v) !== e.hasNode(r.w))
451
- return C(n, r);
452
- });
453
- }
454
- function Bn(e, n, r) {
455
- f(e.nodes(), function(t) {
456
- n.node(t).rank += r;
457
- });
458
- }
459
- function Gn() {
460
- }
461
- Gn.prototype = new Error();
462
- function ke(e, n, r) {
463
- we(n) || (n = [n]);
464
- var t = (e.isDirected() ? e.successors : e.neighbors).bind(e), a = [], i = {};
465
- return f(n, function(o) {
466
- if (!e.hasNode(o))
467
- throw new Error("Graph does not have node: " + o);
468
- xe(e, o, r === "post", i, t, a);
469
- }), a;
470
- }
471
- function xe(e, n, r, t, a, i) {
472
- Object.prototype.hasOwnProperty.call(t, n) || (t[n] = !0, r || i.push(n), f(a(n), function(o) {
473
- xe(e, o, r, t, a, i);
474
- }), r && i.push(n));
475
- }
476
- function Yn(e, n) {
477
- return ke(e, n, "post");
478
- }
479
- function Dn(e, n) {
480
- return ke(e, n, "pre");
481
- }
482
- k.initLowLimValues = Z;
483
- k.initCutValues = Q;
484
- k.calcCutValue = Ee;
485
- k.leaveEdge = Le;
486
- k.enterEdge = Ne;
487
- k.exchangeEdges = Pe;
488
- function k(e) {
489
- e = On(e), J(e);
490
- var n = ye(e);
491
- Z(n), Q(n, e);
492
- for (var r, t; r = Le(n); )
493
- t = Ne(n, e, r), Pe(n, e, r, t);
494
- }
495
- function Q(e, n) {
496
- var r = Yn(e, e.nodes());
497
- r = r.slice(0, r.length - 1), f(r, function(t) {
498
- qn(e, n, t);
499
- });
500
- }
501
- function qn(e, n, r) {
502
- var t = e.node(r), a = t.parent;
503
- e.edge(r, a).cutvalue = Ee(e, n, r);
504
- }
505
- function Ee(e, n, r) {
506
- var t = e.node(r), a = t.parent, i = !0, o = n.edge(r, a), u = 0;
507
- return o || (i = !1, o = n.edge(a, r)), u = o.weight, f(n.nodeEdges(r), function(d) {
508
- var s = d.v === r, c = s ? d.w : d.v;
509
- if (c !== a) {
510
- var l = s === i, h = n.edge(d).weight;
511
- if (u += l ? h : -h, Wn(e, r, c)) {
512
- var v = e.edge(r, c).cutvalue;
513
- u += l ? -v : v;
514
- }
515
- }
516
- }), u;
517
- }
518
- function Z(e, n) {
519
- arguments.length < 2 && (n = e.nodes()[0]), Oe(e, {}, 1, n);
520
- }
521
- function Oe(e, n, r, t, a) {
522
- var i = r, o = e.node(t);
523
- return n[t] = !0, f(e.neighbors(t), function(u) {
524
- Object.prototype.hasOwnProperty.call(n, u) || (r = Oe(e, n, r, u, t));
525
- }), o.low = i, o.lim = r++, a ? o.parent = a : delete o.parent, r;
526
- }
527
- function Le(e) {
528
- return X(e.edges(), function(n) {
529
- return e.edge(n).cutvalue < 0;
530
- });
531
- }
532
- function Ne(e, n, r) {
533
- var t = r.v, a = r.w;
534
- n.hasEdge(t, a) || (t = r.w, a = r.v);
535
- var i = e.node(t), o = e.node(a), u = i, d = !1;
536
- i.lim > o.lim && (u = o, d = !0);
537
- var s = _(n.edges(), function(c) {
538
- return d === oe(e, e.node(c.v), u) && d !== oe(e, e.node(c.w), u);
539
- });
540
- return U(s, function(c) {
541
- return C(n, c);
542
- });
543
- }
544
- function Pe(e, n, r, t) {
545
- var a = r.v, i = r.w;
546
- e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), Z(e), Q(e, n), $n(e, n);
547
- }
548
- function $n(e, n) {
549
- var r = X(e.nodes(), function(a) {
550
- return !n.node(a).parent;
551
- }), t = Dn(e, r);
552
- t = t.slice(1), f(t, function(a) {
553
- var i = e.node(a).parent, o = n.edge(a, i), u = !1;
554
- o || (o = n.edge(i, a), u = !0), n.node(a).rank = n.node(i).rank + (u ? o.minlen : -o.minlen);
555
- });
556
- }
557
- function Wn(e, n, r) {
558
- return e.hasEdge(n, r);
559
- }
560
- function oe(e, n, r) {
561
- return r.low <= n.lim && n.lim <= r.lim;
562
- }
563
- function zn(e) {
564
- switch (e.graph().ranker) {
565
- case "network-simplex":
566
- ue(e);
567
- break;
568
- case "tight-tree":
569
- Un(e);
570
- break;
571
- case "longest-path":
572
- Xn(e);
573
- break;
574
- default:
575
- ue(e);
576
- }
577
- }
578
- var Xn = J;
579
- function Un(e) {
580
- J(e), ye(e);
581
- }
582
- function ue(e) {
583
- k(e);
584
- }
585
- function Hn(e) {
586
- var n = L(e, "root", {}, "_root"), r = Jn(e), t = y(x(r)) - 1, a = 2 * t + 1;
587
- e.graph().nestingRoot = n, f(e.edges(), function(o) {
588
- e.edge(o).minlen *= a;
589
- });
590
- var i = Qn(e) + 1;
591
- f(e.children(), function(o) {
592
- Ce(e, n, a, i, t, r, o);
593
- }), e.graph().nodeRankFactor = a;
594
- }
595
- function Ce(e, n, r, t, a, i, o) {
596
- var u = e.children(o);
597
- if (!u.length) {
598
- o !== n && e.setEdge(n, o, { weight: 0, minlen: r });
599
- return;
600
- }
601
- var d = te(e, "_bt"), s = te(e, "_bb"), c = e.node(o);
602
- e.setParent(d, o), c.borderTop = d, e.setParent(s, o), c.borderBottom = s, f(u, function(l) {
603
- Ce(e, n, r, t, a, i, l);
604
- var h = e.node(l), v = h.borderTop ? h.borderTop : l, p = h.borderBottom ? h.borderBottom : l, b = h.borderTop ? t : 2 * t, N = v !== p ? 1 : a - i[o] + 1;
605
- e.setEdge(d, v, {
606
- weight: b,
607
- minlen: N,
608
- nestingEdge: !0
609
- }), e.setEdge(p, s, {
610
- weight: b,
611
- minlen: N,
612
- nestingEdge: !0
613
- });
614
- }), e.parent(o) || e.setEdge(n, d, { weight: 0, minlen: a + i[o] });
615
- }
616
- function Jn(e) {
617
- var n = {};
618
- function r(t, a) {
619
- var i = e.children(t);
620
- i && i.length && f(i, function(o) {
621
- r(o, a + 1);
622
- }), n[t] = a;
623
- }
624
- return f(e.children(), function(t) {
625
- r(t, 1);
626
- }), n;
627
- }
628
- function Qn(e) {
629
- return M(
630
- e.edges(),
631
- function(n, r) {
632
- return n + e.edge(r).weight;
633
- },
634
- 0
635
- );
636
- }
637
- function Zn(e) {
638
- var n = e.graph();
639
- e.removeNode(n.nestingRoot), delete n.nestingRoot, f(e.edges(), function(r) {
640
- var t = e.edge(r);
641
- t.nestingEdge && e.removeEdge(r);
642
- });
643
- }
644
- function Kn(e, n, r) {
645
- var t = {}, a;
646
- f(r, function(i) {
647
- for (var o = e.parent(i), u, d; o; ) {
648
- if (u = e.parent(o), u ? (d = t[u], t[u] = o) : (d = a, a = o), d && d !== o) {
649
- n.setEdge(d, o);
650
- return;
651
- }
652
- o = u;
653
- }
654
- });
655
- }
656
- function er(e, n, r) {
657
- var t = nr(e), a = new g({ compound: !0 }).setGraph({ root: t }).setDefaultNodeLabel(function(i) {
658
- return e.node(i);
659
- });
660
- return f(e.nodes(), function(i) {
661
- var o = e.node(i), u = e.parent(i);
662
- (o.rank === n || o.minRank <= n && n <= o.maxRank) && (a.setNode(i), a.setParent(i, u || t), f(e[r](i), function(d) {
663
- var s = d.v === i ? d.w : d.v, c = a.edge(s, i), l = m(c) ? 0 : c.weight;
664
- a.setEdge(s, i, { weight: e.edge(d).weight + l });
665
- }), Object.prototype.hasOwnProperty.call(o, "minRank") && a.setNode(i, {
666
- borderLeft: o.borderLeft[n],
667
- borderRight: o.borderRight[n]
668
- }));
669
- }), a;
670
- }
671
- function nr(e) {
672
- for (var n; e.hasNode(n = H("_root")); ) ;
673
- return n;
674
- }
675
- function rr(e, n) {
676
- for (var r = 0, t = 1; t < n.length; ++t)
677
- r += tr(e, n[t - 1], n[t]);
678
- return r;
679
- }
680
- function tr(e, n, r) {
681
- for (var t = vn(
682
- r,
683
- w(r, function(s, c) {
684
- return c;
685
- })
686
- ), a = O(
687
- w(n, function(s) {
688
- return R(
689
- w(e.outEdges(s), function(c) {
690
- return { pos: t[c.w], weight: e.edge(c).weight };
691
- }),
692
- "pos"
693
- );
694
- })
695
- ), i = 1; i < r.length; ) i <<= 1;
696
- var o = 2 * i - 1;
697
- i -= 1;
698
- var u = w(new Array(o), function() {
699
- return 0;
700
- }), d = 0;
701
- return f(
702
- // @ts-expect-error
703
- a.forEach(function(s) {
704
- var c = s.pos + i;
705
- u[c] += s.weight;
706
- for (var l = 0; c > 0; )
707
- c % 2 && (l += u[c + 1]), c = c - 1 >> 1, u[c] += s.weight;
708
- d += s.weight * l;
709
- })
710
- ), d;
711
- }
712
- function ar(e) {
713
- var n = {}, r = _(e.nodes(), function(u) {
714
- return !e.children(u).length;
715
- }), t = y(
716
- w(r, function(u) {
717
- return e.node(u).rank;
718
- })
719
- ), a = w(E(t + 1), function() {
720
- return [];
721
- });
722
- function i(u) {
723
- if (!ve(n, u)) {
724
- n[u] = !0;
725
- var d = e.node(u);
726
- a[d.rank].push(u), f(e.successors(u), i);
727
- }
728
- }
729
- var o = R(r, function(u) {
730
- return e.node(u).rank;
731
- });
732
- return f(o, i), a;
733
- }
734
- function ir(e, n) {
735
- return w(n, function(r) {
736
- var t = e.inEdges(r);
737
- if (t.length) {
738
- var a = M(
739
- t,
740
- function(i, o) {
741
- var u = e.edge(o), d = e.node(o.v);
742
- return {
743
- sum: i.sum + u.weight * d.order,
744
- weight: i.weight + u.weight
745
- };
746
- },
747
- { sum: 0, weight: 0 }
748
- );
749
- return {
750
- v: r,
751
- barycenter: a.sum / a.weight,
752
- weight: a.weight
753
- };
754
- } else
755
- return { v: r };
756
- });
757
- }
758
- function or(e, n) {
759
- var r = {};
760
- f(e, function(a, i) {
761
- var o = r[a.v] = {
762
- indegree: 0,
763
- in: [],
764
- out: [],
765
- vs: [a.v],
766
- i
767
- };
768
- m(a.barycenter) || (o.barycenter = a.barycenter, o.weight = a.weight);
769
- }), f(n.edges(), function(a) {
770
- var i = r[a.v], o = r[a.w];
771
- !m(i) && !m(o) && (o.indegree++, i.out.push(r[a.w]));
772
- });
773
- var t = _(r, function(a) {
774
- return !a.indegree;
775
- });
776
- return ur(t);
777
- }
778
- function ur(e) {
779
- var n = [];
780
- function r(i) {
781
- return function(o) {
782
- o.merged || (m(o.barycenter) || m(i.barycenter) || o.barycenter >= i.barycenter) && dr(i, o);
783
- };
784
- }
785
- function t(i) {
786
- return function(o) {
787
- o.in.push(i), --o.indegree === 0 && e.push(o);
788
- };
789
- }
790
- for (; e.length; ) {
791
- var a = e.pop();
792
- n.push(a), f(a.in.reverse(), r(a)), f(a.out, t(a));
793
- }
794
- return w(
795
- _(n, function(i) {
796
- return !i.merged;
797
- }),
798
- function(i) {
799
- return I(i, ["vs", "i", "barycenter", "weight"]);
800
- }
801
- );
802
- }
803
- function dr(e, n) {
804
- var r = 0, t = 0;
805
- e.weight && (r += e.barycenter * e.weight, t += e.weight), n.weight && (r += n.barycenter * n.weight, t += n.weight), e.vs = n.vs.concat(e.vs), e.barycenter = r / t, e.weight = t, e.i = Math.min(n.i, e.i), n.merged = !0;
806
- }
807
- function sr(e, n) {
808
- var r = Pn(e, function(c) {
809
- return Object.prototype.hasOwnProperty.call(c, "barycenter");
810
- }), t = r.lhs, a = R(r.rhs, function(c) {
811
- return -c.i;
812
- }), i = [], o = 0, u = 0, d = 0;
813
- t.sort(fr(!!n)), d = de(i, a, d), f(t, function(c) {
814
- d += c.vs.length, i.push(c.vs), o += c.barycenter * c.weight, u += c.weight, d = de(i, a, d);
815
- });
816
- var s = { vs: O(i) };
817
- return u && (s.barycenter = o / u, s.weight = u), s;
818
- }
819
- function de(e, n, r) {
820
- for (var t; n.length && (t = T(n)).i <= r; )
821
- n.pop(), e.push(t.vs), r++;
822
- return r;
823
- }
824
- function fr(e) {
825
- return function(n, r) {
826
- return n.barycenter < r.barycenter ? -1 : n.barycenter > r.barycenter ? 1 : e ? r.i - n.i : n.i - r.i;
827
- };
828
- }
829
- function _e(e, n, r, t) {
830
- var a = e.children(n), i = e.node(n), o = i ? i.borderLeft : void 0, u = i ? i.borderRight : void 0, d = {};
831
- o && (a = _(a, function(p) {
832
- return p !== o && p !== u;
833
- }));
834
- var s = ir(e, a);
835
- f(s, function(p) {
836
- if (e.children(p.v).length) {
837
- var b = _e(e, p.v, r, t);
838
- d[p.v] = b, Object.prototype.hasOwnProperty.call(b, "barycenter") && lr(p, b);
839
- }
840
- });
841
- var c = or(s, r);
842
- cr(c, d);
843
- var l = sr(c, t);
844
- if (o && (l.vs = O([o, l.vs, u]), e.predecessors(o).length)) {
845
- var h = e.node(e.predecessors(o)[0]), v = e.node(e.predecessors(u)[0]);
846
- Object.prototype.hasOwnProperty.call(l, "barycenter") || (l.barycenter = 0, l.weight = 0), l.barycenter = (l.barycenter * l.weight + h.order + v.order) / (l.weight + 2), l.weight += 2;
847
- }
848
- return l;
849
- }
850
- function cr(e, n) {
851
- f(e, function(r) {
852
- r.vs = O(
853
- r.vs.map(function(t) {
854
- return n[t] ? n[t].vs : t;
855
- })
856
- );
857
- });
858
- }
859
- function lr(e, n) {
860
- m(e.barycenter) ? (e.barycenter = n.barycenter, e.weight = n.weight) : (e.barycenter = (e.barycenter * e.weight + n.barycenter * n.weight) / (e.weight + n.weight), e.weight += n.weight);
861
- }
862
- function hr(e) {
863
- var n = me(e), r = se(e, E(1, n + 1), "inEdges"), t = se(e, E(n - 1, -1, -1), "outEdges"), a = ar(e);
864
- fe(e, a);
865
- for (var i = Number.POSITIVE_INFINITY, o, u = 0, d = 0; d < 4; ++u, ++d) {
866
- vr(u % 2 ? r : t, u % 4 >= 2), a = F(e);
867
- var s = rr(e, a);
868
- s < i && (d = 0, o = Ze(a), i = s);
869
- }
870
- fe(e, o);
871
- }
872
- function se(e, n, r) {
873
- return w(n, function(t) {
874
- return er(e, t, r);
875
- });
876
- }
877
- function vr(e, n) {
878
- var r = new g();
879
- f(e, function(t) {
880
- var a = t.graph().root, i = _e(t, a, r, n);
881
- f(i.vs, function(o, u) {
882
- t.node(o).order = u;
883
- }), Kn(t, r, i.vs);
884
- });
885
- }
886
- function fe(e, n) {
887
- f(n, function(r) {
888
- f(r, function(t, a) {
889
- e.node(t).order = a;
890
- });
891
- });
892
- }
893
- function pr(e) {
894
- var n = br(e);
895
- f(e.graph().dummyChains, function(r) {
896
- for (var t = e.node(r), a = t.edgeObj, i = wr(e, n, a.v, a.w), o = i.path, u = i.lca, d = 0, s = o[d], c = !0; r !== a.w; ) {
897
- if (t = e.node(r), c) {
898
- for (; (s = o[d]) !== u && e.node(s).maxRank < t.rank; )
899
- d++;
900
- s === u && (c = !1);
901
- }
902
- if (!c) {
903
- for (; d < o.length - 1 && e.node(s = o[d + 1]).minRank <= t.rank; )
904
- d++;
905
- s = o[d];
906
- }
907
- e.setParent(r, s), r = e.successors(r)[0];
908
- }
909
- });
910
- }
911
- function wr(e, n, r, t) {
912
- var a = [], i = [], o = Math.min(n[r].low, n[t].low), u = Math.max(n[r].lim, n[t].lim), d, s;
913
- d = r;
914
- do
915
- d = e.parent(d), a.push(d);
916
- while (d && (n[d].low > o || u > n[d].lim));
917
- for (s = d, d = t; (d = e.parent(d)) !== s; )
918
- i.push(d);
919
- return { path: a.concat(i.reverse()), lca: s };
920
- }
921
- function br(e) {
922
- var n = {}, r = 0;
923
- function t(a) {
924
- var i = r;
925
- f(e.children(a), t), n[a] = { low: i, lim: r++ };
926
- }
927
- return f(e.children(), t), n;
928
- }
929
- function mr(e, n) {
930
- var r = {};
931
- function t(a, i) {
932
- var o = 0, u = 0, d = a.length, s = T(i);
933
- return f(i, function(c, l) {
934
- var h = yr(e, c), v = h ? e.node(h).order : d;
935
- (h || c === s) && (f(i.slice(u, l + 1), function(p) {
936
- f(e.predecessors(p), function(b) {
937
- var N = e.node(b), K = N.order;
938
- (K < o || v < K) && !(N.dummy && e.node(p).dummy) && Re(r, b, p);
939
- });
940
- }), u = l + 1, o = v);
941
- }), i;
942
- }
943
- return M(n, t), r;
944
- }
945
- function gr(e, n) {
946
- var r = {};
947
- function t(i, o, u, d, s) {
948
- var c;
949
- f(E(o, u), function(l) {
950
- c = i[l], e.node(c).dummy && f(e.predecessors(c), function(h) {
951
- var v = e.node(h);
952
- v.dummy && (v.order < d || v.order > s) && Re(r, h, c);
953
- });
954
- });
955
- }
956
- function a(i, o) {
957
- var u = -1, d, s = 0;
958
- return f(o, function(c, l) {
959
- if (e.node(c).dummy === "border") {
960
- var h = e.predecessors(c);
961
- h.length && (d = e.node(h[0]).order, t(o, s, l, u, d), s = l, u = d);
962
- }
963
- t(o, s, o.length, d, i.length);
964
- }), o;
965
- }
966
- return M(n, a), r;
967
- }
968
- function yr(e, n) {
969
- if (e.node(n).dummy)
970
- return X(e.predecessors(n), function(r) {
971
- return e.node(r).dummy;
972
- });
973
- }
974
- function Re(e, n, r) {
975
- if (n > r) {
976
- var t = n;
977
- n = r, r = t;
978
- }
979
- var a = e[n];
980
- a || (e[n] = a = {}), a[r] = !0;
981
- }
982
- function kr(e, n, r) {
983
- if (n > r) {
984
- var t = n;
985
- n = r, r = t;
986
- }
987
- return !!e[n] && Object.prototype.hasOwnProperty.call(e[n], r);
988
- }
989
- function xr(e, n, r, t) {
990
- var a = {}, i = {}, o = {};
991
- return f(n, function(u) {
992
- f(u, function(d, s) {
993
- a[d] = d, i[d] = d, o[d] = s;
994
- });
995
- }), f(n, function(u) {
996
- var d = -1;
997
- f(u, function(s) {
998
- var c = t(s);
999
- if (c.length) {
1000
- c = R(c, function(b) {
1001
- return o[b];
1002
- });
1003
- for (var l = (c.length - 1) / 2, h = Math.floor(l), v = Math.ceil(l); h <= v; ++h) {
1004
- var p = c[h];
1005
- i[s] === s && d < o[p] && !kr(r, s, p) && (i[p] = s, i[s] = a[s] = a[p], d = o[p]);
1006
- }
1007
- }
1008
- });
1009
- }), { root: a, align: i };
1010
- }
1011
- function Er(e, n, r, t, a) {
1012
- var i = {}, o = Or(e, n, r, a), u = a ? "borderLeft" : "borderRight";
1013
- function d(l, h) {
1014
- for (var v = o.nodes(), p = v.pop(), b = {}; p; )
1015
- b[p] ? l(p) : (b[p] = !0, v.push(p), v = v.concat(h(p))), p = v.pop();
1016
- }
1017
- function s(l) {
1018
- i[l] = o.inEdges(l).reduce(function(h, v) {
1019
- return Math.max(h, i[v.v] + o.edge(v));
1020
- }, 0);
1021
- }
1022
- function c(l) {
1023
- var h = o.outEdges(l).reduce(function(p, b) {
1024
- return Math.min(p, i[b.w] - o.edge(b));
1025
- }, Number.POSITIVE_INFINITY), v = e.node(l);
1026
- h !== Number.POSITIVE_INFINITY && v.borderType !== u && (i[l] = Math.max(i[l], h));
1027
- }
1028
- return d(s, o.predecessors.bind(o)), d(c, o.successors.bind(o)), f(t, function(l) {
1029
- i[l] = i[r[l]];
1030
- }), i;
1031
- }
1032
- function Or(e, n, r, t) {
1033
- var a = new g(), i = e.graph(), o = _r(i.nodesep, i.edgesep, t);
1034
- return f(n, function(u) {
1035
- var d;
1036
- f(u, function(s) {
1037
- var c = r[s];
1038
- if (a.setNode(c), d) {
1039
- var l = r[d], h = a.edge(l, c);
1040
- a.setEdge(l, c, Math.max(o(e, s, d), h || 0));
1041
- }
1042
- d = s;
1043
- });
1044
- }), a;
1045
- }
1046
- function Lr(e, n) {
1047
- return U(x(n), function(r) {
1048
- var t = Number.NEGATIVE_INFINITY, a = Number.POSITIVE_INFINITY;
1049
- return Ke(r, function(i, o) {
1050
- var u = Rr(e, o) / 2;
1051
- t = Math.max(i + u, t), a = Math.min(i - u, a);
1052
- }), t - a;
1053
- });
1054
- }
1055
- function Nr(e, n) {
1056
- var r = x(n), t = P(r), a = y(r);
1057
- f(["u", "d"], function(i) {
1058
- f(["l", "r"], function(o) {
1059
- var u = i + o, d = e[u], s;
1060
- if (d !== n) {
1061
- var c = x(d);
1062
- s = o === "l" ? t - P(c) : a - y(c), s && (e[u] = S(d, function(l) {
1063
- return l + s;
1064
- }));
1065
- }
1066
- });
1067
- });
1068
- }
1069
- function Pr(e, n) {
1070
- return S(e.ul, function(r, t) {
1071
- if (n)
1072
- return e[n.toLowerCase()][t];
1073
- var a = R(w(e, t));
1074
- return (a[1] + a[2]) / 2;
1075
- });
1076
- }
1077
- function Cr(e) {
1078
- var n = F(e), r = $(mr(e, n), gr(e, n)), t = {}, a;
1079
- f(["u", "d"], function(o) {
1080
- a = o === "u" ? n : x(n).reverse(), f(["l", "r"], function(u) {
1081
- u === "r" && (a = w(a, function(l) {
1082
- return x(l).reverse();
1083
- }));
1084
- var d = (o === "u" ? e.predecessors : e.successors).bind(e), s = xr(e, a, r, d), c = Er(e, a, s.root, s.align, u === "r");
1085
- u === "r" && (c = S(c, function(l) {
1086
- return -l;
1087
- })), t[o + u] = c;
1088
- });
1089
- });
1090
- var i = Lr(e, t);
1091
- return Nr(t, i), Pr(t, e.graph().align);
1092
- }
1093
- function _r(e, n, r) {
1094
- return function(t, a, i) {
1095
- var o = t.node(a), u = t.node(i), d = 0, s;
1096
- if (d += o.width / 2, Object.prototype.hasOwnProperty.call(o, "labelpos"))
1097
- switch (o.labelpos.toLowerCase()) {
1098
- case "l":
1099
- s = -o.width / 2;
1100
- break;
1101
- case "r":
1102
- s = o.width / 2;
1103
- break;
1104
- }
1105
- if (s && (d += r ? s : -s), s = 0, d += (o.dummy ? n : e) / 2, d += (u.dummy ? n : e) / 2, d += u.width / 2, Object.prototype.hasOwnProperty.call(u, "labelpos"))
1106
- switch (u.labelpos.toLowerCase()) {
1107
- case "l":
1108
- s = u.width / 2;
1109
- break;
1110
- case "r":
1111
- s = -u.width / 2;
1112
- break;
1113
- }
1114
- return s && (d += r ? s : -s), s = 0, d;
1115
- };
1116
- }
1117
- function Rr(e, n) {
1118
- return e.node(n).width;
1119
- }
1120
- function Tr(e) {
1121
- e = be(e), Ir(e), en(Cr(e), function(n, r) {
1122
- e.node(r).x = n;
1123
- });
1124
- }
1125
- function Ir(e) {
1126
- var n = F(e), r = e.graph().ranksep, t = 0;
1127
- f(n, function(a) {
1128
- var i = y(
1129
- w(a, function(o) {
1130
- return e.node(o).height;
1131
- })
1132
- );
1133
- f(a, function(o) {
1134
- e.node(o).y = t + i / 2;
1135
- }), t += i + r;
1136
- });
1137
- }
1138
- function ot(e, n) {
1139
- var r = Cn;
1140
- r("layout", () => {
1141
- var t = r(" buildLayoutGraph", () => qr(e));
1142
- r(" runLayout", () => Mr(t, r)), r(" updateInputGraph", () => Sr(e, t));
1143
- });
1144
- }
1145
- function Mr(e, n) {
1146
- n(" makeSpaceForEdgeLabels", () => $r(e)), n(" removeSelfEdges", () => Kr(e)), n(" acyclic", () => kn(e)), n(" nestingGraph.run", () => Hn(e)), n(" rank", () => zn(be(e))), n(" injectEdgeLabelProxies", () => Wr(e)), n(" removeEmptyRanks", () => Nn(e)), n(" nestingGraph.cleanup", () => Zn(e)), n(" normalizeRanks", () => Ln(e)), n(" assignRankMinMax", () => zr(e)), n(" removeEdgeLabelProxies", () => Xr(e)), n(" normalize.run", () => Sn(e)), n(" parentDummyChains", () => pr(e)), n(" addBorderSegments", () => _n(e)), n(" order", () => hr(e)), n(" insertSelfEdges", () => et(e)), n(" adjustCoordinateSystem", () => Rn(e)), n(" position", () => Tr(e)), n(" positionSelfEdges", () => nt(e)), n(" removeBorderNodes", () => Zr(e)), n(" normalize.undo", () => jn(e)), n(" fixupEdgeLabelCoords", () => Jr(e)), n(" undoCoordinateSystem", () => Tn(e)), n(" translateGraph", () => Ur(e)), n(" assignNodeIntersects", () => Hr(e)), n(" reversePoints", () => Qr(e)), n(" acyclic.undo", () => En(e));
1147
- }
1148
- function Sr(e, n) {
1149
- f(e.nodes(), function(r) {
1150
- var t = e.node(r), a = n.node(r);
1151
- t && (t.x = a.x, t.y = a.y, n.children(r).length && (t.width = a.width, t.height = a.height));
1152
- }), f(e.edges(), function(r) {
1153
- var t = e.edge(r), a = n.edge(r);
1154
- t.points = a.points, Object.prototype.hasOwnProperty.call(a, "x") && (t.x = a.x, t.y = a.y);
1155
- }), e.graph().width = n.graph().width, e.graph().height = n.graph().height;
1156
- }
1157
- var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"], Ar = ["width", "height"], Br = { width: 0, height: 0 }, Gr = ["minlen", "weight", "width", "height", "labeloffset"], Yr = {
1158
- minlen: 1,
1159
- weight: 1,
1160
- width: 0,
1161
- height: 0,
1162
- labeloffset: 10,
1163
- labelpos: "r"
1164
- }, Dr = ["labelpos"];
1165
- function qr(e) {
1166
- var n = new g({ multigraph: !0, compound: !0 }), r = D(e.graph());
1167
- return n.setGraph(
1168
- $({}, jr, Y(r, Fr), I(r, Vr))
1169
- ), f(e.nodes(), function(t) {
1170
- var a = D(e.node(t));
1171
- n.setNode(t, Be(Y(a, Ar), Br)), n.setParent(t, e.parent(t));
1172
- }), f(e.edges(), function(t) {
1173
- var a = D(e.edge(t));
1174
- n.setEdge(
1175
- t,
1176
- $({}, Yr, Y(a, Gr), I(a, Dr))
1177
- );
1178
- }), n;
1179
- }
1180
- function $r(e) {
1181
- var n = e.graph();
1182
- n.ranksep /= 2, f(e.edges(), function(r) {
1183
- var t = e.edge(r);
1184
- t.minlen *= 2, t.labelpos.toLowerCase() !== "c" && (n.rankdir === "TB" || n.rankdir === "BT" ? t.width += t.labeloffset : t.height += t.labeloffset);
1185
- });
1186
- }
1187
- function Wr(e) {
1188
- f(e.edges(), function(n) {
1189
- var r = e.edge(n);
1190
- if (r.width && r.height) {
1191
- var t = e.node(n.v), a = e.node(n.w), i = { rank: (a.rank - t.rank) / 2 + t.rank, e: n };
1192
- L(e, "edge-proxy", i, "_ep");
1193
- }
1194
- });
1195
- }
1196
- function zr(e) {
1197
- var n = 0;
1198
- f(e.nodes(), function(r) {
1199
- var t = e.node(r);
1200
- t.borderTop && (t.minRank = e.node(t.borderTop).rank, t.maxRank = e.node(t.borderBottom).rank, n = y(n, t.maxRank));
1201
- }), e.graph().maxRank = n;
1202
- }
1203
- function Xr(e) {
1204
- f(e.nodes(), function(n) {
1205
- var r = e.node(n);
1206
- r.dummy === "edge-proxy" && (e.edge(r.e).labelRank = r.rank, e.removeNode(n));
1207
- });
1208
- }
1209
- function Ur(e) {
1210
- var n = Number.POSITIVE_INFINITY, r = 0, t = Number.POSITIVE_INFINITY, a = 0, i = e.graph(), o = i.marginx || 0, u = i.marginy || 0;
1211
- function d(s) {
1212
- var c = s.x, l = s.y, h = s.width, v = s.height;
1213
- n = Math.min(n, c - h / 2), r = Math.max(r, c + h / 2), t = Math.min(t, l - v / 2), a = Math.max(a, l + v / 2);
1214
- }
1215
- f(e.nodes(), function(s) {
1216
- d(e.node(s));
1217
- }), f(e.edges(), function(s) {
1218
- var c = e.edge(s);
1219
- Object.prototype.hasOwnProperty.call(c, "x") && d(c);
1220
- }), n -= o, t -= u, f(e.nodes(), function(s) {
1221
- var c = e.node(s);
1222
- c.x -= n, c.y -= t;
1223
- }), f(e.edges(), function(s) {
1224
- var c = e.edge(s);
1225
- f(c.points, function(l) {
1226
- l.x -= n, l.y -= t;
1227
- }), Object.prototype.hasOwnProperty.call(c, "x") && (c.x -= n), Object.prototype.hasOwnProperty.call(c, "y") && (c.y -= t);
1228
- }), i.width = r - n + o, i.height = a - t + u;
1229
- }
1230
- function Hr(e) {
1231
- f(e.edges(), function(n) {
1232
- var r = e.edge(n), t = e.node(n.v), a = e.node(n.w), i, o;
1233
- r.points ? (i = r.points[0], o = r.points[r.points.length - 1]) : (r.points = [], i = a, o = t), r.points.unshift(re(t, i)), r.points.push(re(a, o));
1234
- });
1235
- }
1236
- function Jr(e) {
1237
- f(e.edges(), function(n) {
1238
- var r = e.edge(n);
1239
- if (Object.prototype.hasOwnProperty.call(r, "x"))
1240
- switch ((r.labelpos === "l" || r.labelpos === "r") && (r.width -= r.labeloffset), r.labelpos) {
1241
- case "l":
1242
- r.x -= r.width / 2 + r.labeloffset;
1243
- break;
1244
- case "r":
1245
- r.x += r.width / 2 + r.labeloffset;
1246
- break;
1247
- }
1248
- });
1249
- }
1250
- function Qr(e) {
1251
- f(e.edges(), function(n) {
1252
- var r = e.edge(n);
1253
- r.reversed && r.points.reverse();
1254
- });
1255
- }
1256
- function Zr(e) {
1257
- f(e.nodes(), function(n) {
1258
- if (e.children(n).length) {
1259
- var r = e.node(n), t = e.node(r.borderTop), a = e.node(r.borderBottom), i = e.node(T(r.borderLeft)), o = e.node(T(r.borderRight));
1260
- r.width = Math.abs(o.x - i.x), r.height = Math.abs(a.y - t.y), r.x = i.x + r.width / 2, r.y = t.y + r.height / 2;
1261
- }
1262
- }), f(e.nodes(), function(n) {
1263
- e.node(n).dummy === "border" && e.removeNode(n);
1264
- });
1265
- }
1266
- function Kr(e) {
1267
- f(e.edges(), function(n) {
1268
- if (n.v === n.w) {
1269
- var r = e.node(n.v);
1270
- r.selfEdges || (r.selfEdges = []), r.selfEdges.push({ e: n, label: e.edge(n) }), e.removeEdge(n);
1271
- }
1272
- });
1273
- }
1274
- function et(e) {
1275
- var n = F(e);
1276
- f(n, function(r) {
1277
- var t = 0;
1278
- f(r, function(a, i) {
1279
- var o = e.node(a);
1280
- o.order = i + t, f(o.selfEdges, function(u) {
1281
- L(
1282
- e,
1283
- "selfedge",
1284
- {
1285
- width: u.label.width,
1286
- height: u.label.height,
1287
- rank: o.rank,
1288
- order: i + ++t,
1289
- e: u.e,
1290
- label: u.label
1291
- },
1292
- "_se"
1293
- );
1294
- }), delete o.selfEdges;
1295
- });
1296
- });
1297
- }
1298
- function nt(e) {
1299
- f(e.nodes(), function(n) {
1300
- var r = e.node(n);
1301
- if (r.dummy === "selfedge") {
1302
- var t = e.node(r.e.v), a = t.x + t.width / 2, i = t.y, o = r.x - a, u = t.height / 2;
1303
- e.setEdge(r.e, r.label), e.removeNode(n), r.label.points = [
1304
- { x: a + 2 * o / 3, y: i - u },
1305
- { x: a + 5 * o / 6, y: i - u },
1306
- { x: a + o, y: i },
1307
- { x: a + 5 * o / 6, y: i + u },
1308
- { x: a + 2 * o / 3, y: i + u }
1309
- ], r.label.x = r.x, r.label.y = r.y;
1310
- }
1311
- });
1312
- }
1313
- function Y(e, n) {
1314
- return S(I(e, n), Number);
1315
- }
1316
- function D(e) {
1317
- var n = {};
1318
- return f(e, function(r, t) {
1319
- n[t.toLowerCase()] = r;
1320
- }), n;
1321
- }
1322
- export {
1323
- ot as l
1324
- };