@sme.up/ketchup2 2.9.0 → 2.11.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 (384) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button/button-types.d.ts +2 -2
  8. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  9. package/dist/basic-components/cell/cell-types.d.ts +15 -6
  10. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  11. package/dist/basic-components/cell/cell-utils.d.ts +10 -4
  12. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  14. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
  19. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  20. package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
  21. package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
  22. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  23. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  24. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  27. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  28. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  29. package/dist/basic-components/text/text-types.d.ts +3 -1
  30. package/dist/basic-components/text/text-types.d.ts.map +1 -1
  31. package/dist/basic-components/text/text.d.ts.map +1 -1
  32. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  33. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  34. package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
  35. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  36. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  37. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  38. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  39. package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  40. package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  41. package/dist/channel-CcHUzwZl.js +5 -0
  42. package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  43. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  44. package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  45. package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  46. package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  47. package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
  48. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  49. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  50. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  51. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  52. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  53. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  54. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  55. package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  56. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  57. package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  58. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  59. package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  60. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  61. package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  62. package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  63. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  64. package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  65. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  66. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  67. package/dist/components/box-list/box-list.d.ts.map +1 -1
  68. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  69. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  70. package/dist/components/calendar/calendar-types.d.ts +49 -4
  71. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  72. package/dist/components/calendar/calendar-utils.d.ts +160 -16
  73. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  74. package/dist/components/calendar/calendar.d.ts.map +1 -1
  75. package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
  76. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
  77. package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
  78. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  79. package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
  80. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
  81. package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
  82. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  83. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  84. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  85. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  86. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  87. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  88. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  89. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  90. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  91. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  92. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  93. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  94. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  95. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  96. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  97. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  98. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  99. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-types.d.ts +206 -38
  101. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  102. package/dist/components/data-table/data-table.d.ts.map +1 -1
  103. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  104. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  105. package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
  106. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
  107. package/dist/components/data-table/footer/footer-types.d.ts +23 -6
  108. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  109. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  110. package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
  111. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  112. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  113. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
  114. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  115. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  116. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  117. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  118. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  119. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  120. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  121. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  122. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  123. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  124. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  125. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  126. package/dist/components/data-table/header/header-types.d.ts +37 -21
  127. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  128. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  129. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  130. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  131. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  132. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  133. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  134. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  135. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  136. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  137. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  138. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  139. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  140. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  141. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  142. package/dist/components/data-table/state/datatable-state.d.ts +15 -8
  143. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  144. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  145. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  146. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  147. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  148. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  149. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  150. package/dist/components/drawer/drawer.d.ts.map +1 -1
  151. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
  152. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
  153. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
  154. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
  155. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
  156. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
  157. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
  158. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
  159. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
  160. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
  161. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
  162. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
  163. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
  164. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
  165. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  166. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  167. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  168. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  169. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
  170. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
  171. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
  172. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
  173. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  174. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  175. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  176. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  177. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  178. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  179. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  180. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  181. package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
  182. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
  183. package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
  184. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
  185. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
  186. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
  187. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
  188. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
  189. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
  190. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
  191. package/dist/components/input-panel/assets/data.d.ts +1 -0
  192. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  193. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  194. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  195. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  196. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  197. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  198. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  199. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  200. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  201. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  202. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  203. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  204. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  205. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  206. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  207. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  208. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  209. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  210. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  211. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  212. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  213. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  214. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  215. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  216. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  217. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  218. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  219. package/dist/components/pdf/pdf-types.d.ts +17 -2
  220. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  221. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  222. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  223. package/dist/components/pdf/pdf.d.ts.map +1 -1
  224. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  225. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  226. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
  227. package/dist/context/interaction-context.d.ts +16 -0
  228. package/dist/context/interaction-context.d.ts.map +1 -0
  229. package/dist/context/test-utils.d.ts.map +1 -1
  230. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  231. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  232. package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  233. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  234. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  235. package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  236. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  237. package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  238. package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  239. package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  240. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  241. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  242. package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  243. package/dist/echarts-C7ehbnCk.js +15485 -0
  244. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  245. package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  246. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  247. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  248. package/dist/functional-components/badge/badge-assets.d.ts +1 -0
  249. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  250. package/dist/functional-components/badge/badge-utils.d.ts +5 -0
  251. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  252. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  253. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  254. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  255. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  256. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  257. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  258. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  259. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  260. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  261. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
  262. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  263. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  264. package/dist/functional-components/row/row-types.d.ts +50 -1
  265. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  266. package/dist/functional-components/row/row.d.ts.map +1 -1
  267. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  268. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  269. package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  270. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  271. package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  272. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
  273. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
  274. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  275. package/dist/hooks/useFloating.d.ts.map +1 -1
  276. package/dist/hooks/useVirtualListScroll.d.ts +14 -2
  277. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  278. package/dist/index.d.ts +5 -3
  279. package/dist/index.d.ts.map +1 -1
  280. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  281. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  282. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  283. package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  284. package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  285. package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  286. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  287. package/dist/ketchup2.css +1 -1
  288. package/dist/ketchup2.es.js +25778 -68770
  289. package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
  290. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  291. package/dist/locale/en/translation.json.d.ts +40 -4
  292. package/dist/locale/it/translation.json.d.ts +40 -4
  293. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  294. package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  295. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  296. package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  297. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  298. package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  299. package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  300. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  301. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  302. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  303. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  304. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  305. package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  306. package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  307. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  308. package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  309. package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  310. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  311. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  312. package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  313. package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  314. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  315. package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  316. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  317. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  318. package/dist/types/data-structures.d.ts +16 -1
  319. package/dist/types/data-structures.d.ts.map +1 -1
  320. package/dist/types/global.d.ts +7 -2
  321. package/dist/types/global.d.ts.map +1 -1
  322. package/dist/types/translation.d.ts +40 -5
  323. package/dist/types/translation.d.ts.map +1 -1
  324. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  325. package/dist/utils/floating-layer.d.ts +11 -0
  326. package/dist/utils/floating-layer.d.ts.map +1 -0
  327. package/dist/utils/legacy.d.ts +7 -0
  328. package/dist/utils/legacy.d.ts.map +1 -1
  329. package/dist/utils/object-styles.d.ts +12 -0
  330. package/dist/utils/object-styles.d.ts.map +1 -0
  331. package/dist/utils/object-styles.test.d.ts +2 -0
  332. package/dist/utils/object-styles.test.d.ts.map +1 -0
  333. package/dist/utils/objects.d.ts +20 -1
  334. package/dist/utils/objects.d.ts.map +1 -1
  335. package/dist/utils/totals/totals-registry.d.ts +17 -0
  336. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  337. package/dist/utils/totals/totals-utils.d.ts +70 -7
  338. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  339. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  340. package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  341. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  342. package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  343. package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  344. package/package.json +7 -5
  345. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  346. package/dist/channel-CuEby436.js +0 -5
  347. package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
  348. package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
  349. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
  350. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  351. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
  352. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
  353. package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
  354. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  355. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
  356. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
  357. package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
  358. package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
  359. package/dist/components/echarts/echarts-graph.d.ts +0 -4
  360. package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
  361. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  362. package/dist/dagre-D5csT9sx.js +0 -1934
  363. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
  364. package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
  365. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  366. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
  367. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  368. package/dist/hooks/useClickOutside.d.ts.map +0 -1
  369. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  370. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
  371. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  372. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  373. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  374. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  375. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  376. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  377. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  378. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
  379. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
  380. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
  381. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  382. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  383. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
  384. /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
