@sme.up/ketchup2 2.7.0 → 2.8.1

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 (288) hide show
  1. package/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
  2. package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
  3. package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
  4. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
  5. package/dist/assets/svg/functions.svg +1 -0
  6. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  7. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  8. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  9. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  10. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  11. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  12. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  13. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  14. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  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/chips-input/chips-input-types.d.ts +5 -0
  19. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  21. package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
  22. package/dist/basic-components/list/list.d.ts.map +1 -1
  23. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.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-types.d.ts +5 -0
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  28. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  29. package/dist/basic-components/select/select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
  31. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
  32. package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
  33. package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
  34. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  35. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
  36. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  37. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
  38. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
  39. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
  40. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
  41. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
  42. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
  43. package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
  44. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
  45. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  46. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
  47. package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
  48. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
  49. package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
  50. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
  51. package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
  52. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
  53. package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
  54. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
  55. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
  56. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
  57. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  58. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
  59. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
  60. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  61. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  62. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  63. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  64. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  65. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  66. package/dist/components/chat/chat.d.ts.map +1 -1
  67. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  68. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  69. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  70. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  71. package/dist/components/data-table/data-table-types.d.ts +52 -1
  72. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  73. package/dist/components/data-table/data-table.d.ts.map +1 -1
  74. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  75. package/dist/components/data-table/header/header-types.d.ts +7 -1
  76. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  77. package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
  78. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  79. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  80. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  81. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  82. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  83. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  84. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  85. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  86. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  87. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  88. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  89. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  90. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  91. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  92. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  93. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
  94. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
  95. package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
  96. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
  97. package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
  98. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
  99. package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
  100. package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
  101. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
  102. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
  103. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
  104. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
  105. package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
  106. package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
  107. package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
  108. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
  109. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
  110. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  111. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  112. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  113. package/dist/functional-components/row/row-types.d.ts +5 -0
  114. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  115. package/dist/functional-components/row/row.d.ts.map +1 -1
  116. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  117. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  118. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  119. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  120. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  121. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  122. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  123. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
  124. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
  125. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
  126. package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
  127. package/dist/index.d.ts +4 -1
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
  130. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
  131. package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
  132. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
  133. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
  134. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
  135. package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
  136. package/dist/ketchup2.css +1 -1
  137. package/dist/ketchup2.es.js +34744 -32755
  138. package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
  139. package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
  140. package/dist/locale/en/translation.json.d.ts +16 -0
  141. package/dist/locale/it/translation.json.d.ts +16 -0
  142. package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
  143. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
  144. package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
  145. package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
  146. package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
  147. package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
  148. package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
  149. package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
  150. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
  151. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
  152. package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
  153. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
  154. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
  155. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
  156. package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
  157. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
  158. package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
  159. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
  160. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
  161. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  162. package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
  163. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
  164. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
  165. package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
  166. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
  167. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
  168. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
  169. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
  170. package/dist/types/translation.d.ts +17 -1
  171. package/dist/types/translation.d.ts.map +1 -1
  172. package/dist/utils/data-structures.d.ts +2 -1
  173. package/dist/utils/data-structures.d.ts.map +1 -1
  174. package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
  175. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
  176. package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
  177. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
  178. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
  179. package/package.json +41 -38
  180. package/dist/arc-w3BipdfE.cjs +0 -1
  181. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  182. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  183. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  184. package/dist/array-DZSRzHA_.cjs +0 -1
  185. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  186. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  187. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  188. package/dist/channel-DJpMBAs-.cjs +0 -1
  189. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  190. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  191. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  192. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  193. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  194. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  195. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  196. package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
  197. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  198. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  199. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  200. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  201. package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
  202. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  203. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  204. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  205. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  206. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  207. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  208. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  209. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  210. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  211. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  212. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  213. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  214. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  215. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  216. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  217. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  218. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  219. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  220. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  221. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  222. package/dist/dagre-B2BBwKNb.cjs +0 -1
  223. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  224. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  225. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  226. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  227. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  228. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  229. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  230. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  231. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  232. package/dist/dist-D8RD2QWc.cjs +0 -1
  233. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  234. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  235. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  236. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  237. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  238. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  239. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  240. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  241. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  242. package/dist/graphlib-CkkG5MuS.cjs +0 -1
  243. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  244. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  245. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  246. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  247. package/dist/init-07zIhv_j.cjs +0 -1
  248. package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
  249. package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
  250. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  251. package/dist/katex-CkiTumqg.cjs +0 -257
  252. package/dist/ketchup2.cjs.js +0 -485
  253. package/dist/line-CzwncDY3.cjs +0 -1
  254. package/dist/linear-1lpO_WlJ.cjs +0 -1
  255. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  256. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  257. package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
  258. package/dist/ordinal-CUPR-p0T.cjs +0 -1
  259. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  260. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  261. package/dist/path-Kklx0M1v.cjs +0 -1
  262. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  263. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  264. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  265. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  266. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  267. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  268. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  269. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  270. package/dist/rough.esm-r0QOSzHM.cjs +0 -1
  271. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  272. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  273. package/dist/src-DEmZ9bFr.cjs +0 -1
  274. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  275. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  276. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  277. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  278. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  279. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  280. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  281. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  282. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  283. package/dist/v4-Dyp-SQ1c.cjs +0 -1
  284. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  285. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  286. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  287. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  288. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,228 +1,104 @@
