@wzh-/ai-chat-example 1.0.0 → 1.0.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 (809) hide show
  1. package/dist/_basePickBy-CkZky1V-.js +135 -0
  2. package/dist/_baseUniq-f11MNaXe.js +573 -0
  3. package/dist/abap--jVlqvLx.js +2 -0
  4. package/dist/actionscript-3-N1AoJtTA.js +2 -0
  5. package/dist/ada-CYGINLea.js +2 -0
  6. package/dist/ai-chat-example.css +3 -0
  7. package/dist/andromeeda-CvsZnG9k.js +2 -0
  8. package/dist/angular-html-C5vmpet2.js +14 -0
  9. package/dist/angular-html-CLTv4jM9.js +5 -0
  10. package/dist/angular-ts-BKqJWrwt.js +19 -0
  11. package/dist/apache-D6X-_dyJ.js +2 -0
  12. package/dist/apex-C7VgAgAE.js +2 -0
  13. package/dist/apl-BcJs32yU.js +15 -0
  14. package/dist/applescript-DN64Su6U.js +2 -0
  15. package/dist/ara-Dm1jHrgg.js +2 -0
  16. package/dist/arc-Dh_0vvHo.js +78 -0
  17. package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
  18. package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
  19. package/dist/array-CkdOJbdT.js +5 -0
  20. package/dist/asciidoc-BpqtqRF5.js +2 -0
  21. package/dist/asm-DUGlKYIq.js +2 -0
  22. package/dist/astro-q-huTQEP.js +16 -0
  23. package/dist/aurora-x-DwOih-un.js +2 -0
  24. package/dist/awk-DcnVbJrN.js +2 -0
  25. package/dist/ayu-dark-Bd-89MKE.js +2 -0
  26. package/dist/ballerina-BQVdQd9X.js +2 -0
  27. package/dist/bash-DI_p7w58.js +2 -0
  28. package/dist/bat-juB1J52r.js +2 -0
  29. package/dist/beancount-ThxIlRc3.js +2 -0
  30. package/dist/berry-qC18BfC_.js +2 -0
  31. package/dist/bibtex-CahMDY_0.js +2 -0
  32. package/dist/bicep-CHLBKS47.js +2 -0
  33. package/dist/blade-Ckff5WJQ.js +19 -0
  34. package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
  35. package/dist/bsl-BTNab0FD.js +3 -0
  36. package/dist/c-BYDGkYzS.js +2 -0
  37. package/dist/c-CX6yudYR.js +2 -0
  38. package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
  39. package/dist/cadence-DA5J9-Di.js +2 -0
  40. package/dist/cairo-DUZgbTPW.js +3 -0
  41. package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
  42. package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
  43. package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
  44. package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
  45. package/dist/channel-BrxVk5HC.js +3 -0
  46. package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
  47. package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
  48. package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
  49. package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
  50. package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
  51. package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
  52. package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
  53. package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
  54. package/dist/chunk-DNh5sLlG.js +18 -0
  55. package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
  56. package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
  57. package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
  58. package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
  59. package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
  60. package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
  61. package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
  62. package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
  63. package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
  64. package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
  65. package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
  66. package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
  67. package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
  68. package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
  69. package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
  70. package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
  71. package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
  72. package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
  73. package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
  74. package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
  75. package/dist/clarity-CsFOkG3c.js +2 -0
  76. package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
  77. package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
  78. package/dist/clojure-u1TZmmdQ.js +2 -0
  79. package/dist/clone-BRioDvRr.js +7 -0
  80. package/dist/cmake-CA3Lfsq7.js +2 -0
  81. package/dist/cmake-K1k8HMYR.js +2 -0
  82. package/dist/cobol-DhzLzJib.js +10 -0
  83. package/dist/codeowners-l4eSxhtA.js +2 -0
  84. package/dist/codeql-5CeQaktT.js +2 -0
  85. package/dist/coffee-P21KTKMu.js +3 -0
  86. package/dist/common-lisp-BVttGbYJ.js +2 -0
  87. package/dist/coq-CZjzQDnb.js +2 -0
  88. package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
  89. package/dist/cpp-C6JyDxZu.js +16 -0
  90. package/dist/cpp-GAIEvywS.js +6 -0
  91. package/dist/crystal-BJfcoGS4.js +16 -0
  92. package/dist/csharp-BbUwciq4.js +2 -0
  93. package/dist/csharp-JE-9ns6W.js +2 -0
  94. package/dist/css-Crp0iO_o.js +2 -0
  95. package/dist/css-Cy-fypCV.js +2 -0
  96. package/dist/csv-DJ7xG4PY.js +2 -0
  97. package/dist/csv-DtT8LmMi.js +2 -0
  98. package/dist/cue-BwjaQTCz.js +2 -0
  99. package/dist/cypher-B7e06enY.js +2 -0
  100. package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
  101. package/dist/d-q60wkid4.js +2 -0
  102. package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
  103. package/dist/dagre-DtvXp3zQ.js +1395 -0
  104. package/dist/dark-plus-D_fA88xf.js +2 -0
  105. package/dist/dart-DjkWvBgr.js +2 -0
  106. package/dist/dax-lueLIZQI.js +2 -0
  107. package/dist/defaultLocale-CoJOMwPq.js +177 -0
  108. package/dist/desktop-DaphHKD5.js +2 -0
  109. package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
  110. package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
  111. package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
  112. package/dist/diff-COB48_rb.js +2 -0
  113. package/dist/diff-DlXnqUMK.js +2 -0
  114. package/dist/dist-CrnZo_23.js +49 -0
  115. package/dist/docker-DZKmuwpA.js +2 -0
  116. package/dist/dotenv-hmNahw-8.js +2 -0
  117. package/dist/dracula-ddM3a7au.js +2 -0
  118. package/dist/dracula-soft-vfA-TA_S.js +2 -0
  119. package/dist/dream-maker-Cxa2a8FY.js +2 -0
  120. package/dist/edge-Dm7HQa9N.js +12 -0
  121. package/dist/elixir-BkvHyCNd.js +5 -0
  122. package/dist/elm-rz9wTSrn.js +4 -0
  123. package/dist/emacs-lisp-w5URnZPZ.js +2 -0
  124. package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
  125. package/dist/erb-DyrwQYVz.js +25 -0
  126. package/dist/erlang-DLFKZs5N.js +3 -0
  127. package/dist/everforest-dark-DAPtv4yI.js +2 -0
  128. package/dist/everforest-light-nQzYm8GO.js +2 -0
  129. package/dist/fennel-CJDNJZTU.js +2 -0
  130. package/dist/fish-BkYaLI4-.js +2 -0
  131. package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
  132. package/dist/fluent-DShra35H.js +2 -0
  133. package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
  134. package/dist/fortran-free-form-CgbOAJnm.js +2 -0
  135. package/dist/fortran-free-form-Js8JrQQE.js +2 -0
  136. package/dist/fsharp-CtWO0jvL.js +3 -0
  137. package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
  138. package/dist/gdresource-CgyXKpe4.js +8 -0
  139. package/dist/gdscript-DnurdQnh.js +2 -0
  140. package/dist/gdscript-STdmRKv-.js +2 -0
  141. package/dist/gdshader-Bs2s6cSB.js +2 -0
  142. package/dist/gdshader-YiVaPq6D.js +2 -0
  143. package/dist/genie-BppkvzZC.js +2 -0
  144. package/dist/gherkin-Bp4zdWMb.js +2 -0
  145. package/dist/git-commit--0GGwZNa.js +3 -0
  146. package/dist/git-rebase-orw-bSIZ.js +3 -0
  147. package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
  148. package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
  149. package/dist/github-dark-CMN1tZPn.js +2 -0
  150. package/dist/github-dark-DxCf_Qaz.js +2 -0
  151. package/dist/github-dark-default-DVCJut02.js +2 -0
  152. package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
  153. package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
  154. package/dist/github-light-CfdX7txK.js +2 -0
  155. package/dist/github-light-Y8g-VxKq.js +2 -0
  156. package/dist/github-light-default-BNGkGE--.js +2 -0
  157. package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
  158. package/dist/gleam-Lw0tKp8T.js +2 -0
  159. package/dist/glimmer-js-C6E6wJv0.js +12 -0
  160. package/dist/glimmer-ts-C6GgTGNO.js +12 -0
  161. package/dist/glsl-D8_YBRKT.js +3 -0
  162. package/dist/glsl-rwn_QCp2.js +3 -0
  163. package/dist/gnuplot-BeA3etmO.js +2 -0
  164. package/dist/go-BhDDN9y4.js +2 -0
  165. package/dist/go-xfE7BrfS.js +2 -0
  166. package/dist/graphlib-BZdVmxO6.js +223 -0
  167. package/dist/graphql-DQHhbQm2.js +6 -0
  168. package/dist/graphql-DoBLseH6.js +12 -0
  169. package/dist/groovy-C5-mv4io.js +2 -0
  170. package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
  171. package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
  172. package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
  173. package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
  174. package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
  175. package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
  176. package/dist/hack-DEAxoi73.js +10 -0
  177. package/dist/haml-BG2d3iX4.js +4 -0
  178. package/dist/haml-mA656Lm7.js +8 -0
  179. package/dist/handlebars-CO5xAxJ3.js +12 -0
  180. package/dist/haskell-Hsexh2aP.js +2 -0
  181. package/dist/haxe-BJVSeYxy.js +2 -0
  182. package/dist/haxe-CD_Rs3P5.js +2 -0
  183. package/dist/hcl-D098sJ_J.js +2 -0
  184. package/dist/hjson-BwXHX5r6.js +2 -0
  185. package/dist/hlsl-B0pnUVYG.js +2 -0
  186. package/dist/hlsl-Dt9-unql.js +2 -0
  187. package/dist/houston-C7hMWO_I.js +2 -0
  188. package/dist/html-DFCxtjnd.js +4 -0
  189. package/dist/html-DKSj3FeM.js +8 -0
  190. package/dist/html-derivative-BCRkrTcD.js +5 -0
  191. package/dist/html-derivative-C-vidKoA.js +3 -0
  192. package/dist/http-CYP1tEDW.js +17 -0
  193. package/dist/hurl-BJexUSKz.js +15 -0
  194. package/dist/hxml-XfuSEjM-.js +3 -0
  195. package/dist/hy-DPQ04rHt.js +2 -0
  196. package/dist/imba-Bgu2n5Mo.js +2 -0
  197. package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
  198. package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
  199. package/dist/ini-g9mZnyrk.js +2 -0
  200. package/dist/init-CBay3kgM.js +13 -0
  201. package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
  202. package/dist/isEmpty-CCym_WUL.js +32 -0
  203. package/dist/java-CUbPyze1.js +2 -0
  204. package/dist/java-DIOGgqAD.js +2 -0
  205. package/dist/javascript-9-JPeKdm.js +2 -0
  206. package/dist/javascript-De1qhUaI.js +2 -0
  207. package/dist/jinja-CVFxFRh6.js +5 -0
  208. package/dist/jison-0X6LppGq.js +3 -0
  209. package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
  210. package/dist/js/chat-example.es.js +39220 -0
  211. package/dist/js/chat-example.umd.js +2989 -0
  212. package/dist/json-DJtYdWQK.js +2 -0
  213. package/dist/json-fcFpRaf3.js +2 -0
  214. package/dist/json5-CPTZJOmf.js +2 -0
  215. package/dist/jsonc-CYrayg0k.js +2 -0
  216. package/dist/jsonl-Bsv7LjJ3.js +2 -0
  217. package/dist/jsonnet-B7LkHJxg.js +2 -0
  218. package/dist/jssm-BopKGZKg.js +2 -0
  219. package/dist/jsx-Bf3Nk9Di.js +2 -0
  220. package/dist/jsx-qo0JNHpZ.js +2 -0
  221. package/dist/julia-ChGs-n_c.js +17 -0
  222. package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
  223. package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
  224. package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
  225. package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
  226. package/dist/katex-BcWXJDMd.js +22097 -0
  227. package/dist/katex-K1dsczyg.js +2 -0
  228. package/dist/kdl-BbokxoZ9.js +2 -0
  229. package/dist/kotlin-3dXKmwyJ.js +2 -0
  230. package/dist/kusto-Os6_yHEz.js +2 -0
  231. package/dist/laserwave-8RcN1zf8.js +2 -0
  232. package/dist/latex-BnWZlY4q.js +4 -0
  233. package/dist/lean--0Wr4Cy4.js +2 -0
  234. package/dist/less-B4ybD-7s.js +2 -0
  235. package/dist/less-Cb54jO7u.js +2 -0
  236. package/dist/light-plus-CP_iZQDF.js +2 -0
  237. package/dist/line-EpckC7pZ.js +30 -0
  238. package/dist/linear-DjVN4o4U.js +250 -0
  239. package/dist/liquid-pc5Mduds.js +12 -0
  240. package/dist/llvm-ILH_SX7E.js +2 -0
  241. package/dist/log-DwO_GzA0.js +2 -0
  242. package/dist/logo-B4FeRowR.js +2 -0
  243. package/dist/lua-0TqNbT8C.js +3 -0
  244. package/dist/lua-6pXga3HV.js +3 -0
  245. package/dist/luau-DsUEyLJN.js +2 -0
  246. package/dist/make-p6NYc19I.js +2 -0
  247. package/dist/markdown-CCRtgC0b.js +2 -0
  248. package/dist/markdown-LaaQ4Eua.js +2 -0
  249. package/dist/marked.esm-D9xINNve.js +1384 -0
  250. package/dist/marko-D8uDUUEs.js +12 -0
  251. package/dist/material-theme-D__z84-n.js +2 -0
  252. package/dist/material-theme-darker-CWC5BoMv.js +2 -0
  253. package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
  254. package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
  255. package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
  256. package/dist/math-CJAnbPum.js +8 -0
  257. package/dist/matlab-CL0oMGfq.js +2 -0
  258. package/dist/mdc-Ki3KnB5U.js +13 -0
  259. package/dist/mdx-BTufVkNP.js +2 -0
  260. package/dist/mermaid-FCjIh1A7.js +2 -0
  261. package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
  262. package/dist/mermaid.core-Ra1JFCui.js +895 -0
  263. package/dist/min-dark-B4KRMcN3.js +2 -0
  264. package/dist/min-light-BQVJODr0.js +2 -0
  265. package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
  266. package/dist/mipsasm-Cn6AQ4lM.js +2 -0
  267. package/dist/mojo-C9IiQhp4.js +2 -0
  268. package/dist/monokai-vDwMMRi4.js +2 -0
  269. package/dist/move-BdizQ4_I.js +2 -0
  270. package/dist/narrat-BP2kx-u2.js +2 -0
  271. package/dist/nextflow-CyRmCGOe.js +2 -0
  272. package/dist/nginx-B46vdQ9n.js +4 -0
  273. package/dist/night-owl-DmjkOa5g.js +2 -0
  274. package/dist/nim-BxQNx10D.js +19 -0
  275. package/dist/nix-qPhlsqZI.js +2 -0
  276. package/dist/nord-sjxbvIbg.js +2 -0
  277. package/dist/nushell-puA-1bCW.js +2 -0
  278. package/dist/objective-c-D-qDLNy5.js +2 -0
  279. package/dist/objective-cpp-CFxSAM6p.js +2 -0
  280. package/dist/ocaml-CsLB7SWJ.js +2 -0
  281. package/dist/one-dark-pro-BHH-VjFD.js +2 -0
  282. package/dist/one-light-BqE6erWk.js +2 -0
  283. package/dist/openscad-DJCIQfnJ.js +2 -0
  284. package/dist/ordinal-CYQpsShT.js +61 -0
  285. package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
  286. package/dist/pascal-CPg9_ZFN.js +2 -0
  287. package/dist/path-esxOUfAH.js +79 -0
  288. package/dist/perl-D1bDaADZ.js +15 -0
  289. package/dist/php-BX51InqL.js +9 -0
  290. package/dist/php-D5tmU8Cr.js +16 -0
  291. package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
  292. package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
  293. package/dist/pkl-BQQ96hvn.js +2 -0
  294. package/dist/plastic-BrNUBdSC.js +2 -0
  295. package/dist/plsql-Co7Bxe7U.js +2 -0
  296. package/dist/po-BqzJCro7.js +2 -0
  297. package/dist/poimandres-C_AK8TlO.js +2 -0
  298. package/dist/polar-CtdYIPEe.js +2 -0
  299. package/dist/postcss-ChqFKb46.js +2 -0
  300. package/dist/postcss-ainQkoyY.js +2 -0
  301. package/dist/powerquery-CDugc1w-.js +2 -0
  302. package/dist/powershell-j5X-IA59.js +2 -0
  303. package/dist/prisma-Cyl7YhUw.js +2 -0
  304. package/dist/prolog-DELKnUYf.js +2 -0
  305. package/dist/proto-C4A_gDBY.js +2 -0
  306. package/dist/pug-BcLlS7Yb.js +10 -0
  307. package/dist/puppet-DFC9LyFj.js +2 -0
  308. package/dist/purescript-eECq7_n2.js +2 -0
  309. package/dist/python-BhdCuCld.js +2 -0
  310. package/dist/python-CuBu5pyY.js +2 -0
  311. package/dist/qml-MD0NqqIl.js +3 -0
  312. package/dist/qmldir-BpJII-Ze.js +2 -0
  313. package/dist/qss-CpMcemMc.js +2 -0
  314. package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
  315. package/dist/r-CQeHOO4c.js +2 -0
  316. package/dist/r-D90zdkbN.js +2 -0
  317. package/dist/racket-COTs6Zfi.js +2 -0
  318. package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
  319. package/dist/raku-DfOtwMUC.js +2 -0
  320. package/dist/razor-eRwFWsjJ.js +10 -0
  321. package/dist/red-CWGFZsim.js +2 -0
  322. package/dist/reg-BX5DwoEA.js +2 -0
  323. package/dist/regexp-Ca0eDBa2.js +2 -0
  324. package/dist/regexp-Cap8fK_2.js +2 -0
  325. package/dist/rel-CzXuLSk3.js +2 -0
  326. package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
  327. package/dist/riscv-DnFIiqh3.js +2 -0
  328. package/dist/rose-pine-C4v2iQVe.js +2 -0
  329. package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
  330. package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
  331. package/dist/rosmsg-D02ul3fM.js +2 -0
  332. package/dist/rst-DFmSdXGd.js +34 -0
  333. package/dist/ruby-BAEFomR0.js +20 -0
  334. package/dist/ruby-DDMUvAvC.js +28 -0
  335. package/dist/rust-s3hBbfQg.js +2 -0
  336. package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
  337. package/dist/sas-TjtLSnOp.js +3 -0
  338. package/dist/sass-v3HeJ9Fl.js +2 -0
  339. package/dist/scala-BTIBM_Vn.js +2 -0
  340. package/dist/scheme-C4NQMf7a.js +2 -0
  341. package/dist/scss-C-bthdG1.js +3 -0
  342. package/dist/scss-D-6-mg-f.js +3 -0
  343. package/dist/sdbl-BA3l-JrH.js +2 -0
  344. package/dist/sdbl-gc7zIVWR.js +2 -0
  345. package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
  346. package/dist/shaderlab-BRlB5fpk.js +3 -0
  347. package/dist/shellscript-BQ8mKDAF.js +2 -0
  348. package/dist/shellscript-DZa_4vvb.js +2 -0
  349. package/dist/shellsession-CIlmlgbR.js +3 -0
  350. package/dist/slack-dark-DhXO5DWr.js +2 -0
  351. package/dist/slack-ochin-aAGl4PPH.js +2 -0
  352. package/dist/smalltalk-DbwVUw_i.js +2 -0
  353. package/dist/snazzy-light-B4S5mk83.js +2 -0
  354. package/dist/solarized-dark-Dexkq3Fm.js +2 -0
  355. package/dist/solarized-light-I-Bzy8UC.js +2 -0
  356. package/dist/solidity-SMk0TJDc.js +2 -0
  357. package/dist/soy-DwSCrzEF.js +5 -0
  358. package/dist/sparql-D9kVSpEx.js +3 -0
  359. package/dist/splunk-DXXu2r7r.js +2 -0
  360. package/dist/sql-Bi3LyNPb.js +2 -0
  361. package/dist/sql-D0eLHBiZ.js +2 -0
  362. package/dist/src-B-SBGd0A.js +1975 -0
  363. package/dist/ssh-config-DyVcFTfI.js +2 -0
  364. package/dist/stata-DkEObyNb.js +3 -0
  365. package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
  366. package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
  367. package/dist/stylus-BKTuFHcX.js +2 -0
  368. package/dist/stylus-DEHALDNh.js +2 -0
  369. package/dist/svelte-KFuclcR6.js +12 -0
  370. package/dist/swift-Cenptrnf.js +2 -0
  371. package/dist/synthwave-84-BRkDuVE-.js +2 -0
  372. package/dist/system-verilog-Cvgukx4v.js +2 -0
  373. package/dist/systemd-BepdslJQ.js +2 -0
  374. package/dist/talonscript-Q98m-VXh.js +2 -0
  375. package/dist/tasl-uebrX98X.js +2 -0
  376. package/dist/tcl-B1Ny4XFf.js +2 -0
  377. package/dist/templ-C5mtYbb_.js +10 -0
  378. package/dist/terraform-0mA5ERTe.js +2 -0
  379. package/dist/tex-B4uYy1vC.js +3 -0
  380. package/dist/tex-BoVFa1ir.js +3 -0
  381. package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
  382. package/dist/tokyo-night-D0mU3-u8.js +2 -0
  383. package/dist/toml-vMAjra5M.js +2 -0
  384. package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
  385. package/dist/ts-tags-DRdTXGhb.js +38 -0
  386. package/dist/tsv-BnmbkntZ.js +2 -0
  387. package/dist/tsx-BaaPsUbd.js +2 -0
  388. package/dist/tsx-C0w0w5St.js +2 -0
  389. package/dist/turtle-4UWi_qX6.js +2 -0
  390. package/dist/turtle-BRmolh-6.js +2 -0
  391. package/dist/twig-cEhAbahS.js +33 -0
  392. package/dist/typescript-4YtK2JL4.js +2 -0
  393. package/dist/typescript-CmJ8D0yY.js +2 -0
  394. package/dist/typespec-CILw3zvZ.js +2 -0
  395. package/dist/typst-CLajFw6q.js +2 -0
  396. package/dist/v-MJV2RQvK.js +2 -0
  397. package/dist/vala-Dc1TiHw1.js +2 -0
  398. package/dist/vb-CoJdNmGs.js +2 -0
  399. package/dist/verilog-C7aVmiO0.js +2 -0
  400. package/dist/vesper-Cvcqyrim.js +2 -0
  401. package/dist/vhdl-CYQvzAG1.js +2 -0
  402. package/dist/viml-DOyjiDI8.js +2 -0
  403. package/dist/vitesse-black-CUYJaB5b.js +2 -0
  404. package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
  405. package/dist/vitesse-light-JU98KqVa.js +2 -0
  406. package/dist/vue-B3C4YeUK.js +8 -0
  407. package/dist/vue-DMpjAWNv.js +20 -0
  408. package/dist/vue-html-BIZN50ug.js +13 -0
  409. package/dist/vue-vine-DxezWcjL.js +22 -0
  410. package/dist/vyper-JU_r7Ch6.js +2 -0
  411. package/dist/wasm-DJ1S--fN.js +2 -0
  412. package/dist/wasm-eLFiAU8u.js +2 -0
  413. package/dist/wenyan-CqkzmyWz.js +2 -0
  414. package/dist/wgsl-gV62iTnF.js +2 -0
  415. package/dist/wikitext-BfUl8La4.js +2 -0
  416. package/dist/wit-kp_bCf2U.js +2 -0
  417. package/dist/wolfram-aPsN9AKt.js +2 -0
  418. package/dist/xml-BglBgo29.js +3 -0
  419. package/dist/xml-BxRdgEAX.js +3 -0
  420. package/dist/xsl-Cni90e0k.js +4 -0
  421. package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
  422. package/dist/yaml-DQRfaSRo.js +2 -0
  423. package/dist/yaml-P2kjOPvW.js +2 -0
  424. package/dist/zenscript-BuY4FX-t.js +2 -0
  425. package/dist/zig-CGDGjytz.js +2 -0
  426. package/package.json +10 -6
  427. package/.vscode/extensions.json +0 -3
  428. package/.vscode/settings.json +0 -6
  429. package/auto-imports.d.ts +0 -73
  430. package/components.d.ts +0 -312
  431. package/components.json +0 -21
  432. package/index.html +0 -13
  433. package/src/App.vue +0 -68
  434. package/src/components/ChatConversation/ChatConversation.vue +0 -97
  435. package/src/components/ChatConversation/index.ts +0 -1
  436. package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
  437. package/src/components/ChatPromptInputProvider/index.ts +0 -1
  438. package/src/components/ai-elements/artifact/Artifact.vue +0 -23
  439. package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
  440. package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
  441. package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
  442. package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
  443. package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
  444. package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
  445. package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
  446. package/src/components/ai-elements/artifact/index.ts +0 -8
  447. package/src/components/ai-elements/canvas/Canvas.vue +0 -37
  448. package/src/components/ai-elements/canvas/index.ts +0 -1
  449. package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
  450. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
  451. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
  452. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
  453. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
  454. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
  455. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
  456. package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
  457. package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
  458. package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
  459. package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
  460. package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
  461. package/src/components/ai-elements/checkpoint/index.ts +0 -3
  462. package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
  463. package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
  464. package/src/components/ai-elements/code-block/context.ts +0 -7
  465. package/src/components/ai-elements/code-block/index.ts +0 -2
  466. package/src/components/ai-elements/code-block/utils.ts +0 -46
  467. package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
  468. package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
  469. package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
  470. package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
  471. package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
  472. package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
  473. package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
  474. package/src/components/ai-elements/confirmation/context.ts +0 -46
  475. package/src/components/ai-elements/confirmation/index.ts +0 -7
  476. package/src/components/ai-elements/connection/Connection.vue +0 -36
  477. package/src/components/ai-elements/connection/index.ts +0 -1
  478. package/src/components/ai-elements/context/Context.vue +0 -29
  479. package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
  480. package/src/components/ai-elements/context/ContextContent.vue +0 -20
  481. package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
  482. package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
  483. package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
  484. package/src/components/ai-elements/context/ContextIcon.vue +0 -62
  485. package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
  486. package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
  487. package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
  488. package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
  489. package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
  490. package/src/components/ai-elements/context/context.ts +0 -23
  491. package/src/components/ai-elements/context/index.ts +0 -12
  492. package/src/components/ai-elements/controls/Controls.vue +0 -25
  493. package/src/components/ai-elements/controls/index.ts +0 -1
  494. package/src/components/ai-elements/conversation/Conversation.vue +0 -37
  495. package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
  496. package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
  497. package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
  498. package/src/components/ai-elements/conversation/index.ts +0 -4
  499. package/src/components/ai-elements/edge/Animated.vue +0 -91
  500. package/src/components/ai-elements/edge/Temporary.vue +0 -28
  501. package/src/components/ai-elements/edge/index.ts +0 -2
  502. package/src/components/ai-elements/image/Image.vue +0 -29
  503. package/src/components/ai-elements/image/index.ts +0 -1
  504. package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
  505. package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
  506. package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
  507. package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
  508. package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
  509. package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
  510. package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
  511. package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
  512. package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
  513. package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
  514. package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
  515. package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
  516. package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
  517. package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
  518. package/src/components/ai-elements/inline-citation/index.ts +0 -14
  519. package/src/components/ai-elements/loader/Loader.vue +0 -23
  520. package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
  521. package/src/components/ai-elements/loader/index.ts +0 -2
  522. package/src/components/ai-elements/message/Message.vue +0 -27
  523. package/src/components/ai-elements/message/MessageAction.vue +0 -45
  524. package/src/components/ai-elements/message/MessageActions.vue +0 -19
  525. package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
  526. package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
  527. package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
  528. package/src/components/ai-elements/message/MessageBranch.vue +0 -66
  529. package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
  530. package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
  531. package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
  532. package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
  533. package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
  534. package/src/components/ai-elements/message/MessageContent.vue +0 -26
  535. package/src/components/ai-elements/message/MessageResponse.vue +0 -42
  536. package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
  537. package/src/components/ai-elements/message/context.ts +0 -22
  538. package/src/components/ai-elements/message/index.ts +0 -15
  539. package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
  540. package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
  541. package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
  542. package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
  543. package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
  544. package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
  545. package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
  546. package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
  547. package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
  548. package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
  549. package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
  550. package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
  551. package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
  552. package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
  553. package/src/components/ai-elements/model-selector/index.ts +0 -14
  554. package/src/components/ai-elements/node/Node.vue +0 -31
  555. package/src/components/ai-elements/node/NodeAction.vue +0 -9
  556. package/src/components/ai-elements/node/NodeContent.vue +0 -15
  557. package/src/components/ai-elements/node/NodeDescription.vue +0 -9
  558. package/src/components/ai-elements/node/NodeFooter.vue +0 -15
  559. package/src/components/ai-elements/node/NodeHeader.vue +0 -15
  560. package/src/components/ai-elements/node/NodeTitle.vue +0 -9
  561. package/src/components/ai-elements/node/index.ts +0 -7
  562. package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
  563. package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
  564. package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
  565. package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
  566. package/src/components/ai-elements/open-in-chat/context.ts +0 -20
  567. package/src/components/ai-elements/open-in-chat/index.ts +0 -9
  568. package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
  569. package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
  570. package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
  571. package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
  572. package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
  573. package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
  574. package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
  575. package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
  576. package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
  577. package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
  578. package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
  579. package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
  580. package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
  581. package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
  582. package/src/components/ai-elements/panel/Panel.vue +0 -28
  583. package/src/components/ai-elements/panel/index.ts +0 -1
  584. package/src/components/ai-elements/plan/Plan.vue +0 -32
  585. package/src/components/ai-elements/plan/PlanAction.vue +0 -9
  586. package/src/components/ai-elements/plan/PlanContent.vue +0 -12
  587. package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
  588. package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
  589. package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
  590. package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
  591. package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
  592. package/src/components/ai-elements/plan/context.ts +0 -20
  593. package/src/components/ai-elements/plan/index.ts +0 -8
  594. package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
  595. package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
  596. package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
  597. package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
  598. package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
  599. package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
  600. package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
  601. package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
  602. package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
  603. package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
  604. package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
  605. package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
  606. package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
  607. package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
  608. package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
  609. package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
  610. package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
  611. package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
  612. package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
  613. package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
  614. package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
  615. package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
  616. package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
  617. package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
  618. package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
  619. package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
  620. package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
  621. package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
  622. package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
  623. package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
  624. package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
  625. package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
  626. package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
  627. package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
  628. package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
  629. package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
  630. package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
  631. package/src/components/ai-elements/prompt-input/context.ts +0 -223
  632. package/src/components/ai-elements/prompt-input/index.ts +0 -39
  633. package/src/components/ai-elements/prompt-input/types.ts +0 -28
  634. package/src/components/ai-elements/queue/Queue.vue +0 -21
  635. package/src/components/ai-elements/queue/QueueItem.vue +0 -21
  636. package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
  637. package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
  638. package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
  639. package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
  640. package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
  641. package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
  642. package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
  643. package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
  644. package/src/components/ai-elements/queue/QueueList.vue +0 -22
  645. package/src/components/ai-elements/queue/QueueSection.vue +0 -26
  646. package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
  647. package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
  648. package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
  649. package/src/components/ai-elements/queue/index.ts +0 -15
  650. package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
  651. package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
  652. package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
  653. package/src/components/ai-elements/reasoning/context.ts +0 -19
  654. package/src/components/ai-elements/reasoning/index.ts +0 -3
  655. package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
  656. package/src/components/ai-elements/shimmer/index.ts +0 -1
  657. package/src/components/ai-elements/sources/Source.vue +0 -26
  658. package/src/components/ai-elements/sources/Sources.vue +0 -17
  659. package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
  660. package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
  661. package/src/components/ai-elements/sources/index.ts +0 -4
  662. package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
  663. package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
  664. package/src/components/ai-elements/suggestion/index.ts +0 -2
  665. package/src/components/ai-elements/task/Task.vue +0 -32
  666. package/src/components/ai-elements/task/TaskContent.vue +0 -27
  667. package/src/components/ai-elements/task/TaskItem.vue +0 -16
  668. package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
  669. package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
  670. package/src/components/ai-elements/task/index.ts +0 -5
  671. package/src/components/ai-elements/tool/Tool.vue +0 -18
  672. package/src/components/ai-elements/tool/ToolContent.vue +0 -23
  673. package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
  674. package/src/components/ai-elements/tool/ToolInput.vue +0 -32
  675. package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
  676. package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
  677. package/src/components/ai-elements/tool/index.ts +0 -5
  678. package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
  679. package/src/components/ai-elements/toolbar/index.ts +0 -1
  680. package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
  681. package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
  682. package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
  683. package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
  684. package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
  685. package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
  686. package/src/components/ai-elements/web-preview/context.ts +0 -25
  687. package/src/components/ai-elements/web-preview/index.ts +0 -7
  688. package/src/components/ui/alert/Alert.vue +0 -21
  689. package/src/components/ui/alert/AlertDescription.vue +0 -17
  690. package/src/components/ui/alert/AlertTitle.vue +0 -17
  691. package/src/components/ui/alert/index.ts +0 -24
  692. package/src/components/ui/avatar/Avatar.vue +0 -18
  693. package/src/components/ui/avatar/AvatarFallback.vue +0 -21
  694. package/src/components/ui/avatar/AvatarImage.vue +0 -16
  695. package/src/components/ui/avatar/index.ts +0 -3
  696. package/src/components/ui/badge/Badge.vue +0 -26
  697. package/src/components/ui/badge/index.ts +0 -26
  698. package/src/components/ui/button/Button.vue +0 -29
  699. package/src/components/ui/button/index.ts +0 -38
  700. package/src/components/ui/button-group/ButtonGroup.vue +0 -22
  701. package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
  702. package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
  703. package/src/components/ui/button-group/index.ts +0 -25
  704. package/src/components/ui/card/Card.vue +0 -22
  705. package/src/components/ui/card/CardAction.vue +0 -17
  706. package/src/components/ui/card/CardContent.vue +0 -17
  707. package/src/components/ui/card/CardDescription.vue +0 -17
  708. package/src/components/ui/card/CardFooter.vue +0 -17
  709. package/src/components/ui/card/CardHeader.vue +0 -17
  710. package/src/components/ui/card/CardTitle.vue +0 -17
  711. package/src/components/ui/card/index.ts +0 -7
  712. package/src/components/ui/carousel/Carousel.vue +0 -53
  713. package/src/components/ui/carousel/CarouselContent.vue +0 -33
  714. package/src/components/ui/carousel/CarouselItem.vue +0 -24
  715. package/src/components/ui/carousel/CarouselNext.vue +0 -41
  716. package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
  717. package/src/components/ui/carousel/index.ts +0 -10
  718. package/src/components/ui/carousel/interface.ts +0 -26
  719. package/src/components/ui/carousel/useCarousel.ts +0 -56
  720. package/src/components/ui/collapsible/Collapsible.vue +0 -19
  721. package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
  722. package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
  723. package/src/components/ui/collapsible/index.ts +0 -3
  724. package/src/components/ui/command/Command.vue +0 -87
  725. package/src/components/ui/command/CommandDialog.vue +0 -31
  726. package/src/components/ui/command/CommandEmpty.vue +0 -27
  727. package/src/components/ui/command/CommandGroup.vue +0 -45
  728. package/src/components/ui/command/CommandInput.vue +0 -39
  729. package/src/components/ui/command/CommandItem.vue +0 -76
  730. package/src/components/ui/command/CommandList.vue +0 -25
  731. package/src/components/ui/command/CommandSeparator.vue +0 -21
  732. package/src/components/ui/command/CommandShortcut.vue +0 -17
  733. package/src/components/ui/command/index.ts +0 -25
  734. package/src/components/ui/dialog/Dialog.vue +0 -19
  735. package/src/components/ui/dialog/DialogClose.vue +0 -15
  736. package/src/components/ui/dialog/DialogContent.vue +0 -53
  737. package/src/components/ui/dialog/DialogDescription.vue +0 -23
  738. package/src/components/ui/dialog/DialogFooter.vue +0 -15
  739. package/src/components/ui/dialog/DialogHeader.vue +0 -17
  740. package/src/components/ui/dialog/DialogOverlay.vue +0 -21
  741. package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
  742. package/src/components/ui/dialog/DialogTitle.vue +0 -23
  743. package/src/components/ui/dialog/DialogTrigger.vue +0 -15
  744. package/src/components/ui/dialog/index.ts +0 -10
  745. package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
  746. package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
  747. package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
  748. package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
  749. package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
  750. package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
  751. package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
  752. package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
  753. package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
  754. package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
  755. package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
  756. package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
  757. package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
  758. package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
  759. package/src/components/ui/dropdown-menu/index.ts +0 -16
  760. package/src/components/ui/hover-card/HoverCard.vue +0 -19
  761. package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
  762. package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
  763. package/src/components/ui/hover-card/index.ts +0 -3
  764. package/src/components/ui/input/Input.vue +0 -33
  765. package/src/components/ui/input/index.ts +0 -1
  766. package/src/components/ui/input-group/InputGroup.vue +0 -37
  767. package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
  768. package/src/components/ui/input-group/InputGroupButton.vue +0 -21
  769. package/src/components/ui/input-group/InputGroupInput.vue +0 -19
  770. package/src/components/ui/input-group/InputGroupText.vue +0 -19
  771. package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
  772. package/src/components/ui/input-group/index.ts +0 -59
  773. package/src/components/ui/progress/Progress.vue +0 -38
  774. package/src/components/ui/progress/index.ts +0 -1
  775. package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
  776. package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
  777. package/src/components/ui/scroll-area/index.ts +0 -2
  778. package/src/components/ui/select/Select.vue +0 -19
  779. package/src/components/ui/select/SelectContent.vue +0 -51
  780. package/src/components/ui/select/SelectGroup.vue +0 -15
  781. package/src/components/ui/select/SelectItem.vue +0 -44
  782. package/src/components/ui/select/SelectItemText.vue +0 -15
  783. package/src/components/ui/select/SelectLabel.vue +0 -17
  784. package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
  785. package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
  786. package/src/components/ui/select/SelectSeparator.vue +0 -19
  787. package/src/components/ui/select/SelectTrigger.vue +0 -33
  788. package/src/components/ui/select/SelectValue.vue +0 -15
  789. package/src/components/ui/select/index.ts +0 -11
  790. package/src/components/ui/separator/Separator.vue +0 -29
  791. package/src/components/ui/separator/index.ts +0 -1
  792. package/src/components/ui/textarea/Textarea.vue +0 -28
  793. package/src/components/ui/textarea/index.ts +0 -1
  794. package/src/components/ui/tooltip/Tooltip.vue +0 -19
  795. package/src/components/ui/tooltip/TooltipContent.vue +0 -34
  796. package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
  797. package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
  798. package/src/components/ui/tooltip/index.ts +0 -4
  799. package/src/composables/useChat.ts +0 -46
  800. package/src/index.ts +0 -3
  801. package/src/lib/utils.ts +0 -7
  802. package/src/main.ts +0 -5
  803. package/src/request/index.ts +0 -41
  804. package/src/style.css +0 -120
  805. package/tsconfig.app.json +0 -25
  806. package/tsconfig.json +0 -13
  807. package/tsconfig.node.json +0 -26
  808. package/vite.config.ts +0 -26
  809. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,1384 @@