@@ -1,104 +1,10 @@
1
- import { _ as e, m as t, p as n, y as r } from "./src-DQoflmwT.js";
2
- import { A as i, F as a, b as o, s, z as c } from "./chunk-DU6HZSFF-waeanndy.js";
3
- import { n as l } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { a as u } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
- import { n as d, t as f } from "./chunk-PWAF6VOD-D37VoZ8H.js";
6
- //#region node_modules/fastdom/fastdom.js
7
- var p = /* @__PURE__ */ e(((e, t) => {
8
- (function(e) {
9
- var n = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
10
- return setTimeout(e, 16);
11
- };
12
- function r() {
13
- var t = this;
14
- t.reads = [], t.writes = [], t.raf = n.bind(e);
15
- }
16
- r.prototype = {
17
- constructor: r,
18
- runTasks: function(e) {
19
- for (var t; t = e.shift();) t();
20
- },
21
- measure: function(e, t) {
22
- var n = t ? e.bind(t) : e;
23
- return this.reads.push(n), i(this), n;
24
- },
25
- mutate: function(e, t) {
26
- var n = t ? e.bind(t) : e;
27
- return this.writes.push(n), i(this), n;
28
- },
29
- clear: function(e) {
30
- return o(this.reads, e) || o(this.writes, e);
31
- },
32
- extend: function(e) {
33
- if (typeof e != "object") throw Error("expected object");
34
- var t = Object.create(this);
35
- return s(t, e), t.fastdom = this, t.initialize && t.initialize(), t;
36
- },
37
- catch: null
38
- };
39
- function i(e) {
40
- e.scheduled || (e.scheduled = !0, e.raf(a.bind(null, e)));
41
- }
42
- function a(e) {
43
- var t = e.writes, n = e.reads, r;
44
- try {
45
- n.length, e.runTasks(n), t.length, e.runTasks(t);
46
- } catch (e) {
47
- r = e;
48
- }
49
- if (e.scheduled = !1, (n.length || t.length) && i(e), r) {
50
- if (r.message, e.catch) e.catch(r);
51
- else throw r;
52
- }
53
- }
54
- function o(e, t) {
55
- var n = e.indexOf(t);
56
- return !!~n && !!e.splice(n, 1);
57
- }
58
- function s(e, t) {
59
- for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
60
- }
61
- var c = e.fastdom = e.fastdom || new r();
62
- typeof define == "function" ? define(function() {
63
- return c;
64
- }) : typeof t == "object" && (t.exports = c);
65
- })(typeof window < "u" ? window : e === void 0 ? globalThis : e);
66
- })), m = /* @__PURE__ */ e(((e, t) => {
67
- (function() {
68
- var e = {
69
- initialize: function() {
70
- this._tasks = /* @__PURE__ */ new Map();
71
- },
72
- mutate: function(e, t) {
73
- return n(this, "mutate", e, t);
74
- },
75
- measure: function(e, t) {
76
- return n(this, "measure", e, t);
77
- },
78
- clear: function(e) {
79
- var t = this._tasks, n = t.get(e);
80
- this.fastdom.clear(n), t.delete(e);
81
- }
82
- };
83
- function n(e, t, n, r) {
84
- var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
85
- o = a[t](function() {
86
- i.delete(s);
87
- try {
88
- e(r ? n.call(r) : n());
89
- } catch (e) {
90
- c(e);
91
- }
92
- }, r);
93
- });
94
- return i.set(s, o), s;
95
- }
96
- (typeof define)[0] == "f" ? define(function() {
97
- return e;
98
- }) : (typeof t)[0] == "o" ? t.exports = e : window.fastdomPromised = e;
99
- })();
100
- })), h = /* @__PURE__ */ r(p(), 1), ee = /* @__PURE__ */ r(m(), 1);
101
- function g() {
1
+ import { F as e, k as t, s as n, y as r, z as i } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as a } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { m as o, p as s } from "./src-CY9Rz0Sf.js";
4
+ import { a as c } from "./chunk-7S6XSTFO-CN6S2H1-.js";
5
+ import { n as l, t as u } from "./chunk-YZO67HFG-Bcmpw0dX.js";
6
+ //#region node_modules/marked/lib/marked.esm.js
7
+ function d() {
102
8
  return {
103
9
  async: !1,
104
10
  breaks: !1,
@@ -112,22 +18,28 @@ function g() {
112
18
  walkTokens: null
113
19
  };
114
20
  }
115
- var _ = g();
116
- function te(e) {
117
- _ = e;
21
+ var f = d();
22
+ function p(e) {
23
+ f = e;
118
24
  }
119
- var v = { exec: () => null };
120
- function y(e, t = "") {
25
+ var m = { exec: () => null };
26
+ function h(e, t = "") {
121
27
  let n = typeof e == "string" ? e : e.source, r = {
122
28
  replace: (e, t) => {
123
29
  let i = typeof t == "string" ? t : t.source;
124
- return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
30
+ return i = i.replace(_.caret, "$1"), n = n.replace(e, i), r;
125
31
  },
126
32
  getRegex: () => new RegExp(n, t)
127
33
  };
128
34
  return r;
129
35
  }
130
- var b = {
36
+ var g = (() => {
37
+ try {
38
+ return !0;
39
+ } catch {
40
+ return !1;
41
+ }
42
+ })(), _ = {
131
43
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
132
44
  outputLinkReplace: /\\([\[\]])/g,
133
45
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -184,76 +96,76 @@ var b = {
184
96
  fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
185
97
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
186
98
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
187
- }, ne = /^(?:[ \t]*(?:\n|$))+/, re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ie = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, x = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ae = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, S = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = y(oe).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ce = y(oe).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), C = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, le = /^[^\n]+/, w = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ue = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", w).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), de = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, S).getRegex(), T = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", E = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, fe = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", E).replace("tag", T).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), pe = y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), D = {
188
- blockquote: y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(),
189
- code: re,
190
- def: ue,
191
- fences: ie,
192
- heading: ae,
193
- hr: x,
194
- html: fe,
195
- lheading: se,
196
- list: de,
197
- newline: ne,
198
- paragraph: pe,
199
- table: v,
200
- text: le
201
- }, me = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), he = {
202
- ...D,
203
- lheading: ce,
204
- table: me,
205
- paragraph: y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", me).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex()
206
- }, ge = {
207
- ...D,
208
- html: y("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", E).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
99
+ }, ee = /^(?:[ \t]*(?:\n|$))+/, te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ne = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, v = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, re = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, y = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ae = h(ie).replace(/bull/g, y).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), oe = h(ie).replace(/bull/g, y).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), b = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, se = /^[^\n]+/, x = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ce = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", x).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), le = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, y).getRegex(), S = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", C = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ue = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", C).replace("tag", S).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), de = h(b).replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex(), w = {
100
+ blockquote: h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", de).getRegex(),
101
+ code: te,
102
+ def: ce,
103
+ fences: ne,
104
+ heading: re,
105
+ hr: v,
106
+ html: ue,
107
+ lheading: ae,
108
+ list: le,
109
+ newline: ee,
110
+ paragraph: de,
111
+ table: m,
112
+ text: se
113
+ }, fe = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex(), pe = {
114
+ ...w,
115
+ lheading: oe,
116
+ table: fe,
117
+ paragraph: h(b).replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", fe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex()
118
+ }, me = {
119
+ ...w,
120
+ html: h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", C).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
209
121
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
210
122
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
211
- fences: v,
123
+ fences: m,
212
124
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
213
- paragraph: y(C).replace("hr", x).replace("heading", " *#{1,6} *[^\n]").replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
214
- }, _e = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ve = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ye = /^( {2,}|\\)\n(?!\s*$)/, be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, O = /[\p{P}\p{S}]/u, k = /[\s\p{P}\p{S}]/u, xe = /[^\s\p{P}\p{S}]/u, Se = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, k).getRegex(), Ce = /(?!~)[\p{P}\p{S}]/u, we = /(?!~)[\s\p{P}\p{S}]/u, Te = /(?:[^\s\p{P}\p{S}]|~)/u, Ee = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, De = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oe = y(De, "u").replace(/punct/g, O).getRegex(), ke = y(De, "u").replace(/punct/g, Ce).getRegex(), Ae = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", je = y(Ae, "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Me = y(Ae, "gu").replace(/notPunctSpace/g, Te).replace(/punctSpace/g, we).replace(/punct/g, Ce).getRegex(), Ne = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Pe = y(/\\(punct)/, "gu").replace(/punct/g, O).getRegex(), Fe = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ie = y(E).replace("(?:-->|$)", "-->").getRegex(), Le = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ie).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), A = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Re = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", A).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ze = y(/^!?\[(label)\]\[(ref)\]/).replace("label", A).replace("ref", w).getRegex(), Be = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", w).getRegex(), j = {
215
- _backpedal: v,
216
- anyPunctuation: Pe,
217
- autolink: Fe,
218
- blockSkip: Ee,
219
- br: ye,
220
- code: ve,
221
- del: v,
222
- emStrongLDelim: Oe,
223
- emStrongRDelimAst: je,
224
- emStrongRDelimUnd: Ne,
225
- escape: _e,
226
- link: Re,
227
- nolink: Be,
228
- punctuation: Se,
229
- reflink: ze,
230
- reflinkSearch: y("reflink|nolink(?!\\()", "g").replace("reflink", ze).replace("nolink", Be).getRegex(),
231
- tag: Le,
232
- text: be,
233
- url: v
125
+ paragraph: h(b).replace("hr", v).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
126
+ }, he = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ge = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, _e = /^( {2,}|\\)\n(?!\s*$)/, ve = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, T = /[\p{P}\p{S}]/u, E = /[\s\p{P}\p{S}]/u, ye = /[^\s\p{P}\p{S}]/u, be = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, E).getRegex(), xe = /(?!~)[\p{P}\p{S}]/u, Se = /(?!~)[\s\p{P}\p{S}]/u, Ce = /(?:[^\s\p{P}\p{S}]|~)/u, we = h(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", g ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Te = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ee = h(Te, "u").replace(/punct/g, T).getRegex(), De = h(Te, "u").replace(/punct/g, xe).getRegex(), Oe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", ke = h(Oe, "gu").replace(/notPunctSpace/g, ye).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), Ae = h(Oe, "gu").replace(/notPunctSpace/g, Ce).replace(/punctSpace/g, Se).replace(/punct/g, xe).getRegex(), je = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ye).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), Me = h(/\\(punct)/, "gu").replace(/punct/g, T).getRegex(), Ne = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Pe = h(C).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Pe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ie = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Le = h(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", x).getRegex(), Re = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", x).getRegex(), ze = h("reflink|nolink(?!\\()", "g").replace("reflink", Le).replace("nolink", Re).getRegex(), Be = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, O = {
127
+ _backpedal: m,
128
+ anyPunctuation: Me,
129
+ autolink: Ne,
130
+ blockSkip: we,
131
+ br: _e,
132
+ code: ge,
133
+ del: m,
134
+ emStrongLDelim: Ee,
135
+ emStrongRDelimAst: ke,
136
+ emStrongRDelimUnd: je,
137
+ escape: he,
138
+ link: Ie,
139
+ nolink: Re,
140
+ punctuation: be,
141
+ reflink: Le,
142
+ reflinkSearch: ze,
143
+ tag: Fe,
144
+ text: ve,
145
+ url: m
234
146
  }, Ve = {
235
- ...j,
236
- link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", A).getRegex(),
237
- reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", A).getRegex()
238
- }, M = {
239
- ...j,
240
- emStrongRDelimAst: Me,
241
- emStrongLDelim: ke,
242
- url: y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
147
+ ...O,
148
+ link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(),
149
+ reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex()
150
+ }, k = {
151
+ ...O,
152
+ emStrongRDelimAst: Ae,
153
+ emStrongLDelim: De,
154
+ url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Be).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
243
155
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
244
156
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
245
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
157
+ text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Be).getRegex()
246
158
  }, He = {
247
- ...M,
248
- br: y(ye).replace("{2,}", "*").getRegex(),
249
- text: y(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
250
- }, N = {
251
- normal: D,
252
- gfm: he,
253
- pedantic: ge
254
- }, P = {
255
- normal: j,
256
- gfm: M,
159
+ ...k,
160
+ br: h(_e).replace("{2,}", "*").getRegex(),
161
+ text: h(k.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
162
+ }, A = {
163
+ normal: w,
164
+ gfm: pe,
165
+ pedantic: me
166
+ }, j = {
167
+ normal: O,
168
+ gfm: k,
257
169
  breaks: He,
258
170
  pedantic: Ve
259
171
  }, Ue = {
@@ -263,34 +175,34 @@ var b = {
263
175
  "\"": "&quot;",
264
176
  "'": "&#39;"
265
177
  }, We = (e) => Ue[e];
266
- function F(e, t) {
178
+ function M(e, t) {
267
179
  if (t) {
268
- if (b.escapeTest.test(e)) return e.replace(b.escapeReplace, We);
269
- } else if (b.escapeTestNoEncode.test(e)) return e.replace(b.escapeReplaceNoEncode, We);
180
+ if (_.escapeTest.test(e)) return e.replace(_.escapeReplace, We);
181
+ } else if (_.escapeTestNoEncode.test(e)) return e.replace(_.escapeReplaceNoEncode, We);
270
182
  return e;
271
183
  }
272
184
  function Ge(e) {
273
185
  try {
274
- e = encodeURI(e).replace(b.percentDecode, "%");
186
+ e = encodeURI(e).replace(_.percentDecode, "%");
275
187
  } catch {
276
188
  return null;
277
189
  }
278
190
  return e;
279
191
  }
280
192
  function Ke(e, t) {
281
- let n = e.replace(b.findPipe, (e, t, n) => {
193
+ let n = e.replace(_.findPipe, (e, t, n) => {
282
194
  let r = !1, i = t;
283
195
  for (; --i >= 0 && n[i] === "\\";) r = !r;
284
196
  return r ? "|" : " |";
285
- }).split(b.splitPipe), r = 0;
197
+ }).split(_.splitPipe), r = 0;
286
198
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
287
199
  if (n.length > t) n.splice(t);
288
200
  else for (; n.length < t;) n.push("");
289
201
  }
290
- for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
202
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(_.slashPipe, "|");
291
203
  return n;
292
204
  }
293
- function I(e, t, n) {
205
+ function N(e, t, n) {
294
206
  let r = e.length;
295
207
  if (r === 0) return "";
296
208
  let i = 0;
@@ -334,12 +246,12 @@ function Ye(e, t, n) {
334
246
  return r.length >= i.length ? e.slice(i.length) : e;
335
247
  }).join("\n");
336
248
  }
337
- var L = class {
249
+ var P = class {
338
250
  options;
339
251
  rules;
340
252
  lexer;
341
253
  constructor(e) {
342
- this.options = e || _;
254
+ this.options = e || f;
343
255
  }
344
256
  space(e) {
345
257
  let t = this.rules.block.newline.exec(e);
@@ -356,7 +268,7 @@ var L = class {
356
268
  type: "code",
357
269
  raw: t[0],
358
270
  codeBlockStyle: "indented",
359
- text: this.options.pedantic ? e : I(e, "\n")
271
+ text: this.options.pedantic ? e : N(e, "\n")
360
272
  };
361
273
  }
362
274
  }
@@ -377,7 +289,7 @@ var L = class {
377
289
  if (t) {
378
290
  let e = t[2].trim();
379
291
  if (this.rules.other.endingHash.test(e)) {
380
- let t = I(e, "#");
292
+ let t = N(e, "#");
381
293
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
382
294
  }
383
295
  return {
@@ -393,16 +305,16 @@ var L = class {
393
305
  let t = this.rules.block.hr.exec(e);
394
306
  if (t) return {
395
307
  type: "hr",
396
- raw: I(t[0], "\n")
308
+ raw: N(t[0], "\n")
397
309
  };
398
310
  }
399
311
  blockquote(e) {
400
312
  let t = this.rules.block.blockquote.exec(e);
401
313
  if (t) {
402
- let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
314
+ let e = N(t[0], "\n").split("\n"), n = "", r = "", i = [];
403
315
  for (; e.length > 0;) {
404
- let t = !1, a = [], o;
405
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
316
+ let t = !1, a = [], o = 0;
317
+ for (; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
406
318
  else if (!t) a.push(e[o]);
407
319
  else break;
408
320
  e = e.slice(o);
@@ -422,7 +334,6 @@ ${c}` : c;
422
334
  if (u?.type === "list") {
423
335
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
424
336
  i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
425
- continue;
426
337
  }
427
338
  }
428
339
  return {
@@ -594,7 +505,7 @@ ${c}` : c;
594
505
  let e = t[2].trim();
595
506
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
596
507
  if (!this.rules.other.endAngleBracket.test(e)) return;
597
- let t = I(e.slice(0, -1), "\\");
508
+ let t = N(e.slice(0, -1), "\\");
598
509
  if ((e.length - t.length) % 2 == 0) return;
599
510
  } else {
600
511
  let e = qe(t[2], "()");
@@ -747,29 +658,29 @@ ${c}` : c;
747
658
  };
748
659
  }
749
660
  }
750
- }, R = class e {
661
+ }, F = class e {
751
662
  tokens;
752
663
  options;
753
664
  state;
754
665
  tokenizer;
755
666
  inlineQueue;
756
667
  constructor(e) {
757
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _, this.options.tokenizer = this.options.tokenizer || new L(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
668
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || f, this.options.tokenizer = this.options.tokenizer || new P(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
758
669
  inLink: !1,
759
670
  inRawBlock: !1,
760
671
  top: !0
761
672
  };
762
673
  let t = {
763
- other: b,
764
- block: N.normal,
765
- inline: P.normal
674
+ other: _,
675
+ block: A.normal,
676
+ inline: j.normal
766
677
  };
767
- this.options.pedantic ? (t.block = N.pedantic, t.inline = P.pedantic) : this.options.gfm && (t.block = N.gfm, t.inline = this.options.breaks ? P.breaks : P.gfm), this.tokenizer.rules = t;
678
+ this.options.pedantic ? (t.block = A.pedantic, t.inline = j.pedantic) : this.options.gfm && (t.block = A.gfm, t.inline = this.options.breaks ? j.breaks : j.gfm), this.tokenizer.rules = t;
768
679
  }
769
680
  static get rules() {
770
681
  return {
771
- block: N,
772
- inline: P
682
+ block: A,
683
+ inline: j
773
684
  };
774
685
  }
775
686
  static lex(t, n) {
@@ -779,7 +690,7 @@ ${c}` : c;
779
690
  return new e(n).inlineTokens(t);
780
691
  }
781
692
  lex(e) {
782
- e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
693
+ e = e.replace(_.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
783
694
  for (let e = 0; e < this.inlineQueue.length; e++) {
784
695
  let t = this.inlineQueue[e];
785
696
  this.inlineTokens(t.src, t.tokens);
@@ -787,7 +698,7 @@ ${c}` : c;
787
698
  return this.inlineQueue = [], this.tokens;
788
699
  }
789
700
  blockTokens(e, t = [], n = !1) {
790
- for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
701
+ for (this.options.pedantic && (e = e.replace(_.tabCharGlobal, " ").replace(_.spaceLine, "")); e;) {
791
702
  let r;
792
703
  if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
793
704
  if (r = this.tokenizer.space(e)) {
@@ -802,27 +713,7 @@ ${c}` : c;
802
713
  n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
803
714
  continue;
804
715
  }
805
- if (r = this.tokenizer.fences(e)) {
806
- e = e.substring(r.raw.length), t.push(r);
807
- continue;
808
- }
809
- if (r = this.tokenizer.heading(e)) {
810
- e = e.substring(r.raw.length), t.push(r);
811
- continue;
812
- }
813
- if (r = this.tokenizer.hr(e)) {
814
- e = e.substring(r.raw.length), t.push(r);
815
- continue;
816
- }
817
- if (r = this.tokenizer.blockquote(e)) {
818
- e = e.substring(r.raw.length), t.push(r);
819
- continue;
820
- }
821
- if (r = this.tokenizer.list(e)) {
822
- e = e.substring(r.raw.length), t.push(r);
823
- continue;
824
- }
825
- if (r = this.tokenizer.html(e)) {
716
+ if ((r = this.tokenizer.fences(e)) || (r = this.tokenizer.heading(e)) || (r = this.tokenizer.hr(e)) || (r = this.tokenizer.blockquote(e)) || (r = this.tokenizer.list(e)) || (r = this.tokenizer.html(e))) {
826
717
  e = e.substring(r.raw.length), t.push(r);
827
718
  continue;
828
719
  }
@@ -835,11 +726,7 @@ ${c}` : c;
835
726
  }, t.push(r));
836
727
  continue;
837
728
  }
838
- if (r = this.tokenizer.table(e)) {
839
- e = e.substring(r.raw.length), t.push(r);
840
- continue;
841
- }
842
- if (r = this.tokenizer.lheading(e)) {
729
+ if ((r = this.tokenizer.table(e)) || (r = this.tokenizer.lheading(e))) {
843
730
  e = e.substring(r.raw.length), t.push(r);
844
731
  continue;
845
732
  }
@@ -853,15 +740,11 @@ ${c}` : c;
853
740
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
854
741
  let a = t.at(-1);
855
742
  n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
856
- continue;
857
- }
858
- if (r = this.tokenizer.text(e)) {
743
+ } else if (r = this.tokenizer.text(e)) {
859
744
  e = e.substring(r.raw.length);
860
745
  let n = t.at(-1);
861
746
  n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
862
- continue;
863
- }
864
- if (e) {
747
+ } else if (e) {
865
748
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
866
749
  if (this.options.silent) {
867
750
  console.error(t);
@@ -885,22 +768,15 @@ ${c}` : c;
885
768
  if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
886
769
  }
887
770
  for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
888
- for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
771
+ let i;
772
+ for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
889
773
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
890
- let i = !1, a = "";
774
+ let a = !1, o = "";
891
775
  for (; e;) {
892
- i || (a = ""), i = !1;
776
+ a || (o = ""), a = !1;
893
777
  let r;
894
778
  if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
895
- if (r = this.tokenizer.escape(e)) {
896
- e = e.substring(r.raw.length), t.push(r);
897
- continue;
898
- }
899
- if (r = this.tokenizer.tag(e)) {
900
- e = e.substring(r.raw.length), t.push(r);
901
- continue;
902
- }
903
- if (r = this.tokenizer.link(e)) {
779
+ if ((r = this.tokenizer.escape(e)) || (r = this.tokenizer.tag(e)) || (r = this.tokenizer.link(e))) {
904
780
  e = e.substring(r.raw.length), t.push(r);
905
781
  continue;
906
782
  }
@@ -910,44 +786,22 @@ ${c}` : c;
910
786
  r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
911
787
  continue;
912
788
  }
913
- if (r = this.tokenizer.emStrong(e, n, a)) {
914
- e = e.substring(r.raw.length), t.push(r);
915
- continue;
916
- }
917
- if (r = this.tokenizer.codespan(e)) {
918
- e = e.substring(r.raw.length), t.push(r);
919
- continue;
920
- }
921
- if (r = this.tokenizer.br(e)) {
789
+ if ((r = this.tokenizer.emStrong(e, n, o)) || (r = this.tokenizer.codespan(e)) || (r = this.tokenizer.br(e)) || (r = this.tokenizer.del(e)) || (r = this.tokenizer.autolink(e)) || !this.state.inLink && (r = this.tokenizer.url(e))) {
922
790
  e = e.substring(r.raw.length), t.push(r);
923
791
  continue;
924
792
  }
925
- if (r = this.tokenizer.del(e)) {
926
- e = e.substring(r.raw.length), t.push(r);
927
- continue;
928
- }
929
- if (r = this.tokenizer.autolink(e)) {
930
- e = e.substring(r.raw.length), t.push(r);
931
- continue;
932
- }
933
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
934
- e = e.substring(r.raw.length), t.push(r);
935
- continue;
936
- }
937
- let o = e;
793
+ let i = e;
938
794
  if (this.options.extensions?.startInline) {
939
795
  let t = 1 / 0, n = e.slice(1), r;
940
796
  this.options.extensions.startInline.forEach((e) => {
941
797
  r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
942
- }), t < 1 / 0 && t >= 0 && (o = e.substring(0, t + 1));
798
+ }), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
943
799
  }
944
- if (r = this.tokenizer.inlineText(o)) {
945
- e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (a = r.raw.slice(-1)), i = !0;
800
+ if (r = this.tokenizer.inlineText(i)) {
801
+ e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
946
802
  let n = t.at(-1);
947
803
  n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
948
- continue;
949
- }
950
- if (e) {
804
+ } else if (e) {
951
805
  let t = "Infinite loop on byte: " + e.charCodeAt(0);
952
806
  if (this.options.silent) {
953
807
  console.error(t);
@@ -958,18 +812,18 @@ ${c}` : c;
958
812
  }
959
813
  return t;
960
814
  }
961
- }, z = class {
815
+ }, I = class {
962
816
  options;
963
817
  parser;
964
818
  constructor(e) {
965
- this.options = e || _;
819
+ this.options = e || f;
966
820
  }
967
821
  space(e) {
968
822
  return "";
969
823
  }
970
824
  code({ text: e, lang: t, escaped: n }) {
971
- let r = (t || "").match(b.notSpaceStart)?.[0], i = e.replace(b.endingNewline, "") + "\n";
972
- return r ? "<pre><code class=\"language-" + F(r) + "\">" + (n ? i : F(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : F(i, !0)) + "</code></pre>\n";
825
+ let r = (t || "").match(_.notSpaceStart)?.[0], i = e.replace(_.endingNewline, "") + "\n";
826
+ return r ? "<pre><code class=\"language-" + M(r) + "\">" + (n ? i : M(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : M(i, !0)) + "</code></pre>\n";
973
827
  }
974
828
  blockquote({ tokens: e }) {
975
829
  return `<blockquote>
@@ -1002,7 +856,7 @@ ${this.parser.parse(e)}</blockquote>
1002
856
  let t = "";
1003
857
  if (e.task) {
1004
858
  let n = this.checkbox({ checked: !!e.checked });
1005
- e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + F(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
859
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + M(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
1006
860
  type: "text",
1007
861
  raw: n + " ",
1008
862
  text: n + " ",
@@ -1049,7 +903,7 @@ ${e}</tr>
1049
903
  return `<em>${this.parser.parseInline(e)}</em>`;
1050
904
  }
1051
905
  codespan({ text: e }) {
1052
- return `<code>${F(e, !0)}</code>`;
906
+ return `<code>${M(e, !0)}</code>`;
1053
907
  }
1054
908
  br(e) {
1055
909
  return "<br>";
@@ -1062,20 +916,20 @@ ${e}</tr>
1062
916
  if (i === null) return r;
1063
917
  e = i;
1064
918
  let a = "<a href=\"" + e + "\"";
1065
- return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
919
+ return t && (a += " title=\"" + M(t) + "\""), a += ">" + r + "</a>", a;
1066
920
  }
1067
921
  image({ href: e, title: t, text: n, tokens: r }) {
1068
922
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1069
923
  let i = Ge(e);
1070
- if (i === null) return F(n);
924
+ if (i === null) return M(n);
1071
925
  e = i;
1072
926
  let a = `<img src="${e}" alt="${n}"`;
1073
- return t && (a += ` title="${F(t)}"`), a += ">", a;
927
+ return t && (a += ` title="${M(t)}"`), a += ">", a;
1074
928
  }
1075
929
  text(e) {
1076
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
930
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : M(e.text);
1077
931
  }
1078
- }, B = class {
932
+ }, L = class {
1079
933
  strong({ text: e }) {
1080
934
  return e;
1081
935
  }
@@ -1103,12 +957,12 @@ ${e}</tr>
1103
957
  br() {
1104
958
  return "";
1105
959
  }
1106
- }, V = class e {
960
+ }, R = class e {
1107
961
  options;
1108
962
  renderer;
1109
963
  textRenderer;
1110
964
  constructor(e) {
1111
- this.options = e || _, this.options.renderer = this.options.renderer || new z(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new B();
965
+ this.options = e || f, this.options.renderer = this.options.renderer || new I(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new L();
1112
966
  }
1113
967
  static parse(t, n) {
1114
968
  return new e(n).parse(t);
@@ -1259,11 +1113,11 @@ ${e}</tr>
1259
1113
  }
1260
1114
  return n;
1261
1115
  }
1262
- }, H = class {
1116
+ }, z = class {
1263
1117
  options;
1264
1118
  block;
1265
1119
  constructor(e) {
1266
- this.options = e || _;
1120
+ this.options = e || f;
1267
1121
  }
1268
1122
  static passThroughHooks = /* @__PURE__ */ new Set([
1269
1123
  "preprocess",
@@ -1289,22 +1143,22 @@ ${e}</tr>
1289
1143
  return e;
1290
1144
  }
1291
1145
  provideLexer() {
1292
- return this.block ? R.lex : R.lexInline;
1146
+ return this.block ? F.lex : F.lexInline;
1293
1147
  }
1294
1148
  provideParser() {
1295
- return this.block ? V.parse : V.parseInline;
1149
+ return this.block ? R.parse : R.parseInline;
1296
1150
  }
1297
- }, U = new class {
1298
- defaults = g();
1151
+ }, B = new class {
1152
+ defaults = d();
1299
1153
  options = this.setOptions;
1300
1154
  parse = this.parseMarkdown(!0);
1301
1155
  parseInline = this.parseMarkdown(!1);
1302
- Parser = V;
1303
- Renderer = z;
1304
- TextRenderer = B;
1305
- Lexer = R;
1306
- Tokenizer = L;
1307
- Hooks = H;
1156
+ Parser = R;
1157
+ Renderer = I;
1158
+ TextRenderer = L;
1159
+ Lexer = F;
1160
+ Tokenizer = P;
1161
+ Hooks = z;
1308
1162
  constructor(...e) {
1309
1163
  this.use(...e);
1310
1164
  }
@@ -1355,7 +1209,7 @@ ${e}</tr>
1355
1209
  }
1356
1210
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1357
1211
  }), n.extensions = t), e.renderer) {
1358
- let t = this.defaults.renderer || new z(this.defaults);
1212
+ let t = this.defaults.renderer || new I(this.defaults);
1359
1213
  for (let n in e.renderer) {
1360
1214
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1361
1215
  if (["options", "parser"].includes(n)) continue;
@@ -1368,7 +1222,7 @@ ${e}</tr>
1368
1222
  n.renderer = t;
1369
1223
  }
1370
1224
  if (e.tokenizer) {
1371
- let t = this.defaults.tokenizer || new L(this.defaults);
1225
+ let t = this.defaults.tokenizer || new P(this.defaults);
1372
1226
  for (let n in e.tokenizer) {
1373
1227
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1374
1228
  if ([
@@ -1385,16 +1239,23 @@ ${e}</tr>
1385
1239
  n.tokenizer = t;
1386
1240
  }
1387
1241
  if (e.hooks) {
1388
- let t = this.defaults.hooks || new H();
1242
+ let t = this.defaults.hooks || new z();
1389
1243
  for (let n in e.hooks) {
1390
1244
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1391
1245
  if (["options", "block"].includes(n)) continue;
1392
1246
  let r = n, i = e.hooks[r], a = t[r];
1393
- t[r] = H.passThroughHooks.has(n) ? (e) => {
1394
- if (this.defaults.async && H.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
1247
+ t[r] = z.passThroughHooks.has(n) ? (e) => {
1248
+ if (this.defaults.async && z.passThroughHooksRespectAsync.has(n)) return (async () => {
1249
+ let n = await i.call(t, e);
1250
+ return a.call(t, n);
1251
+ })();
1395
1252
  let r = i.call(t, e);
1396
1253
  return a.call(t, r);
1397
1254
  } : (...e) => {
1255
+ if (this.defaults.async) return (async () => {
1256
+ let n = await i.apply(t, e);
1257
+ return n === !1 && (n = await a.apply(t, e)), n;
1258
+ })();
1398
1259
  let n = i.apply(t, e);
1399
1260
  return n === !1 && (n = a.apply(t, e)), n;
1400
1261
  };
@@ -1421,10 +1282,10 @@ ${e}</tr>
1421
1282
  }, this;
1422
1283
  }
1423
1284
  lexer(e, t) {
1424
- return R.lex(e, t ?? this.defaults);
1285
+ return F.lex(e, t ?? this.defaults);
1425
1286
  }
1426
1287
  parser(e, t) {
1427
- return V.parse(e, t ?? this.defaults);
1288
+ return R.parse(e, t ?? this.defaults);
1428
1289
  }
1429
1290
  parseMarkdown(e) {
1430
1291
  return (t, n) => {
@@ -1435,15 +1296,18 @@ ${e}</tr>
1435
1296
  if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1436
1297
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1437
1298
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1438
- i.hooks && (i.hooks.options = i, i.hooks.block = e);
1439
- let o = i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline;
1440
- if (i.async) return Promise.resolve(i.hooks ? i.hooks.preprocess(t) : t).then((e) => o(e, i)).then((e) => i.hooks ? i.hooks.processAllTokens(e) : e).then((e) => i.walkTokens ? Promise.all(this.walkTokens(e, i.walkTokens)).then(() => e) : e).then((e) => s(e, i)).then((e) => i.hooks ? i.hooks.postprocess(e) : e).catch(a);
1299
+ if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1300
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? F.lex : F.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1301
+ i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1302
+ let o = await (i.hooks ? await i.hooks.provideParser() : e ? R.parse : R.parseInline)(a, i);
1303
+ return i.hooks ? await i.hooks.postprocess(o) : o;
1304
+ })().catch(a);
1441
1305
  try {
1442
1306
  i.hooks && (t = i.hooks.preprocess(t));
1443
- let e = o(t, i);
1444
- i.hooks && (e = i.hooks.processAllTokens(e)), i.walkTokens && this.walkTokens(e, i.walkTokens);
1445
- let n = s(e, i);
1446
- return i.hooks && (n = i.hooks.postprocess(n)), n;
1307
+ let n = (i.hooks ? i.hooks.provideLexer() : e ? F.lex : F.lexInline)(t, i);
1308
+ i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1309
+ let r = (i.hooks ? i.hooks.provideParser() : e ? R.parse : R.parseInline)(n, i);
1310
+ return i.hooks && (r = i.hooks.postprocess(r)), r;
1447
1311
  } catch (e) {
1448
1312
  return a(e);
1449
1313
  }
@@ -1452,7 +1316,7 @@ ${e}</tr>
1452
1316
  onError(e, t) {
1453
1317
  return (n) => {
1454
1318
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1455
- let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
1319
+ let e = "<p>An error occurred:</p><pre>" + M(n.message + "", !0) + "</pre>";
1456
1320
  return t ? Promise.resolve(e) : e;
1457
1321
  }
1458
1322
  if (t) return Promise.reject(n);
@@ -1460,16 +1324,16 @@ ${e}</tr>
1460
1324
  };
1461
1325
  }
1462
1326
  }();
1463
- function W(e, t) {
1464
- return U.parse(e, t);
1327
+ function V(e, t) {
1328
+ return B.parse(e, t);
1465
1329
  }
1466
- W.options = W.setOptions = function(e) {
1467
- return U.setOptions(e), W.defaults = U.defaults, te(W.defaults), W;
1468
- }, W.getDefaults = g, W.defaults = _, W.use = function(...e) {
1469
- return U.use(...e), W.defaults = U.defaults, te(W.defaults), W;
1470
- }, W.walkTokens = function(e, t) {
1471
- return U.walkTokens(e, t);
1472
- }, W.parseInline = U.parseInline, W.Parser = V, W.parser = V.parse, W.Renderer = z, W.TextRenderer = B, W.Lexer = R, W.lexer = R.lex, W.Tokenizer = L, W.Hooks = H, W.parse = W, W.options, W.setOptions, W.use, W.walkTokens, W.parseInline, V.parse, R.lex;
1330
+ V.options = V.setOptions = function(e) {
1331
+ return B.setOptions(e), V.defaults = B.defaults, p(V.defaults), V;
1332
+ }, V.getDefaults = d, V.defaults = f, V.use = function(...e) {
1333
+ return B.use(...e), V.defaults = B.defaults, p(V.defaults), V;
1334
+ }, V.walkTokens = function(e, t) {
1335
+ return B.walkTokens(e, t);
1336
+ }, V.parseInline = B.parseInline, V.Parser = R, V.parser = R.parse, V.Renderer = I, V.TextRenderer = L, V.Lexer = F, V.lexer = F.lex, V.Tokenizer = P, V.Hooks = z, V.parse = V, V.options, V.setOptions, V.use, V.walkTokens, V.parseInline, R.parse, F.lex;
1473
1337
  //#endregion
1474
1338
  //#region node_modules/ts-dedent/esm/index.js
1475
1339
  function Xe(e) {
@@ -1482,7 +1346,8 @@ function Xe(e) {
1482
1346
  })) : e;
1483
1347
  }, []);
1484
1348
  if (r.length) {
1485
- var i = RegExp("\n[ ]{" + Math.min.apply(Math, r) + "}", "g");
1349
+ var i = RegExp(`
1350
+ [ ]{${Math.min.apply(Math, r)}}`, "g");
1486
1351
  n = n.map(function(e) {
1487
1352
  return e.replace(i, "\n");
1488
1353
  });
@@ -1492,13 +1357,13 @@ function Xe(e) {
1492
1357
  return t.forEach(function(e, t) {
1493
1358
  var r = a.match(/(?:^|\n)( *)$/), i = r ? r[1] : "", o = e;
1494
1359
  typeof e == "string" && e.includes("\n") && (o = String(e).split("\n").map(function(e, t) {
1495
- return t === 0 ? e : "" + i + e;
1360
+ return t === 0 ? e : `${i}${e}`;
1496
1361
  }).join("\n")), a += o + n[t + 1];
1497
1362
  }), a;
1498
1363
  }
1499
1364
  //#endregion
1500
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GMAD6QVW.mjs
1501
- var G = typeof performance < "u" && typeof performance.now == "function", K = /* @__PURE__ */ l(() => G ? performance.now() : 0, "now"), q = "🧜 ", Ze = "Mermaid render", Qe = "Mermaid", $e = {
1365
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-AQDTSKZB.mjs
1366
+ var H = typeof performance < "u" && typeof performance.now == "function", U = /* @__PURE__ */ a(() => H ? performance.now() : 0, "now"), W = "🧜 ", Ze = "Mermaid render", Qe = "Mermaid", $e = {
1502
1367
  parse: "tertiary",
1503
1368
  prepare: "secondary",
1504
1369
  measure: "primary",
@@ -1514,7 +1379,7 @@ var G = typeof performance < "u" && typeof performance.now == "function", K = /*
1514
1379
  this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
1515
1380
  }
1516
1381
  static {
1517
- l(this, "Profiler");
1382
+ a(this, "Profiler");
1518
1383
  }
1519
1384
  enable() {
1520
1385
  return this.enabled = !0, this;
@@ -1527,20 +1392,20 @@ var G = typeof performance < "u" && typeof performance.now == "function", K = /*
1527
1392
  }
1528
1393
  tickSync(e, t) {
1529
1394
  if (!this.enabled) return t();
1530
- let n = K();
1395
+ let n = U();
1531
1396
  try {
1532
1397
  return t();
1533
1398
  } finally {
1534
- this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1399
+ this.buckets[e] = (this.buckets[e] ?? 0) + (U() - n);
1535
1400
  }
1536
1401
  }
1537
1402
  async tick(e, t) {
1538
1403
  if (!this.enabled) return t();
1539
- let n = K();
1404
+ let n = U();
1540
1405
  try {
1541
1406
  return await t();
1542
1407
  } finally {
1543
- this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1408
+ this.buckets[e] = (this.buckets[e] ?? 0) + (U() - n);
1544
1409
  }
1545
1410
  }
1546
1411
  stop() {
@@ -1557,21 +1422,21 @@ var G = typeof performance < "u" && typeof performance.now == "function", K = /*
1557
1422
  if (!this.enabled) return;
1558
1423
  let t = {
1559
1424
  name: e,
1560
- start: K(),
1425
+ start: U(),
1561
1426
  duration: -1,
1562
1427
  children: []
1563
1428
  }, n = this.stack.at(-1);
1564
- if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), G && typeof performance.mark == "function") try {
1565
- performance.mark(`${q}${e} \u25B6`);
1429
+ if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), H && typeof performance.mark == "function") try {
1430
+ performance.mark(`${W}${e} \u25B6`);
1566
1431
  } catch {}
1567
1432
  }
1568
1433
  end() {
1569
1434
  if (!this.enabled) return;
1570
1435
  let e = this.stack.pop();
1571
1436
  if (!e) return;
1572
- let t = K();
1573
- if (e.duration = t - e.start, G && typeof performance.measure == "function") try {
1574
- performance.measure(`${q}${e.name}`, {
1437
+ let t = U();
1438
+ if (e.duration = t - e.start, H && typeof performance.measure == "function") try {
1439
+ performance.measure(`${W}${e.name}`, {
1575
1440
  start: e.start,
1576
1441
  end: t,
1577
1442
  detail: { devtools: {
@@ -1604,10 +1469,10 @@ var G = typeof performance < "u" && typeof performance.now == "function", K = /*
1604
1469
  }
1605
1470
  printSummary(e = this.report(), t) {
1606
1471
  if (!e) return;
1607
- let n = e.duration, r = t && t !== e.name ? `${e.name} [${t}]` : e.name, i = ["ms % phase"], a = /* @__PURE__ */ l((e, t) => {
1608
- let r = " ".repeat(t), o = e.duration.toFixed(1).padStart(8), s = n > 0 ? `${(e.duration / n * 100).toFixed(0).padStart(3)}%` : " -";
1609
- i.push(`${o} ${s} ${r}${e.name}`);
1610
- for (let n of e.children) a(n, t + 1);
1472
+ let n = e.duration, r = t && t !== e.name ? `${e.name} [${t}]` : e.name, i = ["ms % phase"], o = /* @__PURE__ */ a((e, t) => {
1473
+ let r = " ".repeat(t), a = e.duration.toFixed(1).padStart(8), s = n > 0 ? `${(e.duration / n * 100).toFixed(0).padStart(3)}%` : " -";
1474
+ i.push(`${a} ${s} ${r}${e.name}`);
1475
+ for (let n of e.children) o(n, t + 1);
1611
1476
  if (e.children.length > 0) {
1612
1477
  let t = e.children.reduce((e, t) => e + t.duration, 0), n = e.duration - t;
1613
1478
  if (n > .5) {
@@ -1616,13 +1481,13 @@ var G = typeof performance < "u" && typeof performance.now == "function", K = /*
1616
1481
  }
1617
1482
  }
1618
1483
  }, "walk");
1619
- a(e, 0);
1620
- let o = Object.keys(this.buckets);
1621
- if (o.length > 0) {
1484
+ o(e, 0);
1485
+ let s = Object.keys(this.buckets);
1486
+ if (s.length > 0) {
1622
1487
  i.push("—— buckets (summed) ——");
1623
- for (let e of o) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
1488
+ for (let e of s) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
1624
1489
  }
1625
- console.log(`${q}mermaid render profile \xB7 ${r}
1490
+ console.log(`${W}mermaid render profile \xB7 ${r}
1626
1491
  ${i.join("\n")}`);
1627
1492
  }
1628
1493
  }), globalThis.injected ??= {
@@ -1630,71 +1495,157 @@ ${i.join("\n")}`);
1630
1495
  profiling: !1,
1631
1496
  version: "0.0.0"
1632
1497
  };
1633
- var et = h.default.extend({ raf(e) {
1634
- typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
1635
- } }).extend(ee.default);
1636
- function tt(e, { markdownAutoWrap: t }) {
1498
+ function et(e, { markdownAutoWrap: t }) {
1637
1499
  return Xe(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1638
1500
  }
1639
- l(tt, "preprocessMarkdown");
1640
- function nt(e) {
1501
+ a(et, "preprocessMarkdown");
1502
+ function tt(e) {
1641
1503
  return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
1642
1504
  content: e,
1643
1505
  type: "normal"
1644
1506
  })) ?? []);
1645
1507
  }
1646
- l(nt, "nonMarkdownToLines");
1647
- function rt(e, t = {}) {
1648
- let n = tt(e, t), r = W.lexer(n), i = [[]], a = 0;
1649
- function o(e, t = "normal") {
1508
+ a(tt, "nonMarkdownToLines");
1509
+ function G(e, t = {}) {
1510
+ let n = et(e, t), r = V.lexer(n), i = [[]], o = 0;
1511
+ function s(e, t = "normal") {
1650
1512
  e.type === "text" ? e.text.split("\n").forEach((e, n) => {
1651
- n !== 0 && (a++, i.push([])), e.split(" ").forEach((e) => {
1652
- e = e.replace(/&#39;/g, "'"), e && i[a].push({
1513
+ n !== 0 && (o++, i.push([])), e.split(" ").forEach((e) => {
1514
+ e = e.replace(/&#39;/g, "'"), e && i[o].push({
1653
1515
  content: e,
1654
1516
  type: t
1655
1517
  });
1656
1518
  });
1657
1519
  }) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
1658
- o(t, e.type);
1659
- }) : e.type === "html" && i[a].push({
1520
+ s(t, e.type);
1521
+ }) : e.type === "html" && i[o].push({
1660
1522
  content: e.text,
1661
1523
  type: "normal"
1662
1524
  });
1663
1525
  }
1664
- return l(o, "processNode"), r.forEach((e) => {
1526
+ return a(s, "processNode"), r.forEach((e) => {
1665
1527
  e.type === "paragraph" ? e.tokens?.forEach((e) => {
1666
- o(e);
1667
- }) : e.type === "html" ? i[a].push({
1528
+ s(e);
1529
+ }) : e.type === "html" ? i[o].push({
1668
1530
  content: e.text,
1669
1531
  type: "normal"
1670
- }) : i[a].push({
1532
+ }) : i[o].push({
1671
1533
  content: e.raw,
1672
1534
  type: "normal"
1673
1535
  });
1674
1536
  }), i;
1675
1537
  }
1676
- l(rt, "markdownToLines");
1677
- function it(e) {
1538
+ a(G, "markdownToLines");
1539
+ function nt(e) {
1678
1540
  return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
1679
1541
  }
1680
- l(it, "nonMarkdownToHTML");
1681
- function at(e, { markdownAutoWrap: n } = {}) {
1682
- let r = W.lexer(e);
1542
+ a(nt, "nonMarkdownToHTML");
1543
+ function rt(e, { markdownAutoWrap: t } = {}) {
1544
+ let n = V.lexer(e);
1545
+ function r(e) {
1546
+ return e.type === "text" ? t === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(r).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(r).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(r).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (o.warn(`Unsupported markdown: ${e.type}`), e.raw);
1547
+ }
1548
+ return a(r, "output"), n.map(r).join("");
1549
+ }
1550
+ a(rt, "markdownToHTML");
1551
+ var it = (function(e) {
1552
+ var t = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
1553
+ return setTimeout(e, 16);
1554
+ };
1555
+ function n() {
1556
+ var n = this;
1557
+ n.reads = [], n.writes = [], n.raf = t.bind(e);
1558
+ }
1559
+ a(n, "FastDom"), n.prototype = {
1560
+ constructor: n,
1561
+ runTasks: /* @__PURE__ */ a(function(e) {
1562
+ for (var t; t = e.shift();) t();
1563
+ }, "runTasks"),
1564
+ measure: /* @__PURE__ */ a(function(e, t) {
1565
+ var n = t ? e.bind(t) : e;
1566
+ return this.reads.push(n), r(this), n;
1567
+ }, "measure"),
1568
+ mutate: /* @__PURE__ */ a(function(e, t) {
1569
+ var n = t ? e.bind(t) : e;
1570
+ return this.writes.push(n), r(this), n;
1571
+ }, "mutate"),
1572
+ clear: /* @__PURE__ */ a(function(e) {
1573
+ return o(this.reads, e) || o(this.writes, e);
1574
+ }, "clear"),
1575
+ extend: /* @__PURE__ */ a(function(e) {
1576
+ if (typeof e != "object") throw Error("expected object");
1577
+ var t = Object.create(this);
1578
+ return s(t, e), t.fastdom = this, t.initialize && t.initialize(), t;
1579
+ }, "extend"),
1580
+ catch: null
1581
+ };
1582
+ function r(e) {
1583
+ e.scheduled || (e.scheduled = !0, e.raf(i.bind(null, e)));
1584
+ }
1585
+ a(r, "scheduleFlush");
1683
1586
  function i(e) {
1684
- return e.type === "text" ? n === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(i).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(i).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(i).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (t.warn(`Unsupported markdown: ${e.type}`), e.raw);
1587
+ var t = e.writes, n = e.reads, i;
1588
+ try {
1589
+ n.length, e.runTasks(n), t.length, e.runTasks(t);
1590
+ } catch (e) {
1591
+ i = e;
1592
+ }
1593
+ if (e.scheduled = !1, (n.length || t.length) && r(e), i) {
1594
+ if (i.message, e.catch) e.catch(i);
1595
+ else throw i;
1596
+ }
1685
1597
  }
1686
- return l(i, "output"), r.map(i).join("");
1598
+ a(i, "flush");
1599
+ function o(e, t) {
1600
+ var n = e.indexOf(t);
1601
+ return !!~n && !!e.splice(n, 1);
1602
+ }
1603
+ a(o, "remove");
1604
+ function s(e, t) {
1605
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
1606
+ }
1607
+ return a(s, "mixin"), e.fastdom = e.fastdom || new n();
1608
+ })(typeof window < "u" ? window : globalThis), at = {
1609
+ initialize: /* @__PURE__ */ a(function() {
1610
+ this._tasks = /* @__PURE__ */ new Map();
1611
+ }, "initialize"),
1612
+ mutate: /* @__PURE__ */ a(function(e, t) {
1613
+ return K(this, "mutate", e, t);
1614
+ }, "mutate"),
1615
+ measure: /* @__PURE__ */ a(function(e, t) {
1616
+ return K(this, "measure", e, t);
1617
+ }, "measure"),
1618
+ clear: /* @__PURE__ */ a(function(e) {
1619
+ var t = this._tasks, n = t.get(e);
1620
+ this.fastdom.clear(n), t.delete(e);
1621
+ }, "clear")
1622
+ };
1623
+ function K(e, t, n, r) {
1624
+ var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
1625
+ o = a[t](function() {
1626
+ i.delete(s);
1627
+ try {
1628
+ e(r ? n.call(r) : n());
1629
+ } catch (e) {
1630
+ c(e);
1631
+ }
1632
+ }, r);
1633
+ });
1634
+ return i.set(s, o), s;
1687
1635
  }
1688
- l(at, "markdownToHTML");
1689
- function ot(e) {
1636
+ a(K, "create");
1637
+ var { initialize: ot, mutate: st, measure: ct, clear: lt } = at, ut = at, dt = it.extend({ raf(e) {
1638
+ typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
1639
+ } }).extend(ut);
1640
+ function ft(e) {
1690
1641
  return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
1691
1642
  }
1692
- l(ot, "splitTextToChars");
1693
- function st(e, t) {
1694
- return J(e, [], ot(t.content), t.type);
1643
+ a(ft, "splitTextToChars");
1644
+ function pt(e, t) {
1645
+ return q(e, [], ft(t.content), t.type);
1695
1646
  }
1696
- l(st, "splitWordToFitWidth");
1697
- function J(e, t, n, r) {
1647
+ a(pt, "splitWordToFitWidth");
1648
+ function q(e, t, n, r) {
1698
1649
  if (n.length === 0) return [{
1699
1650
  content: t.join(""),
1700
1651
  type: r
@@ -1706,7 +1657,7 @@ function J(e, t, n, r) {
1706
1657
  return e([{
1707
1658
  content: o.join(""),
1708
1659
  type: r
1709
- }]) ? J(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
1660
+ }]) ? q(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
1710
1661
  content: t.join(""),
1711
1662
  type: r
1712
1663
  }, {
@@ -1714,13 +1665,13 @@ function J(e, t, n, r) {
1714
1665
  type: r
1715
1666
  }]);
1716
1667
  }
1717
- l(J, "splitWordToFitWidthRecursion");
1718
- function ct(e, t) {
1668
+ a(q, "splitWordToFitWidthRecursion");
1669
+ function mt(e, t) {
1719
1670
  if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
1720
- return Y(e, t);
1671
+ return J(e, t);
1721
1672
  }
1722
- l(ct, "splitLineToFitWidth");
1723
- function Y(e, t, n = [], r = []) {
1673
+ a(mt, "splitLineToFitWidth");
1674
+ function J(e, t, n = [], r = []) {
1724
1675
  if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
1725
1676
  let i = "";
1726
1677
  e[0].content === " " && (i = " ", e.shift());
@@ -1731,40 +1682,42 @@ function Y(e, t, n = [], r = []) {
1731
1682
  if (i !== "" && o.push({
1732
1683
  content: i,
1733
1684
  type: "normal"
1734
- }), o.push(a), t(o)) return Y(e, t, n, o);
1685
+ }), o.push(a), t(o)) return J(e, t, n, o);
1735
1686
  if (r.length > 0) n.push(r), e.unshift(a);
1736
1687
  else if (a.content) {
1737
- let [r, i] = st(t, a);
1688
+ let [r, i] = pt(t, a);
1738
1689
  n.push([r]), i.content && e.unshift(i);
1739
1690
  }
1740
- return Y(e, t, n);
1691
+ return J(e, t, n);
1741
1692
  }
1742
- l(Y, "splitLineToFitWidthRecursion");
1743
- function X(e, t) {
1693
+ a(J, "splitLineToFitWidthRecursion");
1694
+ function Y(e, t) {
1744
1695
  t && e.attr("style", t);
1745
1696
  }
1746
- l(X, "applyStyle");
1747
- var lt = 16384;
1748
- async function ut(e, t, n, r, l = !1, u = o()) {
1749
- let d = e.append("foreignObject");
1750
- d.attr("width", `${Math.min(10 * n, lt)}px`), d.attr("height", `${Math.min(10 * n, lt)}px`);
1751
- let f = d.append("xhtml:div"), p = i(t.label) ? await a(t.label.replace(s.lineBreakRegex, "\n"), u) : c(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1752
- return h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${r}`), X(f, t.labelStyle), f.style("display", "table-cell"), f.style("white-space", "nowrap"), f.style("line-height", "1.5"), n !== Infinity && (f.style("max-width", n + "px"), f.style("text-align", "center")), f.attr("xmlns", "http://www.w3.org/1999/xhtml"), l && f.attr("class", "labelBkg"), (await et.measure(() => f.node().getBoundingClientRect())).width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px")), d.node();
1697
+ a(Y, "applyStyle");
1698
+ var ht = 16384;
1699
+ async function X(a, o, s, c, l = !1, u = r(), d = 0) {
1700
+ let f = a.append("foreignObject");
1701
+ f.attr("width", `${Math.min(10 * s, ht)}px`), f.attr("height", `${Math.min(10 * s, ht)}px`);
1702
+ let p = f.append("xhtml:div"), m = t(o.label) ? await e(o.label.replace(n.lineBreakRegex, "\n"), u) : i(o.label, u), h = o.isNode ? "nodeLabel" : "edgeLabel", g = p.append("span");
1703
+ g.html(m), Y(g, o.labelStyle), g.attr("class", `${h} ${c}`), Y(p, o.labelStyle), p.style("display", "table-cell"), p.style("white-space", "nowrap"), p.style("line-height", "1.5"), s !== Infinity && (p.style("max-width", s + "px"), p.style("text-align", "center")), p.attr("xmlns", "http://www.w3.org/1999/xhtml"), l && p.attr("class", "labelBkg");
1704
+ let _ = await dt.measure(() => p.node().getBoundingClientRect());
1705
+ return _.width === s ? (p.style("display", "table"), p.style("white-space", "break-spaces"), p.style("width", s + "px")) : _.width < d && (p.style("display", "table"), p.style("width", d + "px"), p.style("text-align", "center")), f.node();
1753
1706
  }
1754
- l(ut, "addHtmlSpan");
1707
+ a(X, "addHtmlSpan");
1755
1708
  function Z(e, t, n, r = !1) {
1756
1709
  let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
1757
1710
  return r && i.attr("text-anchor", "middle"), i;
1758
1711
  }
1759
- l(Z, "createTspan");
1760
- function dt(e, t, n) {
1712
+ a(Z, "createTspan");
1713
+ function gt(e, t, n) {
1761
1714
  let r = e.append("text"), i = Z(r, 1, t);
1762
1715
  $(i, n);
1763
1716
  let a = i.node().getComputedTextLength();
1764
1717
  return r.remove(), a;
1765
1718
  }
1766
- l(dt, "computeWidthOfText");
1767
- function ft(e, t, n) {
1719
+ a(gt, "computeWidthOfText");
1720
+ function _t(e, t, n) {
1768
1721
  let r = e.append("text"), i = Z(r, 1, t);
1769
1722
  $(i, [{
1770
1723
  content: n,
@@ -1773,22 +1726,22 @@ function ft(e, t, n) {
1773
1726
  let a = i.node()?.getBoundingClientRect();
1774
1727
  return a && r.remove(), a;
1775
1728
  }
1776
- l(ft, "computeDimensionOfText");
1777
- function pt(e, t, n, r = !1, i = !1) {
1778
- let a = 1.1, o = t.append("g"), s = o.insert("rect").attr("class", "background").attr("style", "stroke: none"), c = o.append("text").attr("y", "-10.1");
1779
- i && c.attr("text-anchor", "middle");
1729
+ a(_t, "computeDimensionOfText");
1730
+ function vt(e, t, n, r = !1, i = !1) {
1731
+ let o = 1.1, s = t.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
1732
+ i && l.attr("text-anchor", "middle");
1780
1733
  let u = 0;
1781
1734
  for (let t of n) {
1782
- let n = /* @__PURE__ */ l((t) => dt(o, a, t) <= e, "checkWidth"), r = n(t) ? [t] : ct(t, n);
1783
- for (let e of r) $(Z(c, u, a, i), e), u++;
1735
+ let n = /* @__PURE__ */ a((t) => gt(s, o, t) <= e, "checkWidth"), r = n(t) ? [t] : mt(t, n);
1736
+ for (let e of r) $(Z(l, u, o, i), e), u++;
1784
1737
  }
1785
1738
  if (r) {
1786
- let e = c.node().getBBox();
1787
- return s.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), o.node();
1739
+ let e = l.node().getBBox();
1740
+ return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1788
1741
  }
1789
- return c.node();
1742
+ return l.node();
1790
1743
  }
1791
- l(pt, "createFormattedText");
1744
+ a(vt, "createFormattedText");
1792
1745
  function Q(e) {
1793
1746
  return e.replace(/&(amp|lt|gt);/g, (e, t) => {
1794
1747
  switch (t) {
@@ -1799,47 +1752,47 @@ function Q(e) {
1799
1752
  }
1800
1753
  });
1801
1754
  }
1802
- l(Q, "decodeHTMLEntities");
1755
+ a(Q, "decodeHTMLEntities");
1803
1756
  function $(e, t) {
1804
1757
  e.text(""), t.forEach((t, n) => {
1805
1758
  let r = e.append("tspan").attr("font-style", t.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", t.type === "strong" ? "bold" : "normal");
1806
1759
  n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
1807
1760
  });
1808
1761
  }
1809
- l($, "updateTextContentAndStyles");
1810
- async function mt(e, t = {}) {
1762
+ a($, "updateTextContentAndStyles");
1763
+ async function yt(e, t = {}) {
1811
1764
  let n = [];
1812
- e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
1813
- let n = `${r}:${i}`;
1814
- return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${c(e, t).replace(":", " ")}'></i>`;
1765
+ e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, a) => (n.push((async () => {
1766
+ let n = `${r}:${a}`;
1767
+ return await l(n) ? await u(n, void 0, { class: "label-icon" }) : `<i class='${i(e, t).replace(":", " ")}'></i>`;
1815
1768
  })()), e));
1816
1769
  let r = await Promise.all(n);
1817
1770
  return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
1818
1771
  }
1819
- l(mt, "replaceIconSubstring");
1820
- var ht = /* @__PURE__ */ l(async (e, r = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: c = !0, markdown: l = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1821
- if (t.debug("XYZ createText", r, a, o, s, c, d, "addSvgBackground: ", p), c) {
1822
- let t = l ? at(r, m) : it(r), n = await mt(u(t), m), o = r.replace(/\\\\/g, "\\");
1823
- return await ut(e, {
1772
+ a(yt, "replaceIconSubstring");
1773
+ var bt = /* @__PURE__ */ a(async (e, n = "", { style: r = "", isTitle: i = !1, classes: a = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, minWidth: p = 0, addSvgBackground: m = !1 } = {}, h) => {
1774
+ if (o.debug("XYZ createText", n, r, i, a, l, d, "addSvgBackground: ", m), l) {
1775
+ let i = u ? rt(n, h) : nt(n), o = await yt(c(i), h), s = n.replace(/\\\\/g, "\\");
1776
+ return await X(e, {
1824
1777
  isNode: d,
1825
- label: i(r) ? o : n,
1826
- labelStyle: a.replace("fill:", "color:")
1827
- }, f, s, p, m);
1778
+ label: t(n) ? s : o,
1779
+ labelStyle: r.replace("fill:", "color:")
1780
+ }, f, a, m, h, p);
1828
1781
  }
1829
1782
  {
1830
- let t = u(r.replace(/<br\s*\/?>/g, "<br/>")), i = pt(f, e, l ? rt(t.replace("<br>", "<br/>"), m) : nt(t), r ? p : !1, !d);
1783
+ let t = c(n.replace(/<br\s*\/?>/g, "<br/>")), a = vt(f, e, u ? G(t.replace("<br>", "<br/>"), h) : tt(t), n ? m : !1, !d);
1831
1784
  if (d) {
1832
- /stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
1833
- let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1834
- n(i).attr("style", e);
1785
+ /stroke:/.exec(r) && (r = r.replace("stroke:", "lineColor:"));
1786
+ let e = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1787
+ s(a).attr("style", e);
1835
1788
  } else {
1836
- let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1837
- n(i).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1838
- let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1839
- n(i).select("text").attr("style", t);
1789
+ let e = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1790
+ s(a).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1791
+ let t = r.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1792
+ s(a).select("text").attr("style", t);
1840
1793
  }
1841
- return o ? n(i).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(i).selectAll("tspan.text-outer-tspan").classed("row", !0), i;
1794
+ return i ? s(a).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : s(a).selectAll("tspan.text-outer-tspan").classed("row", !0), a;
1842
1795
  }
1843
1796
  }, "createText");
1844
1797
  //#endregion
1845
- export { Xe as i, ht as n, et as r, ft as t };
1798
+ export { Xe as a, G as i, bt as n, dt as r, _t as t };