@pb33f/cowboy-components 0.7.17 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (540) hide show
  1. package/dist/_basePickBy-DtTwxTrV.js +151 -0
  2. package/dist/_baseUniq-C5Y4WFmx.js +614 -0
  3. package/dist/arc-a-7w7y90.js +83 -0
  4. package/dist/architecture-U656AL7Q-c_zxypEp.js +5 -0
  5. package/dist/architectureDiagram-VXUJARFQ-CIhQJ6xS.js +4661 -0
  6. package/dist/assets/elk-layout.worker-B71_NI2D.js +1 -0
  7. package/dist/assets/equalizer.worker-A8HFNy4g.js +1 -0
  8. package/dist/assets/graph-dependent.worker-BgWuMZsb.js +1 -0
  9. package/dist/assets/rule-documentation.worker-BCKuwSgZ.js +1 -0
  10. package/dist/assets/search-graph.worker-Cwqb-ecv.js +1 -0
  11. package/dist/assets/search-problems.worker-60kZqr0h.js +1 -0
  12. package/dist/blockDiagram-VD42YOAC-BLl5ID-l.js +2261 -0
  13. package/dist/c4Diagram-YG6GDRKO-BOGfb13x.js +1580 -0
  14. package/dist/channel-DYeI56io.js +5 -0
  15. package/dist/chunk-4BX2VUAB-BeHGB7ON.js +8 -0
  16. package/dist/chunk-55IACEB6-DgHUzWsw.js +8 -0
  17. package/dist/chunk-B4BG7PRW-Vs7GiQMf.js +1375 -0
  18. package/dist/chunk-DI55MBZ5-CHjdGXx0.js +1370 -0
  19. package/dist/chunk-FMBD7UC4-D-H9-bHN.js +19 -0
  20. package/dist/chunk-QN33PNHL-D7uE2r1Y.js +19 -0
  21. package/dist/chunk-QZHKN3VN-Cp3sUp7e.js +15 -0
  22. package/dist/chunk-TZMSLE5B-BmXGcXo9.js +64 -0
  23. package/dist/classDiagram-2ON5EDUG-9ilqiDEi.js +16 -0
  24. package/dist/classDiagram-v2-WZHVMYZB-9ilqiDEi.js +16 -0
  25. package/dist/clone-CybyMoa0.js +8 -0
  26. package/dist/components/attention-box/attention-box.css.js +8 -0
  27. package/dist/components/auth/login-button.js +1 -1
  28. package/dist/components/auth/login-panel.d.ts +4 -0
  29. package/dist/components/auth/login-panel.js +12 -4
  30. package/dist/components/auth/oauth-login.css.js +4 -0
  31. package/dist/components/auth/oauth-login.d.ts +2 -0
  32. package/dist/components/auth/oauth-login.js +12 -3
  33. package/dist/components/brokerable.d.ts +21 -0
  34. package/dist/components/brokerable.js +39 -0
  35. package/dist/components/bundle-toolbar/bundle-toolbar.css.js +110 -0
  36. package/dist/components/bundle-toolbar/bundle-toolbar.d.ts +21 -0
  37. package/dist/components/bundle-toolbar/bundle-toolbar.js +93 -0
  38. package/dist/components/changelog/changelog.css.js +2 -0
  39. package/dist/components/changelog/changelog.d.ts +2 -0
  40. package/dist/components/changelog/changelog.js +10 -1
  41. package/dist/components/changelog/release.css.js +5 -1
  42. package/dist/components/charts/beefy-chart.js +0 -2
  43. package/dist/components/charts/doughnut-chart.d.ts +5 -1
  44. package/dist/components/charts/doughnut-chart.js +20 -1
  45. package/dist/components/credit-ticker/credit-ticker.d.ts +3 -0
  46. package/dist/components/credit-ticker/credit-ticker.js +20 -4
  47. package/dist/components/details-drawer/details-drawer.css.d.ts +2 -0
  48. package/dist/components/{problem-list → details-drawer}/details-drawer.css.js +18 -3
  49. package/dist/components/details-drawer/generic-details-drawer.css.d.ts +1 -0
  50. package/dist/components/details-drawer/generic-details-drawer.css.js +219 -0
  51. package/dist/components/details-drawer/generic-details-drawer.d.ts +38 -0
  52. package/dist/components/details-drawer/generic-details-drawer.js +245 -0
  53. package/dist/components/details-drawer/handlers/diagram-handler.d.ts +35 -0
  54. package/dist/components/details-drawer/handlers/diagram-handler.js +248 -0
  55. package/dist/components/details-drawer/handlers/documentation-handler.d.ts +11 -0
  56. package/dist/components/details-drawer/handlers/documentation-handler.js +46 -0
  57. package/dist/components/details-drawer/handlers/example-handler.d.ts +18 -0
  58. package/dist/components/details-drawer/handlers/example-handler.js +146 -0
  59. package/dist/components/details-drawer/handlers/howto-handler.d.ts +11 -0
  60. package/dist/components/details-drawer/handlers/howto-handler.js +36 -0
  61. package/dist/components/details-drawer/handlers/markdown-handler.d.ts +12 -0
  62. package/dist/components/details-drawer/handlers/markdown-handler.js +54 -0
  63. package/dist/components/editor/editor-breadcrumb.css.js +1 -1
  64. package/dist/components/editor/editor.css.js +42 -0
  65. package/dist/components/editor/editor.d.ts +29 -3
  66. package/dist/components/editor/editor.js +495 -73
  67. package/dist/components/github/github-workspace-view.css.d.ts +2 -0
  68. package/dist/components/github/github-workspace-view.css.js +165 -0
  69. package/dist/components/github/github-workspace-view.d.ts +59 -0
  70. package/dist/components/github/github-workspace-view.js +525 -0
  71. package/dist/components/global-task/global-task-view.css.d.ts +2 -0
  72. package/dist/components/global-task/global-task-view.css.js +392 -0
  73. package/dist/components/global-task/global-task-view.d.ts +48 -0
  74. package/dist/components/global-task/global-task-view.js +359 -0
  75. package/dist/components/header/header.css.js +9 -1
  76. package/dist/components/http-method/http-method.css.js +5 -1
  77. package/dist/components/indeterminate-loader/indeterminate-loader.css.d.ts +2 -0
  78. package/dist/components/indeterminate-loader/indeterminate-loader.css.js +135 -0
  79. package/dist/components/indeterminate-loader/indeterminate-loader.d.ts +35 -0
  80. package/dist/components/indeterminate-loader/indeterminate-loader.js +201 -0
  81. package/dist/components/kv-view/kv-view.css.js +2 -0
  82. package/dist/components/kv-view/kv-view.js +0 -1
  83. package/dist/components/logo-wall/logo-wall.css.js +9 -0
  84. package/dist/components/manage-ruleset/manage-ruleset.css.js +14 -1
  85. package/dist/components/manage-ruleset/manage-ruleset.d.ts +1 -0
  86. package/dist/components/manage-ruleset/manage-ruleset.js +54 -22
  87. package/dist/components/manage-ruleset/rule-action.css.js +2 -0
  88. package/dist/components/manage-ruleset/rule-action.d.ts +10 -3
  89. package/dist/components/manage-ruleset/rule-action.js +118 -129
  90. package/dist/components/manage-ruleset/rule-input.d.ts +3 -1
  91. package/dist/components/manage-ruleset/rule-input.js +38 -34
  92. package/dist/components/manage-ruleset/rule.css.js +15 -1
  93. package/dist/components/manage-ruleset/rule.d.ts +4 -1
  94. package/dist/components/manage-ruleset/rule.js +44 -17
  95. package/dist/components/mermaid/mermaid-renderer.css.d.ts +1 -0
  96. package/dist/components/mermaid/mermaid-renderer.css.js +121 -0
  97. package/dist/components/mermaid/mermaid-renderer.d.ts +75 -0
  98. package/dist/components/mermaid/mermaid-renderer.js +485 -0
  99. package/dist/components/model-icon/doctor-icon.d.ts +9 -0
  100. package/dist/components/model-icon/doctor-icon.js +60 -0
  101. package/dist/components/model-icon/model-icon.d.ts +2 -1
  102. package/dist/components/model-icon/model-icon.js +13 -1
  103. package/dist/components/model-renderer/change.css.js +22 -8
  104. package/dist/components/model-renderer/changes.d.ts +1 -0
  105. package/dist/components/model-renderer/changes.js +47 -32
  106. package/dist/components/model-renderer/clickable-ref.d.ts +9 -3
  107. package/dist/components/model-renderer/clickable-ref.js +49 -10
  108. package/dist/components/model-renderer/components.d.ts +2 -0
  109. package/dist/components/model-renderer/components.js +196 -116
  110. package/dist/components/model-renderer/contact.js +2 -2
  111. package/dist/components/model-renderer/description.css.js +2 -0
  112. package/dist/components/model-renderer/document.d.ts +1 -0
  113. package/dist/components/model-renderer/document.js +14 -9
  114. package/dist/components/model-renderer/encoding.d.ts +2 -0
  115. package/dist/components/model-renderer/encoding.js +16 -7
  116. package/dist/components/model-renderer/example.css.js +5 -1
  117. package/dist/components/model-renderer/example.d.ts +4 -1
  118. package/dist/components/model-renderer/example.js +72 -118
  119. package/dist/components/model-renderer/extensions.d.ts +2 -0
  120. package/dist/components/model-renderer/extensions.js +11 -2
  121. package/dist/components/model-renderer/external-docs.d.ts +2 -0
  122. package/dist/components/model-renderer/external-docs.js +13 -4
  123. package/dist/components/model-renderer/has-changes.js +3 -3
  124. package/dist/components/model-renderer/header.d.ts +2 -0
  125. package/dist/components/model-renderer/header.js +27 -14
  126. package/dist/components/model-renderer/info.d.ts +2 -0
  127. package/dist/components/model-renderer/info.js +20 -7
  128. package/dist/components/model-renderer/link.d.ts +2 -0
  129. package/dist/components/model-renderer/link.js +27 -10
  130. package/dist/components/model-renderer/media-type.js +2 -2
  131. package/dist/components/model-renderer/model-badge.d.ts +11 -0
  132. package/dist/components/model-renderer/model-badge.js +59 -0
  133. package/dist/components/model-renderer/model-shared.css.js +14 -2
  134. package/dist/components/model-renderer/oauth-flows.js +4 -4
  135. package/dist/components/model-renderer/operation.d.ts +2 -1
  136. package/dist/components/model-renderer/operation.js +37 -16
  137. package/dist/components/model-renderer/param-location.js +3 -3
  138. package/dist/components/model-renderer/parameter.d.ts +2 -0
  139. package/dist/components/model-renderer/parameter.js +28 -15
  140. package/dist/components/model-renderer/path-item.d.ts +3 -0
  141. package/dist/components/model-renderer/path-item.js +52 -80
  142. package/dist/components/model-renderer/paths.d.ts +2 -0
  143. package/dist/components/model-renderer/paths.js +10 -3
  144. package/dist/components/model-renderer/problem-node.js +10 -10
  145. package/dist/components/model-renderer/rendered-node.css.js +35 -6
  146. package/dist/components/model-renderer/rendered-node.d.ts +14 -4
  147. package/dist/components/model-renderer/rendered-node.js +121 -58
  148. package/dist/components/model-renderer/rendered-property.js +4 -4
  149. package/dist/components/model-renderer/request-body.d.ts +2 -0
  150. package/dist/components/model-renderer/request-body.js +16 -9
  151. package/dist/components/model-renderer/response.d.ts +2 -0
  152. package/dist/components/model-renderer/response.js +35 -17
  153. package/dist/components/model-renderer/schema.css.js +10 -1
  154. package/dist/components/model-renderer/schema.d.ts +3 -2
  155. package/dist/components/model-renderer/schema.js +127 -129
  156. package/dist/components/model-renderer/security-scheme.js +3 -3
  157. package/dist/components/model-renderer/server.js +18 -8
  158. package/dist/components/model-renderer/tag.js +1 -1
  159. package/dist/components/model-tree/tree.css.js +21 -10
  160. package/dist/components/model-tree/tree.d.ts +39 -22
  161. package/dist/components/model-tree/tree.js +230 -167
  162. package/dist/components/paginator/paginator-navigator.css.js +9 -5
  163. package/dist/components/paginator/paginator-navigator.js +6 -6
  164. package/dist/components/paginator/paginator.css.js +2 -0
  165. package/dist/components/paginator/paginator.js +5 -8
  166. package/dist/components/percent-bar/percent-bar.css.js +133 -13
  167. package/dist/components/percent-bar/percent-bar.d.ts +2 -0
  168. package/dist/components/percent-bar/percent-bar.js +28 -24
  169. package/dist/components/premium-gate/premium-gate.css.d.ts +1 -0
  170. package/dist/components/premium-gate/premium-gate.css.js +117 -0
  171. package/dist/components/premium-gate/premium-gate.d.ts +49 -0
  172. package/dist/components/premium-gate/premium-gate.js +336 -0
  173. package/dist/components/problem-list/problem-list.css.js +72 -1
  174. package/dist/components/problem-list/problem-list.d.ts +17 -9
  175. package/dist/components/problem-list/problem-list.js +222 -226
  176. package/dist/components/problem-list/problem-mainview.css.js +12 -2
  177. package/dist/components/problem-list/problem-mainview.d.ts +3 -0
  178. package/dist/components/problem-list/problem-mainview.js +37 -17
  179. package/dist/components/problem-list/problem-toolbar.css.js +10 -7
  180. package/dist/components/problems-overview/diagnostic-evaluation.css.js +11 -1
  181. package/dist/components/problems-overview/diagnostic-evaluation.js +6 -7
  182. package/dist/components/problems-overview/document-statistic.css.js +6 -0
  183. package/dist/components/problems-overview/document-statistic.js +1 -1
  184. package/dist/components/problems-overview/problem-overview-group.js +5 -5
  185. package/dist/components/problems-overview/problem-statistic.css.js +24 -5
  186. package/dist/components/problems-overview/problem-statistic.js +15 -6
  187. package/dist/components/problems-overview/problem-statistics.css.js +4 -4
  188. package/dist/components/problems-overview/problem-statistics.js +29 -25
  189. package/dist/components/problems-overview/problems-overview.css.js +2 -2
  190. package/dist/components/property-view/property-view.css.js +2 -0
  191. package/dist/components/render-json-path/render-json-path.css.js +11 -3
  192. package/dist/components/render-json-path/render-json-path.js +3 -0
  193. package/dist/components/render-operation-path/render-operation-path.css.js +9 -0
  194. package/dist/components/render-operation-path/render-operation-path.js +7 -22
  195. package/dist/components/rodeo/rodeo.d.ts +1 -0
  196. package/dist/components/rodeo/rodeo.js +5 -0
  197. package/dist/components/rodeo/roundup.js +2 -2
  198. package/dist/components/rodeo/statistic.css.js +25 -2
  199. package/dist/components/rodeo/statistic.js +0 -4
  200. package/dist/components/shader-canvas/shader-canvas.css.d.ts +2 -0
  201. package/dist/components/shader-canvas/shader-canvas.css.js +66 -0
  202. package/dist/components/shader-canvas/shader-canvas.d.ts +36 -0
  203. package/dist/components/shader-canvas/shader-canvas.js +363 -0
  204. package/dist/components/shaders/flowing-waves-shader.d.ts +2 -0
  205. package/dist/components/shaders/flowing-waves-shader.js +70 -0
  206. package/dist/components/shaders/neon-canyon-shader.d.ts +2 -0
  207. package/dist/components/shaders/neon-canyon-shader.js +265 -0
  208. package/dist/components/shaders/neon-lines-shader.d.ts +2 -0
  209. package/dist/components/shaders/neon-lines-shader.js +181 -0
  210. package/dist/components/shaders/neon-squircles-shader.d.ts +2 -0
  211. package/dist/components/shaders/neon-squircles-shader.js +56 -0
  212. package/dist/components/shaders/retro-grid-shader.d.ts +2 -0
  213. package/dist/components/shaders/retro-grid-shader.js +53 -0
  214. package/dist/components/shaders/shader-base.d.ts +9 -0
  215. package/dist/components/shaders/shader-base.js +11 -0
  216. package/dist/components/terminal/terminal-example.css.js +4 -0
  217. package/dist/components/terminal/terminal-example.js +2 -3
  218. package/dist/components/terminal-emulator/terminal-emulator.css.js +12 -2
  219. package/dist/components/terminal-emulator/terminal-emulator.d.ts +7 -1
  220. package/dist/components/terminal-emulator/terminal-emulator.js +10 -5
  221. package/dist/components/the-doctor/doctor-controls-panel.css.d.ts +2 -0
  222. package/dist/components/the-doctor/doctor-controls-panel.css.js +53 -0
  223. package/dist/components/the-doctor/doctor-controls-panel.d.ts +20 -0
  224. package/dist/components/the-doctor/doctor-controls-panel.js +78 -0
  225. package/dist/components/the-doctor/doctor-editor-panel.css.d.ts +2 -0
  226. package/dist/components/the-doctor/doctor-editor-panel.css.js +209 -0
  227. package/dist/components/the-doctor/doctor-editor-panel.d.ts +41 -0
  228. package/dist/components/the-doctor/doctor-editor-panel.js +188 -0
  229. package/dist/components/the-doctor/doctor-navigator-panel.css.d.ts +2 -0
  230. package/dist/components/the-doctor/doctor-navigator-panel.css.js +134 -0
  231. package/dist/components/the-doctor/doctor-navigator-panel.d.ts +35 -0
  232. package/dist/components/the-doctor/doctor-navigator-panel.js +117 -0
  233. package/dist/components/the-doctor/doctor-sidebar-panel.css.d.ts +2 -0
  234. package/dist/components/the-doctor/doctor-sidebar-panel.css.js +143 -0
  235. package/dist/components/the-doctor/doctor-sidebar-panel.d.ts +31 -0
  236. package/dist/components/the-doctor/doctor-sidebar-panel.js +131 -0
  237. package/dist/components/the-doctor/doctor-url-overlay.css.d.ts +2 -0
  238. package/dist/components/the-doctor/doctor-url-overlay.css.js +59 -0
  239. package/dist/components/the-doctor/doctor-url-overlay.d.ts +23 -0
  240. package/dist/components/the-doctor/doctor-url-overlay.js +82 -0
  241. package/dist/components/the-doctor/nuke-workspace.js +4 -3
  242. package/dist/components/the-doctor/settings.css.js +2 -0
  243. package/dist/components/the-doctor/settings.js +5 -8
  244. package/dist/components/the-doctor/status-bar.d.ts +2 -2
  245. package/dist/components/the-doctor/status-bar.js +32 -31
  246. package/dist/components/the-doctor/the-doctor.css.js +47 -238
  247. package/dist/components/the-doctor/the-doctor.d.ts +149 -37
  248. package/dist/components/the-doctor/the-doctor.js +958 -528
  249. package/dist/components/the-doctor/upload-archive.css.js +8 -2
  250. package/dist/components/the-doctor/upload-archive.js +2 -2
  251. package/dist/components/theme-switcher/theme-switcher.js +5 -1
  252. package/dist/components/time-vortex/change-list-item.css.js +18 -4
  253. package/dist/components/time-vortex/change-list-item.d.ts +1 -0
  254. package/dist/components/time-vortex/change-list-item.js +4 -3
  255. package/dist/components/time-vortex/history-picker.css.js +60 -1
  256. package/dist/components/time-vortex/history-picker.d.ts +7 -1
  257. package/dist/components/time-vortex/history-picker.js +109 -5
  258. package/dist/components/time-vortex/tardis-control.css.js +339 -14
  259. package/dist/components/time-vortex/tardis-control.d.ts +31 -3
  260. package/dist/components/time-vortex/tardis-control.js +296 -58
  261. package/dist/components/time-vortex/time-vortex.d.ts +8 -2
  262. package/dist/components/time-vortex/time-vortex.js +54 -13
  263. package/dist/components/toast/toast-component.css.js +1 -0
  264. package/dist/components/toast/toast-component.d.ts +1 -0
  265. package/dist/components/toast/toast-component.js +23 -8
  266. package/dist/components/toast/toast-manager.d.ts +5 -0
  267. package/dist/components/toast/toast-manager.js +29 -7
  268. package/dist/components/visualizer/edge.d.ts +11 -1
  269. package/dist/components/visualizer/edge.js +27 -22
  270. package/dist/components/visualizer/equalizer.css.js +118 -76
  271. package/dist/components/visualizer/equalizer.d.ts +24 -45
  272. package/dist/components/visualizer/equalizer.js +262 -363
  273. package/dist/components/visualizer/explorer.d.ts +94 -14
  274. package/dist/components/visualizer/explorer.js +580 -393
  275. package/dist/components/visualizer/foreign-object.d.ts +12 -2
  276. package/dist/components/visualizer/foreign-object.js +21 -10
  277. package/dist/components/visualizer/key.js +12 -1
  278. package/dist/components/visualizer/nodes/callback.d.ts +2 -1
  279. package/dist/components/visualizer/nodes/callback.js +2 -2
  280. package/dist/components/visualizer/nodes/components.d.ts +2 -1
  281. package/dist/components/visualizer/nodes/components.js +2 -2
  282. package/dist/components/visualizer/nodes/contact.d.ts +2 -1
  283. package/dist/components/visualizer/nodes/contact.js +2 -2
  284. package/dist/components/visualizer/nodes/document.d.ts +2 -1
  285. package/dist/components/visualizer/nodes/document.js +2 -2
  286. package/dist/components/visualizer/nodes/graph-node.d.ts +14 -3
  287. package/dist/components/visualizer/nodes/graph-node.js +94 -43
  288. package/dist/components/visualizer/nodes/header.d.ts +2 -1
  289. package/dist/components/visualizer/nodes/header.js +2 -2
  290. package/dist/components/visualizer/nodes/info.d.ts +2 -1
  291. package/dist/components/visualizer/nodes/info.js +2 -2
  292. package/dist/components/visualizer/nodes/license.d.ts +2 -1
  293. package/dist/components/visualizer/nodes/license.js +2 -2
  294. package/dist/components/visualizer/nodes/link.d.ts +2 -1
  295. package/dist/components/visualizer/nodes/link.js +2 -2
  296. package/dist/components/visualizer/nodes/media-type.d.ts +2 -1
  297. package/dist/components/visualizer/nodes/media-type.js +2 -2
  298. package/dist/components/visualizer/nodes/operation.d.ts +2 -1
  299. package/dist/components/visualizer/nodes/operation.js +3 -4
  300. package/dist/components/visualizer/nodes/parameter.d.ts +3 -1
  301. package/dist/components/visualizer/nodes/parameter.js +3 -4
  302. package/dist/components/visualizer/nodes/path-item.d.ts +2 -1
  303. package/dist/components/visualizer/nodes/path-item.js +2 -2
  304. package/dist/components/visualizer/nodes/request-body.d.ts +2 -1
  305. package/dist/components/visualizer/nodes/request-body.js +2 -2
  306. package/dist/components/visualizer/nodes/response.d.ts +2 -1
  307. package/dist/components/visualizer/nodes/response.js +2 -2
  308. package/dist/components/visualizer/nodes/schema.d.ts +2 -1
  309. package/dist/components/visualizer/nodes/schema.js +64 -9
  310. package/dist/components/visualizer/nodes/security-scheme.d.ts +2 -1
  311. package/dist/components/visualizer/nodes/security-scheme.js +2 -2
  312. package/dist/components/visualizer/nodes/server.d.ts +2 -1
  313. package/dist/components/visualizer/nodes/server.js +3 -4
  314. package/dist/components/visualizer/nodes/tag.d.ts +2 -1
  315. package/dist/components/visualizer/nodes/tag.js +4 -5
  316. package/dist/components/visualizer/nodes/xml.d.ts +2 -1
  317. package/dist/components/visualizer/nodes/xml.js +2 -2
  318. package/dist/components/visualizer/orientation-controls.d.ts +6 -1
  319. package/dist/components/visualizer/orientation-controls.js +65 -7
  320. package/dist/components/visualizer/search.d.ts +2 -1
  321. package/dist/components/visualizer/search.js +22 -29
  322. package/dist/components/visualizer/shared.css.js +55 -18
  323. package/dist/components/visualizer/templates/svg-markers.d.ts +2 -0
  324. package/dist/components/visualizer/templates/svg-markers.js +73 -0
  325. package/dist/components/waiting-line/waiting-line.css.d.ts +2 -0
  326. package/dist/components/waiting-line/waiting-line.css.js +26 -0
  327. package/dist/components/waiting-line/waiting-line.d.ts +30 -0
  328. package/dist/components/waiting-line/waiting-line.js +424 -0
  329. package/dist/components/workspaces/workspace-view.css.js +89 -8
  330. package/dist/components/workspaces/workspace-view.d.ts +8 -1
  331. package/dist/components/workspaces/workspace-view.js +77 -25
  332. package/dist/controllers/auth-controller.d.ts +9 -0
  333. package/dist/controllers/auth-controller.js +12 -5
  334. package/dist/controllers/broker-controller.d.ts +30 -4
  335. package/dist/controllers/broker-controller.js +148 -25
  336. package/dist/controllers/bundle-controller.d.ts +21 -0
  337. package/dist/controllers/bundle-controller.js +122 -0
  338. package/dist/controllers/countdown-controller.d.ts +17 -0
  339. package/dist/controllers/countdown-controller.js +59 -0
  340. package/dist/controllers/diagnostic-controller.d.ts +18 -5
  341. package/dist/controllers/diagnostic-controller.js +206 -218
  342. package/dist/controllers/diagramatron-controller.d.ts +33 -0
  343. package/dist/controllers/diagramatron-controller.js +128 -0
  344. package/dist/controllers/docs-controller.d.ts +11 -5
  345. package/dist/controllers/docs-controller.js +97 -97
  346. package/dist/controllers/github-controller.d.ts +47 -0
  347. package/dist/controllers/github-controller.js +494 -0
  348. package/dist/controllers/global-task-controller.d.ts +46 -0
  349. package/dist/controllers/global-task-controller.js +352 -0
  350. package/dist/controllers/model-controller.d.ts +26 -4
  351. package/dist/controllers/model-controller.js +98 -62
  352. package/dist/controllers/node-clicker-controller.d.ts +121 -4
  353. package/dist/controllers/node-clicker-controller.js +526 -253
  354. package/dist/controllers/problem-controller.d.ts +11 -4
  355. package/dist/controllers/problem-controller.js +98 -39
  356. package/dist/controllers/rolodex-controller.d.ts +8 -3
  357. package/dist/controllers/rolodex-controller.js +117 -83
  358. package/dist/controllers/rule-controller.d.ts +12 -5
  359. package/dist/controllers/rule-controller.js +154 -161
  360. package/dist/controllers/spec-controller.d.ts +16 -4
  361. package/dist/controllers/spec-controller.js +91 -62
  362. package/dist/controllers/state-controller.d.ts +4 -3
  363. package/dist/controllers/state-controller.js +201 -154
  364. package/dist/controllers/tab-cache-controller.d.ts +29 -0
  365. package/dist/controllers/tab-cache-controller.js +68 -0
  366. package/dist/controllers/timeline-controller.d.ts +18 -0
  367. package/dist/controllers/timeline-controller.js +129 -0
  368. package/dist/controllers/wallet-controller.d.ts +3 -3
  369. package/dist/controllers/wallet-controller.js +22 -41
  370. package/dist/controllers/workspace-controller.d.ts +10 -4
  371. package/dist/controllers/workspace-controller.js +67 -22
  372. package/dist/cose-bilkent-S5V4N54A-2TG-C-n3.js +2608 -0
  373. package/dist/cowboy-components-BcyXo9oX.js +68425 -0
  374. package/dist/cowboy-components.css +1 -0
  375. package/dist/cowboy-components.umd.cjs +14050 -6577
  376. package/dist/css/alerts.css.js +2 -0
  377. package/dist/css/badges.css.js +2 -0
  378. package/dist/css/button.css.js +34 -1
  379. package/dist/css/cowboy-components.css +34 -0
  380. package/dist/css/dialog.css.js +11 -2
  381. package/dist/css/filter.css.js +17 -5
  382. package/dist/css/forms.css.js +14 -0
  383. package/dist/css/pb33f-theme.css +87 -16
  384. package/dist/css/syntax.css.js +5 -0
  385. package/dist/css/tabs.css.js +19 -2
  386. package/dist/css/tooltip.css.js +4 -0
  387. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  388. package/dist/dagre-6UL2VRFP-BIlmTbhO.js +444 -0
  389. package/dist/defaultLocale-D7EN2tov.js +171 -0
  390. package/dist/diagram-PSM6KHXK-CeWby24E.js +531 -0
  391. package/dist/diagram-QEK2KX5R-DGonyVCK.js +217 -0
  392. package/dist/diagram-S2PKOQOG-mGn-y1uX.js +142 -0
  393. package/dist/erDiagram-Q2GNP2WA-BlBBw4Mz.js +841 -0
  394. package/dist/events/doctor.d.ts +63 -9
  395. package/dist/events/doctor.js +29 -1
  396. package/dist/events/drawer-events.d.ts +7 -0
  397. package/dist/events/drawer-events.js +3 -0
  398. package/dist/events/theme.d.ts +4 -0
  399. package/dist/events/theme.js +1 -0
  400. package/dist/factories/explorer-component-factory.d.ts +49 -0
  401. package/dist/factories/explorer-component-factory.js +205 -0
  402. package/dist/factories/state-controller-deps.factory.d.ts +88 -0
  403. package/dist/factories/state-controller-deps.factory.js +116 -0
  404. package/dist/flowDiagram-NV44I4VS-BlLzzy1C.js +1620 -0
  405. package/dist/ganttDiagram-LVOFAZNH-BoQtPC8k.js +2505 -0
  406. package/dist/gitGraph-F6HP7TQM-CShNSlrW.js +5 -0
  407. package/dist/gitGraphDiagram-NY62KEGX-BdpWBgHy.js +699 -0
  408. package/dist/graph-D9HS4Ahd.js +247 -0
  409. package/dist/helpers/event-wiring.d.ts +72 -0
  410. package/dist/helpers/event-wiring.js +58 -0
  411. package/dist/helpers/file-size-formatter.d.ts +3 -0
  412. package/dist/helpers/file-size-formatter.js +15 -0
  413. package/dist/helpers/filename-colorizer.d.ts +5 -0
  414. package/dist/helpers/filename-colorizer.js +30 -0
  415. package/dist/helpers/navigation-helper.d.ts +54 -0
  416. package/dist/helpers/navigation-helper.js +159 -0
  417. package/dist/helpers/typed-events.d.ts +1 -0
  418. package/dist/helpers/typed-events.js +3 -0
  419. package/dist/info-NVLQJR56-Bpi6I8up.js +5 -0
  420. package/dist/infoDiagram-F6ZHWCRC-DmhhbuMJ.js +24 -0
  421. package/dist/init-DjUOC4st.js +16 -0
  422. package/dist/interfaces/bundle-interfaces.d.ts +7 -0
  423. package/dist/interfaces/bundle-interfaces.js +1 -0
  424. package/dist/interfaces/doctor-interfaces.d.ts +506 -0
  425. package/dist/interfaces/doctor-interfaces.js +1 -0
  426. package/dist/journeyDiagram-XKPGCS4Q-CpkhK8vl.js +834 -0
  427. package/dist/kanban-definition-3W4ZIXB7-BFbucfYE.js +719 -0
  428. package/dist/katex-SsTUIUTC.js +11688 -0
  429. package/dist/layout-B8H1_UrM.js +1324 -0
  430. package/dist/linear-Bo0rJUSQ.js +259 -0
  431. package/dist/managers/drag-handler.d.ts +28 -0
  432. package/dist/managers/drag-handler.js +64 -0
  433. package/dist/managers/event-registration-manager.d.ts +17 -0
  434. package/dist/managers/event-registration-manager.js +34 -0
  435. package/dist/managers/expansion-manager.d.ts +58 -0
  436. package/dist/managers/expansion-manager.js +189 -0
  437. package/dist/managers/layout-filter-manager.d.ts +31 -0
  438. package/dist/managers/layout-filter-manager.js +109 -0
  439. package/dist/managers/panel-divider-manager.d.ts +33 -0
  440. package/dist/managers/panel-divider-manager.js +71 -0
  441. package/dist/managers/view-state-manager.d.ts +48 -0
  442. package/dist/managers/view-state-manager.js +101 -0
  443. package/dist/managers/viewport-manager.d.ts +53 -0
  444. package/dist/managers/viewport-manager.js +198 -0
  445. package/dist/mermaid-parser.core-BPror82d.js +12966 -0
  446. package/dist/mindmap-definition-VGOIOE7T-VAn-EShH.js +784 -0
  447. package/dist/mocks/task-mock-generator.d.ts +13 -0
  448. package/dist/mocks/task-mock-generator.js +200 -0
  449. package/dist/model/api-response.d.ts +2 -7
  450. package/dist/model/api-response.js +0 -2
  451. package/dist/model/bundle.d.ts +35 -0
  452. package/dist/model/bundle.js +1 -0
  453. package/dist/model/channels.d.ts +8 -1
  454. package/dist/model/channels.js +7 -0
  455. package/dist/model/drawer-content.d.ts +80 -0
  456. package/dist/model/drawer-content.js +14 -0
  457. package/dist/model/formable.js +22 -11
  458. package/dist/model/github.d.ts +125 -0
  459. package/dist/model/github.js +1 -0
  460. package/dist/model/graph.d.ts +15 -15
  461. package/dist/model/graph.js +24 -4
  462. package/dist/model/media-type.js +2 -2
  463. package/dist/model/node_type.d.ts +4 -0
  464. package/dist/model/node_type.js +4 -0
  465. package/dist/model/panel-state.d.ts +1 -0
  466. package/dist/model/rolodex.d.ts +3 -0
  467. package/dist/model/task.d.ts +50 -0
  468. package/dist/model/task.js +22 -0
  469. package/dist/model/timeline.d.ts +107 -1
  470. package/dist/model/tree-icon-config.d.ts +11 -0
  471. package/dist/model/tree-icon-config.js +46 -0
  472. package/dist/model/workspace.d.ts +2 -0
  473. package/dist/monacoeditorwork/css.worker.bundle.js +9 -7
  474. package/dist/monacoeditorwork/editor.worker.bundle.js +2 -0
  475. package/dist/monacoeditorwork/html.worker.bundle.js +9 -7
  476. package/dist/monacoeditorwork/json.worker.bundle.js +9 -7
  477. package/dist/monacoeditorwork/yaml.worker..bundle.js +72 -48
  478. package/dist/ordinal-DfAQgscy.js +61 -0
  479. package/dist/packet-BFZMPI3H-CXPCK9Q2.js +5 -0
  480. package/dist/pie-7BOR55EZ-CMcuUZ_S.js +5 -0
  481. package/dist/pieDiagram-ADFJNKIX-C0kdlQqn.js +161 -0
  482. package/dist/quadrantDiagram-AYHSOK5B-CRVq6wY3.js +1022 -0
  483. package/dist/radar-NHE76QYJ-CX_Gyp4h.js +5 -0
  484. package/dist/requirementDiagram-UZGBJVZJ-B8ZGgMKn.js +850 -0
  485. package/dist/sankeyDiagram-TZEHDZUN-CWAUJJue.js +810 -0
  486. package/dist/sequenceDiagram-WL72ISMW-nz81a4Cq.js +2511 -0
  487. package/dist/services/diagramatron-service.d.ts +20 -0
  488. package/dist/services/diagramatron-service.js +48 -0
  489. package/dist/services/doctor-events.d.ts +58 -0
  490. package/dist/services/doctor-events.js +33 -0
  491. package/dist/services/drawer-content-registry.d.ts +9 -0
  492. package/dist/services/drawer-content-registry.js +37 -0
  493. package/dist/services/github-service.d.ts +9 -0
  494. package/dist/services/github-service.js +166 -0
  495. package/dist/services/global-task-service.d.ts +6 -0
  496. package/dist/services/global-task-service.js +27 -0
  497. package/dist/services/header-service.d.ts +5 -3
  498. package/dist/services/header-service.js +13 -0
  499. package/dist/services/linting-service.d.ts +2 -0
  500. package/dist/services/linting-service.js +19 -2
  501. package/dist/services/mermaid-config-service.d.ts +53 -0
  502. package/dist/services/mermaid-config-service.js +519 -0
  503. package/dist/services/model-service.d.ts +12 -7
  504. package/dist/services/model-service.js +64 -11
  505. package/dist/services/rodeo-service.js +12 -12
  506. package/dist/services/timeline-service.d.ts +12 -2
  507. package/dist/services/timeline-service.js +329 -0
  508. package/dist/services/wallet-service.d.ts +1 -1
  509. package/dist/services/wallet-service.js +4 -1
  510. package/dist/services/workspace-service.js +16 -2
  511. package/dist/stateDiagram-FKZM4ZOC-3PFzJlcG.js +263 -0
  512. package/dist/stateDiagram-v2-4FDKWEC3-Bp46vM6_.js +16 -0
  513. package/dist/timeline-definition-IT6M3QCI-utm7jTLb.js +795 -0
  514. package/dist/treemap-KMMF4GRG-BvEKHn43.js +5 -0
  515. package/dist/utils/language-utils.d.ts +1 -0
  516. package/dist/utils/language-utils.js +23 -0
  517. package/dist/utils/lru-cache.d.ts +11 -0
  518. package/dist/utils/lru-cache.js +38 -0
  519. package/dist/utils/node-helpers.d.ts +6 -0
  520. package/dist/utils/node-helpers.js +62 -0
  521. package/dist/utils/path-utils.d.ts +5 -0
  522. package/dist/utils/path-utils.js +22 -0
  523. package/dist/workers/elk-layout.worker.d.ts +2 -0
  524. package/dist/workers/elk-layout.worker.js +31 -0
  525. package/dist/workers/equalizer.worker.d.ts +6 -1
  526. package/dist/workers/equalizer.worker.js +144 -195
  527. package/dist/workers/graph-dependent.worker.js +6 -6
  528. package/dist/workers/rule-documentation.worker.js +12 -48
  529. package/dist/workers/search-graph.worker.js +8 -23
  530. package/dist/xychartDiagram-PRI3JC2R-twqDKWMX.js +1340 -0
  531. package/package.json +17 -10
  532. package/dist/assets/equalizer.worker-DyLD5JTU.js +0 -1
  533. package/dist/assets/graph-dependent.worker-CpVhp0-T.js +0 -1
  534. package/dist/assets/rule-documentation.worker-B7xOWY5M.js +0 -1
  535. package/dist/assets/search-graph.worker-B9zqINrO.js +0 -1
  536. package/dist/assets/search-problems.worker-BAF8L2rX.js +0 -1
  537. package/dist/components/problem-list/details-drawer.d.ts +0 -34
  538. package/dist/components/problem-list/details-drawer.js +0 -200
  539. package/dist/style.css +0 -1
  540. /package/dist/components/{problem-list/details-drawer.css.d.ts → bundle-toolbar/bundle-toolbar.css.d.ts} +0 -0
