@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
@@ -1,811 +0,0 @@
1
- import { a1 as p, a7 as lt, a4 as _t, a3 as xt, a5 as vt, a6 as bt, ah as wt, ag as St, an as Lt, a9 as Et, ao as At, aO as Tt } from "./CoachForm.js";
2
- import { s as X } from "./redux-toolkit.modern.js";
3
- import { o as Mt } from "./ordinal.js";
4
- function Nt(t) {
5
- for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
6
- return i;
7
- }
8
- const It = Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
9
- function ct(t, e) {
10
- let i;
11
- if (e === void 0)
12
- for (const a of t)
13
- a != null && (i < a || i === void 0 && a >= a) && (i = a);
14
- else {
15
- let a = -1;
16
- for (let h of t)
17
- (h = e(h, ++a, t)) != null && (i < h || i === void 0 && h >= h) && (i = h);
18
- }
19
- return i;
20
- }
21
- function pt(t, e) {
22
- let i;
23
- if (e === void 0)
24
- for (const a of t)
25
- a != null && (i > a || i === void 0 && a >= a) && (i = a);
26
- else {
27
- let a = -1;
28
- for (let h of t)
29
- (h = e(h, ++a, t)) != null && (i > h || i === void 0 && h >= h) && (i = h);
30
- }
31
- return i;
32
- }
33
- function nt(t, e) {
34
- let i = 0;
35
- if (e === void 0)
36
- for (let a of t)
37
- (a = +a) && (i += a);
38
- else {
39
- let a = -1;
40
- for (let h of t)
41
- (h = +e(h, ++a, t)) && (i += h);
42
- }
43
- return i;
44
- }
45
- function Pt(t) {
46
- return t.target.depth;
47
- }
48
- function Ct(t) {
49
- return t.depth;
50
- }
51
- function Ot(t, e) {
52
- return e - 1 - t.height;
53
- }
54
- function mt(t, e) {
55
- return t.sourceLinks.length ? t.depth : e - 1;
56
- }
57
- function Dt(t) {
58
- return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
59
- }
60
- function q(t) {
61
- return function() {
62
- return t;
63
- };
64
- }
65
- function ut(t, e) {
66
- return Q(t.source, e.source) || t.index - e.index;
67
- }
68
- function ht(t, e) {
69
- return Q(t.target, e.target) || t.index - e.index;
70
- }
71
- function Q(t, e) {
72
- return t.y0 - e.y0;
73
- }
74
- function it(t) {
75
- return t.value;
76
- }
77
- function $t(t) {
78
- return t.index;
79
- }
80
- function zt(t) {
81
- return t.nodes;
82
- }
83
- function jt(t) {
84
- return t.links;
85
- }
86
- function ft(t, e) {
87
- const i = t.get(e);
88
- if (!i) throw new Error("missing: " + e);
89
- return i;
90
- }
91
- function yt({ nodes: t }) {
92
- for (const e of t) {
93
- let i = e.y0, a = i;
94
- for (const h of e.sourceLinks)
95
- h.y0 = i + h.width / 2, i += h.width;
96
- for (const h of e.targetLinks)
97
- h.y1 = a + h.width / 2, a += h.width;
98
- }
99
- }
100
- function Bt() {
101
- let t = 0, e = 0, i = 1, a = 1, h = 24, d = 8, m, _ = $t, s = mt, o, l, x = zt, v = jt, y = 6;
102
- function b() {
103
- const n = { nodes: x.apply(null, arguments), links: v.apply(null, arguments) };
104
- return M(n), T(n), N(n), C(n), S(n), yt(n), n;
105
- }
106
- b.update = function(n) {
107
- return yt(n), n;
108
- }, b.nodeId = function(n) {
109
- return arguments.length ? (_ = typeof n == "function" ? n : q(n), b) : _;
110
- }, b.nodeAlign = function(n) {
111
- return arguments.length ? (s = typeof n == "function" ? n : q(n), b) : s;
112
- }, b.nodeSort = function(n) {
113
- return arguments.length ? (o = n, b) : o;
114
- }, b.nodeWidth = function(n) {
115
- return arguments.length ? (h = +n, b) : h;
116
- }, b.nodePadding = function(n) {
117
- return arguments.length ? (d = m = +n, b) : d;
118
- }, b.nodes = function(n) {
119
- return arguments.length ? (x = typeof n == "function" ? n : q(n), b) : x;
120
- }, b.links = function(n) {
121
- return arguments.length ? (v = typeof n == "function" ? n : q(n), b) : v;
122
- }, b.linkSort = function(n) {
123
- return arguments.length ? (l = n, b) : l;
124
- }, b.size = function(n) {
125
- return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], b) : [i - t, a - e];
126
- }, b.extent = function(n) {
127
- return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], b) : [[t, e], [i, a]];
128
- }, b.iterations = function(n) {
129
- return arguments.length ? (y = +n, b) : y;
130
- };
131
- function M({ nodes: n, links: f }) {
132
- for (const [c, r] of n.entries())
133
- r.index = c, r.sourceLinks = [], r.targetLinks = [];
134
- const u = new Map(n.map((c, r) => [_(c, r, n), c]));
135
- for (const [c, r] of f.entries()) {
136
- r.index = c;
137
- let { source: k, target: w } = r;
138
- typeof k != "object" && (k = r.source = ft(u, k)), typeof w != "object" && (w = r.target = ft(u, w)), k.sourceLinks.push(r), w.targetLinks.push(r);
139
- }
140
- if (l != null)
141
- for (const { sourceLinks: c, targetLinks: r } of n)
142
- c.sort(l), r.sort(l);
143
- }
144
- function T({ nodes: n }) {
145
- for (const f of n)
146
- f.value = f.fixedValue === void 0 ? Math.max(nt(f.sourceLinks, it), nt(f.targetLinks, it)) : f.fixedValue;
147
- }
148
- function N({ nodes: n }) {
149
- const f = n.length;
150
- let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
151
- for (; u.size; ) {
152
- for (const k of u) {
153
- k.depth = r;
154
- for (const { target: w } of k.sourceLinks)
155
- c.add(w);
156
- }
157
- if (++r > f) throw new Error("circular link");
158
- u = c, c = /* @__PURE__ */ new Set();
159
- }
160
- }
161
- function C({ nodes: n }) {
162
- const f = n.length;
163
- let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
164
- for (; u.size; ) {
165
- for (const k of u) {
166
- k.height = r;
167
- for (const { source: w } of k.targetLinks)
168
- c.add(w);
169
- }
170
- if (++r > f) throw new Error("circular link");
171
- u = c, c = /* @__PURE__ */ new Set();
172
- }
173
- }
174
- function $({ nodes: n }) {
175
- const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
176
- for (const r of n) {
177
- const k = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
178
- r.layer = k, r.x0 = t + k * u, r.x1 = r.x0 + h, c[k] ? c[k].push(r) : c[k] = [r];
179
- }
180
- if (o) for (const r of c)
181
- r.sort(o);
182
- return c;
183
- }
184
- function R(n) {
185
- const f = pt(n, (u) => (a - e - (u.length - 1) * m) / nt(u, it));
186
- for (const u of n) {
187
- let c = e;
188
- for (const r of u) {
189
- r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + m;
190
- for (const k of r.sourceLinks)
191
- k.width = k.value * f;
192
- }
193
- c = (a - c + m) / (u.length + 1);
194
- for (let r = 0; r < u.length; ++r) {
195
- const k = u[r];
196
- k.y0 += c * (r + 1), k.y1 += c * (r + 1);
197
- }
198
- A(u);
199
- }
200
- }
201
- function S(n) {
202
- const f = $(n);
203
- m = Math.min(d, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
204
- for (let u = 0; u < y; ++u) {
205
- const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
206
- B(f, c, r), P(f, c, r);
207
- }
208
- }
209
- function P(n, f, u) {
210
- for (let c = 1, r = n.length; c < r; ++c) {
211
- const k = n[c];
212
- for (const w of k) {
213
- let L = 0, F = 0;
214
- for (const { source: Y, value: et } of w.targetLinks) {
215
- let H = et * (w.layer - Y.layer);
216
- L += z(Y, w) * H, F += H;
217
- }
218
- if (!(F > 0)) continue;
219
- let G = (L / F - w.y0) * f;
220
- w.y0 += G, w.y1 += G, E(w);
221
- }
222
- o === void 0 && k.sort(Q), O(k, u);
223
- }
224
- }
225
- function B(n, f, u) {
226
- for (let c = n.length, r = c - 2; r >= 0; --r) {
227
- const k = n[r];
228
- for (const w of k) {
229
- let L = 0, F = 0;
230
- for (const { target: Y, value: et } of w.sourceLinks) {
231
- let H = et * (Y.layer - w.layer);
232
- L += I(w, Y) * H, F += H;
233
- }
234
- if (!(F > 0)) continue;
235
- let G = (L / F - w.y0) * f;
236
- w.y0 += G, w.y1 += G, E(w);
237
- }
238
- o === void 0 && k.sort(Q), O(k, u);
239
- }
240
- }
241
- function O(n, f) {
242
- const u = n.length >> 1, c = n[u];
243
- g(n, c.y0 - m, u - 1, f), D(n, c.y1 + m, u + 1, f), g(n, a, n.length - 1, f), D(n, e, 0, f);
244
- }
245
- function D(n, f, u, c) {
246
- for (; u < n.length; ++u) {
247
- const r = n[u], k = (f - r.y0) * c;
248
- k > 1e-6 && (r.y0 += k, r.y1 += k), f = r.y1 + m;
249
- }
250
- }
251
- function g(n, f, u, c) {
252
- for (; u >= 0; --u) {
253
- const r = n[u], k = (r.y1 - f) * c;
254
- k > 1e-6 && (r.y0 -= k, r.y1 -= k), f = r.y0 - m;
255
- }
256
- }
257
- function E({ sourceLinks: n, targetLinks: f }) {
258
- if (l === void 0) {
259
- for (const { source: { sourceLinks: u } } of f)
260
- u.sort(ht);
261
- for (const { target: { targetLinks: u } } of n)
262
- u.sort(ut);
263
- }
264
- }
265
- function A(n) {
266
- if (l === void 0)
267
- for (const { sourceLinks: f, targetLinks: u } of n)
268
- f.sort(ht), u.sort(ut);
269
- }
270
- function z(n, f) {
271
- let u = n.y0 - (n.sourceLinks.length - 1) * m / 2;
272
- for (const { target: c, width: r } of n.sourceLinks) {
273
- if (c === f) break;
274
- u += r + m;
275
- }
276
- for (const { source: c, width: r } of f.targetLinks) {
277
- if (c === n) break;
278
- u -= r;
279
- }
280
- return u;
281
- }
282
- function I(n, f) {
283
- let u = f.y0 - (f.targetLinks.length - 1) * m / 2;
284
- for (const { source: c, width: r } of f.targetLinks) {
285
- if (c === n) break;
286
- u += r + m;
287
- }
288
- for (const { target: c, width: r } of n.sourceLinks) {
289
- if (c === f) break;
290
- u -= r;
291
- }
292
- return u;
293
- }
294
- return b;
295
- }
296
- var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
297
- function ot() {
298
- this._x0 = this._y0 = // start of current subpath
299
- this._x1 = this._y1 = null, this._ = "";
300
- }
301
- function kt() {
302
- return new ot();
303
- }
304
- ot.prototype = kt.prototype = {
305
- constructor: ot,
306
- moveTo: function(t, e) {
307
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e);
308
- },
309
- closePath: function() {
310
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
311
- },
312
- lineTo: function(t, e) {
313
- this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +e);
314
- },
315
- quadraticCurveTo: function(t, e, i, a) {
316
- this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
317
- },
318
- bezierCurveTo: function(t, e, i, a, h, d) {
319
- this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +d);
320
- },
321
- arcTo: function(t, e, i, a, h) {
322
- t = +t, e = +e, i = +i, a = +a, h = +h;
323
- var d = this._x1, m = this._y1, _ = i - t, s = a - e, o = d - t, l = m - e, x = o * o + l * l;
324
- if (h < 0) throw new Error("negative radius: " + h);
325
- if (this._x1 === null)
326
- this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
327
- else if (x > V) if (!(Math.abs(l * _ - s * o) > V) || !h)
328
- this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
329
- else {
330
- var v = i - d, y = a - m, b = _ * _ + s * s, M = v * v + y * y, T = Math.sqrt(b), N = Math.sqrt(x), C = h * Math.tan((st - Math.acos((b + x - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
331
- Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * v > o * y) + "," + (this._x1 = t + R * _) + "," + (this._y1 = e + R * s);
332
- }
333
- },
334
- arc: function(t, e, i, a, h, d) {
335
- t = +t, e = +e, i = +i, d = !!d;
336
- var m = i * Math.cos(a), _ = i * Math.sin(a), s = t + m, o = e + _, l = 1 ^ d, x = d ? a - h : h - a;
337
- if (i < 0) throw new Error("negative radius: " + i);
338
- this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (x < 0 && (x = x % rt + rt), x > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - m) + "," + (e - _) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : x > V && (this._ += "A" + i + "," + i + ",0," + +(x >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
339
- },
340
- rect: function(t, e, i, a) {
341
- this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
342
- },
343
- toString: function() {
344
- return this._;
345
- }
346
- };
347
- function dt(t) {
348
- return function() {
349
- return t;
350
- };
351
- }
352
- function Ft(t) {
353
- return t[0];
354
- }
355
- function Vt(t) {
356
- return t[1];
357
- }
358
- var Wt = Array.prototype.slice;
359
- function Ut(t) {
360
- return t.source;
361
- }
362
- function Gt(t) {
363
- return t.target;
364
- }
365
- function Yt(t) {
366
- var e = Ut, i = Gt, a = Ft, h = Vt, d = null;
367
- function m() {
368
- var _, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
369
- if (d || (d = _ = kt()), t(d, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), _) return d = null, _ + "" || null;
370
- }
371
- return m.source = function(_) {
372
- return arguments.length ? (e = _, m) : e;
373
- }, m.target = function(_) {
374
- return arguments.length ? (i = _, m) : i;
375
- }, m.x = function(_) {
376
- return arguments.length ? (a = typeof _ == "function" ? _ : dt(+_), m) : a;
377
- }, m.y = function(_) {
378
- return arguments.length ? (h = typeof _ == "function" ? _ : dt(+_), m) : h;
379
- }, m.context = function(_) {
380
- return arguments.length ? (d = _ ?? null, m) : d;
381
- }, m;
382
- }
383
- function Ht(t, e, i, a, h) {
384
- t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
385
- }
386
- function Xt() {
387
- return Yt(Ht);
388
- }
389
- function qt(t) {
390
- return [t.source.x1, t.y0];
391
- }
392
- function Qt(t) {
393
- return [t.target.x0, t.y1];
394
- }
395
- function Kt() {
396
- return Xt().source(qt).target(Qt);
397
- }
398
- var at = function() {
399
- var t = /* @__PURE__ */ p(function(_, s, o, l) {
400
- for (o = o || {}, l = _.length; l--; o[_[l]] = s) ;
401
- return o;
402
- }, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
403
- trace: /* @__PURE__ */ p(function() {
404
- }, "trace"),
405
- yy: {},
406
- symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
407
- terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
408
- productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
409
- performAction: /* @__PURE__ */ p(function(s, o, l, x, v, y, b) {
410
- var M = y.length - 1;
411
- switch (v) {
412
- case 7:
413
- const T = x.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = x.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim());
414
- x.addLink(T, N, C);
415
- break;
416
- case 8:
417
- case 9:
418
- case 11:
419
- this.$ = y[M];
420
- break;
421
- case 10:
422
- this.$ = y[M - 1];
423
- break;
424
- }
425
- }, "anonymous"),
426
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 15: 18, 16: 7, 17: 8, 18: e, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: i }, t([1, 5, 10], [2, 7])],
427
- defaultActions: { 11: [2, 1], 12: [2, 5] },
428
- parseError: /* @__PURE__ */ p(function(s, o) {
429
- if (o.recoverable)
430
- this.trace(s);
431
- else {
432
- var l = new Error(s);
433
- throw l.hash = o, l;
434
- }
435
- }, "parseError"),
436
- parse: /* @__PURE__ */ p(function(s) {
437
- var o = this, l = [0], x = [], v = [null], y = [], b = this.table, M = "", T = 0, N = 0, C = 2, $ = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
438
- for (var B in this.yy)
439
- Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
440
- S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
441
- var O = S.yylloc;
442
- y.push(O);
443
- var D = S.options && S.options.ranges;
444
- typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
445
- function g(L) {
446
- l.length = l.length - 2 * L, v.length = v.length - L, y.length = y.length - L;
447
- }
448
- p(g, "popStack");
449
- function E() {
450
- var L;
451
- return L = x.pop() || S.lex() || $, typeof L != "number" && (L instanceof Array && (x = L, L = x.pop()), L = o.symbols_[L] || L), L;
452
- }
453
- p(E, "lex");
454
- for (var A, z, I, n, f = {}, u, c, r, k; ; ) {
455
- if (z = l[l.length - 1], this.defaultActions[z] ? I = this.defaultActions[z] : ((A === null || typeof A > "u") && (A = E()), I = b[z] && b[z][A]), typeof I > "u" || !I.length || !I[0]) {
456
- var w = "";
457
- k = [];
458
- for (u in b[z])
459
- this.terminals_[u] && u > C && k.push("'" + this.terminals_[u] + "'");
460
- S.showPosition ? w = "Parse error on line " + (T + 1) + `:
461
- ` + S.showPosition() + `
462
- Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == $ ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
463
- text: S.match,
464
- token: this.terminals_[A] || A,
465
- line: S.yylineno,
466
- loc: O,
467
- expected: k
468
- });
469
- }
470
- if (I[0] instanceof Array && I.length > 1)
471
- throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + A);
472
- switch (I[0]) {
473
- case 1:
474
- l.push(A), v.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
475
- break;
476
- case 2:
477
- if (c = this.productions_[I[1]][1], f.$ = v[v.length - c], f._$ = {
478
- first_line: y[y.length - (c || 1)].first_line,
479
- last_line: y[y.length - 1].last_line,
480
- first_column: y[y.length - (c || 1)].first_column,
481
- last_column: y[y.length - 1].last_column
482
- }, D && (f._$.range = [
483
- y[y.length - (c || 1)].range[0],
484
- y[y.length - 1].range[1]
485
- ]), n = this.performAction.apply(f, [
486
- M,
487
- N,
488
- T,
489
- P.yy,
490
- I[1],
491
- v,
492
- y
493
- ].concat(R)), typeof n < "u")
494
- return n;
495
- c && (l = l.slice(0, -1 * c * 2), v = v.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), v.push(f.$), y.push(f._$), r = b[l[l.length - 2]][l[l.length - 1]], l.push(r);
496
- break;
497
- case 3:
498
- return !0;
499
- }
500
- }
501
- return !0;
502
- }, "parse")
503
- }, d = /* @__PURE__ */ function() {
504
- var _ = {
505
- EOF: 1,
506
- parseError: /* @__PURE__ */ p(function(o, l) {
507
- if (this.yy.parser)
508
- this.yy.parser.parseError(o, l);
509
- else
510
- throw new Error(o);
511
- }, "parseError"),
512
- // resets the lexer, sets new input
513
- setInput: /* @__PURE__ */ p(function(s, o) {
514
- return this.yy = o || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
515
- first_line: 1,
516
- first_column: 0,
517
- last_line: 1,
518
- last_column: 0
519
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
520
- }, "setInput"),
521
- // consumes and returns one char from the input
522
- input: /* @__PURE__ */ p(function() {
523
- var s = this._input[0];
524
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
525
- var o = s.match(/(?:\r\n?|\n).*/g);
526
- return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
527
- }, "input"),
528
- // unshifts one char (or a string) into the input
529
- unput: /* @__PURE__ */ p(function(s) {
530
- var o = s.length, l = s.split(/(?:\r\n?|\n)/g);
531
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
532
- var x = this.match.split(/(?:\r\n?|\n)/g);
533
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
534
- var v = this.yylloc.range;
535
- return this.yylloc = {
536
- first_line: this.yylloc.first_line,
537
- last_line: this.yylineno + 1,
538
- first_column: this.yylloc.first_column,
539
- last_column: l ? (l.length === x.length ? this.yylloc.first_column : 0) + x[x.length - l.length].length - l[0].length : this.yylloc.first_column - o
540
- }, this.options.ranges && (this.yylloc.range = [v[0], v[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
541
- }, "unput"),
542
- // When called from action, caches matched text and appends it on next action
543
- more: /* @__PURE__ */ p(function() {
544
- return this._more = !0, this;
545
- }, "more"),
546
- // 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.
547
- reject: /* @__PURE__ */ p(function() {
548
- if (this.options.backtrack_lexer)
549
- this._backtrack = !0;
550
- else
551
- 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).
552
- ` + this.showPosition(), {
553
- text: "",
554
- token: null,
555
- line: this.yylineno
556
- });
557
- return this;
558
- }, "reject"),
559
- // retain first n characters of the match
560
- less: /* @__PURE__ */ p(function(s) {
561
- this.unput(this.match.slice(s));
562
- }, "less"),
563
- // displays already matched input, i.e. for error messages
564
- pastInput: /* @__PURE__ */ p(function() {
565
- var s = this.matched.substr(0, this.matched.length - this.match.length);
566
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
567
- }, "pastInput"),
568
- // displays upcoming input, i.e. for error messages
569
- upcomingInput: /* @__PURE__ */ p(function() {
570
- var s = this.match;
571
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
572
- }, "upcomingInput"),
573
- // displays the character position where the lexing error occurred, i.e. for error messages
574
- showPosition: /* @__PURE__ */ p(function() {
575
- var s = this.pastInput(), o = new Array(s.length + 1).join("-");
576
- return s + this.upcomingInput() + `
577
- ` + o + "^";
578
- }, "showPosition"),
579
- // test the lexed token: return FALSE when not a match, otherwise return token
580
- test_match: /* @__PURE__ */ p(function(s, o) {
581
- var l, x, v;
582
- if (this.options.backtrack_lexer && (v = {
583
- yylineno: this.yylineno,
584
- yylloc: {
585
- first_line: this.yylloc.first_line,
586
- last_line: this.last_line,
587
- first_column: this.yylloc.first_column,
588
- last_column: this.yylloc.last_column
589
- },
590
- yytext: this.yytext,
591
- match: this.match,
592
- matches: this.matches,
593
- matched: this.matched,
594
- yyleng: this.yyleng,
595
- offset: this.offset,
596
- _more: this._more,
597
- _input: this._input,
598
- yy: this.yy,
599
- conditionStack: this.conditionStack.slice(0),
600
- done: this.done
601
- }, this.options.ranges && (v.yylloc.range = this.yylloc.range.slice(0))), x = s[0].match(/(?:\r\n?|\n).*/g), x && (this.yylineno += x.length), this.yylloc = {
602
- first_line: this.yylloc.last_line,
603
- last_line: this.yylineno + 1,
604
- first_column: this.yylloc.last_column,
605
- last_column: x ? x[x.length - 1].length - x[x.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
606
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
607
- return l;
608
- if (this._backtrack) {
609
- for (var y in v)
610
- this[y] = v[y];
611
- return !1;
612
- }
613
- return !1;
614
- }, "test_match"),
615
- // return next match in input
616
- next: /* @__PURE__ */ p(function() {
617
- if (this.done)
618
- return this.EOF;
619
- this._input || (this.done = !0);
620
- var s, o, l, x;
621
- this._more || (this.yytext = "", this.match = "");
622
- for (var v = this._currentRules(), y = 0; y < v.length; y++)
623
- if (l = this._input.match(this.rules[v[y]]), l && (!o || l[0].length > o[0].length)) {
624
- if (o = l, x = y, this.options.backtrack_lexer) {
625
- if (s = this.test_match(l, v[y]), s !== !1)
626
- return s;
627
- if (this._backtrack) {
628
- o = !1;
629
- continue;
630
- } else
631
- return !1;
632
- } else if (!this.options.flex)
633
- break;
634
- }
635
- return o ? (s = this.test_match(o, v[x]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
636
- ` + this.showPosition(), {
637
- text: "",
638
- token: null,
639
- line: this.yylineno
640
- });
641
- }, "next"),
642
- // return next match that has a token
643
- lex: /* @__PURE__ */ p(function() {
644
- var o = this.next();
645
- return o || this.lex();
646
- }, "lex"),
647
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
648
- begin: /* @__PURE__ */ p(function(o) {
649
- this.conditionStack.push(o);
650
- }, "begin"),
651
- // pop the previously active lexer condition state off the condition stack
652
- popState: /* @__PURE__ */ p(function() {
653
- var o = this.conditionStack.length - 1;
654
- return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
655
- }, "popState"),
656
- // produce the lexer rule set which is active for the currently active lexer condition state
657
- _currentRules: /* @__PURE__ */ p(function() {
658
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
659
- }, "_currentRules"),
660
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
661
- topState: /* @__PURE__ */ p(function(o) {
662
- return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
663
- }, "topState"),
664
- // alias for begin(condition)
665
- pushState: /* @__PURE__ */ p(function(o) {
666
- this.begin(o);
667
- }, "pushState"),
668
- // return the number of states currently on the stack
669
- stateStackSize: /* @__PURE__ */ p(function() {
670
- return this.conditionStack.length;
671
- }, "stateStackSize"),
672
- options: { "case-insensitive": !0 },
673
- performAction: /* @__PURE__ */ p(function(o, l, x, v) {
674
- switch (x) {
675
- case 0:
676
- return this.pushState("csv"), 4;
677
- case 1:
678
- return this.pushState("csv"), 4;
679
- case 2:
680
- return 10;
681
- case 3:
682
- return 5;
683
- case 4:
684
- return 12;
685
- case 5:
686
- return this.pushState("escaped_text"), 18;
687
- case 6:
688
- return 20;
689
- case 7:
690
- return this.popState("escaped_text"), 18;
691
- case 8:
692
- return 19;
693
- }
694
- }, "anonymous"),
695
- rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
696
- conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
697
- };
698
- return _;
699
- }();
700
- h.lexer = d;
701
- function m() {
702
- this.yy = {};
703
- }
704
- return p(m, "Parser"), m.prototype = h, h.Parser = m, new m();
705
- }();
706
- at.parser = at;
707
- var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ p(() => {
708
- J = [], tt = [], Z = /* @__PURE__ */ new Map(), Lt();
709
- }, "clear"), W, Jt = (W = class {
710
- constructor(e, i, a = 0) {
711
- this.source = e, this.target = i, this.value = a;
712
- }
713
- }, p(W, "SankeyLink"), W), te = /* @__PURE__ */ p((t, e, i) => {
714
- J.push(new Jt(t, e, i));
715
- }, "addLink"), U, ee = (U = class {
716
- constructor(e) {
717
- this.ID = e;
718
- }
719
- }, p(U, "SankeyNode"), U), ne = /* @__PURE__ */ p((t) => {
720
- t = Et.sanitizeText(t, lt());
721
- let e = Z.get(t);
722
- return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
723
- }, "findOrCreateNode"), ie = /* @__PURE__ */ p(() => tt, "getNodes"), se = /* @__PURE__ */ p(() => J, "getLinks"), re = /* @__PURE__ */ p(() => ({
724
- nodes: tt.map((t) => ({ id: t.ID })),
725
- links: J.map((t) => ({
726
- source: t.source.ID,
727
- target: t.target.ID,
728
- value: t.value
729
- }))
730
- }), "getGraph"), oe = {
731
- nodesMap: Z,
732
- getConfig: /* @__PURE__ */ p(() => lt().sankey, "getConfig"),
733
- getNodes: ie,
734
- getLinks: se,
735
- getGraph: re,
736
- addLink: te,
737
- findOrCreateNode: ne,
738
- getAccTitle: _t,
739
- setAccTitle: xt,
740
- getAccDescription: vt,
741
- setAccDescription: bt,
742
- getDiagramTitle: wt,
743
- setDiagramTitle: St,
744
- clear: Zt
745
- }, j, gt = (j = class {
746
- static next(e) {
747
- return new j(e + ++j.count);
748
- }
749
- constructor(e) {
750
- this.id = e, this.href = `#${e}`;
751
- }
752
- toString() {
753
- return "url(" + this.href + ")";
754
- }
755
- }, p(j, "Uid"), j.count = 0, j), ae = {
756
- left: Ct,
757
- right: Ot,
758
- center: Dt,
759
- justify: mt
760
- }, le = /* @__PURE__ */ p(function(t, e, i, a) {
761
- const { securityLevel: h, sankey: d } = lt(), m = At.sankey;
762
- let _;
763
- h === "sandbox" && (_ = X("#i" + e));
764
- const s = h === "sandbox" ? X(_.nodes()[0].contentDocument.body) : X("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : X(`[id="${e}"]`), l = (d == null ? void 0 : d.width) ?? m.width, x = (d == null ? void 0 : d.height) ?? m.width, v = (d == null ? void 0 : d.useMaxWidth) ?? m.useMaxWidth, y = (d == null ? void 0 : d.nodeAlignment) ?? m.nodeAlignment, b = (d == null ? void 0 : d.prefix) ?? m.prefix, M = (d == null ? void 0 : d.suffix) ?? m.suffix, T = (d == null ? void 0 : d.showValues) ?? m.showValues, N = a.db.getGraph(), C = ae[y];
765
- Bt().nodeId((g) => g.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
766
- [0, 0],
767
- [l, x]
768
- ])(N);
769
- const S = Mt(It);
770
- o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (g) => (g.uid = gt.next("node-")).id).attr("transform", function(g) {
771
- return "translate(" + g.x0 + "," + g.y0 + ")";
772
- }).attr("x", (g) => g.x0).attr("y", (g) => g.y0).append("rect").attr("height", (g) => g.y1 - g.y0).attr("width", (g) => g.x1 - g.x0).attr("fill", (g) => S(g.id));
773
- const P = /* @__PURE__ */ p(({ id: g, value: E }) => T ? `${g}
774
- ${b}${Math.round(E * 100) / 100}${M}` : g, "getText");
775
- o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (g) => g.x0 < l / 2 ? g.x1 + 6 : g.x0 - 6).attr("y", (g) => (g.y1 + g.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (g) => g.x0 < l / 2 ? "start" : "end").text(P);
776
- const B = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = (d == null ? void 0 : d.linkColor) ?? "gradient";
777
- if (O === "gradient") {
778
- const g = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
779
- g.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), g.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
780
- }
781
- let D;
782
- switch (O) {
783
- case "gradient":
784
- D = /* @__PURE__ */ p((g) => g.uid, "coloring");
785
- break;
786
- case "source":
787
- D = /* @__PURE__ */ p((g) => S(g.source.id), "coloring");
788
- break;
789
- case "target":
790
- D = /* @__PURE__ */ p((g) => S(g.target.id), "coloring");
791
- break;
792
- default:
793
- D = O;
794
- }
795
- B.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (g) => Math.max(1, g.width)), Tt(void 0, o, 0, v);
796
- }, "draw"), ce = {
797
- draw: le
798
- }, ue = /* @__PURE__ */ p((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
799
- `).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ p((t) => `.label {
800
- font-family: ${t.fontFamily};
801
- }`, "getStyles"), fe = he, ye = K.parse.bind(K);
802
- K.parse = (t) => ye(ue(t));
803
- var me = {
804
- styles: fe,
805
- parser: K,
806
- db: oe,
807
- renderer: ce
808
- };
809
- export {
810
- me as diagram
811
- };