@sme.up/ketchup2 2.0.0 → 2.2.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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1 @@
1
+ function e(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function t(e,t){return e[0]===t[0]&&e[1]===t[1]}function n(n,r,i,a=1){let o=i,s=Math.max(r,.1),c=n[0]&&n[0][0]&&typeof n[0][0]==`number`?[n]:n,l=[0,0];if(o)for(let t of c)e(t,l,o);let u=function(e,n,r){let i=[];for(let n of e){let e=[...n];t(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&i.push(e)}let a=[];n=Math.max(n,.1);let o=[];for(let e of i)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);o.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(o.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!o.length)return a;let s=[],c=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let e=-1;for(let t=0;t<o.length&&!(o[t].ymin>c);t++)e=t;o.splice(0,e+1).forEach((e=>{s.push({s:c,edge:e})}))}if(s=s.filter((e=>!(e.edge.ymax<=c))),s.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(r!==1||l%n==0)&&s.length>1)for(let e=0;e<s.length;e+=2){let t=e+1;if(t>=s.length)break;let n=s[e].edge,r=s[t].edge;a.push([[Math.round(n.x),c],[Math.round(r.x),c]])}c+=r,s.forEach((e=>{e.edge.x=e.edge.x+r*e.edge.islope})),l++}return a}(c,s,a);if(o){for(let t of c)e(t,l,-o);(function(t,n,r){let i=[];t.forEach((e=>i.push(...e))),e(i,n,r)})(u,l,-o)}return u}function r(e,t){let r=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(a=i),n(e,i,r,a||1)}var i=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=r(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function a(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var o=class extends i{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let i=r(e,Object.assign({},t,{hachureGap:n})),o=Math.PI/180*t.hachureAngle,s=[],c=.5*n*Math.cos(o),l=.5*n*Math.sin(o);for(let[e,t]of i)a([e,t])&&s.push([[e[0]-c,e[1]+l],[...t]],[[e[0]+c,e[1]-l],[...t]]);return{type:`fillSketch`,ops:this.renderLines(s,t)}}},s=class extends i{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},c=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=r(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let o=r/4;for(let s of e){let e=a(s),c=e/r,l=Math.ceil(c)-1,u=e-l*r,d=(s[0][0]+s[1][0])/2-r/4,f=Math.min(s[0][1],s[1][1]);for(let e=0;e<l;e++){let a=f+u+e*r,s=d-o+2*Math.random()*o,c=a-o+2*Math.random()*o,l=this.helper.ellipse(s,c,i,i,t);n.push(...l.ops)}}return{type:`fillSketch`,ops:n}}},l=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=r(e,t);return{type:`fillSketch`,ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{let o=a(e),s=Math.floor(o/(n+r)),c=(o+r-s*(n+r))/2,l=e[0],u=e[1];l[0]>u[0]&&(l=e[1],u=e[0]);let d=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let e=0;e<s;e++){let a=e*(n+r),o=a+n,s=[l[0]+a*Math.cos(d)+c*Math.cos(d),l[1]+a*Math.sin(d)+c*Math.sin(d)],u=[l[0]+o*Math.cos(d)+c*Math.cos(d),l[1]+o*Math.sin(d)+c*Math.sin(d)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],t))}})),i}},u=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,i=t.zigzagOffset<0?n:t.zigzagOffset,a=r(e,t=Object.assign({},t,{hachureGap:n+i}));return{type:`fillSketch`,ops:this.zigzagLines(a,i,t)}}zigzagLines(e,t,n){let r=[];return e.forEach((e=>{let i=a(e),o=Math.round(i/(2*t)),s=e[0],c=e[1];s[0]>c[0]&&(s=e[1],c=e[0]);let l=Math.atan((c[1]-s[1])/(c[0]-s[0]));for(let e=0;e<o;e++){let i=2*e*t,a=2*(e+1)*t,o=Math.sqrt(2*t**2),c=[s[0]+i*Math.cos(l),s[1]+i*Math.sin(l)],u=[s[0]+a*Math.cos(l),s[1]+a*Math.sin(l)],d=[c[0]+o*Math.cos(l+Math.PI/4),c[1]+o*Math.sin(l+Math.PI/4)];r.push(...this.helper.doubleLineOps(c[0],c[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}},d={},f=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}},p=0,m=1,h=2,g={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function _(e,t){return e.type===t}function v(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:p,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:m,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:h,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!_(a,h);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return v(`M0,0`+e);i++,o=g[a.text],r=a.text}else _(a,m)?o=g[r]:(i++,o=g[a.text],r=a.text);if(!(i+o<n.length))throw Error(`Path data ended short`);for(let e=i;e<i+o;e++){let t=n[e];if(!_(t,m))throw Error(`Param not a number: `+r+`,`+t.text);s[s.length]=+t.text}if(typeof g[r]!=`number`)throw Error(`Bad segment: `+r);{let e={key:r,data:s};t.push(e),i+=o,a=n[i],r===`M`&&(r=`L`),r===`m`&&(r=`l`)}}return t}function y(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:o,data:s}of e)switch(o){case`M`:a.push({key:`M`,data:[...s]}),[t,n]=s,[r,i]=s;break;case`m`:t+=s[0],n+=s[1],a.push({key:`M`,data:[t,n]}),r=t,i=n;break;case`L`:a.push({key:`L`,data:[...s]}),[t,n]=s;break;case`l`:t+=s[0],n+=s[1],a.push({key:`L`,data:[t,n]});break;case`C`:a.push({key:`C`,data:[...s]}),t=s[4],n=s[5];break;case`c`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function b(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(S(r,i,c,l,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}function x(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function S(e,t,n,r,i,a,o,s,c,l){let u=(d=o,Math.PI*d/180);var d;let f=[],p=0,m=0,h=0,g=0;if(l)[p,m,h,g]=l;else{[e,t]=x(e,t,-u),[n,r]=x(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i*=d,a*=d);let f=i*i,_=a*a,v=f*_-f*l*l-_*o*o,y=f*l*l+_*o*o,b=(s===c?-1:1)*Math.sqrt(Math.abs(v/y));h=b*i*l/a+(e+n)/2,g=b*-a*o/i+(t+r)/2,p=Math.asin(parseFloat(((t-g)/a).toFixed(9))),m=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<h&&(p=Math.PI-p),n<h&&(m=Math.PI-m),p<0&&(p=2*Math.PI+p),m<0&&(m=2*Math.PI+m),c&&p>m&&(p-=2*Math.PI),!c&&m>p&&(m-=2*Math.PI)}let _=m-p;if(Math.abs(_)>120*Math.PI/180){let e=m,t=n,s=r;m=c&&m>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=S(n=h+i*Math.cos(m),r=g+a*Math.sin(m),t,s,i,a,o,0,c,[m,e,h,g])}_=m-p;let v=Math.cos(p),y=Math.sin(p),b=Math.cos(m),C=Math.sin(m),w=Math.tan(_/4),T=4/3*i*w,E=4/3*a*w,D=[e,t],O=[e+T*y,t-E*v],k=[n+T*C,r-E*b],A=[n,r];if(O[0]=2*D[0]-O[0],O[1]=2*D[1]-O[1],l)return[O,k,A].concat(f);{f=[O,k,A].concat(f);let e=[];for(let t=0;t<f.length;t+=3){let n=x(f[t][0],f[t][1],u),r=x(f[t+1][0],f[t+1][1],u),i=x(f[t+2][0],f[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}var C={randOffset:function(e,t){return L(e,t)},randOffsetWithRange:function(e,t,n){return I(e,t,n)},ellipse:function(e,t,n,r,i){return k(e,t,i,O(n,r,i)).opset},doubleLineOps:function(e,t,n,r,i){return R(e,t,n,r,i,!0)}};function w(e,t,n,r,i){return{type:`path`,ops:R(e,t,n,r,i)}}function T(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...R(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...R(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:`path`,ops:i}}return r===2?w(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:`path`,ops:[]}}function E(e,t,n,r,i){return function(e,t){return T(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}function D(e,t){if(e.length){let n=typeof e[0][0]==`number`?[e]:e,r=B(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:B(n[0],1.5*(1+.22*t.roughness),P(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=B(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:B(a,1.5*(1+.22*t.roughness),P(t));for(let t of e)t.op!==`move`&&r.push(t);for(let e of n)e.op!==`move`&&i.push(e)}}return{type:`path`,ops:r.concat(i)}}return{type:`path`,ops:[]}}function O(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt(((e/2)**2+(t/2)**2)/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i,o=Math.abs(e/2),s=Math.abs(t/2),c=1-n.curveFitting;return o+=L(o*c,n),s+=L(s*c,n),{increment:a,rx:o,ry:s}}function k(e,t,n,r){let[i,a]=H(r.increment,e,t,r.rx,r.ry,1,r.increment*I(.1,I(.4,1,n),n),n),o=V(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){let[i]=H(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=V(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:`path`,ops:o}}}function A(e,t,n,r,i,a,o,s,c){let l=e,u=t,d=Math.abs(n/2),f=Math.abs(r/2);d+=L(.01*d,c),f+=L(.01*f,c);let p=i,m=a;for(;p<0;)p+=2*Math.PI,m+=2*Math.PI;m-p>2*Math.PI&&(p=0,m=2*Math.PI);let h=2*Math.PI/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=U(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=U(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...R(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...R(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function j(e,t){let n=b(y(v(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...R(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...ee(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...R(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function M(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+L(e,t),r[0][1]+L(e,t)]});for(let a=1;a<i;a++)n.push({op:`lineTo`,data:[r[a][0]+L(e,t),r[a][1]+L(e,t)]})}}return{type:`fillPath`,ops:n}}function N(e,t){return function(e,t){let n=e.fillStyle||`hachure`;if(!d[n])switch(n){case`zigzag`:d[n]||(d[n]=new o(t));break;case`cross-hatch`:d[n]||(d[n]=new s(t));break;case`dots`:d[n]||(d[n]=new c(t));break;case`dashed`:d[n]||(d[n]=new l(t));break;case`zigzag-line`:d[n]||(d[n]=new u(t));break;default:n=`hachure`,d[n]||(d[n]=new i(t))}return d[n]}(t,C).fillPolygons(e,t)}function P(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function F(e){return e.randomizer||=new f(e.seed||0),e.randomizer.next()}function I(e,t,n,r=1){return n.roughness*r*(F(n)*(t-e)+e)}function L(e,t,n=1){return I(-e,e,t,n)}function R(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=z(e,t,n,r,i,!0,!1);if(o)return s;let c=z(e,t,n,r,i,!0,!0);return s.concat(c)}function z(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+.2*F(i),p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=L(p,i,l),m=L(m,i,l);let h=[],g=()=>L(d,i,l),_=()=>L(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:L(u,i,l)),t+(v?0:L(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function B(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]),r.push([e[0][0]+L(t,n),e[0][1]+L(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]),i===e.length-1&&r.push([e[i][0]+L(t,n),e[i][1]+L(t,n)]);return V(r,null,n)}function V(e,t,n){let r=e.length,i=[];if(r>3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:`bcurveTo`,data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&t.length===2){let e=n.maxRandomnessOffset;i.push({op:`lineTo`,data:[t[0]+L(e,n),t[1]+L(e,n)]})}}else r===3?(i.push({op:`move`,data:[e[1][0],e[1][1]]}),i.push({op:`bcurveTo`,data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...z(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function H(e,t,n,r,i,a,o,s){let c=[],l=[];if(s.roughness===0){e/=4,l.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];c.push(e),l.push(e)}l.push([t+r*Math.cos(0),n+i*Math.sin(0)]),l.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=L(.5,s)-Math.PI/2;l.push([L(a,s)+t+.9*r*Math.cos(u-e),L(a,s)+n+.9*i*Math.sin(u-e)]);let d=2*Math.PI+u-.01;for(let o=u;o<d;o+=e){let e=[L(a,s)+t+r*Math.cos(o),L(a,s)+n+i*Math.sin(o)];c.push(e),l.push(e)}l.push([L(a,s)+t+r*Math.cos(u+2*Math.PI+.5*o),L(a,s)+n+i*Math.sin(u+2*Math.PI+.5*o)]),l.push([L(a,s)+t+.98*r*Math.cos(u+o),L(a,s)+n+.98*i*Math.sin(u+o)]),l.push([L(a,s)+t+.9*r*Math.cos(u+.5*o),L(a,s)+n+.9*i*Math.sin(u+.5*o)])}return[l,c]}function U(e,t,n,r,i,a,o,s,c){let l=a+L(.1,c),u=[];u.push([L(s,c)+t+.9*r*Math.cos(l-e),L(s,c)+n+.9*i*Math.sin(l-e)]);for(let a=l;a<=o;a+=e)u.push([L(s,c)+t+r*Math.cos(a),L(s,c)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),V(u,null,c)}function ee(e,t,n,r,i,a,o,s){let c=[],l=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],d=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<d;p++)p===0?c.push({op:`move`,data:[o[0],o[1]]}):c.push({op:`move`,data:[o[0]+(f?0:L(l[0],s)),o[1]+(f?0:L(l[0],s))]}),u=f?[i,a]:[i+L(l[p],s),a+L(l[p],s)],c.push({op:`bcurveTo`,data:[e+L(l[p],s),t+L(l[p],s),n+L(l[p],s),r+L(l[p],s),u[0],u[1]]});return c}function W(e){return[...e]}function G(e,t=0){let n=e.length;if(n<3)throw Error(`A curve must have at least three points.`);let r=[];if(n===3)r.push(W(e[0]),W(e[1]),W(e[2]),W(e[2]));else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push(W(n[0]));for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function K(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function te(e,t,n){let r=K(t,n);if(r===0)return K(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),K(e,q(t,n,i))}function q(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function J(e,t,n,r){let i=r||[];if(function(e,t){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3],o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let c=3*i[0]-2*a[0]-n[0];c*=c;let l=3*i[1]-2*a[1]-n[1];return l*=l,o<c&&(o=c),s<l&&(s=l),o+s}(e,t)<n){let n=e[t+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(K(a,o)))>1&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=q(a,o,r),u=q(o,s,r),d=q(s,c,r),f=q(l,u,r),p=q(u,d,r),m=q(f,p,r);J([a,l,f,m],0,n,i),J([m,p,d,c],0,n,i)}var a,o;return i}function ne(e,t){return Y(e,0,e.length,t)}function Y(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=te(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(Y(e,t,l+1,r,a),Y(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function X(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)J(e,3*n,t,r);return n&&n>0?Y(r,0,r.length,n):r}var Z=`none`,Q=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[w(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=E(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(M([i],a)):o.push(N([i],a))}return a.stroke!==Z&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=O(n,r,a),c=k(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=k(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(N([c.estimatedPoints],a));return a.stroke!==Z&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[T(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=A(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=A(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(function(e,t,n,r,i,a,o){let s=e,c=t,l=Math.abs(n/2),u=Math.abs(r/2);l+=L(.01*l,o),u+=L(.01*u,o);let d=i,f=a;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),N([m],o)}(e,t,n,r,i,a,c));return c.stroke!==Z&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=D(e,n);if(n.fill&&n.fill!==Z)if(n.fillStyle===`solid`){let t=D(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...X(G([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...X(G(r),10,(1+n.roughness)/2))}t.length&&r.push(N([t],n))}return n.stroke!==Z&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=T(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(M([e],n)):r.push(N([e],n))),n.stroke!==Z&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==Z,a=n.stroke!==Z,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=b(y(v(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...X(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]])}if(l(),!n)return i;let u=[];for(let e of i){let t=ne(e,n);t.length&&u.push(t)}return u}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),c=j(e,n);if(i)if(n.fillStyle===`solid`)if(s.length===1){let t=j(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(M(s,n));else r.push(N(s,n));return a&&(o?s.forEach((e=>{r.push(T(e,!1,n))})):r.push(c)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Z};break;case`fillPath`:t={d:this.opsToPath(e),stroke:Z,strokeWidth:0,fill:n.fill||Z};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||Z,strokeWidth:n,fill:Z}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},re=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c),c}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}},$=`http://www.w3.org/2000/svg`,ie=class{constructor(e,t){this.svg=e,this.gen=new Q(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS($,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS($,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS($,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},ae={canvas:(e,t)=>new re(e,t),svg:(e,t)=>new ie(e,t),generator:e=>new Q(e),newSeed:()=>Q.newSeed()};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return ae}});
@@ -0,0 +1,10 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`);function r(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var i=r(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`);function a(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function o(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function s(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function c(e){return e.target.depth}function l(e){return e.depth}function u(e,t){return t-1-e.height}function d(e,t){return e.sourceLinks.length?e.depth:t-1}function f(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?o(e.sourceLinks,c)-1:0}function p(e){return function(){return e}}function m(e,t){return g(e.source,t.source)||e.index-t.index}function h(e,t){return g(e.target,t.target)||e.index-t.index}function g(e,t){return e.y0-t.y0}function _(e){return e.value}function v(e){return e.index}function y(e){return e.nodes}function b(e){return e.links}function x(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function S({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function C(){let e=0,t=0,n=1,r=1,i=24,c=8,l,u=v,f=d,C,w,T=y,E=b,D=6;function O(){let e={nodes:T.apply(null,arguments),links:E.apply(null,arguments)};return k(e),A(e),j(e),M(e),F(e),S(e),e}O.update=function(e){return S(e),e},O.nodeId=function(e){return arguments.length?(u=typeof e==`function`?e:p(e),O):u},O.nodeAlign=function(e){return arguments.length?(f=typeof e==`function`?e:p(e),O):f},O.nodeSort=function(e){return arguments.length?(C=e,O):C},O.nodeWidth=function(e){return arguments.length?(i=+e,O):i},O.nodePadding=function(e){return arguments.length?(c=l=+e,O):c},O.nodes=function(e){return arguments.length?(T=typeof e==`function`?e:p(e),O):T},O.links=function(e){return arguments.length?(E=typeof e==`function`?e:p(e),O):E},O.linkSort=function(e){return arguments.length?(w=e,O):w},O.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],O):[n-e,r-t]},O.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],O):[[e,t],[n,r]]},O.iterations=function(e){return arguments.length?(D=+e,O):D};function k({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[u(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=x(n,t)),typeof i!=`object`&&(i=r.target=x(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(w!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(w),n.sort(w)}function A({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(s(t.sourceLinks,_),s(t.targetLinks,_)):t.fixedValue}function j({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function M({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function N({nodes:t}){let r=a(t,e=>e.depth)+1,o=(n-e-i)/(r-1),s=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(f.call(null,n,r))));n.layer=t,n.x0=e+t*o,n.x1=n.x0+i,s[t]?s[t].push(n):s[t]=[n]}if(C)for(let e of s)e.sort(C);return s}function P(e){let n=o(e,e=>(r-t-(e.length-1)*l)/s(e,_));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+l;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+l)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}H(i)}}function F(e){let n=N(e);l=Math.min(c,(r-t)/(a(n,e=>e.length)-1)),P(n);for(let e=0;e<D;++e){let t=.99**e,r=Math.max(1-t,(e+1)/D);L(n,t,r),I(n,t,r)}}function I(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=U(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}C===void 0&&i.sort(g),R(i,n)}}function L(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=W(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,V(e)}C===void 0&&i.sort(g),R(i,n)}}function R(e,n){let i=e.length>>1,a=e[i];B(e,a.y0-l,i-1,n),z(e,a.y1+l,i+1,n),B(e,r,e.length-1,n),z(e,t,0,n)}function z(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+l}}function B(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-l}}function V({sourceLinks:e,targetLinks:t}){if(w===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(h);for(let{target:{targetLinks:t}}of e)t.sort(m)}}function H(e){if(w===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(h),n.sort(m)}function U(e,t){let n=e.y0-(e.sourceLinks.length-1)*l/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+l}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function W(e,t){let n=t.y0-(t.targetLinks.length-1)*l/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+l}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return O}var w=Math.PI,T=2*w,E=1e-6,D=T-E;function O(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function k(){return new O}O.prototype=k.prototype={constructor:O,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>E)if(!(Math.abs(u*s-c*l)>E)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((w-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>E&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>E||Math.abs(this._y1-l)>E)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%T+T),d>D?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>E&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=w)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function A(e){return function(){return e}}function j(e){return e[0]}function M(e){return e[1]}var N=Array.prototype.slice;function P(e){return e.source}function F(e){return e.target}function I(e){var t=P,n=F,r=j,i=M,a=null;function o(){var o,s=N.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=k(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:A(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:A(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function L(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function R(){return I(L)}function z(e){return[e.source.x1,e.y0]}function B(e){return[e.target.x0,e.y1]}function V(){return R().source(z).target(B)}var H=(function(){var e=t.h(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,9],r=[1,10],i=[1,5,10,12],a={trace:t.h(function(){},`trace`),yy:{},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},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`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:t.h(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},e(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(i,[2,8]),e(i,[2,9]),{19:[1,16]},e(i,[2,11]),{1:[2,1]},{1:[2,5]},e(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},e(r,[2,3]),{12:[1,20]},e(i,[2,10]),{15:21,16:7,17:8,18:n,20:r},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:t.h(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t.h(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t.h(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t.h(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};a.lexer=(function(){return{EOF:1,parseError:t.h(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t.h(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t.h(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t.h(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t.h(function(){return this._more=!0,this},`more`),reject:t.h(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t.h(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t.h(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t.h(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t.h(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:t.h(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t.h(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t.h(function(){return this.next()||this.lex()},`lex`),begin:t.h(function(e){this.conditionStack.push(e)},`begin`),popState:t.h(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t.h(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t.h(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t.h(function(e){this.begin(e)},`pushState`),stateStackSize:t.h(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t.h(function(e,t,n,r){switch(n){case 0:return this.pushState(`csv`),4;case 1:return this.pushState(`csv`),4;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState(`escaped_text`),18;case 6:return 20;case 7:return this.popState(`escaped_text`),18;case 8:return 19}},`anonymous`),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],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}}}})();function o(){this.yy={}}return t.h(o,`Parser`),o.prototype=a,a.Parser=o,new o})();H.parser=H;var U=H,W=[],G=[],K=new Map,q=t.h(()=>{W=[],G=[],K=new Map,e.a()},`clear`),J=class{constructor(e,t,n=0){this.source=e,this.target=t,this.value=n}static{t.h(this,`SankeyLink`)}},Y=t.h((e,t,n)=>{W.push(new J(e,t,n))},`addLink`),X=class{constructor(e){this.ID=e}static{t.h(this,`SankeyNode`)}},Z={nodesMap:K,getConfig:t.h(()=>e.b().sankey,`getConfig`),getNodes:t.h(()=>G,`getNodes`),getLinks:t.h(()=>W,`getLinks`),getGraph:t.h(()=>({nodes:G.map(e=>({id:e.ID})),links:W.map(e=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),`getGraph`),addLink:Y,findOrCreateNode:t.h(t=>{t=e.s.sanitizeText(t,e.b());let n=K.get(t);return n===void 0&&(n=new X(t),K.set(t,n),G.push(n)),n},`findOrCreateNode`),getAccTitle:e.v,setAccTitle:e.V,getAccDescription:e._,setAccDescription:e.B,getDiagramTitle:e.C,setDiagramTitle:e.W,clear:q},Q=class e{static{t.h(this,`Uid`)}static{this.count=0}static next(t){return new e(t+ ++e.count)}constructor(e){this.id=e,this.href=`#${e}`}toString(){return`url(`+this.href+`)`}},$={left:l,right:u,center:f,justify:d},ee={draw:t.h(function(r,a,o,s){let{securityLevel:c,sankey:l}=e.b(),u=e.u.sankey,d;c===`sandbox`&&(d=t.p(`#i`+a));let f=c===`sandbox`?t.p(d.nodes()[0].contentDocument.body):t.p(`body`),p=c===`sandbox`?f.select(`[id="${a}"]`):t.p(`[id="${a}"]`),m=l?.width??u.width,h=l?.height??u.width,g=l?.useMaxWidth??u.useMaxWidth,_=l?.nodeAlignment??u.nodeAlignment,v=l?.prefix??u.prefix,y=l?.suffix??u.suffix,b=l?.showValues??u.showValues,x=s.db.getGraph(),S=$[_];C().nodeId(e=>e.id).nodeWidth(10).nodePadding(10+(b?15:0)).nodeAlign(S).extent([[0,0],[m,h]])(x);let w=n.t(i);p.append(`g`).attr(`class`,`nodes`).selectAll(`.node`).data(x.nodes).join(`g`).attr(`class`,`node`).attr(`id`,e=>(e.uid=Q.next(`node-`)).id).attr(`transform`,function(e){return`translate(`+e.x0+`,`+e.y0+`)`}).attr(`x`,e=>e.x0).attr(`y`,e=>e.y0).append(`rect`).attr(`height`,e=>e.y1-e.y0).attr(`width`,e=>e.x1-e.x0).attr(`fill`,e=>w(e.id));let T=t.h(({id:e,value:t})=>b?`${e}
7
+ ${v}${Math.round(t*100)/100}${y}`:e,`getText`);p.append(`g`).attr(`class`,`node-labels`).attr(`font-size`,14).selectAll(`text`).data(x.nodes).join(`text`).attr(`x`,e=>e.x0<m/2?e.x1+6:e.x0-6).attr(`y`,e=>(e.y1+e.y0)/2).attr(`dy`,`${b?`0`:`0.35`}em`).attr(`text-anchor`,e=>e.x0<m/2?`start`:`end`).text(T);let E=p.append(`g`).attr(`class`,`links`).attr(`fill`,`none`).attr(`stroke-opacity`,.5).selectAll(`.link`).data(x.links).join(`g`).attr(`class`,`link`).style(`mix-blend-mode`,`multiply`),D=l?.linkColor??`gradient`;if(D===`gradient`){let e=E.append(`linearGradient`).attr(`id`,e=>(e.uid=Q.next(`linearGradient-`)).id).attr(`gradientUnits`,`userSpaceOnUse`).attr(`x1`,e=>e.source.x1).attr(`x2`,e=>e.target.x0);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,e=>w(e.source.id)),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,e=>w(e.target.id))}let O;switch(D){case`gradient`:O=t.h(e=>e.uid,`coloring`);break;case`source`:O=t.h(e=>w(e.source.id),`coloring`);break;case`target`:O=t.h(e=>w(e.target.id),`coloring`);break;default:O=D}E.append(`path`).attr(`d`,V()).attr(`stroke`,O).attr(`stroke-width`,e=>Math.max(1,e.width)),e.K(void 0,p,0,g)},`draw`)},te=t.h(e=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,``).replaceAll(/([\n\r])+/g,`
8
+ `).trim(),`prepareTextForParsing`),ne=t.h(e=>`.label {
9
+ font-family: ${e.fontFamily};
10
+ }`,`getStyles`),re=U.parse.bind(U);U.parse=e=>re(te(e));var ie={styles:ne,parser:U,db:Z,renderer:ee};exports.diagram=ie;