1
+ function L() {
2
+ return {
3
+ async: !1,
4
+ breaks: !1,
5
+ extensions: null,
6
+ gfm: !0,
7
+ hooks: null,
8
+ pedantic: !1,
9
+ renderer: null,
10
+ silent: !1,
11
+ tokenizer: null,
12
+ walkTokens: null
13
+ };
14
+ }
15
+ var T = L();
16
+ function G(e) {
17
+ T = e;
18
+ }
19
+ var E = { exec: () => null };
20
+ function d(e, l = "") {
21
+ let u = typeof e == "string" ? e : e.source, f = {
22
+ replace: (e, l) => {
23
+ let p = typeof l == "string" ? l : l.source;
24
+ return p = p.replace(m.caret, "$1"), u = u.replace(e, p), f;
25
+ },
26
+ getRegex: () => new RegExp(u, l)
27
+ };
28
+ return f;
29
+ }
30
+ var be = (() => {
31
+ try {
32
+ return !0;
33
+ } catch {
34
+ return !1;
35
+ }
36
+ })(), m = {
37
+ codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
38
+ outputLinkReplace: /\\([\[\]])/g,
39
+ indentCodeCompensation: /^(\s+)(?:```)/,
40
+ beginningSpace: /^\s+/,
41
+ endingHash: /#$/,
42
+ startingSpaceChar: /^ /,
43
+ endingSpaceChar: / $/,
44
+ nonSpaceChar: /[^ ]/,
45
+ newLineCharGlobal: /\n/g,
46
+ tabCharGlobal: /\t/g,
47
+ multipleSpaceGlobal: /\s+/g,
48
+ blankLine: /^[ \t]*$/,
49
+ doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
50
+ blockquoteStart: /^ {0,3}>/,
51
+ blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
52
+ blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
53
+ listReplaceTabs: /^\t+/,
54
+ listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
55
+ listIsTask: /^\[[ xX]\] /,
56
+ listReplaceTask: /^\[[ xX]\] +/,
57
+ anyLine: /\n.*\n/,
58
+ hrefBrackets: /^<(.*)>$/,
59
+ tableDelimiter: /[:|]/,
60
+ tableAlignChars: /^\||\| *$/g,
61
+ tableRowBlankLine: /\n[ \t]*$/,
62
+ tableAlignRight: /^ *-+: *$/,
63
+ tableAlignCenter: /^ *:-+: *$/,
64
+ tableAlignLeft: /^ *:-+ *$/,
65
+ startATag: /^<a /i,
66
+ endATag: /^<\/a>/i,
67
+ startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
68
+ endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
69
+ startAngleBracket: /^</,
70
+ endAngleBracket: />$/,
71
+ pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
72
+ unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
73
+ escapeTest: /[&<>"']/,
74
+ escapeReplace: /[&<>"']/g,
75
+ escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
76
+ escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
77
+ unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
78
+ caret: /(^|[^\[])\^/g,
79
+ percentDecode: /%25/g,
80
+ findPipe: /\|/g,
81
+ splitPipe: / \|/,
82
+ slashPipe: /\\\|/g,
83
+ carriageReturn: /\r\n|\r/g,
84
+ spaceLine: /^ +$/gm,
85
+ notSpaceStart: /^\S*/,
86
+ endingNewline: /\n$/,
87
+ listItemRegex: (e) => /* @__PURE__ */ RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
88
+ nextBulletRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
89
+ hrRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
90
+ fencesBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
91
+ headingBeginRegex: (e) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
92
+ htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
93
+ }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d(ie).replace(/bull/g, F).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(), ye = d(ie).replace(/bull/g, F).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(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "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", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = d("^ {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", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = d(j).replace("hr", I).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", v).getRegex(), K = {
94
+ blockquote: d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(),
95
+ code: Te,
96
+ def: Se,
97
+ fences: Oe,
98
+ heading: we,
99
+ hr: I,
100
+ html: _e,
101
+ lheading: oe,
102
+ list: $e,
103
+ newline: Re,
104
+ paragraph: ae,
105
+ table: E,
106
+ text: Pe
107
+ }, re = d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).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", v).getRegex(), Me = {
108
+ ...K,
109
+ lheading: ye,
110
+ table: re,
111
+ paragraph: d(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).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", v).getRegex()
112
+ }, ze = {
113
+ ...K,
114
+ html: d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", U).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(),
115
+ def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
116
+ heading: /^(#{1,6})(.*)(?:\n+|$)/,
117
+ fences: E,
118
+ lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
119
+ paragraph: d(j).replace("hr", I).replace("heading", " *#{1,6} *[^\n]").replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
120
+ }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ce = d(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d(ce, "u").replace(/punct/g, D).getRegex(), He = d(ce, "u").replace(/punct/g, pe).getRegex(), he = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d(he, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d(he, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d(/^<(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(), Qe = d(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d("^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", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = d(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = {
121
+ _backpedal: E,
122
+ anyPunctuation: Fe,
123
+ autolink: je,
124
+ blockSkip: ve,
125
+ br: le,
126
+ code: Ee,
127
+ del: E,
128
+ emStrongLDelim: De,
129
+ emStrongRDelimAst: Ze,
130
+ emStrongRDelimUnd: Ne,
131
+ escape: Ae,
132
+ link: Ke,
133
+ nolink: ke,
134
+ punctuation: Ce,
135
+ reflink: de,
136
+ reflinkSearch: We,
137
+ tag: Ue,
138
+ text: Ie,
139
+ url: E
140
+ }, Xe = {
141
+ ...X,
142
+ link: d(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
143
+ reflink: d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
144
+ }, N = {
145
+ ...X,
146
+ emStrongRDelimAst: Ge,
147
+ emStrongLDelim: He,
148
+ url: d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
149
+ _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
150
+ del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
151
+ text: d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex()
152
+ }, Je = {
153
+ ...N,
154
+ br: d(le).replace("{2,}", "*").getRegex(),
155
+ text: d(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
156
+ }, C = {
157
+ normal: K,
158
+ gfm: Me,
159
+ pedantic: ze
160
+ }, M = {
161
+ normal: X,
162
+ gfm: N,
163
+ breaks: Je,
164
+ pedantic: Xe
165
+ }, Ve = {
166
+ "&": "&amp;",
167
+ "<": "&lt;",
168
+ ">": "&gt;",
169
+ "\"": "&quot;",
170
+ "'": "&#39;"
171
+ }, ge = (e) => Ve[e];
172
+ function w(e, l) {
173
+ if (l) {
174
+ if (m.escapeTest.test(e)) return e.replace(m.escapeReplace, ge);
175
+ } else if (m.escapeTestNoEncode.test(e)) return e.replace(m.escapeReplaceNoEncode, ge);
176
+ return e;
177
+ }
178
+ function J(e) {
179
+ try {
180
+ e = encodeURI(e).replace(m.percentDecode, "%");
181
+ } catch {
182
+ return null;
183
+ }
184
+ return e;
185
+ }
186
+ function V(e, l) {
187
+ let u = e.replace(m.findPipe, (e, l, u) => {
188
+ let f = !1, p = l;
189
+ for (; --p >= 0 && u[p] === "\\";) f = !f;
190
+ return f ? "|" : " |";
191
+ }).split(m.splitPipe), f = 0;
192
+ if (u[0].trim() || u.shift(), u.length > 0 && !u.at(-1)?.trim() && u.pop(), l) if (u.length > l) u.splice(l);
193
+ else for (; u.length < l;) u.push("");
194
+ for (; f < u.length; f++) u[f] = u[f].trim().replace(m.slashPipe, "|");
195
+ return u;
196
+ }
197
+ function z(e, l, u) {
198
+ let f = e.length;
199
+ if (f === 0) return "";
200
+ let p = 0;
201
+ for (; p < f;) {
202
+ let h = e.charAt(f - p - 1);
203
+ if (h === l && !u) p++;
204
+ else if (h !== l && u) p++;
205
+ else break;
206
+ }
207
+ return e.slice(0, f - p);
208
+ }
209
+ function fe(e, l) {
210
+ if (e.indexOf(l[1]) === -1) return -1;
211
+ let u = 0;
212
+ for (let f = 0; f < e.length; f++) if (e[f] === "\\") f++;
213
+ else if (e[f] === l[0]) u++;
214
+ else if (e[f] === l[1] && (u--, u < 0)) return f;
215
+ return u > 0 ? -2 : -1;
216
+ }
217
+ function me(e, l, u, f, p) {
218
+ let h = l.href, g = l.title || null, O = e[1].replace(p.other.outputLinkReplace, "$1");
219
+ f.state.inLink = !0;
220
+ let A = {
221
+ type: e[0].charAt(0) === "!" ? "image" : "link",
222
+ raw: u,
223
+ href: h,
224
+ title: g,
225
+ text: O,
226
+ tokens: f.inlineTokens(O)
227
+ };
228
+ return f.state.inLink = !1, A;
229
+ }
230
+ function Ye(e, l, u) {
231
+ let f = e.match(u.other.indentCodeCompensation);
232
+ if (f === null) return l;
233
+ let p = f[1];
234
+ return l.split("\n").map((e) => {
235
+ let l = e.match(u.other.beginningSpace);
236
+ if (l === null) return e;
237
+ let [f] = l;
238
+ return f.length >= p.length ? e.slice(p.length) : e;
239
+ }).join("\n");
240
+ }
241
+ var y = class {
242
+ options;
243
+ rules;
244
+ lexer;
245
+ constructor(e) {
246
+ this.options = e || T;
247
+ }
248
+ space(e) {
249
+ let l = this.rules.block.newline.exec(e);
250
+ if (l && l[0].length > 0) return {
251
+ type: "space",
252
+ raw: l[0]
253
+ };
254
+ }
255
+ code(e) {
256
+ let l = this.rules.block.code.exec(e);
257
+ if (l) {
258
+ let e = l[0].replace(this.rules.other.codeRemoveIndent, "");
259
+ return {
260
+ type: "code",
261
+ raw: l[0],
262
+ codeBlockStyle: "indented",
263
+ text: this.options.pedantic ? e : z(e, "\n")
264
+ };
265
+ }
266
+ }
267
+ fences(e) {
268
+ let l = this.rules.block.fences.exec(e);
269
+ if (l) {
270
+ let e = l[0], u = Ye(e, l[3] || "", this.rules);
271
+ return {
272
+ type: "code",
273
+ raw: e,
274
+ lang: l[2] ? l[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : l[2],
275
+ text: u
276
+ };
277
+ }
278
+ }
279
+ heading(e) {
280
+ let l = this.rules.block.heading.exec(e);
281
+ if (l) {
282
+ let e = l[2].trim();
283
+ if (this.rules.other.endingHash.test(e)) {
284
+ let l = z(e, "#");
285
+ (this.options.pedantic || !l || this.rules.other.endingSpaceChar.test(l)) && (e = l.trim());
286
+ }
287
+ return {
288
+ type: "heading",
289
+ raw: l[0],
290
+ depth: l[1].length,
291
+ text: e,
292
+ tokens: this.lexer.inline(e)
293
+ };
294
+ }
295
+ }
296
+ hr(e) {
297
+ let l = this.rules.block.hr.exec(e);
298
+ if (l) return {
299
+ type: "hr",
300
+ raw: z(l[0], "\n")
301
+ };
302
+ }
303
+ blockquote(e) {
304
+ let l = this.rules.block.blockquote.exec(e);
305
+ if (l) {
306
+ let e = z(l[0], "\n").split("\n"), u = "", f = "", p = [];
307
+ for (; e.length > 0;) {
308
+ let l = !1, h = [], g;
309
+ for (g = 0; g < e.length; g++) if (this.rules.other.blockquoteStart.test(e[g])) h.push(e[g]), l = !0;
310
+ else if (!l) h.push(e[g]);
311
+ else break;
312
+ e = e.slice(g);
313
+ let O = h.join("\n"), A = O.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
314
+ u = u ? `${u}
315
+ ${O}` : O, f = f ? `${f}
316
+ ${A}` : A;
317
+ let R = this.lexer.state.top;
318
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(A, p, !0), this.lexer.state.top = R, e.length === 0) break;
319
+ let B = p.at(-1);
320
+ if (B?.type === "code") break;
321
+ if (B?.type === "blockquote") {
322
+ let l = B, h = l.raw + "\n" + e.join("\n"), g = this.blockquote(h);
323
+ p[p.length - 1] = g, u = u.substring(0, u.length - l.raw.length) + g.raw, f = f.substring(0, f.length - l.text.length) + g.text;
324
+ break;
325
+ } else if (B?.type === "list") {
326
+ let l = B, h = l.raw + "\n" + e.join("\n"), g = this.list(h);
327
+ p[p.length - 1] = g, u = u.substring(0, u.length - B.raw.length) + g.raw, f = f.substring(0, f.length - l.raw.length) + g.raw, e = h.substring(p.at(-1).raw.length).split("\n");
328
+ continue;
329
+ }
330
+ }
331
+ return {
332
+ type: "blockquote",
333
+ raw: u,
334
+ tokens: p,
335
+ text: f
336
+ };
337
+ }
338
+ }
339
+ list(e) {
340
+ let l = this.rules.block.list.exec(e);
341
+ if (l) {
342
+ let u = l[1].trim(), f = u.length > 1, p = {
343
+ type: "list",
344
+ raw: "",
345
+ ordered: f,
346
+ start: f ? +u.slice(0, -1) : "",
347
+ loose: !1,
348
+ items: []
349
+ };
350
+ u = f ? `\\d{1,9}\\${u.slice(-1)}` : `\\${u}`, this.options.pedantic && (u = f ? u : "[*+-]");
351
+ let h = this.rules.other.listItemRegex(u), g = !1;
352
+ for (; e;) {
353
+ let u = !1, f = "", O = "";
354
+ if (!(l = h.exec(e)) || this.rules.block.hr.test(e)) break;
355
+ f = l[0], e = e.substring(f.length);
356
+ let A = l[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), R = e.split("\n", 1)[0], B = !A.trim(), H = 0;
357
+ if (this.options.pedantic ? (H = 2, O = A.trimStart()) : B ? H = l[1].length + 1 : (H = l[2].search(this.rules.other.nonSpaceChar), H = H > 4 ? 1 : H, O = A.slice(H), H += l[1].length), B && this.rules.other.blankLine.test(R) && (f += R + "\n", e = e.substring(R.length + 1), u = !0), !u) {
358
+ let l = this.rules.other.nextBulletRegex(H), u = this.rules.other.hrRegex(H), p = this.rules.other.fencesBeginRegex(H), h = this.rules.other.headingBeginRegex(H), g = this.rules.other.htmlBeginRegex(H);
359
+ for (; e;) {
360
+ let Y = e.split("\n", 1)[0], Z;
361
+ if (R = Y, this.options.pedantic ? (R = R.replace(this.rules.other.listReplaceNesting, " "), Z = R) : Z = R.replace(this.rules.other.tabCharGlobal, " "), p.test(R) || h.test(R) || g.test(R) || l.test(R) || u.test(R)) break;
362
+ if (Z.search(this.rules.other.nonSpaceChar) >= H || !R.trim()) O += "\n" + Z.slice(H);
363
+ else {
364
+ if (B || A.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || p.test(A) || h.test(A) || u.test(A)) break;
365
+ O += "\n" + R;
366
+ }
367
+ !B && !R.trim() && (B = !0), f += Y + "\n", e = e.substring(Y.length + 1), A = Z.slice(H);
368
+ }
369
+ }
370
+ p.loose || (g ? p.loose = !0 : this.rules.other.doubleBlankLine.test(f) && (g = !0));
371
+ let Y = null, Z;
372
+ this.options.gfm && (Y = this.rules.other.listIsTask.exec(O), Y && (Z = Y[0] !== "[ ] ", O = O.replace(this.rules.other.listReplaceTask, ""))), p.items.push({
373
+ type: "list_item",
374
+ raw: f,
375
+ task: !!Y,
376
+ checked: Z,
377
+ loose: !1,
378
+ text: O,
379
+ tokens: []
380
+ }), p.raw += f;
381
+ }
382
+ let O = p.items.at(-1);
383
+ if (O) O.raw = O.raw.trimEnd(), O.text = O.text.trimEnd();
384
+ else return;
385
+ p.raw = p.raw.trimEnd();
386
+ for (let e = 0; e < p.items.length; e++) if (this.lexer.state.top = !1, p.items[e].tokens = this.lexer.blockTokens(p.items[e].text, []), !p.loose) {
387
+ let l = p.items[e].tokens.filter((e) => e.type === "space");
388
+ p.loose = l.length > 0 && l.some((e) => this.rules.other.anyLine.test(e.raw));
389
+ }
390
+ if (p.loose) for (let e = 0; e < p.items.length; e++) p.items[e].loose = !0;
391
+ return p;
392
+ }
393
+ }
394
+ html(e) {
395
+ let l = this.rules.block.html.exec(e);
396
+ if (l) return {
397
+ type: "html",
398
+ block: !0,
399
+ raw: l[0],
400
+ pre: l[1] === "pre" || l[1] === "script" || l[1] === "style",
401
+ text: l[0]
402
+ };
403
+ }
404
+ def(e) {
405
+ let l = this.rules.block.def.exec(e);
406
+ if (l) {
407
+ let e = l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), u = l[2] ? l[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", f = l[3] ? l[3].substring(1, l[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : l[3];
408
+ return {
409
+ type: "def",
410
+ tag: e,
411
+ raw: l[0],
412
+ href: u,
413
+ title: f
414
+ };
415
+ }
416
+ }
417
+ table(e) {
418
+ let l = this.rules.block.table.exec(e);
419
+ if (!l || !this.rules.other.tableDelimiter.test(l[2])) return;
420
+ let u = V(l[1]), f = l[2].replace(this.rules.other.tableAlignChars, "").split("|"), p = l[3]?.trim() ? l[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], h = {
421
+ type: "table",
422
+ raw: l[0],
423
+ header: [],
424
+ align: [],
425
+ rows: []
426
+ };
427
+ if (u.length === f.length) {
428
+ for (let e of f) this.rules.other.tableAlignRight.test(e) ? h.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? h.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? h.align.push("left") : h.align.push(null);
429
+ for (let e = 0; e < u.length; e++) h.header.push({
430
+ text: u[e],
431
+ tokens: this.lexer.inline(u[e]),
432
+ header: !0,
433
+ align: h.align[e]
434
+ });
435
+ for (let e of p) h.rows.push(V(e, h.header.length).map((e, l) => ({
436
+ text: e,
437
+ tokens: this.lexer.inline(e),
438
+ header: !1,
439
+ align: h.align[l]
440
+ })));
441
+ return h;
442
+ }
443
+ }
444
+ lheading(e) {
445
+ let l = this.rules.block.lheading.exec(e);
446
+ if (l) return {
447
+ type: "heading",
448
+ raw: l[0],
449
+ depth: l[2].charAt(0) === "=" ? 1 : 2,
450
+ text: l[1],
451
+ tokens: this.lexer.inline(l[1])
452
+ };
453
+ }
454
+ paragraph(e) {
455
+ let l = this.rules.block.paragraph.exec(e);
456
+ if (l) {
457
+ let e = l[1].charAt(l[1].length - 1) === "\n" ? l[1].slice(0, -1) : l[1];
458
+ return {
459
+ type: "paragraph",
460
+ raw: l[0],
461
+ text: e,
462
+ tokens: this.lexer.inline(e)
463
+ };
464
+ }
465
+ }
466
+ text(e) {
467
+ let l = this.rules.block.text.exec(e);
468
+ if (l) return {
469
+ type: "text",
470
+ raw: l[0],
471
+ text: l[0],
472
+ tokens: this.lexer.inline(l[0])
473
+ };
474
+ }
475
+ escape(e) {
476
+ let l = this.rules.inline.escape.exec(e);
477
+ if (l) return {
478
+ type: "escape",
479
+ raw: l[0],
480
+ text: l[1]
481
+ };
482
+ }
483
+ tag(e) {
484
+ let l = this.rules.inline.tag.exec(e);
485
+ if (l) return !this.lexer.state.inLink && this.rules.other.startATag.test(l[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(l[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(l[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(l[0]) && (this.lexer.state.inRawBlock = !1), {
486
+ type: "html",
487
+ raw: l[0],
488
+ inLink: this.lexer.state.inLink,
489
+ inRawBlock: this.lexer.state.inRawBlock,
490
+ block: !1,
491
+ text: l[0]
492
+ };
493
+ }
494
+ link(e) {
495
+ let l = this.rules.inline.link.exec(e);
496
+ if (l) {
497
+ let e = l[2].trim();
498
+ if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
499
+ if (!this.rules.other.endAngleBracket.test(e)) return;
500
+ let l = z(e.slice(0, -1), "\\");
501
+ if ((e.length - l.length) % 2 == 0) return;
502
+ } else {
503
+ let e = fe(l[2], "()");
504
+ if (e === -2) return;
505
+ if (e > -1) {
506
+ let u = (l[0].indexOf("!") === 0 ? 5 : 4) + l[1].length + e;
507
+ l[2] = l[2].substring(0, e), l[0] = l[0].substring(0, u).trim(), l[3] = "";
508
+ }
509
+ }
510
+ let u = l[2], f = "";
511
+ if (this.options.pedantic) {
512
+ let e = this.rules.other.pedanticHrefTitle.exec(u);
513
+ e && (u = e[1], f = e[3]);
514
+ } else f = l[3] ? l[3].slice(1, -1) : "";
515
+ return u = u.trim(), this.rules.other.startAngleBracket.test(u) && (u = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? u.slice(1) : u.slice(1, -1)), me(l, {
516
+ href: u && u.replace(this.rules.inline.anyPunctuation, "$1"),
517
+ title: f && f.replace(this.rules.inline.anyPunctuation, "$1")
518
+ }, l[0], this.lexer, this.rules);
519
+ }
520
+ }
521
+ reflink(e, l) {
522
+ let u;
523
+ if ((u = this.rules.inline.reflink.exec(e)) || (u = this.rules.inline.nolink.exec(e))) {
524
+ let e = l[(u[2] || u[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
525
+ if (!e) {
526
+ let e = u[0].charAt(0);
527
+ return {
528
+ type: "text",
529
+ raw: e,
530
+ text: e
531
+ };
532
+ }
533
+ return me(u, e, u[0], this.lexer, this.rules);
534
+ }
535
+ }
536
+ emStrong(e, l, u = "") {
537
+ let f = this.rules.inline.emStrongLDelim.exec(e);
538
+ if (!(!f || f[3] && u.match(this.rules.other.unicodeAlphaNumeric)) && (!(f[1] || f[2]) || !u || this.rules.inline.punctuation.exec(u))) {
539
+ let u = [...f[0]].length - 1, p, h, g = u, O = 0, A = f[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
540
+ for (A.lastIndex = 0, l = l.slice(-1 * e.length + u); (f = A.exec(l)) != null;) {
541
+ if (p = f[1] || f[2] || f[3] || f[4] || f[5] || f[6], !p) continue;
542
+ if (h = [...p].length, f[3] || f[4]) {
543
+ g += h;
544
+ continue;
545
+ } else if ((f[5] || f[6]) && u % 3 && !((u + h) % 3)) {
546
+ O += h;
547
+ continue;
548
+ }
549
+ if (g -= h, g > 0) continue;
550
+ h = Math.min(h, h + g + O);
551
+ let l = [...f[0]][0].length, A = e.slice(0, u + f.index + l + h);
552
+ if (Math.min(u, h) % 2) {
553
+ let e = A.slice(1, -1);
554
+ return {
555
+ type: "em",
556
+ raw: A,
557
+ text: e,
558
+ tokens: this.lexer.inlineTokens(e)
559
+ };
560
+ }
561
+ let R = A.slice(2, -2);
562
+ return {
563
+ type: "strong",
564
+ raw: A,
565
+ text: R,
566
+ tokens: this.lexer.inlineTokens(R)
567
+ };
568
+ }
569
+ }
570
+ }
571
+ codespan(e) {
572
+ let l = this.rules.inline.code.exec(e);
573
+ if (l) {
574
+ let e = l[2].replace(this.rules.other.newLineCharGlobal, " "), u = this.rules.other.nonSpaceChar.test(e), f = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
575
+ return u && f && (e = e.substring(1, e.length - 1)), {
576
+ type: "codespan",
577
+ raw: l[0],
578
+ text: e
579
+ };
580
+ }
581
+ }
582
+ br(e) {
583
+ let l = this.rules.inline.br.exec(e);
584
+ if (l) return {
585
+ type: "br",
586
+ raw: l[0]
587
+ };
588
+ }
589
+ del(e) {
590
+ let l = this.rules.inline.del.exec(e);
591
+ if (l) return {
592
+ type: "del",
593
+ raw: l[0],
594
+ text: l[2],
595
+ tokens: this.lexer.inlineTokens(l[2])
596
+ };
597
+ }
598
+ autolink(e) {
599
+ let l = this.rules.inline.autolink.exec(e);
600
+ if (l) {
601
+ let e, u;
602
+ return l[2] === "@" ? (e = l[1], u = "mailto:" + e) : (e = l[1], u = e), {
603
+ type: "link",
604
+ raw: l[0],
605
+ text: e,
606
+ href: u,
607
+ tokens: [{
608
+ type: "text",
609
+ raw: e,
610
+ text: e
611
+ }]
612
+ };
613
+ }
614
+ }
615
+ url(e) {
616
+ let l;
617
+ if (l = this.rules.inline.url.exec(e)) {
618
+ let e, u;
619
+ if (l[2] === "@") e = l[0], u = "mailto:" + e;
620
+ else {
621
+ let f;
622
+ do
623
+ f = l[0], l[0] = this.rules.inline._backpedal.exec(l[0])?.[0] ?? "";
624
+ while (f !== l[0]);
625
+ e = l[0], u = l[1] === "www." ? "http://" + l[0] : l[0];
626
+ }
627
+ return {
628
+ type: "link",
629
+ raw: l[0],
630
+ text: e,
631
+ href: u,
632
+ tokens: [{
633
+ type: "text",
634
+ raw: e,
635
+ text: e
636
+ }]
637
+ };
638
+ }
639
+ }
640
+ inlineText(e) {
641
+ let l = this.rules.inline.text.exec(e);
642
+ if (l) {
643
+ let e = this.lexer.state.inRawBlock;
644
+ return {
645
+ type: "text",
646
+ raw: l[0],
647
+ text: l[0],
648
+ escaped: e
649
+ };
650
+ }
651
+ }
652
+ }, x = class e {
653
+ tokens;
654
+ options;
655
+ state;
656
+ tokenizer;
657
+ inlineQueue;
658
+ constructor(e) {
659
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
660
+ inLink: !1,
661
+ inRawBlock: !1,
662
+ top: !0
663
+ };
664
+ let u = {
665
+ other: m,
666
+ block: C.normal,
667
+ inline: M.normal
668
+ };
669
+ this.options.pedantic ? (u.block = C.pedantic, u.inline = M.pedantic) : this.options.gfm && (u.block = C.gfm, this.options.breaks ? u.inline = M.breaks : u.inline = M.gfm), this.tokenizer.rules = u;
670
+ }
671
+ static get rules() {
672
+ return {
673
+ block: C,
674
+ inline: M
675
+ };
676
+ }
677
+ static lex(l, u) {
678
+ return new e(u).lex(l);
679
+ }
680
+ static lexInline(l, u) {
681
+ return new e(u).inlineTokens(l);
682
+ }
683
+ lex(e) {
684
+ e = e.replace(m.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
685
+ for (let e = 0; e < this.inlineQueue.length; e++) {
686
+ let l = this.inlineQueue[e];
687
+ this.inlineTokens(l.src, l.tokens);
688
+ }
689
+ return this.inlineQueue = [], this.tokens;
690
+ }
691
+ blockTokens(e, l = [], u = !1) {
692
+ for (this.options.pedantic && (e = e.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e;) {
693
+ let f;
694
+ if (this.options.extensions?.block?.some((u) => (f = u.call({ lexer: this }, e, l)) ? (e = e.substring(f.raw.length), l.push(f), !0) : !1)) continue;
695
+ if (f = this.tokenizer.space(e)) {
696
+ e = e.substring(f.raw.length);
697
+ let u = l.at(-1);
698
+ f.raw.length === 1 && u !== void 0 ? u.raw += "\n" : l.push(f);
699
+ continue;
700
+ }
701
+ if (f = this.tokenizer.code(e)) {
702
+ e = e.substring(f.raw.length);
703
+ let u = l.at(-1);
704
+ u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.text, this.inlineQueue.at(-1).src = u.text) : l.push(f);
705
+ continue;
706
+ }
707
+ if (f = this.tokenizer.fences(e)) {
708
+ e = e.substring(f.raw.length), l.push(f);
709
+ continue;
710
+ }
711
+ if (f = this.tokenizer.heading(e)) {
712
+ e = e.substring(f.raw.length), l.push(f);
713
+ continue;
714
+ }
715
+ if (f = this.tokenizer.hr(e)) {
716
+ e = e.substring(f.raw.length), l.push(f);
717
+ continue;
718
+ }
719
+ if (f = this.tokenizer.blockquote(e)) {
720
+ e = e.substring(f.raw.length), l.push(f);
721
+ continue;
722
+ }
723
+ if (f = this.tokenizer.list(e)) {
724
+ e = e.substring(f.raw.length), l.push(f);
725
+ continue;
726
+ }
727
+ if (f = this.tokenizer.html(e)) {
728
+ e = e.substring(f.raw.length), l.push(f);
729
+ continue;
730
+ }
731
+ if (f = this.tokenizer.def(e)) {
732
+ e = e.substring(f.raw.length);
733
+ let u = l.at(-1);
734
+ u?.type === "paragraph" || u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.raw, this.inlineQueue.at(-1).src = u.text) : this.tokens.links[f.tag] || (this.tokens.links[f.tag] = {
735
+ href: f.href,
736
+ title: f.title
737
+ }, l.push(f));
738
+ continue;
739
+ }
740
+ if (f = this.tokenizer.table(e)) {
741
+ e = e.substring(f.raw.length), l.push(f);
742
+ continue;
743
+ }
744
+ if (f = this.tokenizer.lheading(e)) {
745
+ e = e.substring(f.raw.length), l.push(f);
746
+ continue;
747
+ }
748
+ let p = e;
749
+ if (this.options.extensions?.startBlock) {
750
+ let l = Infinity, u = e.slice(1), f;
751
+ this.options.extensions.startBlock.forEach((e) => {
752
+ f = e.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
753
+ }), l < Infinity && l >= 0 && (p = e.substring(0, l + 1));
754
+ }
755
+ if (this.state.top && (f = this.tokenizer.paragraph(p))) {
756
+ let h = l.at(-1);
757
+ u && h?.type === "paragraph" ? (h.raw += (h.raw.endsWith("\n") ? "" : "\n") + f.raw, h.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = h.text) : l.push(f), u = p.length !== e.length, e = e.substring(f.raw.length);
758
+ continue;
759
+ }
760
+ if (f = this.tokenizer.text(e)) {
761
+ e = e.substring(f.raw.length);
762
+ let u = l.at(-1);
763
+ u?.type === "text" ? (u.raw += (u.raw.endsWith("\n") ? "" : "\n") + f.raw, u.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = u.text) : l.push(f);
764
+ continue;
765
+ }
766
+ if (e) {
767
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
768
+ if (this.options.silent) {
769
+ console.error(l);
770
+ break;
771
+ } else throw Error(l);
772
+ }
773
+ }
774
+ return this.state.top = !0, l;
775
+ }
776
+ inline(e, l = []) {
777
+ return this.inlineQueue.push({
778
+ src: e,
779
+ tokens: l
780
+ }), l;
781
+ }
782
+ inlineTokens(e, l = []) {
783
+ let u = e, f = null;
784
+ if (this.tokens.links) {
785
+ let e = Object.keys(this.tokens.links);
786
+ if (e.length > 0) for (; (f = this.tokenizer.rules.inline.reflinkSearch.exec(u)) != null;) e.includes(f[0].slice(f[0].lastIndexOf("[") + 1, -1)) && (u = u.slice(0, f.index) + "[" + "a".repeat(f[0].length - 2) + "]" + u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
787
+ }
788
+ for (; (f = this.tokenizer.rules.inline.anyPunctuation.exec(u)) != null;) u = u.slice(0, f.index) + "++" + u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
789
+ let p;
790
+ for (; (f = this.tokenizer.rules.inline.blockSkip.exec(u)) != null;) p = f[2] ? f[2].length : 0, u = u.slice(0, f.index + p) + "[" + "a".repeat(f[0].length - p - 2) + "]" + u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
791
+ u = this.options.hooks?.emStrongMask?.call({ lexer: this }, u) ?? u;
792
+ let h = !1, g = "";
793
+ for (; e;) {
794
+ h || (g = ""), h = !1;
795
+ let f;
796
+ if (this.options.extensions?.inline?.some((u) => (f = u.call({ lexer: this }, e, l)) ? (e = e.substring(f.raw.length), l.push(f), !0) : !1)) continue;
797
+ if (f = this.tokenizer.escape(e)) {
798
+ e = e.substring(f.raw.length), l.push(f);
799
+ continue;
800
+ }
801
+ if (f = this.tokenizer.tag(e)) {
802
+ e = e.substring(f.raw.length), l.push(f);
803
+ continue;
804
+ }
805
+ if (f = this.tokenizer.link(e)) {
806
+ e = e.substring(f.raw.length), l.push(f);
807
+ continue;
808
+ }
809
+ if (f = this.tokenizer.reflink(e, this.tokens.links)) {
810
+ e = e.substring(f.raw.length);
811
+ let u = l.at(-1);
812
+ f.type === "text" && u?.type === "text" ? (u.raw += f.raw, u.text += f.text) : l.push(f);
813
+ continue;
814
+ }
815
+ if (f = this.tokenizer.emStrong(e, u, g)) {
816
+ e = e.substring(f.raw.length), l.push(f);
817
+ continue;
818
+ }
819
+ if (f = this.tokenizer.codespan(e)) {
820
+ e = e.substring(f.raw.length), l.push(f);
821
+ continue;
822
+ }
823
+ if (f = this.tokenizer.br(e)) {
824
+ e = e.substring(f.raw.length), l.push(f);
825
+ continue;
826
+ }
827
+ if (f = this.tokenizer.del(e)) {
828
+ e = e.substring(f.raw.length), l.push(f);
829
+ continue;
830
+ }
831
+ if (f = this.tokenizer.autolink(e)) {
832
+ e = e.substring(f.raw.length), l.push(f);
833
+ continue;
834
+ }
835
+ if (!this.state.inLink && (f = this.tokenizer.url(e))) {
836
+ e = e.substring(f.raw.length), l.push(f);
837
+ continue;
838
+ }
839
+ let p = e;
840
+ if (this.options.extensions?.startInline) {
841
+ let l = Infinity, u = e.slice(1), f;
842
+ this.options.extensions.startInline.forEach((e) => {
843
+ f = e.call({ lexer: this }, u), typeof f == "number" && f >= 0 && (l = Math.min(l, f));
844
+ }), l < Infinity && l >= 0 && (p = e.substring(0, l + 1));
845
+ }
846
+ if (f = this.tokenizer.inlineText(p)) {
847
+ e = e.substring(f.raw.length), f.raw.slice(-1) !== "_" && (g = f.raw.slice(-1)), h = !0;
848
+ let u = l.at(-1);
849
+ u?.type === "text" ? (u.raw += f.raw, u.text += f.text) : l.push(f);
850
+ continue;
851
+ }
852
+ if (e) {
853
+ let l = "Infinite loop on byte: " + e.charCodeAt(0);
854
+ if (this.options.silent) {
855
+ console.error(l);
856
+ break;
857
+ } else throw Error(l);
858
+ }
859
+ }
860
+ return l;
861
+ }
862
+ }, P = class {
863
+ options;
864
+ parser;
865
+ constructor(e) {
866
+ this.options = e || T;
867
+ }
868
+ space(e) {
869
+ return "";
870
+ }
871
+ code({ text: e, lang: l, escaped: u }) {
872
+ let f = (l || "").match(m.notSpaceStart)?.[0], p = e.replace(m.endingNewline, "") + "\n";
873
+ return f ? "<pre><code class=\"language-" + w(f) + "\">" + (u ? p : w(p, !0)) + "</code></pre>\n" : "<pre><code>" + (u ? p : w(p, !0)) + "</code></pre>\n";
874
+ }
875
+ blockquote({ tokens: e }) {
876
+ return `<blockquote>
877
+ ${this.parser.parse(e)}</blockquote>
878
+ `;
879
+ }
880
+ html({ text: e }) {
881
+ return e;
882
+ }
883
+ def(e) {
884
+ return "";
885
+ }
886
+ heading({ tokens: e, depth: l }) {
887
+ return `<h${l}>${this.parser.parseInline(e)}</h${l}>
888
+ `;
889
+ }
890
+ hr(e) {
891
+ return "<hr>\n";
892
+ }
893
+ list(e) {
894
+ let l = e.ordered, u = e.start, f = "";
895
+ for (let l = 0; l < e.items.length; l++) {
896
+ let u = e.items[l];
897
+ f += this.listitem(u);
898
+ }
899
+ let p = l ? "ol" : "ul", h = l && u !== 1 ? " start=\"" + u + "\"" : "";
900
+ return "<" + p + h + ">\n" + f + "</" + p + ">\n";
901
+ }
902
+ listitem(e) {
903
+ let l = "";
904
+ if (e.task) {
905
+ let u = this.checkbox({ checked: !!e.checked });
906
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = u + " " + 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 = u + " " + w(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
907
+ type: "text",
908
+ raw: u + " ",
909
+ text: u + " ",
910
+ escaped: !0
911
+ }) : l += u + " ";
912
+ }
913
+ return l += this.parser.parse(e.tokens, !!e.loose), `<li>${l}</li>
914
+ `;
915
+ }
916
+ checkbox({ checked: e }) {
917
+ return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\">";
918
+ }
919
+ paragraph({ tokens: e }) {
920
+ return `<p>${this.parser.parseInline(e)}</p>
921
+ `;
922
+ }
923
+ table(e) {
924
+ let l = "", u = "";
925
+ for (let l = 0; l < e.header.length; l++) u += this.tablecell(e.header[l]);
926
+ l += this.tablerow({ text: u });
927
+ let f = "";
928
+ for (let l = 0; l < e.rows.length; l++) {
929
+ let p = e.rows[l];
930
+ u = "";
931
+ for (let e = 0; e < p.length; e++) u += this.tablecell(p[e]);
932
+ f += this.tablerow({ text: u });
933
+ }
934
+ return f &&= `<tbody>${f}</tbody>`, "<table>\n<thead>\n" + l + "</thead>\n" + f + "</table>\n";
935
+ }
936
+ tablerow({ text: e }) {
937
+ return `<tr>
938
+ ${e}</tr>
939
+ `;
940
+ }
941
+ tablecell(e) {
942
+ let l = this.parser.parseInline(e.tokens), u = e.header ? "th" : "td";
943
+ return (e.align ? `<${u} align="${e.align}">` : `<${u}>`) + l + `</${u}>
944
+ `;
945
+ }
946
+ strong({ tokens: e }) {
947
+ return `<strong>${this.parser.parseInline(e)}</strong>`;
948
+ }
949
+ em({ tokens: e }) {
950
+ return `<em>${this.parser.parseInline(e)}</em>`;
951
+ }
952
+ codespan({ text: e }) {
953
+ return `<code>${w(e, !0)}</code>`;
954
+ }
955
+ br(e) {
956
+ return "<br>";
957
+ }
958
+ del({ tokens: e }) {
959
+ return `<del>${this.parser.parseInline(e)}</del>`;
960
+ }
961
+ link({ href: e, title: l, tokens: u }) {
962
+ let f = this.parser.parseInline(u), p = J(e);
963
+ if (p === null) return f;
964
+ e = p;
965
+ let h = "<a href=\"" + e + "\"";
966
+ return l && (h += " title=\"" + w(l) + "\""), h += ">" + f + "</a>", h;
967
+ }
968
+ image({ href: e, title: l, text: u, tokens: f }) {
969
+ f && (u = this.parser.parseInline(f, this.parser.textRenderer));
970
+ let p = J(e);
971
+ if (p === null) return w(u);
972
+ e = p;
973
+ let h = `<img src="${e}" alt="${u}"`;
974
+ return l && (h += ` title="${w(l)}"`), h += ">", h;
975
+ }
976
+ text(e) {
977
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
978
+ }
979
+ }, $ = class {
980
+ strong({ text: e }) {
981
+ return e;
982
+ }
983
+ em({ text: e }) {
984
+ return e;
985
+ }
986
+ codespan({ text: e }) {
987
+ return e;
988
+ }
989
+ del({ text: e }) {
990
+ return e;
991
+ }
992
+ html({ text: e }) {
993
+ return e;
994
+ }
995
+ text({ text: e }) {
996
+ return e;
997
+ }
998
+ link({ text: e }) {
999
+ return "" + e;
1000
+ }
1001
+ image({ text: e }) {
1002
+ return "" + e;
1003
+ }
1004
+ br() {
1005
+ return "";
1006
+ }
1007
+ }, b = class e {
1008
+ options;
1009
+ renderer;
1010
+ textRenderer;
1011
+ constructor(e) {
1012
+ this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
1013
+ }
1014
+ static parse(l, u) {
1015
+ return new e(u).parse(l);
1016
+ }
1017
+ static parseInline(l, u) {
1018
+ return new e(u).parseInline(l);
1019
+ }
1020
+ parse(e, l = !0) {
1021
+ let u = "";
1022
+ for (let f = 0; f < e.length; f++) {
1023
+ let p = e[f];
1024
+ if (this.options.extensions?.renderers?.[p.type]) {
1025
+ let e = p, l = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1026
+ if (l !== !1 || ![
1027
+ "space",
1028
+ "hr",
1029
+ "heading",
1030
+ "code",
1031
+ "table",
1032
+ "blockquote",
1033
+ "list",
1034
+ "html",
1035
+ "def",
1036
+ "paragraph",
1037
+ "text"
1038
+ ].includes(e.type)) {
1039
+ u += l || "";
1040
+ continue;
1041
+ }
1042
+ }
1043
+ let h = p;
1044
+ switch (h.type) {
1045
+ case "space":
1046
+ u += this.renderer.space(h);
1047
+ continue;
1048
+ case "hr":
1049
+ u += this.renderer.hr(h);
1050
+ continue;
1051
+ case "heading":
1052
+ u += this.renderer.heading(h);
1053
+ continue;
1054
+ case "code":
1055
+ u += this.renderer.code(h);
1056
+ continue;
1057
+ case "table":
1058
+ u += this.renderer.table(h);
1059
+ continue;
1060
+ case "blockquote":
1061
+ u += this.renderer.blockquote(h);
1062
+ continue;
1063
+ case "list":
1064
+ u += this.renderer.list(h);
1065
+ continue;
1066
+ case "html":
1067
+ u += this.renderer.html(h);
1068
+ continue;
1069
+ case "def":
1070
+ u += this.renderer.def(h);
1071
+ continue;
1072
+ case "paragraph":
1073
+ u += this.renderer.paragraph(h);
1074
+ continue;
1075
+ case "text": {
1076
+ let p = h, g = this.renderer.text(p);
1077
+ for (; f + 1 < e.length && e[f + 1].type === "text";) p = e[++f], g += "\n" + this.renderer.text(p);
1078
+ l ? u += this.renderer.paragraph({
1079
+ type: "paragraph",
1080
+ raw: g,
1081
+ text: g,
1082
+ tokens: [{
1083
+ type: "text",
1084
+ raw: g,
1085
+ text: g,
1086
+ escaped: !0
1087
+ }]
1088
+ }) : u += g;
1089
+ continue;
1090
+ }
1091
+ default: {
1092
+ let e = "Token with \"" + h.type + "\" type was not found.";
1093
+ if (this.options.silent) return console.error(e), "";
1094
+ throw Error(e);
1095
+ }
1096
+ }
1097
+ }
1098
+ return u;
1099
+ }
1100
+ parseInline(e, l = this.renderer) {
1101
+ let u = "";
1102
+ for (let f = 0; f < e.length; f++) {
1103
+ let p = e[f];
1104
+ if (this.options.extensions?.renderers?.[p.type]) {
1105
+ let e = this.options.extensions.renderers[p.type].call({ parser: this }, p);
1106
+ if (e !== !1 || ![
1107
+ "escape",
1108
+ "html",
1109
+ "link",
1110
+ "image",
1111
+ "strong",
1112
+ "em",
1113
+ "codespan",
1114
+ "br",
1115
+ "del",
1116
+ "text"
1117
+ ].includes(p.type)) {
1118
+ u += e || "";
1119
+ continue;
1120
+ }
1121
+ }
1122
+ let h = p;
1123
+ switch (h.type) {
1124
+ case "escape":
1125
+ u += l.text(h);
1126
+ break;
1127
+ case "html":
1128
+ u += l.html(h);
1129
+ break;
1130
+ case "link":
1131
+ u += l.link(h);
1132
+ break;
1133
+ case "image":
1134
+ u += l.image(h);
1135
+ break;
1136
+ case "strong":
1137
+ u += l.strong(h);
1138
+ break;
1139
+ case "em":
1140
+ u += l.em(h);
1141
+ break;
1142
+ case "codespan":
1143
+ u += l.codespan(h);
1144
+ break;
1145
+ case "br":
1146
+ u += l.br(h);
1147
+ break;
1148
+ case "del":
1149
+ u += l.del(h);
1150
+ break;
1151
+ case "text":
1152
+ u += l.text(h);
1153
+ break;
1154
+ default: {
1155
+ let e = "Token with \"" + h.type + "\" type was not found.";
1156
+ if (this.options.silent) return console.error(e), "";
1157
+ throw Error(e);
1158
+ }
1159
+ }
1160
+ }
1161
+ return u;
1162
+ }
1163
+ }, S = class {
1164
+ options;
1165
+ block;
1166
+ constructor(e) {
1167
+ this.options = e || T;
1168
+ }
1169
+ static passThroughHooks = new Set([
1170
+ "preprocess",
1171
+ "postprocess",
1172
+ "processAllTokens",
1173
+ "emStrongMask"
1174
+ ]);
1175
+ static passThroughHooksRespectAsync = new Set([
1176
+ "preprocess",
1177
+ "postprocess",
1178
+ "processAllTokens"
1179
+ ]);
1180
+ preprocess(e) {
1181
+ return e;
1182
+ }
1183
+ postprocess(e) {
1184
+ return e;
1185
+ }
1186
+ processAllTokens(e) {
1187
+ return e;
1188
+ }
1189
+ emStrongMask(e) {
1190
+ return e;
1191
+ }
1192
+ provideLexer() {
1193
+ return this.block ? x.lex : x.lexInline;
1194
+ }
1195
+ provideParser() {
1196
+ return this.block ? b.parse : b.parseInline;
1197
+ }
1198
+ }, _ = new class {
1199
+ defaults = L();
1200
+ options = this.setOptions;
1201
+ parse = this.parseMarkdown(!0);
1202
+ parseInline = this.parseMarkdown(!1);
1203
+ Parser = b;
1204
+ Renderer = P;
1205
+ TextRenderer = $;
1206
+ Lexer = x;
1207
+ Tokenizer = y;
1208
+ Hooks = S;
1209
+ constructor(...e) {
1210
+ this.use(...e);
1211
+ }
1212
+ walkTokens(e, l) {
1213
+ let u = [];
1214
+ for (let f of e) switch (u = u.concat(l.call(this, f)), f.type) {
1215
+ case "table": {
1216
+ let e = f;
1217
+ for (let f of e.header) u = u.concat(this.walkTokens(f.tokens, l));
1218
+ for (let f of e.rows) for (let e of f) u = u.concat(this.walkTokens(e.tokens, l));
1219
+ break;
1220
+ }
1221
+ case "list": {
1222
+ let e = f;
1223
+ u = u.concat(this.walkTokens(e.items, l));
1224
+ break;
1225
+ }
1226
+ default: {
1227
+ let e = f;
1228
+ this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((f) => {
1229
+ let p = e[f].flat(Infinity);
1230
+ u = u.concat(this.walkTokens(p, l));
1231
+ }) : e.tokens && (u = u.concat(this.walkTokens(e.tokens, l)));
1232
+ }
1233
+ }
1234
+ return u;
1235
+ }
1236
+ use(...e) {
1237
+ let l = this.defaults.extensions || {
1238
+ renderers: {},
1239
+ childTokens: {}
1240
+ };
1241
+ return e.forEach((e) => {
1242
+ let u = { ...e };
1243
+ if (u.async = this.defaults.async || u.async || !1, e.extensions && (e.extensions.forEach((e) => {
1244
+ if (!e.name) throw Error("extension name required");
1245
+ if ("renderer" in e) {
1246
+ let u = l.renderers[e.name];
1247
+ u ? l.renderers[e.name] = function(...l) {
1248
+ let f = e.renderer.apply(this, l);
1249
+ return f === !1 && (f = u.apply(this, l)), f;
1250
+ } : l.renderers[e.name] = e.renderer;
1251
+ }
1252
+ if ("tokenizer" in e) {
1253
+ if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1254
+ let u = l[e.level];
1255
+ u ? u.unshift(e.tokenizer) : l[e.level] = [e.tokenizer], e.start && (e.level === "block" ? l.startBlock ? l.startBlock.push(e.start) : l.startBlock = [e.start] : e.level === "inline" && (l.startInline ? l.startInline.push(e.start) : l.startInline = [e.start]));
1256
+ }
1257
+ "childTokens" in e && e.childTokens && (l.childTokens[e.name] = e.childTokens);
1258
+ }), u.extensions = l), e.renderer) {
1259
+ let l = this.defaults.renderer || new P(this.defaults);
1260
+ for (let u in e.renderer) {
1261
+ if (!(u in l)) throw Error(`renderer '${u}' does not exist`);
1262
+ if (["options", "parser"].includes(u)) continue;
1263
+ let f = u, p = e.renderer[f], h = l[f];
1264
+ l[f] = (...e) => {
1265
+ let u = p.apply(l, e);
1266
+ return u === !1 && (u = h.apply(l, e)), u || "";
1267
+ };
1268
+ }
1269
+ u.renderer = l;
1270
+ }
1271
+ if (e.tokenizer) {
1272
+ let l = this.defaults.tokenizer || new y(this.defaults);
1273
+ for (let u in e.tokenizer) {
1274
+ if (!(u in l)) throw Error(`tokenizer '${u}' does not exist`);
1275
+ if ([
1276
+ "options",
1277
+ "rules",
1278
+ "lexer"
1279
+ ].includes(u)) continue;
1280
+ let f = u, p = e.tokenizer[f], h = l[f];
1281
+ l[f] = (...e) => {
1282
+ let u = p.apply(l, e);
1283
+ return u === !1 && (u = h.apply(l, e)), u;
1284
+ };
1285
+ }
1286
+ u.tokenizer = l;
1287
+ }
1288
+ if (e.hooks) {
1289
+ let l = this.defaults.hooks || new S();
1290
+ for (let u in e.hooks) {
1291
+ if (!(u in l)) throw Error(`hook '${u}' does not exist`);
1292
+ if (["options", "block"].includes(u)) continue;
1293
+ let f = u, p = e.hooks[f], h = l[f];
1294
+ S.passThroughHooks.has(u) ? l[f] = (e) => {
1295
+ if (this.defaults.async && S.passThroughHooksRespectAsync.has(u)) return (async () => {
1296
+ let u = await p.call(l, e);
1297
+ return h.call(l, u);
1298
+ })();
1299
+ let f = p.call(l, e);
1300
+ return h.call(l, f);
1301
+ } : l[f] = (...e) => {
1302
+ if (this.defaults.async) return (async () => {
1303
+ let u = await p.apply(l, e);
1304
+ return u === !1 && (u = await h.apply(l, e)), u;
1305
+ })();
1306
+ let u = p.apply(l, e);
1307
+ return u === !1 && (u = h.apply(l, e)), u;
1308
+ };
1309
+ }
1310
+ u.hooks = l;
1311
+ }
1312
+ if (e.walkTokens) {
1313
+ let l = this.defaults.walkTokens, f = e.walkTokens;
1314
+ u.walkTokens = function(e) {
1315
+ let u = [];
1316
+ return u.push(f.call(this, e)), l && (u = u.concat(l.call(this, e))), u;
1317
+ };
1318
+ }
1319
+ this.defaults = {
1320
+ ...this.defaults,
1321
+ ...u
1322
+ };
1323
+ }), this;
1324
+ }
1325
+ setOptions(e) {
1326
+ return this.defaults = {
1327
+ ...this.defaults,
1328
+ ...e
1329
+ }, this;
1330
+ }
1331
+ lexer(e, l) {
1332
+ return x.lex(e, l ?? this.defaults);
1333
+ }
1334
+ parser(e, l) {
1335
+ return b.parse(e, l ?? this.defaults);
1336
+ }
1337
+ parseMarkdown(e) {
1338
+ return (l, u) => {
1339
+ let f = { ...u }, p = {
1340
+ ...this.defaults,
1341
+ ...f
1342
+ }, h = this.onError(!!p.silent, !!p.async);
1343
+ if (this.defaults.async === !0 && f.async === !1) return h(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1344
+ if (typeof l > "u" || l === null) return h(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1345
+ if (typeof l != "string") return h(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(l) + ", string expected"));
1346
+ if (p.hooks && (p.hooks.options = p, p.hooks.block = e), p.async) return (async () => {
1347
+ let u = p.hooks ? await p.hooks.preprocess(l) : l, f = await (p.hooks ? await p.hooks.provideLexer() : e ? x.lex : x.lexInline)(u, p), h = p.hooks ? await p.hooks.processAllTokens(f) : f;
1348
+ p.walkTokens && await Promise.all(this.walkTokens(h, p.walkTokens));
1349
+ let g = await (p.hooks ? await p.hooks.provideParser() : e ? b.parse : b.parseInline)(h, p);
1350
+ return p.hooks ? await p.hooks.postprocess(g) : g;
1351
+ })().catch(h);
1352
+ try {
1353
+ p.hooks && (l = p.hooks.preprocess(l));
1354
+ let u = (p.hooks ? p.hooks.provideLexer() : e ? x.lex : x.lexInline)(l, p);
1355
+ p.hooks && (u = p.hooks.processAllTokens(u)), p.walkTokens && this.walkTokens(u, p.walkTokens);
1356
+ let f = (p.hooks ? p.hooks.provideParser() : e ? b.parse : b.parseInline)(u, p);
1357
+ return p.hooks && (f = p.hooks.postprocess(f)), f;
1358
+ } catch (e) {
1359
+ return h(e);
1360
+ }
1361
+ };
1362
+ }
1363
+ onError(e, l) {
1364
+ return (u) => {
1365
+ if (u.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1366
+ let e = "<p>An error occurred:</p><pre>" + w(u.message + "", !0) + "</pre>";
1367
+ return l ? Promise.resolve(e) : e;
1368
+ }
1369
+ if (l) return Promise.reject(u);
1370
+ throw u;
1371
+ };
1372
+ }
1373
+ }();
1374
+ function k(e, l) {
1375
+ return _.parse(e, l);
1376
+ }
1377
+ k.options = k.setOptions = function(e) {
1378
+ return _.setOptions(e), k.defaults = _.defaults, G(k.defaults), k;
1379
+ }, k.getDefaults = L, k.defaults = T, k.use = function(...e) {
1380
+ return _.use(...e), k.defaults = _.defaults, G(k.defaults), k;
1381
+ }, k.walkTokens = function(e, l) {
1382
+ return _.walkTokens(e, l);
1383
+ }, k.parseInline = _.parseInline, k.Parser = b, k.parser = b.parse, k.Renderer = P, k.TextRenderer = $, k.Lexer = x, k.lexer = x.lex, k.Tokenizer = y, k.Hooks = S, k.parse = k, k.options, k.setOptions, k.use, k.walkTokens, k.parseInline, b.parse, x.lex;
1384
+ export { k as t };