@@ -0,0 +1,1324 @@
1
+ import { G as g } from "./graph-D9HS4Ahd.js";
2
+ import { b as Te, p as ce, q as le, g as X, 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-C5Y4WFmx.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 z, l as T, i as Be } from "./_basePickBy-DtTwxTrV.js";
4
+ import { b8 as Ge, b9 as Ye, ba as De, aT as qe, bb as We, aX as pe, aW as we, bc as $e, aS as q, aA as Xe, aZ as ze, aC as Ue, bd as W } from "./cowboy-components-BcyXo9oX.js";
5
+ function He(e) {
6
+ return Ge(Ye(e, void 0, O), e + "");
7
+ }
8
+ var Ze = 1, Je = 4;
9
+ function Ke(e) {
10
+ return Te(e, Ze | Je);
11
+ }
12
+ function Qe(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 = X(n), le(e, function(t, a, i) {
24
+ We(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, X(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, $e(X));
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 = Xe(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 || [], ze);
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, $(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, $(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
+ $(i, o, r.node(u));
194
+ }), { graph: r, buckets: i, zeroIdx: o };
195
+ }
196
+ function $(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 Z(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 = K;
483
+ k.initCutValues = J;
484
+ k.calcCutValue = Ee;
485
+ k.leaveEdge = Le;
486
+ k.enterEdge = Ne;
487
+ k.exchangeEdges = Pe;
488
+ function k(e) {
489
+ e = On(e), Z(e);
490
+ var n = ye(e);
491
+ K(n), J(n, e);
492
+ for (var r, t; r = Le(n); )
493
+ t = Ne(n, e, r), Pe(n, e, r, t);
494
+ }
495
+ function J(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, $n(e, r, c)) {
512
+ var v = e.edge(r, c).cutvalue;
513
+ u += l ? -v : v;
514
+ }
515
+ }
516
+ }), u;
517
+ }
518
+ function K(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 z(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, {}), K(e), J(e, n), Wn(e, n);
547
+ }
548
+ function Wn(e, n) {
549
+ var r = z(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 $n(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 Xn(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
+ zn(e);
573
+ break;
574
+ default:
575
+ ue(e);
576
+ }
577
+ }
578
+ var zn = Z;
579
+ function Un(e) {
580
+ Z(e), ye(e);
581
+ }
582
+ function ue(e) {
583
+ k(e);
584
+ }
585
+ function Hn(e) {
586
+ var n = L(e, "root", {}, "_root"), r = Zn(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 = Jn(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 Zn(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 Jn(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 Kn(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 Qn(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 = Ke(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
+ }), Qn(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), Q = N.order;
938
+ (Q < o || v < Q) && !(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 z(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 Qe(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 = W(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", () => Wr(e)), n(" removeSelfEdges", () => Qr(e)), n(" acyclic", () => kn(e)), n(" nestingGraph.run", () => Hn(e)), n(" rank", () => Xn(be(e))), n(" injectEdgeLabelProxies", () => $r(e)), n(" removeEmptyRanks", () => Nn(e)), n(" nestingGraph.cleanup", () => Kn(e)), n(" normalizeRanks", () => Ln(e)), n(" assignRankMinMax", () => Xr(e)), n(" removeEdgeLabelProxies", () => zr(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", () => Kr(e)), n(" normalize.undo", () => jn(e)), n(" fixupEdgeLabelCoords", () => Zr(e)), n(" undoCoordinateSystem", () => Tn(e)), n(" translateGraph", () => Ur(e)), n(" assignNodeIntersects", () => Hr(e)), n(" reversePoints", () => Jr(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
+ W({}, 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
+ W({}, Yr, Y(a, Gr), I(a, Dr))
1177
+ );
1178
+ }), n;
1179
+ }
1180
+ function Wr(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 $r(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 Xr(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 zr(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 Zr(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 Jr(e) {
1251
+ f(e.edges(), function(n) {
1252
+ var r = e.edge(n);
1253
+ r.reversed && r.points.reverse();
1254
+ });
1255
+ }
1256
+ function Kr(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 Qr(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
+ };