1
- import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
- import { A as r, F as i, b as a, s as o, z as s } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { a as c } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- //#region node_modules/@iconify/utils/lib/icon/defaults.js
5
- var l = Object.freeze({
6
- left: 0,
7
- top: 0,
8
- width: 16,
9
- height: 16
10
- }), u = Object.freeze({
11
- rotate: 0,
12
- vFlip: !1,
13
- hFlip: !1
14
- }), d = Object.freeze({
15
- ...l,
16
- ...u
17
- }), f = Object.freeze({
18
- ...d,
19
- body: "",
20
- hidden: !1
21
- }), p = Object.freeze({
22
- width: null,
23
- height: null
24
- }), m = Object.freeze({
25
- ...p,
26
- ...u
27
- }), h = (e, t, n, r = "") => {
28
- let i = e.split(":");
29
- if (e.slice(0, 1) === "@") {
30
- if (i.length < 2 || i.length > 3) return null;
31
- r = i.shift().slice(1);
32
- }
33
- if (i.length > 3 || !i.length) return null;
34
- if (i.length > 1) {
35
- let e = i.pop(), n = i.pop(), a = {
36
- provider: i.length > 0 ? i[0] : r,
37
- prefix: n,
38
- name: e
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);
39
11
  };
40
- return t && !g(a) ? null : a;
41
- }
42
- let a = i[0], o = a.split("-");
43
- if (o.length > 1) {
44
- let e = {
45
- provider: r,
46
- prefix: o.shift(),
47
- name: o.join("-")
48
- };
49
- return t && !g(e) ? null : e;
50
- }
51
- if (n && r === "") {
52
- let e = {
53
- provider: r,
54
- prefix: "",
55
- name: a
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
56
38
  };
57
- return t && !g(e, n) ? null : e;
58
- }
59
- return null;
60
- }, g = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
61
- //#endregion
62
- //#region node_modules/@iconify/utils/lib/icon/transformations.js
63
- function ee(e, t) {
64
- let n = {};
65
- !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
66
- let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
67
- return r && (n.rotate = r), n;
68
- }
69
- //#endregion
70
- //#region node_modules/@iconify/utils/lib/icon/merge.js
71
- function te(e, t) {
72
- let n = ee(e, t);
73
- for (let r in f) r in u ? r in e && !(r in n) && (n[r] = u[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
74
- return n;
75
- }
76
- //#endregion
77
- //#region node_modules/@iconify/utils/lib/icon-set/tree.js
78
- function ne(e, t) {
79
- let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
80
- function a(e) {
81
- if (n[e]) return i[e] = [];
82
- if (!(e in i)) {
83
- i[e] = null;
84
- let t = r[e] && r[e].parent, n = t && a(t);
85
- n && (i[e] = [t].concat(n));
39
+ function i(e) {
40
+ e.scheduled || (e.scheduled = !0, e.raf(a.bind(null, e)));
86
41
  }
87
- return i[e];
88
- }
89
- return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
90
- }
91
- //#endregion
92
- //#region node_modules/@iconify/utils/lib/icon-set/get-icon.js
93
- function re(e, t, n) {
94
- let r = e.icons, i = e.aliases || Object.create(null), a = {};
95
- function o(e) {
96
- a = te(r[e] || i[e], a);
97
- }
98
- return o(t), n.forEach(o), te(e, a);
99
- }
100
- function ie(e, t) {
101
- if (e.icons[t]) return re(e, t, []);
102
- let n = ne(e, [t])[t];
103
- return n ? re(e, t, n) : null;
104
- }
105
- //#endregion
106
- //#region node_modules/@iconify/utils/lib/svg/size.js
107
- var ae = /(-?[0-9.]*[0-9]+[0-9.]*)/g, oe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
108
- function se(e, t, n) {
109
- if (t === 1) return e;
110
- if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
111
- if (typeof e != "string") return e;
112
- let r = e.split(ae);
113
- if (r === null || !r.length) return e;
114
- let i = [], a = r.shift(), o = oe.test(a);
115
- for (;;) {
116
- if (o) {
117
- let e = parseFloat(a);
118
- isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
119
- } else i.push(a);
120
- if (a = r.shift(), a === void 0) return i.join("");
121
- o = !o;
122
- }
123
- }
124
- //#endregion
125
- //#region node_modules/@iconify/utils/lib/svg/defs.js
126
- function ce(e, t = "defs") {
127
- let n = "", r = e.indexOf("<" + t);
128
- for (; r >= 0;) {
129
- let i = e.indexOf(">", r), a = e.indexOf("</" + t);
130
- if (i === -1 || a === -1) break;
131
- let o = e.indexOf(">", a);
132
- if (o === -1) break;
133
- n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
134
- }
135
- return {
136
- defs: n,
137
- content: e
138
- };
139
- }
140
- function le(e, t) {
141
- return e ? "<defs>" + e + "</defs>" + t : t;
142
- }
143
- function ue(e, t, n) {
144
- let r = ce(e);
145
- return le(r.defs, t + r.content + n);
146
- }
147
- //#endregion
148
- //#region node_modules/@iconify/utils/lib/svg/build.js
149
- var de = (e) => e === "unset" || e === "undefined" || e === "none";
150
- function fe(e, t) {
151
- let n = {
152
- ...d,
153
- ...e
154
- }, r = {
155
- ...m,
156
- ...t
157
- }, i = {
158
- left: n.left,
159
- top: n.top,
160
- width: n.width,
161
- height: n.height
162
- }, a = n.body;
163
- [n, r].forEach((e) => {
164
- let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
165
- n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
166
- let s;
167
- switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
168
- case 1:
169
- s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
170
- break;
171
- case 2:
172
- t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
173
- break;
174
- case 3:
175
- s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
176
- break;
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
+ }
177
53
  }
178
- o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ue(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
179
- });
180
- let o = r.width, s = r.height, c = i.width, l = i.height, u, f;
181
- o === null ? (f = s === null ? "1em" : s === "auto" ? l : s, u = se(f, c / l)) : (u = o === "auto" ? c : o, f = s === null ? se(u, l / c) : s === "auto" ? l : s);
182
- let p = {}, h = (e, t) => {
183
- de(t) || (p[e] = t.toString());
184
- };
185
- h("width", u), h("height", f);
186
- let g = [
187
- i.left,
188
- i.top,
189
- c,
190
- l
191
- ];
192
- return p.viewBox = g.join(" "), {
193
- attributes: p,
194
- viewBox: g,
195
- body: a
196
- };
197
- }
198
- //#endregion
199
- //#region node_modules/@iconify/utils/lib/svg/id.js
200
- var pe = /\sid="(\S+)"/g, me = /* @__PURE__ */ new Map();
201
- function he(e) {
202
- e = e.replace(/[0-9]+$/, "") || "a";
203
- let t = me.get(e) || 0;
204
- return me.set(e, t + 1), t ? `${e}${t}` : e;
205
- }
206
- function ge(e) {
207
- let t = [], n;
208
- for (; n = pe.exec(e);) t.push(n[1]);
209
- if (!t.length) return e;
210
- let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
211
- return t.forEach((t) => {
212
- let n = he(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
213
- e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
214
- }), e = e.replace(new RegExp(r, "g"), ""), e;
215
- }
216
- //#endregion
217
- //#region node_modules/@iconify/utils/lib/svg/html.js
218
- function _e(e, t) {
219
- let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
220
- for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
221
- return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
222
- }
223
- //#endregion
224
- //#region node_modules/marked/lib/marked.esm.js
225
- function _() {
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() {
226
102
  return {
227
103
  async: !1,
228
104
  breaks: !1,
@@ -236,22 +112,22 @@ function _() {
236
112
  walkTokens: null
237
113
  };
238
114
  }
239
- var v = _();
240
- function ve(e) {
241
- v = e;
115
+ var _ = g();
116
+ function te(e) {
117
+ _ = e;
242
118
  }
243
- var y = { exec: () => null };
244
- function b(e, t = "") {
119
+ var v = { exec: () => null };
120
+ function y(e, t = "") {
245
121
  let n = typeof e == "string" ? e : e.source, r = {
246
122
  replace: (e, t) => {
247
123
  let i = typeof t == "string" ? t : t.source;
248
- return i = i.replace(x.caret, "$1"), n = n.replace(e, i), r;
124
+ return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
249
125
  },
250
126
  getRegex: () => new RegExp(n, t)
251
127
  };
252
128
  return r;
253
129
  }
254
- var x = {
130
+ var b = {
255
131
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
256
132
  outputLinkReplace: /\\([\[\]])/g,
257
133
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -308,111 +184,113 @@ var x = {
308
184
  fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
309
185
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
310
186
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
311
- }, ye = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, xe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, S = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Se = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, C = /(?:[*+-]|\d{1,9}[.)])/, Ce = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, we = b(Ce).replace(/bull/g, C).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(), Te = b(Ce).replace(/bull/g, C).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(), w = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ee = /^[^\n]+/, T = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, De = b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", T).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Oe = b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, C).getRegex(), E = "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", D = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ke = b("^ {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", D).replace("tag", E).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ae = b(w).replace("hr", S).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", E).getRegex(), O = {
312
- blockquote: b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ae).getRegex(),
313
- code: be,
314
- def: De,
315
- fences: xe,
316
- heading: Se,
317
- hr: S,
318
- html: ke,
319
- lheading: we,
320
- list: Oe,
321
- newline: ye,
322
- paragraph: Ae,
323
- table: y,
324
- text: Ee
325
- }, je = b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", S).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", E).getRegex(), Me = {
326
- ...O,
327
- lheading: Te,
328
- table: je,
329
- paragraph: b(w).replace("hr", S).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", je).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", E).getRegex()
330
- }, Ne = {
331
- ...O,
332
- html: b("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", D).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(),
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(),
333
209
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
334
210
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
335
- fences: y,
211
+ fences: v,
336
212
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
337
- paragraph: b(w).replace("hr", S).replace("heading", " *#{1,6} *[^\n]").replace("lheading", we).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
338
- }, Pe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ie = /^( {2,}|\\)\n(?!\s*$)/, Le = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, k = /[\p{P}\p{S}]/u, A = /[\s\p{P}\p{S}]/u, Re = /[^\s\p{P}\p{S}]/u, ze = b(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, A).getRegex(), Be = /(?!~)[\p{P}\p{S}]/u, Ve = /(?!~)[\s\p{P}\p{S}]/u, He = /(?:[^\s\p{P}\p{S}]|~)/u, Ue = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, We = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ge = b(We, "u").replace(/punct/g, k).getRegex(), Ke = b(We, "u").replace(/punct/g, Be).getRegex(), qe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Je = b(qe, "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, A).replace(/punct/g, k).getRegex(), Ye = b(qe, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, Ve).replace(/punct/g, Be).getRegex(), Xe = b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, A).replace(/punct/g, k).getRegex(), Ze = b(/\\(punct)/, "gu").replace(/punct/g, k).getRegex(), Qe = b(/^<(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(), $e = b(D).replace("(?:-->|$)", "-->").getRegex(), et = b("^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", $e).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), j = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, tt = b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", j).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), nt = b(/^!?\[(label)\]\[(ref)\]/).replace("label", j).replace("ref", T).getRegex(), rt = b(/^!?\[(ref)\](?:\[\])?/).replace("ref", T).getRegex(), M = {
339
- _backpedal: y,
340
- anyPunctuation: Ze,
341
- autolink: Qe,
342
- blockSkip: Ue,
343
- br: Ie,
344
- code: Fe,
345
- del: y,
346
- emStrongLDelim: Ge,
347
- emStrongRDelimAst: Je,
348
- emStrongRDelimUnd: Xe,
349
- escape: Pe,
350
- link: tt,
351
- nolink: rt,
352
- punctuation: ze,
353
- reflink: nt,
354
- reflinkSearch: b("reflink|nolink(?!\\()", "g").replace("reflink", nt).replace("nolink", rt).getRegex(),
355
- tag: et,
356
- text: Le,
357
- url: y
358
- }, it = {
359
- ...M,
360
- link: b(/^!?\[(label)\]\((.*?)\)/).replace("label", j).getRegex(),
361
- reflink: b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", j).getRegex()
362
- }, N = {
363
- ...M,
364
- emStrongRDelimAst: Ye,
365
- emStrongLDelim: Ke,
366
- url: b(/^((?: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(),
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
234
+ }, 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(),
367
243
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
368
244
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
369
245
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
370
- }, at = {
371
- ...N,
372
- br: b(Ie).replace("{2,}", "*").getRegex(),
373
- text: b(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
246
+ }, 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
374
254
  }, P = {
375
- normal: O,
376
- gfm: Me,
377
- pedantic: Ne
378
- }, F = {
379
- normal: M,
380
- gfm: N,
381
- breaks: at,
382
- pedantic: it
383
- }, ot = {
255
+ normal: j,
256
+ gfm: M,
257
+ breaks: He,
258
+ pedantic: Ve
259
+ }, Ue = {
384
260
  "&": "&amp;",
385
261
  "<": "&lt;",
386
262
  ">": "&gt;",
387
263
  "\"": "&quot;",
388
264
  "'": "&#39;"
389
- }, st = (e) => ot[e];
390
- function I(e, t) {
265
+ }, We = (e) => Ue[e];
266
+ function F(e, t) {
391
267
  if (t) {
392
- if (x.escapeTest.test(e)) return e.replace(x.escapeReplace, st);
393
- } else if (x.escapeTestNoEncode.test(e)) return e.replace(x.escapeReplaceNoEncode, st);
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);
394
270
  return e;
395
271
  }
396
- function ct(e) {
272
+ function Ge(e) {
397
273
  try {
398
- e = encodeURI(e).replace(x.percentDecode, "%");
274
+ e = encodeURI(e).replace(b.percentDecode, "%");
399
275
  } catch {
400
276
  return null;
401
277
  }
402
278
  return e;
403
279
  }
404
- function lt(e, t) {
405
- let n = e.replace(x.findPipe, (e, t, n) => {
280
+ function Ke(e, t) {
281
+ let n = e.replace(b.findPipe, (e, t, n) => {
406
282
  let r = !1, i = t;
407
283
  for (; --i >= 0 && n[i] === "\\";) r = !r;
408
284
  return r ? "|" : " |";
409
- }).split(x.splitPipe), r = 0;
410
- if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
411
- else for (; n.length < t;) n.push("");
412
- for (; r < n.length; r++) n[r] = n[r].trim().replace(x.slashPipe, "|");
285
+ }).split(b.splitPipe), r = 0;
286
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
287
+ if (n.length > t) n.splice(t);
288
+ else for (; n.length < t;) n.push("");
289
+ }
290
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
413
291
  return n;
414
292
  }
415
- function L(e, t, n) {
293
+ function I(e, t, n) {
416
294
  let r = e.length;
417
295
  if (r === 0) return "";
418
296
  let i = 0;
@@ -424,7 +302,7 @@ function L(e, t, n) {
424
302
  }
425
303
  return e.slice(0, r - i);
426
304
  }
427
- function ut(e, t) {
305
+ function qe(e, t) {
428
306
  if (e.indexOf(t[1]) === -1) return -1;
429
307
  let n = 0;
430
308
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -432,7 +310,7 @@ function ut(e, t) {
432
310
  else if (e[r] === t[1] && (n--, n < 0)) return r;
433
311
  return n > 0 ? -2 : -1;
434
312
  }
435
- function dt(e, t, n, r, i) {
313
+ function Je(e, t, n, r, i) {
436
314
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
437
315
  r.state.inLink = !0;
438
316
  let c = {
@@ -445,7 +323,7 @@ function dt(e, t, n, r, i) {
445
323
  };
446
324
  return r.state.inLink = !1, c;
447
325
  }
448
- function ft(e, t, n) {
326
+ function Ye(e, t, n) {
449
327
  let r = e.match(n.other.indentCodeCompensation);
450
328
  if (r === null) return t;
451
329
  let i = r[1];
@@ -456,12 +334,12 @@ function ft(e, t, n) {
456
334
  return r.length >= i.length ? e.slice(i.length) : e;
457
335
  }).join("\n");
458
336
  }
459
- var R = class {
337
+ var L = class {
460
338
  options;
461
339
  rules;
462
340
  lexer;
463
341
  constructor(e) {
464
- this.options = e || v;
342
+ this.options = e || _;
465
343
  }
466
344
  space(e) {
467
345
  let t = this.rules.block.newline.exec(e);
@@ -478,14 +356,14 @@ var R = class {
478
356
  type: "code",
479
357
  raw: t[0],
480
358
  codeBlockStyle: "indented",
481
- text: this.options.pedantic ? e : L(e, "\n")
359
+ text: this.options.pedantic ? e : I(e, "\n")
482
360
  };
483
361
  }
484
362
  }
485
363
  fences(e) {
486
364
  let t = this.rules.block.fences.exec(e);
487
365
  if (t) {
488
- let e = t[0], n = ft(e, t[3] || "", this.rules);
366
+ let e = t[0], n = Ye(e, t[3] || "", this.rules);
489
367
  return {
490
368
  type: "code",
491
369
  raw: e,
@@ -499,7 +377,7 @@ var R = class {
499
377
  if (t) {
500
378
  let e = t[2].trim();
501
379
  if (this.rules.other.endingHash.test(e)) {
502
- let t = L(e, "#");
380
+ let t = I(e, "#");
503
381
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
504
382
  }
505
383
  return {
@@ -515,13 +393,13 @@ var R = class {
515
393
  let t = this.rules.block.hr.exec(e);
516
394
  if (t) return {
517
395
  type: "hr",
518
- raw: L(t[0], "\n")
396
+ raw: I(t[0], "\n")
519
397
  };
520
398
  }
521
399
  blockquote(e) {
522
400
  let t = this.rules.block.blockquote.exec(e);
523
401
  if (t) {
524
- let e = L(t[0], "\n").split("\n"), n = "", r = "", i = [];
402
+ let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
525
403
  for (; e.length > 0;) {
526
404
  let t = !1, a = [], o;
527
405
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -540,7 +418,8 @@ ${c}` : c;
540
418
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
541
419
  i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
542
420
  break;
543
- } else if (u?.type === "list") {
421
+ }
422
+ if (u?.type === "list") {
544
423
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
545
424
  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");
546
425
  continue;
@@ -635,7 +514,7 @@ ${c}` : c;
635
514
  table(e) {
636
515
  let t = this.rules.block.table.exec(e);
637
516
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
638
- let n = lt(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
517
+ let n = Ke(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
639
518
  type: "table",
640
519
  raw: t[0],
641
520
  header: [],
@@ -650,7 +529,7 @@ ${c}` : c;
650
529
  header: !0,
651
530
  align: a.align[e]
652
531
  });
653
- for (let e of i) a.rows.push(lt(e, a.header.length).map((e, t) => ({
532
+ for (let e of i) a.rows.push(Ke(e, a.header.length).map((e, t) => ({
654
533
  text: e,
655
534
  tokens: this.lexer.inline(e),
656
535
  header: !1,
@@ -715,10 +594,10 @@ ${c}` : c;
715
594
  let e = t[2].trim();
716
595
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
717
596
  if (!this.rules.other.endAngleBracket.test(e)) return;
718
- let t = L(e.slice(0, -1), "\\");
597
+ let t = I(e.slice(0, -1), "\\");
719
598
  if ((e.length - t.length) % 2 == 0) return;
720
599
  } else {
721
- let e = ut(t[2], "()");
600
+ let e = qe(t[2], "()");
722
601
  if (e === -2) return;
723
602
  if (e > -1) {
724
603
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -730,7 +609,7 @@ ${c}` : c;
730
609
  let e = this.rules.other.pedanticHrefTitle.exec(n);
731
610
  e && (n = e[1], r = e[3]);
732
611
  } else r = t[3] ? t[3].slice(1, -1) : "";
733
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), dt(t, {
612
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Je(t, {
734
613
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
735
614
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
736
615
  }, t[0], this.lexer, this.rules);
@@ -748,7 +627,7 @@ ${c}` : c;
748
627
  text: e
749
628
  };
750
629
  }
751
- return dt(n, e, n[0], this.lexer, this.rules);
630
+ return Je(n, e, n[0], this.lexer, this.rules);
752
631
  }
753
632
  }
754
633
  emStrong(e, t, n = "") {
@@ -760,7 +639,8 @@ ${c}` : c;
760
639
  if (a = [...i].length, r[3] || r[4]) {
761
640
  o += a;
762
641
  continue;
763
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
642
+ }
643
+ if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
764
644
  s += a;
765
645
  continue;
766
646
  }
@@ -867,29 +747,29 @@ ${c}` : c;
867
747
  };
868
748
  }
869
749
  }
870
- }, z = class e {
750
+ }, R = class e {
871
751
  tokens;
872
752
  options;
873
753
  state;
874
754
  tokenizer;
875
755
  inlineQueue;
876
756
  constructor(e) {
877
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || v, this.options.tokenizer = this.options.tokenizer || new R(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
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 = {
878
758
  inLink: !1,
879
759
  inRawBlock: !1,
880
760
  top: !0
881
761
  };
882
762
  let t = {
883
- other: x,
884
- block: P.normal,
885
- inline: F.normal
763
+ other: b,
764
+ block: N.normal,
765
+ inline: P.normal
886
766
  };
887
- this.options.pedantic ? (t.block = P.pedantic, t.inline = F.pedantic) : this.options.gfm && (t.block = P.gfm, this.options.breaks ? t.inline = F.breaks : t.inline = F.gfm), this.tokenizer.rules = t;
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;
888
768
  }
889
769
  static get rules() {
890
770
  return {
891
- block: P,
892
- inline: F
771
+ block: N,
772
+ inline: P
893
773
  };
894
774
  }
895
775
  static lex(t, n) {
@@ -899,7 +779,7 @@ ${c}` : c;
899
779
  return new e(n).inlineTokens(t);
900
780
  }
901
781
  lex(e) {
902
- e = e.replace(x.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
782
+ e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
903
783
  for (let e = 0; e < this.inlineQueue.length; e++) {
904
784
  let t = this.inlineQueue[e];
905
785
  this.inlineTokens(t.src, t.tokens);
@@ -907,7 +787,7 @@ ${c}` : c;
907
787
  return this.inlineQueue = [], this.tokens;
908
788
  }
909
789
  blockTokens(e, t = [], n = !1) {
910
- for (this.options.pedantic && (e = e.replace(x.tabCharGlobal, " ").replace(x.spaceLine, "")); e;) {
790
+ for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
911
791
  let r;
912
792
  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;
913
793
  if (r = this.tokenizer.space(e)) {
@@ -965,10 +845,10 @@ ${c}` : c;
965
845
  }
966
846
  let i = e;
967
847
  if (this.options.extensions?.startBlock) {
968
- let t = Infinity, n = e.slice(1), r;
848
+ let t = 1 / 0, n = e.slice(1), r;
969
849
  this.options.extensions.startBlock.forEach((e) => {
970
850
  r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
971
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
851
+ }), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
972
852
  }
973
853
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
974
854
  let a = t.at(-1);
@@ -986,7 +866,8 @@ ${c}` : c;
986
866
  if (this.options.silent) {
987
867
  console.error(t);
988
868
  break;
989
- } else throw Error(t);
869
+ }
870
+ throw Error(t);
990
871
  }
991
872
  }
992
873
  return this.state.top = !0, t;
@@ -1055,10 +936,10 @@ ${c}` : c;
1055
936
  }
1056
937
  let o = e;
1057
938
  if (this.options.extensions?.startInline) {
1058
- let t = Infinity, n = e.slice(1), r;
939
+ let t = 1 / 0, n = e.slice(1), r;
1059
940
  this.options.extensions.startInline.forEach((e) => {
1060
941
  r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
1061
- }), t < Infinity && t >= 0 && (o = e.substring(0, t + 1));
942
+ }), t < 1 / 0 && t >= 0 && (o = e.substring(0, t + 1));
1062
943
  }
1063
944
  if (r = this.tokenizer.inlineText(o)) {
1064
945
  e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (a = r.raw.slice(-1)), i = !0;
@@ -1071,23 +952,24 @@ ${c}` : c;
1071
952
  if (this.options.silent) {
1072
953
  console.error(t);
1073
954
  break;
1074
- } else throw Error(t);
955
+ }
956
+ throw Error(t);
1075
957
  }
1076
958
  }
1077
959
  return t;
1078
960
  }
1079
- }, B = class {
961
+ }, z = class {
1080
962
  options;
1081
963
  parser;
1082
964
  constructor(e) {
1083
- this.options = e || v;
965
+ this.options = e || _;
1084
966
  }
1085
967
  space(e) {
1086
968
  return "";
1087
969
  }
1088
970
  code({ text: e, lang: t, escaped: n }) {
1089
- let r = (t || "").match(x.notSpaceStart)?.[0], i = e.replace(x.endingNewline, "") + "\n";
1090
- return r ? "<pre><code class=\"language-" + I(r) + "\">" + (n ? i : I(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : I(i, !0)) + "</code></pre>\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";
1091
973
  }
1092
974
  blockquote({ tokens: e }) {
1093
975
  return `<blockquote>
@@ -1120,7 +1002,7 @@ ${this.parser.parse(e)}</blockquote>
1120
1002
  let t = "";
1121
1003
  if (e.task) {
1122
1004
  let n = this.checkbox({ checked: !!e.checked });
1123
- 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 + " " + I(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
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({
1124
1006
  type: "text",
1125
1007
  raw: n + " ",
1126
1008
  text: n + " ",
@@ -1167,7 +1049,7 @@ ${e}</tr>
1167
1049
  return `<em>${this.parser.parseInline(e)}</em>`;
1168
1050
  }
1169
1051
  codespan({ text: e }) {
1170
- return `<code>${I(e, !0)}</code>`;
1052
+ return `<code>${F(e, !0)}</code>`;
1171
1053
  }
1172
1054
  br(e) {
1173
1055
  return "<br>";
@@ -1176,24 +1058,24 @@ ${e}</tr>
1176
1058
  return `<del>${this.parser.parseInline(e)}</del>`;
1177
1059
  }
1178
1060
  link({ href: e, title: t, tokens: n }) {
1179
- let r = this.parser.parseInline(n), i = ct(e);
1061
+ let r = this.parser.parseInline(n), i = Ge(e);
1180
1062
  if (i === null) return r;
1181
1063
  e = i;
1182
1064
  let a = "<a href=\"" + e + "\"";
1183
- return t && (a += " title=\"" + I(t) + "\""), a += ">" + r + "</a>", a;
1065
+ return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
1184
1066
  }
1185
1067
  image({ href: e, title: t, text: n, tokens: r }) {
1186
1068
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1187
- let i = ct(e);
1188
- if (i === null) return I(n);
1069
+ let i = Ge(e);
1070
+ if (i === null) return F(n);
1189
1071
  e = i;
1190
1072
  let a = `<img src="${e}" alt="${n}"`;
1191
- return t && (a += ` title="${I(t)}"`), a += ">", a;
1073
+ return t && (a += ` title="${F(t)}"`), a += ">", a;
1192
1074
  }
1193
1075
  text(e) {
1194
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : I(e.text);
1076
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
1195
1077
  }
1196
- }, V = class {
1078
+ }, B = class {
1197
1079
  strong({ text: e }) {
1198
1080
  return e;
1199
1081
  }
@@ -1221,12 +1103,12 @@ ${e}</tr>
1221
1103
  br() {
1222
1104
  return "";
1223
1105
  }
1224
- }, H = class e {
1106
+ }, V = class e {
1225
1107
  options;
1226
1108
  renderer;
1227
1109
  textRenderer;
1228
1110
  constructor(e) {
1229
- this.options = e || v, this.options.renderer = this.options.renderer || new B(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new V();
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();
1230
1112
  }
1231
1113
  static parse(t, n) {
1232
1114
  return new e(n).parse(t);
@@ -1292,7 +1174,7 @@ ${e}</tr>
1292
1174
  case "text": {
1293
1175
  let i = a, o = this.renderer.text(i);
1294
1176
  for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
1295
- t ? n += this.renderer.paragraph({
1177
+ n += t ? this.renderer.paragraph({
1296
1178
  type: "paragraph",
1297
1179
  raw: o,
1298
1180
  text: o,
@@ -1302,7 +1184,7 @@ ${e}</tr>
1302
1184
  text: o,
1303
1185
  escaped: !0
1304
1186
  }]
1305
- }) : n += o;
1187
+ }) : o;
1306
1188
  continue;
1307
1189
  }
1308
1190
  default: {
@@ -1377,19 +1259,19 @@ ${e}</tr>
1377
1259
  }
1378
1260
  return n;
1379
1261
  }
1380
- }, U = class {
1262
+ }, H = class {
1381
1263
  options;
1382
1264
  block;
1383
1265
  constructor(e) {
1384
- this.options = e || v;
1266
+ this.options = e || _;
1385
1267
  }
1386
- static passThroughHooks = new Set([
1268
+ static passThroughHooks = /* @__PURE__ */ new Set([
1387
1269
  "preprocess",
1388
1270
  "postprocess",
1389
1271
  "processAllTokens",
1390
1272
  "emStrongMask"
1391
1273
  ]);
1392
- static passThroughHooksRespectAsync = new Set([
1274
+ static passThroughHooksRespectAsync = /* @__PURE__ */ new Set([
1393
1275
  "preprocess",
1394
1276
  "postprocess",
1395
1277
  "processAllTokens"
@@ -1407,22 +1289,22 @@ ${e}</tr>
1407
1289
  return e;
1408
1290
  }
1409
1291
  provideLexer() {
1410
- return this.block ? z.lex : z.lexInline;
1292
+ return this.block ? R.lex : R.lexInline;
1411
1293
  }
1412
1294
  provideParser() {
1413
- return this.block ? H.parse : H.parseInline;
1295
+ return this.block ? V.parse : V.parseInline;
1414
1296
  }
1415
- }, W = new class {
1416
- defaults = _();
1297
+ }, U = new class {
1298
+ defaults = g();
1417
1299
  options = this.setOptions;
1418
1300
  parse = this.parseMarkdown(!0);
1419
1301
  parseInline = this.parseMarkdown(!1);
1420
- Parser = H;
1421
- Renderer = B;
1422
- TextRenderer = V;
1423
- Lexer = z;
1424
- Tokenizer = R;
1425
- Hooks = U;
1302
+ Parser = V;
1303
+ Renderer = z;
1304
+ TextRenderer = B;
1305
+ Lexer = R;
1306
+ Tokenizer = L;
1307
+ Hooks = H;
1426
1308
  constructor(...e) {
1427
1309
  this.use(...e);
1428
1310
  }
@@ -1443,7 +1325,7 @@ ${e}</tr>
1443
1325
  default: {
1444
1326
  let e = r;
1445
1327
  this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1446
- let i = e[r].flat(Infinity);
1328
+ let i = e[r].flat(1 / 0);
1447
1329
  n = n.concat(this.walkTokens(i, t));
1448
1330
  }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1449
1331
  }
@@ -1473,7 +1355,7 @@ ${e}</tr>
1473
1355
  }
1474
1356
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1475
1357
  }), n.extensions = t), e.renderer) {
1476
- let t = this.defaults.renderer || new B(this.defaults);
1358
+ let t = this.defaults.renderer || new z(this.defaults);
1477
1359
  for (let n in e.renderer) {
1478
1360
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1479
1361
  if (["options", "parser"].includes(n)) continue;
@@ -1486,7 +1368,7 @@ ${e}</tr>
1486
1368
  n.renderer = t;
1487
1369
  }
1488
1370
  if (e.tokenizer) {
1489
- let t = this.defaults.tokenizer || new R(this.defaults);
1371
+ let t = this.defaults.tokenizer || new L(this.defaults);
1490
1372
  for (let n in e.tokenizer) {
1491
1373
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1492
1374
  if ([
@@ -1503,16 +1385,16 @@ ${e}</tr>
1503
1385
  n.tokenizer = t;
1504
1386
  }
1505
1387
  if (e.hooks) {
1506
- let t = this.defaults.hooks || new U();
1388
+ let t = this.defaults.hooks || new H();
1507
1389
  for (let n in e.hooks) {
1508
1390
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1509
1391
  if (["options", "block"].includes(n)) continue;
1510
1392
  let r = n, i = e.hooks[r], a = t[r];
1511
- U.passThroughHooks.has(n) ? t[r] = (e) => {
1512
- if (this.defaults.async && U.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
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));
1513
1395
  let r = i.call(t, e);
1514
1396
  return a.call(t, r);
1515
- } : t[r] = (...e) => {
1397
+ } : (...e) => {
1516
1398
  let n = i.apply(t, e);
1517
1399
  return n === !1 && (n = a.apply(t, e)), n;
1518
1400
  };
@@ -1539,10 +1421,10 @@ ${e}</tr>
1539
1421
  }, this;
1540
1422
  }
1541
1423
  lexer(e, t) {
1542
- return z.lex(e, t ?? this.defaults);
1424
+ return R.lex(e, t ?? this.defaults);
1543
1425
  }
1544
1426
  parser(e, t) {
1545
- return H.parse(e, t ?? this.defaults);
1427
+ return V.parse(e, t ?? this.defaults);
1546
1428
  }
1547
1429
  parseMarkdown(e) {
1548
1430
  return (t, n) => {
@@ -1554,7 +1436,7 @@ ${e}</tr>
1554
1436
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1555
1437
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1556
1438
  i.hooks && (i.hooks.options = i, i.hooks.block = e);
1557
- let o = i.hooks ? i.hooks.provideLexer() : e ? z.lex : z.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? H.parse : H.parseInline;
1439
+ let o = i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline;
1558
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);
1559
1441
  try {
1560
1442
  i.hooks && (t = i.hooks.preprocess(t));
@@ -1570,7 +1452,7 @@ ${e}</tr>
1570
1452
  onError(e, t) {
1571
1453
  return (n) => {
1572
1454
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1573
- let e = "<p>An error occurred:</p><pre>" + I(n.message + "", !0) + "</pre>";
1455
+ let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
1574
1456
  return t ? Promise.resolve(e) : e;
1575
1457
  }
1576
1458
  if (t) return Promise.reject(n);
@@ -1578,19 +1460,19 @@ ${e}</tr>
1578
1460
  };
1579
1461
  }
1580
1462
  }();
1581
- function G(e, t) {
1582
- return W.parse(e, t);
1463
+ function W(e, t) {
1464
+ return U.parse(e, t);
1583
1465
  }
1584
- G.options = G.setOptions = function(e) {
1585
- return W.setOptions(e), G.defaults = W.defaults, ve(G.defaults), G;
1586
- }, G.getDefaults = _, G.defaults = v, G.use = function(...e) {
1587
- return W.use(...e), G.defaults = W.defaults, ve(G.defaults), G;
1588
- }, G.walkTokens = function(e, t) {
1589
- return W.walkTokens(e, t);
1590
- }, G.parseInline = W.parseInline, G.Parser = H, G.parser = H.parse, G.Renderer = B, G.TextRenderer = V, G.Lexer = z, G.lexer = z.lex, G.Tokenizer = R, G.Hooks = U, G.parse = G, G.options, G.setOptions, G.use, G.walkTokens, G.parseInline, H.parse, z.lex;
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;
1591
1473
  //#endregion
1592
1474
  //#region node_modules/ts-dedent/esm/index.js
1593
- function pt(e) {
1475
+ function Xe(e) {
1594
1476
  var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
1595
1477
  n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
1596
1478
  var r = n.reduce(function(e, t) {
@@ -1615,119 +1497,203 @@ function pt(e) {
1615
1497
  }), a;
1616
1498
  }
1617
1499
  //#endregion
1618
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.mjs
1619
- var mt = {
1620
- body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
1621
- height: 80,
1622
- width: 80
1623
- }, K = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ t((t) => {
1624
- for (let n of t) {
1625
- if (!n.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
1626
- if (e.debug("Registering icon pack:", n.name), "loader" in n) ht.set(n.name, n.loader);
1627
- else if ("icons" in n) K.set(n.name, n.icons);
1628
- else throw e.error("Invalid icon loader:", n), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
1629
- }
1630
- }, "registerIconPacks"), _t = /* @__PURE__ */ t(async (t, n) => {
1631
- let r = h(t, !0, n !== void 0);
1632
- if (!r) throw Error(`Invalid icon name: ${t}`);
1633
- let i = r.prefix || n;
1634
- if (!i) throw Error(`Icon name must contain a prefix: ${t}`);
1635
- let a = K.get(i);
1636
- if (!a) {
1637
- let t = ht.get(i);
1638
- if (!t) throw Error(`Icon set not found: ${r.prefix}`);
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 = {
1502
+ parse: "tertiary",
1503
+ prepare: "secondary",
1504
+ measure: "primary",
1505
+ layout: "primary-dark",
1506
+ layoutCore: "error",
1507
+ draw: "primary-light",
1508
+ paint: "secondary-dark",
1509
+ serialize: "tertiary-dark",
1510
+ render: "primary-light"
1511
+ };
1512
+ (class {
1513
+ constructor() {
1514
+ this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
1515
+ }
1516
+ static {
1517
+ l(this, "Profiler");
1518
+ }
1519
+ enable() {
1520
+ return this.enabled = !0, this;
1521
+ }
1522
+ disable() {
1523
+ return this.enabled = !1, this;
1524
+ }
1525
+ start(e) {
1526
+ this.enabled && (this.roots = [], this.stack = [], this.buckets = {}, this.begin(e));
1527
+ }
1528
+ tickSync(e, t) {
1529
+ if (!this.enabled) return t();
1530
+ let n = K();
1639
1531
  try {
1640
- a = {
1641
- ...await t(),
1642
- prefix: i
1643
- }, K.set(i, a);
1644
- } catch (t) {
1645
- throw e.error(t), Error(`Failed to load icon set: ${r.prefix}`);
1532
+ return t();
1533
+ } finally {
1534
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1646
1535
  }
1647
1536
  }
1648
- let o = ie(a, r.name);
1649
- if (!o) throw Error(`Icon not found: ${t}`);
1650
- return o;
1651
- }, "getRegisteredIconData"), vt = /* @__PURE__ */ t(async (e) => {
1652
- try {
1653
- return await _t(e), !0;
1654
- } catch {
1655
- return !1;
1537
+ async tick(e, t) {
1538
+ if (!this.enabled) return t();
1539
+ let n = K();
1540
+ try {
1541
+ return await t();
1542
+ } finally {
1543
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1544
+ }
1656
1545
  }
1657
- }, "isIconAvailable"), yt = /* @__PURE__ */ t(async (t, n, r) => {
1658
- let i;
1659
- try {
1660
- i = await _t(t, n?.fallbackPrefix);
1661
- } catch (t) {
1662
- e.error(t), i = mt;
1663
- }
1664
- let o = fe(i, n);
1665
- return s(_e(ge(o.body), {
1666
- ...o.attributes,
1667
- ...r
1668
- }), a());
1669
- }, "getIconSVG");
1670
- function bt(e, { markdownAutoWrap: t }) {
1671
- return pt(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1546
+ stop() {
1547
+ if (!this.enabled) return;
1548
+ for (; this.stack.length > 0;) this.end();
1549
+ let e = this.roots.at(-1), t = this.runLabel ?? e?.name;
1550
+ return e && (this.records.push({
1551
+ label: t ?? e.name,
1552
+ tree: e,
1553
+ buckets: { ...this.buckets }
1554
+ }), this.records.length > this.maxRecords && this.records.splice(0, this.records.length - this.maxRecords), this.autoPrint && this.printSummary(e, t)), this.runLabel = void 0, e;
1555
+ }
1556
+ begin(e) {
1557
+ if (!this.enabled) return;
1558
+ let t = {
1559
+ name: e,
1560
+ start: K(),
1561
+ duration: -1,
1562
+ children: []
1563
+ }, 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`);
1566
+ } catch {}
1567
+ }
1568
+ end() {
1569
+ if (!this.enabled) return;
1570
+ let e = this.stack.pop();
1571
+ 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}`, {
1575
+ start: e.start,
1576
+ end: t,
1577
+ detail: { devtools: {
1578
+ dataType: "track-entry",
1579
+ track: Ze,
1580
+ trackGroup: Qe,
1581
+ color: $e[e.name] ?? "primary",
1582
+ tooltipText: `${e.name} \u2014 ${e.duration.toFixed(1)} ms`
1583
+ } }
1584
+ });
1585
+ } catch {}
1586
+ }
1587
+ async span(e, t) {
1588
+ if (!this.enabled) return t();
1589
+ this.begin(e);
1590
+ try {
1591
+ return await t();
1592
+ } finally {
1593
+ this.end();
1594
+ }
1595
+ }
1596
+ report() {
1597
+ return this.records.at(-1)?.tree ?? this.roots.at(-1);
1598
+ }
1599
+ clear() {
1600
+ this.records.length = 0, this.roots = [], this.stack = [], this.runLabel = void 0;
1601
+ }
1602
+ reset() {
1603
+ this.roots = [], this.stack = [];
1604
+ }
1605
+ printSummary(e = this.report(), t) {
1606
+ 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);
1611
+ if (e.children.length > 0) {
1612
+ let t = e.children.reduce((e, t) => e + t.duration, 0), n = e.duration - t;
1613
+ if (n > .5) {
1614
+ let e = n.toFixed(1).padStart(8);
1615
+ i.push(`${e} ${r} (self)`);
1616
+ }
1617
+ }
1618
+ }, "walk");
1619
+ a(e, 0);
1620
+ let o = Object.keys(this.buckets);
1621
+ if (o.length > 0) {
1622
+ i.push("—— buckets (summed) ——");
1623
+ for (let e of o) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
1624
+ }
1625
+ console.log(`${q}mermaid render profile \xB7 ${r}
1626
+ ${i.join("\n")}`);
1627
+ }
1628
+ }), globalThis.injected ??= {
1629
+ includeLargeFeatures: !0,
1630
+ profiling: !1,
1631
+ version: "0.0.0"
1632
+ };
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 }) {
1637
+ return Xe(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1672
1638
  }
1673
- t(bt, "preprocessMarkdown");
1674
- function xt(e) {
1639
+ l(tt, "preprocessMarkdown");
1640
+ function nt(e) {
1675
1641
  return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
1676
1642
  content: e,
1677
1643
  type: "normal"
1678
1644
  })) ?? []);
1679
1645
  }
1680
- t(xt, "nonMarkdownToLines");
1681
- function St(e, n = {}) {
1682
- let r = bt(e, n), i = G.lexer(r), a = [[]], o = 0;
1683
- function s(e, t = "normal") {
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") {
1684
1650
  e.type === "text" ? e.text.split("\n").forEach((e, n) => {
1685
- n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
1686
- e = e.replace(/&#39;/g, "'"), e && a[o].push({
1651
+ n !== 0 && (a++, i.push([])), e.split(" ").forEach((e) => {
1652
+ e = e.replace(/&#39;/g, "'"), e && i[a].push({
1687
1653
  content: e,
1688
1654
  type: t
1689
1655
  });
1690
1656
  });
1691
1657
  }) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
1692
- s(t, e.type);
1693
- }) : e.type === "html" && a[o].push({
1658
+ o(t, e.type);
1659
+ }) : e.type === "html" && i[a].push({
1694
1660
  content: e.text,
1695
1661
  type: "normal"
1696
1662
  });
1697
1663
  }
1698
- return t(s, "processNode"), i.forEach((e) => {
1664
+ return l(o, "processNode"), r.forEach((e) => {
1699
1665
  e.type === "paragraph" ? e.tokens?.forEach((e) => {
1700
- s(e);
1701
- }) : e.type === "html" ? a[o].push({
1666
+ o(e);
1667
+ }) : e.type === "html" ? i[a].push({
1702
1668
  content: e.text,
1703
1669
  type: "normal"
1704
- }) : a[o].push({
1670
+ }) : i[a].push({
1705
1671
  content: e.raw,
1706
1672
  type: "normal"
1707
1673
  });
1708
- }), a;
1674
+ }), i;
1709
1675
  }
1710
- t(St, "markdownToLines");
1711
- function Ct(e) {
1676
+ l(rt, "markdownToLines");
1677
+ function it(e) {
1712
1678
  return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
1713
1679
  }
1714
- t(Ct, "nonMarkdownToHTML");
1715
- function wt(n, { markdownAutoWrap: r } = {}) {
1716
- let i = G.lexer(n);
1717
- function a(t) {
1718
- return t.type === "text" ? r === !1 ? t.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : t.text.replace(/\n */g, "<br/>") : t.type === "strong" ? `<strong>${t.tokens?.map(a).join("")}</strong>` : t.type === "em" ? `<em>${t.tokens?.map(a).join("")}</em>` : t.type === "paragraph" ? `<p>${t.tokens?.map(a).join("")}</p>` : t.type === "space" ? "" : t.type === "html" ? `${t.text}` : t.type === "escape" ? t.text : (e.warn(`Unsupported markdown: ${t.type}`), t.raw);
1680
+ l(it, "nonMarkdownToHTML");
1681
+ function at(e, { markdownAutoWrap: n } = {}) {
1682
+ let r = W.lexer(e);
1683
+ 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);
1719
1685
  }
1720
- return t(a, "output"), i.map(a).join("");
1686
+ return l(i, "output"), r.map(i).join("");
1721
1687
  }
1722
- t(wt, "markdownToHTML");
1723
- function Tt(e) {
1688
+ l(at, "markdownToHTML");
1689
+ function ot(e) {
1724
1690
  return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
1725
1691
  }
1726
- t(Tt, "splitTextToChars");
1727
- function q(e, t) {
1728
- return J(e, [], Tt(t.content), t.type);
1692
+ l(ot, "splitTextToChars");
1693
+ function st(e, t) {
1694
+ return J(e, [], ot(t.content), t.type);
1729
1695
  }
1730
- t(q, "splitWordToFitWidth");
1696
+ l(st, "splitWordToFitWidth");
1731
1697
  function J(e, t, n, r) {
1732
1698
  if (n.length === 0) return [{
1733
1699
  content: t.join(""),
@@ -1748,12 +1714,12 @@ function J(e, t, n, r) {
1748
1714
  type: r
1749
1715
  }]);
1750
1716
  }
1751
- t(J, "splitWordToFitWidthRecursion");
1752
- function Et(e, t) {
1717
+ l(J, "splitWordToFitWidthRecursion");
1718
+ function ct(e, t) {
1753
1719
  if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
1754
1720
  return Y(e, t);
1755
1721
  }
1756
- t(Et, "splitLineToFitWidth");
1722
+ l(ct, "splitLineToFitWidth");
1757
1723
  function Y(e, t, n = [], r = []) {
1758
1724
  if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
1759
1725
  let i = "";
@@ -1768,39 +1734,37 @@ function Y(e, t, n = [], r = []) {
1768
1734
  }), o.push(a), t(o)) return Y(e, t, n, o);
1769
1735
  if (r.length > 0) n.push(r), e.unshift(a);
1770
1736
  else if (a.content) {
1771
- let [r, i] = q(t, a);
1737
+ let [r, i] = st(t, a);
1772
1738
  n.push([r]), i.content && e.unshift(i);
1773
1739
  }
1774
1740
  return Y(e, t, n);
1775
1741
  }
1776
- t(Y, "splitLineToFitWidthRecursion");
1742
+ l(Y, "splitLineToFitWidthRecursion");
1777
1743
  function X(e, t) {
1778
1744
  t && e.attr("style", t);
1779
1745
  }
1780
- t(X, "applyStyle");
1781
- var Dt = 16384;
1782
- async function Ot(e, t, n, c, l = !1, u = a()) {
1746
+ l(X, "applyStyle");
1747
+ var lt = 16384;
1748
+ async function ut(e, t, n, r, l = !1, u = o()) {
1783
1749
  let d = e.append("foreignObject");
1784
- d.attr("width", `${Math.min(10 * n, Dt)}px`), d.attr("height", `${Math.min(10 * n, Dt)}px`);
1785
- let f = d.append("xhtml:div"), p = r(t.label) ? await i(t.label.replace(o.lineBreakRegex, "\n"), u) : s(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1786
- h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${c}`), 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");
1787
- let g = f.node().getBoundingClientRect();
1788
- return g.width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px"), g = f.node().getBoundingClientRect()), d.node();
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();
1789
1753
  }
1790
- t(Ot, "addHtmlSpan");
1754
+ l(ut, "addHtmlSpan");
1791
1755
  function Z(e, t, n, r = !1) {
1792
1756
  let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
1793
1757
  return r && i.attr("text-anchor", "middle"), i;
1794
1758
  }
1795
- t(Z, "createTspan");
1796
- function kt(e, t, n) {
1759
+ l(Z, "createTspan");
1760
+ function dt(e, t, n) {
1797
1761
  let r = e.append("text"), i = Z(r, 1, t);
1798
1762
  $(i, n);
1799
1763
  let a = i.node().getComputedTextLength();
1800
1764
  return r.remove(), a;
1801
1765
  }
1802
- t(kt, "computeWidthOfText");
1803
- function At(e, t, n) {
1766
+ l(dt, "computeWidthOfText");
1767
+ function ft(e, t, n) {
1804
1768
  let r = e.append("text"), i = Z(r, 1, t);
1805
1769
  $(i, [{
1806
1770
  content: n,
@@ -1809,21 +1773,22 @@ function At(e, t, n) {
1809
1773
  let a = i.node()?.getBoundingClientRect();
1810
1774
  return a && r.remove(), a;
1811
1775
  }
1812
- t(At, "computeDimensionOfText");
1813
- function jt(e, n, r, i = !1, a = !1) {
1814
- let o = 1.1, s = n.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
1815
- a && l.attr("text-anchor", "middle");
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");
1816
1780
  let u = 0;
1817
- for (let n of r) {
1818
- let r = /* @__PURE__ */ t((t) => kt(s, o, t) <= e, "checkWidth"), i = r(n) ? [n] : Et(n, r);
1819
- for (let e of i) $(Z(l, u, o, a), e), u++;
1820
- }
1821
- if (i) {
1822
- let e = l.node().getBBox();
1823
- return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1824
- } else return l.node();
1781
+ 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++;
1784
+ }
1785
+ 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();
1788
+ }
1789
+ return c.node();
1825
1790
  }
1826
- t(jt, "createFormattedText");
1791
+ l(pt, "createFormattedText");
1827
1792
  function Q(e) {
1828
1793
  return e.replace(/&(amp|lt|gt);/g, (e, t) => {
1829
1794
  switch (t) {
@@ -1834,46 +1799,47 @@ function Q(e) {
1834
1799
  }
1835
1800
  });
1836
1801
  }
1837
- t(Q, "decodeHTMLEntities");
1802
+ l(Q, "decodeHTMLEntities");
1838
1803
  function $(e, t) {
1839
1804
  e.text(""), t.forEach((t, n) => {
1840
1805
  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");
1841
1806
  n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
1842
1807
  });
1843
1808
  }
1844
- t($, "updateTextContentAndStyles");
1845
- async function Mt(e, t = {}) {
1809
+ l($, "updateTextContentAndStyles");
1810
+ async function mt(e, t = {}) {
1846
1811
  let n = [];
1847
1812
  e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
1848
1813
  let n = `${r}:${i}`;
1849
- return await vt(n) ? await yt(n, void 0, { class: "label-icon" }) : `<i class='${s(e, t).replace(":", " ")}'></i>`;
1814
+ return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${c(e, t).replace(":", " ")}'></i>`;
1850
1815
  })()), e));
1851
1816
  let r = await Promise.all(n);
1852
1817
  return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
1853
1818
  }
1854
- t(Mt, "replaceIconSubstring");
1855
- var Nt = /* @__PURE__ */ t(async (t, i = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1856
- if (e.debug("XYZ createText", i, a, o, s, l, d, "addSvgBackground: ", p), l) {
1857
- let e = await Mt(c(u ? wt(i, m) : Ct(i)), m), n = i.replace(/\\\\/g, "\\");
1858
- return await Ot(t, {
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, {
1859
1824
  isNode: d,
1860
- label: r(i) ? n : e,
1825
+ label: i(r) ? o : n,
1861
1826
  labelStyle: a.replace("fill:", "color:")
1862
1827
  }, f, s, p, m);
1863
- } else {
1864
- let e = c(i.replace(/<br\s*\/?>/g, "<br/>")), r = jt(f, t, u ? St(e.replace("<br>", "<br/>"), m) : xt(e), i ? p : !1, !d);
1828
+ }
1829
+ {
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);
1865
1831
  if (d) {
1866
1832
  /stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
1867
1833
  let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1868
- n(r).attr("style", e);
1834
+ n(i).attr("style", e);
1869
1835
  } else {
1870
1836
  let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1871
- n(r).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1837
+ n(i).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1872
1838
  let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1873
- n(r).select("text").attr("style", t);
1839
+ n(i).select("text").attr("style", t);
1874
1840
  }
1875
- return o ? n(r).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(r).selectAll("tspan.text-outer-tspan").classed("row", !0), r;
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;
1876
1842
  }
1877
1843
  }, "createText");
1878
1844
  //#endregion
1879
- export { mt as a, gt as i, Nt as n, pt as o, yt as r, At as t };
1845
+ export { Xe as i, ht as n, et as r, ft as t };